1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libaacs 0.11.0. 4# 5# Report bugs to <http://www.videolan.org/developers/libaacs.html>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://www.videolan.org/developers/libaacs.html about 279$0: your system, including any error possibly output before 280$0: this message. Then install a modern shell, or manually 281$0: run the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libaacs' 592PACKAGE_TARNAME='libaacs' 593PACKAGE_VERSION='0.11.0' 594PACKAGE_STRING='libaacs 0.11.0' 595PACKAGE_BUGREPORT='http://www.videolan.org/developers/libaacs.html' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638SET_FEATURES 639LT_VERSION_INFO 640AACS_VERSION_MICRO 641AACS_VERSION_MINOR 642AACS_VERSION_MAJOR 643GPG_ERROR_MT_LIBS 644GPG_ERROR_MT_CFLAGS 645GPG_ERROR_LIBS 646GPG_ERROR_CFLAGS 647GPG_ERROR_CONFIG 648LIBGCRYPT_LIBS 649LIBGCRYPT_CFLAGS 650LIBGCRYPT_CONFIG 651YFLAGS 652YACC 653LEXLIB 654LEX_OUTPUT_ROOT 655LEX 656AS 657CPP 658LT_SYS_LIBRARY_PATH 659OTOOL64 660OTOOL 661LIPO 662NMEDIT 663DSYMUTIL 664MANIFEST_TOOL 665RANLIB 666ac_ct_AR 667AR 668DLLTOOL 669OBJDUMP 670LN_S 671NM 672ac_ct_DUMPBIN 673DUMPBIN 674LD 675FGREP 676EGREP 677GREP 678SED 679LIBTOOL 680am__fastdepCC_FALSE 681am__fastdepCC_TRUE 682CCDEPMODE 683am__nodep 684AMDEPBACKSLASH 685AMDEP_FALSE 686AMDEP_TRUE 687am__include 688DEPDIR 689OBJEXT 690EXEEXT 691ac_ct_CC 692CPPFLAGS 693LDFLAGS 694CFLAGS 695CC 696HAVE_DARWIN_FALSE 697HAVE_DARWIN_TRUE 698HAVE_WIN32_FALSE 699HAVE_WIN32_TRUE 700MAINT 701MAINTAINER_MODE_FALSE 702MAINTAINER_MODE_TRUE 703AM_BACKSLASH 704AM_DEFAULT_VERBOSITY 705AM_DEFAULT_V 706AM_V 707am__untar 708am__tar 709AMTAR 710am__leading_dot 711SET_MAKE 712AWK 713mkdir_p 714MKDIR_P 715INSTALL_STRIP_PROGRAM 716STRIP 717install_sh 718MAKEINFO 719AUTOHEADER 720AUTOMAKE 721AUTOCONF 722ACLOCAL 723VERSION 724PACKAGE 725CYGPATH_W 726am__isrc 727INSTALL_DATA 728INSTALL_SCRIPT 729INSTALL_PROGRAM 730target_os 731target_vendor 732target_cpu 733target 734host_os 735host_vendor 736host_cpu 737host 738build_os 739build_vendor 740build_cpu 741build 742target_alias 743host_alias 744build_alias 745LIBS 746ECHO_T 747ECHO_N 748ECHO_C 749DEFS 750mandir 751localedir 752libdir 753psdir 754pdfdir 755dvidir 756htmldir 757infodir 758docdir 759oldincludedir 760includedir 761runstatedir 762localstatedir 763sharedstatedir 764sysconfdir 765datadir 766datarootdir 767libexecdir 768sbindir 769bindir 770program_transform_name 771prefix 772exec_prefix 773PACKAGE_URL 774PACKAGE_BUGREPORT 775PACKAGE_STRING 776PACKAGE_VERSION 777PACKAGE_TARNAME 778PACKAGE_NAME 779PATH_SEPARATOR 780SHELL 781am__quote' 782ac_subst_files='' 783ac_user_opts=' 784enable_option_checking 785enable_silent_rules 786enable_maintainer_mode 787enable_werror 788enable_extra_warnings 789enable_optimizations 790enable_dependency_tracking 791enable_shared 792enable_static 793with_pic 794enable_fast_install 795with_aix_soname 796with_gnu_ld 797with_sysroot 798enable_libtool_lock 799enable_largefile 800with_libgcrypt_prefix 801with_libgpg_error_prefix 802with_gpg_error_prefix 803' 804 ac_precious_vars='build_alias 805host_alias 806target_alias 807CC 808CFLAGS 809LDFLAGS 810LIBS 811CPPFLAGS 812LT_SYS_LIBRARY_PATH 813CPP 814YACC 815YFLAGS' 816 817 818# Initialize some variables set by options. 819ac_init_help= 820ac_init_version=false 821ac_unrecognized_opts= 822ac_unrecognized_sep= 823# The variables have the same names as the options, with 824# dashes changed to underlines. 825cache_file=/dev/null 826exec_prefix=NONE 827no_create= 828no_recursion= 829prefix=NONE 830program_prefix=NONE 831program_suffix=NONE 832program_transform_name=s,x,x, 833silent= 834site= 835srcdir= 836verbose= 837x_includes=NONE 838x_libraries=NONE 839 840# Installation directory options. 841# These are left unexpanded so users can "make install exec_prefix=/foo" 842# and all the variables that are supposed to be based on exec_prefix 843# by default will actually change. 844# Use braces instead of parens because sh, perl, etc. also accept them. 845# (The list follows the same order as the GNU Coding Standards.) 846bindir='${exec_prefix}/bin' 847sbindir='${exec_prefix}/sbin' 848libexecdir='${exec_prefix}/libexec' 849datarootdir='${prefix}/share' 850datadir='${datarootdir}' 851sysconfdir='${prefix}/etc' 852sharedstatedir='${prefix}/com' 853localstatedir='${prefix}/var' 854runstatedir='${localstatedir}/run' 855includedir='${prefix}/include' 856oldincludedir='/usr/include' 857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 858infodir='${datarootdir}/info' 859htmldir='${docdir}' 860dvidir='${docdir}' 861pdfdir='${docdir}' 862psdir='${docdir}' 863libdir='${exec_prefix}/lib' 864localedir='${datarootdir}/locale' 865mandir='${datarootdir}/man' 866 867ac_prev= 868ac_dashdash= 869for ac_option 870do 871 # If the previous option needs an argument, assign it. 872 if test -n "$ac_prev"; then 873 eval $ac_prev=\$ac_option 874 ac_prev= 875 continue 876 fi 877 878 case $ac_option in 879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 880 *=) ac_optarg= ;; 881 *) ac_optarg=yes ;; 882 esac 883 884 # Accept the important Cygnus configure options, so we can diagnose typos. 885 886 case $ac_dashdash$ac_option in 887 --) 888 ac_dashdash=yes ;; 889 890 -bindir | --bindir | --bindi | --bind | --bin | --bi) 891 ac_prev=bindir ;; 892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 893 bindir=$ac_optarg ;; 894 895 -build | --build | --buil | --bui | --bu) 896 ac_prev=build_alias ;; 897 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 898 build_alias=$ac_optarg ;; 899 900 -cache-file | --cache-file | --cache-fil | --cache-fi \ 901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 902 ac_prev=cache_file ;; 903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 905 cache_file=$ac_optarg ;; 906 907 --config-cache | -C) 908 cache_file=config.cache ;; 909 910 -datadir | --datadir | --datadi | --datad) 911 ac_prev=datadir ;; 912 -datadir=* | --datadir=* | --datadi=* | --datad=*) 913 datadir=$ac_optarg ;; 914 915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 916 | --dataroo | --dataro | --datar) 917 ac_prev=datarootdir ;; 918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 920 datarootdir=$ac_optarg ;; 921 922 -disable-* | --disable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: $ac_useropt" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931"enable_$ac_useropt" 932"*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=no ;; 937 938 -docdir | --docdir | --docdi | --doc | --do) 939 ac_prev=docdir ;; 940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 941 docdir=$ac_optarg ;; 942 943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 944 ac_prev=dvidir ;; 945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 946 dvidir=$ac_optarg ;; 947 948 -enable-* | --enable-*) 949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 950 # Reject names that are not valid shell variable names. 951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 952 as_fn_error $? "invalid feature name: $ac_useropt" 953 ac_useropt_orig=$ac_useropt 954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 955 case $ac_user_opts in 956 *" 957"enable_$ac_useropt" 958"*) ;; 959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 960 ac_unrecognized_sep=', ';; 961 esac 962 eval enable_$ac_useropt=\$ac_optarg ;; 963 964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 966 | --exec | --exe | --ex) 967 ac_prev=exec_prefix ;; 968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 970 | --exec=* | --exe=* | --ex=*) 971 exec_prefix=$ac_optarg ;; 972 973 -gas | --gas | --ga | --g) 974 # Obsolete; use --with-gas. 975 with_gas=yes ;; 976 977 -help | --help | --hel | --he | -h) 978 ac_init_help=long ;; 979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 980 ac_init_help=recursive ;; 981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 982 ac_init_help=short ;; 983 984 -host | --host | --hos | --ho) 985 ac_prev=host_alias ;; 986 -host=* | --host=* | --hos=* | --ho=*) 987 host_alias=$ac_optarg ;; 988 989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 990 ac_prev=htmldir ;; 991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 992 | --ht=*) 993 htmldir=$ac_optarg ;; 994 995 -includedir | --includedir | --includedi | --included | --include \ 996 | --includ | --inclu | --incl | --inc) 997 ac_prev=includedir ;; 998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 999 | --includ=* | --inclu=* | --incl=* | --inc=*) 1000 includedir=$ac_optarg ;; 1001 1002 -infodir | --infodir | --infodi | --infod | --info | --inf) 1003 ac_prev=infodir ;; 1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1005 infodir=$ac_optarg ;; 1006 1007 -libdir | --libdir | --libdi | --libd) 1008 ac_prev=libdir ;; 1009 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1010 libdir=$ac_optarg ;; 1011 1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1013 | --libexe | --libex | --libe) 1014 ac_prev=libexecdir ;; 1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1016 | --libexe=* | --libex=* | --libe=*) 1017 libexecdir=$ac_optarg ;; 1018 1019 -localedir | --localedir | --localedi | --localed | --locale) 1020 ac_prev=localedir ;; 1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1022 localedir=$ac_optarg ;; 1023 1024 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1025 | --localstate | --localstat | --localsta | --localst | --locals) 1026 ac_prev=localstatedir ;; 1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1029 localstatedir=$ac_optarg ;; 1030 1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1032 ac_prev=mandir ;; 1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1034 mandir=$ac_optarg ;; 1035 1036 -nfp | --nfp | --nf) 1037 # Obsolete; use --without-fp. 1038 with_fp=no ;; 1039 1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1041 | --no-cr | --no-c | -n) 1042 no_create=yes ;; 1043 1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1046 no_recursion=yes ;; 1047 1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1050 | --oldin | --oldi | --old | --ol | --o) 1051 ac_prev=oldincludedir ;; 1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1055 oldincludedir=$ac_optarg ;; 1056 1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1058 ac_prev=prefix ;; 1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1060 prefix=$ac_optarg ;; 1061 1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1063 | --program-pre | --program-pr | --program-p) 1064 ac_prev=program_prefix ;; 1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1067 program_prefix=$ac_optarg ;; 1068 1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1070 | --program-suf | --program-su | --program-s) 1071 ac_prev=program_suffix ;; 1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1074 program_suffix=$ac_optarg ;; 1075 1076 -program-transform-name | --program-transform-name \ 1077 | --program-transform-nam | --program-transform-na \ 1078 | --program-transform-n | --program-transform- \ 1079 | --program-transform | --program-transfor \ 1080 | --program-transfo | --program-transf \ 1081 | --program-trans | --program-tran \ 1082 | --progr-tra | --program-tr | --program-t) 1083 ac_prev=program_transform_name ;; 1084 -program-transform-name=* | --program-transform-name=* \ 1085 | --program-transform-nam=* | --program-transform-na=* \ 1086 | --program-transform-n=* | --program-transform-=* \ 1087 | --program-transform=* | --program-transfor=* \ 1088 | --program-transfo=* | --program-transf=* \ 1089 | --program-trans=* | --program-tran=* \ 1090 | --progr-tra=* | --program-tr=* | --program-t=*) 1091 program_transform_name=$ac_optarg ;; 1092 1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1094 ac_prev=pdfdir ;; 1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1096 pdfdir=$ac_optarg ;; 1097 1098 -psdir | --psdir | --psdi | --psd | --ps) 1099 ac_prev=psdir ;; 1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1101 psdir=$ac_optarg ;; 1102 1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1104 | -silent | --silent | --silen | --sile | --sil) 1105 silent=yes ;; 1106 1107 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1108 | --runstate | --runstat | --runsta | --runst | --runs \ 1109 | --run | --ru | --r) 1110 ac_prev=runstatedir ;; 1111 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1112 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1113 | --run=* | --ru=* | --r=*) 1114 runstatedir=$ac_optarg ;; 1115 1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1117 ac_prev=sbindir ;; 1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1119 | --sbi=* | --sb=*) 1120 sbindir=$ac_optarg ;; 1121 1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1124 | --sharedst | --shareds | --shared | --share | --shar \ 1125 | --sha | --sh) 1126 ac_prev=sharedstatedir ;; 1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1130 | --sha=* | --sh=*) 1131 sharedstatedir=$ac_optarg ;; 1132 1133 -site | --site | --sit) 1134 ac_prev=site ;; 1135 -site=* | --site=* | --sit=*) 1136 site=$ac_optarg ;; 1137 1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1139 ac_prev=srcdir ;; 1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1141 srcdir=$ac_optarg ;; 1142 1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1144 | --syscon | --sysco | --sysc | --sys | --sy) 1145 ac_prev=sysconfdir ;; 1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1148 sysconfdir=$ac_optarg ;; 1149 1150 -target | --target | --targe | --targ | --tar | --ta | --t) 1151 ac_prev=target_alias ;; 1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1153 target_alias=$ac_optarg ;; 1154 1155 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1156 verbose=yes ;; 1157 1158 -version | --version | --versio | --versi | --vers | -V) 1159 ac_init_version=: ;; 1160 1161 -with-* | --with-*) 1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1163 # Reject names that are not valid shell variable names. 1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1165 as_fn_error $? "invalid package name: $ac_useropt" 1166 ac_useropt_orig=$ac_useropt 1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1168 case $ac_user_opts in 1169 *" 1170"with_$ac_useropt" 1171"*) ;; 1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1173 ac_unrecognized_sep=', ';; 1174 esac 1175 eval with_$ac_useropt=\$ac_optarg ;; 1176 1177 -without-* | --without-*) 1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1179 # Reject names that are not valid shell variable names. 1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1181 as_fn_error $? "invalid package name: $ac_useropt" 1182 ac_useropt_orig=$ac_useropt 1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1184 case $ac_user_opts in 1185 *" 1186"with_$ac_useropt" 1187"*) ;; 1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1189 ac_unrecognized_sep=', ';; 1190 esac 1191 eval with_$ac_useropt=no ;; 1192 1193 --x) 1194 # Obsolete; use --with-x. 1195 with_x=yes ;; 1196 1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1198 | --x-incl | --x-inc | --x-in | --x-i) 1199 ac_prev=x_includes ;; 1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1202 x_includes=$ac_optarg ;; 1203 1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1206 ac_prev=x_libraries ;; 1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1209 x_libraries=$ac_optarg ;; 1210 1211 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1212Try \`$0 --help' for more information" 1213 ;; 1214 1215 *=*) 1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1217 # Reject names that are not valid shell variable names. 1218 case $ac_envvar in #( 1219 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1220 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1221 esac 1222 eval $ac_envvar=\$ac_optarg 1223 export $ac_envvar ;; 1224 1225 *) 1226 # FIXME: should be removed in autoconf 3.0. 1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1231 ;; 1232 1233 esac 1234done 1235 1236if test -n "$ac_prev"; then 1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1238 as_fn_error $? "missing argument to $ac_option" 1239fi 1240 1241if test -n "$ac_unrecognized_opts"; then 1242 case $enable_option_checking in 1243 no) ;; 1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1246 esac 1247fi 1248 1249# Check all directory arguments for consistency. 1250for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1251 datadir sysconfdir sharedstatedir localstatedir includedir \ 1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1253 libdir localedir mandir runstatedir 1254do 1255 eval ac_val=\$$ac_var 1256 # Remove trailing slashes. 1257 case $ac_val in 1258 */ ) 1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1260 eval $ac_var=\$ac_val;; 1261 esac 1262 # Be sure to have absolute directory names. 1263 case $ac_val in 1264 [\\/$]* | ?:[\\/]* ) continue;; 1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1266 esac 1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1268done 1269 1270# There might be people who depend on the old broken behavior: `$host' 1271# used to hold the argument of --host etc. 1272# FIXME: To remove some day. 1273build=$build_alias 1274host=$host_alias 1275target=$target_alias 1276 1277# FIXME: To remove some day. 1278if test "x$host_alias" != x; then 1279 if test "x$build_alias" = x; then 1280 cross_compiling=maybe 1281 elif test "x$build_alias" != "x$host_alias"; then 1282 cross_compiling=yes 1283 fi 1284fi 1285 1286ac_tool_prefix= 1287test -n "$host_alias" && ac_tool_prefix=$host_alias- 1288 1289test "$silent" = yes && exec 6>/dev/null 1290 1291 1292ac_pwd=`pwd` && test -n "$ac_pwd" && 1293ac_ls_di=`ls -di .` && 1294ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1295 as_fn_error $? "working directory cannot be determined" 1296test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1297 as_fn_error $? "pwd does not report name of working directory" 1298 1299 1300# Find the source files, if location was not specified. 1301if test -z "$srcdir"; then 1302 ac_srcdir_defaulted=yes 1303 # Try the directory containing this script, then the parent directory. 1304 ac_confdir=`$as_dirname -- "$as_myself" || 1305$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1306 X"$as_myself" : 'X\(//\)[^/]' \| \ 1307 X"$as_myself" : 'X\(//\)$' \| \ 1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1309$as_echo X"$as_myself" | 1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1311 s//\1/ 1312 q 1313 } 1314 /^X\(\/\/\)[^/].*/{ 1315 s//\1/ 1316 q 1317 } 1318 /^X\(\/\/\)$/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\).*/{ 1323 s//\1/ 1324 q 1325 } 1326 s/.*/./; q'` 1327 srcdir=$ac_confdir 1328 if test ! -r "$srcdir/$ac_unique_file"; then 1329 srcdir=.. 1330 fi 1331else 1332 ac_srcdir_defaulted=no 1333fi 1334if test ! -r "$srcdir/$ac_unique_file"; then 1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1337fi 1338ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1339ac_abs_confdir=`( 1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1341 pwd)` 1342# When building in place, set srcdir=. 1343if test "$ac_abs_confdir" = "$ac_pwd"; then 1344 srcdir=. 1345fi 1346# Remove unnecessary trailing slashes from srcdir. 1347# Double slashes in file names in object file debugging info 1348# mess up M-x gdb in Emacs. 1349case $srcdir in 1350*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1351esac 1352for ac_var in $ac_precious_vars; do 1353 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1354 eval ac_env_${ac_var}_value=\$${ac_var} 1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1356 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1357done 1358 1359# 1360# Report the --help message. 1361# 1362if test "$ac_init_help" = "long"; then 1363 # Omit some internal or obsolete options to make the list less imposing. 1364 # This message is too long to be a string in the A/UX 3.1 sh. 1365 cat <<_ACEOF 1366\`configure' configures libaacs 0.11.0 to adapt to many kinds of systems. 1367 1368Usage: $0 [OPTION]... [VAR=VALUE]... 1369 1370To assign environment variables (e.g., CC, CFLAGS...), specify them as 1371VAR=VALUE. See below for descriptions of some of the useful variables. 1372 1373Defaults for the options are specified in brackets. 1374 1375Configuration: 1376 -h, --help display this help and exit 1377 --help=short display options specific to this package 1378 --help=recursive display the short help of all the included packages 1379 -V, --version display version information and exit 1380 -q, --quiet, --silent do not print \`checking ...' messages 1381 --cache-file=FILE cache test results in FILE [disabled] 1382 -C, --config-cache alias for \`--cache-file=config.cache' 1383 -n, --no-create do not create output files 1384 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1385 1386Installation directories: 1387 --prefix=PREFIX install architecture-independent files in PREFIX 1388 [$ac_default_prefix] 1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1390 [PREFIX] 1391 1392By default, \`make install' will install all the files in 1393\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1394an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1395for instance \`--prefix=\$HOME'. 1396 1397For better control, use the options below. 1398 1399Fine tuning of the installation directories: 1400 --bindir=DIR user executables [EPREFIX/bin] 1401 --sbindir=DIR system admin executables [EPREFIX/sbin] 1402 --libexecdir=DIR program executables [EPREFIX/libexec] 1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1406 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1407 --libdir=DIR object code libraries [EPREFIX/lib] 1408 --includedir=DIR C header files [PREFIX/include] 1409 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1412 --infodir=DIR info documentation [DATAROOTDIR/info] 1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1414 --mandir=DIR man documentation [DATAROOTDIR/man] 1415 --docdir=DIR documentation root [DATAROOTDIR/doc/libaacs] 1416 --htmldir=DIR html documentation [DOCDIR] 1417 --dvidir=DIR dvi documentation [DOCDIR] 1418 --pdfdir=DIR pdf documentation [DOCDIR] 1419 --psdir=DIR ps documentation [DOCDIR] 1420_ACEOF 1421 1422 cat <<\_ACEOF 1423 1424Program names: 1425 --program-prefix=PREFIX prepend PREFIX to installed program names 1426 --program-suffix=SUFFIX append SUFFIX to installed program names 1427 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1428 1429System types: 1430 --build=BUILD configure for building on BUILD [guessed] 1431 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1432 --target=TARGET configure for building compilers for TARGET [HOST] 1433_ACEOF 1434fi 1435 1436if test -n "$ac_init_help"; then 1437 case $ac_init_help in 1438 short | recursive ) echo "Configuration of libaacs 0.11.0:";; 1439 esac 1440 cat <<\_ACEOF 1441 1442Optional Features: 1443 --disable-option-checking ignore unrecognized --enable/--with options 1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1446 --enable-silent-rules less verbose build output (undo: "make V=1") 1447 --disable-silent-rules verbose build output (undo: "make V=0") 1448 --enable-maintainer-mode 1449 enable make rules and dependencies not useful (and 1450 sometimes confusing) to the casual installer 1451 --enable-werror set warnings as errors via -Werror 1452 [default=disabled] 1453 --disable-extra-warnings 1454 set extra warnings [default=enabled] 1455 --disable-optimizations disable optimizations [default=enabled] 1456 --enable-dependency-tracking 1457 do not reject slow dependency extractors 1458 --disable-dependency-tracking 1459 speeds up one-time build 1460 --enable-shared[=PKGS] build shared libraries [default=yes] 1461 --enable-static[=PKGS] build static libraries [default=yes] 1462 --enable-fast-install[=PKGS] 1463 optimize for fast installation [default=yes] 1464 --disable-libtool-lock avoid locking (might break parallel builds) 1465 --disable-largefile omit support for large files 1466 1467Optional Packages: 1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1470 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1471 both] 1472 --with-aix-soname=aix|svr4|both 1473 shared library versioning (aka "SONAME") variant to 1474 provide on AIX, [default=aix]. 1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1476 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1477 compiler's sysroot if not specified). 1478 --with-libgcrypt-prefix=PFX 1479 prefix where LIBGCRYPT is installed (optional) 1480 --with-libgpg-error-prefix=PFX 1481 prefix where GPG Error is installed (optional) 1482 1483 1484Some influential environment variables: 1485 CC C compiler command 1486 CFLAGS C compiler flags 1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1488 nonstandard directory <lib dir> 1489 LIBS libraries to pass to the linker, e.g. -l<library> 1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1491 you have headers in a nonstandard directory <include dir> 1492 LT_SYS_LIBRARY_PATH 1493 User-defined run-time library search path. 1494 CPP C preprocessor 1495 YACC The `Yet Another Compiler Compiler' implementation to use. 1496 Defaults to the first program found out of: `bison -y', `byacc', 1497 `yacc'. 1498 YFLAGS The list of arguments that will be passed by default to $YACC. 1499 This script will default YFLAGS to the empty string to avoid a 1500 default value of `-d' given by some make applications. 1501 1502Use these variables to override the choices made by `configure' or to help 1503it to find libraries and programs with nonstandard names/locations. 1504 1505Report bugs to <http://www.videolan.org/developers/libaacs.html>. 1506_ACEOF 1507ac_status=$? 1508fi 1509 1510if test "$ac_init_help" = "recursive"; then 1511 # If there are subdirs, report their specific --help. 1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1513 test -d "$ac_dir" || 1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1515 continue 1516 ac_builddir=. 1517 1518case "$ac_dir" in 1519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1520*) 1521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1522 # A ".." for each directory in $ac_dir_suffix. 1523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1524 case $ac_top_builddir_sub in 1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1527 esac ;; 1528esac 1529ac_abs_top_builddir=$ac_pwd 1530ac_abs_builddir=$ac_pwd$ac_dir_suffix 1531# for backward compatibility: 1532ac_top_builddir=$ac_top_build_prefix 1533 1534case $srcdir in 1535 .) # We are building in place. 1536 ac_srcdir=. 1537 ac_top_srcdir=$ac_top_builddir_sub 1538 ac_abs_top_srcdir=$ac_pwd ;; 1539 [\\/]* | ?:[\\/]* ) # Absolute name. 1540 ac_srcdir=$srcdir$ac_dir_suffix; 1541 ac_top_srcdir=$srcdir 1542 ac_abs_top_srcdir=$srcdir ;; 1543 *) # Relative name. 1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1545 ac_top_srcdir=$ac_top_build_prefix$srcdir 1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1547esac 1548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1549 1550 cd "$ac_dir" || { ac_status=$?; continue; } 1551 # Check for guested configure. 1552 if test -f "$ac_srcdir/configure.gnu"; then 1553 echo && 1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1555 elif test -f "$ac_srcdir/configure"; then 1556 echo && 1557 $SHELL "$ac_srcdir/configure" --help=recursive 1558 else 1559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1560 fi || ac_status=$? 1561 cd "$ac_pwd" || { ac_status=$?; break; } 1562 done 1563fi 1564 1565test -n "$ac_init_help" && exit $ac_status 1566if $ac_init_version; then 1567 cat <<\_ACEOF 1568libaacs configure 0.11.0 1569generated by GNU Autoconf 2.69 1570 1571Copyright (C) 2012 Free Software Foundation, Inc. 1572This configure script is free software; the Free Software Foundation 1573gives unlimited permission to copy, distribute and modify it. 1574_ACEOF 1575 exit 1576fi 1577 1578## ------------------------ ## 1579## Autoconf initialization. ## 1580## ------------------------ ## 1581 1582# ac_fn_c_try_compile LINENO 1583# -------------------------- 1584# Try to compile conftest.$ac_ext, and return whether this succeeded. 1585ac_fn_c_try_compile () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 rm -f conftest.$ac_objext 1589 if { { ac_try="$ac_compile" 1590case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593esac 1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595$as_echo "$ac_try_echo"; } >&5 1596 (eval "$ac_compile") 2>conftest.err 1597 ac_status=$? 1598 if test -s conftest.err; then 1599 grep -v '^ *+' conftest.err >conftest.er1 1600 cat conftest.er1 >&5 1601 mv -f conftest.er1 conftest.err 1602 fi 1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604 test $ac_status = 0; } && { 1605 test -z "$ac_c_werror_flag" || 1606 test ! -s conftest.err 1607 } && test -s conftest.$ac_objext; then : 1608 ac_retval=0 1609else 1610 $as_echo "$as_me: failed program was:" >&5 1611sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=1 1614fi 1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1616 as_fn_set_status $ac_retval 1617 1618} # ac_fn_c_try_compile 1619 1620# ac_fn_c_try_link LINENO 1621# ----------------------- 1622# Try to link conftest.$ac_ext, and return whether this succeeded. 1623ac_fn_c_try_link () 1624{ 1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 rm -f conftest.$ac_objext conftest$ac_exeext 1627 if { { ac_try="$ac_link" 1628case "(($ac_try" in 1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1630 *) ac_try_echo=$ac_try;; 1631esac 1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1633$as_echo "$ac_try_echo"; } >&5 1634 (eval "$ac_link") 2>conftest.err 1635 ac_status=$? 1636 if test -s conftest.err; then 1637 grep -v '^ *+' conftest.err >conftest.er1 1638 cat conftest.er1 >&5 1639 mv -f conftest.er1 conftest.err 1640 fi 1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1642 test $ac_status = 0; } && { 1643 test -z "$ac_c_werror_flag" || 1644 test ! -s conftest.err 1645 } && test -s conftest$ac_exeext && { 1646 test "$cross_compiling" = yes || 1647 test -x conftest$ac_exeext 1648 }; then : 1649 ac_retval=0 1650else 1651 $as_echo "$as_me: failed program was:" >&5 1652sed 's/^/| /' conftest.$ac_ext >&5 1653 1654 ac_retval=1 1655fi 1656 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1657 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1658 # interfere with the next link command; also delete a directory that is 1659 # left behind by Apple's compiler. We do this before executing the actions. 1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1662 as_fn_set_status $ac_retval 1663 1664} # ac_fn_c_try_link 1665 1666# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1667# ------------------------------------------------------- 1668# Tests whether HEADER exists and can be compiled using the include files in 1669# INCLUDES, setting the cache variable VAR accordingly. 1670ac_fn_c_check_header_compile () 1671{ 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1674$as_echo_n "checking for $2... " >&6; } 1675if eval \${$3+:} false; then : 1676 $as_echo_n "(cached) " >&6 1677else 1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1679/* end confdefs.h. */ 1680$4 1681#include <$2> 1682_ACEOF 1683if ac_fn_c_try_compile "$LINENO"; then : 1684 eval "$3=yes" 1685else 1686 eval "$3=no" 1687fi 1688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1689fi 1690eval ac_res=\$$3 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1692$as_echo "$ac_res" >&6; } 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 1695} # ac_fn_c_check_header_compile 1696 1697# ac_fn_c_try_cpp LINENO 1698# ---------------------- 1699# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1700ac_fn_c_try_cpp () 1701{ 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 if { { ac_try="$ac_cpp conftest.$ac_ext" 1704case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1711 ac_status=$? 1712 if test -s conftest.err; then 1713 grep -v '^ *+' conftest.err >conftest.er1 1714 cat conftest.er1 >&5 1715 mv -f conftest.er1 conftest.err 1716 fi 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; } > conftest.i && { 1719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1720 test ! -s conftest.err 1721 }; then : 1722 ac_retval=0 1723else 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=1 1728fi 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_cpp 1733 1734# ac_fn_c_try_run LINENO 1735# ---------------------- 1736# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1737# that executables *can* be run. 1738ac_fn_c_try_run () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 if { { ac_try="$ac_link" 1742case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745esac 1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747$as_echo "$ac_try_echo"; } >&5 1748 (eval "$ac_link") 2>&5 1749 ac_status=$? 1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1751 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1752 { { case "(($ac_try" in 1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1754 *) ac_try_echo=$ac_try;; 1755esac 1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1757$as_echo "$ac_try_echo"; } >&5 1758 (eval "$ac_try") 2>&5 1759 ac_status=$? 1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1761 test $ac_status = 0; }; }; then : 1762 ac_retval=0 1763else 1764 $as_echo "$as_me: program exited with status $ac_status" >&5 1765 $as_echo "$as_me: failed program was:" >&5 1766sed 's/^/| /' conftest.$ac_ext >&5 1767 1768 ac_retval=$ac_status 1769fi 1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1772 as_fn_set_status $ac_retval 1773 1774} # ac_fn_c_try_run 1775 1776# ac_fn_c_check_func LINENO FUNC VAR 1777# ---------------------------------- 1778# Tests whether FUNC exists, setting the cache variable VAR accordingly 1779ac_fn_c_check_func () 1780{ 1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1783$as_echo_n "checking for $2... " >&6; } 1784if eval \${$3+:} false; then : 1785 $as_echo_n "(cached) " >&6 1786else 1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1788/* end confdefs.h. */ 1789/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1790 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1791#define $2 innocuous_$2 1792 1793/* System header to define __stub macros and hopefully few prototypes, 1794 which can conflict with char $2 (); below. 1795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1796 <limits.h> exists even on freestanding compilers. */ 1797 1798#ifdef __STDC__ 1799# include <limits.h> 1800#else 1801# include <assert.h> 1802#endif 1803 1804#undef $2 1805 1806/* Override any GCC internal prototype to avoid an error. 1807 Use char because int might match the return type of a GCC 1808 builtin and then its argument prototype would still apply. */ 1809#ifdef __cplusplus 1810extern "C" 1811#endif 1812char $2 (); 1813/* The GNU C library defines this for functions which it implements 1814 to always fail with ENOSYS. Some functions are actually named 1815 something starting with __ and the normal name is an alias. */ 1816#if defined __stub_$2 || defined __stub___$2 1817choke me 1818#endif 1819 1820int 1821main () 1822{ 1823return $2 (); 1824 ; 1825 return 0; 1826} 1827_ACEOF 1828if ac_fn_c_try_link "$LINENO"; then : 1829 eval "$3=yes" 1830else 1831 eval "$3=no" 1832fi 1833rm -f core conftest.err conftest.$ac_objext \ 1834 conftest$ac_exeext conftest.$ac_ext 1835fi 1836eval ac_res=\$$3 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1838$as_echo "$ac_res" >&6; } 1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1840 1841} # ac_fn_c_check_func 1842 1843# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1844# ------------------------------------------------------- 1845# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1846# the include files in INCLUDES and setting the cache variable VAR 1847# accordingly. 1848ac_fn_c_check_header_mongrel () 1849{ 1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1851 if eval \${$3+:} false; then : 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1853$as_echo_n "checking for $2... " >&6; } 1854if eval \${$3+:} false; then : 1855 $as_echo_n "(cached) " >&6 1856fi 1857eval ac_res=\$$3 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1859$as_echo "$ac_res" >&6; } 1860else 1861 # Is the header compilable? 1862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1863$as_echo_n "checking $2 usability... " >&6; } 1864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1865/* end confdefs.h. */ 1866$4 1867#include <$2> 1868_ACEOF 1869if ac_fn_c_try_compile "$LINENO"; then : 1870 ac_header_compiler=yes 1871else 1872 ac_header_compiler=no 1873fi 1874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1876$as_echo "$ac_header_compiler" >&6; } 1877 1878# Is the header present? 1879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1880$as_echo_n "checking $2 presence... " >&6; } 1881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1882/* end confdefs.h. */ 1883#include <$2> 1884_ACEOF 1885if ac_fn_c_try_cpp "$LINENO"; then : 1886 ac_header_preproc=yes 1887else 1888 ac_header_preproc=no 1889fi 1890rm -f conftest.err conftest.i conftest.$ac_ext 1891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1892$as_echo "$ac_header_preproc" >&6; } 1893 1894# So? What about this header? 1895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1896 yes:no: ) 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1898$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1900$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1901 ;; 1902 no:yes:* ) 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1904$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1906$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1908$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1910$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1912$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1913( $as_echo "## -------------------------------------------------------------- ## 1914## Report this to http://www.videolan.org/developers/libaacs.html ## 1915## -------------------------------------------------------------- ##" 1916 ) | sed "s/^/$as_me: WARNING: /" >&2 1917 ;; 1918esac 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1920$as_echo_n "checking for $2... " >&6; } 1921if eval \${$3+:} false; then : 1922 $as_echo_n "(cached) " >&6 1923else 1924 eval "$3=\$ac_header_compiler" 1925fi 1926eval ac_res=\$$3 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1928$as_echo "$ac_res" >&6; } 1929fi 1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1931 1932} # ac_fn_c_check_header_mongrel 1933 1934# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1935# --------------------------------------------- 1936# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1937# accordingly. 1938ac_fn_c_check_decl () 1939{ 1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1941 as_decl_name=`echo $2|sed 's/ *(.*//'` 1942 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1944$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1945if eval \${$3+:} false; then : 1946 $as_echo_n "(cached) " >&6 1947else 1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1949/* end confdefs.h. */ 1950$4 1951int 1952main () 1953{ 1954#ifndef $as_decl_name 1955#ifdef __cplusplus 1956 (void) $as_decl_use; 1957#else 1958 (void) $as_decl_name; 1959#endif 1960#endif 1961 1962 ; 1963 return 0; 1964} 1965_ACEOF 1966if ac_fn_c_try_compile "$LINENO"; then : 1967 eval "$3=yes" 1968else 1969 eval "$3=no" 1970fi 1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1972fi 1973eval ac_res=\$$3 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1975$as_echo "$ac_res" >&6; } 1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1977 1978} # ac_fn_c_check_decl 1979cat >config.log <<_ACEOF 1980This file contains any messages produced by compilers while 1981running configure, to aid debugging if configure makes a mistake. 1982 1983It was created by libaacs $as_me 0.11.0, which was 1984generated by GNU Autoconf 2.69. Invocation command line was 1985 1986 $ $0 $@ 1987 1988_ACEOF 1989exec 5>>config.log 1990{ 1991cat <<_ASUNAME 1992## --------- ## 1993## Platform. ## 1994## --------- ## 1995 1996hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1997uname -m = `(uname -m) 2>/dev/null || echo unknown` 1998uname -r = `(uname -r) 2>/dev/null || echo unknown` 1999uname -s = `(uname -s) 2>/dev/null || echo unknown` 2000uname -v = `(uname -v) 2>/dev/null || echo unknown` 2001 2002/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2003/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2004 2005/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2006/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2007/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2008/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2009/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2010/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2011/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2012 2013_ASUNAME 2014 2015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2016for as_dir in $PATH 2017do 2018 IFS=$as_save_IFS 2019 test -z "$as_dir" && as_dir=. 2020 $as_echo "PATH: $as_dir" 2021 done 2022IFS=$as_save_IFS 2023 2024} >&5 2025 2026cat >&5 <<_ACEOF 2027 2028 2029## ----------- ## 2030## Core tests. ## 2031## ----------- ## 2032 2033_ACEOF 2034 2035 2036# Keep a trace of the command line. 2037# Strip out --no-create and --no-recursion so they do not pile up. 2038# Strip out --silent because we don't want to record it for future runs. 2039# Also quote any args containing shell meta-characters. 2040# Make two passes to allow for proper duplicate-argument suppression. 2041ac_configure_args= 2042ac_configure_args0= 2043ac_configure_args1= 2044ac_must_keep_next=false 2045for ac_pass in 1 2 2046do 2047 for ac_arg 2048 do 2049 case $ac_arg in 2050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2052 | -silent | --silent | --silen | --sile | --sil) 2053 continue ;; 2054 *\'*) 2055 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2056 esac 2057 case $ac_pass in 2058 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2059 2) 2060 as_fn_append ac_configure_args1 " '$ac_arg'" 2061 if test $ac_must_keep_next = true; then 2062 ac_must_keep_next=false # Got value, back to normal. 2063 else 2064 case $ac_arg in 2065 *=* | --config-cache | -C | -disable-* | --disable-* \ 2066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2068 | -with-* | --with-* | -without-* | --without-* | --x) 2069 case "$ac_configure_args0 " in 2070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2071 esac 2072 ;; 2073 -* ) ac_must_keep_next=true ;; 2074 esac 2075 fi 2076 as_fn_append ac_configure_args " '$ac_arg'" 2077 ;; 2078 esac 2079 done 2080done 2081{ ac_configure_args0=; unset ac_configure_args0;} 2082{ ac_configure_args1=; unset ac_configure_args1;} 2083 2084# When interrupted or exit'd, cleanup temporary files, and complete 2085# config.log. We remove comments because anyway the quotes in there 2086# would cause problems or look ugly. 2087# WARNING: Use '\'' to represent an apostrophe within the trap. 2088# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2089trap 'exit_status=$? 2090 # Save into config.log some information that might help in debugging. 2091 { 2092 echo 2093 2094 $as_echo "## ---------------- ## 2095## Cache variables. ## 2096## ---------------- ##" 2097 echo 2098 # The following way of writing the cache mishandles newlines in values, 2099( 2100 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2101 eval ac_val=\$$ac_var 2102 case $ac_val in #( 2103 *${as_nl}*) 2104 case $ac_var in #( 2105 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2106$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2107 esac 2108 case $ac_var in #( 2109 _ | IFS | as_nl) ;; #( 2110 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2111 *) { eval $ac_var=; unset $ac_var;} ;; 2112 esac ;; 2113 esac 2114 done 2115 (set) 2>&1 | 2116 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2117 *${as_nl}ac_space=\ *) 2118 sed -n \ 2119 "s/'\''/'\''\\\\'\'''\''/g; 2120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2121 ;; #( 2122 *) 2123 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2124 ;; 2125 esac | 2126 sort 2127) 2128 echo 2129 2130 $as_echo "## ----------------- ## 2131## Output variables. ## 2132## ----------------- ##" 2133 echo 2134 for ac_var in $ac_subst_vars 2135 do 2136 eval ac_val=\$$ac_var 2137 case $ac_val in 2138 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2139 esac 2140 $as_echo "$ac_var='\''$ac_val'\''" 2141 done | sort 2142 echo 2143 2144 if test -n "$ac_subst_files"; then 2145 $as_echo "## ------------------- ## 2146## File substitutions. ## 2147## ------------------- ##" 2148 echo 2149 for ac_var in $ac_subst_files 2150 do 2151 eval ac_val=\$$ac_var 2152 case $ac_val in 2153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2154 esac 2155 $as_echo "$ac_var='\''$ac_val'\''" 2156 done | sort 2157 echo 2158 fi 2159 2160 if test -s confdefs.h; then 2161 $as_echo "## ----------- ## 2162## confdefs.h. ## 2163## ----------- ##" 2164 echo 2165 cat confdefs.h 2166 echo 2167 fi 2168 test "$ac_signal" != 0 && 2169 $as_echo "$as_me: caught signal $ac_signal" 2170 $as_echo "$as_me: exit $exit_status" 2171 } >&5 2172 rm -f core *.core core.conftest.* && 2173 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2174 exit $exit_status 2175' 0 2176for ac_signal in 1 2 13 15; do 2177 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2178done 2179ac_signal=0 2180 2181# confdefs.h avoids OS command line length limits that DEFS can exceed. 2182rm -f -r conftest* confdefs.h 2183 2184$as_echo "/* confdefs.h */" > confdefs.h 2185 2186# Predefined preprocessor variables. 2187 2188cat >>confdefs.h <<_ACEOF 2189#define PACKAGE_NAME "$PACKAGE_NAME" 2190_ACEOF 2191 2192cat >>confdefs.h <<_ACEOF 2193#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2194_ACEOF 2195 2196cat >>confdefs.h <<_ACEOF 2197#define PACKAGE_VERSION "$PACKAGE_VERSION" 2198_ACEOF 2199 2200cat >>confdefs.h <<_ACEOF 2201#define PACKAGE_STRING "$PACKAGE_STRING" 2202_ACEOF 2203 2204cat >>confdefs.h <<_ACEOF 2205#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2206_ACEOF 2207 2208cat >>confdefs.h <<_ACEOF 2209#define PACKAGE_URL "$PACKAGE_URL" 2210_ACEOF 2211 2212 2213# Let the site file select an alternate cache file if it wants to. 2214# Prefer an explicitly selected file to automatically selected ones. 2215ac_site_file1=NONE 2216ac_site_file2=NONE 2217if test -n "$CONFIG_SITE"; then 2218 # We do not want a PATH search for config.site. 2219 case $CONFIG_SITE in #(( 2220 -*) ac_site_file1=./$CONFIG_SITE;; 2221 */*) ac_site_file1=$CONFIG_SITE;; 2222 *) ac_site_file1=./$CONFIG_SITE;; 2223 esac 2224elif test "x$prefix" != xNONE; then 2225 ac_site_file1=$prefix/share/config.site 2226 ac_site_file2=$prefix/etc/config.site 2227else 2228 ac_site_file1=$ac_default_prefix/share/config.site 2229 ac_site_file2=$ac_default_prefix/etc/config.site 2230fi 2231for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2232do 2233 test "x$ac_site_file" = xNONE && continue 2234 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2236$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2237 sed 's/^/| /' "$ac_site_file" >&5 2238 . "$ac_site_file" \ 2239 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2241as_fn_error $? "failed to load site script $ac_site_file 2242See \`config.log' for more details" "$LINENO" 5; } 2243 fi 2244done 2245 2246if test -r "$cache_file"; then 2247 # Some versions of bash will fail to source /dev/null (special files 2248 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2249 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2251$as_echo "$as_me: loading cache $cache_file" >&6;} 2252 case $cache_file in 2253 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2254 *) . "./$cache_file";; 2255 esac 2256 fi 2257else 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2259$as_echo "$as_me: creating cache $cache_file" >&6;} 2260 >$cache_file 2261fi 2262 2263# Check that the precious variables saved in the cache have kept the same 2264# value. 2265ac_cache_corrupted=false 2266for ac_var in $ac_precious_vars; do 2267 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2268 eval ac_new_set=\$ac_env_${ac_var}_set 2269 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2270 eval ac_new_val=\$ac_env_${ac_var}_value 2271 case $ac_old_set,$ac_new_set in 2272 set,) 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2274$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2275 ac_cache_corrupted=: ;; 2276 ,set) 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2278$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2279 ac_cache_corrupted=: ;; 2280 ,);; 2281 *) 2282 if test "x$ac_old_val" != "x$ac_new_val"; then 2283 # differences in whitespace do not lead to failure. 2284 ac_old_val_w=`echo x $ac_old_val` 2285 ac_new_val_w=`echo x $ac_new_val` 2286 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2288$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2289 ac_cache_corrupted=: 2290 else 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2292$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2293 eval $ac_var=\$ac_old_val 2294 fi 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2296$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2298$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2299 fi;; 2300 esac 2301 # Pass precious variables to config.status. 2302 if test "$ac_new_set" = set; then 2303 case $ac_new_val in 2304 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2305 *) ac_arg=$ac_var=$ac_new_val ;; 2306 esac 2307 case " $ac_configure_args " in 2308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2309 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2310 esac 2311 fi 2312done 2313if $ac_cache_corrupted; then 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2317$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2318 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2319fi 2320## -------------------- ## 2321## Main body of script. ## 2322## -------------------- ## 2323 2324ac_ext=c 2325ac_cpp='$CPP $CPPFLAGS' 2326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2328ac_compiler_gnu=$ac_cv_c_compiler_gnu 2329 2330 2331ac_aux_dir= 2332for ac_dir in build-aux "$srcdir"/build-aux; do 2333 if test -f "$ac_dir/install-sh"; then 2334 ac_aux_dir=$ac_dir 2335 ac_install_sh="$ac_aux_dir/install-sh -c" 2336 break 2337 elif test -f "$ac_dir/install.sh"; then 2338 ac_aux_dir=$ac_dir 2339 ac_install_sh="$ac_aux_dir/install.sh -c" 2340 break 2341 elif test -f "$ac_dir/shtool"; then 2342 ac_aux_dir=$ac_dir 2343 ac_install_sh="$ac_aux_dir/shtool install -c" 2344 break 2345 fi 2346done 2347if test -z "$ac_aux_dir"; then 2348 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2349fi 2350 2351# These three variables are undocumented and unsupported, 2352# and are intended to be withdrawn in a future Autoconf release. 2353# They can cause serious problems if a builder's source tree is in a directory 2354# whose full name contains unusual characters. 2355ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2356ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2357ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2358 2359 2360 2361# Make sure we can run config.sub. 2362$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2363 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2364 2365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2366$as_echo_n "checking build system type... " >&6; } 2367if ${ac_cv_build+:} false; then : 2368 $as_echo_n "(cached) " >&6 2369else 2370 ac_build_alias=$build_alias 2371test "x$ac_build_alias" = x && 2372 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2373test "x$ac_build_alias" = x && 2374 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2375ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2376 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2377 2378fi 2379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2380$as_echo "$ac_cv_build" >&6; } 2381case $ac_cv_build in 2382*-*-*) ;; 2383*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2384esac 2385build=$ac_cv_build 2386ac_save_IFS=$IFS; IFS='-' 2387set x $ac_cv_build 2388shift 2389build_cpu=$1 2390build_vendor=$2 2391shift; shift 2392# Remember, the first character of IFS is used to create $*, 2393# except with old shells: 2394build_os=$* 2395IFS=$ac_save_IFS 2396case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2397 2398 2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2400$as_echo_n "checking host system type... " >&6; } 2401if ${ac_cv_host+:} false; then : 2402 $as_echo_n "(cached) " >&6 2403else 2404 if test "x$host_alias" = x; then 2405 ac_cv_host=$ac_cv_build 2406else 2407 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2408 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2409fi 2410 2411fi 2412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2413$as_echo "$ac_cv_host" >&6; } 2414case $ac_cv_host in 2415*-*-*) ;; 2416*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2417esac 2418host=$ac_cv_host 2419ac_save_IFS=$IFS; IFS='-' 2420set x $ac_cv_host 2421shift 2422host_cpu=$1 2423host_vendor=$2 2424shift; shift 2425# Remember, the first character of IFS is used to create $*, 2426# except with old shells: 2427host_os=$* 2428IFS=$ac_save_IFS 2429case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2430 2431 2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2433$as_echo_n "checking target system type... " >&6; } 2434if ${ac_cv_target+:} false; then : 2435 $as_echo_n "(cached) " >&6 2436else 2437 if test "x$target_alias" = x; then 2438 ac_cv_target=$ac_cv_host 2439else 2440 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2442fi 2443 2444fi 2445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2446$as_echo "$ac_cv_target" >&6; } 2447case $ac_cv_target in 2448*-*-*) ;; 2449*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2450esac 2451target=$ac_cv_target 2452ac_save_IFS=$IFS; IFS='-' 2453set x $ac_cv_target 2454shift 2455target_cpu=$1 2456target_vendor=$2 2457shift; shift 2458# Remember, the first character of IFS is used to create $*, 2459# except with old shells: 2460target_os=$* 2461IFS=$ac_save_IFS 2462case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2463 2464 2465# The aliases save the names the user supplied, while $host etc. 2466# will get canonicalized. 2467test -n "$target_alias" && 2468 test "$program_prefix$program_suffix$program_transform_name" = \ 2469 NONENONEs,x,x, && 2470 program_prefix=${target_alias}- 2471 2472am__api_version='1.16' 2473 2474# Find a good install program. We prefer a C program (faster), 2475# so one script is as good as another. But avoid the broken or 2476# incompatible versions: 2477# SysV /etc/install, /usr/sbin/install 2478# SunOS /usr/etc/install 2479# IRIX /sbin/install 2480# AIX /bin/install 2481# AmigaOS /C/install, which installs bootblocks on floppy discs 2482# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2483# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2484# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2485# OS/2's system install, which has a completely different semantic 2486# ./install, which can be erroneously created by make from ./install.sh. 2487# Reject install programs that cannot install multiple files. 2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2489$as_echo_n "checking for a BSD-compatible install... " >&6; } 2490if test -z "$INSTALL"; then 2491if ${ac_cv_path_install+:} false; then : 2492 $as_echo_n "(cached) " >&6 2493else 2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2495for as_dir in $PATH 2496do 2497 IFS=$as_save_IFS 2498 test -z "$as_dir" && as_dir=. 2499 # Account for people who put trailing slashes in PATH elements. 2500case $as_dir/ in #(( 2501 ./ | .// | /[cC]/* | \ 2502 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2503 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2504 /usr/ucb/* ) ;; 2505 *) 2506 # OSF1 and SCO ODT 3.0 have their own names for install. 2507 # Don't use installbsd from OSF since it installs stuff as root 2508 # by default. 2509 for ac_prog in ginstall scoinst install; do 2510 for ac_exec_ext in '' $ac_executable_extensions; do 2511 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2512 if test $ac_prog = install && 2513 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2514 # AIX install. It has an incompatible calling convention. 2515 : 2516 elif test $ac_prog = install && 2517 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2518 # program-specific install script used by HP pwplus--don't use. 2519 : 2520 else 2521 rm -rf conftest.one conftest.two conftest.dir 2522 echo one > conftest.one 2523 echo two > conftest.two 2524 mkdir conftest.dir 2525 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2526 test -s conftest.one && test -s conftest.two && 2527 test -s conftest.dir/conftest.one && 2528 test -s conftest.dir/conftest.two 2529 then 2530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2531 break 3 2532 fi 2533 fi 2534 fi 2535 done 2536 done 2537 ;; 2538esac 2539 2540 done 2541IFS=$as_save_IFS 2542 2543rm -rf conftest.one conftest.two conftest.dir 2544 2545fi 2546 if test "${ac_cv_path_install+set}" = set; then 2547 INSTALL=$ac_cv_path_install 2548 else 2549 # As a last resort, use the slow shell script. Don't cache a 2550 # value for INSTALL within a source directory, because that will 2551 # break other packages using the cache if that directory is 2552 # removed, or if the value is a relative name. 2553 INSTALL=$ac_install_sh 2554 fi 2555fi 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2557$as_echo "$INSTALL" >&6; } 2558 2559# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2560# It thinks the first close brace ends the variable substitution. 2561test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2562 2563test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2564 2565test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2566 2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2568$as_echo_n "checking whether build environment is sane... " >&6; } 2569# Reject unsafe characters in $srcdir or the absolute working directory 2570# name. Accept space and tab only in the latter. 2571am_lf=' 2572' 2573case `pwd` in 2574 *[\\\"\#\$\&\'\`$am_lf]*) 2575 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2576esac 2577case $srcdir in 2578 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2579 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2580esac 2581 2582# Do 'set' in a subshell so we don't clobber the current shell's 2583# arguments. Must try -L first in case configure is actually a 2584# symlink; some systems play weird games with the mod time of symlinks 2585# (eg FreeBSD returns the mod time of the symlink's containing 2586# directory). 2587if ( 2588 am_has_slept=no 2589 for am_try in 1 2; do 2590 echo "timestamp, slept: $am_has_slept" > conftest.file 2591 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2592 if test "$*" = "X"; then 2593 # -L didn't work. 2594 set X `ls -t "$srcdir/configure" conftest.file` 2595 fi 2596 if test "$*" != "X $srcdir/configure conftest.file" \ 2597 && test "$*" != "X conftest.file $srcdir/configure"; then 2598 2599 # If neither matched, then we have a broken ls. This can happen 2600 # if, for instance, CONFIG_SHELL is bash and it inherits a 2601 # broken ls alias from the environment. This has actually 2602 # happened. Such a system could not be considered "sane". 2603 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2604 alias in your environment" "$LINENO" 5 2605 fi 2606 if test "$2" = conftest.file || test $am_try -eq 2; then 2607 break 2608 fi 2609 # Just in case. 2610 sleep 1 2611 am_has_slept=yes 2612 done 2613 test "$2" = conftest.file 2614 ) 2615then 2616 # Ok. 2617 : 2618else 2619 as_fn_error $? "newly created file is older than distributed files! 2620Check your system clock" "$LINENO" 5 2621fi 2622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2623$as_echo "yes" >&6; } 2624# If we didn't sleep, we still need to ensure time stamps of config.status and 2625# generated files are strictly newer. 2626am_sleep_pid= 2627if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2628 ( sleep 1 ) & 2629 am_sleep_pid=$! 2630fi 2631 2632rm -f conftest.file 2633 2634test "$program_prefix" != NONE && 2635 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2636# Use a double $ so make ignores it. 2637test "$program_suffix" != NONE && 2638 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2639# Double any \ or $. 2640# By default was `s,x,x', remove it if useless. 2641ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2642program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2643 2644# Expand $ac_aux_dir to an absolute path. 2645am_aux_dir=`cd "$ac_aux_dir" && pwd` 2646 2647if test x"${MISSING+set}" != xset; then 2648 case $am_aux_dir in 2649 *\ * | *\ *) 2650 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2651 *) 2652 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2653 esac 2654fi 2655# Use eval to expand $SHELL 2656if eval "$MISSING --is-lightweight"; then 2657 am_missing_run="$MISSING " 2658else 2659 am_missing_run= 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2661$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2662fi 2663 2664if test x"${install_sh+set}" != xset; then 2665 case $am_aux_dir in 2666 *\ * | *\ *) 2667 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2668 *) 2669 install_sh="\${SHELL} $am_aux_dir/install-sh" 2670 esac 2671fi 2672 2673# Installed binaries are usually stripped using 'strip' when the user 2674# run "make install-strip". However 'strip' might not be the right 2675# tool to use in cross-compilation environments, therefore Automake 2676# will honor the 'STRIP' environment variable to overrule this program. 2677if test "$cross_compiling" != no; then 2678 if test -n "$ac_tool_prefix"; then 2679 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2680set dummy ${ac_tool_prefix}strip; ac_word=$2 2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2682$as_echo_n "checking for $ac_word... " >&6; } 2683if ${ac_cv_prog_STRIP+:} false; then : 2684 $as_echo_n "(cached) " >&6 2685else 2686 if test -n "$STRIP"; then 2687 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2688else 2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2690for as_dir in $PATH 2691do 2692 IFS=$as_save_IFS 2693 test -z "$as_dir" && as_dir=. 2694 for ac_exec_ext in '' $ac_executable_extensions; do 2695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2696 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2698 break 2 2699 fi 2700done 2701 done 2702IFS=$as_save_IFS 2703 2704fi 2705fi 2706STRIP=$ac_cv_prog_STRIP 2707if test -n "$STRIP"; then 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2709$as_echo "$STRIP" >&6; } 2710else 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2712$as_echo "no" >&6; } 2713fi 2714 2715 2716fi 2717if test -z "$ac_cv_prog_STRIP"; then 2718 ac_ct_STRIP=$STRIP 2719 # Extract the first word of "strip", so it can be a program name with args. 2720set dummy strip; ac_word=$2 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2722$as_echo_n "checking for $ac_word... " >&6; } 2723if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2724 $as_echo_n "(cached) " >&6 2725else 2726 if test -n "$ac_ct_STRIP"; then 2727 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2728else 2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2730for as_dir in $PATH 2731do 2732 IFS=$as_save_IFS 2733 test -z "$as_dir" && as_dir=. 2734 for ac_exec_ext in '' $ac_executable_extensions; do 2735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2736 ac_cv_prog_ac_ct_STRIP="strip" 2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2738 break 2 2739 fi 2740done 2741 done 2742IFS=$as_save_IFS 2743 2744fi 2745fi 2746ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2747if test -n "$ac_ct_STRIP"; then 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2749$as_echo "$ac_ct_STRIP" >&6; } 2750else 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2752$as_echo "no" >&6; } 2753fi 2754 2755 if test "x$ac_ct_STRIP" = x; then 2756 STRIP=":" 2757 else 2758 case $cross_compiling:$ac_tool_warned in 2759yes:) 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2762ac_tool_warned=yes ;; 2763esac 2764 STRIP=$ac_ct_STRIP 2765 fi 2766else 2767 STRIP="$ac_cv_prog_STRIP" 2768fi 2769 2770fi 2771INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2772 2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2774$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2775if test -z "$MKDIR_P"; then 2776 if ${ac_cv_path_mkdir+:} false; then : 2777 $as_echo_n "(cached) " >&6 2778else 2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2780for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2781do 2782 IFS=$as_save_IFS 2783 test -z "$as_dir" && as_dir=. 2784 for ac_prog in mkdir gmkdir; do 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2787 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2788 'mkdir (GNU coreutils) '* | \ 2789 'mkdir (coreutils) '* | \ 2790 'mkdir (fileutils) '4.1*) 2791 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2792 break 3;; 2793 esac 2794 done 2795 done 2796 done 2797IFS=$as_save_IFS 2798 2799fi 2800 2801 test -d ./--version && rmdir ./--version 2802 if test "${ac_cv_path_mkdir+set}" = set; then 2803 MKDIR_P="$ac_cv_path_mkdir -p" 2804 else 2805 # As a last resort, use the slow shell script. Don't cache a 2806 # value for MKDIR_P within a source directory, because that will 2807 # break other packages using the cache if that directory is 2808 # removed, or if the value is a relative name. 2809 MKDIR_P="$ac_install_sh -d" 2810 fi 2811fi 2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2813$as_echo "$MKDIR_P" >&6; } 2814 2815for ac_prog in gawk mawk nawk awk 2816do 2817 # Extract the first word of "$ac_prog", so it can be a program name with args. 2818set dummy $ac_prog; ac_word=$2 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2820$as_echo_n "checking for $ac_word... " >&6; } 2821if ${ac_cv_prog_AWK+:} false; then : 2822 $as_echo_n "(cached) " >&6 2823else 2824 if test -n "$AWK"; then 2825 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2826else 2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2828for as_dir in $PATH 2829do 2830 IFS=$as_save_IFS 2831 test -z "$as_dir" && as_dir=. 2832 for ac_exec_ext in '' $ac_executable_extensions; do 2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2834 ac_cv_prog_AWK="$ac_prog" 2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2836 break 2 2837 fi 2838done 2839 done 2840IFS=$as_save_IFS 2841 2842fi 2843fi 2844AWK=$ac_cv_prog_AWK 2845if test -n "$AWK"; then 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2847$as_echo "$AWK" >&6; } 2848else 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2850$as_echo "no" >&6; } 2851fi 2852 2853 2854 test -n "$AWK" && break 2855done 2856 2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2858$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2859set x ${MAKE-make} 2860ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2861if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2862 $as_echo_n "(cached) " >&6 2863else 2864 cat >conftest.make <<\_ACEOF 2865SHELL = /bin/sh 2866all: 2867 @echo '@@@%%%=$(MAKE)=@@@%%%' 2868_ACEOF 2869# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2870case `${MAKE-make} -f conftest.make 2>/dev/null` in 2871 *@@@%%%=?*=@@@%%%*) 2872 eval ac_cv_prog_make_${ac_make}_set=yes;; 2873 *) 2874 eval ac_cv_prog_make_${ac_make}_set=no;; 2875esac 2876rm -f conftest.make 2877fi 2878if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2880$as_echo "yes" >&6; } 2881 SET_MAKE= 2882else 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2884$as_echo "no" >&6; } 2885 SET_MAKE="MAKE=${MAKE-make}" 2886fi 2887 2888rm -rf .tst 2>/dev/null 2889mkdir .tst 2>/dev/null 2890if test -d .tst; then 2891 am__leading_dot=. 2892else 2893 am__leading_dot=_ 2894fi 2895rmdir .tst 2>/dev/null 2896 2897# Check whether --enable-silent-rules was given. 2898if test "${enable_silent_rules+set}" = set; then : 2899 enableval=$enable_silent_rules; 2900fi 2901 2902case $enable_silent_rules in # ((( 2903 yes) AM_DEFAULT_VERBOSITY=0;; 2904 no) AM_DEFAULT_VERBOSITY=1;; 2905 *) AM_DEFAULT_VERBOSITY=1;; 2906esac 2907am_make=${MAKE-make} 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2909$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2910if ${am_cv_make_support_nested_variables+:} false; then : 2911 $as_echo_n "(cached) " >&6 2912else 2913 if $as_echo 'TRUE=$(BAR$(V)) 2914BAR0=false 2915BAR1=true 2916V=1 2917am__doit: 2918 @$(TRUE) 2919.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2920 am_cv_make_support_nested_variables=yes 2921else 2922 am_cv_make_support_nested_variables=no 2923fi 2924fi 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2926$as_echo "$am_cv_make_support_nested_variables" >&6; } 2927if test $am_cv_make_support_nested_variables = yes; then 2928 AM_V='$(V)' 2929 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2930else 2931 AM_V=$AM_DEFAULT_VERBOSITY 2932 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2933fi 2934AM_BACKSLASH='\' 2935 2936if test "`cd $srcdir && pwd`" != "`pwd`"; then 2937 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2938 # is not polluted with repeated "-I." 2939 am__isrc=' -I$(srcdir)' 2940 # test to see if srcdir already configured 2941 if test -f $srcdir/config.status; then 2942 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2943 fi 2944fi 2945 2946# test whether we have cygpath 2947if test -z "$CYGPATH_W"; then 2948 if (cygpath --version) >/dev/null 2>/dev/null; then 2949 CYGPATH_W='cygpath -w' 2950 else 2951 CYGPATH_W=echo 2952 fi 2953fi 2954 2955 2956# Define the identity of the package. 2957 PACKAGE='libaacs' 2958 VERSION='0.11.0' 2959 2960 2961cat >>confdefs.h <<_ACEOF 2962#define PACKAGE "$PACKAGE" 2963_ACEOF 2964 2965 2966cat >>confdefs.h <<_ACEOF 2967#define VERSION "$VERSION" 2968_ACEOF 2969 2970# Some tools Automake needs. 2971 2972ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2973 2974 2975AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2976 2977 2978AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2979 2980 2981AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2982 2983 2984MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2985 2986# For better backward compatibility. To be removed once Automake 1.9.x 2987# dies out for good. For more background, see: 2988# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2989# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2990mkdir_p='$(MKDIR_P)' 2991 2992# We need awk for the "check" target (and possibly the TAP driver). The 2993# system "awk" is bad on some platforms. 2994# Always define AMTAR for backward compatibility. Yes, it's still used 2995# in the wild :-( We should find a proper way to deprecate it ... 2996AMTAR='$${TAR-tar}' 2997 2998 2999# We'll loop over all known methods to create a tar archive until one works. 3000_am_tools='gnutar plaintar pax cpio none' 3001 3002# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3003 # There is notably a 21 bits limit for the UID and the GID. In fact, 3004 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3005 # and bug#13588). 3006 am_max_uid=2097151 # 2^21 - 1 3007 am_max_gid=$am_max_uid 3008 # The $UID and $GID variables are not portable, so we need to resort 3009 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3010 # below are definitely unexpected, so allow the users to see them 3011 # (that is, avoid stderr redirection). 3012 am_uid=`id -u || echo unknown` 3013 am_gid=`id -g || echo unknown` 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3015$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3016 if test $am_uid -le $am_max_uid; then 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3018$as_echo "yes" >&6; } 3019 else 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3021$as_echo "no" >&6; } 3022 _am_tools=none 3023 fi 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3025$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3026 if test $am_gid -le $am_max_gid; then 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3028$as_echo "yes" >&6; } 3029 else 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3031$as_echo "no" >&6; } 3032 _am_tools=none 3033 fi 3034 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3036$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3037 3038 # Go ahead even if we have the value already cached. We do so because we 3039 # need to set the values for the 'am__tar' and 'am__untar' variables. 3040 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3041 3042 for _am_tool in $_am_tools; do 3043 case $_am_tool in 3044 gnutar) 3045 for _am_tar in tar gnutar gtar; do 3046 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3047 ($_am_tar --version) >&5 2>&5 3048 ac_status=$? 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3050 (exit $ac_status); } && break 3051 done 3052 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3053 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3054 am__untar="$_am_tar -xf -" 3055 ;; 3056 plaintar) 3057 # Must skip GNU tar: if it does not support --format= it doesn't create 3058 # ustar tarball either. 3059 (tar --version) >/dev/null 2>&1 && continue 3060 am__tar='tar chf - "$$tardir"' 3061 am__tar_='tar chf - "$tardir"' 3062 am__untar='tar xf -' 3063 ;; 3064 pax) 3065 am__tar='pax -L -x ustar -w "$$tardir"' 3066 am__tar_='pax -L -x ustar -w "$tardir"' 3067 am__untar='pax -r' 3068 ;; 3069 cpio) 3070 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3071 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3072 am__untar='cpio -i -H ustar -d' 3073 ;; 3074 none) 3075 am__tar=false 3076 am__tar_=false 3077 am__untar=false 3078 ;; 3079 esac 3080 3081 # If the value was cached, stop now. We just wanted to have am__tar 3082 # and am__untar set. 3083 test -n "${am_cv_prog_tar_ustar}" && break 3084 3085 # tar/untar a dummy directory, and stop if the command works. 3086 rm -rf conftest.dir 3087 mkdir conftest.dir 3088 echo GrepMe > conftest.dir/file 3089 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3090 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3091 ac_status=$? 3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3093 (exit $ac_status); } 3094 rm -rf conftest.dir 3095 if test -s conftest.tar; then 3096 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3097 ($am__untar <conftest.tar) >&5 2>&5 3098 ac_status=$? 3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3100 (exit $ac_status); } 3101 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3102 (cat conftest.dir/file) >&5 2>&5 3103 ac_status=$? 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3105 (exit $ac_status); } 3106 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3107 fi 3108 done 3109 rm -rf conftest.dir 3110 3111 if ${am_cv_prog_tar_ustar+:} false; then : 3112 $as_echo_n "(cached) " >&6 3113else 3114 am_cv_prog_tar_ustar=$_am_tool 3115fi 3116 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3118$as_echo "$am_cv_prog_tar_ustar" >&6; } 3119 3120 3121 3122 3123 3124 3125# POSIX will say in a future version that running "rm -f" with no argument 3126# is OK; and we want to be able to make that assumption in our Makefile 3127# recipes. So use an aggressive probe to check that the usage we want is 3128# actually supported "in the wild" to an acceptable degree. 3129# See automake bug#10828. 3130# To make any issue more visible, cause the running configure to be aborted 3131# by default if the 'rm' program in use doesn't match our expectations; the 3132# user can still override this though. 3133if rm -f && rm -fr && rm -rf; then : OK; else 3134 cat >&2 <<'END' 3135Oops! 3136 3137Your 'rm' program seems unable to run without file operands specified 3138on the command line, even when the '-f' option is present. This is contrary 3139to the behaviour of most rm programs out there, and not conforming with 3140the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3141 3142Please tell bug-automake@gnu.org about your system, including the value 3143of your $PATH and any error possibly output before this message. This 3144can help us improve future automake versions. 3145 3146END 3147 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3148 echo 'Configuration will proceed anyway, since you have set the' >&2 3149 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3150 echo >&2 3151 else 3152 cat >&2 <<'END' 3153Aborting the configuration process, to ensure you take notice of the issue. 3154 3155You can download and install GNU coreutils to get an 'rm' implementation 3156that behaves properly: <https://www.gnu.org/software/coreutils/>. 3157 3158If you want to complete the configuration process using your problematic 3159'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3160to "yes", and re-run configure. 3161 3162END 3163 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3164 fi 3165fi 3166 3167ac_config_headers="$ac_config_headers config.h" 3168 3169 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3171$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3172 # Check whether --enable-maintainer-mode was given. 3173if test "${enable_maintainer_mode+set}" = set; then : 3174 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3175else 3176 USE_MAINTAINER_MODE=no 3177fi 3178 3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3180$as_echo "$USE_MAINTAINER_MODE" >&6; } 3181 if test $USE_MAINTAINER_MODE = yes; then 3182 MAINTAINER_MODE_TRUE= 3183 MAINTAINER_MODE_FALSE='#' 3184else 3185 MAINTAINER_MODE_TRUE='#' 3186 MAINTAINER_MODE_FALSE= 3187fi 3188 3189 MAINT=$MAINTAINER_MODE_TRUE 3190 3191 3192 3193# Check whether --enable-silent-rules was given. 3194if test "${enable_silent_rules+set}" = set; then : 3195 enableval=$enable_silent_rules; 3196fi 3197 3198case $enable_silent_rules in # ((( 3199 yes) AM_DEFAULT_VERBOSITY=0;; 3200 no) AM_DEFAULT_VERBOSITY=1;; 3201 *) AM_DEFAULT_VERBOSITY=0;; 3202esac 3203am_make=${MAKE-make} 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3205$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3206if ${am_cv_make_support_nested_variables+:} false; then : 3207 $as_echo_n "(cached) " >&6 3208else 3209 if $as_echo 'TRUE=$(BAR$(V)) 3210BAR0=false 3211BAR1=true 3212V=1 3213am__doit: 3214 @$(TRUE) 3215.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3216 am_cv_make_support_nested_variables=yes 3217else 3218 am_cv_make_support_nested_variables=no 3219fi 3220fi 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3222$as_echo "$am_cv_make_support_nested_variables" >&6; } 3223if test $am_cv_make_support_nested_variables = yes; then 3224 AM_V='$(V)' 3225 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3226else 3227 AM_V=$AM_DEFAULT_VERBOSITY 3228 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3229fi 3230AM_BACKSLASH='\' 3231 3232 3233SET_FEATURES="-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L" 3234 3235case "${host_os}" in 3236 "") 3237 SYS=unknown 3238 ;; 3239 *mingw32* | *cygwin* | *wince* | *mingwce*) 3240 case "${host_os}" in 3241 *wince* | *mingwce* | *mingw32ce*) 3242 SYS=mingwce 3243 ;; 3244 *mingw32*) 3245 SYS=mingw32 3246 3247$as_echo "#define _WIN32_WINNT 0x0501" >>confdefs.h 3248 3249 3250$as_echo "#define _WIN32_IE 0x0501" >>confdefs.h 3251 3252 ;; 3253 esac 3254 ;; 3255 *darwin*) 3256 SYS=darwin 3257 3258$as_echo "#define USE_IOKIT 1" >>confdefs.h 3259 3260 LDFLAGS="${LDFLAGS} -lobjc -Wl,-framework,IOKit,-framework,Cocoa,-framework,DiskArbitration" 3261 SET_FEATURES="${SET_FEATURES} -D_DARWIN_C_SOURCE" 3262 ;; 3263 *) 3264 SYS="${host_os}" 3265 ;; 3266esac 3267 3268 if test "${SYS}" = "mingw32"; then 3269 HAVE_WIN32_TRUE= 3270 HAVE_WIN32_FALSE='#' 3271else 3272 HAVE_WIN32_TRUE='#' 3273 HAVE_WIN32_FALSE= 3274fi 3275 3276 if test "${SYS}" = "darwin"; then 3277 HAVE_DARWIN_TRUE= 3278 HAVE_DARWIN_FALSE='#' 3279else 3280 HAVE_DARWIN_TRUE='#' 3281 HAVE_DARWIN_FALSE= 3282fi 3283 3284 3285# Check whether --enable-werror was given. 3286if test "${enable_werror+set}" = set; then : 3287 enableval=$enable_werror; 3288fi 3289 3290 3291# Check whether --enable-extra-warnings was given. 3292if test "${enable_extra_warnings+set}" = set; then : 3293 enableval=$enable_extra_warnings; 3294fi 3295 3296 3297# Check whether --enable-optimizations was given. 3298if test "${enable_optimizations+set}" = set; then : 3299 enableval=$enable_optimizations; 3300fi 3301 3302 3303if ${lt_cv_deplibs_check_method+:} false; then : 3304 $as_echo_n "(cached) " >&6 3305else 3306 lt_cv_deplibs_check_method=pass_all 3307fi 3308 3309 3310ac_ext=c 3311ac_cpp='$CPP $CPPFLAGS' 3312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3314ac_compiler_gnu=$ac_cv_c_compiler_gnu 3315if test -n "$ac_tool_prefix"; then 3316 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3317set dummy ${ac_tool_prefix}gcc; ac_word=$2 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3319$as_echo_n "checking for $ac_word... " >&6; } 3320if ${ac_cv_prog_CC+:} false; then : 3321 $as_echo_n "(cached) " >&6 3322else 3323 if test -n "$CC"; then 3324 ac_cv_prog_CC="$CC" # Let the user override the test. 3325else 3326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3327for as_dir in $PATH 3328do 3329 IFS=$as_save_IFS 3330 test -z "$as_dir" && as_dir=. 3331 for ac_exec_ext in '' $ac_executable_extensions; do 3332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3333 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3335 break 2 3336 fi 3337done 3338 done 3339IFS=$as_save_IFS 3340 3341fi 3342fi 3343CC=$ac_cv_prog_CC 3344if test -n "$CC"; then 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3346$as_echo "$CC" >&6; } 3347else 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3349$as_echo "no" >&6; } 3350fi 3351 3352 3353fi 3354if test -z "$ac_cv_prog_CC"; then 3355 ac_ct_CC=$CC 3356 # Extract the first word of "gcc", so it can be a program name with args. 3357set dummy gcc; ac_word=$2 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3359$as_echo_n "checking for $ac_word... " >&6; } 3360if ${ac_cv_prog_ac_ct_CC+:} false; then : 3361 $as_echo_n "(cached) " >&6 3362else 3363 if test -n "$ac_ct_CC"; then 3364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3365else 3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3367for as_dir in $PATH 3368do 3369 IFS=$as_save_IFS 3370 test -z "$as_dir" && as_dir=. 3371 for ac_exec_ext in '' $ac_executable_extensions; do 3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3373 ac_cv_prog_ac_ct_CC="gcc" 3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3375 break 2 3376 fi 3377done 3378 done 3379IFS=$as_save_IFS 3380 3381fi 3382fi 3383ac_ct_CC=$ac_cv_prog_ac_ct_CC 3384if test -n "$ac_ct_CC"; then 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3386$as_echo "$ac_ct_CC" >&6; } 3387else 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3389$as_echo "no" >&6; } 3390fi 3391 3392 if test "x$ac_ct_CC" = x; then 3393 CC="" 3394 else 3395 case $cross_compiling:$ac_tool_warned in 3396yes:) 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3399ac_tool_warned=yes ;; 3400esac 3401 CC=$ac_ct_CC 3402 fi 3403else 3404 CC="$ac_cv_prog_CC" 3405fi 3406 3407if test -z "$CC"; then 3408 if test -n "$ac_tool_prefix"; then 3409 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3410set dummy ${ac_tool_prefix}cc; ac_word=$2 3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3412$as_echo_n "checking for $ac_word... " >&6; } 3413if ${ac_cv_prog_CC+:} false; then : 3414 $as_echo_n "(cached) " >&6 3415else 3416 if test -n "$CC"; then 3417 ac_cv_prog_CC="$CC" # Let the user override the test. 3418else 3419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3420for as_dir in $PATH 3421do 3422 IFS=$as_save_IFS 3423 test -z "$as_dir" && as_dir=. 3424 for ac_exec_ext in '' $ac_executable_extensions; do 3425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3426 ac_cv_prog_CC="${ac_tool_prefix}cc" 3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3428 break 2 3429 fi 3430done 3431 done 3432IFS=$as_save_IFS 3433 3434fi 3435fi 3436CC=$ac_cv_prog_CC 3437if test -n "$CC"; then 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3439$as_echo "$CC" >&6; } 3440else 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3442$as_echo "no" >&6; } 3443fi 3444 3445 3446 fi 3447fi 3448if test -z "$CC"; then 3449 # Extract the first word of "cc", so it can be a program name with args. 3450set dummy cc; ac_word=$2 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3452$as_echo_n "checking for $ac_word... " >&6; } 3453if ${ac_cv_prog_CC+:} false; then : 3454 $as_echo_n "(cached) " >&6 3455else 3456 if test -n "$CC"; then 3457 ac_cv_prog_CC="$CC" # Let the user override the test. 3458else 3459 ac_prog_rejected=no 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3468 ac_prog_rejected=yes 3469 continue 3470 fi 3471 ac_cv_prog_CC="cc" 3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3473 break 2 3474 fi 3475done 3476 done 3477IFS=$as_save_IFS 3478 3479if test $ac_prog_rejected = yes; then 3480 # We found a bogon in the path, so make sure we never use it. 3481 set dummy $ac_cv_prog_CC 3482 shift 3483 if test $# != 0; then 3484 # We chose a different compiler from the bogus one. 3485 # However, it has the same basename, so the bogon will be chosen 3486 # first if we set CC to just the basename; use the full file name. 3487 shift 3488 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3489 fi 3490fi 3491fi 3492fi 3493CC=$ac_cv_prog_CC 3494if test -n "$CC"; then 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3496$as_echo "$CC" >&6; } 3497else 3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3499$as_echo "no" >&6; } 3500fi 3501 3502 3503fi 3504if test -z "$CC"; then 3505 if test -n "$ac_tool_prefix"; then 3506 for ac_prog in cl.exe 3507 do 3508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3509set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3511$as_echo_n "checking for $ac_word... " >&6; } 3512if ${ac_cv_prog_CC+:} false; then : 3513 $as_echo_n "(cached) " >&6 3514else 3515 if test -n "$CC"; then 3516 ac_cv_prog_CC="$CC" # Let the user override the test. 3517else 3518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3519for as_dir in $PATH 3520do 3521 IFS=$as_save_IFS 3522 test -z "$as_dir" && as_dir=. 3523 for ac_exec_ext in '' $ac_executable_extensions; do 3524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3525 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3527 break 2 3528 fi 3529done 3530 done 3531IFS=$as_save_IFS 3532 3533fi 3534fi 3535CC=$ac_cv_prog_CC 3536if test -n "$CC"; then 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3538$as_echo "$CC" >&6; } 3539else 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3541$as_echo "no" >&6; } 3542fi 3543 3544 3545 test -n "$CC" && break 3546 done 3547fi 3548if test -z "$CC"; then 3549 ac_ct_CC=$CC 3550 for ac_prog in cl.exe 3551do 3552 # Extract the first word of "$ac_prog", so it can be a program name with args. 3553set dummy $ac_prog; ac_word=$2 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3555$as_echo_n "checking for $ac_word... " >&6; } 3556if ${ac_cv_prog_ac_ct_CC+:} false; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 if test -n "$ac_ct_CC"; then 3560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3561else 3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3563for as_dir in $PATH 3564do 3565 IFS=$as_save_IFS 3566 test -z "$as_dir" && as_dir=. 3567 for ac_exec_ext in '' $ac_executable_extensions; do 3568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3569 ac_cv_prog_ac_ct_CC="$ac_prog" 3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3571 break 2 3572 fi 3573done 3574 done 3575IFS=$as_save_IFS 3576 3577fi 3578fi 3579ac_ct_CC=$ac_cv_prog_ac_ct_CC 3580if test -n "$ac_ct_CC"; then 3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3582$as_echo "$ac_ct_CC" >&6; } 3583else 3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3585$as_echo "no" >&6; } 3586fi 3587 3588 3589 test -n "$ac_ct_CC" && break 3590done 3591 3592 if test "x$ac_ct_CC" = x; then 3593 CC="" 3594 else 3595 case $cross_compiling:$ac_tool_warned in 3596yes:) 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3599ac_tool_warned=yes ;; 3600esac 3601 CC=$ac_ct_CC 3602 fi 3603fi 3604 3605fi 3606 3607 3608test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3610as_fn_error $? "no acceptable C compiler found in \$PATH 3611See \`config.log' for more details" "$LINENO" 5; } 3612 3613# Provide some information about the compiler. 3614$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3615set X $ac_compile 3616ac_compiler=$2 3617for ac_option in --version -v -V -qversion; do 3618 { { ac_try="$ac_compiler $ac_option >&5" 3619case "(($ac_try" in 3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3621 *) ac_try_echo=$ac_try;; 3622esac 3623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3624$as_echo "$ac_try_echo"; } >&5 3625 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3626 ac_status=$? 3627 if test -s conftest.err; then 3628 sed '10a\ 3629... rest of stderr output deleted ... 3630 10q' conftest.err >conftest.er1 3631 cat conftest.er1 >&5 3632 fi 3633 rm -f conftest.er1 conftest.err 3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3635 test $ac_status = 0; } 3636done 3637 3638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3639/* end confdefs.h. */ 3640 3641int 3642main () 3643{ 3644 3645 ; 3646 return 0; 3647} 3648_ACEOF 3649ac_clean_files_save=$ac_clean_files 3650ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3651# Try to create an executable without -o first, disregard a.out. 3652# It will help us diagnose broken compilers, and finding out an intuition 3653# of exeext. 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3655$as_echo_n "checking whether the C compiler works... " >&6; } 3656ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3657 3658# The possible output files: 3659ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3660 3661ac_rmfiles= 3662for ac_file in $ac_files 3663do 3664 case $ac_file in 3665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3666 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3667 esac 3668done 3669rm -f $ac_rmfiles 3670 3671if { { ac_try="$ac_link_default" 3672case "(($ac_try" in 3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3674 *) ac_try_echo=$ac_try;; 3675esac 3676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3677$as_echo "$ac_try_echo"; } >&5 3678 (eval "$ac_link_default") 2>&5 3679 ac_status=$? 3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3681 test $ac_status = 0; }; then : 3682 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3683# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3684# in a Makefile. We should not override ac_cv_exeext if it was cached, 3685# so that the user can short-circuit this test for compilers unknown to 3686# Autoconf. 3687for ac_file in $ac_files '' 3688do 3689 test -f "$ac_file" || continue 3690 case $ac_file in 3691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3692 ;; 3693 [ab].out ) 3694 # We found the default executable, but exeext='' is most 3695 # certainly right. 3696 break;; 3697 *.* ) 3698 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3699 then :; else 3700 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3701 fi 3702 # We set ac_cv_exeext here because the later test for it is not 3703 # safe: cross compilers may not add the suffix if given an `-o' 3704 # argument, so we may need to know it at that point already. 3705 # Even if this section looks crufty: it has the advantage of 3706 # actually working. 3707 break;; 3708 * ) 3709 break;; 3710 esac 3711done 3712test "$ac_cv_exeext" = no && ac_cv_exeext= 3713 3714else 3715 ac_file='' 3716fi 3717if test -z "$ac_file"; then : 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3719$as_echo "no" >&6; } 3720$as_echo "$as_me: failed program was:" >&5 3721sed 's/^/| /' conftest.$ac_ext >&5 3722 3723{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3725as_fn_error 77 "C compiler cannot create executables 3726See \`config.log' for more details" "$LINENO" 5; } 3727else 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3729$as_echo "yes" >&6; } 3730fi 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3732$as_echo_n "checking for C compiler default output file name... " >&6; } 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3734$as_echo "$ac_file" >&6; } 3735ac_exeext=$ac_cv_exeext 3736 3737rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3738ac_clean_files=$ac_clean_files_save 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3740$as_echo_n "checking for suffix of executables... " >&6; } 3741if { { ac_try="$ac_link" 3742case "(($ac_try" in 3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3744 *) ac_try_echo=$ac_try;; 3745esac 3746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3747$as_echo "$ac_try_echo"; } >&5 3748 (eval "$ac_link") 2>&5 3749 ac_status=$? 3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3751 test $ac_status = 0; }; then : 3752 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3753# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3754# work properly (i.e., refer to `conftest.exe'), while it won't with 3755# `rm'. 3756for ac_file in conftest.exe conftest conftest.*; do 3757 test -f "$ac_file" || continue 3758 case $ac_file in 3759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3760 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3761 break;; 3762 * ) break;; 3763 esac 3764done 3765else 3766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3768as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3769See \`config.log' for more details" "$LINENO" 5; } 3770fi 3771rm -f conftest conftest$ac_cv_exeext 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3773$as_echo "$ac_cv_exeext" >&6; } 3774 3775rm -f conftest.$ac_ext 3776EXEEXT=$ac_cv_exeext 3777ac_exeext=$EXEEXT 3778cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3779/* end confdefs.h. */ 3780#include <stdio.h> 3781int 3782main () 3783{ 3784FILE *f = fopen ("conftest.out", "w"); 3785 return ferror (f) || fclose (f) != 0; 3786 3787 ; 3788 return 0; 3789} 3790_ACEOF 3791ac_clean_files="$ac_clean_files conftest.out" 3792# Check that the compiler produces executables we can run. If not, either 3793# the compiler is broken, or we cross compile. 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3795$as_echo_n "checking whether we are cross compiling... " >&6; } 3796if test "$cross_compiling" != yes; then 3797 { { ac_try="$ac_link" 3798case "(($ac_try" in 3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3800 *) ac_try_echo=$ac_try;; 3801esac 3802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3803$as_echo "$ac_try_echo"; } >&5 3804 (eval "$ac_link") 2>&5 3805 ac_status=$? 3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3807 test $ac_status = 0; } 3808 if { ac_try='./conftest$ac_cv_exeext' 3809 { { case "(($ac_try" in 3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3811 *) ac_try_echo=$ac_try;; 3812esac 3813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3814$as_echo "$ac_try_echo"; } >&5 3815 (eval "$ac_try") 2>&5 3816 ac_status=$? 3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3818 test $ac_status = 0; }; }; then 3819 cross_compiling=no 3820 else 3821 if test "$cross_compiling" = maybe; then 3822 cross_compiling=yes 3823 else 3824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3826as_fn_error $? "cannot run C compiled programs. 3827If you meant to cross compile, use \`--host'. 3828See \`config.log' for more details" "$LINENO" 5; } 3829 fi 3830 fi 3831fi 3832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3833$as_echo "$cross_compiling" >&6; } 3834 3835rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3836ac_clean_files=$ac_clean_files_save 3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3838$as_echo_n "checking for suffix of object files... " >&6; } 3839if ${ac_cv_objext+:} false; then : 3840 $as_echo_n "(cached) " >&6 3841else 3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3843/* end confdefs.h. */ 3844 3845int 3846main () 3847{ 3848 3849 ; 3850 return 0; 3851} 3852_ACEOF 3853rm -f conftest.o conftest.obj 3854if { { ac_try="$ac_compile" 3855case "(($ac_try" in 3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3857 *) ac_try_echo=$ac_try;; 3858esac 3859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3860$as_echo "$ac_try_echo"; } >&5 3861 (eval "$ac_compile") 2>&5 3862 ac_status=$? 3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3864 test $ac_status = 0; }; then : 3865 for ac_file in conftest.o conftest.obj conftest.*; do 3866 test -f "$ac_file" || continue; 3867 case $ac_file in 3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3869 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3870 break;; 3871 esac 3872done 3873else 3874 $as_echo "$as_me: failed program was:" >&5 3875sed 's/^/| /' conftest.$ac_ext >&5 3876 3877{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3879as_fn_error $? "cannot compute suffix of object files: cannot compile 3880See \`config.log' for more details" "$LINENO" 5; } 3881fi 3882rm -f conftest.$ac_cv_objext conftest.$ac_ext 3883fi 3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3885$as_echo "$ac_cv_objext" >&6; } 3886OBJEXT=$ac_cv_objext 3887ac_objext=$OBJEXT 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3889$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3890if ${ac_cv_c_compiler_gnu+:} false; then : 3891 $as_echo_n "(cached) " >&6 3892else 3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3894/* end confdefs.h. */ 3895 3896int 3897main () 3898{ 3899#ifndef __GNUC__ 3900 choke me 3901#endif 3902 3903 ; 3904 return 0; 3905} 3906_ACEOF 3907if ac_fn_c_try_compile "$LINENO"; then : 3908 ac_compiler_gnu=yes 3909else 3910 ac_compiler_gnu=no 3911fi 3912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3913ac_cv_c_compiler_gnu=$ac_compiler_gnu 3914 3915fi 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3917$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3918if test $ac_compiler_gnu = yes; then 3919 GCC=yes 3920else 3921 GCC= 3922fi 3923ac_test_CFLAGS=${CFLAGS+set} 3924ac_save_CFLAGS=$CFLAGS 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3926$as_echo_n "checking whether $CC accepts -g... " >&6; } 3927if ${ac_cv_prog_cc_g+:} false; then : 3928 $as_echo_n "(cached) " >&6 3929else 3930 ac_save_c_werror_flag=$ac_c_werror_flag 3931 ac_c_werror_flag=yes 3932 ac_cv_prog_cc_g=no 3933 CFLAGS="-g" 3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3935/* end confdefs.h. */ 3936 3937int 3938main () 3939{ 3940 3941 ; 3942 return 0; 3943} 3944_ACEOF 3945if ac_fn_c_try_compile "$LINENO"; then : 3946 ac_cv_prog_cc_g=yes 3947else 3948 CFLAGS="" 3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3950/* end confdefs.h. */ 3951 3952int 3953main () 3954{ 3955 3956 ; 3957 return 0; 3958} 3959_ACEOF 3960if ac_fn_c_try_compile "$LINENO"; then : 3961 3962else 3963 ac_c_werror_flag=$ac_save_c_werror_flag 3964 CFLAGS="-g" 3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3966/* end confdefs.h. */ 3967 3968int 3969main () 3970{ 3971 3972 ; 3973 return 0; 3974} 3975_ACEOF 3976if ac_fn_c_try_compile "$LINENO"; then : 3977 ac_cv_prog_cc_g=yes 3978fi 3979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3980fi 3981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3982fi 3983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3984 ac_c_werror_flag=$ac_save_c_werror_flag 3985fi 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3987$as_echo "$ac_cv_prog_cc_g" >&6; } 3988if test "$ac_test_CFLAGS" = set; then 3989 CFLAGS=$ac_save_CFLAGS 3990elif test $ac_cv_prog_cc_g = yes; then 3991 if test "$GCC" = yes; then 3992 CFLAGS="-g -O2" 3993 else 3994 CFLAGS="-g" 3995 fi 3996else 3997 if test "$GCC" = yes; then 3998 CFLAGS="-O2" 3999 else 4000 CFLAGS= 4001 fi 4002fi 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4004$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4005if ${ac_cv_prog_cc_c89+:} false; then : 4006 $as_echo_n "(cached) " >&6 4007else 4008 ac_cv_prog_cc_c89=no 4009ac_save_CC=$CC 4010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4011/* end confdefs.h. */ 4012#include <stdarg.h> 4013#include <stdio.h> 4014struct stat; 4015/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4016struct buf { int x; }; 4017FILE * (*rcsopen) (struct buf *, struct stat *, int); 4018static char *e (p, i) 4019 char **p; 4020 int i; 4021{ 4022 return p[i]; 4023} 4024static char *f (char * (*g) (char **, int), char **p, ...) 4025{ 4026 char *s; 4027 va_list v; 4028 va_start (v,p); 4029 s = g (p, va_arg (v,int)); 4030 va_end (v); 4031 return s; 4032} 4033 4034/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4035 function prototypes and stuff, but not '\xHH' hex character constants. 4036 These don't provoke an error unfortunately, instead are silently treated 4037 as 'x'. The following induces an error, until -std is added to get 4038 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4039 array size at least. It's necessary to write '\x00'==0 to get something 4040 that's true only with -std. */ 4041int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4042 4043/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4044 inside strings and character constants. */ 4045#define FOO(x) 'x' 4046int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4047 4048int test (int i, double x); 4049struct s1 {int (*f) (int a);}; 4050struct s2 {int (*f) (double a);}; 4051int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4052int argc; 4053char **argv; 4054int 4055main () 4056{ 4057return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4058 ; 4059 return 0; 4060} 4061_ACEOF 4062for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4063 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4064do 4065 CC="$ac_save_CC $ac_arg" 4066 if ac_fn_c_try_compile "$LINENO"; then : 4067 ac_cv_prog_cc_c89=$ac_arg 4068fi 4069rm -f core conftest.err conftest.$ac_objext 4070 test "x$ac_cv_prog_cc_c89" != "xno" && break 4071done 4072rm -f conftest.$ac_ext 4073CC=$ac_save_CC 4074 4075fi 4076# AC_CACHE_VAL 4077case "x$ac_cv_prog_cc_c89" in 4078 x) 4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4080$as_echo "none needed" >&6; } ;; 4081 xno) 4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4083$as_echo "unsupported" >&6; } ;; 4084 *) 4085 CC="$CC $ac_cv_prog_cc_c89" 4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4087$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4088esac 4089if test "x$ac_cv_prog_cc_c89" != xno; then : 4090 4091fi 4092 4093ac_ext=c 4094ac_cpp='$CPP $CPPFLAGS' 4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4097ac_compiler_gnu=$ac_cv_c_compiler_gnu 4098 4099ac_ext=c 4100ac_cpp='$CPP $CPPFLAGS' 4101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4103ac_compiler_gnu=$ac_cv_c_compiler_gnu 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4105$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4106if ${am_cv_prog_cc_c_o+:} false; then : 4107 $as_echo_n "(cached) " >&6 4108else 4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4110/* end confdefs.h. */ 4111 4112int 4113main () 4114{ 4115 4116 ; 4117 return 0; 4118} 4119_ACEOF 4120 # Make sure it works both with $CC and with simple cc. 4121 # Following AC_PROG_CC_C_O, we do the test twice because some 4122 # compilers refuse to overwrite an existing .o file with -o, 4123 # though they will create one. 4124 am_cv_prog_cc_c_o=yes 4125 for am_i in 1 2; do 4126 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4127 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4128 ac_status=$? 4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4130 (exit $ac_status); } \ 4131 && test -f conftest2.$ac_objext; then 4132 : OK 4133 else 4134 am_cv_prog_cc_c_o=no 4135 break 4136 fi 4137 done 4138 rm -f core conftest* 4139 unset am_i 4140fi 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4142$as_echo "$am_cv_prog_cc_c_o" >&6; } 4143if test "$am_cv_prog_cc_c_o" != yes; then 4144 # Losing compiler, so override with the script. 4145 # FIXME: It is wrong to rewrite CC. 4146 # But if we don't then we get into trouble of one sort or another. 4147 # A longer-term fix would be to have automake use am__CC in this case, 4148 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4149 CC="$am_aux_dir/compile $CC" 4150fi 4151ac_ext=c 4152ac_cpp='$CPP $CPPFLAGS' 4153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4155ac_compiler_gnu=$ac_cv_c_compiler_gnu 4156 4157DEPDIR="${am__leading_dot}deps" 4158 4159ac_config_commands="$ac_config_commands depfiles" 4160 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4162$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4163cat > confinc.mk << 'END' 4164am__doit: 4165 @echo this is the am__doit target >confinc.out 4166.PHONY: am__doit 4167END 4168am__include="#" 4169am__quote= 4170# BSD make does it like this. 4171echo '.include "confinc.mk" # ignored' > confmf.BSD 4172# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4173echo 'include confinc.mk # ignored' > confmf.GNU 4174_am_result=no 4175for s in GNU BSD; do 4176 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4177 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4178 ac_status=$? 4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4180 (exit $ac_status); } 4181 case $?:`cat confinc.out 2>/dev/null` in #( 4182 '0:this is the am__doit target') : 4183 case $s in #( 4184 BSD) : 4185 am__include='.include' am__quote='"' ;; #( 4186 *) : 4187 am__include='include' am__quote='' ;; 4188esac ;; #( 4189 *) : 4190 ;; 4191esac 4192 if test "$am__include" != "#"; then 4193 _am_result="yes ($s style)" 4194 break 4195 fi 4196done 4197rm -f confinc.* confmf.* 4198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4199$as_echo "${_am_result}" >&6; } 4200 4201# Check whether --enable-dependency-tracking was given. 4202if test "${enable_dependency_tracking+set}" = set; then : 4203 enableval=$enable_dependency_tracking; 4204fi 4205 4206if test "x$enable_dependency_tracking" != xno; then 4207 am_depcomp="$ac_aux_dir/depcomp" 4208 AMDEPBACKSLASH='\' 4209 am__nodep='_no' 4210fi 4211 if test "x$enable_dependency_tracking" != xno; then 4212 AMDEP_TRUE= 4213 AMDEP_FALSE='#' 4214else 4215 AMDEP_TRUE='#' 4216 AMDEP_FALSE= 4217fi 4218 4219 4220 4221depcc="$CC" am_compiler_list= 4222 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4224$as_echo_n "checking dependency style of $depcc... " >&6; } 4225if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4226 $as_echo_n "(cached) " >&6 4227else 4228 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4229 # We make a subdir and do the tests there. Otherwise we can end up 4230 # making bogus files that we don't know about and never remove. For 4231 # instance it was reported that on HP-UX the gcc test will end up 4232 # making a dummy file named 'D' -- because '-MD' means "put the output 4233 # in D". 4234 rm -rf conftest.dir 4235 mkdir conftest.dir 4236 # Copy depcomp to subdir because otherwise we won't find it if we're 4237 # using a relative directory. 4238 cp "$am_depcomp" conftest.dir 4239 cd conftest.dir 4240 # We will build objects and dependencies in a subdirectory because 4241 # it helps to detect inapplicable dependency modes. For instance 4242 # both Tru64's cc and ICC support -MD to output dependencies as a 4243 # side effect of compilation, but ICC will put the dependencies in 4244 # the current directory while Tru64 will put them in the object 4245 # directory. 4246 mkdir sub 4247 4248 am_cv_CC_dependencies_compiler_type=none 4249 if test "$am_compiler_list" = ""; then 4250 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4251 fi 4252 am__universal=false 4253 case " $depcc " in #( 4254 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4255 esac 4256 4257 for depmode in $am_compiler_list; do 4258 # Setup a source with many dependencies, because some compilers 4259 # like to wrap large dependency lists on column 80 (with \), and 4260 # we should not choose a depcomp mode which is confused by this. 4261 # 4262 # We need to recreate these files for each test, as the compiler may 4263 # overwrite some of them when testing with obscure command lines. 4264 # This happens at least with the AIX C compiler. 4265 : > sub/conftest.c 4266 for i in 1 2 3 4 5 6; do 4267 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4268 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4269 # Solaris 10 /bin/sh. 4270 echo '/* dummy */' > sub/conftst$i.h 4271 done 4272 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4273 4274 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4275 # mode. It turns out that the SunPro C++ compiler does not properly 4276 # handle '-M -o', and we need to detect this. Also, some Intel 4277 # versions had trouble with output in subdirs. 4278 am__obj=sub/conftest.${OBJEXT-o} 4279 am__minus_obj="-o $am__obj" 4280 case $depmode in 4281 gcc) 4282 # This depmode causes a compiler race in universal mode. 4283 test "$am__universal" = false || continue 4284 ;; 4285 nosideeffect) 4286 # After this tag, mechanisms are not by side-effect, so they'll 4287 # only be used when explicitly requested. 4288 if test "x$enable_dependency_tracking" = xyes; then 4289 continue 4290 else 4291 break 4292 fi 4293 ;; 4294 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4295 # This compiler won't grok '-c -o', but also, the minuso test has 4296 # not run yet. These depmodes are late enough in the game, and 4297 # so weak that their functioning should not be impacted. 4298 am__obj=conftest.${OBJEXT-o} 4299 am__minus_obj= 4300 ;; 4301 none) break ;; 4302 esac 4303 if depmode=$depmode \ 4304 source=sub/conftest.c object=$am__obj \ 4305 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4306 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4307 >/dev/null 2>conftest.err && 4308 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4309 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4310 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4311 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4312 # icc doesn't choke on unknown options, it will just issue warnings 4313 # or remarks (even with -Werror). So we grep stderr for any message 4314 # that says an option was ignored or not supported. 4315 # When given -MP, icc 7.0 and 7.1 complain thusly: 4316 # icc: Command line warning: ignoring option '-M'; no argument required 4317 # The diagnosis changed in icc 8.0: 4318 # icc: Command line remark: option '-MP' not supported 4319 if (grep 'ignoring option' conftest.err || 4320 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4321 am_cv_CC_dependencies_compiler_type=$depmode 4322 break 4323 fi 4324 fi 4325 done 4326 4327 cd .. 4328 rm -rf conftest.dir 4329else 4330 am_cv_CC_dependencies_compiler_type=none 4331fi 4332 4333fi 4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4335$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4336CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4337 4338 if 4339 test "x$enable_dependency_tracking" != xno \ 4340 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4341 am__fastdepCC_TRUE= 4342 am__fastdepCC_FALSE='#' 4343else 4344 am__fastdepCC_TRUE='#' 4345 am__fastdepCC_FALSE= 4346fi 4347 4348 4349case `pwd` in 4350 *\ * | *\ *) 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4352$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4353esac 4354 4355 4356 4357macro_version='2.4.6' 4358macro_revision='2.4.6' 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372ltmain=$ac_aux_dir/ltmain.sh 4373 4374# Backslashify metacharacters that are still active within 4375# double-quoted strings. 4376sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4377 4378# Same as above, but do not quote variable references. 4379double_quote_subst='s/\(["`\\]\)/\\\1/g' 4380 4381# Sed substitution to delay expansion of an escaped shell variable in a 4382# double_quote_subst'ed string. 4383delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4384 4385# Sed substitution to delay expansion of an escaped single quote. 4386delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4387 4388# Sed substitution to avoid accidental globbing in evaled expressions 4389no_glob_subst='s/\*/\\\*/g' 4390 4391ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4392ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4393ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4394 4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4396$as_echo_n "checking how to print strings... " >&6; } 4397# Test print first, because it will be a builtin if present. 4398if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4399 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4400 ECHO='print -r --' 4401elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4402 ECHO='printf %s\n' 4403else 4404 # Use this function as a fallback that always works. 4405 func_fallback_echo () 4406 { 4407 eval 'cat <<_LTECHO_EOF 4408$1 4409_LTECHO_EOF' 4410 } 4411 ECHO='func_fallback_echo' 4412fi 4413 4414# func_echo_all arg... 4415# Invoke $ECHO with all args, space-separated. 4416func_echo_all () 4417{ 4418 $ECHO "" 4419} 4420 4421case $ECHO in 4422 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4423$as_echo "printf" >&6; } ;; 4424 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4425$as_echo "print -r" >&6; } ;; 4426 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4427$as_echo "cat" >&6; } ;; 4428esac 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4444$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4445if ${ac_cv_path_SED+:} false; then : 4446 $as_echo_n "(cached) " >&6 4447else 4448 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4449 for ac_i in 1 2 3 4 5 6 7; do 4450 ac_script="$ac_script$as_nl$ac_script" 4451 done 4452 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4453 { ac_script=; unset ac_script;} 4454 if test -z "$SED"; then 4455 ac_path_SED_found=false 4456 # Loop through the user's path and test for each of PROGNAME-LIST 4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4458for as_dir in $PATH 4459do 4460 IFS=$as_save_IFS 4461 test -z "$as_dir" && as_dir=. 4462 for ac_prog in sed gsed; do 4463 for ac_exec_ext in '' $ac_executable_extensions; do 4464 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4465 as_fn_executable_p "$ac_path_SED" || continue 4466# Check for GNU ac_path_SED and select it if it is found. 4467 # Check for GNU $ac_path_SED 4468case `"$ac_path_SED" --version 2>&1` in 4469*GNU*) 4470 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4471*) 4472 ac_count=0 4473 $as_echo_n 0123456789 >"conftest.in" 4474 while : 4475 do 4476 cat "conftest.in" "conftest.in" >"conftest.tmp" 4477 mv "conftest.tmp" "conftest.in" 4478 cp "conftest.in" "conftest.nl" 4479 $as_echo '' >> "conftest.nl" 4480 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4482 as_fn_arith $ac_count + 1 && ac_count=$as_val 4483 if test $ac_count -gt ${ac_path_SED_max-0}; then 4484 # Best one so far, save it but keep looking for a better one 4485 ac_cv_path_SED="$ac_path_SED" 4486 ac_path_SED_max=$ac_count 4487 fi 4488 # 10*(2^10) chars as input seems more than enough 4489 test $ac_count -gt 10 && break 4490 done 4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4492esac 4493 4494 $ac_path_SED_found && break 3 4495 done 4496 done 4497 done 4498IFS=$as_save_IFS 4499 if test -z "$ac_cv_path_SED"; then 4500 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4501 fi 4502else 4503 ac_cv_path_SED=$SED 4504fi 4505 4506fi 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4508$as_echo "$ac_cv_path_SED" >&6; } 4509 SED="$ac_cv_path_SED" 4510 rm -f conftest.sed 4511 4512test -z "$SED" && SED=sed 4513Xsed="$SED -e 1s/^X//" 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4526$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4527if ${ac_cv_path_GREP+:} false; then : 4528 $as_echo_n "(cached) " >&6 4529else 4530 if test -z "$GREP"; then 4531 ac_path_GREP_found=false 4532 # Loop through the user's path and test for each of PROGNAME-LIST 4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4534for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4535do 4536 IFS=$as_save_IFS 4537 test -z "$as_dir" && as_dir=. 4538 for ac_prog in grep ggrep; do 4539 for ac_exec_ext in '' $ac_executable_extensions; do 4540 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4541 as_fn_executable_p "$ac_path_GREP" || continue 4542# Check for GNU ac_path_GREP and select it if it is found. 4543 # Check for GNU $ac_path_GREP 4544case `"$ac_path_GREP" --version 2>&1` in 4545*GNU*) 4546 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4547*) 4548 ac_count=0 4549 $as_echo_n 0123456789 >"conftest.in" 4550 while : 4551 do 4552 cat "conftest.in" "conftest.in" >"conftest.tmp" 4553 mv "conftest.tmp" "conftest.in" 4554 cp "conftest.in" "conftest.nl" 4555 $as_echo 'GREP' >> "conftest.nl" 4556 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4558 as_fn_arith $ac_count + 1 && ac_count=$as_val 4559 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4560 # Best one so far, save it but keep looking for a better one 4561 ac_cv_path_GREP="$ac_path_GREP" 4562 ac_path_GREP_max=$ac_count 4563 fi 4564 # 10*(2^10) chars as input seems more than enough 4565 test $ac_count -gt 10 && break 4566 done 4567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4568esac 4569 4570 $ac_path_GREP_found && break 3 4571 done 4572 done 4573 done 4574IFS=$as_save_IFS 4575 if test -z "$ac_cv_path_GREP"; then 4576 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4577 fi 4578else 4579 ac_cv_path_GREP=$GREP 4580fi 4581 4582fi 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4584$as_echo "$ac_cv_path_GREP" >&6; } 4585 GREP="$ac_cv_path_GREP" 4586 4587 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4589$as_echo_n "checking for egrep... " >&6; } 4590if ${ac_cv_path_EGREP+:} false; then : 4591 $as_echo_n "(cached) " >&6 4592else 4593 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4594 then ac_cv_path_EGREP="$GREP -E" 4595 else 4596 if test -z "$EGREP"; then 4597 ac_path_EGREP_found=false 4598 # Loop through the user's path and test for each of PROGNAME-LIST 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_prog in egrep; do 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4607 as_fn_executable_p "$ac_path_EGREP" || continue 4608# Check for GNU ac_path_EGREP and select it if it is found. 4609 # Check for GNU $ac_path_EGREP 4610case `"$ac_path_EGREP" --version 2>&1` in 4611*GNU*) 4612 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4613*) 4614 ac_count=0 4615 $as_echo_n 0123456789 >"conftest.in" 4616 while : 4617 do 4618 cat "conftest.in" "conftest.in" >"conftest.tmp" 4619 mv "conftest.tmp" "conftest.in" 4620 cp "conftest.in" "conftest.nl" 4621 $as_echo 'EGREP' >> "conftest.nl" 4622 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4624 as_fn_arith $ac_count + 1 && ac_count=$as_val 4625 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4626 # Best one so far, save it but keep looking for a better one 4627 ac_cv_path_EGREP="$ac_path_EGREP" 4628 ac_path_EGREP_max=$ac_count 4629 fi 4630 # 10*(2^10) chars as input seems more than enough 4631 test $ac_count -gt 10 && break 4632 done 4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4634esac 4635 4636 $ac_path_EGREP_found && break 3 4637 done 4638 done 4639 done 4640IFS=$as_save_IFS 4641 if test -z "$ac_cv_path_EGREP"; then 4642 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4643 fi 4644else 4645 ac_cv_path_EGREP=$EGREP 4646fi 4647 4648 fi 4649fi 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4651$as_echo "$ac_cv_path_EGREP" >&6; } 4652 EGREP="$ac_cv_path_EGREP" 4653 4654 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4656$as_echo_n "checking for fgrep... " >&6; } 4657if ${ac_cv_path_FGREP+:} false; then : 4658 $as_echo_n "(cached) " >&6 4659else 4660 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4661 then ac_cv_path_FGREP="$GREP -F" 4662 else 4663 if test -z "$FGREP"; then 4664 ac_path_FGREP_found=false 4665 # Loop through the user's path and test for each of PROGNAME-LIST 4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4667for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4668do 4669 IFS=$as_save_IFS 4670 test -z "$as_dir" && as_dir=. 4671 for ac_prog in fgrep; do 4672 for ac_exec_ext in '' $ac_executable_extensions; do 4673 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4674 as_fn_executable_p "$ac_path_FGREP" || continue 4675# Check for GNU ac_path_FGREP and select it if it is found. 4676 # Check for GNU $ac_path_FGREP 4677case `"$ac_path_FGREP" --version 2>&1` in 4678*GNU*) 4679 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4680*) 4681 ac_count=0 4682 $as_echo_n 0123456789 >"conftest.in" 4683 while : 4684 do 4685 cat "conftest.in" "conftest.in" >"conftest.tmp" 4686 mv "conftest.tmp" "conftest.in" 4687 cp "conftest.in" "conftest.nl" 4688 $as_echo 'FGREP' >> "conftest.nl" 4689 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4691 as_fn_arith $ac_count + 1 && ac_count=$as_val 4692 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4693 # Best one so far, save it but keep looking for a better one 4694 ac_cv_path_FGREP="$ac_path_FGREP" 4695 ac_path_FGREP_max=$ac_count 4696 fi 4697 # 10*(2^10) chars as input seems more than enough 4698 test $ac_count -gt 10 && break 4699 done 4700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4701esac 4702 4703 $ac_path_FGREP_found && break 3 4704 done 4705 done 4706 done 4707IFS=$as_save_IFS 4708 if test -z "$ac_cv_path_FGREP"; then 4709 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4710 fi 4711else 4712 ac_cv_path_FGREP=$FGREP 4713fi 4714 4715 fi 4716fi 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4718$as_echo "$ac_cv_path_FGREP" >&6; } 4719 FGREP="$ac_cv_path_FGREP" 4720 4721 4722test -z "$GREP" && GREP=grep 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742# Check whether --with-gnu-ld was given. 4743if test "${with_gnu_ld+set}" = set; then : 4744 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4745else 4746 with_gnu_ld=no 4747fi 4748 4749ac_prog=ld 4750if test yes = "$GCC"; then 4751 # Check if gcc -print-prog-name=ld gives a path. 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4753$as_echo_n "checking for ld used by $CC... " >&6; } 4754 case $host in 4755 *-*-mingw*) 4756 # gcc leaves a trailing carriage return, which upsets mingw 4757 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4758 *) 4759 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4760 esac 4761 case $ac_prog in 4762 # Accept absolute paths. 4763 [\\/]* | ?:[\\/]*) 4764 re_direlt='/[^/][^/]*/\.\./' 4765 # Canonicalize the pathname of ld 4766 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4767 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4768 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4769 done 4770 test -z "$LD" && LD=$ac_prog 4771 ;; 4772 "") 4773 # If it fails, then pretend we aren't using GCC. 4774 ac_prog=ld 4775 ;; 4776 *) 4777 # If it is relative, then search for the first ld in PATH. 4778 with_gnu_ld=unknown 4779 ;; 4780 esac 4781elif test yes = "$with_gnu_ld"; then 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4783$as_echo_n "checking for GNU ld... " >&6; } 4784else 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4786$as_echo_n "checking for non-GNU ld... " >&6; } 4787fi 4788if ${lt_cv_path_LD+:} false; then : 4789 $as_echo_n "(cached) " >&6 4790else 4791 if test -z "$LD"; then 4792 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4793 for ac_dir in $PATH; do 4794 IFS=$lt_save_ifs 4795 test -z "$ac_dir" && ac_dir=. 4796 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4797 lt_cv_path_LD=$ac_dir/$ac_prog 4798 # Check to see if the program is GNU ld. I'd rather use --version, 4799 # but apparently some variants of GNU ld only accept -v. 4800 # Break only if it was the GNU/non-GNU ld that we prefer. 4801 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4802 *GNU* | *'with BFD'*) 4803 test no != "$with_gnu_ld" && break 4804 ;; 4805 *) 4806 test yes != "$with_gnu_ld" && break 4807 ;; 4808 esac 4809 fi 4810 done 4811 IFS=$lt_save_ifs 4812else 4813 lt_cv_path_LD=$LD # Let the user override the test with a path. 4814fi 4815fi 4816 4817LD=$lt_cv_path_LD 4818if test -n "$LD"; then 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4820$as_echo "$LD" >&6; } 4821else 4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4823$as_echo "no" >&6; } 4824fi 4825test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4827$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4828if ${lt_cv_prog_gnu_ld+:} false; then : 4829 $as_echo_n "(cached) " >&6 4830else 4831 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4832case `$LD -v 2>&1 </dev/null` in 4833*GNU* | *'with BFD'*) 4834 lt_cv_prog_gnu_ld=yes 4835 ;; 4836*) 4837 lt_cv_prog_gnu_ld=no 4838 ;; 4839esac 4840fi 4841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4842$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4843with_gnu_ld=$lt_cv_prog_gnu_ld 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4854$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4855if ${lt_cv_path_NM+:} false; then : 4856 $as_echo_n "(cached) " >&6 4857else 4858 if test -n "$NM"; then 4859 # Let the user override the test. 4860 lt_cv_path_NM=$NM 4861else 4862 lt_nm_to_check=${ac_tool_prefix}nm 4863 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4864 lt_nm_to_check="$lt_nm_to_check nm" 4865 fi 4866 for lt_tmp_nm in $lt_nm_to_check; do 4867 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4868 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4869 IFS=$lt_save_ifs 4870 test -z "$ac_dir" && ac_dir=. 4871 tmp_nm=$ac_dir/$lt_tmp_nm 4872 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4873 # Check to see if the nm accepts a BSD-compat flag. 4874 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4875 # nm: unknown option "B" ignored 4876 # Tru64's nm complains that /dev/null is an invalid object file 4877 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4878 case $build_os in 4879 mingw*) lt_bad_file=conftest.nm/nofile ;; 4880 *) lt_bad_file=/dev/null ;; 4881 esac 4882 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4883 *$lt_bad_file* | *'Invalid file or object type'*) 4884 lt_cv_path_NM="$tmp_nm -B" 4885 break 2 4886 ;; 4887 *) 4888 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4889 */dev/null*) 4890 lt_cv_path_NM="$tmp_nm -p" 4891 break 2 4892 ;; 4893 *) 4894 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4895 continue # so that we can try to find one that supports BSD flags 4896 ;; 4897 esac 4898 ;; 4899 esac 4900 fi 4901 done 4902 IFS=$lt_save_ifs 4903 done 4904 : ${lt_cv_path_NM=no} 4905fi 4906fi 4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4908$as_echo "$lt_cv_path_NM" >&6; } 4909if test no != "$lt_cv_path_NM"; then 4910 NM=$lt_cv_path_NM 4911else 4912 # Didn't find any BSD compatible name lister, look for dumpbin. 4913 if test -n "$DUMPBIN"; then : 4914 # Let the user override the test. 4915 else 4916 if test -n "$ac_tool_prefix"; then 4917 for ac_prog in dumpbin "link -dump" 4918 do 4919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4920set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4922$as_echo_n "checking for $ac_word... " >&6; } 4923if ${ac_cv_prog_DUMPBIN+:} false; then : 4924 $as_echo_n "(cached) " >&6 4925else 4926 if test -n "$DUMPBIN"; then 4927 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4928else 4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4930for as_dir in $PATH 4931do 4932 IFS=$as_save_IFS 4933 test -z "$as_dir" && as_dir=. 4934 for ac_exec_ext in '' $ac_executable_extensions; do 4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4936 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4938 break 2 4939 fi 4940done 4941 done 4942IFS=$as_save_IFS 4943 4944fi 4945fi 4946DUMPBIN=$ac_cv_prog_DUMPBIN 4947if test -n "$DUMPBIN"; then 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4949$as_echo "$DUMPBIN" >&6; } 4950else 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4952$as_echo "no" >&6; } 4953fi 4954 4955 4956 test -n "$DUMPBIN" && break 4957 done 4958fi 4959if test -z "$DUMPBIN"; then 4960 ac_ct_DUMPBIN=$DUMPBIN 4961 for ac_prog in dumpbin "link -dump" 4962do 4963 # Extract the first word of "$ac_prog", so it can be a program name with args. 4964set dummy $ac_prog; ac_word=$2 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4966$as_echo_n "checking for $ac_word... " >&6; } 4967if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4968 $as_echo_n "(cached) " >&6 4969else 4970 if test -n "$ac_ct_DUMPBIN"; then 4971 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4972else 4973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4974for as_dir in $PATH 4975do 4976 IFS=$as_save_IFS 4977 test -z "$as_dir" && as_dir=. 4978 for ac_exec_ext in '' $ac_executable_extensions; do 4979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4980 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4982 break 2 4983 fi 4984done 4985 done 4986IFS=$as_save_IFS 4987 4988fi 4989fi 4990ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4991if test -n "$ac_ct_DUMPBIN"; then 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4993$as_echo "$ac_ct_DUMPBIN" >&6; } 4994else 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4996$as_echo "no" >&6; } 4997fi 4998 4999 5000 test -n "$ac_ct_DUMPBIN" && break 5001done 5002 5003 if test "x$ac_ct_DUMPBIN" = x; then 5004 DUMPBIN=":" 5005 else 5006 case $cross_compiling:$ac_tool_warned in 5007yes:) 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5010ac_tool_warned=yes ;; 5011esac 5012 DUMPBIN=$ac_ct_DUMPBIN 5013 fi 5014fi 5015 5016 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5017 *COFF*) 5018 DUMPBIN="$DUMPBIN -symbols -headers" 5019 ;; 5020 *) 5021 DUMPBIN=: 5022 ;; 5023 esac 5024 fi 5025 5026 if test : != "$DUMPBIN"; then 5027 NM=$DUMPBIN 5028 fi 5029fi 5030test -z "$NM" && NM=nm 5031 5032 5033 5034 5035 5036 5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5038$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5039if ${lt_cv_nm_interface+:} false; then : 5040 $as_echo_n "(cached) " >&6 5041else 5042 lt_cv_nm_interface="BSD nm" 5043 echo "int some_variable = 0;" > conftest.$ac_ext 5044 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5045 (eval "$ac_compile" 2>conftest.err) 5046 cat conftest.err >&5 5047 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5048 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5049 cat conftest.err >&5 5050 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5051 cat conftest.out >&5 5052 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5053 lt_cv_nm_interface="MS dumpbin" 5054 fi 5055 rm -f conftest* 5056fi 5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5058$as_echo "$lt_cv_nm_interface" >&6; } 5059 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5061$as_echo_n "checking whether ln -s works... " >&6; } 5062LN_S=$as_ln_s 5063if test "$LN_S" = "ln -s"; then 5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5065$as_echo "yes" >&6; } 5066else 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5068$as_echo "no, using $LN_S" >&6; } 5069fi 5070 5071# find the maximum length of command line arguments 5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5073$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5074if ${lt_cv_sys_max_cmd_len+:} false; then : 5075 $as_echo_n "(cached) " >&6 5076else 5077 i=0 5078 teststring=ABCD 5079 5080 case $build_os in 5081 msdosdjgpp*) 5082 # On DJGPP, this test can blow up pretty badly due to problems in libc 5083 # (any single argument exceeding 2000 bytes causes a buffer overrun 5084 # during glob expansion). Even if it were fixed, the result of this 5085 # check would be larger than it should be. 5086 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5087 ;; 5088 5089 gnu*) 5090 # Under GNU Hurd, this test is not required because there is 5091 # no limit to the length of command line arguments. 5092 # Libtool will interpret -1 as no limit whatsoever 5093 lt_cv_sys_max_cmd_len=-1; 5094 ;; 5095 5096 cygwin* | mingw* | cegcc*) 5097 # On Win9x/ME, this test blows up -- it succeeds, but takes 5098 # about 5 minutes as the teststring grows exponentially. 5099 # Worse, since 9x/ME are not pre-emptively multitasking, 5100 # you end up with a "frozen" computer, even though with patience 5101 # the test eventually succeeds (with a max line length of 256k). 5102 # Instead, let's just punt: use the minimum linelength reported by 5103 # all of the supported platforms: 8192 (on NT/2K/XP). 5104 lt_cv_sys_max_cmd_len=8192; 5105 ;; 5106 5107 mint*) 5108 # On MiNT this can take a long time and run out of memory. 5109 lt_cv_sys_max_cmd_len=8192; 5110 ;; 5111 5112 amigaos*) 5113 # On AmigaOS with pdksh, this test takes hours, literally. 5114 # So we just punt and use a minimum line length of 8192. 5115 lt_cv_sys_max_cmd_len=8192; 5116 ;; 5117 5118 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5119 # This has been around since 386BSD, at least. Likely further. 5120 if test -x /sbin/sysctl; then 5121 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5122 elif test -x /usr/sbin/sysctl; then 5123 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5124 else 5125 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5126 fi 5127 # And add a safety zone 5128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5130 ;; 5131 5132 interix*) 5133 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5134 lt_cv_sys_max_cmd_len=196608 5135 ;; 5136 5137 os2*) 5138 # The test takes a long time on OS/2. 5139 lt_cv_sys_max_cmd_len=8192 5140 ;; 5141 5142 osf*) 5143 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5144 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5145 # nice to cause kernel panics so lets avoid the loop below. 5146 # First set a reasonable default. 5147 lt_cv_sys_max_cmd_len=16384 5148 # 5149 if test -x /sbin/sysconfig; then 5150 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5151 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5152 esac 5153 fi 5154 ;; 5155 sco3.2v5*) 5156 lt_cv_sys_max_cmd_len=102400 5157 ;; 5158 sysv5* | sco5v6* | sysv4.2uw2*) 5159 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5160 if test -n "$kargmax"; then 5161 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5162 else 5163 lt_cv_sys_max_cmd_len=32768 5164 fi 5165 ;; 5166 *) 5167 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5168 if test -n "$lt_cv_sys_max_cmd_len" && \ 5169 test undefined != "$lt_cv_sys_max_cmd_len"; then 5170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5172 else 5173 # Make teststring a little bigger before we do anything with it. 5174 # a 1K string should be a reasonable start. 5175 for i in 1 2 3 4 5 6 7 8; do 5176 teststring=$teststring$teststring 5177 done 5178 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5179 # If test is not a shell built-in, we'll probably end up computing a 5180 # maximum length that is only half of the actual maximum length, but 5181 # we can't tell. 5182 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5183 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5184 test 17 != "$i" # 1/2 MB should be enough 5185 do 5186 i=`expr $i + 1` 5187 teststring=$teststring$teststring 5188 done 5189 # Only check the string length outside the loop. 5190 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5191 teststring= 5192 # Add a significant safety factor because C++ compilers can tack on 5193 # massive amounts of additional arguments before passing them to the 5194 # linker. It appears as though 1/2 is a usable value. 5195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5196 fi 5197 ;; 5198 esac 5199 5200fi 5201 5202if test -n "$lt_cv_sys_max_cmd_len"; then 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5204$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5205else 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5207$as_echo "none" >&6; } 5208fi 5209max_cmd_len=$lt_cv_sys_max_cmd_len 5210 5211 5212 5213 5214 5215 5216: ${CP="cp -f"} 5217: ${MV="mv -f"} 5218: ${RM="rm -f"} 5219 5220if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5221 lt_unset=unset 5222else 5223 lt_unset=false 5224fi 5225 5226 5227 5228 5229 5230# test EBCDIC or ASCII 5231case `echo X|tr X '\101'` in 5232 A) # ASCII based system 5233 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5234 lt_SP2NL='tr \040 \012' 5235 lt_NL2SP='tr \015\012 \040\040' 5236 ;; 5237 *) # EBCDIC based system 5238 lt_SP2NL='tr \100 \n' 5239 lt_NL2SP='tr \r\n \100\100' 5240 ;; 5241esac 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5252$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5253if ${lt_cv_to_host_file_cmd+:} false; then : 5254 $as_echo_n "(cached) " >&6 5255else 5256 case $host in 5257 *-*-mingw* ) 5258 case $build in 5259 *-*-mingw* ) # actually msys 5260 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5261 ;; 5262 *-*-cygwin* ) 5263 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5264 ;; 5265 * ) # otherwise, assume *nix 5266 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5267 ;; 5268 esac 5269 ;; 5270 *-*-cygwin* ) 5271 case $build in 5272 *-*-mingw* ) # actually msys 5273 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5274 ;; 5275 *-*-cygwin* ) 5276 lt_cv_to_host_file_cmd=func_convert_file_noop 5277 ;; 5278 * ) # otherwise, assume *nix 5279 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5280 ;; 5281 esac 5282 ;; 5283 * ) # unhandled hosts (and "normal" native builds) 5284 lt_cv_to_host_file_cmd=func_convert_file_noop 5285 ;; 5286esac 5287 5288fi 5289 5290to_host_file_cmd=$lt_cv_to_host_file_cmd 5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5292$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5293 5294 5295 5296 5297 5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5299$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5300if ${lt_cv_to_tool_file_cmd+:} false; then : 5301 $as_echo_n "(cached) " >&6 5302else 5303 #assume ordinary cross tools, or native build. 5304lt_cv_to_tool_file_cmd=func_convert_file_noop 5305case $host in 5306 *-*-mingw* ) 5307 case $build in 5308 *-*-mingw* ) # actually msys 5309 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5310 ;; 5311 esac 5312 ;; 5313esac 5314 5315fi 5316 5317to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5319$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5320 5321 5322 5323 5324 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5326$as_echo_n "checking for $LD option to reload object files... " >&6; } 5327if ${lt_cv_ld_reload_flag+:} false; then : 5328 $as_echo_n "(cached) " >&6 5329else 5330 lt_cv_ld_reload_flag='-r' 5331fi 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5333$as_echo "$lt_cv_ld_reload_flag" >&6; } 5334reload_flag=$lt_cv_ld_reload_flag 5335case $reload_flag in 5336"" | " "*) ;; 5337*) reload_flag=" $reload_flag" ;; 5338esac 5339reload_cmds='$LD$reload_flag -o $output$reload_objs' 5340case $host_os in 5341 cygwin* | mingw* | pw32* | cegcc*) 5342 if test yes != "$GCC"; then 5343 reload_cmds=false 5344 fi 5345 ;; 5346 darwin*) 5347 if test yes = "$GCC"; then 5348 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5349 else 5350 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5351 fi 5352 ;; 5353esac 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363if test -n "$ac_tool_prefix"; then 5364 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5365set dummy ${ac_tool_prefix}objdump; ac_word=$2 5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5367$as_echo_n "checking for $ac_word... " >&6; } 5368if ${ac_cv_prog_OBJDUMP+:} false; then : 5369 $as_echo_n "(cached) " >&6 5370else 5371 if test -n "$OBJDUMP"; then 5372 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5373else 5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5375for as_dir in $PATH 5376do 5377 IFS=$as_save_IFS 5378 test -z "$as_dir" && as_dir=. 5379 for ac_exec_ext in '' $ac_executable_extensions; do 5380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5381 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5383 break 2 5384 fi 5385done 5386 done 5387IFS=$as_save_IFS 5388 5389fi 5390fi 5391OBJDUMP=$ac_cv_prog_OBJDUMP 5392if test -n "$OBJDUMP"; then 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5394$as_echo "$OBJDUMP" >&6; } 5395else 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5397$as_echo "no" >&6; } 5398fi 5399 5400 5401fi 5402if test -z "$ac_cv_prog_OBJDUMP"; then 5403 ac_ct_OBJDUMP=$OBJDUMP 5404 # Extract the first word of "objdump", so it can be a program name with args. 5405set dummy objdump; ac_word=$2 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5407$as_echo_n "checking for $ac_word... " >&6; } 5408if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5409 $as_echo_n "(cached) " >&6 5410else 5411 if test -n "$ac_ct_OBJDUMP"; then 5412 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5413else 5414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5415for as_dir in $PATH 5416do 5417 IFS=$as_save_IFS 5418 test -z "$as_dir" && as_dir=. 5419 for ac_exec_ext in '' $ac_executable_extensions; do 5420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5421 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5423 break 2 5424 fi 5425done 5426 done 5427IFS=$as_save_IFS 5428 5429fi 5430fi 5431ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5432if test -n "$ac_ct_OBJDUMP"; then 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5434$as_echo "$ac_ct_OBJDUMP" >&6; } 5435else 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5437$as_echo "no" >&6; } 5438fi 5439 5440 if test "x$ac_ct_OBJDUMP" = x; then 5441 OBJDUMP="false" 5442 else 5443 case $cross_compiling:$ac_tool_warned in 5444yes:) 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5447ac_tool_warned=yes ;; 5448esac 5449 OBJDUMP=$ac_ct_OBJDUMP 5450 fi 5451else 5452 OBJDUMP="$ac_cv_prog_OBJDUMP" 5453fi 5454 5455test -z "$OBJDUMP" && OBJDUMP=objdump 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5466$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5467if ${lt_cv_deplibs_check_method+:} false; then : 5468 $as_echo_n "(cached) " >&6 5469else 5470 lt_cv_file_magic_cmd='$MAGIC_CMD' 5471lt_cv_file_magic_test_file= 5472lt_cv_deplibs_check_method='unknown' 5473# Need to set the preceding variable on all platforms that support 5474# interlibrary dependencies. 5475# 'none' -- dependencies not supported. 5476# 'unknown' -- same as none, but documents that we really don't know. 5477# 'pass_all' -- all dependencies passed with no checks. 5478# 'test_compile' -- check by making test program. 5479# 'file_magic [[regex]]' -- check by looking for files in library path 5480# that responds to the $file_magic_cmd with a given extended regex. 5481# If you have 'file' or equivalent on your system and you're not sure 5482# whether 'pass_all' will *always* work, you probably want this one. 5483 5484case $host_os in 5485aix[4-9]*) 5486 lt_cv_deplibs_check_method=pass_all 5487 ;; 5488 5489beos*) 5490 lt_cv_deplibs_check_method=pass_all 5491 ;; 5492 5493bsdi[45]*) 5494 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5495 lt_cv_file_magic_cmd='/usr/bin/file -L' 5496 lt_cv_file_magic_test_file=/shlib/libc.so 5497 ;; 5498 5499cygwin*) 5500 # func_win32_libid is a shell function defined in ltmain.sh 5501 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5502 lt_cv_file_magic_cmd='func_win32_libid' 5503 ;; 5504 5505mingw* | pw32*) 5506 # Base MSYS/MinGW do not provide the 'file' command needed by 5507 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5508 # unless we find 'file', for example because we are cross-compiling. 5509 if ( file / ) >/dev/null 2>&1; then 5510 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5511 lt_cv_file_magic_cmd='func_win32_libid' 5512 else 5513 # Keep this pattern in sync with the one in func_win32_libid. 5514 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5515 lt_cv_file_magic_cmd='$OBJDUMP -f' 5516 fi 5517 ;; 5518 5519cegcc*) 5520 # use the weaker test based on 'objdump'. See mingw*. 5521 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5522 lt_cv_file_magic_cmd='$OBJDUMP -f' 5523 ;; 5524 5525darwin* | rhapsody*) 5526 lt_cv_deplibs_check_method=pass_all 5527 ;; 5528 5529freebsd* | dragonfly*) 5530 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5531 case $host_cpu in 5532 i*86 ) 5533 # Not sure whether the presence of OpenBSD here was a mistake. 5534 # Let's accept both of them until this is cleared up. 5535 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5536 lt_cv_file_magic_cmd=/usr/bin/file 5537 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5538 ;; 5539 esac 5540 else 5541 lt_cv_deplibs_check_method=pass_all 5542 fi 5543 ;; 5544 5545haiku*) 5546 lt_cv_deplibs_check_method=pass_all 5547 ;; 5548 5549hpux10.20* | hpux11*) 5550 lt_cv_file_magic_cmd=/usr/bin/file 5551 case $host_cpu in 5552 ia64*) 5553 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5554 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5555 ;; 5556 hppa*64*) 5557 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]' 5558 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5559 ;; 5560 *) 5561 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5562 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5563 ;; 5564 esac 5565 ;; 5566 5567interix[3-9]*) 5568 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5570 ;; 5571 5572irix5* | irix6* | nonstopux*) 5573 case $LD in 5574 *-32|*"-32 ") libmagic=32-bit;; 5575 *-n32|*"-n32 ") libmagic=N32;; 5576 *-64|*"-64 ") libmagic=64-bit;; 5577 *) libmagic=never-match;; 5578 esac 5579 lt_cv_deplibs_check_method=pass_all 5580 ;; 5581 5582# This must be glibc/ELF. 5583linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5584 lt_cv_deplibs_check_method=pass_all 5585 ;; 5586 5587netbsd* | netbsdelf*-gnu) 5588 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5590 else 5591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5592 fi 5593 ;; 5594 5595newos6*) 5596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5597 lt_cv_file_magic_cmd=/usr/bin/file 5598 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5599 ;; 5600 5601*nto* | *qnx*) 5602 lt_cv_deplibs_check_method=pass_all 5603 ;; 5604 5605openbsd* | bitrig*) 5606 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5608 else 5609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5610 fi 5611 ;; 5612 5613osf3* | osf4* | osf5*) 5614 lt_cv_deplibs_check_method=pass_all 5615 ;; 5616 5617rdos*) 5618 lt_cv_deplibs_check_method=pass_all 5619 ;; 5620 5621solaris*) 5622 lt_cv_deplibs_check_method=pass_all 5623 ;; 5624 5625sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5626 lt_cv_deplibs_check_method=pass_all 5627 ;; 5628 5629sysv4 | sysv4.3*) 5630 case $host_vendor in 5631 motorola) 5632 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]' 5633 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5634 ;; 5635 ncr) 5636 lt_cv_deplibs_check_method=pass_all 5637 ;; 5638 sequent) 5639 lt_cv_file_magic_cmd='/bin/file' 5640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5641 ;; 5642 sni) 5643 lt_cv_file_magic_cmd='/bin/file' 5644 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5645 lt_cv_file_magic_test_file=/lib/libc.so 5646 ;; 5647 siemens) 5648 lt_cv_deplibs_check_method=pass_all 5649 ;; 5650 pc) 5651 lt_cv_deplibs_check_method=pass_all 5652 ;; 5653 esac 5654 ;; 5655 5656tpf*) 5657 lt_cv_deplibs_check_method=pass_all 5658 ;; 5659os2*) 5660 lt_cv_deplibs_check_method=pass_all 5661 ;; 5662esac 5663 5664fi 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5666$as_echo "$lt_cv_deplibs_check_method" >&6; } 5667 5668file_magic_glob= 5669want_nocaseglob=no 5670if test "$build" = "$host"; then 5671 case $host_os in 5672 mingw* | pw32*) 5673 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5674 want_nocaseglob=yes 5675 else 5676 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5677 fi 5678 ;; 5679 esac 5680fi 5681 5682file_magic_cmd=$lt_cv_file_magic_cmd 5683deplibs_check_method=$lt_cv_deplibs_check_method 5684test -z "$deplibs_check_method" && deplibs_check_method=unknown 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707if test -n "$ac_tool_prefix"; then 5708 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5709set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5711$as_echo_n "checking for $ac_word... " >&6; } 5712if ${ac_cv_prog_DLLTOOL+:} false; then : 5713 $as_echo_n "(cached) " >&6 5714else 5715 if test -n "$DLLTOOL"; then 5716 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5717else 5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5719for as_dir in $PATH 5720do 5721 IFS=$as_save_IFS 5722 test -z "$as_dir" && as_dir=. 5723 for ac_exec_ext in '' $ac_executable_extensions; do 5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5725 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5727 break 2 5728 fi 5729done 5730 done 5731IFS=$as_save_IFS 5732 5733fi 5734fi 5735DLLTOOL=$ac_cv_prog_DLLTOOL 5736if test -n "$DLLTOOL"; then 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5738$as_echo "$DLLTOOL" >&6; } 5739else 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5741$as_echo "no" >&6; } 5742fi 5743 5744 5745fi 5746if test -z "$ac_cv_prog_DLLTOOL"; then 5747 ac_ct_DLLTOOL=$DLLTOOL 5748 # Extract the first word of "dlltool", so it can be a program name with args. 5749set dummy dlltool; ac_word=$2 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5751$as_echo_n "checking for $ac_word... " >&6; } 5752if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5753 $as_echo_n "(cached) " >&6 5754else 5755 if test -n "$ac_ct_DLLTOOL"; then 5756 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5757else 5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5759for as_dir in $PATH 5760do 5761 IFS=$as_save_IFS 5762 test -z "$as_dir" && as_dir=. 5763 for ac_exec_ext in '' $ac_executable_extensions; do 5764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5765 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5767 break 2 5768 fi 5769done 5770 done 5771IFS=$as_save_IFS 5772 5773fi 5774fi 5775ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5776if test -n "$ac_ct_DLLTOOL"; then 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5778$as_echo "$ac_ct_DLLTOOL" >&6; } 5779else 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5781$as_echo "no" >&6; } 5782fi 5783 5784 if test "x$ac_ct_DLLTOOL" = x; then 5785 DLLTOOL="false" 5786 else 5787 case $cross_compiling:$ac_tool_warned in 5788yes:) 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5791ac_tool_warned=yes ;; 5792esac 5793 DLLTOOL=$ac_ct_DLLTOOL 5794 fi 5795else 5796 DLLTOOL="$ac_cv_prog_DLLTOOL" 5797fi 5798 5799test -z "$DLLTOOL" && DLLTOOL=dlltool 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5811$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5812if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5813 $as_echo_n "(cached) " >&6 5814else 5815 lt_cv_sharedlib_from_linklib_cmd='unknown' 5816 5817case $host_os in 5818cygwin* | mingw* | pw32* | cegcc*) 5819 # two different shell functions defined in ltmain.sh; 5820 # decide which one to use based on capabilities of $DLLTOOL 5821 case `$DLLTOOL --help 2>&1` in 5822 *--identify-strict*) 5823 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5824 ;; 5825 *) 5826 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5827 ;; 5828 esac 5829 ;; 5830*) 5831 # fallback: assume linklib IS sharedlib 5832 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5833 ;; 5834esac 5835 5836fi 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5838$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5839sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5840test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5841 5842 5843 5844 5845 5846 5847 5848 5849if test -n "$ac_tool_prefix"; then 5850 for ac_prog in ar 5851 do 5852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5853set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5855$as_echo_n "checking for $ac_word... " >&6; } 5856if ${ac_cv_prog_AR+:} false; then : 5857 $as_echo_n "(cached) " >&6 5858else 5859 if test -n "$AR"; then 5860 ac_cv_prog_AR="$AR" # Let the user override the test. 5861else 5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5863for as_dir in $PATH 5864do 5865 IFS=$as_save_IFS 5866 test -z "$as_dir" && as_dir=. 5867 for ac_exec_ext in '' $ac_executable_extensions; do 5868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5869 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5871 break 2 5872 fi 5873done 5874 done 5875IFS=$as_save_IFS 5876 5877fi 5878fi 5879AR=$ac_cv_prog_AR 5880if test -n "$AR"; then 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5882$as_echo "$AR" >&6; } 5883else 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5885$as_echo "no" >&6; } 5886fi 5887 5888 5889 test -n "$AR" && break 5890 done 5891fi 5892if test -z "$AR"; then 5893 ac_ct_AR=$AR 5894 for ac_prog in ar 5895do 5896 # Extract the first word of "$ac_prog", so it can be a program name with args. 5897set dummy $ac_prog; ac_word=$2 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5899$as_echo_n "checking for $ac_word... " >&6; } 5900if ${ac_cv_prog_ac_ct_AR+:} false; then : 5901 $as_echo_n "(cached) " >&6 5902else 5903 if test -n "$ac_ct_AR"; then 5904 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5905else 5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5907for as_dir in $PATH 5908do 5909 IFS=$as_save_IFS 5910 test -z "$as_dir" && as_dir=. 5911 for ac_exec_ext in '' $ac_executable_extensions; do 5912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5913 ac_cv_prog_ac_ct_AR="$ac_prog" 5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5915 break 2 5916 fi 5917done 5918 done 5919IFS=$as_save_IFS 5920 5921fi 5922fi 5923ac_ct_AR=$ac_cv_prog_ac_ct_AR 5924if test -n "$ac_ct_AR"; then 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5926$as_echo "$ac_ct_AR" >&6; } 5927else 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5929$as_echo "no" >&6; } 5930fi 5931 5932 5933 test -n "$ac_ct_AR" && break 5934done 5935 5936 if test "x$ac_ct_AR" = x; then 5937 AR="false" 5938 else 5939 case $cross_compiling:$ac_tool_warned in 5940yes:) 5941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5943ac_tool_warned=yes ;; 5944esac 5945 AR=$ac_ct_AR 5946 fi 5947fi 5948 5949: ${AR=ar} 5950: ${AR_FLAGS=cr} 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5963$as_echo_n "checking for archiver @FILE support... " >&6; } 5964if ${lt_cv_ar_at_file+:} false; then : 5965 $as_echo_n "(cached) " >&6 5966else 5967 lt_cv_ar_at_file=no 5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5969/* end confdefs.h. */ 5970 5971int 5972main () 5973{ 5974 5975 ; 5976 return 0; 5977} 5978_ACEOF 5979if ac_fn_c_try_compile "$LINENO"; then : 5980 echo conftest.$ac_objext > conftest.lst 5981 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5983 (eval $lt_ar_try) 2>&5 5984 ac_status=$? 5985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5986 test $ac_status = 0; } 5987 if test 0 -eq "$ac_status"; then 5988 # Ensure the archiver fails upon bogus file names. 5989 rm -f conftest.$ac_objext libconftest.a 5990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5991 (eval $lt_ar_try) 2>&5 5992 ac_status=$? 5993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5994 test $ac_status = 0; } 5995 if test 0 -ne "$ac_status"; then 5996 lt_cv_ar_at_file=@ 5997 fi 5998 fi 5999 rm -f conftest.* libconftest.a 6000 6001fi 6002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6003 6004fi 6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6006$as_echo "$lt_cv_ar_at_file" >&6; } 6007 6008if test no = "$lt_cv_ar_at_file"; then 6009 archiver_list_spec= 6010else 6011 archiver_list_spec=$lt_cv_ar_at_file 6012fi 6013 6014 6015 6016 6017 6018 6019 6020if test -n "$ac_tool_prefix"; then 6021 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6022set dummy ${ac_tool_prefix}strip; ac_word=$2 6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6024$as_echo_n "checking for $ac_word... " >&6; } 6025if ${ac_cv_prog_STRIP+:} false; then : 6026 $as_echo_n "(cached) " >&6 6027else 6028 if test -n "$STRIP"; then 6029 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6030else 6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6032for as_dir in $PATH 6033do 6034 IFS=$as_save_IFS 6035 test -z "$as_dir" && as_dir=. 6036 for ac_exec_ext in '' $ac_executable_extensions; do 6037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6038 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6040 break 2 6041 fi 6042done 6043 done 6044IFS=$as_save_IFS 6045 6046fi 6047fi 6048STRIP=$ac_cv_prog_STRIP 6049if test -n "$STRIP"; then 6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6051$as_echo "$STRIP" >&6; } 6052else 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6054$as_echo "no" >&6; } 6055fi 6056 6057 6058fi 6059if test -z "$ac_cv_prog_STRIP"; then 6060 ac_ct_STRIP=$STRIP 6061 # Extract the first word of "strip", so it can be a program name with args. 6062set dummy strip; ac_word=$2 6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6064$as_echo_n "checking for $ac_word... " >&6; } 6065if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6066 $as_echo_n "(cached) " >&6 6067else 6068 if test -n "$ac_ct_STRIP"; then 6069 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6070else 6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6072for as_dir in $PATH 6073do 6074 IFS=$as_save_IFS 6075 test -z "$as_dir" && as_dir=. 6076 for ac_exec_ext in '' $ac_executable_extensions; do 6077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6078 ac_cv_prog_ac_ct_STRIP="strip" 6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6080 break 2 6081 fi 6082done 6083 done 6084IFS=$as_save_IFS 6085 6086fi 6087fi 6088ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6089if test -n "$ac_ct_STRIP"; then 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6091$as_echo "$ac_ct_STRIP" >&6; } 6092else 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6094$as_echo "no" >&6; } 6095fi 6096 6097 if test "x$ac_ct_STRIP" = x; then 6098 STRIP=":" 6099 else 6100 case $cross_compiling:$ac_tool_warned in 6101yes:) 6102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6104ac_tool_warned=yes ;; 6105esac 6106 STRIP=$ac_ct_STRIP 6107 fi 6108else 6109 STRIP="$ac_cv_prog_STRIP" 6110fi 6111 6112test -z "$STRIP" && STRIP=: 6113 6114 6115 6116 6117 6118 6119if test -n "$ac_tool_prefix"; then 6120 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6121set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6123$as_echo_n "checking for $ac_word... " >&6; } 6124if ${ac_cv_prog_RANLIB+:} false; then : 6125 $as_echo_n "(cached) " >&6 6126else 6127 if test -n "$RANLIB"; then 6128 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6129else 6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6131for as_dir in $PATH 6132do 6133 IFS=$as_save_IFS 6134 test -z "$as_dir" && as_dir=. 6135 for ac_exec_ext in '' $ac_executable_extensions; do 6136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6137 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6139 break 2 6140 fi 6141done 6142 done 6143IFS=$as_save_IFS 6144 6145fi 6146fi 6147RANLIB=$ac_cv_prog_RANLIB 6148if test -n "$RANLIB"; then 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6150$as_echo "$RANLIB" >&6; } 6151else 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6153$as_echo "no" >&6; } 6154fi 6155 6156 6157fi 6158if test -z "$ac_cv_prog_RANLIB"; then 6159 ac_ct_RANLIB=$RANLIB 6160 # Extract the first word of "ranlib", so it can be a program name with args. 6161set dummy ranlib; ac_word=$2 6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6163$as_echo_n "checking for $ac_word... " >&6; } 6164if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6165 $as_echo_n "(cached) " >&6 6166else 6167 if test -n "$ac_ct_RANLIB"; then 6168 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6169else 6170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6171for as_dir in $PATH 6172do 6173 IFS=$as_save_IFS 6174 test -z "$as_dir" && as_dir=. 6175 for ac_exec_ext in '' $ac_executable_extensions; do 6176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6177 ac_cv_prog_ac_ct_RANLIB="ranlib" 6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6179 break 2 6180 fi 6181done 6182 done 6183IFS=$as_save_IFS 6184 6185fi 6186fi 6187ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6188if test -n "$ac_ct_RANLIB"; then 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6190$as_echo "$ac_ct_RANLIB" >&6; } 6191else 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6193$as_echo "no" >&6; } 6194fi 6195 6196 if test "x$ac_ct_RANLIB" = x; then 6197 RANLIB=":" 6198 else 6199 case $cross_compiling:$ac_tool_warned in 6200yes:) 6201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6203ac_tool_warned=yes ;; 6204esac 6205 RANLIB=$ac_ct_RANLIB 6206 fi 6207else 6208 RANLIB="$ac_cv_prog_RANLIB" 6209fi 6210 6211test -z "$RANLIB" && RANLIB=: 6212 6213 6214 6215 6216 6217 6218# Determine commands to create old-style static archives. 6219old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6220old_postinstall_cmds='chmod 644 $oldlib' 6221old_postuninstall_cmds= 6222 6223if test -n "$RANLIB"; then 6224 case $host_os in 6225 bitrig* | openbsd*) 6226 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6227 ;; 6228 *) 6229 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6230 ;; 6231 esac 6232 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6233fi 6234 6235case $host_os in 6236 darwin*) 6237 lock_old_archive_extraction=yes ;; 6238 *) 6239 lock_old_archive_extraction=no ;; 6240esac 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280# If no C compiler was specified, use CC. 6281LTCC=${LTCC-"$CC"} 6282 6283# If no C compiler flags were specified, use CFLAGS. 6284LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6285 6286# Allow CC to be a program name with arguments. 6287compiler=$CC 6288 6289 6290# Check for command to grab the raw symbol name followed by C symbol from nm. 6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6292$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6293if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6294 $as_echo_n "(cached) " >&6 6295else 6296 6297# These are sane defaults that work on at least a few old systems. 6298# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6299 6300# Character class describing NM global symbol codes. 6301symcode='[BCDEGRST]' 6302 6303# Regexp to match symbols that can be accessed directly from C. 6304sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6305 6306# Define system-specific variables. 6307case $host_os in 6308aix*) 6309 symcode='[BCDT]' 6310 ;; 6311cygwin* | mingw* | pw32* | cegcc*) 6312 symcode='[ABCDGISTW]' 6313 ;; 6314hpux*) 6315 if test ia64 = "$host_cpu"; then 6316 symcode='[ABCDEGRST]' 6317 fi 6318 ;; 6319irix* | nonstopux*) 6320 symcode='[BCDEGRST]' 6321 ;; 6322osf*) 6323 symcode='[BCDEGQRST]' 6324 ;; 6325solaris*) 6326 symcode='[BDRT]' 6327 ;; 6328sco3.2v5*) 6329 symcode='[DT]' 6330 ;; 6331sysv4.2uw2*) 6332 symcode='[DT]' 6333 ;; 6334sysv5* | sco5v6* | unixware* | OpenUNIX*) 6335 symcode='[ABDT]' 6336 ;; 6337sysv4) 6338 symcode='[DFNSTU]' 6339 ;; 6340esac 6341 6342# If we're using GNU nm, then use its standard symbol codes. 6343case `$NM -V 2>&1` in 6344*GNU* | *'with BFD'*) 6345 symcode='[ABCDGIRSTW]' ;; 6346esac 6347 6348if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6349 # Gets list of data symbols to import. 6350 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6351 # Adjust the below global symbol transforms to fixup imported variables. 6352 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6353 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6354 lt_c_name_lib_hook="\ 6355 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6356 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6357else 6358 # Disable hooks by default. 6359 lt_cv_sys_global_symbol_to_import= 6360 lt_cdecl_hook= 6361 lt_c_name_hook= 6362 lt_c_name_lib_hook= 6363fi 6364 6365# Transform an extracted symbol line into a proper C declaration. 6366# Some systems (esp. on ia64) link data and code symbols differently, 6367# so use this general approach. 6368lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6369$lt_cdecl_hook\ 6370" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6371" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6372 6373# Transform an extracted symbol line into symbol name and symbol address 6374lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6375$lt_c_name_hook\ 6376" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6377" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6378 6379# Transform an extracted symbol line into symbol name with lib prefix and 6380# symbol address. 6381lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6382$lt_c_name_lib_hook\ 6383" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6384" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6385" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6386 6387# Handle CRLF in mingw tool chain 6388opt_cr= 6389case $build_os in 6390mingw*) 6391 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6392 ;; 6393esac 6394 6395# Try without a prefix underscore, then with it. 6396for ac_symprfx in "" "_"; do 6397 6398 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6399 symxfrm="\\1 $ac_symprfx\\2 \\2" 6400 6401 # Write the raw and C identifiers. 6402 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6403 # Fake it for dumpbin and say T for any non-static function, 6404 # D for any global variable and I for any imported variable. 6405 # Also find C++ and __fastcall symbols from MSVC++, 6406 # which start with @ or ?. 6407 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6408" {last_section=section; section=\$ 3};"\ 6409" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6410" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6411" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6412" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6413" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6414" \$ 0!~/External *\|/{next};"\ 6415" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6416" {if(hide[section]) next};"\ 6417" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6418" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6419" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6420" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6421" ' prfx=^$ac_symprfx" 6422 else 6423 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6424 fi 6425 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6426 6427 # Check to see that the pipe works correctly. 6428 pipe_works=no 6429 6430 rm -f conftest* 6431 cat > conftest.$ac_ext <<_LT_EOF 6432#ifdef __cplusplus 6433extern "C" { 6434#endif 6435char nm_test_var; 6436void nm_test_func(void); 6437void nm_test_func(void){} 6438#ifdef __cplusplus 6439} 6440#endif 6441int main(){nm_test_var='a';nm_test_func();return(0);} 6442_LT_EOF 6443 6444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6445 (eval $ac_compile) 2>&5 6446 ac_status=$? 6447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6448 test $ac_status = 0; }; then 6449 # Now try to grab the symbols. 6450 nlist=conftest.nm 6451 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6452 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6453 # Try sorting and uniquifying the output. 6454 if sort "$nlist" | uniq > "$nlist"T; then 6455 mv -f "$nlist"T "$nlist" 6456 else 6457 rm -f "$nlist"T 6458 fi 6459 6460 # Make sure that we snagged all the symbols we need. 6461 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6462 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6463 cat <<_LT_EOF > conftest.$ac_ext 6464/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6465#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6466/* DATA imports from DLLs on WIN32 can't be const, because runtime 6467 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6468# define LT_DLSYM_CONST 6469#elif defined __osf__ 6470/* This system does not cope well with relocations in const data. */ 6471# define LT_DLSYM_CONST 6472#else 6473# define LT_DLSYM_CONST const 6474#endif 6475 6476#ifdef __cplusplus 6477extern "C" { 6478#endif 6479 6480_LT_EOF 6481 # Now generate the symbol file. 6482 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6483 6484 cat <<_LT_EOF >> conftest.$ac_ext 6485 6486/* The mapping between symbol names and symbols. */ 6487LT_DLSYM_CONST struct { 6488 const char *name; 6489 void *address; 6490} 6491lt__PROGRAM__LTX_preloaded_symbols[] = 6492{ 6493 { "@PROGRAM@", (void *) 0 }, 6494_LT_EOF 6495 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6496 cat <<\_LT_EOF >> conftest.$ac_ext 6497 {0, (void *) 0} 6498}; 6499 6500/* This works around a problem in FreeBSD linker */ 6501#ifdef FREEBSD_WORKAROUND 6502static const void *lt_preloaded_setup() { 6503 return lt__PROGRAM__LTX_preloaded_symbols; 6504} 6505#endif 6506 6507#ifdef __cplusplus 6508} 6509#endif 6510_LT_EOF 6511 # Now try linking the two files. 6512 mv conftest.$ac_objext conftstm.$ac_objext 6513 lt_globsym_save_LIBS=$LIBS 6514 lt_globsym_save_CFLAGS=$CFLAGS 6515 LIBS=conftstm.$ac_objext 6516 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6518 (eval $ac_link) 2>&5 6519 ac_status=$? 6520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6521 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6522 pipe_works=yes 6523 fi 6524 LIBS=$lt_globsym_save_LIBS 6525 CFLAGS=$lt_globsym_save_CFLAGS 6526 else 6527 echo "cannot find nm_test_func in $nlist" >&5 6528 fi 6529 else 6530 echo "cannot find nm_test_var in $nlist" >&5 6531 fi 6532 else 6533 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6534 fi 6535 else 6536 echo "$progname: failed program was:" >&5 6537 cat conftest.$ac_ext >&5 6538 fi 6539 rm -rf conftest* conftst* 6540 6541 # Do not use the global_symbol_pipe unless it works. 6542 if test yes = "$pipe_works"; then 6543 break 6544 else 6545 lt_cv_sys_global_symbol_pipe= 6546 fi 6547done 6548 6549fi 6550 6551if test -z "$lt_cv_sys_global_symbol_pipe"; then 6552 lt_cv_sys_global_symbol_to_cdecl= 6553fi 6554if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6556$as_echo "failed" >&6; } 6557else 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6559$as_echo "ok" >&6; } 6560fi 6561 6562# Response file support. 6563if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6564 nm_file_list_spec='@' 6565elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6566 nm_file_list_spec='@' 6567fi 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6606$as_echo_n "checking for sysroot... " >&6; } 6607 6608# Check whether --with-sysroot was given. 6609if test "${with_sysroot+set}" = set; then : 6610 withval=$with_sysroot; 6611else 6612 with_sysroot=no 6613fi 6614 6615 6616lt_sysroot= 6617case $with_sysroot in #( 6618 yes) 6619 if test yes = "$GCC"; then 6620 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6621 fi 6622 ;; #( 6623 /*) 6624 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6625 ;; #( 6626 no|'') 6627 ;; #( 6628 *) 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6630$as_echo "$with_sysroot" >&6; } 6631 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6632 ;; 6633esac 6634 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6636$as_echo "${lt_sysroot:-no}" >&6; } 6637 6638 6639 6640 6641 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6643$as_echo_n "checking for a working dd... " >&6; } 6644if ${ac_cv_path_lt_DD+:} false; then : 6645 $as_echo_n "(cached) " >&6 6646else 6647 printf 0123456789abcdef0123456789abcdef >conftest.i 6648cat conftest.i conftest.i >conftest2.i 6649: ${lt_DD:=$DD} 6650if test -z "$lt_DD"; then 6651 ac_path_lt_DD_found=false 6652 # Loop through the user's path and test for each of PROGNAME-LIST 6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6654for as_dir in $PATH 6655do 6656 IFS=$as_save_IFS 6657 test -z "$as_dir" && as_dir=. 6658 for ac_prog in dd; do 6659 for ac_exec_ext in '' $ac_executable_extensions; do 6660 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6661 as_fn_executable_p "$ac_path_lt_DD" || continue 6662if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6663 cmp -s conftest.i conftest.out \ 6664 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6665fi 6666 $ac_path_lt_DD_found && break 3 6667 done 6668 done 6669 done 6670IFS=$as_save_IFS 6671 if test -z "$ac_cv_path_lt_DD"; then 6672 : 6673 fi 6674else 6675 ac_cv_path_lt_DD=$lt_DD 6676fi 6677 6678rm -f conftest.i conftest2.i conftest.out 6679fi 6680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6681$as_echo "$ac_cv_path_lt_DD" >&6; } 6682 6683 6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6685$as_echo_n "checking how to truncate binary pipes... " >&6; } 6686if ${lt_cv_truncate_bin+:} false; then : 6687 $as_echo_n "(cached) " >&6 6688else 6689 printf 0123456789abcdef0123456789abcdef >conftest.i 6690cat conftest.i conftest.i >conftest2.i 6691lt_cv_truncate_bin= 6692if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6693 cmp -s conftest.i conftest.out \ 6694 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6695fi 6696rm -f conftest.i conftest2.i conftest.out 6697test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6698fi 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6700$as_echo "$lt_cv_truncate_bin" >&6; } 6701 6702 6703 6704 6705 6706 6707 6708# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6709func_cc_basename () 6710{ 6711 for cc_temp in $*""; do 6712 case $cc_temp in 6713 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6714 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6715 \-*) ;; 6716 *) break;; 6717 esac 6718 done 6719 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6720} 6721 6722# Check whether --enable-libtool-lock was given. 6723if test "${enable_libtool_lock+set}" = set; then : 6724 enableval=$enable_libtool_lock; 6725fi 6726 6727test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6728 6729# Some flags need to be propagated to the compiler or linker for good 6730# libtool support. 6731case $host in 6732ia64-*-hpux*) 6733 # Find out what ABI is being produced by ac_compile, and set mode 6734 # options accordingly. 6735 echo 'int i;' > conftest.$ac_ext 6736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6737 (eval $ac_compile) 2>&5 6738 ac_status=$? 6739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6740 test $ac_status = 0; }; then 6741 case `/usr/bin/file conftest.$ac_objext` in 6742 *ELF-32*) 6743 HPUX_IA64_MODE=32 6744 ;; 6745 *ELF-64*) 6746 HPUX_IA64_MODE=64 6747 ;; 6748 esac 6749 fi 6750 rm -rf conftest* 6751 ;; 6752*-*-irix6*) 6753 # Find out what ABI is being produced by ac_compile, and set linker 6754 # options accordingly. 6755 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6757 (eval $ac_compile) 2>&5 6758 ac_status=$? 6759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6760 test $ac_status = 0; }; then 6761 if test yes = "$lt_cv_prog_gnu_ld"; then 6762 case `/usr/bin/file conftest.$ac_objext` in 6763 *32-bit*) 6764 LD="${LD-ld} -melf32bsmip" 6765 ;; 6766 *N32*) 6767 LD="${LD-ld} -melf32bmipn32" 6768 ;; 6769 *64-bit*) 6770 LD="${LD-ld} -melf64bmip" 6771 ;; 6772 esac 6773 else 6774 case `/usr/bin/file conftest.$ac_objext` in 6775 *32-bit*) 6776 LD="${LD-ld} -32" 6777 ;; 6778 *N32*) 6779 LD="${LD-ld} -n32" 6780 ;; 6781 *64-bit*) 6782 LD="${LD-ld} -64" 6783 ;; 6784 esac 6785 fi 6786 fi 6787 rm -rf conftest* 6788 ;; 6789 6790mips64*-*linux*) 6791 # Find out what ABI is being produced by ac_compile, and set linker 6792 # options accordingly. 6793 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6795 (eval $ac_compile) 2>&5 6796 ac_status=$? 6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6798 test $ac_status = 0; }; then 6799 emul=elf 6800 case `/usr/bin/file conftest.$ac_objext` in 6801 *32-bit*) 6802 emul="${emul}32" 6803 ;; 6804 *64-bit*) 6805 emul="${emul}64" 6806 ;; 6807 esac 6808 case `/usr/bin/file conftest.$ac_objext` in 6809 *MSB*) 6810 emul="${emul}btsmip" 6811 ;; 6812 *LSB*) 6813 emul="${emul}ltsmip" 6814 ;; 6815 esac 6816 case `/usr/bin/file conftest.$ac_objext` in 6817 *N32*) 6818 emul="${emul}n32" 6819 ;; 6820 esac 6821 LD="${LD-ld} -m $emul" 6822 fi 6823 rm -rf conftest* 6824 ;; 6825 6826x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6827s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6828 # Find out what ABI is being produced by ac_compile, and set linker 6829 # options accordingly. Note that the listed cases only cover the 6830 # situations where additional linker options are needed (such as when 6831 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6832 # vice versa); the common cases where no linker options are needed do 6833 # not appear in the list. 6834 echo 'int i;' > conftest.$ac_ext 6835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6836 (eval $ac_compile) 2>&5 6837 ac_status=$? 6838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6839 test $ac_status = 0; }; then 6840 case `/usr/bin/file conftest.o` in 6841 *32-bit*) 6842 case $host in 6843 x86_64-*kfreebsd*-gnu) 6844 LD="${LD-ld} -m elf_i386_fbsd" 6845 ;; 6846 x86_64-*linux*) 6847 case `/usr/bin/file conftest.o` in 6848 *x86-64*) 6849 LD="${LD-ld} -m elf32_x86_64" 6850 ;; 6851 *) 6852 LD="${LD-ld} -m elf_i386" 6853 ;; 6854 esac 6855 ;; 6856 powerpc64le-*linux*) 6857 LD="${LD-ld} -m elf32lppclinux" 6858 ;; 6859 powerpc64-*linux*) 6860 LD="${LD-ld} -m elf32ppclinux" 6861 ;; 6862 s390x-*linux*) 6863 LD="${LD-ld} -m elf_s390" 6864 ;; 6865 sparc64-*linux*) 6866 LD="${LD-ld} -m elf32_sparc" 6867 ;; 6868 esac 6869 ;; 6870 *64-bit*) 6871 case $host in 6872 x86_64-*kfreebsd*-gnu) 6873 LD="${LD-ld} -m elf_x86_64_fbsd" 6874 ;; 6875 x86_64-*linux*) 6876 LD="${LD-ld} -m elf_x86_64" 6877 ;; 6878 powerpcle-*linux*) 6879 LD="${LD-ld} -m elf64lppc" 6880 ;; 6881 powerpc-*linux*) 6882 LD="${LD-ld} -m elf64ppc" 6883 ;; 6884 s390*-*linux*|s390*-*tpf*) 6885 LD="${LD-ld} -m elf64_s390" 6886 ;; 6887 sparc*-*linux*) 6888 LD="${LD-ld} -m elf64_sparc" 6889 ;; 6890 esac 6891 ;; 6892 esac 6893 fi 6894 rm -rf conftest* 6895 ;; 6896 6897*-*-sco3.2v5*) 6898 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6899 SAVE_CFLAGS=$CFLAGS 6900 CFLAGS="$CFLAGS -belf" 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6902$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6903if ${lt_cv_cc_needs_belf+:} false; then : 6904 $as_echo_n "(cached) " >&6 6905else 6906 ac_ext=c 6907ac_cpp='$CPP $CPPFLAGS' 6908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6910ac_compiler_gnu=$ac_cv_c_compiler_gnu 6911 6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6913/* end confdefs.h. */ 6914 6915int 6916main () 6917{ 6918 6919 ; 6920 return 0; 6921} 6922_ACEOF 6923if ac_fn_c_try_link "$LINENO"; then : 6924 lt_cv_cc_needs_belf=yes 6925else 6926 lt_cv_cc_needs_belf=no 6927fi 6928rm -f core conftest.err conftest.$ac_objext \ 6929 conftest$ac_exeext conftest.$ac_ext 6930 ac_ext=c 6931ac_cpp='$CPP $CPPFLAGS' 6932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6934ac_compiler_gnu=$ac_cv_c_compiler_gnu 6935 6936fi 6937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6938$as_echo "$lt_cv_cc_needs_belf" >&6; } 6939 if test yes != "$lt_cv_cc_needs_belf"; then 6940 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6941 CFLAGS=$SAVE_CFLAGS 6942 fi 6943 ;; 6944*-*solaris*) 6945 # Find out what ABI is being produced by ac_compile, and set linker 6946 # options accordingly. 6947 echo 'int i;' > conftest.$ac_ext 6948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6949 (eval $ac_compile) 2>&5 6950 ac_status=$? 6951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6952 test $ac_status = 0; }; then 6953 case `/usr/bin/file conftest.o` in 6954 *64-bit*) 6955 case $lt_cv_prog_gnu_ld in 6956 yes*) 6957 case $host in 6958 i?86-*-solaris*|x86_64-*-solaris*) 6959 LD="${LD-ld} -m elf_x86_64" 6960 ;; 6961 sparc*-*-solaris*) 6962 LD="${LD-ld} -m elf64_sparc" 6963 ;; 6964 esac 6965 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6966 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6967 LD=${LD-ld}_sol2 6968 fi 6969 ;; 6970 *) 6971 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6972 LD="${LD-ld} -64" 6973 fi 6974 ;; 6975 esac 6976 ;; 6977 esac 6978 fi 6979 rm -rf conftest* 6980 ;; 6981esac 6982 6983need_locks=$enable_libtool_lock 6984 6985if test -n "$ac_tool_prefix"; then 6986 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6987set dummy ${ac_tool_prefix}mt; ac_word=$2 6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6989$as_echo_n "checking for $ac_word... " >&6; } 6990if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6991 $as_echo_n "(cached) " >&6 6992else 6993 if test -n "$MANIFEST_TOOL"; then 6994 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6995else 6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6997for as_dir in $PATH 6998do 6999 IFS=$as_save_IFS 7000 test -z "$as_dir" && as_dir=. 7001 for ac_exec_ext in '' $ac_executable_extensions; do 7002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7003 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7005 break 2 7006 fi 7007done 7008 done 7009IFS=$as_save_IFS 7010 7011fi 7012fi 7013MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7014if test -n "$MANIFEST_TOOL"; then 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7016$as_echo "$MANIFEST_TOOL" >&6; } 7017else 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7019$as_echo "no" >&6; } 7020fi 7021 7022 7023fi 7024if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7025 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7026 # Extract the first word of "mt", so it can be a program name with args. 7027set dummy mt; ac_word=$2 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7029$as_echo_n "checking for $ac_word... " >&6; } 7030if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7031 $as_echo_n "(cached) " >&6 7032else 7033 if test -n "$ac_ct_MANIFEST_TOOL"; then 7034 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7035else 7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7037for as_dir in $PATH 7038do 7039 IFS=$as_save_IFS 7040 test -z "$as_dir" && as_dir=. 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7043 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7045 break 2 7046 fi 7047done 7048 done 7049IFS=$as_save_IFS 7050 7051fi 7052fi 7053ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7054if test -n "$ac_ct_MANIFEST_TOOL"; then 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7056$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7057else 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7059$as_echo "no" >&6; } 7060fi 7061 7062 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7063 MANIFEST_TOOL=":" 7064 else 7065 case $cross_compiling:$ac_tool_warned in 7066yes:) 7067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7069ac_tool_warned=yes ;; 7070esac 7071 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7072 fi 7073else 7074 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7075fi 7076 7077test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7079$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7080if ${lt_cv_path_mainfest_tool+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 lt_cv_path_mainfest_tool=no 7084 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7085 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7086 cat conftest.err >&5 7087 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7088 lt_cv_path_mainfest_tool=yes 7089 fi 7090 rm -f conftest* 7091fi 7092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7093$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7094if test yes != "$lt_cv_path_mainfest_tool"; then 7095 MANIFEST_TOOL=: 7096fi 7097 7098 7099 7100 7101 7102 7103 case $host_os in 7104 rhapsody* | darwin*) 7105 if test -n "$ac_tool_prefix"; then 7106 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7107set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7109$as_echo_n "checking for $ac_word... " >&6; } 7110if ${ac_cv_prog_DSYMUTIL+:} false; then : 7111 $as_echo_n "(cached) " >&6 7112else 7113 if test -n "$DSYMUTIL"; then 7114 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7115else 7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7117for as_dir in $PATH 7118do 7119 IFS=$as_save_IFS 7120 test -z "$as_dir" && as_dir=. 7121 for ac_exec_ext in '' $ac_executable_extensions; do 7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7123 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7125 break 2 7126 fi 7127done 7128 done 7129IFS=$as_save_IFS 7130 7131fi 7132fi 7133DSYMUTIL=$ac_cv_prog_DSYMUTIL 7134if test -n "$DSYMUTIL"; then 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7136$as_echo "$DSYMUTIL" >&6; } 7137else 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7139$as_echo "no" >&6; } 7140fi 7141 7142 7143fi 7144if test -z "$ac_cv_prog_DSYMUTIL"; then 7145 ac_ct_DSYMUTIL=$DSYMUTIL 7146 # Extract the first word of "dsymutil", so it can be a program name with args. 7147set dummy dsymutil; ac_word=$2 7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7149$as_echo_n "checking for $ac_word... " >&6; } 7150if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7151 $as_echo_n "(cached) " >&6 7152else 7153 if test -n "$ac_ct_DSYMUTIL"; then 7154 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7155else 7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7157for as_dir in $PATH 7158do 7159 IFS=$as_save_IFS 7160 test -z "$as_dir" && as_dir=. 7161 for ac_exec_ext in '' $ac_executable_extensions; do 7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7163 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7165 break 2 7166 fi 7167done 7168 done 7169IFS=$as_save_IFS 7170 7171fi 7172fi 7173ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7174if test -n "$ac_ct_DSYMUTIL"; then 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7176$as_echo "$ac_ct_DSYMUTIL" >&6; } 7177else 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7179$as_echo "no" >&6; } 7180fi 7181 7182 if test "x$ac_ct_DSYMUTIL" = x; then 7183 DSYMUTIL=":" 7184 else 7185 case $cross_compiling:$ac_tool_warned in 7186yes:) 7187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7189ac_tool_warned=yes ;; 7190esac 7191 DSYMUTIL=$ac_ct_DSYMUTIL 7192 fi 7193else 7194 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7195fi 7196 7197 if test -n "$ac_tool_prefix"; then 7198 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7199set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7201$as_echo_n "checking for $ac_word... " >&6; } 7202if ${ac_cv_prog_NMEDIT+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204else 7205 if test -n "$NMEDIT"; then 7206 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7207else 7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7209for as_dir in $PATH 7210do 7211 IFS=$as_save_IFS 7212 test -z "$as_dir" && as_dir=. 7213 for ac_exec_ext in '' $ac_executable_extensions; do 7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7215 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7217 break 2 7218 fi 7219done 7220 done 7221IFS=$as_save_IFS 7222 7223fi 7224fi 7225NMEDIT=$ac_cv_prog_NMEDIT 7226if test -n "$NMEDIT"; then 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7228$as_echo "$NMEDIT" >&6; } 7229else 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7231$as_echo "no" >&6; } 7232fi 7233 7234 7235fi 7236if test -z "$ac_cv_prog_NMEDIT"; then 7237 ac_ct_NMEDIT=$NMEDIT 7238 # Extract the first word of "nmedit", so it can be a program name with args. 7239set dummy nmedit; ac_word=$2 7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7241$as_echo_n "checking for $ac_word... " >&6; } 7242if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7243 $as_echo_n "(cached) " >&6 7244else 7245 if test -n "$ac_ct_NMEDIT"; then 7246 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7247else 7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7249for as_dir in $PATH 7250do 7251 IFS=$as_save_IFS 7252 test -z "$as_dir" && as_dir=. 7253 for ac_exec_ext in '' $ac_executable_extensions; do 7254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7255 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7257 break 2 7258 fi 7259done 7260 done 7261IFS=$as_save_IFS 7262 7263fi 7264fi 7265ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7266if test -n "$ac_ct_NMEDIT"; then 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7268$as_echo "$ac_ct_NMEDIT" >&6; } 7269else 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7271$as_echo "no" >&6; } 7272fi 7273 7274 if test "x$ac_ct_NMEDIT" = x; then 7275 NMEDIT=":" 7276 else 7277 case $cross_compiling:$ac_tool_warned in 7278yes:) 7279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7281ac_tool_warned=yes ;; 7282esac 7283 NMEDIT=$ac_ct_NMEDIT 7284 fi 7285else 7286 NMEDIT="$ac_cv_prog_NMEDIT" 7287fi 7288 7289 if test -n "$ac_tool_prefix"; then 7290 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7291set dummy ${ac_tool_prefix}lipo; ac_word=$2 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7293$as_echo_n "checking for $ac_word... " >&6; } 7294if ${ac_cv_prog_LIPO+:} false; then : 7295 $as_echo_n "(cached) " >&6 7296else 7297 if test -n "$LIPO"; then 7298 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7299else 7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7301for as_dir in $PATH 7302do 7303 IFS=$as_save_IFS 7304 test -z "$as_dir" && as_dir=. 7305 for ac_exec_ext in '' $ac_executable_extensions; do 7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7307 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7309 break 2 7310 fi 7311done 7312 done 7313IFS=$as_save_IFS 7314 7315fi 7316fi 7317LIPO=$ac_cv_prog_LIPO 7318if test -n "$LIPO"; then 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7320$as_echo "$LIPO" >&6; } 7321else 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7323$as_echo "no" >&6; } 7324fi 7325 7326 7327fi 7328if test -z "$ac_cv_prog_LIPO"; then 7329 ac_ct_LIPO=$LIPO 7330 # Extract the first word of "lipo", so it can be a program name with args. 7331set dummy lipo; ac_word=$2 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7333$as_echo_n "checking for $ac_word... " >&6; } 7334if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7335 $as_echo_n "(cached) " >&6 7336else 7337 if test -n "$ac_ct_LIPO"; then 7338 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7339else 7340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7341for as_dir in $PATH 7342do 7343 IFS=$as_save_IFS 7344 test -z "$as_dir" && as_dir=. 7345 for ac_exec_ext in '' $ac_executable_extensions; do 7346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7347 ac_cv_prog_ac_ct_LIPO="lipo" 7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7349 break 2 7350 fi 7351done 7352 done 7353IFS=$as_save_IFS 7354 7355fi 7356fi 7357ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7358if test -n "$ac_ct_LIPO"; then 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7360$as_echo "$ac_ct_LIPO" >&6; } 7361else 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7363$as_echo "no" >&6; } 7364fi 7365 7366 if test "x$ac_ct_LIPO" = x; then 7367 LIPO=":" 7368 else 7369 case $cross_compiling:$ac_tool_warned in 7370yes:) 7371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7373ac_tool_warned=yes ;; 7374esac 7375 LIPO=$ac_ct_LIPO 7376 fi 7377else 7378 LIPO="$ac_cv_prog_LIPO" 7379fi 7380 7381 if test -n "$ac_tool_prefix"; then 7382 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7383set dummy ${ac_tool_prefix}otool; ac_word=$2 7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7385$as_echo_n "checking for $ac_word... " >&6; } 7386if ${ac_cv_prog_OTOOL+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 if test -n "$OTOOL"; then 7390 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7391else 7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7393for as_dir in $PATH 7394do 7395 IFS=$as_save_IFS 7396 test -z "$as_dir" && as_dir=. 7397 for ac_exec_ext in '' $ac_executable_extensions; do 7398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7399 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7401 break 2 7402 fi 7403done 7404 done 7405IFS=$as_save_IFS 7406 7407fi 7408fi 7409OTOOL=$ac_cv_prog_OTOOL 7410if test -n "$OTOOL"; then 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7412$as_echo "$OTOOL" >&6; } 7413else 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7415$as_echo "no" >&6; } 7416fi 7417 7418 7419fi 7420if test -z "$ac_cv_prog_OTOOL"; then 7421 ac_ct_OTOOL=$OTOOL 7422 # Extract the first word of "otool", so it can be a program name with args. 7423set dummy otool; ac_word=$2 7424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7425$as_echo_n "checking for $ac_word... " >&6; } 7426if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7427 $as_echo_n "(cached) " >&6 7428else 7429 if test -n "$ac_ct_OTOOL"; then 7430 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7431else 7432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7433for as_dir in $PATH 7434do 7435 IFS=$as_save_IFS 7436 test -z "$as_dir" && as_dir=. 7437 for ac_exec_ext in '' $ac_executable_extensions; do 7438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7439 ac_cv_prog_ac_ct_OTOOL="otool" 7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7441 break 2 7442 fi 7443done 7444 done 7445IFS=$as_save_IFS 7446 7447fi 7448fi 7449ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7450if test -n "$ac_ct_OTOOL"; then 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7452$as_echo "$ac_ct_OTOOL" >&6; } 7453else 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7455$as_echo "no" >&6; } 7456fi 7457 7458 if test "x$ac_ct_OTOOL" = x; then 7459 OTOOL=":" 7460 else 7461 case $cross_compiling:$ac_tool_warned in 7462yes:) 7463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7465ac_tool_warned=yes ;; 7466esac 7467 OTOOL=$ac_ct_OTOOL 7468 fi 7469else 7470 OTOOL="$ac_cv_prog_OTOOL" 7471fi 7472 7473 if test -n "$ac_tool_prefix"; then 7474 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7475set dummy ${ac_tool_prefix}otool64; ac_word=$2 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7477$as_echo_n "checking for $ac_word... " >&6; } 7478if ${ac_cv_prog_OTOOL64+:} false; then : 7479 $as_echo_n "(cached) " >&6 7480else 7481 if test -n "$OTOOL64"; then 7482 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7483else 7484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7485for as_dir in $PATH 7486do 7487 IFS=$as_save_IFS 7488 test -z "$as_dir" && as_dir=. 7489 for ac_exec_ext in '' $ac_executable_extensions; do 7490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7491 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7493 break 2 7494 fi 7495done 7496 done 7497IFS=$as_save_IFS 7498 7499fi 7500fi 7501OTOOL64=$ac_cv_prog_OTOOL64 7502if test -n "$OTOOL64"; then 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7504$as_echo "$OTOOL64" >&6; } 7505else 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7507$as_echo "no" >&6; } 7508fi 7509 7510 7511fi 7512if test -z "$ac_cv_prog_OTOOL64"; then 7513 ac_ct_OTOOL64=$OTOOL64 7514 # Extract the first word of "otool64", so it can be a program name with args. 7515set dummy otool64; ac_word=$2 7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7517$as_echo_n "checking for $ac_word... " >&6; } 7518if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 if test -n "$ac_ct_OTOOL64"; then 7522 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7523else 7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7525for as_dir in $PATH 7526do 7527 IFS=$as_save_IFS 7528 test -z "$as_dir" && as_dir=. 7529 for ac_exec_ext in '' $ac_executable_extensions; do 7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7531 ac_cv_prog_ac_ct_OTOOL64="otool64" 7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7533 break 2 7534 fi 7535done 7536 done 7537IFS=$as_save_IFS 7538 7539fi 7540fi 7541ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7542if test -n "$ac_ct_OTOOL64"; then 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7544$as_echo "$ac_ct_OTOOL64" >&6; } 7545else 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7547$as_echo "no" >&6; } 7548fi 7549 7550 if test "x$ac_ct_OTOOL64" = x; then 7551 OTOOL64=":" 7552 else 7553 case $cross_compiling:$ac_tool_warned in 7554yes:) 7555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7557ac_tool_warned=yes ;; 7558esac 7559 OTOOL64=$ac_ct_OTOOL64 7560 fi 7561else 7562 OTOOL64="$ac_cv_prog_OTOOL64" 7563fi 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7592$as_echo_n "checking for -single_module linker flag... " >&6; } 7593if ${lt_cv_apple_cc_single_mod+:} false; then : 7594 $as_echo_n "(cached) " >&6 7595else 7596 lt_cv_apple_cc_single_mod=no 7597 if test -z "$LT_MULTI_MODULE"; then 7598 # By default we will add the -single_module flag. You can override 7599 # by either setting the environment variable LT_MULTI_MODULE 7600 # non-empty at configure time, or by adding -multi_module to the 7601 # link flags. 7602 rm -rf libconftest.dylib* 7603 echo "int foo(void){return 1;}" > conftest.c 7604 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7605-dynamiclib -Wl,-single_module conftest.c" >&5 7606 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7607 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7608 _lt_result=$? 7609 # If there is a non-empty error log, and "single_module" 7610 # appears in it, assume the flag caused a linker warning 7611 if test -s conftest.err && $GREP single_module conftest.err; then 7612 cat conftest.err >&5 7613 # Otherwise, if the output was created with a 0 exit code from 7614 # the compiler, it worked. 7615 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7616 lt_cv_apple_cc_single_mod=yes 7617 else 7618 cat conftest.err >&5 7619 fi 7620 rm -rf libconftest.dylib* 7621 rm -f conftest.* 7622 fi 7623fi 7624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7625$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7626 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7628$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7629if ${lt_cv_ld_exported_symbols_list+:} false; then : 7630 $as_echo_n "(cached) " >&6 7631else 7632 lt_cv_ld_exported_symbols_list=no 7633 save_LDFLAGS=$LDFLAGS 7634 echo "_main" > conftest.sym 7635 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7637/* end confdefs.h. */ 7638 7639int 7640main () 7641{ 7642 7643 ; 7644 return 0; 7645} 7646_ACEOF 7647if ac_fn_c_try_link "$LINENO"; then : 7648 lt_cv_ld_exported_symbols_list=yes 7649else 7650 lt_cv_ld_exported_symbols_list=no 7651fi 7652rm -f core conftest.err conftest.$ac_objext \ 7653 conftest$ac_exeext conftest.$ac_ext 7654 LDFLAGS=$save_LDFLAGS 7655 7656fi 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7658$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7659 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7661$as_echo_n "checking for -force_load linker flag... " >&6; } 7662if ${lt_cv_ld_force_load+:} false; then : 7663 $as_echo_n "(cached) " >&6 7664else 7665 lt_cv_ld_force_load=no 7666 cat > conftest.c << _LT_EOF 7667int forced_loaded() { return 2;} 7668_LT_EOF 7669 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7670 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7671 echo "$AR cr libconftest.a conftest.o" >&5 7672 $AR cr libconftest.a conftest.o 2>&5 7673 echo "$RANLIB libconftest.a" >&5 7674 $RANLIB libconftest.a 2>&5 7675 cat > conftest.c << _LT_EOF 7676int main() { return 0;} 7677_LT_EOF 7678 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7679 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7680 _lt_result=$? 7681 if test -s conftest.err && $GREP force_load conftest.err; then 7682 cat conftest.err >&5 7683 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7684 lt_cv_ld_force_load=yes 7685 else 7686 cat conftest.err >&5 7687 fi 7688 rm -f conftest.err libconftest.a conftest conftest.c 7689 rm -rf conftest.dSYM 7690 7691fi 7692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7693$as_echo "$lt_cv_ld_force_load" >&6; } 7694 case $host_os in 7695 rhapsody* | darwin1.[012]) 7696 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7697 darwin1.*) 7698 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7699 darwin*) # darwin 5.x on 7700 # if running on 10.5 or later, the deployment target defaults 7701 # to the OS version, if on x86, and 10.4, the deployment 7702 # target defaults to 10.4. Don't you love it? 7703 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7704 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7705 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7706 10.[012][,.]*) 7707 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7708 10.*) 7709 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7710 esac 7711 ;; 7712 esac 7713 if test yes = "$lt_cv_apple_cc_single_mod"; then 7714 _lt_dar_single_mod='$single_module' 7715 fi 7716 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7717 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7718 else 7719 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7720 fi 7721 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7722 _lt_dsymutil='~$DSYMUTIL $lib || :' 7723 else 7724 _lt_dsymutil= 7725 fi 7726 ;; 7727 esac 7728 7729# func_munge_path_list VARIABLE PATH 7730# ----------------------------------- 7731# VARIABLE is name of variable containing _space_ separated list of 7732# directories to be munged by the contents of PATH, which is string 7733# having a format: 7734# "DIR[:DIR]:" 7735# string "DIR[ DIR]" will be prepended to VARIABLE 7736# ":DIR[:DIR]" 7737# string "DIR[ DIR]" will be appended to VARIABLE 7738# "DIRP[:DIRP]::[DIRA:]DIRA" 7739# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7740# "DIRA[ DIRA]" will be appended to VARIABLE 7741# "DIR[:DIR]" 7742# VARIABLE will be replaced by "DIR[ DIR]" 7743func_munge_path_list () 7744{ 7745 case x$2 in 7746 x) 7747 ;; 7748 *:) 7749 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7750 ;; 7751 x:*) 7752 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7753 ;; 7754 *::*) 7755 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7756 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7757 ;; 7758 *) 7759 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7760 ;; 7761 esac 7762} 7763 7764ac_ext=c 7765ac_cpp='$CPP $CPPFLAGS' 7766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7768ac_compiler_gnu=$ac_cv_c_compiler_gnu 7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7770$as_echo_n "checking how to run the C preprocessor... " >&6; } 7771# On Suns, sometimes $CPP names a directory. 7772if test -n "$CPP" && test -d "$CPP"; then 7773 CPP= 7774fi 7775if test -z "$CPP"; then 7776 if ${ac_cv_prog_CPP+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 # Double quotes because CPP needs to be expanded 7780 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7781 do 7782 ac_preproc_ok=false 7783for ac_c_preproc_warn_flag in '' yes 7784do 7785 # Use a header file that comes with gcc, so configuring glibc 7786 # with a fresh cross-compiler works. 7787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7788 # <limits.h> exists even on freestanding compilers. 7789 # On the NeXT, cc -E runs the code through the compiler's parser, 7790 # not just through cpp. "Syntax error" is here to catch this case. 7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7792/* end confdefs.h. */ 7793#ifdef __STDC__ 7794# include <limits.h> 7795#else 7796# include <assert.h> 7797#endif 7798 Syntax error 7799_ACEOF 7800if ac_fn_c_try_cpp "$LINENO"; then : 7801 7802else 7803 # Broken: fails on valid input. 7804continue 7805fi 7806rm -f conftest.err conftest.i conftest.$ac_ext 7807 7808 # OK, works on sane cases. Now check whether nonexistent headers 7809 # can be detected and how. 7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7811/* end confdefs.h. */ 7812#include <ac_nonexistent.h> 7813_ACEOF 7814if ac_fn_c_try_cpp "$LINENO"; then : 7815 # Broken: success on invalid input. 7816continue 7817else 7818 # Passes both tests. 7819ac_preproc_ok=: 7820break 7821fi 7822rm -f conftest.err conftest.i conftest.$ac_ext 7823 7824done 7825# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7826rm -f conftest.i conftest.err conftest.$ac_ext 7827if $ac_preproc_ok; then : 7828 break 7829fi 7830 7831 done 7832 ac_cv_prog_CPP=$CPP 7833 7834fi 7835 CPP=$ac_cv_prog_CPP 7836else 7837 ac_cv_prog_CPP=$CPP 7838fi 7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7840$as_echo "$CPP" >&6; } 7841ac_preproc_ok=false 7842for ac_c_preproc_warn_flag in '' yes 7843do 7844 # Use a header file that comes with gcc, so configuring glibc 7845 # with a fresh cross-compiler works. 7846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7847 # <limits.h> exists even on freestanding compilers. 7848 # On the NeXT, cc -E runs the code through the compiler's parser, 7849 # not just through cpp. "Syntax error" is here to catch this case. 7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7851/* end confdefs.h. */ 7852#ifdef __STDC__ 7853# include <limits.h> 7854#else 7855# include <assert.h> 7856#endif 7857 Syntax error 7858_ACEOF 7859if ac_fn_c_try_cpp "$LINENO"; then : 7860 7861else 7862 # Broken: fails on valid input. 7863continue 7864fi 7865rm -f conftest.err conftest.i conftest.$ac_ext 7866 7867 # OK, works on sane cases. Now check whether nonexistent headers 7868 # can be detected and how. 7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7870/* end confdefs.h. */ 7871#include <ac_nonexistent.h> 7872_ACEOF 7873if ac_fn_c_try_cpp "$LINENO"; then : 7874 # Broken: success on invalid input. 7875continue 7876else 7877 # Passes both tests. 7878ac_preproc_ok=: 7879break 7880fi 7881rm -f conftest.err conftest.i conftest.$ac_ext 7882 7883done 7884# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7885rm -f conftest.i conftest.err conftest.$ac_ext 7886if $ac_preproc_ok; then : 7887 7888else 7889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7891as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7892See \`config.log' for more details" "$LINENO" 5; } 7893fi 7894 7895ac_ext=c 7896ac_cpp='$CPP $CPPFLAGS' 7897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7899ac_compiler_gnu=$ac_cv_c_compiler_gnu 7900 7901 7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7903$as_echo_n "checking for ANSI C header files... " >&6; } 7904if ${ac_cv_header_stdc+:} false; then : 7905 $as_echo_n "(cached) " >&6 7906else 7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909#include <stdlib.h> 7910#include <stdarg.h> 7911#include <string.h> 7912#include <float.h> 7913 7914int 7915main () 7916{ 7917 7918 ; 7919 return 0; 7920} 7921_ACEOF 7922if ac_fn_c_try_compile "$LINENO"; then : 7923 ac_cv_header_stdc=yes 7924else 7925 ac_cv_header_stdc=no 7926fi 7927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7928 7929if test $ac_cv_header_stdc = yes; then 7930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7932/* end confdefs.h. */ 7933#include <string.h> 7934 7935_ACEOF 7936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7937 $EGREP "memchr" >/dev/null 2>&1; then : 7938 7939else 7940 ac_cv_header_stdc=no 7941fi 7942rm -f conftest* 7943 7944fi 7945 7946if test $ac_cv_header_stdc = yes; then 7947 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7949/* end confdefs.h. */ 7950#include <stdlib.h> 7951 7952_ACEOF 7953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7954 $EGREP "free" >/dev/null 2>&1; then : 7955 7956else 7957 ac_cv_header_stdc=no 7958fi 7959rm -f conftest* 7960 7961fi 7962 7963if test $ac_cv_header_stdc = yes; then 7964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7965 if test "$cross_compiling" = yes; then : 7966 : 7967else 7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7969/* end confdefs.h. */ 7970#include <ctype.h> 7971#include <stdlib.h> 7972#if ((' ' & 0x0FF) == 0x020) 7973# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7974# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7975#else 7976# define ISLOWER(c) \ 7977 (('a' <= (c) && (c) <= 'i') \ 7978 || ('j' <= (c) && (c) <= 'r') \ 7979 || ('s' <= (c) && (c) <= 'z')) 7980# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7981#endif 7982 7983#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7984int 7985main () 7986{ 7987 int i; 7988 for (i = 0; i < 256; i++) 7989 if (XOR (islower (i), ISLOWER (i)) 7990 || toupper (i) != TOUPPER (i)) 7991 return 2; 7992 return 0; 7993} 7994_ACEOF 7995if ac_fn_c_try_run "$LINENO"; then : 7996 7997else 7998 ac_cv_header_stdc=no 7999fi 8000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8001 conftest.$ac_objext conftest.beam conftest.$ac_ext 8002fi 8003 8004fi 8005fi 8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8007$as_echo "$ac_cv_header_stdc" >&6; } 8008if test $ac_cv_header_stdc = yes; then 8009 8010$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8011 8012fi 8013 8014# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8015for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8016 inttypes.h stdint.h unistd.h 8017do : 8018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8019ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8020" 8021if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8022 cat >>confdefs.h <<_ACEOF 8023#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8024_ACEOF 8025 8026fi 8027 8028done 8029 8030 8031for ac_header in dlfcn.h 8032do : 8033 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8034" 8035if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8036 cat >>confdefs.h <<_ACEOF 8037#define HAVE_DLFCN_H 1 8038_ACEOF 8039 8040fi 8041 8042done 8043 8044 8045 8046 8047 8048# Set options 8049 8050 8051 8052 enable_dlopen=no 8053 8054 8055 enable_win32_dll=no 8056 8057 8058 # Check whether --enable-shared was given. 8059if test "${enable_shared+set}" = set; then : 8060 enableval=$enable_shared; p=${PACKAGE-default} 8061 case $enableval in 8062 yes) enable_shared=yes ;; 8063 no) enable_shared=no ;; 8064 *) 8065 enable_shared=no 8066 # Look at the argument we got. We use all the common list separators. 8067 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8068 for pkg in $enableval; do 8069 IFS=$lt_save_ifs 8070 if test "X$pkg" = "X$p"; then 8071 enable_shared=yes 8072 fi 8073 done 8074 IFS=$lt_save_ifs 8075 ;; 8076 esac 8077else 8078 enable_shared=yes 8079fi 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 # Check whether --enable-static was given. 8090if test "${enable_static+set}" = set; then : 8091 enableval=$enable_static; p=${PACKAGE-default} 8092 case $enableval in 8093 yes) enable_static=yes ;; 8094 no) enable_static=no ;; 8095 *) 8096 enable_static=no 8097 # Look at the argument we got. We use all the common list separators. 8098 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8099 for pkg in $enableval; do 8100 IFS=$lt_save_ifs 8101 if test "X$pkg" = "X$p"; then 8102 enable_static=yes 8103 fi 8104 done 8105 IFS=$lt_save_ifs 8106 ;; 8107 esac 8108else 8109 enable_static=yes 8110fi 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121# Check whether --with-pic was given. 8122if test "${with_pic+set}" = set; then : 8123 withval=$with_pic; lt_p=${PACKAGE-default} 8124 case $withval in 8125 yes|no) pic_mode=$withval ;; 8126 *) 8127 pic_mode=default 8128 # Look at the argument we got. We use all the common list separators. 8129 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8130 for lt_pkg in $withval; do 8131 IFS=$lt_save_ifs 8132 if test "X$lt_pkg" = "X$lt_p"; then 8133 pic_mode=yes 8134 fi 8135 done 8136 IFS=$lt_save_ifs 8137 ;; 8138 esac 8139else 8140 pic_mode=default 8141fi 8142 8143 8144 8145 8146 8147 8148 8149 8150 # Check whether --enable-fast-install was given. 8151if test "${enable_fast_install+set}" = set; then : 8152 enableval=$enable_fast_install; p=${PACKAGE-default} 8153 case $enableval in 8154 yes) enable_fast_install=yes ;; 8155 no) enable_fast_install=no ;; 8156 *) 8157 enable_fast_install=no 8158 # Look at the argument we got. We use all the common list separators. 8159 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8160 for pkg in $enableval; do 8161 IFS=$lt_save_ifs 8162 if test "X$pkg" = "X$p"; then 8163 enable_fast_install=yes 8164 fi 8165 done 8166 IFS=$lt_save_ifs 8167 ;; 8168 esac 8169else 8170 enable_fast_install=yes 8171fi 8172 8173 8174 8175 8176 8177 8178 8179 8180 shared_archive_member_spec= 8181case $host,$enable_shared in 8182power*-*-aix[5-9]*,yes) 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8184$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8185 8186# Check whether --with-aix-soname was given. 8187if test "${with_aix_soname+set}" = set; then : 8188 withval=$with_aix_soname; case $withval in 8189 aix|svr4|both) 8190 ;; 8191 *) 8192 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8193 ;; 8194 esac 8195 lt_cv_with_aix_soname=$with_aix_soname 8196else 8197 if ${lt_cv_with_aix_soname+:} false; then : 8198 $as_echo_n "(cached) " >&6 8199else 8200 lt_cv_with_aix_soname=aix 8201fi 8202 8203 with_aix_soname=$lt_cv_with_aix_soname 8204fi 8205 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8207$as_echo "$with_aix_soname" >&6; } 8208 if test aix != "$with_aix_soname"; then 8209 # For the AIX way of multilib, we name the shared archive member 8210 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8211 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8212 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8213 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8214 if test 64 = "${OBJECT_MODE-32}"; then 8215 shared_archive_member_spec=shr_64 8216 else 8217 shared_archive_member_spec=shr 8218 fi 8219 fi 8220 ;; 8221*) 8222 with_aix_soname=aix 8223 ;; 8224esac 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235# This can be used to rebuild libtool when needed 8236LIBTOOL_DEPS=$ltmain 8237 8238# Always use our own libtool. 8239LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270test -z "$LN_S" && LN_S="ln -s" 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285if test -n "${ZSH_VERSION+set}"; then 8286 setopt NO_GLOB_SUBST 8287fi 8288 8289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8290$as_echo_n "checking for objdir... " >&6; } 8291if ${lt_cv_objdir+:} false; then : 8292 $as_echo_n "(cached) " >&6 8293else 8294 rm -f .libs 2>/dev/null 8295mkdir .libs 2>/dev/null 8296if test -d .libs; then 8297 lt_cv_objdir=.libs 8298else 8299 # MS-DOS does not allow filenames that begin with a dot. 8300 lt_cv_objdir=_libs 8301fi 8302rmdir .libs 2>/dev/null 8303fi 8304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8305$as_echo "$lt_cv_objdir" >&6; } 8306objdir=$lt_cv_objdir 8307 8308 8309 8310 8311 8312cat >>confdefs.h <<_ACEOF 8313#define LT_OBJDIR "$lt_cv_objdir/" 8314_ACEOF 8315 8316 8317 8318 8319case $host_os in 8320aix3*) 8321 # AIX sometimes has problems with the GCC collect2 program. For some 8322 # reason, if we set the COLLECT_NAMES environment variable, the problems 8323 # vanish in a puff of smoke. 8324 if test set != "${COLLECT_NAMES+set}"; then 8325 COLLECT_NAMES= 8326 export COLLECT_NAMES 8327 fi 8328 ;; 8329esac 8330 8331# Global variables: 8332ofile=libtool 8333can_build_shared=yes 8334 8335# All known linkers require a '.a' archive for static linking (except MSVC, 8336# which needs '.lib'). 8337libext=a 8338 8339with_gnu_ld=$lt_cv_prog_gnu_ld 8340 8341old_CC=$CC 8342old_CFLAGS=$CFLAGS 8343 8344# Set sane defaults for various variables 8345test -z "$CC" && CC=cc 8346test -z "$LTCC" && LTCC=$CC 8347test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8348test -z "$LD" && LD=ld 8349test -z "$ac_objext" && ac_objext=o 8350 8351func_cc_basename $compiler 8352cc_basename=$func_cc_basename_result 8353 8354 8355# Only perform the check for file, if the check method requires it 8356test -z "$MAGIC_CMD" && MAGIC_CMD=file 8357case $deplibs_check_method in 8358file_magic*) 8359 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8361$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8362if ${lt_cv_path_MAGIC_CMD+:} false; then : 8363 $as_echo_n "(cached) " >&6 8364else 8365 case $MAGIC_CMD in 8366[\\/*] | ?:[\\/]*) 8367 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8368 ;; 8369*) 8370 lt_save_MAGIC_CMD=$MAGIC_CMD 8371 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8372 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8373 for ac_dir in $ac_dummy; do 8374 IFS=$lt_save_ifs 8375 test -z "$ac_dir" && ac_dir=. 8376 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8377 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8378 if test -n "$file_magic_test_file"; then 8379 case $deplibs_check_method in 8380 "file_magic "*) 8381 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8382 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8383 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8384 $EGREP "$file_magic_regex" > /dev/null; then 8385 : 8386 else 8387 cat <<_LT_EOF 1>&2 8388 8389*** Warning: the command libtool uses to detect shared libraries, 8390*** $file_magic_cmd, produces output that libtool cannot recognize. 8391*** The result is that libtool may fail to recognize shared libraries 8392*** as such. This will affect the creation of libtool libraries that 8393*** depend on shared libraries, but programs linked with such libtool 8394*** libraries will work regardless of this problem. Nevertheless, you 8395*** may want to report the problem to your system manager and/or to 8396*** bug-libtool@gnu.org 8397 8398_LT_EOF 8399 fi ;; 8400 esac 8401 fi 8402 break 8403 fi 8404 done 8405 IFS=$lt_save_ifs 8406 MAGIC_CMD=$lt_save_MAGIC_CMD 8407 ;; 8408esac 8409fi 8410 8411MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8412if test -n "$MAGIC_CMD"; then 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8414$as_echo "$MAGIC_CMD" >&6; } 8415else 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8417$as_echo "no" >&6; } 8418fi 8419 8420 8421 8422 8423 8424if test -z "$lt_cv_path_MAGIC_CMD"; then 8425 if test -n "$ac_tool_prefix"; then 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8427$as_echo_n "checking for file... " >&6; } 8428if ${lt_cv_path_MAGIC_CMD+:} false; then : 8429 $as_echo_n "(cached) " >&6 8430else 8431 case $MAGIC_CMD in 8432[\\/*] | ?:[\\/]*) 8433 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8434 ;; 8435*) 8436 lt_save_MAGIC_CMD=$MAGIC_CMD 8437 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8438 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8439 for ac_dir in $ac_dummy; do 8440 IFS=$lt_save_ifs 8441 test -z "$ac_dir" && ac_dir=. 8442 if test -f "$ac_dir/file"; then 8443 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8444 if test -n "$file_magic_test_file"; then 8445 case $deplibs_check_method in 8446 "file_magic "*) 8447 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8448 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8449 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8450 $EGREP "$file_magic_regex" > /dev/null; then 8451 : 8452 else 8453 cat <<_LT_EOF 1>&2 8454 8455*** Warning: the command libtool uses to detect shared libraries, 8456*** $file_magic_cmd, produces output that libtool cannot recognize. 8457*** The result is that libtool may fail to recognize shared libraries 8458*** as such. This will affect the creation of libtool libraries that 8459*** depend on shared libraries, but programs linked with such libtool 8460*** libraries will work regardless of this problem. Nevertheless, you 8461*** may want to report the problem to your system manager and/or to 8462*** bug-libtool@gnu.org 8463 8464_LT_EOF 8465 fi ;; 8466 esac 8467 fi 8468 break 8469 fi 8470 done 8471 IFS=$lt_save_ifs 8472 MAGIC_CMD=$lt_save_MAGIC_CMD 8473 ;; 8474esac 8475fi 8476 8477MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8478if test -n "$MAGIC_CMD"; then 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8480$as_echo "$MAGIC_CMD" >&6; } 8481else 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8483$as_echo "no" >&6; } 8484fi 8485 8486 8487 else 8488 MAGIC_CMD=: 8489 fi 8490fi 8491 8492 fi 8493 ;; 8494esac 8495 8496# Use C for the default configuration in the libtool script 8497 8498lt_save_CC=$CC 8499ac_ext=c 8500ac_cpp='$CPP $CPPFLAGS' 8501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8503ac_compiler_gnu=$ac_cv_c_compiler_gnu 8504 8505 8506# Source file extension for C test sources. 8507ac_ext=c 8508 8509# Object file extension for compiled C test sources. 8510objext=o 8511objext=$objext 8512 8513# Code to be used in simple compile tests 8514lt_simple_compile_test_code="int some_variable = 0;" 8515 8516# Code to be used in simple link tests 8517lt_simple_link_test_code='int main(){return(0);}' 8518 8519 8520 8521 8522 8523 8524 8525# If no C compiler was specified, use CC. 8526LTCC=${LTCC-"$CC"} 8527 8528# If no C compiler flags were specified, use CFLAGS. 8529LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8530 8531# Allow CC to be a program name with arguments. 8532compiler=$CC 8533 8534# Save the default compiler, since it gets overwritten when the other 8535# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8536compiler_DEFAULT=$CC 8537 8538# save warnings/boilerplate of simple test code 8539ac_outfile=conftest.$ac_objext 8540echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8541eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8542_lt_compiler_boilerplate=`cat conftest.err` 8543$RM conftest* 8544 8545ac_outfile=conftest.$ac_objext 8546echo "$lt_simple_link_test_code" >conftest.$ac_ext 8547eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8548_lt_linker_boilerplate=`cat conftest.err` 8549$RM -r conftest* 8550 8551 8552## CAVEAT EMPTOR: 8553## There is no encapsulation within the following macros, do not change 8554## the running order or otherwise move them around unless you know exactly 8555## what you are doing... 8556if test -n "$compiler"; then 8557 8558lt_prog_compiler_no_builtin_flag= 8559 8560if test yes = "$GCC"; then 8561 case $cc_basename in 8562 nvcc*) 8563 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8564 *) 8565 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8566 esac 8567 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8569$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8570if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8571 $as_echo_n "(cached) " >&6 8572else 8573 lt_cv_prog_compiler_rtti_exceptions=no 8574 ac_outfile=conftest.$ac_objext 8575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8576 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8577 # Insert the option either (1) after the last *FLAGS variable, or 8578 # (2) before a word containing "conftest.", or (3) at the end. 8579 # Note that $ac_compile itself does not contain backslashes and begins 8580 # with a dollar sign (not a hyphen), so the echo should work correctly. 8581 # The option is referenced via a variable to avoid confusing sed. 8582 lt_compile=`echo "$ac_compile" | $SED \ 8583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8585 -e 's:$: $lt_compiler_flag:'` 8586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8587 (eval "$lt_compile" 2>conftest.err) 8588 ac_status=$? 8589 cat conftest.err >&5 8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8591 if (exit $ac_status) && test -s "$ac_outfile"; then 8592 # The compiler can only warn and ignore the option if not recognized 8593 # So say no if there are warnings other than the usual output. 8594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8596 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8597 lt_cv_prog_compiler_rtti_exceptions=yes 8598 fi 8599 fi 8600 $RM conftest* 8601 8602fi 8603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8604$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8605 8606if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8607 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8608else 8609 : 8610fi 8611 8612fi 8613 8614 8615 8616 8617 8618 8619 lt_prog_compiler_wl= 8620lt_prog_compiler_pic= 8621lt_prog_compiler_static= 8622 8623 8624 if test yes = "$GCC"; then 8625 lt_prog_compiler_wl='-Wl,' 8626 lt_prog_compiler_static='-static' 8627 8628 case $host_os in 8629 aix*) 8630 # All AIX code is PIC. 8631 if test ia64 = "$host_cpu"; then 8632 # AIX 5 now supports IA64 processor 8633 lt_prog_compiler_static='-Bstatic' 8634 fi 8635 lt_prog_compiler_pic='-fPIC' 8636 ;; 8637 8638 amigaos*) 8639 case $host_cpu in 8640 powerpc) 8641 # see comment about AmigaOS4 .so support 8642 lt_prog_compiler_pic='-fPIC' 8643 ;; 8644 m68k) 8645 # FIXME: we need at least 68020 code to build shared libraries, but 8646 # adding the '-m68020' flag to GCC prevents building anything better, 8647 # like '-m68040'. 8648 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8649 ;; 8650 esac 8651 ;; 8652 8653 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8654 # PIC is the default for these OSes. 8655 ;; 8656 8657 mingw* | cygwin* | pw32* | os2* | cegcc*) 8658 # This hack is so that the source file can tell whether it is being 8659 # built for inclusion in a dll (and should export symbols for example). 8660 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8661 # (--disable-auto-import) libraries 8662 lt_prog_compiler_pic='-DDLL_EXPORT' 8663 case $host_os in 8664 os2*) 8665 lt_prog_compiler_static='$wl-static' 8666 ;; 8667 esac 8668 ;; 8669 8670 darwin* | rhapsody*) 8671 # PIC is the default on this platform 8672 # Common symbols not allowed in MH_DYLIB files 8673 lt_prog_compiler_pic='-fno-common' 8674 ;; 8675 8676 haiku*) 8677 # PIC is the default for Haiku. 8678 # The "-static" flag exists, but is broken. 8679 lt_prog_compiler_static= 8680 ;; 8681 8682 hpux*) 8683 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8684 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8685 # sets the default TLS model and affects inlining. 8686 case $host_cpu in 8687 hppa*64*) 8688 # +Z the default 8689 ;; 8690 *) 8691 lt_prog_compiler_pic='-fPIC' 8692 ;; 8693 esac 8694 ;; 8695 8696 interix[3-9]*) 8697 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8698 # Instead, we relocate shared libraries at runtime. 8699 ;; 8700 8701 msdosdjgpp*) 8702 # Just because we use GCC doesn't mean we suddenly get shared libraries 8703 # on systems that don't support them. 8704 lt_prog_compiler_can_build_shared=no 8705 enable_shared=no 8706 ;; 8707 8708 *nto* | *qnx*) 8709 # QNX uses GNU C++, but need to define -shared option too, otherwise 8710 # it will coredump. 8711 lt_prog_compiler_pic='-fPIC -shared' 8712 ;; 8713 8714 sysv4*MP*) 8715 if test -d /usr/nec; then 8716 lt_prog_compiler_pic=-Kconform_pic 8717 fi 8718 ;; 8719 8720 *) 8721 lt_prog_compiler_pic='-fPIC' 8722 ;; 8723 esac 8724 8725 case $cc_basename in 8726 nvcc*) # Cuda Compiler Driver 2.2 8727 lt_prog_compiler_wl='-Xlinker ' 8728 if test -n "$lt_prog_compiler_pic"; then 8729 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8730 fi 8731 ;; 8732 esac 8733 else 8734 # PORTME Check for flag to pass linker flags through the system compiler. 8735 case $host_os in 8736 aix*) 8737 lt_prog_compiler_wl='-Wl,' 8738 if test ia64 = "$host_cpu"; then 8739 # AIX 5 now supports IA64 processor 8740 lt_prog_compiler_static='-Bstatic' 8741 else 8742 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8743 fi 8744 ;; 8745 8746 darwin* | rhapsody*) 8747 # PIC is the default on this platform 8748 # Common symbols not allowed in MH_DYLIB files 8749 lt_prog_compiler_pic='-fno-common' 8750 case $cc_basename in 8751 nagfor*) 8752 # NAG Fortran compiler 8753 lt_prog_compiler_wl='-Wl,-Wl,,' 8754 lt_prog_compiler_pic='-PIC' 8755 lt_prog_compiler_static='-Bstatic' 8756 ;; 8757 esac 8758 ;; 8759 8760 mingw* | cygwin* | pw32* | os2* | cegcc*) 8761 # This hack is so that the source file can tell whether it is being 8762 # built for inclusion in a dll (and should export symbols for example). 8763 lt_prog_compiler_pic='-DDLL_EXPORT' 8764 case $host_os in 8765 os2*) 8766 lt_prog_compiler_static='$wl-static' 8767 ;; 8768 esac 8769 ;; 8770 8771 hpux9* | hpux10* | hpux11*) 8772 lt_prog_compiler_wl='-Wl,' 8773 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8774 # not for PA HP-UX. 8775 case $host_cpu in 8776 hppa*64*|ia64*) 8777 # +Z the default 8778 ;; 8779 *) 8780 lt_prog_compiler_pic='+Z' 8781 ;; 8782 esac 8783 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8784 lt_prog_compiler_static='$wl-a ${wl}archive' 8785 ;; 8786 8787 irix5* | irix6* | nonstopux*) 8788 lt_prog_compiler_wl='-Wl,' 8789 # PIC (with -KPIC) is the default. 8790 lt_prog_compiler_static='-non_shared' 8791 ;; 8792 8793 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8794 case $cc_basename in 8795 # old Intel for x86_64, which still supported -KPIC. 8796 ecc*) 8797 lt_prog_compiler_wl='-Wl,' 8798 lt_prog_compiler_pic='-KPIC' 8799 lt_prog_compiler_static='-static' 8800 ;; 8801 # flang / f18. f95 an alias for gfortran or flang on Debian 8802 flang* | f18* | f95*) 8803 lt_prog_compiler_wl='-Wl,' 8804 lt_prog_compiler_pic='-fPIC' 8805 lt_prog_compiler_static='-static' 8806 ;; 8807 # icc used to be incompatible with GCC. 8808 # ICC 10 doesn't accept -KPIC any more. 8809 icc* | ifort*) 8810 lt_prog_compiler_wl='-Wl,' 8811 lt_prog_compiler_pic='-fPIC' 8812 lt_prog_compiler_static='-static' 8813 ;; 8814 # Lahey Fortran 8.1. 8815 lf95*) 8816 lt_prog_compiler_wl='-Wl,' 8817 lt_prog_compiler_pic='--shared' 8818 lt_prog_compiler_static='--static' 8819 ;; 8820 nagfor*) 8821 # NAG Fortran compiler 8822 lt_prog_compiler_wl='-Wl,-Wl,,' 8823 lt_prog_compiler_pic='-PIC' 8824 lt_prog_compiler_static='-Bstatic' 8825 ;; 8826 tcc*) 8827 # Fabrice Bellard et al's Tiny C Compiler 8828 lt_prog_compiler_wl='-Wl,' 8829 lt_prog_compiler_pic='-fPIC' 8830 lt_prog_compiler_static='-static' 8831 ;; 8832 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8833 # Portland Group compilers (*not* the Pentium gcc compiler, 8834 # which looks to be a dead project) 8835 lt_prog_compiler_wl='-Wl,' 8836 lt_prog_compiler_pic='-fpic' 8837 lt_prog_compiler_static='-Bstatic' 8838 ;; 8839 ccc*) 8840 lt_prog_compiler_wl='-Wl,' 8841 # All Alpha code is PIC. 8842 lt_prog_compiler_static='-non_shared' 8843 ;; 8844 xl* | bgxl* | bgf* | mpixl*) 8845 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8846 lt_prog_compiler_wl='-Wl,' 8847 lt_prog_compiler_pic='-qpic' 8848 lt_prog_compiler_static='-qstaticlink' 8849 ;; 8850 *) 8851 case `$CC -V 2>&1 | sed 5q` in 8852 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8853 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8854 lt_prog_compiler_pic='-KPIC' 8855 lt_prog_compiler_static='-Bstatic' 8856 lt_prog_compiler_wl='' 8857 ;; 8858 *Sun\ F* | *Sun*Fortran*) 8859 lt_prog_compiler_pic='-KPIC' 8860 lt_prog_compiler_static='-Bstatic' 8861 lt_prog_compiler_wl='-Qoption ld ' 8862 ;; 8863 *Sun\ C*) 8864 # Sun C 5.9 8865 lt_prog_compiler_pic='-KPIC' 8866 lt_prog_compiler_static='-Bstatic' 8867 lt_prog_compiler_wl='-Wl,' 8868 ;; 8869 *Intel*\ [CF]*Compiler*) 8870 lt_prog_compiler_wl='-Wl,' 8871 lt_prog_compiler_pic='-fPIC' 8872 lt_prog_compiler_static='-static' 8873 ;; 8874 *Portland\ Group*) 8875 lt_prog_compiler_wl='-Wl,' 8876 lt_prog_compiler_pic='-fpic' 8877 lt_prog_compiler_static='-Bstatic' 8878 ;; 8879 esac 8880 ;; 8881 esac 8882 ;; 8883 8884 newsos6) 8885 lt_prog_compiler_pic='-KPIC' 8886 lt_prog_compiler_static='-Bstatic' 8887 ;; 8888 8889 *nto* | *qnx*) 8890 # QNX uses GNU C++, but need to define -shared option too, otherwise 8891 # it will coredump. 8892 lt_prog_compiler_pic='-fPIC -shared' 8893 ;; 8894 8895 osf3* | osf4* | osf5*) 8896 lt_prog_compiler_wl='-Wl,' 8897 # All OSF/1 code is PIC. 8898 lt_prog_compiler_static='-non_shared' 8899 ;; 8900 8901 rdos*) 8902 lt_prog_compiler_static='-non_shared' 8903 ;; 8904 8905 solaris*) 8906 lt_prog_compiler_pic='-KPIC' 8907 lt_prog_compiler_static='-Bstatic' 8908 case $cc_basename in 8909 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8910 lt_prog_compiler_wl='-Qoption ld ';; 8911 *) 8912 lt_prog_compiler_wl='-Wl,';; 8913 esac 8914 ;; 8915 8916 sunos4*) 8917 lt_prog_compiler_wl='-Qoption ld ' 8918 lt_prog_compiler_pic='-PIC' 8919 lt_prog_compiler_static='-Bstatic' 8920 ;; 8921 8922 sysv4 | sysv4.2uw2* | sysv4.3*) 8923 lt_prog_compiler_wl='-Wl,' 8924 lt_prog_compiler_pic='-KPIC' 8925 lt_prog_compiler_static='-Bstatic' 8926 ;; 8927 8928 sysv4*MP*) 8929 if test -d /usr/nec; then 8930 lt_prog_compiler_pic='-Kconform_pic' 8931 lt_prog_compiler_static='-Bstatic' 8932 fi 8933 ;; 8934 8935 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8936 lt_prog_compiler_wl='-Wl,' 8937 lt_prog_compiler_pic='-KPIC' 8938 lt_prog_compiler_static='-Bstatic' 8939 ;; 8940 8941 unicos*) 8942 lt_prog_compiler_wl='-Wl,' 8943 lt_prog_compiler_can_build_shared=no 8944 ;; 8945 8946 uts4*) 8947 lt_prog_compiler_pic='-pic' 8948 lt_prog_compiler_static='-Bstatic' 8949 ;; 8950 8951 *) 8952 lt_prog_compiler_can_build_shared=no 8953 ;; 8954 esac 8955 fi 8956 8957case $host_os in 8958 # For platforms that do not support PIC, -DPIC is meaningless: 8959 *djgpp*) 8960 lt_prog_compiler_pic= 8961 ;; 8962 *) 8963 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8964 ;; 8965esac 8966 8967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8968$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8969if ${lt_cv_prog_compiler_pic+:} false; then : 8970 $as_echo_n "(cached) " >&6 8971else 8972 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8973fi 8974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8975$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8976lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8977 8978# 8979# Check to make sure the PIC flag actually works. 8980# 8981if test -n "$lt_prog_compiler_pic"; then 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8983$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8984if ${lt_cv_prog_compiler_pic_works+:} false; then : 8985 $as_echo_n "(cached) " >&6 8986else 8987 lt_cv_prog_compiler_pic_works=no 8988 ac_outfile=conftest.$ac_objext 8989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8990 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8991 # Insert the option either (1) after the last *FLAGS variable, or 8992 # (2) before a word containing "conftest.", or (3) at the end. 8993 # Note that $ac_compile itself does not contain backslashes and begins 8994 # with a dollar sign (not a hyphen), so the echo should work correctly. 8995 # The option is referenced via a variable to avoid confusing sed. 8996 lt_compile=`echo "$ac_compile" | $SED \ 8997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8999 -e 's:$: $lt_compiler_flag:'` 9000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9001 (eval "$lt_compile" 2>conftest.err) 9002 ac_status=$? 9003 cat conftest.err >&5 9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9005 if (exit $ac_status) && test -s "$ac_outfile"; then 9006 # The compiler can only warn and ignore the option if not recognized 9007 # So say no if there are warnings other than the usual output. 9008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9010 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9011 lt_cv_prog_compiler_pic_works=yes 9012 fi 9013 fi 9014 $RM conftest* 9015 9016fi 9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9018$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9019 9020if test yes = "$lt_cv_prog_compiler_pic_works"; then 9021 case $lt_prog_compiler_pic in 9022 "" | " "*) ;; 9023 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9024 esac 9025else 9026 lt_prog_compiler_pic= 9027 lt_prog_compiler_can_build_shared=no 9028fi 9029 9030fi 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042# 9043# Check to make sure the static flag actually works. 9044# 9045wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9047$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9048if ${lt_cv_prog_compiler_static_works+:} false; then : 9049 $as_echo_n "(cached) " >&6 9050else 9051 lt_cv_prog_compiler_static_works=no 9052 save_LDFLAGS=$LDFLAGS 9053 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9054 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9056 # The linker can only warn and ignore the option if not recognized 9057 # So say no if there are warnings 9058 if test -s conftest.err; then 9059 # Append any errors to the config.log. 9060 cat conftest.err 1>&5 9061 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9063 if diff conftest.exp conftest.er2 >/dev/null; then 9064 lt_cv_prog_compiler_static_works=yes 9065 fi 9066 else 9067 lt_cv_prog_compiler_static_works=yes 9068 fi 9069 fi 9070 $RM -r conftest* 9071 LDFLAGS=$save_LDFLAGS 9072 9073fi 9074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9075$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9076 9077if test yes = "$lt_cv_prog_compiler_static_works"; then 9078 : 9079else 9080 lt_prog_compiler_static= 9081fi 9082 9083 9084 9085 9086 9087 9088 9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9090$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9091if ${lt_cv_prog_compiler_c_o+:} false; then : 9092 $as_echo_n "(cached) " >&6 9093else 9094 lt_cv_prog_compiler_c_o=no 9095 $RM -r conftest 2>/dev/null 9096 mkdir conftest 9097 cd conftest 9098 mkdir out 9099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9100 9101 lt_compiler_flag="-o out/conftest2.$ac_objext" 9102 # Insert the option either (1) after the last *FLAGS variable, or 9103 # (2) before a word containing "conftest.", or (3) at the end. 9104 # Note that $ac_compile itself does not contain backslashes and begins 9105 # with a dollar sign (not a hyphen), so the echo should work correctly. 9106 lt_compile=`echo "$ac_compile" | $SED \ 9107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9109 -e 's:$: $lt_compiler_flag:'` 9110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9111 (eval "$lt_compile" 2>out/conftest.err) 9112 ac_status=$? 9113 cat out/conftest.err >&5 9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9115 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9116 then 9117 # The compiler can only warn and ignore the option if not recognized 9118 # So say no if there are warnings 9119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9122 lt_cv_prog_compiler_c_o=yes 9123 fi 9124 fi 9125 chmod u+w . 2>&5 9126 $RM conftest* 9127 # SGI C++ compiler will create directory out/ii_files/ for 9128 # template instantiation 9129 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9130 $RM out/* && rmdir out 9131 cd .. 9132 $RM -r conftest 9133 $RM conftest* 9134 9135fi 9136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9137$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9138 9139 9140 9141 9142 9143 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9145$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9146if ${lt_cv_prog_compiler_c_o+:} false; then : 9147 $as_echo_n "(cached) " >&6 9148else 9149 lt_cv_prog_compiler_c_o=no 9150 $RM -r conftest 2>/dev/null 9151 mkdir conftest 9152 cd conftest 9153 mkdir out 9154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9155 9156 lt_compiler_flag="-o out/conftest2.$ac_objext" 9157 # Insert the option either (1) after the last *FLAGS variable, or 9158 # (2) before a word containing "conftest.", or (3) at the end. 9159 # Note that $ac_compile itself does not contain backslashes and begins 9160 # with a dollar sign (not a hyphen), so the echo should work correctly. 9161 lt_compile=`echo "$ac_compile" | $SED \ 9162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9164 -e 's:$: $lt_compiler_flag:'` 9165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9166 (eval "$lt_compile" 2>out/conftest.err) 9167 ac_status=$? 9168 cat out/conftest.err >&5 9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9170 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9171 then 9172 # The compiler can only warn and ignore the option if not recognized 9173 # So say no if there are warnings 9174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9177 lt_cv_prog_compiler_c_o=yes 9178 fi 9179 fi 9180 chmod u+w . 2>&5 9181 $RM conftest* 9182 # SGI C++ compiler will create directory out/ii_files/ for 9183 # template instantiation 9184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9185 $RM out/* && rmdir out 9186 cd .. 9187 $RM -r conftest 9188 $RM conftest* 9189 9190fi 9191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9192$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9193 9194 9195 9196 9197hard_links=nottested 9198if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9199 # do not overwrite the value of need_locks provided by the user 9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9201$as_echo_n "checking if we can lock with hard links... " >&6; } 9202 hard_links=yes 9203 $RM conftest* 9204 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9205 touch conftest.a 9206 ln conftest.a conftest.b 2>&5 || hard_links=no 9207 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9209$as_echo "$hard_links" >&6; } 9210 if test no = "$hard_links"; then 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9212$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9213 need_locks=warn 9214 fi 9215else 9216 need_locks=no 9217fi 9218 9219 9220 9221 9222 9223 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9225$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9226 9227 runpath_var= 9228 allow_undefined_flag= 9229 always_export_symbols=no 9230 archive_cmds= 9231 archive_expsym_cmds= 9232 compiler_needs_object=no 9233 enable_shared_with_static_runtimes=no 9234 export_dynamic_flag_spec= 9235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9236 hardcode_automatic=no 9237 hardcode_direct=no 9238 hardcode_direct_absolute=no 9239 hardcode_libdir_flag_spec= 9240 hardcode_libdir_separator= 9241 hardcode_minus_L=no 9242 hardcode_shlibpath_var=unsupported 9243 inherit_rpath=no 9244 link_all_deplibs=unknown 9245 module_cmds= 9246 module_expsym_cmds= 9247 old_archive_from_new_cmds= 9248 old_archive_from_expsyms_cmds= 9249 thread_safe_flag_spec= 9250 whole_archive_flag_spec= 9251 # include_expsyms should be a list of space-separated symbols to be *always* 9252 # included in the symbol list 9253 include_expsyms= 9254 # exclude_expsyms can be an extended regexp of symbols to exclude 9255 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9256 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9257 # as well as any symbol that contains 'd'. 9258 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9260 # platforms (ab)use it in PIC code, but their linkers get confused if 9261 # the symbol is explicitly referenced. Since portable code cannot 9262 # rely on this symbol name, it's probably fine to never include it in 9263 # preloaded symbol tables. 9264 # Exclude shared library initialization/finalization symbols. 9265 extract_expsyms_cmds= 9266 9267 case $host_os in 9268 cygwin* | mingw* | pw32* | cegcc*) 9269 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9270 # When not using gcc, we currently assume that we are using 9271 # Microsoft Visual C++. 9272 if test yes != "$GCC"; then 9273 with_gnu_ld=no 9274 fi 9275 ;; 9276 interix*) 9277 # we just hope/assume this is gcc and not c89 (= MSVC++) 9278 with_gnu_ld=yes 9279 ;; 9280 openbsd* | bitrig*) 9281 with_gnu_ld=no 9282 ;; 9283 linux* | k*bsd*-gnu | gnu*) 9284 link_all_deplibs=no 9285 ;; 9286 esac 9287 9288 ld_shlibs=yes 9289 9290 # On some targets, GNU ld is compatible enough with the native linker 9291 # that we're better off using the native interface for both. 9292 lt_use_gnu_ld_interface=no 9293 if test yes = "$with_gnu_ld"; then 9294 case $host_os in 9295 aix*) 9296 # The AIX port of GNU ld has always aspired to compatibility 9297 # with the native linker. However, as the warning in the GNU ld 9298 # block says, versions before 2.19.5* couldn't really create working 9299 # shared libraries, regardless of the interface used. 9300 case `$LD -v 2>&1` in 9301 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9302 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9303 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9304 *) 9305 lt_use_gnu_ld_interface=yes 9306 ;; 9307 esac 9308 ;; 9309 *) 9310 lt_use_gnu_ld_interface=yes 9311 ;; 9312 esac 9313 fi 9314 9315 if test yes = "$lt_use_gnu_ld_interface"; then 9316 # If archive_cmds runs LD, not CC, wlarc should be empty 9317 wlarc='$wl' 9318 9319 # Set some defaults for GNU ld with shared library support. These 9320 # are reset later if shared libraries are not supported. Putting them 9321 # here allows them to be overridden if necessary. 9322 runpath_var=LD_RUN_PATH 9323 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9324 export_dynamic_flag_spec='$wl--export-dynamic' 9325 # ancient GNU ld didn't support --whole-archive et. al. 9326 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9327 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9328 else 9329 whole_archive_flag_spec= 9330 fi 9331 supports_anon_versioning=no 9332 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9333 *GNU\ gold*) supports_anon_versioning=yes ;; 9334 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9335 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9336 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9337 *\ 2.11.*) ;; # other 2.11 versions 9338 *) supports_anon_versioning=yes ;; 9339 esac 9340 9341 # See if GNU ld supports shared libraries. 9342 case $host_os in 9343 aix[3-9]*) 9344 # On AIX/PPC, the GNU linker is very broken 9345 if test ia64 != "$host_cpu"; then 9346 ld_shlibs=no 9347 cat <<_LT_EOF 1>&2 9348 9349*** Warning: the GNU linker, at least up to release 2.19, is reported 9350*** to be unable to reliably create shared libraries on AIX. 9351*** Therefore, libtool is disabling shared libraries support. If you 9352*** really care for shared libraries, you may want to install binutils 9353*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9354*** You will then need to restart the configuration process. 9355 9356_LT_EOF 9357 fi 9358 ;; 9359 9360 amigaos*) 9361 case $host_cpu in 9362 powerpc) 9363 # see comment about AmigaOS4 .so support 9364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9365 archive_expsym_cmds='' 9366 ;; 9367 m68k) 9368 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)' 9369 hardcode_libdir_flag_spec='-L$libdir' 9370 hardcode_minus_L=yes 9371 ;; 9372 esac 9373 ;; 9374 9375 beos*) 9376 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9377 allow_undefined_flag=unsupported 9378 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9379 # support --undefined. This deserves some investigation. FIXME 9380 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9381 else 9382 ld_shlibs=no 9383 fi 9384 ;; 9385 9386 cygwin* | mingw* | pw32* | cegcc*) 9387 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9388 # as there is no search path for DLLs. 9389 hardcode_libdir_flag_spec='-L$libdir' 9390 export_dynamic_flag_spec='$wl--export-all-symbols' 9391 allow_undefined_flag=unsupported 9392 always_export_symbols=no 9393 enable_shared_with_static_runtimes=yes 9394 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' 9395 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9396 9397 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9399 # If the export-symbols file already is a .def file, use it as 9400 # is; otherwise, prepend EXPORTS... 9401 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9402 cp $export_symbols $output_objdir/$soname.def; 9403 else 9404 echo EXPORTS > $output_objdir/$soname.def; 9405 cat $export_symbols >> $output_objdir/$soname.def; 9406 fi~ 9407 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9408 else 9409 ld_shlibs=no 9410 fi 9411 ;; 9412 9413 haiku*) 9414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9415 link_all_deplibs=yes 9416 ;; 9417 9418 os2*) 9419 hardcode_libdir_flag_spec='-L$libdir' 9420 hardcode_minus_L=yes 9421 allow_undefined_flag=unsupported 9422 shrext_cmds=.dll 9423 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9424 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9425 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9426 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9427 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9428 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9429 emximp -o $lib $output_objdir/$libname.def' 9430 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9431 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9432 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9433 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9434 prefix_cmds="$SED"~ 9435 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9436 prefix_cmds="$prefix_cmds -e 1d"; 9437 fi~ 9438 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9439 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9440 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9441 emximp -o $lib $output_objdir/$libname.def' 9442 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9443 enable_shared_with_static_runtimes=yes 9444 ;; 9445 9446 interix[3-9]*) 9447 hardcode_direct=no 9448 hardcode_shlibpath_var=no 9449 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9450 export_dynamic_flag_spec='$wl-E' 9451 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9452 # Instead, shared libraries are loaded at an image base (0x10000000 by 9453 # default) and relocated if they conflict, which is a slow very memory 9454 # consuming and fragmenting process. To avoid this, we pick a random, 9455 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9456 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9457 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9458 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' 9459 ;; 9460 9461 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9462 tmp_diet=no 9463 if test linux-dietlibc = "$host_os"; then 9464 case $cc_basename in 9465 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9466 esac 9467 fi 9468 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9469 && test no = "$tmp_diet" 9470 then 9471 tmp_addflag=' $pic_flag' 9472 tmp_sharedflag='-shared' 9473 case $cc_basename,$host_cpu in 9474 pgcc*) # Portland Group C compiler 9475 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' 9476 tmp_addflag=' $pic_flag' 9477 ;; 9478 pgf77* | pgf90* | pgf95* | pgfortran*) 9479 # Portland Group f77 and f90 compilers 9480 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' 9481 tmp_addflag=' $pic_flag -Mnomain' ;; 9482 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9483 tmp_addflag=' -i_dynamic' ;; 9484 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9485 tmp_addflag=' -i_dynamic -nofor_main' ;; 9486 ifc* | ifort*) # Intel Fortran compiler 9487 tmp_addflag=' -nofor_main' ;; 9488 lf95*) # Lahey Fortran 8.1 9489 whole_archive_flag_spec= 9490 tmp_sharedflag='--shared' ;; 9491 nagfor*) # NAGFOR 5.3 9492 tmp_sharedflag='-Wl,-shared' ;; 9493 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9494 tmp_sharedflag='-qmkshrobj' 9495 tmp_addflag= ;; 9496 nvcc*) # Cuda Compiler Driver 2.2 9497 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' 9498 compiler_needs_object=yes 9499 ;; 9500 esac 9501 case `$CC -V 2>&1 | sed 5q` in 9502 *Sun\ C*) # Sun C 5.9 9503 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' 9504 compiler_needs_object=yes 9505 tmp_sharedflag='-G' ;; 9506 *Sun\ F*) # Sun Fortran 8.3 9507 tmp_sharedflag='-G' ;; 9508 esac 9509 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9510 9511 if test yes = "$supports_anon_versioning"; then 9512 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9513 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9514 echo "local: *; };" >> $output_objdir/$libname.ver~ 9515 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9516 fi 9517 9518 case $cc_basename in 9519 tcc*) 9520 export_dynamic_flag_spec='-rdynamic' 9521 ;; 9522 xlf* | bgf* | bgxlf* | mpixlf*) 9523 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9524 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9525 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9526 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9527 if test yes = "$supports_anon_versioning"; then 9528 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9530 echo "local: *; };" >> $output_objdir/$libname.ver~ 9531 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9532 fi 9533 ;; 9534 esac 9535 else 9536 ld_shlibs=no 9537 fi 9538 ;; 9539 9540 netbsd* | netbsdelf*-gnu) 9541 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9542 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9543 wlarc= 9544 else 9545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9546 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9547 fi 9548 ;; 9549 9550 solaris*) 9551 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9552 ld_shlibs=no 9553 cat <<_LT_EOF 1>&2 9554 9555*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9556*** create shared libraries on Solaris systems. Therefore, libtool 9557*** is disabling shared libraries support. We urge you to upgrade GNU 9558*** binutils to release 2.9.1 or newer. Another option is to modify 9559*** your PATH or compiler configuration so that the native linker is 9560*** used, and then restart. 9561 9562_LT_EOF 9563 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9565 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9566 else 9567 ld_shlibs=no 9568 fi 9569 ;; 9570 9571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9572 case `$LD -v 2>&1` in 9573 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9574 ld_shlibs=no 9575 cat <<_LT_EOF 1>&2 9576 9577*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9578*** reliably create shared libraries on SCO systems. Therefore, libtool 9579*** is disabling shared libraries support. We urge you to upgrade GNU 9580*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9581*** your PATH or compiler configuration so that the native linker is 9582*** used, and then restart. 9583 9584_LT_EOF 9585 ;; 9586 *) 9587 # For security reasons, it is highly recommended that you always 9588 # use absolute paths for naming shared libraries, and exclude the 9589 # DT_RUNPATH tag from executables and libraries. But doing so 9590 # requires that you compile everything twice, which is a pain. 9591 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9592 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9594 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9595 else 9596 ld_shlibs=no 9597 fi 9598 ;; 9599 esac 9600 ;; 9601 9602 sunos4*) 9603 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9604 wlarc= 9605 hardcode_direct=yes 9606 hardcode_shlibpath_var=no 9607 ;; 9608 9609 *) 9610 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9611 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9612 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9613 else 9614 ld_shlibs=no 9615 fi 9616 ;; 9617 esac 9618 9619 if test no = "$ld_shlibs"; then 9620 runpath_var= 9621 hardcode_libdir_flag_spec= 9622 export_dynamic_flag_spec= 9623 whole_archive_flag_spec= 9624 fi 9625 else 9626 # PORTME fill in a description of your system's linker (not GNU ld) 9627 case $host_os in 9628 aix3*) 9629 allow_undefined_flag=unsupported 9630 always_export_symbols=yes 9631 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' 9632 # Note: this linker hardcodes the directories in LIBPATH if there 9633 # are no directories specified by -L. 9634 hardcode_minus_L=yes 9635 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9636 # Neither direct hardcoding nor static linking is supported with a 9637 # broken collect2. 9638 hardcode_direct=unsupported 9639 fi 9640 ;; 9641 9642 aix[4-9]*) 9643 if test ia64 = "$host_cpu"; then 9644 # On IA64, the linker does run time linking by default, so we don't 9645 # have to do anything special. 9646 aix_use_runtimelinking=no 9647 exp_sym_flag='-Bexport' 9648 no_entry_flag= 9649 else 9650 # If we're using GNU nm, then we don't want the "-C" option. 9651 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9652 # Without the "-l" option, or with the "-B" option, AIX nm treats 9653 # weak defined symbols like other global defined symbols, whereas 9654 # GNU nm marks them as "W". 9655 # While the 'weak' keyword is ignored in the Export File, we need 9656 # it in the Import File for the 'aix-soname' feature, so we have 9657 # to replace the "-B" option with "-P" for AIX nm. 9658 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9659 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' 9660 else 9661 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' 9662 fi 9663 aix_use_runtimelinking=no 9664 9665 # Test if we are trying to use run time linking or normal 9666 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9667 # have runtime linking enabled, and use it for executables. 9668 # For shared libraries, we enable/disable runtime linking 9669 # depending on the kind of the shared library created - 9670 # when "with_aix_soname,aix_use_runtimelinking" is: 9671 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9672 # "aix,yes" lib.so shared, rtl:yes, for executables 9673 # lib.a static archive 9674 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9675 # lib.a(lib.so.V) shared, rtl:no, for executables 9676 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9677 # lib.a(lib.so.V) shared, rtl:no 9678 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9679 # lib.a static archive 9680 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9681 for ld_flag in $LDFLAGS; do 9682 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9683 aix_use_runtimelinking=yes 9684 break 9685 fi 9686 done 9687 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9688 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9689 # so we don't have lib.a shared libs to link our executables. 9690 # We have to force runtime linking in this case. 9691 aix_use_runtimelinking=yes 9692 LDFLAGS="$LDFLAGS -Wl,-brtl" 9693 fi 9694 ;; 9695 esac 9696 9697 exp_sym_flag='-bexport' 9698 no_entry_flag='-bnoentry' 9699 fi 9700 9701 # When large executables or shared objects are built, AIX ld can 9702 # have problems creating the table of contents. If linking a library 9703 # or program results in "error TOC overflow" add -mminimal-toc to 9704 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9705 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9706 9707 archive_cmds='' 9708 hardcode_direct=yes 9709 hardcode_direct_absolute=yes 9710 hardcode_libdir_separator=':' 9711 link_all_deplibs=yes 9712 file_list_spec='$wl-f,' 9713 case $with_aix_soname,$aix_use_runtimelinking in 9714 aix,*) ;; # traditional, no import file 9715 svr4,* | *,yes) # use import file 9716 # The Import File defines what to hardcode. 9717 hardcode_direct=no 9718 hardcode_direct_absolute=no 9719 ;; 9720 esac 9721 9722 if test yes = "$GCC"; then 9723 case $host_os in aix4.[012]|aix4.[012].*) 9724 # We only want to do this on AIX 4.2 and lower, the check 9725 # below for broken collect2 doesn't work under 4.3+ 9726 collect2name=`$CC -print-prog-name=collect2` 9727 if test -f "$collect2name" && 9728 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9729 then 9730 # We have reworked collect2 9731 : 9732 else 9733 # We have old collect2 9734 hardcode_direct=unsupported 9735 # It fails to find uninstalled libraries when the uninstalled 9736 # path is not listed in the libpath. Setting hardcode_minus_L 9737 # to unsupported forces relinking 9738 hardcode_minus_L=yes 9739 hardcode_libdir_flag_spec='-L$libdir' 9740 hardcode_libdir_separator= 9741 fi 9742 ;; 9743 esac 9744 shared_flag='-shared' 9745 if test yes = "$aix_use_runtimelinking"; then 9746 shared_flag="$shared_flag "'$wl-G' 9747 fi 9748 # Need to ensure runtime linking is disabled for the traditional 9749 # shared library, or the linker may eventually find shared libraries 9750 # /with/ Import File - we do not want to mix them. 9751 shared_flag_aix='-shared' 9752 shared_flag_svr4='-shared $wl-G' 9753 else 9754 # not using gcc 9755 if test ia64 = "$host_cpu"; then 9756 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9757 # chokes on -Wl,-G. The following line is correct: 9758 shared_flag='-G' 9759 else 9760 if test yes = "$aix_use_runtimelinking"; then 9761 shared_flag='$wl-G' 9762 else 9763 shared_flag='$wl-bM:SRE' 9764 fi 9765 shared_flag_aix='$wl-bM:SRE' 9766 shared_flag_svr4='$wl-G' 9767 fi 9768 fi 9769 9770 export_dynamic_flag_spec='$wl-bexpall' 9771 # It seems that -bexpall does not export symbols beginning with 9772 # underscore (_), so it is better to generate a list of symbols to export. 9773 always_export_symbols=yes 9774 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9775 # Warning - without using the other runtime loading flags (-brtl), 9776 # -berok will link without error, but may produce a broken library. 9777 allow_undefined_flag='-berok' 9778 # Determine the default libpath from the value encoded in an 9779 # empty executable. 9780 if test set = "${lt_cv_aix_libpath+set}"; then 9781 aix_libpath=$lt_cv_aix_libpath 9782else 9783 if ${lt_cv_aix_libpath_+:} false; then : 9784 $as_echo_n "(cached) " >&6 9785else 9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9787/* end confdefs.h. */ 9788 9789int 9790main () 9791{ 9792 9793 ; 9794 return 0; 9795} 9796_ACEOF 9797if ac_fn_c_try_link "$LINENO"; then : 9798 9799 lt_aix_libpath_sed=' 9800 /Import File Strings/,/^$/ { 9801 /^0/ { 9802 s/^0 *\([^ ]*\) *$/\1/ 9803 p 9804 } 9805 }' 9806 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9807 # Check for a 64-bit object if we didn't find anything. 9808 if test -z "$lt_cv_aix_libpath_"; then 9809 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9810 fi 9811fi 9812rm -f core conftest.err conftest.$ac_objext \ 9813 conftest$ac_exeext conftest.$ac_ext 9814 if test -z "$lt_cv_aix_libpath_"; then 9815 lt_cv_aix_libpath_=/usr/lib:/lib 9816 fi 9817 9818fi 9819 9820 aix_libpath=$lt_cv_aix_libpath_ 9821fi 9822 9823 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9824 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 9825 else 9826 if test ia64 = "$host_cpu"; then 9827 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9828 allow_undefined_flag="-z nodefs" 9829 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" 9830 else 9831 # Determine the default libpath from the value encoded in an 9832 # empty executable. 9833 if test set = "${lt_cv_aix_libpath+set}"; then 9834 aix_libpath=$lt_cv_aix_libpath 9835else 9836 if ${lt_cv_aix_libpath_+:} false; then : 9837 $as_echo_n "(cached) " >&6 9838else 9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9840/* end confdefs.h. */ 9841 9842int 9843main () 9844{ 9845 9846 ; 9847 return 0; 9848} 9849_ACEOF 9850if ac_fn_c_try_link "$LINENO"; then : 9851 9852 lt_aix_libpath_sed=' 9853 /Import File Strings/,/^$/ { 9854 /^0/ { 9855 s/^0 *\([^ ]*\) *$/\1/ 9856 p 9857 } 9858 }' 9859 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9860 # Check for a 64-bit object if we didn't find anything. 9861 if test -z "$lt_cv_aix_libpath_"; then 9862 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9863 fi 9864fi 9865rm -f core conftest.err conftest.$ac_objext \ 9866 conftest$ac_exeext conftest.$ac_ext 9867 if test -z "$lt_cv_aix_libpath_"; then 9868 lt_cv_aix_libpath_=/usr/lib:/lib 9869 fi 9870 9871fi 9872 9873 aix_libpath=$lt_cv_aix_libpath_ 9874fi 9875 9876 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9877 # Warning - without using the other run time loading flags, 9878 # -berok will link without error, but may produce a broken library. 9879 no_undefined_flag=' $wl-bernotok' 9880 allow_undefined_flag=' $wl-berok' 9881 if test yes = "$with_gnu_ld"; then 9882 # We only use this code for GNU lds that support --whole-archive. 9883 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9884 else 9885 # Exported symbols can be pulled into shared objects from archives 9886 whole_archive_flag_spec='$convenience' 9887 fi 9888 archive_cmds_need_lc=yes 9889 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9890 # -brtl affects multiple linker settings, -berok does not and is overridden later 9891 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9892 if test svr4 != "$with_aix_soname"; then 9893 # This is similar to how AIX traditionally builds its shared libraries. 9894 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' 9895 fi 9896 if test aix != "$with_aix_soname"; then 9897 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' 9898 else 9899 # used by -dlpreopen to get the symbols 9900 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9901 fi 9902 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9903 fi 9904 fi 9905 ;; 9906 9907 amigaos*) 9908 case $host_cpu in 9909 powerpc) 9910 # see comment about AmigaOS4 .so support 9911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9912 archive_expsym_cmds='' 9913 ;; 9914 m68k) 9915 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)' 9916 hardcode_libdir_flag_spec='-L$libdir' 9917 hardcode_minus_L=yes 9918 ;; 9919 esac 9920 ;; 9921 9922 bsdi[45]*) 9923 export_dynamic_flag_spec=-rdynamic 9924 ;; 9925 9926 cygwin* | mingw* | pw32* | cegcc*) 9927 # When not using gcc, we currently assume that we are using 9928 # Microsoft Visual C++. 9929 # hardcode_libdir_flag_spec is actually meaningless, as there is 9930 # no search path for DLLs. 9931 case $cc_basename in 9932 cl*) 9933 # Native MSVC 9934 hardcode_libdir_flag_spec=' ' 9935 allow_undefined_flag=unsupported 9936 always_export_symbols=yes 9937 file_list_spec='@' 9938 # Tell ltmain to make .lib files, not .a files. 9939 libext=lib 9940 # Tell ltmain to make .dll files, not .so files. 9941 shrext_cmds=.dll 9942 # FIXME: Setting linknames here is a bad hack. 9943 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9944 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9945 cp "$export_symbols" "$output_objdir/$soname.def"; 9946 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9947 else 9948 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9949 fi~ 9950 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9951 linknames=' 9952 # The linker will not automatically build a static lib if we build a DLL. 9953 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9954 enable_shared_with_static_runtimes=yes 9955 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9956 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9957 # Don't use ranlib 9958 old_postinstall_cmds='chmod 644 $oldlib' 9959 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9960 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9961 case $lt_outputfile in 9962 *.exe|*.EXE) ;; 9963 *) 9964 lt_outputfile=$lt_outputfile.exe 9965 lt_tool_outputfile=$lt_tool_outputfile.exe 9966 ;; 9967 esac~ 9968 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9969 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9970 $RM "$lt_outputfile.manifest"; 9971 fi' 9972 ;; 9973 *) 9974 # Assume MSVC wrapper 9975 hardcode_libdir_flag_spec=' ' 9976 allow_undefined_flag=unsupported 9977 # Tell ltmain to make .lib files, not .a files. 9978 libext=lib 9979 # Tell ltmain to make .dll files, not .so files. 9980 shrext_cmds=.dll 9981 # FIXME: Setting linknames here is a bad hack. 9982 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9983 # The linker will automatically build a .lib file if we build a DLL. 9984 old_archive_from_new_cmds='true' 9985 # FIXME: Should let the user specify the lib program. 9986 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9987 enable_shared_with_static_runtimes=yes 9988 ;; 9989 esac 9990 ;; 9991 9992 darwin* | rhapsody*) 9993 9994 9995 archive_cmds_need_lc=no 9996 hardcode_direct=no 9997 hardcode_automatic=yes 9998 hardcode_shlibpath_var=unsupported 9999 if test yes = "$lt_cv_ld_force_load"; then 10000 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\"`' 10001 10002 else 10003 whole_archive_flag_spec='' 10004 fi 10005 link_all_deplibs=yes 10006 allow_undefined_flag=$_lt_dar_allow_undefined 10007 case $cc_basename in 10008 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10009 *) _lt_dar_can_shared=$GCC ;; 10010 esac 10011 if test yes = "$_lt_dar_can_shared"; then 10012 output_verbose_link_cmd=func_echo_all 10013 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10014 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10015 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" 10016 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" 10017 10018 else 10019 ld_shlibs=no 10020 fi 10021 10022 ;; 10023 10024 dgux*) 10025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10026 hardcode_libdir_flag_spec='-L$libdir' 10027 hardcode_shlibpath_var=no 10028 ;; 10029 10030 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10031 # support. Future versions do this automatically, but an explicit c++rt0.o 10032 # does not break anything, and helps significantly (at the cost of a little 10033 # extra space). 10034 freebsd2.2*) 10035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10036 hardcode_libdir_flag_spec='-R$libdir' 10037 hardcode_direct=yes 10038 hardcode_shlibpath_var=no 10039 ;; 10040 10041 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10042 freebsd2.*) 10043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10044 hardcode_direct=yes 10045 hardcode_minus_L=yes 10046 hardcode_shlibpath_var=no 10047 ;; 10048 10049 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10050 freebsd* | dragonfly*) 10051 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10052 hardcode_libdir_flag_spec='-R$libdir' 10053 hardcode_direct=yes 10054 hardcode_shlibpath_var=no 10055 ;; 10056 10057 hpux9*) 10058 if test yes = "$GCC"; then 10059 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' 10060 else 10061 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' 10062 fi 10063 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10064 hardcode_libdir_separator=: 10065 hardcode_direct=yes 10066 10067 # hardcode_minus_L: Not really in the search PATH, 10068 # but as the default location of the library. 10069 hardcode_minus_L=yes 10070 export_dynamic_flag_spec='$wl-E' 10071 ;; 10072 10073 hpux10*) 10074 if test yes,no = "$GCC,$with_gnu_ld"; then 10075 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10076 else 10077 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10078 fi 10079 if test no = "$with_gnu_ld"; then 10080 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10081 hardcode_libdir_separator=: 10082 hardcode_direct=yes 10083 hardcode_direct_absolute=yes 10084 export_dynamic_flag_spec='$wl-E' 10085 # hardcode_minus_L: Not really in the search PATH, 10086 # but as the default location of the library. 10087 hardcode_minus_L=yes 10088 fi 10089 ;; 10090 10091 hpux11*) 10092 if test yes,no = "$GCC,$with_gnu_ld"; then 10093 case $host_cpu in 10094 hppa*64*) 10095 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10096 ;; 10097 ia64*) 10098 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10099 ;; 10100 *) 10101 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10102 ;; 10103 esac 10104 else 10105 case $host_cpu in 10106 hppa*64*) 10107 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10108 ;; 10109 ia64*) 10110 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10111 ;; 10112 *) 10113 10114 # Older versions of the 11.00 compiler do not understand -b yet 10115 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10117$as_echo_n "checking if $CC understands -b... " >&6; } 10118if ${lt_cv_prog_compiler__b+:} false; then : 10119 $as_echo_n "(cached) " >&6 10120else 10121 lt_cv_prog_compiler__b=no 10122 save_LDFLAGS=$LDFLAGS 10123 LDFLAGS="$LDFLAGS -b" 10124 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10126 # The linker can only warn and ignore the option if not recognized 10127 # So say no if there are warnings 10128 if test -s conftest.err; then 10129 # Append any errors to the config.log. 10130 cat conftest.err 1>&5 10131 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10133 if diff conftest.exp conftest.er2 >/dev/null; then 10134 lt_cv_prog_compiler__b=yes 10135 fi 10136 else 10137 lt_cv_prog_compiler__b=yes 10138 fi 10139 fi 10140 $RM -r conftest* 10141 LDFLAGS=$save_LDFLAGS 10142 10143fi 10144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10145$as_echo "$lt_cv_prog_compiler__b" >&6; } 10146 10147if test yes = "$lt_cv_prog_compiler__b"; then 10148 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10149else 10150 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10151fi 10152 10153 ;; 10154 esac 10155 fi 10156 if test no = "$with_gnu_ld"; then 10157 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10158 hardcode_libdir_separator=: 10159 10160 case $host_cpu in 10161 hppa*64*|ia64*) 10162 hardcode_direct=no 10163 hardcode_shlibpath_var=no 10164 ;; 10165 *) 10166 hardcode_direct=yes 10167 hardcode_direct_absolute=yes 10168 export_dynamic_flag_spec='$wl-E' 10169 10170 # hardcode_minus_L: Not really in the search PATH, 10171 # but as the default location of the library. 10172 hardcode_minus_L=yes 10173 ;; 10174 esac 10175 fi 10176 ;; 10177 10178 irix5* | irix6* | nonstopux*) 10179 if test yes = "$GCC"; then 10180 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' 10181 # Try to use the -exported_symbol ld option, if it does not 10182 # work, assume that -exports_file does not work either and 10183 # implicitly export all symbols. 10184 # This should be the same for all languages, so no per-tag cache variable. 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10186$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10187if ${lt_cv_irix_exported_symbol+:} false; then : 10188 $as_echo_n "(cached) " >&6 10189else 10190 save_LDFLAGS=$LDFLAGS 10191 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10193/* end confdefs.h. */ 10194int foo (void) { return 0; } 10195_ACEOF 10196if ac_fn_c_try_link "$LINENO"; then : 10197 lt_cv_irix_exported_symbol=yes 10198else 10199 lt_cv_irix_exported_symbol=no 10200fi 10201rm -f core conftest.err conftest.$ac_objext \ 10202 conftest$ac_exeext conftest.$ac_ext 10203 LDFLAGS=$save_LDFLAGS 10204fi 10205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10206$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10207 if test yes = "$lt_cv_irix_exported_symbol"; then 10208 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' 10209 fi 10210 link_all_deplibs=no 10211 else 10212 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' 10213 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' 10214 fi 10215 archive_cmds_need_lc='no' 10216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10217 hardcode_libdir_separator=: 10218 inherit_rpath=yes 10219 link_all_deplibs=yes 10220 ;; 10221 10222 linux*) 10223 case $cc_basename in 10224 tcc*) 10225 # Fabrice Bellard et al's Tiny C Compiler 10226 ld_shlibs=yes 10227 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10228 ;; 10229 esac 10230 ;; 10231 10232 netbsd* | netbsdelf*-gnu) 10233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10235 else 10236 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10237 fi 10238 hardcode_libdir_flag_spec='-R$libdir' 10239 hardcode_direct=yes 10240 hardcode_shlibpath_var=no 10241 ;; 10242 10243 newsos6) 10244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10245 hardcode_direct=yes 10246 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10247 hardcode_libdir_separator=: 10248 hardcode_shlibpath_var=no 10249 ;; 10250 10251 *nto* | *qnx*) 10252 ;; 10253 10254 openbsd* | bitrig*) 10255 if test -f /usr/libexec/ld.so; then 10256 hardcode_direct=yes 10257 hardcode_shlibpath_var=no 10258 hardcode_direct_absolute=yes 10259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10261 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10262 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10263 export_dynamic_flag_spec='$wl-E' 10264 else 10265 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10266 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10267 fi 10268 else 10269 ld_shlibs=no 10270 fi 10271 ;; 10272 10273 os2*) 10274 hardcode_libdir_flag_spec='-L$libdir' 10275 hardcode_minus_L=yes 10276 allow_undefined_flag=unsupported 10277 shrext_cmds=.dll 10278 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10279 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10280 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10281 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10282 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10283 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10284 emximp -o $lib $output_objdir/$libname.def' 10285 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10286 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10287 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10288 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10289 prefix_cmds="$SED"~ 10290 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10291 prefix_cmds="$prefix_cmds -e 1d"; 10292 fi~ 10293 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10294 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10295 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10296 emximp -o $lib $output_objdir/$libname.def' 10297 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10298 enable_shared_with_static_runtimes=yes 10299 ;; 10300 10301 osf3*) 10302 if test yes = "$GCC"; then 10303 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10304 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' 10305 else 10306 allow_undefined_flag=' -expect_unresolved \*' 10307 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' 10308 fi 10309 archive_cmds_need_lc='no' 10310 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10311 hardcode_libdir_separator=: 10312 ;; 10313 10314 osf4* | osf5*) # as osf3* with the addition of -msym flag 10315 if test yes = "$GCC"; then 10316 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10317 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' 10318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10319 else 10320 allow_undefined_flag=' -expect_unresolved \*' 10321 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' 10322 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~ 10323 $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' 10324 10325 # Both c and cxx compiler support -rpath directly 10326 hardcode_libdir_flag_spec='-rpath $libdir' 10327 fi 10328 archive_cmds_need_lc='no' 10329 hardcode_libdir_separator=: 10330 ;; 10331 10332 solaris*) 10333 no_undefined_flag=' -z defs' 10334 if test yes = "$GCC"; then 10335 wlarc='$wl' 10336 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10337 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10338 $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' 10339 else 10340 case `$CC -V 2>&1` in 10341 *"Compilers 5.0"*) 10342 wlarc='' 10343 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10344 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10345 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10346 ;; 10347 *) 10348 wlarc='$wl' 10349 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10350 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10351 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10352 ;; 10353 esac 10354 fi 10355 hardcode_libdir_flag_spec='-R$libdir' 10356 hardcode_shlibpath_var=no 10357 case $host_os in 10358 solaris2.[0-5] | solaris2.[0-5].*) ;; 10359 *) 10360 # The compiler driver will combine and reorder linker options, 10361 # but understands '-z linker_flag'. GCC discards it without '$wl', 10362 # but is careful enough not to reorder. 10363 # Supported since Solaris 2.6 (maybe 2.5.1?) 10364 if test yes = "$GCC"; then 10365 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10366 else 10367 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10368 fi 10369 ;; 10370 esac 10371 link_all_deplibs=yes 10372 ;; 10373 10374 sunos4*) 10375 if test sequent = "$host_vendor"; then 10376 # Use $CC to link under sequent, because it throws in some extra .o 10377 # files that make .init and .fini sections work. 10378 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10379 else 10380 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10381 fi 10382 hardcode_libdir_flag_spec='-L$libdir' 10383 hardcode_direct=yes 10384 hardcode_minus_L=yes 10385 hardcode_shlibpath_var=no 10386 ;; 10387 10388 sysv4) 10389 case $host_vendor in 10390 sni) 10391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10392 hardcode_direct=yes # is this really true??? 10393 ;; 10394 siemens) 10395 ## LD is ld it makes a PLAMLIB 10396 ## CC just makes a GrossModule. 10397 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10398 reload_cmds='$CC -r -o $output$reload_objs' 10399 hardcode_direct=no 10400 ;; 10401 motorola) 10402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10403 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10404 ;; 10405 esac 10406 runpath_var='LD_RUN_PATH' 10407 hardcode_shlibpath_var=no 10408 ;; 10409 10410 sysv4.3*) 10411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10412 hardcode_shlibpath_var=no 10413 export_dynamic_flag_spec='-Bexport' 10414 ;; 10415 10416 sysv4*MP*) 10417 if test -d /usr/nec; then 10418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10419 hardcode_shlibpath_var=no 10420 runpath_var=LD_RUN_PATH 10421 hardcode_runpath_var=yes 10422 ld_shlibs=yes 10423 fi 10424 ;; 10425 10426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10427 no_undefined_flag='$wl-z,text' 10428 archive_cmds_need_lc=no 10429 hardcode_shlibpath_var=no 10430 runpath_var='LD_RUN_PATH' 10431 10432 if test yes = "$GCC"; then 10433 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10434 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10435 else 10436 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10437 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10438 fi 10439 ;; 10440 10441 sysv5* | sco3.2v5* | sco5v6*) 10442 # Note: We CANNOT use -z defs as we might desire, because we do not 10443 # link with -lc, and that would cause any symbols used from libc to 10444 # always be unresolved, which means just about no library would 10445 # ever link correctly. If we're not using GNU ld we use -z text 10446 # though, which does catch some bad symbols but isn't as heavy-handed 10447 # as -z defs. 10448 no_undefined_flag='$wl-z,text' 10449 allow_undefined_flag='$wl-z,nodefs' 10450 archive_cmds_need_lc=no 10451 hardcode_shlibpath_var=no 10452 hardcode_libdir_flag_spec='$wl-R,$libdir' 10453 hardcode_libdir_separator=':' 10454 link_all_deplibs=yes 10455 export_dynamic_flag_spec='$wl-Bexport' 10456 runpath_var='LD_RUN_PATH' 10457 10458 if test yes = "$GCC"; then 10459 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10460 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10461 else 10462 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10463 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10464 fi 10465 ;; 10466 10467 uts4*) 10468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10469 hardcode_libdir_flag_spec='-L$libdir' 10470 hardcode_shlibpath_var=no 10471 ;; 10472 10473 *) 10474 ld_shlibs=no 10475 ;; 10476 esac 10477 10478 if test sni = "$host_vendor"; then 10479 case $host in 10480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10481 export_dynamic_flag_spec='$wl-Blargedynsym' 10482 ;; 10483 esac 10484 fi 10485 fi 10486 10487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10488$as_echo "$ld_shlibs" >&6; } 10489test no = "$ld_shlibs" && can_build_shared=no 10490 10491with_gnu_ld=$with_gnu_ld 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507# 10508# Do we need to explicitly link libc? 10509# 10510case "x$archive_cmds_need_lc" in 10511x|xyes) 10512 # Assume -lc should be added 10513 archive_cmds_need_lc=yes 10514 10515 if test yes,yes = "$GCC,$enable_shared"; then 10516 case $archive_cmds in 10517 *'~'*) 10518 # FIXME: we may have to deal with multi-command sequences. 10519 ;; 10520 '$CC '*) 10521 # Test whether the compiler implicitly links with -lc since on some 10522 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10523 # to ld, don't add -lc before -lgcc. 10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10525$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10526if ${lt_cv_archive_cmds_need_lc+:} false; then : 10527 $as_echo_n "(cached) " >&6 10528else 10529 $RM conftest* 10530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10531 10532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10533 (eval $ac_compile) 2>&5 10534 ac_status=$? 10535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10536 test $ac_status = 0; } 2>conftest.err; then 10537 soname=conftest 10538 lib=conftest 10539 libobjs=conftest.$ac_objext 10540 deplibs= 10541 wl=$lt_prog_compiler_wl 10542 pic_flag=$lt_prog_compiler_pic 10543 compiler_flags=-v 10544 linker_flags=-v 10545 verstring= 10546 output_objdir=. 10547 libname=conftest 10548 lt_save_allow_undefined_flag=$allow_undefined_flag 10549 allow_undefined_flag= 10550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10551 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10552 ac_status=$? 10553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10554 test $ac_status = 0; } 10555 then 10556 lt_cv_archive_cmds_need_lc=no 10557 else 10558 lt_cv_archive_cmds_need_lc=yes 10559 fi 10560 allow_undefined_flag=$lt_save_allow_undefined_flag 10561 else 10562 cat conftest.err 1>&5 10563 fi 10564 $RM conftest* 10565 10566fi 10567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10568$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10569 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10570 ;; 10571 esac 10572 fi 10573 ;; 10574esac 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10728$as_echo_n "checking dynamic linker characteristics... " >&6; } 10729 10730if test yes = "$GCC"; then 10731 case $host_os in 10732 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10733 *) lt_awk_arg='/^libraries:/' ;; 10734 esac 10735 case $host_os in 10736 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10737 *) lt_sed_strip_eq='s|=/|/|g' ;; 10738 esac 10739 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10740 case $lt_search_path_spec in 10741 *\;*) 10742 # if the path contains ";" then we assume it to be the separator 10743 # otherwise default to the standard path separator (i.e. ":") - it is 10744 # assumed that no part of a normal pathname contains ";" but that should 10745 # okay in the real world where ";" in dirpaths is itself problematic. 10746 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10747 ;; 10748 *) 10749 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10750 ;; 10751 esac 10752 # Ok, now we have the path, separated by spaces, we can step through it 10753 # and add multilib dir if necessary... 10754 lt_tmp_lt_search_path_spec= 10755 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10756 # ...but if some path component already ends with the multilib dir we assume 10757 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10758 case "$lt_multi_os_dir; $lt_search_path_spec " in 10759 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10760 lt_multi_os_dir= 10761 ;; 10762 esac 10763 for lt_sys_path in $lt_search_path_spec; do 10764 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10765 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10766 elif test -n "$lt_multi_os_dir"; then 10767 test -d "$lt_sys_path" && \ 10768 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10769 fi 10770 done 10771 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10772BEGIN {RS = " "; FS = "/|\n";} { 10773 lt_foo = ""; 10774 lt_count = 0; 10775 for (lt_i = NF; lt_i > 0; lt_i--) { 10776 if ($lt_i != "" && $lt_i != ".") { 10777 if ($lt_i == "..") { 10778 lt_count++; 10779 } else { 10780 if (lt_count == 0) { 10781 lt_foo = "/" $lt_i lt_foo; 10782 } else { 10783 lt_count--; 10784 } 10785 } 10786 } 10787 } 10788 if (lt_foo != "") { lt_freq[lt_foo]++; } 10789 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10790}'` 10791 # AWK program above erroneously prepends '/' to C:/dos/paths 10792 # for these hosts. 10793 case $host_os in 10794 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10795 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10796 esac 10797 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10798else 10799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10800fi 10801library_names_spec= 10802libname_spec='lib$name' 10803soname_spec= 10804shrext_cmds=.so 10805postinstall_cmds= 10806postuninstall_cmds= 10807finish_cmds= 10808finish_eval= 10809shlibpath_var= 10810shlibpath_overrides_runpath=unknown 10811version_type=none 10812dynamic_linker="$host_os ld.so" 10813sys_lib_dlsearch_path_spec="/lib /usr/lib" 10814need_lib_prefix=unknown 10815hardcode_into_libs=no 10816 10817# when you set need_version to no, make sure it does not cause -set_version 10818# flags to be left without arguments 10819need_version=unknown 10820 10821 10822 10823case $host_os in 10824aix3*) 10825 version_type=linux # correct to gnu/linux during the next big refactor 10826 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10827 shlibpath_var=LIBPATH 10828 10829 # AIX 3 has no versioning support, so we append a major version to the name. 10830 soname_spec='$libname$release$shared_ext$major' 10831 ;; 10832 10833aix[4-9]*) 10834 version_type=linux # correct to gnu/linux during the next big refactor 10835 need_lib_prefix=no 10836 need_version=no 10837 hardcode_into_libs=yes 10838 if test ia64 = "$host_cpu"; then 10839 # AIX 5 supports IA64 10840 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10841 shlibpath_var=LD_LIBRARY_PATH 10842 else 10843 # With GCC up to 2.95.x, collect2 would create an import file 10844 # for dependence libraries. The import file would start with 10845 # the line '#! .'. This would cause the generated library to 10846 # depend on '.', always an invalid library. This was fixed in 10847 # development snapshots of GCC prior to 3.0. 10848 case $host_os in 10849 aix4 | aix4.[01] | aix4.[01].*) 10850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10851 echo ' yes ' 10852 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10853 : 10854 else 10855 can_build_shared=no 10856 fi 10857 ;; 10858 esac 10859 # Using Import Files as archive members, it is possible to support 10860 # filename-based versioning of shared library archives on AIX. While 10861 # this would work for both with and without runtime linking, it will 10862 # prevent static linking of such archives. So we do filename-based 10863 # shared library versioning with .so extension only, which is used 10864 # when both runtime linking and shared linking is enabled. 10865 # Unfortunately, runtime linking may impact performance, so we do 10866 # not want this to be the default eventually. Also, we use the 10867 # versioned .so libs for executables only if there is the -brtl 10868 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10869 # To allow for filename-based versioning support, we need to create 10870 # libNAME.so.V as an archive file, containing: 10871 # *) an Import File, referring to the versioned filename of the 10872 # archive as well as the shared archive member, telling the 10873 # bitwidth (32 or 64) of that shared object, and providing the 10874 # list of exported symbols of that shared object, eventually 10875 # decorated with the 'weak' keyword 10876 # *) the shared object with the F_LOADONLY flag set, to really avoid 10877 # it being seen by the linker. 10878 # At run time we better use the real file rather than another symlink, 10879 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10880 10881 case $with_aix_soname,$aix_use_runtimelinking in 10882 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10883 # soname into executable. Probably we can add versioning support to 10884 # collect2, so additional links can be useful in future. 10885 aix,yes) # traditional libtool 10886 dynamic_linker='AIX unversionable lib.so' 10887 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10888 # instead of lib<name>.a to let people know that these are not 10889 # typical AIX shared libraries. 10890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10891 ;; 10892 aix,no) # traditional AIX only 10893 dynamic_linker='AIX lib.a(lib.so.V)' 10894 # We preserve .a as extension for shared libraries through AIX4.2 10895 # and later when we are not doing run time linking. 10896 library_names_spec='$libname$release.a $libname.a' 10897 soname_spec='$libname$release$shared_ext$major' 10898 ;; 10899 svr4,*) # full svr4 only 10900 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10901 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10902 # We do not specify a path in Import Files, so LIBPATH fires. 10903 shlibpath_overrides_runpath=yes 10904 ;; 10905 *,yes) # both, prefer svr4 10906 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10907 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10908 # unpreferred sharedlib libNAME.a needs extra handling 10909 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"' 10910 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"' 10911 # We do not specify a path in Import Files, so LIBPATH fires. 10912 shlibpath_overrides_runpath=yes 10913 ;; 10914 *,no) # both, prefer aix 10915 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10916 library_names_spec='$libname$release.a $libname.a' 10917 soname_spec='$libname$release$shared_ext$major' 10918 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10919 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)' 10920 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"' 10921 ;; 10922 esac 10923 shlibpath_var=LIBPATH 10924 fi 10925 ;; 10926 10927amigaos*) 10928 case $host_cpu in 10929 powerpc) 10930 # Since July 2007 AmigaOS4 officially supports .so libraries. 10931 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10933 ;; 10934 m68k) 10935 library_names_spec='$libname.ixlibrary $libname.a' 10936 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10937 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' 10938 ;; 10939 esac 10940 ;; 10941 10942beos*) 10943 library_names_spec='$libname$shared_ext' 10944 dynamic_linker="$host_os ld.so" 10945 shlibpath_var=LIBRARY_PATH 10946 ;; 10947 10948bsdi[45]*) 10949 version_type=linux # correct to gnu/linux during the next big refactor 10950 need_version=no 10951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10952 soname_spec='$libname$release$shared_ext$major' 10953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10954 shlibpath_var=LD_LIBRARY_PATH 10955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10957 # the default ld.so.conf also contains /usr/contrib/lib and 10958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10959 # libtool to hard-code these into programs 10960 ;; 10961 10962cygwin* | mingw* | pw32* | cegcc*) 10963 version_type=windows 10964 shrext_cmds=.dll 10965 need_version=no 10966 need_lib_prefix=no 10967 10968 case $GCC,$cc_basename in 10969 yes,*) 10970 # gcc 10971 library_names_spec='$libname.dll.a' 10972 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10973 postinstall_cmds='base_file=`basename \$file`~ 10974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10975 dldir=$destdir/`dirname \$dlpath`~ 10976 test -d \$dldir || mkdir -p \$dldir~ 10977 $install_prog $dir/$dlname \$dldir/$dlname~ 10978 chmod a+x \$dldir/$dlname~ 10979 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10980 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10981 fi' 10982 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10983 dlpath=$dir/\$dldll~ 10984 $RM \$dlpath' 10985 shlibpath_overrides_runpath=yes 10986 10987 case $host_os in 10988 cygwin*) 10989 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10990 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10991 10992 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10993 ;; 10994 mingw* | cegcc*) 10995 # MinGW DLLs use traditional 'lib' prefix 10996 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10997 ;; 10998 pw32*) 10999 # pw32 DLLs use 'pw' prefix rather than 'lib' 11000 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11001 ;; 11002 esac 11003 dynamic_linker='Win32 ld.exe' 11004 ;; 11005 11006 *,cl*) 11007 # Native MSVC 11008 libname_spec='$name' 11009 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11010 library_names_spec='$libname.dll.lib' 11011 11012 case $build_os in 11013 mingw*) 11014 sys_lib_search_path_spec= 11015 lt_save_ifs=$IFS 11016 IFS=';' 11017 for lt_path in $LIB 11018 do 11019 IFS=$lt_save_ifs 11020 # Let DOS variable expansion print the short 8.3 style file name. 11021 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11022 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11023 done 11024 IFS=$lt_save_ifs 11025 # Convert to MSYS style. 11026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11027 ;; 11028 cygwin*) 11029 # Convert to unix form, then to dos form, then back to unix form 11030 # but this time dos style (no spaces!) so that the unix form looks 11031 # like /cygdrive/c/PROGRA~1:/cygdr... 11032 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11033 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11034 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11035 ;; 11036 *) 11037 sys_lib_search_path_spec=$LIB 11038 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11039 # It is most probably a Windows format PATH. 11040 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11041 else 11042 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11043 fi 11044 # FIXME: find the short name or the path components, as spaces are 11045 # common. (e.g. "Program Files" -> "PROGRA~1") 11046 ;; 11047 esac 11048 11049 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11050 postinstall_cmds='base_file=`basename \$file`~ 11051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11052 dldir=$destdir/`dirname \$dlpath`~ 11053 test -d \$dldir || mkdir -p \$dldir~ 11054 $install_prog $dir/$dlname \$dldir/$dlname' 11055 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11056 dlpath=$dir/\$dldll~ 11057 $RM \$dlpath' 11058 shlibpath_overrides_runpath=yes 11059 dynamic_linker='Win32 link.exe' 11060 ;; 11061 11062 *) 11063 # Assume MSVC wrapper 11064 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11065 dynamic_linker='Win32 ld.exe' 11066 ;; 11067 esac 11068 # FIXME: first we should search . and the directory the executable is in 11069 shlibpath_var=PATH 11070 ;; 11071 11072darwin* | rhapsody*) 11073 dynamic_linker="$host_os dyld" 11074 version_type=darwin 11075 need_lib_prefix=no 11076 need_version=no 11077 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11078 soname_spec='$libname$release$major$shared_ext' 11079 shlibpath_overrides_runpath=yes 11080 shlibpath_var=DYLD_LIBRARY_PATH 11081 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11082 11083 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11084 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11085 ;; 11086 11087dgux*) 11088 version_type=linux # correct to gnu/linux during the next big refactor 11089 need_lib_prefix=no 11090 need_version=no 11091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11092 soname_spec='$libname$release$shared_ext$major' 11093 shlibpath_var=LD_LIBRARY_PATH 11094 ;; 11095 11096freebsd* | dragonfly*) 11097 # DragonFly does not have aout. When/if they implement a new 11098 # versioning mechanism, adjust this. 11099 if test -x /usr/bin/objformat; then 11100 objformat=`/usr/bin/objformat` 11101 else 11102 case $host_os in 11103 freebsd[23].*) objformat=aout ;; 11104 *) objformat=elf ;; 11105 esac 11106 fi 11107 version_type=freebsd-$objformat 11108 case $version_type in 11109 freebsd-elf*) 11110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11111 soname_spec='$libname$release$shared_ext$major' 11112 need_version=no 11113 need_lib_prefix=no 11114 ;; 11115 freebsd-*) 11116 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11117 need_version=yes 11118 ;; 11119 esac 11120 shlibpath_var=LD_LIBRARY_PATH 11121 case $host_os in 11122 freebsd2.*) 11123 shlibpath_overrides_runpath=yes 11124 ;; 11125 freebsd3.[01]* | freebsdelf3.[01]*) 11126 shlibpath_overrides_runpath=yes 11127 hardcode_into_libs=yes 11128 ;; 11129 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11130 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11131 shlibpath_overrides_runpath=no 11132 hardcode_into_libs=yes 11133 ;; 11134 *) # from 4.6 on, and DragonFly 11135 shlibpath_overrides_runpath=yes 11136 hardcode_into_libs=yes 11137 ;; 11138 esac 11139 ;; 11140 11141haiku*) 11142 version_type=linux # correct to gnu/linux during the next big refactor 11143 need_lib_prefix=no 11144 need_version=no 11145 dynamic_linker="$host_os runtime_loader" 11146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11147 soname_spec='$libname$release$shared_ext$major' 11148 shlibpath_var=LIBRARY_PATH 11149 shlibpath_overrides_runpath=no 11150 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11151 hardcode_into_libs=yes 11152 ;; 11153 11154hpux9* | hpux10* | hpux11*) 11155 # Give a soname corresponding to the major version so that dld.sl refuses to 11156 # link against other versions. 11157 version_type=sunos 11158 need_lib_prefix=no 11159 need_version=no 11160 case $host_cpu in 11161 ia64*) 11162 shrext_cmds='.so' 11163 hardcode_into_libs=yes 11164 dynamic_linker="$host_os dld.so" 11165 shlibpath_var=LD_LIBRARY_PATH 11166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11168 soname_spec='$libname$release$shared_ext$major' 11169 if test 32 = "$HPUX_IA64_MODE"; then 11170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11171 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11172 else 11173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11174 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11175 fi 11176 ;; 11177 hppa*64*) 11178 shrext_cmds='.sl' 11179 hardcode_into_libs=yes 11180 dynamic_linker="$host_os dld.sl" 11181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11184 soname_spec='$libname$release$shared_ext$major' 11185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11187 ;; 11188 *) 11189 shrext_cmds='.sl' 11190 dynamic_linker="$host_os dld.sl" 11191 shlibpath_var=SHLIB_PATH 11192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11194 soname_spec='$libname$release$shared_ext$major' 11195 ;; 11196 esac 11197 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11198 postinstall_cmds='chmod 555 $lib' 11199 # or fails outright, so override atomically: 11200 install_override_mode=555 11201 ;; 11202 11203interix[3-9]*) 11204 version_type=linux # correct to gnu/linux during the next big refactor 11205 need_lib_prefix=no 11206 need_version=no 11207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11208 soname_spec='$libname$release$shared_ext$major' 11209 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11210 shlibpath_var=LD_LIBRARY_PATH 11211 shlibpath_overrides_runpath=no 11212 hardcode_into_libs=yes 11213 ;; 11214 11215irix5* | irix6* | nonstopux*) 11216 case $host_os in 11217 nonstopux*) version_type=nonstopux ;; 11218 *) 11219 if test yes = "$lt_cv_prog_gnu_ld"; then 11220 version_type=linux # correct to gnu/linux during the next big refactor 11221 else 11222 version_type=irix 11223 fi ;; 11224 esac 11225 need_lib_prefix=no 11226 need_version=no 11227 soname_spec='$libname$release$shared_ext$major' 11228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11229 case $host_os in 11230 irix5* | nonstopux*) 11231 libsuff= shlibsuff= 11232 ;; 11233 *) 11234 case $LD in # libtool.m4 will add one of these switches to LD 11235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11236 libsuff= shlibsuff= libmagic=32-bit;; 11237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11238 libsuff=32 shlibsuff=N32 libmagic=N32;; 11239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11240 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11241 *) libsuff= shlibsuff= libmagic=never-match;; 11242 esac 11243 ;; 11244 esac 11245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11246 shlibpath_overrides_runpath=no 11247 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11248 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11249 hardcode_into_libs=yes 11250 ;; 11251 11252# No shared lib support for Linux oldld, aout, or coff. 11253linux*oldld* | linux*aout* | linux*coff*) 11254 dynamic_linker=no 11255 ;; 11256 11257linux*android*) 11258 version_type=none # Android doesn't support versioned libraries. 11259 need_lib_prefix=no 11260 need_version=no 11261 library_names_spec='$libname$release$shared_ext' 11262 soname_spec='$libname$release$shared_ext' 11263 finish_cmds= 11264 shlibpath_var=LD_LIBRARY_PATH 11265 shlibpath_overrides_runpath=yes 11266 11267 # This implies no fast_install, which is unacceptable. 11268 # Some rework will be needed to allow for fast_install 11269 # before this can be enabled. 11270 hardcode_into_libs=yes 11271 11272 dynamic_linker='Android linker' 11273 # Don't embed -rpath directories since the linker doesn't support them. 11274 hardcode_libdir_flag_spec='-L$libdir' 11275 ;; 11276 11277# This must be glibc/ELF. 11278linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11279 version_type=linux # correct to gnu/linux during the next big refactor 11280 need_lib_prefix=no 11281 need_version=no 11282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11283 soname_spec='$libname$release$shared_ext$major' 11284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11285 shlibpath_var=LD_LIBRARY_PATH 11286 shlibpath_overrides_runpath=no 11287 11288 # Some binutils ld are patched to set DT_RUNPATH 11289 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11290 $as_echo_n "(cached) " >&6 11291else 11292 lt_cv_shlibpath_overrides_runpath=no 11293 save_LDFLAGS=$LDFLAGS 11294 save_libdir=$libdir 11295 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11296 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11298/* end confdefs.h. */ 11299 11300int 11301main () 11302{ 11303 11304 ; 11305 return 0; 11306} 11307_ACEOF 11308if ac_fn_c_try_link "$LINENO"; then : 11309 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11310 lt_cv_shlibpath_overrides_runpath=yes 11311fi 11312fi 11313rm -f core conftest.err conftest.$ac_objext \ 11314 conftest$ac_exeext conftest.$ac_ext 11315 LDFLAGS=$save_LDFLAGS 11316 libdir=$save_libdir 11317 11318fi 11319 11320 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11321 11322 # This implies no fast_install, which is unacceptable. 11323 # Some rework will be needed to allow for fast_install 11324 # before this can be enabled. 11325 hardcode_into_libs=yes 11326 11327 # Ideally, we could use ldconfig to report *all* directores which are 11328 # searched for libraries, however this is still not possible. Aside from not 11329 # being certain /sbin/ldconfig is available, command 11330 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11331 # even though it is searched at run-time. Try to do the best guess by 11332 # appending ld.so.conf contents (and includes) to the search path. 11333 if test -f /etc/ld.so.conf; then 11334 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' ' '` 11335 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11336 fi 11337 11338 # We used to test for /lib/ld.so.1 and disable shared libraries on 11339 # powerpc, because MkLinux only supported shared libraries with the 11340 # GNU dynamic linker. Since this was broken with cross compilers, 11341 # most powerpc-linux boxes support dynamic linking these days and 11342 # people can always --disable-shared, the test was removed, and we 11343 # assume the GNU/Linux dynamic linker is in use. 11344 dynamic_linker='GNU/Linux ld.so' 11345 ;; 11346 11347netbsdelf*-gnu) 11348 version_type=linux 11349 need_lib_prefix=no 11350 need_version=no 11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11352 soname_spec='${libname}${release}${shared_ext}$major' 11353 shlibpath_var=LD_LIBRARY_PATH 11354 shlibpath_overrides_runpath=no 11355 hardcode_into_libs=yes 11356 dynamic_linker='NetBSD ld.elf_so' 11357 ;; 11358 11359netbsd*) 11360 version_type=sunos 11361 need_lib_prefix=no 11362 need_version=no 11363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11364 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11366 dynamic_linker='NetBSD (a.out) ld.so' 11367 else 11368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11369 soname_spec='$libname$release$shared_ext$major' 11370 dynamic_linker='NetBSD ld.elf_so' 11371 fi 11372 shlibpath_var=LD_LIBRARY_PATH 11373 shlibpath_overrides_runpath=yes 11374 hardcode_into_libs=yes 11375 ;; 11376 11377newsos6) 11378 version_type=linux # correct to gnu/linux during the next big refactor 11379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11380 shlibpath_var=LD_LIBRARY_PATH 11381 shlibpath_overrides_runpath=yes 11382 ;; 11383 11384*nto* | *qnx*) 11385 version_type=qnx 11386 need_lib_prefix=no 11387 need_version=no 11388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11389 soname_spec='$libname$release$shared_ext$major' 11390 shlibpath_var=LD_LIBRARY_PATH 11391 shlibpath_overrides_runpath=no 11392 hardcode_into_libs=yes 11393 dynamic_linker='ldqnx.so' 11394 ;; 11395 11396openbsd* | bitrig*) 11397 version_type=sunos 11398 sys_lib_dlsearch_path_spec=/usr/lib 11399 need_lib_prefix=no 11400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11401 need_version=no 11402 else 11403 need_version=yes 11404 fi 11405 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11407 shlibpath_var=LD_LIBRARY_PATH 11408 shlibpath_overrides_runpath=yes 11409 ;; 11410 11411os2*) 11412 libname_spec='$name' 11413 version_type=windows 11414 shrext_cmds=.dll 11415 need_version=no 11416 need_lib_prefix=no 11417 # OS/2 can only load a DLL with a base name of 8 characters or less. 11418 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11419 v=$($ECHO $release$versuffix | tr -d .-); 11420 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11421 $ECHO $n$v`$shared_ext' 11422 library_names_spec='${libname}_dll.$libext' 11423 dynamic_linker='OS/2 ld.exe' 11424 shlibpath_var=BEGINLIBPATH 11425 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11427 postinstall_cmds='base_file=`basename \$file`~ 11428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11429 dldir=$destdir/`dirname \$dlpath`~ 11430 test -d \$dldir || mkdir -p \$dldir~ 11431 $install_prog $dir/$dlname \$dldir/$dlname~ 11432 chmod a+x \$dldir/$dlname~ 11433 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11434 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11435 fi' 11436 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11437 dlpath=$dir/\$dldll~ 11438 $RM \$dlpath' 11439 ;; 11440 11441osf3* | osf4* | osf5*) 11442 version_type=osf 11443 need_lib_prefix=no 11444 need_version=no 11445 soname_spec='$libname$release$shared_ext$major' 11446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11447 shlibpath_var=LD_LIBRARY_PATH 11448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11450 ;; 11451 11452rdos*) 11453 dynamic_linker=no 11454 ;; 11455 11456solaris*) 11457 version_type=linux # correct to gnu/linux during the next big refactor 11458 need_lib_prefix=no 11459 need_version=no 11460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11461 soname_spec='$libname$release$shared_ext$major' 11462 shlibpath_var=LD_LIBRARY_PATH 11463 shlibpath_overrides_runpath=yes 11464 hardcode_into_libs=yes 11465 # ldd complains unless libraries are executable 11466 postinstall_cmds='chmod +x $lib' 11467 ;; 11468 11469sunos4*) 11470 version_type=sunos 11471 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11473 shlibpath_var=LD_LIBRARY_PATH 11474 shlibpath_overrides_runpath=yes 11475 if test yes = "$with_gnu_ld"; then 11476 need_lib_prefix=no 11477 fi 11478 need_version=yes 11479 ;; 11480 11481sysv4 | sysv4.3*) 11482 version_type=linux # correct to gnu/linux during the next big refactor 11483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11484 soname_spec='$libname$release$shared_ext$major' 11485 shlibpath_var=LD_LIBRARY_PATH 11486 case $host_vendor in 11487 sni) 11488 shlibpath_overrides_runpath=no 11489 need_lib_prefix=no 11490 runpath_var=LD_RUN_PATH 11491 ;; 11492 siemens) 11493 need_lib_prefix=no 11494 ;; 11495 motorola) 11496 need_lib_prefix=no 11497 need_version=no 11498 shlibpath_overrides_runpath=no 11499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11500 ;; 11501 esac 11502 ;; 11503 11504sysv4*MP*) 11505 if test -d /usr/nec; then 11506 version_type=linux # correct to gnu/linux during the next big refactor 11507 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11508 soname_spec='$libname$shared_ext.$major' 11509 shlibpath_var=LD_LIBRARY_PATH 11510 fi 11511 ;; 11512 11513sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11514 version_type=sco 11515 need_lib_prefix=no 11516 need_version=no 11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11518 soname_spec='$libname$release$shared_ext$major' 11519 shlibpath_var=LD_LIBRARY_PATH 11520 shlibpath_overrides_runpath=yes 11521 hardcode_into_libs=yes 11522 if test yes = "$with_gnu_ld"; then 11523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11524 else 11525 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11526 case $host_os in 11527 sco3.2v5*) 11528 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11529 ;; 11530 esac 11531 fi 11532 sys_lib_dlsearch_path_spec='/usr/lib' 11533 ;; 11534 11535tpf*) 11536 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11537 version_type=linux # correct to gnu/linux during the next big refactor 11538 need_lib_prefix=no 11539 need_version=no 11540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11541 shlibpath_var=LD_LIBRARY_PATH 11542 shlibpath_overrides_runpath=no 11543 hardcode_into_libs=yes 11544 ;; 11545 11546uts4*) 11547 version_type=linux # correct to gnu/linux during the next big refactor 11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11549 soname_spec='$libname$release$shared_ext$major' 11550 shlibpath_var=LD_LIBRARY_PATH 11551 ;; 11552 11553*) 11554 dynamic_linker=no 11555 ;; 11556esac 11557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11558$as_echo "$dynamic_linker" >&6; } 11559test no = "$dynamic_linker" && can_build_shared=no 11560 11561variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11562if test yes = "$GCC"; then 11563 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11564fi 11565 11566if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11567 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11568fi 11569 11570if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11571 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11572fi 11573 11574# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11575configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11576 11577# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11578func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11579 11580# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11581configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11680$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11681hardcode_action= 11682if test -n "$hardcode_libdir_flag_spec" || 11683 test -n "$runpath_var" || 11684 test yes = "$hardcode_automatic"; then 11685 11686 # We can hardcode non-existent directories. 11687 if test no != "$hardcode_direct" && 11688 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11689 # have to relink, otherwise we might link with an installed library 11690 # when we should be linking with a yet-to-be-installed one 11691 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11692 test no != "$hardcode_minus_L"; then 11693 # Linking always hardcodes the temporary library directory. 11694 hardcode_action=relink 11695 else 11696 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11697 hardcode_action=immediate 11698 fi 11699else 11700 # We cannot hardcode anything, or else we can only hardcode existing 11701 # directories. 11702 hardcode_action=unsupported 11703fi 11704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11705$as_echo "$hardcode_action" >&6; } 11706 11707if test relink = "$hardcode_action" || 11708 test yes = "$inherit_rpath"; then 11709 # Fast installation is not supported 11710 enable_fast_install=no 11711elif test yes = "$shlibpath_overrides_runpath" || 11712 test no = "$enable_shared"; then 11713 # Fast installation is not necessary 11714 enable_fast_install=needless 11715fi 11716 11717 11718 11719 11720 11721 11722 if test yes != "$enable_dlopen"; then 11723 enable_dlopen=unknown 11724 enable_dlopen_self=unknown 11725 enable_dlopen_self_static=unknown 11726else 11727 lt_cv_dlopen=no 11728 lt_cv_dlopen_libs= 11729 11730 case $host_os in 11731 beos*) 11732 lt_cv_dlopen=load_add_on 11733 lt_cv_dlopen_libs= 11734 lt_cv_dlopen_self=yes 11735 ;; 11736 11737 mingw* | pw32* | cegcc*) 11738 lt_cv_dlopen=LoadLibrary 11739 lt_cv_dlopen_libs= 11740 ;; 11741 11742 cygwin*) 11743 lt_cv_dlopen=dlopen 11744 lt_cv_dlopen_libs= 11745 ;; 11746 11747 darwin*) 11748 # if libdl is installed we need to link against it 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11750$as_echo_n "checking for dlopen in -ldl... " >&6; } 11751if ${ac_cv_lib_dl_dlopen+:} false; then : 11752 $as_echo_n "(cached) " >&6 11753else 11754 ac_check_lib_save_LIBS=$LIBS 11755LIBS="-ldl $LIBS" 11756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11757/* end confdefs.h. */ 11758 11759/* Override any GCC internal prototype to avoid an error. 11760 Use char because int might match the return type of a GCC 11761 builtin and then its argument prototype would still apply. */ 11762#ifdef __cplusplus 11763extern "C" 11764#endif 11765char dlopen (); 11766int 11767main () 11768{ 11769return dlopen (); 11770 ; 11771 return 0; 11772} 11773_ACEOF 11774if ac_fn_c_try_link "$LINENO"; then : 11775 ac_cv_lib_dl_dlopen=yes 11776else 11777 ac_cv_lib_dl_dlopen=no 11778fi 11779rm -f core conftest.err conftest.$ac_objext \ 11780 conftest$ac_exeext conftest.$ac_ext 11781LIBS=$ac_check_lib_save_LIBS 11782fi 11783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11784$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11785if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11786 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11787else 11788 11789 lt_cv_dlopen=dyld 11790 lt_cv_dlopen_libs= 11791 lt_cv_dlopen_self=yes 11792 11793fi 11794 11795 ;; 11796 11797 tpf*) 11798 # Don't try to run any link tests for TPF. We know it's impossible 11799 # because TPF is a cross-compiler, and we know how we open DSOs. 11800 lt_cv_dlopen=dlopen 11801 lt_cv_dlopen_libs= 11802 lt_cv_dlopen_self=no 11803 ;; 11804 11805 *) 11806 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11807if test "x$ac_cv_func_shl_load" = xyes; then : 11808 lt_cv_dlopen=shl_load 11809else 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11811$as_echo_n "checking for shl_load in -ldld... " >&6; } 11812if ${ac_cv_lib_dld_shl_load+:} false; then : 11813 $as_echo_n "(cached) " >&6 11814else 11815 ac_check_lib_save_LIBS=$LIBS 11816LIBS="-ldld $LIBS" 11817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11818/* end confdefs.h. */ 11819 11820/* Override any GCC internal prototype to avoid an error. 11821 Use char because int might match the return type of a GCC 11822 builtin and then its argument prototype would still apply. */ 11823#ifdef __cplusplus 11824extern "C" 11825#endif 11826char shl_load (); 11827int 11828main () 11829{ 11830return shl_load (); 11831 ; 11832 return 0; 11833} 11834_ACEOF 11835if ac_fn_c_try_link "$LINENO"; then : 11836 ac_cv_lib_dld_shl_load=yes 11837else 11838 ac_cv_lib_dld_shl_load=no 11839fi 11840rm -f core conftest.err conftest.$ac_objext \ 11841 conftest$ac_exeext conftest.$ac_ext 11842LIBS=$ac_check_lib_save_LIBS 11843fi 11844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11845$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11846if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11847 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11848else 11849 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11850if test "x$ac_cv_func_dlopen" = xyes; then : 11851 lt_cv_dlopen=dlopen 11852else 11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11854$as_echo_n "checking for dlopen in -ldl... " >&6; } 11855if ${ac_cv_lib_dl_dlopen+:} false; then : 11856 $as_echo_n "(cached) " >&6 11857else 11858 ac_check_lib_save_LIBS=$LIBS 11859LIBS="-ldl $LIBS" 11860cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11861/* end confdefs.h. */ 11862 11863/* Override any GCC internal prototype to avoid an error. 11864 Use char because int might match the return type of a GCC 11865 builtin and then its argument prototype would still apply. */ 11866#ifdef __cplusplus 11867extern "C" 11868#endif 11869char dlopen (); 11870int 11871main () 11872{ 11873return dlopen (); 11874 ; 11875 return 0; 11876} 11877_ACEOF 11878if ac_fn_c_try_link "$LINENO"; then : 11879 ac_cv_lib_dl_dlopen=yes 11880else 11881 ac_cv_lib_dl_dlopen=no 11882fi 11883rm -f core conftest.err conftest.$ac_objext \ 11884 conftest$ac_exeext conftest.$ac_ext 11885LIBS=$ac_check_lib_save_LIBS 11886fi 11887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11888$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11889if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11890 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11891else 11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11893$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11894if ${ac_cv_lib_svld_dlopen+:} false; then : 11895 $as_echo_n "(cached) " >&6 11896else 11897 ac_check_lib_save_LIBS=$LIBS 11898LIBS="-lsvld $LIBS" 11899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11900/* end confdefs.h. */ 11901 11902/* Override any GCC internal prototype to avoid an error. 11903 Use char because int might match the return type of a GCC 11904 builtin and then its argument prototype would still apply. */ 11905#ifdef __cplusplus 11906extern "C" 11907#endif 11908char dlopen (); 11909int 11910main () 11911{ 11912return dlopen (); 11913 ; 11914 return 0; 11915} 11916_ACEOF 11917if ac_fn_c_try_link "$LINENO"; then : 11918 ac_cv_lib_svld_dlopen=yes 11919else 11920 ac_cv_lib_svld_dlopen=no 11921fi 11922rm -f core conftest.err conftest.$ac_objext \ 11923 conftest$ac_exeext conftest.$ac_ext 11924LIBS=$ac_check_lib_save_LIBS 11925fi 11926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11927$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11928if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11929 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11930else 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11932$as_echo_n "checking for dld_link in -ldld... " >&6; } 11933if ${ac_cv_lib_dld_dld_link+:} false; then : 11934 $as_echo_n "(cached) " >&6 11935else 11936 ac_check_lib_save_LIBS=$LIBS 11937LIBS="-ldld $LIBS" 11938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11939/* end confdefs.h. */ 11940 11941/* Override any GCC internal prototype to avoid an error. 11942 Use char because int might match the return type of a GCC 11943 builtin and then its argument prototype would still apply. */ 11944#ifdef __cplusplus 11945extern "C" 11946#endif 11947char dld_link (); 11948int 11949main () 11950{ 11951return dld_link (); 11952 ; 11953 return 0; 11954} 11955_ACEOF 11956if ac_fn_c_try_link "$LINENO"; then : 11957 ac_cv_lib_dld_dld_link=yes 11958else 11959 ac_cv_lib_dld_dld_link=no 11960fi 11961rm -f core conftest.err conftest.$ac_objext \ 11962 conftest$ac_exeext conftest.$ac_ext 11963LIBS=$ac_check_lib_save_LIBS 11964fi 11965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11966$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11967if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11968 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11969fi 11970 11971 11972fi 11973 11974 11975fi 11976 11977 11978fi 11979 11980 11981fi 11982 11983 11984fi 11985 11986 ;; 11987 esac 11988 11989 if test no = "$lt_cv_dlopen"; then 11990 enable_dlopen=no 11991 else 11992 enable_dlopen=yes 11993 fi 11994 11995 case $lt_cv_dlopen in 11996 dlopen) 11997 save_CPPFLAGS=$CPPFLAGS 11998 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11999 12000 save_LDFLAGS=$LDFLAGS 12001 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12002 12003 save_LIBS=$LIBS 12004 LIBS="$lt_cv_dlopen_libs $LIBS" 12005 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12007$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12008if ${lt_cv_dlopen_self+:} false; then : 12009 $as_echo_n "(cached) " >&6 12010else 12011 if test yes = "$cross_compiling"; then : 12012 lt_cv_dlopen_self=cross 12013else 12014 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12015 lt_status=$lt_dlunknown 12016 cat > conftest.$ac_ext <<_LT_EOF 12017#line $LINENO "configure" 12018#include "confdefs.h" 12019 12020#if HAVE_DLFCN_H 12021#include <dlfcn.h> 12022#endif 12023 12024#include <stdio.h> 12025 12026#ifdef RTLD_GLOBAL 12027# define LT_DLGLOBAL RTLD_GLOBAL 12028#else 12029# ifdef DL_GLOBAL 12030# define LT_DLGLOBAL DL_GLOBAL 12031# else 12032# define LT_DLGLOBAL 0 12033# endif 12034#endif 12035 12036/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12037 find out it does not work in some platform. */ 12038#ifndef LT_DLLAZY_OR_NOW 12039# ifdef RTLD_LAZY 12040# define LT_DLLAZY_OR_NOW RTLD_LAZY 12041# else 12042# ifdef DL_LAZY 12043# define LT_DLLAZY_OR_NOW DL_LAZY 12044# else 12045# ifdef RTLD_NOW 12046# define LT_DLLAZY_OR_NOW RTLD_NOW 12047# else 12048# ifdef DL_NOW 12049# define LT_DLLAZY_OR_NOW DL_NOW 12050# else 12051# define LT_DLLAZY_OR_NOW 0 12052# endif 12053# endif 12054# endif 12055# endif 12056#endif 12057 12058/* When -fvisibility=hidden is used, assume the code has been annotated 12059 correspondingly for the symbols needed. */ 12060#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12061int fnord () __attribute__((visibility("default"))); 12062#endif 12063 12064int fnord () { return 42; } 12065int main () 12066{ 12067 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12068 int status = $lt_dlunknown; 12069 12070 if (self) 12071 { 12072 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12073 else 12074 { 12075 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12076 else puts (dlerror ()); 12077 } 12078 /* dlclose (self); */ 12079 } 12080 else 12081 puts (dlerror ()); 12082 12083 return status; 12084} 12085_LT_EOF 12086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12087 (eval $ac_link) 2>&5 12088 ac_status=$? 12089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12090 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12091 (./conftest; exit; ) >&5 2>/dev/null 12092 lt_status=$? 12093 case x$lt_status in 12094 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12095 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12096 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12097 esac 12098 else : 12099 # compilation failed 12100 lt_cv_dlopen_self=no 12101 fi 12102fi 12103rm -fr conftest* 12104 12105 12106fi 12107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12108$as_echo "$lt_cv_dlopen_self" >&6; } 12109 12110 if test yes = "$lt_cv_dlopen_self"; then 12111 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12113$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12114if ${lt_cv_dlopen_self_static+:} false; then : 12115 $as_echo_n "(cached) " >&6 12116else 12117 if test yes = "$cross_compiling"; then : 12118 lt_cv_dlopen_self_static=cross 12119else 12120 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12121 lt_status=$lt_dlunknown 12122 cat > conftest.$ac_ext <<_LT_EOF 12123#line $LINENO "configure" 12124#include "confdefs.h" 12125 12126#if HAVE_DLFCN_H 12127#include <dlfcn.h> 12128#endif 12129 12130#include <stdio.h> 12131 12132#ifdef RTLD_GLOBAL 12133# define LT_DLGLOBAL RTLD_GLOBAL 12134#else 12135# ifdef DL_GLOBAL 12136# define LT_DLGLOBAL DL_GLOBAL 12137# else 12138# define LT_DLGLOBAL 0 12139# endif 12140#endif 12141 12142/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12143 find out it does not work in some platform. */ 12144#ifndef LT_DLLAZY_OR_NOW 12145# ifdef RTLD_LAZY 12146# define LT_DLLAZY_OR_NOW RTLD_LAZY 12147# else 12148# ifdef DL_LAZY 12149# define LT_DLLAZY_OR_NOW DL_LAZY 12150# else 12151# ifdef RTLD_NOW 12152# define LT_DLLAZY_OR_NOW RTLD_NOW 12153# else 12154# ifdef DL_NOW 12155# define LT_DLLAZY_OR_NOW DL_NOW 12156# else 12157# define LT_DLLAZY_OR_NOW 0 12158# endif 12159# endif 12160# endif 12161# endif 12162#endif 12163 12164/* When -fvisibility=hidden is used, assume the code has been annotated 12165 correspondingly for the symbols needed. */ 12166#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12167int fnord () __attribute__((visibility("default"))); 12168#endif 12169 12170int fnord () { return 42; } 12171int main () 12172{ 12173 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12174 int status = $lt_dlunknown; 12175 12176 if (self) 12177 { 12178 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12179 else 12180 { 12181 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12182 else puts (dlerror ()); 12183 } 12184 /* dlclose (self); */ 12185 } 12186 else 12187 puts (dlerror ()); 12188 12189 return status; 12190} 12191_LT_EOF 12192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12193 (eval $ac_link) 2>&5 12194 ac_status=$? 12195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12196 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12197 (./conftest; exit; ) >&5 2>/dev/null 12198 lt_status=$? 12199 case x$lt_status in 12200 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12201 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12202 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12203 esac 12204 else : 12205 # compilation failed 12206 lt_cv_dlopen_self_static=no 12207 fi 12208fi 12209rm -fr conftest* 12210 12211 12212fi 12213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12214$as_echo "$lt_cv_dlopen_self_static" >&6; } 12215 fi 12216 12217 CPPFLAGS=$save_CPPFLAGS 12218 LDFLAGS=$save_LDFLAGS 12219 LIBS=$save_LIBS 12220 ;; 12221 esac 12222 12223 case $lt_cv_dlopen_self in 12224 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12225 *) enable_dlopen_self=unknown ;; 12226 esac 12227 12228 case $lt_cv_dlopen_self_static in 12229 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12230 *) enable_dlopen_self_static=unknown ;; 12231 esac 12232fi 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250striplib= 12251old_striplib= 12252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12253$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12254if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12255 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12256 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12258$as_echo "yes" >&6; } 12259else 12260# FIXME - insert some real tests, host_os isn't really good enough 12261 case $host_os in 12262 darwin*) 12263 if test -n "$STRIP"; then 12264 striplib="$STRIP -x" 12265 old_striplib="$STRIP -S" 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12267$as_echo "yes" >&6; } 12268 else 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12270$as_echo "no" >&6; } 12271 fi 12272 ;; 12273 *) 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12275$as_echo "no" >&6; } 12276 ;; 12277 esac 12278fi 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 # Report what library types will actually be built 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12293$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12295$as_echo "$can_build_shared" >&6; } 12296 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12298$as_echo_n "checking whether to build shared libraries... " >&6; } 12299 test no = "$can_build_shared" && enable_shared=no 12300 12301 # On AIX, shared libraries and static libraries use the same namespace, and 12302 # are all built from PIC. 12303 case $host_os in 12304 aix3*) 12305 test yes = "$enable_shared" && enable_static=no 12306 if test -n "$RANLIB"; then 12307 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12308 postinstall_cmds='$RANLIB $lib' 12309 fi 12310 ;; 12311 12312 aix[4-9]*) 12313 if test ia64 != "$host_cpu"; then 12314 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12315 yes,aix,yes) ;; # shared object as lib.so file only 12316 yes,svr4,*) ;; # shared object as lib.so archive member only 12317 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12318 esac 12319 fi 12320 ;; 12321 esac 12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12323$as_echo "$enable_shared" >&6; } 12324 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12326$as_echo_n "checking whether to build static libraries... " >&6; } 12327 # Make sure either enable_shared or enable_static is yes. 12328 test yes = "$enable_shared" || enable_static=yes 12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12330$as_echo "$enable_static" >&6; } 12331 12332 12333 12334 12335fi 12336ac_ext=c 12337ac_cpp='$CPP $CPPFLAGS' 12338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12340ac_compiler_gnu=$ac_cv_c_compiler_gnu 12341 12342CC=$lt_save_CC 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 ac_config_commands="$ac_config_commands libtool" 12359 12360 12361 12362 12363# Only expand once: 12364 12365 12366enable_win32_dll=yes 12367 12368case $host in 12369*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 12370 if test -n "$ac_tool_prefix"; then 12371 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 12372set dummy ${ac_tool_prefix}as; ac_word=$2 12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12374$as_echo_n "checking for $ac_word... " >&6; } 12375if ${ac_cv_prog_AS+:} false; then : 12376 $as_echo_n "(cached) " >&6 12377else 12378 if test -n "$AS"; then 12379 ac_cv_prog_AS="$AS" # Let the user override the test. 12380else 12381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12382for as_dir in $PATH 12383do 12384 IFS=$as_save_IFS 12385 test -z "$as_dir" && as_dir=. 12386 for ac_exec_ext in '' $ac_executable_extensions; do 12387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12388 ac_cv_prog_AS="${ac_tool_prefix}as" 12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12390 break 2 12391 fi 12392done 12393 done 12394IFS=$as_save_IFS 12395 12396fi 12397fi 12398AS=$ac_cv_prog_AS 12399if test -n "$AS"; then 12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 12401$as_echo "$AS" >&6; } 12402else 12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12404$as_echo "no" >&6; } 12405fi 12406 12407 12408fi 12409if test -z "$ac_cv_prog_AS"; then 12410 ac_ct_AS=$AS 12411 # Extract the first word of "as", so it can be a program name with args. 12412set dummy as; ac_word=$2 12413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12414$as_echo_n "checking for $ac_word... " >&6; } 12415if ${ac_cv_prog_ac_ct_AS+:} false; then : 12416 $as_echo_n "(cached) " >&6 12417else 12418 if test -n "$ac_ct_AS"; then 12419 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 12420else 12421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12422for as_dir in $PATH 12423do 12424 IFS=$as_save_IFS 12425 test -z "$as_dir" && as_dir=. 12426 for ac_exec_ext in '' $ac_executable_extensions; do 12427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12428 ac_cv_prog_ac_ct_AS="as" 12429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12430 break 2 12431 fi 12432done 12433 done 12434IFS=$as_save_IFS 12435 12436fi 12437fi 12438ac_ct_AS=$ac_cv_prog_ac_ct_AS 12439if test -n "$ac_ct_AS"; then 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 12441$as_echo "$ac_ct_AS" >&6; } 12442else 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12444$as_echo "no" >&6; } 12445fi 12446 12447 if test "x$ac_ct_AS" = x; then 12448 AS="false" 12449 else 12450 case $cross_compiling:$ac_tool_warned in 12451yes:) 12452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12454ac_tool_warned=yes ;; 12455esac 12456 AS=$ac_ct_AS 12457 fi 12458else 12459 AS="$ac_cv_prog_AS" 12460fi 12461 12462 if test -n "$ac_tool_prefix"; then 12463 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12464set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12466$as_echo_n "checking for $ac_word... " >&6; } 12467if ${ac_cv_prog_DLLTOOL+:} false; then : 12468 $as_echo_n "(cached) " >&6 12469else 12470 if test -n "$DLLTOOL"; then 12471 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12472else 12473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12474for as_dir in $PATH 12475do 12476 IFS=$as_save_IFS 12477 test -z "$as_dir" && as_dir=. 12478 for ac_exec_ext in '' $ac_executable_extensions; do 12479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12480 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12482 break 2 12483 fi 12484done 12485 done 12486IFS=$as_save_IFS 12487 12488fi 12489fi 12490DLLTOOL=$ac_cv_prog_DLLTOOL 12491if test -n "$DLLTOOL"; then 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12493$as_echo "$DLLTOOL" >&6; } 12494else 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12496$as_echo "no" >&6; } 12497fi 12498 12499 12500fi 12501if test -z "$ac_cv_prog_DLLTOOL"; then 12502 ac_ct_DLLTOOL=$DLLTOOL 12503 # Extract the first word of "dlltool", so it can be a program name with args. 12504set dummy dlltool; ac_word=$2 12505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12506$as_echo_n "checking for $ac_word... " >&6; } 12507if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12508 $as_echo_n "(cached) " >&6 12509else 12510 if test -n "$ac_ct_DLLTOOL"; then 12511 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12512else 12513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12514for as_dir in $PATH 12515do 12516 IFS=$as_save_IFS 12517 test -z "$as_dir" && as_dir=. 12518 for ac_exec_ext in '' $ac_executable_extensions; do 12519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12520 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12522 break 2 12523 fi 12524done 12525 done 12526IFS=$as_save_IFS 12527 12528fi 12529fi 12530ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12531if test -n "$ac_ct_DLLTOOL"; then 12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12533$as_echo "$ac_ct_DLLTOOL" >&6; } 12534else 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12536$as_echo "no" >&6; } 12537fi 12538 12539 if test "x$ac_ct_DLLTOOL" = x; then 12540 DLLTOOL="false" 12541 else 12542 case $cross_compiling:$ac_tool_warned in 12543yes:) 12544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12546ac_tool_warned=yes ;; 12547esac 12548 DLLTOOL=$ac_ct_DLLTOOL 12549 fi 12550else 12551 DLLTOOL="$ac_cv_prog_DLLTOOL" 12552fi 12553 12554 if test -n "$ac_tool_prefix"; then 12555 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12556set dummy ${ac_tool_prefix}objdump; ac_word=$2 12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12558$as_echo_n "checking for $ac_word... " >&6; } 12559if ${ac_cv_prog_OBJDUMP+:} false; then : 12560 $as_echo_n "(cached) " >&6 12561else 12562 if test -n "$OBJDUMP"; then 12563 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12564else 12565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12566for as_dir in $PATH 12567do 12568 IFS=$as_save_IFS 12569 test -z "$as_dir" && as_dir=. 12570 for ac_exec_ext in '' $ac_executable_extensions; do 12571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12572 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12574 break 2 12575 fi 12576done 12577 done 12578IFS=$as_save_IFS 12579 12580fi 12581fi 12582OBJDUMP=$ac_cv_prog_OBJDUMP 12583if test -n "$OBJDUMP"; then 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12585$as_echo "$OBJDUMP" >&6; } 12586else 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12588$as_echo "no" >&6; } 12589fi 12590 12591 12592fi 12593if test -z "$ac_cv_prog_OBJDUMP"; then 12594 ac_ct_OBJDUMP=$OBJDUMP 12595 # Extract the first word of "objdump", so it can be a program name with args. 12596set dummy objdump; ac_word=$2 12597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12598$as_echo_n "checking for $ac_word... " >&6; } 12599if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12600 $as_echo_n "(cached) " >&6 12601else 12602 if test -n "$ac_ct_OBJDUMP"; then 12603 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12604else 12605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12606for as_dir in $PATH 12607do 12608 IFS=$as_save_IFS 12609 test -z "$as_dir" && as_dir=. 12610 for ac_exec_ext in '' $ac_executable_extensions; do 12611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12612 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12614 break 2 12615 fi 12616done 12617 done 12618IFS=$as_save_IFS 12619 12620fi 12621fi 12622ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12623if test -n "$ac_ct_OBJDUMP"; then 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12625$as_echo "$ac_ct_OBJDUMP" >&6; } 12626else 12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12628$as_echo "no" >&6; } 12629fi 12630 12631 if test "x$ac_ct_OBJDUMP" = x; then 12632 OBJDUMP="false" 12633 else 12634 case $cross_compiling:$ac_tool_warned in 12635yes:) 12636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12638ac_tool_warned=yes ;; 12639esac 12640 OBJDUMP=$ac_ct_OBJDUMP 12641 fi 12642else 12643 OBJDUMP="$ac_cv_prog_OBJDUMP" 12644fi 12645 12646 ;; 12647esac 12648 12649test -z "$AS" && AS=as 12650 12651 12652 12653 12654 12655test -z "$DLLTOOL" && DLLTOOL=dlltool 12656 12657 12658test -z "$OBJDUMP" && OBJDUMP=objdump 12659 12660 12661 12662 12663for ac_prog in flex lex 12664do 12665 # Extract the first word of "$ac_prog", so it can be a program name with args. 12666set dummy $ac_prog; ac_word=$2 12667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12668$as_echo_n "checking for $ac_word... " >&6; } 12669if ${ac_cv_prog_LEX+:} false; then : 12670 $as_echo_n "(cached) " >&6 12671else 12672 if test -n "$LEX"; then 12673 ac_cv_prog_LEX="$LEX" # Let the user override the test. 12674else 12675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12676for as_dir in $PATH 12677do 12678 IFS=$as_save_IFS 12679 test -z "$as_dir" && as_dir=. 12680 for ac_exec_ext in '' $ac_executable_extensions; do 12681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12682 ac_cv_prog_LEX="$ac_prog" 12683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12684 break 2 12685 fi 12686done 12687 done 12688IFS=$as_save_IFS 12689 12690fi 12691fi 12692LEX=$ac_cv_prog_LEX 12693if test -n "$LEX"; then 12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 12695$as_echo "$LEX" >&6; } 12696else 12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12698$as_echo "no" >&6; } 12699fi 12700 12701 12702 test -n "$LEX" && break 12703done 12704test -n "$LEX" || LEX=":" 12705 12706if test "x$LEX" != "x:"; then 12707 cat >conftest.l <<_ACEOF 12708%% 12709a { ECHO; } 12710b { REJECT; } 12711c { yymore (); } 12712d { yyless (1); } 12713e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 12714 yyless ((input () != 0)); } 12715f { unput (yytext[0]); } 12716. { BEGIN INITIAL; } 12717%% 12718#ifdef YYTEXT_POINTER 12719extern char *yytext; 12720#endif 12721int 12722main (void) 12723{ 12724 return ! yylex () + ! yywrap (); 12725} 12726_ACEOF 12727{ { ac_try="$LEX conftest.l" 12728case "(($ac_try" in 12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12730 *) ac_try_echo=$ac_try;; 12731esac 12732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12733$as_echo "$ac_try_echo"; } >&5 12734 (eval "$LEX conftest.l") 2>&5 12735 ac_status=$? 12736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12737 test $ac_status = 0; } 12738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 12739$as_echo_n "checking lex output file root... " >&6; } 12740if ${ac_cv_prog_lex_root+:} false; then : 12741 $as_echo_n "(cached) " >&6 12742else 12743 12744if test -f lex.yy.c; then 12745 ac_cv_prog_lex_root=lex.yy 12746elif test -f lexyy.c; then 12747 ac_cv_prog_lex_root=lexyy 12748else 12749 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 12750fi 12751fi 12752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 12753$as_echo "$ac_cv_prog_lex_root" >&6; } 12754LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 12755 12756if test -z "${LEXLIB+set}"; then 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 12758$as_echo_n "checking lex library... " >&6; } 12759if ${ac_cv_lib_lex+:} false; then : 12760 $as_echo_n "(cached) " >&6 12761else 12762 12763 ac_save_LIBS=$LIBS 12764 ac_cv_lib_lex='none needed' 12765 for ac_lib in '' -lfl -ll; do 12766 LIBS="$ac_lib $ac_save_LIBS" 12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12768/* end confdefs.h. */ 12769`cat $LEX_OUTPUT_ROOT.c` 12770_ACEOF 12771if ac_fn_c_try_link "$LINENO"; then : 12772 ac_cv_lib_lex=$ac_lib 12773fi 12774rm -f core conftest.err conftest.$ac_objext \ 12775 conftest$ac_exeext conftest.$ac_ext 12776 test "$ac_cv_lib_lex" != 'none needed' && break 12777 done 12778 LIBS=$ac_save_LIBS 12779 12780fi 12781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 12782$as_echo "$ac_cv_lib_lex" >&6; } 12783 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 12784fi 12785 12786 12787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 12788$as_echo_n "checking whether yytext is a pointer... " >&6; } 12789if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 12790 $as_echo_n "(cached) " >&6 12791else 12792 # POSIX says lex can declare yytext either as a pointer or an array; the 12793# default is implementation-dependent. Figure out which it is, since 12794# not all implementations provide the %pointer and %array declarations. 12795ac_cv_prog_lex_yytext_pointer=no 12796ac_save_LIBS=$LIBS 12797LIBS="$LEXLIB $ac_save_LIBS" 12798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12799/* end confdefs.h. */ 12800 12801 #define YYTEXT_POINTER 1 12802`cat $LEX_OUTPUT_ROOT.c` 12803_ACEOF 12804if ac_fn_c_try_link "$LINENO"; then : 12805 ac_cv_prog_lex_yytext_pointer=yes 12806fi 12807rm -f core conftest.err conftest.$ac_objext \ 12808 conftest$ac_exeext conftest.$ac_ext 12809LIBS=$ac_save_LIBS 12810 12811fi 12812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 12813$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 12814if test $ac_cv_prog_lex_yytext_pointer = yes; then 12815 12816$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 12817 12818fi 12819rm -f conftest.l $LEX_OUTPUT_ROOT.c 12820 12821fi 12822if test "$LEX" = :; then 12823 LEX=${am_missing_run}flex 12824fi 12825for ac_prog in 'bison -y' byacc 12826do 12827 # Extract the first word of "$ac_prog", so it can be a program name with args. 12828set dummy $ac_prog; ac_word=$2 12829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12830$as_echo_n "checking for $ac_word... " >&6; } 12831if ${ac_cv_prog_YACC+:} false; then : 12832 $as_echo_n "(cached) " >&6 12833else 12834 if test -n "$YACC"; then 12835 ac_cv_prog_YACC="$YACC" # Let the user override the test. 12836else 12837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12838for as_dir in $PATH 12839do 12840 IFS=$as_save_IFS 12841 test -z "$as_dir" && as_dir=. 12842 for ac_exec_ext in '' $ac_executable_extensions; do 12843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12844 ac_cv_prog_YACC="$ac_prog" 12845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12846 break 2 12847 fi 12848done 12849 done 12850IFS=$as_save_IFS 12851 12852fi 12853fi 12854YACC=$ac_cv_prog_YACC 12855if test -n "$YACC"; then 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 12857$as_echo "$YACC" >&6; } 12858else 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12860$as_echo "no" >&6; } 12861fi 12862 12863 12864 test -n "$YACC" && break 12865done 12866test -n "$YACC" || YACC="yacc" 12867 12868 12869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 12870$as_echo_n "checking return type of signal handlers... " >&6; } 12871if ${ac_cv_type_signal+:} false; then : 12872 $as_echo_n "(cached) " >&6 12873else 12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12875/* end confdefs.h. */ 12876#include <sys/types.h> 12877#include <signal.h> 12878 12879int 12880main () 12881{ 12882return *(signal (0, 0)) (0) == 1; 12883 ; 12884 return 0; 12885} 12886_ACEOF 12887if ac_fn_c_try_compile "$LINENO"; then : 12888 ac_cv_type_signal=int 12889else 12890 ac_cv_type_signal=void 12891fi 12892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12893fi 12894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 12895$as_echo "$ac_cv_type_signal" >&6; } 12896 12897cat >>confdefs.h <<_ACEOF 12898#define RETSIGTYPE $ac_cv_type_signal 12899_ACEOF 12900 12901 12902 12903for ac_header in stdarg.h sys/types.h errno.h libgen.h malloc.h 12904do : 12905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12906ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12907if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12908 cat >>confdefs.h <<_ACEOF 12909#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12910_ACEOF 12911 12912fi 12913 12914done 12915 12916for ac_header in stdlib.h mntent.h linux/cdrom.h inttypes.h 12917do : 12918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12919ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12920if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12921 cat >>confdefs.h <<_ACEOF 12922#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12923_ACEOF 12924 12925fi 12926 12927done 12928 12929for ac_header in sys/select.h limits.h sys/param.h 12930do : 12931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12932ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12933if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12934 cat >>confdefs.h <<_ACEOF 12935#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12936_ACEOF 12937 12938fi 12939 12940done 12941 12942for ac_header in sys/mount.h 12943do : 12944 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" 12945if test "x$ac_cv_header_sys_mount_h" = xyes; then : 12946 cat >>confdefs.h <<_ACEOF 12947#define HAVE_SYS_MOUNT_H 1 12948_ACEOF 12949 12950fi 12951 12952done 12953 12954 12955# Check whether --enable-largefile was given. 12956if test "${enable_largefile+set}" = set; then : 12957 enableval=$enable_largefile; 12958fi 12959 12960if test "$enable_largefile" != no; then 12961 12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12963$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12964if ${ac_cv_sys_largefile_CC+:} false; then : 12965 $as_echo_n "(cached) " >&6 12966else 12967 ac_cv_sys_largefile_CC=no 12968 if test "$GCC" != yes; then 12969 ac_save_CC=$CC 12970 while :; do 12971 # IRIX 6.2 and later do not support large files by default, 12972 # so use the C compiler's -n32 option if that helps. 12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12974/* end confdefs.h. */ 12975#include <sys/types.h> 12976 /* Check that off_t can represent 2**63 - 1 correctly. 12977 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12978 since some C++ compilers masquerading as C compilers 12979 incorrectly reject 9223372036854775807. */ 12980#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12981 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12982 && LARGE_OFF_T % 2147483647 == 1) 12983 ? 1 : -1]; 12984int 12985main () 12986{ 12987 12988 ; 12989 return 0; 12990} 12991_ACEOF 12992 if ac_fn_c_try_compile "$LINENO"; then : 12993 break 12994fi 12995rm -f core conftest.err conftest.$ac_objext 12996 CC="$CC -n32" 12997 if ac_fn_c_try_compile "$LINENO"; then : 12998 ac_cv_sys_largefile_CC=' -n32'; break 12999fi 13000rm -f core conftest.err conftest.$ac_objext 13001 break 13002 done 13003 CC=$ac_save_CC 13004 rm -f conftest.$ac_ext 13005 fi 13006fi 13007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13008$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13009 if test "$ac_cv_sys_largefile_CC" != no; then 13010 CC=$CC$ac_cv_sys_largefile_CC 13011 fi 13012 13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13014$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13015if ${ac_cv_sys_file_offset_bits+:} false; then : 13016 $as_echo_n "(cached) " >&6 13017else 13018 while :; do 13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13020/* end confdefs.h. */ 13021#include <sys/types.h> 13022 /* Check that off_t can represent 2**63 - 1 correctly. 13023 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13024 since some C++ compilers masquerading as C compilers 13025 incorrectly reject 9223372036854775807. */ 13026#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13028 && LARGE_OFF_T % 2147483647 == 1) 13029 ? 1 : -1]; 13030int 13031main () 13032{ 13033 13034 ; 13035 return 0; 13036} 13037_ACEOF 13038if ac_fn_c_try_compile "$LINENO"; then : 13039 ac_cv_sys_file_offset_bits=no; break 13040fi 13041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13043/* end confdefs.h. */ 13044#define _FILE_OFFSET_BITS 64 13045#include <sys/types.h> 13046 /* Check that off_t can represent 2**63 - 1 correctly. 13047 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13048 since some C++ compilers masquerading as C compilers 13049 incorrectly reject 9223372036854775807. */ 13050#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13051 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13052 && LARGE_OFF_T % 2147483647 == 1) 13053 ? 1 : -1]; 13054int 13055main () 13056{ 13057 13058 ; 13059 return 0; 13060} 13061_ACEOF 13062if ac_fn_c_try_compile "$LINENO"; then : 13063 ac_cv_sys_file_offset_bits=64; break 13064fi 13065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13066 ac_cv_sys_file_offset_bits=unknown 13067 break 13068done 13069fi 13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13071$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13072case $ac_cv_sys_file_offset_bits in #( 13073 no | unknown) ;; 13074 *) 13075cat >>confdefs.h <<_ACEOF 13076#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13077_ACEOF 13078;; 13079esac 13080rm -rf conftest* 13081 if test $ac_cv_sys_file_offset_bits = unknown; then 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13083$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13084if ${ac_cv_sys_large_files+:} false; then : 13085 $as_echo_n "(cached) " >&6 13086else 13087 while :; do 13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13089/* end confdefs.h. */ 13090#include <sys/types.h> 13091 /* Check that off_t can represent 2**63 - 1 correctly. 13092 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13093 since some C++ compilers masquerading as C compilers 13094 incorrectly reject 9223372036854775807. */ 13095#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13097 && LARGE_OFF_T % 2147483647 == 1) 13098 ? 1 : -1]; 13099int 13100main () 13101{ 13102 13103 ; 13104 return 0; 13105} 13106_ACEOF 13107if ac_fn_c_try_compile "$LINENO"; then : 13108 ac_cv_sys_large_files=no; break 13109fi 13110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13112/* end confdefs.h. */ 13113#define _LARGE_FILES 1 13114#include <sys/types.h> 13115 /* Check that off_t can represent 2**63 - 1 correctly. 13116 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13117 since some C++ compilers masquerading as C compilers 13118 incorrectly reject 9223372036854775807. */ 13119#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13121 && LARGE_OFF_T % 2147483647 == 1) 13122 ? 1 : -1]; 13123int 13124main () 13125{ 13126 13127 ; 13128 return 0; 13129} 13130_ACEOF 13131if ac_fn_c_try_compile "$LINENO"; then : 13132 ac_cv_sys_large_files=1; break 13133fi 13134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13135 ac_cv_sys_large_files=unknown 13136 break 13137done 13138fi 13139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13140$as_echo "$ac_cv_sys_large_files" >&6; } 13141case $ac_cv_sys_large_files in #( 13142 no | unknown) ;; 13143 *) 13144cat >>confdefs.h <<_ACEOF 13145#define _LARGE_FILES $ac_cv_sys_large_files 13146_ACEOF 13147;; 13148esac 13149rm -rf conftest* 13150 fi 13151 13152 13153fi 13154 13155 13156 13157 13158 13159# Check whether --with-libgcrypt-prefix was given. 13160if test "${with_libgcrypt_prefix+set}" = set; then : 13161 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" 13162else 13163 libgcrypt_config_prefix="" 13164fi 13165 13166 if test x$libgcrypt_config_prefix != x ; then 13167 if test x${LIBGCRYPT_CONFIG+set} != xset ; then 13168 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config 13169 fi 13170 fi 13171 13172 if test -n "$ac_tool_prefix"; then 13173 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args. 13174set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2 13175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13176$as_echo_n "checking for $ac_word... " >&6; } 13177if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then : 13178 $as_echo_n "(cached) " >&6 13179else 13180 case $LIBGCRYPT_CONFIG in 13181 [\\/]* | ?:[\\/]*) 13182 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. 13183 ;; 13184 *) 13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13186for as_dir in $PATH 13187do 13188 IFS=$as_save_IFS 13189 test -z "$as_dir" && as_dir=. 13190 for ac_exec_ext in '' $ac_executable_extensions; do 13191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13192 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13194 break 2 13195 fi 13196done 13197 done 13198IFS=$as_save_IFS 13199 13200 ;; 13201esac 13202fi 13203LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG 13204if test -n "$LIBGCRYPT_CONFIG"; then 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 13206$as_echo "$LIBGCRYPT_CONFIG" >&6; } 13207else 13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13209$as_echo "no" >&6; } 13210fi 13211 13212 13213fi 13214if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then 13215 ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG 13216 # Extract the first word of "libgcrypt-config", so it can be a program name with args. 13217set dummy libgcrypt-config; ac_word=$2 13218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13219$as_echo_n "checking for $ac_word... " >&6; } 13220if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then : 13221 $as_echo_n "(cached) " >&6 13222else 13223 case $ac_pt_LIBGCRYPT_CONFIG in 13224 [\\/]* | ?:[\\/]*) 13225 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path. 13226 ;; 13227 *) 13228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13229for as_dir in $PATH 13230do 13231 IFS=$as_save_IFS 13232 test -z "$as_dir" && as_dir=. 13233 for ac_exec_ext in '' $ac_executable_extensions; do 13234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13235 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13237 break 2 13238 fi 13239done 13240 done 13241IFS=$as_save_IFS 13242 13243 ;; 13244esac 13245fi 13246ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG 13247if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5 13249$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; } 13250else 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13252$as_echo "no" >&6; } 13253fi 13254 13255 if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then 13256 LIBGCRYPT_CONFIG="no" 13257 else 13258 case $cross_compiling:$ac_tool_warned in 13259yes:) 13260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13262ac_tool_warned=yes ;; 13263esac 13264 LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG 13265 fi 13266else 13267 LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG" 13268fi 13269 13270 tmp=1.6.0 13271 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then 13272 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` 13273 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` 13274 else 13275 req_libgcrypt_api=0 13276 min_libgcrypt_version="$tmp" 13277 fi 13278 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5 13280$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; } 13281 ok=no 13282 if test "$LIBGCRYPT_CONFIG" != "no" ; then 13283 req_major=`echo $min_libgcrypt_version | \ 13284 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 13285 req_minor=`echo $min_libgcrypt_version | \ 13286 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 13287 req_micro=`echo $min_libgcrypt_version | \ 13288 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 13289 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` 13290 major=`echo $libgcrypt_config_version | \ 13291 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` 13292 minor=`echo $libgcrypt_config_version | \ 13293 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` 13294 micro=`echo $libgcrypt_config_version | \ 13295 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` 13296 if test "$major" -gt "$req_major"; then 13297 ok=yes 13298 else 13299 if test "$major" -eq "$req_major"; then 13300 if test "$minor" -gt "$req_minor"; then 13301 ok=yes 13302 else 13303 if test "$minor" -eq "$req_minor"; then 13304 if test "$micro" -ge "$req_micro"; then 13305 ok=yes 13306 fi 13307 fi 13308 fi 13309 fi 13310 fi 13311 fi 13312 if test $ok = yes; then 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5 13314$as_echo "yes ($libgcrypt_config_version)" >&6; } 13315 else 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13317$as_echo "no" >&6; } 13318 fi 13319 if test $ok = yes; then 13320 # If we have a recent libgcrypt, we should also check that the 13321 # API is compatible 13322 if test "$req_libgcrypt_api" -gt 0 ; then 13323 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` 13324 if test "$tmp" -gt 0 ; then 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5 13326$as_echo_n "checking LIBGCRYPT API version... " >&6; } 13327 if test "$req_libgcrypt_api" -eq "$tmp" ; then 13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 13329$as_echo "okay" >&6; } 13330 else 13331 ok=no 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5 13333$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; } 13334 fi 13335 fi 13336 fi 13337 fi 13338 if test $ok = yes; then 13339 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` 13340 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` 13341 have_gcrypt=yes 13342 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none` 13343 if test x"$libgcrypt_config_host" != xnone ; then 13344 if test x"$libgcrypt_config_host" != x"$host" ; then 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13346*** 13347*** The config script $LIBGCRYPT_CONFIG was 13348*** built for $libgcrypt_config_host and thus may not match the 13349*** used host $host. 13350*** You may want to use the configure option --with-libgcrypt-prefix 13351*** to specify a matching config script. 13352***" >&5 13353$as_echo "$as_me: WARNING: 13354*** 13355*** The config script $LIBGCRYPT_CONFIG was 13356*** built for $libgcrypt_config_host and thus may not match the 13357*** used host $host. 13358*** You may want to use the configure option --with-libgcrypt-prefix 13359*** to specify a matching config script. 13360***" >&2;} 13361 fi 13362 fi 13363 else 13364 LIBGCRYPT_CFLAGS="" 13365 LIBGCRYPT_LIBS="" 13366 : 13367 fi 13368 13369 13370 13371if test "x$have_gcrypt" != xyes; then : 13372 13373 13374 13375# Check whether --with-libgcrypt-prefix was given. 13376if test "${with_libgcrypt_prefix+set}" = set; then : 13377 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" 13378else 13379 libgcrypt_config_prefix="" 13380fi 13381 13382 if test x$libgcrypt_config_prefix != x ; then 13383 if test x${LIBGCRYPT_CONFIG+set} != xset ; then 13384 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config 13385 fi 13386 fi 13387 13388 if test -n "$ac_tool_prefix"; then 13389 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args. 13390set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2 13391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13392$as_echo_n "checking for $ac_word... " >&6; } 13393if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then : 13394 $as_echo_n "(cached) " >&6 13395else 13396 case $LIBGCRYPT_CONFIG in 13397 [\\/]* | ?:[\\/]*) 13398 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. 13399 ;; 13400 *) 13401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13402for as_dir in $PATH 13403do 13404 IFS=$as_save_IFS 13405 test -z "$as_dir" && as_dir=. 13406 for ac_exec_ext in '' $ac_executable_extensions; do 13407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13408 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13410 break 2 13411 fi 13412done 13413 done 13414IFS=$as_save_IFS 13415 13416 ;; 13417esac 13418fi 13419LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG 13420if test -n "$LIBGCRYPT_CONFIG"; then 13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 13422$as_echo "$LIBGCRYPT_CONFIG" >&6; } 13423else 13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13425$as_echo "no" >&6; } 13426fi 13427 13428 13429fi 13430if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then 13431 ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG 13432 # Extract the first word of "libgcrypt-config", so it can be a program name with args. 13433set dummy libgcrypt-config; ac_word=$2 13434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13435$as_echo_n "checking for $ac_word... " >&6; } 13436if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then : 13437 $as_echo_n "(cached) " >&6 13438else 13439 case $ac_pt_LIBGCRYPT_CONFIG in 13440 [\\/]* | ?:[\\/]*) 13441 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path. 13442 ;; 13443 *) 13444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13445for as_dir in $PATH 13446do 13447 IFS=$as_save_IFS 13448 test -z "$as_dir" && as_dir=. 13449 for ac_exec_ext in '' $ac_executable_extensions; do 13450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13451 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13453 break 2 13454 fi 13455done 13456 done 13457IFS=$as_save_IFS 13458 13459 ;; 13460esac 13461fi 13462ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG 13463if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then 13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5 13465$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; } 13466else 13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13468$as_echo "no" >&6; } 13469fi 13470 13471 if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then 13472 LIBGCRYPT_CONFIG="no" 13473 else 13474 case $cross_compiling:$ac_tool_warned in 13475yes:) 13476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13478ac_tool_warned=yes ;; 13479esac 13480 LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG 13481 fi 13482else 13483 LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG" 13484fi 13485 13486 tmp=1.1.94 13487 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then 13488 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` 13489 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` 13490 else 13491 req_libgcrypt_api=0 13492 min_libgcrypt_version="$tmp" 13493 fi 13494 13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5 13496$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; } 13497 ok=no 13498 if test "$LIBGCRYPT_CONFIG" != "no" ; then 13499 req_major=`echo $min_libgcrypt_version | \ 13500 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 13501 req_minor=`echo $min_libgcrypt_version | \ 13502 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 13503 req_micro=`echo $min_libgcrypt_version | \ 13504 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 13505 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` 13506 major=`echo $libgcrypt_config_version | \ 13507 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` 13508 minor=`echo $libgcrypt_config_version | \ 13509 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` 13510 micro=`echo $libgcrypt_config_version | \ 13511 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` 13512 if test "$major" -gt "$req_major"; then 13513 ok=yes 13514 else 13515 if test "$major" -eq "$req_major"; then 13516 if test "$minor" -gt "$req_minor"; then 13517 ok=yes 13518 else 13519 if test "$minor" -eq "$req_minor"; then 13520 if test "$micro" -ge "$req_micro"; then 13521 ok=yes 13522 fi 13523 fi 13524 fi 13525 fi 13526 fi 13527 fi 13528 if test $ok = yes; then 13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5 13530$as_echo "yes ($libgcrypt_config_version)" >&6; } 13531 else 13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13533$as_echo "no" >&6; } 13534 fi 13535 if test $ok = yes; then 13536 # If we have a recent libgcrypt, we should also check that the 13537 # API is compatible 13538 if test "$req_libgcrypt_api" -gt 0 ; then 13539 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` 13540 if test "$tmp" -gt 0 ; then 13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5 13542$as_echo_n "checking LIBGCRYPT API version... " >&6; } 13543 if test "$req_libgcrypt_api" -eq "$tmp" ; then 13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 13545$as_echo "okay" >&6; } 13546 else 13547 ok=no 13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5 13549$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; } 13550 fi 13551 fi 13552 fi 13553 fi 13554 if test $ok = yes; then 13555 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` 13556 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` 13557 : 13558 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none` 13559 if test x"$libgcrypt_config_host" != xnone ; then 13560 if test x"$libgcrypt_config_host" != x"$host" ; then 13561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13562*** 13563*** The config script $LIBGCRYPT_CONFIG was 13564*** built for $libgcrypt_config_host and thus may not match the 13565*** used host $host. 13566*** You may want to use the configure option --with-libgcrypt-prefix 13567*** to specify a matching config script. 13568***" >&5 13569$as_echo "$as_me: WARNING: 13570*** 13571*** The config script $LIBGCRYPT_CONFIG was 13572*** built for $libgcrypt_config_host and thus may not match the 13573*** used host $host. 13574*** You may want to use the configure option --with-libgcrypt-prefix 13575*** to specify a matching config script. 13576***" >&2;} 13577 fi 13578 fi 13579 else 13580 LIBGCRYPT_CFLAGS="" 13581 LIBGCRYPT_LIBS="" 13582 as_fn_error $? "libgcrypt not found on system" "$LINENO" 5 13583 fi 13584 13585 13586 13587 if test "${SYS}" != "mingw32"; then : 13588 13589 for ac_header in pthread.h 13590do : 13591 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 13592if test "x$ac_cv_header_pthread_h" = xyes; then : 13593 cat >>confdefs.h <<_ACEOF 13594#define HAVE_PTHREAD_H 1 13595_ACEOF 13596 13597else 13598 as_fn_error $? "pthread required" "$LINENO" 5 13599fi 13600 13601done 13602 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 13604$as_echo_n "checking for library containing pthread_create... " >&6; } 13605if ${ac_cv_search_pthread_create+:} false; then : 13606 $as_echo_n "(cached) " >&6 13607else 13608 ac_func_search_save_LIBS=$LIBS 13609cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13610/* end confdefs.h. */ 13611 13612/* Override any GCC internal prototype to avoid an error. 13613 Use char because int might match the return type of a GCC 13614 builtin and then its argument prototype would still apply. */ 13615#ifdef __cplusplus 13616extern "C" 13617#endif 13618char pthread_create (); 13619int 13620main () 13621{ 13622return pthread_create (); 13623 ; 13624 return 0; 13625} 13626_ACEOF 13627for ac_lib in '' pthread; do 13628 if test -z "$ac_lib"; then 13629 ac_res="none required" 13630 else 13631 ac_res=-l$ac_lib 13632 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13633 fi 13634 if ac_fn_c_try_link "$LINENO"; then : 13635 ac_cv_search_pthread_create=$ac_res 13636fi 13637rm -f core conftest.err conftest.$ac_objext \ 13638 conftest$ac_exeext 13639 if ${ac_cv_search_pthread_create+:} false; then : 13640 break 13641fi 13642done 13643if ${ac_cv_search_pthread_create+:} false; then : 13644 13645else 13646 ac_cv_search_pthread_create=no 13647fi 13648rm conftest.$ac_ext 13649LIBS=$ac_func_search_save_LIBS 13650fi 13651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 13652$as_echo "$ac_cv_search_pthread_create" >&6; } 13653ac_res=$ac_cv_search_pthread_create 13654if test "$ac_res" != no; then : 13655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13656 13657else 13658 as_fn_error $? "pthread required" "$LINENO" 5 13659fi 13660 13661 13662fi 13663 13664fi 13665 13666ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 13667if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 13668 ac_have_decl=1 13669else 13670 ac_have_decl=0 13671fi 13672 13673cat >>confdefs.h <<_ACEOF 13674#define HAVE_DECL_STRERROR_R $ac_have_decl 13675_ACEOF 13676 13677for ac_func in strerror_r 13678do : 13679 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 13680if test "x$ac_cv_func_strerror_r" = xyes; then : 13681 cat >>confdefs.h <<_ACEOF 13682#define HAVE_STRERROR_R 1 13683_ACEOF 13684 13685fi 13686done 13687 13688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 13689$as_echo_n "checking whether strerror_r returns char *... " >&6; } 13690if ${ac_cv_func_strerror_r_char_p+:} false; then : 13691 $as_echo_n "(cached) " >&6 13692else 13693 13694 ac_cv_func_strerror_r_char_p=no 13695 if test $ac_cv_have_decl_strerror_r = yes; then 13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13697/* end confdefs.h. */ 13698$ac_includes_default 13699int 13700main () 13701{ 13702 13703 char buf[100]; 13704 char x = *strerror_r (0, buf, sizeof buf); 13705 char *p = strerror_r (0, buf, sizeof buf); 13706 return !p || x; 13707 13708 ; 13709 return 0; 13710} 13711_ACEOF 13712if ac_fn_c_try_compile "$LINENO"; then : 13713 ac_cv_func_strerror_r_char_p=yes 13714fi 13715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13716 else 13717 # strerror_r is not declared. Choose between 13718 # systems that have relatively inaccessible declarations for the 13719 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 13720 # former has a strerror_r that returns char*, while the latter 13721 # has a strerror_r that returns `int'. 13722 # This test should segfault on the DEC system. 13723 if test "$cross_compiling" = yes; then : 13724 : 13725else 13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13727/* end confdefs.h. */ 13728$ac_includes_default 13729 extern char *strerror_r (); 13730int 13731main () 13732{ 13733char buf[100]; 13734 char x = *strerror_r (0, buf, sizeof buf); 13735 return ! isalpha (x); 13736 ; 13737 return 0; 13738} 13739_ACEOF 13740if ac_fn_c_try_run "$LINENO"; then : 13741 ac_cv_func_strerror_r_char_p=yes 13742fi 13743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13744 conftest.$ac_objext conftest.beam conftest.$ac_ext 13745fi 13746 13747 fi 13748 13749fi 13750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 13751$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 13752if test $ac_cv_func_strerror_r_char_p = yes; then 13753 13754$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 13755 13756fi 13757 13758 13759 gpg_error_config_prefix="" 13760 13761# Check whether --with-libgpg-error-prefix was given. 13762if test "${with_libgpg_error_prefix+set}" = set; then : 13763 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval" 13764fi 13765 13766 13767 13768# Check whether --with-gpg-error-prefix was given. 13769if test "${with_gpg_error_prefix+set}" = set; then : 13770 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval" 13771fi 13772 13773 13774 if test x$gpg_error_config_prefix != x ; then 13775 if test x${GPG_ERROR_CONFIG+set} != xset ; then 13776 GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config 13777 fi 13778 fi 13779 13780 if test -n "$ac_tool_prefix"; then 13781 # Extract the first word of "${ac_tool_prefix}gpg-error-config", so it can be a program name with args. 13782set dummy ${ac_tool_prefix}gpg-error-config; ac_word=$2 13783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13784$as_echo_n "checking for $ac_word... " >&6; } 13785if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then : 13786 $as_echo_n "(cached) " >&6 13787else 13788 case $GPG_ERROR_CONFIG in 13789 [\\/]* | ?:[\\/]*) 13790 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path. 13791 ;; 13792 *) 13793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13794for as_dir in $PATH 13795do 13796 IFS=$as_save_IFS 13797 test -z "$as_dir" && as_dir=. 13798 for ac_exec_ext in '' $ac_executable_extensions; do 13799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13800 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13802 break 2 13803 fi 13804done 13805 done 13806IFS=$as_save_IFS 13807 13808 ;; 13809esac 13810fi 13811GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG 13812if test -n "$GPG_ERROR_CONFIG"; then 13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5 13814$as_echo "$GPG_ERROR_CONFIG" >&6; } 13815else 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13817$as_echo "no" >&6; } 13818fi 13819 13820 13821fi 13822if test -z "$ac_cv_path_GPG_ERROR_CONFIG"; then 13823 ac_pt_GPG_ERROR_CONFIG=$GPG_ERROR_CONFIG 13824 # Extract the first word of "gpg-error-config", so it can be a program name with args. 13825set dummy gpg-error-config; ac_word=$2 13826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13827$as_echo_n "checking for $ac_word... " >&6; } 13828if ${ac_cv_path_ac_pt_GPG_ERROR_CONFIG+:} false; then : 13829 $as_echo_n "(cached) " >&6 13830else 13831 case $ac_pt_GPG_ERROR_CONFIG in 13832 [\\/]* | ?:[\\/]*) 13833 ac_cv_path_ac_pt_GPG_ERROR_CONFIG="$ac_pt_GPG_ERROR_CONFIG" # Let the user override the test with a path. 13834 ;; 13835 *) 13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13837for as_dir in $PATH 13838do 13839 IFS=$as_save_IFS 13840 test -z "$as_dir" && as_dir=. 13841 for ac_exec_ext in '' $ac_executable_extensions; do 13842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13843 ac_cv_path_ac_pt_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13845 break 2 13846 fi 13847done 13848 done 13849IFS=$as_save_IFS 13850 13851 ;; 13852esac 13853fi 13854ac_pt_GPG_ERROR_CONFIG=$ac_cv_path_ac_pt_GPG_ERROR_CONFIG 13855if test -n "$ac_pt_GPG_ERROR_CONFIG"; then 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GPG_ERROR_CONFIG" >&5 13857$as_echo "$ac_pt_GPG_ERROR_CONFIG" >&6; } 13858else 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13860$as_echo "no" >&6; } 13861fi 13862 13863 if test "x$ac_pt_GPG_ERROR_CONFIG" = x; then 13864 GPG_ERROR_CONFIG="no" 13865 else 13866 case $cross_compiling:$ac_tool_warned in 13867yes:) 13868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13870ac_tool_warned=yes ;; 13871esac 13872 GPG_ERROR_CONFIG=$ac_pt_GPG_ERROR_CONFIG 13873 fi 13874else 13875 GPG_ERROR_CONFIG="$ac_cv_path_GPG_ERROR_CONFIG" 13876fi 13877 13878 min_gpg_error_version=0.5 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5 13880$as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; } 13881 ok=no 13882 if test "$GPG_ERROR_CONFIG" != "no" \ 13883 && test -f "$GPG_ERROR_CONFIG" ; then 13884 req_major=`echo $min_gpg_error_version | \ 13885 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'` 13886 req_minor=`echo $min_gpg_error_version | \ 13887 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'` 13888 gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version` 13889 major=`echo $gpg_error_config_version | \ 13890 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 13891 minor=`echo $gpg_error_config_version | \ 13892 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 13893 if test "$major" -gt "$req_major"; then 13894 ok=yes 13895 else 13896 if test "$major" -eq "$req_major"; then 13897 if test "$minor" -ge "$req_minor"; then 13898 ok=yes 13899 fi 13900 fi 13901 fi 13902 fi 13903 if test $ok = yes; then 13904 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags` 13905 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs` 13906 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null` 13907 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null` 13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5 13909$as_echo "yes ($gpg_error_config_version)" >&6; } 13910 13911$as_echo "#define HAVE_LIBGPG_ERROR 1" >>confdefs.h 13912 13913 gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none` 13914 if test x"$gpg_error_config_host" != xnone ; then 13915 if test x"$gpg_error_config_host" != x"$host" ; then 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13917*** 13918*** The config script $GPG_ERROR_CONFIG was 13919*** built for $gpg_error_config_host and thus may not match the 13920*** used host $host. 13921*** You may want to use the configure option --with-gpg-error-prefix 13922*** to specify a matching config script. 13923***" >&5 13924$as_echo "$as_me: WARNING: 13925*** 13926*** The config script $GPG_ERROR_CONFIG was 13927*** built for $gpg_error_config_host and thus may not match the 13928*** used host $host. 13929*** You may want to use the configure option --with-gpg-error-prefix 13930*** to specify a matching config script. 13931***" >&2;} 13932 fi 13933 fi 13934 else 13935 GPG_ERROR_CFLAGS="" 13936 GPG_ERROR_LIBS="" 13937 GPG_ERROR_MT_CFLAGS="" 13938 GPG_ERROR_MT_LIBS="" 13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13940$as_echo "no" >&6; } 13941 : 13942 fi 13943 13944 13945 13946 13947 13948 13949 13950 for flag in -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wshadow; do 13951 13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 13953$as_echo_n "checking if $CC supports $flag flag... " >&6; } 13954if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13955 $as_echo_n "(cached) " >&6 13956else 13957 13958 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13959 $as_echo_n "(cached) " >&6 13960else 13961 ac_save_CFLAGS="$CFLAGS" 13962 CFLAGS="$CFLAGS $flag" 13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13964/* end confdefs.h. */ 13965int main() { return 0; } 13966_ACEOF 13967if ac_fn_c_try_link "$LINENO"; then : 13968 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 13969else 13970 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 13971fi 13972rm -f core conftest.err conftest.$ac_objext \ 13973 conftest$ac_exeext conftest.$ac_ext 13974 CFLAGS="$ac_save_CFLAGS" 13975 13976fi 13977 13978 13979 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 13980 13981fi 13982 13983fi 13984eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13986$as_echo "$ac_res" >&6; } 13987 13988 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 13989 CFLAGS="$CFLAGS $flag"; 13990fi 13991 13992 done 13993 13994 13995 13996 for flag in -Werror=implicit-function-declaration -Werror-implicit-function-declaration; do 13997 13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 13999$as_echo_n "checking if $CC supports $flag flag... " >&6; } 14000if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14001 $as_echo_n "(cached) " >&6 14002else 14003 14004 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14005 $as_echo_n "(cached) " >&6 14006else 14007 ac_save_CFLAGS="$CFLAGS" 14008 CFLAGS="$CFLAGS $flag" 14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14010/* end confdefs.h. */ 14011int main() { return 0; } 14012_ACEOF 14013if ac_fn_c_try_link "$LINENO"; then : 14014 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 14015else 14016 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 14017fi 14018rm -f core conftest.err conftest.$ac_objext \ 14019 conftest$ac_exeext conftest.$ac_ext 14020 CFLAGS="$ac_save_CFLAGS" 14021 14022fi 14023 14024 14025 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 14026 14027fi 14028 14029fi 14030eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14032$as_echo "$ac_res" >&6; } 14033 14034 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 14035 CFLAGS="$CFLAGS $flag"; break; 14036fi 14037 14038 done 14039 14040 14041 14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC way to treat warnings as errors" >&5 14043$as_echo_n "checking for $CC way to treat warnings as errors... " >&6; } 14044if ${cc_cv_werror+:} false; then : 14045 $as_echo_n "(cached) " >&6 14046else 14047 14048 if ${cc_cv_cflags__Werror+:} false; then : 14049 $as_echo_n "(cached) " >&6 14050else 14051 ac_save_CFLAGS="$CFLAGS" 14052 CFLAGS="$CFLAGS -Werror" 14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14054/* end confdefs.h. */ 14055int main() { return 0; } 14056_ACEOF 14057if ac_fn_c_try_link "$LINENO"; then : 14058 eval "cc_cv_cflags__Werror='yes'" 14059else 14060 eval "cc_cv_cflags__Werror='no'" 14061fi 14062rm -f core conftest.err conftest.$ac_objext \ 14063 conftest$ac_exeext conftest.$ac_ext 14064 CFLAGS="$ac_save_CFLAGS" 14065 14066fi 14067 14068 14069 if eval test x$cc_cv_cflags__Werror = xyes; then : 14070 cc_cv_werror=-Werror 14071else 14072 14073 if ${cc_cv_cflags__errwarn__all+:} false; then : 14074 $as_echo_n "(cached) " >&6 14075else 14076 ac_save_CFLAGS="$CFLAGS" 14077 CFLAGS="$CFLAGS -errwarn=%all" 14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14079/* end confdefs.h. */ 14080int main() { return 0; } 14081_ACEOF 14082if ac_fn_c_try_link "$LINENO"; then : 14083 eval "cc_cv_cflags__errwarn__all='yes'" 14084else 14085 eval "cc_cv_cflags__errwarn__all='no'" 14086fi 14087rm -f core conftest.err conftest.$ac_objext \ 14088 conftest$ac_exeext conftest.$ac_ext 14089 CFLAGS="$ac_save_CFLAGS" 14090 14091fi 14092 14093 14094 if eval test x$cc_cv_cflags__errwarn__all = xyes; then : 14095 cc_cv_werror=-errwarn=%all 14096fi 14097 14098fi 14099 14100 14101fi 14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_werror" >&5 14103$as_echo "$cc_cv_werror" >&6; } 14104 14105if test "x$enable_werror" = "xyes"; then : 14106 14107 CFLAGS="${CFLAGS} $cc_cv_werror" 14108 14109fi 14110 14111if test "x$enable_extra_warnings" != "xno"; then : 14112 14113 14114 for flag in -Wextra -Winline; do 14115 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 14117$as_echo_n "checking if $CC supports $flag flag... " >&6; } 14118if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14119 $as_echo_n "(cached) " >&6 14120else 14121 14122 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14123 $as_echo_n "(cached) " >&6 14124else 14125 ac_save_CFLAGS="$CFLAGS" 14126 CFLAGS="$CFLAGS $flag" 14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14128/* end confdefs.h. */ 14129int main() { return 0; } 14130_ACEOF 14131if ac_fn_c_try_link "$LINENO"; then : 14132 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 14133else 14134 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 14135fi 14136rm -f core conftest.err conftest.$ac_objext \ 14137 conftest$ac_exeext conftest.$ac_ext 14138 CFLAGS="$ac_save_CFLAGS" 14139 14140fi 14141 14142 14143 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 14144 14145fi 14146 14147fi 14148eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14150$as_echo "$ac_res" >&6; } 14151 14152 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 14153 CFLAGS="$CFLAGS $flag"; 14154fi 14155 14156 done 14157 14158 14159fi 14160 14161if test "x$enable_optimizations" != "xno"; then : 14162 14163 14164 for flag in -O3 -fomit-frame-pointer; do 14165 14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 14167$as_echo_n "checking if $CC supports $flag flag... " >&6; } 14168if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14169 $as_echo_n "(cached) " >&6 14170else 14171 14172 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 14173 $as_echo_n "(cached) " >&6 14174else 14175 ac_save_CFLAGS="$CFLAGS" 14176 CFLAGS="$CFLAGS $flag" 14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14178/* end confdefs.h. */ 14179int main() { return 0; } 14180_ACEOF 14181if ac_fn_c_try_link "$LINENO"; then : 14182 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 14183else 14184 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 14185fi 14186rm -f core conftest.err conftest.$ac_objext \ 14187 conftest$ac_exeext conftest.$ac_ext 14188 CFLAGS="$ac_save_CFLAGS" 14189 14190fi 14191 14192 14193 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 14194 14195fi 14196 14197fi 14198eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14200$as_echo "$ac_res" >&6; } 14201 14202 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 14203 CFLAGS="$CFLAGS $flag"; 14204fi 14205 14206 done 14207 14208 14209fi 14210 14211 14212AACS_VERSION_MAJOR=0 14213 14214AACS_VERSION_MINOR=11 14215 14216AACS_VERSION_MICRO=0 14217 14218 14219LT_VERSION_INFO="7:1:7" 14220 14221 14222 14223ac_config_files="$ac_config_files Makefile src/libaacs.pc src/libaacs/aacs-version.h" 14224 14225cat >confcache <<\_ACEOF 14226# This file is a shell script that caches the results of configure 14227# tests run on this system so they can be shared between configure 14228# scripts and configure runs, see configure's option --config-cache. 14229# It is not useful on other systems. If it contains results you don't 14230# want to keep, you may remove or edit it. 14231# 14232# config.status only pays attention to the cache file if you give it 14233# the --recheck option to rerun configure. 14234# 14235# `ac_cv_env_foo' variables (set or unset) will be overridden when 14236# loading this file, other *unset* `ac_cv_foo' will be assigned the 14237# following values. 14238 14239_ACEOF 14240 14241# The following way of writing the cache mishandles newlines in values, 14242# but we know of no workaround that is simple, portable, and efficient. 14243# So, we kill variables containing newlines. 14244# Ultrix sh set writes to stderr and can't be redirected directly, 14245# and sets the high bit in the cache file unless we assign to the vars. 14246( 14247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14248 eval ac_val=\$$ac_var 14249 case $ac_val in #( 14250 *${as_nl}*) 14251 case $ac_var in #( 14252 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14253$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14254 esac 14255 case $ac_var in #( 14256 _ | IFS | as_nl) ;; #( 14257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14258 *) { eval $ac_var=; unset $ac_var;} ;; 14259 esac ;; 14260 esac 14261 done 14262 14263 (set) 2>&1 | 14264 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14265 *${as_nl}ac_space=\ *) 14266 # `set' does not quote correctly, so add quotes: double-quote 14267 # substitution turns \\\\ into \\, and sed turns \\ into \. 14268 sed -n \ 14269 "s/'/'\\\\''/g; 14270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14271 ;; #( 14272 *) 14273 # `set' quotes correctly as required by POSIX, so do not add quotes. 14274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14275 ;; 14276 esac | 14277 sort 14278) | 14279 sed ' 14280 /^ac_cv_env_/b end 14281 t clear 14282 :clear 14283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14284 t end 14285 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14286 :end' >>confcache 14287if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14288 if test -w "$cache_file"; then 14289 if test "x$cache_file" != "x/dev/null"; then 14290 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14291$as_echo "$as_me: updating cache $cache_file" >&6;} 14292 if test ! -f "$cache_file" || test -h "$cache_file"; then 14293 cat confcache >"$cache_file" 14294 else 14295 case $cache_file in #( 14296 */* | ?:*) 14297 mv -f confcache "$cache_file"$$ && 14298 mv -f "$cache_file"$$ "$cache_file" ;; #( 14299 *) 14300 mv -f confcache "$cache_file" ;; 14301 esac 14302 fi 14303 fi 14304 else 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14306$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14307 fi 14308fi 14309rm -f confcache 14310 14311test "x$prefix" = xNONE && prefix=$ac_default_prefix 14312# Let make expand exec_prefix. 14313test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14314 14315DEFS=-DHAVE_CONFIG_H 14316 14317ac_libobjs= 14318ac_ltlibobjs= 14319U= 14320for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14321 # 1. Remove the extension, and $U if already installed. 14322 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14323 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14324 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14325 # will be set to the directory where LIBOBJS objects are built. 14326 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14327 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14328done 14329LIBOBJS=$ac_libobjs 14330 14331LTLIBOBJS=$ac_ltlibobjs 14332 14333 14334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14335$as_echo_n "checking that generated files are newer than configure... " >&6; } 14336 if test -n "$am_sleep_pid"; then 14337 # Hide warnings about reused PIDs. 14338 wait $am_sleep_pid 2>/dev/null 14339 fi 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14341$as_echo "done" >&6; } 14342 if test -n "$EXEEXT"; then 14343 am__EXEEXT_TRUE= 14344 am__EXEEXT_FALSE='#' 14345else 14346 am__EXEEXT_TRUE='#' 14347 am__EXEEXT_FALSE= 14348fi 14349 14350if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14351 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14352Usually this means the macro was only invoked conditionally." "$LINENO" 5 14353fi 14354if test -z "${HAVE_WIN32_TRUE}" && test -z "${HAVE_WIN32_FALSE}"; then 14355 as_fn_error $? "conditional \"HAVE_WIN32\" was never defined. 14356Usually this means the macro was only invoked conditionally." "$LINENO" 5 14357fi 14358if test -z "${HAVE_DARWIN_TRUE}" && test -z "${HAVE_DARWIN_FALSE}"; then 14359 as_fn_error $? "conditional \"HAVE_DARWIN\" was never defined. 14360Usually this means the macro was only invoked conditionally." "$LINENO" 5 14361fi 14362if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14363 as_fn_error $? "conditional \"AMDEP\" was never defined. 14364Usually this means the macro was only invoked conditionally." "$LINENO" 5 14365fi 14366if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14367 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14368Usually this means the macro was only invoked conditionally." "$LINENO" 5 14369fi 14370 14371: "${CONFIG_STATUS=./config.status}" 14372ac_write_fail=0 14373ac_clean_files_save=$ac_clean_files 14374ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14375{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14376$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14377as_write_fail=0 14378cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14379#! $SHELL 14380# Generated by $as_me. 14381# Run this file to recreate the current configuration. 14382# Compiler output produced by configure, useful for debugging 14383# configure, is in config.log if it exists. 14384 14385debug=false 14386ac_cs_recheck=false 14387ac_cs_silent=false 14388 14389SHELL=\${CONFIG_SHELL-$SHELL} 14390export SHELL 14391_ASEOF 14392cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14393## -------------------- ## 14394## M4sh Initialization. ## 14395## -------------------- ## 14396 14397# Be more Bourne compatible 14398DUALCASE=1; export DUALCASE # for MKS sh 14399if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14400 emulate sh 14401 NULLCMD=: 14402 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14403 # is contrary to our usage. Disable this feature. 14404 alias -g '${1+"$@"}'='"$@"' 14405 setopt NO_GLOB_SUBST 14406else 14407 case `(set -o) 2>/dev/null` in #( 14408 *posix*) : 14409 set -o posix ;; #( 14410 *) : 14411 ;; 14412esac 14413fi 14414 14415 14416as_nl=' 14417' 14418export as_nl 14419# Printing a long string crashes Solaris 7 /usr/bin/printf. 14420as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14421as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14422as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14423# Prefer a ksh shell builtin over an external printf program on Solaris, 14424# but without wasting forks for bash or zsh. 14425if test -z "$BASH_VERSION$ZSH_VERSION" \ 14426 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14427 as_echo='print -r --' 14428 as_echo_n='print -rn --' 14429elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14430 as_echo='printf %s\n' 14431 as_echo_n='printf %s' 14432else 14433 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14434 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14435 as_echo_n='/usr/ucb/echo -n' 14436 else 14437 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14438 as_echo_n_body='eval 14439 arg=$1; 14440 case $arg in #( 14441 *"$as_nl"*) 14442 expr "X$arg" : "X\\(.*\\)$as_nl"; 14443 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14444 esac; 14445 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14446 ' 14447 export as_echo_n_body 14448 as_echo_n='sh -c $as_echo_n_body as_echo' 14449 fi 14450 export as_echo_body 14451 as_echo='sh -c $as_echo_body as_echo' 14452fi 14453 14454# The user is always right. 14455if test "${PATH_SEPARATOR+set}" != set; then 14456 PATH_SEPARATOR=: 14457 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14458 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14459 PATH_SEPARATOR=';' 14460 } 14461fi 14462 14463 14464# IFS 14465# We need space, tab and new line, in precisely that order. Quoting is 14466# there to prevent editors from complaining about space-tab. 14467# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14468# splitting by setting IFS to empty value.) 14469IFS=" "" $as_nl" 14470 14471# Find who we are. Look in the path if we contain no directory separator. 14472as_myself= 14473case $0 in #(( 14474 *[\\/]* ) as_myself=$0 ;; 14475 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14476for as_dir in $PATH 14477do 14478 IFS=$as_save_IFS 14479 test -z "$as_dir" && as_dir=. 14480 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14481 done 14482IFS=$as_save_IFS 14483 14484 ;; 14485esac 14486# We did not find ourselves, most probably we were run as `sh COMMAND' 14487# in which case we are not to be found in the path. 14488if test "x$as_myself" = x; then 14489 as_myself=$0 14490fi 14491if test ! -f "$as_myself"; then 14492 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14493 exit 1 14494fi 14495 14496# Unset variables that we do not need and which cause bugs (e.g. in 14497# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14498# suppresses any "Segmentation fault" message there. '((' could 14499# trigger a bug in pdksh 5.2.14. 14500for as_var in BASH_ENV ENV MAIL MAILPATH 14501do eval test x\${$as_var+set} = xset \ 14502 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14503done 14504PS1='$ ' 14505PS2='> ' 14506PS4='+ ' 14507 14508# NLS nuisances. 14509LC_ALL=C 14510export LC_ALL 14511LANGUAGE=C 14512export LANGUAGE 14513 14514# CDPATH. 14515(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14516 14517 14518# as_fn_error STATUS ERROR [LINENO LOG_FD] 14519# ---------------------------------------- 14520# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14521# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14522# script with STATUS, using 1 if that was 0. 14523as_fn_error () 14524{ 14525 as_status=$1; test $as_status -eq 0 && as_status=1 14526 if test "$4"; then 14527 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14528 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14529 fi 14530 $as_echo "$as_me: error: $2" >&2 14531 as_fn_exit $as_status 14532} # as_fn_error 14533 14534 14535# as_fn_set_status STATUS 14536# ----------------------- 14537# Set $? to STATUS, without forking. 14538as_fn_set_status () 14539{ 14540 return $1 14541} # as_fn_set_status 14542 14543# as_fn_exit STATUS 14544# ----------------- 14545# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14546as_fn_exit () 14547{ 14548 set +e 14549 as_fn_set_status $1 14550 exit $1 14551} # as_fn_exit 14552 14553# as_fn_unset VAR 14554# --------------- 14555# Portably unset VAR. 14556as_fn_unset () 14557{ 14558 { eval $1=; unset $1;} 14559} 14560as_unset=as_fn_unset 14561# as_fn_append VAR VALUE 14562# ---------------------- 14563# Append the text in VALUE to the end of the definition contained in VAR. Take 14564# advantage of any shell optimizations that allow amortized linear growth over 14565# repeated appends, instead of the typical quadratic growth present in naive 14566# implementations. 14567if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14568 eval 'as_fn_append () 14569 { 14570 eval $1+=\$2 14571 }' 14572else 14573 as_fn_append () 14574 { 14575 eval $1=\$$1\$2 14576 } 14577fi # as_fn_append 14578 14579# as_fn_arith ARG... 14580# ------------------ 14581# Perform arithmetic evaluation on the ARGs, and store the result in the 14582# global $as_val. Take advantage of shells that can avoid forks. The arguments 14583# must be portable across $(()) and expr. 14584if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14585 eval 'as_fn_arith () 14586 { 14587 as_val=$(( $* )) 14588 }' 14589else 14590 as_fn_arith () 14591 { 14592 as_val=`expr "$@" || test $? -eq 1` 14593 } 14594fi # as_fn_arith 14595 14596 14597if expr a : '\(a\)' >/dev/null 2>&1 && 14598 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14599 as_expr=expr 14600else 14601 as_expr=false 14602fi 14603 14604if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14605 as_basename=basename 14606else 14607 as_basename=false 14608fi 14609 14610if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14611 as_dirname=dirname 14612else 14613 as_dirname=false 14614fi 14615 14616as_me=`$as_basename -- "$0" || 14617$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14618 X"$0" : 'X\(//\)$' \| \ 14619 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14620$as_echo X/"$0" | 14621 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14622 s//\1/ 14623 q 14624 } 14625 /^X\/\(\/\/\)$/{ 14626 s//\1/ 14627 q 14628 } 14629 /^X\/\(\/\).*/{ 14630 s//\1/ 14631 q 14632 } 14633 s/.*/./; q'` 14634 14635# Avoid depending upon Character Ranges. 14636as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14637as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14638as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14639as_cr_digits='0123456789' 14640as_cr_alnum=$as_cr_Letters$as_cr_digits 14641 14642ECHO_C= ECHO_N= ECHO_T= 14643case `echo -n x` in #((((( 14644-n*) 14645 case `echo 'xy\c'` in 14646 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14647 xy) ECHO_C='\c';; 14648 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14649 ECHO_T=' ';; 14650 esac;; 14651*) 14652 ECHO_N='-n';; 14653esac 14654 14655rm -f conf$$ conf$$.exe conf$$.file 14656if test -d conf$$.dir; then 14657 rm -f conf$$.dir/conf$$.file 14658else 14659 rm -f conf$$.dir 14660 mkdir conf$$.dir 2>/dev/null 14661fi 14662if (echo >conf$$.file) 2>/dev/null; then 14663 if ln -s conf$$.file conf$$ 2>/dev/null; then 14664 as_ln_s='ln -s' 14665 # ... but there are two gotchas: 14666 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14667 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14668 # In both cases, we have to default to `cp -pR'. 14669 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14670 as_ln_s='cp -pR' 14671 elif ln conf$$.file conf$$ 2>/dev/null; then 14672 as_ln_s=ln 14673 else 14674 as_ln_s='cp -pR' 14675 fi 14676else 14677 as_ln_s='cp -pR' 14678fi 14679rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14680rmdir conf$$.dir 2>/dev/null 14681 14682 14683# as_fn_mkdir_p 14684# ------------- 14685# Create "$as_dir" as a directory, including parents if necessary. 14686as_fn_mkdir_p () 14687{ 14688 14689 case $as_dir in #( 14690 -*) as_dir=./$as_dir;; 14691 esac 14692 test -d "$as_dir" || eval $as_mkdir_p || { 14693 as_dirs= 14694 while :; do 14695 case $as_dir in #( 14696 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14697 *) as_qdir=$as_dir;; 14698 esac 14699 as_dirs="'$as_qdir' $as_dirs" 14700 as_dir=`$as_dirname -- "$as_dir" || 14701$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14702 X"$as_dir" : 'X\(//\)[^/]' \| \ 14703 X"$as_dir" : 'X\(//\)$' \| \ 14704 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14705$as_echo X"$as_dir" | 14706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14707 s//\1/ 14708 q 14709 } 14710 /^X\(\/\/\)[^/].*/{ 14711 s//\1/ 14712 q 14713 } 14714 /^X\(\/\/\)$/{ 14715 s//\1/ 14716 q 14717 } 14718 /^X\(\/\).*/{ 14719 s//\1/ 14720 q 14721 } 14722 s/.*/./; q'` 14723 test -d "$as_dir" && break 14724 done 14725 test -z "$as_dirs" || eval "mkdir $as_dirs" 14726 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14727 14728 14729} # as_fn_mkdir_p 14730if mkdir -p . 2>/dev/null; then 14731 as_mkdir_p='mkdir -p "$as_dir"' 14732else 14733 test -d ./-p && rmdir ./-p 14734 as_mkdir_p=false 14735fi 14736 14737 14738# as_fn_executable_p FILE 14739# ----------------------- 14740# Test if FILE is an executable regular file. 14741as_fn_executable_p () 14742{ 14743 test -f "$1" && test -x "$1" 14744} # as_fn_executable_p 14745as_test_x='test -x' 14746as_executable_p=as_fn_executable_p 14747 14748# Sed expression to map a string onto a valid CPP name. 14749as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14750 14751# Sed expression to map a string onto a valid variable name. 14752as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14753 14754 14755exec 6>&1 14756## ----------------------------------- ## 14757## Main body of $CONFIG_STATUS script. ## 14758## ----------------------------------- ## 14759_ASEOF 14760test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14761 14762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14763# Save the log message, to keep $0 and so on meaningful, and to 14764# report actual input values of CONFIG_FILES etc. instead of their 14765# values after options handling. 14766ac_log=" 14767This file was extended by libaacs $as_me 0.11.0, which was 14768generated by GNU Autoconf 2.69. Invocation command line was 14769 14770 CONFIG_FILES = $CONFIG_FILES 14771 CONFIG_HEADERS = $CONFIG_HEADERS 14772 CONFIG_LINKS = $CONFIG_LINKS 14773 CONFIG_COMMANDS = $CONFIG_COMMANDS 14774 $ $0 $@ 14775 14776on `(hostname || uname -n) 2>/dev/null | sed 1q` 14777" 14778 14779_ACEOF 14780 14781case $ac_config_files in *" 14782"*) set x $ac_config_files; shift; ac_config_files=$*;; 14783esac 14784 14785case $ac_config_headers in *" 14786"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14787esac 14788 14789 14790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14791# Files that config.status was made for. 14792config_files="$ac_config_files" 14793config_headers="$ac_config_headers" 14794config_commands="$ac_config_commands" 14795 14796_ACEOF 14797 14798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14799ac_cs_usage="\ 14800\`$as_me' instantiates files and other configuration actions 14801from templates according to the current configuration. Unless the files 14802and actions are specified as TAGs, all are instantiated by default. 14803 14804Usage: $0 [OPTION]... [TAG]... 14805 14806 -h, --help print this help, then exit 14807 -V, --version print version number and configuration settings, then exit 14808 --config print configuration, then exit 14809 -q, --quiet, --silent 14810 do not print progress messages 14811 -d, --debug don't remove temporary files 14812 --recheck update $as_me by reconfiguring in the same conditions 14813 --file=FILE[:TEMPLATE] 14814 instantiate the configuration file FILE 14815 --header=FILE[:TEMPLATE] 14816 instantiate the configuration header FILE 14817 14818Configuration files: 14819$config_files 14820 14821Configuration headers: 14822$config_headers 14823 14824Configuration commands: 14825$config_commands 14826 14827Report bugs to <http://www.videolan.org/developers/libaacs.html>." 14828 14829_ACEOF 14830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14831ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14832ac_cs_version="\\ 14833libaacs config.status 0.11.0 14834configured by $0, generated by GNU Autoconf 2.69, 14835 with options \\"\$ac_cs_config\\" 14836 14837Copyright (C) 2012 Free Software Foundation, Inc. 14838This config.status script is free software; the Free Software Foundation 14839gives unlimited permission to copy, distribute and modify it." 14840 14841ac_pwd='$ac_pwd' 14842srcdir='$srcdir' 14843INSTALL='$INSTALL' 14844MKDIR_P='$MKDIR_P' 14845AWK='$AWK' 14846test -n "\$AWK" || AWK=awk 14847_ACEOF 14848 14849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14850# The default lists apply if the user does not specify any file. 14851ac_need_defaults=: 14852while test $# != 0 14853do 14854 case $1 in 14855 --*=?*) 14856 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14857 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14858 ac_shift=: 14859 ;; 14860 --*=) 14861 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14862 ac_optarg= 14863 ac_shift=: 14864 ;; 14865 *) 14866 ac_option=$1 14867 ac_optarg=$2 14868 ac_shift=shift 14869 ;; 14870 esac 14871 14872 case $ac_option in 14873 # Handling of the options. 14874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14875 ac_cs_recheck=: ;; 14876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14877 $as_echo "$ac_cs_version"; exit ;; 14878 --config | --confi | --conf | --con | --co | --c ) 14879 $as_echo "$ac_cs_config"; exit ;; 14880 --debug | --debu | --deb | --de | --d | -d ) 14881 debug=: ;; 14882 --file | --fil | --fi | --f ) 14883 $ac_shift 14884 case $ac_optarg in 14885 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14886 '') as_fn_error $? "missing file argument" ;; 14887 esac 14888 as_fn_append CONFIG_FILES " '$ac_optarg'" 14889 ac_need_defaults=false;; 14890 --header | --heade | --head | --hea ) 14891 $ac_shift 14892 case $ac_optarg in 14893 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14894 esac 14895 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14896 ac_need_defaults=false;; 14897 --he | --h) 14898 # Conflict between --help and --header 14899 as_fn_error $? "ambiguous option: \`$1' 14900Try \`$0 --help' for more information.";; 14901 --help | --hel | -h ) 14902 $as_echo "$ac_cs_usage"; exit ;; 14903 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14904 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14905 ac_cs_silent=: ;; 14906 14907 # This is an error. 14908 -*) as_fn_error $? "unrecognized option: \`$1' 14909Try \`$0 --help' for more information." ;; 14910 14911 *) as_fn_append ac_config_targets " $1" 14912 ac_need_defaults=false ;; 14913 14914 esac 14915 shift 14916done 14917 14918ac_configure_extra_args= 14919 14920if $ac_cs_silent; then 14921 exec 6>/dev/null 14922 ac_configure_extra_args="$ac_configure_extra_args --silent" 14923fi 14924 14925_ACEOF 14926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14927if \$ac_cs_recheck; then 14928 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14929 shift 14930 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14931 CONFIG_SHELL='$SHELL' 14932 export CONFIG_SHELL 14933 exec "\$@" 14934fi 14935 14936_ACEOF 14937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14938exec 5>>config.log 14939{ 14940 echo 14941 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14942## Running $as_me. ## 14943_ASBOX 14944 $as_echo "$ac_log" 14945} >&5 14946 14947_ACEOF 14948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14949# 14950# INIT-COMMANDS 14951# 14952AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14953 14954 14955# The HP-UX ksh and POSIX shell print the target directory to stdout 14956# if CDPATH is set. 14957(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14958 14959sed_quote_subst='$sed_quote_subst' 14960double_quote_subst='$double_quote_subst' 14961delay_variable_subst='$delay_variable_subst' 14962macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14963macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14964enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14965enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14966pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14967enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14968shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14969SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14970ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14971PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14972host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14973host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14974host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14975build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14976build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14977build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14978SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14979Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14980GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14981EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14982FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14983LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14984NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14985LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14986max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14987ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14988exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14989lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14990lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14991lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14992lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14993lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14994reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14995reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14996OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14997deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14998file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14999file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15000want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15001DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15002sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15003AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15004AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15005archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15006STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15007RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15008old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15009old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15010old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15011lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15012CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15013CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15014compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15015GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15016lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15017lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15018lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 15019lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15020lt_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"`' 15021lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 15022nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15023lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15024lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 15025objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15026MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15027lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15028lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15029lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15030lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15031lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15032need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15033MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15034DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15035NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15036LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15037OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15038OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15039libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15040shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15041extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15042archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15043enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15044export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15045whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15046compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15047old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15048old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15049archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15050archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15051module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15052module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15053with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15054allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15055no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15056hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15057hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15058hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15059hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15060hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15061hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15062hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15063inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15064link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15065always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15066export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15067exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15068include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15069prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15070postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15071file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15072variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15073need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15074need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15075version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15076runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15077shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15078shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15079libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15080library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15081soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15082install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15083postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15084postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15085finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15086finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15087hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15088sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15089configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 15090configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 15091hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15092enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15093enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15094enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15095old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15096striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15097AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 15098 15099LTCC='$LTCC' 15100LTCFLAGS='$LTCFLAGS' 15101compiler='$compiler_DEFAULT' 15102 15103# A function that is used when there is no print builtin or printf. 15104func_fallback_echo () 15105{ 15106 eval 'cat <<_LTECHO_EOF 15107\$1 15108_LTECHO_EOF' 15109} 15110 15111# Quote evaled strings. 15112for var in SHELL \ 15113ECHO \ 15114PATH_SEPARATOR \ 15115SED \ 15116GREP \ 15117EGREP \ 15118FGREP \ 15119LD \ 15120NM \ 15121LN_S \ 15122lt_SP2NL \ 15123lt_NL2SP \ 15124reload_flag \ 15125OBJDUMP \ 15126deplibs_check_method \ 15127file_magic_cmd \ 15128file_magic_glob \ 15129want_nocaseglob \ 15130DLLTOOL \ 15131sharedlib_from_linklib_cmd \ 15132AR \ 15133AR_FLAGS \ 15134archiver_list_spec \ 15135STRIP \ 15136RANLIB \ 15137CC \ 15138CFLAGS \ 15139compiler \ 15140lt_cv_sys_global_symbol_pipe \ 15141lt_cv_sys_global_symbol_to_cdecl \ 15142lt_cv_sys_global_symbol_to_import \ 15143lt_cv_sys_global_symbol_to_c_name_address \ 15144lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15145lt_cv_nm_interface \ 15146nm_file_list_spec \ 15147lt_cv_truncate_bin \ 15148lt_prog_compiler_no_builtin_flag \ 15149lt_prog_compiler_pic \ 15150lt_prog_compiler_wl \ 15151lt_prog_compiler_static \ 15152lt_cv_prog_compiler_c_o \ 15153need_locks \ 15154MANIFEST_TOOL \ 15155DSYMUTIL \ 15156NMEDIT \ 15157LIPO \ 15158OTOOL \ 15159OTOOL64 \ 15160shrext_cmds \ 15161export_dynamic_flag_spec \ 15162whole_archive_flag_spec \ 15163compiler_needs_object \ 15164with_gnu_ld \ 15165allow_undefined_flag \ 15166no_undefined_flag \ 15167hardcode_libdir_flag_spec \ 15168hardcode_libdir_separator \ 15169exclude_expsyms \ 15170include_expsyms \ 15171file_list_spec \ 15172variables_saved_for_relink \ 15173libname_spec \ 15174library_names_spec \ 15175soname_spec \ 15176install_override_mode \ 15177finish_eval \ 15178old_striplib \ 15179striplib \ 15180AS; do 15181 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15182 *[\\\\\\\`\\"\\\$]*) 15183 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15184 ;; 15185 *) 15186 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15187 ;; 15188 esac 15189done 15190 15191# Double-quote double-evaled strings. 15192for var in reload_cmds \ 15193old_postinstall_cmds \ 15194old_postuninstall_cmds \ 15195old_archive_cmds \ 15196extract_expsyms_cmds \ 15197old_archive_from_new_cmds \ 15198old_archive_from_expsyms_cmds \ 15199archive_cmds \ 15200archive_expsym_cmds \ 15201module_cmds \ 15202module_expsym_cmds \ 15203export_symbols_cmds \ 15204prelink_cmds \ 15205postlink_cmds \ 15206postinstall_cmds \ 15207postuninstall_cmds \ 15208finish_cmds \ 15209sys_lib_search_path_spec \ 15210configure_time_dlsearch_path \ 15211configure_time_lt_sys_library_path; do 15212 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15213 *[\\\\\\\`\\"\\\$]*) 15214 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15215 ;; 15216 *) 15217 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15218 ;; 15219 esac 15220done 15221 15222ac_aux_dir='$ac_aux_dir' 15223 15224# See if we are running on zsh, and set the options that allow our 15225# commands through without removal of \ escapes INIT. 15226if test -n "\${ZSH_VERSION+set}"; then 15227 setopt NO_GLOB_SUBST 15228fi 15229 15230 15231 PACKAGE='$PACKAGE' 15232 VERSION='$VERSION' 15233 RM='$RM' 15234 ofile='$ofile' 15235 15236 15237 15238 15239_ACEOF 15240 15241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15242 15243# Handling of arguments. 15244for ac_config_target in $ac_config_targets 15245do 15246 case $ac_config_target in 15247 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15248 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15249 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15250 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15251 "src/libaacs.pc") CONFIG_FILES="$CONFIG_FILES src/libaacs.pc" ;; 15252 "src/libaacs/aacs-version.h") CONFIG_FILES="$CONFIG_FILES src/libaacs/aacs-version.h" ;; 15253 15254 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15255 esac 15256done 15257 15258 15259# If the user did not use the arguments to specify the items to instantiate, 15260# then the envvar interface is used. Set only those that are not. 15261# We use the long form for the default assignment because of an extremely 15262# bizarre bug on SunOS 4.1.3. 15263if $ac_need_defaults; then 15264 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15265 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15266 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15267fi 15268 15269# Have a temporary directory for convenience. Make it in the build tree 15270# simply because there is no reason against having it here, and in addition, 15271# creating and moving files from /tmp can sometimes cause problems. 15272# Hook for its removal unless debugging. 15273# Note that there is a small window in which the directory will not be cleaned: 15274# after its creation but before its name has been assigned to `$tmp'. 15275$debug || 15276{ 15277 tmp= ac_tmp= 15278 trap 'exit_status=$? 15279 : "${ac_tmp:=$tmp}" 15280 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15281' 0 15282 trap 'as_fn_exit 1' 1 2 13 15 15283} 15284# Create a (secure) tmp directory for tmp files. 15285 15286{ 15287 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15288 test -d "$tmp" 15289} || 15290{ 15291 tmp=./conf$$-$RANDOM 15292 (umask 077 && mkdir "$tmp") 15293} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15294ac_tmp=$tmp 15295 15296# Set up the scripts for CONFIG_FILES section. 15297# No need to generate them if there are no CONFIG_FILES. 15298# This happens for instance with `./config.status config.h'. 15299if test -n "$CONFIG_FILES"; then 15300 15301 15302ac_cr=`echo X | tr X '\015'` 15303# On cygwin, bash can eat \r inside `` if the user requested igncr. 15304# But we know of no other shell where ac_cr would be empty at this 15305# point, so we can use a bashism as a fallback. 15306if test "x$ac_cr" = x; then 15307 eval ac_cr=\$\'\\r\' 15308fi 15309ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15310if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15311 ac_cs_awk_cr='\\r' 15312else 15313 ac_cs_awk_cr=$ac_cr 15314fi 15315 15316echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15317_ACEOF 15318 15319 15320{ 15321 echo "cat >conf$$subs.awk <<_ACEOF" && 15322 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15323 echo "_ACEOF" 15324} >conf$$subs.sh || 15325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15326ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15327ac_delim='%!_!# ' 15328for ac_last_try in false false false false false :; do 15329 . ./conf$$subs.sh || 15330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15331 15332 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15333 if test $ac_delim_n = $ac_delim_num; then 15334 break 15335 elif $ac_last_try; then 15336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15337 else 15338 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15339 fi 15340done 15341rm -f conf$$subs.sh 15342 15343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15344cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15345_ACEOF 15346sed -n ' 15347h 15348s/^/S["/; s/!.*/"]=/ 15349p 15350g 15351s/^[^!]*!// 15352:repl 15353t repl 15354s/'"$ac_delim"'$// 15355t delim 15356:nl 15357h 15358s/\(.\{148\}\)..*/\1/ 15359t more1 15360s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15361p 15362n 15363b repl 15364:more1 15365s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15366p 15367g 15368s/.\{148\}// 15369t nl 15370:delim 15371h 15372s/\(.\{148\}\)..*/\1/ 15373t more2 15374s/["\\]/\\&/g; s/^/"/; s/$/"/ 15375p 15376b 15377:more2 15378s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15379p 15380g 15381s/.\{148\}// 15382t delim 15383' <conf$$subs.awk | sed ' 15384/^[^""]/{ 15385 N 15386 s/\n// 15387} 15388' >>$CONFIG_STATUS || ac_write_fail=1 15389rm -f conf$$subs.awk 15390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15391_ACAWK 15392cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15393 for (key in S) S_is_set[key] = 1 15394 FS = "" 15395 15396} 15397{ 15398 line = $ 0 15399 nfields = split(line, field, "@") 15400 substed = 0 15401 len = length(field[1]) 15402 for (i = 2; i < nfields; i++) { 15403 key = field[i] 15404 keylen = length(key) 15405 if (S_is_set[key]) { 15406 value = S[key] 15407 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15408 len += length(value) + length(field[++i]) 15409 substed = 1 15410 } else 15411 len += 1 + keylen 15412 } 15413 15414 print line 15415} 15416 15417_ACAWK 15418_ACEOF 15419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15420if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15421 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15422else 15423 cat 15424fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15425 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15426_ACEOF 15427 15428# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15429# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15430# trailing colons and then remove the whole line if VPATH becomes empty 15431# (actually we leave an empty line to preserve line numbers). 15432if test "x$srcdir" = x.; then 15433 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15434h 15435s/// 15436s/^/:/ 15437s/[ ]*$/:/ 15438s/:\$(srcdir):/:/g 15439s/:\${srcdir}:/:/g 15440s/:@srcdir@:/:/g 15441s/^:*// 15442s/:*$// 15443x 15444s/\(=[ ]*\).*/\1/ 15445G 15446s/\n// 15447s/^[^=]*=[ ]*$// 15448}' 15449fi 15450 15451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15452fi # test -n "$CONFIG_FILES" 15453 15454# Set up the scripts for CONFIG_HEADERS section. 15455# No need to generate them if there are no CONFIG_HEADERS. 15456# This happens for instance with `./config.status Makefile'. 15457if test -n "$CONFIG_HEADERS"; then 15458cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15459BEGIN { 15460_ACEOF 15461 15462# Transform confdefs.h into an awk script `defines.awk', embedded as 15463# here-document in config.status, that substitutes the proper values into 15464# config.h.in to produce config.h. 15465 15466# Create a delimiter string that does not exist in confdefs.h, to ease 15467# handling of long lines. 15468ac_delim='%!_!# ' 15469for ac_last_try in false false :; do 15470 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15471 if test -z "$ac_tt"; then 15472 break 15473 elif $ac_last_try; then 15474 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15475 else 15476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15477 fi 15478done 15479 15480# For the awk script, D is an array of macro values keyed by name, 15481# likewise P contains macro parameters if any. Preserve backslash 15482# newline sequences. 15483 15484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15485sed -n ' 15486s/.\{148\}/&'"$ac_delim"'/g 15487t rset 15488:rset 15489s/^[ ]*#[ ]*define[ ][ ]*/ / 15490t def 15491d 15492:def 15493s/\\$// 15494t bsnl 15495s/["\\]/\\&/g 15496s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15497D["\1"]=" \3"/p 15498s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15499d 15500:bsnl 15501s/["\\]/\\&/g 15502s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15503D["\1"]=" \3\\\\\\n"\\/p 15504t cont 15505s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15506t cont 15507d 15508:cont 15509n 15510s/.\{148\}/&'"$ac_delim"'/g 15511t clear 15512:clear 15513s/\\$// 15514t bsnlc 15515s/["\\]/\\&/g; s/^/"/; s/$/"/p 15516d 15517:bsnlc 15518s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15519b cont 15520' <confdefs.h | sed ' 15521s/'"$ac_delim"'/"\\\ 15522"/g' >>$CONFIG_STATUS || ac_write_fail=1 15523 15524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15525 for (key in D) D_is_set[key] = 1 15526 FS = "" 15527} 15528/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15529 line = \$ 0 15530 split(line, arg, " ") 15531 if (arg[1] == "#") { 15532 defundef = arg[2] 15533 mac1 = arg[3] 15534 } else { 15535 defundef = substr(arg[1], 2) 15536 mac1 = arg[2] 15537 } 15538 split(mac1, mac2, "(") #) 15539 macro = mac2[1] 15540 prefix = substr(line, 1, index(line, defundef) - 1) 15541 if (D_is_set[macro]) { 15542 # Preserve the white space surrounding the "#". 15543 print prefix "define", macro P[macro] D[macro] 15544 next 15545 } else { 15546 # Replace #undef with comments. This is necessary, for example, 15547 # in the case of _POSIX_SOURCE, which is predefined and required 15548 # on some systems where configure will not decide to define it. 15549 if (defundef == "undef") { 15550 print "/*", prefix defundef, macro, "*/" 15551 next 15552 } 15553 } 15554} 15555{ print } 15556_ACAWK 15557_ACEOF 15558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15559 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15560fi # test -n "$CONFIG_HEADERS" 15561 15562 15563eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15564shift 15565for ac_tag 15566do 15567 case $ac_tag in 15568 :[FHLC]) ac_mode=$ac_tag; continue;; 15569 esac 15570 case $ac_mode$ac_tag in 15571 :[FHL]*:*);; 15572 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15573 :[FH]-) ac_tag=-:-;; 15574 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15575 esac 15576 ac_save_IFS=$IFS 15577 IFS=: 15578 set x $ac_tag 15579 IFS=$ac_save_IFS 15580 shift 15581 ac_file=$1 15582 shift 15583 15584 case $ac_mode in 15585 :L) ac_source=$1;; 15586 :[FH]) 15587 ac_file_inputs= 15588 for ac_f 15589 do 15590 case $ac_f in 15591 -) ac_f="$ac_tmp/stdin";; 15592 *) # Look for the file first in the build tree, then in the source tree 15593 # (if the path is not absolute). The absolute path cannot be DOS-style, 15594 # because $ac_f cannot contain `:'. 15595 test -f "$ac_f" || 15596 case $ac_f in 15597 [\\/$]*) false;; 15598 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15599 esac || 15600 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15601 esac 15602 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15603 as_fn_append ac_file_inputs " '$ac_f'" 15604 done 15605 15606 # Let's still pretend it is `configure' which instantiates (i.e., don't 15607 # use $as_me), people would be surprised to read: 15608 # /* config.h. Generated by config.status. */ 15609 configure_input='Generated from '` 15610 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15611 `' by configure.' 15612 if test x"$ac_file" != x-; then 15613 configure_input="$ac_file. $configure_input" 15614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15615$as_echo "$as_me: creating $ac_file" >&6;} 15616 fi 15617 # Neutralize special characters interpreted by sed in replacement strings. 15618 case $configure_input in #( 15619 *\&* | *\|* | *\\* ) 15620 ac_sed_conf_input=`$as_echo "$configure_input" | 15621 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15622 *) ac_sed_conf_input=$configure_input;; 15623 esac 15624 15625 case $ac_tag in 15626 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15628 esac 15629 ;; 15630 esac 15631 15632 ac_dir=`$as_dirname -- "$ac_file" || 15633$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15634 X"$ac_file" : 'X\(//\)[^/]' \| \ 15635 X"$ac_file" : 'X\(//\)$' \| \ 15636 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15637$as_echo X"$ac_file" | 15638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15639 s//\1/ 15640 q 15641 } 15642 /^X\(\/\/\)[^/].*/{ 15643 s//\1/ 15644 q 15645 } 15646 /^X\(\/\/\)$/{ 15647 s//\1/ 15648 q 15649 } 15650 /^X\(\/\).*/{ 15651 s//\1/ 15652 q 15653 } 15654 s/.*/./; q'` 15655 as_dir="$ac_dir"; as_fn_mkdir_p 15656 ac_builddir=. 15657 15658case "$ac_dir" in 15659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15660*) 15661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15662 # A ".." for each directory in $ac_dir_suffix. 15663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15664 case $ac_top_builddir_sub in 15665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15667 esac ;; 15668esac 15669ac_abs_top_builddir=$ac_pwd 15670ac_abs_builddir=$ac_pwd$ac_dir_suffix 15671# for backward compatibility: 15672ac_top_builddir=$ac_top_build_prefix 15673 15674case $srcdir in 15675 .) # We are building in place. 15676 ac_srcdir=. 15677 ac_top_srcdir=$ac_top_builddir_sub 15678 ac_abs_top_srcdir=$ac_pwd ;; 15679 [\\/]* | ?:[\\/]* ) # Absolute name. 15680 ac_srcdir=$srcdir$ac_dir_suffix; 15681 ac_top_srcdir=$srcdir 15682 ac_abs_top_srcdir=$srcdir ;; 15683 *) # Relative name. 15684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15685 ac_top_srcdir=$ac_top_build_prefix$srcdir 15686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15687esac 15688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15689 15690 15691 case $ac_mode in 15692 :F) 15693 # 15694 # CONFIG_FILE 15695 # 15696 15697 case $INSTALL in 15698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15700 esac 15701 ac_MKDIR_P=$MKDIR_P 15702 case $MKDIR_P in 15703 [\\/$]* | ?:[\\/]* ) ;; 15704 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15705 esac 15706_ACEOF 15707 15708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15709# If the template does not know about datarootdir, expand it. 15710# FIXME: This hack should be removed a few years after 2.60. 15711ac_datarootdir_hack=; ac_datarootdir_seen= 15712ac_sed_dataroot=' 15713/datarootdir/ { 15714 p 15715 q 15716} 15717/@datadir@/p 15718/@docdir@/p 15719/@infodir@/p 15720/@localedir@/p 15721/@mandir@/p' 15722case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15723*datarootdir*) ac_datarootdir_seen=yes;; 15724*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15726$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15727_ACEOF 15728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15729 ac_datarootdir_hack=' 15730 s&@datadir@&$datadir&g 15731 s&@docdir@&$docdir&g 15732 s&@infodir@&$infodir&g 15733 s&@localedir@&$localedir&g 15734 s&@mandir@&$mandir&g 15735 s&\\\${datarootdir}&$datarootdir&g' ;; 15736esac 15737_ACEOF 15738 15739# Neutralize VPATH when `$srcdir' = `.'. 15740# Shell code in configure.ac might set extrasub. 15741# FIXME: do we really want to maintain this feature? 15742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15743ac_sed_extra="$ac_vpsub 15744$extrasub 15745_ACEOF 15746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15747:t 15748/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15749s|@configure_input@|$ac_sed_conf_input|;t t 15750s&@top_builddir@&$ac_top_builddir_sub&;t t 15751s&@top_build_prefix@&$ac_top_build_prefix&;t t 15752s&@srcdir@&$ac_srcdir&;t t 15753s&@abs_srcdir@&$ac_abs_srcdir&;t t 15754s&@top_srcdir@&$ac_top_srcdir&;t t 15755s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15756s&@builddir@&$ac_builddir&;t t 15757s&@abs_builddir@&$ac_abs_builddir&;t t 15758s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15759s&@INSTALL@&$ac_INSTALL&;t t 15760s&@MKDIR_P@&$ac_MKDIR_P&;t t 15761$ac_datarootdir_hack 15762" 15763eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15764 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15765 15766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15767 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15769 "$ac_tmp/out"`; test -z "$ac_out"; } && 15770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15771which seems to be undefined. Please make sure it is defined" >&5 15772$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15773which seems to be undefined. Please make sure it is defined" >&2;} 15774 15775 rm -f "$ac_tmp/stdin" 15776 case $ac_file in 15777 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15778 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15779 esac \ 15780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15781 ;; 15782 :H) 15783 # 15784 # CONFIG_HEADER 15785 # 15786 if test x"$ac_file" != x-; then 15787 { 15788 $as_echo "/* $configure_input */" \ 15789 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15790 } >"$ac_tmp/config.h" \ 15791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15792 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15793 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15794$as_echo "$as_me: $ac_file is unchanged" >&6;} 15795 else 15796 rm -f "$ac_file" 15797 mv "$ac_tmp/config.h" "$ac_file" \ 15798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15799 fi 15800 else 15801 $as_echo "/* $configure_input */" \ 15802 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15803 || as_fn_error $? "could not create -" "$LINENO" 5 15804 fi 15805# Compute "$ac_file"'s index in $config_headers. 15806_am_arg="$ac_file" 15807_am_stamp_count=1 15808for _am_header in $config_headers :; do 15809 case $_am_header in 15810 $_am_arg | $_am_arg:* ) 15811 break ;; 15812 * ) 15813 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15814 esac 15815done 15816echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15817$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15818 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15819 X"$_am_arg" : 'X\(//\)$' \| \ 15820 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15821$as_echo X"$_am_arg" | 15822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15823 s//\1/ 15824 q 15825 } 15826 /^X\(\/\/\)[^/].*/{ 15827 s//\1/ 15828 q 15829 } 15830 /^X\(\/\/\)$/{ 15831 s//\1/ 15832 q 15833 } 15834 /^X\(\/\).*/{ 15835 s//\1/ 15836 q 15837 } 15838 s/.*/./; q'`/stamp-h$_am_stamp_count 15839 ;; 15840 15841 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15842$as_echo "$as_me: executing $ac_file commands" >&6;} 15843 ;; 15844 esac 15845 15846 15847 case $ac_file$ac_mode in 15848 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15849 # Older Autoconf quotes --file arguments for eval, but not when files 15850 # are listed without --file. Let's play safe and only enable the eval 15851 # if we detect the quoting. 15852 # TODO: see whether this extra hack can be removed once we start 15853 # requiring Autoconf 2.70 or later. 15854 case $CONFIG_FILES in #( 15855 *\'*) : 15856 eval set x "$CONFIG_FILES" ;; #( 15857 *) : 15858 set x $CONFIG_FILES ;; #( 15859 *) : 15860 ;; 15861esac 15862 shift 15863 # Used to flag and report bootstrapping failures. 15864 am_rc=0 15865 for am_mf 15866 do 15867 # Strip MF so we end up with the name of the file. 15868 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15869 # Check whether this is an Automake generated Makefile which includes 15870 # dependency-tracking related rules and includes. 15871 # Grep'ing the whole file directly is not great: AIX grep has a line 15872 # limit of 2048, but all sed's we know have understand at least 4000. 15873 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15874 || continue 15875 am_dirpart=`$as_dirname -- "$am_mf" || 15876$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15877 X"$am_mf" : 'X\(//\)[^/]' \| \ 15878 X"$am_mf" : 'X\(//\)$' \| \ 15879 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15880$as_echo X"$am_mf" | 15881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15882 s//\1/ 15883 q 15884 } 15885 /^X\(\/\/\)[^/].*/{ 15886 s//\1/ 15887 q 15888 } 15889 /^X\(\/\/\)$/{ 15890 s//\1/ 15891 q 15892 } 15893 /^X\(\/\).*/{ 15894 s//\1/ 15895 q 15896 } 15897 s/.*/./; q'` 15898 am_filepart=`$as_basename -- "$am_mf" || 15899$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15900 X"$am_mf" : 'X\(//\)$' \| \ 15901 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15902$as_echo X/"$am_mf" | 15903 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15904 s//\1/ 15905 q 15906 } 15907 /^X\/\(\/\/\)$/{ 15908 s//\1/ 15909 q 15910 } 15911 /^X\/\(\/\).*/{ 15912 s//\1/ 15913 q 15914 } 15915 s/.*/./; q'` 15916 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15917 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15918 | $MAKE -f - am--depfiles" >&5 15919 (cd "$am_dirpart" \ 15920 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15921 | $MAKE -f - am--depfiles) >&5 2>&5 15922 ac_status=$? 15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15924 (exit $ac_status); } || am_rc=$? 15925 done 15926 if test $am_rc -ne 0; then 15927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15929as_fn_error $? "Something went wrong bootstrapping makefile fragments 15930 for automatic dependency tracking. Try re-running configure with the 15931 '--disable-dependency-tracking' option to at least be able to build 15932 the package (albeit without support for automatic dependency tracking). 15933See \`config.log' for more details" "$LINENO" 5; } 15934 fi 15935 { am_dirpart=; unset am_dirpart;} 15936 { am_filepart=; unset am_filepart;} 15937 { am_mf=; unset am_mf;} 15938 { am_rc=; unset am_rc;} 15939 rm -f conftest-deps.mk 15940} 15941 ;; 15942 "libtool":C) 15943 15944 # See if we are running on zsh, and set the options that allow our 15945 # commands through without removal of \ escapes. 15946 if test -n "${ZSH_VERSION+set}"; then 15947 setopt NO_GLOB_SUBST 15948 fi 15949 15950 cfgfile=${ofile}T 15951 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15952 $RM "$cfgfile" 15953 15954 cat <<_LT_EOF >> "$cfgfile" 15955#! $SHELL 15956# Generated automatically by $as_me ($PACKAGE) $VERSION 15957# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15958 15959# Provide generalized library-building support services. 15960# Written by Gordon Matzigkeit, 1996 15961 15962# Copyright (C) 2014 Free Software Foundation, Inc. 15963# This is free software; see the source for copying conditions. There is NO 15964# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15965 15966# GNU Libtool is free software; you can redistribute it and/or modify 15967# it under the terms of the GNU General Public License as published by 15968# the Free Software Foundation; either version 2 of of the License, or 15969# (at your option) any later version. 15970# 15971# As a special exception to the GNU General Public License, if you 15972# distribute this file as part of a program or library that is built 15973# using GNU Libtool, you may include this file under the same 15974# distribution terms that you use for the rest of that program. 15975# 15976# GNU Libtool is distributed in the hope that it will be useful, but 15977# WITHOUT ANY WARRANTY; without even the implied warranty of 15978# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15979# GNU General Public License for more details. 15980# 15981# You should have received a copy of the GNU General Public License 15982# along with this program. If not, see <http://www.gnu.org/licenses/>. 15983 15984 15985# The names of the tagged configurations supported by this script. 15986available_tags='' 15987 15988# Configured defaults for sys_lib_dlsearch_path munging. 15989: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15990 15991# ### BEGIN LIBTOOL CONFIG 15992 15993# Which release of libtool.m4 was used? 15994macro_version=$macro_version 15995macro_revision=$macro_revision 15996 15997# Whether or not to build shared libraries. 15998build_libtool_libs=$enable_shared 15999 16000# Whether or not to build static libraries. 16001build_old_libs=$enable_static 16002 16003# What type of objects to build. 16004pic_mode=$pic_mode 16005 16006# Whether or not to optimize for fast installation. 16007fast_install=$enable_fast_install 16008 16009# Shared archive member basename,for filename based shared library versioning on AIX. 16010shared_archive_member_spec=$shared_archive_member_spec 16011 16012# Shell to use when invoking shell scripts. 16013SHELL=$lt_SHELL 16014 16015# An echo program that protects backslashes. 16016ECHO=$lt_ECHO 16017 16018# The PATH separator for the build system. 16019PATH_SEPARATOR=$lt_PATH_SEPARATOR 16020 16021# The host system. 16022host_alias=$host_alias 16023host=$host 16024host_os=$host_os 16025 16026# The build system. 16027build_alias=$build_alias 16028build=$build 16029build_os=$build_os 16030 16031# A sed program that does not truncate output. 16032SED=$lt_SED 16033 16034# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16035Xsed="\$SED -e 1s/^X//" 16036 16037# A grep program that handles long lines. 16038GREP=$lt_GREP 16039 16040# An ERE matcher. 16041EGREP=$lt_EGREP 16042 16043# A literal string matcher. 16044FGREP=$lt_FGREP 16045 16046# A BSD- or MS-compatible name lister. 16047NM=$lt_NM 16048 16049# Whether we need soft or hard links. 16050LN_S=$lt_LN_S 16051 16052# What is the maximum length of a command? 16053max_cmd_len=$max_cmd_len 16054 16055# Object file suffix (normally "o"). 16056objext=$ac_objext 16057 16058# Executable file suffix (normally ""). 16059exeext=$exeext 16060 16061# whether the shell understands "unset". 16062lt_unset=$lt_unset 16063 16064# turn spaces into newlines. 16065SP2NL=$lt_lt_SP2NL 16066 16067# turn newlines into spaces. 16068NL2SP=$lt_lt_NL2SP 16069 16070# convert \$build file names to \$host format. 16071to_host_file_cmd=$lt_cv_to_host_file_cmd 16072 16073# convert \$build files to toolchain format. 16074to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16075 16076# An object symbol dumper. 16077OBJDUMP=$lt_OBJDUMP 16078 16079# Method to check whether dependent libraries are shared objects. 16080deplibs_check_method=$lt_deplibs_check_method 16081 16082# Command to use when deplibs_check_method = "file_magic". 16083file_magic_cmd=$lt_file_magic_cmd 16084 16085# How to find potential files when deplibs_check_method = "file_magic". 16086file_magic_glob=$lt_file_magic_glob 16087 16088# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16089want_nocaseglob=$lt_want_nocaseglob 16090 16091# DLL creation program. 16092DLLTOOL=$lt_DLLTOOL 16093 16094# Command to associate shared and link libraries. 16095sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16096 16097# The archiver. 16098AR=$lt_AR 16099 16100# Flags to create an archive. 16101AR_FLAGS=$lt_AR_FLAGS 16102 16103# How to feed a file listing to the archiver. 16104archiver_list_spec=$lt_archiver_list_spec 16105 16106# A symbol stripping program. 16107STRIP=$lt_STRIP 16108 16109# Commands used to install an old-style archive. 16110RANLIB=$lt_RANLIB 16111old_postinstall_cmds=$lt_old_postinstall_cmds 16112old_postuninstall_cmds=$lt_old_postuninstall_cmds 16113 16114# Whether to use a lock for old archive extraction. 16115lock_old_archive_extraction=$lock_old_archive_extraction 16116 16117# A C compiler. 16118LTCC=$lt_CC 16119 16120# LTCC compiler flags. 16121LTCFLAGS=$lt_CFLAGS 16122 16123# Take the output of nm and produce a listing of raw symbols and C names. 16124global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16125 16126# Transform the output of nm in a proper C declaration. 16127global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16128 16129# Transform the output of nm into a list of symbols to manually relocate. 16130global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 16131 16132# Transform the output of nm in a C name address pair. 16133global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16134 16135# Transform the output of nm in a C name address pair when lib prefix is needed. 16136global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16137 16138# The name lister interface. 16139nm_interface=$lt_lt_cv_nm_interface 16140 16141# Specify filename containing input files for \$NM. 16142nm_file_list_spec=$lt_nm_file_list_spec 16143 16144# The root where to search for dependent libraries,and where our libraries should be installed. 16145lt_sysroot=$lt_sysroot 16146 16147# Command to truncate a binary pipe. 16148lt_truncate_bin=$lt_lt_cv_truncate_bin 16149 16150# The name of the directory that contains temporary libtool files. 16151objdir=$objdir 16152 16153# Used to examine libraries when file_magic_cmd begins with "file". 16154MAGIC_CMD=$MAGIC_CMD 16155 16156# Must we lock files when doing compilation? 16157need_locks=$lt_need_locks 16158 16159# Manifest tool. 16160MANIFEST_TOOL=$lt_MANIFEST_TOOL 16161 16162# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16163DSYMUTIL=$lt_DSYMUTIL 16164 16165# Tool to change global to local symbols on Mac OS X. 16166NMEDIT=$lt_NMEDIT 16167 16168# Tool to manipulate fat objects and archives on Mac OS X. 16169LIPO=$lt_LIPO 16170 16171# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16172OTOOL=$lt_OTOOL 16173 16174# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16175OTOOL64=$lt_OTOOL64 16176 16177# Old archive suffix (normally "a"). 16178libext=$libext 16179 16180# Shared library suffix (normally ".so"). 16181shrext_cmds=$lt_shrext_cmds 16182 16183# The commands to extract the exported symbol list from a shared archive. 16184extract_expsyms_cmds=$lt_extract_expsyms_cmds 16185 16186# Variables whose values should be saved in libtool wrapper scripts and 16187# restored at link time. 16188variables_saved_for_relink=$lt_variables_saved_for_relink 16189 16190# Do we need the "lib" prefix for modules? 16191need_lib_prefix=$need_lib_prefix 16192 16193# Do we need a version for libraries? 16194need_version=$need_version 16195 16196# Library versioning type. 16197version_type=$version_type 16198 16199# Shared library runtime path variable. 16200runpath_var=$runpath_var 16201 16202# Shared library path variable. 16203shlibpath_var=$shlibpath_var 16204 16205# Is shlibpath searched before the hard-coded library search path? 16206shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16207 16208# Format of library name prefix. 16209libname_spec=$lt_libname_spec 16210 16211# List of archive names. First name is the real one, the rest are links. 16212# The last name is the one that the linker finds with -lNAME 16213library_names_spec=$lt_library_names_spec 16214 16215# The coded name of the library, if different from the real name. 16216soname_spec=$lt_soname_spec 16217 16218# Permission mode override for installation of shared libraries. 16219install_override_mode=$lt_install_override_mode 16220 16221# Command to use after installation of a shared archive. 16222postinstall_cmds=$lt_postinstall_cmds 16223 16224# Command to use after uninstallation of a shared archive. 16225postuninstall_cmds=$lt_postuninstall_cmds 16226 16227# Commands used to finish a libtool library installation in a directory. 16228finish_cmds=$lt_finish_cmds 16229 16230# As "finish_cmds", except a single script fragment to be evaled but 16231# not shown. 16232finish_eval=$lt_finish_eval 16233 16234# Whether we should hardcode library paths into libraries. 16235hardcode_into_libs=$hardcode_into_libs 16236 16237# Compile-time system search path for libraries. 16238sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16239 16240# Detected run-time system search path for libraries. 16241sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 16242 16243# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 16244configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 16245 16246# Whether dlopen is supported. 16247dlopen_support=$enable_dlopen 16248 16249# Whether dlopen of programs is supported. 16250dlopen_self=$enable_dlopen_self 16251 16252# Whether dlopen of statically linked programs is supported. 16253dlopen_self_static=$enable_dlopen_self_static 16254 16255# Commands to strip libraries. 16256old_striplib=$lt_old_striplib 16257striplib=$lt_striplib 16258 16259# Assembler program. 16260AS=$lt_AS 16261 16262 16263# The linker used to build libraries. 16264LD=$lt_LD 16265 16266# How to create reloadable object files. 16267reload_flag=$lt_reload_flag 16268reload_cmds=$lt_reload_cmds 16269 16270# Commands used to build an old-style archive. 16271old_archive_cmds=$lt_old_archive_cmds 16272 16273# A language specific compiler. 16274CC=$lt_compiler 16275 16276# Is the compiler the GNU compiler? 16277with_gcc=$GCC 16278 16279# Compiler flag to turn off builtin functions. 16280no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16281 16282# Additional compiler flags for building library objects. 16283pic_flag=$lt_lt_prog_compiler_pic 16284 16285# How to pass a linker flag through the compiler. 16286wl=$lt_lt_prog_compiler_wl 16287 16288# Compiler flag to prevent dynamic linking. 16289link_static_flag=$lt_lt_prog_compiler_static 16290 16291# Does compiler simultaneously support -c and -o options? 16292compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16293 16294# Whether or not to add -lc for building shared libraries. 16295build_libtool_need_lc=$archive_cmds_need_lc 16296 16297# Whether or not to disallow shared libs when runtime libs are static. 16298allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16299 16300# Compiler flag to allow reflexive dlopens. 16301export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16302 16303# Compiler flag to generate shared objects directly from archives. 16304whole_archive_flag_spec=$lt_whole_archive_flag_spec 16305 16306# Whether the compiler copes with passing no objects directly. 16307compiler_needs_object=$lt_compiler_needs_object 16308 16309# Create an old-style archive from a shared archive. 16310old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16311 16312# Create a temporary old-style archive to link instead of a shared archive. 16313old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16314 16315# Commands used to build a shared archive. 16316archive_cmds=$lt_archive_cmds 16317archive_expsym_cmds=$lt_archive_expsym_cmds 16318 16319# Commands used to build a loadable module if different from building 16320# a shared archive. 16321module_cmds=$lt_module_cmds 16322module_expsym_cmds=$lt_module_expsym_cmds 16323 16324# Whether we are building with GNU ld or not. 16325with_gnu_ld=$lt_with_gnu_ld 16326 16327# Flag that allows shared libraries with undefined symbols to be built. 16328allow_undefined_flag=$lt_allow_undefined_flag 16329 16330# Flag that enforces no undefined symbols. 16331no_undefined_flag=$lt_no_undefined_flag 16332 16333# Flag to hardcode \$libdir into a binary during linking. 16334# This must work even if \$libdir does not exist 16335hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16336 16337# Whether we need a single "-rpath" flag with a separated argument. 16338hardcode_libdir_separator=$lt_hardcode_libdir_separator 16339 16340# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16341# DIR into the resulting binary. 16342hardcode_direct=$hardcode_direct 16343 16344# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16345# DIR into the resulting binary and the resulting library dependency is 16346# "absolute",i.e impossible to change by setting \$shlibpath_var if the 16347# library is relocated. 16348hardcode_direct_absolute=$hardcode_direct_absolute 16349 16350# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16351# into the resulting binary. 16352hardcode_minus_L=$hardcode_minus_L 16353 16354# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16355# into the resulting binary. 16356hardcode_shlibpath_var=$hardcode_shlibpath_var 16357 16358# Set to "yes" if building a shared library automatically hardcodes DIR 16359# into the library and all subsequent libraries and executables linked 16360# against it. 16361hardcode_automatic=$hardcode_automatic 16362 16363# Set to yes if linker adds runtime paths of dependent libraries 16364# to runtime path list. 16365inherit_rpath=$inherit_rpath 16366 16367# Whether libtool must link a program against all its dependency libraries. 16368link_all_deplibs=$link_all_deplibs 16369 16370# Set to "yes" if exported symbols are required. 16371always_export_symbols=$always_export_symbols 16372 16373# The commands to list exported symbols. 16374export_symbols_cmds=$lt_export_symbols_cmds 16375 16376# Symbols that should not be listed in the preloaded symbols. 16377exclude_expsyms=$lt_exclude_expsyms 16378 16379# Symbols that must always be exported. 16380include_expsyms=$lt_include_expsyms 16381 16382# Commands necessary for linking programs (against libraries) with templates. 16383prelink_cmds=$lt_prelink_cmds 16384 16385# Commands necessary for finishing linking programs. 16386postlink_cmds=$lt_postlink_cmds 16387 16388# Specify filename containing input files. 16389file_list_spec=$lt_file_list_spec 16390 16391# How to hardcode a shared library path into an executable. 16392hardcode_action=$hardcode_action 16393 16394# ### END LIBTOOL CONFIG 16395 16396_LT_EOF 16397 16398 cat <<'_LT_EOF' >> "$cfgfile" 16399 16400# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 16401 16402# func_munge_path_list VARIABLE PATH 16403# ----------------------------------- 16404# VARIABLE is name of variable containing _space_ separated list of 16405# directories to be munged by the contents of PATH, which is string 16406# having a format: 16407# "DIR[:DIR]:" 16408# string "DIR[ DIR]" will be prepended to VARIABLE 16409# ":DIR[:DIR]" 16410# string "DIR[ DIR]" will be appended to VARIABLE 16411# "DIRP[:DIRP]::[DIRA:]DIRA" 16412# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16413# "DIRA[ DIRA]" will be appended to VARIABLE 16414# "DIR[:DIR]" 16415# VARIABLE will be replaced by "DIR[ DIR]" 16416func_munge_path_list () 16417{ 16418 case x$2 in 16419 x) 16420 ;; 16421 *:) 16422 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16423 ;; 16424 x:*) 16425 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16426 ;; 16427 *::*) 16428 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16429 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16430 ;; 16431 *) 16432 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16433 ;; 16434 esac 16435} 16436 16437 16438# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16439func_cc_basename () 16440{ 16441 for cc_temp in $*""; do 16442 case $cc_temp in 16443 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16444 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16445 \-*) ;; 16446 *) break;; 16447 esac 16448 done 16449 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16450} 16451 16452 16453# ### END FUNCTIONS SHARED WITH CONFIGURE 16454 16455_LT_EOF 16456 16457 case $host_os in 16458 aix3*) 16459 cat <<\_LT_EOF >> "$cfgfile" 16460# AIX sometimes has problems with the GCC collect2 program. For some 16461# reason, if we set the COLLECT_NAMES environment variable, the problems 16462# vanish in a puff of smoke. 16463if test set != "${COLLECT_NAMES+set}"; then 16464 COLLECT_NAMES= 16465 export COLLECT_NAMES 16466fi 16467_LT_EOF 16468 ;; 16469 esac 16470 16471 16472ltmain=$ac_aux_dir/ltmain.sh 16473 16474 16475 # We use sed instead of cat because bash on DJGPP gets confused if 16476 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16477 # text mode, it properly converts lines to CR/LF. This bash problem 16478 # is reportedly fixed, but why not run on old versions too? 16479 sed '$q' "$ltmain" >> "$cfgfile" \ 16480 || (rm -f "$cfgfile"; exit 1) 16481 16482 mv -f "$cfgfile" "$ofile" || 16483 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16484 chmod +x "$ofile" 16485 16486 ;; 16487 16488 esac 16489done # for ac_tag 16490 16491 16492as_fn_exit 0 16493_ACEOF 16494ac_clean_files=$ac_clean_files_save 16495 16496test $ac_write_fail = 0 || 16497 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16498 16499 16500# configure is writing to config.log, and then calls config.status. 16501# config.status does its own redirection, appending to config.log. 16502# Unfortunately, on DOS this fails, as config.log is still kept open 16503# by configure, so config.status won't be able to write to it; its 16504# output is simply discarded. So we exec the FD to /dev/null, 16505# effectively closing config.log, so it can be properly (re)opened and 16506# appended to by config.status. When coming back to configure, we 16507# need to make the FD available again. 16508if test "$no_create" != yes; then 16509 ac_cs_success=: 16510 ac_config_status_args= 16511 test "$silent" = yes && 16512 ac_config_status_args="$ac_config_status_args --quiet" 16513 exec 5>/dev/null 16514 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16515 exec 5>>config.log 16516 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16517 # would make configure fail if this is the last instruction. 16518 $ac_cs_success || as_fn_exit 1 16519fi 16520if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16522$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16523fi 16524 16525