1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for pkgconf 1.8.0. 4# 5# Report bugs to <https://github.com/pkgconf/pkgconf/issues/new>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 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'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://github.com/pkgconf/pkgconf/issues/new about 280$0: your system, including any error possibly output before 281$0: this message. Then install a modern shell, or manually 282$0: run the script under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306 307# as_fn_set_status STATUS 308# ----------------------- 309# Set $? to STATUS, without forking. 310as_fn_set_status () 311{ 312 return $1 313} # as_fn_set_status 314 315# as_fn_exit STATUS 316# ----------------- 317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 318as_fn_exit () 319{ 320 set +e 321 as_fn_set_status $1 322 exit $1 323} # as_fn_exit 324# as_fn_nop 325# --------- 326# Do nothing but, unlike ":", preserve the value of $?. 327as_fn_nop () 328{ 329 return $? 330} 331as_nop=as_fn_nop 332 333# as_fn_mkdir_p 334# ------------- 335# Create "$as_dir" as a directory, including parents if necessary. 336as_fn_mkdir_p () 337{ 338 339 case $as_dir in #( 340 -*) as_dir=./$as_dir;; 341 esac 342 test -d "$as_dir" || eval $as_mkdir_p || { 343 as_dirs= 344 while :; do 345 case $as_dir in #( 346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 347 *) as_qdir=$as_dir;; 348 esac 349 as_dirs="'$as_qdir' $as_dirs" 350 as_dir=`$as_dirname -- "$as_dir" || 351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 352 X"$as_dir" : 'X\(//\)[^/]' \| \ 353 X"$as_dir" : 'X\(//\)$' \| \ 354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 355printf "%s\n" X"$as_dir" | 356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)[^/].*/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\/\)$/{ 365 s//\1/ 366 q 367 } 368 /^X\(\/\).*/{ 369 s//\1/ 370 q 371 } 372 s/.*/./; q'` 373 test -d "$as_dir" && break 374 done 375 test -z "$as_dirs" || eval "mkdir $as_dirs" 376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 377 378 379} # as_fn_mkdir_p 380 381# as_fn_executable_p FILE 382# ----------------------- 383# Test if FILE is an executable regular file. 384as_fn_executable_p () 385{ 386 test -f "$1" && test -x "$1" 387} # as_fn_executable_p 388# as_fn_append VAR VALUE 389# ---------------------- 390# Append the text in VALUE to the end of the definition contained in VAR. Take 391# advantage of any shell optimizations that allow amortized linear growth over 392# repeated appends, instead of the typical quadratic growth present in naive 393# implementations. 394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 395then : 396 eval 'as_fn_append () 397 { 398 eval $1+=\$2 399 }' 400else $as_nop 401 as_fn_append () 402 { 403 eval $1=\$$1\$2 404 } 405fi # as_fn_append 406 407# as_fn_arith ARG... 408# ------------------ 409# Perform arithmetic evaluation on the ARGs, and store the result in the 410# global $as_val. Take advantage of shells that can avoid forks. The arguments 411# must be portable across $(()) and expr. 412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 413then : 414 eval 'as_fn_arith () 415 { 416 as_val=$(( $* )) 417 }' 418else $as_nop 419 as_fn_arith () 420 { 421 as_val=`expr "$@" || test $? -eq 1` 422 } 423fi # as_fn_arith 424 425# as_fn_nop 426# --------- 427# Do nothing but, unlike ":", preserve the value of $?. 428as_fn_nop () 429{ 430 return $? 431} 432as_nop=as_fn_nop 433 434# as_fn_error STATUS ERROR [LINENO LOG_FD] 435# ---------------------------------------- 436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 438# script with STATUS, using 1 if that was 0. 439as_fn_error () 440{ 441 as_status=$1; test $as_status -eq 0 && as_status=1 442 if test "$4"; then 443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 445 fi 446 printf "%s\n" "$as_me: error: $2" >&2 447 as_fn_exit $as_status 448} # as_fn_error 449 450if expr a : '\(a\)' >/dev/null 2>&1 && 451 test "X`expr 00001 : '.*\(...\)'`" = X001; then 452 as_expr=expr 453else 454 as_expr=false 455fi 456 457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 458 as_basename=basename 459else 460 as_basename=false 461fi 462 463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 464 as_dirname=dirname 465else 466 as_dirname=false 467fi 468 469as_me=`$as_basename -- "$0" || 470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 471 X"$0" : 'X\(//\)$' \| \ 472 X"$0" : 'X\(/\)' \| . 2>/dev/null || 473printf "%s\n" X/"$0" | 474 sed '/^.*\/\([^/][^/]*\)\/*$/{ 475 s//\1/ 476 q 477 } 478 /^X\/\(\/\/\)$/{ 479 s//\1/ 480 q 481 } 482 /^X\/\(\/\).*/{ 483 s//\1/ 484 q 485 } 486 s/.*/./; q'` 487 488# Avoid depending upon Character Ranges. 489as_cr_letters='abcdefghijklmnopqrstuvwxyz' 490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 491as_cr_Letters=$as_cr_letters$as_cr_LETTERS 492as_cr_digits='0123456789' 493as_cr_alnum=$as_cr_Letters$as_cr_digits 494 495 496 as_lineno_1=$LINENO as_lineno_1a=$LINENO 497 as_lineno_2=$LINENO as_lineno_2a=$LINENO 498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 501 sed -n ' 502 p 503 /[$]LINENO/= 504 ' <$as_myself | 505 sed ' 506 s/[$]LINENO.*/&-/ 507 t lineno 508 b 509 :lineno 510 N 511 :loop 512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 513 t loop 514 s/-\n.*// 515 ' >$as_me.lineno && 516 chmod +x "$as_me.lineno" || 517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 518 519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 520 # already done that, so ensure we don't try to do so again and fall 521 # in an infinite loop. This has already happened in practice. 522 _as_can_reexec=no; export _as_can_reexec 523 # Don't try to exec as it changes $[0], causing all sort of problems 524 # (the dirname of $[0] is not the place where we might find the 525 # original and so on. Autoconf is especially sensitive to this). 526 . "./$as_me.lineno" 527 # Exit status is that of the last command. 528 exit 529} 530 531 532# Determine whether it's possible to make 'echo' print without a newline. 533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 534# for compatibility with existing Makefiles. 535ECHO_C= ECHO_N= ECHO_T= 536case `echo -n x` in #((((( 537-n*) 538 case `echo 'xy\c'` in 539 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 540 xy) ECHO_C='\c';; 541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 542 ECHO_T=' ';; 543 esac;; 544*) 545 ECHO_N='-n';; 546esac 547 548# For backward compatibility with old third-party macros, we provide 549# the shell variables $as_echo and $as_echo_n. New code should use 550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 551as_echo='printf %s\n' 552as_echo_n='printf %s' 553 554 555rm -f conf$$ conf$$.exe conf$$.file 556if test -d conf$$.dir; then 557 rm -f conf$$.dir/conf$$.file 558else 559 rm -f conf$$.dir 560 mkdir conf$$.dir 2>/dev/null 561fi 562if (echo >conf$$.file) 2>/dev/null; then 563 if ln -s conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s='ln -s' 565 # ... but there are two gotchas: 566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 568 # In both cases, we have to default to `cp -pR'. 569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 570 as_ln_s='cp -pR' 571 elif ln conf$$.file conf$$ 2>/dev/null; then 572 as_ln_s=ln 573 else 574 as_ln_s='cp -pR' 575 fi 576else 577 as_ln_s='cp -pR' 578fi 579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 580rmdir conf$$.dir 2>/dev/null 581 582if mkdir -p . 2>/dev/null; then 583 as_mkdir_p='mkdir -p "$as_dir"' 584else 585 test -d ./-p && rmdir ./-p 586 as_mkdir_p=false 587fi 588 589as_test_x='test -x' 590as_executable_p=as_fn_executable_p 591 592# Sed expression to map a string onto a valid CPP name. 593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 594 595# Sed expression to map a string onto a valid variable name. 596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 597 598SHELL=${CONFIG_SHELL-/bin/sh} 599 600 601test -n "$DJDIR" || exec 7<&0 </dev/null 602exec 6>&1 603 604# Name of the host. 605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 606# so uname gets run too. 607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 608 609# 610# Initializations. 611# 612ac_default_prefix=/usr/local 613ac_clean_files= 614ac_config_libobj_dir=. 615LIBOBJS= 616cross_compiling=no 617subdirs= 618MFLAGS= 619MAKEFLAGS= 620 621# Identity of this package. 622PACKAGE_NAME='pkgconf' 623PACKAGE_TARNAME='pkgconf' 624PACKAGE_VERSION='1.8.0' 625PACKAGE_STRING='pkgconf 1.8.0' 626PACKAGE_BUGREPORT='https://github.com/pkgconf/pkgconf/issues/new' 627PACKAGE_URL='' 628 629ac_unique_file="cli/main.c" 630# Factoring default headers for most tests. 631ac_includes_default="\ 632#include <stddef.h> 633#ifdef HAVE_STDIO_H 634# include <stdio.h> 635#endif 636#ifdef HAVE_STDLIB_H 637# include <stdlib.h> 638#endif 639#ifdef HAVE_STRING_H 640# include <string.h> 641#endif 642#ifdef HAVE_INTTYPES_H 643# include <inttypes.h> 644#endif 645#ifdef HAVE_STDINT_H 646# include <stdint.h> 647#endif 648#ifdef HAVE_STRINGS_H 649# include <strings.h> 650#endif 651#ifdef HAVE_SYS_TYPES_H 652# include <sys/types.h> 653#endif 654#ifdef HAVE_SYS_STAT_H 655# include <sys/stat.h> 656#endif 657#ifdef HAVE_UNISTD_H 658# include <unistd.h> 659#endif" 660 661ac_header_c_list= 662ac_subst_vars='am__EXEEXT_FALSE 663am__EXEEXT_TRUE 664LTLIBOBJS 665LIBOBJS 666CPP 667SYSTEM_INCLUDEDIR 668SYSTEM_LIBDIR 669PKG_DEFAULT_PATH 670PERSONALITY_PATH 671LT_SYS_LIBRARY_PATH 672OTOOL64 673OTOOL 674LIPO 675NMEDIT 676DSYMUTIL 677MANIFEST_TOOL 678RANLIB 679ac_ct_AR 680AR 681DLLTOOL 682OBJDUMP 683LN_S 684NM 685ac_ct_DUMPBIN 686DUMPBIN 687LD 688FGREP 689EGREP 690GREP 691SED 692host_os 693host_vendor 694host_cpu 695host 696build_os 697build_vendor 698build_cpu 699build 700LIBTOOL 701AM_BACKSLASH 702AM_DEFAULT_VERBOSITY 703AM_DEFAULT_V 704AM_V 705am__fastdepCC_FALSE 706am__fastdepCC_TRUE 707CCDEPMODE 708am__nodep 709AMDEPBACKSLASH 710AMDEP_FALSE 711AMDEP_TRUE 712am__include 713DEPDIR 714am__untar 715am__tar 716AMTAR 717am__leading_dot 718SET_MAKE 719AWK 720mkdir_p 721MKDIR_P 722INSTALL_STRIP_PROGRAM 723STRIP 724install_sh 725MAKEINFO 726AUTOHEADER 727AUTOMAKE 728AUTOCONF 729ACLOCAL 730VERSION 731PACKAGE 732CYGPATH_W 733am__isrc 734INSTALL_DATA 735INSTALL_SCRIPT 736INSTALL_PROGRAM 737OBJEXT 738EXEEXT 739ac_ct_CC 740CPPFLAGS 741LDFLAGS 742CFLAGS 743CC 744target_alias 745host_alias 746build_alias 747LIBS 748ECHO_T 749ECHO_N 750ECHO_C 751DEFS 752mandir 753localedir 754libdir 755psdir 756pdfdir 757dvidir 758htmldir 759infodir 760docdir 761oldincludedir 762includedir 763runstatedir 764localstatedir 765sharedstatedir 766sysconfdir 767datadir 768datarootdir 769libexecdir 770sbindir 771bindir 772program_transform_name 773prefix 774exec_prefix 775PACKAGE_URL 776PACKAGE_BUGREPORT 777PACKAGE_STRING 778PACKAGE_VERSION 779PACKAGE_TARNAME 780PACKAGE_NAME 781PATH_SEPARATOR 782SHELL 783am__quote' 784ac_subst_files='' 785ac_user_opts=' 786enable_option_checking 787enable_dependency_tracking 788enable_silent_rules 789enable_shared 790enable_static 791with_pic 792enable_fast_install 793with_aix_soname 794with_gnu_ld 795with_sysroot 796enable_libtool_lock 797enable_largefile 798with_personality_dir 799with_pkg_config_dir 800with_system_libdir 801with_system_includedir 802' 803 ac_precious_vars='build_alias 804host_alias 805target_alias 806CC 807CFLAGS 808LDFLAGS 809LIBS 810CPPFLAGS 811LT_SYS_LIBRARY_PATH 812CPP' 813 814 815# Initialize some variables set by options. 816ac_init_help= 817ac_init_version=false 818ac_unrecognized_opts= 819ac_unrecognized_sep= 820# The variables have the same names as the options, with 821# dashes changed to underlines. 822cache_file=/dev/null 823exec_prefix=NONE 824no_create= 825no_recursion= 826prefix=NONE 827program_prefix=NONE 828program_suffix=NONE 829program_transform_name=s,x,x, 830silent= 831site= 832srcdir= 833verbose= 834x_includes=NONE 835x_libraries=NONE 836 837# Installation directory options. 838# These are left unexpanded so users can "make install exec_prefix=/foo" 839# and all the variables that are supposed to be based on exec_prefix 840# by default will actually change. 841# Use braces instead of parens because sh, perl, etc. also accept them. 842# (The list follows the same order as the GNU Coding Standards.) 843bindir='${exec_prefix}/bin' 844sbindir='${exec_prefix}/sbin' 845libexecdir='${exec_prefix}/libexec' 846datarootdir='${prefix}/share' 847datadir='${datarootdir}' 848sysconfdir='${prefix}/etc' 849sharedstatedir='${prefix}/com' 850localstatedir='${prefix}/var' 851runstatedir='${localstatedir}/run' 852includedir='${prefix}/include' 853oldincludedir='/usr/include' 854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 855infodir='${datarootdir}/info' 856htmldir='${docdir}' 857dvidir='${docdir}' 858pdfdir='${docdir}' 859psdir='${docdir}' 860libdir='${exec_prefix}/lib' 861localedir='${datarootdir}/locale' 862mandir='${datarootdir}/man' 863 864ac_prev= 865ac_dashdash= 866for ac_option 867do 868 # If the previous option needs an argument, assign it. 869 if test -n "$ac_prev"; then 870 eval $ac_prev=\$ac_option 871 ac_prev= 872 continue 873 fi 874 875 case $ac_option in 876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 877 *=) ac_optarg= ;; 878 *) ac_optarg=yes ;; 879 esac 880 881 case $ac_dashdash$ac_option in 882 --) 883 ac_dashdash=yes ;; 884 885 -bindir | --bindir | --bindi | --bind | --bin | --bi) 886 ac_prev=bindir ;; 887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 888 bindir=$ac_optarg ;; 889 890 -build | --build | --buil | --bui | --bu) 891 ac_prev=build_alias ;; 892 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 893 build_alias=$ac_optarg ;; 894 895 -cache-file | --cache-file | --cache-fil | --cache-fi \ 896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 897 ac_prev=cache_file ;; 898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 900 cache_file=$ac_optarg ;; 901 902 --config-cache | -C) 903 cache_file=config.cache ;; 904 905 -datadir | --datadir | --datadi | --datad) 906 ac_prev=datadir ;; 907 -datadir=* | --datadir=* | --datadi=* | --datad=*) 908 datadir=$ac_optarg ;; 909 910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 911 | --dataroo | --dataro | --datar) 912 ac_prev=datarootdir ;; 913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 915 datarootdir=$ac_optarg ;; 916 917 -disable-* | --disable-*) 918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 919 # Reject names that are not valid shell variable names. 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 921 as_fn_error $? "invalid feature name: \`$ac_useropt'" 922 ac_useropt_orig=$ac_useropt 923 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 924 case $ac_user_opts in 925 *" 926"enable_$ac_useropt" 927"*) ;; 928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 929 ac_unrecognized_sep=', ';; 930 esac 931 eval enable_$ac_useropt=no ;; 932 933 -docdir | --docdir | --docdi | --doc | --do) 934 ac_prev=docdir ;; 935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 936 docdir=$ac_optarg ;; 937 938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 939 ac_prev=dvidir ;; 940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 941 dvidir=$ac_optarg ;; 942 943 -enable-* | --enable-*) 944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947 as_fn_error $? "invalid feature name: \`$ac_useropt'" 948 ac_useropt_orig=$ac_useropt 949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 950 case $ac_user_opts in 951 *" 952"enable_$ac_useropt" 953"*) ;; 954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 955 ac_unrecognized_sep=', ';; 956 esac 957 eval enable_$ac_useropt=\$ac_optarg ;; 958 959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 961 | --exec | --exe | --ex) 962 ac_prev=exec_prefix ;; 963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 965 | --exec=* | --exe=* | --ex=*) 966 exec_prefix=$ac_optarg ;; 967 968 -gas | --gas | --ga | --g) 969 # Obsolete; use --with-gas. 970 with_gas=yes ;; 971 972 -help | --help | --hel | --he | -h) 973 ac_init_help=long ;; 974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 975 ac_init_help=recursive ;; 976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 977 ac_init_help=short ;; 978 979 -host | --host | --hos | --ho) 980 ac_prev=host_alias ;; 981 -host=* | --host=* | --hos=* | --ho=*) 982 host_alias=$ac_optarg ;; 983 984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 985 ac_prev=htmldir ;; 986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 987 | --ht=*) 988 htmldir=$ac_optarg ;; 989 990 -includedir | --includedir | --includedi | --included | --include \ 991 | --includ | --inclu | --incl | --inc) 992 ac_prev=includedir ;; 993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 994 | --includ=* | --inclu=* | --incl=* | --inc=*) 995 includedir=$ac_optarg ;; 996 997 -infodir | --infodir | --infodi | --infod | --info | --inf) 998 ac_prev=infodir ;; 999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1000 infodir=$ac_optarg ;; 1001 1002 -libdir | --libdir | --libdi | --libd) 1003 ac_prev=libdir ;; 1004 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1005 libdir=$ac_optarg ;; 1006 1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1008 | --libexe | --libex | --libe) 1009 ac_prev=libexecdir ;; 1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1011 | --libexe=* | --libex=* | --libe=*) 1012 libexecdir=$ac_optarg ;; 1013 1014 -localedir | --localedir | --localedi | --localed | --locale) 1015 ac_prev=localedir ;; 1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1017 localedir=$ac_optarg ;; 1018 1019 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1020 | --localstate | --localstat | --localsta | --localst | --locals) 1021 ac_prev=localstatedir ;; 1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1024 localstatedir=$ac_optarg ;; 1025 1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1027 ac_prev=mandir ;; 1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1029 mandir=$ac_optarg ;; 1030 1031 -nfp | --nfp | --nf) 1032 # Obsolete; use --without-fp. 1033 with_fp=no ;; 1034 1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1036 | --no-cr | --no-c | -n) 1037 no_create=yes ;; 1038 1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1041 no_recursion=yes ;; 1042 1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1045 | --oldin | --oldi | --old | --ol | --o) 1046 ac_prev=oldincludedir ;; 1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1050 oldincludedir=$ac_optarg ;; 1051 1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1053 ac_prev=prefix ;; 1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1055 prefix=$ac_optarg ;; 1056 1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1058 | --program-pre | --program-pr | --program-p) 1059 ac_prev=program_prefix ;; 1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1062 program_prefix=$ac_optarg ;; 1063 1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1065 | --program-suf | --program-su | --program-s) 1066 ac_prev=program_suffix ;; 1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1069 program_suffix=$ac_optarg ;; 1070 1071 -program-transform-name | --program-transform-name \ 1072 | --program-transform-nam | --program-transform-na \ 1073 | --program-transform-n | --program-transform- \ 1074 | --program-transform | --program-transfor \ 1075 | --program-transfo | --program-transf \ 1076 | --program-trans | --program-tran \ 1077 | --progr-tra | --program-tr | --program-t) 1078 ac_prev=program_transform_name ;; 1079 -program-transform-name=* | --program-transform-name=* \ 1080 | --program-transform-nam=* | --program-transform-na=* \ 1081 | --program-transform-n=* | --program-transform-=* \ 1082 | --program-transform=* | --program-transfor=* \ 1083 | --program-transfo=* | --program-transf=* \ 1084 | --program-trans=* | --program-tran=* \ 1085 | --progr-tra=* | --program-tr=* | --program-t=*) 1086 program_transform_name=$ac_optarg ;; 1087 1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1089 ac_prev=pdfdir ;; 1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1091 pdfdir=$ac_optarg ;; 1092 1093 -psdir | --psdir | --psdi | --psd | --ps) 1094 ac_prev=psdir ;; 1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1096 psdir=$ac_optarg ;; 1097 1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1099 | -silent | --silent | --silen | --sile | --sil) 1100 silent=yes ;; 1101 1102 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1103 | --runstate | --runstat | --runsta | --runst | --runs \ 1104 | --run | --ru | --r) 1105 ac_prev=runstatedir ;; 1106 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1107 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1108 | --run=* | --ru=* | --r=*) 1109 runstatedir=$ac_optarg ;; 1110 1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1112 ac_prev=sbindir ;; 1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1114 | --sbi=* | --sb=*) 1115 sbindir=$ac_optarg ;; 1116 1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1119 | --sharedst | --shareds | --shared | --share | --shar \ 1120 | --sha | --sh) 1121 ac_prev=sharedstatedir ;; 1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1125 | --sha=* | --sh=*) 1126 sharedstatedir=$ac_optarg ;; 1127 1128 -site | --site | --sit) 1129 ac_prev=site ;; 1130 -site=* | --site=* | --sit=*) 1131 site=$ac_optarg ;; 1132 1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1134 ac_prev=srcdir ;; 1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1136 srcdir=$ac_optarg ;; 1137 1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1139 | --syscon | --sysco | --sysc | --sys | --sy) 1140 ac_prev=sysconfdir ;; 1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1143 sysconfdir=$ac_optarg ;; 1144 1145 -target | --target | --targe | --targ | --tar | --ta | --t) 1146 ac_prev=target_alias ;; 1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1148 target_alias=$ac_optarg ;; 1149 1150 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1151 verbose=yes ;; 1152 1153 -version | --version | --versio | --versi | --vers | -V) 1154 ac_init_version=: ;; 1155 1156 -with-* | --with-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: \`$ac_useropt'" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"with_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=\$ac_optarg ;; 1171 1172 -without-* | --without-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid package name: \`$ac_useropt'" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181"with_$ac_useropt" 1182"*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval with_$ac_useropt=no ;; 1187 1188 --x) 1189 # Obsolete; use --with-x. 1190 with_x=yes ;; 1191 1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1193 | --x-incl | --x-inc | --x-in | --x-i) 1194 ac_prev=x_includes ;; 1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1197 x_includes=$ac_optarg ;; 1198 1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1201 ac_prev=x_libraries ;; 1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1204 x_libraries=$ac_optarg ;; 1205 1206 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1207Try \`$0 --help' for more information" 1208 ;; 1209 1210 *=*) 1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1212 # Reject names that are not valid shell variable names. 1213 case $ac_envvar in #( 1214 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1216 esac 1217 eval $ac_envvar=\$ac_optarg 1218 export $ac_envvar ;; 1219 1220 *) 1221 # FIXME: should be removed in autoconf 3.0. 1222 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1224 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1226 ;; 1227 1228 esac 1229done 1230 1231if test -n "$ac_prev"; then 1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1233 as_fn_error $? "missing argument to $ac_option" 1234fi 1235 1236if test -n "$ac_unrecognized_opts"; then 1237 case $enable_option_checking in 1238 no) ;; 1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1240 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1241 esac 1242fi 1243 1244# Check all directory arguments for consistency. 1245for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1246 datadir sysconfdir sharedstatedir localstatedir includedir \ 1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1248 libdir localedir mandir runstatedir 1249do 1250 eval ac_val=\$$ac_var 1251 # Remove trailing slashes. 1252 case $ac_val in 1253 */ ) 1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1255 eval $ac_var=\$ac_val;; 1256 esac 1257 # Be sure to have absolute directory names. 1258 case $ac_val in 1259 [\\/$]* | ?:[\\/]* ) continue;; 1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1261 esac 1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1263done 1264 1265# There might be people who depend on the old broken behavior: `$host' 1266# used to hold the argument of --host etc. 1267# FIXME: To remove some day. 1268build=$build_alias 1269host=$host_alias 1270target=$target_alias 1271 1272# FIXME: To remove some day. 1273if test "x$host_alias" != x; then 1274 if test "x$build_alias" = x; then 1275 cross_compiling=maybe 1276 elif test "x$build_alias" != "x$host_alias"; then 1277 cross_compiling=yes 1278 fi 1279fi 1280 1281ac_tool_prefix= 1282test -n "$host_alias" && ac_tool_prefix=$host_alias- 1283 1284test "$silent" = yes && exec 6>/dev/null 1285 1286 1287ac_pwd=`pwd` && test -n "$ac_pwd" && 1288ac_ls_di=`ls -di .` && 1289ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1290 as_fn_error $? "working directory cannot be determined" 1291test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1292 as_fn_error $? "pwd does not report name of working directory" 1293 1294 1295# Find the source files, if location was not specified. 1296if test -z "$srcdir"; then 1297 ac_srcdir_defaulted=yes 1298 # Try the directory containing this script, then the parent directory. 1299 ac_confdir=`$as_dirname -- "$as_myself" || 1300$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1301 X"$as_myself" : 'X\(//\)[^/]' \| \ 1302 X"$as_myself" : 'X\(//\)$' \| \ 1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1304printf "%s\n" X"$as_myself" | 1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\/\)[^/].*/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\/\)$/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\).*/{ 1318 s//\1/ 1319 q 1320 } 1321 s/.*/./; q'` 1322 srcdir=$ac_confdir 1323 if test ! -r "$srcdir/$ac_unique_file"; then 1324 srcdir=.. 1325 fi 1326else 1327 ac_srcdir_defaulted=no 1328fi 1329if test ! -r "$srcdir/$ac_unique_file"; then 1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1332fi 1333ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1334ac_abs_confdir=`( 1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1336 pwd)` 1337# When building in place, set srcdir=. 1338if test "$ac_abs_confdir" = "$ac_pwd"; then 1339 srcdir=. 1340fi 1341# Remove unnecessary trailing slashes from srcdir. 1342# Double slashes in file names in object file debugging info 1343# mess up M-x gdb in Emacs. 1344case $srcdir in 1345*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1346esac 1347for ac_var in $ac_precious_vars; do 1348 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1349 eval ac_env_${ac_var}_value=\$${ac_var} 1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1351 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1352done 1353 1354# 1355# Report the --help message. 1356# 1357if test "$ac_init_help" = "long"; then 1358 # Omit some internal or obsolete options to make the list less imposing. 1359 # This message is too long to be a string in the A/UX 3.1 sh. 1360 cat <<_ACEOF 1361\`configure' configures pkgconf 1.8.0 to adapt to many kinds of systems. 1362 1363Usage: $0 [OPTION]... [VAR=VALUE]... 1364 1365To assign environment variables (e.g., CC, CFLAGS...), specify them as 1366VAR=VALUE. See below for descriptions of some of the useful variables. 1367 1368Defaults for the options are specified in brackets. 1369 1370Configuration: 1371 -h, --help display this help and exit 1372 --help=short display options specific to this package 1373 --help=recursive display the short help of all the included packages 1374 -V, --version display version information and exit 1375 -q, --quiet, --silent do not print \`checking ...' messages 1376 --cache-file=FILE cache test results in FILE [disabled] 1377 -C, --config-cache alias for \`--cache-file=config.cache' 1378 -n, --no-create do not create output files 1379 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1380 1381Installation directories: 1382 --prefix=PREFIX install architecture-independent files in PREFIX 1383 [$ac_default_prefix] 1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1385 [PREFIX] 1386 1387By default, \`make install' will install all the files in 1388\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1389an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1390for instance \`--prefix=\$HOME'. 1391 1392For better control, use the options below. 1393 1394Fine tuning of the installation directories: 1395 --bindir=DIR user executables [EPREFIX/bin] 1396 --sbindir=DIR system admin executables [EPREFIX/sbin] 1397 --libexecdir=DIR program executables [EPREFIX/libexec] 1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1401 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1402 --libdir=DIR object code libraries [EPREFIX/lib] 1403 --includedir=DIR C header files [PREFIX/include] 1404 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1407 --infodir=DIR info documentation [DATAROOTDIR/info] 1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1409 --mandir=DIR man documentation [DATAROOTDIR/man] 1410 --docdir=DIR documentation root [DATAROOTDIR/doc/pkgconf] 1411 --htmldir=DIR html documentation [DOCDIR] 1412 --dvidir=DIR dvi documentation [DOCDIR] 1413 --pdfdir=DIR pdf documentation [DOCDIR] 1414 --psdir=DIR ps documentation [DOCDIR] 1415_ACEOF 1416 1417 cat <<\_ACEOF 1418 1419Program names: 1420 --program-prefix=PREFIX prepend PREFIX to installed program names 1421 --program-suffix=SUFFIX append SUFFIX to installed program names 1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1423 1424System types: 1425 --build=BUILD configure for building on BUILD [guessed] 1426 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1427_ACEOF 1428fi 1429 1430if test -n "$ac_init_help"; then 1431 case $ac_init_help in 1432 short | recursive ) echo "Configuration of pkgconf 1.8.0:";; 1433 esac 1434 cat <<\_ACEOF 1435 1436Optional Features: 1437 --disable-option-checking ignore unrecognized --enable/--with options 1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1440 --enable-dependency-tracking 1441 do not reject slow dependency extractors 1442 --disable-dependency-tracking 1443 speeds up one-time build 1444 --enable-silent-rules less verbose build output (undo: "make V=1") 1445 --disable-silent-rules verbose build output (undo: "make V=0") 1446 --enable-shared[=PKGS] build shared libraries [default=yes] 1447 --enable-static[=PKGS] build static libraries [default=yes] 1448 --enable-fast-install[=PKGS] 1449 optimize for fast installation [default=yes] 1450 --disable-libtool-lock avoid locking (might break parallel builds) 1451 --disable-largefile omit support for large files 1452 1453Optional Packages: 1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1456 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1457 both] 1458 --with-aix-soname=aix|svr4|both 1459 shared library versioning (aka "SONAME") variant to 1460 provide on AIX, [default=aix]. 1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1462 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1463 compiler's sysroot if not specified). 1464 --with-personality-dir specify the place where cross-compile personality 1465 files will be found 1466 --with-pkg-config-dir specify the place where pc files will be found 1467 --with-system-libdir specify the system library directory (default 1468 LIBDIR) 1469 --with-system-includedir 1470 specify the system include directory (default 1471 INCLUDEDIR) 1472 1473Some influential environment variables: 1474 CC C compiler command 1475 CFLAGS C compiler flags 1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1477 nonstandard directory <lib dir> 1478 LIBS libraries to pass to the linker, e.g. -l<library> 1479 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1480 you have headers in a nonstandard directory <include dir> 1481 LT_SYS_LIBRARY_PATH 1482 User-defined run-time library search path. 1483 CPP C preprocessor 1484 1485Use these variables to override the choices made by `configure' or to help 1486it to find libraries and programs with nonstandard names/locations. 1487 1488Report bugs to <https://github.com/pkgconf/pkgconf/issues/new>. 1489_ACEOF 1490ac_status=$? 1491fi 1492 1493if test "$ac_init_help" = "recursive"; then 1494 # If there are subdirs, report their specific --help. 1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1496 test -d "$ac_dir" || 1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1498 continue 1499 ac_builddir=. 1500 1501case "$ac_dir" in 1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1503*) 1504 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1505 # A ".." for each directory in $ac_dir_suffix. 1506 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1507 case $ac_top_builddir_sub in 1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1510 esac ;; 1511esac 1512ac_abs_top_builddir=$ac_pwd 1513ac_abs_builddir=$ac_pwd$ac_dir_suffix 1514# for backward compatibility: 1515ac_top_builddir=$ac_top_build_prefix 1516 1517case $srcdir in 1518 .) # We are building in place. 1519 ac_srcdir=. 1520 ac_top_srcdir=$ac_top_builddir_sub 1521 ac_abs_top_srcdir=$ac_pwd ;; 1522 [\\/]* | ?:[\\/]* ) # Absolute name. 1523 ac_srcdir=$srcdir$ac_dir_suffix; 1524 ac_top_srcdir=$srcdir 1525 ac_abs_top_srcdir=$srcdir ;; 1526 *) # Relative name. 1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1528 ac_top_srcdir=$ac_top_build_prefix$srcdir 1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1530esac 1531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1532 1533 cd "$ac_dir" || { ac_status=$?; continue; } 1534 # Check for configure.gnu first; this name is used for a wrapper for 1535 # Metaconfig's "Configure" on case-insensitive file systems. 1536 if test -f "$ac_srcdir/configure.gnu"; then 1537 echo && 1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1539 elif test -f "$ac_srcdir/configure"; then 1540 echo && 1541 $SHELL "$ac_srcdir/configure" --help=recursive 1542 else 1543 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1544 fi || ac_status=$? 1545 cd "$ac_pwd" || { ac_status=$?; break; } 1546 done 1547fi 1548 1549test -n "$ac_init_help" && exit $ac_status 1550if $ac_init_version; then 1551 cat <<\_ACEOF 1552pkgconf configure 1.8.0 1553generated by GNU Autoconf 2.71 1554 1555Copyright (C) 2021 Free Software Foundation, Inc. 1556This configure script is free software; the Free Software Foundation 1557gives unlimited permission to copy, distribute and modify it. 1558_ACEOF 1559 exit 1560fi 1561 1562## ------------------------ ## 1563## Autoconf initialization. ## 1564## ------------------------ ## 1565 1566# ac_fn_c_try_compile LINENO 1567# -------------------------- 1568# Try to compile conftest.$ac_ext, and return whether this succeeded. 1569ac_fn_c_try_compile () 1570{ 1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1572 rm -f conftest.$ac_objext conftest.beam 1573 if { { ac_try="$ac_compile" 1574case "(($ac_try" in 1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1576 *) ac_try_echo=$ac_try;; 1577esac 1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1579printf "%s\n" "$ac_try_echo"; } >&5 1580 (eval "$ac_compile") 2>conftest.err 1581 ac_status=$? 1582 if test -s conftest.err; then 1583 grep -v '^ *+' conftest.err >conftest.er1 1584 cat conftest.er1 >&5 1585 mv -f conftest.er1 conftest.err 1586 fi 1587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1588 test $ac_status = 0; } && { 1589 test -z "$ac_c_werror_flag" || 1590 test ! -s conftest.err 1591 } && test -s conftest.$ac_objext 1592then : 1593 ac_retval=0 1594else $as_nop 1595 printf "%s\n" "$as_me: failed program was:" >&5 1596sed 's/^/| /' conftest.$ac_ext >&5 1597 1598 ac_retval=1 1599fi 1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1601 as_fn_set_status $ac_retval 1602 1603} # ac_fn_c_try_compile 1604 1605# ac_fn_c_try_link LINENO 1606# ----------------------- 1607# Try to link conftest.$ac_ext, and return whether this succeeded. 1608ac_fn_c_try_link () 1609{ 1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1611 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1612 if { { ac_try="$ac_link" 1613case "(($ac_try" in 1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1615 *) ac_try_echo=$ac_try;; 1616esac 1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1618printf "%s\n" "$ac_try_echo"; } >&5 1619 (eval "$ac_link") 2>conftest.err 1620 ac_status=$? 1621 if test -s conftest.err; then 1622 grep -v '^ *+' conftest.err >conftest.er1 1623 cat conftest.er1 >&5 1624 mv -f conftest.er1 conftest.err 1625 fi 1626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1627 test $ac_status = 0; } && { 1628 test -z "$ac_c_werror_flag" || 1629 test ! -s conftest.err 1630 } && test -s conftest$ac_exeext && { 1631 test "$cross_compiling" = yes || 1632 test -x conftest$ac_exeext 1633 } 1634then : 1635 ac_retval=0 1636else $as_nop 1637 printf "%s\n" "$as_me: failed program was:" >&5 1638sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 ac_retval=1 1641fi 1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1644 # interfere with the next link command; also delete a directory that is 1645 # left behind by Apple's compiler. We do this before executing the actions. 1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650} # ac_fn_c_try_link 1651 1652# ac_fn_c_check_func LINENO FUNC VAR 1653# ---------------------------------- 1654# Tests whether FUNC exists, setting the cache variable VAR accordingly 1655ac_fn_c_check_func () 1656{ 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1659printf %s "checking for $2... " >&6; } 1660if eval test \${$3+y} 1661then : 1662 printf %s "(cached) " >&6 1663else $as_nop 1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1665/* end confdefs.h. */ 1666/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1667 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1668#define $2 innocuous_$2 1669 1670/* System header to define __stub macros and hopefully few prototypes, 1671 which can conflict with char $2 (); below. */ 1672 1673#include <limits.h> 1674#undef $2 1675 1676/* Override any GCC internal prototype to avoid an error. 1677 Use char because int might match the return type of a GCC 1678 builtin and then its argument prototype would still apply. */ 1679#ifdef __cplusplus 1680extern "C" 1681#endif 1682char $2 (); 1683/* The GNU C library defines this for functions which it implements 1684 to always fail with ENOSYS. Some functions are actually named 1685 something starting with __ and the normal name is an alias. */ 1686#if defined __stub_$2 || defined __stub___$2 1687choke me 1688#endif 1689 1690int 1691main (void) 1692{ 1693return $2 (); 1694 ; 1695 return 0; 1696} 1697_ACEOF 1698if ac_fn_c_try_link "$LINENO" 1699then : 1700 eval "$3=yes" 1701else $as_nop 1702 eval "$3=no" 1703fi 1704rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1705 conftest$ac_exeext conftest.$ac_ext 1706fi 1707eval ac_res=\$$3 1708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1709printf "%s\n" "$ac_res" >&6; } 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 1712} # ac_fn_c_check_func 1713 1714# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1715# ------------------------------------------------------- 1716# Tests whether HEADER exists and can be compiled using the include files in 1717# INCLUDES, setting the cache variable VAR accordingly. 1718ac_fn_c_check_header_compile () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1722printf %s "checking for $2... " >&6; } 1723if eval test \${$3+y} 1724then : 1725 printf %s "(cached) " >&6 1726else $as_nop 1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729$4 1730#include <$2> 1731_ACEOF 1732if ac_fn_c_try_compile "$LINENO" 1733then : 1734 eval "$3=yes" 1735else $as_nop 1736 eval "$3=no" 1737fi 1738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1739fi 1740eval ac_res=\$$3 1741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1742printf "%s\n" "$ac_res" >&6; } 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1744 1745} # ac_fn_c_check_header_compile 1746 1747# ac_fn_c_try_cpp LINENO 1748# ---------------------- 1749# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1750ac_fn_c_try_cpp () 1751{ 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753 if { { ac_try="$ac_cpp conftest.$ac_ext" 1754case "(($ac_try" in 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1756 *) ac_try_echo=$ac_try;; 1757esac 1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1759printf "%s\n" "$ac_try_echo"; } >&5 1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1761 ac_status=$? 1762 if test -s conftest.err; then 1763 grep -v '^ *+' conftest.err >conftest.er1 1764 cat conftest.er1 >&5 1765 mv -f conftest.er1 conftest.err 1766 fi 1767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1768 test $ac_status = 0; } > conftest.i && { 1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1770 test ! -s conftest.err 1771 } 1772then : 1773 ac_retval=0 1774else $as_nop 1775 printf "%s\n" "$as_me: failed program was:" >&5 1776sed 's/^/| /' conftest.$ac_ext >&5 1777 1778 ac_retval=1 1779fi 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781 as_fn_set_status $ac_retval 1782 1783} # ac_fn_c_try_cpp 1784ac_configure_args_raw= 1785for ac_arg 1786do 1787 case $ac_arg in 1788 *\'*) 1789 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1790 esac 1791 as_fn_append ac_configure_args_raw " '$ac_arg'" 1792done 1793 1794case $ac_configure_args_raw in 1795 *$as_nl*) 1796 ac_safe_unquote= ;; 1797 *) 1798 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1799 ac_unsafe_a="$ac_unsafe_z#~" 1800 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1801 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1802esac 1803 1804cat >config.log <<_ACEOF 1805This file contains any messages produced by compilers while 1806running configure, to aid debugging if configure makes a mistake. 1807 1808It was created by pkgconf $as_me 1.8.0, which was 1809generated by GNU Autoconf 2.71. Invocation command line was 1810 1811 $ $0$ac_configure_args_raw 1812 1813_ACEOF 1814exec 5>>config.log 1815{ 1816cat <<_ASUNAME 1817## --------- ## 1818## Platform. ## 1819## --------- ## 1820 1821hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1822uname -m = `(uname -m) 2>/dev/null || echo unknown` 1823uname -r = `(uname -r) 2>/dev/null || echo unknown` 1824uname -s = `(uname -s) 2>/dev/null || echo unknown` 1825uname -v = `(uname -v) 2>/dev/null || echo unknown` 1826 1827/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1828/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1829 1830/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1831/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1832/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1833/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1834/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1835/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1836/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1837 1838_ASUNAME 1839 1840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1841for as_dir in $PATH 1842do 1843 IFS=$as_save_IFS 1844 case $as_dir in #((( 1845 '') as_dir=./ ;; 1846 */) ;; 1847 *) as_dir=$as_dir/ ;; 1848 esac 1849 printf "%s\n" "PATH: $as_dir" 1850 done 1851IFS=$as_save_IFS 1852 1853} >&5 1854 1855cat >&5 <<_ACEOF 1856 1857 1858## ----------- ## 1859## Core tests. ## 1860## ----------- ## 1861 1862_ACEOF 1863 1864 1865# Keep a trace of the command line. 1866# Strip out --no-create and --no-recursion so they do not pile up. 1867# Strip out --silent because we don't want to record it for future runs. 1868# Also quote any args containing shell meta-characters. 1869# Make two passes to allow for proper duplicate-argument suppression. 1870ac_configure_args= 1871ac_configure_args0= 1872ac_configure_args1= 1873ac_must_keep_next=false 1874for ac_pass in 1 2 1875do 1876 for ac_arg 1877 do 1878 case $ac_arg in 1879 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1881 | -silent | --silent | --silen | --sile | --sil) 1882 continue ;; 1883 *\'*) 1884 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1885 esac 1886 case $ac_pass in 1887 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1888 2) 1889 as_fn_append ac_configure_args1 " '$ac_arg'" 1890 if test $ac_must_keep_next = true; then 1891 ac_must_keep_next=false # Got value, back to normal. 1892 else 1893 case $ac_arg in 1894 *=* | --config-cache | -C | -disable-* | --disable-* \ 1895 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1896 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1897 | -with-* | --with-* | -without-* | --without-* | --x) 1898 case "$ac_configure_args0 " in 1899 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1900 esac 1901 ;; 1902 -* ) ac_must_keep_next=true ;; 1903 esac 1904 fi 1905 as_fn_append ac_configure_args " '$ac_arg'" 1906 ;; 1907 esac 1908 done 1909done 1910{ ac_configure_args0=; unset ac_configure_args0;} 1911{ ac_configure_args1=; unset ac_configure_args1;} 1912 1913# When interrupted or exit'd, cleanup temporary files, and complete 1914# config.log. We remove comments because anyway the quotes in there 1915# would cause problems or look ugly. 1916# WARNING: Use '\'' to represent an apostrophe within the trap. 1917# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1918trap 'exit_status=$? 1919 # Sanitize IFS. 1920 IFS=" "" $as_nl" 1921 # Save into config.log some information that might help in debugging. 1922 { 1923 echo 1924 1925 printf "%s\n" "## ---------------- ## 1926## Cache variables. ## 1927## ---------------- ##" 1928 echo 1929 # The following way of writing the cache mishandles newlines in values, 1930( 1931 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1932 eval ac_val=\$$ac_var 1933 case $ac_val in #( 1934 *${as_nl}*) 1935 case $ac_var in #( 1936 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1937printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1938 esac 1939 case $ac_var in #( 1940 _ | IFS | as_nl) ;; #( 1941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1942 *) { eval $ac_var=; unset $ac_var;} ;; 1943 esac ;; 1944 esac 1945 done 1946 (set) 2>&1 | 1947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1948 *${as_nl}ac_space=\ *) 1949 sed -n \ 1950 "s/'\''/'\''\\\\'\'''\''/g; 1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1952 ;; #( 1953 *) 1954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1955 ;; 1956 esac | 1957 sort 1958) 1959 echo 1960 1961 printf "%s\n" "## ----------------- ## 1962## Output variables. ## 1963## ----------------- ##" 1964 echo 1965 for ac_var in $ac_subst_vars 1966 do 1967 eval ac_val=\$$ac_var 1968 case $ac_val in 1969 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1970 esac 1971 printf "%s\n" "$ac_var='\''$ac_val'\''" 1972 done | sort 1973 echo 1974 1975 if test -n "$ac_subst_files"; then 1976 printf "%s\n" "## ------------------- ## 1977## File substitutions. ## 1978## ------------------- ##" 1979 echo 1980 for ac_var in $ac_subst_files 1981 do 1982 eval ac_val=\$$ac_var 1983 case $ac_val in 1984 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1985 esac 1986 printf "%s\n" "$ac_var='\''$ac_val'\''" 1987 done | sort 1988 echo 1989 fi 1990 1991 if test -s confdefs.h; then 1992 printf "%s\n" "## ----------- ## 1993## confdefs.h. ## 1994## ----------- ##" 1995 echo 1996 cat confdefs.h 1997 echo 1998 fi 1999 test "$ac_signal" != 0 && 2000 printf "%s\n" "$as_me: caught signal $ac_signal" 2001 printf "%s\n" "$as_me: exit $exit_status" 2002 } >&5 2003 rm -f core *.core core.conftest.* && 2004 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2005 exit $exit_status 2006' 0 2007for ac_signal in 1 2 13 15; do 2008 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2009done 2010ac_signal=0 2011 2012# confdefs.h avoids OS command line length limits that DEFS can exceed. 2013rm -f -r conftest* confdefs.h 2014 2015printf "%s\n" "/* confdefs.h */" > confdefs.h 2016 2017# Predefined preprocessor variables. 2018 2019printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2020 2021printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2022 2023printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2024 2025printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2026 2027printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2028 2029printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2030 2031 2032# Let the site file select an alternate cache file if it wants to. 2033# Prefer an explicitly selected file to automatically selected ones. 2034if test -n "$CONFIG_SITE"; then 2035 ac_site_files="$CONFIG_SITE" 2036elif test "x$prefix" != xNONE; then 2037 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2038else 2039 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2040fi 2041 2042for ac_site_file in $ac_site_files 2043do 2044 case $ac_site_file in #( 2045 */*) : 2046 ;; #( 2047 *) : 2048 ac_site_file=./$ac_site_file ;; 2049esac 2050 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2052printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2053 sed 's/^/| /' "$ac_site_file" >&5 2054 . "$ac_site_file" \ 2055 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2056printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2057as_fn_error $? "failed to load site script $ac_site_file 2058See \`config.log' for more details" "$LINENO" 5; } 2059 fi 2060done 2061 2062if test -r "$cache_file"; then 2063 # Some versions of bash will fail to source /dev/null (special files 2064 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2065 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2067printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2068 case $cache_file in 2069 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2070 *) . "./$cache_file";; 2071 esac 2072 fi 2073else 2074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2075printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2076 >$cache_file 2077fi 2078 2079# Test code for whether the C compiler supports C89 (global declarations) 2080ac_c_conftest_c89_globals=' 2081/* Does the compiler advertise C89 conformance? 2082 Do not test the value of __STDC__, because some compilers set it to 0 2083 while being otherwise adequately conformant. */ 2084#if !defined __STDC__ 2085# error "Compiler does not advertise C89 conformance" 2086#endif 2087 2088#include <stddef.h> 2089#include <stdarg.h> 2090struct stat; 2091/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2092struct buf { int x; }; 2093struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2094static char *e (p, i) 2095 char **p; 2096 int i; 2097{ 2098 return p[i]; 2099} 2100static char *f (char * (*g) (char **, int), char **p, ...) 2101{ 2102 char *s; 2103 va_list v; 2104 va_start (v,p); 2105 s = g (p, va_arg (v,int)); 2106 va_end (v); 2107 return s; 2108} 2109 2110/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2111 function prototypes and stuff, but not \xHH hex character constants. 2112 These do not provoke an error unfortunately, instead are silently treated 2113 as an "x". The following induces an error, until -std is added to get 2114 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2115 array size at least. It is necessary to write \x00 == 0 to get something 2116 that is true only with -std. */ 2117int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2118 2119/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2120 inside strings and character constants. */ 2121#define FOO(x) '\''x'\'' 2122int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2123 2124int test (int i, double x); 2125struct s1 {int (*f) (int a);}; 2126struct s2 {int (*f) (double a);}; 2127int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2128 int, int);' 2129 2130# Test code for whether the C compiler supports C89 (body of main). 2131ac_c_conftest_c89_main=' 2132ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2133' 2134 2135# Test code for whether the C compiler supports C99 (global declarations) 2136ac_c_conftest_c99_globals=' 2137// Does the compiler advertise C99 conformance? 2138#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2139# error "Compiler does not advertise C99 conformance" 2140#endif 2141 2142#include <stdbool.h> 2143extern int puts (const char *); 2144extern int printf (const char *, ...); 2145extern int dprintf (int, const char *, ...); 2146extern void *malloc (size_t); 2147 2148// Check varargs macros. These examples are taken from C99 6.10.3.5. 2149// dprintf is used instead of fprintf to avoid needing to declare 2150// FILE and stderr. 2151#define debug(...) dprintf (2, __VA_ARGS__) 2152#define showlist(...) puts (#__VA_ARGS__) 2153#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2154static void 2155test_varargs_macros (void) 2156{ 2157 int x = 1234; 2158 int y = 5678; 2159 debug ("Flag"); 2160 debug ("X = %d\n", x); 2161 showlist (The first, second, and third items.); 2162 report (x>y, "x is %d but y is %d", x, y); 2163} 2164 2165// Check long long types. 2166#define BIG64 18446744073709551615ull 2167#define BIG32 4294967295ul 2168#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2169#if !BIG_OK 2170 #error "your preprocessor is broken" 2171#endif 2172#if BIG_OK 2173#else 2174 #error "your preprocessor is broken" 2175#endif 2176static long long int bignum = -9223372036854775807LL; 2177static unsigned long long int ubignum = BIG64; 2178 2179struct incomplete_array 2180{ 2181 int datasize; 2182 double data[]; 2183}; 2184 2185struct named_init { 2186 int number; 2187 const wchar_t *name; 2188 double average; 2189}; 2190 2191typedef const char *ccp; 2192 2193static inline int 2194test_restrict (ccp restrict text) 2195{ 2196 // See if C++-style comments work. 2197 // Iterate through items via the restricted pointer. 2198 // Also check for declarations in for loops. 2199 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2200 continue; 2201 return 0; 2202} 2203 2204// Check varargs and va_copy. 2205static bool 2206test_varargs (const char *format, ...) 2207{ 2208 va_list args; 2209 va_start (args, format); 2210 va_list args_copy; 2211 va_copy (args_copy, args); 2212 2213 const char *str = ""; 2214 int number = 0; 2215 float fnumber = 0; 2216 2217 while (*format) 2218 { 2219 switch (*format++) 2220 { 2221 case '\''s'\'': // string 2222 str = va_arg (args_copy, const char *); 2223 break; 2224 case '\''d'\'': // int 2225 number = va_arg (args_copy, int); 2226 break; 2227 case '\''f'\'': // float 2228 fnumber = va_arg (args_copy, double); 2229 break; 2230 default: 2231 break; 2232 } 2233 } 2234 va_end (args_copy); 2235 va_end (args); 2236 2237 return *str && number && fnumber; 2238} 2239' 2240 2241# Test code for whether the C compiler supports C99 (body of main). 2242ac_c_conftest_c99_main=' 2243 // Check bool. 2244 _Bool success = false; 2245 success |= (argc != 0); 2246 2247 // Check restrict. 2248 if (test_restrict ("String literal") == 0) 2249 success = true; 2250 char *restrict newvar = "Another string"; 2251 2252 // Check varargs. 2253 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2254 test_varargs_macros (); 2255 2256 // Check flexible array members. 2257 struct incomplete_array *ia = 2258 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2259 ia->datasize = 10; 2260 for (int i = 0; i < ia->datasize; ++i) 2261 ia->data[i] = i * 1.234; 2262 2263 // Check named initializers. 2264 struct named_init ni = { 2265 .number = 34, 2266 .name = L"Test wide string", 2267 .average = 543.34343, 2268 }; 2269 2270 ni.number = 58; 2271 2272 int dynamic_array[ni.number]; 2273 dynamic_array[0] = argv[0][0]; 2274 dynamic_array[ni.number - 1] = 543; 2275 2276 // work around unused variable warnings 2277 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2278 || dynamic_array[ni.number - 1] != 543); 2279' 2280 2281# Test code for whether the C compiler supports C11 (global declarations) 2282ac_c_conftest_c11_globals=' 2283// Does the compiler advertise C11 conformance? 2284#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2285# error "Compiler does not advertise C11 conformance" 2286#endif 2287 2288// Check _Alignas. 2289char _Alignas (double) aligned_as_double; 2290char _Alignas (0) no_special_alignment; 2291extern char aligned_as_int; 2292char _Alignas (0) _Alignas (int) aligned_as_int; 2293 2294// Check _Alignof. 2295enum 2296{ 2297 int_alignment = _Alignof (int), 2298 int_array_alignment = _Alignof (int[100]), 2299 char_alignment = _Alignof (char) 2300}; 2301_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2302 2303// Check _Noreturn. 2304int _Noreturn does_not_return (void) { for (;;) continue; } 2305 2306// Check _Static_assert. 2307struct test_static_assert 2308{ 2309 int x; 2310 _Static_assert (sizeof (int) <= sizeof (long int), 2311 "_Static_assert does not work in struct"); 2312 long int y; 2313}; 2314 2315// Check UTF-8 literals. 2316#define u8 syntax error! 2317char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2318 2319// Check duplicate typedefs. 2320typedef long *long_ptr; 2321typedef long int *long_ptr; 2322typedef long_ptr long_ptr; 2323 2324// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2325struct anonymous 2326{ 2327 union { 2328 struct { int i; int j; }; 2329 struct { int k; long int l; } w; 2330 }; 2331 int m; 2332} v1; 2333' 2334 2335# Test code for whether the C compiler supports C11 (body of main). 2336ac_c_conftest_c11_main=' 2337 _Static_assert ((offsetof (struct anonymous, i) 2338 == offsetof (struct anonymous, w.k)), 2339 "Anonymous union alignment botch"); 2340 v1.i = 2; 2341 v1.w.k = 5; 2342 ok |= v1.i != 5; 2343' 2344 2345# Test code for whether the C compiler supports C11 (complete). 2346ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2347${ac_c_conftest_c99_globals} 2348${ac_c_conftest_c11_globals} 2349 2350int 2351main (int argc, char **argv) 2352{ 2353 int ok = 0; 2354 ${ac_c_conftest_c89_main} 2355 ${ac_c_conftest_c99_main} 2356 ${ac_c_conftest_c11_main} 2357 return ok; 2358} 2359" 2360 2361# Test code for whether the C compiler supports C99 (complete). 2362ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2363${ac_c_conftest_c99_globals} 2364 2365int 2366main (int argc, char **argv) 2367{ 2368 int ok = 0; 2369 ${ac_c_conftest_c89_main} 2370 ${ac_c_conftest_c99_main} 2371 return ok; 2372} 2373" 2374 2375# Test code for whether the C compiler supports C89 (complete). 2376ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2377 2378int 2379main (int argc, char **argv) 2380{ 2381 int ok = 0; 2382 ${ac_c_conftest_c89_main} 2383 return ok; 2384} 2385" 2386 2387as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2388as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2389as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2390as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2391as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2392as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2393as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2394as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2395as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2396 2397# Auxiliary files required by this configure script. 2398ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2399 2400# Locations in which to look for auxiliary files. 2401ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2402 2403# Search for a directory containing all of the required auxiliary files, 2404# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2405# If we don't find one directory that contains all the files we need, 2406# we report the set of missing files from the *first* directory in 2407# $ac_aux_dir_candidates and give up. 2408ac_missing_aux_files="" 2409ac_first_candidate=: 2410printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2412as_found=false 2413for as_dir in $ac_aux_dir_candidates 2414do 2415 IFS=$as_save_IFS 2416 case $as_dir in #((( 2417 '') as_dir=./ ;; 2418 */) ;; 2419 *) as_dir=$as_dir/ ;; 2420 esac 2421 as_found=: 2422 2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2424 ac_aux_dir_found=yes 2425 ac_install_sh= 2426 for ac_aux in $ac_aux_files 2427 do 2428 # As a special case, if "install-sh" is required, that requirement 2429 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2430 # and $ac_install_sh is set appropriately for whichever one is found. 2431 if test x"$ac_aux" = x"install-sh" 2432 then 2433 if test -f "${as_dir}install-sh"; then 2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2435 ac_install_sh="${as_dir}install-sh -c" 2436 elif test -f "${as_dir}install.sh"; then 2437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2438 ac_install_sh="${as_dir}install.sh -c" 2439 elif test -f "${as_dir}shtool"; then 2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2441 ac_install_sh="${as_dir}shtool install -c" 2442 else 2443 ac_aux_dir_found=no 2444 if $ac_first_candidate; then 2445 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2446 else 2447 break 2448 fi 2449 fi 2450 else 2451 if test -f "${as_dir}${ac_aux}"; then 2452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2453 else 2454 ac_aux_dir_found=no 2455 if $ac_first_candidate; then 2456 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2457 else 2458 break 2459 fi 2460 fi 2461 fi 2462 done 2463 if test "$ac_aux_dir_found" = yes; then 2464 ac_aux_dir="$as_dir" 2465 break 2466 fi 2467 ac_first_candidate=false 2468 2469 as_found=false 2470done 2471IFS=$as_save_IFS 2472if $as_found 2473then : 2474 2475else $as_nop 2476 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2477fi 2478 2479 2480# These three variables are undocumented and unsupported, 2481# and are intended to be withdrawn in a future Autoconf release. 2482# They can cause serious problems if a builder's source tree is in a directory 2483# whose full name contains unusual characters. 2484if test -f "${ac_aux_dir}config.guess"; then 2485 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2486fi 2487if test -f "${ac_aux_dir}config.sub"; then 2488 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2489fi 2490if test -f "$ac_aux_dir/configure"; then 2491 ac_configure="$SHELL ${ac_aux_dir}configure" 2492fi 2493 2494# Check that the precious variables saved in the cache have kept the same 2495# value. 2496ac_cache_corrupted=false 2497for ac_var in $ac_precious_vars; do 2498 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2499 eval ac_new_set=\$ac_env_${ac_var}_set 2500 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2501 eval ac_new_val=\$ac_env_${ac_var}_value 2502 case $ac_old_set,$ac_new_set in 2503 set,) 2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2505printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2506 ac_cache_corrupted=: ;; 2507 ,set) 2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2509printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2510 ac_cache_corrupted=: ;; 2511 ,);; 2512 *) 2513 if test "x$ac_old_val" != "x$ac_new_val"; then 2514 # differences in whitespace do not lead to failure. 2515 ac_old_val_w=`echo x $ac_old_val` 2516 ac_new_val_w=`echo x $ac_new_val` 2517 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2519printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2520 ac_cache_corrupted=: 2521 else 2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2523printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2524 eval $ac_var=\$ac_old_val 2525 fi 2526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2527printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2529printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2530 fi;; 2531 esac 2532 # Pass precious variables to config.status. 2533 if test "$ac_new_set" = set; then 2534 case $ac_new_val in 2535 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2536 *) ac_arg=$ac_var=$ac_new_val ;; 2537 esac 2538 case " $ac_configure_args " in 2539 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2540 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2541 esac 2542 fi 2543done 2544if $ac_cache_corrupted; then 2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2546printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2548printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2549 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2550 and start over" "$LINENO" 5 2551fi 2552## -------------------- ## 2553## Main body of script. ## 2554## -------------------- ## 2555 2556ac_ext=c 2557ac_cpp='$CPP $CPPFLAGS' 2558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2560ac_compiler_gnu=$ac_cv_c_compiler_gnu 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576# Expand $ac_aux_dir to an absolute path. 2577am_aux_dir=`cd "$ac_aux_dir" && pwd` 2578 2579ac_ext=c 2580ac_cpp='$CPP $CPPFLAGS' 2581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2583ac_compiler_gnu=$ac_cv_c_compiler_gnu 2584if test -n "$ac_tool_prefix"; then 2585 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2586set dummy ${ac_tool_prefix}gcc; ac_word=$2 2587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2588printf %s "checking for $ac_word... " >&6; } 2589if test ${ac_cv_prog_CC+y} 2590then : 2591 printf %s "(cached) " >&6 2592else $as_nop 2593 if test -n "$CC"; then 2594 ac_cv_prog_CC="$CC" # Let the user override the test. 2595else 2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2597for as_dir in $PATH 2598do 2599 IFS=$as_save_IFS 2600 case $as_dir in #((( 2601 '') as_dir=./ ;; 2602 */) ;; 2603 *) as_dir=$as_dir/ ;; 2604 esac 2605 for ac_exec_ext in '' $ac_executable_extensions; do 2606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2607 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2609 break 2 2610 fi 2611done 2612 done 2613IFS=$as_save_IFS 2614 2615fi 2616fi 2617CC=$ac_cv_prog_CC 2618if test -n "$CC"; then 2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2620printf "%s\n" "$CC" >&6; } 2621else 2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2623printf "%s\n" "no" >&6; } 2624fi 2625 2626 2627fi 2628if test -z "$ac_cv_prog_CC"; then 2629 ac_ct_CC=$CC 2630 # Extract the first word of "gcc", so it can be a program name with args. 2631set dummy gcc; ac_word=$2 2632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2633printf %s "checking for $ac_word... " >&6; } 2634if test ${ac_cv_prog_ac_ct_CC+y} 2635then : 2636 printf %s "(cached) " >&6 2637else $as_nop 2638 if test -n "$ac_ct_CC"; then 2639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2640else 2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2642for as_dir in $PATH 2643do 2644 IFS=$as_save_IFS 2645 case $as_dir in #((( 2646 '') as_dir=./ ;; 2647 */) ;; 2648 *) as_dir=$as_dir/ ;; 2649 esac 2650 for ac_exec_ext in '' $ac_executable_extensions; do 2651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2652 ac_cv_prog_ac_ct_CC="gcc" 2653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2654 break 2 2655 fi 2656done 2657 done 2658IFS=$as_save_IFS 2659 2660fi 2661fi 2662ac_ct_CC=$ac_cv_prog_ac_ct_CC 2663if test -n "$ac_ct_CC"; then 2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2665printf "%s\n" "$ac_ct_CC" >&6; } 2666else 2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2668printf "%s\n" "no" >&6; } 2669fi 2670 2671 if test "x$ac_ct_CC" = x; then 2672 CC="" 2673 else 2674 case $cross_compiling:$ac_tool_warned in 2675yes:) 2676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2677printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2678ac_tool_warned=yes ;; 2679esac 2680 CC=$ac_ct_CC 2681 fi 2682else 2683 CC="$ac_cv_prog_CC" 2684fi 2685 2686if test -z "$CC"; then 2687 if test -n "$ac_tool_prefix"; then 2688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2689set dummy ${ac_tool_prefix}cc; ac_word=$2 2690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2691printf %s "checking for $ac_word... " >&6; } 2692if test ${ac_cv_prog_CC+y} 2693then : 2694 printf %s "(cached) " >&6 2695else $as_nop 2696 if test -n "$CC"; then 2697 ac_cv_prog_CC="$CC" # Let the user override the test. 2698else 2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2700for as_dir in $PATH 2701do 2702 IFS=$as_save_IFS 2703 case $as_dir in #((( 2704 '') as_dir=./ ;; 2705 */) ;; 2706 *) as_dir=$as_dir/ ;; 2707 esac 2708 for ac_exec_ext in '' $ac_executable_extensions; do 2709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2710 ac_cv_prog_CC="${ac_tool_prefix}cc" 2711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2712 break 2 2713 fi 2714done 2715 done 2716IFS=$as_save_IFS 2717 2718fi 2719fi 2720CC=$ac_cv_prog_CC 2721if test -n "$CC"; then 2722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2723printf "%s\n" "$CC" >&6; } 2724else 2725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2726printf "%s\n" "no" >&6; } 2727fi 2728 2729 2730 fi 2731fi 2732if test -z "$CC"; then 2733 # Extract the first word of "cc", so it can be a program name with args. 2734set dummy cc; ac_word=$2 2735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2736printf %s "checking for $ac_word... " >&6; } 2737if test ${ac_cv_prog_CC+y} 2738then : 2739 printf %s "(cached) " >&6 2740else $as_nop 2741 if test -n "$CC"; then 2742 ac_cv_prog_CC="$CC" # Let the user override the test. 2743else 2744 ac_prog_rejected=no 2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2746for as_dir in $PATH 2747do 2748 IFS=$as_save_IFS 2749 case $as_dir in #((( 2750 '') as_dir=./ ;; 2751 */) ;; 2752 *) as_dir=$as_dir/ ;; 2753 esac 2754 for ac_exec_ext in '' $ac_executable_extensions; do 2755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2756 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2757 ac_prog_rejected=yes 2758 continue 2759 fi 2760 ac_cv_prog_CC="cc" 2761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2762 break 2 2763 fi 2764done 2765 done 2766IFS=$as_save_IFS 2767 2768if test $ac_prog_rejected = yes; then 2769 # We found a bogon in the path, so make sure we never use it. 2770 set dummy $ac_cv_prog_CC 2771 shift 2772 if test $# != 0; then 2773 # We chose a different compiler from the bogus one. 2774 # However, it has the same basename, so the bogon will be chosen 2775 # first if we set CC to just the basename; use the full file name. 2776 shift 2777 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2778 fi 2779fi 2780fi 2781fi 2782CC=$ac_cv_prog_CC 2783if test -n "$CC"; then 2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2785printf "%s\n" "$CC" >&6; } 2786else 2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2788printf "%s\n" "no" >&6; } 2789fi 2790 2791 2792fi 2793if test -z "$CC"; then 2794 if test -n "$ac_tool_prefix"; then 2795 for ac_prog in cl.exe 2796 do 2797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2798set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2800printf %s "checking for $ac_word... " >&6; } 2801if test ${ac_cv_prog_CC+y} 2802then : 2803 printf %s "(cached) " >&6 2804else $as_nop 2805 if test -n "$CC"; then 2806 ac_cv_prog_CC="$CC" # Let the user override the test. 2807else 2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2809for as_dir in $PATH 2810do 2811 IFS=$as_save_IFS 2812 case $as_dir in #((( 2813 '') as_dir=./ ;; 2814 */) ;; 2815 *) as_dir=$as_dir/ ;; 2816 esac 2817 for ac_exec_ext in '' $ac_executable_extensions; do 2818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2819 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2821 break 2 2822 fi 2823done 2824 done 2825IFS=$as_save_IFS 2826 2827fi 2828fi 2829CC=$ac_cv_prog_CC 2830if test -n "$CC"; then 2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2832printf "%s\n" "$CC" >&6; } 2833else 2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2835printf "%s\n" "no" >&6; } 2836fi 2837 2838 2839 test -n "$CC" && break 2840 done 2841fi 2842if test -z "$CC"; then 2843 ac_ct_CC=$CC 2844 for ac_prog in cl.exe 2845do 2846 # Extract the first word of "$ac_prog", so it can be a program name with args. 2847set dummy $ac_prog; ac_word=$2 2848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2849printf %s "checking for $ac_word... " >&6; } 2850if test ${ac_cv_prog_ac_ct_CC+y} 2851then : 2852 printf %s "(cached) " >&6 2853else $as_nop 2854 if test -n "$ac_ct_CC"; then 2855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2856else 2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2858for as_dir in $PATH 2859do 2860 IFS=$as_save_IFS 2861 case $as_dir in #((( 2862 '') as_dir=./ ;; 2863 */) ;; 2864 *) as_dir=$as_dir/ ;; 2865 esac 2866 for ac_exec_ext in '' $ac_executable_extensions; do 2867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2868 ac_cv_prog_ac_ct_CC="$ac_prog" 2869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2870 break 2 2871 fi 2872done 2873 done 2874IFS=$as_save_IFS 2875 2876fi 2877fi 2878ac_ct_CC=$ac_cv_prog_ac_ct_CC 2879if test -n "$ac_ct_CC"; then 2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2881printf "%s\n" "$ac_ct_CC" >&6; } 2882else 2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2884printf "%s\n" "no" >&6; } 2885fi 2886 2887 2888 test -n "$ac_ct_CC" && break 2889done 2890 2891 if test "x$ac_ct_CC" = x; then 2892 CC="" 2893 else 2894 case $cross_compiling:$ac_tool_warned in 2895yes:) 2896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2897printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2898ac_tool_warned=yes ;; 2899esac 2900 CC=$ac_ct_CC 2901 fi 2902fi 2903 2904fi 2905if test -z "$CC"; then 2906 if test -n "$ac_tool_prefix"; then 2907 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2908set dummy ${ac_tool_prefix}clang; ac_word=$2 2909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2910printf %s "checking for $ac_word... " >&6; } 2911if test ${ac_cv_prog_CC+y} 2912then : 2913 printf %s "(cached) " >&6 2914else $as_nop 2915 if test -n "$CC"; then 2916 ac_cv_prog_CC="$CC" # Let the user override the test. 2917else 2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2919for as_dir in $PATH 2920do 2921 IFS=$as_save_IFS 2922 case $as_dir in #((( 2923 '') as_dir=./ ;; 2924 */) ;; 2925 *) as_dir=$as_dir/ ;; 2926 esac 2927 for ac_exec_ext in '' $ac_executable_extensions; do 2928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2929 ac_cv_prog_CC="${ac_tool_prefix}clang" 2930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2931 break 2 2932 fi 2933done 2934 done 2935IFS=$as_save_IFS 2936 2937fi 2938fi 2939CC=$ac_cv_prog_CC 2940if test -n "$CC"; then 2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2942printf "%s\n" "$CC" >&6; } 2943else 2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2945printf "%s\n" "no" >&6; } 2946fi 2947 2948 2949fi 2950if test -z "$ac_cv_prog_CC"; then 2951 ac_ct_CC=$CC 2952 # Extract the first word of "clang", so it can be a program name with args. 2953set dummy clang; ac_word=$2 2954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2955printf %s "checking for $ac_word... " >&6; } 2956if test ${ac_cv_prog_ac_ct_CC+y} 2957then : 2958 printf %s "(cached) " >&6 2959else $as_nop 2960 if test -n "$ac_ct_CC"; then 2961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2962else 2963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2964for as_dir in $PATH 2965do 2966 IFS=$as_save_IFS 2967 case $as_dir in #((( 2968 '') as_dir=./ ;; 2969 */) ;; 2970 *) as_dir=$as_dir/ ;; 2971 esac 2972 for ac_exec_ext in '' $ac_executable_extensions; do 2973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2974 ac_cv_prog_ac_ct_CC="clang" 2975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2976 break 2 2977 fi 2978done 2979 done 2980IFS=$as_save_IFS 2981 2982fi 2983fi 2984ac_ct_CC=$ac_cv_prog_ac_ct_CC 2985if test -n "$ac_ct_CC"; then 2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2987printf "%s\n" "$ac_ct_CC" >&6; } 2988else 2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2990printf "%s\n" "no" >&6; } 2991fi 2992 2993 if test "x$ac_ct_CC" = x; then 2994 CC="" 2995 else 2996 case $cross_compiling:$ac_tool_warned in 2997yes:) 2998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2999printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3000ac_tool_warned=yes ;; 3001esac 3002 CC=$ac_ct_CC 3003 fi 3004else 3005 CC="$ac_cv_prog_CC" 3006fi 3007 3008fi 3009 3010 3011test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3012printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3013as_fn_error $? "no acceptable C compiler found in \$PATH 3014See \`config.log' for more details" "$LINENO" 5; } 3015 3016# Provide some information about the compiler. 3017printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3018set X $ac_compile 3019ac_compiler=$2 3020for ac_option in --version -v -V -qversion -version; do 3021 { { ac_try="$ac_compiler $ac_option >&5" 3022case "(($ac_try" in 3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3024 *) ac_try_echo=$ac_try;; 3025esac 3026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3027printf "%s\n" "$ac_try_echo"; } >&5 3028 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3029 ac_status=$? 3030 if test -s conftest.err; then 3031 sed '10a\ 3032... rest of stderr output deleted ... 3033 10q' conftest.err >conftest.er1 3034 cat conftest.er1 >&5 3035 fi 3036 rm -f conftest.er1 conftest.err 3037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3038 test $ac_status = 0; } 3039done 3040 3041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3042/* end confdefs.h. */ 3043 3044int 3045main (void) 3046{ 3047 3048 ; 3049 return 0; 3050} 3051_ACEOF 3052ac_clean_files_save=$ac_clean_files 3053ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3054# Try to create an executable without -o first, disregard a.out. 3055# It will help us diagnose broken compilers, and finding out an intuition 3056# of exeext. 3057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3058printf %s "checking whether the C compiler works... " >&6; } 3059ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3060 3061# The possible output files: 3062ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3063 3064ac_rmfiles= 3065for ac_file in $ac_files 3066do 3067 case $ac_file in 3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3069 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3070 esac 3071done 3072rm -f $ac_rmfiles 3073 3074if { { ac_try="$ac_link_default" 3075case "(($ac_try" in 3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3077 *) ac_try_echo=$ac_try;; 3078esac 3079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3080printf "%s\n" "$ac_try_echo"; } >&5 3081 (eval "$ac_link_default") 2>&5 3082 ac_status=$? 3083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3084 test $ac_status = 0; } 3085then : 3086 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3087# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3088# in a Makefile. We should not override ac_cv_exeext if it was cached, 3089# so that the user can short-circuit this test for compilers unknown to 3090# Autoconf. 3091for ac_file in $ac_files '' 3092do 3093 test -f "$ac_file" || continue 3094 case $ac_file in 3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3096 ;; 3097 [ab].out ) 3098 # We found the default executable, but exeext='' is most 3099 # certainly right. 3100 break;; 3101 *.* ) 3102 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3103 then :; else 3104 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3105 fi 3106 # We set ac_cv_exeext here because the later test for it is not 3107 # safe: cross compilers may not add the suffix if given an `-o' 3108 # argument, so we may need to know it at that point already. 3109 # Even if this section looks crufty: it has the advantage of 3110 # actually working. 3111 break;; 3112 * ) 3113 break;; 3114 esac 3115done 3116test "$ac_cv_exeext" = no && ac_cv_exeext= 3117 3118else $as_nop 3119 ac_file='' 3120fi 3121if test -z "$ac_file" 3122then : 3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3124printf "%s\n" "no" >&6; } 3125printf "%s\n" "$as_me: failed program was:" >&5 3126sed 's/^/| /' conftest.$ac_ext >&5 3127 3128{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3129printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3130as_fn_error 77 "C compiler cannot create executables 3131See \`config.log' for more details" "$LINENO" 5; } 3132else $as_nop 3133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3134printf "%s\n" "yes" >&6; } 3135fi 3136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3137printf %s "checking for C compiler default output file name... " >&6; } 3138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3139printf "%s\n" "$ac_file" >&6; } 3140ac_exeext=$ac_cv_exeext 3141 3142rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3143ac_clean_files=$ac_clean_files_save 3144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3145printf %s "checking for suffix of executables... " >&6; } 3146if { { ac_try="$ac_link" 3147case "(($ac_try" in 3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3149 *) ac_try_echo=$ac_try;; 3150esac 3151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3152printf "%s\n" "$ac_try_echo"; } >&5 3153 (eval "$ac_link") 2>&5 3154 ac_status=$? 3155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3156 test $ac_status = 0; } 3157then : 3158 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3159# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3160# work properly (i.e., refer to `conftest.exe'), while it won't with 3161# `rm'. 3162for ac_file in conftest.exe conftest conftest.*; do 3163 test -f "$ac_file" || continue 3164 case $ac_file in 3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3166 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3167 break;; 3168 * ) break;; 3169 esac 3170done 3171else $as_nop 3172 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3173printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3174as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3175See \`config.log' for more details" "$LINENO" 5; } 3176fi 3177rm -f conftest conftest$ac_cv_exeext 3178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3179printf "%s\n" "$ac_cv_exeext" >&6; } 3180 3181rm -f conftest.$ac_ext 3182EXEEXT=$ac_cv_exeext 3183ac_exeext=$EXEEXT 3184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3185/* end confdefs.h. */ 3186#include <stdio.h> 3187int 3188main (void) 3189{ 3190FILE *f = fopen ("conftest.out", "w"); 3191 return ferror (f) || fclose (f) != 0; 3192 3193 ; 3194 return 0; 3195} 3196_ACEOF 3197ac_clean_files="$ac_clean_files conftest.out" 3198# Check that the compiler produces executables we can run. If not, either 3199# the compiler is broken, or we cross compile. 3200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3201printf %s "checking whether we are cross compiling... " >&6; } 3202if test "$cross_compiling" != yes; then 3203 { { ac_try="$ac_link" 3204case "(($ac_try" in 3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3206 *) ac_try_echo=$ac_try;; 3207esac 3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3209printf "%s\n" "$ac_try_echo"; } >&5 3210 (eval "$ac_link") 2>&5 3211 ac_status=$? 3212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3213 test $ac_status = 0; } 3214 if { ac_try='./conftest$ac_cv_exeext' 3215 { { case "(($ac_try" in 3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3217 *) ac_try_echo=$ac_try;; 3218esac 3219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3220printf "%s\n" "$ac_try_echo"; } >&5 3221 (eval "$ac_try") 2>&5 3222 ac_status=$? 3223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3224 test $ac_status = 0; }; }; then 3225 cross_compiling=no 3226 else 3227 if test "$cross_compiling" = maybe; then 3228 cross_compiling=yes 3229 else 3230 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3231printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3232as_fn_error 77 "cannot run C compiled programs. 3233If you meant to cross compile, use \`--host'. 3234See \`config.log' for more details" "$LINENO" 5; } 3235 fi 3236 fi 3237fi 3238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3239printf "%s\n" "$cross_compiling" >&6; } 3240 3241rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3242ac_clean_files=$ac_clean_files_save 3243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3244printf %s "checking for suffix of object files... " >&6; } 3245if test ${ac_cv_objext+y} 3246then : 3247 printf %s "(cached) " >&6 3248else $as_nop 3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3250/* end confdefs.h. */ 3251 3252int 3253main (void) 3254{ 3255 3256 ; 3257 return 0; 3258} 3259_ACEOF 3260rm -f conftest.o conftest.obj 3261if { { ac_try="$ac_compile" 3262case "(($ac_try" in 3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3264 *) ac_try_echo=$ac_try;; 3265esac 3266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3267printf "%s\n" "$ac_try_echo"; } >&5 3268 (eval "$ac_compile") 2>&5 3269 ac_status=$? 3270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3271 test $ac_status = 0; } 3272then : 3273 for ac_file in conftest.o conftest.obj conftest.*; do 3274 test -f "$ac_file" || continue; 3275 case $ac_file in 3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3278 break;; 3279 esac 3280done 3281else $as_nop 3282 printf "%s\n" "$as_me: failed program was:" >&5 3283sed 's/^/| /' conftest.$ac_ext >&5 3284 3285{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3286printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3287as_fn_error $? "cannot compute suffix of object files: cannot compile 3288See \`config.log' for more details" "$LINENO" 5; } 3289fi 3290rm -f conftest.$ac_cv_objext conftest.$ac_ext 3291fi 3292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3293printf "%s\n" "$ac_cv_objext" >&6; } 3294OBJEXT=$ac_cv_objext 3295ac_objext=$OBJEXT 3296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3297printf %s "checking whether the compiler supports GNU C... " >&6; } 3298if test ${ac_cv_c_compiler_gnu+y} 3299then : 3300 printf %s "(cached) " >&6 3301else $as_nop 3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3303/* end confdefs.h. */ 3304 3305int 3306main (void) 3307{ 3308#ifndef __GNUC__ 3309 choke me 3310#endif 3311 3312 ; 3313 return 0; 3314} 3315_ACEOF 3316if ac_fn_c_try_compile "$LINENO" 3317then : 3318 ac_compiler_gnu=yes 3319else $as_nop 3320 ac_compiler_gnu=no 3321fi 3322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3323ac_cv_c_compiler_gnu=$ac_compiler_gnu 3324 3325fi 3326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3327printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3328ac_compiler_gnu=$ac_cv_c_compiler_gnu 3329 3330if test $ac_compiler_gnu = yes; then 3331 GCC=yes 3332else 3333 GCC= 3334fi 3335ac_test_CFLAGS=${CFLAGS+y} 3336ac_save_CFLAGS=$CFLAGS 3337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3338printf %s "checking whether $CC accepts -g... " >&6; } 3339if test ${ac_cv_prog_cc_g+y} 3340then : 3341 printf %s "(cached) " >&6 3342else $as_nop 3343 ac_save_c_werror_flag=$ac_c_werror_flag 3344 ac_c_werror_flag=yes 3345 ac_cv_prog_cc_g=no 3346 CFLAGS="-g" 3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3348/* end confdefs.h. */ 3349 3350int 3351main (void) 3352{ 3353 3354 ; 3355 return 0; 3356} 3357_ACEOF 3358if ac_fn_c_try_compile "$LINENO" 3359then : 3360 ac_cv_prog_cc_g=yes 3361else $as_nop 3362 CFLAGS="" 3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3364/* end confdefs.h. */ 3365 3366int 3367main (void) 3368{ 3369 3370 ; 3371 return 0; 3372} 3373_ACEOF 3374if ac_fn_c_try_compile "$LINENO" 3375then : 3376 3377else $as_nop 3378 ac_c_werror_flag=$ac_save_c_werror_flag 3379 CFLAGS="-g" 3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381/* end confdefs.h. */ 3382 3383int 3384main (void) 3385{ 3386 3387 ; 3388 return 0; 3389} 3390_ACEOF 3391if ac_fn_c_try_compile "$LINENO" 3392then : 3393 ac_cv_prog_cc_g=yes 3394fi 3395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3396fi 3397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3398fi 3399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3400 ac_c_werror_flag=$ac_save_c_werror_flag 3401fi 3402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3403printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3404if test $ac_test_CFLAGS; then 3405 CFLAGS=$ac_save_CFLAGS 3406elif test $ac_cv_prog_cc_g = yes; then 3407 if test "$GCC" = yes; then 3408 CFLAGS="-g -O2" 3409 else 3410 CFLAGS="-g" 3411 fi 3412else 3413 if test "$GCC" = yes; then 3414 CFLAGS="-O2" 3415 else 3416 CFLAGS= 3417 fi 3418fi 3419ac_prog_cc_stdc=no 3420if test x$ac_prog_cc_stdc = xno 3421then : 3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3423printf %s "checking for $CC option to enable C11 features... " >&6; } 3424if test ${ac_cv_prog_cc_c11+y} 3425then : 3426 printf %s "(cached) " >&6 3427else $as_nop 3428 ac_cv_prog_cc_c11=no 3429ac_save_CC=$CC 3430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3431/* end confdefs.h. */ 3432$ac_c_conftest_c11_program 3433_ACEOF 3434for ac_arg in '' -std=gnu11 3435do 3436 CC="$ac_save_CC $ac_arg" 3437 if ac_fn_c_try_compile "$LINENO" 3438then : 3439 ac_cv_prog_cc_c11=$ac_arg 3440fi 3441rm -f core conftest.err conftest.$ac_objext conftest.beam 3442 test "x$ac_cv_prog_cc_c11" != "xno" && break 3443done 3444rm -f conftest.$ac_ext 3445CC=$ac_save_CC 3446fi 3447 3448if test "x$ac_cv_prog_cc_c11" = xno 3449then : 3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3451printf "%s\n" "unsupported" >&6; } 3452else $as_nop 3453 if test "x$ac_cv_prog_cc_c11" = x 3454then : 3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3456printf "%s\n" "none needed" >&6; } 3457else $as_nop 3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3459printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3460 CC="$CC $ac_cv_prog_cc_c11" 3461fi 3462 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3463 ac_prog_cc_stdc=c11 3464fi 3465fi 3466if test x$ac_prog_cc_stdc = xno 3467then : 3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3469printf %s "checking for $CC option to enable C99 features... " >&6; } 3470if test ${ac_cv_prog_cc_c99+y} 3471then : 3472 printf %s "(cached) " >&6 3473else $as_nop 3474 ac_cv_prog_cc_c99=no 3475ac_save_CC=$CC 3476cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3477/* end confdefs.h. */ 3478$ac_c_conftest_c99_program 3479_ACEOF 3480for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3481do 3482 CC="$ac_save_CC $ac_arg" 3483 if ac_fn_c_try_compile "$LINENO" 3484then : 3485 ac_cv_prog_cc_c99=$ac_arg 3486fi 3487rm -f core conftest.err conftest.$ac_objext conftest.beam 3488 test "x$ac_cv_prog_cc_c99" != "xno" && break 3489done 3490rm -f conftest.$ac_ext 3491CC=$ac_save_CC 3492fi 3493 3494if test "x$ac_cv_prog_cc_c99" = xno 3495then : 3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3497printf "%s\n" "unsupported" >&6; } 3498else $as_nop 3499 if test "x$ac_cv_prog_cc_c99" = x 3500then : 3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3502printf "%s\n" "none needed" >&6; } 3503else $as_nop 3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3505printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3506 CC="$CC $ac_cv_prog_cc_c99" 3507fi 3508 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3509 ac_prog_cc_stdc=c99 3510fi 3511fi 3512if test x$ac_prog_cc_stdc = xno 3513then : 3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3515printf %s "checking for $CC option to enable C89 features... " >&6; } 3516if test ${ac_cv_prog_cc_c89+y} 3517then : 3518 printf %s "(cached) " >&6 3519else $as_nop 3520 ac_cv_prog_cc_c89=no 3521ac_save_CC=$CC 3522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523/* end confdefs.h. */ 3524$ac_c_conftest_c89_program 3525_ACEOF 3526for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3527do 3528 CC="$ac_save_CC $ac_arg" 3529 if ac_fn_c_try_compile "$LINENO" 3530then : 3531 ac_cv_prog_cc_c89=$ac_arg 3532fi 3533rm -f core conftest.err conftest.$ac_objext conftest.beam 3534 test "x$ac_cv_prog_cc_c89" != "xno" && break 3535done 3536rm -f conftest.$ac_ext 3537CC=$ac_save_CC 3538fi 3539 3540if test "x$ac_cv_prog_cc_c89" = xno 3541then : 3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3543printf "%s\n" "unsupported" >&6; } 3544else $as_nop 3545 if test "x$ac_cv_prog_cc_c89" = x 3546then : 3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3548printf "%s\n" "none needed" >&6; } 3549else $as_nop 3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3551printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3552 CC="$CC $ac_cv_prog_cc_c89" 3553fi 3554 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3555 ac_prog_cc_stdc=c89 3556fi 3557fi 3558 3559ac_ext=c 3560ac_cpp='$CPP $CPPFLAGS' 3561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3563ac_compiler_gnu=$ac_cv_c_compiler_gnu 3564 3565 3566 ac_ext=c 3567ac_cpp='$CPP $CPPFLAGS' 3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3570ac_compiler_gnu=$ac_cv_c_compiler_gnu 3571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3572printf %s "checking whether $CC understands -c and -o together... " >&6; } 3573if test ${am_cv_prog_cc_c_o+y} 3574then : 3575 printf %s "(cached) " >&6 3576else $as_nop 3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3578/* end confdefs.h. */ 3579 3580int 3581main (void) 3582{ 3583 3584 ; 3585 return 0; 3586} 3587_ACEOF 3588 # Make sure it works both with $CC and with simple cc. 3589 # Following AC_PROG_CC_C_O, we do the test twice because some 3590 # compilers refuse to overwrite an existing .o file with -o, 3591 # though they will create one. 3592 am_cv_prog_cc_c_o=yes 3593 for am_i in 1 2; do 3594 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3595 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3596 ac_status=$? 3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3598 (exit $ac_status); } \ 3599 && test -f conftest2.$ac_objext; then 3600 : OK 3601 else 3602 am_cv_prog_cc_c_o=no 3603 break 3604 fi 3605 done 3606 rm -f core conftest* 3607 unset am_i 3608fi 3609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3610printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3611if test "$am_cv_prog_cc_c_o" != yes; then 3612 # Losing compiler, so override with the script. 3613 # FIXME: It is wrong to rewrite CC. 3614 # But if we don't then we get into trouble of one sort or another. 3615 # A longer-term fix would be to have automake use am__CC in this case, 3616 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3617 CC="$am_aux_dir/compile $CC" 3618fi 3619ac_ext=c 3620ac_cpp='$CPP $CPPFLAGS' 3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3623ac_compiler_gnu=$ac_cv_c_compiler_gnu 3624 3625 3626 3627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5 3628printf %s "checking whether C compiler accepts -Wall... " >&6; } 3629if test ${ax_cv_check_cflags___Wall+y} 3630then : 3631 printf %s "(cached) " >&6 3632else $as_nop 3633 3634 ax_check_save_flags=$CFLAGS 3635 CFLAGS="$CFLAGS -Wall" 3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3637/* end confdefs.h. */ 3638 3639int 3640main (void) 3641{ 3642 3643 ; 3644 return 0; 3645} 3646_ACEOF 3647if ac_fn_c_try_compile "$LINENO" 3648then : 3649 ax_cv_check_cflags___Wall=yes 3650else $as_nop 3651 ax_cv_check_cflags___Wall=no 3652fi 3653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3654 CFLAGS=$ax_check_save_flags 3655fi 3656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5 3657printf "%s\n" "$ax_cv_check_cflags___Wall" >&6; } 3658if test "x$ax_cv_check_cflags___Wall" = xyes 3659then : 3660 CFLAGS="$CFLAGS -Wall" 3661else $as_nop 3662 : 3663fi 3664 3665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5 3666printf %s "checking whether C compiler accepts -Wextra... " >&6; } 3667if test ${ax_cv_check_cflags___Wextra+y} 3668then : 3669 printf %s "(cached) " >&6 3670else $as_nop 3671 3672 ax_check_save_flags=$CFLAGS 3673 CFLAGS="$CFLAGS -Wextra" 3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3675/* end confdefs.h. */ 3676 3677int 3678main (void) 3679{ 3680 3681 ; 3682 return 0; 3683} 3684_ACEOF 3685if ac_fn_c_try_compile "$LINENO" 3686then : 3687 ax_cv_check_cflags___Wextra=yes 3688else $as_nop 3689 ax_cv_check_cflags___Wextra=no 3690fi 3691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3692 CFLAGS=$ax_check_save_flags 3693fi 3694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra" >&5 3695printf "%s\n" "$ax_cv_check_cflags___Wextra" >&6; } 3696if test "x$ax_cv_check_cflags___Wextra" = xyes 3697then : 3698 CFLAGS="$CFLAGS -Wextra" 3699else $as_nop 3700 : 3701fi 3702 3703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat=2" >&5 3704printf %s "checking whether C compiler accepts -Wformat=2... " >&6; } 3705if test ${ax_cv_check_cflags___Wformat_2+y} 3706then : 3707 printf %s "(cached) " >&6 3708else $as_nop 3709 3710 ax_check_save_flags=$CFLAGS 3711 CFLAGS="$CFLAGS -Wformat=2" 3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714 3715int 3716main (void) 3717{ 3718 3719 ; 3720 return 0; 3721} 3722_ACEOF 3723if ac_fn_c_try_compile "$LINENO" 3724then : 3725 ax_cv_check_cflags___Wformat_2=yes 3726else $as_nop 3727 ax_cv_check_cflags___Wformat_2=no 3728fi 3729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3730 CFLAGS=$ax_check_save_flags 3731fi 3732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_2" >&5 3733printf "%s\n" "$ax_cv_check_cflags___Wformat_2" >&6; } 3734if test "x$ax_cv_check_cflags___Wformat_2" = xyes 3735then : 3736 CFLAGS="$CFLAGS -Wformat=2" 3737else $as_nop 3738 : 3739fi 3740 3741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=gnu99" >&5 3742printf %s "checking whether C compiler accepts -std=gnu99... " >&6; } 3743if test ${ax_cv_check_cflags___std_gnu99+y} 3744then : 3745 printf %s "(cached) " >&6 3746else $as_nop 3747 3748 ax_check_save_flags=$CFLAGS 3749 CFLAGS="$CFLAGS -std=gnu99" 3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3751/* end confdefs.h. */ 3752 3753int 3754main (void) 3755{ 3756 3757 ; 3758 return 0; 3759} 3760_ACEOF 3761if ac_fn_c_try_compile "$LINENO" 3762then : 3763 ax_cv_check_cflags___std_gnu99=yes 3764else $as_nop 3765 ax_cv_check_cflags___std_gnu99=no 3766fi 3767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3768 CFLAGS=$ax_check_save_flags 3769fi 3770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_gnu99" >&5 3771printf "%s\n" "$ax_cv_check_cflags___std_gnu99" >&6; } 3772if test "x$ax_cv_check_cflags___std_gnu99" = xyes 3773then : 3774 CFLAGS="$CFLAGS -std=gnu99" 3775else $as_nop 3776 3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=c99" >&5 3778printf %s "checking whether C compiler accepts -std=c99... " >&6; } 3779if test ${ax_cv_check_cflags___std_c99+y} 3780then : 3781 printf %s "(cached) " >&6 3782else $as_nop 3783 3784 ax_check_save_flags=$CFLAGS 3785 CFLAGS="$CFLAGS -std=c99" 3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788 3789int 3790main (void) 3791{ 3792 3793 ; 3794 return 0; 3795} 3796_ACEOF 3797if ac_fn_c_try_compile "$LINENO" 3798then : 3799 ax_cv_check_cflags___std_c99=yes 3800else $as_nop 3801 ax_cv_check_cflags___std_c99=no 3802fi 3803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3804 CFLAGS=$ax_check_save_flags 3805fi 3806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_c99" >&5 3807printf "%s\n" "$ax_cv_check_cflags___std_c99" >&6; } 3808if test "x$ax_cv_check_cflags___std_c99" = xyes 3809then : 3810 CFLAGS="$CFLAGS -std=c99" 3811else $as_nop 3812 : 3813fi 3814 3815 3816fi 3817 3818ac_config_headers="$ac_config_headers libpkgconf/config.h" 3819 3820ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 3821if test "x$ac_cv_func_strlcpy" = xyes 3822then : 3823 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 3824 3825fi 3826ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 3827if test "x$ac_cv_func_strlcat" = xyes 3828then : 3829 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 3830 3831fi 3832ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 3833if test "x$ac_cv_func_strndup" = xyes 3834then : 3835 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 3836 3837fi 3838 3839ac_header= ac_cache= 3840for ac_item in $ac_header_c_list 3841do 3842 if test $ac_cache; then 3843 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3844 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3845 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3846 fi 3847 ac_header= ac_cache= 3848 elif test $ac_header; then 3849 ac_cache=$ac_item 3850 else 3851 ac_header=$ac_item 3852 fi 3853done 3854 3855 3856 3857 3858 3859 3860 3861 3862if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3863then : 3864 3865printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3866 3867fi 3868ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 3869if test "x$ac_cv_header_sys_stat_h" = xyes 3870then : 3871 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 3872 3873fi 3874 3875am__api_version='1.16' 3876 3877 3878 # Find a good install program. We prefer a C program (faster), 3879# so one script is as good as another. But avoid the broken or 3880# incompatible versions: 3881# SysV /etc/install, /usr/sbin/install 3882# SunOS /usr/etc/install 3883# IRIX /sbin/install 3884# AIX /bin/install 3885# AmigaOS /C/install, which installs bootblocks on floppy discs 3886# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3887# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3888# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3889# OS/2's system install, which has a completely different semantic 3890# ./install, which can be erroneously created by make from ./install.sh. 3891# Reject install programs that cannot install multiple files. 3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3893printf %s "checking for a BSD-compatible install... " >&6; } 3894if test -z "$INSTALL"; then 3895if test ${ac_cv_path_install+y} 3896then : 3897 printf %s "(cached) " >&6 3898else $as_nop 3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3900for as_dir in $PATH 3901do 3902 IFS=$as_save_IFS 3903 case $as_dir in #((( 3904 '') as_dir=./ ;; 3905 */) ;; 3906 *) as_dir=$as_dir/ ;; 3907 esac 3908 # Account for fact that we put trailing slashes in our PATH walk. 3909case $as_dir in #(( 3910 ./ | /[cC]/* | \ 3911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3912 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3913 /usr/ucb/* ) ;; 3914 *) 3915 # OSF1 and SCO ODT 3.0 have their own names for install. 3916 # Don't use installbsd from OSF since it installs stuff as root 3917 # by default. 3918 for ac_prog in ginstall scoinst install; do 3919 for ac_exec_ext in '' $ac_executable_extensions; do 3920 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3921 if test $ac_prog = install && 3922 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3923 # AIX install. It has an incompatible calling convention. 3924 : 3925 elif test $ac_prog = install && 3926 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3927 # program-specific install script used by HP pwplus--don't use. 3928 : 3929 else 3930 rm -rf conftest.one conftest.two conftest.dir 3931 echo one > conftest.one 3932 echo two > conftest.two 3933 mkdir conftest.dir 3934 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3935 test -s conftest.one && test -s conftest.two && 3936 test -s conftest.dir/conftest.one && 3937 test -s conftest.dir/conftest.two 3938 then 3939 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3940 break 3 3941 fi 3942 fi 3943 fi 3944 done 3945 done 3946 ;; 3947esac 3948 3949 done 3950IFS=$as_save_IFS 3951 3952rm -rf conftest.one conftest.two conftest.dir 3953 3954fi 3955 if test ${ac_cv_path_install+y}; then 3956 INSTALL=$ac_cv_path_install 3957 else 3958 # As a last resort, use the slow shell script. Don't cache a 3959 # value for INSTALL within a source directory, because that will 3960 # break other packages using the cache if that directory is 3961 # removed, or if the value is a relative name. 3962 INSTALL=$ac_install_sh 3963 fi 3964fi 3965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3966printf "%s\n" "$INSTALL" >&6; } 3967 3968# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3969# It thinks the first close brace ends the variable substitution. 3970test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3971 3972test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3973 3974test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3975 3976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3977printf %s "checking whether build environment is sane... " >&6; } 3978# Reject unsafe characters in $srcdir or the absolute working directory 3979# name. Accept space and tab only in the latter. 3980am_lf=' 3981' 3982case `pwd` in 3983 *[\\\"\#\$\&\'\`$am_lf]*) 3984 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3985esac 3986case $srcdir in 3987 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3988 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3989esac 3990 3991# Do 'set' in a subshell so we don't clobber the current shell's 3992# arguments. Must try -L first in case configure is actually a 3993# symlink; some systems play weird games with the mod time of symlinks 3994# (eg FreeBSD returns the mod time of the symlink's containing 3995# directory). 3996if ( 3997 am_has_slept=no 3998 for am_try in 1 2; do 3999 echo "timestamp, slept: $am_has_slept" > conftest.file 4000 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4001 if test "$*" = "X"; then 4002 # -L didn't work. 4003 set X `ls -t "$srcdir/configure" conftest.file` 4004 fi 4005 if test "$*" != "X $srcdir/configure conftest.file" \ 4006 && test "$*" != "X conftest.file $srcdir/configure"; then 4007 4008 # If neither matched, then we have a broken ls. This can happen 4009 # if, for instance, CONFIG_SHELL is bash and it inherits a 4010 # broken ls alias from the environment. This has actually 4011 # happened. Such a system could not be considered "sane". 4012 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4013 alias in your environment" "$LINENO" 5 4014 fi 4015 if test "$2" = conftest.file || test $am_try -eq 2; then 4016 break 4017 fi 4018 # Just in case. 4019 sleep 1 4020 am_has_slept=yes 4021 done 4022 test "$2" = conftest.file 4023 ) 4024then 4025 # Ok. 4026 : 4027else 4028 as_fn_error $? "newly created file is older than distributed files! 4029Check your system clock" "$LINENO" 5 4030fi 4031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4032printf "%s\n" "yes" >&6; } 4033# If we didn't sleep, we still need to ensure time stamps of config.status and 4034# generated files are strictly newer. 4035am_sleep_pid= 4036if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4037 ( sleep 1 ) & 4038 am_sleep_pid=$! 4039fi 4040 4041rm -f conftest.file 4042 4043test "$program_prefix" != NONE && 4044 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4045# Use a double $ so make ignores it. 4046test "$program_suffix" != NONE && 4047 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4048# Double any \ or $. 4049# By default was `s,x,x', remove it if useless. 4050ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4051program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4052 4053 4054 if test x"${MISSING+set}" != xset; then 4055 MISSING="\${SHELL} '$am_aux_dir/missing'" 4056fi 4057# Use eval to expand $SHELL 4058if eval "$MISSING --is-lightweight"; then 4059 am_missing_run="$MISSING " 4060else 4061 am_missing_run= 4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4063printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4064fi 4065 4066if test x"${install_sh+set}" != xset; then 4067 case $am_aux_dir in 4068 *\ * | *\ *) 4069 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4070 *) 4071 install_sh="\${SHELL} $am_aux_dir/install-sh" 4072 esac 4073fi 4074 4075# Installed binaries are usually stripped using 'strip' when the user 4076# run "make install-strip". However 'strip' might not be the right 4077# tool to use in cross-compilation environments, therefore Automake 4078# will honor the 'STRIP' environment variable to overrule this program. 4079if test "$cross_compiling" != no; then 4080 if test -n "$ac_tool_prefix"; then 4081 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4082set dummy ${ac_tool_prefix}strip; ac_word=$2 4083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4084printf %s "checking for $ac_word... " >&6; } 4085if test ${ac_cv_prog_STRIP+y} 4086then : 4087 printf %s "(cached) " >&6 4088else $as_nop 4089 if test -n "$STRIP"; then 4090 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4091else 4092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4093for as_dir in $PATH 4094do 4095 IFS=$as_save_IFS 4096 case $as_dir in #((( 4097 '') as_dir=./ ;; 4098 */) ;; 4099 *) as_dir=$as_dir/ ;; 4100 esac 4101 for ac_exec_ext in '' $ac_executable_extensions; do 4102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4103 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4105 break 2 4106 fi 4107done 4108 done 4109IFS=$as_save_IFS 4110 4111fi 4112fi 4113STRIP=$ac_cv_prog_STRIP 4114if test -n "$STRIP"; then 4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4116printf "%s\n" "$STRIP" >&6; } 4117else 4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4119printf "%s\n" "no" >&6; } 4120fi 4121 4122 4123fi 4124if test -z "$ac_cv_prog_STRIP"; then 4125 ac_ct_STRIP=$STRIP 4126 # Extract the first word of "strip", so it can be a program name with args. 4127set dummy strip; ac_word=$2 4128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4129printf %s "checking for $ac_word... " >&6; } 4130if test ${ac_cv_prog_ac_ct_STRIP+y} 4131then : 4132 printf %s "(cached) " >&6 4133else $as_nop 4134 if test -n "$ac_ct_STRIP"; then 4135 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4136else 4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4138for as_dir in $PATH 4139do 4140 IFS=$as_save_IFS 4141 case $as_dir in #((( 4142 '') as_dir=./ ;; 4143 */) ;; 4144 *) as_dir=$as_dir/ ;; 4145 esac 4146 for ac_exec_ext in '' $ac_executable_extensions; do 4147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4148 ac_cv_prog_ac_ct_STRIP="strip" 4149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4150 break 2 4151 fi 4152done 4153 done 4154IFS=$as_save_IFS 4155 4156fi 4157fi 4158ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4159if test -n "$ac_ct_STRIP"; then 4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4161printf "%s\n" "$ac_ct_STRIP" >&6; } 4162else 4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4164printf "%s\n" "no" >&6; } 4165fi 4166 4167 if test "x$ac_ct_STRIP" = x; then 4168 STRIP=":" 4169 else 4170 case $cross_compiling:$ac_tool_warned in 4171yes:) 4172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4173printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4174ac_tool_warned=yes ;; 4175esac 4176 STRIP=$ac_ct_STRIP 4177 fi 4178else 4179 STRIP="$ac_cv_prog_STRIP" 4180fi 4181 4182fi 4183INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4184 4185 4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4187printf %s "checking for a race-free mkdir -p... " >&6; } 4188if test -z "$MKDIR_P"; then 4189 if test ${ac_cv_path_mkdir+y} 4190then : 4191 printf %s "(cached) " >&6 4192else $as_nop 4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4194for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4195do 4196 IFS=$as_save_IFS 4197 case $as_dir in #((( 4198 '') as_dir=./ ;; 4199 */) ;; 4200 *) as_dir=$as_dir/ ;; 4201 esac 4202 for ac_prog in mkdir gmkdir; do 4203 for ac_exec_ext in '' $ac_executable_extensions; do 4204 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4205 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4206 'mkdir ('*'coreutils) '* | \ 4207 'BusyBox '* | \ 4208 'mkdir (fileutils) '4.1*) 4209 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4210 break 3;; 4211 esac 4212 done 4213 done 4214 done 4215IFS=$as_save_IFS 4216 4217fi 4218 4219 test -d ./--version && rmdir ./--version 4220 if test ${ac_cv_path_mkdir+y}; then 4221 MKDIR_P="$ac_cv_path_mkdir -p" 4222 else 4223 # As a last resort, use the slow shell script. Don't cache a 4224 # value for MKDIR_P within a source directory, because that will 4225 # break other packages using the cache if that directory is 4226 # removed, or if the value is a relative name. 4227 MKDIR_P="$ac_install_sh -d" 4228 fi 4229fi 4230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4231printf "%s\n" "$MKDIR_P" >&6; } 4232 4233for ac_prog in gawk mawk nawk awk 4234do 4235 # Extract the first word of "$ac_prog", so it can be a program name with args. 4236set dummy $ac_prog; ac_word=$2 4237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4238printf %s "checking for $ac_word... " >&6; } 4239if test ${ac_cv_prog_AWK+y} 4240then : 4241 printf %s "(cached) " >&6 4242else $as_nop 4243 if test -n "$AWK"; then 4244 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4245else 4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4247for as_dir in $PATH 4248do 4249 IFS=$as_save_IFS 4250 case $as_dir in #((( 4251 '') as_dir=./ ;; 4252 */) ;; 4253 *) as_dir=$as_dir/ ;; 4254 esac 4255 for ac_exec_ext in '' $ac_executable_extensions; do 4256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4257 ac_cv_prog_AWK="$ac_prog" 4258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4259 break 2 4260 fi 4261done 4262 done 4263IFS=$as_save_IFS 4264 4265fi 4266fi 4267AWK=$ac_cv_prog_AWK 4268if test -n "$AWK"; then 4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4270printf "%s\n" "$AWK" >&6; } 4271else 4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4273printf "%s\n" "no" >&6; } 4274fi 4275 4276 4277 test -n "$AWK" && break 4278done 4279 4280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4281printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4282set x ${MAKE-make} 4283ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4284if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4285then : 4286 printf %s "(cached) " >&6 4287else $as_nop 4288 cat >conftest.make <<\_ACEOF 4289SHELL = /bin/sh 4290all: 4291 @echo '@@@%%%=$(MAKE)=@@@%%%' 4292_ACEOF 4293# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4294case `${MAKE-make} -f conftest.make 2>/dev/null` in 4295 *@@@%%%=?*=@@@%%%*) 4296 eval ac_cv_prog_make_${ac_make}_set=yes;; 4297 *) 4298 eval ac_cv_prog_make_${ac_make}_set=no;; 4299esac 4300rm -f conftest.make 4301fi 4302if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4304printf "%s\n" "yes" >&6; } 4305 SET_MAKE= 4306else 4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4308printf "%s\n" "no" >&6; } 4309 SET_MAKE="MAKE=${MAKE-make}" 4310fi 4311 4312rm -rf .tst 2>/dev/null 4313mkdir .tst 2>/dev/null 4314if test -d .tst; then 4315 am__leading_dot=. 4316else 4317 am__leading_dot=_ 4318fi 4319rmdir .tst 2>/dev/null 4320 4321DEPDIR="${am__leading_dot}deps" 4322 4323ac_config_commands="$ac_config_commands depfiles" 4324 4325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4326printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4327cat > confinc.mk << 'END' 4328am__doit: 4329 @echo this is the am__doit target >confinc.out 4330.PHONY: am__doit 4331END 4332am__include="#" 4333am__quote= 4334# BSD make does it like this. 4335echo '.include "confinc.mk" # ignored' > confmf.BSD 4336# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4337echo 'include confinc.mk # ignored' > confmf.GNU 4338_am_result=no 4339for s in GNU BSD; do 4340 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4341 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4342 ac_status=$? 4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4344 (exit $ac_status); } 4345 case $?:`cat confinc.out 2>/dev/null` in #( 4346 '0:this is the am__doit target') : 4347 case $s in #( 4348 BSD) : 4349 am__include='.include' am__quote='"' ;; #( 4350 *) : 4351 am__include='include' am__quote='' ;; 4352esac ;; #( 4353 *) : 4354 ;; 4355esac 4356 if test "$am__include" != "#"; then 4357 _am_result="yes ($s style)" 4358 break 4359 fi 4360done 4361rm -f confinc.* confmf.* 4362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4363printf "%s\n" "${_am_result}" >&6; } 4364 4365# Check whether --enable-dependency-tracking was given. 4366if test ${enable_dependency_tracking+y} 4367then : 4368 enableval=$enable_dependency_tracking; 4369fi 4370 4371if test "x$enable_dependency_tracking" != xno; then 4372 am_depcomp="$ac_aux_dir/depcomp" 4373 AMDEPBACKSLASH='\' 4374 am__nodep='_no' 4375fi 4376 if test "x$enable_dependency_tracking" != xno; then 4377 AMDEP_TRUE= 4378 AMDEP_FALSE='#' 4379else 4380 AMDEP_TRUE='#' 4381 AMDEP_FALSE= 4382fi 4383 4384 4385# Check whether --enable-silent-rules was given. 4386if test ${enable_silent_rules+y} 4387then : 4388 enableval=$enable_silent_rules; 4389fi 4390 4391case $enable_silent_rules in # ((( 4392 yes) AM_DEFAULT_VERBOSITY=0;; 4393 no) AM_DEFAULT_VERBOSITY=1;; 4394 *) AM_DEFAULT_VERBOSITY=1;; 4395esac 4396am_make=${MAKE-make} 4397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4398printf %s "checking whether $am_make supports nested variables... " >&6; } 4399if test ${am_cv_make_support_nested_variables+y} 4400then : 4401 printf %s "(cached) " >&6 4402else $as_nop 4403 if printf "%s\n" 'TRUE=$(BAR$(V)) 4404BAR0=false 4405BAR1=true 4406V=1 4407am__doit: 4408 @$(TRUE) 4409.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4410 am_cv_make_support_nested_variables=yes 4411else 4412 am_cv_make_support_nested_variables=no 4413fi 4414fi 4415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4416printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4417if test $am_cv_make_support_nested_variables = yes; then 4418 AM_V='$(V)' 4419 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4420else 4421 AM_V=$AM_DEFAULT_VERBOSITY 4422 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4423fi 4424AM_BACKSLASH='\' 4425 4426if test "`cd $srcdir && pwd`" != "`pwd`"; then 4427 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4428 # is not polluted with repeated "-I." 4429 am__isrc=' -I$(srcdir)' 4430 # test to see if srcdir already configured 4431 if test -f $srcdir/config.status; then 4432 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4433 fi 4434fi 4435 4436# test whether we have cygpath 4437if test -z "$CYGPATH_W"; then 4438 if (cygpath --version) >/dev/null 2>/dev/null; then 4439 CYGPATH_W='cygpath -w' 4440 else 4441 CYGPATH_W=echo 4442 fi 4443fi 4444 4445 4446# Define the identity of the package. 4447 PACKAGE='pkgconf' 4448 VERSION='1.8.0' 4449 4450 4451printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4452 4453 4454printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4455 4456# Some tools Automake needs. 4457 4458ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4459 4460 4461AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4462 4463 4464AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4465 4466 4467AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4468 4469 4470MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4471 4472# For better backward compatibility. To be removed once Automake 1.9.x 4473# dies out for good. For more background, see: 4474# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4475# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4476mkdir_p='$(MKDIR_P)' 4477 4478# We need awk for the "check" target (and possibly the TAP driver). The 4479# system "awk" is bad on some platforms. 4480# Always define AMTAR for backward compatibility. Yes, it's still used 4481# in the wild :-( We should find a proper way to deprecate it ... 4482AMTAR='$${TAR-tar}' 4483 4484 4485# We'll loop over all known methods to create a tar archive until one works. 4486_am_tools='gnutar pax cpio none' 4487 4488am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4489 4490 4491 4492 4493 4494depcc="$CC" am_compiler_list= 4495 4496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4497printf %s "checking dependency style of $depcc... " >&6; } 4498if test ${am_cv_CC_dependencies_compiler_type+y} 4499then : 4500 printf %s "(cached) " >&6 4501else $as_nop 4502 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4503 # We make a subdir and do the tests there. Otherwise we can end up 4504 # making bogus files that we don't know about and never remove. For 4505 # instance it was reported that on HP-UX the gcc test will end up 4506 # making a dummy file named 'D' -- because '-MD' means "put the output 4507 # in D". 4508 rm -rf conftest.dir 4509 mkdir conftest.dir 4510 # Copy depcomp to subdir because otherwise we won't find it if we're 4511 # using a relative directory. 4512 cp "$am_depcomp" conftest.dir 4513 cd conftest.dir 4514 # We will build objects and dependencies in a subdirectory because 4515 # it helps to detect inapplicable dependency modes. For instance 4516 # both Tru64's cc and ICC support -MD to output dependencies as a 4517 # side effect of compilation, but ICC will put the dependencies in 4518 # the current directory while Tru64 will put them in the object 4519 # directory. 4520 mkdir sub 4521 4522 am_cv_CC_dependencies_compiler_type=none 4523 if test "$am_compiler_list" = ""; then 4524 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4525 fi 4526 am__universal=false 4527 case " $depcc " in #( 4528 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4529 esac 4530 4531 for depmode in $am_compiler_list; do 4532 # Setup a source with many dependencies, because some compilers 4533 # like to wrap large dependency lists on column 80 (with \), and 4534 # we should not choose a depcomp mode which is confused by this. 4535 # 4536 # We need to recreate these files for each test, as the compiler may 4537 # overwrite some of them when testing with obscure command lines. 4538 # This happens at least with the AIX C compiler. 4539 : > sub/conftest.c 4540 for i in 1 2 3 4 5 6; do 4541 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4542 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4543 # Solaris 10 /bin/sh. 4544 echo '/* dummy */' > sub/conftst$i.h 4545 done 4546 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4547 4548 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4549 # mode. It turns out that the SunPro C++ compiler does not properly 4550 # handle '-M -o', and we need to detect this. Also, some Intel 4551 # versions had trouble with output in subdirs. 4552 am__obj=sub/conftest.${OBJEXT-o} 4553 am__minus_obj="-o $am__obj" 4554 case $depmode in 4555 gcc) 4556 # This depmode causes a compiler race in universal mode. 4557 test "$am__universal" = false || continue 4558 ;; 4559 nosideeffect) 4560 # After this tag, mechanisms are not by side-effect, so they'll 4561 # only be used when explicitly requested. 4562 if test "x$enable_dependency_tracking" = xyes; then 4563 continue 4564 else 4565 break 4566 fi 4567 ;; 4568 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4569 # This compiler won't grok '-c -o', but also, the minuso test has 4570 # not run yet. These depmodes are late enough in the game, and 4571 # so weak that their functioning should not be impacted. 4572 am__obj=conftest.${OBJEXT-o} 4573 am__minus_obj= 4574 ;; 4575 none) break ;; 4576 esac 4577 if depmode=$depmode \ 4578 source=sub/conftest.c object=$am__obj \ 4579 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4580 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4581 >/dev/null 2>conftest.err && 4582 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4583 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4584 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4585 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4586 # icc doesn't choke on unknown options, it will just issue warnings 4587 # or remarks (even with -Werror). So we grep stderr for any message 4588 # that says an option was ignored or not supported. 4589 # When given -MP, icc 7.0 and 7.1 complain thusly: 4590 # icc: Command line warning: ignoring option '-M'; no argument required 4591 # The diagnosis changed in icc 8.0: 4592 # icc: Command line remark: option '-MP' not supported 4593 if (grep 'ignoring option' conftest.err || 4594 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4595 am_cv_CC_dependencies_compiler_type=$depmode 4596 break 4597 fi 4598 fi 4599 done 4600 4601 cd .. 4602 rm -rf conftest.dir 4603else 4604 am_cv_CC_dependencies_compiler_type=none 4605fi 4606 4607fi 4608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4609printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4610CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4611 4612 if 4613 test "x$enable_dependency_tracking" != xno \ 4614 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4615 am__fastdepCC_TRUE= 4616 am__fastdepCC_FALSE='#' 4617else 4618 am__fastdepCC_TRUE='#' 4619 am__fastdepCC_FALSE= 4620fi 4621 4622 4623 4624# POSIX will say in a future version that running "rm -f" with no argument 4625# is OK; and we want to be able to make that assumption in our Makefile 4626# recipes. So use an aggressive probe to check that the usage we want is 4627# actually supported "in the wild" to an acceptable degree. 4628# See automake bug#10828. 4629# To make any issue more visible, cause the running configure to be aborted 4630# by default if the 'rm' program in use doesn't match our expectations; the 4631# user can still override this though. 4632if rm -f && rm -fr && rm -rf; then : OK; else 4633 cat >&2 <<'END' 4634Oops! 4635 4636Your 'rm' program seems unable to run without file operands specified 4637on the command line, even when the '-f' option is present. This is contrary 4638to the behaviour of most rm programs out there, and not conforming with 4639the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4640 4641Please tell bug-automake@gnu.org about your system, including the value 4642of your $PATH and any error possibly output before this message. This 4643can help us improve future automake versions. 4644 4645END 4646 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4647 echo 'Configuration will proceed anyway, since you have set the' >&2 4648 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4649 echo >&2 4650 else 4651 cat >&2 <<'END' 4652Aborting the configuration process, to ensure you take notice of the issue. 4653 4654You can download and install GNU coreutils to get an 'rm' implementation 4655that behaves properly: <https://www.gnu.org/software/coreutils/>. 4656 4657If you want to complete the configuration process using your problematic 4658'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4659to "yes", and re-run configure. 4660 4661END 4662 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4663 fi 4664fi 4665 4666# Check whether --enable-silent-rules was given. 4667if test ${enable_silent_rules+y} 4668then : 4669 enableval=$enable_silent_rules; 4670fi 4671 4672case $enable_silent_rules in # ((( 4673 yes) AM_DEFAULT_VERBOSITY=0;; 4674 no) AM_DEFAULT_VERBOSITY=1;; 4675 *) AM_DEFAULT_VERBOSITY=0;; 4676esac 4677am_make=${MAKE-make} 4678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4679printf %s "checking whether $am_make supports nested variables... " >&6; } 4680if test ${am_cv_make_support_nested_variables+y} 4681then : 4682 printf %s "(cached) " >&6 4683else $as_nop 4684 if printf "%s\n" 'TRUE=$(BAR$(V)) 4685BAR0=false 4686BAR1=true 4687V=1 4688am__doit: 4689 @$(TRUE) 4690.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4691 am_cv_make_support_nested_variables=yes 4692else 4693 am_cv_make_support_nested_variables=no 4694fi 4695fi 4696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4697printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4698if test $am_cv_make_support_nested_variables = yes; then 4699 AM_V='$(V)' 4700 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4701else 4702 AM_V=$AM_DEFAULT_VERBOSITY 4703 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4704fi 4705AM_BACKSLASH='\' 4706 4707case `pwd` in 4708 *\ * | *\ *) 4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4710printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4711esac 4712 4713 4714 4715macro_version='2.4.6' 4716macro_revision='2.4.6' 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731ltmain=$ac_aux_dir/ltmain.sh 4732 4733 4734 4735 # Make sure we can run config.sub. 4736$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4737 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4738 4739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4740printf %s "checking build system type... " >&6; } 4741if test ${ac_cv_build+y} 4742then : 4743 printf %s "(cached) " >&6 4744else $as_nop 4745 ac_build_alias=$build_alias 4746test "x$ac_build_alias" = x && 4747 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4748test "x$ac_build_alias" = x && 4749 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4750ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4751 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4752 4753fi 4754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4755printf "%s\n" "$ac_cv_build" >&6; } 4756case $ac_cv_build in 4757*-*-*) ;; 4758*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4759esac 4760build=$ac_cv_build 4761ac_save_IFS=$IFS; IFS='-' 4762set x $ac_cv_build 4763shift 4764build_cpu=$1 4765build_vendor=$2 4766shift; shift 4767# Remember, the first character of IFS is used to create $*, 4768# except with old shells: 4769build_os=$* 4770IFS=$ac_save_IFS 4771case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4772 4773 4774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4775printf %s "checking host system type... " >&6; } 4776if test ${ac_cv_host+y} 4777then : 4778 printf %s "(cached) " >&6 4779else $as_nop 4780 if test "x$host_alias" = x; then 4781 ac_cv_host=$ac_cv_build 4782else 4783 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4784 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4785fi 4786 4787fi 4788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4789printf "%s\n" "$ac_cv_host" >&6; } 4790case $ac_cv_host in 4791*-*-*) ;; 4792*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4793esac 4794host=$ac_cv_host 4795ac_save_IFS=$IFS; IFS='-' 4796set x $ac_cv_host 4797shift 4798host_cpu=$1 4799host_vendor=$2 4800shift; shift 4801# Remember, the first character of IFS is used to create $*, 4802# except with old shells: 4803host_os=$* 4804IFS=$ac_save_IFS 4805case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4806 4807 4808# Backslashify metacharacters that are still active within 4809# double-quoted strings. 4810sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4811 4812# Same as above, but do not quote variable references. 4813double_quote_subst='s/\(["`\\]\)/\\\1/g' 4814 4815# Sed substitution to delay expansion of an escaped shell variable in a 4816# double_quote_subst'ed string. 4817delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4818 4819# Sed substitution to delay expansion of an escaped single quote. 4820delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4821 4822# Sed substitution to avoid accidental globbing in evaled expressions 4823no_glob_subst='s/\*/\\\*/g' 4824 4825ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4826ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4827ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4828 4829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4830printf %s "checking how to print strings... " >&6; } 4831# Test print first, because it will be a builtin if present. 4832if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4833 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4834 ECHO='print -r --' 4835elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4836 ECHO='printf %s\n' 4837else 4838 # Use this function as a fallback that always works. 4839 func_fallback_echo () 4840 { 4841 eval 'cat <<_LTECHO_EOF 4842$1 4843_LTECHO_EOF' 4844 } 4845 ECHO='func_fallback_echo' 4846fi 4847 4848# func_echo_all arg... 4849# Invoke $ECHO with all args, space-separated. 4850func_echo_all () 4851{ 4852 $ECHO "" 4853} 4854 4855case $ECHO in 4856 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4857printf "%s\n" "printf" >&6; } ;; 4858 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4859printf "%s\n" "print -r" >&6; } ;; 4860 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4861printf "%s\n" "cat" >&6; } ;; 4862esac 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4878printf %s "checking for a sed that does not truncate output... " >&6; } 4879if test ${ac_cv_path_SED+y} 4880then : 4881 printf %s "(cached) " >&6 4882else $as_nop 4883 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4884 for ac_i in 1 2 3 4 5 6 7; do 4885 ac_script="$ac_script$as_nl$ac_script" 4886 done 4887 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4888 { ac_script=; unset ac_script;} 4889 if test -z "$SED"; then 4890 ac_path_SED_found=false 4891 # Loop through the user's path and test for each of PROGNAME-LIST 4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4893for as_dir in $PATH 4894do 4895 IFS=$as_save_IFS 4896 case $as_dir in #((( 4897 '') as_dir=./ ;; 4898 */) ;; 4899 *) as_dir=$as_dir/ ;; 4900 esac 4901 for ac_prog in sed gsed 4902 do 4903 for ac_exec_ext in '' $ac_executable_extensions; do 4904 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4905 as_fn_executable_p "$ac_path_SED" || continue 4906# Check for GNU ac_path_SED and select it if it is found. 4907 # Check for GNU $ac_path_SED 4908case `"$ac_path_SED" --version 2>&1` in 4909*GNU*) 4910 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4911*) 4912 ac_count=0 4913 printf %s 0123456789 >"conftest.in" 4914 while : 4915 do 4916 cat "conftest.in" "conftest.in" >"conftest.tmp" 4917 mv "conftest.tmp" "conftest.in" 4918 cp "conftest.in" "conftest.nl" 4919 printf "%s\n" '' >> "conftest.nl" 4920 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4922 as_fn_arith $ac_count + 1 && ac_count=$as_val 4923 if test $ac_count -gt ${ac_path_SED_max-0}; then 4924 # Best one so far, save it but keep looking for a better one 4925 ac_cv_path_SED="$ac_path_SED" 4926 ac_path_SED_max=$ac_count 4927 fi 4928 # 10*(2^10) chars as input seems more than enough 4929 test $ac_count -gt 10 && break 4930 done 4931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4932esac 4933 4934 $ac_path_SED_found && break 3 4935 done 4936 done 4937 done 4938IFS=$as_save_IFS 4939 if test -z "$ac_cv_path_SED"; then 4940 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4941 fi 4942else 4943 ac_cv_path_SED=$SED 4944fi 4945 4946fi 4947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4948printf "%s\n" "$ac_cv_path_SED" >&6; } 4949 SED="$ac_cv_path_SED" 4950 rm -f conftest.sed 4951 4952test -z "$SED" && SED=sed 4953Xsed="$SED -e 1s/^X//" 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4966printf %s "checking for grep that handles long lines and -e... " >&6; } 4967if test ${ac_cv_path_GREP+y} 4968then : 4969 printf %s "(cached) " >&6 4970else $as_nop 4971 if test -z "$GREP"; then 4972 ac_path_GREP_found=false 4973 # Loop through the user's path and test for each of PROGNAME-LIST 4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4975for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4976do 4977 IFS=$as_save_IFS 4978 case $as_dir in #((( 4979 '') as_dir=./ ;; 4980 */) ;; 4981 *) as_dir=$as_dir/ ;; 4982 esac 4983 for ac_prog in grep ggrep 4984 do 4985 for ac_exec_ext in '' $ac_executable_extensions; do 4986 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4987 as_fn_executable_p "$ac_path_GREP" || continue 4988# Check for GNU ac_path_GREP and select it if it is found. 4989 # Check for GNU $ac_path_GREP 4990case `"$ac_path_GREP" --version 2>&1` in 4991*GNU*) 4992 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4993*) 4994 ac_count=0 4995 printf %s 0123456789 >"conftest.in" 4996 while : 4997 do 4998 cat "conftest.in" "conftest.in" >"conftest.tmp" 4999 mv "conftest.tmp" "conftest.in" 5000 cp "conftest.in" "conftest.nl" 5001 printf "%s\n" 'GREP' >> "conftest.nl" 5002 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5004 as_fn_arith $ac_count + 1 && ac_count=$as_val 5005 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5006 # Best one so far, save it but keep looking for a better one 5007 ac_cv_path_GREP="$ac_path_GREP" 5008 ac_path_GREP_max=$ac_count 5009 fi 5010 # 10*(2^10) chars as input seems more than enough 5011 test $ac_count -gt 10 && break 5012 done 5013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5014esac 5015 5016 $ac_path_GREP_found && break 3 5017 done 5018 done 5019 done 5020IFS=$as_save_IFS 5021 if test -z "$ac_cv_path_GREP"; then 5022 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5023 fi 5024else 5025 ac_cv_path_GREP=$GREP 5026fi 5027 5028fi 5029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5030printf "%s\n" "$ac_cv_path_GREP" >&6; } 5031 GREP="$ac_cv_path_GREP" 5032 5033 5034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5035printf %s "checking for egrep... " >&6; } 5036if test ${ac_cv_path_EGREP+y} 5037then : 5038 printf %s "(cached) " >&6 5039else $as_nop 5040 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5041 then ac_cv_path_EGREP="$GREP -E" 5042 else 5043 if test -z "$EGREP"; then 5044 ac_path_EGREP_found=false 5045 # Loop through the user's path and test for each of PROGNAME-LIST 5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5047for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5048do 5049 IFS=$as_save_IFS 5050 case $as_dir in #((( 5051 '') as_dir=./ ;; 5052 */) ;; 5053 *) as_dir=$as_dir/ ;; 5054 esac 5055 for ac_prog in egrep 5056 do 5057 for ac_exec_ext in '' $ac_executable_extensions; do 5058 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5059 as_fn_executable_p "$ac_path_EGREP" || continue 5060# Check for GNU ac_path_EGREP and select it if it is found. 5061 # Check for GNU $ac_path_EGREP 5062case `"$ac_path_EGREP" --version 2>&1` in 5063*GNU*) 5064 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5065*) 5066 ac_count=0 5067 printf %s 0123456789 >"conftest.in" 5068 while : 5069 do 5070 cat "conftest.in" "conftest.in" >"conftest.tmp" 5071 mv "conftest.tmp" "conftest.in" 5072 cp "conftest.in" "conftest.nl" 5073 printf "%s\n" 'EGREP' >> "conftest.nl" 5074 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5076 as_fn_arith $ac_count + 1 && ac_count=$as_val 5077 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5078 # Best one so far, save it but keep looking for a better one 5079 ac_cv_path_EGREP="$ac_path_EGREP" 5080 ac_path_EGREP_max=$ac_count 5081 fi 5082 # 10*(2^10) chars as input seems more than enough 5083 test $ac_count -gt 10 && break 5084 done 5085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5086esac 5087 5088 $ac_path_EGREP_found && break 3 5089 done 5090 done 5091 done 5092IFS=$as_save_IFS 5093 if test -z "$ac_cv_path_EGREP"; then 5094 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5095 fi 5096else 5097 ac_cv_path_EGREP=$EGREP 5098fi 5099 5100 fi 5101fi 5102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5103printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5104 EGREP="$ac_cv_path_EGREP" 5105 5106 5107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5108printf %s "checking for fgrep... " >&6; } 5109if test ${ac_cv_path_FGREP+y} 5110then : 5111 printf %s "(cached) " >&6 5112else $as_nop 5113 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5114 then ac_cv_path_FGREP="$GREP -F" 5115 else 5116 if test -z "$FGREP"; then 5117 ac_path_FGREP_found=false 5118 # Loop through the user's path and test for each of PROGNAME-LIST 5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5120for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5121do 5122 IFS=$as_save_IFS 5123 case $as_dir in #((( 5124 '') as_dir=./ ;; 5125 */) ;; 5126 *) as_dir=$as_dir/ ;; 5127 esac 5128 for ac_prog in fgrep 5129 do 5130 for ac_exec_ext in '' $ac_executable_extensions; do 5131 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5132 as_fn_executable_p "$ac_path_FGREP" || continue 5133# Check for GNU ac_path_FGREP and select it if it is found. 5134 # Check for GNU $ac_path_FGREP 5135case `"$ac_path_FGREP" --version 2>&1` in 5136*GNU*) 5137 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5138*) 5139 ac_count=0 5140 printf %s 0123456789 >"conftest.in" 5141 while : 5142 do 5143 cat "conftest.in" "conftest.in" >"conftest.tmp" 5144 mv "conftest.tmp" "conftest.in" 5145 cp "conftest.in" "conftest.nl" 5146 printf "%s\n" 'FGREP' >> "conftest.nl" 5147 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5149 as_fn_arith $ac_count + 1 && ac_count=$as_val 5150 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5151 # Best one so far, save it but keep looking for a better one 5152 ac_cv_path_FGREP="$ac_path_FGREP" 5153 ac_path_FGREP_max=$ac_count 5154 fi 5155 # 10*(2^10) chars as input seems more than enough 5156 test $ac_count -gt 10 && break 5157 done 5158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5159esac 5160 5161 $ac_path_FGREP_found && break 3 5162 done 5163 done 5164 done 5165IFS=$as_save_IFS 5166 if test -z "$ac_cv_path_FGREP"; then 5167 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5168 fi 5169else 5170 ac_cv_path_FGREP=$FGREP 5171fi 5172 5173 fi 5174fi 5175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5176printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5177 FGREP="$ac_cv_path_FGREP" 5178 5179 5180test -z "$GREP" && GREP=grep 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200# Check whether --with-gnu-ld was given. 5201if test ${with_gnu_ld+y} 5202then : 5203 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5204else $as_nop 5205 with_gnu_ld=no 5206fi 5207 5208ac_prog=ld 5209if test yes = "$GCC"; then 5210 # Check if gcc -print-prog-name=ld gives a path. 5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5212printf %s "checking for ld used by $CC... " >&6; } 5213 case $host in 5214 *-*-mingw*) 5215 # gcc leaves a trailing carriage return, which upsets mingw 5216 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5217 *) 5218 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5219 esac 5220 case $ac_prog in 5221 # Accept absolute paths. 5222 [\\/]* | ?:[\\/]*) 5223 re_direlt='/[^/][^/]*/\.\./' 5224 # Canonicalize the pathname of ld 5225 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5226 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5227 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5228 done 5229 test -z "$LD" && LD=$ac_prog 5230 ;; 5231 "") 5232 # If it fails, then pretend we aren't using GCC. 5233 ac_prog=ld 5234 ;; 5235 *) 5236 # If it is relative, then search for the first ld in PATH. 5237 with_gnu_ld=unknown 5238 ;; 5239 esac 5240elif test yes = "$with_gnu_ld"; then 5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5242printf %s "checking for GNU ld... " >&6; } 5243else 5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5245printf %s "checking for non-GNU ld... " >&6; } 5246fi 5247if test ${lt_cv_path_LD+y} 5248then : 5249 printf %s "(cached) " >&6 5250else $as_nop 5251 if test -z "$LD"; then 5252 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5253 for ac_dir in $PATH; do 5254 IFS=$lt_save_ifs 5255 test -z "$ac_dir" && ac_dir=. 5256 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5257 lt_cv_path_LD=$ac_dir/$ac_prog 5258 # Check to see if the program is GNU ld. I'd rather use --version, 5259 # but apparently some variants of GNU ld only accept -v. 5260 # Break only if it was the GNU/non-GNU ld that we prefer. 5261 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5262 *GNU* | *'with BFD'*) 5263 test no != "$with_gnu_ld" && break 5264 ;; 5265 *) 5266 test yes != "$with_gnu_ld" && break 5267 ;; 5268 esac 5269 fi 5270 done 5271 IFS=$lt_save_ifs 5272else 5273 lt_cv_path_LD=$LD # Let the user override the test with a path. 5274fi 5275fi 5276 5277LD=$lt_cv_path_LD 5278if test -n "$LD"; then 5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5280printf "%s\n" "$LD" >&6; } 5281else 5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5283printf "%s\n" "no" >&6; } 5284fi 5285test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5287printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5288if test ${lt_cv_prog_gnu_ld+y} 5289then : 5290 printf %s "(cached) " >&6 5291else $as_nop 5292 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5293case `$LD -v 2>&1 </dev/null` in 5294*GNU* | *'with BFD'*) 5295 lt_cv_prog_gnu_ld=yes 5296 ;; 5297*) 5298 lt_cv_prog_gnu_ld=no 5299 ;; 5300esac 5301fi 5302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5303printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5304with_gnu_ld=$lt_cv_prog_gnu_ld 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5315printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5316if test ${lt_cv_path_NM+y} 5317then : 5318 printf %s "(cached) " >&6 5319else $as_nop 5320 if test -n "$NM"; then 5321 # Let the user override the test. 5322 lt_cv_path_NM=$NM 5323else 5324 lt_nm_to_check=${ac_tool_prefix}nm 5325 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5326 lt_nm_to_check="$lt_nm_to_check nm" 5327 fi 5328 for lt_tmp_nm in $lt_nm_to_check; do 5329 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5330 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5331 IFS=$lt_save_ifs 5332 test -z "$ac_dir" && ac_dir=. 5333 tmp_nm=$ac_dir/$lt_tmp_nm 5334 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5335 # Check to see if the nm accepts a BSD-compat flag. 5336 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5337 # nm: unknown option "B" ignored 5338 # Tru64's nm complains that /dev/null is an invalid object file 5339 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5340 case $build_os in 5341 mingw*) lt_bad_file=conftest.nm/nofile ;; 5342 *) lt_bad_file=/dev/null ;; 5343 esac 5344 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5345 *$lt_bad_file* | *'Invalid file or object type'*) 5346 lt_cv_path_NM="$tmp_nm -B" 5347 break 2 5348 ;; 5349 *) 5350 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5351 */dev/null*) 5352 lt_cv_path_NM="$tmp_nm -p" 5353 break 2 5354 ;; 5355 *) 5356 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5357 continue # so that we can try to find one that supports BSD flags 5358 ;; 5359 esac 5360 ;; 5361 esac 5362 fi 5363 done 5364 IFS=$lt_save_ifs 5365 done 5366 : ${lt_cv_path_NM=no} 5367fi 5368fi 5369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5370printf "%s\n" "$lt_cv_path_NM" >&6; } 5371if test no != "$lt_cv_path_NM"; then 5372 NM=$lt_cv_path_NM 5373else 5374 # Didn't find any BSD compatible name lister, look for dumpbin. 5375 if test -n "$DUMPBIN"; then : 5376 # Let the user override the test. 5377 else 5378 if test -n "$ac_tool_prefix"; then 5379 for ac_prog in dumpbin "link -dump" 5380 do 5381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5382set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5384printf %s "checking for $ac_word... " >&6; } 5385if test ${ac_cv_prog_DUMPBIN+y} 5386then : 5387 printf %s "(cached) " >&6 5388else $as_nop 5389 if test -n "$DUMPBIN"; then 5390 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5391else 5392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5393for as_dir in $PATH 5394do 5395 IFS=$as_save_IFS 5396 case $as_dir in #((( 5397 '') as_dir=./ ;; 5398 */) ;; 5399 *) as_dir=$as_dir/ ;; 5400 esac 5401 for ac_exec_ext in '' $ac_executable_extensions; do 5402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5403 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5405 break 2 5406 fi 5407done 5408 done 5409IFS=$as_save_IFS 5410 5411fi 5412fi 5413DUMPBIN=$ac_cv_prog_DUMPBIN 5414if test -n "$DUMPBIN"; then 5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5416printf "%s\n" "$DUMPBIN" >&6; } 5417else 5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5419printf "%s\n" "no" >&6; } 5420fi 5421 5422 5423 test -n "$DUMPBIN" && break 5424 done 5425fi 5426if test -z "$DUMPBIN"; then 5427 ac_ct_DUMPBIN=$DUMPBIN 5428 for ac_prog in dumpbin "link -dump" 5429do 5430 # Extract the first word of "$ac_prog", so it can be a program name with args. 5431set dummy $ac_prog; ac_word=$2 5432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5433printf %s "checking for $ac_word... " >&6; } 5434if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5435then : 5436 printf %s "(cached) " >&6 5437else $as_nop 5438 if test -n "$ac_ct_DUMPBIN"; then 5439 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5440else 5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5442for as_dir in $PATH 5443do 5444 IFS=$as_save_IFS 5445 case $as_dir in #((( 5446 '') as_dir=./ ;; 5447 */) ;; 5448 *) as_dir=$as_dir/ ;; 5449 esac 5450 for ac_exec_ext in '' $ac_executable_extensions; do 5451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5452 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5454 break 2 5455 fi 5456done 5457 done 5458IFS=$as_save_IFS 5459 5460fi 5461fi 5462ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5463if test -n "$ac_ct_DUMPBIN"; then 5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5465printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5466else 5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5468printf "%s\n" "no" >&6; } 5469fi 5470 5471 5472 test -n "$ac_ct_DUMPBIN" && break 5473done 5474 5475 if test "x$ac_ct_DUMPBIN" = x; then 5476 DUMPBIN=":" 5477 else 5478 case $cross_compiling:$ac_tool_warned in 5479yes:) 5480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5481printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5482ac_tool_warned=yes ;; 5483esac 5484 DUMPBIN=$ac_ct_DUMPBIN 5485 fi 5486fi 5487 5488 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5489 *COFF*) 5490 DUMPBIN="$DUMPBIN -symbols -headers" 5491 ;; 5492 *) 5493 DUMPBIN=: 5494 ;; 5495 esac 5496 fi 5497 5498 if test : != "$DUMPBIN"; then 5499 NM=$DUMPBIN 5500 fi 5501fi 5502test -z "$NM" && NM=nm 5503 5504 5505 5506 5507 5508 5509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5510printf %s "checking the name lister ($NM) interface... " >&6; } 5511if test ${lt_cv_nm_interface+y} 5512then : 5513 printf %s "(cached) " >&6 5514else $as_nop 5515 lt_cv_nm_interface="BSD nm" 5516 echo "int some_variable = 0;" > conftest.$ac_ext 5517 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5518 (eval "$ac_compile" 2>conftest.err) 5519 cat conftest.err >&5 5520 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5521 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5522 cat conftest.err >&5 5523 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5524 cat conftest.out >&5 5525 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5526 lt_cv_nm_interface="MS dumpbin" 5527 fi 5528 rm -f conftest* 5529fi 5530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5531printf "%s\n" "$lt_cv_nm_interface" >&6; } 5532 5533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5534printf %s "checking whether ln -s works... " >&6; } 5535LN_S=$as_ln_s 5536if test "$LN_S" = "ln -s"; then 5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5538printf "%s\n" "yes" >&6; } 5539else 5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5541printf "%s\n" "no, using $LN_S" >&6; } 5542fi 5543 5544# find the maximum length of command line arguments 5545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5546printf %s "checking the maximum length of command line arguments... " >&6; } 5547if test ${lt_cv_sys_max_cmd_len+y} 5548then : 5549 printf %s "(cached) " >&6 5550else $as_nop 5551 i=0 5552 teststring=ABCD 5553 5554 case $build_os in 5555 msdosdjgpp*) 5556 # On DJGPP, this test can blow up pretty badly due to problems in libc 5557 # (any single argument exceeding 2000 bytes causes a buffer overrun 5558 # during glob expansion). Even if it were fixed, the result of this 5559 # check would be larger than it should be. 5560 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5561 ;; 5562 5563 gnu*) 5564 # Under GNU Hurd, this test is not required because there is 5565 # no limit to the length of command line arguments. 5566 # Libtool will interpret -1 as no limit whatsoever 5567 lt_cv_sys_max_cmd_len=-1; 5568 ;; 5569 5570 cygwin* | mingw* | cegcc*) 5571 # On Win9x/ME, this test blows up -- it succeeds, but takes 5572 # about 5 minutes as the teststring grows exponentially. 5573 # Worse, since 9x/ME are not pre-emptively multitasking, 5574 # you end up with a "frozen" computer, even though with patience 5575 # the test eventually succeeds (with a max line length of 256k). 5576 # Instead, let's just punt: use the minimum linelength reported by 5577 # all of the supported platforms: 8192 (on NT/2K/XP). 5578 lt_cv_sys_max_cmd_len=8192; 5579 ;; 5580 5581 mint*) 5582 # On MiNT this can take a long time and run out of memory. 5583 lt_cv_sys_max_cmd_len=8192; 5584 ;; 5585 5586 amigaos*) 5587 # On AmigaOS with pdksh, this test takes hours, literally. 5588 # So we just punt and use a minimum line length of 8192. 5589 lt_cv_sys_max_cmd_len=8192; 5590 ;; 5591 5592 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5593 # This has been around since 386BSD, at least. Likely further. 5594 if test -x /sbin/sysctl; then 5595 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5596 elif test -x /usr/sbin/sysctl; then 5597 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5598 else 5599 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5600 fi 5601 # And add a safety zone 5602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5604 ;; 5605 5606 interix*) 5607 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5608 lt_cv_sys_max_cmd_len=196608 5609 ;; 5610 5611 os2*) 5612 # The test takes a long time on OS/2. 5613 lt_cv_sys_max_cmd_len=8192 5614 ;; 5615 5616 osf*) 5617 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5618 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5619 # nice to cause kernel panics so lets avoid the loop below. 5620 # First set a reasonable default. 5621 lt_cv_sys_max_cmd_len=16384 5622 # 5623 if test -x /sbin/sysconfig; then 5624 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5625 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5626 esac 5627 fi 5628 ;; 5629 sco3.2v5*) 5630 lt_cv_sys_max_cmd_len=102400 5631 ;; 5632 sysv5* | sco5v6* | sysv4.2uw2*) 5633 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5634 if test -n "$kargmax"; then 5635 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5636 else 5637 lt_cv_sys_max_cmd_len=32768 5638 fi 5639 ;; 5640 *) 5641 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5642 if test -n "$lt_cv_sys_max_cmd_len" && \ 5643 test undefined != "$lt_cv_sys_max_cmd_len"; then 5644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5646 else 5647 # Make teststring a little bigger before we do anything with it. 5648 # a 1K string should be a reasonable start. 5649 for i in 1 2 3 4 5 6 7 8; do 5650 teststring=$teststring$teststring 5651 done 5652 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5653 # If test is not a shell built-in, we'll probably end up computing a 5654 # maximum length that is only half of the actual maximum length, but 5655 # we can't tell. 5656 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5657 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5658 test 17 != "$i" # 1/2 MB should be enough 5659 do 5660 i=`expr $i + 1` 5661 teststring=$teststring$teststring 5662 done 5663 # Only check the string length outside the loop. 5664 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5665 teststring= 5666 # Add a significant safety factor because C++ compilers can tack on 5667 # massive amounts of additional arguments before passing them to the 5668 # linker. It appears as though 1/2 is a usable value. 5669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5670 fi 5671 ;; 5672 esac 5673 5674fi 5675 5676if test -n "$lt_cv_sys_max_cmd_len"; then 5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5678printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5679else 5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5681printf "%s\n" "none" >&6; } 5682fi 5683max_cmd_len=$lt_cv_sys_max_cmd_len 5684 5685 5686 5687 5688 5689 5690: ${CP="cp -f"} 5691: ${MV="mv -f"} 5692: ${RM="rm -f"} 5693 5694if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5695 lt_unset=unset 5696else 5697 lt_unset=false 5698fi 5699 5700 5701 5702 5703 5704# test EBCDIC or ASCII 5705case `echo X|tr X '\101'` in 5706 A) # ASCII based system 5707 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5708 lt_SP2NL='tr \040 \012' 5709 lt_NL2SP='tr \015\012 \040\040' 5710 ;; 5711 *) # EBCDIC based system 5712 lt_SP2NL='tr \100 \n' 5713 lt_NL2SP='tr \r\n \100\100' 5714 ;; 5715esac 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5726printf %s "checking how to convert $build file names to $host format... " >&6; } 5727if test ${lt_cv_to_host_file_cmd+y} 5728then : 5729 printf %s "(cached) " >&6 5730else $as_nop 5731 case $host in 5732 *-*-mingw* ) 5733 case $build in 5734 *-*-mingw* ) # actually msys 5735 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5736 ;; 5737 *-*-cygwin* ) 5738 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5739 ;; 5740 * ) # otherwise, assume *nix 5741 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5742 ;; 5743 esac 5744 ;; 5745 *-*-cygwin* ) 5746 case $build in 5747 *-*-mingw* ) # actually msys 5748 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5749 ;; 5750 *-*-cygwin* ) 5751 lt_cv_to_host_file_cmd=func_convert_file_noop 5752 ;; 5753 * ) # otherwise, assume *nix 5754 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5755 ;; 5756 esac 5757 ;; 5758 * ) # unhandled hosts (and "normal" native builds) 5759 lt_cv_to_host_file_cmd=func_convert_file_noop 5760 ;; 5761esac 5762 5763fi 5764 5765to_host_file_cmd=$lt_cv_to_host_file_cmd 5766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5767printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5768 5769 5770 5771 5772 5773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5774printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5775if test ${lt_cv_to_tool_file_cmd+y} 5776then : 5777 printf %s "(cached) " >&6 5778else $as_nop 5779 #assume ordinary cross tools, or native build. 5780lt_cv_to_tool_file_cmd=func_convert_file_noop 5781case $host in 5782 *-*-mingw* ) 5783 case $build in 5784 *-*-mingw* ) # actually msys 5785 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5786 ;; 5787 esac 5788 ;; 5789esac 5790 5791fi 5792 5793to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5795printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5796 5797 5798 5799 5800 5801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5802printf %s "checking for $LD option to reload object files... " >&6; } 5803if test ${lt_cv_ld_reload_flag+y} 5804then : 5805 printf %s "(cached) " >&6 5806else $as_nop 5807 lt_cv_ld_reload_flag='-r' 5808fi 5809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5810printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5811reload_flag=$lt_cv_ld_reload_flag 5812case $reload_flag in 5813"" | " "*) ;; 5814*) reload_flag=" $reload_flag" ;; 5815esac 5816reload_cmds='$LD$reload_flag -o $output$reload_objs' 5817case $host_os in 5818 cygwin* | mingw* | pw32* | cegcc*) 5819 if test yes != "$GCC"; then 5820 reload_cmds=false 5821 fi 5822 ;; 5823 darwin*) 5824 if test yes = "$GCC"; then 5825 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5826 else 5827 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5828 fi 5829 ;; 5830esac 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840if test -n "$ac_tool_prefix"; then 5841 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5842set dummy ${ac_tool_prefix}objdump; ac_word=$2 5843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5844printf %s "checking for $ac_word... " >&6; } 5845if test ${ac_cv_prog_OBJDUMP+y} 5846then : 5847 printf %s "(cached) " >&6 5848else $as_nop 5849 if test -n "$OBJDUMP"; then 5850 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5851else 5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5853for as_dir in $PATH 5854do 5855 IFS=$as_save_IFS 5856 case $as_dir in #((( 5857 '') as_dir=./ ;; 5858 */) ;; 5859 *) as_dir=$as_dir/ ;; 5860 esac 5861 for ac_exec_ext in '' $ac_executable_extensions; do 5862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5863 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5865 break 2 5866 fi 5867done 5868 done 5869IFS=$as_save_IFS 5870 5871fi 5872fi 5873OBJDUMP=$ac_cv_prog_OBJDUMP 5874if test -n "$OBJDUMP"; then 5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5876printf "%s\n" "$OBJDUMP" >&6; } 5877else 5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5879printf "%s\n" "no" >&6; } 5880fi 5881 5882 5883fi 5884if test -z "$ac_cv_prog_OBJDUMP"; then 5885 ac_ct_OBJDUMP=$OBJDUMP 5886 # Extract the first word of "objdump", so it can be a program name with args. 5887set dummy objdump; ac_word=$2 5888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5889printf %s "checking for $ac_word... " >&6; } 5890if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5891then : 5892 printf %s "(cached) " >&6 5893else $as_nop 5894 if test -n "$ac_ct_OBJDUMP"; then 5895 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5896else 5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5898for as_dir in $PATH 5899do 5900 IFS=$as_save_IFS 5901 case $as_dir in #((( 5902 '') as_dir=./ ;; 5903 */) ;; 5904 *) as_dir=$as_dir/ ;; 5905 esac 5906 for ac_exec_ext in '' $ac_executable_extensions; do 5907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5908 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5910 break 2 5911 fi 5912done 5913 done 5914IFS=$as_save_IFS 5915 5916fi 5917fi 5918ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5919if test -n "$ac_ct_OBJDUMP"; then 5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5921printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5922else 5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5924printf "%s\n" "no" >&6; } 5925fi 5926 5927 if test "x$ac_ct_OBJDUMP" = x; then 5928 OBJDUMP="false" 5929 else 5930 case $cross_compiling:$ac_tool_warned in 5931yes:) 5932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5933printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5934ac_tool_warned=yes ;; 5935esac 5936 OBJDUMP=$ac_ct_OBJDUMP 5937 fi 5938else 5939 OBJDUMP="$ac_cv_prog_OBJDUMP" 5940fi 5941 5942test -z "$OBJDUMP" && OBJDUMP=objdump 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5953printf %s "checking how to recognize dependent libraries... " >&6; } 5954if test ${lt_cv_deplibs_check_method+y} 5955then : 5956 printf %s "(cached) " >&6 5957else $as_nop 5958 lt_cv_file_magic_cmd='$MAGIC_CMD' 5959lt_cv_file_magic_test_file= 5960lt_cv_deplibs_check_method='unknown' 5961# Need to set the preceding variable on all platforms that support 5962# interlibrary dependencies. 5963# 'none' -- dependencies not supported. 5964# 'unknown' -- same as none, but documents that we really don't know. 5965# 'pass_all' -- all dependencies passed with no checks. 5966# 'test_compile' -- check by making test program. 5967# 'file_magic [[regex]]' -- check by looking for files in library path 5968# that responds to the $file_magic_cmd with a given extended regex. 5969# If you have 'file' or equivalent on your system and you're not sure 5970# whether 'pass_all' will *always* work, you probably want this one. 5971 5972case $host_os in 5973aix[4-9]*) 5974 lt_cv_deplibs_check_method=pass_all 5975 ;; 5976 5977beos*) 5978 lt_cv_deplibs_check_method=pass_all 5979 ;; 5980 5981bsdi[45]*) 5982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5983 lt_cv_file_magic_cmd='/usr/bin/file -L' 5984 lt_cv_file_magic_test_file=/shlib/libc.so 5985 ;; 5986 5987cygwin*) 5988 # func_win32_libid is a shell function defined in ltmain.sh 5989 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5990 lt_cv_file_magic_cmd='func_win32_libid' 5991 ;; 5992 5993mingw* | pw32*) 5994 # Base MSYS/MinGW do not provide the 'file' command needed by 5995 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5996 # unless we find 'file', for example because we are cross-compiling. 5997 if ( file / ) >/dev/null 2>&1; then 5998 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5999 lt_cv_file_magic_cmd='func_win32_libid' 6000 else 6001 # Keep this pattern in sync with the one in func_win32_libid. 6002 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6003 lt_cv_file_magic_cmd='$OBJDUMP -f' 6004 fi 6005 ;; 6006 6007cegcc*) 6008 # use the weaker test based on 'objdump'. See mingw*. 6009 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6010 lt_cv_file_magic_cmd='$OBJDUMP -f' 6011 ;; 6012 6013darwin* | rhapsody*) 6014 lt_cv_deplibs_check_method=pass_all 6015 ;; 6016 6017freebsd* | dragonfly*) 6018 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6019 case $host_cpu in 6020 i*86 ) 6021 # Not sure whether the presence of OpenBSD here was a mistake. 6022 # Let's accept both of them until this is cleared up. 6023 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6024 lt_cv_file_magic_cmd=/usr/bin/file 6025 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6026 ;; 6027 esac 6028 else 6029 lt_cv_deplibs_check_method=pass_all 6030 fi 6031 ;; 6032 6033haiku*) 6034 lt_cv_deplibs_check_method=pass_all 6035 ;; 6036 6037hpux10.20* | hpux11*) 6038 lt_cv_file_magic_cmd=/usr/bin/file 6039 case $host_cpu in 6040 ia64*) 6041 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6042 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6043 ;; 6044 hppa*64*) 6045 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]' 6046 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6047 ;; 6048 *) 6049 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6050 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6051 ;; 6052 esac 6053 ;; 6054 6055interix[3-9]*) 6056 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6058 ;; 6059 6060irix5* | irix6* | nonstopux*) 6061 case $LD in 6062 *-32|*"-32 ") libmagic=32-bit;; 6063 *-n32|*"-n32 ") libmagic=N32;; 6064 *-64|*"-64 ") libmagic=64-bit;; 6065 *) libmagic=never-match;; 6066 esac 6067 lt_cv_deplibs_check_method=pass_all 6068 ;; 6069 6070# This must be glibc/ELF. 6071linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6072 lt_cv_deplibs_check_method=pass_all 6073 ;; 6074 6075netbsd*) 6076 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6078 else 6079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6080 fi 6081 ;; 6082 6083newos6*) 6084 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6085 lt_cv_file_magic_cmd=/usr/bin/file 6086 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6087 ;; 6088 6089*nto* | *qnx*) 6090 lt_cv_deplibs_check_method=pass_all 6091 ;; 6092 6093openbsd* | bitrig*) 6094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6096 else 6097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6098 fi 6099 ;; 6100 6101osf3* | osf4* | osf5*) 6102 lt_cv_deplibs_check_method=pass_all 6103 ;; 6104 6105rdos*) 6106 lt_cv_deplibs_check_method=pass_all 6107 ;; 6108 6109solaris*) 6110 lt_cv_deplibs_check_method=pass_all 6111 ;; 6112 6113sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6114 lt_cv_deplibs_check_method=pass_all 6115 ;; 6116 6117sysv4 | sysv4.3*) 6118 case $host_vendor in 6119 motorola) 6120 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]' 6121 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6122 ;; 6123 ncr) 6124 lt_cv_deplibs_check_method=pass_all 6125 ;; 6126 sequent) 6127 lt_cv_file_magic_cmd='/bin/file' 6128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6129 ;; 6130 sni) 6131 lt_cv_file_magic_cmd='/bin/file' 6132 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6133 lt_cv_file_magic_test_file=/lib/libc.so 6134 ;; 6135 siemens) 6136 lt_cv_deplibs_check_method=pass_all 6137 ;; 6138 pc) 6139 lt_cv_deplibs_check_method=pass_all 6140 ;; 6141 esac 6142 ;; 6143 6144tpf*) 6145 lt_cv_deplibs_check_method=pass_all 6146 ;; 6147os2*) 6148 lt_cv_deplibs_check_method=pass_all 6149 ;; 6150esac 6151 6152fi 6153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6154printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6155 6156file_magic_glob= 6157want_nocaseglob=no 6158if test "$build" = "$host"; then 6159 case $host_os in 6160 mingw* | pw32*) 6161 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6162 want_nocaseglob=yes 6163 else 6164 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6165 fi 6166 ;; 6167 esac 6168fi 6169 6170file_magic_cmd=$lt_cv_file_magic_cmd 6171deplibs_check_method=$lt_cv_deplibs_check_method 6172test -z "$deplibs_check_method" && deplibs_check_method=unknown 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195if test -n "$ac_tool_prefix"; then 6196 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6197set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6199printf %s "checking for $ac_word... " >&6; } 6200if test ${ac_cv_prog_DLLTOOL+y} 6201then : 6202 printf %s "(cached) " >&6 6203else $as_nop 6204 if test -n "$DLLTOOL"; then 6205 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6206else 6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6208for as_dir in $PATH 6209do 6210 IFS=$as_save_IFS 6211 case $as_dir in #((( 6212 '') as_dir=./ ;; 6213 */) ;; 6214 *) as_dir=$as_dir/ ;; 6215 esac 6216 for ac_exec_ext in '' $ac_executable_extensions; do 6217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6218 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6220 break 2 6221 fi 6222done 6223 done 6224IFS=$as_save_IFS 6225 6226fi 6227fi 6228DLLTOOL=$ac_cv_prog_DLLTOOL 6229if test -n "$DLLTOOL"; then 6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6231printf "%s\n" "$DLLTOOL" >&6; } 6232else 6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6234printf "%s\n" "no" >&6; } 6235fi 6236 6237 6238fi 6239if test -z "$ac_cv_prog_DLLTOOL"; then 6240 ac_ct_DLLTOOL=$DLLTOOL 6241 # Extract the first word of "dlltool", so it can be a program name with args. 6242set dummy dlltool; ac_word=$2 6243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6244printf %s "checking for $ac_word... " >&6; } 6245if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6246then : 6247 printf %s "(cached) " >&6 6248else $as_nop 6249 if test -n "$ac_ct_DLLTOOL"; then 6250 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6251else 6252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6253for as_dir in $PATH 6254do 6255 IFS=$as_save_IFS 6256 case $as_dir in #((( 6257 '') as_dir=./ ;; 6258 */) ;; 6259 *) as_dir=$as_dir/ ;; 6260 esac 6261 for ac_exec_ext in '' $ac_executable_extensions; do 6262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6263 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6265 break 2 6266 fi 6267done 6268 done 6269IFS=$as_save_IFS 6270 6271fi 6272fi 6273ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6274if test -n "$ac_ct_DLLTOOL"; then 6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6276printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6277else 6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6279printf "%s\n" "no" >&6; } 6280fi 6281 6282 if test "x$ac_ct_DLLTOOL" = x; then 6283 DLLTOOL="false" 6284 else 6285 case $cross_compiling:$ac_tool_warned in 6286yes:) 6287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6288printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6289ac_tool_warned=yes ;; 6290esac 6291 DLLTOOL=$ac_ct_DLLTOOL 6292 fi 6293else 6294 DLLTOOL="$ac_cv_prog_DLLTOOL" 6295fi 6296 6297test -z "$DLLTOOL" && DLLTOOL=dlltool 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6309printf %s "checking how to associate runtime and link libraries... " >&6; } 6310if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6311then : 6312 printf %s "(cached) " >&6 6313else $as_nop 6314 lt_cv_sharedlib_from_linklib_cmd='unknown' 6315 6316case $host_os in 6317cygwin* | mingw* | pw32* | cegcc*) 6318 # two different shell functions defined in ltmain.sh; 6319 # decide which one to use based on capabilities of $DLLTOOL 6320 case `$DLLTOOL --help 2>&1` in 6321 *--identify-strict*) 6322 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6323 ;; 6324 *) 6325 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6326 ;; 6327 esac 6328 ;; 6329*) 6330 # fallback: assume linklib IS sharedlib 6331 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6332 ;; 6333esac 6334 6335fi 6336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6337printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6338sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6339test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6340 6341 6342 6343 6344 6345 6346 6347if test -n "$ac_tool_prefix"; then 6348 for ac_prog in ar 6349 do 6350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6351set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6353printf %s "checking for $ac_word... " >&6; } 6354if test ${ac_cv_prog_AR+y} 6355then : 6356 printf %s "(cached) " >&6 6357else $as_nop 6358 if test -n "$AR"; then 6359 ac_cv_prog_AR="$AR" # Let the user override the test. 6360else 6361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6362for as_dir in $PATH 6363do 6364 IFS=$as_save_IFS 6365 case $as_dir in #((( 6366 '') as_dir=./ ;; 6367 */) ;; 6368 *) as_dir=$as_dir/ ;; 6369 esac 6370 for ac_exec_ext in '' $ac_executable_extensions; do 6371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6372 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6374 break 2 6375 fi 6376done 6377 done 6378IFS=$as_save_IFS 6379 6380fi 6381fi 6382AR=$ac_cv_prog_AR 6383if test -n "$AR"; then 6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6385printf "%s\n" "$AR" >&6; } 6386else 6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6388printf "%s\n" "no" >&6; } 6389fi 6390 6391 6392 test -n "$AR" && break 6393 done 6394fi 6395if test -z "$AR"; then 6396 ac_ct_AR=$AR 6397 for ac_prog in ar 6398do 6399 # Extract the first word of "$ac_prog", so it can be a program name with args. 6400set dummy $ac_prog; ac_word=$2 6401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6402printf %s "checking for $ac_word... " >&6; } 6403if test ${ac_cv_prog_ac_ct_AR+y} 6404then : 6405 printf %s "(cached) " >&6 6406else $as_nop 6407 if test -n "$ac_ct_AR"; then 6408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6409else 6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6411for as_dir in $PATH 6412do 6413 IFS=$as_save_IFS 6414 case $as_dir in #((( 6415 '') as_dir=./ ;; 6416 */) ;; 6417 *) as_dir=$as_dir/ ;; 6418 esac 6419 for ac_exec_ext in '' $ac_executable_extensions; do 6420 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6421 ac_cv_prog_ac_ct_AR="$ac_prog" 6422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6423 break 2 6424 fi 6425done 6426 done 6427IFS=$as_save_IFS 6428 6429fi 6430fi 6431ac_ct_AR=$ac_cv_prog_ac_ct_AR 6432if test -n "$ac_ct_AR"; then 6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6434printf "%s\n" "$ac_ct_AR" >&6; } 6435else 6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6437printf "%s\n" "no" >&6; } 6438fi 6439 6440 6441 test -n "$ac_ct_AR" && break 6442done 6443 6444 if test "x$ac_ct_AR" = x; then 6445 AR="false" 6446 else 6447 case $cross_compiling:$ac_tool_warned in 6448yes:) 6449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6450printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6451ac_tool_warned=yes ;; 6452esac 6453 AR=$ac_ct_AR 6454 fi 6455fi 6456 6457: ${AR=ar} 6458: ${AR_FLAGS=cru} 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6471printf %s "checking for archiver @FILE support... " >&6; } 6472if test ${lt_cv_ar_at_file+y} 6473then : 6474 printf %s "(cached) " >&6 6475else $as_nop 6476 lt_cv_ar_at_file=no 6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6478/* end confdefs.h. */ 6479 6480int 6481main (void) 6482{ 6483 6484 ; 6485 return 0; 6486} 6487_ACEOF 6488if ac_fn_c_try_compile "$LINENO" 6489then : 6490 echo conftest.$ac_objext > conftest.lst 6491 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6493 (eval $lt_ar_try) 2>&5 6494 ac_status=$? 6495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6496 test $ac_status = 0; } 6497 if test 0 -eq "$ac_status"; then 6498 # Ensure the archiver fails upon bogus file names. 6499 rm -f conftest.$ac_objext libconftest.a 6500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6501 (eval $lt_ar_try) 2>&5 6502 ac_status=$? 6503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6504 test $ac_status = 0; } 6505 if test 0 -ne "$ac_status"; then 6506 lt_cv_ar_at_file=@ 6507 fi 6508 fi 6509 rm -f conftest.* libconftest.a 6510 6511fi 6512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6513 6514fi 6515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6516printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6517 6518if test no = "$lt_cv_ar_at_file"; then 6519 archiver_list_spec= 6520else 6521 archiver_list_spec=$lt_cv_ar_at_file 6522fi 6523 6524 6525 6526 6527 6528 6529 6530if test -n "$ac_tool_prefix"; then 6531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6532set dummy ${ac_tool_prefix}strip; ac_word=$2 6533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6534printf %s "checking for $ac_word... " >&6; } 6535if test ${ac_cv_prog_STRIP+y} 6536then : 6537 printf %s "(cached) " >&6 6538else $as_nop 6539 if test -n "$STRIP"; then 6540 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6541else 6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6543for as_dir in $PATH 6544do 6545 IFS=$as_save_IFS 6546 case $as_dir in #((( 6547 '') as_dir=./ ;; 6548 */) ;; 6549 *) as_dir=$as_dir/ ;; 6550 esac 6551 for ac_exec_ext in '' $ac_executable_extensions; do 6552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6553 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6555 break 2 6556 fi 6557done 6558 done 6559IFS=$as_save_IFS 6560 6561fi 6562fi 6563STRIP=$ac_cv_prog_STRIP 6564if test -n "$STRIP"; then 6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6566printf "%s\n" "$STRIP" >&6; } 6567else 6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6569printf "%s\n" "no" >&6; } 6570fi 6571 6572 6573fi 6574if test -z "$ac_cv_prog_STRIP"; then 6575 ac_ct_STRIP=$STRIP 6576 # Extract the first word of "strip", so it can be a program name with args. 6577set dummy strip; ac_word=$2 6578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6579printf %s "checking for $ac_word... " >&6; } 6580if test ${ac_cv_prog_ac_ct_STRIP+y} 6581then : 6582 printf %s "(cached) " >&6 6583else $as_nop 6584 if test -n "$ac_ct_STRIP"; then 6585 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6586else 6587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6588for as_dir in $PATH 6589do 6590 IFS=$as_save_IFS 6591 case $as_dir in #((( 6592 '') as_dir=./ ;; 6593 */) ;; 6594 *) as_dir=$as_dir/ ;; 6595 esac 6596 for ac_exec_ext in '' $ac_executable_extensions; do 6597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6598 ac_cv_prog_ac_ct_STRIP="strip" 6599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6600 break 2 6601 fi 6602done 6603 done 6604IFS=$as_save_IFS 6605 6606fi 6607fi 6608ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6609if test -n "$ac_ct_STRIP"; then 6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6611printf "%s\n" "$ac_ct_STRIP" >&6; } 6612else 6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6614printf "%s\n" "no" >&6; } 6615fi 6616 6617 if test "x$ac_ct_STRIP" = x; then 6618 STRIP=":" 6619 else 6620 case $cross_compiling:$ac_tool_warned in 6621yes:) 6622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6623printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6624ac_tool_warned=yes ;; 6625esac 6626 STRIP=$ac_ct_STRIP 6627 fi 6628else 6629 STRIP="$ac_cv_prog_STRIP" 6630fi 6631 6632test -z "$STRIP" && STRIP=: 6633 6634 6635 6636 6637 6638 6639if test -n "$ac_tool_prefix"; then 6640 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6641set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6643printf %s "checking for $ac_word... " >&6; } 6644if test ${ac_cv_prog_RANLIB+y} 6645then : 6646 printf %s "(cached) " >&6 6647else $as_nop 6648 if test -n "$RANLIB"; then 6649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6650else 6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6652for as_dir in $PATH 6653do 6654 IFS=$as_save_IFS 6655 case $as_dir in #((( 6656 '') as_dir=./ ;; 6657 */) ;; 6658 *) as_dir=$as_dir/ ;; 6659 esac 6660 for ac_exec_ext in '' $ac_executable_extensions; do 6661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6662 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6664 break 2 6665 fi 6666done 6667 done 6668IFS=$as_save_IFS 6669 6670fi 6671fi 6672RANLIB=$ac_cv_prog_RANLIB 6673if test -n "$RANLIB"; then 6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6675printf "%s\n" "$RANLIB" >&6; } 6676else 6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6678printf "%s\n" "no" >&6; } 6679fi 6680 6681 6682fi 6683if test -z "$ac_cv_prog_RANLIB"; then 6684 ac_ct_RANLIB=$RANLIB 6685 # Extract the first word of "ranlib", so it can be a program name with args. 6686set dummy ranlib; ac_word=$2 6687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6688printf %s "checking for $ac_word... " >&6; } 6689if test ${ac_cv_prog_ac_ct_RANLIB+y} 6690then : 6691 printf %s "(cached) " >&6 6692else $as_nop 6693 if test -n "$ac_ct_RANLIB"; then 6694 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6695else 6696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6697for as_dir in $PATH 6698do 6699 IFS=$as_save_IFS 6700 case $as_dir in #((( 6701 '') as_dir=./ ;; 6702 */) ;; 6703 *) as_dir=$as_dir/ ;; 6704 esac 6705 for ac_exec_ext in '' $ac_executable_extensions; do 6706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6707 ac_cv_prog_ac_ct_RANLIB="ranlib" 6708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6709 break 2 6710 fi 6711done 6712 done 6713IFS=$as_save_IFS 6714 6715fi 6716fi 6717ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6718if test -n "$ac_ct_RANLIB"; then 6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6720printf "%s\n" "$ac_ct_RANLIB" >&6; } 6721else 6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6723printf "%s\n" "no" >&6; } 6724fi 6725 6726 if test "x$ac_ct_RANLIB" = x; then 6727 RANLIB=":" 6728 else 6729 case $cross_compiling:$ac_tool_warned in 6730yes:) 6731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6732printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6733ac_tool_warned=yes ;; 6734esac 6735 RANLIB=$ac_ct_RANLIB 6736 fi 6737else 6738 RANLIB="$ac_cv_prog_RANLIB" 6739fi 6740 6741test -z "$RANLIB" && RANLIB=: 6742 6743 6744 6745 6746 6747 6748# Determine commands to create old-style static archives. 6749old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6750old_postinstall_cmds='chmod 644 $oldlib' 6751old_postuninstall_cmds= 6752 6753if test -n "$RANLIB"; then 6754 case $host_os in 6755 bitrig* | openbsd*) 6756 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6757 ;; 6758 *) 6759 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6760 ;; 6761 esac 6762 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6763fi 6764 6765case $host_os in 6766 darwin*) 6767 lock_old_archive_extraction=yes ;; 6768 *) 6769 lock_old_archive_extraction=no ;; 6770esac 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810# If no C compiler was specified, use CC. 6811LTCC=${LTCC-"$CC"} 6812 6813# If no C compiler flags were specified, use CFLAGS. 6814LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6815 6816# Allow CC to be a program name with arguments. 6817compiler=$CC 6818 6819 6820# Check for command to grab the raw symbol name followed by C symbol from nm. 6821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6822printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6823if test ${lt_cv_sys_global_symbol_pipe+y} 6824then : 6825 printf %s "(cached) " >&6 6826else $as_nop 6827 6828# These are sane defaults that work on at least a few old systems. 6829# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6830 6831# Character class describing NM global symbol codes. 6832symcode='[BCDEGRST]' 6833 6834# Regexp to match symbols that can be accessed directly from C. 6835sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6836 6837# Define system-specific variables. 6838case $host_os in 6839aix*) 6840 symcode='[BCDT]' 6841 ;; 6842cygwin* | mingw* | pw32* | cegcc*) 6843 symcode='[ABCDGISTW]' 6844 ;; 6845hpux*) 6846 if test ia64 = "$host_cpu"; then 6847 symcode='[ABCDEGRST]' 6848 fi 6849 ;; 6850irix* | nonstopux*) 6851 symcode='[BCDEGRST]' 6852 ;; 6853osf*) 6854 symcode='[BCDEGQRST]' 6855 ;; 6856solaris*) 6857 symcode='[BDRT]' 6858 ;; 6859sco3.2v5*) 6860 symcode='[DT]' 6861 ;; 6862sysv4.2uw2*) 6863 symcode='[DT]' 6864 ;; 6865sysv5* | sco5v6* | unixware* | OpenUNIX*) 6866 symcode='[ABDT]' 6867 ;; 6868sysv4) 6869 symcode='[DFNSTU]' 6870 ;; 6871esac 6872 6873# If we're using GNU nm, then use its standard symbol codes. 6874case `$NM -V 2>&1` in 6875*GNU* | *'with BFD'*) 6876 symcode='[ABCDGIRSTW]' ;; 6877esac 6878 6879if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6880 # Gets list of data symbols to import. 6881 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6882 # Adjust the below global symbol transforms to fixup imported variables. 6883 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6884 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6885 lt_c_name_lib_hook="\ 6886 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6887 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6888else 6889 # Disable hooks by default. 6890 lt_cv_sys_global_symbol_to_import= 6891 lt_cdecl_hook= 6892 lt_c_name_hook= 6893 lt_c_name_lib_hook= 6894fi 6895 6896# Transform an extracted symbol line into a proper C declaration. 6897# Some systems (esp. on ia64) link data and code symbols differently, 6898# so use this general approach. 6899lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6900$lt_cdecl_hook\ 6901" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6902" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6903 6904# Transform an extracted symbol line into symbol name and symbol address 6905lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6906$lt_c_name_hook\ 6907" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6908" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6909 6910# Transform an extracted symbol line into symbol name with lib prefix and 6911# symbol address. 6912lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6913$lt_c_name_lib_hook\ 6914" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6915" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6916" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6917 6918# Handle CRLF in mingw tool chain 6919opt_cr= 6920case $build_os in 6921mingw*) 6922 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6923 ;; 6924esac 6925 6926# Try without a prefix underscore, then with it. 6927for ac_symprfx in "" "_"; do 6928 6929 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6930 symxfrm="\\1 $ac_symprfx\\2 \\2" 6931 6932 # Write the raw and C identifiers. 6933 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6934 # Fake it for dumpbin and say T for any non-static function, 6935 # D for any global variable and I for any imported variable. 6936 # Also find C++ and __fastcall symbols from MSVC++, 6937 # which start with @ or ?. 6938 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6939" {last_section=section; section=\$ 3};"\ 6940" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6941" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6942" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6943" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6944" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6945" \$ 0!~/External *\|/{next};"\ 6946" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6947" {if(hide[section]) next};"\ 6948" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6949" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6950" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6951" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6952" ' prfx=^$ac_symprfx" 6953 else 6954 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6955 fi 6956 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6957 6958 # Check to see that the pipe works correctly. 6959 pipe_works=no 6960 6961 rm -f conftest* 6962 cat > conftest.$ac_ext <<_LT_EOF 6963#ifdef __cplusplus 6964extern "C" { 6965#endif 6966char nm_test_var; 6967void nm_test_func(void); 6968void nm_test_func(void){} 6969#ifdef __cplusplus 6970} 6971#endif 6972int main(){nm_test_var='a';nm_test_func();return(0);} 6973_LT_EOF 6974 6975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6976 (eval $ac_compile) 2>&5 6977 ac_status=$? 6978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6979 test $ac_status = 0; }; then 6980 # Now try to grab the symbols. 6981 nlist=conftest.nm 6982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6983 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6984 ac_status=$? 6985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6986 test $ac_status = 0; } && test -s "$nlist"; then 6987 # Try sorting and uniquifying the output. 6988 if sort "$nlist" | uniq > "$nlist"T; then 6989 mv -f "$nlist"T "$nlist" 6990 else 6991 rm -f "$nlist"T 6992 fi 6993 6994 # Make sure that we snagged all the symbols we need. 6995 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6996 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6997 cat <<_LT_EOF > conftest.$ac_ext 6998/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6999#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7000/* DATA imports from DLLs on WIN32 can't be const, because runtime 7001 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7002# define LT_DLSYM_CONST 7003#elif defined __osf__ 7004/* This system does not cope well with relocations in const data. */ 7005# define LT_DLSYM_CONST 7006#else 7007# define LT_DLSYM_CONST const 7008#endif 7009 7010#ifdef __cplusplus 7011extern "C" { 7012#endif 7013 7014_LT_EOF 7015 # Now generate the symbol file. 7016 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7017 7018 cat <<_LT_EOF >> conftest.$ac_ext 7019 7020/* The mapping between symbol names and symbols. */ 7021LT_DLSYM_CONST struct { 7022 const char *name; 7023 void *address; 7024} 7025lt__PROGRAM__LTX_preloaded_symbols[] = 7026{ 7027 { "@PROGRAM@", (void *) 0 }, 7028_LT_EOF 7029 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7030 cat <<\_LT_EOF >> conftest.$ac_ext 7031 {0, (void *) 0} 7032}; 7033 7034/* This works around a problem in FreeBSD linker */ 7035#ifdef FREEBSD_WORKAROUND 7036static const void *lt_preloaded_setup() { 7037 return lt__PROGRAM__LTX_preloaded_symbols; 7038} 7039#endif 7040 7041#ifdef __cplusplus 7042} 7043#endif 7044_LT_EOF 7045 # Now try linking the two files. 7046 mv conftest.$ac_objext conftstm.$ac_objext 7047 lt_globsym_save_LIBS=$LIBS 7048 lt_globsym_save_CFLAGS=$CFLAGS 7049 LIBS=conftstm.$ac_objext 7050 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7052 (eval $ac_link) 2>&5 7053 ac_status=$? 7054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7055 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7056 pipe_works=yes 7057 fi 7058 LIBS=$lt_globsym_save_LIBS 7059 CFLAGS=$lt_globsym_save_CFLAGS 7060 else 7061 echo "cannot find nm_test_func in $nlist" >&5 7062 fi 7063 else 7064 echo "cannot find nm_test_var in $nlist" >&5 7065 fi 7066 else 7067 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7068 fi 7069 else 7070 echo "$progname: failed program was:" >&5 7071 cat conftest.$ac_ext >&5 7072 fi 7073 rm -rf conftest* conftst* 7074 7075 # Do not use the global_symbol_pipe unless it works. 7076 if test yes = "$pipe_works"; then 7077 break 7078 else 7079 lt_cv_sys_global_symbol_pipe= 7080 fi 7081done 7082 7083fi 7084 7085if test -z "$lt_cv_sys_global_symbol_pipe"; then 7086 lt_cv_sys_global_symbol_to_cdecl= 7087fi 7088if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7090printf "%s\n" "failed" >&6; } 7091else 7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7093printf "%s\n" "ok" >&6; } 7094fi 7095 7096# Response file support. 7097if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7098 nm_file_list_spec='@' 7099elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7100 nm_file_list_spec='@' 7101fi 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7140printf %s "checking for sysroot... " >&6; } 7141 7142# Check whether --with-sysroot was given. 7143if test ${with_sysroot+y} 7144then : 7145 withval=$with_sysroot; 7146else $as_nop 7147 with_sysroot=no 7148fi 7149 7150 7151lt_sysroot= 7152case $with_sysroot in #( 7153 yes) 7154 if test yes = "$GCC"; then 7155 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7156 fi 7157 ;; #( 7158 /*) 7159 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7160 ;; #( 7161 no|'') 7162 ;; #( 7163 *) 7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7165printf "%s\n" "$with_sysroot" >&6; } 7166 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7167 ;; 7168esac 7169 7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7171printf "%s\n" "${lt_sysroot:-no}" >&6; } 7172 7173 7174 7175 7176 7177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7178printf %s "checking for a working dd... " >&6; } 7179if test ${ac_cv_path_lt_DD+y} 7180then : 7181 printf %s "(cached) " >&6 7182else $as_nop 7183 printf 0123456789abcdef0123456789abcdef >conftest.i 7184cat conftest.i conftest.i >conftest2.i 7185: ${lt_DD:=$DD} 7186if test -z "$lt_DD"; then 7187 ac_path_lt_DD_found=false 7188 # Loop through the user's path and test for each of PROGNAME-LIST 7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7190for as_dir in $PATH 7191do 7192 IFS=$as_save_IFS 7193 case $as_dir in #((( 7194 '') as_dir=./ ;; 7195 */) ;; 7196 *) as_dir=$as_dir/ ;; 7197 esac 7198 for ac_prog in dd 7199 do 7200 for ac_exec_ext in '' $ac_executable_extensions; do 7201 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7202 as_fn_executable_p "$ac_path_lt_DD" || continue 7203if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7204 cmp -s conftest.i conftest.out \ 7205 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7206fi 7207 $ac_path_lt_DD_found && break 3 7208 done 7209 done 7210 done 7211IFS=$as_save_IFS 7212 if test -z "$ac_cv_path_lt_DD"; then 7213 : 7214 fi 7215else 7216 ac_cv_path_lt_DD=$lt_DD 7217fi 7218 7219rm -f conftest.i conftest2.i conftest.out 7220fi 7221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7222printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7223 7224 7225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7226printf %s "checking how to truncate binary pipes... " >&6; } 7227if test ${lt_cv_truncate_bin+y} 7228then : 7229 printf %s "(cached) " >&6 7230else $as_nop 7231 printf 0123456789abcdef0123456789abcdef >conftest.i 7232cat conftest.i conftest.i >conftest2.i 7233lt_cv_truncate_bin= 7234if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7235 cmp -s conftest.i conftest.out \ 7236 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7237fi 7238rm -f conftest.i conftest2.i conftest.out 7239test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7240fi 7241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7242printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7243 7244 7245 7246 7247 7248 7249 7250# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7251func_cc_basename () 7252{ 7253 for cc_temp in $*""; do 7254 case $cc_temp in 7255 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7256 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7257 \-*) ;; 7258 *) break;; 7259 esac 7260 done 7261 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7262} 7263 7264# Check whether --enable-libtool-lock was given. 7265if test ${enable_libtool_lock+y} 7266then : 7267 enableval=$enable_libtool_lock; 7268fi 7269 7270test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7271 7272# Some flags need to be propagated to the compiler or linker for good 7273# libtool support. 7274case $host in 7275ia64-*-hpux*) 7276 # Find out what ABI is being produced by ac_compile, and set mode 7277 # options accordingly. 7278 echo 'int i;' > conftest.$ac_ext 7279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7280 (eval $ac_compile) 2>&5 7281 ac_status=$? 7282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7283 test $ac_status = 0; }; then 7284 case `/usr/bin/file conftest.$ac_objext` in 7285 *ELF-32*) 7286 HPUX_IA64_MODE=32 7287 ;; 7288 *ELF-64*) 7289 HPUX_IA64_MODE=64 7290 ;; 7291 esac 7292 fi 7293 rm -rf conftest* 7294 ;; 7295*-*-irix6*) 7296 # Find out what ABI is being produced by ac_compile, and set linker 7297 # options accordingly. 7298 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7300 (eval $ac_compile) 2>&5 7301 ac_status=$? 7302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7303 test $ac_status = 0; }; then 7304 if test yes = "$lt_cv_prog_gnu_ld"; then 7305 case `/usr/bin/file conftest.$ac_objext` in 7306 *32-bit*) 7307 LD="${LD-ld} -melf32bsmip" 7308 ;; 7309 *N32*) 7310 LD="${LD-ld} -melf32bmipn32" 7311 ;; 7312 *64-bit*) 7313 LD="${LD-ld} -melf64bmip" 7314 ;; 7315 esac 7316 else 7317 case `/usr/bin/file conftest.$ac_objext` in 7318 *32-bit*) 7319 LD="${LD-ld} -32" 7320 ;; 7321 *N32*) 7322 LD="${LD-ld} -n32" 7323 ;; 7324 *64-bit*) 7325 LD="${LD-ld} -64" 7326 ;; 7327 esac 7328 fi 7329 fi 7330 rm -rf conftest* 7331 ;; 7332 7333mips64*-*linux*) 7334 # Find out what ABI is being produced by ac_compile, and set linker 7335 # options accordingly. 7336 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7338 (eval $ac_compile) 2>&5 7339 ac_status=$? 7340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7341 test $ac_status = 0; }; then 7342 emul=elf 7343 case `/usr/bin/file conftest.$ac_objext` in 7344 *32-bit*) 7345 emul="${emul}32" 7346 ;; 7347 *64-bit*) 7348 emul="${emul}64" 7349 ;; 7350 esac 7351 case `/usr/bin/file conftest.$ac_objext` in 7352 *MSB*) 7353 emul="${emul}btsmip" 7354 ;; 7355 *LSB*) 7356 emul="${emul}ltsmip" 7357 ;; 7358 esac 7359 case `/usr/bin/file conftest.$ac_objext` in 7360 *N32*) 7361 emul="${emul}n32" 7362 ;; 7363 esac 7364 LD="${LD-ld} -m $emul" 7365 fi 7366 rm -rf conftest* 7367 ;; 7368 7369x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7370s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7371 # Find out what ABI is being produced by ac_compile, and set linker 7372 # options accordingly. Note that the listed cases only cover the 7373 # situations where additional linker options are needed (such as when 7374 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7375 # vice versa); the common cases where no linker options are needed do 7376 # not appear in the list. 7377 echo 'int i;' > conftest.$ac_ext 7378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7379 (eval $ac_compile) 2>&5 7380 ac_status=$? 7381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7382 test $ac_status = 0; }; then 7383 case `/usr/bin/file conftest.o` in 7384 *32-bit*) 7385 case $host in 7386 x86_64-*kfreebsd*-gnu) 7387 LD="${LD-ld} -m elf_i386_fbsd" 7388 ;; 7389 x86_64-*linux*) 7390 case `/usr/bin/file conftest.o` in 7391 *x86-64*) 7392 LD="${LD-ld} -m elf32_x86_64" 7393 ;; 7394 *) 7395 LD="${LD-ld} -m elf_i386" 7396 ;; 7397 esac 7398 ;; 7399 powerpc64le-*linux*) 7400 LD="${LD-ld} -m elf32lppclinux" 7401 ;; 7402 powerpc64-*linux*) 7403 LD="${LD-ld} -m elf32ppclinux" 7404 ;; 7405 s390x-*linux*) 7406 LD="${LD-ld} -m elf_s390" 7407 ;; 7408 sparc64-*linux*) 7409 LD="${LD-ld} -m elf32_sparc" 7410 ;; 7411 esac 7412 ;; 7413 *64-bit*) 7414 case $host in 7415 x86_64-*kfreebsd*-gnu) 7416 LD="${LD-ld} -m elf_x86_64_fbsd" 7417 ;; 7418 x86_64-*linux*) 7419 LD="${LD-ld} -m elf_x86_64" 7420 ;; 7421 powerpcle-*linux*) 7422 LD="${LD-ld} -m elf64lppc" 7423 ;; 7424 powerpc-*linux*) 7425 LD="${LD-ld} -m elf64ppc" 7426 ;; 7427 s390*-*linux*|s390*-*tpf*) 7428 LD="${LD-ld} -m elf64_s390" 7429 ;; 7430 sparc*-*linux*) 7431 LD="${LD-ld} -m elf64_sparc" 7432 ;; 7433 esac 7434 ;; 7435 esac 7436 fi 7437 rm -rf conftest* 7438 ;; 7439 7440*-*-sco3.2v5*) 7441 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7442 SAVE_CFLAGS=$CFLAGS 7443 CFLAGS="$CFLAGS -belf" 7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7445printf %s "checking whether the C compiler needs -belf... " >&6; } 7446if test ${lt_cv_cc_needs_belf+y} 7447then : 7448 printf %s "(cached) " >&6 7449else $as_nop 7450 ac_ext=c 7451ac_cpp='$CPP $CPPFLAGS' 7452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7454ac_compiler_gnu=$ac_cv_c_compiler_gnu 7455 7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7457/* end confdefs.h. */ 7458 7459int 7460main (void) 7461{ 7462 7463 ; 7464 return 0; 7465} 7466_ACEOF 7467if ac_fn_c_try_link "$LINENO" 7468then : 7469 lt_cv_cc_needs_belf=yes 7470else $as_nop 7471 lt_cv_cc_needs_belf=no 7472fi 7473rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7474 conftest$ac_exeext conftest.$ac_ext 7475 ac_ext=c 7476ac_cpp='$CPP $CPPFLAGS' 7477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7479ac_compiler_gnu=$ac_cv_c_compiler_gnu 7480 7481fi 7482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7483printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7484 if test yes != "$lt_cv_cc_needs_belf"; then 7485 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7486 CFLAGS=$SAVE_CFLAGS 7487 fi 7488 ;; 7489*-*solaris*) 7490 # Find out what ABI is being produced by ac_compile, and set linker 7491 # options accordingly. 7492 echo 'int i;' > conftest.$ac_ext 7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7494 (eval $ac_compile) 2>&5 7495 ac_status=$? 7496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7497 test $ac_status = 0; }; then 7498 case `/usr/bin/file conftest.o` in 7499 *64-bit*) 7500 case $lt_cv_prog_gnu_ld in 7501 yes*) 7502 case $host in 7503 i?86-*-solaris*|x86_64-*-solaris*) 7504 LD="${LD-ld} -m elf_x86_64" 7505 ;; 7506 sparc*-*-solaris*) 7507 LD="${LD-ld} -m elf64_sparc" 7508 ;; 7509 esac 7510 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7511 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7512 LD=${LD-ld}_sol2 7513 fi 7514 ;; 7515 *) 7516 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7517 LD="${LD-ld} -64" 7518 fi 7519 ;; 7520 esac 7521 ;; 7522 esac 7523 fi 7524 rm -rf conftest* 7525 ;; 7526esac 7527 7528need_locks=$enable_libtool_lock 7529 7530if test -n "$ac_tool_prefix"; then 7531 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7532set dummy ${ac_tool_prefix}mt; ac_word=$2 7533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7534printf %s "checking for $ac_word... " >&6; } 7535if test ${ac_cv_prog_MANIFEST_TOOL+y} 7536then : 7537 printf %s "(cached) " >&6 7538else $as_nop 7539 if test -n "$MANIFEST_TOOL"; then 7540 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7541else 7542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7543for as_dir in $PATH 7544do 7545 IFS=$as_save_IFS 7546 case $as_dir in #((( 7547 '') as_dir=./ ;; 7548 */) ;; 7549 *) as_dir=$as_dir/ ;; 7550 esac 7551 for ac_exec_ext in '' $ac_executable_extensions; do 7552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7553 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7555 break 2 7556 fi 7557done 7558 done 7559IFS=$as_save_IFS 7560 7561fi 7562fi 7563MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7564if test -n "$MANIFEST_TOOL"; then 7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7566printf "%s\n" "$MANIFEST_TOOL" >&6; } 7567else 7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7569printf "%s\n" "no" >&6; } 7570fi 7571 7572 7573fi 7574if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7575 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7576 # Extract the first word of "mt", so it can be a program name with args. 7577set dummy mt; ac_word=$2 7578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7579printf %s "checking for $ac_word... " >&6; } 7580if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7581then : 7582 printf %s "(cached) " >&6 7583else $as_nop 7584 if test -n "$ac_ct_MANIFEST_TOOL"; then 7585 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7586else 7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7588for as_dir in $PATH 7589do 7590 IFS=$as_save_IFS 7591 case $as_dir in #((( 7592 '') as_dir=./ ;; 7593 */) ;; 7594 *) as_dir=$as_dir/ ;; 7595 esac 7596 for ac_exec_ext in '' $ac_executable_extensions; do 7597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7598 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7600 break 2 7601 fi 7602done 7603 done 7604IFS=$as_save_IFS 7605 7606fi 7607fi 7608ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7609if test -n "$ac_ct_MANIFEST_TOOL"; then 7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7611printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7612else 7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7614printf "%s\n" "no" >&6; } 7615fi 7616 7617 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7618 MANIFEST_TOOL=":" 7619 else 7620 case $cross_compiling:$ac_tool_warned in 7621yes:) 7622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7623printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7624ac_tool_warned=yes ;; 7625esac 7626 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7627 fi 7628else 7629 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7630fi 7631 7632test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7634printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7635if test ${lt_cv_path_mainfest_tool+y} 7636then : 7637 printf %s "(cached) " >&6 7638else $as_nop 7639 lt_cv_path_mainfest_tool=no 7640 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7641 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7642 cat conftest.err >&5 7643 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7644 lt_cv_path_mainfest_tool=yes 7645 fi 7646 rm -f conftest* 7647fi 7648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7649printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7650if test yes != "$lt_cv_path_mainfest_tool"; then 7651 MANIFEST_TOOL=: 7652fi 7653 7654 7655 7656 7657 7658 7659 case $host_os in 7660 rhapsody* | darwin*) 7661 if test -n "$ac_tool_prefix"; then 7662 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7663set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7665printf %s "checking for $ac_word... " >&6; } 7666if test ${ac_cv_prog_DSYMUTIL+y} 7667then : 7668 printf %s "(cached) " >&6 7669else $as_nop 7670 if test -n "$DSYMUTIL"; then 7671 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7672else 7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7674for as_dir in $PATH 7675do 7676 IFS=$as_save_IFS 7677 case $as_dir in #((( 7678 '') as_dir=./ ;; 7679 */) ;; 7680 *) as_dir=$as_dir/ ;; 7681 esac 7682 for ac_exec_ext in '' $ac_executable_extensions; do 7683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7684 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7686 break 2 7687 fi 7688done 7689 done 7690IFS=$as_save_IFS 7691 7692fi 7693fi 7694DSYMUTIL=$ac_cv_prog_DSYMUTIL 7695if test -n "$DSYMUTIL"; then 7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7697printf "%s\n" "$DSYMUTIL" >&6; } 7698else 7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7700printf "%s\n" "no" >&6; } 7701fi 7702 7703 7704fi 7705if test -z "$ac_cv_prog_DSYMUTIL"; then 7706 ac_ct_DSYMUTIL=$DSYMUTIL 7707 # Extract the first word of "dsymutil", so it can be a program name with args. 7708set dummy dsymutil; ac_word=$2 7709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7710printf %s "checking for $ac_word... " >&6; } 7711if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7712then : 7713 printf %s "(cached) " >&6 7714else $as_nop 7715 if test -n "$ac_ct_DSYMUTIL"; then 7716 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7717else 7718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7719for as_dir in $PATH 7720do 7721 IFS=$as_save_IFS 7722 case $as_dir in #((( 7723 '') as_dir=./ ;; 7724 */) ;; 7725 *) as_dir=$as_dir/ ;; 7726 esac 7727 for ac_exec_ext in '' $ac_executable_extensions; do 7728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7729 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7731 break 2 7732 fi 7733done 7734 done 7735IFS=$as_save_IFS 7736 7737fi 7738fi 7739ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7740if test -n "$ac_ct_DSYMUTIL"; then 7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7742printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7743else 7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7745printf "%s\n" "no" >&6; } 7746fi 7747 7748 if test "x$ac_ct_DSYMUTIL" = x; then 7749 DSYMUTIL=":" 7750 else 7751 case $cross_compiling:$ac_tool_warned in 7752yes:) 7753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7754printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7755ac_tool_warned=yes ;; 7756esac 7757 DSYMUTIL=$ac_ct_DSYMUTIL 7758 fi 7759else 7760 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7761fi 7762 7763 if test -n "$ac_tool_prefix"; then 7764 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7765set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7767printf %s "checking for $ac_word... " >&6; } 7768if test ${ac_cv_prog_NMEDIT+y} 7769then : 7770 printf %s "(cached) " >&6 7771else $as_nop 7772 if test -n "$NMEDIT"; then 7773 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7774else 7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7776for as_dir in $PATH 7777do 7778 IFS=$as_save_IFS 7779 case $as_dir in #((( 7780 '') as_dir=./ ;; 7781 */) ;; 7782 *) as_dir=$as_dir/ ;; 7783 esac 7784 for ac_exec_ext in '' $ac_executable_extensions; do 7785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7786 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7788 break 2 7789 fi 7790done 7791 done 7792IFS=$as_save_IFS 7793 7794fi 7795fi 7796NMEDIT=$ac_cv_prog_NMEDIT 7797if test -n "$NMEDIT"; then 7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7799printf "%s\n" "$NMEDIT" >&6; } 7800else 7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7802printf "%s\n" "no" >&6; } 7803fi 7804 7805 7806fi 7807if test -z "$ac_cv_prog_NMEDIT"; then 7808 ac_ct_NMEDIT=$NMEDIT 7809 # Extract the first word of "nmedit", so it can be a program name with args. 7810set dummy nmedit; ac_word=$2 7811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7812printf %s "checking for $ac_word... " >&6; } 7813if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7814then : 7815 printf %s "(cached) " >&6 7816else $as_nop 7817 if test -n "$ac_ct_NMEDIT"; then 7818 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7819else 7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7821for as_dir in $PATH 7822do 7823 IFS=$as_save_IFS 7824 case $as_dir in #((( 7825 '') as_dir=./ ;; 7826 */) ;; 7827 *) as_dir=$as_dir/ ;; 7828 esac 7829 for ac_exec_ext in '' $ac_executable_extensions; do 7830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7831 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7833 break 2 7834 fi 7835done 7836 done 7837IFS=$as_save_IFS 7838 7839fi 7840fi 7841ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7842if test -n "$ac_ct_NMEDIT"; then 7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7844printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7845else 7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7847printf "%s\n" "no" >&6; } 7848fi 7849 7850 if test "x$ac_ct_NMEDIT" = x; then 7851 NMEDIT=":" 7852 else 7853 case $cross_compiling:$ac_tool_warned in 7854yes:) 7855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7856printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7857ac_tool_warned=yes ;; 7858esac 7859 NMEDIT=$ac_ct_NMEDIT 7860 fi 7861else 7862 NMEDIT="$ac_cv_prog_NMEDIT" 7863fi 7864 7865 if test -n "$ac_tool_prefix"; then 7866 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7867set dummy ${ac_tool_prefix}lipo; ac_word=$2 7868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7869printf %s "checking for $ac_word... " >&6; } 7870if test ${ac_cv_prog_LIPO+y} 7871then : 7872 printf %s "(cached) " >&6 7873else $as_nop 7874 if test -n "$LIPO"; then 7875 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7876else 7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7878for as_dir in $PATH 7879do 7880 IFS=$as_save_IFS 7881 case $as_dir in #((( 7882 '') as_dir=./ ;; 7883 */) ;; 7884 *) as_dir=$as_dir/ ;; 7885 esac 7886 for ac_exec_ext in '' $ac_executable_extensions; do 7887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7888 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7890 break 2 7891 fi 7892done 7893 done 7894IFS=$as_save_IFS 7895 7896fi 7897fi 7898LIPO=$ac_cv_prog_LIPO 7899if test -n "$LIPO"; then 7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7901printf "%s\n" "$LIPO" >&6; } 7902else 7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7904printf "%s\n" "no" >&6; } 7905fi 7906 7907 7908fi 7909if test -z "$ac_cv_prog_LIPO"; then 7910 ac_ct_LIPO=$LIPO 7911 # Extract the first word of "lipo", so it can be a program name with args. 7912set dummy lipo; ac_word=$2 7913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7914printf %s "checking for $ac_word... " >&6; } 7915if test ${ac_cv_prog_ac_ct_LIPO+y} 7916then : 7917 printf %s "(cached) " >&6 7918else $as_nop 7919 if test -n "$ac_ct_LIPO"; then 7920 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7921else 7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7923for as_dir in $PATH 7924do 7925 IFS=$as_save_IFS 7926 case $as_dir in #((( 7927 '') as_dir=./ ;; 7928 */) ;; 7929 *) as_dir=$as_dir/ ;; 7930 esac 7931 for ac_exec_ext in '' $ac_executable_extensions; do 7932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7933 ac_cv_prog_ac_ct_LIPO="lipo" 7934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7935 break 2 7936 fi 7937done 7938 done 7939IFS=$as_save_IFS 7940 7941fi 7942fi 7943ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7944if test -n "$ac_ct_LIPO"; then 7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7946printf "%s\n" "$ac_ct_LIPO" >&6; } 7947else 7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7949printf "%s\n" "no" >&6; } 7950fi 7951 7952 if test "x$ac_ct_LIPO" = x; then 7953 LIPO=":" 7954 else 7955 case $cross_compiling:$ac_tool_warned in 7956yes:) 7957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7958printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7959ac_tool_warned=yes ;; 7960esac 7961 LIPO=$ac_ct_LIPO 7962 fi 7963else 7964 LIPO="$ac_cv_prog_LIPO" 7965fi 7966 7967 if test -n "$ac_tool_prefix"; then 7968 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7969set dummy ${ac_tool_prefix}otool; ac_word=$2 7970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7971printf %s "checking for $ac_word... " >&6; } 7972if test ${ac_cv_prog_OTOOL+y} 7973then : 7974 printf %s "(cached) " >&6 7975else $as_nop 7976 if test -n "$OTOOL"; then 7977 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7978else 7979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7980for as_dir in $PATH 7981do 7982 IFS=$as_save_IFS 7983 case $as_dir in #((( 7984 '') as_dir=./ ;; 7985 */) ;; 7986 *) as_dir=$as_dir/ ;; 7987 esac 7988 for ac_exec_ext in '' $ac_executable_extensions; do 7989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7990 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7992 break 2 7993 fi 7994done 7995 done 7996IFS=$as_save_IFS 7997 7998fi 7999fi 8000OTOOL=$ac_cv_prog_OTOOL 8001if test -n "$OTOOL"; then 8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8003printf "%s\n" "$OTOOL" >&6; } 8004else 8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8006printf "%s\n" "no" >&6; } 8007fi 8008 8009 8010fi 8011if test -z "$ac_cv_prog_OTOOL"; then 8012 ac_ct_OTOOL=$OTOOL 8013 # Extract the first word of "otool", so it can be a program name with args. 8014set dummy otool; ac_word=$2 8015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8016printf %s "checking for $ac_word... " >&6; } 8017if test ${ac_cv_prog_ac_ct_OTOOL+y} 8018then : 8019 printf %s "(cached) " >&6 8020else $as_nop 8021 if test -n "$ac_ct_OTOOL"; then 8022 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8023else 8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8025for as_dir in $PATH 8026do 8027 IFS=$as_save_IFS 8028 case $as_dir in #((( 8029 '') as_dir=./ ;; 8030 */) ;; 8031 *) as_dir=$as_dir/ ;; 8032 esac 8033 for ac_exec_ext in '' $ac_executable_extensions; do 8034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8035 ac_cv_prog_ac_ct_OTOOL="otool" 8036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8037 break 2 8038 fi 8039done 8040 done 8041IFS=$as_save_IFS 8042 8043fi 8044fi 8045ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8046if test -n "$ac_ct_OTOOL"; then 8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8048printf "%s\n" "$ac_ct_OTOOL" >&6; } 8049else 8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8051printf "%s\n" "no" >&6; } 8052fi 8053 8054 if test "x$ac_ct_OTOOL" = x; then 8055 OTOOL=":" 8056 else 8057 case $cross_compiling:$ac_tool_warned in 8058yes:) 8059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8060printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8061ac_tool_warned=yes ;; 8062esac 8063 OTOOL=$ac_ct_OTOOL 8064 fi 8065else 8066 OTOOL="$ac_cv_prog_OTOOL" 8067fi 8068 8069 if test -n "$ac_tool_prefix"; then 8070 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8071set dummy ${ac_tool_prefix}otool64; ac_word=$2 8072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8073printf %s "checking for $ac_word... " >&6; } 8074if test ${ac_cv_prog_OTOOL64+y} 8075then : 8076 printf %s "(cached) " >&6 8077else $as_nop 8078 if test -n "$OTOOL64"; then 8079 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8080else 8081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8082for as_dir in $PATH 8083do 8084 IFS=$as_save_IFS 8085 case $as_dir in #((( 8086 '') as_dir=./ ;; 8087 */) ;; 8088 *) as_dir=$as_dir/ ;; 8089 esac 8090 for ac_exec_ext in '' $ac_executable_extensions; do 8091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8092 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8094 break 2 8095 fi 8096done 8097 done 8098IFS=$as_save_IFS 8099 8100fi 8101fi 8102OTOOL64=$ac_cv_prog_OTOOL64 8103if test -n "$OTOOL64"; then 8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8105printf "%s\n" "$OTOOL64" >&6; } 8106else 8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8108printf "%s\n" "no" >&6; } 8109fi 8110 8111 8112fi 8113if test -z "$ac_cv_prog_OTOOL64"; then 8114 ac_ct_OTOOL64=$OTOOL64 8115 # Extract the first word of "otool64", so it can be a program name with args. 8116set dummy otool64; ac_word=$2 8117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8118printf %s "checking for $ac_word... " >&6; } 8119if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8120then : 8121 printf %s "(cached) " >&6 8122else $as_nop 8123 if test -n "$ac_ct_OTOOL64"; then 8124 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8125else 8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8127for as_dir in $PATH 8128do 8129 IFS=$as_save_IFS 8130 case $as_dir in #((( 8131 '') as_dir=./ ;; 8132 */) ;; 8133 *) as_dir=$as_dir/ ;; 8134 esac 8135 for ac_exec_ext in '' $ac_executable_extensions; do 8136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8137 ac_cv_prog_ac_ct_OTOOL64="otool64" 8138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8139 break 2 8140 fi 8141done 8142 done 8143IFS=$as_save_IFS 8144 8145fi 8146fi 8147ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8148if test -n "$ac_ct_OTOOL64"; then 8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8150printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8151else 8152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8153printf "%s\n" "no" >&6; } 8154fi 8155 8156 if test "x$ac_ct_OTOOL64" = x; then 8157 OTOOL64=":" 8158 else 8159 case $cross_compiling:$ac_tool_warned in 8160yes:) 8161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8162printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8163ac_tool_warned=yes ;; 8164esac 8165 OTOOL64=$ac_ct_OTOOL64 8166 fi 8167else 8168 OTOOL64="$ac_cv_prog_OTOOL64" 8169fi 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8198printf %s "checking for -single_module linker flag... " >&6; } 8199if test ${lt_cv_apple_cc_single_mod+y} 8200then : 8201 printf %s "(cached) " >&6 8202else $as_nop 8203 lt_cv_apple_cc_single_mod=no 8204 if test -z "$LT_MULTI_MODULE"; then 8205 # By default we will add the -single_module flag. You can override 8206 # by either setting the environment variable LT_MULTI_MODULE 8207 # non-empty at configure time, or by adding -multi_module to the 8208 # link flags. 8209 rm -rf libconftest.dylib* 8210 echo "int foo(void){return 1;}" > conftest.c 8211 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8212-dynamiclib -Wl,-single_module conftest.c" >&5 8213 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8214 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8215 _lt_result=$? 8216 # If there is a non-empty error log, and "single_module" 8217 # appears in it, assume the flag caused a linker warning 8218 if test -s conftest.err && $GREP single_module conftest.err; then 8219 cat conftest.err >&5 8220 # Otherwise, if the output was created with a 0 exit code from 8221 # the compiler, it worked. 8222 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8223 lt_cv_apple_cc_single_mod=yes 8224 else 8225 cat conftest.err >&5 8226 fi 8227 rm -rf libconftest.dylib* 8228 rm -f conftest.* 8229 fi 8230fi 8231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8232printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8233 8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8235printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8236if test ${lt_cv_ld_exported_symbols_list+y} 8237then : 8238 printf %s "(cached) " >&6 8239else $as_nop 8240 lt_cv_ld_exported_symbols_list=no 8241 save_LDFLAGS=$LDFLAGS 8242 echo "_main" > conftest.sym 8243 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245/* end confdefs.h. */ 8246 8247int 8248main (void) 8249{ 8250 8251 ; 8252 return 0; 8253} 8254_ACEOF 8255if ac_fn_c_try_link "$LINENO" 8256then : 8257 lt_cv_ld_exported_symbols_list=yes 8258else $as_nop 8259 lt_cv_ld_exported_symbols_list=no 8260fi 8261rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8262 conftest$ac_exeext conftest.$ac_ext 8263 LDFLAGS=$save_LDFLAGS 8264 8265fi 8266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8267printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8268 8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8270printf %s "checking for -force_load linker flag... " >&6; } 8271if test ${lt_cv_ld_force_load+y} 8272then : 8273 printf %s "(cached) " >&6 8274else $as_nop 8275 lt_cv_ld_force_load=no 8276 cat > conftest.c << _LT_EOF 8277int forced_loaded() { return 2;} 8278_LT_EOF 8279 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8280 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8281 echo "$AR cru libconftest.a conftest.o" >&5 8282 $AR cru libconftest.a conftest.o 2>&5 8283 echo "$RANLIB libconftest.a" >&5 8284 $RANLIB libconftest.a 2>&5 8285 cat > conftest.c << _LT_EOF 8286int main() { return 0;} 8287_LT_EOF 8288 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8289 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8290 _lt_result=$? 8291 if test -s conftest.err && $GREP force_load conftest.err; then 8292 cat conftest.err >&5 8293 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8294 lt_cv_ld_force_load=yes 8295 else 8296 cat conftest.err >&5 8297 fi 8298 rm -f conftest.err libconftest.a conftest conftest.c 8299 rm -rf conftest.dSYM 8300 8301fi 8302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8303printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8304 case $host_os in 8305 rhapsody* | darwin1.[012]) 8306 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8307 darwin1.*) 8308 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8309 darwin*) # darwin 5.x on 8310 # if running on 10.5 or later, the deployment target defaults 8311 # to the OS version, if on x86, and 10.4, the deployment 8312 # target defaults to 10.4. Don't you love it? 8313 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8314 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8315 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8316 10.[012][,.]*) 8317 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8318 10.*) 8319 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8320 esac 8321 ;; 8322 esac 8323 if test yes = "$lt_cv_apple_cc_single_mod"; then 8324 _lt_dar_single_mod='$single_module' 8325 fi 8326 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8327 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8328 else 8329 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8330 fi 8331 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8332 _lt_dsymutil='~$DSYMUTIL $lib || :' 8333 else 8334 _lt_dsymutil= 8335 fi 8336 ;; 8337 esac 8338 8339# func_munge_path_list VARIABLE PATH 8340# ----------------------------------- 8341# VARIABLE is name of variable containing _space_ separated list of 8342# directories to be munged by the contents of PATH, which is string 8343# having a format: 8344# "DIR[:DIR]:" 8345# string "DIR[ DIR]" will be prepended to VARIABLE 8346# ":DIR[:DIR]" 8347# string "DIR[ DIR]" will be appended to VARIABLE 8348# "DIRP[:DIRP]::[DIRA:]DIRA" 8349# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8350# "DIRA[ DIRA]" will be appended to VARIABLE 8351# "DIR[:DIR]" 8352# VARIABLE will be replaced by "DIR[ DIR]" 8353func_munge_path_list () 8354{ 8355 case x$2 in 8356 x) 8357 ;; 8358 *:) 8359 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8360 ;; 8361 x:*) 8362 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8363 ;; 8364 *::*) 8365 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8366 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8367 ;; 8368 *) 8369 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8370 ;; 8371 esac 8372} 8373 8374ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8375" 8376if test "x$ac_cv_header_dlfcn_h" = xyes 8377then : 8378 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8379 8380fi 8381 8382 8383 8384 8385 8386# Set options 8387 8388 8389 8390 enable_dlopen=no 8391 8392 8393 enable_win32_dll=no 8394 8395 8396 # Check whether --enable-shared was given. 8397if test ${enable_shared+y} 8398then : 8399 enableval=$enable_shared; p=${PACKAGE-default} 8400 case $enableval in 8401 yes) enable_shared=yes ;; 8402 no) enable_shared=no ;; 8403 *) 8404 enable_shared=no 8405 # Look at the argument we got. We use all the common list separators. 8406 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8407 for pkg in $enableval; do 8408 IFS=$lt_save_ifs 8409 if test "X$pkg" = "X$p"; then 8410 enable_shared=yes 8411 fi 8412 done 8413 IFS=$lt_save_ifs 8414 ;; 8415 esac 8416else $as_nop 8417 enable_shared=yes 8418fi 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 # Check whether --enable-static was given. 8429if test ${enable_static+y} 8430then : 8431 enableval=$enable_static; p=${PACKAGE-default} 8432 case $enableval in 8433 yes) enable_static=yes ;; 8434 no) enable_static=no ;; 8435 *) 8436 enable_static=no 8437 # Look at the argument we got. We use all the common list separators. 8438 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8439 for pkg in $enableval; do 8440 IFS=$lt_save_ifs 8441 if test "X$pkg" = "X$p"; then 8442 enable_static=yes 8443 fi 8444 done 8445 IFS=$lt_save_ifs 8446 ;; 8447 esac 8448else $as_nop 8449 enable_static=yes 8450fi 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461# Check whether --with-pic was given. 8462if test ${with_pic+y} 8463then : 8464 withval=$with_pic; lt_p=${PACKAGE-default} 8465 case $withval in 8466 yes|no) pic_mode=$withval ;; 8467 *) 8468 pic_mode=default 8469 # Look at the argument we got. We use all the common list separators. 8470 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8471 for lt_pkg in $withval; do 8472 IFS=$lt_save_ifs 8473 if test "X$lt_pkg" = "X$lt_p"; then 8474 pic_mode=yes 8475 fi 8476 done 8477 IFS=$lt_save_ifs 8478 ;; 8479 esac 8480else $as_nop 8481 pic_mode=default 8482fi 8483 8484 8485 8486 8487 8488 8489 8490 8491 # Check whether --enable-fast-install was given. 8492if test ${enable_fast_install+y} 8493then : 8494 enableval=$enable_fast_install; p=${PACKAGE-default} 8495 case $enableval in 8496 yes) enable_fast_install=yes ;; 8497 no) enable_fast_install=no ;; 8498 *) 8499 enable_fast_install=no 8500 # Look at the argument we got. We use all the common list separators. 8501 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8502 for pkg in $enableval; do 8503 IFS=$lt_save_ifs 8504 if test "X$pkg" = "X$p"; then 8505 enable_fast_install=yes 8506 fi 8507 done 8508 IFS=$lt_save_ifs 8509 ;; 8510 esac 8511else $as_nop 8512 enable_fast_install=yes 8513fi 8514 8515 8516 8517 8518 8519 8520 8521 8522 shared_archive_member_spec= 8523case $host,$enable_shared in 8524power*-*-aix[5-9]*,yes) 8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8526printf %s "checking which variant of shared library versioning to provide... " >&6; } 8527 8528# Check whether --with-aix-soname was given. 8529if test ${with_aix_soname+y} 8530then : 8531 withval=$with_aix_soname; case $withval in 8532 aix|svr4|both) 8533 ;; 8534 *) 8535 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8536 ;; 8537 esac 8538 lt_cv_with_aix_soname=$with_aix_soname 8539else $as_nop 8540 if test ${lt_cv_with_aix_soname+y} 8541then : 8542 printf %s "(cached) " >&6 8543else $as_nop 8544 lt_cv_with_aix_soname=aix 8545fi 8546 8547 with_aix_soname=$lt_cv_with_aix_soname 8548fi 8549 8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8551printf "%s\n" "$with_aix_soname" >&6; } 8552 if test aix != "$with_aix_soname"; then 8553 # For the AIX way of multilib, we name the shared archive member 8554 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8555 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8556 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8557 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8558 if test 64 = "${OBJECT_MODE-32}"; then 8559 shared_archive_member_spec=shr_64 8560 else 8561 shared_archive_member_spec=shr 8562 fi 8563 fi 8564 ;; 8565*) 8566 with_aix_soname=aix 8567 ;; 8568esac 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579# This can be used to rebuild libtool when needed 8580LIBTOOL_DEPS=$ltmain 8581 8582# Always use our own libtool. 8583LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614test -z "$LN_S" && LN_S="ln -s" 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629if test -n "${ZSH_VERSION+set}"; then 8630 setopt NO_GLOB_SUBST 8631fi 8632 8633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8634printf %s "checking for objdir... " >&6; } 8635if test ${lt_cv_objdir+y} 8636then : 8637 printf %s "(cached) " >&6 8638else $as_nop 8639 rm -f .libs 2>/dev/null 8640mkdir .libs 2>/dev/null 8641if test -d .libs; then 8642 lt_cv_objdir=.libs 8643else 8644 # MS-DOS does not allow filenames that begin with a dot. 8645 lt_cv_objdir=_libs 8646fi 8647rmdir .libs 2>/dev/null 8648fi 8649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8650printf "%s\n" "$lt_cv_objdir" >&6; } 8651objdir=$lt_cv_objdir 8652 8653 8654 8655 8656 8657printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8658 8659 8660 8661 8662case $host_os in 8663aix3*) 8664 # AIX sometimes has problems with the GCC collect2 program. For some 8665 # reason, if we set the COLLECT_NAMES environment variable, the problems 8666 # vanish in a puff of smoke. 8667 if test set != "${COLLECT_NAMES+set}"; then 8668 COLLECT_NAMES= 8669 export COLLECT_NAMES 8670 fi 8671 ;; 8672esac 8673 8674# Global variables: 8675ofile=libtool 8676can_build_shared=yes 8677 8678# All known linkers require a '.a' archive for static linking (except MSVC, 8679# which needs '.lib'). 8680libext=a 8681 8682with_gnu_ld=$lt_cv_prog_gnu_ld 8683 8684old_CC=$CC 8685old_CFLAGS=$CFLAGS 8686 8687# Set sane defaults for various variables 8688test -z "$CC" && CC=cc 8689test -z "$LTCC" && LTCC=$CC 8690test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8691test -z "$LD" && LD=ld 8692test -z "$ac_objext" && ac_objext=o 8693 8694func_cc_basename $compiler 8695cc_basename=$func_cc_basename_result 8696 8697 8698# Only perform the check for file, if the check method requires it 8699test -z "$MAGIC_CMD" && MAGIC_CMD=file 8700case $deplibs_check_method in 8701file_magic*) 8702 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8704printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8705if test ${lt_cv_path_MAGIC_CMD+y} 8706then : 8707 printf %s "(cached) " >&6 8708else $as_nop 8709 case $MAGIC_CMD in 8710[\\/*] | ?:[\\/]*) 8711 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8712 ;; 8713*) 8714 lt_save_MAGIC_CMD=$MAGIC_CMD 8715 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8716 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8717 for ac_dir in $ac_dummy; do 8718 IFS=$lt_save_ifs 8719 test -z "$ac_dir" && ac_dir=. 8720 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8721 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8722 if test -n "$file_magic_test_file"; then 8723 case $deplibs_check_method in 8724 "file_magic "*) 8725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8726 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8728 $EGREP "$file_magic_regex" > /dev/null; then 8729 : 8730 else 8731 cat <<_LT_EOF 1>&2 8732 8733*** Warning: the command libtool uses to detect shared libraries, 8734*** $file_magic_cmd, produces output that libtool cannot recognize. 8735*** The result is that libtool may fail to recognize shared libraries 8736*** as such. This will affect the creation of libtool libraries that 8737*** depend on shared libraries, but programs linked with such libtool 8738*** libraries will work regardless of this problem. Nevertheless, you 8739*** may want to report the problem to your system manager and/or to 8740*** bug-libtool@gnu.org 8741 8742_LT_EOF 8743 fi ;; 8744 esac 8745 fi 8746 break 8747 fi 8748 done 8749 IFS=$lt_save_ifs 8750 MAGIC_CMD=$lt_save_MAGIC_CMD 8751 ;; 8752esac 8753fi 8754 8755MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8756if test -n "$MAGIC_CMD"; then 8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8758printf "%s\n" "$MAGIC_CMD" >&6; } 8759else 8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8761printf "%s\n" "no" >&6; } 8762fi 8763 8764 8765 8766 8767 8768if test -z "$lt_cv_path_MAGIC_CMD"; then 8769 if test -n "$ac_tool_prefix"; then 8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8771printf %s "checking for file... " >&6; } 8772if test ${lt_cv_path_MAGIC_CMD+y} 8773then : 8774 printf %s "(cached) " >&6 8775else $as_nop 8776 case $MAGIC_CMD in 8777[\\/*] | ?:[\\/]*) 8778 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8779 ;; 8780*) 8781 lt_save_MAGIC_CMD=$MAGIC_CMD 8782 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8783 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8784 for ac_dir in $ac_dummy; do 8785 IFS=$lt_save_ifs 8786 test -z "$ac_dir" && ac_dir=. 8787 if test -f "$ac_dir/file"; then 8788 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8789 if test -n "$file_magic_test_file"; then 8790 case $deplibs_check_method in 8791 "file_magic "*) 8792 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8793 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8794 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8795 $EGREP "$file_magic_regex" > /dev/null; then 8796 : 8797 else 8798 cat <<_LT_EOF 1>&2 8799 8800*** Warning: the command libtool uses to detect shared libraries, 8801*** $file_magic_cmd, produces output that libtool cannot recognize. 8802*** The result is that libtool may fail to recognize shared libraries 8803*** as such. This will affect the creation of libtool libraries that 8804*** depend on shared libraries, but programs linked with such libtool 8805*** libraries will work regardless of this problem. Nevertheless, you 8806*** may want to report the problem to your system manager and/or to 8807*** bug-libtool@gnu.org 8808 8809_LT_EOF 8810 fi ;; 8811 esac 8812 fi 8813 break 8814 fi 8815 done 8816 IFS=$lt_save_ifs 8817 MAGIC_CMD=$lt_save_MAGIC_CMD 8818 ;; 8819esac 8820fi 8821 8822MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8823if test -n "$MAGIC_CMD"; then 8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8825printf "%s\n" "$MAGIC_CMD" >&6; } 8826else 8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8828printf "%s\n" "no" >&6; } 8829fi 8830 8831 8832 else 8833 MAGIC_CMD=: 8834 fi 8835fi 8836 8837 fi 8838 ;; 8839esac 8840 8841# Use C for the default configuration in the libtool script 8842 8843lt_save_CC=$CC 8844ac_ext=c 8845ac_cpp='$CPP $CPPFLAGS' 8846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8848ac_compiler_gnu=$ac_cv_c_compiler_gnu 8849 8850 8851# Source file extension for C test sources. 8852ac_ext=c 8853 8854# Object file extension for compiled C test sources. 8855objext=o 8856objext=$objext 8857 8858# Code to be used in simple compile tests 8859lt_simple_compile_test_code="int some_variable = 0;" 8860 8861# Code to be used in simple link tests 8862lt_simple_link_test_code='int main(){return(0);}' 8863 8864 8865 8866 8867 8868 8869 8870# If no C compiler was specified, use CC. 8871LTCC=${LTCC-"$CC"} 8872 8873# If no C compiler flags were specified, use CFLAGS. 8874LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8875 8876# Allow CC to be a program name with arguments. 8877compiler=$CC 8878 8879# Save the default compiler, since it gets overwritten when the other 8880# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8881compiler_DEFAULT=$CC 8882 8883# save warnings/boilerplate of simple test code 8884ac_outfile=conftest.$ac_objext 8885echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8886eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8887_lt_compiler_boilerplate=`cat conftest.err` 8888$RM conftest* 8889 8890ac_outfile=conftest.$ac_objext 8891echo "$lt_simple_link_test_code" >conftest.$ac_ext 8892eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8893_lt_linker_boilerplate=`cat conftest.err` 8894$RM -r conftest* 8895 8896 8897## CAVEAT EMPTOR: 8898## There is no encapsulation within the following macros, do not change 8899## the running order or otherwise move them around unless you know exactly 8900## what you are doing... 8901if test -n "$compiler"; then 8902 8903lt_prog_compiler_no_builtin_flag= 8904 8905if test yes = "$GCC"; then 8906 case $cc_basename in 8907 nvcc*) 8908 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8909 *) 8910 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8911 esac 8912 8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8914printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8915if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8916then : 8917 printf %s "(cached) " >&6 8918else $as_nop 8919 lt_cv_prog_compiler_rtti_exceptions=no 8920 ac_outfile=conftest.$ac_objext 8921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8922 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8923 # Insert the option either (1) after the last *FLAGS variable, or 8924 # (2) before a word containing "conftest.", or (3) at the end. 8925 # Note that $ac_compile itself does not contain backslashes and begins 8926 # with a dollar sign (not a hyphen), so the echo should work correctly. 8927 # The option is referenced via a variable to avoid confusing sed. 8928 lt_compile=`echo "$ac_compile" | $SED \ 8929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8931 -e 's:$: $lt_compiler_flag:'` 8932 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8933 (eval "$lt_compile" 2>conftest.err) 8934 ac_status=$? 8935 cat conftest.err >&5 8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8937 if (exit $ac_status) && test -s "$ac_outfile"; then 8938 # The compiler can only warn and ignore the option if not recognized 8939 # So say no if there are warnings other than the usual output. 8940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8943 lt_cv_prog_compiler_rtti_exceptions=yes 8944 fi 8945 fi 8946 $RM conftest* 8947 8948fi 8949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8950printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8951 8952if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8953 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8954else 8955 : 8956fi 8957 8958fi 8959 8960 8961 8962 8963 8964 8965 lt_prog_compiler_wl= 8966lt_prog_compiler_pic= 8967lt_prog_compiler_static= 8968 8969 8970 if test yes = "$GCC"; then 8971 lt_prog_compiler_wl='-Wl,' 8972 lt_prog_compiler_static='-static' 8973 8974 case $host_os in 8975 aix*) 8976 # All AIX code is PIC. 8977 if test ia64 = "$host_cpu"; then 8978 # AIX 5 now supports IA64 processor 8979 lt_prog_compiler_static='-Bstatic' 8980 fi 8981 lt_prog_compiler_pic='-fPIC' 8982 ;; 8983 8984 amigaos*) 8985 case $host_cpu in 8986 powerpc) 8987 # see comment about AmigaOS4 .so support 8988 lt_prog_compiler_pic='-fPIC' 8989 ;; 8990 m68k) 8991 # FIXME: we need at least 68020 code to build shared libraries, but 8992 # adding the '-m68020' flag to GCC prevents building anything better, 8993 # like '-m68040'. 8994 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8995 ;; 8996 esac 8997 ;; 8998 8999 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9000 # PIC is the default for these OSes. 9001 ;; 9002 9003 mingw* | cygwin* | pw32* | os2* | cegcc*) 9004 # This hack is so that the source file can tell whether it is being 9005 # built for inclusion in a dll (and should export symbols for example). 9006 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9007 # (--disable-auto-import) libraries 9008 lt_prog_compiler_pic='-DDLL_EXPORT' 9009 case $host_os in 9010 os2*) 9011 lt_prog_compiler_static='$wl-static' 9012 ;; 9013 esac 9014 ;; 9015 9016 darwin* | rhapsody*) 9017 # PIC is the default on this platform 9018 # Common symbols not allowed in MH_DYLIB files 9019 lt_prog_compiler_pic='-fno-common' 9020 ;; 9021 9022 haiku*) 9023 # PIC is the default for Haiku. 9024 # The "-static" flag exists, but is broken. 9025 lt_prog_compiler_static= 9026 ;; 9027 9028 hpux*) 9029 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9030 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9031 # sets the default TLS model and affects inlining. 9032 case $host_cpu in 9033 hppa*64*) 9034 # +Z the default 9035 ;; 9036 *) 9037 lt_prog_compiler_pic='-fPIC' 9038 ;; 9039 esac 9040 ;; 9041 9042 interix[3-9]*) 9043 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9044 # Instead, we relocate shared libraries at runtime. 9045 ;; 9046 9047 msdosdjgpp*) 9048 # Just because we use GCC doesn't mean we suddenly get shared libraries 9049 # on systems that don't support them. 9050 lt_prog_compiler_can_build_shared=no 9051 enable_shared=no 9052 ;; 9053 9054 *nto* | *qnx*) 9055 # QNX uses GNU C++, but need to define -shared option too, otherwise 9056 # it will coredump. 9057 lt_prog_compiler_pic='-fPIC -shared' 9058 ;; 9059 9060 sysv4*MP*) 9061 if test -d /usr/nec; then 9062 lt_prog_compiler_pic=-Kconform_pic 9063 fi 9064 ;; 9065 9066 *) 9067 lt_prog_compiler_pic='-fPIC' 9068 ;; 9069 esac 9070 9071 case $cc_basename in 9072 nvcc*) # Cuda Compiler Driver 2.2 9073 lt_prog_compiler_wl='-Xlinker ' 9074 if test -n "$lt_prog_compiler_pic"; then 9075 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9076 fi 9077 ;; 9078 esac 9079 else 9080 # PORTME Check for flag to pass linker flags through the system compiler. 9081 case $host_os in 9082 aix*) 9083 lt_prog_compiler_wl='-Wl,' 9084 if test ia64 = "$host_cpu"; then 9085 # AIX 5 now supports IA64 processor 9086 lt_prog_compiler_static='-Bstatic' 9087 else 9088 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9089 fi 9090 ;; 9091 9092 darwin* | rhapsody*) 9093 # PIC is the default on this platform 9094 # Common symbols not allowed in MH_DYLIB files 9095 lt_prog_compiler_pic='-fno-common' 9096 case $cc_basename in 9097 nagfor*) 9098 # NAG Fortran compiler 9099 lt_prog_compiler_wl='-Wl,-Wl,,' 9100 lt_prog_compiler_pic='-PIC' 9101 lt_prog_compiler_static='-Bstatic' 9102 ;; 9103 esac 9104 ;; 9105 9106 mingw* | cygwin* | pw32* | os2* | cegcc*) 9107 # This hack is so that the source file can tell whether it is being 9108 # built for inclusion in a dll (and should export symbols for example). 9109 lt_prog_compiler_pic='-DDLL_EXPORT' 9110 case $host_os in 9111 os2*) 9112 lt_prog_compiler_static='$wl-static' 9113 ;; 9114 esac 9115 ;; 9116 9117 hpux9* | hpux10* | hpux11*) 9118 lt_prog_compiler_wl='-Wl,' 9119 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9120 # not for PA HP-UX. 9121 case $host_cpu in 9122 hppa*64*|ia64*) 9123 # +Z the default 9124 ;; 9125 *) 9126 lt_prog_compiler_pic='+Z' 9127 ;; 9128 esac 9129 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9130 lt_prog_compiler_static='$wl-a ${wl}archive' 9131 ;; 9132 9133 irix5* | irix6* | nonstopux*) 9134 lt_prog_compiler_wl='-Wl,' 9135 # PIC (with -KPIC) is the default. 9136 lt_prog_compiler_static='-non_shared' 9137 ;; 9138 9139 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9140 case $cc_basename in 9141 # old Intel for x86_64, which still supported -KPIC. 9142 ecc*) 9143 lt_prog_compiler_wl='-Wl,' 9144 lt_prog_compiler_pic='-KPIC' 9145 lt_prog_compiler_static='-static' 9146 ;; 9147 # icc used to be incompatible with GCC. 9148 # ICC 10 doesn't accept -KPIC any more. 9149 icc* | ifort*) 9150 lt_prog_compiler_wl='-Wl,' 9151 lt_prog_compiler_pic='-fPIC' 9152 lt_prog_compiler_static='-static' 9153 ;; 9154 # Lahey Fortran 8.1. 9155 lf95*) 9156 lt_prog_compiler_wl='-Wl,' 9157 lt_prog_compiler_pic='--shared' 9158 lt_prog_compiler_static='--static' 9159 ;; 9160 nagfor*) 9161 # NAG Fortran compiler 9162 lt_prog_compiler_wl='-Wl,-Wl,,' 9163 lt_prog_compiler_pic='-PIC' 9164 lt_prog_compiler_static='-Bstatic' 9165 ;; 9166 tcc*) 9167 # Fabrice Bellard et al's Tiny C Compiler 9168 lt_prog_compiler_wl='-Wl,' 9169 lt_prog_compiler_pic='-fPIC' 9170 lt_prog_compiler_static='-static' 9171 ;; 9172 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9173 # Portland Group compilers (*not* the Pentium gcc compiler, 9174 # which looks to be a dead project) 9175 lt_prog_compiler_wl='-Wl,' 9176 lt_prog_compiler_pic='-fpic' 9177 lt_prog_compiler_static='-Bstatic' 9178 ;; 9179 ccc*) 9180 lt_prog_compiler_wl='-Wl,' 9181 # All Alpha code is PIC. 9182 lt_prog_compiler_static='-non_shared' 9183 ;; 9184 xl* | bgxl* | bgf* | mpixl*) 9185 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9186 lt_prog_compiler_wl='-Wl,' 9187 lt_prog_compiler_pic='-qpic' 9188 lt_prog_compiler_static='-qstaticlink' 9189 ;; 9190 *) 9191 case `$CC -V 2>&1 | sed 5q` in 9192 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9193 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9194 lt_prog_compiler_pic='-KPIC' 9195 lt_prog_compiler_static='-Bstatic' 9196 lt_prog_compiler_wl='' 9197 ;; 9198 *Sun\ F* | *Sun*Fortran*) 9199 lt_prog_compiler_pic='-KPIC' 9200 lt_prog_compiler_static='-Bstatic' 9201 lt_prog_compiler_wl='-Qoption ld ' 9202 ;; 9203 *Sun\ C*) 9204 # Sun C 5.9 9205 lt_prog_compiler_pic='-KPIC' 9206 lt_prog_compiler_static='-Bstatic' 9207 lt_prog_compiler_wl='-Wl,' 9208 ;; 9209 *Intel*\ [CF]*Compiler*) 9210 lt_prog_compiler_wl='-Wl,' 9211 lt_prog_compiler_pic='-fPIC' 9212 lt_prog_compiler_static='-static' 9213 ;; 9214 *Portland\ Group*) 9215 lt_prog_compiler_wl='-Wl,' 9216 lt_prog_compiler_pic='-fpic' 9217 lt_prog_compiler_static='-Bstatic' 9218 ;; 9219 esac 9220 ;; 9221 esac 9222 ;; 9223 9224 newsos6) 9225 lt_prog_compiler_pic='-KPIC' 9226 lt_prog_compiler_static='-Bstatic' 9227 ;; 9228 9229 *nto* | *qnx*) 9230 # QNX uses GNU C++, but need to define -shared option too, otherwise 9231 # it will coredump. 9232 lt_prog_compiler_pic='-fPIC -shared' 9233 ;; 9234 9235 osf3* | osf4* | osf5*) 9236 lt_prog_compiler_wl='-Wl,' 9237 # All OSF/1 code is PIC. 9238 lt_prog_compiler_static='-non_shared' 9239 ;; 9240 9241 rdos*) 9242 lt_prog_compiler_static='-non_shared' 9243 ;; 9244 9245 solaris*) 9246 lt_prog_compiler_pic='-KPIC' 9247 lt_prog_compiler_static='-Bstatic' 9248 case $cc_basename in 9249 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9250 lt_prog_compiler_wl='-Qoption ld ';; 9251 *) 9252 lt_prog_compiler_wl='-Wl,';; 9253 esac 9254 ;; 9255 9256 sunos4*) 9257 lt_prog_compiler_wl='-Qoption ld ' 9258 lt_prog_compiler_pic='-PIC' 9259 lt_prog_compiler_static='-Bstatic' 9260 ;; 9261 9262 sysv4 | sysv4.2uw2* | sysv4.3*) 9263 lt_prog_compiler_wl='-Wl,' 9264 lt_prog_compiler_pic='-KPIC' 9265 lt_prog_compiler_static='-Bstatic' 9266 ;; 9267 9268 sysv4*MP*) 9269 if test -d /usr/nec; then 9270 lt_prog_compiler_pic='-Kconform_pic' 9271 lt_prog_compiler_static='-Bstatic' 9272 fi 9273 ;; 9274 9275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9276 lt_prog_compiler_wl='-Wl,' 9277 lt_prog_compiler_pic='-KPIC' 9278 lt_prog_compiler_static='-Bstatic' 9279 ;; 9280 9281 unicos*) 9282 lt_prog_compiler_wl='-Wl,' 9283 lt_prog_compiler_can_build_shared=no 9284 ;; 9285 9286 uts4*) 9287 lt_prog_compiler_pic='-pic' 9288 lt_prog_compiler_static='-Bstatic' 9289 ;; 9290 9291 *) 9292 lt_prog_compiler_can_build_shared=no 9293 ;; 9294 esac 9295 fi 9296 9297case $host_os in 9298 # For platforms that do not support PIC, -DPIC is meaningless: 9299 *djgpp*) 9300 lt_prog_compiler_pic= 9301 ;; 9302 *) 9303 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9304 ;; 9305esac 9306 9307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9308printf %s "checking for $compiler option to produce PIC... " >&6; } 9309if test ${lt_cv_prog_compiler_pic+y} 9310then : 9311 printf %s "(cached) " >&6 9312else $as_nop 9313 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9314fi 9315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9316printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9317lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9318 9319# 9320# Check to make sure the PIC flag actually works. 9321# 9322if test -n "$lt_prog_compiler_pic"; then 9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9324printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9325if test ${lt_cv_prog_compiler_pic_works+y} 9326then : 9327 printf %s "(cached) " >&6 9328else $as_nop 9329 lt_cv_prog_compiler_pic_works=no 9330 ac_outfile=conftest.$ac_objext 9331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9332 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9333 # Insert the option either (1) after the last *FLAGS variable, or 9334 # (2) before a word containing "conftest.", or (3) at the end. 9335 # Note that $ac_compile itself does not contain backslashes and begins 9336 # with a dollar sign (not a hyphen), so the echo should work correctly. 9337 # The option is referenced via a variable to avoid confusing sed. 9338 lt_compile=`echo "$ac_compile" | $SED \ 9339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9341 -e 's:$: $lt_compiler_flag:'` 9342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9343 (eval "$lt_compile" 2>conftest.err) 9344 ac_status=$? 9345 cat conftest.err >&5 9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9347 if (exit $ac_status) && test -s "$ac_outfile"; then 9348 # The compiler can only warn and ignore the option if not recognized 9349 # So say no if there are warnings other than the usual output. 9350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9353 lt_cv_prog_compiler_pic_works=yes 9354 fi 9355 fi 9356 $RM conftest* 9357 9358fi 9359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9360printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9361 9362if test yes = "$lt_cv_prog_compiler_pic_works"; then 9363 case $lt_prog_compiler_pic in 9364 "" | " "*) ;; 9365 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9366 esac 9367else 9368 lt_prog_compiler_pic= 9369 lt_prog_compiler_can_build_shared=no 9370fi 9371 9372fi 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384# 9385# Check to make sure the static flag actually works. 9386# 9387wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9389printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9390if test ${lt_cv_prog_compiler_static_works+y} 9391then : 9392 printf %s "(cached) " >&6 9393else $as_nop 9394 lt_cv_prog_compiler_static_works=no 9395 save_LDFLAGS=$LDFLAGS 9396 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9397 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9398 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9399 # The linker can only warn and ignore the option if not recognized 9400 # So say no if there are warnings 9401 if test -s conftest.err; then 9402 # Append any errors to the config.log. 9403 cat conftest.err 1>&5 9404 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9406 if diff conftest.exp conftest.er2 >/dev/null; then 9407 lt_cv_prog_compiler_static_works=yes 9408 fi 9409 else 9410 lt_cv_prog_compiler_static_works=yes 9411 fi 9412 fi 9413 $RM -r conftest* 9414 LDFLAGS=$save_LDFLAGS 9415 9416fi 9417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9418printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9419 9420if test yes = "$lt_cv_prog_compiler_static_works"; then 9421 : 9422else 9423 lt_prog_compiler_static= 9424fi 9425 9426 9427 9428 9429 9430 9431 9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9433printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9434if test ${lt_cv_prog_compiler_c_o+y} 9435then : 9436 printf %s "(cached) " >&6 9437else $as_nop 9438 lt_cv_prog_compiler_c_o=no 9439 $RM -r conftest 2>/dev/null 9440 mkdir conftest 9441 cd conftest 9442 mkdir out 9443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9444 9445 lt_compiler_flag="-o out/conftest2.$ac_objext" 9446 # Insert the option either (1) after the last *FLAGS variable, or 9447 # (2) before a word containing "conftest.", or (3) at the end. 9448 # Note that $ac_compile itself does not contain backslashes and begins 9449 # with a dollar sign (not a hyphen), so the echo should work correctly. 9450 lt_compile=`echo "$ac_compile" | $SED \ 9451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9453 -e 's:$: $lt_compiler_flag:'` 9454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9455 (eval "$lt_compile" 2>out/conftest.err) 9456 ac_status=$? 9457 cat out/conftest.err >&5 9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9459 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9460 then 9461 # The compiler can only warn and ignore the option if not recognized 9462 # So say no if there are warnings 9463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9464 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9465 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9466 lt_cv_prog_compiler_c_o=yes 9467 fi 9468 fi 9469 chmod u+w . 2>&5 9470 $RM conftest* 9471 # SGI C++ compiler will create directory out/ii_files/ for 9472 # template instantiation 9473 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9474 $RM out/* && rmdir out 9475 cd .. 9476 $RM -r conftest 9477 $RM conftest* 9478 9479fi 9480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9481printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9482 9483 9484 9485 9486 9487 9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9489printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9490if test ${lt_cv_prog_compiler_c_o+y} 9491then : 9492 printf %s "(cached) " >&6 9493else $as_nop 9494 lt_cv_prog_compiler_c_o=no 9495 $RM -r conftest 2>/dev/null 9496 mkdir conftest 9497 cd conftest 9498 mkdir out 9499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9500 9501 lt_compiler_flag="-o out/conftest2.$ac_objext" 9502 # Insert the option either (1) after the last *FLAGS variable, or 9503 # (2) before a word containing "conftest.", or (3) at the end. 9504 # Note that $ac_compile itself does not contain backslashes and begins 9505 # with a dollar sign (not a hyphen), so the echo should work correctly. 9506 lt_compile=`echo "$ac_compile" | $SED \ 9507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9509 -e 's:$: $lt_compiler_flag:'` 9510 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9511 (eval "$lt_compile" 2>out/conftest.err) 9512 ac_status=$? 9513 cat out/conftest.err >&5 9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9515 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9516 then 9517 # The compiler can only warn and ignore the option if not recognized 9518 # So say no if there are warnings 9519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9520 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9521 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9522 lt_cv_prog_compiler_c_o=yes 9523 fi 9524 fi 9525 chmod u+w . 2>&5 9526 $RM conftest* 9527 # SGI C++ compiler will create directory out/ii_files/ for 9528 # template instantiation 9529 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9530 $RM out/* && rmdir out 9531 cd .. 9532 $RM -r conftest 9533 $RM conftest* 9534 9535fi 9536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9537printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9538 9539 9540 9541 9542hard_links=nottested 9543if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9544 # do not overwrite the value of need_locks provided by the user 9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9546printf %s "checking if we can lock with hard links... " >&6; } 9547 hard_links=yes 9548 $RM conftest* 9549 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9550 touch conftest.a 9551 ln conftest.a conftest.b 2>&5 || hard_links=no 9552 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9554printf "%s\n" "$hard_links" >&6; } 9555 if test no = "$hard_links"; then 9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9557printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9558 need_locks=warn 9559 fi 9560else 9561 need_locks=no 9562fi 9563 9564 9565 9566 9567 9568 9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9570printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9571 9572 runpath_var= 9573 allow_undefined_flag= 9574 always_export_symbols=no 9575 archive_cmds= 9576 archive_expsym_cmds= 9577 compiler_needs_object=no 9578 enable_shared_with_static_runtimes=no 9579 export_dynamic_flag_spec= 9580 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9581 hardcode_automatic=no 9582 hardcode_direct=no 9583 hardcode_direct_absolute=no 9584 hardcode_libdir_flag_spec= 9585 hardcode_libdir_separator= 9586 hardcode_minus_L=no 9587 hardcode_shlibpath_var=unsupported 9588 inherit_rpath=no 9589 link_all_deplibs=no 9590 module_cmds= 9591 module_expsym_cmds= 9592 old_archive_from_new_cmds= 9593 old_archive_from_expsyms_cmds= 9594 thread_safe_flag_spec= 9595 whole_archive_flag_spec= 9596 # include_expsyms should be a list of space-separated symbols to be *always* 9597 # included in the symbol list 9598 include_expsyms= 9599 # exclude_expsyms can be an extended regexp of symbols to exclude 9600 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9601 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9602 # as well as any symbol that contains 'd'. 9603 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9604 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9605 # platforms (ab)use it in PIC code, but their linkers get confused if 9606 # the symbol is explicitly referenced. Since portable code cannot 9607 # rely on this symbol name, it's probably fine to never include it in 9608 # preloaded symbol tables. 9609 # Exclude shared library initialization/finalization symbols. 9610 extract_expsyms_cmds= 9611 9612 case $host_os in 9613 cygwin* | mingw* | pw32* | cegcc*) 9614 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9615 # When not using gcc, we currently assume that we are using 9616 # Microsoft Visual C++. 9617 if test yes != "$GCC"; then 9618 with_gnu_ld=no 9619 fi 9620 ;; 9621 interix*) 9622 # we just hope/assume this is gcc and not c89 (= MSVC++) 9623 with_gnu_ld=yes 9624 ;; 9625 openbsd* | bitrig*) 9626 with_gnu_ld=no 9627 ;; 9628 esac 9629 9630 ld_shlibs=yes 9631 9632 # On some targets, GNU ld is compatible enough with the native linker 9633 # that we're better off using the native interface for both. 9634 lt_use_gnu_ld_interface=no 9635 if test yes = "$with_gnu_ld"; then 9636 case $host_os in 9637 aix*) 9638 # The AIX port of GNU ld has always aspired to compatibility 9639 # with the native linker. However, as the warning in the GNU ld 9640 # block says, versions before 2.19.5* couldn't really create working 9641 # shared libraries, regardless of the interface used. 9642 case `$LD -v 2>&1` in 9643 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9644 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9645 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9646 *) 9647 lt_use_gnu_ld_interface=yes 9648 ;; 9649 esac 9650 ;; 9651 *) 9652 lt_use_gnu_ld_interface=yes 9653 ;; 9654 esac 9655 fi 9656 9657 if test yes = "$lt_use_gnu_ld_interface"; then 9658 # If archive_cmds runs LD, not CC, wlarc should be empty 9659 wlarc='$wl' 9660 9661 # Set some defaults for GNU ld with shared library support. These 9662 # are reset later if shared libraries are not supported. Putting them 9663 # here allows them to be overridden if necessary. 9664 runpath_var=LD_RUN_PATH 9665 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9666 export_dynamic_flag_spec='$wl--export-dynamic' 9667 # ancient GNU ld didn't support --whole-archive et. al. 9668 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9669 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9670 else 9671 whole_archive_flag_spec= 9672 fi 9673 supports_anon_versioning=no 9674 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9675 *GNU\ gold*) supports_anon_versioning=yes ;; 9676 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9677 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9678 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9679 *\ 2.11.*) ;; # other 2.11 versions 9680 *) supports_anon_versioning=yes ;; 9681 esac 9682 9683 # See if GNU ld supports shared libraries. 9684 case $host_os in 9685 aix[3-9]*) 9686 # On AIX/PPC, the GNU linker is very broken 9687 if test ia64 != "$host_cpu"; then 9688 ld_shlibs=no 9689 cat <<_LT_EOF 1>&2 9690 9691*** Warning: the GNU linker, at least up to release 2.19, is reported 9692*** to be unable to reliably create shared libraries on AIX. 9693*** Therefore, libtool is disabling shared libraries support. If you 9694*** really care for shared libraries, you may want to install binutils 9695*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9696*** You will then need to restart the configuration process. 9697 9698_LT_EOF 9699 fi 9700 ;; 9701 9702 amigaos*) 9703 case $host_cpu in 9704 powerpc) 9705 # see comment about AmigaOS4 .so support 9706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9707 archive_expsym_cmds='' 9708 ;; 9709 m68k) 9710 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)' 9711 hardcode_libdir_flag_spec='-L$libdir' 9712 hardcode_minus_L=yes 9713 ;; 9714 esac 9715 ;; 9716 9717 beos*) 9718 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9719 allow_undefined_flag=unsupported 9720 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9721 # support --undefined. This deserves some investigation. FIXME 9722 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9723 else 9724 ld_shlibs=no 9725 fi 9726 ;; 9727 9728 cygwin* | mingw* | pw32* | cegcc*) 9729 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9730 # as there is no search path for DLLs. 9731 hardcode_libdir_flag_spec='-L$libdir' 9732 export_dynamic_flag_spec='$wl--export-all-symbols' 9733 allow_undefined_flag=unsupported 9734 always_export_symbols=no 9735 enable_shared_with_static_runtimes=yes 9736 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' 9737 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9738 9739 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9741 # If the export-symbols file already is a .def file, use it as 9742 # is; otherwise, prepend EXPORTS... 9743 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9744 cp $export_symbols $output_objdir/$soname.def; 9745 else 9746 echo EXPORTS > $output_objdir/$soname.def; 9747 cat $export_symbols >> $output_objdir/$soname.def; 9748 fi~ 9749 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9750 else 9751 ld_shlibs=no 9752 fi 9753 ;; 9754 9755 haiku*) 9756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9757 link_all_deplibs=yes 9758 ;; 9759 9760 os2*) 9761 hardcode_libdir_flag_spec='-L$libdir' 9762 hardcode_minus_L=yes 9763 allow_undefined_flag=unsupported 9764 shrext_cmds=.dll 9765 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9766 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9767 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9768 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9769 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9770 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9771 emximp -o $lib $output_objdir/$libname.def' 9772 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9773 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9774 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9775 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9776 prefix_cmds="$SED"~ 9777 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9778 prefix_cmds="$prefix_cmds -e 1d"; 9779 fi~ 9780 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9781 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9782 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9783 emximp -o $lib $output_objdir/$libname.def' 9784 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9785 enable_shared_with_static_runtimes=yes 9786 ;; 9787 9788 interix[3-9]*) 9789 hardcode_direct=no 9790 hardcode_shlibpath_var=no 9791 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9792 export_dynamic_flag_spec='$wl-E' 9793 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9794 # Instead, shared libraries are loaded at an image base (0x10000000 by 9795 # default) and relocated if they conflict, which is a slow very memory 9796 # consuming and fragmenting process. To avoid this, we pick a random, 9797 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9798 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9799 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9800 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' 9801 ;; 9802 9803 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9804 tmp_diet=no 9805 if test linux-dietlibc = "$host_os"; then 9806 case $cc_basename in 9807 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9808 esac 9809 fi 9810 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9811 && test no = "$tmp_diet" 9812 then 9813 tmp_addflag=' $pic_flag' 9814 tmp_sharedflag='-shared' 9815 case $cc_basename,$host_cpu in 9816 pgcc*) # Portland Group C compiler 9817 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' 9818 tmp_addflag=' $pic_flag' 9819 ;; 9820 pgf77* | pgf90* | pgf95* | pgfortran*) 9821 # Portland Group f77 and f90 compilers 9822 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' 9823 tmp_addflag=' $pic_flag -Mnomain' ;; 9824 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9825 tmp_addflag=' -i_dynamic' ;; 9826 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9827 tmp_addflag=' -i_dynamic -nofor_main' ;; 9828 ifc* | ifort*) # Intel Fortran compiler 9829 tmp_addflag=' -nofor_main' ;; 9830 lf95*) # Lahey Fortran 8.1 9831 whole_archive_flag_spec= 9832 tmp_sharedflag='--shared' ;; 9833 nagfor*) # NAGFOR 5.3 9834 tmp_sharedflag='-Wl,-shared' ;; 9835 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9836 tmp_sharedflag='-qmkshrobj' 9837 tmp_addflag= ;; 9838 nvcc*) # Cuda Compiler Driver 2.2 9839 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' 9840 compiler_needs_object=yes 9841 ;; 9842 esac 9843 case `$CC -V 2>&1 | sed 5q` in 9844 *Sun\ C*) # Sun C 5.9 9845 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' 9846 compiler_needs_object=yes 9847 tmp_sharedflag='-G' ;; 9848 *Sun\ F*) # Sun Fortran 8.3 9849 tmp_sharedflag='-G' ;; 9850 esac 9851 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9852 9853 if test yes = "$supports_anon_versioning"; then 9854 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9855 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9856 echo "local: *; };" >> $output_objdir/$libname.ver~ 9857 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9858 fi 9859 9860 case $cc_basename in 9861 tcc*) 9862 export_dynamic_flag_spec='-rdynamic' 9863 ;; 9864 xlf* | bgf* | bgxlf* | mpixlf*) 9865 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9866 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9867 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9868 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9869 if test yes = "$supports_anon_versioning"; then 9870 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9872 echo "local: *; };" >> $output_objdir/$libname.ver~ 9873 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9874 fi 9875 ;; 9876 esac 9877 else 9878 ld_shlibs=no 9879 fi 9880 ;; 9881 9882 netbsd*) 9883 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9884 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9885 wlarc= 9886 else 9887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9888 archive_expsym_cmds='echo "{ global:" > $lib-ver~ sed -e "s|$|;|" < $export_symbols >> $lib-ver~ echo "local: *; };" >> $lib-ver~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$lib-ver -o $lib' 9889 fi 9890 ;; 9891 9892 solaris*) 9893 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9894 ld_shlibs=no 9895 cat <<_LT_EOF 1>&2 9896 9897*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9898*** create shared libraries on Solaris systems. Therefore, libtool 9899*** is disabling shared libraries support. We urge you to upgrade GNU 9900*** binutils to release 2.9.1 or newer. Another option is to modify 9901*** your PATH or compiler configuration so that the native linker is 9902*** used, and then restart. 9903 9904_LT_EOF 9905 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9906 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9907 archive_expsym_cmds='echo "{ global:" > $lib-ver~ sed -e "s|$|;|" < $export_symbols >> $lib-ver~ echo "local: *; };" >> $lib-ver~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$lib-ver -o $lib' 9908 else 9909 ld_shlibs=no 9910 fi 9911 ;; 9912 9913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9914 case `$LD -v 2>&1` in 9915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9916 ld_shlibs=no 9917 cat <<_LT_EOF 1>&2 9918 9919*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9920*** reliably create shared libraries on SCO systems. Therefore, libtool 9921*** is disabling shared libraries support. We urge you to upgrade GNU 9922*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9923*** your PATH or compiler configuration so that the native linker is 9924*** used, and then restart. 9925 9926_LT_EOF 9927 ;; 9928 *) 9929 # For security reasons, it is highly recommended that you always 9930 # use absolute paths for naming shared libraries, and exclude the 9931 # DT_RUNPATH tag from executables and libraries. But doing so 9932 # requires that you compile everything twice, which is a pain. 9933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9934 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9936 archive_expsym_cmds='echo "{ global:" > $lib-ver~ sed -e "s|$|;|" < $export_symbols >> $lib-ver~ echo "local: *; };" >> $lib-ver~$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$lib-ver -o $lib' 9937 else 9938 ld_shlibs=no 9939 fi 9940 ;; 9941 esac 9942 ;; 9943 9944 sunos4*) 9945 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9946 wlarc= 9947 hardcode_direct=yes 9948 hardcode_shlibpath_var=no 9949 ;; 9950 9951 *) 9952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9953 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9954 archive_expsym_cmds='echo "{ global:" > $lib-ver~ sed -e "s|$|;|" < $export_symbols >> $lib-ver~ echo "local: *; };" >> $lib-ver~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$lib-ver -o $lib' 9955 else 9956 ld_shlibs=no 9957 fi 9958 ;; 9959 esac 9960 9961 if test no = "$ld_shlibs"; then 9962 runpath_var= 9963 hardcode_libdir_flag_spec= 9964 export_dynamic_flag_spec= 9965 whole_archive_flag_spec= 9966 fi 9967 else 9968 # PORTME fill in a description of your system's linker (not GNU ld) 9969 case $host_os in 9970 aix3*) 9971 allow_undefined_flag=unsupported 9972 always_export_symbols=yes 9973 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' 9974 # Note: this linker hardcodes the directories in LIBPATH if there 9975 # are no directories specified by -L. 9976 hardcode_minus_L=yes 9977 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9978 # Neither direct hardcoding nor static linking is supported with a 9979 # broken collect2. 9980 hardcode_direct=unsupported 9981 fi 9982 ;; 9983 9984 aix[4-9]*) 9985 if test ia64 = "$host_cpu"; then 9986 # On IA64, the linker does run time linking by default, so we don't 9987 # have to do anything special. 9988 aix_use_runtimelinking=no 9989 exp_sym_flag='-Bexport' 9990 no_entry_flag= 9991 else 9992 # If we're using GNU nm, then we don't want the "-C" option. 9993 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9994 # Without the "-l" option, or with the "-B" option, AIX nm treats 9995 # weak defined symbols like other global defined symbols, whereas 9996 # GNU nm marks them as "W". 9997 # While the 'weak' keyword is ignored in the Export File, we need 9998 # it in the Import File for the 'aix-soname' feature, so we have 9999 # to replace the "-B" option with "-P" for AIX nm. 10000 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10001 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' 10002 else 10003 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' 10004 fi 10005 aix_use_runtimelinking=no 10006 10007 # Test if we are trying to use run time linking or normal 10008 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10009 # have runtime linking enabled, and use it for executables. 10010 # For shared libraries, we enable/disable runtime linking 10011 # depending on the kind of the shared library created - 10012 # when "with_aix_soname,aix_use_runtimelinking" is: 10013 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10014 # "aix,yes" lib.so shared, rtl:yes, for executables 10015 # lib.a static archive 10016 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10017 # lib.a(lib.so.V) shared, rtl:no, for executables 10018 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10019 # lib.a(lib.so.V) shared, rtl:no 10020 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10021 # lib.a static archive 10022 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10023 for ld_flag in $LDFLAGS; do 10024 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10025 aix_use_runtimelinking=yes 10026 break 10027 fi 10028 done 10029 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10030 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10031 # so we don't have lib.a shared libs to link our executables. 10032 # We have to force runtime linking in this case. 10033 aix_use_runtimelinking=yes 10034 LDFLAGS="$LDFLAGS -Wl,-brtl" 10035 fi 10036 ;; 10037 esac 10038 10039 exp_sym_flag='-bexport' 10040 no_entry_flag='-bnoentry' 10041 fi 10042 10043 # When large executables or shared objects are built, AIX ld can 10044 # have problems creating the table of contents. If linking a library 10045 # or program results in "error TOC overflow" add -mminimal-toc to 10046 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10047 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10048 10049 archive_cmds='' 10050 hardcode_direct=yes 10051 hardcode_direct_absolute=yes 10052 hardcode_libdir_separator=':' 10053 link_all_deplibs=yes 10054 file_list_spec='$wl-f,' 10055 case $with_aix_soname,$aix_use_runtimelinking in 10056 aix,*) ;; # traditional, no import file 10057 svr4,* | *,yes) # use import file 10058 # The Import File defines what to hardcode. 10059 hardcode_direct=no 10060 hardcode_direct_absolute=no 10061 ;; 10062 esac 10063 10064 if test yes = "$GCC"; then 10065 case $host_os in aix4.[012]|aix4.[012].*) 10066 # We only want to do this on AIX 4.2 and lower, the check 10067 # below for broken collect2 doesn't work under 4.3+ 10068 collect2name=`$CC -print-prog-name=collect2` 10069 if test -f "$collect2name" && 10070 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10071 then 10072 # We have reworked collect2 10073 : 10074 else 10075 # We have old collect2 10076 hardcode_direct=unsupported 10077 # It fails to find uninstalled libraries when the uninstalled 10078 # path is not listed in the libpath. Setting hardcode_minus_L 10079 # to unsupported forces relinking 10080 hardcode_minus_L=yes 10081 hardcode_libdir_flag_spec='-L$libdir' 10082 hardcode_libdir_separator= 10083 fi 10084 ;; 10085 esac 10086 shared_flag='-shared' 10087 if test yes = "$aix_use_runtimelinking"; then 10088 shared_flag="$shared_flag "'$wl-G' 10089 fi 10090 # Need to ensure runtime linking is disabled for the traditional 10091 # shared library, or the linker may eventually find shared libraries 10092 # /with/ Import File - we do not want to mix them. 10093 shared_flag_aix='-shared' 10094 shared_flag_svr4='-shared $wl-G' 10095 else 10096 # not using gcc 10097 if test ia64 = "$host_cpu"; then 10098 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10099 # chokes on -Wl,-G. The following line is correct: 10100 shared_flag='-G' 10101 else 10102 if test yes = "$aix_use_runtimelinking"; then 10103 shared_flag='$wl-G' 10104 else 10105 shared_flag='$wl-bM:SRE' 10106 fi 10107 shared_flag_aix='$wl-bM:SRE' 10108 shared_flag_svr4='$wl-G' 10109 fi 10110 fi 10111 10112 export_dynamic_flag_spec='$wl-bexpall' 10113 # It seems that -bexpall does not export symbols beginning with 10114 # underscore (_), so it is better to generate a list of symbols to export. 10115 always_export_symbols=yes 10116 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10117 # Warning - without using the other runtime loading flags (-brtl), 10118 # -berok will link without error, but may produce a broken library. 10119 allow_undefined_flag='-berok' 10120 # Determine the default libpath from the value encoded in an 10121 # empty executable. 10122 if test set = "${lt_cv_aix_libpath+set}"; then 10123 aix_libpath=$lt_cv_aix_libpath 10124else 10125 if test ${lt_cv_aix_libpath_+y} 10126then : 10127 printf %s "(cached) " >&6 10128else $as_nop 10129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10130/* end confdefs.h. */ 10131 10132int 10133main (void) 10134{ 10135 10136 ; 10137 return 0; 10138} 10139_ACEOF 10140if ac_fn_c_try_link "$LINENO" 10141then : 10142 10143 lt_aix_libpath_sed=' 10144 /Import File Strings/,/^$/ { 10145 /^0/ { 10146 s/^0 *\([^ ]*\) *$/\1/ 10147 p 10148 } 10149 }' 10150 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10151 # Check for a 64-bit object if we didn't find anything. 10152 if test -z "$lt_cv_aix_libpath_"; then 10153 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10154 fi 10155fi 10156rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10157 conftest$ac_exeext conftest.$ac_ext 10158 if test -z "$lt_cv_aix_libpath_"; then 10159 lt_cv_aix_libpath_=/usr/lib:/lib 10160 fi 10161 10162fi 10163 10164 aix_libpath=$lt_cv_aix_libpath_ 10165fi 10166 10167 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10168 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 10169 else 10170 if test ia64 = "$host_cpu"; then 10171 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10172 allow_undefined_flag="-z nodefs" 10173 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" 10174 else 10175 # Determine the default libpath from the value encoded in an 10176 # empty executable. 10177 if test set = "${lt_cv_aix_libpath+set}"; then 10178 aix_libpath=$lt_cv_aix_libpath 10179else 10180 if test ${lt_cv_aix_libpath_+y} 10181then : 10182 printf %s "(cached) " >&6 10183else $as_nop 10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10185/* end confdefs.h. */ 10186 10187int 10188main (void) 10189{ 10190 10191 ; 10192 return 0; 10193} 10194_ACEOF 10195if ac_fn_c_try_link "$LINENO" 10196then : 10197 10198 lt_aix_libpath_sed=' 10199 /Import File Strings/,/^$/ { 10200 /^0/ { 10201 s/^0 *\([^ ]*\) *$/\1/ 10202 p 10203 } 10204 }' 10205 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10206 # Check for a 64-bit object if we didn't find anything. 10207 if test -z "$lt_cv_aix_libpath_"; then 10208 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10209 fi 10210fi 10211rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10212 conftest$ac_exeext conftest.$ac_ext 10213 if test -z "$lt_cv_aix_libpath_"; then 10214 lt_cv_aix_libpath_=/usr/lib:/lib 10215 fi 10216 10217fi 10218 10219 aix_libpath=$lt_cv_aix_libpath_ 10220fi 10221 10222 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10223 # Warning - without using the other run time loading flags, 10224 # -berok will link without error, but may produce a broken library. 10225 no_undefined_flag=' $wl-bernotok' 10226 allow_undefined_flag=' $wl-berok' 10227 if test yes = "$with_gnu_ld"; then 10228 # We only use this code for GNU lds that support --whole-archive. 10229 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10230 else 10231 # Exported symbols can be pulled into shared objects from archives 10232 whole_archive_flag_spec='$convenience' 10233 fi 10234 archive_cmds_need_lc=yes 10235 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10236 # -brtl affects multiple linker settings, -berok does not and is overridden later 10237 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10238 if test svr4 != "$with_aix_soname"; then 10239 # This is similar to how AIX traditionally builds its shared libraries. 10240 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' 10241 fi 10242 if test aix != "$with_aix_soname"; then 10243 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' 10244 else 10245 # used by -dlpreopen to get the symbols 10246 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10247 fi 10248 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10249 fi 10250 fi 10251 ;; 10252 10253 amigaos*) 10254 case $host_cpu in 10255 powerpc) 10256 # see comment about AmigaOS4 .so support 10257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10258 archive_expsym_cmds='' 10259 ;; 10260 m68k) 10261 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)' 10262 hardcode_libdir_flag_spec='-L$libdir' 10263 hardcode_minus_L=yes 10264 ;; 10265 esac 10266 ;; 10267 10268 bsdi[45]*) 10269 export_dynamic_flag_spec=-rdynamic 10270 ;; 10271 10272 cygwin* | mingw* | pw32* | cegcc*) 10273 # When not using gcc, we currently assume that we are using 10274 # Microsoft Visual C++. 10275 # hardcode_libdir_flag_spec is actually meaningless, as there is 10276 # no search path for DLLs. 10277 case $cc_basename in 10278 cl*) 10279 # Native MSVC 10280 hardcode_libdir_flag_spec=' ' 10281 allow_undefined_flag=unsupported 10282 always_export_symbols=yes 10283 file_list_spec='@' 10284 # Tell ltmain to make .lib files, not .a files. 10285 libext=lib 10286 # Tell ltmain to make .dll files, not .so files. 10287 shrext_cmds=.dll 10288 # FIXME: Setting linknames here is a bad hack. 10289 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10290 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10291 cp "$export_symbols" "$output_objdir/$soname.def"; 10292 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10293 else 10294 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10295 fi~ 10296 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10297 linknames=' 10298 # The linker will not automatically build a static lib if we build a DLL. 10299 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10300 enable_shared_with_static_runtimes=yes 10301 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10302 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10303 # Don't use ranlib 10304 old_postinstall_cmds='chmod 644 $oldlib' 10305 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10306 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10307 case $lt_outputfile in 10308 *.exe|*.EXE) ;; 10309 *) 10310 lt_outputfile=$lt_outputfile.exe 10311 lt_tool_outputfile=$lt_tool_outputfile.exe 10312 ;; 10313 esac~ 10314 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10315 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10316 $RM "$lt_outputfile.manifest"; 10317 fi' 10318 ;; 10319 *) 10320 # Assume MSVC wrapper 10321 hardcode_libdir_flag_spec=' ' 10322 allow_undefined_flag=unsupported 10323 # Tell ltmain to make .lib files, not .a files. 10324 libext=lib 10325 # Tell ltmain to make .dll files, not .so files. 10326 shrext_cmds=.dll 10327 # FIXME: Setting linknames here is a bad hack. 10328 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10329 # The linker will automatically build a .lib file if we build a DLL. 10330 old_archive_from_new_cmds='true' 10331 # FIXME: Should let the user specify the lib program. 10332 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10333 enable_shared_with_static_runtimes=yes 10334 ;; 10335 esac 10336 ;; 10337 10338 darwin* | rhapsody*) 10339 10340 10341 archive_cmds_need_lc=no 10342 hardcode_direct=no 10343 hardcode_automatic=yes 10344 hardcode_shlibpath_var=unsupported 10345 if test yes = "$lt_cv_ld_force_load"; then 10346 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\"`' 10347 10348 else 10349 whole_archive_flag_spec='' 10350 fi 10351 link_all_deplibs=yes 10352 allow_undefined_flag=$_lt_dar_allow_undefined 10353 case $cc_basename in 10354 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10355 *) _lt_dar_can_shared=$GCC ;; 10356 esac 10357 if test yes = "$_lt_dar_can_shared"; then 10358 output_verbose_link_cmd=func_echo_all 10359 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10360 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10361 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" 10362 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" 10363 10364 else 10365 ld_shlibs=no 10366 fi 10367 10368 ;; 10369 10370 dgux*) 10371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10372 hardcode_libdir_flag_spec='-L$libdir' 10373 hardcode_shlibpath_var=no 10374 ;; 10375 10376 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10377 # support. Future versions do this automatically, but an explicit c++rt0.o 10378 # does not break anything, and helps significantly (at the cost of a little 10379 # extra space). 10380 freebsd2.2*) 10381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10382 hardcode_libdir_flag_spec='-R$libdir' 10383 hardcode_direct=yes 10384 hardcode_shlibpath_var=no 10385 ;; 10386 10387 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10388 freebsd2.*) 10389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10390 hardcode_direct=yes 10391 hardcode_minus_L=yes 10392 hardcode_shlibpath_var=no 10393 ;; 10394 10395 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10396 freebsd* | dragonfly*) 10397 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10398 hardcode_libdir_flag_spec='-R$libdir' 10399 hardcode_direct=yes 10400 hardcode_shlibpath_var=no 10401 ;; 10402 10403 hpux9*) 10404 if test yes = "$GCC"; then 10405 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' 10406 else 10407 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' 10408 fi 10409 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10410 hardcode_libdir_separator=: 10411 hardcode_direct=yes 10412 10413 # hardcode_minus_L: Not really in the search PATH, 10414 # but as the default location of the library. 10415 hardcode_minus_L=yes 10416 export_dynamic_flag_spec='$wl-E' 10417 ;; 10418 10419 hpux10*) 10420 if test yes,no = "$GCC,$with_gnu_ld"; then 10421 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10422 else 10423 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10424 fi 10425 if test no = "$with_gnu_ld"; then 10426 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10427 hardcode_libdir_separator=: 10428 hardcode_direct=yes 10429 hardcode_direct_absolute=yes 10430 export_dynamic_flag_spec='$wl-E' 10431 # hardcode_minus_L: Not really in the search PATH, 10432 # but as the default location of the library. 10433 hardcode_minus_L=yes 10434 fi 10435 ;; 10436 10437 hpux11*) 10438 if test yes,no = "$GCC,$with_gnu_ld"; then 10439 case $host_cpu in 10440 hppa*64*) 10441 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10442 ;; 10443 ia64*) 10444 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10445 ;; 10446 *) 10447 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10448 ;; 10449 esac 10450 else 10451 case $host_cpu in 10452 hppa*64*) 10453 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10454 ;; 10455 ia64*) 10456 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10457 ;; 10458 *) 10459 10460 # Older versions of the 11.00 compiler do not understand -b yet 10461 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10463printf %s "checking if $CC understands -b... " >&6; } 10464if test ${lt_cv_prog_compiler__b+y} 10465then : 10466 printf %s "(cached) " >&6 10467else $as_nop 10468 lt_cv_prog_compiler__b=no 10469 save_LDFLAGS=$LDFLAGS 10470 LDFLAGS="$LDFLAGS -b" 10471 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10472 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10473 # The linker can only warn and ignore the option if not recognized 10474 # So say no if there are warnings 10475 if test -s conftest.err; then 10476 # Append any errors to the config.log. 10477 cat conftest.err 1>&5 10478 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10480 if diff conftest.exp conftest.er2 >/dev/null; then 10481 lt_cv_prog_compiler__b=yes 10482 fi 10483 else 10484 lt_cv_prog_compiler__b=yes 10485 fi 10486 fi 10487 $RM -r conftest* 10488 LDFLAGS=$save_LDFLAGS 10489 10490fi 10491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10492printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10493 10494if test yes = "$lt_cv_prog_compiler__b"; then 10495 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10496else 10497 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10498fi 10499 10500 ;; 10501 esac 10502 fi 10503 if test no = "$with_gnu_ld"; then 10504 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10505 hardcode_libdir_separator=: 10506 10507 case $host_cpu in 10508 hppa*64*|ia64*) 10509 hardcode_direct=no 10510 hardcode_shlibpath_var=no 10511 ;; 10512 *) 10513 hardcode_direct=yes 10514 hardcode_direct_absolute=yes 10515 export_dynamic_flag_spec='$wl-E' 10516 10517 # hardcode_minus_L: Not really in the search PATH, 10518 # but as the default location of the library. 10519 hardcode_minus_L=yes 10520 ;; 10521 esac 10522 fi 10523 ;; 10524 10525 irix5* | irix6* | nonstopux*) 10526 if test yes = "$GCC"; then 10527 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' 10528 # Try to use the -exported_symbol ld option, if it does not 10529 # work, assume that -exports_file does not work either and 10530 # implicitly export all symbols. 10531 # This should be the same for all languages, so no per-tag cache variable. 10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10533printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10534if test ${lt_cv_irix_exported_symbol+y} 10535then : 10536 printf %s "(cached) " >&6 10537else $as_nop 10538 save_LDFLAGS=$LDFLAGS 10539 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10541/* end confdefs.h. */ 10542int foo (void) { return 0; } 10543_ACEOF 10544if ac_fn_c_try_link "$LINENO" 10545then : 10546 lt_cv_irix_exported_symbol=yes 10547else $as_nop 10548 lt_cv_irix_exported_symbol=no 10549fi 10550rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10551 conftest$ac_exeext conftest.$ac_ext 10552 LDFLAGS=$save_LDFLAGS 10553fi 10554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10555printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10556 if test yes = "$lt_cv_irix_exported_symbol"; then 10557 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' 10558 fi 10559 else 10560 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' 10561 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' 10562 fi 10563 archive_cmds_need_lc='no' 10564 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10565 hardcode_libdir_separator=: 10566 inherit_rpath=yes 10567 link_all_deplibs=yes 10568 ;; 10569 10570 linux*) 10571 case $cc_basename in 10572 tcc*) 10573 # Fabrice Bellard et al's Tiny C Compiler 10574 ld_shlibs=yes 10575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10576 ;; 10577 esac 10578 ;; 10579 10580 netbsd*) 10581 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10583 else 10584 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10585 fi 10586 hardcode_libdir_flag_spec='-R$libdir' 10587 hardcode_direct=yes 10588 hardcode_shlibpath_var=no 10589 ;; 10590 10591 newsos6) 10592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10593 hardcode_direct=yes 10594 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10595 hardcode_libdir_separator=: 10596 hardcode_shlibpath_var=no 10597 ;; 10598 10599 *nto* | *qnx*) 10600 ;; 10601 10602 openbsd* | bitrig*) 10603 if test -f /usr/libexec/ld.so; then 10604 hardcode_direct=yes 10605 hardcode_shlibpath_var=no 10606 hardcode_direct_absolute=yes 10607 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10609 archive_expsym_cmds='echo "{ global:" > $lib-ver~ sed -e "s|$|;|" < $export_symbols >> $lib-ver~ echo "local: *; };" >> $lib-ver~$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-version-script,$lib-ver' 10610 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10611 export_dynamic_flag_spec='$wl-E' 10612 else 10613 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10614 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10615 fi 10616 else 10617 ld_shlibs=no 10618 fi 10619 ;; 10620 10621 os2*) 10622 hardcode_libdir_flag_spec='-L$libdir' 10623 hardcode_minus_L=yes 10624 allow_undefined_flag=unsupported 10625 shrext_cmds=.dll 10626 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10627 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10628 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10629 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10630 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10631 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10632 emximp -o $lib $output_objdir/$libname.def' 10633 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10634 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10635 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10636 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10637 prefix_cmds="$SED"~ 10638 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10639 prefix_cmds="$prefix_cmds -e 1d"; 10640 fi~ 10641 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10642 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10643 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10644 emximp -o $lib $output_objdir/$libname.def' 10645 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10646 enable_shared_with_static_runtimes=yes 10647 ;; 10648 10649 osf3*) 10650 if test yes = "$GCC"; then 10651 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10652 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' 10653 else 10654 allow_undefined_flag=' -expect_unresolved \*' 10655 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' 10656 fi 10657 archive_cmds_need_lc='no' 10658 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10659 hardcode_libdir_separator=: 10660 ;; 10661 10662 osf4* | osf5*) # as osf3* with the addition of -msym flag 10663 if test yes = "$GCC"; then 10664 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10665 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' 10666 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10667 else 10668 allow_undefined_flag=' -expect_unresolved \*' 10669 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' 10670 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~ 10671 $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' 10672 10673 # Both c and cxx compiler support -rpath directly 10674 hardcode_libdir_flag_spec='-rpath $libdir' 10675 fi 10676 archive_cmds_need_lc='no' 10677 hardcode_libdir_separator=: 10678 ;; 10679 10680 solaris*) 10681 no_undefined_flag=' -z defs' 10682 if test yes = "$GCC"; then 10683 wlarc='$wl' 10684 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10686 $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' 10687 else 10688 case `$CC -V 2>&1` in 10689 *"Compilers 5.0"*) 10690 wlarc='' 10691 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10693 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10694 ;; 10695 *) 10696 wlarc='$wl' 10697 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10699 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10700 ;; 10701 esac 10702 fi 10703 hardcode_libdir_flag_spec='-R$libdir' 10704 hardcode_shlibpath_var=no 10705 case $host_os in 10706 solaris2.[0-5] | solaris2.[0-5].*) ;; 10707 *) 10708 # The compiler driver will combine and reorder linker options, 10709 # but understands '-z linker_flag'. GCC discards it without '$wl', 10710 # but is careful enough not to reorder. 10711 # Supported since Solaris 2.6 (maybe 2.5.1?) 10712 if test yes = "$GCC"; then 10713 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10714 else 10715 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10716 fi 10717 ;; 10718 esac 10719 link_all_deplibs=yes 10720 ;; 10721 10722 sunos4*) 10723 if test sequent = "$host_vendor"; then 10724 # Use $CC to link under sequent, because it throws in some extra .o 10725 # files that make .init and .fini sections work. 10726 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10727 else 10728 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10729 fi 10730 hardcode_libdir_flag_spec='-L$libdir' 10731 hardcode_direct=yes 10732 hardcode_minus_L=yes 10733 hardcode_shlibpath_var=no 10734 ;; 10735 10736 sysv4) 10737 case $host_vendor in 10738 sni) 10739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10740 hardcode_direct=yes # is this really true??? 10741 ;; 10742 siemens) 10743 ## LD is ld it makes a PLAMLIB 10744 ## CC just makes a GrossModule. 10745 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10746 reload_cmds='$CC -r -o $output$reload_objs' 10747 hardcode_direct=no 10748 ;; 10749 motorola) 10750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10751 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10752 ;; 10753 esac 10754 runpath_var='LD_RUN_PATH' 10755 hardcode_shlibpath_var=no 10756 ;; 10757 10758 sysv4.3*) 10759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10760 hardcode_shlibpath_var=no 10761 export_dynamic_flag_spec='-Bexport' 10762 ;; 10763 10764 sysv4*MP*) 10765 if test -d /usr/nec; then 10766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10767 hardcode_shlibpath_var=no 10768 runpath_var=LD_RUN_PATH 10769 hardcode_runpath_var=yes 10770 ld_shlibs=yes 10771 fi 10772 ;; 10773 10774 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10775 no_undefined_flag='$wl-z,text' 10776 archive_cmds_need_lc=no 10777 hardcode_shlibpath_var=no 10778 runpath_var='LD_RUN_PATH' 10779 10780 if test yes = "$GCC"; then 10781 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10782 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10783 else 10784 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10785 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10786 fi 10787 ;; 10788 10789 sysv5* | sco3.2v5* | sco5v6*) 10790 # Note: We CANNOT use -z defs as we might desire, because we do not 10791 # link with -lc, and that would cause any symbols used from libc to 10792 # always be unresolved, which means just about no library would 10793 # ever link correctly. If we're not using GNU ld we use -z text 10794 # though, which does catch some bad symbols but isn't as heavy-handed 10795 # as -z defs. 10796 no_undefined_flag='$wl-z,text' 10797 allow_undefined_flag='$wl-z,nodefs' 10798 archive_cmds_need_lc=no 10799 hardcode_shlibpath_var=no 10800 hardcode_libdir_flag_spec='$wl-R,$libdir' 10801 hardcode_libdir_separator=':' 10802 link_all_deplibs=yes 10803 export_dynamic_flag_spec='$wl-Bexport' 10804 runpath_var='LD_RUN_PATH' 10805 10806 if test yes = "$GCC"; then 10807 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10808 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10809 else 10810 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10811 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10812 fi 10813 ;; 10814 10815 uts4*) 10816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10817 hardcode_libdir_flag_spec='-L$libdir' 10818 hardcode_shlibpath_var=no 10819 ;; 10820 10821 *) 10822 ld_shlibs=no 10823 ;; 10824 esac 10825 10826 if test sni = "$host_vendor"; then 10827 case $host in 10828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10829 export_dynamic_flag_spec='$wl-Blargedynsym' 10830 ;; 10831 esac 10832 fi 10833 fi 10834 10835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10836printf "%s\n" "$ld_shlibs" >&6; } 10837test no = "$ld_shlibs" && can_build_shared=no 10838 10839with_gnu_ld=$with_gnu_ld 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855# 10856# Do we need to explicitly link libc? 10857# 10858case "x$archive_cmds_need_lc" in 10859x|xyes) 10860 # Assume -lc should be added 10861 archive_cmds_need_lc=yes 10862 10863 if test yes,yes = "$GCC,$enable_shared"; then 10864 case $archive_cmds in 10865 *'~'*) 10866 # FIXME: we may have to deal with multi-command sequences. 10867 ;; 10868 '$CC '*) 10869 # Test whether the compiler implicitly links with -lc since on some 10870 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10871 # to ld, don't add -lc before -lgcc. 10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10873printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10874if test ${lt_cv_archive_cmds_need_lc+y} 10875then : 10876 printf %s "(cached) " >&6 10877else $as_nop 10878 $RM conftest* 10879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10880 10881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10882 (eval $ac_compile) 2>&5 10883 ac_status=$? 10884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10885 test $ac_status = 0; } 2>conftest.err; then 10886 soname=conftest 10887 lib=conftest 10888 libobjs=conftest.$ac_objext 10889 deplibs= 10890 wl=$lt_prog_compiler_wl 10891 pic_flag=$lt_prog_compiler_pic 10892 compiler_flags=-v 10893 linker_flags=-v 10894 verstring= 10895 output_objdir=. 10896 libname=conftest 10897 lt_save_allow_undefined_flag=$allow_undefined_flag 10898 allow_undefined_flag= 10899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10900 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10901 ac_status=$? 10902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10903 test $ac_status = 0; } 10904 then 10905 lt_cv_archive_cmds_need_lc=no 10906 else 10907 lt_cv_archive_cmds_need_lc=yes 10908 fi 10909 allow_undefined_flag=$lt_save_allow_undefined_flag 10910 else 10911 cat conftest.err 1>&5 10912 fi 10913 $RM conftest* 10914 10915fi 10916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10917printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10918 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10919 ;; 10920 esac 10921 fi 10922 ;; 10923esac 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11077printf %s "checking dynamic linker characteristics... " >&6; } 11078 11079if test yes = "$GCC"; then 11080 case $host_os in 11081 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11082 *) lt_awk_arg='/^libraries:/' ;; 11083 esac 11084 case $host_os in 11085 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11086 *) lt_sed_strip_eq='s|=/|/|g' ;; 11087 esac 11088 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11089 case $lt_search_path_spec in 11090 *\;*) 11091 # if the path contains ";" then we assume it to be the separator 11092 # otherwise default to the standard path separator (i.e. ":") - it is 11093 # assumed that no part of a normal pathname contains ";" but that should 11094 # okay in the real world where ";" in dirpaths is itself problematic. 11095 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11096 ;; 11097 *) 11098 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11099 ;; 11100 esac 11101 # Ok, now we have the path, separated by spaces, we can step through it 11102 # and add multilib dir if necessary... 11103 lt_tmp_lt_search_path_spec= 11104 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11105 # ...but if some path component already ends with the multilib dir we assume 11106 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11107 case "$lt_multi_os_dir; $lt_search_path_spec " in 11108 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11109 lt_multi_os_dir= 11110 ;; 11111 esac 11112 for lt_sys_path in $lt_search_path_spec; do 11113 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11114 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11115 elif test -n "$lt_multi_os_dir"; then 11116 test -d "$lt_sys_path" && \ 11117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11118 fi 11119 done 11120 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11121BEGIN {RS = " "; FS = "/|\n";} { 11122 lt_foo = ""; 11123 lt_count = 0; 11124 for (lt_i = NF; lt_i > 0; lt_i--) { 11125 if ($lt_i != "" && $lt_i != ".") { 11126 if ($lt_i == "..") { 11127 lt_count++; 11128 } else { 11129 if (lt_count == 0) { 11130 lt_foo = "/" $lt_i lt_foo; 11131 } else { 11132 lt_count--; 11133 } 11134 } 11135 } 11136 } 11137 if (lt_foo != "") { lt_freq[lt_foo]++; } 11138 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11139}'` 11140 # AWK program above erroneously prepends '/' to C:/dos/paths 11141 # for these hosts. 11142 case $host_os in 11143 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11144 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11145 esac 11146 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11147else 11148 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11149fi 11150library_names_spec= 11151libname_spec='lib$name' 11152soname_spec= 11153shrext_cmds=.so 11154postinstall_cmds= 11155postuninstall_cmds= 11156finish_cmds= 11157finish_eval= 11158shlibpath_var= 11159shlibpath_overrides_runpath=unknown 11160version_type=none 11161dynamic_linker="$host_os ld.so" 11162sys_lib_dlsearch_path_spec="/lib /usr/lib" 11163need_lib_prefix=unknown 11164hardcode_into_libs=no 11165 11166# when you set need_version to no, make sure it does not cause -set_version 11167# flags to be left without arguments 11168need_version=unknown 11169 11170 11171 11172case $host_os in 11173aix3*) 11174 version_type=linux # correct to gnu/linux during the next big refactor 11175 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11176 shlibpath_var=LIBPATH 11177 11178 # AIX 3 has no versioning support, so we append a major version to the name. 11179 soname_spec='$libname$release$shared_ext$major' 11180 ;; 11181 11182aix[4-9]*) 11183 version_type=linux # correct to gnu/linux during the next big refactor 11184 need_lib_prefix=no 11185 need_version=no 11186 hardcode_into_libs=yes 11187 if test ia64 = "$host_cpu"; then 11188 # AIX 5 supports IA64 11189 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11190 shlibpath_var=LD_LIBRARY_PATH 11191 else 11192 # With GCC up to 2.95.x, collect2 would create an import file 11193 # for dependence libraries. The import file would start with 11194 # the line '#! .'. This would cause the generated library to 11195 # depend on '.', always an invalid library. This was fixed in 11196 # development snapshots of GCC prior to 3.0. 11197 case $host_os in 11198 aix4 | aix4.[01] | aix4.[01].*) 11199 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11200 echo ' yes ' 11201 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11202 : 11203 else 11204 can_build_shared=no 11205 fi 11206 ;; 11207 esac 11208 # Using Import Files as archive members, it is possible to support 11209 # filename-based versioning of shared library archives on AIX. While 11210 # this would work for both with and without runtime linking, it will 11211 # prevent static linking of such archives. So we do filename-based 11212 # shared library versioning with .so extension only, which is used 11213 # when both runtime linking and shared linking is enabled. 11214 # Unfortunately, runtime linking may impact performance, so we do 11215 # not want this to be the default eventually. Also, we use the 11216 # versioned .so libs for executables only if there is the -brtl 11217 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11218 # To allow for filename-based versioning support, we need to create 11219 # libNAME.so.V as an archive file, containing: 11220 # *) an Import File, referring to the versioned filename of the 11221 # archive as well as the shared archive member, telling the 11222 # bitwidth (32 or 64) of that shared object, and providing the 11223 # list of exported symbols of that shared object, eventually 11224 # decorated with the 'weak' keyword 11225 # *) the shared object with the F_LOADONLY flag set, to really avoid 11226 # it being seen by the linker. 11227 # At run time we better use the real file rather than another symlink, 11228 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11229 11230 case $with_aix_soname,$aix_use_runtimelinking in 11231 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11232 # soname into executable. Probably we can add versioning support to 11233 # collect2, so additional links can be useful in future. 11234 aix,yes) # traditional libtool 11235 dynamic_linker='AIX unversionable lib.so' 11236 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11237 # instead of lib<name>.a to let people know that these are not 11238 # typical AIX shared libraries. 11239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11240 ;; 11241 aix,no) # traditional AIX only 11242 dynamic_linker='AIX lib.a(lib.so.V)' 11243 # We preserve .a as extension for shared libraries through AIX4.2 11244 # and later when we are not doing run time linking. 11245 library_names_spec='$libname$release.a $libname.a' 11246 soname_spec='$libname$release$shared_ext$major' 11247 ;; 11248 svr4,*) # full svr4 only 11249 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11250 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11251 # We do not specify a path in Import Files, so LIBPATH fires. 11252 shlibpath_overrides_runpath=yes 11253 ;; 11254 *,yes) # both, prefer svr4 11255 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11256 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11257 # unpreferred sharedlib libNAME.a needs extra handling 11258 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"' 11259 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"' 11260 # We do not specify a path in Import Files, so LIBPATH fires. 11261 shlibpath_overrides_runpath=yes 11262 ;; 11263 *,no) # both, prefer aix 11264 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11265 library_names_spec='$libname$release.a $libname.a' 11266 soname_spec='$libname$release$shared_ext$major' 11267 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11268 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)' 11269 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"' 11270 ;; 11271 esac 11272 shlibpath_var=LIBPATH 11273 fi 11274 ;; 11275 11276amigaos*) 11277 case $host_cpu in 11278 powerpc) 11279 # Since July 2007 AmigaOS4 officially supports .so libraries. 11280 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11282 ;; 11283 m68k) 11284 library_names_spec='$libname.ixlibrary $libname.a' 11285 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11286 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' 11287 ;; 11288 esac 11289 ;; 11290 11291beos*) 11292 library_names_spec='$libname$shared_ext' 11293 dynamic_linker="$host_os ld.so" 11294 shlibpath_var=LIBRARY_PATH 11295 ;; 11296 11297bsdi[45]*) 11298 version_type=linux # correct to gnu/linux during the next big refactor 11299 need_version=no 11300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11301 soname_spec='$libname$release$shared_ext$major' 11302 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11303 shlibpath_var=LD_LIBRARY_PATH 11304 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11305 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11306 # the default ld.so.conf also contains /usr/contrib/lib and 11307 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11308 # libtool to hard-code these into programs 11309 ;; 11310 11311cygwin* | mingw* | pw32* | cegcc*) 11312 version_type=windows 11313 shrext_cmds=.dll 11314 need_version=no 11315 need_lib_prefix=no 11316 11317 case $GCC,$cc_basename in 11318 yes,*) 11319 # gcc 11320 library_names_spec='$libname.dll.a' 11321 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11322 postinstall_cmds='base_file=`basename \$file`~ 11323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11324 dldir=$destdir/`dirname \$dlpath`~ 11325 test -d \$dldir || mkdir -p \$dldir~ 11326 $install_prog $dir/$dlname \$dldir/$dlname~ 11327 chmod a+x \$dldir/$dlname~ 11328 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11329 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11330 fi' 11331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11332 dlpath=$dir/\$dldll~ 11333 $RM \$dlpath' 11334 shlibpath_overrides_runpath=yes 11335 11336 case $host_os in 11337 cygwin*) 11338 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11339 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11340 11341 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11342 ;; 11343 mingw* | cegcc*) 11344 # MinGW DLLs use traditional 'lib' prefix 11345 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11346 ;; 11347 pw32*) 11348 # pw32 DLLs use 'pw' prefix rather than 'lib' 11349 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11350 ;; 11351 esac 11352 dynamic_linker='Win32 ld.exe' 11353 ;; 11354 11355 *,cl*) 11356 # Native MSVC 11357 libname_spec='$name' 11358 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11359 library_names_spec='$libname.dll.lib' 11360 11361 case $build_os in 11362 mingw*) 11363 sys_lib_search_path_spec= 11364 lt_save_ifs=$IFS 11365 IFS=';' 11366 for lt_path in $LIB 11367 do 11368 IFS=$lt_save_ifs 11369 # Let DOS variable expansion print the short 8.3 style file name. 11370 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11371 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11372 done 11373 IFS=$lt_save_ifs 11374 # Convert to MSYS style. 11375 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11376 ;; 11377 cygwin*) 11378 # Convert to unix form, then to dos form, then back to unix form 11379 # but this time dos style (no spaces!) so that the unix form looks 11380 # like /cygdrive/c/PROGRA~1:/cygdr... 11381 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11382 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11383 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11384 ;; 11385 *) 11386 sys_lib_search_path_spec=$LIB 11387 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11388 # It is most probably a Windows format PATH. 11389 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11390 else 11391 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11392 fi 11393 # FIXME: find the short name or the path components, as spaces are 11394 # common. (e.g. "Program Files" -> "PROGRA~1") 11395 ;; 11396 esac 11397 11398 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11399 postinstall_cmds='base_file=`basename \$file`~ 11400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11401 dldir=$destdir/`dirname \$dlpath`~ 11402 test -d \$dldir || mkdir -p \$dldir~ 11403 $install_prog $dir/$dlname \$dldir/$dlname' 11404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11405 dlpath=$dir/\$dldll~ 11406 $RM \$dlpath' 11407 shlibpath_overrides_runpath=yes 11408 dynamic_linker='Win32 link.exe' 11409 ;; 11410 11411 *) 11412 # Assume MSVC wrapper 11413 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11414 dynamic_linker='Win32 ld.exe' 11415 ;; 11416 esac 11417 # FIXME: first we should search . and the directory the executable is in 11418 shlibpath_var=PATH 11419 ;; 11420 11421darwin* | rhapsody*) 11422 dynamic_linker="$host_os dyld" 11423 version_type=darwin 11424 need_lib_prefix=no 11425 need_version=no 11426 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11427 soname_spec='$libname$release$major$shared_ext' 11428 shlibpath_overrides_runpath=yes 11429 shlibpath_var=DYLD_LIBRARY_PATH 11430 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11431 11432 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11434 ;; 11435 11436dgux*) 11437 version_type=linux # correct to gnu/linux during the next big refactor 11438 need_lib_prefix=no 11439 need_version=no 11440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11441 soname_spec='$libname$release$shared_ext$major' 11442 shlibpath_var=LD_LIBRARY_PATH 11443 ;; 11444 11445freebsd* | dragonfly*) 11446 # DragonFly does not have aout. When/if they implement a new 11447 # versioning mechanism, adjust this. 11448 if test -x /usr/bin/objformat; then 11449 objformat=`/usr/bin/objformat` 11450 else 11451 case $host_os in 11452 freebsd[23].*) objformat=aout ;; 11453 *) objformat=elf ;; 11454 esac 11455 fi 11456 version_type=freebsd-$objformat 11457 case $version_type in 11458 freebsd-elf*) 11459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' 11460 soname_spec='$libname$release$shared_ext$major' 11461 need_version=no 11462 need_lib_prefix=no 11463 ;; 11464 freebsd-*) 11465 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11466 need_version=yes 11467 ;; 11468 esac 11469 shlibpath_var=LD_LIBRARY_PATH 11470 case $host_os in 11471 freebsd2.*) 11472 shlibpath_overrides_runpath=yes 11473 ;; 11474 freebsd3.[01]* | freebsdelf3.[01]*) 11475 shlibpath_overrides_runpath=yes 11476 hardcode_into_libs=yes 11477 ;; 11478 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11479 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11480 shlibpath_overrides_runpath=no 11481 hardcode_into_libs=yes 11482 ;; 11483 *) # from 4.6 on, and DragonFly 11484 shlibpath_overrides_runpath=yes 11485 hardcode_into_libs=yes 11486 ;; 11487 esac 11488 ;; 11489 11490haiku*) 11491 version_type=linux # correct to gnu/linux during the next big refactor 11492 need_lib_prefix=no 11493 need_version=no 11494 dynamic_linker="$host_os runtime_loader" 11495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11496 soname_spec='$libname$release$shared_ext$major' 11497 shlibpath_var=LIBRARY_PATH 11498 shlibpath_overrides_runpath=no 11499 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11500 hardcode_into_libs=yes 11501 ;; 11502 11503hpux9* | hpux10* | hpux11*) 11504 # Give a soname corresponding to the major version so that dld.sl refuses to 11505 # link against other versions. 11506 version_type=sunos 11507 need_lib_prefix=no 11508 need_version=no 11509 case $host_cpu in 11510 ia64*) 11511 shrext_cmds='.so' 11512 hardcode_into_libs=yes 11513 dynamic_linker="$host_os dld.so" 11514 shlibpath_var=LD_LIBRARY_PATH 11515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11517 soname_spec='$libname$release$shared_ext$major' 11518 if test 32 = "$HPUX_IA64_MODE"; then 11519 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11520 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11521 else 11522 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11523 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11524 fi 11525 ;; 11526 hppa*64*) 11527 shrext_cmds='.sl' 11528 hardcode_into_libs=yes 11529 dynamic_linker="$host_os dld.sl" 11530 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11533 soname_spec='$libname$release$shared_ext$major' 11534 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11536 ;; 11537 *) 11538 shrext_cmds='.sl' 11539 dynamic_linker="$host_os dld.sl" 11540 shlibpath_var=SHLIB_PATH 11541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11543 soname_spec='$libname$release$shared_ext$major' 11544 ;; 11545 esac 11546 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11547 postinstall_cmds='chmod 555 $lib' 11548 # or fails outright, so override atomically: 11549 install_override_mode=555 11550 ;; 11551 11552interix[3-9]*) 11553 version_type=linux # correct to gnu/linux during the next big refactor 11554 need_lib_prefix=no 11555 need_version=no 11556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11557 soname_spec='$libname$release$shared_ext$major' 11558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11559 shlibpath_var=LD_LIBRARY_PATH 11560 shlibpath_overrides_runpath=no 11561 hardcode_into_libs=yes 11562 ;; 11563 11564irix5* | irix6* | nonstopux*) 11565 case $host_os in 11566 nonstopux*) version_type=nonstopux ;; 11567 *) 11568 if test yes = "$lt_cv_prog_gnu_ld"; then 11569 version_type=linux # correct to gnu/linux during the next big refactor 11570 else 11571 version_type=irix 11572 fi ;; 11573 esac 11574 need_lib_prefix=no 11575 need_version=no 11576 soname_spec='$libname$release$shared_ext$major' 11577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11578 case $host_os in 11579 irix5* | nonstopux*) 11580 libsuff= shlibsuff= 11581 ;; 11582 *) 11583 case $LD in # libtool.m4 will add one of these switches to LD 11584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11585 libsuff= shlibsuff= libmagic=32-bit;; 11586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11587 libsuff=32 shlibsuff=N32 libmagic=N32;; 11588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11589 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11590 *) libsuff= shlibsuff= libmagic=never-match;; 11591 esac 11592 ;; 11593 esac 11594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11595 shlibpath_overrides_runpath=no 11596 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11597 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11598 hardcode_into_libs=yes 11599 ;; 11600 11601# No shared lib support for Linux oldld, aout, or coff. 11602linux*oldld* | linux*aout* | linux*coff*) 11603 dynamic_linker=no 11604 ;; 11605 11606linux*android*) 11607 version_type=none # Android doesn't support versioned libraries. 11608 need_lib_prefix=no 11609 need_version=no 11610 library_names_spec='$libname$release$shared_ext' 11611 soname_spec='$libname$release$shared_ext' 11612 finish_cmds= 11613 shlibpath_var=LD_LIBRARY_PATH 11614 shlibpath_overrides_runpath=yes 11615 11616 # This implies no fast_install, which is unacceptable. 11617 # Some rework will be needed to allow for fast_install 11618 # before this can be enabled. 11619 hardcode_into_libs=yes 11620 11621 dynamic_linker='Android linker' 11622 # Don't embed -rpath directories since the linker doesn't support them. 11623 hardcode_libdir_flag_spec='-L$libdir' 11624 ;; 11625 11626# This must be glibc/ELF. 11627linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11628 version_type=linux # correct to gnu/linux during the next big refactor 11629 need_lib_prefix=no 11630 need_version=no 11631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11632 soname_spec='$libname$release$shared_ext$major' 11633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11634 shlibpath_var=LD_LIBRARY_PATH 11635 shlibpath_overrides_runpath=no 11636 11637 # Some binutils ld are patched to set DT_RUNPATH 11638 if test ${lt_cv_shlibpath_overrides_runpath+y} 11639then : 11640 printf %s "(cached) " >&6 11641else $as_nop 11642 lt_cv_shlibpath_overrides_runpath=no 11643 save_LDFLAGS=$LDFLAGS 11644 save_libdir=$libdir 11645 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11646 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11648/* end confdefs.h. */ 11649 11650int 11651main (void) 11652{ 11653 11654 ; 11655 return 0; 11656} 11657_ACEOF 11658if ac_fn_c_try_link "$LINENO" 11659then : 11660 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11661then : 11662 lt_cv_shlibpath_overrides_runpath=yes 11663fi 11664fi 11665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11666 conftest$ac_exeext conftest.$ac_ext 11667 LDFLAGS=$save_LDFLAGS 11668 libdir=$save_libdir 11669 11670fi 11671 11672 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11673 11674 # This implies no fast_install, which is unacceptable. 11675 # Some rework will be needed to allow for fast_install 11676 # before this can be enabled. 11677 hardcode_into_libs=yes 11678 11679 # Ideally, we could use ldconfig to report *all* directores which are 11680 # searched for libraries, however this is still not possible. Aside from not 11681 # being certain /sbin/ldconfig is available, command 11682 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11683 # even though it is searched at run-time. Try to do the best guess by 11684 # appending ld.so.conf contents (and includes) to the search path. 11685 if test -f /etc/ld.so.conf; then 11686 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' ' '` 11687 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11688 fi 11689 11690 # We used to test for /lib/ld.so.1 and disable shared libraries on 11691 # powerpc, because MkLinux only supported shared libraries with the 11692 # GNU dynamic linker. Since this was broken with cross compilers, 11693 # most powerpc-linux boxes support dynamic linking these days and 11694 # people can always --disable-shared, the test was removed, and we 11695 # assume the GNU/Linux dynamic linker is in use. 11696 dynamic_linker='GNU/Linux ld.so' 11697 ;; 11698 11699netbsd*) 11700 version_type=sunos 11701 need_lib_prefix=no 11702 need_version=no 11703 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11704 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11706 dynamic_linker='NetBSD (a.out) ld.so' 11707 else 11708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11709 soname_spec='$libname$release$shared_ext$major' 11710 dynamic_linker='NetBSD ld.elf_so' 11711 fi 11712 shlibpath_var=LD_LIBRARY_PATH 11713 shlibpath_overrides_runpath=yes 11714 hardcode_into_libs=yes 11715 ;; 11716 11717newsos6) 11718 version_type=linux # correct to gnu/linux during the next big refactor 11719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11720 shlibpath_var=LD_LIBRARY_PATH 11721 shlibpath_overrides_runpath=yes 11722 ;; 11723 11724*nto* | *qnx*) 11725 version_type=qnx 11726 need_lib_prefix=no 11727 need_version=no 11728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11729 soname_spec='$libname$release$shared_ext$major' 11730 shlibpath_var=LD_LIBRARY_PATH 11731 shlibpath_overrides_runpath=no 11732 hardcode_into_libs=yes 11733 dynamic_linker='ldqnx.so' 11734 ;; 11735 11736openbsd* | bitrig*) 11737 version_type=sunos 11738 sys_lib_dlsearch_path_spec=/usr/lib 11739 need_lib_prefix=no 11740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11741 need_version=no 11742 else 11743 need_version=yes 11744 fi 11745 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11747 shlibpath_var=LD_LIBRARY_PATH 11748 shlibpath_overrides_runpath=yes 11749 ;; 11750 11751os2*) 11752 libname_spec='$name' 11753 version_type=windows 11754 shrext_cmds=.dll 11755 need_version=no 11756 need_lib_prefix=no 11757 # OS/2 can only load a DLL with a base name of 8 characters or less. 11758 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11759 v=$($ECHO $release$versuffix | tr -d .-); 11760 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11761 $ECHO $n$v`$shared_ext' 11762 library_names_spec='${libname}_dll.$libext' 11763 dynamic_linker='OS/2 ld.exe' 11764 shlibpath_var=BEGINLIBPATH 11765 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11767 postinstall_cmds='base_file=`basename \$file`~ 11768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11769 dldir=$destdir/`dirname \$dlpath`~ 11770 test -d \$dldir || mkdir -p \$dldir~ 11771 $install_prog $dir/$dlname \$dldir/$dlname~ 11772 chmod a+x \$dldir/$dlname~ 11773 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11774 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11775 fi' 11776 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11777 dlpath=$dir/\$dldll~ 11778 $RM \$dlpath' 11779 ;; 11780 11781osf3* | osf4* | osf5*) 11782 version_type=osf 11783 need_lib_prefix=no 11784 need_version=no 11785 soname_spec='$libname$release$shared_ext$major' 11786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11787 shlibpath_var=LD_LIBRARY_PATH 11788 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11790 ;; 11791 11792rdos*) 11793 dynamic_linker=no 11794 ;; 11795 11796solaris*) 11797 version_type=linux # correct to gnu/linux during the next big refactor 11798 need_lib_prefix=no 11799 need_version=no 11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11801 soname_spec='$libname$release$shared_ext$major' 11802 shlibpath_var=LD_LIBRARY_PATH 11803 shlibpath_overrides_runpath=yes 11804 hardcode_into_libs=yes 11805 # ldd complains unless libraries are executable 11806 postinstall_cmds='chmod +x $lib' 11807 ;; 11808 11809sunos4*) 11810 version_type=sunos 11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11812 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11813 shlibpath_var=LD_LIBRARY_PATH 11814 shlibpath_overrides_runpath=yes 11815 if test yes = "$with_gnu_ld"; then 11816 need_lib_prefix=no 11817 fi 11818 need_version=yes 11819 ;; 11820 11821sysv4 | sysv4.3*) 11822 version_type=linux # correct to gnu/linux during the next big refactor 11823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11824 soname_spec='$libname$release$shared_ext$major' 11825 shlibpath_var=LD_LIBRARY_PATH 11826 case $host_vendor in 11827 sni) 11828 shlibpath_overrides_runpath=no 11829 need_lib_prefix=no 11830 runpath_var=LD_RUN_PATH 11831 ;; 11832 siemens) 11833 need_lib_prefix=no 11834 ;; 11835 motorola) 11836 need_lib_prefix=no 11837 need_version=no 11838 shlibpath_overrides_runpath=no 11839 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11840 ;; 11841 esac 11842 ;; 11843 11844sysv4*MP*) 11845 if test -d /usr/nec; then 11846 version_type=linux # correct to gnu/linux during the next big refactor 11847 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11848 soname_spec='$libname$shared_ext.$major' 11849 shlibpath_var=LD_LIBRARY_PATH 11850 fi 11851 ;; 11852 11853sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11854 version_type=sco 11855 need_lib_prefix=no 11856 need_version=no 11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11858 soname_spec='$libname$release$shared_ext$major' 11859 shlibpath_var=LD_LIBRARY_PATH 11860 shlibpath_overrides_runpath=yes 11861 hardcode_into_libs=yes 11862 if test yes = "$with_gnu_ld"; then 11863 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11864 else 11865 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11866 case $host_os in 11867 sco3.2v5*) 11868 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11869 ;; 11870 esac 11871 fi 11872 sys_lib_dlsearch_path_spec='/usr/lib' 11873 ;; 11874 11875tpf*) 11876 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11877 version_type=linux # correct to gnu/linux during the next big refactor 11878 need_lib_prefix=no 11879 need_version=no 11880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11881 shlibpath_var=LD_LIBRARY_PATH 11882 shlibpath_overrides_runpath=no 11883 hardcode_into_libs=yes 11884 ;; 11885 11886uts4*) 11887 version_type=linux # correct to gnu/linux during the next big refactor 11888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11889 soname_spec='$libname$release$shared_ext$major' 11890 shlibpath_var=LD_LIBRARY_PATH 11891 ;; 11892 11893*) 11894 dynamic_linker=no 11895 ;; 11896esac 11897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11898printf "%s\n" "$dynamic_linker" >&6; } 11899test no = "$dynamic_linker" && can_build_shared=no 11900 11901variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11902if test yes = "$GCC"; then 11903 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11904fi 11905 11906if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11907 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11908fi 11909 11910if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11911 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11912fi 11913 11914# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11915configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11916 11917# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11918func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11919 11920# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11921configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12020printf %s "checking how to hardcode library paths into programs... " >&6; } 12021hardcode_action= 12022if test -n "$hardcode_libdir_flag_spec" || 12023 test -n "$runpath_var" || 12024 test yes = "$hardcode_automatic"; then 12025 12026 # We can hardcode non-existent directories. 12027 if test no != "$hardcode_direct" && 12028 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12029 # have to relink, otherwise we might link with an installed library 12030 # when we should be linking with a yet-to-be-installed one 12031 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12032 test no != "$hardcode_minus_L"; then 12033 # Linking always hardcodes the temporary library directory. 12034 hardcode_action=relink 12035 else 12036 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12037 hardcode_action=immediate 12038 fi 12039else 12040 # We cannot hardcode anything, or else we can only hardcode existing 12041 # directories. 12042 hardcode_action=unsupported 12043fi 12044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12045printf "%s\n" "$hardcode_action" >&6; } 12046 12047if test relink = "$hardcode_action" || 12048 test yes = "$inherit_rpath"; then 12049 # Fast installation is not supported 12050 enable_fast_install=no 12051elif test yes = "$shlibpath_overrides_runpath" || 12052 test no = "$enable_shared"; then 12053 # Fast installation is not necessary 12054 enable_fast_install=needless 12055fi 12056 12057 12058 12059 12060 12061 12062 if test yes != "$enable_dlopen"; then 12063 enable_dlopen=unknown 12064 enable_dlopen_self=unknown 12065 enable_dlopen_self_static=unknown 12066else 12067 lt_cv_dlopen=no 12068 lt_cv_dlopen_libs= 12069 12070 case $host_os in 12071 beos*) 12072 lt_cv_dlopen=load_add_on 12073 lt_cv_dlopen_libs= 12074 lt_cv_dlopen_self=yes 12075 ;; 12076 12077 mingw* | pw32* | cegcc*) 12078 lt_cv_dlopen=LoadLibrary 12079 lt_cv_dlopen_libs= 12080 ;; 12081 12082 cygwin*) 12083 lt_cv_dlopen=dlopen 12084 lt_cv_dlopen_libs= 12085 ;; 12086 12087 darwin*) 12088 # if libdl is installed we need to link against it 12089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12090printf %s "checking for dlopen in -ldl... " >&6; } 12091if test ${ac_cv_lib_dl_dlopen+y} 12092then : 12093 printf %s "(cached) " >&6 12094else $as_nop 12095 ac_check_lib_save_LIBS=$LIBS 12096LIBS="-ldl $LIBS" 12097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12098/* end confdefs.h. */ 12099 12100/* Override any GCC internal prototype to avoid an error. 12101 Use char because int might match the return type of a GCC 12102 builtin and then its argument prototype would still apply. */ 12103char dlopen (); 12104int 12105main (void) 12106{ 12107return dlopen (); 12108 ; 12109 return 0; 12110} 12111_ACEOF 12112if ac_fn_c_try_link "$LINENO" 12113then : 12114 ac_cv_lib_dl_dlopen=yes 12115else $as_nop 12116 ac_cv_lib_dl_dlopen=no 12117fi 12118rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12119 conftest$ac_exeext conftest.$ac_ext 12120LIBS=$ac_check_lib_save_LIBS 12121fi 12122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12123printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12124if test "x$ac_cv_lib_dl_dlopen" = xyes 12125then : 12126 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12127else $as_nop 12128 12129 lt_cv_dlopen=dyld 12130 lt_cv_dlopen_libs= 12131 lt_cv_dlopen_self=yes 12132 12133fi 12134 12135 ;; 12136 12137 tpf*) 12138 # Don't try to run any link tests for TPF. We know it's impossible 12139 # because TPF is a cross-compiler, and we know how we open DSOs. 12140 lt_cv_dlopen=dlopen 12141 lt_cv_dlopen_libs= 12142 lt_cv_dlopen_self=no 12143 ;; 12144 12145 *) 12146 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12147if test "x$ac_cv_func_shl_load" = xyes 12148then : 12149 lt_cv_dlopen=shl_load 12150else $as_nop 12151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12152printf %s "checking for shl_load in -ldld... " >&6; } 12153if test ${ac_cv_lib_dld_shl_load+y} 12154then : 12155 printf %s "(cached) " >&6 12156else $as_nop 12157 ac_check_lib_save_LIBS=$LIBS 12158LIBS="-ldld $LIBS" 12159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12160/* end confdefs.h. */ 12161 12162/* Override any GCC internal prototype to avoid an error. 12163 Use char because int might match the return type of a GCC 12164 builtin and then its argument prototype would still apply. */ 12165char shl_load (); 12166int 12167main (void) 12168{ 12169return shl_load (); 12170 ; 12171 return 0; 12172} 12173_ACEOF 12174if ac_fn_c_try_link "$LINENO" 12175then : 12176 ac_cv_lib_dld_shl_load=yes 12177else $as_nop 12178 ac_cv_lib_dld_shl_load=no 12179fi 12180rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12181 conftest$ac_exeext conftest.$ac_ext 12182LIBS=$ac_check_lib_save_LIBS 12183fi 12184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12185printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12186if test "x$ac_cv_lib_dld_shl_load" = xyes 12187then : 12188 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12189else $as_nop 12190 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12191if test "x$ac_cv_func_dlopen" = xyes 12192then : 12193 lt_cv_dlopen=dlopen 12194else $as_nop 12195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12196printf %s "checking for dlopen in -ldl... " >&6; } 12197if test ${ac_cv_lib_dl_dlopen+y} 12198then : 12199 printf %s "(cached) " >&6 12200else $as_nop 12201 ac_check_lib_save_LIBS=$LIBS 12202LIBS="-ldl $LIBS" 12203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12204/* end confdefs.h. */ 12205 12206/* Override any GCC internal prototype to avoid an error. 12207 Use char because int might match the return type of a GCC 12208 builtin and then its argument prototype would still apply. */ 12209char dlopen (); 12210int 12211main (void) 12212{ 12213return dlopen (); 12214 ; 12215 return 0; 12216} 12217_ACEOF 12218if ac_fn_c_try_link "$LINENO" 12219then : 12220 ac_cv_lib_dl_dlopen=yes 12221else $as_nop 12222 ac_cv_lib_dl_dlopen=no 12223fi 12224rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12225 conftest$ac_exeext conftest.$ac_ext 12226LIBS=$ac_check_lib_save_LIBS 12227fi 12228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12229printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12230if test "x$ac_cv_lib_dl_dlopen" = xyes 12231then : 12232 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12233else $as_nop 12234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12235printf %s "checking for dlopen in -lsvld... " >&6; } 12236if test ${ac_cv_lib_svld_dlopen+y} 12237then : 12238 printf %s "(cached) " >&6 12239else $as_nop 12240 ac_check_lib_save_LIBS=$LIBS 12241LIBS="-lsvld $LIBS" 12242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12243/* end confdefs.h. */ 12244 12245/* Override any GCC internal prototype to avoid an error. 12246 Use char because int might match the return type of a GCC 12247 builtin and then its argument prototype would still apply. */ 12248char dlopen (); 12249int 12250main (void) 12251{ 12252return dlopen (); 12253 ; 12254 return 0; 12255} 12256_ACEOF 12257if ac_fn_c_try_link "$LINENO" 12258then : 12259 ac_cv_lib_svld_dlopen=yes 12260else $as_nop 12261 ac_cv_lib_svld_dlopen=no 12262fi 12263rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12264 conftest$ac_exeext conftest.$ac_ext 12265LIBS=$ac_check_lib_save_LIBS 12266fi 12267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12268printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12269if test "x$ac_cv_lib_svld_dlopen" = xyes 12270then : 12271 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12272else $as_nop 12273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12274printf %s "checking for dld_link in -ldld... " >&6; } 12275if test ${ac_cv_lib_dld_dld_link+y} 12276then : 12277 printf %s "(cached) " >&6 12278else $as_nop 12279 ac_check_lib_save_LIBS=$LIBS 12280LIBS="-ldld $LIBS" 12281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12282/* end confdefs.h. */ 12283 12284/* Override any GCC internal prototype to avoid an error. 12285 Use char because int might match the return type of a GCC 12286 builtin and then its argument prototype would still apply. */ 12287char dld_link (); 12288int 12289main (void) 12290{ 12291return dld_link (); 12292 ; 12293 return 0; 12294} 12295_ACEOF 12296if ac_fn_c_try_link "$LINENO" 12297then : 12298 ac_cv_lib_dld_dld_link=yes 12299else $as_nop 12300 ac_cv_lib_dld_dld_link=no 12301fi 12302rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12303 conftest$ac_exeext conftest.$ac_ext 12304LIBS=$ac_check_lib_save_LIBS 12305fi 12306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12307printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12308if test "x$ac_cv_lib_dld_dld_link" = xyes 12309then : 12310 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12311fi 12312 12313 12314fi 12315 12316 12317fi 12318 12319 12320fi 12321 12322 12323fi 12324 12325 12326fi 12327 12328 ;; 12329 esac 12330 12331 if test no = "$lt_cv_dlopen"; then 12332 enable_dlopen=no 12333 else 12334 enable_dlopen=yes 12335 fi 12336 12337 case $lt_cv_dlopen in 12338 dlopen) 12339 save_CPPFLAGS=$CPPFLAGS 12340 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12341 12342 save_LDFLAGS=$LDFLAGS 12343 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12344 12345 save_LIBS=$LIBS 12346 LIBS="$lt_cv_dlopen_libs $LIBS" 12347 12348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12349printf %s "checking whether a program can dlopen itself... " >&6; } 12350if test ${lt_cv_dlopen_self+y} 12351then : 12352 printf %s "(cached) " >&6 12353else $as_nop 12354 if test yes = "$cross_compiling"; then : 12355 lt_cv_dlopen_self=cross 12356else 12357 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12358 lt_status=$lt_dlunknown 12359 cat > conftest.$ac_ext <<_LT_EOF 12360#line $LINENO "configure" 12361#include "confdefs.h" 12362 12363#if HAVE_DLFCN_H 12364#include <dlfcn.h> 12365#endif 12366 12367#include <stdio.h> 12368 12369#ifdef RTLD_GLOBAL 12370# define LT_DLGLOBAL RTLD_GLOBAL 12371#else 12372# ifdef DL_GLOBAL 12373# define LT_DLGLOBAL DL_GLOBAL 12374# else 12375# define LT_DLGLOBAL 0 12376# endif 12377#endif 12378 12379/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12380 find out it does not work in some platform. */ 12381#ifndef LT_DLLAZY_OR_NOW 12382# ifdef RTLD_LAZY 12383# define LT_DLLAZY_OR_NOW RTLD_LAZY 12384# else 12385# ifdef DL_LAZY 12386# define LT_DLLAZY_OR_NOW DL_LAZY 12387# else 12388# ifdef RTLD_NOW 12389# define LT_DLLAZY_OR_NOW RTLD_NOW 12390# else 12391# ifdef DL_NOW 12392# define LT_DLLAZY_OR_NOW DL_NOW 12393# else 12394# define LT_DLLAZY_OR_NOW 0 12395# endif 12396# endif 12397# endif 12398# endif 12399#endif 12400 12401/* When -fvisibility=hidden is used, assume the code has been annotated 12402 correspondingly for the symbols needed. */ 12403#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12404int fnord () __attribute__((visibility("default"))); 12405#endif 12406 12407int fnord () { return 42; } 12408int main () 12409{ 12410 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12411 int status = $lt_dlunknown; 12412 12413 if (self) 12414 { 12415 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12416 else 12417 { 12418 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12419 else puts (dlerror ()); 12420 } 12421 /* dlclose (self); */ 12422 } 12423 else 12424 puts (dlerror ()); 12425 12426 return status; 12427} 12428_LT_EOF 12429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12430 (eval $ac_link) 2>&5 12431 ac_status=$? 12432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12433 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12434 (./conftest; exit; ) >&5 2>/dev/null 12435 lt_status=$? 12436 case x$lt_status in 12437 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12438 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12439 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12440 esac 12441 else : 12442 # compilation failed 12443 lt_cv_dlopen_self=no 12444 fi 12445fi 12446rm -fr conftest* 12447 12448 12449fi 12450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12451printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12452 12453 if test yes = "$lt_cv_dlopen_self"; then 12454 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12456printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12457if test ${lt_cv_dlopen_self_static+y} 12458then : 12459 printf %s "(cached) " >&6 12460else $as_nop 12461 if test yes = "$cross_compiling"; then : 12462 lt_cv_dlopen_self_static=cross 12463else 12464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12465 lt_status=$lt_dlunknown 12466 cat > conftest.$ac_ext <<_LT_EOF 12467#line $LINENO "configure" 12468#include "confdefs.h" 12469 12470#if HAVE_DLFCN_H 12471#include <dlfcn.h> 12472#endif 12473 12474#include <stdio.h> 12475 12476#ifdef RTLD_GLOBAL 12477# define LT_DLGLOBAL RTLD_GLOBAL 12478#else 12479# ifdef DL_GLOBAL 12480# define LT_DLGLOBAL DL_GLOBAL 12481# else 12482# define LT_DLGLOBAL 0 12483# endif 12484#endif 12485 12486/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12487 find out it does not work in some platform. */ 12488#ifndef LT_DLLAZY_OR_NOW 12489# ifdef RTLD_LAZY 12490# define LT_DLLAZY_OR_NOW RTLD_LAZY 12491# else 12492# ifdef DL_LAZY 12493# define LT_DLLAZY_OR_NOW DL_LAZY 12494# else 12495# ifdef RTLD_NOW 12496# define LT_DLLAZY_OR_NOW RTLD_NOW 12497# else 12498# ifdef DL_NOW 12499# define LT_DLLAZY_OR_NOW DL_NOW 12500# else 12501# define LT_DLLAZY_OR_NOW 0 12502# endif 12503# endif 12504# endif 12505# endif 12506#endif 12507 12508/* When -fvisibility=hidden is used, assume the code has been annotated 12509 correspondingly for the symbols needed. */ 12510#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12511int fnord () __attribute__((visibility("default"))); 12512#endif 12513 12514int fnord () { return 42; } 12515int main () 12516{ 12517 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12518 int status = $lt_dlunknown; 12519 12520 if (self) 12521 { 12522 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12523 else 12524 { 12525 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12526 else puts (dlerror ()); 12527 } 12528 /* dlclose (self); */ 12529 } 12530 else 12531 puts (dlerror ()); 12532 12533 return status; 12534} 12535_LT_EOF 12536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12537 (eval $ac_link) 2>&5 12538 ac_status=$? 12539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12540 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12541 (./conftest; exit; ) >&5 2>/dev/null 12542 lt_status=$? 12543 case x$lt_status in 12544 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12545 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12546 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12547 esac 12548 else : 12549 # compilation failed 12550 lt_cv_dlopen_self_static=no 12551 fi 12552fi 12553rm -fr conftest* 12554 12555 12556fi 12557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12558printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12559 fi 12560 12561 CPPFLAGS=$save_CPPFLAGS 12562 LDFLAGS=$save_LDFLAGS 12563 LIBS=$save_LIBS 12564 ;; 12565 esac 12566 12567 case $lt_cv_dlopen_self in 12568 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12569 *) enable_dlopen_self=unknown ;; 12570 esac 12571 12572 case $lt_cv_dlopen_self_static in 12573 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12574 *) enable_dlopen_self_static=unknown ;; 12575 esac 12576fi 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594striplib= 12595old_striplib= 12596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12597printf %s "checking whether stripping libraries is possible... " >&6; } 12598if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "strip" >/dev/null; then 12599 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12600 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12602printf "%s\n" "yes" >&6; } 12603else 12604# FIXME - insert some real tests, host_os isn't really good enough 12605 case $host_os in 12606 darwin*) 12607 if test -n "$STRIP"; then 12608 striplib="$STRIP -x" 12609 old_striplib="$STRIP -S" 12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12611printf "%s\n" "yes" >&6; } 12612 else 12613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12614printf "%s\n" "no" >&6; } 12615 fi 12616 ;; 12617 *) 12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12619printf "%s\n" "no" >&6; } 12620 ;; 12621 esac 12622fi 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 # Report what library types will actually be built 12636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12637printf %s "checking if libtool supports shared libraries... " >&6; } 12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12639printf "%s\n" "$can_build_shared" >&6; } 12640 12641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12642printf %s "checking whether to build shared libraries... " >&6; } 12643 test no = "$can_build_shared" && enable_shared=no 12644 12645 # On AIX, shared libraries and static libraries use the same namespace, and 12646 # are all built from PIC. 12647 case $host_os in 12648 aix3*) 12649 test yes = "$enable_shared" && enable_static=no 12650 if test -n "$RANLIB"; then 12651 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12652 postinstall_cmds='$RANLIB $lib' 12653 fi 12654 ;; 12655 12656 aix[4-9]*) 12657 if test ia64 != "$host_cpu"; then 12658 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12659 yes,aix,yes) ;; # shared object as lib.so file only 12660 yes,svr4,*) ;; # shared object as lib.so archive member only 12661 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12662 esac 12663 fi 12664 ;; 12665 esac 12666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12667printf "%s\n" "$enable_shared" >&6; } 12668 12669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12670printf %s "checking whether to build static libraries... " >&6; } 12671 # Make sure either enable_shared or enable_static is yes. 12672 test yes = "$enable_shared" || enable_static=yes 12673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12674printf "%s\n" "$enable_static" >&6; } 12675 12676 12677 12678 12679fi 12680ac_ext=c 12681ac_cpp='$CPP $CPPFLAGS' 12682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12684ac_compiler_gnu=$ac_cv_c_compiler_gnu 12685 12686CC=$lt_save_CC 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 ac_config_commands="$ac_config_commands libtool" 12703 12704 12705 12706 12707# Only expand once: 12708 12709 12710 12711# Check whether --enable-largefile was given. 12712if test ${enable_largefile+y} 12713then : 12714 enableval=$enable_largefile; 12715fi 12716 12717if test "$enable_largefile" != no; then 12718 12719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12720printf %s "checking for special C compiler options needed for large files... " >&6; } 12721if test ${ac_cv_sys_largefile_CC+y} 12722then : 12723 printf %s "(cached) " >&6 12724else $as_nop 12725 ac_cv_sys_largefile_CC=no 12726 if test "$GCC" != yes; then 12727 ac_save_CC=$CC 12728 while :; do 12729 # IRIX 6.2 and later do not support large files by default, 12730 # so use the C compiler's -n32 option if that helps. 12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12732/* end confdefs.h. */ 12733#include <sys/types.h> 12734 /* Check that off_t can represent 2**63 - 1 correctly. 12735 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12736 since some C++ compilers masquerading as C compilers 12737 incorrectly reject 9223372036854775807. */ 12738#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 12739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12740 && LARGE_OFF_T % 2147483647 == 1) 12741 ? 1 : -1]; 12742int 12743main (void) 12744{ 12745 12746 ; 12747 return 0; 12748} 12749_ACEOF 12750 if ac_fn_c_try_compile "$LINENO" 12751then : 12752 break 12753fi 12754rm -f core conftest.err conftest.$ac_objext conftest.beam 12755 CC="$CC -n32" 12756 if ac_fn_c_try_compile "$LINENO" 12757then : 12758 ac_cv_sys_largefile_CC=' -n32'; break 12759fi 12760rm -f core conftest.err conftest.$ac_objext conftest.beam 12761 break 12762 done 12763 CC=$ac_save_CC 12764 rm -f conftest.$ac_ext 12765 fi 12766fi 12767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12768printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 12769 if test "$ac_cv_sys_largefile_CC" != no; then 12770 CC=$CC$ac_cv_sys_largefile_CC 12771 fi 12772 12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12774printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12775if test ${ac_cv_sys_file_offset_bits+y} 12776then : 12777 printf %s "(cached) " >&6 12778else $as_nop 12779 while :; do 12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12781/* end confdefs.h. */ 12782#include <sys/types.h> 12783 /* Check that off_t can represent 2**63 - 1 correctly. 12784 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12785 since some C++ compilers masquerading as C compilers 12786 incorrectly reject 9223372036854775807. */ 12787#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 12788 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12789 && LARGE_OFF_T % 2147483647 == 1) 12790 ? 1 : -1]; 12791int 12792main (void) 12793{ 12794 12795 ; 12796 return 0; 12797} 12798_ACEOF 12799if ac_fn_c_try_compile "$LINENO" 12800then : 12801 ac_cv_sys_file_offset_bits=no; break 12802fi 12803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12805/* end confdefs.h. */ 12806#define _FILE_OFFSET_BITS 64 12807#include <sys/types.h> 12808 /* Check that off_t can represent 2**63 - 1 correctly. 12809 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12810 since some C++ compilers masquerading as C compilers 12811 incorrectly reject 9223372036854775807. */ 12812#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 12813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12814 && LARGE_OFF_T % 2147483647 == 1) 12815 ? 1 : -1]; 12816int 12817main (void) 12818{ 12819 12820 ; 12821 return 0; 12822} 12823_ACEOF 12824if ac_fn_c_try_compile "$LINENO" 12825then : 12826 ac_cv_sys_file_offset_bits=64; break 12827fi 12828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12829 ac_cv_sys_file_offset_bits=unknown 12830 break 12831done 12832fi 12833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12834printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 12835case $ac_cv_sys_file_offset_bits in #( 12836 no | unknown) ;; 12837 *) 12838printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 12839;; 12840esac 12841rm -rf conftest* 12842 if test $ac_cv_sys_file_offset_bits = unknown; then 12843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12844printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 12845if test ${ac_cv_sys_large_files+y} 12846then : 12847 printf %s "(cached) " >&6 12848else $as_nop 12849 while :; do 12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12851/* end confdefs.h. */ 12852#include <sys/types.h> 12853 /* Check that off_t can represent 2**63 - 1 correctly. 12854 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12855 since some C++ compilers masquerading as C compilers 12856 incorrectly reject 9223372036854775807. */ 12857#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 12858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12859 && LARGE_OFF_T % 2147483647 == 1) 12860 ? 1 : -1]; 12861int 12862main (void) 12863{ 12864 12865 ; 12866 return 0; 12867} 12868_ACEOF 12869if ac_fn_c_try_compile "$LINENO" 12870then : 12871 ac_cv_sys_large_files=no; break 12872fi 12873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12875/* end confdefs.h. */ 12876#define _LARGE_FILES 1 12877#include <sys/types.h> 12878 /* Check that off_t can represent 2**63 - 1 correctly. 12879 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12880 since some C++ compilers masquerading as C compilers 12881 incorrectly reject 9223372036854775807. */ 12882#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 12883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12884 && LARGE_OFF_T % 2147483647 == 1) 12885 ? 1 : -1]; 12886int 12887main (void) 12888{ 12889 12890 ; 12891 return 0; 12892} 12893_ACEOF 12894if ac_fn_c_try_compile "$LINENO" 12895then : 12896 ac_cv_sys_large_files=1; break 12897fi 12898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12899 ac_cv_sys_large_files=unknown 12900 break 12901done 12902fi 12903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12904printf "%s\n" "$ac_cv_sys_large_files" >&6; } 12905case $ac_cv_sys_large_files in #( 12906 no | unknown) ;; 12907 *) 12908printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 12909;; 12910esac 12911rm -rf conftest* 12912 fi 12913fi 12914 12915 12916 12917# Check whether --with-personality-dir was given. 12918if test ${with_personality_dir+y} 12919then : 12920 withval=$with_personality_dir; PERSONALITY_PATH="$withval" 12921else $as_nop 12922 PERSONALITY_PATH="${datadir}/pkgconfig/personality.d:${sysconfdir}/pkgconfig/personality.d" 12923fi 12924 12925 12926 12927 12928 12929# Check whether --with-pkg-config-dir was given. 12930if test ${with_pkg_config_dir+y} 12931then : 12932 withval=$with_pkg_config_dir; PKG_DEFAULT_PATH="$withval" 12933else $as_nop 12934 PKG_DEFAULT_PATH="${libdir}/pkgconfig:${datadir}/pkgconfig" 12935fi 12936 12937 12938 12939 12940 12941# Check whether --with-system-libdir was given. 12942if test ${with_system_libdir+y} 12943then : 12944 withval=$with_system_libdir; SYSTEM_LIBDIR="$withval" 12945else $as_nop 12946 SYSTEM_LIBDIR="${libdir}" 12947fi 12948 12949 12950 12951 12952 12953# Check whether --with-system-includedir was given. 12954if test ${with_system_includedir+y} 12955then : 12956 withval=$with_system_includedir; SYSTEM_INCLUDEDIR="$withval" 12957else $as_nop 12958 SYSTEM_INCLUDEDIR="${includedir}" 12959fi 12960 12961 12962 12963 12964ac_ext=c 12965ac_cpp='$CPP $CPPFLAGS' 12966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12968ac_compiler_gnu=$ac_cv_c_compiler_gnu 12969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 12970printf %s "checking how to run the C preprocessor... " >&6; } 12971# On Suns, sometimes $CPP names a directory. 12972if test -n "$CPP" && test -d "$CPP"; then 12973 CPP= 12974fi 12975if test -z "$CPP"; then 12976 if test ${ac_cv_prog_CPP+y} 12977then : 12978 printf %s "(cached) " >&6 12979else $as_nop 12980 # Double quotes because $CC needs to be expanded 12981 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 12982 do 12983 ac_preproc_ok=false 12984for ac_c_preproc_warn_flag in '' yes 12985do 12986 # Use a header file that comes with gcc, so configuring glibc 12987 # with a fresh cross-compiler works. 12988 # On the NeXT, cc -E runs the code through the compiler's parser, 12989 # not just through cpp. "Syntax error" is here to catch this case. 12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12991/* end confdefs.h. */ 12992#include <limits.h> 12993 Syntax error 12994_ACEOF 12995if ac_fn_c_try_cpp "$LINENO" 12996then : 12997 12998else $as_nop 12999 # Broken: fails on valid input. 13000continue 13001fi 13002rm -f conftest.err conftest.i conftest.$ac_ext 13003 13004 # OK, works on sane cases. Now check whether nonexistent headers 13005 # can be detected and how. 13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13007/* end confdefs.h. */ 13008#include <ac_nonexistent.h> 13009_ACEOF 13010if ac_fn_c_try_cpp "$LINENO" 13011then : 13012 # Broken: success on invalid input. 13013continue 13014else $as_nop 13015 # Passes both tests. 13016ac_preproc_ok=: 13017break 13018fi 13019rm -f conftest.err conftest.i conftest.$ac_ext 13020 13021done 13022# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13023rm -f conftest.i conftest.err conftest.$ac_ext 13024if $ac_preproc_ok 13025then : 13026 break 13027fi 13028 13029 done 13030 ac_cv_prog_CPP=$CPP 13031 13032fi 13033 CPP=$ac_cv_prog_CPP 13034else 13035 ac_cv_prog_CPP=$CPP 13036fi 13037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 13038printf "%s\n" "$CPP" >&6; } 13039ac_preproc_ok=false 13040for ac_c_preproc_warn_flag in '' yes 13041do 13042 # Use a header file that comes with gcc, so configuring glibc 13043 # with a fresh cross-compiler works. 13044 # On the NeXT, cc -E runs the code through the compiler's parser, 13045 # not just through cpp. "Syntax error" is here to catch this case. 13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13047/* end confdefs.h. */ 13048#include <limits.h> 13049 Syntax error 13050_ACEOF 13051if ac_fn_c_try_cpp "$LINENO" 13052then : 13053 13054else $as_nop 13055 # Broken: fails on valid input. 13056continue 13057fi 13058rm -f conftest.err conftest.i conftest.$ac_ext 13059 13060 # OK, works on sane cases. Now check whether nonexistent headers 13061 # can be detected and how. 13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13063/* end confdefs.h. */ 13064#include <ac_nonexistent.h> 13065_ACEOF 13066if ac_fn_c_try_cpp "$LINENO" 13067then : 13068 # Broken: success on invalid input. 13069continue 13070else $as_nop 13071 # Passes both tests. 13072ac_preproc_ok=: 13073break 13074fi 13075rm -f conftest.err conftest.i conftest.$ac_ext 13076 13077done 13078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13079rm -f conftest.i conftest.err conftest.$ac_ext 13080if $ac_preproc_ok 13081then : 13082 13083else $as_nop 13084 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13085printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13086as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 13087See \`config.log' for more details" "$LINENO" 5; } 13088fi 13089 13090ac_ext=c 13091ac_cpp='$CPP $CPPFLAGS' 13092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13094ac_compiler_gnu=$ac_cv_c_compiler_gnu 13095 13096ac_ext=c 13097ac_cpp='$CPP $CPPFLAGS' 13098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13100ac_compiler_gnu=$ac_cv_c_compiler_gnu 13101if test -n "$ac_tool_prefix"; then 13102 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 13103set dummy ${ac_tool_prefix}gcc; ac_word=$2 13104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13105printf %s "checking for $ac_word... " >&6; } 13106if test ${ac_cv_prog_CC+y} 13107then : 13108 printf %s "(cached) " >&6 13109else $as_nop 13110 if test -n "$CC"; then 13111 ac_cv_prog_CC="$CC" # Let the user override the test. 13112else 13113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13114for as_dir in $PATH 13115do 13116 IFS=$as_save_IFS 13117 case $as_dir in #((( 13118 '') as_dir=./ ;; 13119 */) ;; 13120 *) as_dir=$as_dir/ ;; 13121 esac 13122 for ac_exec_ext in '' $ac_executable_extensions; do 13123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13124 ac_cv_prog_CC="${ac_tool_prefix}gcc" 13125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13126 break 2 13127 fi 13128done 13129 done 13130IFS=$as_save_IFS 13131 13132fi 13133fi 13134CC=$ac_cv_prog_CC 13135if test -n "$CC"; then 13136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13137printf "%s\n" "$CC" >&6; } 13138else 13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13140printf "%s\n" "no" >&6; } 13141fi 13142 13143 13144fi 13145if test -z "$ac_cv_prog_CC"; then 13146 ac_ct_CC=$CC 13147 # Extract the first word of "gcc", so it can be a program name with args. 13148set dummy gcc; ac_word=$2 13149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13150printf %s "checking for $ac_word... " >&6; } 13151if test ${ac_cv_prog_ac_ct_CC+y} 13152then : 13153 printf %s "(cached) " >&6 13154else $as_nop 13155 if test -n "$ac_ct_CC"; then 13156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13157else 13158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13159for as_dir in $PATH 13160do 13161 IFS=$as_save_IFS 13162 case $as_dir in #((( 13163 '') as_dir=./ ;; 13164 */) ;; 13165 *) as_dir=$as_dir/ ;; 13166 esac 13167 for ac_exec_ext in '' $ac_executable_extensions; do 13168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13169 ac_cv_prog_ac_ct_CC="gcc" 13170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13171 break 2 13172 fi 13173done 13174 done 13175IFS=$as_save_IFS 13176 13177fi 13178fi 13179ac_ct_CC=$ac_cv_prog_ac_ct_CC 13180if test -n "$ac_ct_CC"; then 13181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13182printf "%s\n" "$ac_ct_CC" >&6; } 13183else 13184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13185printf "%s\n" "no" >&6; } 13186fi 13187 13188 if test "x$ac_ct_CC" = x; then 13189 CC="" 13190 else 13191 case $cross_compiling:$ac_tool_warned in 13192yes:) 13193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13194printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13195ac_tool_warned=yes ;; 13196esac 13197 CC=$ac_ct_CC 13198 fi 13199else 13200 CC="$ac_cv_prog_CC" 13201fi 13202 13203if test -z "$CC"; then 13204 if test -n "$ac_tool_prefix"; then 13205 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 13206set dummy ${ac_tool_prefix}cc; ac_word=$2 13207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13208printf %s "checking for $ac_word... " >&6; } 13209if test ${ac_cv_prog_CC+y} 13210then : 13211 printf %s "(cached) " >&6 13212else $as_nop 13213 if test -n "$CC"; then 13214 ac_cv_prog_CC="$CC" # Let the user override the test. 13215else 13216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13217for as_dir in $PATH 13218do 13219 IFS=$as_save_IFS 13220 case $as_dir in #((( 13221 '') as_dir=./ ;; 13222 */) ;; 13223 *) as_dir=$as_dir/ ;; 13224 esac 13225 for ac_exec_ext in '' $ac_executable_extensions; do 13226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13227 ac_cv_prog_CC="${ac_tool_prefix}cc" 13228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13229 break 2 13230 fi 13231done 13232 done 13233IFS=$as_save_IFS 13234 13235fi 13236fi 13237CC=$ac_cv_prog_CC 13238if test -n "$CC"; then 13239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13240printf "%s\n" "$CC" >&6; } 13241else 13242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13243printf "%s\n" "no" >&6; } 13244fi 13245 13246 13247 fi 13248fi 13249if test -z "$CC"; then 13250 # Extract the first word of "cc", so it can be a program name with args. 13251set dummy cc; ac_word=$2 13252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13253printf %s "checking for $ac_word... " >&6; } 13254if test ${ac_cv_prog_CC+y} 13255then : 13256 printf %s "(cached) " >&6 13257else $as_nop 13258 if test -n "$CC"; then 13259 ac_cv_prog_CC="$CC" # Let the user override the test. 13260else 13261 ac_prog_rejected=no 13262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13263for as_dir in $PATH 13264do 13265 IFS=$as_save_IFS 13266 case $as_dir in #((( 13267 '') as_dir=./ ;; 13268 */) ;; 13269 *) as_dir=$as_dir/ ;; 13270 esac 13271 for ac_exec_ext in '' $ac_executable_extensions; do 13272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13273 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 13274 ac_prog_rejected=yes 13275 continue 13276 fi 13277 ac_cv_prog_CC="cc" 13278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13279 break 2 13280 fi 13281done 13282 done 13283IFS=$as_save_IFS 13284 13285if test $ac_prog_rejected = yes; then 13286 # We found a bogon in the path, so make sure we never use it. 13287 set dummy $ac_cv_prog_CC 13288 shift 13289 if test $# != 0; then 13290 # We chose a different compiler from the bogus one. 13291 # However, it has the same basename, so the bogon will be chosen 13292 # first if we set CC to just the basename; use the full file name. 13293 shift 13294 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 13295 fi 13296fi 13297fi 13298fi 13299CC=$ac_cv_prog_CC 13300if test -n "$CC"; then 13301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13302printf "%s\n" "$CC" >&6; } 13303else 13304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13305printf "%s\n" "no" >&6; } 13306fi 13307 13308 13309fi 13310if test -z "$CC"; then 13311 if test -n "$ac_tool_prefix"; then 13312 for ac_prog in cl.exe 13313 do 13314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13315set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13317printf %s "checking for $ac_word... " >&6; } 13318if test ${ac_cv_prog_CC+y} 13319then : 13320 printf %s "(cached) " >&6 13321else $as_nop 13322 if test -n "$CC"; then 13323 ac_cv_prog_CC="$CC" # Let the user override the test. 13324else 13325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13326for as_dir in $PATH 13327do 13328 IFS=$as_save_IFS 13329 case $as_dir in #((( 13330 '') as_dir=./ ;; 13331 */) ;; 13332 *) as_dir=$as_dir/ ;; 13333 esac 13334 for ac_exec_ext in '' $ac_executable_extensions; do 13335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 13337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13338 break 2 13339 fi 13340done 13341 done 13342IFS=$as_save_IFS 13343 13344fi 13345fi 13346CC=$ac_cv_prog_CC 13347if test -n "$CC"; then 13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13349printf "%s\n" "$CC" >&6; } 13350else 13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13352printf "%s\n" "no" >&6; } 13353fi 13354 13355 13356 test -n "$CC" && break 13357 done 13358fi 13359if test -z "$CC"; then 13360 ac_ct_CC=$CC 13361 for ac_prog in cl.exe 13362do 13363 # Extract the first word of "$ac_prog", so it can be a program name with args. 13364set dummy $ac_prog; ac_word=$2 13365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13366printf %s "checking for $ac_word... " >&6; } 13367if test ${ac_cv_prog_ac_ct_CC+y} 13368then : 13369 printf %s "(cached) " >&6 13370else $as_nop 13371 if test -n "$ac_ct_CC"; then 13372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13373else 13374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13375for as_dir in $PATH 13376do 13377 IFS=$as_save_IFS 13378 case $as_dir in #((( 13379 '') as_dir=./ ;; 13380 */) ;; 13381 *) as_dir=$as_dir/ ;; 13382 esac 13383 for ac_exec_ext in '' $ac_executable_extensions; do 13384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13385 ac_cv_prog_ac_ct_CC="$ac_prog" 13386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13387 break 2 13388 fi 13389done 13390 done 13391IFS=$as_save_IFS 13392 13393fi 13394fi 13395ac_ct_CC=$ac_cv_prog_ac_ct_CC 13396if test -n "$ac_ct_CC"; then 13397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13398printf "%s\n" "$ac_ct_CC" >&6; } 13399else 13400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13401printf "%s\n" "no" >&6; } 13402fi 13403 13404 13405 test -n "$ac_ct_CC" && break 13406done 13407 13408 if test "x$ac_ct_CC" = x; then 13409 CC="" 13410 else 13411 case $cross_compiling:$ac_tool_warned in 13412yes:) 13413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13414printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13415ac_tool_warned=yes ;; 13416esac 13417 CC=$ac_ct_CC 13418 fi 13419fi 13420 13421fi 13422if test -z "$CC"; then 13423 if test -n "$ac_tool_prefix"; then 13424 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 13425set dummy ${ac_tool_prefix}clang; ac_word=$2 13426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13427printf %s "checking for $ac_word... " >&6; } 13428if test ${ac_cv_prog_CC+y} 13429then : 13430 printf %s "(cached) " >&6 13431else $as_nop 13432 if test -n "$CC"; then 13433 ac_cv_prog_CC="$CC" # Let the user override the test. 13434else 13435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13436for as_dir in $PATH 13437do 13438 IFS=$as_save_IFS 13439 case $as_dir in #((( 13440 '') as_dir=./ ;; 13441 */) ;; 13442 *) as_dir=$as_dir/ ;; 13443 esac 13444 for ac_exec_ext in '' $ac_executable_extensions; do 13445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13446 ac_cv_prog_CC="${ac_tool_prefix}clang" 13447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13448 break 2 13449 fi 13450done 13451 done 13452IFS=$as_save_IFS 13453 13454fi 13455fi 13456CC=$ac_cv_prog_CC 13457if test -n "$CC"; then 13458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13459printf "%s\n" "$CC" >&6; } 13460else 13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13462printf "%s\n" "no" >&6; } 13463fi 13464 13465 13466fi 13467if test -z "$ac_cv_prog_CC"; then 13468 ac_ct_CC=$CC 13469 # Extract the first word of "clang", so it can be a program name with args. 13470set dummy clang; ac_word=$2 13471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13472printf %s "checking for $ac_word... " >&6; } 13473if test ${ac_cv_prog_ac_ct_CC+y} 13474then : 13475 printf %s "(cached) " >&6 13476else $as_nop 13477 if test -n "$ac_ct_CC"; then 13478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13479else 13480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13481for as_dir in $PATH 13482do 13483 IFS=$as_save_IFS 13484 case $as_dir in #((( 13485 '') as_dir=./ ;; 13486 */) ;; 13487 *) as_dir=$as_dir/ ;; 13488 esac 13489 for ac_exec_ext in '' $ac_executable_extensions; do 13490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13491 ac_cv_prog_ac_ct_CC="clang" 13492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13493 break 2 13494 fi 13495done 13496 done 13497IFS=$as_save_IFS 13498 13499fi 13500fi 13501ac_ct_CC=$ac_cv_prog_ac_ct_CC 13502if test -n "$ac_ct_CC"; then 13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13504printf "%s\n" "$ac_ct_CC" >&6; } 13505else 13506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13507printf "%s\n" "no" >&6; } 13508fi 13509 13510 if test "x$ac_ct_CC" = x; then 13511 CC="" 13512 else 13513 case $cross_compiling:$ac_tool_warned in 13514yes:) 13515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13516printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13517ac_tool_warned=yes ;; 13518esac 13519 CC=$ac_ct_CC 13520 fi 13521else 13522 CC="$ac_cv_prog_CC" 13523fi 13524 13525fi 13526 13527 13528test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13529printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13530as_fn_error $? "no acceptable C compiler found in \$PATH 13531See \`config.log' for more details" "$LINENO" 5; } 13532 13533# Provide some information about the compiler. 13534printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 13535set X $ac_compile 13536ac_compiler=$2 13537for ac_option in --version -v -V -qversion -version; do 13538 { { ac_try="$ac_compiler $ac_option >&5" 13539case "(($ac_try" in 13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13541 *) ac_try_echo=$ac_try;; 13542esac 13543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13544printf "%s\n" "$ac_try_echo"; } >&5 13545 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13546 ac_status=$? 13547 if test -s conftest.err; then 13548 sed '10a\ 13549... rest of stderr output deleted ... 13550 10q' conftest.err >conftest.er1 13551 cat conftest.er1 >&5 13552 fi 13553 rm -f conftest.er1 conftest.err 13554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13555 test $ac_status = 0; } 13556done 13557 13558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 13559printf %s "checking whether the compiler supports GNU C... " >&6; } 13560if test ${ac_cv_c_compiler_gnu+y} 13561then : 13562 printf %s "(cached) " >&6 13563else $as_nop 13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13565/* end confdefs.h. */ 13566 13567int 13568main (void) 13569{ 13570#ifndef __GNUC__ 13571 choke me 13572#endif 13573 13574 ; 13575 return 0; 13576} 13577_ACEOF 13578if ac_fn_c_try_compile "$LINENO" 13579then : 13580 ac_compiler_gnu=yes 13581else $as_nop 13582 ac_compiler_gnu=no 13583fi 13584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13585ac_cv_c_compiler_gnu=$ac_compiler_gnu 13586 13587fi 13588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 13589printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 13590ac_compiler_gnu=$ac_cv_c_compiler_gnu 13591 13592if test $ac_compiler_gnu = yes; then 13593 GCC=yes 13594else 13595 GCC= 13596fi 13597ac_test_CFLAGS=${CFLAGS+y} 13598ac_save_CFLAGS=$CFLAGS 13599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 13600printf %s "checking whether $CC accepts -g... " >&6; } 13601if test ${ac_cv_prog_cc_g+y} 13602then : 13603 printf %s "(cached) " >&6 13604else $as_nop 13605 ac_save_c_werror_flag=$ac_c_werror_flag 13606 ac_c_werror_flag=yes 13607 ac_cv_prog_cc_g=no 13608 CFLAGS="-g" 13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13610/* end confdefs.h. */ 13611 13612int 13613main (void) 13614{ 13615 13616 ; 13617 return 0; 13618} 13619_ACEOF 13620if ac_fn_c_try_compile "$LINENO" 13621then : 13622 ac_cv_prog_cc_g=yes 13623else $as_nop 13624 CFLAGS="" 13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13626/* end confdefs.h. */ 13627 13628int 13629main (void) 13630{ 13631 13632 ; 13633 return 0; 13634} 13635_ACEOF 13636if ac_fn_c_try_compile "$LINENO" 13637then : 13638 13639else $as_nop 13640 ac_c_werror_flag=$ac_save_c_werror_flag 13641 CFLAGS="-g" 13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13643/* end confdefs.h. */ 13644 13645int 13646main (void) 13647{ 13648 13649 ; 13650 return 0; 13651} 13652_ACEOF 13653if ac_fn_c_try_compile "$LINENO" 13654then : 13655 ac_cv_prog_cc_g=yes 13656fi 13657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13658fi 13659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13660fi 13661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13662 ac_c_werror_flag=$ac_save_c_werror_flag 13663fi 13664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 13665printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 13666if test $ac_test_CFLAGS; then 13667 CFLAGS=$ac_save_CFLAGS 13668elif test $ac_cv_prog_cc_g = yes; then 13669 if test "$GCC" = yes; then 13670 CFLAGS="-g -O2" 13671 else 13672 CFLAGS="-g" 13673 fi 13674else 13675 if test "$GCC" = yes; then 13676 CFLAGS="-O2" 13677 else 13678 CFLAGS= 13679 fi 13680fi 13681ac_prog_cc_stdc=no 13682if test x$ac_prog_cc_stdc = xno 13683then : 13684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 13685printf %s "checking for $CC option to enable C11 features... " >&6; } 13686if test ${ac_cv_prog_cc_c11+y} 13687then : 13688 printf %s "(cached) " >&6 13689else $as_nop 13690 ac_cv_prog_cc_c11=no 13691ac_save_CC=$CC 13692cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13693/* end confdefs.h. */ 13694$ac_c_conftest_c11_program 13695_ACEOF 13696for ac_arg in '' -std=gnu11 13697do 13698 CC="$ac_save_CC $ac_arg" 13699 if ac_fn_c_try_compile "$LINENO" 13700then : 13701 ac_cv_prog_cc_c11=$ac_arg 13702fi 13703rm -f core conftest.err conftest.$ac_objext conftest.beam 13704 test "x$ac_cv_prog_cc_c11" != "xno" && break 13705done 13706rm -f conftest.$ac_ext 13707CC=$ac_save_CC 13708fi 13709 13710if test "x$ac_cv_prog_cc_c11" = xno 13711then : 13712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13713printf "%s\n" "unsupported" >&6; } 13714else $as_nop 13715 if test "x$ac_cv_prog_cc_c11" = x 13716then : 13717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13718printf "%s\n" "none needed" >&6; } 13719else $as_nop 13720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 13721printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 13722 CC="$CC $ac_cv_prog_cc_c11" 13723fi 13724 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 13725 ac_prog_cc_stdc=c11 13726fi 13727fi 13728if test x$ac_prog_cc_stdc = xno 13729then : 13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 13731printf %s "checking for $CC option to enable C99 features... " >&6; } 13732if test ${ac_cv_prog_cc_c99+y} 13733then : 13734 printf %s "(cached) " >&6 13735else $as_nop 13736 ac_cv_prog_cc_c99=no 13737ac_save_CC=$CC 13738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13739/* end confdefs.h. */ 13740$ac_c_conftest_c99_program 13741_ACEOF 13742for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 13743do 13744 CC="$ac_save_CC $ac_arg" 13745 if ac_fn_c_try_compile "$LINENO" 13746then : 13747 ac_cv_prog_cc_c99=$ac_arg 13748fi 13749rm -f core conftest.err conftest.$ac_objext conftest.beam 13750 test "x$ac_cv_prog_cc_c99" != "xno" && break 13751done 13752rm -f conftest.$ac_ext 13753CC=$ac_save_CC 13754fi 13755 13756if test "x$ac_cv_prog_cc_c99" = xno 13757then : 13758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13759printf "%s\n" "unsupported" >&6; } 13760else $as_nop 13761 if test "x$ac_cv_prog_cc_c99" = x 13762then : 13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13764printf "%s\n" "none needed" >&6; } 13765else $as_nop 13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 13767printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 13768 CC="$CC $ac_cv_prog_cc_c99" 13769fi 13770 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 13771 ac_prog_cc_stdc=c99 13772fi 13773fi 13774if test x$ac_prog_cc_stdc = xno 13775then : 13776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 13777printf %s "checking for $CC option to enable C89 features... " >&6; } 13778if test ${ac_cv_prog_cc_c89+y} 13779then : 13780 printf %s "(cached) " >&6 13781else $as_nop 13782 ac_cv_prog_cc_c89=no 13783ac_save_CC=$CC 13784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13785/* end confdefs.h. */ 13786$ac_c_conftest_c89_program 13787_ACEOF 13788for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13789do 13790 CC="$ac_save_CC $ac_arg" 13791 if ac_fn_c_try_compile "$LINENO" 13792then : 13793 ac_cv_prog_cc_c89=$ac_arg 13794fi 13795rm -f core conftest.err conftest.$ac_objext conftest.beam 13796 test "x$ac_cv_prog_cc_c89" != "xno" && break 13797done 13798rm -f conftest.$ac_ext 13799CC=$ac_save_CC 13800fi 13801 13802if test "x$ac_cv_prog_cc_c89" = xno 13803then : 13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13805printf "%s\n" "unsupported" >&6; } 13806else $as_nop 13807 if test "x$ac_cv_prog_cc_c89" = x 13808then : 13809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13810printf "%s\n" "none needed" >&6; } 13811else $as_nop 13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13813printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 13814 CC="$CC $ac_cv_prog_cc_c89" 13815fi 13816 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 13817 ac_prog_cc_stdc=c89 13818fi 13819fi 13820 13821ac_ext=c 13822ac_cpp='$CPP $CPPFLAGS' 13823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13825ac_compiler_gnu=$ac_cv_c_compiler_gnu 13826 13827 13828 ac_ext=c 13829ac_cpp='$CPP $CPPFLAGS' 13830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13832ac_compiler_gnu=$ac_cv_c_compiler_gnu 13833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13834printf %s "checking whether $CC understands -c and -o together... " >&6; } 13835if test ${am_cv_prog_cc_c_o+y} 13836then : 13837 printf %s "(cached) " >&6 13838else $as_nop 13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13840/* end confdefs.h. */ 13841 13842int 13843main (void) 13844{ 13845 13846 ; 13847 return 0; 13848} 13849_ACEOF 13850 # Make sure it works both with $CC and with simple cc. 13851 # Following AC_PROG_CC_C_O, we do the test twice because some 13852 # compilers refuse to overwrite an existing .o file with -o, 13853 # though they will create one. 13854 am_cv_prog_cc_c_o=yes 13855 for am_i in 1 2; do 13856 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13857 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13858 ac_status=$? 13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13860 (exit $ac_status); } \ 13861 && test -f conftest2.$ac_objext; then 13862 : OK 13863 else 13864 am_cv_prog_cc_c_o=no 13865 break 13866 fi 13867 done 13868 rm -f core conftest* 13869 unset am_i 13870fi 13871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13872printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 13873if test "$am_cv_prog_cc_c_o" != yes; then 13874 # Losing compiler, so override with the script. 13875 # FIXME: It is wrong to rewrite CC. 13876 # But if we don't then we get into trouble of one sort or another. 13877 # A longer-term fix would be to have automake use am__CC in this case, 13878 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13879 CC="$am_aux_dir/compile $CC" 13880fi 13881ac_ext=c 13882ac_cpp='$CPP $CPPFLAGS' 13883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13885ac_compiler_gnu=$ac_cv_c_compiler_gnu 13886 13887 13888 13889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13890printf %s "checking whether ln -s works... " >&6; } 13891LN_S=$as_ln_s 13892if test "$LN_S" = "ln -s"; then 13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13894printf "%s\n" "yes" >&6; } 13895else 13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13897printf "%s\n" "no, using $LN_S" >&6; } 13898fi 13899 13900 13901ac_config_files="$ac_config_files Makefile Kyuafile libpkgconf.pc tests/Kyuafile tests/test_env.sh" 13902 13903cat >confcache <<\_ACEOF 13904# This file is a shell script that caches the results of configure 13905# tests run on this system so they can be shared between configure 13906# scripts and configure runs, see configure's option --config-cache. 13907# It is not useful on other systems. If it contains results you don't 13908# want to keep, you may remove or edit it. 13909# 13910# config.status only pays attention to the cache file if you give it 13911# the --recheck option to rerun configure. 13912# 13913# `ac_cv_env_foo' variables (set or unset) will be overridden when 13914# loading this file, other *unset* `ac_cv_foo' will be assigned the 13915# following values. 13916 13917_ACEOF 13918 13919# The following way of writing the cache mishandles newlines in values, 13920# but we know of no workaround that is simple, portable, and efficient. 13921# So, we kill variables containing newlines. 13922# Ultrix sh set writes to stderr and can't be redirected directly, 13923# and sets the high bit in the cache file unless we assign to the vars. 13924( 13925 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13926 eval ac_val=\$$ac_var 13927 case $ac_val in #( 13928 *${as_nl}*) 13929 case $ac_var in #( 13930 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13931printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13932 esac 13933 case $ac_var in #( 13934 _ | IFS | as_nl) ;; #( 13935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13936 *) { eval $ac_var=; unset $ac_var;} ;; 13937 esac ;; 13938 esac 13939 done 13940 13941 (set) 2>&1 | 13942 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13943 *${as_nl}ac_space=\ *) 13944 # `set' does not quote correctly, so add quotes: double-quote 13945 # substitution turns \\\\ into \\, and sed turns \\ into \. 13946 sed -n \ 13947 "s/'/'\\\\''/g; 13948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13949 ;; #( 13950 *) 13951 # `set' quotes correctly as required by POSIX, so do not add quotes. 13952 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13953 ;; 13954 esac | 13955 sort 13956) | 13957 sed ' 13958 /^ac_cv_env_/b end 13959 t clear 13960 :clear 13961 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 13962 t end 13963 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13964 :end' >>confcache 13965if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13966 if test -w "$cache_file"; then 13967 if test "x$cache_file" != "x/dev/null"; then 13968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13969printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 13970 if test ! -f "$cache_file" || test -h "$cache_file"; then 13971 cat confcache >"$cache_file" 13972 else 13973 case $cache_file in #( 13974 */* | ?:*) 13975 mv -f confcache "$cache_file"$$ && 13976 mv -f "$cache_file"$$ "$cache_file" ;; #( 13977 *) 13978 mv -f confcache "$cache_file" ;; 13979 esac 13980 fi 13981 fi 13982 else 13983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13984printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 13985 fi 13986fi 13987rm -f confcache 13988 13989test "x$prefix" = xNONE && prefix=$ac_default_prefix 13990# Let make expand exec_prefix. 13991test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13992 13993DEFS=-DHAVE_CONFIG_H 13994 13995ac_libobjs= 13996ac_ltlibobjs= 13997U= 13998for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13999 # 1. Remove the extension, and $U if already installed. 14000 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14001 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 14002 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14003 # will be set to the directory where LIBOBJS objects are built. 14004 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14005 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14006done 14007LIBOBJS=$ac_libobjs 14008 14009LTLIBOBJS=$ac_ltlibobjs 14010 14011 14012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14013printf %s "checking that generated files are newer than configure... " >&6; } 14014 if test -n "$am_sleep_pid"; then 14015 # Hide warnings about reused PIDs. 14016 wait $am_sleep_pid 2>/dev/null 14017 fi 14018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 14019printf "%s\n" "done" >&6; } 14020if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14021 as_fn_error $? "conditional \"AMDEP\" was never defined. 14022Usually this means the macro was only invoked conditionally." "$LINENO" 5 14023fi 14024if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14025 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14026Usually this means the macro was only invoked conditionally." "$LINENO" 5 14027fi 14028 if test -n "$EXEEXT"; then 14029 am__EXEEXT_TRUE= 14030 am__EXEEXT_FALSE='#' 14031else 14032 am__EXEEXT_TRUE='#' 14033 am__EXEEXT_FALSE= 14034fi 14035 14036 14037: "${CONFIG_STATUS=./config.status}" 14038ac_write_fail=0 14039ac_clean_files_save=$ac_clean_files 14040ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14042printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 14043as_write_fail=0 14044cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14045#! $SHELL 14046# Generated by $as_me. 14047# Run this file to recreate the current configuration. 14048# Compiler output produced by configure, useful for debugging 14049# configure, is in config.log if it exists. 14050 14051debug=false 14052ac_cs_recheck=false 14053ac_cs_silent=false 14054 14055SHELL=\${CONFIG_SHELL-$SHELL} 14056export SHELL 14057_ASEOF 14058cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14059## -------------------- ## 14060## M4sh Initialization. ## 14061## -------------------- ## 14062 14063# Be more Bourne compatible 14064DUALCASE=1; export DUALCASE # for MKS sh 14065as_nop=: 14066if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 14067then : 14068 emulate sh 14069 NULLCMD=: 14070 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14071 # is contrary to our usage. Disable this feature. 14072 alias -g '${1+"$@"}'='"$@"' 14073 setopt NO_GLOB_SUBST 14074else $as_nop 14075 case `(set -o) 2>/dev/null` in #( 14076 *posix*) : 14077 set -o posix ;; #( 14078 *) : 14079 ;; 14080esac 14081fi 14082 14083 14084 14085# Reset variables that may have inherited troublesome values from 14086# the environment. 14087 14088# IFS needs to be set, to space, tab, and newline, in precisely that order. 14089# (If _AS_PATH_WALK were called with IFS unset, it would have the 14090# side effect of setting IFS to empty, thus disabling word splitting.) 14091# Quoting is to prevent editors from complaining about space-tab. 14092as_nl=' 14093' 14094export as_nl 14095IFS=" "" $as_nl" 14096 14097PS1='$ ' 14098PS2='> ' 14099PS4='+ ' 14100 14101# Ensure predictable behavior from utilities with locale-dependent output. 14102LC_ALL=C 14103export LC_ALL 14104LANGUAGE=C 14105export LANGUAGE 14106 14107# We cannot yet rely on "unset" to work, but we need these variables 14108# to be unset--not just set to an empty or harmless value--now, to 14109# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 14110# also avoids known problems related to "unset" and subshell syntax 14111# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 14112for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 14113do eval test \${$as_var+y} \ 14114 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14115done 14116 14117# Ensure that fds 0, 1, and 2 are open. 14118if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 14119if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 14120if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 14121 14122# The user is always right. 14123if ${PATH_SEPARATOR+false} :; then 14124 PATH_SEPARATOR=: 14125 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14126 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14127 PATH_SEPARATOR=';' 14128 } 14129fi 14130 14131 14132# Find who we are. Look in the path if we contain no directory separator. 14133as_myself= 14134case $0 in #(( 14135 *[\\/]* ) as_myself=$0 ;; 14136 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14137for as_dir in $PATH 14138do 14139 IFS=$as_save_IFS 14140 case $as_dir in #((( 14141 '') as_dir=./ ;; 14142 */) ;; 14143 *) as_dir=$as_dir/ ;; 14144 esac 14145 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 14146 done 14147IFS=$as_save_IFS 14148 14149 ;; 14150esac 14151# We did not find ourselves, most probably we were run as `sh COMMAND' 14152# in which case we are not to be found in the path. 14153if test "x$as_myself" = x; then 14154 as_myself=$0 14155fi 14156if test ! -f "$as_myself"; then 14157 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14158 exit 1 14159fi 14160 14161 14162 14163# as_fn_error STATUS ERROR [LINENO LOG_FD] 14164# ---------------------------------------- 14165# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14166# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14167# script with STATUS, using 1 if that was 0. 14168as_fn_error () 14169{ 14170 as_status=$1; test $as_status -eq 0 && as_status=1 14171 if test "$4"; then 14172 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14174 fi 14175 printf "%s\n" "$as_me: error: $2" >&2 14176 as_fn_exit $as_status 14177} # as_fn_error 14178 14179 14180 14181# as_fn_set_status STATUS 14182# ----------------------- 14183# Set $? to STATUS, without forking. 14184as_fn_set_status () 14185{ 14186 return $1 14187} # as_fn_set_status 14188 14189# as_fn_exit STATUS 14190# ----------------- 14191# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14192as_fn_exit () 14193{ 14194 set +e 14195 as_fn_set_status $1 14196 exit $1 14197} # as_fn_exit 14198 14199# as_fn_unset VAR 14200# --------------- 14201# Portably unset VAR. 14202as_fn_unset () 14203{ 14204 { eval $1=; unset $1;} 14205} 14206as_unset=as_fn_unset 14207 14208# as_fn_append VAR VALUE 14209# ---------------------- 14210# Append the text in VALUE to the end of the definition contained in VAR. Take 14211# advantage of any shell optimizations that allow amortized linear growth over 14212# repeated appends, instead of the typical quadratic growth present in naive 14213# implementations. 14214if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 14215then : 14216 eval 'as_fn_append () 14217 { 14218 eval $1+=\$2 14219 }' 14220else $as_nop 14221 as_fn_append () 14222 { 14223 eval $1=\$$1\$2 14224 } 14225fi # as_fn_append 14226 14227# as_fn_arith ARG... 14228# ------------------ 14229# Perform arithmetic evaluation on the ARGs, and store the result in the 14230# global $as_val. Take advantage of shells that can avoid forks. The arguments 14231# must be portable across $(()) and expr. 14232if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 14233then : 14234 eval 'as_fn_arith () 14235 { 14236 as_val=$(( $* )) 14237 }' 14238else $as_nop 14239 as_fn_arith () 14240 { 14241 as_val=`expr "$@" || test $? -eq 1` 14242 } 14243fi # as_fn_arith 14244 14245 14246if expr a : '\(a\)' >/dev/null 2>&1 && 14247 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14248 as_expr=expr 14249else 14250 as_expr=false 14251fi 14252 14253if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14254 as_basename=basename 14255else 14256 as_basename=false 14257fi 14258 14259if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14260 as_dirname=dirname 14261else 14262 as_dirname=false 14263fi 14264 14265as_me=`$as_basename -- "$0" || 14266$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14267 X"$0" : 'X\(//\)$' \| \ 14268 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14269printf "%s\n" X/"$0" | 14270 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14271 s//\1/ 14272 q 14273 } 14274 /^X\/\(\/\/\)$/{ 14275 s//\1/ 14276 q 14277 } 14278 /^X\/\(\/\).*/{ 14279 s//\1/ 14280 q 14281 } 14282 s/.*/./; q'` 14283 14284# Avoid depending upon Character Ranges. 14285as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14286as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14287as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14288as_cr_digits='0123456789' 14289as_cr_alnum=$as_cr_Letters$as_cr_digits 14290 14291 14292# Determine whether it's possible to make 'echo' print without a newline. 14293# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 14294# for compatibility with existing Makefiles. 14295ECHO_C= ECHO_N= ECHO_T= 14296case `echo -n x` in #((((( 14297-n*) 14298 case `echo 'xy\c'` in 14299 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14300 xy) ECHO_C='\c';; 14301 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14302 ECHO_T=' ';; 14303 esac;; 14304*) 14305 ECHO_N='-n';; 14306esac 14307 14308# For backward compatibility with old third-party macros, we provide 14309# the shell variables $as_echo and $as_echo_n. New code should use 14310# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 14311as_echo='printf %s\n' 14312as_echo_n='printf %s' 14313 14314rm -f conf$$ conf$$.exe conf$$.file 14315if test -d conf$$.dir; then 14316 rm -f conf$$.dir/conf$$.file 14317else 14318 rm -f conf$$.dir 14319 mkdir conf$$.dir 2>/dev/null 14320fi 14321if (echo >conf$$.file) 2>/dev/null; then 14322 if ln -s conf$$.file conf$$ 2>/dev/null; then 14323 as_ln_s='ln -s' 14324 # ... but there are two gotchas: 14325 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14326 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14327 # In both cases, we have to default to `cp -pR'. 14328 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14329 as_ln_s='cp -pR' 14330 elif ln conf$$.file conf$$ 2>/dev/null; then 14331 as_ln_s=ln 14332 else 14333 as_ln_s='cp -pR' 14334 fi 14335else 14336 as_ln_s='cp -pR' 14337fi 14338rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14339rmdir conf$$.dir 2>/dev/null 14340 14341 14342# as_fn_mkdir_p 14343# ------------- 14344# Create "$as_dir" as a directory, including parents if necessary. 14345as_fn_mkdir_p () 14346{ 14347 14348 case $as_dir in #( 14349 -*) as_dir=./$as_dir;; 14350 esac 14351 test -d "$as_dir" || eval $as_mkdir_p || { 14352 as_dirs= 14353 while :; do 14354 case $as_dir in #( 14355 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14356 *) as_qdir=$as_dir;; 14357 esac 14358 as_dirs="'$as_qdir' $as_dirs" 14359 as_dir=`$as_dirname -- "$as_dir" || 14360$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14361 X"$as_dir" : 'X\(//\)[^/]' \| \ 14362 X"$as_dir" : 'X\(//\)$' \| \ 14363 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14364printf "%s\n" X"$as_dir" | 14365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14366 s//\1/ 14367 q 14368 } 14369 /^X\(\/\/\)[^/].*/{ 14370 s//\1/ 14371 q 14372 } 14373 /^X\(\/\/\)$/{ 14374 s//\1/ 14375 q 14376 } 14377 /^X\(\/\).*/{ 14378 s//\1/ 14379 q 14380 } 14381 s/.*/./; q'` 14382 test -d "$as_dir" && break 14383 done 14384 test -z "$as_dirs" || eval "mkdir $as_dirs" 14385 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14386 14387 14388} # as_fn_mkdir_p 14389if mkdir -p . 2>/dev/null; then 14390 as_mkdir_p='mkdir -p "$as_dir"' 14391else 14392 test -d ./-p && rmdir ./-p 14393 as_mkdir_p=false 14394fi 14395 14396 14397# as_fn_executable_p FILE 14398# ----------------------- 14399# Test if FILE is an executable regular file. 14400as_fn_executable_p () 14401{ 14402 test -f "$1" && test -x "$1" 14403} # as_fn_executable_p 14404as_test_x='test -x' 14405as_executable_p=as_fn_executable_p 14406 14407# Sed expression to map a string onto a valid CPP name. 14408as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14409 14410# Sed expression to map a string onto a valid variable name. 14411as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14412 14413 14414exec 6>&1 14415## ----------------------------------- ## 14416## Main body of $CONFIG_STATUS script. ## 14417## ----------------------------------- ## 14418_ASEOF 14419test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14420 14421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14422# Save the log message, to keep $0 and so on meaningful, and to 14423# report actual input values of CONFIG_FILES etc. instead of their 14424# values after options handling. 14425ac_log=" 14426This file was extended by pkgconf $as_me 1.8.0, which was 14427generated by GNU Autoconf 2.71. Invocation command line was 14428 14429 CONFIG_FILES = $CONFIG_FILES 14430 CONFIG_HEADERS = $CONFIG_HEADERS 14431 CONFIG_LINKS = $CONFIG_LINKS 14432 CONFIG_COMMANDS = $CONFIG_COMMANDS 14433 $ $0 $@ 14434 14435on `(hostname || uname -n) 2>/dev/null | sed 1q` 14436" 14437 14438_ACEOF 14439 14440case $ac_config_files in *" 14441"*) set x $ac_config_files; shift; ac_config_files=$*;; 14442esac 14443 14444case $ac_config_headers in *" 14445"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14446esac 14447 14448 14449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14450# Files that config.status was made for. 14451config_files="$ac_config_files" 14452config_headers="$ac_config_headers" 14453config_commands="$ac_config_commands" 14454 14455_ACEOF 14456 14457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14458ac_cs_usage="\ 14459\`$as_me' instantiates files and other configuration actions 14460from templates according to the current configuration. Unless the files 14461and actions are specified as TAGs, all are instantiated by default. 14462 14463Usage: $0 [OPTION]... [TAG]... 14464 14465 -h, --help print this help, then exit 14466 -V, --version print version number and configuration settings, then exit 14467 --config print configuration, then exit 14468 -q, --quiet, --silent 14469 do not print progress messages 14470 -d, --debug don't remove temporary files 14471 --recheck update $as_me by reconfiguring in the same conditions 14472 --file=FILE[:TEMPLATE] 14473 instantiate the configuration file FILE 14474 --header=FILE[:TEMPLATE] 14475 instantiate the configuration header FILE 14476 14477Configuration files: 14478$config_files 14479 14480Configuration headers: 14481$config_headers 14482 14483Configuration commands: 14484$config_commands 14485 14486Report bugs to <https://github.com/pkgconf/pkgconf/issues/new>." 14487 14488_ACEOF 14489ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 14490ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 14491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14492ac_cs_config='$ac_cs_config_escaped' 14493ac_cs_version="\\ 14494pkgconf config.status 1.8.0 14495configured by $0, generated by GNU Autoconf 2.71, 14496 with options \\"\$ac_cs_config\\" 14497 14498Copyright (C) 2021 Free Software Foundation, Inc. 14499This config.status script is free software; the Free Software Foundation 14500gives unlimited permission to copy, distribute and modify it." 14501 14502ac_pwd='$ac_pwd' 14503srcdir='$srcdir' 14504INSTALL='$INSTALL' 14505MKDIR_P='$MKDIR_P' 14506AWK='$AWK' 14507test -n "\$AWK" || AWK=awk 14508_ACEOF 14509 14510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14511# The default lists apply if the user does not specify any file. 14512ac_need_defaults=: 14513while test $# != 0 14514do 14515 case $1 in 14516 --*=?*) 14517 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14518 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14519 ac_shift=: 14520 ;; 14521 --*=) 14522 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14523 ac_optarg= 14524 ac_shift=: 14525 ;; 14526 *) 14527 ac_option=$1 14528 ac_optarg=$2 14529 ac_shift=shift 14530 ;; 14531 esac 14532 14533 case $ac_option in 14534 # Handling of the options. 14535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14536 ac_cs_recheck=: ;; 14537 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14538 printf "%s\n" "$ac_cs_version"; exit ;; 14539 --config | --confi | --conf | --con | --co | --c ) 14540 printf "%s\n" "$ac_cs_config"; exit ;; 14541 --debug | --debu | --deb | --de | --d | -d ) 14542 debug=: ;; 14543 --file | --fil | --fi | --f ) 14544 $ac_shift 14545 case $ac_optarg in 14546 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14547 '') as_fn_error $? "missing file argument" ;; 14548 esac 14549 as_fn_append CONFIG_FILES " '$ac_optarg'" 14550 ac_need_defaults=false;; 14551 --header | --heade | --head | --hea ) 14552 $ac_shift 14553 case $ac_optarg in 14554 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14555 esac 14556 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14557 ac_need_defaults=false;; 14558 --he | --h) 14559 # Conflict between --help and --header 14560 as_fn_error $? "ambiguous option: \`$1' 14561Try \`$0 --help' for more information.";; 14562 --help | --hel | -h ) 14563 printf "%s\n" "$ac_cs_usage"; exit ;; 14564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14565 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14566 ac_cs_silent=: ;; 14567 14568 # This is an error. 14569 -*) as_fn_error $? "unrecognized option: \`$1' 14570Try \`$0 --help' for more information." ;; 14571 14572 *) as_fn_append ac_config_targets " $1" 14573 ac_need_defaults=false ;; 14574 14575 esac 14576 shift 14577done 14578 14579ac_configure_extra_args= 14580 14581if $ac_cs_silent; then 14582 exec 6>/dev/null 14583 ac_configure_extra_args="$ac_configure_extra_args --silent" 14584fi 14585 14586_ACEOF 14587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14588if \$ac_cs_recheck; then 14589 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14590 shift 14591 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 14592 CONFIG_SHELL='$SHELL' 14593 export CONFIG_SHELL 14594 exec "\$@" 14595fi 14596 14597_ACEOF 14598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14599exec 5>>config.log 14600{ 14601 echo 14602 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14603## Running $as_me. ## 14604_ASBOX 14605 printf "%s\n" "$ac_log" 14606} >&5 14607 14608_ACEOF 14609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14610# 14611# INIT-COMMANDS 14612# 14613AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14614 14615 14616# The HP-UX ksh and POSIX shell print the target directory to stdout 14617# if CDPATH is set. 14618(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14619 14620sed_quote_subst='$sed_quote_subst' 14621double_quote_subst='$double_quote_subst' 14622delay_variable_subst='$delay_variable_subst' 14623macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14624macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14625enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14626enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14627pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14628enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14629shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14630SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14631ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14632PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14633host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14634host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14635host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14636build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14637build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14638build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14639SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14640Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14641GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14642EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14643FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14644LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14645NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14646LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14647max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14648ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14649exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14650lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14651lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14652lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14653lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14654lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14655reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14656reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14657OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14658deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14659file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14660file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14661want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14662DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14663sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14664AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14665AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14666archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14667STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14668RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14669old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14670old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14671old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14672lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14673CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14674CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14675compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14676GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14677lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14678lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14679lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14680lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14681lt_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"`' 14682lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14683nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14684lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14685lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14686objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14687MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14688lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14689lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14690lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14691lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14692lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14693need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14694MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14695DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14696NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14697LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14698OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14699OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14700libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14701shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14702extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14703archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14704enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14705export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14706whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14707compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14708old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14709old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14710archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14711archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14712module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14713module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14714with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14715allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14716no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14717hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14718hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14719hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14720hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14721hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14722hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14723hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14724inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14725link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14726always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14727export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14728exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14729include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14730prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14731postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14732file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14733variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14734need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14735need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14736version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14737runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14738shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14739shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14740libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14741library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14742soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14743install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14744postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14745postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14746finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14747finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14748hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14749sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14750configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14751configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14752hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14753enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14754enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14755enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14756old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14757striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14758 14759LTCC='$LTCC' 14760LTCFLAGS='$LTCFLAGS' 14761compiler='$compiler_DEFAULT' 14762 14763# A function that is used when there is no print builtin or printf. 14764func_fallback_echo () 14765{ 14766 eval 'cat <<_LTECHO_EOF 14767\$1 14768_LTECHO_EOF' 14769} 14770 14771# Quote evaled strings. 14772for var in SHELL \ 14773ECHO \ 14774PATH_SEPARATOR \ 14775SED \ 14776GREP \ 14777EGREP \ 14778FGREP \ 14779LD \ 14780NM \ 14781LN_S \ 14782lt_SP2NL \ 14783lt_NL2SP \ 14784reload_flag \ 14785OBJDUMP \ 14786deplibs_check_method \ 14787file_magic_cmd \ 14788file_magic_glob \ 14789want_nocaseglob \ 14790DLLTOOL \ 14791sharedlib_from_linklib_cmd \ 14792AR \ 14793AR_FLAGS \ 14794archiver_list_spec \ 14795STRIP \ 14796RANLIB \ 14797CC \ 14798CFLAGS \ 14799compiler \ 14800lt_cv_sys_global_symbol_pipe \ 14801lt_cv_sys_global_symbol_to_cdecl \ 14802lt_cv_sys_global_symbol_to_import \ 14803lt_cv_sys_global_symbol_to_c_name_address \ 14804lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14805lt_cv_nm_interface \ 14806nm_file_list_spec \ 14807lt_cv_truncate_bin \ 14808lt_prog_compiler_no_builtin_flag \ 14809lt_prog_compiler_pic \ 14810lt_prog_compiler_wl \ 14811lt_prog_compiler_static \ 14812lt_cv_prog_compiler_c_o \ 14813need_locks \ 14814MANIFEST_TOOL \ 14815DSYMUTIL \ 14816NMEDIT \ 14817LIPO \ 14818OTOOL \ 14819OTOOL64 \ 14820shrext_cmds \ 14821export_dynamic_flag_spec \ 14822whole_archive_flag_spec \ 14823compiler_needs_object \ 14824with_gnu_ld \ 14825allow_undefined_flag \ 14826no_undefined_flag \ 14827hardcode_libdir_flag_spec \ 14828hardcode_libdir_separator \ 14829exclude_expsyms \ 14830include_expsyms \ 14831file_list_spec \ 14832variables_saved_for_relink \ 14833libname_spec \ 14834library_names_spec \ 14835soname_spec \ 14836install_override_mode \ 14837finish_eval \ 14838old_striplib \ 14839striplib; do 14840 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14841 *[\\\\\\\`\\"\\\$]*) 14842 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14843 ;; 14844 *) 14845 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14846 ;; 14847 esac 14848done 14849 14850# Double-quote double-evaled strings. 14851for var in reload_cmds \ 14852old_postinstall_cmds \ 14853old_postuninstall_cmds \ 14854old_archive_cmds \ 14855extract_expsyms_cmds \ 14856old_archive_from_new_cmds \ 14857old_archive_from_expsyms_cmds \ 14858archive_cmds \ 14859archive_expsym_cmds \ 14860module_cmds \ 14861module_expsym_cmds \ 14862export_symbols_cmds \ 14863prelink_cmds \ 14864postlink_cmds \ 14865postinstall_cmds \ 14866postuninstall_cmds \ 14867finish_cmds \ 14868sys_lib_search_path_spec \ 14869configure_time_dlsearch_path \ 14870configure_time_lt_sys_library_path; do 14871 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14872 *[\\\\\\\`\\"\\\$]*) 14873 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14874 ;; 14875 *) 14876 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14877 ;; 14878 esac 14879done 14880 14881ac_aux_dir='$ac_aux_dir' 14882 14883# See if we are running on zsh, and set the options that allow our 14884# commands through without removal of \ escapes INIT. 14885if test -n "\${ZSH_VERSION+set}"; then 14886 setopt NO_GLOB_SUBST 14887fi 14888 14889 14890 PACKAGE='$PACKAGE' 14891 VERSION='$VERSION' 14892 RM='$RM' 14893 ofile='$ofile' 14894 14895 14896 14897 14898_ACEOF 14899 14900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14901 14902# Handling of arguments. 14903for ac_config_target in $ac_config_targets 14904do 14905 case $ac_config_target in 14906 "libpkgconf/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libpkgconf/config.h" ;; 14907 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14908 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14909 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14910 "Kyuafile") CONFIG_FILES="$CONFIG_FILES Kyuafile" ;; 14911 "libpkgconf.pc") CONFIG_FILES="$CONFIG_FILES libpkgconf.pc" ;; 14912 "tests/Kyuafile") CONFIG_FILES="$CONFIG_FILES tests/Kyuafile" ;; 14913 "tests/test_env.sh") CONFIG_FILES="$CONFIG_FILES tests/test_env.sh" ;; 14914 14915 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14916 esac 14917done 14918 14919 14920# If the user did not use the arguments to specify the items to instantiate, 14921# then the envvar interface is used. Set only those that are not. 14922# We use the long form for the default assignment because of an extremely 14923# bizarre bug on SunOS 4.1.3. 14924if $ac_need_defaults; then 14925 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 14926 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 14927 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 14928fi 14929 14930# Have a temporary directory for convenience. Make it in the build tree 14931# simply because there is no reason against having it here, and in addition, 14932# creating and moving files from /tmp can sometimes cause problems. 14933# Hook for its removal unless debugging. 14934# Note that there is a small window in which the directory will not be cleaned: 14935# after its creation but before its name has been assigned to `$tmp'. 14936$debug || 14937{ 14938 tmp= ac_tmp= 14939 trap 'exit_status=$? 14940 : "${ac_tmp:=$tmp}" 14941 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14942' 0 14943 trap 'as_fn_exit 1' 1 2 13 15 14944} 14945# Create a (secure) tmp directory for tmp files. 14946 14947{ 14948 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14949 test -d "$tmp" 14950} || 14951{ 14952 tmp=./conf$$-$RANDOM 14953 (umask 077 && mkdir "$tmp") 14954} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14955ac_tmp=$tmp 14956 14957# Set up the scripts for CONFIG_FILES section. 14958# No need to generate them if there are no CONFIG_FILES. 14959# This happens for instance with `./config.status config.h'. 14960if test -n "$CONFIG_FILES"; then 14961 14962 14963ac_cr=`echo X | tr X '\015'` 14964# On cygwin, bash can eat \r inside `` if the user requested igncr. 14965# But we know of no other shell where ac_cr would be empty at this 14966# point, so we can use a bashism as a fallback. 14967if test "x$ac_cr" = x; then 14968 eval ac_cr=\$\'\\r\' 14969fi 14970ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14971if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14972 ac_cs_awk_cr='\\r' 14973else 14974 ac_cs_awk_cr=$ac_cr 14975fi 14976 14977echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14978_ACEOF 14979 14980 14981{ 14982 echo "cat >conf$$subs.awk <<_ACEOF" && 14983 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14984 echo "_ACEOF" 14985} >conf$$subs.sh || 14986 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14987ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14988ac_delim='%!_!# ' 14989for ac_last_try in false false false false false :; do 14990 . ./conf$$subs.sh || 14991 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14992 14993 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14994 if test $ac_delim_n = $ac_delim_num; then 14995 break 14996 elif $ac_last_try; then 14997 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14998 else 14999 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15000 fi 15001done 15002rm -f conf$$subs.sh 15003 15004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15005cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15006_ACEOF 15007sed -n ' 15008h 15009s/^/S["/; s/!.*/"]=/ 15010p 15011g 15012s/^[^!]*!// 15013:repl 15014t repl 15015s/'"$ac_delim"'$// 15016t delim 15017:nl 15018h 15019s/\(.\{148\}\)..*/\1/ 15020t more1 15021s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15022p 15023n 15024b repl 15025:more1 15026s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15027p 15028g 15029s/.\{148\}// 15030t nl 15031:delim 15032h 15033s/\(.\{148\}\)..*/\1/ 15034t more2 15035s/["\\]/\\&/g; s/^/"/; s/$/"/ 15036p 15037b 15038:more2 15039s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15040p 15041g 15042s/.\{148\}// 15043t delim 15044' <conf$$subs.awk | sed ' 15045/^[^""]/{ 15046 N 15047 s/\n// 15048} 15049' >>$CONFIG_STATUS || ac_write_fail=1 15050rm -f conf$$subs.awk 15051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15052_ACAWK 15053cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15054 for (key in S) S_is_set[key] = 1 15055 FS = "" 15056 15057} 15058{ 15059 line = $ 0 15060 nfields = split(line, field, "@") 15061 substed = 0 15062 len = length(field[1]) 15063 for (i = 2; i < nfields; i++) { 15064 key = field[i] 15065 keylen = length(key) 15066 if (S_is_set[key]) { 15067 value = S[key] 15068 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15069 len += length(value) + length(field[++i]) 15070 substed = 1 15071 } else 15072 len += 1 + keylen 15073 } 15074 15075 print line 15076} 15077 15078_ACAWK 15079_ACEOF 15080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15081if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15082 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15083else 15084 cat 15085fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15086 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15087_ACEOF 15088 15089# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15090# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15091# trailing colons and then remove the whole line if VPATH becomes empty 15092# (actually we leave an empty line to preserve line numbers). 15093if test "x$srcdir" = x.; then 15094 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15095h 15096s/// 15097s/^/:/ 15098s/[ ]*$/:/ 15099s/:\$(srcdir):/:/g 15100s/:\${srcdir}:/:/g 15101s/:@srcdir@:/:/g 15102s/^:*// 15103s/:*$// 15104x 15105s/\(=[ ]*\).*/\1/ 15106G 15107s/\n// 15108s/^[^=]*=[ ]*$// 15109}' 15110fi 15111 15112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15113fi # test -n "$CONFIG_FILES" 15114 15115# Set up the scripts for CONFIG_HEADERS section. 15116# No need to generate them if there are no CONFIG_HEADERS. 15117# This happens for instance with `./config.status Makefile'. 15118if test -n "$CONFIG_HEADERS"; then 15119cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15120BEGIN { 15121_ACEOF 15122 15123# Transform confdefs.h into an awk script `defines.awk', embedded as 15124# here-document in config.status, that substitutes the proper values into 15125# config.h.in to produce config.h. 15126 15127# Create a delimiter string that does not exist in confdefs.h, to ease 15128# handling of long lines. 15129ac_delim='%!_!# ' 15130for ac_last_try in false false :; do 15131 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15132 if test -z "$ac_tt"; then 15133 break 15134 elif $ac_last_try; then 15135 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15136 else 15137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15138 fi 15139done 15140 15141# For the awk script, D is an array of macro values keyed by name, 15142# likewise P contains macro parameters if any. Preserve backslash 15143# newline sequences. 15144 15145ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15146sed -n ' 15147s/.\{148\}/&'"$ac_delim"'/g 15148t rset 15149:rset 15150s/^[ ]*#[ ]*define[ ][ ]*/ / 15151t def 15152d 15153:def 15154s/\\$// 15155t bsnl 15156s/["\\]/\\&/g 15157s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15158D["\1"]=" \3"/p 15159s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15160d 15161:bsnl 15162s/["\\]/\\&/g 15163s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15164D["\1"]=" \3\\\\\\n"\\/p 15165t cont 15166s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15167t cont 15168d 15169:cont 15170n 15171s/.\{148\}/&'"$ac_delim"'/g 15172t clear 15173:clear 15174s/\\$// 15175t bsnlc 15176s/["\\]/\\&/g; s/^/"/; s/$/"/p 15177d 15178:bsnlc 15179s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15180b cont 15181' <confdefs.h | sed ' 15182s/'"$ac_delim"'/"\\\ 15183"/g' >>$CONFIG_STATUS || ac_write_fail=1 15184 15185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15186 for (key in D) D_is_set[key] = 1 15187 FS = "" 15188} 15189/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15190 line = \$ 0 15191 split(line, arg, " ") 15192 if (arg[1] == "#") { 15193 defundef = arg[2] 15194 mac1 = arg[3] 15195 } else { 15196 defundef = substr(arg[1], 2) 15197 mac1 = arg[2] 15198 } 15199 split(mac1, mac2, "(") #) 15200 macro = mac2[1] 15201 prefix = substr(line, 1, index(line, defundef) - 1) 15202 if (D_is_set[macro]) { 15203 # Preserve the white space surrounding the "#". 15204 print prefix "define", macro P[macro] D[macro] 15205 next 15206 } else { 15207 # Replace #undef with comments. This is necessary, for example, 15208 # in the case of _POSIX_SOURCE, which is predefined and required 15209 # on some systems where configure will not decide to define it. 15210 if (defundef == "undef") { 15211 print "/*", prefix defundef, macro, "*/" 15212 next 15213 } 15214 } 15215} 15216{ print } 15217_ACAWK 15218_ACEOF 15219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15220 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15221fi # test -n "$CONFIG_HEADERS" 15222 15223 15224eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15225shift 15226for ac_tag 15227do 15228 case $ac_tag in 15229 :[FHLC]) ac_mode=$ac_tag; continue;; 15230 esac 15231 case $ac_mode$ac_tag in 15232 :[FHL]*:*);; 15233 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15234 :[FH]-) ac_tag=-:-;; 15235 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15236 esac 15237 ac_save_IFS=$IFS 15238 IFS=: 15239 set x $ac_tag 15240 IFS=$ac_save_IFS 15241 shift 15242 ac_file=$1 15243 shift 15244 15245 case $ac_mode in 15246 :L) ac_source=$1;; 15247 :[FH]) 15248 ac_file_inputs= 15249 for ac_f 15250 do 15251 case $ac_f in 15252 -) ac_f="$ac_tmp/stdin";; 15253 *) # Look for the file first in the build tree, then in the source tree 15254 # (if the path is not absolute). The absolute path cannot be DOS-style, 15255 # because $ac_f cannot contain `:'. 15256 test -f "$ac_f" || 15257 case $ac_f in 15258 [\\/$]*) false;; 15259 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15260 esac || 15261 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15262 esac 15263 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15264 as_fn_append ac_file_inputs " '$ac_f'" 15265 done 15266 15267 # Let's still pretend it is `configure' which instantiates (i.e., don't 15268 # use $as_me), people would be surprised to read: 15269 # /* config.h. Generated by config.status. */ 15270 configure_input='Generated from '` 15271 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15272 `' by configure.' 15273 if test x"$ac_file" != x-; then 15274 configure_input="$ac_file. $configure_input" 15275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15276printf "%s\n" "$as_me: creating $ac_file" >&6;} 15277 fi 15278 # Neutralize special characters interpreted by sed in replacement strings. 15279 case $configure_input in #( 15280 *\&* | *\|* | *\\* ) 15281 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 15282 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15283 *) ac_sed_conf_input=$configure_input;; 15284 esac 15285 15286 case $ac_tag in 15287 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15288 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15289 esac 15290 ;; 15291 esac 15292 15293 ac_dir=`$as_dirname -- "$ac_file" || 15294$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15295 X"$ac_file" : 'X\(//\)[^/]' \| \ 15296 X"$ac_file" : 'X\(//\)$' \| \ 15297 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15298printf "%s\n" X"$ac_file" | 15299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15300 s//\1/ 15301 q 15302 } 15303 /^X\(\/\/\)[^/].*/{ 15304 s//\1/ 15305 q 15306 } 15307 /^X\(\/\/\)$/{ 15308 s//\1/ 15309 q 15310 } 15311 /^X\(\/\).*/{ 15312 s//\1/ 15313 q 15314 } 15315 s/.*/./; q'` 15316 as_dir="$ac_dir"; as_fn_mkdir_p 15317 ac_builddir=. 15318 15319case "$ac_dir" in 15320.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15321*) 15322 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 15323 # A ".." for each directory in $ac_dir_suffix. 15324 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15325 case $ac_top_builddir_sub in 15326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15328 esac ;; 15329esac 15330ac_abs_top_builddir=$ac_pwd 15331ac_abs_builddir=$ac_pwd$ac_dir_suffix 15332# for backward compatibility: 15333ac_top_builddir=$ac_top_build_prefix 15334 15335case $srcdir in 15336 .) # We are building in place. 15337 ac_srcdir=. 15338 ac_top_srcdir=$ac_top_builddir_sub 15339 ac_abs_top_srcdir=$ac_pwd ;; 15340 [\\/]* | ?:[\\/]* ) # Absolute name. 15341 ac_srcdir=$srcdir$ac_dir_suffix; 15342 ac_top_srcdir=$srcdir 15343 ac_abs_top_srcdir=$srcdir ;; 15344 *) # Relative name. 15345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15346 ac_top_srcdir=$ac_top_build_prefix$srcdir 15347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15348esac 15349ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15350 15351 15352 case $ac_mode in 15353 :F) 15354 # 15355 # CONFIG_FILE 15356 # 15357 15358 case $INSTALL in 15359 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15360 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15361 esac 15362 ac_MKDIR_P=$MKDIR_P 15363 case $MKDIR_P in 15364 [\\/$]* | ?:[\\/]* ) ;; 15365 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15366 esac 15367_ACEOF 15368 15369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15370# If the template does not know about datarootdir, expand it. 15371# FIXME: This hack should be removed a few years after 2.60. 15372ac_datarootdir_hack=; ac_datarootdir_seen= 15373ac_sed_dataroot=' 15374/datarootdir/ { 15375 p 15376 q 15377} 15378/@datadir@/p 15379/@docdir@/p 15380/@infodir@/p 15381/@localedir@/p 15382/@mandir@/p' 15383case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15384*datarootdir*) ac_datarootdir_seen=yes;; 15385*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15387printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15388_ACEOF 15389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15390 ac_datarootdir_hack=' 15391 s&@datadir@&$datadir&g 15392 s&@docdir@&$docdir&g 15393 s&@infodir@&$infodir&g 15394 s&@localedir@&$localedir&g 15395 s&@mandir@&$mandir&g 15396 s&\\\${datarootdir}&$datarootdir&g' ;; 15397esac 15398_ACEOF 15399 15400# Neutralize VPATH when `$srcdir' = `.'. 15401# Shell code in configure.ac might set extrasub. 15402# FIXME: do we really want to maintain this feature? 15403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15404ac_sed_extra="$ac_vpsub 15405$extrasub 15406_ACEOF 15407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15408:t 15409/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15410s|@configure_input@|$ac_sed_conf_input|;t t 15411s&@top_builddir@&$ac_top_builddir_sub&;t t 15412s&@top_build_prefix@&$ac_top_build_prefix&;t t 15413s&@srcdir@&$ac_srcdir&;t t 15414s&@abs_srcdir@&$ac_abs_srcdir&;t t 15415s&@top_srcdir@&$ac_top_srcdir&;t t 15416s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15417s&@builddir@&$ac_builddir&;t t 15418s&@abs_builddir@&$ac_abs_builddir&;t t 15419s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15420s&@INSTALL@&$ac_INSTALL&;t t 15421s&@MKDIR_P@&$ac_MKDIR_P&;t t 15422$ac_datarootdir_hack 15423" 15424eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15425 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15426 15427test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15428 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15429 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15430 "$ac_tmp/out"`; test -z "$ac_out"; } && 15431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15432which seems to be undefined. Please make sure it is defined" >&5 15433printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15434which seems to be undefined. Please make sure it is defined" >&2;} 15435 15436 rm -f "$ac_tmp/stdin" 15437 case $ac_file in 15438 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15439 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15440 esac \ 15441 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15442 ;; 15443 :H) 15444 # 15445 # CONFIG_HEADER 15446 # 15447 if test x"$ac_file" != x-; then 15448 { 15449 printf "%s\n" "/* $configure_input */" >&1 \ 15450 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15451 } >"$ac_tmp/config.h" \ 15452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15453 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15455printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 15456 else 15457 rm -f "$ac_file" 15458 mv "$ac_tmp/config.h" "$ac_file" \ 15459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15460 fi 15461 else 15462 printf "%s\n" "/* $configure_input */" >&1 \ 15463 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15464 || as_fn_error $? "could not create -" "$LINENO" 5 15465 fi 15466# Compute "$ac_file"'s index in $config_headers. 15467_am_arg="$ac_file" 15468_am_stamp_count=1 15469for _am_header in $config_headers :; do 15470 case $_am_header in 15471 $_am_arg | $_am_arg:* ) 15472 break ;; 15473 * ) 15474 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15475 esac 15476done 15477echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15478$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15479 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15480 X"$_am_arg" : 'X\(//\)$' \| \ 15481 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15482printf "%s\n" X"$_am_arg" | 15483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15484 s//\1/ 15485 q 15486 } 15487 /^X\(\/\/\)[^/].*/{ 15488 s//\1/ 15489 q 15490 } 15491 /^X\(\/\/\)$/{ 15492 s//\1/ 15493 q 15494 } 15495 /^X\(\/\).*/{ 15496 s//\1/ 15497 q 15498 } 15499 s/.*/./; q'`/stamp-h$_am_stamp_count 15500 ;; 15501 15502 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15503printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 15504 ;; 15505 esac 15506 15507 15508 case $ac_file$ac_mode in 15509 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15510 # Older Autoconf quotes --file arguments for eval, but not when files 15511 # are listed without --file. Let's play safe and only enable the eval 15512 # if we detect the quoting. 15513 # TODO: see whether this extra hack can be removed once we start 15514 # requiring Autoconf 2.70 or later. 15515 case $CONFIG_FILES in #( 15516 *\'*) : 15517 eval set x "$CONFIG_FILES" ;; #( 15518 *) : 15519 set x $CONFIG_FILES ;; #( 15520 *) : 15521 ;; 15522esac 15523 shift 15524 # Used to flag and report bootstrapping failures. 15525 am_rc=0 15526 for am_mf 15527 do 15528 # Strip MF so we end up with the name of the file. 15529 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 15530 # Check whether this is an Automake generated Makefile which includes 15531 # dependency-tracking related rules and includes. 15532 # Grep'ing the whole file directly is not great: AIX grep has a line 15533 # limit of 2048, but all sed's we know have understand at least 4000. 15534 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15535 || continue 15536 am_dirpart=`$as_dirname -- "$am_mf" || 15537$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15538 X"$am_mf" : 'X\(//\)[^/]' \| \ 15539 X"$am_mf" : 'X\(//\)$' \| \ 15540 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15541printf "%s\n" X"$am_mf" | 15542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15543 s//\1/ 15544 q 15545 } 15546 /^X\(\/\/\)[^/].*/{ 15547 s//\1/ 15548 q 15549 } 15550 /^X\(\/\/\)$/{ 15551 s//\1/ 15552 q 15553 } 15554 /^X\(\/\).*/{ 15555 s//\1/ 15556 q 15557 } 15558 s/.*/./; q'` 15559 am_filepart=`$as_basename -- "$am_mf" || 15560$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15561 X"$am_mf" : 'X\(//\)$' \| \ 15562 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15563printf "%s\n" X/"$am_mf" | 15564 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15565 s//\1/ 15566 q 15567 } 15568 /^X\/\(\/\/\)$/{ 15569 s//\1/ 15570 q 15571 } 15572 /^X\/\(\/\).*/{ 15573 s//\1/ 15574 q 15575 } 15576 s/.*/./; q'` 15577 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15578 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15579 | $MAKE -f - am--depfiles" >&5 15580 (cd "$am_dirpart" \ 15581 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15582 | $MAKE -f - am--depfiles) >&5 2>&5 15583 ac_status=$? 15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15585 (exit $ac_status); } || am_rc=$? 15586 done 15587 if test $am_rc -ne 0; then 15588 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15589printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15590as_fn_error $? "Something went wrong bootstrapping makefile fragments 15591 for automatic dependency tracking. If GNU make was not used, consider 15592 re-running the configure script with MAKE=\"gmake\" (or whatever is 15593 necessary). You can also try re-running configure with the 15594 '--disable-dependency-tracking' option to at least be able to build 15595 the package (albeit without support for automatic dependency tracking). 15596See \`config.log' for more details" "$LINENO" 5; } 15597 fi 15598 { am_dirpart=; unset am_dirpart;} 15599 { am_filepart=; unset am_filepart;} 15600 { am_mf=; unset am_mf;} 15601 { am_rc=; unset am_rc;} 15602 rm -f conftest-deps.mk 15603} 15604 ;; 15605 "libtool":C) 15606 15607 # See if we are running on zsh, and set the options that allow our 15608 # commands through without removal of \ escapes. 15609 if test -n "${ZSH_VERSION+set}"; then 15610 setopt NO_GLOB_SUBST 15611 fi 15612 15613 cfgfile=${ofile}T 15614 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15615 $RM "$cfgfile" 15616 15617 cat <<_LT_EOF >> "$cfgfile" 15618#! $SHELL 15619# Generated automatically by $as_me ($PACKAGE) $VERSION 15620# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15621# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15622 15623# Provide generalized library-building support services. 15624# Written by Gordon Matzigkeit, 1996 15625 15626# Copyright (C) 2014 Free Software Foundation, Inc. 15627# This is free software; see the source for copying conditions. There is NO 15628# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15629 15630# GNU Libtool is free software; you can redistribute it and/or modify 15631# it under the terms of the GNU General Public License as published by 15632# the Free Software Foundation; either version 2 of of the License, or 15633# (at your option) any later version. 15634# 15635# As a special exception to the GNU General Public License, if you 15636# distribute this file as part of a program or library that is built 15637# using GNU Libtool, you may include this file under the same 15638# distribution terms that you use for the rest of that program. 15639# 15640# GNU Libtool is distributed in the hope that it will be useful, but 15641# WITHOUT ANY WARRANTY; without even the implied warranty of 15642# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15643# GNU General Public License for more details. 15644# 15645# You should have received a copy of the GNU General Public License 15646# along with this program. If not, see <http://www.gnu.org/licenses/>. 15647 15648 15649# The names of the tagged configurations supported by this script. 15650available_tags='' 15651 15652# Configured defaults for sys_lib_dlsearch_path munging. 15653: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15654 15655# ### BEGIN LIBTOOL CONFIG 15656 15657# Which release of libtool.m4 was used? 15658macro_version=$macro_version 15659macro_revision=$macro_revision 15660 15661# Whether or not to build shared libraries. 15662build_libtool_libs=$enable_shared 15663 15664# Whether or not to build static libraries. 15665build_old_libs=$enable_static 15666 15667# What type of objects to build. 15668pic_mode=$pic_mode 15669 15670# Whether or not to optimize for fast installation. 15671fast_install=$enable_fast_install 15672 15673# Shared archive member basename,for filename based shared library versioning on AIX. 15674shared_archive_member_spec=$shared_archive_member_spec 15675 15676# Shell to use when invoking shell scripts. 15677SHELL=$lt_SHELL 15678 15679# An echo program that protects backslashes. 15680ECHO=$lt_ECHO 15681 15682# The PATH separator for the build system. 15683PATH_SEPARATOR=$lt_PATH_SEPARATOR 15684 15685# The host system. 15686host_alias=$host_alias 15687host=$host 15688host_os=$host_os 15689 15690# The build system. 15691build_alias=$build_alias 15692build=$build 15693build_os=$build_os 15694 15695# A sed program that does not truncate output. 15696SED=$lt_SED 15697 15698# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15699Xsed="\$SED -e 1s/^X//" 15700 15701# A grep program that handles long lines. 15702GREP=$lt_GREP 15703 15704# An ERE matcher. 15705EGREP=$lt_EGREP 15706 15707# A literal string matcher. 15708FGREP=$lt_FGREP 15709 15710# A BSD- or MS-compatible name lister. 15711NM=$lt_NM 15712 15713# Whether we need soft or hard links. 15714LN_S=$lt_LN_S 15715 15716# What is the maximum length of a command? 15717max_cmd_len=$max_cmd_len 15718 15719# Object file suffix (normally "o"). 15720objext=$ac_objext 15721 15722# Executable file suffix (normally ""). 15723exeext=$exeext 15724 15725# whether the shell understands "unset". 15726lt_unset=$lt_unset 15727 15728# turn spaces into newlines. 15729SP2NL=$lt_lt_SP2NL 15730 15731# turn newlines into spaces. 15732NL2SP=$lt_lt_NL2SP 15733 15734# convert \$build file names to \$host format. 15735to_host_file_cmd=$lt_cv_to_host_file_cmd 15736 15737# convert \$build files to toolchain format. 15738to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15739 15740# An object symbol dumper. 15741OBJDUMP=$lt_OBJDUMP 15742 15743# Method to check whether dependent libraries are shared objects. 15744deplibs_check_method=$lt_deplibs_check_method 15745 15746# Command to use when deplibs_check_method = "file_magic". 15747file_magic_cmd=$lt_file_magic_cmd 15748 15749# How to find potential files when deplibs_check_method = "file_magic". 15750file_magic_glob=$lt_file_magic_glob 15751 15752# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15753want_nocaseglob=$lt_want_nocaseglob 15754 15755# DLL creation program. 15756DLLTOOL=$lt_DLLTOOL 15757 15758# Command to associate shared and link libraries. 15759sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15760 15761# The archiver. 15762AR=$lt_AR 15763 15764# Flags to create an archive. 15765AR_FLAGS=$lt_AR_FLAGS 15766 15767# How to feed a file listing to the archiver. 15768archiver_list_spec=$lt_archiver_list_spec 15769 15770# A symbol stripping program. 15771STRIP=$lt_STRIP 15772 15773# Commands used to install an old-style archive. 15774RANLIB=$lt_RANLIB 15775old_postinstall_cmds=$lt_old_postinstall_cmds 15776old_postuninstall_cmds=$lt_old_postuninstall_cmds 15777 15778# Whether to use a lock for old archive extraction. 15779lock_old_archive_extraction=$lock_old_archive_extraction 15780 15781# A C compiler. 15782LTCC=$lt_CC 15783 15784# LTCC compiler flags. 15785LTCFLAGS=$lt_CFLAGS 15786 15787# Take the output of nm and produce a listing of raw symbols and C names. 15788global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15789 15790# Transform the output of nm in a proper C declaration. 15791global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15792 15793# Transform the output of nm into a list of symbols to manually relocate. 15794global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15795 15796# Transform the output of nm in a C name address pair. 15797global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15798 15799# Transform the output of nm in a C name address pair when lib prefix is needed. 15800global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15801 15802# The name lister interface. 15803nm_interface=$lt_lt_cv_nm_interface 15804 15805# Specify filename containing input files for \$NM. 15806nm_file_list_spec=$lt_nm_file_list_spec 15807 15808# The root where to search for dependent libraries,and where our libraries should be installed. 15809lt_sysroot=$lt_sysroot 15810 15811# Command to truncate a binary pipe. 15812lt_truncate_bin=$lt_lt_cv_truncate_bin 15813 15814# The name of the directory that contains temporary libtool files. 15815objdir=$objdir 15816 15817# Used to examine libraries when file_magic_cmd begins with "file". 15818MAGIC_CMD=$MAGIC_CMD 15819 15820# Must we lock files when doing compilation? 15821need_locks=$lt_need_locks 15822 15823# Manifest tool. 15824MANIFEST_TOOL=$lt_MANIFEST_TOOL 15825 15826# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15827DSYMUTIL=$lt_DSYMUTIL 15828 15829# Tool to change global to local symbols on Mac OS X. 15830NMEDIT=$lt_NMEDIT 15831 15832# Tool to manipulate fat objects and archives on Mac OS X. 15833LIPO=$lt_LIPO 15834 15835# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15836OTOOL=$lt_OTOOL 15837 15838# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15839OTOOL64=$lt_OTOOL64 15840 15841# Old archive suffix (normally "a"). 15842libext=$libext 15843 15844# Shared library suffix (normally ".so"). 15845shrext_cmds=$lt_shrext_cmds 15846 15847# The commands to extract the exported symbol list from a shared archive. 15848extract_expsyms_cmds=$lt_extract_expsyms_cmds 15849 15850# Variables whose values should be saved in libtool wrapper scripts and 15851# restored at link time. 15852variables_saved_for_relink=$lt_variables_saved_for_relink 15853 15854# Do we need the "lib" prefix for modules? 15855need_lib_prefix=$need_lib_prefix 15856 15857# Do we need a version for libraries? 15858need_version=$need_version 15859 15860# Library versioning type. 15861version_type=$version_type 15862 15863# Shared library runtime path variable. 15864runpath_var=$runpath_var 15865 15866# Shared library path variable. 15867shlibpath_var=$shlibpath_var 15868 15869# Is shlibpath searched before the hard-coded library search path? 15870shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15871 15872# Format of library name prefix. 15873libname_spec=$lt_libname_spec 15874 15875# List of archive names. First name is the real one, the rest are links. 15876# The last name is the one that the linker finds with -lNAME 15877library_names_spec=$lt_library_names_spec 15878 15879# The coded name of the library, if different from the real name. 15880soname_spec=$lt_soname_spec 15881 15882# Permission mode override for installation of shared libraries. 15883install_override_mode=$lt_install_override_mode 15884 15885# Command to use after installation of a shared archive. 15886postinstall_cmds=$lt_postinstall_cmds 15887 15888# Command to use after uninstallation of a shared archive. 15889postuninstall_cmds=$lt_postuninstall_cmds 15890 15891# Commands used to finish a libtool library installation in a directory. 15892finish_cmds=$lt_finish_cmds 15893 15894# As "finish_cmds", except a single script fragment to be evaled but 15895# not shown. 15896finish_eval=$lt_finish_eval 15897 15898# Whether we should hardcode library paths into libraries. 15899hardcode_into_libs=$hardcode_into_libs 15900 15901# Compile-time system search path for libraries. 15902sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15903 15904# Detected run-time system search path for libraries. 15905sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15906 15907# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15908configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15909 15910# Whether dlopen is supported. 15911dlopen_support=$enable_dlopen 15912 15913# Whether dlopen of programs is supported. 15914dlopen_self=$enable_dlopen_self 15915 15916# Whether dlopen of statically linked programs is supported. 15917dlopen_self_static=$enable_dlopen_self_static 15918 15919# Commands to strip libraries. 15920old_striplib=$lt_old_striplib 15921striplib=$lt_striplib 15922 15923 15924# The linker used to build libraries. 15925LD=$lt_LD 15926 15927# How to create reloadable object files. 15928reload_flag=$lt_reload_flag 15929reload_cmds=$lt_reload_cmds 15930 15931# Commands used to build an old-style archive. 15932old_archive_cmds=$lt_old_archive_cmds 15933 15934# A language specific compiler. 15935CC=$lt_compiler 15936 15937# Is the compiler the GNU compiler? 15938with_gcc=$GCC 15939 15940# Compiler flag to turn off builtin functions. 15941no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15942 15943# Additional compiler flags for building library objects. 15944pic_flag=$lt_lt_prog_compiler_pic 15945 15946# How to pass a linker flag through the compiler. 15947wl=$lt_lt_prog_compiler_wl 15948 15949# Compiler flag to prevent dynamic linking. 15950link_static_flag=$lt_lt_prog_compiler_static 15951 15952# Does compiler simultaneously support -c and -o options? 15953compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15954 15955# Whether or not to add -lc for building shared libraries. 15956build_libtool_need_lc=$archive_cmds_need_lc 15957 15958# Whether or not to disallow shared libs when runtime libs are static. 15959allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15960 15961# Compiler flag to allow reflexive dlopens. 15962export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15963 15964# Compiler flag to generate shared objects directly from archives. 15965whole_archive_flag_spec=$lt_whole_archive_flag_spec 15966 15967# Whether the compiler copes with passing no objects directly. 15968compiler_needs_object=$lt_compiler_needs_object 15969 15970# Create an old-style archive from a shared archive. 15971old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15972 15973# Create a temporary old-style archive to link instead of a shared archive. 15974old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15975 15976# Commands used to build a shared archive. 15977archive_cmds=$lt_archive_cmds 15978archive_expsym_cmds=$lt_archive_expsym_cmds 15979 15980# Commands used to build a loadable module if different from building 15981# a shared archive. 15982module_cmds=$lt_module_cmds 15983module_expsym_cmds=$lt_module_expsym_cmds 15984 15985# Whether we are building with GNU ld or not. 15986with_gnu_ld=$lt_with_gnu_ld 15987 15988# Flag that allows shared libraries with undefined symbols to be built. 15989allow_undefined_flag=$lt_allow_undefined_flag 15990 15991# Flag that enforces no undefined symbols. 15992no_undefined_flag=$lt_no_undefined_flag 15993 15994# Flag to hardcode \$libdir into a binary during linking. 15995# This must work even if \$libdir does not exist 15996hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15997 15998# Whether we need a single "-rpath" flag with a separated argument. 15999hardcode_libdir_separator=$lt_hardcode_libdir_separator 16000 16001# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16002# DIR into the resulting binary. 16003hardcode_direct=$hardcode_direct 16004 16005# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16006# DIR into the resulting binary and the resulting library dependency is 16007# "absolute",i.e impossible to change by setting \$shlibpath_var if the 16008# library is relocated. 16009hardcode_direct_absolute=$hardcode_direct_absolute 16010 16011# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16012# into the resulting binary. 16013hardcode_minus_L=$hardcode_minus_L 16014 16015# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16016# into the resulting binary. 16017hardcode_shlibpath_var=$hardcode_shlibpath_var 16018 16019# Set to "yes" if building a shared library automatically hardcodes DIR 16020# into the library and all subsequent libraries and executables linked 16021# against it. 16022hardcode_automatic=$hardcode_automatic 16023 16024# Set to yes if linker adds runtime paths of dependent libraries 16025# to runtime path list. 16026inherit_rpath=$inherit_rpath 16027 16028# Whether libtool must link a program against all its dependency libraries. 16029link_all_deplibs=$link_all_deplibs 16030 16031# Set to "yes" if exported symbols are required. 16032always_export_symbols=$always_export_symbols 16033 16034# The commands to list exported symbols. 16035export_symbols_cmds=$lt_export_symbols_cmds 16036 16037# Symbols that should not be listed in the preloaded symbols. 16038exclude_expsyms=$lt_exclude_expsyms 16039 16040# Symbols that must always be exported. 16041include_expsyms=$lt_include_expsyms 16042 16043# Commands necessary for linking programs (against libraries) with templates. 16044prelink_cmds=$lt_prelink_cmds 16045 16046# Commands necessary for finishing linking programs. 16047postlink_cmds=$lt_postlink_cmds 16048 16049# Specify filename containing input files. 16050file_list_spec=$lt_file_list_spec 16051 16052# How to hardcode a shared library path into an executable. 16053hardcode_action=$hardcode_action 16054 16055# ### END LIBTOOL CONFIG 16056 16057_LT_EOF 16058 16059 cat <<'_LT_EOF' >> "$cfgfile" 16060 16061# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 16062 16063# func_munge_path_list VARIABLE PATH 16064# ----------------------------------- 16065# VARIABLE is name of variable containing _space_ separated list of 16066# directories to be munged by the contents of PATH, which is string 16067# having a format: 16068# "DIR[:DIR]:" 16069# string "DIR[ DIR]" will be prepended to VARIABLE 16070# ":DIR[:DIR]" 16071# string "DIR[ DIR]" will be appended to VARIABLE 16072# "DIRP[:DIRP]::[DIRA:]DIRA" 16073# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16074# "DIRA[ DIRA]" will be appended to VARIABLE 16075# "DIR[:DIR]" 16076# VARIABLE will be replaced by "DIR[ DIR]" 16077func_munge_path_list () 16078{ 16079 case x$2 in 16080 x) 16081 ;; 16082 *:) 16083 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16084 ;; 16085 x:*) 16086 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16087 ;; 16088 *::*) 16089 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16090 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16091 ;; 16092 *) 16093 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16094 ;; 16095 esac 16096} 16097 16098 16099# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16100func_cc_basename () 16101{ 16102 for cc_temp in $*""; do 16103 case $cc_temp in 16104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16106 \-*) ;; 16107 *) break;; 16108 esac 16109 done 16110 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16111} 16112 16113 16114# ### END FUNCTIONS SHARED WITH CONFIGURE 16115 16116_LT_EOF 16117 16118 case $host_os in 16119 aix3*) 16120 cat <<\_LT_EOF >> "$cfgfile" 16121# AIX sometimes has problems with the GCC collect2 program. For some 16122# reason, if we set the COLLECT_NAMES environment variable, the problems 16123# vanish in a puff of smoke. 16124if test set != "${COLLECT_NAMES+set}"; then 16125 COLLECT_NAMES= 16126 export COLLECT_NAMES 16127fi 16128_LT_EOF 16129 ;; 16130 esac 16131 16132 16133 16134ltmain=$ac_aux_dir/ltmain.sh 16135 16136 16137 # We use sed instead of cat because bash on DJGPP gets confused if 16138 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16139 # text mode, it properly converts lines to CR/LF. This bash problem 16140 # is reportedly fixed, but why not run on old versions too? 16141 sed '$q' "$ltmain" >> "$cfgfile" \ 16142 || (rm -f "$cfgfile"; exit 1) 16143 16144 mv -f "$cfgfile" "$ofile" || 16145 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16146 chmod +x "$ofile" 16147 16148 ;; 16149 16150 esac 16151done # for ac_tag 16152 16153 16154as_fn_exit 0 16155_ACEOF 16156ac_clean_files=$ac_clean_files_save 16157 16158test $ac_write_fail = 0 || 16159 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16160 16161 16162# configure is writing to config.log, and then calls config.status. 16163# config.status does its own redirection, appending to config.log. 16164# Unfortunately, on DOS this fails, as config.log is still kept open 16165# by configure, so config.status won't be able to write to it; its 16166# output is simply discarded. So we exec the FD to /dev/null, 16167# effectively closing config.log, so it can be properly (re)opened and 16168# appended to by config.status. When coming back to configure, we 16169# need to make the FD available again. 16170if test "$no_create" != yes; then 16171 ac_cs_success=: 16172 ac_config_status_args= 16173 test "$silent" = yes && 16174 ac_config_status_args="$ac_config_status_args --quiet" 16175 exec 5>/dev/null 16176 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16177 exec 5>>config.log 16178 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16179 # would make configure fail if this is the last instruction. 16180 $ac_cs_success || as_fn_exit 1 16181fi 16182if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16184printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16185fi 16186 16187 16188