1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libevdev 1.13.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/libevdev/libevdev/issues/>. 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://gitlab.freedesktop.org/libevdev/libevdev/issues/ 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='libevdev' 624PACKAGE_TARNAME='libevdev' 625PACKAGE_VERSION='1.13.1' 626PACKAGE_STRING='libevdev 1.13.1' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/libevdev/libevdev/issues/' 628PACKAGE_URL='http://freedesktop.org/wiki/Software/libevdev/' 629 630ac_unique_file="libevdev/libevdev.c" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE 668ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE 669HAVE_NM_FALSE 670HAVE_NM_TRUE 671pkgpyexecdir 672pyexecdir 673pkgpythondir 674pythondir 675PYTHON_EXEC_PREFIX 676PYTHON_PREFIX 677PYTHON_PLATFORM 678PYTHON_VERSION 679PYTHON 680GCOV_LDFLAGS 681GCOV_CFLAGS 682GCOV_ENABLED_FALSE 683GCOV_ENABLED_TRUE 684HAVE_DOXYGEN_FALSE 685HAVE_DOXYGEN_TRUE 686DOXYGEN 687GCC_CFLAGS 688ENABLE_STATIC_LINK_TEST_FALSE 689ENABLE_STATIC_LINK_TEST_TRUE 690ENABLE_RUNTIME_TESTS_FALSE 691ENABLE_RUNTIME_TESTS_TRUE 692CHECK_LIBS 693CHECK_CFLAGS 694PKG_CONFIG_LIBDIR 695PKG_CONFIG_PATH 696PKG_CONFIG 697OS 698GNU_LD_FLAGS 699LT_SYS_LIBRARY_PATH 700OTOOL64 701OTOOL 702LIPO 703NMEDIT 704DSYMUTIL 705MANIFEST_TOOL 706RANLIB 707ac_ct_AR 708AR 709DLLTOOL 710OBJDUMP 711FILECMD 712LN_S 713NM 714ac_ct_DUMPBIN 715DUMPBIN 716LD 717FGREP 718EGREP 719GREP 720SED 721host_os 722host_vendor 723host_cpu 724host 725build_os 726build_vendor 727build_cpu 728build 729LIBTOOL 730LIBEVDEV_LT_VERSION 731AM_BACKSLASH 732AM_DEFAULT_VERBOSITY 733AM_DEFAULT_V 734AM_V 735CSCOPE 736ETAGS 737CTAGS 738am__fastdepCC_FALSE 739am__fastdepCC_TRUE 740CCDEPMODE 741am__nodep 742AMDEPBACKSLASH 743AMDEP_FALSE 744AMDEP_TRUE 745am__include 746DEPDIR 747am__untar 748am__tar 749AMTAR 750am__leading_dot 751SET_MAKE 752AWK 753mkdir_p 754MKDIR_P 755INSTALL_STRIP_PROGRAM 756STRIP 757install_sh 758MAKEINFO 759AUTOHEADER 760AUTOMAKE 761AUTOCONF 762ACLOCAL 763VERSION 764PACKAGE 765CYGPATH_W 766am__isrc 767INSTALL_DATA 768INSTALL_SCRIPT 769INSTALL_PROGRAM 770OBJEXT 771EXEEXT 772ac_ct_CC 773CPPFLAGS 774LDFLAGS 775CFLAGS 776CC 777target_alias 778host_alias 779build_alias 780LIBS 781ECHO_T 782ECHO_N 783ECHO_C 784DEFS 785mandir 786localedir 787libdir 788psdir 789pdfdir 790dvidir 791htmldir 792infodir 793docdir 794oldincludedir 795includedir 796runstatedir 797localstatedir 798sharedstatedir 799sysconfdir 800datadir 801datarootdir 802libexecdir 803sbindir 804bindir 805program_transform_name 806prefix 807exec_prefix 808PACKAGE_URL 809PACKAGE_BUGREPORT 810PACKAGE_STRING 811PACKAGE_VERSION 812PACKAGE_TARNAME 813PACKAGE_NAME 814PATH_SEPARATOR 815SHELL 816am__quote' 817ac_subst_files='' 818ac_user_opts=' 819enable_option_checking 820enable_dependency_tracking 821enable_silent_rules 822enable_shared 823enable_static 824with_pic 825enable_fast_install 826with_aix_soname 827with_gnu_ld 828with_sysroot 829enable_libtool_lock 830enable_gcov 831enable_coverity 832with_python_sys_prefix 833with_python_prefix 834with_python_exec_prefix 835' 836 ac_precious_vars='build_alias 837host_alias 838target_alias 839CC 840CFLAGS 841LDFLAGS 842LIBS 843CPPFLAGS 844LT_SYS_LIBRARY_PATH 845PKG_CONFIG 846PKG_CONFIG_PATH 847PKG_CONFIG_LIBDIR 848CHECK_CFLAGS 849CHECK_LIBS 850PYTHON' 851 852 853# Initialize some variables set by options. 854ac_init_help= 855ac_init_version=false 856ac_unrecognized_opts= 857ac_unrecognized_sep= 858# The variables have the same names as the options, with 859# dashes changed to underlines. 860cache_file=/dev/null 861exec_prefix=NONE 862no_create= 863no_recursion= 864prefix=NONE 865program_prefix=NONE 866program_suffix=NONE 867program_transform_name=s,x,x, 868silent= 869site= 870srcdir= 871verbose= 872x_includes=NONE 873x_libraries=NONE 874 875# Installation directory options. 876# These are left unexpanded so users can "make install exec_prefix=/foo" 877# and all the variables that are supposed to be based on exec_prefix 878# by default will actually change. 879# Use braces instead of parens because sh, perl, etc. also accept them. 880# (The list follows the same order as the GNU Coding Standards.) 881bindir='${exec_prefix}/bin' 882sbindir='${exec_prefix}/sbin' 883libexecdir='${exec_prefix}/libexec' 884datarootdir='${prefix}/share' 885datadir='${datarootdir}' 886sysconfdir='${prefix}/etc' 887sharedstatedir='${prefix}/com' 888localstatedir='${prefix}/var' 889runstatedir='${localstatedir}/run' 890includedir='${prefix}/include' 891oldincludedir='/usr/include' 892docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 893infodir='${datarootdir}/info' 894htmldir='${docdir}' 895dvidir='${docdir}' 896pdfdir='${docdir}' 897psdir='${docdir}' 898libdir='${exec_prefix}/lib' 899localedir='${datarootdir}/locale' 900mandir='${datarootdir}/man' 901 902ac_prev= 903ac_dashdash= 904for ac_option 905do 906 # If the previous option needs an argument, assign it. 907 if test -n "$ac_prev"; then 908 eval $ac_prev=\$ac_option 909 ac_prev= 910 continue 911 fi 912 913 case $ac_option in 914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 915 *=) ac_optarg= ;; 916 *) ac_optarg=yes ;; 917 esac 918 919 case $ac_dashdash$ac_option in 920 --) 921 ac_dashdash=yes ;; 922 923 -bindir | --bindir | --bindi | --bind | --bin | --bi) 924 ac_prev=bindir ;; 925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 926 bindir=$ac_optarg ;; 927 928 -build | --build | --buil | --bui | --bu) 929 ac_prev=build_alias ;; 930 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 931 build_alias=$ac_optarg ;; 932 933 -cache-file | --cache-file | --cache-fil | --cache-fi \ 934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 935 ac_prev=cache_file ;; 936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 938 cache_file=$ac_optarg ;; 939 940 --config-cache | -C) 941 cache_file=config.cache ;; 942 943 -datadir | --datadir | --datadi | --datad) 944 ac_prev=datadir ;; 945 -datadir=* | --datadir=* | --datadi=* | --datad=*) 946 datadir=$ac_optarg ;; 947 948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 949 | --dataroo | --dataro | --datar) 950 ac_prev=datarootdir ;; 951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 953 datarootdir=$ac_optarg ;; 954 955 -disable-* | --disable-*) 956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 957 # Reject names that are not valid shell variable names. 958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 959 as_fn_error $? "invalid feature name: \`$ac_useropt'" 960 ac_useropt_orig=$ac_useropt 961 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 962 case $ac_user_opts in 963 *" 964"enable_$ac_useropt" 965"*) ;; 966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 967 ac_unrecognized_sep=', ';; 968 esac 969 eval enable_$ac_useropt=no ;; 970 971 -docdir | --docdir | --docdi | --doc | --do) 972 ac_prev=docdir ;; 973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 974 docdir=$ac_optarg ;; 975 976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 977 ac_prev=dvidir ;; 978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 979 dvidir=$ac_optarg ;; 980 981 -enable-* | --enable-*) 982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 983 # Reject names that are not valid shell variable names. 984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 985 as_fn_error $? "invalid feature name: \`$ac_useropt'" 986 ac_useropt_orig=$ac_useropt 987 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 988 case $ac_user_opts in 989 *" 990"enable_$ac_useropt" 991"*) ;; 992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 993 ac_unrecognized_sep=', ';; 994 esac 995 eval enable_$ac_useropt=\$ac_optarg ;; 996 997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 999 | --exec | --exe | --ex) 1000 ac_prev=exec_prefix ;; 1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1003 | --exec=* | --exe=* | --ex=*) 1004 exec_prefix=$ac_optarg ;; 1005 1006 -gas | --gas | --ga | --g) 1007 # Obsolete; use --with-gas. 1008 with_gas=yes ;; 1009 1010 -help | --help | --hel | --he | -h) 1011 ac_init_help=long ;; 1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1013 ac_init_help=recursive ;; 1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1015 ac_init_help=short ;; 1016 1017 -host | --host | --hos | --ho) 1018 ac_prev=host_alias ;; 1019 -host=* | --host=* | --hos=* | --ho=*) 1020 host_alias=$ac_optarg ;; 1021 1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1023 ac_prev=htmldir ;; 1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1025 | --ht=*) 1026 htmldir=$ac_optarg ;; 1027 1028 -includedir | --includedir | --includedi | --included | --include \ 1029 | --includ | --inclu | --incl | --inc) 1030 ac_prev=includedir ;; 1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1032 | --includ=* | --inclu=* | --incl=* | --inc=*) 1033 includedir=$ac_optarg ;; 1034 1035 -infodir | --infodir | --infodi | --infod | --info | --inf) 1036 ac_prev=infodir ;; 1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1038 infodir=$ac_optarg ;; 1039 1040 -libdir | --libdir | --libdi | --libd) 1041 ac_prev=libdir ;; 1042 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1043 libdir=$ac_optarg ;; 1044 1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1046 | --libexe | --libex | --libe) 1047 ac_prev=libexecdir ;; 1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1049 | --libexe=* | --libex=* | --libe=*) 1050 libexecdir=$ac_optarg ;; 1051 1052 -localedir | --localedir | --localedi | --localed | --locale) 1053 ac_prev=localedir ;; 1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1055 localedir=$ac_optarg ;; 1056 1057 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1058 | --localstate | --localstat | --localsta | --localst | --locals) 1059 ac_prev=localstatedir ;; 1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1062 localstatedir=$ac_optarg ;; 1063 1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1065 ac_prev=mandir ;; 1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1067 mandir=$ac_optarg ;; 1068 1069 -nfp | --nfp | --nf) 1070 # Obsolete; use --without-fp. 1071 with_fp=no ;; 1072 1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1074 | --no-cr | --no-c | -n) 1075 no_create=yes ;; 1076 1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1079 no_recursion=yes ;; 1080 1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1083 | --oldin | --oldi | --old | --ol | --o) 1084 ac_prev=oldincludedir ;; 1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1088 oldincludedir=$ac_optarg ;; 1089 1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1091 ac_prev=prefix ;; 1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1093 prefix=$ac_optarg ;; 1094 1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1096 | --program-pre | --program-pr | --program-p) 1097 ac_prev=program_prefix ;; 1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1100 program_prefix=$ac_optarg ;; 1101 1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1103 | --program-suf | --program-su | --program-s) 1104 ac_prev=program_suffix ;; 1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1107 program_suffix=$ac_optarg ;; 1108 1109 -program-transform-name | --program-transform-name \ 1110 | --program-transform-nam | --program-transform-na \ 1111 | --program-transform-n | --program-transform- \ 1112 | --program-transform | --program-transfor \ 1113 | --program-transfo | --program-transf \ 1114 | --program-trans | --program-tran \ 1115 | --progr-tra | --program-tr | --program-t) 1116 ac_prev=program_transform_name ;; 1117 -program-transform-name=* | --program-transform-name=* \ 1118 | --program-transform-nam=* | --program-transform-na=* \ 1119 | --program-transform-n=* | --program-transform-=* \ 1120 | --program-transform=* | --program-transfor=* \ 1121 | --program-transfo=* | --program-transf=* \ 1122 | --program-trans=* | --program-tran=* \ 1123 | --progr-tra=* | --program-tr=* | --program-t=*) 1124 program_transform_name=$ac_optarg ;; 1125 1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1127 ac_prev=pdfdir ;; 1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1129 pdfdir=$ac_optarg ;; 1130 1131 -psdir | --psdir | --psdi | --psd | --ps) 1132 ac_prev=psdir ;; 1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1134 psdir=$ac_optarg ;; 1135 1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1137 | -silent | --silent | --silen | --sile | --sil) 1138 silent=yes ;; 1139 1140 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1141 | --runstate | --runstat | --runsta | --runst | --runs \ 1142 | --run | --ru | --r) 1143 ac_prev=runstatedir ;; 1144 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1145 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1146 | --run=* | --ru=* | --r=*) 1147 runstatedir=$ac_optarg ;; 1148 1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1150 ac_prev=sbindir ;; 1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1152 | --sbi=* | --sb=*) 1153 sbindir=$ac_optarg ;; 1154 1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1157 | --sharedst | --shareds | --shared | --share | --shar \ 1158 | --sha | --sh) 1159 ac_prev=sharedstatedir ;; 1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1163 | --sha=* | --sh=*) 1164 sharedstatedir=$ac_optarg ;; 1165 1166 -site | --site | --sit) 1167 ac_prev=site ;; 1168 -site=* | --site=* | --sit=*) 1169 site=$ac_optarg ;; 1170 1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1172 ac_prev=srcdir ;; 1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1174 srcdir=$ac_optarg ;; 1175 1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1177 | --syscon | --sysco | --sysc | --sys | --sy) 1178 ac_prev=sysconfdir ;; 1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1181 sysconfdir=$ac_optarg ;; 1182 1183 -target | --target | --targe | --targ | --tar | --ta | --t) 1184 ac_prev=target_alias ;; 1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1186 target_alias=$ac_optarg ;; 1187 1188 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1189 verbose=yes ;; 1190 1191 -version | --version | --versio | --versi | --vers | -V) 1192 ac_init_version=: ;; 1193 1194 -with-* | --with-*) 1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1196 # Reject names that are not valid shell variable names. 1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1198 as_fn_error $? "invalid package name: \`$ac_useropt'" 1199 ac_useropt_orig=$ac_useropt 1200 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1201 case $ac_user_opts in 1202 *" 1203"with_$ac_useropt" 1204"*) ;; 1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1206 ac_unrecognized_sep=', ';; 1207 esac 1208 eval with_$ac_useropt=\$ac_optarg ;; 1209 1210 -without-* | --without-*) 1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1212 # Reject names that are not valid shell variable names. 1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1214 as_fn_error $? "invalid package name: \`$ac_useropt'" 1215 ac_useropt_orig=$ac_useropt 1216 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1217 case $ac_user_opts in 1218 *" 1219"with_$ac_useropt" 1220"*) ;; 1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1222 ac_unrecognized_sep=', ';; 1223 esac 1224 eval with_$ac_useropt=no ;; 1225 1226 --x) 1227 # Obsolete; use --with-x. 1228 with_x=yes ;; 1229 1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1231 | --x-incl | --x-inc | --x-in | --x-i) 1232 ac_prev=x_includes ;; 1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1235 x_includes=$ac_optarg ;; 1236 1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1239 ac_prev=x_libraries ;; 1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1242 x_libraries=$ac_optarg ;; 1243 1244 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1245Try \`$0 --help' for more information" 1246 ;; 1247 1248 *=*) 1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1250 # Reject names that are not valid shell variable names. 1251 case $ac_envvar in #( 1252 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1254 esac 1255 eval $ac_envvar=\$ac_optarg 1256 export $ac_envvar ;; 1257 1258 *) 1259 # FIXME: should be removed in autoconf 3.0. 1260 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1262 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1264 ;; 1265 1266 esac 1267done 1268 1269if test -n "$ac_prev"; then 1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1271 as_fn_error $? "missing argument to $ac_option" 1272fi 1273 1274if test -n "$ac_unrecognized_opts"; then 1275 case $enable_option_checking in 1276 no) ;; 1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1278 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1279 esac 1280fi 1281 1282# Check all directory arguments for consistency. 1283for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1284 datadir sysconfdir sharedstatedir localstatedir includedir \ 1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1286 libdir localedir mandir runstatedir 1287do 1288 eval ac_val=\$$ac_var 1289 # Remove trailing slashes. 1290 case $ac_val in 1291 */ ) 1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1293 eval $ac_var=\$ac_val;; 1294 esac 1295 # Be sure to have absolute directory names. 1296 case $ac_val in 1297 [\\/$]* | ?:[\\/]* ) continue;; 1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1299 esac 1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1301done 1302 1303# There might be people who depend on the old broken behavior: `$host' 1304# used to hold the argument of --host etc. 1305# FIXME: To remove some day. 1306build=$build_alias 1307host=$host_alias 1308target=$target_alias 1309 1310# FIXME: To remove some day. 1311if test "x$host_alias" != x; then 1312 if test "x$build_alias" = x; then 1313 cross_compiling=maybe 1314 elif test "x$build_alias" != "x$host_alias"; then 1315 cross_compiling=yes 1316 fi 1317fi 1318 1319ac_tool_prefix= 1320test -n "$host_alias" && ac_tool_prefix=$host_alias- 1321 1322test "$silent" = yes && exec 6>/dev/null 1323 1324 1325ac_pwd=`pwd` && test -n "$ac_pwd" && 1326ac_ls_di=`ls -di .` && 1327ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1328 as_fn_error $? "working directory cannot be determined" 1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1330 as_fn_error $? "pwd does not report name of working directory" 1331 1332 1333# Find the source files, if location was not specified. 1334if test -z "$srcdir"; then 1335 ac_srcdir_defaulted=yes 1336 # Try the directory containing this script, then the parent directory. 1337 ac_confdir=`$as_dirname -- "$as_myself" || 1338$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1339 X"$as_myself" : 'X\(//\)[^/]' \| \ 1340 X"$as_myself" : 'X\(//\)$' \| \ 1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1342printf "%s\n" X"$as_myself" | 1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)[^/].*/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\/\)$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\).*/{ 1356 s//\1/ 1357 q 1358 } 1359 s/.*/./; q'` 1360 srcdir=$ac_confdir 1361 if test ! -r "$srcdir/$ac_unique_file"; then 1362 srcdir=.. 1363 fi 1364else 1365 ac_srcdir_defaulted=no 1366fi 1367if test ! -r "$srcdir/$ac_unique_file"; then 1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1370fi 1371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1372ac_abs_confdir=`( 1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1374 pwd)` 1375# When building in place, set srcdir=. 1376if test "$ac_abs_confdir" = "$ac_pwd"; then 1377 srcdir=. 1378fi 1379# Remove unnecessary trailing slashes from srcdir. 1380# Double slashes in file names in object file debugging info 1381# mess up M-x gdb in Emacs. 1382case $srcdir in 1383*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1384esac 1385for ac_var in $ac_precious_vars; do 1386 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_env_${ac_var}_value=\$${ac_var} 1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1390done 1391 1392# 1393# Report the --help message. 1394# 1395if test "$ac_init_help" = "long"; then 1396 # Omit some internal or obsolete options to make the list less imposing. 1397 # This message is too long to be a string in the A/UX 3.1 sh. 1398 cat <<_ACEOF 1399\`configure' configures libevdev 1.13.1 to adapt to many kinds of systems. 1400 1401Usage: $0 [OPTION]... [VAR=VALUE]... 1402 1403To assign environment variables (e.g., CC, CFLAGS...), specify them as 1404VAR=VALUE. See below for descriptions of some of the useful variables. 1405 1406Defaults for the options are specified in brackets. 1407 1408Configuration: 1409 -h, --help display this help and exit 1410 --help=short display options specific to this package 1411 --help=recursive display the short help of all the included packages 1412 -V, --version display version information and exit 1413 -q, --quiet, --silent do not print \`checking ...' messages 1414 --cache-file=FILE cache test results in FILE [disabled] 1415 -C, --config-cache alias for \`--cache-file=config.cache' 1416 -n, --no-create do not create output files 1417 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1418 1419Installation directories: 1420 --prefix=PREFIX install architecture-independent files in PREFIX 1421 [$ac_default_prefix] 1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1423 [PREFIX] 1424 1425By default, \`make install' will install all the files in 1426\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1427an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1428for instance \`--prefix=\$HOME'. 1429 1430For better control, use the options below. 1431 1432Fine tuning of the installation directories: 1433 --bindir=DIR user executables [EPREFIX/bin] 1434 --sbindir=DIR system admin executables [EPREFIX/sbin] 1435 --libexecdir=DIR program executables [EPREFIX/libexec] 1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1439 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1440 --libdir=DIR object code libraries [EPREFIX/lib] 1441 --includedir=DIR C header files [PREFIX/include] 1442 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1445 --infodir=DIR info documentation [DATAROOTDIR/info] 1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1447 --mandir=DIR man documentation [DATAROOTDIR/man] 1448 --docdir=DIR documentation root [DATAROOTDIR/doc/libevdev] 1449 --htmldir=DIR html documentation [DOCDIR] 1450 --dvidir=DIR dvi documentation [DOCDIR] 1451 --pdfdir=DIR pdf documentation [DOCDIR] 1452 --psdir=DIR ps documentation [DOCDIR] 1453_ACEOF 1454 1455 cat <<\_ACEOF 1456 1457Program names: 1458 --program-prefix=PREFIX prepend PREFIX to installed program names 1459 --program-suffix=SUFFIX append SUFFIX to installed program names 1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1461 1462System types: 1463 --build=BUILD configure for building on BUILD [guessed] 1464 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1465_ACEOF 1466fi 1467 1468if test -n "$ac_init_help"; then 1469 case $ac_init_help in 1470 short | recursive ) echo "Configuration of libevdev 1.13.1:";; 1471 esac 1472 cat <<\_ACEOF 1473 1474Optional Features: 1475 --disable-option-checking ignore unrecognized --enable/--with options 1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1478 --enable-dependency-tracking 1479 do not reject slow dependency extractors 1480 --disable-dependency-tracking 1481 speeds up one-time build 1482 --enable-silent-rules less verbose build output (undo: "make V=1") 1483 --disable-silent-rules verbose build output (undo: "make V=0") 1484 --enable-shared[=PKGS] build shared libraries [default=yes] 1485 --enable-static[=PKGS] build static libraries [default=yes] 1486 --enable-fast-install[=PKGS] 1487 optimize for fast installation [default=yes] 1488 --disable-libtool-lock avoid locking (might break parallel builds) 1489 --enable-gcov Whether to enable coverage testing 1490 (default:disabled) 1491 --enable-coverity Whether to build with coverity support (default: 1492 disabled) 1493 1494Optional Packages: 1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1498 both] 1499 --with-aix-soname=aix|svr4|both 1500 shared library versioning (aka "SONAME") variant to 1501 provide on AIX, [default=aix]. 1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1503 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1504 compiler's sysroot if not specified). 1505 --with-python-sys-prefix 1506 use Python's sys.prefix and sys.exec_prefix values 1507 --with-python_prefix override the default PYTHON_PREFIX 1508 --with-python_exec_prefix 1509 override the default PYTHON_EXEC_PREFIX 1510 1511Some influential environment variables: 1512 CC C compiler command 1513 CFLAGS C compiler flags 1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1515 nonstandard directory <lib dir> 1516 LIBS libraries to pass to the linker, e.g. -l<library> 1517 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1518 you have headers in a nonstandard directory <include dir> 1519 LT_SYS_LIBRARY_PATH 1520 User-defined run-time library search path. 1521 PKG_CONFIG path to pkg-config utility 1522 PKG_CONFIG_PATH 1523 directories to add to pkg-config's search path 1524 PKG_CONFIG_LIBDIR 1525 path overriding pkg-config's built-in search path 1526 CHECK_CFLAGS 1527 C compiler flags for CHECK, overriding pkg-config 1528 CHECK_LIBS linker flags for CHECK, overriding pkg-config 1529 PYTHON the Python interpreter 1530 1531Use these variables to override the choices made by `configure' or to help 1532it to find libraries and programs with nonstandard names/locations. 1533 1534Report bugs to <https://gitlab.freedesktop.org/libevdev/libevdev/issues/>. 1535libevdev home page: <http://freedesktop.org/wiki/Software/libevdev/>. 1536_ACEOF 1537ac_status=$? 1538fi 1539 1540if test "$ac_init_help" = "recursive"; then 1541 # If there are subdirs, report their specific --help. 1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1543 test -d "$ac_dir" || 1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1545 continue 1546 ac_builddir=. 1547 1548case "$ac_dir" in 1549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1550*) 1551 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1552 # A ".." for each directory in $ac_dir_suffix. 1553 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1554 case $ac_top_builddir_sub in 1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1557 esac ;; 1558esac 1559ac_abs_top_builddir=$ac_pwd 1560ac_abs_builddir=$ac_pwd$ac_dir_suffix 1561# for backward compatibility: 1562ac_top_builddir=$ac_top_build_prefix 1563 1564case $srcdir in 1565 .) # We are building in place. 1566 ac_srcdir=. 1567 ac_top_srcdir=$ac_top_builddir_sub 1568 ac_abs_top_srcdir=$ac_pwd ;; 1569 [\\/]* | ?:[\\/]* ) # Absolute name. 1570 ac_srcdir=$srcdir$ac_dir_suffix; 1571 ac_top_srcdir=$srcdir 1572 ac_abs_top_srcdir=$srcdir ;; 1573 *) # Relative name. 1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1575 ac_top_srcdir=$ac_top_build_prefix$srcdir 1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1577esac 1578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1579 1580 cd "$ac_dir" || { ac_status=$?; continue; } 1581 # Check for configure.gnu first; this name is used for a wrapper for 1582 # Metaconfig's "Configure" on case-insensitive file systems. 1583 if test -f "$ac_srcdir/configure.gnu"; then 1584 echo && 1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1586 elif test -f "$ac_srcdir/configure"; then 1587 echo && 1588 $SHELL "$ac_srcdir/configure" --help=recursive 1589 else 1590 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1591 fi || ac_status=$? 1592 cd "$ac_pwd" || { ac_status=$?; break; } 1593 done 1594fi 1595 1596test -n "$ac_init_help" && exit $ac_status 1597if $ac_init_version; then 1598 cat <<\_ACEOF 1599libevdev configure 1.13.1 1600generated by GNU Autoconf 2.71 1601 1602Copyright (C) 2021 Free Software Foundation, Inc. 1603This configure script is free software; the Free Software Foundation 1604gives unlimited permission to copy, distribute and modify it. 1605_ACEOF 1606 exit 1607fi 1608 1609## ------------------------ ## 1610## Autoconf initialization. ## 1611## ------------------------ ## 1612 1613# ac_fn_c_try_compile LINENO 1614# -------------------------- 1615# Try to compile conftest.$ac_ext, and return whether this succeeded. 1616ac_fn_c_try_compile () 1617{ 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 rm -f conftest.$ac_objext conftest.beam 1620 if { { ac_try="$ac_compile" 1621case "(($ac_try" in 1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623 *) ac_try_echo=$ac_try;; 1624esac 1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626printf "%s\n" "$ac_try_echo"; } >&5 1627 (eval "$ac_compile") 2>conftest.err 1628 ac_status=$? 1629 if test -s conftest.err; then 1630 grep -v '^ *+' conftest.err >conftest.er1 1631 cat conftest.er1 >&5 1632 mv -f conftest.er1 conftest.err 1633 fi 1634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } && { 1636 test -z "$ac_c_werror_flag" || 1637 test ! -s conftest.err 1638 } && test -s conftest.$ac_objext 1639then : 1640 ac_retval=0 1641else $as_nop 1642 printf "%s\n" "$as_me: failed program was:" >&5 1643sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=1 1646fi 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650} # ac_fn_c_try_compile 1651 1652# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1653# ------------------------------------------------------- 1654# Tests whether HEADER exists and can be compiled using the include files in 1655# INCLUDES, setting the cache variable VAR accordingly. 1656ac_fn_c_check_header_compile () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1660printf %s "checking for $2... " >&6; } 1661if eval test \${$3+y} 1662then : 1663 printf %s "(cached) " >&6 1664else $as_nop 1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1666/* end confdefs.h. */ 1667$4 1668#include <$2> 1669_ACEOF 1670if ac_fn_c_try_compile "$LINENO" 1671then : 1672 eval "$3=yes" 1673else $as_nop 1674 eval "$3=no" 1675fi 1676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1677fi 1678eval ac_res=\$$3 1679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1680printf "%s\n" "$ac_res" >&6; } 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 1683} # ac_fn_c_check_header_compile 1684 1685# ac_fn_c_try_link LINENO 1686# ----------------------- 1687# Try to link conftest.$ac_ext, and return whether this succeeded. 1688ac_fn_c_try_link () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1692 if { { ac_try="$ac_link" 1693case "(($ac_try" in 1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1695 *) ac_try_echo=$ac_try;; 1696esac 1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1698printf "%s\n" "$ac_try_echo"; } >&5 1699 (eval "$ac_link") 2>conftest.err 1700 ac_status=$? 1701 if test -s conftest.err; then 1702 grep -v '^ *+' conftest.err >conftest.er1 1703 cat conftest.er1 >&5 1704 mv -f conftest.er1 conftest.err 1705 fi 1706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; } && { 1708 test -z "$ac_c_werror_flag" || 1709 test ! -s conftest.err 1710 } && test -s conftest$ac_exeext && { 1711 test "$cross_compiling" = yes || 1712 test -x conftest$ac_exeext 1713 } 1714then : 1715 ac_retval=0 1716else $as_nop 1717 printf "%s\n" "$as_me: failed program was:" >&5 1718sed 's/^/| /' conftest.$ac_ext >&5 1719 1720 ac_retval=1 1721fi 1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1724 # interfere with the next link command; also delete a directory that is 1725 # left behind by Apple's compiler. We do this before executing the actions. 1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 as_fn_set_status $ac_retval 1729 1730} # ac_fn_c_try_link 1731 1732# ac_fn_c_check_func LINENO FUNC VAR 1733# ---------------------------------- 1734# Tests whether FUNC exists, setting the cache variable VAR accordingly 1735ac_fn_c_check_func () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1739printf %s "checking for $2... " >&6; } 1740if eval test \${$3+y} 1741then : 1742 printf %s "(cached) " >&6 1743else $as_nop 1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745/* end confdefs.h. */ 1746/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1748#define $2 innocuous_$2 1749 1750/* System header to define __stub macros and hopefully few prototypes, 1751 which can conflict with char $2 (); below. */ 1752 1753#include <limits.h> 1754#undef $2 1755 1756/* Override any GCC internal prototype to avoid an error. 1757 Use char because int might match the return type of a GCC 1758 builtin and then its argument prototype would still apply. */ 1759#ifdef __cplusplus 1760extern "C" 1761#endif 1762char $2 (); 1763/* The GNU C library defines this for functions which it implements 1764 to always fail with ENOSYS. Some functions are actually named 1765 something starting with __ and the normal name is an alias. */ 1766#if defined __stub_$2 || defined __stub___$2 1767choke me 1768#endif 1769 1770int 1771main (void) 1772{ 1773return $2 (); 1774 ; 1775 return 0; 1776} 1777_ACEOF 1778if ac_fn_c_try_link "$LINENO" 1779then : 1780 eval "$3=yes" 1781else $as_nop 1782 eval "$3=no" 1783fi 1784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1785 conftest$ac_exeext conftest.$ac_ext 1786fi 1787eval ac_res=\$$3 1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1789printf "%s\n" "$ac_res" >&6; } 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 1792} # ac_fn_c_check_func 1793ac_configure_args_raw= 1794for ac_arg 1795do 1796 case $ac_arg in 1797 *\'*) 1798 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1799 esac 1800 as_fn_append ac_configure_args_raw " '$ac_arg'" 1801done 1802 1803case $ac_configure_args_raw in 1804 *$as_nl*) 1805 ac_safe_unquote= ;; 1806 *) 1807 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1808 ac_unsafe_a="$ac_unsafe_z#~" 1809 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1810 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1811esac 1812 1813cat >config.log <<_ACEOF 1814This file contains any messages produced by compilers while 1815running configure, to aid debugging if configure makes a mistake. 1816 1817It was created by libevdev $as_me 1.13.1, which was 1818generated by GNU Autoconf 2.71. Invocation command line was 1819 1820 $ $0$ac_configure_args_raw 1821 1822_ACEOF 1823exec 5>>config.log 1824{ 1825cat <<_ASUNAME 1826## --------- ## 1827## Platform. ## 1828## --------- ## 1829 1830hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1831uname -m = `(uname -m) 2>/dev/null || echo unknown` 1832uname -r = `(uname -r) 2>/dev/null || echo unknown` 1833uname -s = `(uname -s) 2>/dev/null || echo unknown` 1834uname -v = `(uname -v) 2>/dev/null || echo unknown` 1835 1836/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1837/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1838 1839/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1840/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1841/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1842/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1843/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1844/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1845/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1846 1847_ASUNAME 1848 1849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1850for as_dir in $PATH 1851do 1852 IFS=$as_save_IFS 1853 case $as_dir in #((( 1854 '') as_dir=./ ;; 1855 */) ;; 1856 *) as_dir=$as_dir/ ;; 1857 esac 1858 printf "%s\n" "PATH: $as_dir" 1859 done 1860IFS=$as_save_IFS 1861 1862} >&5 1863 1864cat >&5 <<_ACEOF 1865 1866 1867## ----------- ## 1868## Core tests. ## 1869## ----------- ## 1870 1871_ACEOF 1872 1873 1874# Keep a trace of the command line. 1875# Strip out --no-create and --no-recursion so they do not pile up. 1876# Strip out --silent because we don't want to record it for future runs. 1877# Also quote any args containing shell meta-characters. 1878# Make two passes to allow for proper duplicate-argument suppression. 1879ac_configure_args= 1880ac_configure_args0= 1881ac_configure_args1= 1882ac_must_keep_next=false 1883for ac_pass in 1 2 1884do 1885 for ac_arg 1886 do 1887 case $ac_arg in 1888 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1890 | -silent | --silent | --silen | --sile | --sil) 1891 continue ;; 1892 *\'*) 1893 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1894 esac 1895 case $ac_pass in 1896 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1897 2) 1898 as_fn_append ac_configure_args1 " '$ac_arg'" 1899 if test $ac_must_keep_next = true; then 1900 ac_must_keep_next=false # Got value, back to normal. 1901 else 1902 case $ac_arg in 1903 *=* | --config-cache | -C | -disable-* | --disable-* \ 1904 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1905 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1906 | -with-* | --with-* | -without-* | --without-* | --x) 1907 case "$ac_configure_args0 " in 1908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1909 esac 1910 ;; 1911 -* ) ac_must_keep_next=true ;; 1912 esac 1913 fi 1914 as_fn_append ac_configure_args " '$ac_arg'" 1915 ;; 1916 esac 1917 done 1918done 1919{ ac_configure_args0=; unset ac_configure_args0;} 1920{ ac_configure_args1=; unset ac_configure_args1;} 1921 1922# When interrupted or exit'd, cleanup temporary files, and complete 1923# config.log. We remove comments because anyway the quotes in there 1924# would cause problems or look ugly. 1925# WARNING: Use '\'' to represent an apostrophe within the trap. 1926# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1927trap 'exit_status=$? 1928 # Sanitize IFS. 1929 IFS=" "" $as_nl" 1930 # Save into config.log some information that might help in debugging. 1931 { 1932 echo 1933 1934 printf "%s\n" "## ---------------- ## 1935## Cache variables. ## 1936## ---------------- ##" 1937 echo 1938 # The following way of writing the cache mishandles newlines in values, 1939( 1940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1941 eval ac_val=\$$ac_var 1942 case $ac_val in #( 1943 *${as_nl}*) 1944 case $ac_var in #( 1945 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1946printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1947 esac 1948 case $ac_var in #( 1949 _ | IFS | as_nl) ;; #( 1950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1951 *) { eval $ac_var=; unset $ac_var;} ;; 1952 esac ;; 1953 esac 1954 done 1955 (set) 2>&1 | 1956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1957 *${as_nl}ac_space=\ *) 1958 sed -n \ 1959 "s/'\''/'\''\\\\'\'''\''/g; 1960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1961 ;; #( 1962 *) 1963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1964 ;; 1965 esac | 1966 sort 1967) 1968 echo 1969 1970 printf "%s\n" "## ----------------- ## 1971## Output variables. ## 1972## ----------------- ##" 1973 echo 1974 for ac_var in $ac_subst_vars 1975 do 1976 eval ac_val=\$$ac_var 1977 case $ac_val in 1978 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1979 esac 1980 printf "%s\n" "$ac_var='\''$ac_val'\''" 1981 done | sort 1982 echo 1983 1984 if test -n "$ac_subst_files"; then 1985 printf "%s\n" "## ------------------- ## 1986## File substitutions. ## 1987## ------------------- ##" 1988 echo 1989 for ac_var in $ac_subst_files 1990 do 1991 eval ac_val=\$$ac_var 1992 case $ac_val in 1993 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1994 esac 1995 printf "%s\n" "$ac_var='\''$ac_val'\''" 1996 done | sort 1997 echo 1998 fi 1999 2000 if test -s confdefs.h; then 2001 printf "%s\n" "## ----------- ## 2002## confdefs.h. ## 2003## ----------- ##" 2004 echo 2005 cat confdefs.h 2006 echo 2007 fi 2008 test "$ac_signal" != 0 && 2009 printf "%s\n" "$as_me: caught signal $ac_signal" 2010 printf "%s\n" "$as_me: exit $exit_status" 2011 } >&5 2012 rm -f core *.core core.conftest.* && 2013 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2014 exit $exit_status 2015' 0 2016for ac_signal in 1 2 13 15; do 2017 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2018done 2019ac_signal=0 2020 2021# confdefs.h avoids OS command line length limits that DEFS can exceed. 2022rm -f -r conftest* confdefs.h 2023 2024printf "%s\n" "/* confdefs.h */" > confdefs.h 2025 2026# Predefined preprocessor variables. 2027 2028printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2029 2030printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2031 2032printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2033 2034printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2035 2036printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2037 2038printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2039 2040 2041# Let the site file select an alternate cache file if it wants to. 2042# Prefer an explicitly selected file to automatically selected ones. 2043if test -n "$CONFIG_SITE"; then 2044 ac_site_files="$CONFIG_SITE" 2045elif test "x$prefix" != xNONE; then 2046 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2047else 2048 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2049fi 2050 2051for ac_site_file in $ac_site_files 2052do 2053 case $ac_site_file in #( 2054 */*) : 2055 ;; #( 2056 *) : 2057 ac_site_file=./$ac_site_file ;; 2058esac 2059 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2061printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2062 sed 's/^/| /' "$ac_site_file" >&5 2063 . "$ac_site_file" \ 2064 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2065printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2066as_fn_error $? "failed to load site script $ac_site_file 2067See \`config.log' for more details" "$LINENO" 5; } 2068 fi 2069done 2070 2071if test -r "$cache_file"; then 2072 # Some versions of bash will fail to source /dev/null (special files 2073 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2074 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2076printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2077 case $cache_file in 2078 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2079 *) . "./$cache_file";; 2080 esac 2081 fi 2082else 2083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2084printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2085 >$cache_file 2086fi 2087 2088as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2089# Test code for whether the C compiler supports C89 (global declarations) 2090ac_c_conftest_c89_globals=' 2091/* Does the compiler advertise C89 conformance? 2092 Do not test the value of __STDC__, because some compilers set it to 0 2093 while being otherwise adequately conformant. */ 2094#if !defined __STDC__ 2095# error "Compiler does not advertise C89 conformance" 2096#endif 2097 2098#include <stddef.h> 2099#include <stdarg.h> 2100struct stat; 2101/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2102struct buf { int x; }; 2103struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2104static char *e (p, i) 2105 char **p; 2106 int i; 2107{ 2108 return p[i]; 2109} 2110static char *f (char * (*g) (char **, int), char **p, ...) 2111{ 2112 char *s; 2113 va_list v; 2114 va_start (v,p); 2115 s = g (p, va_arg (v,int)); 2116 va_end (v); 2117 return s; 2118} 2119 2120/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2121 function prototypes and stuff, but not \xHH hex character constants. 2122 These do not provoke an error unfortunately, instead are silently treated 2123 as an "x". The following induces an error, until -std is added to get 2124 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2125 array size at least. It is necessary to write \x00 == 0 to get something 2126 that is true only with -std. */ 2127int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2128 2129/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2130 inside strings and character constants. */ 2131#define FOO(x) '\''x'\'' 2132int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2133 2134int test (int i, double x); 2135struct s1 {int (*f) (int a);}; 2136struct s2 {int (*f) (double a);}; 2137int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2138 int, int);' 2139 2140# Test code for whether the C compiler supports C89 (body of main). 2141ac_c_conftest_c89_main=' 2142ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2143' 2144 2145# Test code for whether the C compiler supports C99 (global declarations) 2146ac_c_conftest_c99_globals=' 2147// Does the compiler advertise C99 conformance? 2148#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2149# error "Compiler does not advertise C99 conformance" 2150#endif 2151 2152#include <stdbool.h> 2153extern int puts (const char *); 2154extern int printf (const char *, ...); 2155extern int dprintf (int, const char *, ...); 2156extern void *malloc (size_t); 2157 2158// Check varargs macros. These examples are taken from C99 6.10.3.5. 2159// dprintf is used instead of fprintf to avoid needing to declare 2160// FILE and stderr. 2161#define debug(...) dprintf (2, __VA_ARGS__) 2162#define showlist(...) puts (#__VA_ARGS__) 2163#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2164static void 2165test_varargs_macros (void) 2166{ 2167 int x = 1234; 2168 int y = 5678; 2169 debug ("Flag"); 2170 debug ("X = %d\n", x); 2171 showlist (The first, second, and third items.); 2172 report (x>y, "x is %d but y is %d", x, y); 2173} 2174 2175// Check long long types. 2176#define BIG64 18446744073709551615ull 2177#define BIG32 4294967295ul 2178#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2179#if !BIG_OK 2180 #error "your preprocessor is broken" 2181#endif 2182#if BIG_OK 2183#else 2184 #error "your preprocessor is broken" 2185#endif 2186static long long int bignum = -9223372036854775807LL; 2187static unsigned long long int ubignum = BIG64; 2188 2189struct incomplete_array 2190{ 2191 int datasize; 2192 double data[]; 2193}; 2194 2195struct named_init { 2196 int number; 2197 const wchar_t *name; 2198 double average; 2199}; 2200 2201typedef const char *ccp; 2202 2203static inline int 2204test_restrict (ccp restrict text) 2205{ 2206 // See if C++-style comments work. 2207 // Iterate through items via the restricted pointer. 2208 // Also check for declarations in for loops. 2209 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2210 continue; 2211 return 0; 2212} 2213 2214// Check varargs and va_copy. 2215static bool 2216test_varargs (const char *format, ...) 2217{ 2218 va_list args; 2219 va_start (args, format); 2220 va_list args_copy; 2221 va_copy (args_copy, args); 2222 2223 const char *str = ""; 2224 int number = 0; 2225 float fnumber = 0; 2226 2227 while (*format) 2228 { 2229 switch (*format++) 2230 { 2231 case '\''s'\'': // string 2232 str = va_arg (args_copy, const char *); 2233 break; 2234 case '\''d'\'': // int 2235 number = va_arg (args_copy, int); 2236 break; 2237 case '\''f'\'': // float 2238 fnumber = va_arg (args_copy, double); 2239 break; 2240 default: 2241 break; 2242 } 2243 } 2244 va_end (args_copy); 2245 va_end (args); 2246 2247 return *str && number && fnumber; 2248} 2249' 2250 2251# Test code for whether the C compiler supports C99 (body of main). 2252ac_c_conftest_c99_main=' 2253 // Check bool. 2254 _Bool success = false; 2255 success |= (argc != 0); 2256 2257 // Check restrict. 2258 if (test_restrict ("String literal") == 0) 2259 success = true; 2260 char *restrict newvar = "Another string"; 2261 2262 // Check varargs. 2263 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2264 test_varargs_macros (); 2265 2266 // Check flexible array members. 2267 struct incomplete_array *ia = 2268 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2269 ia->datasize = 10; 2270 for (int i = 0; i < ia->datasize; ++i) 2271 ia->data[i] = i * 1.234; 2272 2273 // Check named initializers. 2274 struct named_init ni = { 2275 .number = 34, 2276 .name = L"Test wide string", 2277 .average = 543.34343, 2278 }; 2279 2280 ni.number = 58; 2281 2282 int dynamic_array[ni.number]; 2283 dynamic_array[0] = argv[0][0]; 2284 dynamic_array[ni.number - 1] = 543; 2285 2286 // work around unused variable warnings 2287 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2288 || dynamic_array[ni.number - 1] != 543); 2289' 2290 2291# Test code for whether the C compiler supports C11 (global declarations) 2292ac_c_conftest_c11_globals=' 2293// Does the compiler advertise C11 conformance? 2294#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2295# error "Compiler does not advertise C11 conformance" 2296#endif 2297 2298// Check _Alignas. 2299char _Alignas (double) aligned_as_double; 2300char _Alignas (0) no_special_alignment; 2301extern char aligned_as_int; 2302char _Alignas (0) _Alignas (int) aligned_as_int; 2303 2304// Check _Alignof. 2305enum 2306{ 2307 int_alignment = _Alignof (int), 2308 int_array_alignment = _Alignof (int[100]), 2309 char_alignment = _Alignof (char) 2310}; 2311_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2312 2313// Check _Noreturn. 2314int _Noreturn does_not_return (void) { for (;;) continue; } 2315 2316// Check _Static_assert. 2317struct test_static_assert 2318{ 2319 int x; 2320 _Static_assert (sizeof (int) <= sizeof (long int), 2321 "_Static_assert does not work in struct"); 2322 long int y; 2323}; 2324 2325// Check UTF-8 literals. 2326#define u8 syntax error! 2327char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2328 2329// Check duplicate typedefs. 2330typedef long *long_ptr; 2331typedef long int *long_ptr; 2332typedef long_ptr long_ptr; 2333 2334// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2335struct anonymous 2336{ 2337 union { 2338 struct { int i; int j; }; 2339 struct { int k; long int l; } w; 2340 }; 2341 int m; 2342} v1; 2343' 2344 2345# Test code for whether the C compiler supports C11 (body of main). 2346ac_c_conftest_c11_main=' 2347 _Static_assert ((offsetof (struct anonymous, i) 2348 == offsetof (struct anonymous, w.k)), 2349 "Anonymous union alignment botch"); 2350 v1.i = 2; 2351 v1.w.k = 5; 2352 ok |= v1.i != 5; 2353' 2354 2355# Test code for whether the C compiler supports C11 (complete). 2356ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2357${ac_c_conftest_c99_globals} 2358${ac_c_conftest_c11_globals} 2359 2360int 2361main (int argc, char **argv) 2362{ 2363 int ok = 0; 2364 ${ac_c_conftest_c89_main} 2365 ${ac_c_conftest_c99_main} 2366 ${ac_c_conftest_c11_main} 2367 return ok; 2368} 2369" 2370 2371# Test code for whether the C compiler supports C99 (complete). 2372ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2373${ac_c_conftest_c99_globals} 2374 2375int 2376main (int argc, char **argv) 2377{ 2378 int ok = 0; 2379 ${ac_c_conftest_c89_main} 2380 ${ac_c_conftest_c99_main} 2381 return ok; 2382} 2383" 2384 2385# Test code for whether the C compiler supports C89 (complete). 2386ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2387 2388int 2389main (int argc, char **argv) 2390{ 2391 int ok = 0; 2392 ${ac_c_conftest_c89_main} 2393 return ok; 2394} 2395" 2396 2397as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2398as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2399as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2400as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2401as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2402as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2403as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2404as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2405as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2406as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2407 2408# Auxiliary files required by this configure script. 2409ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2410 2411# Locations in which to look for auxiliary files. 2412ac_aux_dir_candidates="${srcdir}/build-aux" 2413 2414# Search for a directory containing all of the required auxiliary files, 2415# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2416# If we don't find one directory that contains all the files we need, 2417# we report the set of missing files from the *first* directory in 2418# $ac_aux_dir_candidates and give up. 2419ac_missing_aux_files="" 2420ac_first_candidate=: 2421printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2423as_found=false 2424for as_dir in $ac_aux_dir_candidates 2425do 2426 IFS=$as_save_IFS 2427 case $as_dir in #((( 2428 '') as_dir=./ ;; 2429 */) ;; 2430 *) as_dir=$as_dir/ ;; 2431 esac 2432 as_found=: 2433 2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2435 ac_aux_dir_found=yes 2436 ac_install_sh= 2437 for ac_aux in $ac_aux_files 2438 do 2439 # As a special case, if "install-sh" is required, that requirement 2440 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2441 # and $ac_install_sh is set appropriately for whichever one is found. 2442 if test x"$ac_aux" = x"install-sh" 2443 then 2444 if test -f "${as_dir}install-sh"; then 2445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2446 ac_install_sh="${as_dir}install-sh -c" 2447 elif test -f "${as_dir}install.sh"; then 2448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2449 ac_install_sh="${as_dir}install.sh -c" 2450 elif test -f "${as_dir}shtool"; then 2451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2452 ac_install_sh="${as_dir}shtool install -c" 2453 else 2454 ac_aux_dir_found=no 2455 if $ac_first_candidate; then 2456 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2457 else 2458 break 2459 fi 2460 fi 2461 else 2462 if test -f "${as_dir}${ac_aux}"; then 2463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2464 else 2465 ac_aux_dir_found=no 2466 if $ac_first_candidate; then 2467 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2468 else 2469 break 2470 fi 2471 fi 2472 fi 2473 done 2474 if test "$ac_aux_dir_found" = yes; then 2475 ac_aux_dir="$as_dir" 2476 break 2477 fi 2478 ac_first_candidate=false 2479 2480 as_found=false 2481done 2482IFS=$as_save_IFS 2483if $as_found 2484then : 2485 2486else $as_nop 2487 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2488fi 2489 2490 2491# These three variables are undocumented and unsupported, 2492# and are intended to be withdrawn in a future Autoconf release. 2493# They can cause serious problems if a builder's source tree is in a directory 2494# whose full name contains unusual characters. 2495if test -f "${ac_aux_dir}config.guess"; then 2496 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2497fi 2498if test -f "${ac_aux_dir}config.sub"; then 2499 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2500fi 2501if test -f "$ac_aux_dir/configure"; then 2502 ac_configure="$SHELL ${ac_aux_dir}configure" 2503fi 2504 2505# Check that the precious variables saved in the cache have kept the same 2506# value. 2507ac_cache_corrupted=false 2508for ac_var in $ac_precious_vars; do 2509 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2510 eval ac_new_set=\$ac_env_${ac_var}_set 2511 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2512 eval ac_new_val=\$ac_env_${ac_var}_value 2513 case $ac_old_set,$ac_new_set in 2514 set,) 2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2516printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2517 ac_cache_corrupted=: ;; 2518 ,set) 2519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2520printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2521 ac_cache_corrupted=: ;; 2522 ,);; 2523 *) 2524 if test "x$ac_old_val" != "x$ac_new_val"; then 2525 # differences in whitespace do not lead to failure. 2526 ac_old_val_w=`echo x $ac_old_val` 2527 ac_new_val_w=`echo x $ac_new_val` 2528 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2530printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2531 ac_cache_corrupted=: 2532 else 2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2534printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2535 eval $ac_var=\$ac_old_val 2536 fi 2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2538printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2540printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2541 fi;; 2542 esac 2543 # Pass precious variables to config.status. 2544 if test "$ac_new_set" = set; then 2545 case $ac_new_val in 2546 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2547 *) ac_arg=$ac_var=$ac_new_val ;; 2548 esac 2549 case " $ac_configure_args " in 2550 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2551 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2552 esac 2553 fi 2554done 2555if $ac_cache_corrupted; then 2556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2557printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2559printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2560 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2561 and start over" "$LINENO" 5 2562fi 2563## -------------------- ## 2564## Main body of script. ## 2565## -------------------- ## 2566 2567ac_ext=c 2568ac_cpp='$CPP $CPPFLAGS' 2569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2571ac_compiler_gnu=$ac_cv_c_compiler_gnu 2572 2573 2574 2575 2576ac_config_headers="$ac_config_headers config.h" 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591# Expand $ac_aux_dir to an absolute path. 2592am_aux_dir=`cd "$ac_aux_dir" && pwd` 2593 2594ac_ext=c 2595ac_cpp='$CPP $CPPFLAGS' 2596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2598ac_compiler_gnu=$ac_cv_c_compiler_gnu 2599if test -n "$ac_tool_prefix"; then 2600 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2601set dummy ${ac_tool_prefix}gcc; ac_word=$2 2602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2603printf %s "checking for $ac_word... " >&6; } 2604if test ${ac_cv_prog_CC+y} 2605then : 2606 printf %s "(cached) " >&6 2607else $as_nop 2608 if test -n "$CC"; then 2609 ac_cv_prog_CC="$CC" # Let the user override the test. 2610else 2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2612for as_dir in $PATH 2613do 2614 IFS=$as_save_IFS 2615 case $as_dir in #((( 2616 '') as_dir=./ ;; 2617 */) ;; 2618 *) as_dir=$as_dir/ ;; 2619 esac 2620 for ac_exec_ext in '' $ac_executable_extensions; do 2621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2622 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2624 break 2 2625 fi 2626done 2627 done 2628IFS=$as_save_IFS 2629 2630fi 2631fi 2632CC=$ac_cv_prog_CC 2633if test -n "$CC"; then 2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2635printf "%s\n" "$CC" >&6; } 2636else 2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2638printf "%s\n" "no" >&6; } 2639fi 2640 2641 2642fi 2643if test -z "$ac_cv_prog_CC"; then 2644 ac_ct_CC=$CC 2645 # Extract the first word of "gcc", so it can be a program name with args. 2646set dummy gcc; ac_word=$2 2647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2648printf %s "checking for $ac_word... " >&6; } 2649if test ${ac_cv_prog_ac_ct_CC+y} 2650then : 2651 printf %s "(cached) " >&6 2652else $as_nop 2653 if test -n "$ac_ct_CC"; then 2654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2655else 2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2657for as_dir in $PATH 2658do 2659 IFS=$as_save_IFS 2660 case $as_dir in #((( 2661 '') as_dir=./ ;; 2662 */) ;; 2663 *) as_dir=$as_dir/ ;; 2664 esac 2665 for ac_exec_ext in '' $ac_executable_extensions; do 2666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2667 ac_cv_prog_ac_ct_CC="gcc" 2668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2669 break 2 2670 fi 2671done 2672 done 2673IFS=$as_save_IFS 2674 2675fi 2676fi 2677ac_ct_CC=$ac_cv_prog_ac_ct_CC 2678if test -n "$ac_ct_CC"; then 2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2680printf "%s\n" "$ac_ct_CC" >&6; } 2681else 2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2683printf "%s\n" "no" >&6; } 2684fi 2685 2686 if test "x$ac_ct_CC" = x; then 2687 CC="" 2688 else 2689 case $cross_compiling:$ac_tool_warned in 2690yes:) 2691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2692printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2693ac_tool_warned=yes ;; 2694esac 2695 CC=$ac_ct_CC 2696 fi 2697else 2698 CC="$ac_cv_prog_CC" 2699fi 2700 2701if test -z "$CC"; then 2702 if test -n "$ac_tool_prefix"; then 2703 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2704set dummy ${ac_tool_prefix}cc; ac_word=$2 2705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2706printf %s "checking for $ac_word... " >&6; } 2707if test ${ac_cv_prog_CC+y} 2708then : 2709 printf %s "(cached) " >&6 2710else $as_nop 2711 if test -n "$CC"; then 2712 ac_cv_prog_CC="$CC" # Let the user override the test. 2713else 2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH 2716do 2717 IFS=$as_save_IFS 2718 case $as_dir in #((( 2719 '') as_dir=./ ;; 2720 */) ;; 2721 *) as_dir=$as_dir/ ;; 2722 esac 2723 for ac_exec_ext in '' $ac_executable_extensions; do 2724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2725 ac_cv_prog_CC="${ac_tool_prefix}cc" 2726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2727 break 2 2728 fi 2729done 2730 done 2731IFS=$as_save_IFS 2732 2733fi 2734fi 2735CC=$ac_cv_prog_CC 2736if test -n "$CC"; then 2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2738printf "%s\n" "$CC" >&6; } 2739else 2740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2741printf "%s\n" "no" >&6; } 2742fi 2743 2744 2745 fi 2746fi 2747if test -z "$CC"; then 2748 # Extract the first word of "cc", so it can be a program name with args. 2749set dummy cc; ac_word=$2 2750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2751printf %s "checking for $ac_word... " >&6; } 2752if test ${ac_cv_prog_CC+y} 2753then : 2754 printf %s "(cached) " >&6 2755else $as_nop 2756 if test -n "$CC"; then 2757 ac_cv_prog_CC="$CC" # Let the user override the test. 2758else 2759 ac_prog_rejected=no 2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2761for as_dir in $PATH 2762do 2763 IFS=$as_save_IFS 2764 case $as_dir in #((( 2765 '') as_dir=./ ;; 2766 */) ;; 2767 *) as_dir=$as_dir/ ;; 2768 esac 2769 for ac_exec_ext in '' $ac_executable_extensions; do 2770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2771 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2772 ac_prog_rejected=yes 2773 continue 2774 fi 2775 ac_cv_prog_CC="cc" 2776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2777 break 2 2778 fi 2779done 2780 done 2781IFS=$as_save_IFS 2782 2783if test $ac_prog_rejected = yes; then 2784 # We found a bogon in the path, so make sure we never use it. 2785 set dummy $ac_cv_prog_CC 2786 shift 2787 if test $# != 0; then 2788 # We chose a different compiler from the bogus one. 2789 # However, it has the same basename, so the bogon will be chosen 2790 # first if we set CC to just the basename; use the full file name. 2791 shift 2792 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2793 fi 2794fi 2795fi 2796fi 2797CC=$ac_cv_prog_CC 2798if test -n "$CC"; then 2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2800printf "%s\n" "$CC" >&6; } 2801else 2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803printf "%s\n" "no" >&6; } 2804fi 2805 2806 2807fi 2808if test -z "$CC"; then 2809 if test -n "$ac_tool_prefix"; then 2810 for ac_prog in cl.exe 2811 do 2812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2813set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2815printf %s "checking for $ac_word... " >&6; } 2816if test ${ac_cv_prog_CC+y} 2817then : 2818 printf %s "(cached) " >&6 2819else $as_nop 2820 if test -n "$CC"; then 2821 ac_cv_prog_CC="$CC" # Let the user override the test. 2822else 2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2824for as_dir in $PATH 2825do 2826 IFS=$as_save_IFS 2827 case $as_dir in #((( 2828 '') as_dir=./ ;; 2829 */) ;; 2830 *) as_dir=$as_dir/ ;; 2831 esac 2832 for ac_exec_ext in '' $ac_executable_extensions; do 2833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2834 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2836 break 2 2837 fi 2838done 2839 done 2840IFS=$as_save_IFS 2841 2842fi 2843fi 2844CC=$ac_cv_prog_CC 2845if test -n "$CC"; then 2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2847printf "%s\n" "$CC" >&6; } 2848else 2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2850printf "%s\n" "no" >&6; } 2851fi 2852 2853 2854 test -n "$CC" && break 2855 done 2856fi 2857if test -z "$CC"; then 2858 ac_ct_CC=$CC 2859 for ac_prog in cl.exe 2860do 2861 # Extract the first word of "$ac_prog", so it can be a program name with args. 2862set dummy $ac_prog; ac_word=$2 2863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2864printf %s "checking for $ac_word... " >&6; } 2865if test ${ac_cv_prog_ac_ct_CC+y} 2866then : 2867 printf %s "(cached) " >&6 2868else $as_nop 2869 if test -n "$ac_ct_CC"; then 2870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2871else 2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2873for as_dir in $PATH 2874do 2875 IFS=$as_save_IFS 2876 case $as_dir in #((( 2877 '') as_dir=./ ;; 2878 */) ;; 2879 *) as_dir=$as_dir/ ;; 2880 esac 2881 for ac_exec_ext in '' $ac_executable_extensions; do 2882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2883 ac_cv_prog_ac_ct_CC="$ac_prog" 2884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2885 break 2 2886 fi 2887done 2888 done 2889IFS=$as_save_IFS 2890 2891fi 2892fi 2893ac_ct_CC=$ac_cv_prog_ac_ct_CC 2894if test -n "$ac_ct_CC"; then 2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2896printf "%s\n" "$ac_ct_CC" >&6; } 2897else 2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2899printf "%s\n" "no" >&6; } 2900fi 2901 2902 2903 test -n "$ac_ct_CC" && break 2904done 2905 2906 if test "x$ac_ct_CC" = x; then 2907 CC="" 2908 else 2909 case $cross_compiling:$ac_tool_warned in 2910yes:) 2911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2912printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2913ac_tool_warned=yes ;; 2914esac 2915 CC=$ac_ct_CC 2916 fi 2917fi 2918 2919fi 2920if test -z "$CC"; then 2921 if test -n "$ac_tool_prefix"; then 2922 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2923set dummy ${ac_tool_prefix}clang; ac_word=$2 2924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2925printf %s "checking for $ac_word... " >&6; } 2926if test ${ac_cv_prog_CC+y} 2927then : 2928 printf %s "(cached) " >&6 2929else $as_nop 2930 if test -n "$CC"; then 2931 ac_cv_prog_CC="$CC" # Let the user override the test. 2932else 2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2934for as_dir in $PATH 2935do 2936 IFS=$as_save_IFS 2937 case $as_dir in #((( 2938 '') as_dir=./ ;; 2939 */) ;; 2940 *) as_dir=$as_dir/ ;; 2941 esac 2942 for ac_exec_ext in '' $ac_executable_extensions; do 2943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2944 ac_cv_prog_CC="${ac_tool_prefix}clang" 2945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2946 break 2 2947 fi 2948done 2949 done 2950IFS=$as_save_IFS 2951 2952fi 2953fi 2954CC=$ac_cv_prog_CC 2955if test -n "$CC"; then 2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2957printf "%s\n" "$CC" >&6; } 2958else 2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2960printf "%s\n" "no" >&6; } 2961fi 2962 2963 2964fi 2965if test -z "$ac_cv_prog_CC"; then 2966 ac_ct_CC=$CC 2967 # Extract the first word of "clang", so it can be a program name with args. 2968set dummy clang; ac_word=$2 2969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2970printf %s "checking for $ac_word... " >&6; } 2971if test ${ac_cv_prog_ac_ct_CC+y} 2972then : 2973 printf %s "(cached) " >&6 2974else $as_nop 2975 if test -n "$ac_ct_CC"; then 2976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2977else 2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2979for as_dir in $PATH 2980do 2981 IFS=$as_save_IFS 2982 case $as_dir in #((( 2983 '') as_dir=./ ;; 2984 */) ;; 2985 *) as_dir=$as_dir/ ;; 2986 esac 2987 for ac_exec_ext in '' $ac_executable_extensions; do 2988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2989 ac_cv_prog_ac_ct_CC="clang" 2990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2991 break 2 2992 fi 2993done 2994 done 2995IFS=$as_save_IFS 2996 2997fi 2998fi 2999ac_ct_CC=$ac_cv_prog_ac_ct_CC 3000if test -n "$ac_ct_CC"; then 3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3002printf "%s\n" "$ac_ct_CC" >&6; } 3003else 3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3005printf "%s\n" "no" >&6; } 3006fi 3007 3008 if test "x$ac_ct_CC" = x; then 3009 CC="" 3010 else 3011 case $cross_compiling:$ac_tool_warned in 3012yes:) 3013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3014printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3015ac_tool_warned=yes ;; 3016esac 3017 CC=$ac_ct_CC 3018 fi 3019else 3020 CC="$ac_cv_prog_CC" 3021fi 3022 3023fi 3024 3025 3026test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3027printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3028as_fn_error $? "no acceptable C compiler found in \$PATH 3029See \`config.log' for more details" "$LINENO" 5; } 3030 3031# Provide some information about the compiler. 3032printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3033set X $ac_compile 3034ac_compiler=$2 3035for ac_option in --version -v -V -qversion -version; do 3036 { { ac_try="$ac_compiler $ac_option >&5" 3037case "(($ac_try" in 3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3039 *) ac_try_echo=$ac_try;; 3040esac 3041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3042printf "%s\n" "$ac_try_echo"; } >&5 3043 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3044 ac_status=$? 3045 if test -s conftest.err; then 3046 sed '10a\ 3047... rest of stderr output deleted ... 3048 10q' conftest.err >conftest.er1 3049 cat conftest.er1 >&5 3050 fi 3051 rm -f conftest.er1 conftest.err 3052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3053 test $ac_status = 0; } 3054done 3055 3056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3057/* end confdefs.h. */ 3058 3059int 3060main (void) 3061{ 3062 3063 ; 3064 return 0; 3065} 3066_ACEOF 3067ac_clean_files_save=$ac_clean_files 3068ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3069# Try to create an executable without -o first, disregard a.out. 3070# It will help us diagnose broken compilers, and finding out an intuition 3071# of exeext. 3072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3073printf %s "checking whether the C compiler works... " >&6; } 3074ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3075 3076# The possible output files: 3077ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3078 3079ac_rmfiles= 3080for ac_file in $ac_files 3081do 3082 case $ac_file in 3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3084 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3085 esac 3086done 3087rm -f $ac_rmfiles 3088 3089if { { ac_try="$ac_link_default" 3090case "(($ac_try" in 3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3092 *) ac_try_echo=$ac_try;; 3093esac 3094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3095printf "%s\n" "$ac_try_echo"; } >&5 3096 (eval "$ac_link_default") 2>&5 3097 ac_status=$? 3098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3099 test $ac_status = 0; } 3100then : 3101 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3102# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3103# in a Makefile. We should not override ac_cv_exeext if it was cached, 3104# so that the user can short-circuit this test for compilers unknown to 3105# Autoconf. 3106for ac_file in $ac_files '' 3107do 3108 test -f "$ac_file" || continue 3109 case $ac_file in 3110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3111 ;; 3112 [ab].out ) 3113 # We found the default executable, but exeext='' is most 3114 # certainly right. 3115 break;; 3116 *.* ) 3117 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3118 then :; else 3119 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3120 fi 3121 # We set ac_cv_exeext here because the later test for it is not 3122 # safe: cross compilers may not add the suffix if given an `-o' 3123 # argument, so we may need to know it at that point already. 3124 # Even if this section looks crufty: it has the advantage of 3125 # actually working. 3126 break;; 3127 * ) 3128 break;; 3129 esac 3130done 3131test "$ac_cv_exeext" = no && ac_cv_exeext= 3132 3133else $as_nop 3134 ac_file='' 3135fi 3136if test -z "$ac_file" 3137then : 3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3139printf "%s\n" "no" >&6; } 3140printf "%s\n" "$as_me: failed program was:" >&5 3141sed 's/^/| /' conftest.$ac_ext >&5 3142 3143{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3144printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3145as_fn_error 77 "C compiler cannot create executables 3146See \`config.log' for more details" "$LINENO" 5; } 3147else $as_nop 3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3149printf "%s\n" "yes" >&6; } 3150fi 3151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3152printf %s "checking for C compiler default output file name... " >&6; } 3153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3154printf "%s\n" "$ac_file" >&6; } 3155ac_exeext=$ac_cv_exeext 3156 3157rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3158ac_clean_files=$ac_clean_files_save 3159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3160printf %s "checking for suffix of executables... " >&6; } 3161if { { ac_try="$ac_link" 3162case "(($ac_try" in 3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3164 *) ac_try_echo=$ac_try;; 3165esac 3166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3167printf "%s\n" "$ac_try_echo"; } >&5 3168 (eval "$ac_link") 2>&5 3169 ac_status=$? 3170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3171 test $ac_status = 0; } 3172then : 3173 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3174# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3175# work properly (i.e., refer to `conftest.exe'), while it won't with 3176# `rm'. 3177for ac_file in conftest.exe conftest conftest.*; do 3178 test -f "$ac_file" || continue 3179 case $ac_file in 3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3181 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3182 break;; 3183 * ) break;; 3184 esac 3185done 3186else $as_nop 3187 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3188printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3189as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3190See \`config.log' for more details" "$LINENO" 5; } 3191fi 3192rm -f conftest conftest$ac_cv_exeext 3193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3194printf "%s\n" "$ac_cv_exeext" >&6; } 3195 3196rm -f conftest.$ac_ext 3197EXEEXT=$ac_cv_exeext 3198ac_exeext=$EXEEXT 3199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3200/* end confdefs.h. */ 3201#include <stdio.h> 3202int 3203main (void) 3204{ 3205FILE *f = fopen ("conftest.out", "w"); 3206 return ferror (f) || fclose (f) != 0; 3207 3208 ; 3209 return 0; 3210} 3211_ACEOF 3212ac_clean_files="$ac_clean_files conftest.out" 3213# Check that the compiler produces executables we can run. If not, either 3214# the compiler is broken, or we cross compile. 3215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3216printf %s "checking whether we are cross compiling... " >&6; } 3217if test "$cross_compiling" != yes; then 3218 { { ac_try="$ac_link" 3219case "(($ac_try" in 3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3221 *) ac_try_echo=$ac_try;; 3222esac 3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3224printf "%s\n" "$ac_try_echo"; } >&5 3225 (eval "$ac_link") 2>&5 3226 ac_status=$? 3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3228 test $ac_status = 0; } 3229 if { ac_try='./conftest$ac_cv_exeext' 3230 { { case "(($ac_try" in 3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3232 *) ac_try_echo=$ac_try;; 3233esac 3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3235printf "%s\n" "$ac_try_echo"; } >&5 3236 (eval "$ac_try") 2>&5 3237 ac_status=$? 3238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3239 test $ac_status = 0; }; }; then 3240 cross_compiling=no 3241 else 3242 if test "$cross_compiling" = maybe; then 3243 cross_compiling=yes 3244 else 3245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3246printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3247as_fn_error 77 "cannot run C compiled programs. 3248If you meant to cross compile, use \`--host'. 3249See \`config.log' for more details" "$LINENO" 5; } 3250 fi 3251 fi 3252fi 3253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3254printf "%s\n" "$cross_compiling" >&6; } 3255 3256rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3257ac_clean_files=$ac_clean_files_save 3258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3259printf %s "checking for suffix of object files... " >&6; } 3260if test ${ac_cv_objext+y} 3261then : 3262 printf %s "(cached) " >&6 3263else $as_nop 3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3265/* end confdefs.h. */ 3266 3267int 3268main (void) 3269{ 3270 3271 ; 3272 return 0; 3273} 3274_ACEOF 3275rm -f conftest.o conftest.obj 3276if { { ac_try="$ac_compile" 3277case "(($ac_try" in 3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3279 *) ac_try_echo=$ac_try;; 3280esac 3281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3282printf "%s\n" "$ac_try_echo"; } >&5 3283 (eval "$ac_compile") 2>&5 3284 ac_status=$? 3285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3286 test $ac_status = 0; } 3287then : 3288 for ac_file in conftest.o conftest.obj conftest.*; do 3289 test -f "$ac_file" || continue; 3290 case $ac_file in 3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3292 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3293 break;; 3294 esac 3295done 3296else $as_nop 3297 printf "%s\n" "$as_me: failed program was:" >&5 3298sed 's/^/| /' conftest.$ac_ext >&5 3299 3300{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3301printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3302as_fn_error $? "cannot compute suffix of object files: cannot compile 3303See \`config.log' for more details" "$LINENO" 5; } 3304fi 3305rm -f conftest.$ac_cv_objext conftest.$ac_ext 3306fi 3307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3308printf "%s\n" "$ac_cv_objext" >&6; } 3309OBJEXT=$ac_cv_objext 3310ac_objext=$OBJEXT 3311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3312printf %s "checking whether the compiler supports GNU C... " >&6; } 3313if test ${ac_cv_c_compiler_gnu+y} 3314then : 3315 printf %s "(cached) " >&6 3316else $as_nop 3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3318/* end confdefs.h. */ 3319 3320int 3321main (void) 3322{ 3323#ifndef __GNUC__ 3324 choke me 3325#endif 3326 3327 ; 3328 return 0; 3329} 3330_ACEOF 3331if ac_fn_c_try_compile "$LINENO" 3332then : 3333 ac_compiler_gnu=yes 3334else $as_nop 3335 ac_compiler_gnu=no 3336fi 3337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3338ac_cv_c_compiler_gnu=$ac_compiler_gnu 3339 3340fi 3341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3342printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3343ac_compiler_gnu=$ac_cv_c_compiler_gnu 3344 3345if test $ac_compiler_gnu = yes; then 3346 GCC=yes 3347else 3348 GCC= 3349fi 3350ac_test_CFLAGS=${CFLAGS+y} 3351ac_save_CFLAGS=$CFLAGS 3352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3353printf %s "checking whether $CC accepts -g... " >&6; } 3354if test ${ac_cv_prog_cc_g+y} 3355then : 3356 printf %s "(cached) " >&6 3357else $as_nop 3358 ac_save_c_werror_flag=$ac_c_werror_flag 3359 ac_c_werror_flag=yes 3360 ac_cv_prog_cc_g=no 3361 CFLAGS="-g" 3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3363/* end confdefs.h. */ 3364 3365int 3366main (void) 3367{ 3368 3369 ; 3370 return 0; 3371} 3372_ACEOF 3373if ac_fn_c_try_compile "$LINENO" 3374then : 3375 ac_cv_prog_cc_g=yes 3376else $as_nop 3377 CFLAGS="" 3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3379/* end confdefs.h. */ 3380 3381int 3382main (void) 3383{ 3384 3385 ; 3386 return 0; 3387} 3388_ACEOF 3389if ac_fn_c_try_compile "$LINENO" 3390then : 3391 3392else $as_nop 3393 ac_c_werror_flag=$ac_save_c_werror_flag 3394 CFLAGS="-g" 3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3396/* end confdefs.h. */ 3397 3398int 3399main (void) 3400{ 3401 3402 ; 3403 return 0; 3404} 3405_ACEOF 3406if ac_fn_c_try_compile "$LINENO" 3407then : 3408 ac_cv_prog_cc_g=yes 3409fi 3410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3411fi 3412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3413fi 3414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3415 ac_c_werror_flag=$ac_save_c_werror_flag 3416fi 3417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3418printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3419if test $ac_test_CFLAGS; then 3420 CFLAGS=$ac_save_CFLAGS 3421elif test $ac_cv_prog_cc_g = yes; then 3422 if test "$GCC" = yes; then 3423 CFLAGS="-g -O2" 3424 else 3425 CFLAGS="-g" 3426 fi 3427else 3428 if test "$GCC" = yes; then 3429 CFLAGS="-O2" 3430 else 3431 CFLAGS= 3432 fi 3433fi 3434ac_prog_cc_stdc=no 3435if test x$ac_prog_cc_stdc = xno 3436then : 3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3438printf %s "checking for $CC option to enable C11 features... " >&6; } 3439if test ${ac_cv_prog_cc_c11+y} 3440then : 3441 printf %s "(cached) " >&6 3442else $as_nop 3443 ac_cv_prog_cc_c11=no 3444ac_save_CC=$CC 3445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3446/* end confdefs.h. */ 3447$ac_c_conftest_c11_program 3448_ACEOF 3449for ac_arg in '' -std=gnu11 3450do 3451 CC="$ac_save_CC $ac_arg" 3452 if ac_fn_c_try_compile "$LINENO" 3453then : 3454 ac_cv_prog_cc_c11=$ac_arg 3455fi 3456rm -f core conftest.err conftest.$ac_objext conftest.beam 3457 test "x$ac_cv_prog_cc_c11" != "xno" && break 3458done 3459rm -f conftest.$ac_ext 3460CC=$ac_save_CC 3461fi 3462 3463if test "x$ac_cv_prog_cc_c11" = xno 3464then : 3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3466printf "%s\n" "unsupported" >&6; } 3467else $as_nop 3468 if test "x$ac_cv_prog_cc_c11" = x 3469then : 3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3471printf "%s\n" "none needed" >&6; } 3472else $as_nop 3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3474printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3475 CC="$CC $ac_cv_prog_cc_c11" 3476fi 3477 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3478 ac_prog_cc_stdc=c11 3479fi 3480fi 3481if test x$ac_prog_cc_stdc = xno 3482then : 3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3484printf %s "checking for $CC option to enable C99 features... " >&6; } 3485if test ${ac_cv_prog_cc_c99+y} 3486then : 3487 printf %s "(cached) " >&6 3488else $as_nop 3489 ac_cv_prog_cc_c99=no 3490ac_save_CC=$CC 3491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3492/* end confdefs.h. */ 3493$ac_c_conftest_c99_program 3494_ACEOF 3495for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3496do 3497 CC="$ac_save_CC $ac_arg" 3498 if ac_fn_c_try_compile "$LINENO" 3499then : 3500 ac_cv_prog_cc_c99=$ac_arg 3501fi 3502rm -f core conftest.err conftest.$ac_objext conftest.beam 3503 test "x$ac_cv_prog_cc_c99" != "xno" && break 3504done 3505rm -f conftest.$ac_ext 3506CC=$ac_save_CC 3507fi 3508 3509if test "x$ac_cv_prog_cc_c99" = xno 3510then : 3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3512printf "%s\n" "unsupported" >&6; } 3513else $as_nop 3514 if test "x$ac_cv_prog_cc_c99" = x 3515then : 3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3517printf "%s\n" "none needed" >&6; } 3518else $as_nop 3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3520printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3521 CC="$CC $ac_cv_prog_cc_c99" 3522fi 3523 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3524 ac_prog_cc_stdc=c99 3525fi 3526fi 3527if test x$ac_prog_cc_stdc = xno 3528then : 3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3530printf %s "checking for $CC option to enable C89 features... " >&6; } 3531if test ${ac_cv_prog_cc_c89+y} 3532then : 3533 printf %s "(cached) " >&6 3534else $as_nop 3535 ac_cv_prog_cc_c89=no 3536ac_save_CC=$CC 3537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3538/* end confdefs.h. */ 3539$ac_c_conftest_c89_program 3540_ACEOF 3541for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3542do 3543 CC="$ac_save_CC $ac_arg" 3544 if ac_fn_c_try_compile "$LINENO" 3545then : 3546 ac_cv_prog_cc_c89=$ac_arg 3547fi 3548rm -f core conftest.err conftest.$ac_objext conftest.beam 3549 test "x$ac_cv_prog_cc_c89" != "xno" && break 3550done 3551rm -f conftest.$ac_ext 3552CC=$ac_save_CC 3553fi 3554 3555if test "x$ac_cv_prog_cc_c89" = xno 3556then : 3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3558printf "%s\n" "unsupported" >&6; } 3559else $as_nop 3560 if test "x$ac_cv_prog_cc_c89" = x 3561then : 3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3563printf "%s\n" "none needed" >&6; } 3564else $as_nop 3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3566printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3567 CC="$CC $ac_cv_prog_cc_c89" 3568fi 3569 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3570 ac_prog_cc_stdc=c89 3571fi 3572fi 3573 3574ac_ext=c 3575ac_cpp='$CPP $CPPFLAGS' 3576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3578ac_compiler_gnu=$ac_cv_c_compiler_gnu 3579 3580 3581 ac_ext=c 3582ac_cpp='$CPP $CPPFLAGS' 3583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3585ac_compiler_gnu=$ac_cv_c_compiler_gnu 3586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3587printf %s "checking whether $CC understands -c and -o together... " >&6; } 3588if test ${am_cv_prog_cc_c_o+y} 3589then : 3590 printf %s "(cached) " >&6 3591else $as_nop 3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3593/* end confdefs.h. */ 3594 3595int 3596main (void) 3597{ 3598 3599 ; 3600 return 0; 3601} 3602_ACEOF 3603 # Make sure it works both with $CC and with simple cc. 3604 # Following AC_PROG_CC_C_O, we do the test twice because some 3605 # compilers refuse to overwrite an existing .o file with -o, 3606 # though they will create one. 3607 am_cv_prog_cc_c_o=yes 3608 for am_i in 1 2; do 3609 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3610 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3611 ac_status=$? 3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3613 (exit $ac_status); } \ 3614 && test -f conftest2.$ac_objext; then 3615 : OK 3616 else 3617 am_cv_prog_cc_c_o=no 3618 break 3619 fi 3620 done 3621 rm -f core conftest* 3622 unset am_i 3623fi 3624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3625printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3626if test "$am_cv_prog_cc_c_o" != yes; then 3627 # Losing compiler, so override with the script. 3628 # FIXME: It is wrong to rewrite CC. 3629 # But if we don't then we get into trouble of one sort or another. 3630 # A longer-term fix would be to have automake use am__CC in this case, 3631 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3632 CC="$am_aux_dir/compile $CC" 3633fi 3634ac_ext=c 3635ac_cpp='$CPP $CPPFLAGS' 3636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3638ac_compiler_gnu=$ac_cv_c_compiler_gnu 3639 3640 3641 3642ac_header= ac_cache= 3643for ac_item in $ac_header_c_list 3644do 3645 if test $ac_cache; then 3646 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3647 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3648 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3649 fi 3650 ac_header= ac_cache= 3651 elif test $ac_header; then 3652 ac_cache=$ac_item 3653 else 3654 ac_header=$ac_item 3655 fi 3656done 3657 3658 3659 3660 3661 3662 3663 3664 3665if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3666then : 3667 3668printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3669 3670fi 3671 3672 3673 3674 3675 3676 3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3678printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3679if test ${ac_cv_safe_to_define___extensions__+y} 3680then : 3681 printf %s "(cached) " >&6 3682else $as_nop 3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684/* end confdefs.h. */ 3685 3686# define __EXTENSIONS__ 1 3687 $ac_includes_default 3688int 3689main (void) 3690{ 3691 3692 ; 3693 return 0; 3694} 3695_ACEOF 3696if ac_fn_c_try_compile "$LINENO" 3697then : 3698 ac_cv_safe_to_define___extensions__=yes 3699else $as_nop 3700 ac_cv_safe_to_define___extensions__=no 3701fi 3702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3703fi 3704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3705printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3706 3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3708printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3709if test ${ac_cv_should_define__xopen_source+y} 3710then : 3711 printf %s "(cached) " >&6 3712else $as_nop 3713 ac_cv_should_define__xopen_source=no 3714 if test $ac_cv_header_wchar_h = yes 3715then : 3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3717/* end confdefs.h. */ 3718 3719 #include <wchar.h> 3720 mbstate_t x; 3721int 3722main (void) 3723{ 3724 3725 ; 3726 return 0; 3727} 3728_ACEOF 3729if ac_fn_c_try_compile "$LINENO" 3730then : 3731 3732else $as_nop 3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3734/* end confdefs.h. */ 3735 3736 #define _XOPEN_SOURCE 500 3737 #include <wchar.h> 3738 mbstate_t x; 3739int 3740main (void) 3741{ 3742 3743 ; 3744 return 0; 3745} 3746_ACEOF 3747if ac_fn_c_try_compile "$LINENO" 3748then : 3749 ac_cv_should_define__xopen_source=yes 3750fi 3751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3752fi 3753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3754fi 3755fi 3756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3757printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3758 3759 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3760 3761 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3762 3763 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3764 3765 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3766 3767 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3768 3769 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3770 3771 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3772 3773 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3774 3775 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3776 3777 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3778 3779 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3780 3781 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3782 3783 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3784 3785 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3786 3787 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3788 3789 if test $ac_cv_header_minix_config_h = yes 3790then : 3791 MINIX=yes 3792 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3793 3794 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3795 3796 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3797 3798else $as_nop 3799 MINIX= 3800fi 3801 if test $ac_cv_safe_to_define___extensions__ = yes 3802then : 3803 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3804 3805fi 3806 if test $ac_cv_should_define__xopen_source = yes 3807then : 3808 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3809 3810fi 3811 3812 3813am__api_version='1.16' 3814 3815 3816 # Find a good install program. We prefer a C program (faster), 3817# so one script is as good as another. But avoid the broken or 3818# incompatible versions: 3819# SysV /etc/install, /usr/sbin/install 3820# SunOS /usr/etc/install 3821# IRIX /sbin/install 3822# AIX /bin/install 3823# AmigaOS /C/install, which installs bootblocks on floppy discs 3824# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3825# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3826# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3827# OS/2's system install, which has a completely different semantic 3828# ./install, which can be erroneously created by make from ./install.sh. 3829# Reject install programs that cannot install multiple files. 3830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3831printf %s "checking for a BSD-compatible install... " >&6; } 3832if test -z "$INSTALL"; then 3833if test ${ac_cv_path_install+y} 3834then : 3835 printf %s "(cached) " >&6 3836else $as_nop 3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3838for as_dir in $PATH 3839do 3840 IFS=$as_save_IFS 3841 case $as_dir in #((( 3842 '') as_dir=./ ;; 3843 */) ;; 3844 *) as_dir=$as_dir/ ;; 3845 esac 3846 # Account for fact that we put trailing slashes in our PATH walk. 3847case $as_dir in #(( 3848 ./ | /[cC]/* | \ 3849 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3850 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3851 /usr/ucb/* ) ;; 3852 *) 3853 # OSF1 and SCO ODT 3.0 have their own names for install. 3854 # Don't use installbsd from OSF since it installs stuff as root 3855 # by default. 3856 for ac_prog in ginstall scoinst install; do 3857 for ac_exec_ext in '' $ac_executable_extensions; do 3858 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3859 if test $ac_prog = install && 3860 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3861 # AIX install. It has an incompatible calling convention. 3862 : 3863 elif test $ac_prog = install && 3864 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3865 # program-specific install script used by HP pwplus--don't use. 3866 : 3867 else 3868 rm -rf conftest.one conftest.two conftest.dir 3869 echo one > conftest.one 3870 echo two > conftest.two 3871 mkdir conftest.dir 3872 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3873 test -s conftest.one && test -s conftest.two && 3874 test -s conftest.dir/conftest.one && 3875 test -s conftest.dir/conftest.two 3876 then 3877 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3878 break 3 3879 fi 3880 fi 3881 fi 3882 done 3883 done 3884 ;; 3885esac 3886 3887 done 3888IFS=$as_save_IFS 3889 3890rm -rf conftest.one conftest.two conftest.dir 3891 3892fi 3893 if test ${ac_cv_path_install+y}; then 3894 INSTALL=$ac_cv_path_install 3895 else 3896 # As a last resort, use the slow shell script. Don't cache a 3897 # value for INSTALL within a source directory, because that will 3898 # break other packages using the cache if that directory is 3899 # removed, or if the value is a relative name. 3900 INSTALL=$ac_install_sh 3901 fi 3902fi 3903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3904printf "%s\n" "$INSTALL" >&6; } 3905 3906# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3907# It thinks the first close brace ends the variable substitution. 3908test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3909 3910test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3911 3912test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3913 3914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3915printf %s "checking whether build environment is sane... " >&6; } 3916# Reject unsafe characters in $srcdir or the absolute working directory 3917# name. Accept space and tab only in the latter. 3918am_lf=' 3919' 3920case `pwd` in 3921 *[\\\"\#\$\&\'\`$am_lf]*) 3922 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3923esac 3924case $srcdir in 3925 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3926 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3927esac 3928 3929# Do 'set' in a subshell so we don't clobber the current shell's 3930# arguments. Must try -L first in case configure is actually a 3931# symlink; some systems play weird games with the mod time of symlinks 3932# (eg FreeBSD returns the mod time of the symlink's containing 3933# directory). 3934if ( 3935 am_has_slept=no 3936 for am_try in 1 2; do 3937 echo "timestamp, slept: $am_has_slept" > conftest.file 3938 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3939 if test "$*" = "X"; then 3940 # -L didn't work. 3941 set X `ls -t "$srcdir/configure" conftest.file` 3942 fi 3943 if test "$*" != "X $srcdir/configure conftest.file" \ 3944 && test "$*" != "X conftest.file $srcdir/configure"; then 3945 3946 # If neither matched, then we have a broken ls. This can happen 3947 # if, for instance, CONFIG_SHELL is bash and it inherits a 3948 # broken ls alias from the environment. This has actually 3949 # happened. Such a system could not be considered "sane". 3950 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3951 alias in your environment" "$LINENO" 5 3952 fi 3953 if test "$2" = conftest.file || test $am_try -eq 2; then 3954 break 3955 fi 3956 # Just in case. 3957 sleep 1 3958 am_has_slept=yes 3959 done 3960 test "$2" = conftest.file 3961 ) 3962then 3963 # Ok. 3964 : 3965else 3966 as_fn_error $? "newly created file is older than distributed files! 3967Check your system clock" "$LINENO" 5 3968fi 3969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3970printf "%s\n" "yes" >&6; } 3971# If we didn't sleep, we still need to ensure time stamps of config.status and 3972# generated files are strictly newer. 3973am_sleep_pid= 3974if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3975 ( sleep 1 ) & 3976 am_sleep_pid=$! 3977fi 3978 3979rm -f conftest.file 3980 3981test "$program_prefix" != NONE && 3982 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3983# Use a double $ so make ignores it. 3984test "$program_suffix" != NONE && 3985 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3986# Double any \ or $. 3987# By default was `s,x,x', remove it if useless. 3988ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3989program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3990 3991 3992 if test x"${MISSING+set}" != xset; then 3993 MISSING="\${SHELL} '$am_aux_dir/missing'" 3994fi 3995# Use eval to expand $SHELL 3996if eval "$MISSING --is-lightweight"; then 3997 am_missing_run="$MISSING " 3998else 3999 am_missing_run= 4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4001printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4002fi 4003 4004if test x"${install_sh+set}" != xset; then 4005 case $am_aux_dir in 4006 *\ * | *\ *) 4007 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4008 *) 4009 install_sh="\${SHELL} $am_aux_dir/install-sh" 4010 esac 4011fi 4012 4013# Installed binaries are usually stripped using 'strip' when the user 4014# run "make install-strip". However 'strip' might not be the right 4015# tool to use in cross-compilation environments, therefore Automake 4016# will honor the 'STRIP' environment variable to overrule this program. 4017if test "$cross_compiling" != no; then 4018 if test -n "$ac_tool_prefix"; then 4019 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4020set dummy ${ac_tool_prefix}strip; ac_word=$2 4021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4022printf %s "checking for $ac_word... " >&6; } 4023if test ${ac_cv_prog_STRIP+y} 4024then : 4025 printf %s "(cached) " >&6 4026else $as_nop 4027 if test -n "$STRIP"; then 4028 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4029else 4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4031for as_dir in $PATH 4032do 4033 IFS=$as_save_IFS 4034 case $as_dir in #((( 4035 '') as_dir=./ ;; 4036 */) ;; 4037 *) as_dir=$as_dir/ ;; 4038 esac 4039 for ac_exec_ext in '' $ac_executable_extensions; do 4040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4041 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4043 break 2 4044 fi 4045done 4046 done 4047IFS=$as_save_IFS 4048 4049fi 4050fi 4051STRIP=$ac_cv_prog_STRIP 4052if test -n "$STRIP"; then 4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4054printf "%s\n" "$STRIP" >&6; } 4055else 4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4057printf "%s\n" "no" >&6; } 4058fi 4059 4060 4061fi 4062if test -z "$ac_cv_prog_STRIP"; then 4063 ac_ct_STRIP=$STRIP 4064 # Extract the first word of "strip", so it can be a program name with args. 4065set dummy strip; ac_word=$2 4066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4067printf %s "checking for $ac_word... " >&6; } 4068if test ${ac_cv_prog_ac_ct_STRIP+y} 4069then : 4070 printf %s "(cached) " >&6 4071else $as_nop 4072 if test -n "$ac_ct_STRIP"; then 4073 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4074else 4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4076for as_dir in $PATH 4077do 4078 IFS=$as_save_IFS 4079 case $as_dir in #((( 4080 '') as_dir=./ ;; 4081 */) ;; 4082 *) as_dir=$as_dir/ ;; 4083 esac 4084 for ac_exec_ext in '' $ac_executable_extensions; do 4085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4086 ac_cv_prog_ac_ct_STRIP="strip" 4087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4088 break 2 4089 fi 4090done 4091 done 4092IFS=$as_save_IFS 4093 4094fi 4095fi 4096ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4097if test -n "$ac_ct_STRIP"; then 4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4099printf "%s\n" "$ac_ct_STRIP" >&6; } 4100else 4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4102printf "%s\n" "no" >&6; } 4103fi 4104 4105 if test "x$ac_ct_STRIP" = x; then 4106 STRIP=":" 4107 else 4108 case $cross_compiling:$ac_tool_warned in 4109yes:) 4110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4111printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4112ac_tool_warned=yes ;; 4113esac 4114 STRIP=$ac_ct_STRIP 4115 fi 4116else 4117 STRIP="$ac_cv_prog_STRIP" 4118fi 4119 4120fi 4121INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4122 4123 4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4125printf %s "checking for a race-free mkdir -p... " >&6; } 4126if test -z "$MKDIR_P"; then 4127 if test ${ac_cv_path_mkdir+y} 4128then : 4129 printf %s "(cached) " >&6 4130else $as_nop 4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4132for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4133do 4134 IFS=$as_save_IFS 4135 case $as_dir in #((( 4136 '') as_dir=./ ;; 4137 */) ;; 4138 *) as_dir=$as_dir/ ;; 4139 esac 4140 for ac_prog in mkdir gmkdir; do 4141 for ac_exec_ext in '' $ac_executable_extensions; do 4142 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4143 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4144 'mkdir ('*'coreutils) '* | \ 4145 'BusyBox '* | \ 4146 'mkdir (fileutils) '4.1*) 4147 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4148 break 3;; 4149 esac 4150 done 4151 done 4152 done 4153IFS=$as_save_IFS 4154 4155fi 4156 4157 test -d ./--version && rmdir ./--version 4158 if test ${ac_cv_path_mkdir+y}; then 4159 MKDIR_P="$ac_cv_path_mkdir -p" 4160 else 4161 # As a last resort, use the slow shell script. Don't cache a 4162 # value for MKDIR_P within a source directory, because that will 4163 # break other packages using the cache if that directory is 4164 # removed, or if the value is a relative name. 4165 MKDIR_P="$ac_install_sh -d" 4166 fi 4167fi 4168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4169printf "%s\n" "$MKDIR_P" >&6; } 4170 4171for ac_prog in gawk mawk nawk awk 4172do 4173 # Extract the first word of "$ac_prog", so it can be a program name with args. 4174set dummy $ac_prog; ac_word=$2 4175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4176printf %s "checking for $ac_word... " >&6; } 4177if test ${ac_cv_prog_AWK+y} 4178then : 4179 printf %s "(cached) " >&6 4180else $as_nop 4181 if test -n "$AWK"; then 4182 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4183else 4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4185for as_dir in $PATH 4186do 4187 IFS=$as_save_IFS 4188 case $as_dir in #((( 4189 '') as_dir=./ ;; 4190 */) ;; 4191 *) as_dir=$as_dir/ ;; 4192 esac 4193 for ac_exec_ext in '' $ac_executable_extensions; do 4194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4195 ac_cv_prog_AWK="$ac_prog" 4196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4197 break 2 4198 fi 4199done 4200 done 4201IFS=$as_save_IFS 4202 4203fi 4204fi 4205AWK=$ac_cv_prog_AWK 4206if test -n "$AWK"; then 4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4208printf "%s\n" "$AWK" >&6; } 4209else 4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4211printf "%s\n" "no" >&6; } 4212fi 4213 4214 4215 test -n "$AWK" && break 4216done 4217 4218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4219printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4220set x ${MAKE-make} 4221ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4222if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4223then : 4224 printf %s "(cached) " >&6 4225else $as_nop 4226 cat >conftest.make <<\_ACEOF 4227SHELL = /bin/sh 4228all: 4229 @echo '@@@%%%=$(MAKE)=@@@%%%' 4230_ACEOF 4231# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4232case `${MAKE-make} -f conftest.make 2>/dev/null` in 4233 *@@@%%%=?*=@@@%%%*) 4234 eval ac_cv_prog_make_${ac_make}_set=yes;; 4235 *) 4236 eval ac_cv_prog_make_${ac_make}_set=no;; 4237esac 4238rm -f conftest.make 4239fi 4240if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4242printf "%s\n" "yes" >&6; } 4243 SET_MAKE= 4244else 4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4246printf "%s\n" "no" >&6; } 4247 SET_MAKE="MAKE=${MAKE-make}" 4248fi 4249 4250rm -rf .tst 2>/dev/null 4251mkdir .tst 2>/dev/null 4252if test -d .tst; then 4253 am__leading_dot=. 4254else 4255 am__leading_dot=_ 4256fi 4257rmdir .tst 2>/dev/null 4258 4259DEPDIR="${am__leading_dot}deps" 4260 4261ac_config_commands="$ac_config_commands depfiles" 4262 4263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4264printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4265cat > confinc.mk << 'END' 4266am__doit: 4267 @echo this is the am__doit target >confinc.out 4268.PHONY: am__doit 4269END 4270am__include="#" 4271am__quote= 4272# BSD make does it like this. 4273echo '.include "confinc.mk" # ignored' > confmf.BSD 4274# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4275echo 'include confinc.mk # ignored' > confmf.GNU 4276_am_result=no 4277for s in GNU BSD; do 4278 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4279 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4280 ac_status=$? 4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4282 (exit $ac_status); } 4283 case $?:`cat confinc.out 2>/dev/null` in #( 4284 '0:this is the am__doit target') : 4285 case $s in #( 4286 BSD) : 4287 am__include='.include' am__quote='"' ;; #( 4288 *) : 4289 am__include='include' am__quote='' ;; 4290esac ;; #( 4291 *) : 4292 ;; 4293esac 4294 if test "$am__include" != "#"; then 4295 _am_result="yes ($s style)" 4296 break 4297 fi 4298done 4299rm -f confinc.* confmf.* 4300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4301printf "%s\n" "${_am_result}" >&6; } 4302 4303# Check whether --enable-dependency-tracking was given. 4304if test ${enable_dependency_tracking+y} 4305then : 4306 enableval=$enable_dependency_tracking; 4307fi 4308 4309if test "x$enable_dependency_tracking" != xno; then 4310 am_depcomp="$ac_aux_dir/depcomp" 4311 AMDEPBACKSLASH='\' 4312 am__nodep='_no' 4313fi 4314 if test "x$enable_dependency_tracking" != xno; then 4315 AMDEP_TRUE= 4316 AMDEP_FALSE='#' 4317else 4318 AMDEP_TRUE='#' 4319 AMDEP_FALSE= 4320fi 4321 4322 4323# Check whether --enable-silent-rules was given. 4324if test ${enable_silent_rules+y} 4325then : 4326 enableval=$enable_silent_rules; 4327fi 4328 4329case $enable_silent_rules in # ((( 4330 yes) AM_DEFAULT_VERBOSITY=0;; 4331 no) AM_DEFAULT_VERBOSITY=1;; 4332 *) AM_DEFAULT_VERBOSITY=1;; 4333esac 4334am_make=${MAKE-make} 4335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4336printf %s "checking whether $am_make supports nested variables... " >&6; } 4337if test ${am_cv_make_support_nested_variables+y} 4338then : 4339 printf %s "(cached) " >&6 4340else $as_nop 4341 if printf "%s\n" 'TRUE=$(BAR$(V)) 4342BAR0=false 4343BAR1=true 4344V=1 4345am__doit: 4346 @$(TRUE) 4347.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4348 am_cv_make_support_nested_variables=yes 4349else 4350 am_cv_make_support_nested_variables=no 4351fi 4352fi 4353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4354printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4355if test $am_cv_make_support_nested_variables = yes; then 4356 AM_V='$(V)' 4357 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4358else 4359 AM_V=$AM_DEFAULT_VERBOSITY 4360 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4361fi 4362AM_BACKSLASH='\' 4363 4364if test "`cd $srcdir && pwd`" != "`pwd`"; then 4365 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4366 # is not polluted with repeated "-I." 4367 am__isrc=' -I$(srcdir)' 4368 # test to see if srcdir already configured 4369 if test -f $srcdir/config.status; then 4370 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4371 fi 4372fi 4373 4374# test whether we have cygpath 4375if test -z "$CYGPATH_W"; then 4376 if (cygpath --version) >/dev/null 2>/dev/null; then 4377 CYGPATH_W='cygpath -w' 4378 else 4379 CYGPATH_W=echo 4380 fi 4381fi 4382 4383 4384# Define the identity of the package. 4385 PACKAGE='libevdev' 4386 VERSION='1.13.1' 4387 4388 4389printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4390 4391 4392printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4393 4394# Some tools Automake needs. 4395 4396ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4397 4398 4399AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4400 4401 4402AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4403 4404 4405AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4406 4407 4408MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4409 4410# For better backward compatibility. To be removed once Automake 1.9.x 4411# dies out for good. For more background, see: 4412# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4413# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4414mkdir_p='$(MKDIR_P)' 4415 4416# We need awk for the "check" target (and possibly the TAP driver). The 4417# system "awk" is bad on some platforms. 4418# Always define AMTAR for backward compatibility. Yes, it's still used 4419# in the wild :-( We should find a proper way to deprecate it ... 4420AMTAR='$${TAR-tar}' 4421 4422 4423# We'll loop over all known methods to create a tar archive until one works. 4424_am_tools='gnutar pax cpio none' 4425 4426am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4427 4428 4429 4430 4431 4432depcc="$CC" am_compiler_list= 4433 4434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4435printf %s "checking dependency style of $depcc... " >&6; } 4436if test ${am_cv_CC_dependencies_compiler_type+y} 4437then : 4438 printf %s "(cached) " >&6 4439else $as_nop 4440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4441 # We make a subdir and do the tests there. Otherwise we can end up 4442 # making bogus files that we don't know about and never remove. For 4443 # instance it was reported that on HP-UX the gcc test will end up 4444 # making a dummy file named 'D' -- because '-MD' means "put the output 4445 # in D". 4446 rm -rf conftest.dir 4447 mkdir conftest.dir 4448 # Copy depcomp to subdir because otherwise we won't find it if we're 4449 # using a relative directory. 4450 cp "$am_depcomp" conftest.dir 4451 cd conftest.dir 4452 # We will build objects and dependencies in a subdirectory because 4453 # it helps to detect inapplicable dependency modes. For instance 4454 # both Tru64's cc and ICC support -MD to output dependencies as a 4455 # side effect of compilation, but ICC will put the dependencies in 4456 # the current directory while Tru64 will put them in the object 4457 # directory. 4458 mkdir sub 4459 4460 am_cv_CC_dependencies_compiler_type=none 4461 if test "$am_compiler_list" = ""; then 4462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4463 fi 4464 am__universal=false 4465 case " $depcc " in #( 4466 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4467 esac 4468 4469 for depmode in $am_compiler_list; do 4470 # Setup a source with many dependencies, because some compilers 4471 # like to wrap large dependency lists on column 80 (with \), and 4472 # we should not choose a depcomp mode which is confused by this. 4473 # 4474 # We need to recreate these files for each test, as the compiler may 4475 # overwrite some of them when testing with obscure command lines. 4476 # This happens at least with the AIX C compiler. 4477 : > sub/conftest.c 4478 for i in 1 2 3 4 5 6; do 4479 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4480 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4481 # Solaris 10 /bin/sh. 4482 echo '/* dummy */' > sub/conftst$i.h 4483 done 4484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4485 4486 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4487 # mode. It turns out that the SunPro C++ compiler does not properly 4488 # handle '-M -o', and we need to detect this. Also, some Intel 4489 # versions had trouble with output in subdirs. 4490 am__obj=sub/conftest.${OBJEXT-o} 4491 am__minus_obj="-o $am__obj" 4492 case $depmode in 4493 gcc) 4494 # This depmode causes a compiler race in universal mode. 4495 test "$am__universal" = false || continue 4496 ;; 4497 nosideeffect) 4498 # After this tag, mechanisms are not by side-effect, so they'll 4499 # only be used when explicitly requested. 4500 if test "x$enable_dependency_tracking" = xyes; then 4501 continue 4502 else 4503 break 4504 fi 4505 ;; 4506 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4507 # This compiler won't grok '-c -o', but also, the minuso test has 4508 # not run yet. These depmodes are late enough in the game, and 4509 # so weak that their functioning should not be impacted. 4510 am__obj=conftest.${OBJEXT-o} 4511 am__minus_obj= 4512 ;; 4513 none) break ;; 4514 esac 4515 if depmode=$depmode \ 4516 source=sub/conftest.c object=$am__obj \ 4517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4518 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4519 >/dev/null 2>conftest.err && 4520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4522 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4524 # icc doesn't choke on unknown options, it will just issue warnings 4525 # or remarks (even with -Werror). So we grep stderr for any message 4526 # that says an option was ignored or not supported. 4527 # When given -MP, icc 7.0 and 7.1 complain thusly: 4528 # icc: Command line warning: ignoring option '-M'; no argument required 4529 # The diagnosis changed in icc 8.0: 4530 # icc: Command line remark: option '-MP' not supported 4531 if (grep 'ignoring option' conftest.err || 4532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4533 am_cv_CC_dependencies_compiler_type=$depmode 4534 break 4535 fi 4536 fi 4537 done 4538 4539 cd .. 4540 rm -rf conftest.dir 4541else 4542 am_cv_CC_dependencies_compiler_type=none 4543fi 4544 4545fi 4546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4547printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4548CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4549 4550 if 4551 test "x$enable_dependency_tracking" != xno \ 4552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4553 am__fastdepCC_TRUE= 4554 am__fastdepCC_FALSE='#' 4555else 4556 am__fastdepCC_TRUE='#' 4557 am__fastdepCC_FALSE= 4558fi 4559 4560 4561# Variables for tags utilities; see am/tags.am 4562if test -z "$CTAGS"; then 4563 CTAGS=ctags 4564fi 4565 4566if test -z "$ETAGS"; then 4567 ETAGS=etags 4568fi 4569 4570if test -z "$CSCOPE"; then 4571 CSCOPE=cscope 4572fi 4573 4574 4575 4576# POSIX will say in a future version that running "rm -f" with no argument 4577# is OK; and we want to be able to make that assumption in our Makefile 4578# recipes. So use an aggressive probe to check that the usage we want is 4579# actually supported "in the wild" to an acceptable degree. 4580# See automake bug#10828. 4581# To make any issue more visible, cause the running configure to be aborted 4582# by default if the 'rm' program in use doesn't match our expectations; the 4583# user can still override this though. 4584if rm -f && rm -fr && rm -rf; then : OK; else 4585 cat >&2 <<'END' 4586Oops! 4587 4588Your 'rm' program seems unable to run without file operands specified 4589on the command line, even when the '-f' option is present. This is contrary 4590to the behaviour of most rm programs out there, and not conforming with 4591the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4592 4593Please tell bug-automake@gnu.org about your system, including the value 4594of your $PATH and any error possibly output before this message. This 4595can help us improve future automake versions. 4596 4597END 4598 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4599 echo 'Configuration will proceed anyway, since you have set the' >&2 4600 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4601 echo >&2 4602 else 4603 cat >&2 <<'END' 4604Aborting the configuration process, to ensure you take notice of the issue. 4605 4606You can download and install GNU coreutils to get an 'rm' implementation 4607that behaves properly: <https://www.gnu.org/software/coreutils/>. 4608 4609If you want to complete the configuration process using your problematic 4610'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4611to "yes", and re-run configure. 4612 4613END 4614 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4615 fi 4616fi 4617 4618 4619# DO NOT MODIFY THIS 4620# Use symbol versioning instead. 4621LIBEVDEV_LT_VERSION=5:0:3 4622 4623 4624 4625# Check whether --enable-silent-rules was given. 4626if test ${enable_silent_rules+y} 4627then : 4628 enableval=$enable_silent_rules; 4629fi 4630 4631case $enable_silent_rules in # ((( 4632 yes) AM_DEFAULT_VERBOSITY=0;; 4633 no) AM_DEFAULT_VERBOSITY=1;; 4634 *) AM_DEFAULT_VERBOSITY=0;; 4635esac 4636am_make=${MAKE-make} 4637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4638printf %s "checking whether $am_make supports nested variables... " >&6; } 4639if test ${am_cv_make_support_nested_variables+y} 4640then : 4641 printf %s "(cached) " >&6 4642else $as_nop 4643 if printf "%s\n" 'TRUE=$(BAR$(V)) 4644BAR0=false 4645BAR1=true 4646V=1 4647am__doit: 4648 @$(TRUE) 4649.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4650 am_cv_make_support_nested_variables=yes 4651else 4652 am_cv_make_support_nested_variables=no 4653fi 4654fi 4655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4656printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4657if test $am_cv_make_support_nested_variables = yes; then 4658 AM_V='$(V)' 4659 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4660else 4661 AM_V=$AM_DEFAULT_VERBOSITY 4662 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4663fi 4664AM_BACKSLASH='\' 4665 4666 4667# Check for programs 4668 4669 4670# Initialize libtool 4671 4672case `pwd` in 4673 *\ * | *\ *) 4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4675printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4676esac 4677 4678 4679 4680macro_version='2.4.7' 4681macro_revision='2.4.7' 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696ltmain=$ac_aux_dir/ltmain.sh 4697 4698 4699 4700 # Make sure we can run config.sub. 4701$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4702 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4703 4704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4705printf %s "checking build system type... " >&6; } 4706if test ${ac_cv_build+y} 4707then : 4708 printf %s "(cached) " >&6 4709else $as_nop 4710 ac_build_alias=$build_alias 4711test "x$ac_build_alias" = x && 4712 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4713test "x$ac_build_alias" = x && 4714 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4715ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4716 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4717 4718fi 4719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4720printf "%s\n" "$ac_cv_build" >&6; } 4721case $ac_cv_build in 4722*-*-*) ;; 4723*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4724esac 4725build=$ac_cv_build 4726ac_save_IFS=$IFS; IFS='-' 4727set x $ac_cv_build 4728shift 4729build_cpu=$1 4730build_vendor=$2 4731shift; shift 4732# Remember, the first character of IFS is used to create $*, 4733# except with old shells: 4734build_os=$* 4735IFS=$ac_save_IFS 4736case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4737 4738 4739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4740printf %s "checking host system type... " >&6; } 4741if test ${ac_cv_host+y} 4742then : 4743 printf %s "(cached) " >&6 4744else $as_nop 4745 if test "x$host_alias" = x; then 4746 ac_cv_host=$ac_cv_build 4747else 4748 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4749 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4750fi 4751 4752fi 4753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4754printf "%s\n" "$ac_cv_host" >&6; } 4755case $ac_cv_host in 4756*-*-*) ;; 4757*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4758esac 4759host=$ac_cv_host 4760ac_save_IFS=$IFS; IFS='-' 4761set x $ac_cv_host 4762shift 4763host_cpu=$1 4764host_vendor=$2 4765shift; shift 4766# Remember, the first character of IFS is used to create $*, 4767# except with old shells: 4768host_os=$* 4769IFS=$ac_save_IFS 4770case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4771 4772 4773# Backslashify metacharacters that are still active within 4774# double-quoted strings. 4775sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4776 4777# Same as above, but do not quote variable references. 4778double_quote_subst='s/\(["`\\]\)/\\\1/g' 4779 4780# Sed substitution to delay expansion of an escaped shell variable in a 4781# double_quote_subst'ed string. 4782delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4783 4784# Sed substitution to delay expansion of an escaped single quote. 4785delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4786 4787# Sed substitution to avoid accidental globbing in evaled expressions 4788no_glob_subst='s/\*/\\\*/g' 4789 4790ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4791ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4792ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4793 4794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4795printf %s "checking how to print strings... " >&6; } 4796# Test print first, because it will be a builtin if present. 4797if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4798 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4799 ECHO='print -r --' 4800elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4801 ECHO='printf %s\n' 4802else 4803 # Use this function as a fallback that always works. 4804 func_fallback_echo () 4805 { 4806 eval 'cat <<_LTECHO_EOF 4807$1 4808_LTECHO_EOF' 4809 } 4810 ECHO='func_fallback_echo' 4811fi 4812 4813# func_echo_all arg... 4814# Invoke $ECHO with all args, space-separated. 4815func_echo_all () 4816{ 4817 $ECHO "" 4818} 4819 4820case $ECHO in 4821 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4822printf "%s\n" "printf" >&6; } ;; 4823 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4824printf "%s\n" "print -r" >&6; } ;; 4825 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4826printf "%s\n" "cat" >&6; } ;; 4827esac 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4843printf %s "checking for a sed that does not truncate output... " >&6; } 4844if test ${ac_cv_path_SED+y} 4845then : 4846 printf %s "(cached) " >&6 4847else $as_nop 4848 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4849 for ac_i in 1 2 3 4 5 6 7; do 4850 ac_script="$ac_script$as_nl$ac_script" 4851 done 4852 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4853 { ac_script=; unset ac_script;} 4854 if test -z "$SED"; then 4855 ac_path_SED_found=false 4856 # Loop through the user's path and test for each of PROGNAME-LIST 4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4858for as_dir in $PATH 4859do 4860 IFS=$as_save_IFS 4861 case $as_dir in #((( 4862 '') as_dir=./ ;; 4863 */) ;; 4864 *) as_dir=$as_dir/ ;; 4865 esac 4866 for ac_prog in sed gsed 4867 do 4868 for ac_exec_ext in '' $ac_executable_extensions; do 4869 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4870 as_fn_executable_p "$ac_path_SED" || continue 4871# Check for GNU ac_path_SED and select it if it is found. 4872 # Check for GNU $ac_path_SED 4873case `"$ac_path_SED" --version 2>&1` in 4874*GNU*) 4875 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4876*) 4877 ac_count=0 4878 printf %s 0123456789 >"conftest.in" 4879 while : 4880 do 4881 cat "conftest.in" "conftest.in" >"conftest.tmp" 4882 mv "conftest.tmp" "conftest.in" 4883 cp "conftest.in" "conftest.nl" 4884 printf "%s\n" '' >> "conftest.nl" 4885 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4887 as_fn_arith $ac_count + 1 && ac_count=$as_val 4888 if test $ac_count -gt ${ac_path_SED_max-0}; then 4889 # Best one so far, save it but keep looking for a better one 4890 ac_cv_path_SED="$ac_path_SED" 4891 ac_path_SED_max=$ac_count 4892 fi 4893 # 10*(2^10) chars as input seems more than enough 4894 test $ac_count -gt 10 && break 4895 done 4896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4897esac 4898 4899 $ac_path_SED_found && break 3 4900 done 4901 done 4902 done 4903IFS=$as_save_IFS 4904 if test -z "$ac_cv_path_SED"; then 4905 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4906 fi 4907else 4908 ac_cv_path_SED=$SED 4909fi 4910 4911fi 4912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4913printf "%s\n" "$ac_cv_path_SED" >&6; } 4914 SED="$ac_cv_path_SED" 4915 rm -f conftest.sed 4916 4917test -z "$SED" && SED=sed 4918Xsed="$SED -e 1s/^X//" 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4931printf %s "checking for grep that handles long lines and -e... " >&6; } 4932if test ${ac_cv_path_GREP+y} 4933then : 4934 printf %s "(cached) " >&6 4935else $as_nop 4936 if test -z "$GREP"; then 4937 ac_path_GREP_found=false 4938 # Loop through the user's path and test for each of PROGNAME-LIST 4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4940for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4941do 4942 IFS=$as_save_IFS 4943 case $as_dir in #((( 4944 '') as_dir=./ ;; 4945 */) ;; 4946 *) as_dir=$as_dir/ ;; 4947 esac 4948 for ac_prog in grep ggrep 4949 do 4950 for ac_exec_ext in '' $ac_executable_extensions; do 4951 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4952 as_fn_executable_p "$ac_path_GREP" || continue 4953# Check for GNU ac_path_GREP and select it if it is found. 4954 # Check for GNU $ac_path_GREP 4955case `"$ac_path_GREP" --version 2>&1` in 4956*GNU*) 4957 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4958*) 4959 ac_count=0 4960 printf %s 0123456789 >"conftest.in" 4961 while : 4962 do 4963 cat "conftest.in" "conftest.in" >"conftest.tmp" 4964 mv "conftest.tmp" "conftest.in" 4965 cp "conftest.in" "conftest.nl" 4966 printf "%s\n" 'GREP' >> "conftest.nl" 4967 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4969 as_fn_arith $ac_count + 1 && ac_count=$as_val 4970 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4971 # Best one so far, save it but keep looking for a better one 4972 ac_cv_path_GREP="$ac_path_GREP" 4973 ac_path_GREP_max=$ac_count 4974 fi 4975 # 10*(2^10) chars as input seems more than enough 4976 test $ac_count -gt 10 && break 4977 done 4978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4979esac 4980 4981 $ac_path_GREP_found && break 3 4982 done 4983 done 4984 done 4985IFS=$as_save_IFS 4986 if test -z "$ac_cv_path_GREP"; then 4987 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4988 fi 4989else 4990 ac_cv_path_GREP=$GREP 4991fi 4992 4993fi 4994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4995printf "%s\n" "$ac_cv_path_GREP" >&6; } 4996 GREP="$ac_cv_path_GREP" 4997 4998 4999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5000printf %s "checking for egrep... " >&6; } 5001if test ${ac_cv_path_EGREP+y} 5002then : 5003 printf %s "(cached) " >&6 5004else $as_nop 5005 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5006 then ac_cv_path_EGREP="$GREP -E" 5007 else 5008 if test -z "$EGREP"; then 5009 ac_path_EGREP_found=false 5010 # Loop through the user's path and test for each of PROGNAME-LIST 5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5012for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5013do 5014 IFS=$as_save_IFS 5015 case $as_dir in #((( 5016 '') as_dir=./ ;; 5017 */) ;; 5018 *) as_dir=$as_dir/ ;; 5019 esac 5020 for ac_prog in egrep 5021 do 5022 for ac_exec_ext in '' $ac_executable_extensions; do 5023 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5024 as_fn_executable_p "$ac_path_EGREP" || continue 5025# Check for GNU ac_path_EGREP and select it if it is found. 5026 # Check for GNU $ac_path_EGREP 5027case `"$ac_path_EGREP" --version 2>&1` in 5028*GNU*) 5029 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5030*) 5031 ac_count=0 5032 printf %s 0123456789 >"conftest.in" 5033 while : 5034 do 5035 cat "conftest.in" "conftest.in" >"conftest.tmp" 5036 mv "conftest.tmp" "conftest.in" 5037 cp "conftest.in" "conftest.nl" 5038 printf "%s\n" 'EGREP' >> "conftest.nl" 5039 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5041 as_fn_arith $ac_count + 1 && ac_count=$as_val 5042 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5043 # Best one so far, save it but keep looking for a better one 5044 ac_cv_path_EGREP="$ac_path_EGREP" 5045 ac_path_EGREP_max=$ac_count 5046 fi 5047 # 10*(2^10) chars as input seems more than enough 5048 test $ac_count -gt 10 && break 5049 done 5050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5051esac 5052 5053 $ac_path_EGREP_found && break 3 5054 done 5055 done 5056 done 5057IFS=$as_save_IFS 5058 if test -z "$ac_cv_path_EGREP"; then 5059 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5060 fi 5061else 5062 ac_cv_path_EGREP=$EGREP 5063fi 5064 5065 fi 5066fi 5067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5068printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5069 EGREP="$ac_cv_path_EGREP" 5070 5071 5072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5073printf %s "checking for fgrep... " >&6; } 5074if test ${ac_cv_path_FGREP+y} 5075then : 5076 printf %s "(cached) " >&6 5077else $as_nop 5078 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5079 then ac_cv_path_FGREP="$GREP -F" 5080 else 5081 if test -z "$FGREP"; then 5082 ac_path_FGREP_found=false 5083 # Loop through the user's path and test for each of PROGNAME-LIST 5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5085for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5086do 5087 IFS=$as_save_IFS 5088 case $as_dir in #((( 5089 '') as_dir=./ ;; 5090 */) ;; 5091 *) as_dir=$as_dir/ ;; 5092 esac 5093 for ac_prog in fgrep 5094 do 5095 for ac_exec_ext in '' $ac_executable_extensions; do 5096 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5097 as_fn_executable_p "$ac_path_FGREP" || continue 5098# Check for GNU ac_path_FGREP and select it if it is found. 5099 # Check for GNU $ac_path_FGREP 5100case `"$ac_path_FGREP" --version 2>&1` in 5101*GNU*) 5102 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5103*) 5104 ac_count=0 5105 printf %s 0123456789 >"conftest.in" 5106 while : 5107 do 5108 cat "conftest.in" "conftest.in" >"conftest.tmp" 5109 mv "conftest.tmp" "conftest.in" 5110 cp "conftest.in" "conftest.nl" 5111 printf "%s\n" 'FGREP' >> "conftest.nl" 5112 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5114 as_fn_arith $ac_count + 1 && ac_count=$as_val 5115 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5116 # Best one so far, save it but keep looking for a better one 5117 ac_cv_path_FGREP="$ac_path_FGREP" 5118 ac_path_FGREP_max=$ac_count 5119 fi 5120 # 10*(2^10) chars as input seems more than enough 5121 test $ac_count -gt 10 && break 5122 done 5123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5124esac 5125 5126 $ac_path_FGREP_found && break 3 5127 done 5128 done 5129 done 5130IFS=$as_save_IFS 5131 if test -z "$ac_cv_path_FGREP"; then 5132 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5133 fi 5134else 5135 ac_cv_path_FGREP=$FGREP 5136fi 5137 5138 fi 5139fi 5140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5141printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5142 FGREP="$ac_cv_path_FGREP" 5143 5144 5145test -z "$GREP" && GREP=grep 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165# Check whether --with-gnu-ld was given. 5166if test ${with_gnu_ld+y} 5167then : 5168 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5169else $as_nop 5170 with_gnu_ld=no 5171fi 5172 5173ac_prog=ld 5174if test yes = "$GCC"; then 5175 # Check if gcc -print-prog-name=ld gives a path. 5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5177printf %s "checking for ld used by $CC... " >&6; } 5178 case $host in 5179 *-*-mingw*) 5180 # gcc leaves a trailing carriage return, which upsets mingw 5181 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5182 *) 5183 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5184 esac 5185 case $ac_prog in 5186 # Accept absolute paths. 5187 [\\/]* | ?:[\\/]*) 5188 re_direlt='/[^/][^/]*/\.\./' 5189 # Canonicalize the pathname of ld 5190 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5191 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5192 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5193 done 5194 test -z "$LD" && LD=$ac_prog 5195 ;; 5196 "") 5197 # If it fails, then pretend we aren't using GCC. 5198 ac_prog=ld 5199 ;; 5200 *) 5201 # If it is relative, then search for the first ld in PATH. 5202 with_gnu_ld=unknown 5203 ;; 5204 esac 5205elif test yes = "$with_gnu_ld"; then 5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5207printf %s "checking for GNU ld... " >&6; } 5208else 5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5210printf %s "checking for non-GNU ld... " >&6; } 5211fi 5212if test ${lt_cv_path_LD+y} 5213then : 5214 printf %s "(cached) " >&6 5215else $as_nop 5216 if test -z "$LD"; then 5217 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5218 for ac_dir in $PATH; do 5219 IFS=$lt_save_ifs 5220 test -z "$ac_dir" && ac_dir=. 5221 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5222 lt_cv_path_LD=$ac_dir/$ac_prog 5223 # Check to see if the program is GNU ld. I'd rather use --version, 5224 # but apparently some variants of GNU ld only accept -v. 5225 # Break only if it was the GNU/non-GNU ld that we prefer. 5226 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5227 *GNU* | *'with BFD'*) 5228 test no != "$with_gnu_ld" && break 5229 ;; 5230 *) 5231 test yes != "$with_gnu_ld" && break 5232 ;; 5233 esac 5234 fi 5235 done 5236 IFS=$lt_save_ifs 5237else 5238 lt_cv_path_LD=$LD # Let the user override the test with a path. 5239fi 5240fi 5241 5242LD=$lt_cv_path_LD 5243if test -n "$LD"; then 5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5245printf "%s\n" "$LD" >&6; } 5246else 5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5248printf "%s\n" "no" >&6; } 5249fi 5250test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5252printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5253if test ${lt_cv_prog_gnu_ld+y} 5254then : 5255 printf %s "(cached) " >&6 5256else $as_nop 5257 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5258case `$LD -v 2>&1 </dev/null` in 5259*GNU* | *'with BFD'*) 5260 lt_cv_prog_gnu_ld=yes 5261 ;; 5262*) 5263 lt_cv_prog_gnu_ld=no 5264 ;; 5265esac 5266fi 5267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5268printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5269with_gnu_ld=$lt_cv_prog_gnu_ld 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5280printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5281if test ${lt_cv_path_NM+y} 5282then : 5283 printf %s "(cached) " >&6 5284else $as_nop 5285 if test -n "$NM"; then 5286 # Let the user override the test. 5287 lt_cv_path_NM=$NM 5288else 5289 lt_nm_to_check=${ac_tool_prefix}nm 5290 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5291 lt_nm_to_check="$lt_nm_to_check nm" 5292 fi 5293 for lt_tmp_nm in $lt_nm_to_check; do 5294 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5295 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5296 IFS=$lt_save_ifs 5297 test -z "$ac_dir" && ac_dir=. 5298 tmp_nm=$ac_dir/$lt_tmp_nm 5299 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5300 # Check to see if the nm accepts a BSD-compat flag. 5301 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5302 # nm: unknown option "B" ignored 5303 # Tru64's nm complains that /dev/null is an invalid object file 5304 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5305 case $build_os in 5306 mingw*) lt_bad_file=conftest.nm/nofile ;; 5307 *) lt_bad_file=/dev/null ;; 5308 esac 5309 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5310 *$lt_bad_file* | *'Invalid file or object type'*) 5311 lt_cv_path_NM="$tmp_nm -B" 5312 break 2 5313 ;; 5314 *) 5315 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5316 */dev/null*) 5317 lt_cv_path_NM="$tmp_nm -p" 5318 break 2 5319 ;; 5320 *) 5321 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5322 continue # so that we can try to find one that supports BSD flags 5323 ;; 5324 esac 5325 ;; 5326 esac 5327 fi 5328 done 5329 IFS=$lt_save_ifs 5330 done 5331 : ${lt_cv_path_NM=no} 5332fi 5333fi 5334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5335printf "%s\n" "$lt_cv_path_NM" >&6; } 5336if test no != "$lt_cv_path_NM"; then 5337 NM=$lt_cv_path_NM 5338else 5339 # Didn't find any BSD compatible name lister, look for dumpbin. 5340 if test -n "$DUMPBIN"; then : 5341 # Let the user override the test. 5342 else 5343 if test -n "$ac_tool_prefix"; then 5344 for ac_prog in dumpbin "link -dump" 5345 do 5346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5347set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5349printf %s "checking for $ac_word... " >&6; } 5350if test ${ac_cv_prog_DUMPBIN+y} 5351then : 5352 printf %s "(cached) " >&6 5353else $as_nop 5354 if test -n "$DUMPBIN"; then 5355 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5356else 5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5358for as_dir in $PATH 5359do 5360 IFS=$as_save_IFS 5361 case $as_dir in #((( 5362 '') as_dir=./ ;; 5363 */) ;; 5364 *) as_dir=$as_dir/ ;; 5365 esac 5366 for ac_exec_ext in '' $ac_executable_extensions; do 5367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5368 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5370 break 2 5371 fi 5372done 5373 done 5374IFS=$as_save_IFS 5375 5376fi 5377fi 5378DUMPBIN=$ac_cv_prog_DUMPBIN 5379if test -n "$DUMPBIN"; then 5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5381printf "%s\n" "$DUMPBIN" >&6; } 5382else 5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5384printf "%s\n" "no" >&6; } 5385fi 5386 5387 5388 test -n "$DUMPBIN" && break 5389 done 5390fi 5391if test -z "$DUMPBIN"; then 5392 ac_ct_DUMPBIN=$DUMPBIN 5393 for ac_prog in dumpbin "link -dump" 5394do 5395 # Extract the first word of "$ac_prog", so it can be a program name with args. 5396set dummy $ac_prog; ac_word=$2 5397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5398printf %s "checking for $ac_word... " >&6; } 5399if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5400then : 5401 printf %s "(cached) " >&6 5402else $as_nop 5403 if test -n "$ac_ct_DUMPBIN"; then 5404 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5405else 5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5407for as_dir in $PATH 5408do 5409 IFS=$as_save_IFS 5410 case $as_dir in #((( 5411 '') as_dir=./ ;; 5412 */) ;; 5413 *) as_dir=$as_dir/ ;; 5414 esac 5415 for ac_exec_ext in '' $ac_executable_extensions; do 5416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5417 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5419 break 2 5420 fi 5421done 5422 done 5423IFS=$as_save_IFS 5424 5425fi 5426fi 5427ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5428if test -n "$ac_ct_DUMPBIN"; then 5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5430printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5431else 5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5433printf "%s\n" "no" >&6; } 5434fi 5435 5436 5437 test -n "$ac_ct_DUMPBIN" && break 5438done 5439 5440 if test "x$ac_ct_DUMPBIN" = x; then 5441 DUMPBIN=":" 5442 else 5443 case $cross_compiling:$ac_tool_warned in 5444yes:) 5445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5446printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5447ac_tool_warned=yes ;; 5448esac 5449 DUMPBIN=$ac_ct_DUMPBIN 5450 fi 5451fi 5452 5453 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5454 *COFF*) 5455 DUMPBIN="$DUMPBIN -symbols -headers" 5456 ;; 5457 *) 5458 DUMPBIN=: 5459 ;; 5460 esac 5461 fi 5462 5463 if test : != "$DUMPBIN"; then 5464 NM=$DUMPBIN 5465 fi 5466fi 5467test -z "$NM" && NM=nm 5468 5469 5470 5471 5472 5473 5474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5475printf %s "checking the name lister ($NM) interface... " >&6; } 5476if test ${lt_cv_nm_interface+y} 5477then : 5478 printf %s "(cached) " >&6 5479else $as_nop 5480 lt_cv_nm_interface="BSD nm" 5481 echo "int some_variable = 0;" > conftest.$ac_ext 5482 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5483 (eval "$ac_compile" 2>conftest.err) 5484 cat conftest.err >&5 5485 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5486 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5487 cat conftest.err >&5 5488 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5489 cat conftest.out >&5 5490 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5491 lt_cv_nm_interface="MS dumpbin" 5492 fi 5493 rm -f conftest* 5494fi 5495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5496printf "%s\n" "$lt_cv_nm_interface" >&6; } 5497 5498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5499printf %s "checking whether ln -s works... " >&6; } 5500LN_S=$as_ln_s 5501if test "$LN_S" = "ln -s"; then 5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5503printf "%s\n" "yes" >&6; } 5504else 5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5506printf "%s\n" "no, using $LN_S" >&6; } 5507fi 5508 5509# find the maximum length of command line arguments 5510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5511printf %s "checking the maximum length of command line arguments... " >&6; } 5512if test ${lt_cv_sys_max_cmd_len+y} 5513then : 5514 printf %s "(cached) " >&6 5515else $as_nop 5516 i=0 5517 teststring=ABCD 5518 5519 case $build_os in 5520 msdosdjgpp*) 5521 # On DJGPP, this test can blow up pretty badly due to problems in libc 5522 # (any single argument exceeding 2000 bytes causes a buffer overrun 5523 # during glob expansion). Even if it were fixed, the result of this 5524 # check would be larger than it should be. 5525 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5526 ;; 5527 5528 gnu*) 5529 # Under GNU Hurd, this test is not required because there is 5530 # no limit to the length of command line arguments. 5531 # Libtool will interpret -1 as no limit whatsoever 5532 lt_cv_sys_max_cmd_len=-1; 5533 ;; 5534 5535 cygwin* | mingw* | cegcc*) 5536 # On Win9x/ME, this test blows up -- it succeeds, but takes 5537 # about 5 minutes as the teststring grows exponentially. 5538 # Worse, since 9x/ME are not pre-emptively multitasking, 5539 # you end up with a "frozen" computer, even though with patience 5540 # the test eventually succeeds (with a max line length of 256k). 5541 # Instead, let's just punt: use the minimum linelength reported by 5542 # all of the supported platforms: 8192 (on NT/2K/XP). 5543 lt_cv_sys_max_cmd_len=8192; 5544 ;; 5545 5546 mint*) 5547 # On MiNT this can take a long time and run out of memory. 5548 lt_cv_sys_max_cmd_len=8192; 5549 ;; 5550 5551 amigaos*) 5552 # On AmigaOS with pdksh, this test takes hours, literally. 5553 # So we just punt and use a minimum line length of 8192. 5554 lt_cv_sys_max_cmd_len=8192; 5555 ;; 5556 5557 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5558 # This has been around since 386BSD, at least. Likely further. 5559 if test -x /sbin/sysctl; then 5560 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5561 elif test -x /usr/sbin/sysctl; then 5562 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5563 else 5564 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5565 fi 5566 # And add a safety zone 5567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5569 ;; 5570 5571 interix*) 5572 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5573 lt_cv_sys_max_cmd_len=196608 5574 ;; 5575 5576 os2*) 5577 # The test takes a long time on OS/2. 5578 lt_cv_sys_max_cmd_len=8192 5579 ;; 5580 5581 osf*) 5582 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5583 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5584 # nice to cause kernel panics so lets avoid the loop below. 5585 # First set a reasonable default. 5586 lt_cv_sys_max_cmd_len=16384 5587 # 5588 if test -x /sbin/sysconfig; then 5589 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5590 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5591 esac 5592 fi 5593 ;; 5594 sco3.2v5*) 5595 lt_cv_sys_max_cmd_len=102400 5596 ;; 5597 sysv5* | sco5v6* | sysv4.2uw2*) 5598 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5599 if test -n "$kargmax"; then 5600 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5601 else 5602 lt_cv_sys_max_cmd_len=32768 5603 fi 5604 ;; 5605 *) 5606 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5607 if test -n "$lt_cv_sys_max_cmd_len" && \ 5608 test undefined != "$lt_cv_sys_max_cmd_len"; then 5609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5611 else 5612 # Make teststring a little bigger before we do anything with it. 5613 # a 1K string should be a reasonable start. 5614 for i in 1 2 3 4 5 6 7 8; do 5615 teststring=$teststring$teststring 5616 done 5617 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5618 # If test is not a shell built-in, we'll probably end up computing a 5619 # maximum length that is only half of the actual maximum length, but 5620 # we can't tell. 5621 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5622 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5623 test 17 != "$i" # 1/2 MB should be enough 5624 do 5625 i=`expr $i + 1` 5626 teststring=$teststring$teststring 5627 done 5628 # Only check the string length outside the loop. 5629 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5630 teststring= 5631 # Add a significant safety factor because C++ compilers can tack on 5632 # massive amounts of additional arguments before passing them to the 5633 # linker. It appears as though 1/2 is a usable value. 5634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5635 fi 5636 ;; 5637 esac 5638 5639fi 5640 5641if test -n "$lt_cv_sys_max_cmd_len"; then 5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5643printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5644else 5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5646printf "%s\n" "none" >&6; } 5647fi 5648max_cmd_len=$lt_cv_sys_max_cmd_len 5649 5650 5651 5652 5653 5654 5655: ${CP="cp -f"} 5656: ${MV="mv -f"} 5657: ${RM="rm -f"} 5658 5659if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5660 lt_unset=unset 5661else 5662 lt_unset=false 5663fi 5664 5665 5666 5667 5668 5669# test EBCDIC or ASCII 5670case `echo X|tr X '\101'` in 5671 A) # ASCII based system 5672 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5673 lt_SP2NL='tr \040 \012' 5674 lt_NL2SP='tr \015\012 \040\040' 5675 ;; 5676 *) # EBCDIC based system 5677 lt_SP2NL='tr \100 \n' 5678 lt_NL2SP='tr \r\n \100\100' 5679 ;; 5680esac 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5691printf %s "checking how to convert $build file names to $host format... " >&6; } 5692if test ${lt_cv_to_host_file_cmd+y} 5693then : 5694 printf %s "(cached) " >&6 5695else $as_nop 5696 case $host in 5697 *-*-mingw* ) 5698 case $build in 5699 *-*-mingw* ) # actually msys 5700 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5701 ;; 5702 *-*-cygwin* ) 5703 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5704 ;; 5705 * ) # otherwise, assume *nix 5706 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5707 ;; 5708 esac 5709 ;; 5710 *-*-cygwin* ) 5711 case $build in 5712 *-*-mingw* ) # actually msys 5713 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5714 ;; 5715 *-*-cygwin* ) 5716 lt_cv_to_host_file_cmd=func_convert_file_noop 5717 ;; 5718 * ) # otherwise, assume *nix 5719 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5720 ;; 5721 esac 5722 ;; 5723 * ) # unhandled hosts (and "normal" native builds) 5724 lt_cv_to_host_file_cmd=func_convert_file_noop 5725 ;; 5726esac 5727 5728fi 5729 5730to_host_file_cmd=$lt_cv_to_host_file_cmd 5731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5732printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5733 5734 5735 5736 5737 5738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5739printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5740if test ${lt_cv_to_tool_file_cmd+y} 5741then : 5742 printf %s "(cached) " >&6 5743else $as_nop 5744 #assume ordinary cross tools, or native build. 5745lt_cv_to_tool_file_cmd=func_convert_file_noop 5746case $host in 5747 *-*-mingw* ) 5748 case $build in 5749 *-*-mingw* ) # actually msys 5750 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5751 ;; 5752 esac 5753 ;; 5754esac 5755 5756fi 5757 5758to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5760printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5761 5762 5763 5764 5765 5766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5767printf %s "checking for $LD option to reload object files... " >&6; } 5768if test ${lt_cv_ld_reload_flag+y} 5769then : 5770 printf %s "(cached) " >&6 5771else $as_nop 5772 lt_cv_ld_reload_flag='-r' 5773fi 5774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5775printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5776reload_flag=$lt_cv_ld_reload_flag 5777case $reload_flag in 5778"" | " "*) ;; 5779*) reload_flag=" $reload_flag" ;; 5780esac 5781reload_cmds='$LD$reload_flag -o $output$reload_objs' 5782case $host_os in 5783 cygwin* | mingw* | pw32* | cegcc*) 5784 if test yes != "$GCC"; then 5785 reload_cmds=false 5786 fi 5787 ;; 5788 darwin*) 5789 if test yes = "$GCC"; then 5790 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5791 else 5792 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5793 fi 5794 ;; 5795esac 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805if test -n "$ac_tool_prefix"; then 5806 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5807set dummy ${ac_tool_prefix}file; ac_word=$2 5808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5809printf %s "checking for $ac_word... " >&6; } 5810if test ${ac_cv_prog_FILECMD+y} 5811then : 5812 printf %s "(cached) " >&6 5813else $as_nop 5814 if test -n "$FILECMD"; then 5815 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5816else 5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5818for as_dir in $PATH 5819do 5820 IFS=$as_save_IFS 5821 case $as_dir in #((( 5822 '') as_dir=./ ;; 5823 */) ;; 5824 *) as_dir=$as_dir/ ;; 5825 esac 5826 for ac_exec_ext in '' $ac_executable_extensions; do 5827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5828 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5830 break 2 5831 fi 5832done 5833 done 5834IFS=$as_save_IFS 5835 5836fi 5837fi 5838FILECMD=$ac_cv_prog_FILECMD 5839if test -n "$FILECMD"; then 5840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5841printf "%s\n" "$FILECMD" >&6; } 5842else 5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5844printf "%s\n" "no" >&6; } 5845fi 5846 5847 5848fi 5849if test -z "$ac_cv_prog_FILECMD"; then 5850 ac_ct_FILECMD=$FILECMD 5851 # Extract the first word of "file", so it can be a program name with args. 5852set dummy file; ac_word=$2 5853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5854printf %s "checking for $ac_word... " >&6; } 5855if test ${ac_cv_prog_ac_ct_FILECMD+y} 5856then : 5857 printf %s "(cached) " >&6 5858else $as_nop 5859 if test -n "$ac_ct_FILECMD"; then 5860 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5861else 5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5863for as_dir in $PATH 5864do 5865 IFS=$as_save_IFS 5866 case $as_dir in #((( 5867 '') as_dir=./ ;; 5868 */) ;; 5869 *) as_dir=$as_dir/ ;; 5870 esac 5871 for ac_exec_ext in '' $ac_executable_extensions; do 5872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5873 ac_cv_prog_ac_ct_FILECMD="file" 5874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5875 break 2 5876 fi 5877done 5878 done 5879IFS=$as_save_IFS 5880 5881fi 5882fi 5883ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5884if test -n "$ac_ct_FILECMD"; then 5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5886printf "%s\n" "$ac_ct_FILECMD" >&6; } 5887else 5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5889printf "%s\n" "no" >&6; } 5890fi 5891 5892 if test "x$ac_ct_FILECMD" = x; then 5893 FILECMD=":" 5894 else 5895 case $cross_compiling:$ac_tool_warned in 5896yes:) 5897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5898printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5899ac_tool_warned=yes ;; 5900esac 5901 FILECMD=$ac_ct_FILECMD 5902 fi 5903else 5904 FILECMD="$ac_cv_prog_FILECMD" 5905fi 5906 5907 5908 5909 5910 5911 5912 5913if test -n "$ac_tool_prefix"; then 5914 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5915set dummy ${ac_tool_prefix}objdump; ac_word=$2 5916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5917printf %s "checking for $ac_word... " >&6; } 5918if test ${ac_cv_prog_OBJDUMP+y} 5919then : 5920 printf %s "(cached) " >&6 5921else $as_nop 5922 if test -n "$OBJDUMP"; then 5923 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5924else 5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5926for as_dir in $PATH 5927do 5928 IFS=$as_save_IFS 5929 case $as_dir in #((( 5930 '') as_dir=./ ;; 5931 */) ;; 5932 *) as_dir=$as_dir/ ;; 5933 esac 5934 for ac_exec_ext in '' $ac_executable_extensions; do 5935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5936 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5938 break 2 5939 fi 5940done 5941 done 5942IFS=$as_save_IFS 5943 5944fi 5945fi 5946OBJDUMP=$ac_cv_prog_OBJDUMP 5947if test -n "$OBJDUMP"; then 5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5949printf "%s\n" "$OBJDUMP" >&6; } 5950else 5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5952printf "%s\n" "no" >&6; } 5953fi 5954 5955 5956fi 5957if test -z "$ac_cv_prog_OBJDUMP"; then 5958 ac_ct_OBJDUMP=$OBJDUMP 5959 # Extract the first word of "objdump", so it can be a program name with args. 5960set dummy objdump; ac_word=$2 5961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5962printf %s "checking for $ac_word... " >&6; } 5963if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5964then : 5965 printf %s "(cached) " >&6 5966else $as_nop 5967 if test -n "$ac_ct_OBJDUMP"; then 5968 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5969else 5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5971for as_dir in $PATH 5972do 5973 IFS=$as_save_IFS 5974 case $as_dir in #((( 5975 '') as_dir=./ ;; 5976 */) ;; 5977 *) as_dir=$as_dir/ ;; 5978 esac 5979 for ac_exec_ext in '' $ac_executable_extensions; do 5980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5981 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5983 break 2 5984 fi 5985done 5986 done 5987IFS=$as_save_IFS 5988 5989fi 5990fi 5991ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5992if test -n "$ac_ct_OBJDUMP"; then 5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5994printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5995else 5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5997printf "%s\n" "no" >&6; } 5998fi 5999 6000 if test "x$ac_ct_OBJDUMP" = x; then 6001 OBJDUMP="false" 6002 else 6003 case $cross_compiling:$ac_tool_warned in 6004yes:) 6005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6006printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6007ac_tool_warned=yes ;; 6008esac 6009 OBJDUMP=$ac_ct_OBJDUMP 6010 fi 6011else 6012 OBJDUMP="$ac_cv_prog_OBJDUMP" 6013fi 6014 6015test -z "$OBJDUMP" && OBJDUMP=objdump 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6026printf %s "checking how to recognize dependent libraries... " >&6; } 6027if test ${lt_cv_deplibs_check_method+y} 6028then : 6029 printf %s "(cached) " >&6 6030else $as_nop 6031 lt_cv_file_magic_cmd='$MAGIC_CMD' 6032lt_cv_file_magic_test_file= 6033lt_cv_deplibs_check_method='unknown' 6034# Need to set the preceding variable on all platforms that support 6035# interlibrary dependencies. 6036# 'none' -- dependencies not supported. 6037# 'unknown' -- same as none, but documents that we really don't know. 6038# 'pass_all' -- all dependencies passed with no checks. 6039# 'test_compile' -- check by making test program. 6040# 'file_magic [[regex]]' -- check by looking for files in library path 6041# that responds to the $file_magic_cmd with a given extended regex. 6042# If you have 'file' or equivalent on your system and you're not sure 6043# whether 'pass_all' will *always* work, you probably want this one. 6044 6045case $host_os in 6046aix[4-9]*) 6047 lt_cv_deplibs_check_method=pass_all 6048 ;; 6049 6050beos*) 6051 lt_cv_deplibs_check_method=pass_all 6052 ;; 6053 6054bsdi[45]*) 6055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6056 lt_cv_file_magic_cmd='$FILECMD -L' 6057 lt_cv_file_magic_test_file=/shlib/libc.so 6058 ;; 6059 6060cygwin*) 6061 # func_win32_libid is a shell function defined in ltmain.sh 6062 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6063 lt_cv_file_magic_cmd='func_win32_libid' 6064 ;; 6065 6066mingw* | pw32*) 6067 # Base MSYS/MinGW do not provide the 'file' command needed by 6068 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6069 # unless we find 'file', for example because we are cross-compiling. 6070 if ( file / ) >/dev/null 2>&1; then 6071 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6072 lt_cv_file_magic_cmd='func_win32_libid' 6073 else 6074 # Keep this pattern in sync with the one in func_win32_libid. 6075 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6076 lt_cv_file_magic_cmd='$OBJDUMP -f' 6077 fi 6078 ;; 6079 6080cegcc*) 6081 # use the weaker test based on 'objdump'. See mingw*. 6082 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6083 lt_cv_file_magic_cmd='$OBJDUMP -f' 6084 ;; 6085 6086darwin* | rhapsody*) 6087 lt_cv_deplibs_check_method=pass_all 6088 ;; 6089 6090freebsd* | dragonfly* | midnightbsd*) 6091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6092 case $host_cpu in 6093 i*86 ) 6094 # Not sure whether the presence of OpenBSD here was a mistake. 6095 # Let's accept both of them until this is cleared up. 6096 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6097 lt_cv_file_magic_cmd=$FILECMD 6098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6099 ;; 6100 esac 6101 else 6102 lt_cv_deplibs_check_method=pass_all 6103 fi 6104 ;; 6105 6106haiku*) 6107 lt_cv_deplibs_check_method=pass_all 6108 ;; 6109 6110hpux10.20* | hpux11*) 6111 lt_cv_file_magic_cmd=$FILECMD 6112 case $host_cpu in 6113 ia64*) 6114 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6115 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6116 ;; 6117 hppa*64*) 6118 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]' 6119 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6120 ;; 6121 *) 6122 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6123 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6124 ;; 6125 esac 6126 ;; 6127 6128interix[3-9]*) 6129 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6131 ;; 6132 6133irix5* | irix6* | nonstopux*) 6134 case $LD in 6135 *-32|*"-32 ") libmagic=32-bit;; 6136 *-n32|*"-n32 ") libmagic=N32;; 6137 *-64|*"-64 ") libmagic=64-bit;; 6138 *) libmagic=never-match;; 6139 esac 6140 lt_cv_deplibs_check_method=pass_all 6141 ;; 6142 6143# This must be glibc/ELF. 6144linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6145 lt_cv_deplibs_check_method=pass_all 6146 ;; 6147 6148netbsd*) 6149 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6151 else 6152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6153 fi 6154 ;; 6155 6156newos6*) 6157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6158 lt_cv_file_magic_cmd=$FILECMD 6159 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6160 ;; 6161 6162*nto* | *qnx*) 6163 lt_cv_deplibs_check_method=pass_all 6164 ;; 6165 6166openbsd* | bitrig*) 6167 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6169 else 6170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6171 fi 6172 ;; 6173 6174osf3* | osf4* | osf5*) 6175 lt_cv_deplibs_check_method=pass_all 6176 ;; 6177 6178rdos*) 6179 lt_cv_deplibs_check_method=pass_all 6180 ;; 6181 6182solaris*) 6183 lt_cv_deplibs_check_method=pass_all 6184 ;; 6185 6186sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6187 lt_cv_deplibs_check_method=pass_all 6188 ;; 6189 6190sysv4 | sysv4.3*) 6191 case $host_vendor in 6192 motorola) 6193 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]' 6194 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6195 ;; 6196 ncr) 6197 lt_cv_deplibs_check_method=pass_all 6198 ;; 6199 sequent) 6200 lt_cv_file_magic_cmd='/bin/file' 6201 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6202 ;; 6203 sni) 6204 lt_cv_file_magic_cmd='/bin/file' 6205 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6206 lt_cv_file_magic_test_file=/lib/libc.so 6207 ;; 6208 siemens) 6209 lt_cv_deplibs_check_method=pass_all 6210 ;; 6211 pc) 6212 lt_cv_deplibs_check_method=pass_all 6213 ;; 6214 esac 6215 ;; 6216 6217tpf*) 6218 lt_cv_deplibs_check_method=pass_all 6219 ;; 6220os2*) 6221 lt_cv_deplibs_check_method=pass_all 6222 ;; 6223esac 6224 6225fi 6226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6227printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6228 6229file_magic_glob= 6230want_nocaseglob=no 6231if test "$build" = "$host"; then 6232 case $host_os in 6233 mingw* | pw32*) 6234 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6235 want_nocaseglob=yes 6236 else 6237 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6238 fi 6239 ;; 6240 esac 6241fi 6242 6243file_magic_cmd=$lt_cv_file_magic_cmd 6244deplibs_check_method=$lt_cv_deplibs_check_method 6245test -z "$deplibs_check_method" && deplibs_check_method=unknown 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268if test -n "$ac_tool_prefix"; then 6269 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6270set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6272printf %s "checking for $ac_word... " >&6; } 6273if test ${ac_cv_prog_DLLTOOL+y} 6274then : 6275 printf %s "(cached) " >&6 6276else $as_nop 6277 if test -n "$DLLTOOL"; then 6278 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6279else 6280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6281for as_dir in $PATH 6282do 6283 IFS=$as_save_IFS 6284 case $as_dir in #((( 6285 '') as_dir=./ ;; 6286 */) ;; 6287 *) as_dir=$as_dir/ ;; 6288 esac 6289 for ac_exec_ext in '' $ac_executable_extensions; do 6290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6291 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6293 break 2 6294 fi 6295done 6296 done 6297IFS=$as_save_IFS 6298 6299fi 6300fi 6301DLLTOOL=$ac_cv_prog_DLLTOOL 6302if test -n "$DLLTOOL"; then 6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6304printf "%s\n" "$DLLTOOL" >&6; } 6305else 6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6307printf "%s\n" "no" >&6; } 6308fi 6309 6310 6311fi 6312if test -z "$ac_cv_prog_DLLTOOL"; then 6313 ac_ct_DLLTOOL=$DLLTOOL 6314 # Extract the first word of "dlltool", so it can be a program name with args. 6315set dummy dlltool; ac_word=$2 6316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6317printf %s "checking for $ac_word... " >&6; } 6318if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6319then : 6320 printf %s "(cached) " >&6 6321else $as_nop 6322 if test -n "$ac_ct_DLLTOOL"; then 6323 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6324else 6325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6326for as_dir in $PATH 6327do 6328 IFS=$as_save_IFS 6329 case $as_dir in #((( 6330 '') as_dir=./ ;; 6331 */) ;; 6332 *) as_dir=$as_dir/ ;; 6333 esac 6334 for ac_exec_ext in '' $ac_executable_extensions; do 6335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6336 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6338 break 2 6339 fi 6340done 6341 done 6342IFS=$as_save_IFS 6343 6344fi 6345fi 6346ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6347if test -n "$ac_ct_DLLTOOL"; then 6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6349printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6350else 6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6352printf "%s\n" "no" >&6; } 6353fi 6354 6355 if test "x$ac_ct_DLLTOOL" = x; then 6356 DLLTOOL="false" 6357 else 6358 case $cross_compiling:$ac_tool_warned in 6359yes:) 6360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6361printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6362ac_tool_warned=yes ;; 6363esac 6364 DLLTOOL=$ac_ct_DLLTOOL 6365 fi 6366else 6367 DLLTOOL="$ac_cv_prog_DLLTOOL" 6368fi 6369 6370test -z "$DLLTOOL" && DLLTOOL=dlltool 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6382printf %s "checking how to associate runtime and link libraries... " >&6; } 6383if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6384then : 6385 printf %s "(cached) " >&6 6386else $as_nop 6387 lt_cv_sharedlib_from_linklib_cmd='unknown' 6388 6389case $host_os in 6390cygwin* | mingw* | pw32* | cegcc*) 6391 # two different shell functions defined in ltmain.sh; 6392 # decide which one to use based on capabilities of $DLLTOOL 6393 case `$DLLTOOL --help 2>&1` in 6394 *--identify-strict*) 6395 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6396 ;; 6397 *) 6398 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6399 ;; 6400 esac 6401 ;; 6402*) 6403 # fallback: assume linklib IS sharedlib 6404 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6405 ;; 6406esac 6407 6408fi 6409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6410printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6411sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6412test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6413 6414 6415 6416 6417 6418 6419 6420if test -n "$ac_tool_prefix"; then 6421 for ac_prog in ar 6422 do 6423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6424set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6426printf %s "checking for $ac_word... " >&6; } 6427if test ${ac_cv_prog_AR+y} 6428then : 6429 printf %s "(cached) " >&6 6430else $as_nop 6431 if test -n "$AR"; then 6432 ac_cv_prog_AR="$AR" # Let the user override the test. 6433else 6434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6435for as_dir in $PATH 6436do 6437 IFS=$as_save_IFS 6438 case $as_dir in #((( 6439 '') as_dir=./ ;; 6440 */) ;; 6441 *) as_dir=$as_dir/ ;; 6442 esac 6443 for ac_exec_ext in '' $ac_executable_extensions; do 6444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6445 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6447 break 2 6448 fi 6449done 6450 done 6451IFS=$as_save_IFS 6452 6453fi 6454fi 6455AR=$ac_cv_prog_AR 6456if test -n "$AR"; then 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6458printf "%s\n" "$AR" >&6; } 6459else 6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6461printf "%s\n" "no" >&6; } 6462fi 6463 6464 6465 test -n "$AR" && break 6466 done 6467fi 6468if test -z "$AR"; then 6469 ac_ct_AR=$AR 6470 for ac_prog in ar 6471do 6472 # Extract the first word of "$ac_prog", so it can be a program name with args. 6473set dummy $ac_prog; ac_word=$2 6474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6475printf %s "checking for $ac_word... " >&6; } 6476if test ${ac_cv_prog_ac_ct_AR+y} 6477then : 6478 printf %s "(cached) " >&6 6479else $as_nop 6480 if test -n "$ac_ct_AR"; then 6481 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6482else 6483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6484for as_dir in $PATH 6485do 6486 IFS=$as_save_IFS 6487 case $as_dir in #((( 6488 '') as_dir=./ ;; 6489 */) ;; 6490 *) as_dir=$as_dir/ ;; 6491 esac 6492 for ac_exec_ext in '' $ac_executable_extensions; do 6493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6494 ac_cv_prog_ac_ct_AR="$ac_prog" 6495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6496 break 2 6497 fi 6498done 6499 done 6500IFS=$as_save_IFS 6501 6502fi 6503fi 6504ac_ct_AR=$ac_cv_prog_ac_ct_AR 6505if test -n "$ac_ct_AR"; then 6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6507printf "%s\n" "$ac_ct_AR" >&6; } 6508else 6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6510printf "%s\n" "no" >&6; } 6511fi 6512 6513 6514 test -n "$ac_ct_AR" && break 6515done 6516 6517 if test "x$ac_ct_AR" = x; then 6518 AR="false" 6519 else 6520 case $cross_compiling:$ac_tool_warned in 6521yes:) 6522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6523printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6524ac_tool_warned=yes ;; 6525esac 6526 AR=$ac_ct_AR 6527 fi 6528fi 6529 6530: ${AR=ar} 6531 6532 6533 6534 6535 6536 6537# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6538# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6539# higher priority because thats what people were doing historically (setting 6540# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6541# variable obsoleted/removed. 6542 6543test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6544lt_ar_flags=$AR_FLAGS 6545 6546 6547 6548 6549 6550 6551# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6552# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6553 6554 6555 6556 6557 6558 6559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6560printf %s "checking for archiver @FILE support... " >&6; } 6561if test ${lt_cv_ar_at_file+y} 6562then : 6563 printf %s "(cached) " >&6 6564else $as_nop 6565 lt_cv_ar_at_file=no 6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6567/* end confdefs.h. */ 6568 6569int 6570main (void) 6571{ 6572 6573 ; 6574 return 0; 6575} 6576_ACEOF 6577if ac_fn_c_try_compile "$LINENO" 6578then : 6579 echo conftest.$ac_objext > conftest.lst 6580 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6582 (eval $lt_ar_try) 2>&5 6583 ac_status=$? 6584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6585 test $ac_status = 0; } 6586 if test 0 -eq "$ac_status"; then 6587 # Ensure the archiver fails upon bogus file names. 6588 rm -f conftest.$ac_objext libconftest.a 6589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6590 (eval $lt_ar_try) 2>&5 6591 ac_status=$? 6592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6593 test $ac_status = 0; } 6594 if test 0 -ne "$ac_status"; then 6595 lt_cv_ar_at_file=@ 6596 fi 6597 fi 6598 rm -f conftest.* libconftest.a 6599 6600fi 6601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6602 6603fi 6604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6605printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6606 6607if test no = "$lt_cv_ar_at_file"; then 6608 archiver_list_spec= 6609else 6610 archiver_list_spec=$lt_cv_ar_at_file 6611fi 6612 6613 6614 6615 6616 6617 6618 6619if test -n "$ac_tool_prefix"; then 6620 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6621set dummy ${ac_tool_prefix}strip; ac_word=$2 6622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6623printf %s "checking for $ac_word... " >&6; } 6624if test ${ac_cv_prog_STRIP+y} 6625then : 6626 printf %s "(cached) " >&6 6627else $as_nop 6628 if test -n "$STRIP"; then 6629 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6630else 6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6632for as_dir in $PATH 6633do 6634 IFS=$as_save_IFS 6635 case $as_dir in #((( 6636 '') as_dir=./ ;; 6637 */) ;; 6638 *) as_dir=$as_dir/ ;; 6639 esac 6640 for ac_exec_ext in '' $ac_executable_extensions; do 6641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6642 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6644 break 2 6645 fi 6646done 6647 done 6648IFS=$as_save_IFS 6649 6650fi 6651fi 6652STRIP=$ac_cv_prog_STRIP 6653if test -n "$STRIP"; then 6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6655printf "%s\n" "$STRIP" >&6; } 6656else 6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6658printf "%s\n" "no" >&6; } 6659fi 6660 6661 6662fi 6663if test -z "$ac_cv_prog_STRIP"; then 6664 ac_ct_STRIP=$STRIP 6665 # Extract the first word of "strip", so it can be a program name with args. 6666set dummy strip; ac_word=$2 6667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6668printf %s "checking for $ac_word... " >&6; } 6669if test ${ac_cv_prog_ac_ct_STRIP+y} 6670then : 6671 printf %s "(cached) " >&6 6672else $as_nop 6673 if test -n "$ac_ct_STRIP"; then 6674 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6675else 6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6677for as_dir in $PATH 6678do 6679 IFS=$as_save_IFS 6680 case $as_dir in #((( 6681 '') as_dir=./ ;; 6682 */) ;; 6683 *) as_dir=$as_dir/ ;; 6684 esac 6685 for ac_exec_ext in '' $ac_executable_extensions; do 6686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6687 ac_cv_prog_ac_ct_STRIP="strip" 6688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6689 break 2 6690 fi 6691done 6692 done 6693IFS=$as_save_IFS 6694 6695fi 6696fi 6697ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6698if test -n "$ac_ct_STRIP"; then 6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6700printf "%s\n" "$ac_ct_STRIP" >&6; } 6701else 6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6703printf "%s\n" "no" >&6; } 6704fi 6705 6706 if test "x$ac_ct_STRIP" = x; then 6707 STRIP=":" 6708 else 6709 case $cross_compiling:$ac_tool_warned in 6710yes:) 6711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6712printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6713ac_tool_warned=yes ;; 6714esac 6715 STRIP=$ac_ct_STRIP 6716 fi 6717else 6718 STRIP="$ac_cv_prog_STRIP" 6719fi 6720 6721test -z "$STRIP" && STRIP=: 6722 6723 6724 6725 6726 6727 6728if test -n "$ac_tool_prefix"; then 6729 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6730set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6732printf %s "checking for $ac_word... " >&6; } 6733if test ${ac_cv_prog_RANLIB+y} 6734then : 6735 printf %s "(cached) " >&6 6736else $as_nop 6737 if test -n "$RANLIB"; then 6738 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6739else 6740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6741for as_dir in $PATH 6742do 6743 IFS=$as_save_IFS 6744 case $as_dir in #((( 6745 '') as_dir=./ ;; 6746 */) ;; 6747 *) as_dir=$as_dir/ ;; 6748 esac 6749 for ac_exec_ext in '' $ac_executable_extensions; do 6750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6751 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6753 break 2 6754 fi 6755done 6756 done 6757IFS=$as_save_IFS 6758 6759fi 6760fi 6761RANLIB=$ac_cv_prog_RANLIB 6762if test -n "$RANLIB"; then 6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6764printf "%s\n" "$RANLIB" >&6; } 6765else 6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6767printf "%s\n" "no" >&6; } 6768fi 6769 6770 6771fi 6772if test -z "$ac_cv_prog_RANLIB"; then 6773 ac_ct_RANLIB=$RANLIB 6774 # Extract the first word of "ranlib", so it can be a program name with args. 6775set dummy ranlib; ac_word=$2 6776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6777printf %s "checking for $ac_word... " >&6; } 6778if test ${ac_cv_prog_ac_ct_RANLIB+y} 6779then : 6780 printf %s "(cached) " >&6 6781else $as_nop 6782 if test -n "$ac_ct_RANLIB"; then 6783 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6784else 6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6786for as_dir in $PATH 6787do 6788 IFS=$as_save_IFS 6789 case $as_dir in #((( 6790 '') as_dir=./ ;; 6791 */) ;; 6792 *) as_dir=$as_dir/ ;; 6793 esac 6794 for ac_exec_ext in '' $ac_executable_extensions; do 6795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6796 ac_cv_prog_ac_ct_RANLIB="ranlib" 6797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6798 break 2 6799 fi 6800done 6801 done 6802IFS=$as_save_IFS 6803 6804fi 6805fi 6806ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6807if test -n "$ac_ct_RANLIB"; then 6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6809printf "%s\n" "$ac_ct_RANLIB" >&6; } 6810else 6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6812printf "%s\n" "no" >&6; } 6813fi 6814 6815 if test "x$ac_ct_RANLIB" = x; then 6816 RANLIB=":" 6817 else 6818 case $cross_compiling:$ac_tool_warned in 6819yes:) 6820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6821printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6822ac_tool_warned=yes ;; 6823esac 6824 RANLIB=$ac_ct_RANLIB 6825 fi 6826else 6827 RANLIB="$ac_cv_prog_RANLIB" 6828fi 6829 6830test -z "$RANLIB" && RANLIB=: 6831 6832 6833 6834 6835 6836 6837# Determine commands to create old-style static archives. 6838old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6839old_postinstall_cmds='chmod 644 $oldlib' 6840old_postuninstall_cmds= 6841 6842if test -n "$RANLIB"; then 6843 case $host_os in 6844 bitrig* | openbsd*) 6845 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6846 ;; 6847 *) 6848 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6849 ;; 6850 esac 6851 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6852fi 6853 6854case $host_os in 6855 darwin*) 6856 lock_old_archive_extraction=yes ;; 6857 *) 6858 lock_old_archive_extraction=no ;; 6859esac 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899# If no C compiler was specified, use CC. 6900LTCC=${LTCC-"$CC"} 6901 6902# If no C compiler flags were specified, use CFLAGS. 6903LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6904 6905# Allow CC to be a program name with arguments. 6906compiler=$CC 6907 6908 6909# Check for command to grab the raw symbol name followed by C symbol from nm. 6910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6911printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6912if test ${lt_cv_sys_global_symbol_pipe+y} 6913then : 6914 printf %s "(cached) " >&6 6915else $as_nop 6916 6917# These are sane defaults that work on at least a few old systems. 6918# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6919 6920# Character class describing NM global symbol codes. 6921symcode='[BCDEGRST]' 6922 6923# Regexp to match symbols that can be accessed directly from C. 6924sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6925 6926# Define system-specific variables. 6927case $host_os in 6928aix*) 6929 symcode='[BCDT]' 6930 ;; 6931cygwin* | mingw* | pw32* | cegcc*) 6932 symcode='[ABCDGISTW]' 6933 ;; 6934hpux*) 6935 if test ia64 = "$host_cpu"; then 6936 symcode='[ABCDEGRST]' 6937 fi 6938 ;; 6939irix* | nonstopux*) 6940 symcode='[BCDEGRST]' 6941 ;; 6942osf*) 6943 symcode='[BCDEGQRST]' 6944 ;; 6945solaris*) 6946 symcode='[BDRT]' 6947 ;; 6948sco3.2v5*) 6949 symcode='[DT]' 6950 ;; 6951sysv4.2uw2*) 6952 symcode='[DT]' 6953 ;; 6954sysv5* | sco5v6* | unixware* | OpenUNIX*) 6955 symcode='[ABDT]' 6956 ;; 6957sysv4) 6958 symcode='[DFNSTU]' 6959 ;; 6960esac 6961 6962# If we're using GNU nm, then use its standard symbol codes. 6963case `$NM -V 2>&1` in 6964*GNU* | *'with BFD'*) 6965 symcode='[ABCDGIRSTW]' ;; 6966esac 6967 6968if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6969 # Gets list of data symbols to import. 6970 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6971 # Adjust the below global symbol transforms to fixup imported variables. 6972 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6973 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6974 lt_c_name_lib_hook="\ 6975 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6976 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6977else 6978 # Disable hooks by default. 6979 lt_cv_sys_global_symbol_to_import= 6980 lt_cdecl_hook= 6981 lt_c_name_hook= 6982 lt_c_name_lib_hook= 6983fi 6984 6985# Transform an extracted symbol line into a proper C declaration. 6986# Some systems (esp. on ia64) link data and code symbols differently, 6987# so use this general approach. 6988lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6989$lt_cdecl_hook\ 6990" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6991" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6992 6993# Transform an extracted symbol line into symbol name and symbol address 6994lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6995$lt_c_name_hook\ 6996" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6997" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6998 6999# Transform an extracted symbol line into symbol name with lib prefix and 7000# symbol address. 7001lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7002$lt_c_name_lib_hook\ 7003" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7004" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7005" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7006 7007# Handle CRLF in mingw tool chain 7008opt_cr= 7009case $build_os in 7010mingw*) 7011 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7012 ;; 7013esac 7014 7015# Try without a prefix underscore, then with it. 7016for ac_symprfx in "" "_"; do 7017 7018 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7019 symxfrm="\\1 $ac_symprfx\\2 \\2" 7020 7021 # Write the raw and C identifiers. 7022 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7023 # Fake it for dumpbin and say T for any non-static function, 7024 # D for any global variable and I for any imported variable. 7025 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7026 # which start with @ or ?. 7027 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7028" {last_section=section; section=\$ 3};"\ 7029" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7030" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7031" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7032" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7033" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7034" \$ 0!~/External *\|/{next};"\ 7035" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7036" {if(hide[section]) next};"\ 7037" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7038" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7039" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7040" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7041" ' prfx=^$ac_symprfx" 7042 else 7043 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7044 fi 7045 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7046 7047 # Check to see that the pipe works correctly. 7048 pipe_works=no 7049 7050 rm -f conftest* 7051 cat > conftest.$ac_ext <<_LT_EOF 7052#ifdef __cplusplus 7053extern "C" { 7054#endif 7055char nm_test_var; 7056void nm_test_func(void); 7057void nm_test_func(void){} 7058#ifdef __cplusplus 7059} 7060#endif 7061int main(){nm_test_var='a';nm_test_func();return(0);} 7062_LT_EOF 7063 7064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7065 (eval $ac_compile) 2>&5 7066 ac_status=$? 7067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7068 test $ac_status = 0; }; then 7069 # Now try to grab the symbols. 7070 nlist=conftest.nm 7071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7072 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7073 ac_status=$? 7074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7075 test $ac_status = 0; } && test -s "$nlist"; then 7076 # Try sorting and uniquifying the output. 7077 if sort "$nlist" | uniq > "$nlist"T; then 7078 mv -f "$nlist"T "$nlist" 7079 else 7080 rm -f "$nlist"T 7081 fi 7082 7083 # Make sure that we snagged all the symbols we need. 7084 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7085 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7086 cat <<_LT_EOF > conftest.$ac_ext 7087/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7088#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7089/* DATA imports from DLLs on WIN32 can't be const, because runtime 7090 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7091# define LT_DLSYM_CONST 7092#elif defined __osf__ 7093/* This system does not cope well with relocations in const data. */ 7094# define LT_DLSYM_CONST 7095#else 7096# define LT_DLSYM_CONST const 7097#endif 7098 7099#ifdef __cplusplus 7100extern "C" { 7101#endif 7102 7103_LT_EOF 7104 # Now generate the symbol file. 7105 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7106 7107 cat <<_LT_EOF >> conftest.$ac_ext 7108 7109/* The mapping between symbol names and symbols. */ 7110LT_DLSYM_CONST struct { 7111 const char *name; 7112 void *address; 7113} 7114lt__PROGRAM__LTX_preloaded_symbols[] = 7115{ 7116 { "@PROGRAM@", (void *) 0 }, 7117_LT_EOF 7118 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7119 cat <<\_LT_EOF >> conftest.$ac_ext 7120 {0, (void *) 0} 7121}; 7122 7123/* This works around a problem in FreeBSD linker */ 7124#ifdef FREEBSD_WORKAROUND 7125static const void *lt_preloaded_setup() { 7126 return lt__PROGRAM__LTX_preloaded_symbols; 7127} 7128#endif 7129 7130#ifdef __cplusplus 7131} 7132#endif 7133_LT_EOF 7134 # Now try linking the two files. 7135 mv conftest.$ac_objext conftstm.$ac_objext 7136 lt_globsym_save_LIBS=$LIBS 7137 lt_globsym_save_CFLAGS=$CFLAGS 7138 LIBS=conftstm.$ac_objext 7139 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7141 (eval $ac_link) 2>&5 7142 ac_status=$? 7143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7144 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7145 pipe_works=yes 7146 fi 7147 LIBS=$lt_globsym_save_LIBS 7148 CFLAGS=$lt_globsym_save_CFLAGS 7149 else 7150 echo "cannot find nm_test_func in $nlist" >&5 7151 fi 7152 else 7153 echo "cannot find nm_test_var in $nlist" >&5 7154 fi 7155 else 7156 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7157 fi 7158 else 7159 echo "$progname: failed program was:" >&5 7160 cat conftest.$ac_ext >&5 7161 fi 7162 rm -rf conftest* conftst* 7163 7164 # Do not use the global_symbol_pipe unless it works. 7165 if test yes = "$pipe_works"; then 7166 break 7167 else 7168 lt_cv_sys_global_symbol_pipe= 7169 fi 7170done 7171 7172fi 7173 7174if test -z "$lt_cv_sys_global_symbol_pipe"; then 7175 lt_cv_sys_global_symbol_to_cdecl= 7176fi 7177if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7179printf "%s\n" "failed" >&6; } 7180else 7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7182printf "%s\n" "ok" >&6; } 7183fi 7184 7185# Response file support. 7186if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7187 nm_file_list_spec='@' 7188elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7189 nm_file_list_spec='@' 7190fi 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7229printf %s "checking for sysroot... " >&6; } 7230 7231# Check whether --with-sysroot was given. 7232if test ${with_sysroot+y} 7233then : 7234 withval=$with_sysroot; 7235else $as_nop 7236 with_sysroot=no 7237fi 7238 7239 7240lt_sysroot= 7241case $with_sysroot in #( 7242 yes) 7243 if test yes = "$GCC"; then 7244 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7245 fi 7246 ;; #( 7247 /*) 7248 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7249 ;; #( 7250 no|'') 7251 ;; #( 7252 *) 7253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7254printf "%s\n" "$with_sysroot" >&6; } 7255 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7256 ;; 7257esac 7258 7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7260printf "%s\n" "${lt_sysroot:-no}" >&6; } 7261 7262 7263 7264 7265 7266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7267printf %s "checking for a working dd... " >&6; } 7268if test ${ac_cv_path_lt_DD+y} 7269then : 7270 printf %s "(cached) " >&6 7271else $as_nop 7272 printf 0123456789abcdef0123456789abcdef >conftest.i 7273cat conftest.i conftest.i >conftest2.i 7274: ${lt_DD:=$DD} 7275if test -z "$lt_DD"; then 7276 ac_path_lt_DD_found=false 7277 # Loop through the user's path and test for each of PROGNAME-LIST 7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7279for as_dir in $PATH 7280do 7281 IFS=$as_save_IFS 7282 case $as_dir in #((( 7283 '') as_dir=./ ;; 7284 */) ;; 7285 *) as_dir=$as_dir/ ;; 7286 esac 7287 for ac_prog in dd 7288 do 7289 for ac_exec_ext in '' $ac_executable_extensions; do 7290 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7291 as_fn_executable_p "$ac_path_lt_DD" || continue 7292if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7293 cmp -s conftest.i conftest.out \ 7294 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7295fi 7296 $ac_path_lt_DD_found && break 3 7297 done 7298 done 7299 done 7300IFS=$as_save_IFS 7301 if test -z "$ac_cv_path_lt_DD"; then 7302 : 7303 fi 7304else 7305 ac_cv_path_lt_DD=$lt_DD 7306fi 7307 7308rm -f conftest.i conftest2.i conftest.out 7309fi 7310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7311printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7312 7313 7314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7315printf %s "checking how to truncate binary pipes... " >&6; } 7316if test ${lt_cv_truncate_bin+y} 7317then : 7318 printf %s "(cached) " >&6 7319else $as_nop 7320 printf 0123456789abcdef0123456789abcdef >conftest.i 7321cat conftest.i conftest.i >conftest2.i 7322lt_cv_truncate_bin= 7323if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7324 cmp -s conftest.i conftest.out \ 7325 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7326fi 7327rm -f conftest.i conftest2.i conftest.out 7328test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7329fi 7330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7331printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7332 7333 7334 7335 7336 7337 7338 7339# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7340func_cc_basename () 7341{ 7342 for cc_temp in $*""; do 7343 case $cc_temp in 7344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7346 \-*) ;; 7347 *) break;; 7348 esac 7349 done 7350 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7351} 7352 7353# Check whether --enable-libtool-lock was given. 7354if test ${enable_libtool_lock+y} 7355then : 7356 enableval=$enable_libtool_lock; 7357fi 7358 7359test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7360 7361# Some flags need to be propagated to the compiler or linker for good 7362# libtool support. 7363case $host in 7364ia64-*-hpux*) 7365 # Find out what ABI is being produced by ac_compile, and set mode 7366 # options accordingly. 7367 echo 'int i;' > conftest.$ac_ext 7368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7369 (eval $ac_compile) 2>&5 7370 ac_status=$? 7371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7372 test $ac_status = 0; }; then 7373 case `$FILECMD conftest.$ac_objext` in 7374 *ELF-32*) 7375 HPUX_IA64_MODE=32 7376 ;; 7377 *ELF-64*) 7378 HPUX_IA64_MODE=64 7379 ;; 7380 esac 7381 fi 7382 rm -rf conftest* 7383 ;; 7384*-*-irix6*) 7385 # Find out what ABI is being produced by ac_compile, and set linker 7386 # options accordingly. 7387 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7389 (eval $ac_compile) 2>&5 7390 ac_status=$? 7391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7392 test $ac_status = 0; }; then 7393 if test yes = "$lt_cv_prog_gnu_ld"; then 7394 case `$FILECMD conftest.$ac_objext` in 7395 *32-bit*) 7396 LD="${LD-ld} -melf32bsmip" 7397 ;; 7398 *N32*) 7399 LD="${LD-ld} -melf32bmipn32" 7400 ;; 7401 *64-bit*) 7402 LD="${LD-ld} -melf64bmip" 7403 ;; 7404 esac 7405 else 7406 case `$FILECMD conftest.$ac_objext` in 7407 *32-bit*) 7408 LD="${LD-ld} -32" 7409 ;; 7410 *N32*) 7411 LD="${LD-ld} -n32" 7412 ;; 7413 *64-bit*) 7414 LD="${LD-ld} -64" 7415 ;; 7416 esac 7417 fi 7418 fi 7419 rm -rf conftest* 7420 ;; 7421 7422mips64*-*linux*) 7423 # Find out what ABI is being produced by ac_compile, and set linker 7424 # options accordingly. 7425 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7427 (eval $ac_compile) 2>&5 7428 ac_status=$? 7429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7430 test $ac_status = 0; }; then 7431 emul=elf 7432 case `$FILECMD conftest.$ac_objext` in 7433 *32-bit*) 7434 emul="${emul}32" 7435 ;; 7436 *64-bit*) 7437 emul="${emul}64" 7438 ;; 7439 esac 7440 case `$FILECMD conftest.$ac_objext` in 7441 *MSB*) 7442 emul="${emul}btsmip" 7443 ;; 7444 *LSB*) 7445 emul="${emul}ltsmip" 7446 ;; 7447 esac 7448 case `$FILECMD conftest.$ac_objext` in 7449 *N32*) 7450 emul="${emul}n32" 7451 ;; 7452 esac 7453 LD="${LD-ld} -m $emul" 7454 fi 7455 rm -rf conftest* 7456 ;; 7457 7458x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7459s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7460 # Find out what ABI is being produced by ac_compile, and set linker 7461 # options accordingly. Note that the listed cases only cover the 7462 # situations where additional linker options are needed (such as when 7463 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7464 # vice versa); the common cases where no linker options are needed do 7465 # not appear in the list. 7466 echo 'int i;' > conftest.$ac_ext 7467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7468 (eval $ac_compile) 2>&5 7469 ac_status=$? 7470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7471 test $ac_status = 0; }; then 7472 case `$FILECMD conftest.o` in 7473 *32-bit*) 7474 case $host in 7475 x86_64-*kfreebsd*-gnu) 7476 LD="${LD-ld} -m elf_i386_fbsd" 7477 ;; 7478 x86_64-*linux*) 7479 case `$FILECMD conftest.o` in 7480 *x86-64*) 7481 LD="${LD-ld} -m elf32_x86_64" 7482 ;; 7483 *) 7484 LD="${LD-ld} -m elf_i386" 7485 ;; 7486 esac 7487 ;; 7488 powerpc64le-*linux*) 7489 LD="${LD-ld} -m elf32lppclinux" 7490 ;; 7491 powerpc64-*linux*) 7492 LD="${LD-ld} -m elf32ppclinux" 7493 ;; 7494 s390x-*linux*) 7495 LD="${LD-ld} -m elf_s390" 7496 ;; 7497 sparc64-*linux*) 7498 LD="${LD-ld} -m elf32_sparc" 7499 ;; 7500 esac 7501 ;; 7502 *64-bit*) 7503 case $host in 7504 x86_64-*kfreebsd*-gnu) 7505 LD="${LD-ld} -m elf_x86_64_fbsd" 7506 ;; 7507 x86_64-*linux*) 7508 LD="${LD-ld} -m elf_x86_64" 7509 ;; 7510 powerpcle-*linux*) 7511 LD="${LD-ld} -m elf64lppc" 7512 ;; 7513 powerpc-*linux*) 7514 LD="${LD-ld} -m elf64ppc" 7515 ;; 7516 s390*-*linux*|s390*-*tpf*) 7517 LD="${LD-ld} -m elf64_s390" 7518 ;; 7519 sparc*-*linux*) 7520 LD="${LD-ld} -m elf64_sparc" 7521 ;; 7522 esac 7523 ;; 7524 esac 7525 fi 7526 rm -rf conftest* 7527 ;; 7528 7529*-*-sco3.2v5*) 7530 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7531 SAVE_CFLAGS=$CFLAGS 7532 CFLAGS="$CFLAGS -belf" 7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7534printf %s "checking whether the C compiler needs -belf... " >&6; } 7535if test ${lt_cv_cc_needs_belf+y} 7536then : 7537 printf %s "(cached) " >&6 7538else $as_nop 7539 ac_ext=c 7540ac_cpp='$CPP $CPPFLAGS' 7541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7543ac_compiler_gnu=$ac_cv_c_compiler_gnu 7544 7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7546/* end confdefs.h. */ 7547 7548int 7549main (void) 7550{ 7551 7552 ; 7553 return 0; 7554} 7555_ACEOF 7556if ac_fn_c_try_link "$LINENO" 7557then : 7558 lt_cv_cc_needs_belf=yes 7559else $as_nop 7560 lt_cv_cc_needs_belf=no 7561fi 7562rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7563 conftest$ac_exeext conftest.$ac_ext 7564 ac_ext=c 7565ac_cpp='$CPP $CPPFLAGS' 7566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7568ac_compiler_gnu=$ac_cv_c_compiler_gnu 7569 7570fi 7571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7572printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7573 if test yes != "$lt_cv_cc_needs_belf"; then 7574 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7575 CFLAGS=$SAVE_CFLAGS 7576 fi 7577 ;; 7578*-*solaris*) 7579 # Find out what ABI is being produced by ac_compile, and set linker 7580 # options accordingly. 7581 echo 'int i;' > conftest.$ac_ext 7582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7583 (eval $ac_compile) 2>&5 7584 ac_status=$? 7585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7586 test $ac_status = 0; }; then 7587 case `$FILECMD conftest.o` in 7588 *64-bit*) 7589 case $lt_cv_prog_gnu_ld in 7590 yes*) 7591 case $host in 7592 i?86-*-solaris*|x86_64-*-solaris*) 7593 LD="${LD-ld} -m elf_x86_64" 7594 ;; 7595 sparc*-*-solaris*) 7596 LD="${LD-ld} -m elf64_sparc" 7597 ;; 7598 esac 7599 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7600 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7601 LD=${LD-ld}_sol2 7602 fi 7603 ;; 7604 *) 7605 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7606 LD="${LD-ld} -64" 7607 fi 7608 ;; 7609 esac 7610 ;; 7611 esac 7612 fi 7613 rm -rf conftest* 7614 ;; 7615esac 7616 7617need_locks=$enable_libtool_lock 7618 7619if test -n "$ac_tool_prefix"; then 7620 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7621set dummy ${ac_tool_prefix}mt; ac_word=$2 7622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7623printf %s "checking for $ac_word... " >&6; } 7624if test ${ac_cv_prog_MANIFEST_TOOL+y} 7625then : 7626 printf %s "(cached) " >&6 7627else $as_nop 7628 if test -n "$MANIFEST_TOOL"; then 7629 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7630else 7631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7632for as_dir in $PATH 7633do 7634 IFS=$as_save_IFS 7635 case $as_dir in #((( 7636 '') as_dir=./ ;; 7637 */) ;; 7638 *) as_dir=$as_dir/ ;; 7639 esac 7640 for ac_exec_ext in '' $ac_executable_extensions; do 7641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7642 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7644 break 2 7645 fi 7646done 7647 done 7648IFS=$as_save_IFS 7649 7650fi 7651fi 7652MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7653if test -n "$MANIFEST_TOOL"; then 7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7655printf "%s\n" "$MANIFEST_TOOL" >&6; } 7656else 7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7658printf "%s\n" "no" >&6; } 7659fi 7660 7661 7662fi 7663if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7664 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7665 # Extract the first word of "mt", so it can be a program name with args. 7666set dummy mt; ac_word=$2 7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7668printf %s "checking for $ac_word... " >&6; } 7669if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7670then : 7671 printf %s "(cached) " >&6 7672else $as_nop 7673 if test -n "$ac_ct_MANIFEST_TOOL"; then 7674 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7675else 7676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7677for as_dir in $PATH 7678do 7679 IFS=$as_save_IFS 7680 case $as_dir in #((( 7681 '') as_dir=./ ;; 7682 */) ;; 7683 *) as_dir=$as_dir/ ;; 7684 esac 7685 for ac_exec_ext in '' $ac_executable_extensions; do 7686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7687 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7689 break 2 7690 fi 7691done 7692 done 7693IFS=$as_save_IFS 7694 7695fi 7696fi 7697ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7698if test -n "$ac_ct_MANIFEST_TOOL"; then 7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7700printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7701else 7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7703printf "%s\n" "no" >&6; } 7704fi 7705 7706 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7707 MANIFEST_TOOL=":" 7708 else 7709 case $cross_compiling:$ac_tool_warned in 7710yes:) 7711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7712printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7713ac_tool_warned=yes ;; 7714esac 7715 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7716 fi 7717else 7718 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7719fi 7720 7721test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7723printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7724if test ${lt_cv_path_mainfest_tool+y} 7725then : 7726 printf %s "(cached) " >&6 7727else $as_nop 7728 lt_cv_path_mainfest_tool=no 7729 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7730 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7731 cat conftest.err >&5 7732 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7733 lt_cv_path_mainfest_tool=yes 7734 fi 7735 rm -f conftest* 7736fi 7737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7738printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7739if test yes != "$lt_cv_path_mainfest_tool"; then 7740 MANIFEST_TOOL=: 7741fi 7742 7743 7744 7745 7746 7747 7748 case $host_os in 7749 rhapsody* | darwin*) 7750 if test -n "$ac_tool_prefix"; then 7751 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7752set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7754printf %s "checking for $ac_word... " >&6; } 7755if test ${ac_cv_prog_DSYMUTIL+y} 7756then : 7757 printf %s "(cached) " >&6 7758else $as_nop 7759 if test -n "$DSYMUTIL"; then 7760 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7761else 7762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7763for as_dir in $PATH 7764do 7765 IFS=$as_save_IFS 7766 case $as_dir in #((( 7767 '') as_dir=./ ;; 7768 */) ;; 7769 *) as_dir=$as_dir/ ;; 7770 esac 7771 for ac_exec_ext in '' $ac_executable_extensions; do 7772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7773 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7775 break 2 7776 fi 7777done 7778 done 7779IFS=$as_save_IFS 7780 7781fi 7782fi 7783DSYMUTIL=$ac_cv_prog_DSYMUTIL 7784if test -n "$DSYMUTIL"; then 7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7786printf "%s\n" "$DSYMUTIL" >&6; } 7787else 7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7789printf "%s\n" "no" >&6; } 7790fi 7791 7792 7793fi 7794if test -z "$ac_cv_prog_DSYMUTIL"; then 7795 ac_ct_DSYMUTIL=$DSYMUTIL 7796 # Extract the first word of "dsymutil", so it can be a program name with args. 7797set dummy dsymutil; ac_word=$2 7798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7799printf %s "checking for $ac_word... " >&6; } 7800if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7801then : 7802 printf %s "(cached) " >&6 7803else $as_nop 7804 if test -n "$ac_ct_DSYMUTIL"; then 7805 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7806else 7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7808for as_dir in $PATH 7809do 7810 IFS=$as_save_IFS 7811 case $as_dir in #((( 7812 '') as_dir=./ ;; 7813 */) ;; 7814 *) as_dir=$as_dir/ ;; 7815 esac 7816 for ac_exec_ext in '' $ac_executable_extensions; do 7817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7818 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7820 break 2 7821 fi 7822done 7823 done 7824IFS=$as_save_IFS 7825 7826fi 7827fi 7828ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7829if test -n "$ac_ct_DSYMUTIL"; then 7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7831printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7832else 7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7834printf "%s\n" "no" >&6; } 7835fi 7836 7837 if test "x$ac_ct_DSYMUTIL" = x; then 7838 DSYMUTIL=":" 7839 else 7840 case $cross_compiling:$ac_tool_warned in 7841yes:) 7842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7843printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7844ac_tool_warned=yes ;; 7845esac 7846 DSYMUTIL=$ac_ct_DSYMUTIL 7847 fi 7848else 7849 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7850fi 7851 7852 if test -n "$ac_tool_prefix"; then 7853 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7854set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7856printf %s "checking for $ac_word... " >&6; } 7857if test ${ac_cv_prog_NMEDIT+y} 7858then : 7859 printf %s "(cached) " >&6 7860else $as_nop 7861 if test -n "$NMEDIT"; then 7862 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7863else 7864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7865for as_dir in $PATH 7866do 7867 IFS=$as_save_IFS 7868 case $as_dir in #((( 7869 '') as_dir=./ ;; 7870 */) ;; 7871 *) as_dir=$as_dir/ ;; 7872 esac 7873 for ac_exec_ext in '' $ac_executable_extensions; do 7874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7875 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7877 break 2 7878 fi 7879done 7880 done 7881IFS=$as_save_IFS 7882 7883fi 7884fi 7885NMEDIT=$ac_cv_prog_NMEDIT 7886if test -n "$NMEDIT"; then 7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7888printf "%s\n" "$NMEDIT" >&6; } 7889else 7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7891printf "%s\n" "no" >&6; } 7892fi 7893 7894 7895fi 7896if test -z "$ac_cv_prog_NMEDIT"; then 7897 ac_ct_NMEDIT=$NMEDIT 7898 # Extract the first word of "nmedit", so it can be a program name with args. 7899set dummy nmedit; ac_word=$2 7900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7901printf %s "checking for $ac_word... " >&6; } 7902if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7903then : 7904 printf %s "(cached) " >&6 7905else $as_nop 7906 if test -n "$ac_ct_NMEDIT"; then 7907 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7908else 7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7910for as_dir in $PATH 7911do 7912 IFS=$as_save_IFS 7913 case $as_dir in #((( 7914 '') as_dir=./ ;; 7915 */) ;; 7916 *) as_dir=$as_dir/ ;; 7917 esac 7918 for ac_exec_ext in '' $ac_executable_extensions; do 7919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7920 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7922 break 2 7923 fi 7924done 7925 done 7926IFS=$as_save_IFS 7927 7928fi 7929fi 7930ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7931if test -n "$ac_ct_NMEDIT"; then 7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7933printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7934else 7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7936printf "%s\n" "no" >&6; } 7937fi 7938 7939 if test "x$ac_ct_NMEDIT" = x; then 7940 NMEDIT=":" 7941 else 7942 case $cross_compiling:$ac_tool_warned in 7943yes:) 7944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7945printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7946ac_tool_warned=yes ;; 7947esac 7948 NMEDIT=$ac_ct_NMEDIT 7949 fi 7950else 7951 NMEDIT="$ac_cv_prog_NMEDIT" 7952fi 7953 7954 if test -n "$ac_tool_prefix"; then 7955 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7956set dummy ${ac_tool_prefix}lipo; ac_word=$2 7957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7958printf %s "checking for $ac_word... " >&6; } 7959if test ${ac_cv_prog_LIPO+y} 7960then : 7961 printf %s "(cached) " >&6 7962else $as_nop 7963 if test -n "$LIPO"; then 7964 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7965else 7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7967for as_dir in $PATH 7968do 7969 IFS=$as_save_IFS 7970 case $as_dir in #((( 7971 '') as_dir=./ ;; 7972 */) ;; 7973 *) as_dir=$as_dir/ ;; 7974 esac 7975 for ac_exec_ext in '' $ac_executable_extensions; do 7976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7977 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7979 break 2 7980 fi 7981done 7982 done 7983IFS=$as_save_IFS 7984 7985fi 7986fi 7987LIPO=$ac_cv_prog_LIPO 7988if test -n "$LIPO"; then 7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7990printf "%s\n" "$LIPO" >&6; } 7991else 7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7993printf "%s\n" "no" >&6; } 7994fi 7995 7996 7997fi 7998if test -z "$ac_cv_prog_LIPO"; then 7999 ac_ct_LIPO=$LIPO 8000 # Extract the first word of "lipo", so it can be a program name with args. 8001set dummy lipo; ac_word=$2 8002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8003printf %s "checking for $ac_word... " >&6; } 8004if test ${ac_cv_prog_ac_ct_LIPO+y} 8005then : 8006 printf %s "(cached) " >&6 8007else $as_nop 8008 if test -n "$ac_ct_LIPO"; then 8009 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8010else 8011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8012for as_dir in $PATH 8013do 8014 IFS=$as_save_IFS 8015 case $as_dir in #((( 8016 '') as_dir=./ ;; 8017 */) ;; 8018 *) as_dir=$as_dir/ ;; 8019 esac 8020 for ac_exec_ext in '' $ac_executable_extensions; do 8021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8022 ac_cv_prog_ac_ct_LIPO="lipo" 8023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8024 break 2 8025 fi 8026done 8027 done 8028IFS=$as_save_IFS 8029 8030fi 8031fi 8032ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8033if test -n "$ac_ct_LIPO"; then 8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8035printf "%s\n" "$ac_ct_LIPO" >&6; } 8036else 8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8038printf "%s\n" "no" >&6; } 8039fi 8040 8041 if test "x$ac_ct_LIPO" = x; then 8042 LIPO=":" 8043 else 8044 case $cross_compiling:$ac_tool_warned in 8045yes:) 8046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8047printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8048ac_tool_warned=yes ;; 8049esac 8050 LIPO=$ac_ct_LIPO 8051 fi 8052else 8053 LIPO="$ac_cv_prog_LIPO" 8054fi 8055 8056 if test -n "$ac_tool_prefix"; then 8057 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8058set dummy ${ac_tool_prefix}otool; ac_word=$2 8059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8060printf %s "checking for $ac_word... " >&6; } 8061if test ${ac_cv_prog_OTOOL+y} 8062then : 8063 printf %s "(cached) " >&6 8064else $as_nop 8065 if test -n "$OTOOL"; then 8066 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8067else 8068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8069for as_dir in $PATH 8070do 8071 IFS=$as_save_IFS 8072 case $as_dir in #((( 8073 '') as_dir=./ ;; 8074 */) ;; 8075 *) as_dir=$as_dir/ ;; 8076 esac 8077 for ac_exec_ext in '' $ac_executable_extensions; do 8078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8079 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8081 break 2 8082 fi 8083done 8084 done 8085IFS=$as_save_IFS 8086 8087fi 8088fi 8089OTOOL=$ac_cv_prog_OTOOL 8090if test -n "$OTOOL"; then 8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8092printf "%s\n" "$OTOOL" >&6; } 8093else 8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8095printf "%s\n" "no" >&6; } 8096fi 8097 8098 8099fi 8100if test -z "$ac_cv_prog_OTOOL"; then 8101 ac_ct_OTOOL=$OTOOL 8102 # Extract the first word of "otool", so it can be a program name with args. 8103set dummy otool; ac_word=$2 8104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8105printf %s "checking for $ac_word... " >&6; } 8106if test ${ac_cv_prog_ac_ct_OTOOL+y} 8107then : 8108 printf %s "(cached) " >&6 8109else $as_nop 8110 if test -n "$ac_ct_OTOOL"; then 8111 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8112else 8113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8114for as_dir in $PATH 8115do 8116 IFS=$as_save_IFS 8117 case $as_dir in #((( 8118 '') as_dir=./ ;; 8119 */) ;; 8120 *) as_dir=$as_dir/ ;; 8121 esac 8122 for ac_exec_ext in '' $ac_executable_extensions; do 8123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8124 ac_cv_prog_ac_ct_OTOOL="otool" 8125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8126 break 2 8127 fi 8128done 8129 done 8130IFS=$as_save_IFS 8131 8132fi 8133fi 8134ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8135if test -n "$ac_ct_OTOOL"; then 8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8137printf "%s\n" "$ac_ct_OTOOL" >&6; } 8138else 8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8140printf "%s\n" "no" >&6; } 8141fi 8142 8143 if test "x$ac_ct_OTOOL" = x; then 8144 OTOOL=":" 8145 else 8146 case $cross_compiling:$ac_tool_warned in 8147yes:) 8148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8149printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8150ac_tool_warned=yes ;; 8151esac 8152 OTOOL=$ac_ct_OTOOL 8153 fi 8154else 8155 OTOOL="$ac_cv_prog_OTOOL" 8156fi 8157 8158 if test -n "$ac_tool_prefix"; then 8159 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8160set dummy ${ac_tool_prefix}otool64; ac_word=$2 8161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8162printf %s "checking for $ac_word... " >&6; } 8163if test ${ac_cv_prog_OTOOL64+y} 8164then : 8165 printf %s "(cached) " >&6 8166else $as_nop 8167 if test -n "$OTOOL64"; then 8168 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8169else 8170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8171for as_dir in $PATH 8172do 8173 IFS=$as_save_IFS 8174 case $as_dir in #((( 8175 '') as_dir=./ ;; 8176 */) ;; 8177 *) as_dir=$as_dir/ ;; 8178 esac 8179 for ac_exec_ext in '' $ac_executable_extensions; do 8180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8181 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8183 break 2 8184 fi 8185done 8186 done 8187IFS=$as_save_IFS 8188 8189fi 8190fi 8191OTOOL64=$ac_cv_prog_OTOOL64 8192if test -n "$OTOOL64"; then 8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8194printf "%s\n" "$OTOOL64" >&6; } 8195else 8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8197printf "%s\n" "no" >&6; } 8198fi 8199 8200 8201fi 8202if test -z "$ac_cv_prog_OTOOL64"; then 8203 ac_ct_OTOOL64=$OTOOL64 8204 # Extract the first word of "otool64", so it can be a program name with args. 8205set dummy otool64; ac_word=$2 8206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8207printf %s "checking for $ac_word... " >&6; } 8208if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8209then : 8210 printf %s "(cached) " >&6 8211else $as_nop 8212 if test -n "$ac_ct_OTOOL64"; then 8213 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8214else 8215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8216for as_dir in $PATH 8217do 8218 IFS=$as_save_IFS 8219 case $as_dir in #((( 8220 '') as_dir=./ ;; 8221 */) ;; 8222 *) as_dir=$as_dir/ ;; 8223 esac 8224 for ac_exec_ext in '' $ac_executable_extensions; do 8225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8226 ac_cv_prog_ac_ct_OTOOL64="otool64" 8227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8228 break 2 8229 fi 8230done 8231 done 8232IFS=$as_save_IFS 8233 8234fi 8235fi 8236ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8237if test -n "$ac_ct_OTOOL64"; then 8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8239printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8240else 8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8242printf "%s\n" "no" >&6; } 8243fi 8244 8245 if test "x$ac_ct_OTOOL64" = x; then 8246 OTOOL64=":" 8247 else 8248 case $cross_compiling:$ac_tool_warned in 8249yes:) 8250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8251printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8252ac_tool_warned=yes ;; 8253esac 8254 OTOOL64=$ac_ct_OTOOL64 8255 fi 8256else 8257 OTOOL64="$ac_cv_prog_OTOOL64" 8258fi 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8287printf %s "checking for -single_module linker flag... " >&6; } 8288if test ${lt_cv_apple_cc_single_mod+y} 8289then : 8290 printf %s "(cached) " >&6 8291else $as_nop 8292 lt_cv_apple_cc_single_mod=no 8293 if test -z "$LT_MULTI_MODULE"; then 8294 # By default we will add the -single_module flag. You can override 8295 # by either setting the environment variable LT_MULTI_MODULE 8296 # non-empty at configure time, or by adding -multi_module to the 8297 # link flags. 8298 rm -rf libconftest.dylib* 8299 echo "int foo(void){return 1;}" > conftest.c 8300 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8301-dynamiclib -Wl,-single_module conftest.c" >&5 8302 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8303 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8304 _lt_result=$? 8305 # If there is a non-empty error log, and "single_module" 8306 # appears in it, assume the flag caused a linker warning 8307 if test -s conftest.err && $GREP single_module conftest.err; then 8308 cat conftest.err >&5 8309 # Otherwise, if the output was created with a 0 exit code from 8310 # the compiler, it worked. 8311 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8312 lt_cv_apple_cc_single_mod=yes 8313 else 8314 cat conftest.err >&5 8315 fi 8316 rm -rf libconftest.dylib* 8317 rm -f conftest.* 8318 fi 8319fi 8320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8321printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8322 8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8324printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8325if test ${lt_cv_ld_exported_symbols_list+y} 8326then : 8327 printf %s "(cached) " >&6 8328else $as_nop 8329 lt_cv_ld_exported_symbols_list=no 8330 save_LDFLAGS=$LDFLAGS 8331 echo "_main" > conftest.sym 8332 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8334/* end confdefs.h. */ 8335 8336int 8337main (void) 8338{ 8339 8340 ; 8341 return 0; 8342} 8343_ACEOF 8344if ac_fn_c_try_link "$LINENO" 8345then : 8346 lt_cv_ld_exported_symbols_list=yes 8347else $as_nop 8348 lt_cv_ld_exported_symbols_list=no 8349fi 8350rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8351 conftest$ac_exeext conftest.$ac_ext 8352 LDFLAGS=$save_LDFLAGS 8353 8354fi 8355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8356printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8357 8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8359printf %s "checking for -force_load linker flag... " >&6; } 8360if test ${lt_cv_ld_force_load+y} 8361then : 8362 printf %s "(cached) " >&6 8363else $as_nop 8364 lt_cv_ld_force_load=no 8365 cat > conftest.c << _LT_EOF 8366int forced_loaded() { return 2;} 8367_LT_EOF 8368 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8369 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8370 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8371 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8372 echo "$RANLIB libconftest.a" >&5 8373 $RANLIB libconftest.a 2>&5 8374 cat > conftest.c << _LT_EOF 8375int main() { return 0;} 8376_LT_EOF 8377 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8378 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8379 _lt_result=$? 8380 if test -s conftest.err && $GREP force_load conftest.err; then 8381 cat conftest.err >&5 8382 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8383 lt_cv_ld_force_load=yes 8384 else 8385 cat conftest.err >&5 8386 fi 8387 rm -f conftest.err libconftest.a conftest conftest.c 8388 rm -rf conftest.dSYM 8389 8390fi 8391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8392printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8393 case $host_os in 8394 rhapsody* | darwin1.[012]) 8395 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8396 darwin1.*) 8397 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8398 darwin*) 8399 case $MACOSX_DEPLOYMENT_TARGET,$host in 8400 10.[012],*|,*powerpc*-darwin[5-8]*) 8401 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8402 *) 8403 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8404 esac 8405 ;; 8406 esac 8407 if test yes = "$lt_cv_apple_cc_single_mod"; then 8408 _lt_dar_single_mod='$single_module' 8409 fi 8410 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8411 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8412 else 8413 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8414 fi 8415 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8416 _lt_dsymutil='~$DSYMUTIL $lib || :' 8417 else 8418 _lt_dsymutil= 8419 fi 8420 ;; 8421 esac 8422 8423# func_munge_path_list VARIABLE PATH 8424# ----------------------------------- 8425# VARIABLE is name of variable containing _space_ separated list of 8426# directories to be munged by the contents of PATH, which is string 8427# having a format: 8428# "DIR[:DIR]:" 8429# string "DIR[ DIR]" will be prepended to VARIABLE 8430# ":DIR[:DIR]" 8431# string "DIR[ DIR]" will be appended to VARIABLE 8432# "DIRP[:DIRP]::[DIRA:]DIRA" 8433# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8434# "DIRA[ DIRA]" will be appended to VARIABLE 8435# "DIR[:DIR]" 8436# VARIABLE will be replaced by "DIR[ DIR]" 8437func_munge_path_list () 8438{ 8439 case x$2 in 8440 x) 8441 ;; 8442 *:) 8443 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8444 ;; 8445 x:*) 8446 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8447 ;; 8448 *::*) 8449 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8450 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8451 ;; 8452 *) 8453 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8454 ;; 8455 esac 8456} 8457 8458ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8459" 8460if test "x$ac_cv_header_dlfcn_h" = xyes 8461then : 8462 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8463 8464fi 8465 8466 8467 8468 8469 8470# Set options 8471 8472 8473 8474 enable_dlopen=no 8475 8476 8477 enable_win32_dll=no 8478 8479 8480 # Check whether --enable-shared was given. 8481if test ${enable_shared+y} 8482then : 8483 enableval=$enable_shared; p=${PACKAGE-default} 8484 case $enableval in 8485 yes) enable_shared=yes ;; 8486 no) enable_shared=no ;; 8487 *) 8488 enable_shared=no 8489 # Look at the argument we got. We use all the common list separators. 8490 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8491 for pkg in $enableval; do 8492 IFS=$lt_save_ifs 8493 if test "X$pkg" = "X$p"; then 8494 enable_shared=yes 8495 fi 8496 done 8497 IFS=$lt_save_ifs 8498 ;; 8499 esac 8500else $as_nop 8501 enable_shared=yes 8502fi 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 # Check whether --enable-static was given. 8513if test ${enable_static+y} 8514then : 8515 enableval=$enable_static; p=${PACKAGE-default} 8516 case $enableval in 8517 yes) enable_static=yes ;; 8518 no) enable_static=no ;; 8519 *) 8520 enable_static=no 8521 # Look at the argument we got. We use all the common list separators. 8522 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8523 for pkg in $enableval; do 8524 IFS=$lt_save_ifs 8525 if test "X$pkg" = "X$p"; then 8526 enable_static=yes 8527 fi 8528 done 8529 IFS=$lt_save_ifs 8530 ;; 8531 esac 8532else $as_nop 8533 enable_static=yes 8534fi 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545# Check whether --with-pic was given. 8546if test ${with_pic+y} 8547then : 8548 withval=$with_pic; lt_p=${PACKAGE-default} 8549 case $withval in 8550 yes|no) pic_mode=$withval ;; 8551 *) 8552 pic_mode=default 8553 # Look at the argument we got. We use all the common list separators. 8554 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8555 for lt_pkg in $withval; do 8556 IFS=$lt_save_ifs 8557 if test "X$lt_pkg" = "X$lt_p"; then 8558 pic_mode=yes 8559 fi 8560 done 8561 IFS=$lt_save_ifs 8562 ;; 8563 esac 8564else $as_nop 8565 pic_mode=default 8566fi 8567 8568 8569 8570 8571 8572 8573 8574 8575 # Check whether --enable-fast-install was given. 8576if test ${enable_fast_install+y} 8577then : 8578 enableval=$enable_fast_install; p=${PACKAGE-default} 8579 case $enableval in 8580 yes) enable_fast_install=yes ;; 8581 no) enable_fast_install=no ;; 8582 *) 8583 enable_fast_install=no 8584 # Look at the argument we got. We use all the common list separators. 8585 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8586 for pkg in $enableval; do 8587 IFS=$lt_save_ifs 8588 if test "X$pkg" = "X$p"; then 8589 enable_fast_install=yes 8590 fi 8591 done 8592 IFS=$lt_save_ifs 8593 ;; 8594 esac 8595else $as_nop 8596 enable_fast_install=yes 8597fi 8598 8599 8600 8601 8602 8603 8604 8605 8606 shared_archive_member_spec= 8607case $host,$enable_shared in 8608power*-*-aix[5-9]*,yes) 8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8610printf %s "checking which variant of shared library versioning to provide... " >&6; } 8611 8612# Check whether --with-aix-soname was given. 8613if test ${with_aix_soname+y} 8614then : 8615 withval=$with_aix_soname; case $withval in 8616 aix|svr4|both) 8617 ;; 8618 *) 8619 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8620 ;; 8621 esac 8622 lt_cv_with_aix_soname=$with_aix_soname 8623else $as_nop 8624 if test ${lt_cv_with_aix_soname+y} 8625then : 8626 printf %s "(cached) " >&6 8627else $as_nop 8628 lt_cv_with_aix_soname=aix 8629fi 8630 8631 with_aix_soname=$lt_cv_with_aix_soname 8632fi 8633 8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8635printf "%s\n" "$with_aix_soname" >&6; } 8636 if test aix != "$with_aix_soname"; then 8637 # For the AIX way of multilib, we name the shared archive member 8638 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8639 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8640 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8641 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8642 if test 64 = "${OBJECT_MODE-32}"; then 8643 shared_archive_member_spec=shr_64 8644 else 8645 shared_archive_member_spec=shr 8646 fi 8647 fi 8648 ;; 8649*) 8650 with_aix_soname=aix 8651 ;; 8652esac 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663# This can be used to rebuild libtool when needed 8664LIBTOOL_DEPS=$ltmain 8665 8666# Always use our own libtool. 8667LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698test -z "$LN_S" && LN_S="ln -s" 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713if test -n "${ZSH_VERSION+set}"; then 8714 setopt NO_GLOB_SUBST 8715fi 8716 8717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8718printf %s "checking for objdir... " >&6; } 8719if test ${lt_cv_objdir+y} 8720then : 8721 printf %s "(cached) " >&6 8722else $as_nop 8723 rm -f .libs 2>/dev/null 8724mkdir .libs 2>/dev/null 8725if test -d .libs; then 8726 lt_cv_objdir=.libs 8727else 8728 # MS-DOS does not allow filenames that begin with a dot. 8729 lt_cv_objdir=_libs 8730fi 8731rmdir .libs 2>/dev/null 8732fi 8733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8734printf "%s\n" "$lt_cv_objdir" >&6; } 8735objdir=$lt_cv_objdir 8736 8737 8738 8739 8740 8741printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8742 8743 8744 8745 8746case $host_os in 8747aix3*) 8748 # AIX sometimes has problems with the GCC collect2 program. For some 8749 # reason, if we set the COLLECT_NAMES environment variable, the problems 8750 # vanish in a puff of smoke. 8751 if test set != "${COLLECT_NAMES+set}"; then 8752 COLLECT_NAMES= 8753 export COLLECT_NAMES 8754 fi 8755 ;; 8756esac 8757 8758# Global variables: 8759ofile=libtool 8760can_build_shared=yes 8761 8762# All known linkers require a '.a' archive for static linking (except MSVC and 8763# ICC, which need '.lib'). 8764libext=a 8765 8766with_gnu_ld=$lt_cv_prog_gnu_ld 8767 8768old_CC=$CC 8769old_CFLAGS=$CFLAGS 8770 8771# Set sane defaults for various variables 8772test -z "$CC" && CC=cc 8773test -z "$LTCC" && LTCC=$CC 8774test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8775test -z "$LD" && LD=ld 8776test -z "$ac_objext" && ac_objext=o 8777 8778func_cc_basename $compiler 8779cc_basename=$func_cc_basename_result 8780 8781 8782# Only perform the check for file, if the check method requires it 8783test -z "$MAGIC_CMD" && MAGIC_CMD=file 8784case $deplibs_check_method in 8785file_magic*) 8786 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8788printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8789if test ${lt_cv_path_MAGIC_CMD+y} 8790then : 8791 printf %s "(cached) " >&6 8792else $as_nop 8793 case $MAGIC_CMD in 8794[\\/*] | ?:[\\/]*) 8795 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8796 ;; 8797*) 8798 lt_save_MAGIC_CMD=$MAGIC_CMD 8799 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8800 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8801 for ac_dir in $ac_dummy; do 8802 IFS=$lt_save_ifs 8803 test -z "$ac_dir" && ac_dir=. 8804 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8805 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8806 if test -n "$file_magic_test_file"; then 8807 case $deplibs_check_method in 8808 "file_magic "*) 8809 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8810 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8811 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8812 $EGREP "$file_magic_regex" > /dev/null; then 8813 : 8814 else 8815 cat <<_LT_EOF 1>&2 8816 8817*** Warning: the command libtool uses to detect shared libraries, 8818*** $file_magic_cmd, produces output that libtool cannot recognize. 8819*** The result is that libtool may fail to recognize shared libraries 8820*** as such. This will affect the creation of libtool libraries that 8821*** depend on shared libraries, but programs linked with such libtool 8822*** libraries will work regardless of this problem. Nevertheless, you 8823*** may want to report the problem to your system manager and/or to 8824*** bug-libtool@gnu.org 8825 8826_LT_EOF 8827 fi ;; 8828 esac 8829 fi 8830 break 8831 fi 8832 done 8833 IFS=$lt_save_ifs 8834 MAGIC_CMD=$lt_save_MAGIC_CMD 8835 ;; 8836esac 8837fi 8838 8839MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8840if test -n "$MAGIC_CMD"; then 8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8842printf "%s\n" "$MAGIC_CMD" >&6; } 8843else 8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8845printf "%s\n" "no" >&6; } 8846fi 8847 8848 8849 8850 8851 8852if test -z "$lt_cv_path_MAGIC_CMD"; then 8853 if test -n "$ac_tool_prefix"; then 8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8855printf %s "checking for file... " >&6; } 8856if test ${lt_cv_path_MAGIC_CMD+y} 8857then : 8858 printf %s "(cached) " >&6 8859else $as_nop 8860 case $MAGIC_CMD in 8861[\\/*] | ?:[\\/]*) 8862 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8863 ;; 8864*) 8865 lt_save_MAGIC_CMD=$MAGIC_CMD 8866 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8867 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8868 for ac_dir in $ac_dummy; do 8869 IFS=$lt_save_ifs 8870 test -z "$ac_dir" && ac_dir=. 8871 if test -f "$ac_dir/file"; then 8872 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8873 if test -n "$file_magic_test_file"; then 8874 case $deplibs_check_method in 8875 "file_magic "*) 8876 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8877 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8878 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8879 $EGREP "$file_magic_regex" > /dev/null; then 8880 : 8881 else 8882 cat <<_LT_EOF 1>&2 8883 8884*** Warning: the command libtool uses to detect shared libraries, 8885*** $file_magic_cmd, produces output that libtool cannot recognize. 8886*** The result is that libtool may fail to recognize shared libraries 8887*** as such. This will affect the creation of libtool libraries that 8888*** depend on shared libraries, but programs linked with such libtool 8889*** libraries will work regardless of this problem. Nevertheless, you 8890*** may want to report the problem to your system manager and/or to 8891*** bug-libtool@gnu.org 8892 8893_LT_EOF 8894 fi ;; 8895 esac 8896 fi 8897 break 8898 fi 8899 done 8900 IFS=$lt_save_ifs 8901 MAGIC_CMD=$lt_save_MAGIC_CMD 8902 ;; 8903esac 8904fi 8905 8906MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8907if test -n "$MAGIC_CMD"; then 8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8909printf "%s\n" "$MAGIC_CMD" >&6; } 8910else 8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8912printf "%s\n" "no" >&6; } 8913fi 8914 8915 8916 else 8917 MAGIC_CMD=: 8918 fi 8919fi 8920 8921 fi 8922 ;; 8923esac 8924 8925# Use C for the default configuration in the libtool script 8926 8927lt_save_CC=$CC 8928ac_ext=c 8929ac_cpp='$CPP $CPPFLAGS' 8930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8932ac_compiler_gnu=$ac_cv_c_compiler_gnu 8933 8934 8935# Source file extension for C test sources. 8936ac_ext=c 8937 8938# Object file extension for compiled C test sources. 8939objext=o 8940objext=$objext 8941 8942# Code to be used in simple compile tests 8943lt_simple_compile_test_code="int some_variable = 0;" 8944 8945# Code to be used in simple link tests 8946lt_simple_link_test_code='int main(){return(0);}' 8947 8948 8949 8950 8951 8952 8953 8954# If no C compiler was specified, use CC. 8955LTCC=${LTCC-"$CC"} 8956 8957# If no C compiler flags were specified, use CFLAGS. 8958LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8959 8960# Allow CC to be a program name with arguments. 8961compiler=$CC 8962 8963# Save the default compiler, since it gets overwritten when the other 8964# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8965compiler_DEFAULT=$CC 8966 8967# save warnings/boilerplate of simple test code 8968ac_outfile=conftest.$ac_objext 8969echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8970eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8971_lt_compiler_boilerplate=`cat conftest.err` 8972$RM conftest* 8973 8974ac_outfile=conftest.$ac_objext 8975echo "$lt_simple_link_test_code" >conftest.$ac_ext 8976eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8977_lt_linker_boilerplate=`cat conftest.err` 8978$RM -r conftest* 8979 8980 8981## CAVEAT EMPTOR: 8982## There is no encapsulation within the following macros, do not change 8983## the running order or otherwise move them around unless you know exactly 8984## what you are doing... 8985if test -n "$compiler"; then 8986 8987lt_prog_compiler_no_builtin_flag= 8988 8989if test yes = "$GCC"; then 8990 case $cc_basename in 8991 nvcc*) 8992 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8993 *) 8994 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8995 esac 8996 8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8998printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8999if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9000then : 9001 printf %s "(cached) " >&6 9002else $as_nop 9003 lt_cv_prog_compiler_rtti_exceptions=no 9004 ac_outfile=conftest.$ac_objext 9005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9006 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9007 # Insert the option either (1) after the last *FLAGS variable, or 9008 # (2) before a word containing "conftest.", or (3) at the end. 9009 # Note that $ac_compile itself does not contain backslashes and begins 9010 # with a dollar sign (not a hyphen), so the echo should work correctly. 9011 # The option is referenced via a variable to avoid confusing sed. 9012 lt_compile=`echo "$ac_compile" | $SED \ 9013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9015 -e 's:$: $lt_compiler_flag:'` 9016 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9017 (eval "$lt_compile" 2>conftest.err) 9018 ac_status=$? 9019 cat conftest.err >&5 9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9021 if (exit $ac_status) && test -s "$ac_outfile"; then 9022 # The compiler can only warn and ignore the option if not recognized 9023 # So say no if there are warnings other than the usual output. 9024 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9027 lt_cv_prog_compiler_rtti_exceptions=yes 9028 fi 9029 fi 9030 $RM conftest* 9031 9032fi 9033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9034printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9035 9036if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9037 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9038else 9039 : 9040fi 9041 9042fi 9043 9044 9045 9046 9047 9048 9049 lt_prog_compiler_wl= 9050lt_prog_compiler_pic= 9051lt_prog_compiler_static= 9052 9053 9054 if test yes = "$GCC"; then 9055 lt_prog_compiler_wl='-Wl,' 9056 lt_prog_compiler_static='-static' 9057 9058 case $host_os in 9059 aix*) 9060 # All AIX code is PIC. 9061 if test ia64 = "$host_cpu"; then 9062 # AIX 5 now supports IA64 processor 9063 lt_prog_compiler_static='-Bstatic' 9064 fi 9065 lt_prog_compiler_pic='-fPIC' 9066 ;; 9067 9068 amigaos*) 9069 case $host_cpu in 9070 powerpc) 9071 # see comment about AmigaOS4 .so support 9072 lt_prog_compiler_pic='-fPIC' 9073 ;; 9074 m68k) 9075 # FIXME: we need at least 68020 code to build shared libraries, but 9076 # adding the '-m68020' flag to GCC prevents building anything better, 9077 # like '-m68040'. 9078 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9079 ;; 9080 esac 9081 ;; 9082 9083 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9084 # PIC is the default for these OSes. 9085 ;; 9086 9087 mingw* | cygwin* | pw32* | os2* | cegcc*) 9088 # This hack is so that the source file can tell whether it is being 9089 # built for inclusion in a dll (and should export symbols for example). 9090 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9091 # (--disable-auto-import) libraries 9092 lt_prog_compiler_pic='-DDLL_EXPORT' 9093 case $host_os in 9094 os2*) 9095 lt_prog_compiler_static='$wl-static' 9096 ;; 9097 esac 9098 ;; 9099 9100 darwin* | rhapsody*) 9101 # PIC is the default on this platform 9102 # Common symbols not allowed in MH_DYLIB files 9103 lt_prog_compiler_pic='-fno-common' 9104 ;; 9105 9106 haiku*) 9107 # PIC is the default for Haiku. 9108 # The "-static" flag exists, but is broken. 9109 lt_prog_compiler_static= 9110 ;; 9111 9112 hpux*) 9113 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9114 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9115 # sets the default TLS model and affects inlining. 9116 case $host_cpu in 9117 hppa*64*) 9118 # +Z the default 9119 ;; 9120 *) 9121 lt_prog_compiler_pic='-fPIC' 9122 ;; 9123 esac 9124 ;; 9125 9126 interix[3-9]*) 9127 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9128 # Instead, we relocate shared libraries at runtime. 9129 ;; 9130 9131 msdosdjgpp*) 9132 # Just because we use GCC doesn't mean we suddenly get shared libraries 9133 # on systems that don't support them. 9134 lt_prog_compiler_can_build_shared=no 9135 enable_shared=no 9136 ;; 9137 9138 *nto* | *qnx*) 9139 # QNX uses GNU C++, but need to define -shared option too, otherwise 9140 # it will coredump. 9141 lt_prog_compiler_pic='-fPIC -shared' 9142 ;; 9143 9144 sysv4*MP*) 9145 if test -d /usr/nec; then 9146 lt_prog_compiler_pic=-Kconform_pic 9147 fi 9148 ;; 9149 9150 *) 9151 lt_prog_compiler_pic='-fPIC' 9152 ;; 9153 esac 9154 9155 case $cc_basename in 9156 nvcc*) # Cuda Compiler Driver 2.2 9157 lt_prog_compiler_wl='-Xlinker ' 9158 if test -n "$lt_prog_compiler_pic"; then 9159 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9160 fi 9161 ;; 9162 esac 9163 else 9164 # PORTME Check for flag to pass linker flags through the system compiler. 9165 case $host_os in 9166 aix*) 9167 lt_prog_compiler_wl='-Wl,' 9168 if test ia64 = "$host_cpu"; then 9169 # AIX 5 now supports IA64 processor 9170 lt_prog_compiler_static='-Bstatic' 9171 else 9172 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9173 fi 9174 ;; 9175 9176 darwin* | rhapsody*) 9177 # PIC is the default on this platform 9178 # Common symbols not allowed in MH_DYLIB files 9179 lt_prog_compiler_pic='-fno-common' 9180 case $cc_basename in 9181 nagfor*) 9182 # NAG Fortran compiler 9183 lt_prog_compiler_wl='-Wl,-Wl,,' 9184 lt_prog_compiler_pic='-PIC' 9185 lt_prog_compiler_static='-Bstatic' 9186 ;; 9187 esac 9188 ;; 9189 9190 mingw* | cygwin* | pw32* | os2* | cegcc*) 9191 # This hack is so that the source file can tell whether it is being 9192 # built for inclusion in a dll (and should export symbols for example). 9193 lt_prog_compiler_pic='-DDLL_EXPORT' 9194 case $host_os in 9195 os2*) 9196 lt_prog_compiler_static='$wl-static' 9197 ;; 9198 esac 9199 ;; 9200 9201 hpux9* | hpux10* | hpux11*) 9202 lt_prog_compiler_wl='-Wl,' 9203 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9204 # not for PA HP-UX. 9205 case $host_cpu in 9206 hppa*64*|ia64*) 9207 # +Z the default 9208 ;; 9209 *) 9210 lt_prog_compiler_pic='+Z' 9211 ;; 9212 esac 9213 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9214 lt_prog_compiler_static='$wl-a ${wl}archive' 9215 ;; 9216 9217 irix5* | irix6* | nonstopux*) 9218 lt_prog_compiler_wl='-Wl,' 9219 # PIC (with -KPIC) is the default. 9220 lt_prog_compiler_static='-non_shared' 9221 ;; 9222 9223 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9224 case $cc_basename in 9225 # old Intel for x86_64, which still supported -KPIC. 9226 ecc*) 9227 lt_prog_compiler_wl='-Wl,' 9228 lt_prog_compiler_pic='-KPIC' 9229 lt_prog_compiler_static='-static' 9230 ;; 9231 # icc used to be incompatible with GCC. 9232 # ICC 10 doesn't accept -KPIC any more. 9233 icc* | ifort*) 9234 lt_prog_compiler_wl='-Wl,' 9235 lt_prog_compiler_pic='-fPIC' 9236 lt_prog_compiler_static='-static' 9237 ;; 9238 # Lahey Fortran 8.1. 9239 lf95*) 9240 lt_prog_compiler_wl='-Wl,' 9241 lt_prog_compiler_pic='--shared' 9242 lt_prog_compiler_static='--static' 9243 ;; 9244 nagfor*) 9245 # NAG Fortran compiler 9246 lt_prog_compiler_wl='-Wl,-Wl,,' 9247 lt_prog_compiler_pic='-PIC' 9248 lt_prog_compiler_static='-Bstatic' 9249 ;; 9250 tcc*) 9251 # Fabrice Bellard et al's Tiny C Compiler 9252 lt_prog_compiler_wl='-Wl,' 9253 lt_prog_compiler_pic='-fPIC' 9254 lt_prog_compiler_static='-static' 9255 ;; 9256 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9257 # Portland Group compilers (*not* the Pentium gcc compiler, 9258 # which looks to be a dead project) 9259 lt_prog_compiler_wl='-Wl,' 9260 lt_prog_compiler_pic='-fpic' 9261 lt_prog_compiler_static='-Bstatic' 9262 ;; 9263 ccc*) 9264 lt_prog_compiler_wl='-Wl,' 9265 # All Alpha code is PIC. 9266 lt_prog_compiler_static='-non_shared' 9267 ;; 9268 xl* | bgxl* | bgf* | mpixl*) 9269 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9270 lt_prog_compiler_wl='-Wl,' 9271 lt_prog_compiler_pic='-qpic' 9272 lt_prog_compiler_static='-qstaticlink' 9273 ;; 9274 *) 9275 case `$CC -V 2>&1 | $SED 5q` in 9276 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9277 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9278 lt_prog_compiler_pic='-KPIC' 9279 lt_prog_compiler_static='-Bstatic' 9280 lt_prog_compiler_wl='' 9281 ;; 9282 *Sun\ F* | *Sun*Fortran*) 9283 lt_prog_compiler_pic='-KPIC' 9284 lt_prog_compiler_static='-Bstatic' 9285 lt_prog_compiler_wl='-Qoption ld ' 9286 ;; 9287 *Sun\ C*) 9288 # Sun C 5.9 9289 lt_prog_compiler_pic='-KPIC' 9290 lt_prog_compiler_static='-Bstatic' 9291 lt_prog_compiler_wl='-Wl,' 9292 ;; 9293 *Intel*\ [CF]*Compiler*) 9294 lt_prog_compiler_wl='-Wl,' 9295 lt_prog_compiler_pic='-fPIC' 9296 lt_prog_compiler_static='-static' 9297 ;; 9298 *Portland\ Group*) 9299 lt_prog_compiler_wl='-Wl,' 9300 lt_prog_compiler_pic='-fpic' 9301 lt_prog_compiler_static='-Bstatic' 9302 ;; 9303 esac 9304 ;; 9305 esac 9306 ;; 9307 9308 newsos6) 9309 lt_prog_compiler_pic='-KPIC' 9310 lt_prog_compiler_static='-Bstatic' 9311 ;; 9312 9313 *nto* | *qnx*) 9314 # QNX uses GNU C++, but need to define -shared option too, otherwise 9315 # it will coredump. 9316 lt_prog_compiler_pic='-fPIC -shared' 9317 ;; 9318 9319 osf3* | osf4* | osf5*) 9320 lt_prog_compiler_wl='-Wl,' 9321 # All OSF/1 code is PIC. 9322 lt_prog_compiler_static='-non_shared' 9323 ;; 9324 9325 rdos*) 9326 lt_prog_compiler_static='-non_shared' 9327 ;; 9328 9329 solaris*) 9330 lt_prog_compiler_pic='-KPIC' 9331 lt_prog_compiler_static='-Bstatic' 9332 case $cc_basename in 9333 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9334 lt_prog_compiler_wl='-Qoption ld ';; 9335 *) 9336 lt_prog_compiler_wl='-Wl,';; 9337 esac 9338 ;; 9339 9340 sunos4*) 9341 lt_prog_compiler_wl='-Qoption ld ' 9342 lt_prog_compiler_pic='-PIC' 9343 lt_prog_compiler_static='-Bstatic' 9344 ;; 9345 9346 sysv4 | sysv4.2uw2* | sysv4.3*) 9347 lt_prog_compiler_wl='-Wl,' 9348 lt_prog_compiler_pic='-KPIC' 9349 lt_prog_compiler_static='-Bstatic' 9350 ;; 9351 9352 sysv4*MP*) 9353 if test -d /usr/nec; then 9354 lt_prog_compiler_pic='-Kconform_pic' 9355 lt_prog_compiler_static='-Bstatic' 9356 fi 9357 ;; 9358 9359 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9360 lt_prog_compiler_wl='-Wl,' 9361 lt_prog_compiler_pic='-KPIC' 9362 lt_prog_compiler_static='-Bstatic' 9363 ;; 9364 9365 unicos*) 9366 lt_prog_compiler_wl='-Wl,' 9367 lt_prog_compiler_can_build_shared=no 9368 ;; 9369 9370 uts4*) 9371 lt_prog_compiler_pic='-pic' 9372 lt_prog_compiler_static='-Bstatic' 9373 ;; 9374 9375 *) 9376 lt_prog_compiler_can_build_shared=no 9377 ;; 9378 esac 9379 fi 9380 9381case $host_os in 9382 # For platforms that do not support PIC, -DPIC is meaningless: 9383 *djgpp*) 9384 lt_prog_compiler_pic= 9385 ;; 9386 *) 9387 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9388 ;; 9389esac 9390 9391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9392printf %s "checking for $compiler option to produce PIC... " >&6; } 9393if test ${lt_cv_prog_compiler_pic+y} 9394then : 9395 printf %s "(cached) " >&6 9396else $as_nop 9397 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9398fi 9399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9400printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9401lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9402 9403# 9404# Check to make sure the PIC flag actually works. 9405# 9406if test -n "$lt_prog_compiler_pic"; then 9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9408printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9409if test ${lt_cv_prog_compiler_pic_works+y} 9410then : 9411 printf %s "(cached) " >&6 9412else $as_nop 9413 lt_cv_prog_compiler_pic_works=no 9414 ac_outfile=conftest.$ac_objext 9415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9416 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9417 # Insert the option either (1) after the last *FLAGS variable, or 9418 # (2) before a word containing "conftest.", or (3) at the end. 9419 # Note that $ac_compile itself does not contain backslashes and begins 9420 # with a dollar sign (not a hyphen), so the echo should work correctly. 9421 # The option is referenced via a variable to avoid confusing sed. 9422 lt_compile=`echo "$ac_compile" | $SED \ 9423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9425 -e 's:$: $lt_compiler_flag:'` 9426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9427 (eval "$lt_compile" 2>conftest.err) 9428 ac_status=$? 9429 cat conftest.err >&5 9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9431 if (exit $ac_status) && test -s "$ac_outfile"; then 9432 # The compiler can only warn and ignore the option if not recognized 9433 # So say no if there are warnings other than the usual output. 9434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9437 lt_cv_prog_compiler_pic_works=yes 9438 fi 9439 fi 9440 $RM conftest* 9441 9442fi 9443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9444printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9445 9446if test yes = "$lt_cv_prog_compiler_pic_works"; then 9447 case $lt_prog_compiler_pic in 9448 "" | " "*) ;; 9449 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9450 esac 9451else 9452 lt_prog_compiler_pic= 9453 lt_prog_compiler_can_build_shared=no 9454fi 9455 9456fi 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468# 9469# Check to make sure the static flag actually works. 9470# 9471wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9473printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9474if test ${lt_cv_prog_compiler_static_works+y} 9475then : 9476 printf %s "(cached) " >&6 9477else $as_nop 9478 lt_cv_prog_compiler_static_works=no 9479 save_LDFLAGS=$LDFLAGS 9480 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9481 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9482 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9483 # The linker can only warn and ignore the option if not recognized 9484 # So say no if there are warnings 9485 if test -s conftest.err; then 9486 # Append any errors to the config.log. 9487 cat conftest.err 1>&5 9488 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9490 if diff conftest.exp conftest.er2 >/dev/null; then 9491 lt_cv_prog_compiler_static_works=yes 9492 fi 9493 else 9494 lt_cv_prog_compiler_static_works=yes 9495 fi 9496 fi 9497 $RM -r conftest* 9498 LDFLAGS=$save_LDFLAGS 9499 9500fi 9501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9502printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9503 9504if test yes = "$lt_cv_prog_compiler_static_works"; then 9505 : 9506else 9507 lt_prog_compiler_static= 9508fi 9509 9510 9511 9512 9513 9514 9515 9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9517printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9518if test ${lt_cv_prog_compiler_c_o+y} 9519then : 9520 printf %s "(cached) " >&6 9521else $as_nop 9522 lt_cv_prog_compiler_c_o=no 9523 $RM -r conftest 2>/dev/null 9524 mkdir conftest 9525 cd conftest 9526 mkdir out 9527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9528 9529 lt_compiler_flag="-o out/conftest2.$ac_objext" 9530 # Insert the option either (1) after the last *FLAGS variable, or 9531 # (2) before a word containing "conftest.", or (3) at the end. 9532 # Note that $ac_compile itself does not contain backslashes and begins 9533 # with a dollar sign (not a hyphen), so the echo should work correctly. 9534 lt_compile=`echo "$ac_compile" | $SED \ 9535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9537 -e 's:$: $lt_compiler_flag:'` 9538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9539 (eval "$lt_compile" 2>out/conftest.err) 9540 ac_status=$? 9541 cat out/conftest.err >&5 9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9543 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9544 then 9545 # The compiler can only warn and ignore the option if not recognized 9546 # So say no if there are warnings 9547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9550 lt_cv_prog_compiler_c_o=yes 9551 fi 9552 fi 9553 chmod u+w . 2>&5 9554 $RM conftest* 9555 # SGI C++ compiler will create directory out/ii_files/ for 9556 # template instantiation 9557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9558 $RM out/* && rmdir out 9559 cd .. 9560 $RM -r conftest 9561 $RM conftest* 9562 9563fi 9564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9565printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9566 9567 9568 9569 9570 9571 9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9573printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9574if test ${lt_cv_prog_compiler_c_o+y} 9575then : 9576 printf %s "(cached) " >&6 9577else $as_nop 9578 lt_cv_prog_compiler_c_o=no 9579 $RM -r conftest 2>/dev/null 9580 mkdir conftest 9581 cd conftest 9582 mkdir out 9583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9584 9585 lt_compiler_flag="-o out/conftest2.$ac_objext" 9586 # Insert the option either (1) after the last *FLAGS variable, or 9587 # (2) before a word containing "conftest.", or (3) at the end. 9588 # Note that $ac_compile itself does not contain backslashes and begins 9589 # with a dollar sign (not a hyphen), so the echo should work correctly. 9590 lt_compile=`echo "$ac_compile" | $SED \ 9591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9593 -e 's:$: $lt_compiler_flag:'` 9594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9595 (eval "$lt_compile" 2>out/conftest.err) 9596 ac_status=$? 9597 cat out/conftest.err >&5 9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9599 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9600 then 9601 # The compiler can only warn and ignore the option if not recognized 9602 # So say no if there are warnings 9603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9606 lt_cv_prog_compiler_c_o=yes 9607 fi 9608 fi 9609 chmod u+w . 2>&5 9610 $RM conftest* 9611 # SGI C++ compiler will create directory out/ii_files/ for 9612 # template instantiation 9613 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9614 $RM out/* && rmdir out 9615 cd .. 9616 $RM -r conftest 9617 $RM conftest* 9618 9619fi 9620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9621printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9622 9623 9624 9625 9626hard_links=nottested 9627if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9628 # do not overwrite the value of need_locks provided by the user 9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9630printf %s "checking if we can lock with hard links... " >&6; } 9631 hard_links=yes 9632 $RM conftest* 9633 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9634 touch conftest.a 9635 ln conftest.a conftest.b 2>&5 || hard_links=no 9636 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9638printf "%s\n" "$hard_links" >&6; } 9639 if test no = "$hard_links"; then 9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9641printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9642 need_locks=warn 9643 fi 9644else 9645 need_locks=no 9646fi 9647 9648 9649 9650 9651 9652 9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9654printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9655 9656 runpath_var= 9657 allow_undefined_flag= 9658 always_export_symbols=no 9659 archive_cmds= 9660 archive_expsym_cmds= 9661 compiler_needs_object=no 9662 enable_shared_with_static_runtimes=no 9663 export_dynamic_flag_spec= 9664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9665 hardcode_automatic=no 9666 hardcode_direct=no 9667 hardcode_direct_absolute=no 9668 hardcode_libdir_flag_spec= 9669 hardcode_libdir_separator= 9670 hardcode_minus_L=no 9671 hardcode_shlibpath_var=unsupported 9672 inherit_rpath=no 9673 link_all_deplibs=unknown 9674 module_cmds= 9675 module_expsym_cmds= 9676 old_archive_from_new_cmds= 9677 old_archive_from_expsyms_cmds= 9678 thread_safe_flag_spec= 9679 whole_archive_flag_spec= 9680 # include_expsyms should be a list of space-separated symbols to be *always* 9681 # included in the symbol list 9682 include_expsyms= 9683 # exclude_expsyms can be an extended regexp of symbols to exclude 9684 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9685 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9686 # as well as any symbol that contains 'd'. 9687 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9688 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9689 # platforms (ab)use it in PIC code, but their linkers get confused if 9690 # the symbol is explicitly referenced. Since portable code cannot 9691 # rely on this symbol name, it's probably fine to never include it in 9692 # preloaded symbol tables. 9693 # Exclude shared library initialization/finalization symbols. 9694 extract_expsyms_cmds= 9695 9696 case $host_os in 9697 cygwin* | mingw* | pw32* | cegcc*) 9698 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9699 # When not using gcc, we currently assume that we are using 9700 # Microsoft Visual C++ or Intel C++ Compiler. 9701 if test yes != "$GCC"; then 9702 with_gnu_ld=no 9703 fi 9704 ;; 9705 interix*) 9706 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9707 with_gnu_ld=yes 9708 ;; 9709 openbsd* | bitrig*) 9710 with_gnu_ld=no 9711 ;; 9712 esac 9713 9714 ld_shlibs=yes 9715 9716 # On some targets, GNU ld is compatible enough with the native linker 9717 # that we're better off using the native interface for both. 9718 lt_use_gnu_ld_interface=no 9719 if test yes = "$with_gnu_ld"; then 9720 case $host_os in 9721 aix*) 9722 # The AIX port of GNU ld has always aspired to compatibility 9723 # with the native linker. However, as the warning in the GNU ld 9724 # block says, versions before 2.19.5* couldn't really create working 9725 # shared libraries, regardless of the interface used. 9726 case `$LD -v 2>&1` in 9727 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9728 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9729 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9730 *) 9731 lt_use_gnu_ld_interface=yes 9732 ;; 9733 esac 9734 ;; 9735 *) 9736 lt_use_gnu_ld_interface=yes 9737 ;; 9738 esac 9739 fi 9740 9741 if test yes = "$lt_use_gnu_ld_interface"; then 9742 # If archive_cmds runs LD, not CC, wlarc should be empty 9743 wlarc='$wl' 9744 9745 # Set some defaults for GNU ld with shared library support. These 9746 # are reset later if shared libraries are not supported. Putting them 9747 # here allows them to be overridden if necessary. 9748 runpath_var=LD_RUN_PATH 9749 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9750 export_dynamic_flag_spec='$wl--export-dynamic' 9751 # ancient GNU ld didn't support --whole-archive et. al. 9752 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9753 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9754 else 9755 whole_archive_flag_spec= 9756 fi 9757 supports_anon_versioning=no 9758 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9759 *GNU\ gold*) supports_anon_versioning=yes ;; 9760 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9761 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9762 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9763 *\ 2.11.*) ;; # other 2.11 versions 9764 *) supports_anon_versioning=yes ;; 9765 esac 9766 9767 # See if GNU ld supports shared libraries. 9768 case $host_os in 9769 aix[3-9]*) 9770 # On AIX/PPC, the GNU linker is very broken 9771 if test ia64 != "$host_cpu"; then 9772 ld_shlibs=no 9773 cat <<_LT_EOF 1>&2 9774 9775*** Warning: the GNU linker, at least up to release 2.19, is reported 9776*** to be unable to reliably create shared libraries on AIX. 9777*** Therefore, libtool is disabling shared libraries support. If you 9778*** really care for shared libraries, you may want to install binutils 9779*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9780*** You will then need to restart the configuration process. 9781 9782_LT_EOF 9783 fi 9784 ;; 9785 9786 amigaos*) 9787 case $host_cpu in 9788 powerpc) 9789 # see comment about AmigaOS4 .so support 9790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9791 archive_expsym_cmds='' 9792 ;; 9793 m68k) 9794 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)' 9795 hardcode_libdir_flag_spec='-L$libdir' 9796 hardcode_minus_L=yes 9797 ;; 9798 esac 9799 ;; 9800 9801 beos*) 9802 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9803 allow_undefined_flag=unsupported 9804 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9805 # support --undefined. This deserves some investigation. FIXME 9806 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9807 else 9808 ld_shlibs=no 9809 fi 9810 ;; 9811 9812 cygwin* | mingw* | pw32* | cegcc*) 9813 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9814 # as there is no search path for DLLs. 9815 hardcode_libdir_flag_spec='-L$libdir' 9816 export_dynamic_flag_spec='$wl--export-all-symbols' 9817 allow_undefined_flag=unsupported 9818 always_export_symbols=no 9819 enable_shared_with_static_runtimes=yes 9820 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' 9821 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9822 9823 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9825 # If the export-symbols file already is a .def file, use it as 9826 # is; otherwise, prepend EXPORTS... 9827 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9828 cp $export_symbols $output_objdir/$soname.def; 9829 else 9830 echo EXPORTS > $output_objdir/$soname.def; 9831 cat $export_symbols >> $output_objdir/$soname.def; 9832 fi~ 9833 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9834 else 9835 ld_shlibs=no 9836 fi 9837 ;; 9838 9839 haiku*) 9840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9841 link_all_deplibs=yes 9842 ;; 9843 9844 os2*) 9845 hardcode_libdir_flag_spec='-L$libdir' 9846 hardcode_minus_L=yes 9847 allow_undefined_flag=unsupported 9848 shrext_cmds=.dll 9849 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9850 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9851 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9852 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9853 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9854 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9855 emximp -o $lib $output_objdir/$libname.def' 9856 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9857 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9858 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9859 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9860 prefix_cmds="$SED"~ 9861 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9862 prefix_cmds="$prefix_cmds -e 1d"; 9863 fi~ 9864 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9865 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9866 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9867 emximp -o $lib $output_objdir/$libname.def' 9868 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9869 enable_shared_with_static_runtimes=yes 9870 file_list_spec='@' 9871 ;; 9872 9873 interix[3-9]*) 9874 hardcode_direct=no 9875 hardcode_shlibpath_var=no 9876 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9877 export_dynamic_flag_spec='$wl-E' 9878 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9879 # Instead, shared libraries are loaded at an image base (0x10000000 by 9880 # default) and relocated if they conflict, which is a slow very memory 9881 # consuming and fragmenting process. To avoid this, we pick a random, 9882 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9883 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9884 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9885 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' 9886 ;; 9887 9888 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9889 tmp_diet=no 9890 if test linux-dietlibc = "$host_os"; then 9891 case $cc_basename in 9892 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9893 esac 9894 fi 9895 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9896 && test no = "$tmp_diet" 9897 then 9898 tmp_addflag=' $pic_flag' 9899 tmp_sharedflag='-shared' 9900 case $cc_basename,$host_cpu in 9901 pgcc*) # Portland Group C compiler 9902 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' 9903 tmp_addflag=' $pic_flag' 9904 ;; 9905 pgf77* | pgf90* | pgf95* | pgfortran*) 9906 # Portland Group f77 and f90 compilers 9907 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' 9908 tmp_addflag=' $pic_flag -Mnomain' ;; 9909 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9910 tmp_addflag=' -i_dynamic' ;; 9911 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9912 tmp_addflag=' -i_dynamic -nofor_main' ;; 9913 ifc* | ifort*) # Intel Fortran compiler 9914 tmp_addflag=' -nofor_main' ;; 9915 lf95*) # Lahey Fortran 8.1 9916 whole_archive_flag_spec= 9917 tmp_sharedflag='--shared' ;; 9918 nagfor*) # NAGFOR 5.3 9919 tmp_sharedflag='-Wl,-shared' ;; 9920 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9921 tmp_sharedflag='-qmkshrobj' 9922 tmp_addflag= ;; 9923 nvcc*) # Cuda Compiler Driver 2.2 9924 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' 9925 compiler_needs_object=yes 9926 ;; 9927 esac 9928 case `$CC -V 2>&1 | $SED 5q` in 9929 *Sun\ C*) # Sun C 5.9 9930 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' 9931 compiler_needs_object=yes 9932 tmp_sharedflag='-G' ;; 9933 *Sun\ F*) # Sun Fortran 8.3 9934 tmp_sharedflag='-G' ;; 9935 esac 9936 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9937 9938 if test yes = "$supports_anon_versioning"; then 9939 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9940 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9941 echo "local: *; };" >> $output_objdir/$libname.ver~ 9942 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9943 fi 9944 9945 case $cc_basename in 9946 tcc*) 9947 export_dynamic_flag_spec='-rdynamic' 9948 ;; 9949 xlf* | bgf* | bgxlf* | mpixlf*) 9950 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9951 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9952 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9953 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9954 if test yes = "$supports_anon_versioning"; then 9955 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9956 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9957 echo "local: *; };" >> $output_objdir/$libname.ver~ 9958 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9959 fi 9960 ;; 9961 esac 9962 else 9963 ld_shlibs=no 9964 fi 9965 ;; 9966 9967 netbsd*) 9968 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9969 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9970 wlarc= 9971 else 9972 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9973 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9974 fi 9975 ;; 9976 9977 solaris*) 9978 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9979 ld_shlibs=no 9980 cat <<_LT_EOF 1>&2 9981 9982*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9983*** create shared libraries on Solaris systems. Therefore, libtool 9984*** is disabling shared libraries support. We urge you to upgrade GNU 9985*** binutils to release 2.9.1 or newer. Another option is to modify 9986*** your PATH or compiler configuration so that the native linker is 9987*** used, and then restart. 9988 9989_LT_EOF 9990 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9991 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9992 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9993 else 9994 ld_shlibs=no 9995 fi 9996 ;; 9997 9998 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9999 case `$LD -v 2>&1` in 10000 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10001 ld_shlibs=no 10002 cat <<_LT_EOF 1>&2 10003 10004*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10005*** reliably create shared libraries on SCO systems. Therefore, libtool 10006*** is disabling shared libraries support. We urge you to upgrade GNU 10007*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10008*** your PATH or compiler configuration so that the native linker is 10009*** used, and then restart. 10010 10011_LT_EOF 10012 ;; 10013 *) 10014 # For security reasons, it is highly recommended that you always 10015 # use absolute paths for naming shared libraries, and exclude the 10016 # DT_RUNPATH tag from executables and libraries. But doing so 10017 # requires that you compile everything twice, which is a pain. 10018 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10019 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10022 else 10023 ld_shlibs=no 10024 fi 10025 ;; 10026 esac 10027 ;; 10028 10029 sunos4*) 10030 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10031 wlarc= 10032 hardcode_direct=yes 10033 hardcode_shlibpath_var=no 10034 ;; 10035 10036 *) 10037 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10038 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10039 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10040 else 10041 ld_shlibs=no 10042 fi 10043 ;; 10044 esac 10045 10046 if test no = "$ld_shlibs"; then 10047 runpath_var= 10048 hardcode_libdir_flag_spec= 10049 export_dynamic_flag_spec= 10050 whole_archive_flag_spec= 10051 fi 10052 else 10053 # PORTME fill in a description of your system's linker (not GNU ld) 10054 case $host_os in 10055 aix3*) 10056 allow_undefined_flag=unsupported 10057 always_export_symbols=yes 10058 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' 10059 # Note: this linker hardcodes the directories in LIBPATH if there 10060 # are no directories specified by -L. 10061 hardcode_minus_L=yes 10062 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10063 # Neither direct hardcoding nor static linking is supported with a 10064 # broken collect2. 10065 hardcode_direct=unsupported 10066 fi 10067 ;; 10068 10069 aix[4-9]*) 10070 if test ia64 = "$host_cpu"; then 10071 # On IA64, the linker does run time linking by default, so we don't 10072 # have to do anything special. 10073 aix_use_runtimelinking=no 10074 exp_sym_flag='-Bexport' 10075 no_entry_flag= 10076 else 10077 # If we're using GNU nm, then we don't want the "-C" option. 10078 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10079 # Without the "-l" option, or with the "-B" option, AIX nm treats 10080 # weak defined symbols like other global defined symbols, whereas 10081 # GNU nm marks them as "W". 10082 # While the 'weak' keyword is ignored in the Export File, we need 10083 # it in the Import File for the 'aix-soname' feature, so we have 10084 # to replace the "-B" option with "-P" for AIX nm. 10085 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10086 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' 10087 else 10088 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 == "L") || (\$ 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' 10089 fi 10090 aix_use_runtimelinking=no 10091 10092 # Test if we are trying to use run time linking or normal 10093 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10094 # have runtime linking enabled, and use it for executables. 10095 # For shared libraries, we enable/disable runtime linking 10096 # depending on the kind of the shared library created - 10097 # when "with_aix_soname,aix_use_runtimelinking" is: 10098 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10099 # "aix,yes" lib.so shared, rtl:yes, for executables 10100 # lib.a static archive 10101 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10102 # lib.a(lib.so.V) shared, rtl:no, for executables 10103 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10104 # lib.a(lib.so.V) shared, rtl:no 10105 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10106 # lib.a static archive 10107 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10108 for ld_flag in $LDFLAGS; do 10109 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10110 aix_use_runtimelinking=yes 10111 break 10112 fi 10113 done 10114 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10115 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10116 # so we don't have lib.a shared libs to link our executables. 10117 # We have to force runtime linking in this case. 10118 aix_use_runtimelinking=yes 10119 LDFLAGS="$LDFLAGS -Wl,-brtl" 10120 fi 10121 ;; 10122 esac 10123 10124 exp_sym_flag='-bexport' 10125 no_entry_flag='-bnoentry' 10126 fi 10127 10128 # When large executables or shared objects are built, AIX ld can 10129 # have problems creating the table of contents. If linking a library 10130 # or program results in "error TOC overflow" add -mminimal-toc to 10131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10133 10134 archive_cmds='' 10135 hardcode_direct=yes 10136 hardcode_direct_absolute=yes 10137 hardcode_libdir_separator=':' 10138 link_all_deplibs=yes 10139 file_list_spec='$wl-f,' 10140 case $with_aix_soname,$aix_use_runtimelinking in 10141 aix,*) ;; # traditional, no import file 10142 svr4,* | *,yes) # use import file 10143 # The Import File defines what to hardcode. 10144 hardcode_direct=no 10145 hardcode_direct_absolute=no 10146 ;; 10147 esac 10148 10149 if test yes = "$GCC"; then 10150 case $host_os in aix4.[012]|aix4.[012].*) 10151 # We only want to do this on AIX 4.2 and lower, the check 10152 # below for broken collect2 doesn't work under 4.3+ 10153 collect2name=`$CC -print-prog-name=collect2` 10154 if test -f "$collect2name" && 10155 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10156 then 10157 # We have reworked collect2 10158 : 10159 else 10160 # We have old collect2 10161 hardcode_direct=unsupported 10162 # It fails to find uninstalled libraries when the uninstalled 10163 # path is not listed in the libpath. Setting hardcode_minus_L 10164 # to unsupported forces relinking 10165 hardcode_minus_L=yes 10166 hardcode_libdir_flag_spec='-L$libdir' 10167 hardcode_libdir_separator= 10168 fi 10169 ;; 10170 esac 10171 shared_flag='-shared' 10172 if test yes = "$aix_use_runtimelinking"; then 10173 shared_flag="$shared_flag "'$wl-G' 10174 fi 10175 # Need to ensure runtime linking is disabled for the traditional 10176 # shared library, or the linker may eventually find shared libraries 10177 # /with/ Import File - we do not want to mix them. 10178 shared_flag_aix='-shared' 10179 shared_flag_svr4='-shared $wl-G' 10180 else 10181 # not using gcc 10182 if test ia64 = "$host_cpu"; then 10183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10184 # chokes on -Wl,-G. The following line is correct: 10185 shared_flag='-G' 10186 else 10187 if test yes = "$aix_use_runtimelinking"; then 10188 shared_flag='$wl-G' 10189 else 10190 shared_flag='$wl-bM:SRE' 10191 fi 10192 shared_flag_aix='$wl-bM:SRE' 10193 shared_flag_svr4='$wl-G' 10194 fi 10195 fi 10196 10197 export_dynamic_flag_spec='$wl-bexpall' 10198 # It seems that -bexpall does not export symbols beginning with 10199 # underscore (_), so it is better to generate a list of symbols to export. 10200 always_export_symbols=yes 10201 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10202 # Warning - without using the other runtime loading flags (-brtl), 10203 # -berok will link without error, but may produce a broken library. 10204 allow_undefined_flag='-berok' 10205 # Determine the default libpath from the value encoded in an 10206 # empty executable. 10207 if test set = "${lt_cv_aix_libpath+set}"; then 10208 aix_libpath=$lt_cv_aix_libpath 10209else 10210 if test ${lt_cv_aix_libpath_+y} 10211then : 10212 printf %s "(cached) " >&6 10213else $as_nop 10214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10215/* end confdefs.h. */ 10216 10217int 10218main (void) 10219{ 10220 10221 ; 10222 return 0; 10223} 10224_ACEOF 10225if ac_fn_c_try_link "$LINENO" 10226then : 10227 10228 lt_aix_libpath_sed=' 10229 /Import File Strings/,/^$/ { 10230 /^0/ { 10231 s/^0 *\([^ ]*\) *$/\1/ 10232 p 10233 } 10234 }' 10235 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10236 # Check for a 64-bit object if we didn't find anything. 10237 if test -z "$lt_cv_aix_libpath_"; then 10238 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10239 fi 10240fi 10241rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10242 conftest$ac_exeext conftest.$ac_ext 10243 if test -z "$lt_cv_aix_libpath_"; then 10244 lt_cv_aix_libpath_=/usr/lib:/lib 10245 fi 10246 10247fi 10248 10249 aix_libpath=$lt_cv_aix_libpath_ 10250fi 10251 10252 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10253 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 10254 else 10255 if test ia64 = "$host_cpu"; then 10256 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10257 allow_undefined_flag="-z nodefs" 10258 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" 10259 else 10260 # Determine the default libpath from the value encoded in an 10261 # empty executable. 10262 if test set = "${lt_cv_aix_libpath+set}"; then 10263 aix_libpath=$lt_cv_aix_libpath 10264else 10265 if test ${lt_cv_aix_libpath_+y} 10266then : 10267 printf %s "(cached) " >&6 10268else $as_nop 10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10270/* end confdefs.h. */ 10271 10272int 10273main (void) 10274{ 10275 10276 ; 10277 return 0; 10278} 10279_ACEOF 10280if ac_fn_c_try_link "$LINENO" 10281then : 10282 10283 lt_aix_libpath_sed=' 10284 /Import File Strings/,/^$/ { 10285 /^0/ { 10286 s/^0 *\([^ ]*\) *$/\1/ 10287 p 10288 } 10289 }' 10290 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10291 # Check for a 64-bit object if we didn't find anything. 10292 if test -z "$lt_cv_aix_libpath_"; then 10293 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10294 fi 10295fi 10296rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10297 conftest$ac_exeext conftest.$ac_ext 10298 if test -z "$lt_cv_aix_libpath_"; then 10299 lt_cv_aix_libpath_=/usr/lib:/lib 10300 fi 10301 10302fi 10303 10304 aix_libpath=$lt_cv_aix_libpath_ 10305fi 10306 10307 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10308 # Warning - without using the other run time loading flags, 10309 # -berok will link without error, but may produce a broken library. 10310 no_undefined_flag=' $wl-bernotok' 10311 allow_undefined_flag=' $wl-berok' 10312 if test yes = "$with_gnu_ld"; then 10313 # We only use this code for GNU lds that support --whole-archive. 10314 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10315 else 10316 # Exported symbols can be pulled into shared objects from archives 10317 whole_archive_flag_spec='$convenience' 10318 fi 10319 archive_cmds_need_lc=yes 10320 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10321 # -brtl affects multiple linker settings, -berok does not and is overridden later 10322 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10323 if test svr4 != "$with_aix_soname"; then 10324 # This is similar to how AIX traditionally builds its shared libraries. 10325 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' 10326 fi 10327 if test aix != "$with_aix_soname"; then 10328 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' 10329 else 10330 # used by -dlpreopen to get the symbols 10331 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10332 fi 10333 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10334 fi 10335 fi 10336 ;; 10337 10338 amigaos*) 10339 case $host_cpu in 10340 powerpc) 10341 # see comment about AmigaOS4 .so support 10342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10343 archive_expsym_cmds='' 10344 ;; 10345 m68k) 10346 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)' 10347 hardcode_libdir_flag_spec='-L$libdir' 10348 hardcode_minus_L=yes 10349 ;; 10350 esac 10351 ;; 10352 10353 bsdi[45]*) 10354 export_dynamic_flag_spec=-rdynamic 10355 ;; 10356 10357 cygwin* | mingw* | pw32* | cegcc*) 10358 # When not using gcc, we currently assume that we are using 10359 # Microsoft Visual C++ or Intel C++ Compiler. 10360 # hardcode_libdir_flag_spec is actually meaningless, as there is 10361 # no search path for DLLs. 10362 case $cc_basename in 10363 cl* | icl*) 10364 # Native MSVC or ICC 10365 hardcode_libdir_flag_spec=' ' 10366 allow_undefined_flag=unsupported 10367 always_export_symbols=yes 10368 file_list_spec='@' 10369 # Tell ltmain to make .lib files, not .a files. 10370 libext=lib 10371 # Tell ltmain to make .dll files, not .so files. 10372 shrext_cmds=.dll 10373 # FIXME: Setting linknames here is a bad hack. 10374 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10375 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10376 cp "$export_symbols" "$output_objdir/$soname.def"; 10377 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10378 else 10379 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10380 fi~ 10381 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10382 linknames=' 10383 # The linker will not automatically build a static lib if we build a DLL. 10384 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10385 enable_shared_with_static_runtimes=yes 10386 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10387 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10388 # Don't use ranlib 10389 old_postinstall_cmds='chmod 644 $oldlib' 10390 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10391 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10392 case $lt_outputfile in 10393 *.exe|*.EXE) ;; 10394 *) 10395 lt_outputfile=$lt_outputfile.exe 10396 lt_tool_outputfile=$lt_tool_outputfile.exe 10397 ;; 10398 esac~ 10399 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10400 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10401 $RM "$lt_outputfile.manifest"; 10402 fi' 10403 ;; 10404 *) 10405 # Assume MSVC and ICC wrapper 10406 hardcode_libdir_flag_spec=' ' 10407 allow_undefined_flag=unsupported 10408 # Tell ltmain to make .lib files, not .a files. 10409 libext=lib 10410 # Tell ltmain to make .dll files, not .so files. 10411 shrext_cmds=.dll 10412 # FIXME: Setting linknames here is a bad hack. 10413 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10414 # The linker will automatically build a .lib file if we build a DLL. 10415 old_archive_from_new_cmds='true' 10416 # FIXME: Should let the user specify the lib program. 10417 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10418 enable_shared_with_static_runtimes=yes 10419 ;; 10420 esac 10421 ;; 10422 10423 darwin* | rhapsody*) 10424 10425 10426 archive_cmds_need_lc=no 10427 hardcode_direct=no 10428 hardcode_automatic=yes 10429 hardcode_shlibpath_var=unsupported 10430 if test yes = "$lt_cv_ld_force_load"; then 10431 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\"`' 10432 10433 else 10434 whole_archive_flag_spec='' 10435 fi 10436 link_all_deplibs=yes 10437 allow_undefined_flag=$_lt_dar_allow_undefined 10438 case $cc_basename in 10439 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10440 *) _lt_dar_can_shared=$GCC ;; 10441 esac 10442 if test yes = "$_lt_dar_can_shared"; then 10443 output_verbose_link_cmd=func_echo_all 10444 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10445 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10446 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" 10447 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" 10448 10449 else 10450 ld_shlibs=no 10451 fi 10452 10453 ;; 10454 10455 dgux*) 10456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10457 hardcode_libdir_flag_spec='-L$libdir' 10458 hardcode_shlibpath_var=no 10459 ;; 10460 10461 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10462 # support. Future versions do this automatically, but an explicit c++rt0.o 10463 # does not break anything, and helps significantly (at the cost of a little 10464 # extra space). 10465 freebsd2.2*) 10466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10467 hardcode_libdir_flag_spec='-R$libdir' 10468 hardcode_direct=yes 10469 hardcode_shlibpath_var=no 10470 ;; 10471 10472 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10473 freebsd2.*) 10474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10475 hardcode_direct=yes 10476 hardcode_minus_L=yes 10477 hardcode_shlibpath_var=no 10478 ;; 10479 10480 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10481 freebsd* | dragonfly* | midnightbsd*) 10482 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10483 hardcode_libdir_flag_spec='-R$libdir' 10484 hardcode_direct=yes 10485 hardcode_shlibpath_var=no 10486 ;; 10487 10488 hpux9*) 10489 if test yes = "$GCC"; then 10490 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' 10491 else 10492 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' 10493 fi 10494 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10495 hardcode_libdir_separator=: 10496 hardcode_direct=yes 10497 10498 # hardcode_minus_L: Not really in the search PATH, 10499 # but as the default location of the library. 10500 hardcode_minus_L=yes 10501 export_dynamic_flag_spec='$wl-E' 10502 ;; 10503 10504 hpux10*) 10505 if test yes,no = "$GCC,$with_gnu_ld"; then 10506 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10507 else 10508 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10509 fi 10510 if test no = "$with_gnu_ld"; then 10511 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10512 hardcode_libdir_separator=: 10513 hardcode_direct=yes 10514 hardcode_direct_absolute=yes 10515 export_dynamic_flag_spec='$wl-E' 10516 # hardcode_minus_L: Not really in the search PATH, 10517 # but as the default location of the library. 10518 hardcode_minus_L=yes 10519 fi 10520 ;; 10521 10522 hpux11*) 10523 if test yes,no = "$GCC,$with_gnu_ld"; then 10524 case $host_cpu in 10525 hppa*64*) 10526 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10527 ;; 10528 ia64*) 10529 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10530 ;; 10531 *) 10532 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10533 ;; 10534 esac 10535 else 10536 case $host_cpu in 10537 hppa*64*) 10538 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10539 ;; 10540 ia64*) 10541 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10542 ;; 10543 *) 10544 10545 # Older versions of the 11.00 compiler do not understand -b yet 10546 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10548printf %s "checking if $CC understands -b... " >&6; } 10549if test ${lt_cv_prog_compiler__b+y} 10550then : 10551 printf %s "(cached) " >&6 10552else $as_nop 10553 lt_cv_prog_compiler__b=no 10554 save_LDFLAGS=$LDFLAGS 10555 LDFLAGS="$LDFLAGS -b" 10556 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10557 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10558 # The linker can only warn and ignore the option if not recognized 10559 # So say no if there are warnings 10560 if test -s conftest.err; then 10561 # Append any errors to the config.log. 10562 cat conftest.err 1>&5 10563 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10565 if diff conftest.exp conftest.er2 >/dev/null; then 10566 lt_cv_prog_compiler__b=yes 10567 fi 10568 else 10569 lt_cv_prog_compiler__b=yes 10570 fi 10571 fi 10572 $RM -r conftest* 10573 LDFLAGS=$save_LDFLAGS 10574 10575fi 10576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10577printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10578 10579if test yes = "$lt_cv_prog_compiler__b"; then 10580 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10581else 10582 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10583fi 10584 10585 ;; 10586 esac 10587 fi 10588 if test no = "$with_gnu_ld"; then 10589 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10590 hardcode_libdir_separator=: 10591 10592 case $host_cpu in 10593 hppa*64*|ia64*) 10594 hardcode_direct=no 10595 hardcode_shlibpath_var=no 10596 ;; 10597 *) 10598 hardcode_direct=yes 10599 hardcode_direct_absolute=yes 10600 export_dynamic_flag_spec='$wl-E' 10601 10602 # hardcode_minus_L: Not really in the search PATH, 10603 # but as the default location of the library. 10604 hardcode_minus_L=yes 10605 ;; 10606 esac 10607 fi 10608 ;; 10609 10610 irix5* | irix6* | nonstopux*) 10611 if test yes = "$GCC"; then 10612 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' 10613 # Try to use the -exported_symbol ld option, if it does not 10614 # work, assume that -exports_file does not work either and 10615 # implicitly export all symbols. 10616 # This should be the same for all languages, so no per-tag cache variable. 10617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10618printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10619if test ${lt_cv_irix_exported_symbol+y} 10620then : 10621 printf %s "(cached) " >&6 10622else $as_nop 10623 save_LDFLAGS=$LDFLAGS 10624 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10626/* end confdefs.h. */ 10627int foo (void) { return 0; } 10628_ACEOF 10629if ac_fn_c_try_link "$LINENO" 10630then : 10631 lt_cv_irix_exported_symbol=yes 10632else $as_nop 10633 lt_cv_irix_exported_symbol=no 10634fi 10635rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10636 conftest$ac_exeext conftest.$ac_ext 10637 LDFLAGS=$save_LDFLAGS 10638fi 10639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10640printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10641 if test yes = "$lt_cv_irix_exported_symbol"; then 10642 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' 10643 fi 10644 else 10645 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' 10646 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' 10647 fi 10648 archive_cmds_need_lc='no' 10649 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10650 hardcode_libdir_separator=: 10651 inherit_rpath=yes 10652 link_all_deplibs=yes 10653 ;; 10654 10655 linux*) 10656 case $cc_basename in 10657 tcc*) 10658 # Fabrice Bellard et al's Tiny C Compiler 10659 ld_shlibs=yes 10660 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10661 ;; 10662 esac 10663 ;; 10664 10665 netbsd*) 10666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10668 else 10669 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10670 fi 10671 hardcode_libdir_flag_spec='-R$libdir' 10672 hardcode_direct=yes 10673 hardcode_shlibpath_var=no 10674 ;; 10675 10676 newsos6) 10677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10678 hardcode_direct=yes 10679 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10680 hardcode_libdir_separator=: 10681 hardcode_shlibpath_var=no 10682 ;; 10683 10684 *nto* | *qnx*) 10685 ;; 10686 10687 openbsd* | bitrig*) 10688 if test -f /usr/libexec/ld.so; then 10689 hardcode_direct=yes 10690 hardcode_shlibpath_var=no 10691 hardcode_direct_absolute=yes 10692 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10693 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10694 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10695 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10696 export_dynamic_flag_spec='$wl-E' 10697 else 10698 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10699 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10700 fi 10701 else 10702 ld_shlibs=no 10703 fi 10704 ;; 10705 10706 os2*) 10707 hardcode_libdir_flag_spec='-L$libdir' 10708 hardcode_minus_L=yes 10709 allow_undefined_flag=unsupported 10710 shrext_cmds=.dll 10711 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10712 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10713 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10714 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10715 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10716 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10717 emximp -o $lib $output_objdir/$libname.def' 10718 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10719 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10720 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10721 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10722 prefix_cmds="$SED"~ 10723 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10724 prefix_cmds="$prefix_cmds -e 1d"; 10725 fi~ 10726 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10727 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10728 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10729 emximp -o $lib $output_objdir/$libname.def' 10730 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10731 enable_shared_with_static_runtimes=yes 10732 file_list_spec='@' 10733 ;; 10734 10735 osf3*) 10736 if test yes = "$GCC"; then 10737 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10738 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' 10739 else 10740 allow_undefined_flag=' -expect_unresolved \*' 10741 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' 10742 fi 10743 archive_cmds_need_lc='no' 10744 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10745 hardcode_libdir_separator=: 10746 ;; 10747 10748 osf4* | osf5*) # as osf3* with the addition of -msym flag 10749 if test yes = "$GCC"; then 10750 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10751 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' 10752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10753 else 10754 allow_undefined_flag=' -expect_unresolved \*' 10755 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' 10756 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~ 10757 $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' 10758 10759 # Both c and cxx compiler support -rpath directly 10760 hardcode_libdir_flag_spec='-rpath $libdir' 10761 fi 10762 archive_cmds_need_lc='no' 10763 hardcode_libdir_separator=: 10764 ;; 10765 10766 solaris*) 10767 no_undefined_flag=' -z defs' 10768 if test yes = "$GCC"; then 10769 wlarc='$wl' 10770 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10772 $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' 10773 else 10774 case `$CC -V 2>&1` in 10775 *"Compilers 5.0"*) 10776 wlarc='' 10777 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10778 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10779 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10780 ;; 10781 *) 10782 wlarc='$wl' 10783 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10785 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10786 ;; 10787 esac 10788 fi 10789 hardcode_libdir_flag_spec='-R$libdir' 10790 hardcode_shlibpath_var=no 10791 case $host_os in 10792 solaris2.[0-5] | solaris2.[0-5].*) ;; 10793 *) 10794 # The compiler driver will combine and reorder linker options, 10795 # but understands '-z linker_flag'. GCC discards it without '$wl', 10796 # but is careful enough not to reorder. 10797 # Supported since Solaris 2.6 (maybe 2.5.1?) 10798 if test yes = "$GCC"; then 10799 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10800 else 10801 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10802 fi 10803 ;; 10804 esac 10805 link_all_deplibs=yes 10806 ;; 10807 10808 sunos4*) 10809 if test sequent = "$host_vendor"; then 10810 # Use $CC to link under sequent, because it throws in some extra .o 10811 # files that make .init and .fini sections work. 10812 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10813 else 10814 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10815 fi 10816 hardcode_libdir_flag_spec='-L$libdir' 10817 hardcode_direct=yes 10818 hardcode_minus_L=yes 10819 hardcode_shlibpath_var=no 10820 ;; 10821 10822 sysv4) 10823 case $host_vendor in 10824 sni) 10825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10826 hardcode_direct=yes # is this really true??? 10827 ;; 10828 siemens) 10829 ## LD is ld it makes a PLAMLIB 10830 ## CC just makes a GrossModule. 10831 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10832 reload_cmds='$CC -r -o $output$reload_objs' 10833 hardcode_direct=no 10834 ;; 10835 motorola) 10836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10837 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10838 ;; 10839 esac 10840 runpath_var='LD_RUN_PATH' 10841 hardcode_shlibpath_var=no 10842 ;; 10843 10844 sysv4.3*) 10845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10846 hardcode_shlibpath_var=no 10847 export_dynamic_flag_spec='-Bexport' 10848 ;; 10849 10850 sysv4*MP*) 10851 if test -d /usr/nec; then 10852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10853 hardcode_shlibpath_var=no 10854 runpath_var=LD_RUN_PATH 10855 hardcode_runpath_var=yes 10856 ld_shlibs=yes 10857 fi 10858 ;; 10859 10860 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10861 no_undefined_flag='$wl-z,text' 10862 archive_cmds_need_lc=no 10863 hardcode_shlibpath_var=no 10864 runpath_var='LD_RUN_PATH' 10865 10866 if test yes = "$GCC"; then 10867 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10868 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10869 else 10870 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10871 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10872 fi 10873 ;; 10874 10875 sysv5* | sco3.2v5* | sco5v6*) 10876 # Note: We CANNOT use -z defs as we might desire, because we do not 10877 # link with -lc, and that would cause any symbols used from libc to 10878 # always be unresolved, which means just about no library would 10879 # ever link correctly. If we're not using GNU ld we use -z text 10880 # though, which does catch some bad symbols but isn't as heavy-handed 10881 # as -z defs. 10882 no_undefined_flag='$wl-z,text' 10883 allow_undefined_flag='$wl-z,nodefs' 10884 archive_cmds_need_lc=no 10885 hardcode_shlibpath_var=no 10886 hardcode_libdir_flag_spec='$wl-R,$libdir' 10887 hardcode_libdir_separator=':' 10888 link_all_deplibs=yes 10889 export_dynamic_flag_spec='$wl-Bexport' 10890 runpath_var='LD_RUN_PATH' 10891 10892 if test yes = "$GCC"; then 10893 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10894 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10895 else 10896 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10897 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10898 fi 10899 ;; 10900 10901 uts4*) 10902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10903 hardcode_libdir_flag_spec='-L$libdir' 10904 hardcode_shlibpath_var=no 10905 ;; 10906 10907 *) 10908 ld_shlibs=no 10909 ;; 10910 esac 10911 10912 if test sni = "$host_vendor"; then 10913 case $host in 10914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10915 export_dynamic_flag_spec='$wl-Blargedynsym' 10916 ;; 10917 esac 10918 fi 10919 fi 10920 10921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10922printf "%s\n" "$ld_shlibs" >&6; } 10923test no = "$ld_shlibs" && can_build_shared=no 10924 10925with_gnu_ld=$with_gnu_ld 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941# 10942# Do we need to explicitly link libc? 10943# 10944case "x$archive_cmds_need_lc" in 10945x|xyes) 10946 # Assume -lc should be added 10947 archive_cmds_need_lc=yes 10948 10949 if test yes,yes = "$GCC,$enable_shared"; then 10950 case $archive_cmds in 10951 *'~'*) 10952 # FIXME: we may have to deal with multi-command sequences. 10953 ;; 10954 '$CC '*) 10955 # Test whether the compiler implicitly links with -lc since on some 10956 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10957 # to ld, don't add -lc before -lgcc. 10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10959printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10960if test ${lt_cv_archive_cmds_need_lc+y} 10961then : 10962 printf %s "(cached) " >&6 10963else $as_nop 10964 $RM conftest* 10965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10966 10967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10968 (eval $ac_compile) 2>&5 10969 ac_status=$? 10970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10971 test $ac_status = 0; } 2>conftest.err; then 10972 soname=conftest 10973 lib=conftest 10974 libobjs=conftest.$ac_objext 10975 deplibs= 10976 wl=$lt_prog_compiler_wl 10977 pic_flag=$lt_prog_compiler_pic 10978 compiler_flags=-v 10979 linker_flags=-v 10980 verstring= 10981 output_objdir=. 10982 libname=conftest 10983 lt_save_allow_undefined_flag=$allow_undefined_flag 10984 allow_undefined_flag= 10985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10986 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10987 ac_status=$? 10988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10989 test $ac_status = 0; } 10990 then 10991 lt_cv_archive_cmds_need_lc=no 10992 else 10993 lt_cv_archive_cmds_need_lc=yes 10994 fi 10995 allow_undefined_flag=$lt_save_allow_undefined_flag 10996 else 10997 cat conftest.err 1>&5 10998 fi 10999 $RM conftest* 11000 11001fi 11002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11003printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11004 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11005 ;; 11006 esac 11007 fi 11008 ;; 11009esac 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 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11163printf %s "checking dynamic linker characteristics... " >&6; } 11164 11165if test yes = "$GCC"; then 11166 case $host_os in 11167 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11168 *) lt_awk_arg='/^libraries:/' ;; 11169 esac 11170 case $host_os in 11171 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11172 *) lt_sed_strip_eq='s|=/|/|g' ;; 11173 esac 11174 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11175 case $lt_search_path_spec in 11176 *\;*) 11177 # if the path contains ";" then we assume it to be the separator 11178 # otherwise default to the standard path separator (i.e. ":") - it is 11179 # assumed that no part of a normal pathname contains ";" but that should 11180 # okay in the real world where ";" in dirpaths is itself problematic. 11181 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11182 ;; 11183 *) 11184 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11185 ;; 11186 esac 11187 # Ok, now we have the path, separated by spaces, we can step through it 11188 # and add multilib dir if necessary... 11189 lt_tmp_lt_search_path_spec= 11190 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11191 # ...but if some path component already ends with the multilib dir we assume 11192 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11193 case "$lt_multi_os_dir; $lt_search_path_spec " in 11194 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11195 lt_multi_os_dir= 11196 ;; 11197 esac 11198 for lt_sys_path in $lt_search_path_spec; do 11199 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11200 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11201 elif test -n "$lt_multi_os_dir"; then 11202 test -d "$lt_sys_path" && \ 11203 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11204 fi 11205 done 11206 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11207BEGIN {RS = " "; FS = "/|\n";} { 11208 lt_foo = ""; 11209 lt_count = 0; 11210 for (lt_i = NF; lt_i > 0; lt_i--) { 11211 if ($lt_i != "" && $lt_i != ".") { 11212 if ($lt_i == "..") { 11213 lt_count++; 11214 } else { 11215 if (lt_count == 0) { 11216 lt_foo = "/" $lt_i lt_foo; 11217 } else { 11218 lt_count--; 11219 } 11220 } 11221 } 11222 } 11223 if (lt_foo != "") { lt_freq[lt_foo]++; } 11224 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11225}'` 11226 # AWK program above erroneously prepends '/' to C:/dos/paths 11227 # for these hosts. 11228 case $host_os in 11229 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11230 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11231 esac 11232 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11233else 11234 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11235fi 11236library_names_spec= 11237libname_spec='lib$name' 11238soname_spec= 11239shrext_cmds=.so 11240postinstall_cmds= 11241postuninstall_cmds= 11242finish_cmds= 11243finish_eval= 11244shlibpath_var= 11245shlibpath_overrides_runpath=unknown 11246version_type=none 11247dynamic_linker="$host_os ld.so" 11248sys_lib_dlsearch_path_spec="/lib /usr/lib" 11249need_lib_prefix=unknown 11250hardcode_into_libs=no 11251 11252# when you set need_version to no, make sure it does not cause -set_version 11253# flags to be left without arguments 11254need_version=unknown 11255 11256 11257 11258case $host_os in 11259aix3*) 11260 version_type=linux # correct to gnu/linux during the next big refactor 11261 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11262 shlibpath_var=LIBPATH 11263 11264 # AIX 3 has no versioning support, so we append a major version to the name. 11265 soname_spec='$libname$release$shared_ext$major' 11266 ;; 11267 11268aix[4-9]*) 11269 version_type=linux # correct to gnu/linux during the next big refactor 11270 need_lib_prefix=no 11271 need_version=no 11272 hardcode_into_libs=yes 11273 if test ia64 = "$host_cpu"; then 11274 # AIX 5 supports IA64 11275 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11276 shlibpath_var=LD_LIBRARY_PATH 11277 else 11278 # With GCC up to 2.95.x, collect2 would create an import file 11279 # for dependence libraries. The import file would start with 11280 # the line '#! .'. This would cause the generated library to 11281 # depend on '.', always an invalid library. This was fixed in 11282 # development snapshots of GCC prior to 3.0. 11283 case $host_os in 11284 aix4 | aix4.[01] | aix4.[01].*) 11285 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11286 echo ' yes ' 11287 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11288 : 11289 else 11290 can_build_shared=no 11291 fi 11292 ;; 11293 esac 11294 # Using Import Files as archive members, it is possible to support 11295 # filename-based versioning of shared library archives on AIX. While 11296 # this would work for both with and without runtime linking, it will 11297 # prevent static linking of such archives. So we do filename-based 11298 # shared library versioning with .so extension only, which is used 11299 # when both runtime linking and shared linking is enabled. 11300 # Unfortunately, runtime linking may impact performance, so we do 11301 # not want this to be the default eventually. Also, we use the 11302 # versioned .so libs for executables only if there is the -brtl 11303 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11304 # To allow for filename-based versioning support, we need to create 11305 # libNAME.so.V as an archive file, containing: 11306 # *) an Import File, referring to the versioned filename of the 11307 # archive as well as the shared archive member, telling the 11308 # bitwidth (32 or 64) of that shared object, and providing the 11309 # list of exported symbols of that shared object, eventually 11310 # decorated with the 'weak' keyword 11311 # *) the shared object with the F_LOADONLY flag set, to really avoid 11312 # it being seen by the linker. 11313 # At run time we better use the real file rather than another symlink, 11314 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11315 11316 case $with_aix_soname,$aix_use_runtimelinking in 11317 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11318 # soname into executable. Probably we can add versioning support to 11319 # collect2, so additional links can be useful in future. 11320 aix,yes) # traditional libtool 11321 dynamic_linker='AIX unversionable lib.so' 11322 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11323 # instead of lib<name>.a to let people know that these are not 11324 # typical AIX shared libraries. 11325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11326 ;; 11327 aix,no) # traditional AIX only 11328 dynamic_linker='AIX lib.a(lib.so.V)' 11329 # We preserve .a as extension for shared libraries through AIX4.2 11330 # and later when we are not doing run time linking. 11331 library_names_spec='$libname$release.a $libname.a' 11332 soname_spec='$libname$release$shared_ext$major' 11333 ;; 11334 svr4,*) # full svr4 only 11335 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11336 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11337 # We do not specify a path in Import Files, so LIBPATH fires. 11338 shlibpath_overrides_runpath=yes 11339 ;; 11340 *,yes) # both, prefer svr4 11341 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11342 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11343 # unpreferred sharedlib libNAME.a needs extra handling 11344 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"' 11345 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"' 11346 # We do not specify a path in Import Files, so LIBPATH fires. 11347 shlibpath_overrides_runpath=yes 11348 ;; 11349 *,no) # both, prefer aix 11350 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11351 library_names_spec='$libname$release.a $libname.a' 11352 soname_spec='$libname$release$shared_ext$major' 11353 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11354 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)' 11355 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"' 11356 ;; 11357 esac 11358 shlibpath_var=LIBPATH 11359 fi 11360 ;; 11361 11362amigaos*) 11363 case $host_cpu in 11364 powerpc) 11365 # Since July 2007 AmigaOS4 officially supports .so libraries. 11366 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11368 ;; 11369 m68k) 11370 library_names_spec='$libname.ixlibrary $libname.a' 11371 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11372 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' 11373 ;; 11374 esac 11375 ;; 11376 11377beos*) 11378 library_names_spec='$libname$shared_ext' 11379 dynamic_linker="$host_os ld.so" 11380 shlibpath_var=LIBRARY_PATH 11381 ;; 11382 11383bsdi[45]*) 11384 version_type=linux # correct to gnu/linux during the next big refactor 11385 need_version=no 11386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11387 soname_spec='$libname$release$shared_ext$major' 11388 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11389 shlibpath_var=LD_LIBRARY_PATH 11390 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11391 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11392 # the default ld.so.conf also contains /usr/contrib/lib and 11393 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11394 # libtool to hard-code these into programs 11395 ;; 11396 11397cygwin* | mingw* | pw32* | cegcc*) 11398 version_type=windows 11399 shrext_cmds=.dll 11400 need_version=no 11401 need_lib_prefix=no 11402 11403 case $GCC,$cc_basename in 11404 yes,*) 11405 # gcc 11406 library_names_spec='$libname.dll.a' 11407 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11408 postinstall_cmds='base_file=`basename \$file`~ 11409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11410 dldir=$destdir/`dirname \$dlpath`~ 11411 test -d \$dldir || mkdir -p \$dldir~ 11412 $install_prog $dir/$dlname \$dldir/$dlname~ 11413 chmod a+x \$dldir/$dlname~ 11414 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11415 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11416 fi' 11417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11418 dlpath=$dir/\$dldll~ 11419 $RM \$dlpath' 11420 shlibpath_overrides_runpath=yes 11421 11422 case $host_os in 11423 cygwin*) 11424 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11425 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11426 11427 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11428 ;; 11429 mingw* | cegcc*) 11430 # MinGW DLLs use traditional 'lib' prefix 11431 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11432 ;; 11433 pw32*) 11434 # pw32 DLLs use 'pw' prefix rather than 'lib' 11435 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11436 ;; 11437 esac 11438 dynamic_linker='Win32 ld.exe' 11439 ;; 11440 11441 *,cl* | *,icl*) 11442 # Native MSVC or ICC 11443 libname_spec='$name' 11444 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11445 library_names_spec='$libname.dll.lib' 11446 11447 case $build_os in 11448 mingw*) 11449 sys_lib_search_path_spec= 11450 lt_save_ifs=$IFS 11451 IFS=';' 11452 for lt_path in $LIB 11453 do 11454 IFS=$lt_save_ifs 11455 # Let DOS variable expansion print the short 8.3 style file name. 11456 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11457 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11458 done 11459 IFS=$lt_save_ifs 11460 # Convert to MSYS style. 11461 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11462 ;; 11463 cygwin*) 11464 # Convert to unix form, then to dos form, then back to unix form 11465 # but this time dos style (no spaces!) so that the unix form looks 11466 # like /cygdrive/c/PROGRA~1:/cygdr... 11467 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11468 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11469 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11470 ;; 11471 *) 11472 sys_lib_search_path_spec=$LIB 11473 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11474 # It is most probably a Windows format PATH. 11475 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11476 else 11477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11478 fi 11479 # FIXME: find the short name or the path components, as spaces are 11480 # common. (e.g. "Program Files" -> "PROGRA~1") 11481 ;; 11482 esac 11483 11484 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11485 postinstall_cmds='base_file=`basename \$file`~ 11486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11487 dldir=$destdir/`dirname \$dlpath`~ 11488 test -d \$dldir || mkdir -p \$dldir~ 11489 $install_prog $dir/$dlname \$dldir/$dlname' 11490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11491 dlpath=$dir/\$dldll~ 11492 $RM \$dlpath' 11493 shlibpath_overrides_runpath=yes 11494 dynamic_linker='Win32 link.exe' 11495 ;; 11496 11497 *) 11498 # Assume MSVC and ICC wrapper 11499 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11500 dynamic_linker='Win32 ld.exe' 11501 ;; 11502 esac 11503 # FIXME: first we should search . and the directory the executable is in 11504 shlibpath_var=PATH 11505 ;; 11506 11507darwin* | rhapsody*) 11508 dynamic_linker="$host_os dyld" 11509 version_type=darwin 11510 need_lib_prefix=no 11511 need_version=no 11512 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11513 soname_spec='$libname$release$major$shared_ext' 11514 shlibpath_overrides_runpath=yes 11515 shlibpath_var=DYLD_LIBRARY_PATH 11516 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11517 11518 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11519 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11520 ;; 11521 11522dgux*) 11523 version_type=linux # correct to gnu/linux during the next big refactor 11524 need_lib_prefix=no 11525 need_version=no 11526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11527 soname_spec='$libname$release$shared_ext$major' 11528 shlibpath_var=LD_LIBRARY_PATH 11529 ;; 11530 11531freebsd* | dragonfly* | midnightbsd*) 11532 # DragonFly does not have aout. When/if they implement a new 11533 # versioning mechanism, adjust this. 11534 if test -x /usr/bin/objformat; then 11535 objformat=`/usr/bin/objformat` 11536 else 11537 case $host_os in 11538 freebsd[23].*) objformat=aout ;; 11539 *) objformat=elf ;; 11540 esac 11541 fi 11542 version_type=freebsd-$objformat 11543 case $version_type in 11544 freebsd-elf*) 11545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11546 soname_spec='$libname$release$shared_ext$major' 11547 need_version=no 11548 need_lib_prefix=no 11549 ;; 11550 freebsd-*) 11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11552 need_version=yes 11553 ;; 11554 esac 11555 shlibpath_var=LD_LIBRARY_PATH 11556 case $host_os in 11557 freebsd2.*) 11558 shlibpath_overrides_runpath=yes 11559 ;; 11560 freebsd3.[01]* | freebsdelf3.[01]*) 11561 shlibpath_overrides_runpath=yes 11562 hardcode_into_libs=yes 11563 ;; 11564 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11565 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11566 shlibpath_overrides_runpath=no 11567 hardcode_into_libs=yes 11568 ;; 11569 *) # from 4.6 on, and DragonFly 11570 shlibpath_overrides_runpath=yes 11571 hardcode_into_libs=yes 11572 ;; 11573 esac 11574 ;; 11575 11576haiku*) 11577 version_type=linux # correct to gnu/linux during the next big refactor 11578 need_lib_prefix=no 11579 need_version=no 11580 dynamic_linker="$host_os runtime_loader" 11581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11582 soname_spec='$libname$release$shared_ext$major' 11583 shlibpath_var=LIBRARY_PATH 11584 shlibpath_overrides_runpath=no 11585 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11586 hardcode_into_libs=yes 11587 ;; 11588 11589hpux9* | hpux10* | hpux11*) 11590 # Give a soname corresponding to the major version so that dld.sl refuses to 11591 # link against other versions. 11592 version_type=sunos 11593 need_lib_prefix=no 11594 need_version=no 11595 case $host_cpu in 11596 ia64*) 11597 shrext_cmds='.so' 11598 hardcode_into_libs=yes 11599 dynamic_linker="$host_os dld.so" 11600 shlibpath_var=LD_LIBRARY_PATH 11601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11603 soname_spec='$libname$release$shared_ext$major' 11604 if test 32 = "$HPUX_IA64_MODE"; then 11605 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11606 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11607 else 11608 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11609 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11610 fi 11611 ;; 11612 hppa*64*) 11613 shrext_cmds='.sl' 11614 hardcode_into_libs=yes 11615 dynamic_linker="$host_os dld.sl" 11616 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11619 soname_spec='$libname$release$shared_ext$major' 11620 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11622 ;; 11623 *) 11624 shrext_cmds='.sl' 11625 dynamic_linker="$host_os dld.sl" 11626 shlibpath_var=SHLIB_PATH 11627 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11629 soname_spec='$libname$release$shared_ext$major' 11630 ;; 11631 esac 11632 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11633 postinstall_cmds='chmod 555 $lib' 11634 # or fails outright, so override atomically: 11635 install_override_mode=555 11636 ;; 11637 11638interix[3-9]*) 11639 version_type=linux # correct to gnu/linux during the next big refactor 11640 need_lib_prefix=no 11641 need_version=no 11642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11643 soname_spec='$libname$release$shared_ext$major' 11644 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11645 shlibpath_var=LD_LIBRARY_PATH 11646 shlibpath_overrides_runpath=no 11647 hardcode_into_libs=yes 11648 ;; 11649 11650irix5* | irix6* | nonstopux*) 11651 case $host_os in 11652 nonstopux*) version_type=nonstopux ;; 11653 *) 11654 if test yes = "$lt_cv_prog_gnu_ld"; then 11655 version_type=linux # correct to gnu/linux during the next big refactor 11656 else 11657 version_type=irix 11658 fi ;; 11659 esac 11660 need_lib_prefix=no 11661 need_version=no 11662 soname_spec='$libname$release$shared_ext$major' 11663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11664 case $host_os in 11665 irix5* | nonstopux*) 11666 libsuff= shlibsuff= 11667 ;; 11668 *) 11669 case $LD in # libtool.m4 will add one of these switches to LD 11670 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11671 libsuff= shlibsuff= libmagic=32-bit;; 11672 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11673 libsuff=32 shlibsuff=N32 libmagic=N32;; 11674 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11675 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11676 *) libsuff= shlibsuff= libmagic=never-match;; 11677 esac 11678 ;; 11679 esac 11680 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11681 shlibpath_overrides_runpath=no 11682 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11683 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11684 hardcode_into_libs=yes 11685 ;; 11686 11687# No shared lib support for Linux oldld, aout, or coff. 11688linux*oldld* | linux*aout* | linux*coff*) 11689 dynamic_linker=no 11690 ;; 11691 11692linux*android*) 11693 version_type=none # Android doesn't support versioned libraries. 11694 need_lib_prefix=no 11695 need_version=no 11696 library_names_spec='$libname$release$shared_ext' 11697 soname_spec='$libname$release$shared_ext' 11698 finish_cmds= 11699 shlibpath_var=LD_LIBRARY_PATH 11700 shlibpath_overrides_runpath=yes 11701 11702 # This implies no fast_install, which is unacceptable. 11703 # Some rework will be needed to allow for fast_install 11704 # before this can be enabled. 11705 hardcode_into_libs=yes 11706 11707 dynamic_linker='Android linker' 11708 # Don't embed -rpath directories since the linker doesn't support them. 11709 hardcode_libdir_flag_spec='-L$libdir' 11710 ;; 11711 11712# This must be glibc/ELF. 11713linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11714 version_type=linux # correct to gnu/linux during the next big refactor 11715 need_lib_prefix=no 11716 need_version=no 11717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11718 soname_spec='$libname$release$shared_ext$major' 11719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11720 shlibpath_var=LD_LIBRARY_PATH 11721 shlibpath_overrides_runpath=no 11722 11723 # Some binutils ld are patched to set DT_RUNPATH 11724 if test ${lt_cv_shlibpath_overrides_runpath+y} 11725then : 11726 printf %s "(cached) " >&6 11727else $as_nop 11728 lt_cv_shlibpath_overrides_runpath=no 11729 save_LDFLAGS=$LDFLAGS 11730 save_libdir=$libdir 11731 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11732 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11734/* end confdefs.h. */ 11735 11736int 11737main (void) 11738{ 11739 11740 ; 11741 return 0; 11742} 11743_ACEOF 11744if ac_fn_c_try_link "$LINENO" 11745then : 11746 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11747then : 11748 lt_cv_shlibpath_overrides_runpath=yes 11749fi 11750fi 11751rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11752 conftest$ac_exeext conftest.$ac_ext 11753 LDFLAGS=$save_LDFLAGS 11754 libdir=$save_libdir 11755 11756fi 11757 11758 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11759 11760 # This implies no fast_install, which is unacceptable. 11761 # Some rework will be needed to allow for fast_install 11762 # before this can be enabled. 11763 hardcode_into_libs=yes 11764 11765 # Add ABI-specific directories to the system library path. 11766 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11767 11768 # Ideally, we could use ldconfig to report *all* directores which are 11769 # searched for libraries, however this is still not possible. Aside from not 11770 # being certain /sbin/ldconfig is available, command 11771 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11772 # even though it is searched at run-time. Try to do the best guess by 11773 # appending ld.so.conf contents (and includes) to the search path. 11774 if test -f /etc/ld.so.conf; then 11775 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' ' '` 11776 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11777 fi 11778 11779 # We used to test for /lib/ld.so.1 and disable shared libraries on 11780 # powerpc, because MkLinux only supported shared libraries with the 11781 # GNU dynamic linker. Since this was broken with cross compilers, 11782 # most powerpc-linux boxes support dynamic linking these days and 11783 # people can always --disable-shared, the test was removed, and we 11784 # assume the GNU/Linux dynamic linker is in use. 11785 dynamic_linker='GNU/Linux ld.so' 11786 ;; 11787 11788netbsd*) 11789 version_type=sunos 11790 need_lib_prefix=no 11791 need_version=no 11792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11795 dynamic_linker='NetBSD (a.out) ld.so' 11796 else 11797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11798 soname_spec='$libname$release$shared_ext$major' 11799 dynamic_linker='NetBSD ld.elf_so' 11800 fi 11801 shlibpath_var=LD_LIBRARY_PATH 11802 shlibpath_overrides_runpath=yes 11803 hardcode_into_libs=yes 11804 ;; 11805 11806newsos6) 11807 version_type=linux # correct to gnu/linux during the next big refactor 11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11809 shlibpath_var=LD_LIBRARY_PATH 11810 shlibpath_overrides_runpath=yes 11811 ;; 11812 11813*nto* | *qnx*) 11814 version_type=qnx 11815 need_lib_prefix=no 11816 need_version=no 11817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11818 soname_spec='$libname$release$shared_ext$major' 11819 shlibpath_var=LD_LIBRARY_PATH 11820 shlibpath_overrides_runpath=no 11821 hardcode_into_libs=yes 11822 dynamic_linker='ldqnx.so' 11823 ;; 11824 11825openbsd* | bitrig*) 11826 version_type=sunos 11827 sys_lib_dlsearch_path_spec=/usr/lib 11828 need_lib_prefix=no 11829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11830 need_version=no 11831 else 11832 need_version=yes 11833 fi 11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11836 shlibpath_var=LD_LIBRARY_PATH 11837 shlibpath_overrides_runpath=yes 11838 ;; 11839 11840os2*) 11841 libname_spec='$name' 11842 version_type=windows 11843 shrext_cmds=.dll 11844 need_version=no 11845 need_lib_prefix=no 11846 # OS/2 can only load a DLL with a base name of 8 characters or less. 11847 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11848 v=$($ECHO $release$versuffix | tr -d .-); 11849 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11850 $ECHO $n$v`$shared_ext' 11851 library_names_spec='${libname}_dll.$libext' 11852 dynamic_linker='OS/2 ld.exe' 11853 shlibpath_var=BEGINLIBPATH 11854 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11856 postinstall_cmds='base_file=`basename \$file`~ 11857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11858 dldir=$destdir/`dirname \$dlpath`~ 11859 test -d \$dldir || mkdir -p \$dldir~ 11860 $install_prog $dir/$dlname \$dldir/$dlname~ 11861 chmod a+x \$dldir/$dlname~ 11862 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11863 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11864 fi' 11865 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11866 dlpath=$dir/\$dldll~ 11867 $RM \$dlpath' 11868 ;; 11869 11870osf3* | osf4* | osf5*) 11871 version_type=osf 11872 need_lib_prefix=no 11873 need_version=no 11874 soname_spec='$libname$release$shared_ext$major' 11875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11876 shlibpath_var=LD_LIBRARY_PATH 11877 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11879 ;; 11880 11881rdos*) 11882 dynamic_linker=no 11883 ;; 11884 11885solaris*) 11886 version_type=linux # correct to gnu/linux during the next big refactor 11887 need_lib_prefix=no 11888 need_version=no 11889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11890 soname_spec='$libname$release$shared_ext$major' 11891 shlibpath_var=LD_LIBRARY_PATH 11892 shlibpath_overrides_runpath=yes 11893 hardcode_into_libs=yes 11894 # ldd complains unless libraries are executable 11895 postinstall_cmds='chmod +x $lib' 11896 ;; 11897 11898sunos4*) 11899 version_type=sunos 11900 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11901 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11902 shlibpath_var=LD_LIBRARY_PATH 11903 shlibpath_overrides_runpath=yes 11904 if test yes = "$with_gnu_ld"; then 11905 need_lib_prefix=no 11906 fi 11907 need_version=yes 11908 ;; 11909 11910sysv4 | sysv4.3*) 11911 version_type=linux # correct to gnu/linux during the next big refactor 11912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11913 soname_spec='$libname$release$shared_ext$major' 11914 shlibpath_var=LD_LIBRARY_PATH 11915 case $host_vendor in 11916 sni) 11917 shlibpath_overrides_runpath=no 11918 need_lib_prefix=no 11919 runpath_var=LD_RUN_PATH 11920 ;; 11921 siemens) 11922 need_lib_prefix=no 11923 ;; 11924 motorola) 11925 need_lib_prefix=no 11926 need_version=no 11927 shlibpath_overrides_runpath=no 11928 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11929 ;; 11930 esac 11931 ;; 11932 11933sysv4*MP*) 11934 if test -d /usr/nec; then 11935 version_type=linux # correct to gnu/linux during the next big refactor 11936 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11937 soname_spec='$libname$shared_ext.$major' 11938 shlibpath_var=LD_LIBRARY_PATH 11939 fi 11940 ;; 11941 11942sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11943 version_type=sco 11944 need_lib_prefix=no 11945 need_version=no 11946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11947 soname_spec='$libname$release$shared_ext$major' 11948 shlibpath_var=LD_LIBRARY_PATH 11949 shlibpath_overrides_runpath=yes 11950 hardcode_into_libs=yes 11951 if test yes = "$with_gnu_ld"; then 11952 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11953 else 11954 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11955 case $host_os in 11956 sco3.2v5*) 11957 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11958 ;; 11959 esac 11960 fi 11961 sys_lib_dlsearch_path_spec='/usr/lib' 11962 ;; 11963 11964tpf*) 11965 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11966 version_type=linux # correct to gnu/linux during the next big refactor 11967 need_lib_prefix=no 11968 need_version=no 11969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11970 shlibpath_var=LD_LIBRARY_PATH 11971 shlibpath_overrides_runpath=no 11972 hardcode_into_libs=yes 11973 ;; 11974 11975uts4*) 11976 version_type=linux # correct to gnu/linux during the next big refactor 11977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11978 soname_spec='$libname$release$shared_ext$major' 11979 shlibpath_var=LD_LIBRARY_PATH 11980 ;; 11981 11982*) 11983 dynamic_linker=no 11984 ;; 11985esac 11986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11987printf "%s\n" "$dynamic_linker" >&6; } 11988test no = "$dynamic_linker" && can_build_shared=no 11989 11990variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11991if test yes = "$GCC"; then 11992 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11993fi 11994 11995if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11996 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11997fi 11998 11999if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12000 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12001fi 12002 12003# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12004configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12005 12006# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12007func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12008 12009# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12010configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12109printf %s "checking how to hardcode library paths into programs... " >&6; } 12110hardcode_action= 12111if test -n "$hardcode_libdir_flag_spec" || 12112 test -n "$runpath_var" || 12113 test yes = "$hardcode_automatic"; then 12114 12115 # We can hardcode non-existent directories. 12116 if test no != "$hardcode_direct" && 12117 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12118 # have to relink, otherwise we might link with an installed library 12119 # when we should be linking with a yet-to-be-installed one 12120 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12121 test no != "$hardcode_minus_L"; then 12122 # Linking always hardcodes the temporary library directory. 12123 hardcode_action=relink 12124 else 12125 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12126 hardcode_action=immediate 12127 fi 12128else 12129 # We cannot hardcode anything, or else we can only hardcode existing 12130 # directories. 12131 hardcode_action=unsupported 12132fi 12133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12134printf "%s\n" "$hardcode_action" >&6; } 12135 12136if test relink = "$hardcode_action" || 12137 test yes = "$inherit_rpath"; then 12138 # Fast installation is not supported 12139 enable_fast_install=no 12140elif test yes = "$shlibpath_overrides_runpath" || 12141 test no = "$enable_shared"; then 12142 # Fast installation is not necessary 12143 enable_fast_install=needless 12144fi 12145 12146 12147 12148 12149 12150 12151 if test yes != "$enable_dlopen"; then 12152 enable_dlopen=unknown 12153 enable_dlopen_self=unknown 12154 enable_dlopen_self_static=unknown 12155else 12156 lt_cv_dlopen=no 12157 lt_cv_dlopen_libs= 12158 12159 case $host_os in 12160 beos*) 12161 lt_cv_dlopen=load_add_on 12162 lt_cv_dlopen_libs= 12163 lt_cv_dlopen_self=yes 12164 ;; 12165 12166 mingw* | pw32* | cegcc*) 12167 lt_cv_dlopen=LoadLibrary 12168 lt_cv_dlopen_libs= 12169 ;; 12170 12171 cygwin*) 12172 lt_cv_dlopen=dlopen 12173 lt_cv_dlopen_libs= 12174 ;; 12175 12176 darwin*) 12177 # if libdl is installed we need to link against it 12178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12179printf %s "checking for dlopen in -ldl... " >&6; } 12180if test ${ac_cv_lib_dl_dlopen+y} 12181then : 12182 printf %s "(cached) " >&6 12183else $as_nop 12184 ac_check_lib_save_LIBS=$LIBS 12185LIBS="-ldl $LIBS" 12186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12187/* end confdefs.h. */ 12188 12189/* Override any GCC internal prototype to avoid an error. 12190 Use char because int might match the return type of a GCC 12191 builtin and then its argument prototype would still apply. */ 12192char dlopen (); 12193int 12194main (void) 12195{ 12196return dlopen (); 12197 ; 12198 return 0; 12199} 12200_ACEOF 12201if ac_fn_c_try_link "$LINENO" 12202then : 12203 ac_cv_lib_dl_dlopen=yes 12204else $as_nop 12205 ac_cv_lib_dl_dlopen=no 12206fi 12207rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12208 conftest$ac_exeext conftest.$ac_ext 12209LIBS=$ac_check_lib_save_LIBS 12210fi 12211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12212printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12213if test "x$ac_cv_lib_dl_dlopen" = xyes 12214then : 12215 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12216else $as_nop 12217 12218 lt_cv_dlopen=dyld 12219 lt_cv_dlopen_libs= 12220 lt_cv_dlopen_self=yes 12221 12222fi 12223 12224 ;; 12225 12226 tpf*) 12227 # Don't try to run any link tests for TPF. We know it's impossible 12228 # because TPF is a cross-compiler, and we know how we open DSOs. 12229 lt_cv_dlopen=dlopen 12230 lt_cv_dlopen_libs= 12231 lt_cv_dlopen_self=no 12232 ;; 12233 12234 *) 12235 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12236if test "x$ac_cv_func_shl_load" = xyes 12237then : 12238 lt_cv_dlopen=shl_load 12239else $as_nop 12240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12241printf %s "checking for shl_load in -ldld... " >&6; } 12242if test ${ac_cv_lib_dld_shl_load+y} 12243then : 12244 printf %s "(cached) " >&6 12245else $as_nop 12246 ac_check_lib_save_LIBS=$LIBS 12247LIBS="-ldld $LIBS" 12248cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12249/* end confdefs.h. */ 12250 12251/* Override any GCC internal prototype to avoid an error. 12252 Use char because int might match the return type of a GCC 12253 builtin and then its argument prototype would still apply. */ 12254char shl_load (); 12255int 12256main (void) 12257{ 12258return shl_load (); 12259 ; 12260 return 0; 12261} 12262_ACEOF 12263if ac_fn_c_try_link "$LINENO" 12264then : 12265 ac_cv_lib_dld_shl_load=yes 12266else $as_nop 12267 ac_cv_lib_dld_shl_load=no 12268fi 12269rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12270 conftest$ac_exeext conftest.$ac_ext 12271LIBS=$ac_check_lib_save_LIBS 12272fi 12273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12274printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12275if test "x$ac_cv_lib_dld_shl_load" = xyes 12276then : 12277 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12278else $as_nop 12279 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12280if test "x$ac_cv_func_dlopen" = xyes 12281then : 12282 lt_cv_dlopen=dlopen 12283else $as_nop 12284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12285printf %s "checking for dlopen in -ldl... " >&6; } 12286if test ${ac_cv_lib_dl_dlopen+y} 12287then : 12288 printf %s "(cached) " >&6 12289else $as_nop 12290 ac_check_lib_save_LIBS=$LIBS 12291LIBS="-ldl $LIBS" 12292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12293/* end confdefs.h. */ 12294 12295/* Override any GCC internal prototype to avoid an error. 12296 Use char because int might match the return type of a GCC 12297 builtin and then its argument prototype would still apply. */ 12298char dlopen (); 12299int 12300main (void) 12301{ 12302return dlopen (); 12303 ; 12304 return 0; 12305} 12306_ACEOF 12307if ac_fn_c_try_link "$LINENO" 12308then : 12309 ac_cv_lib_dl_dlopen=yes 12310else $as_nop 12311 ac_cv_lib_dl_dlopen=no 12312fi 12313rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12314 conftest$ac_exeext conftest.$ac_ext 12315LIBS=$ac_check_lib_save_LIBS 12316fi 12317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12318printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12319if test "x$ac_cv_lib_dl_dlopen" = xyes 12320then : 12321 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12322else $as_nop 12323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12324printf %s "checking for dlopen in -lsvld... " >&6; } 12325if test ${ac_cv_lib_svld_dlopen+y} 12326then : 12327 printf %s "(cached) " >&6 12328else $as_nop 12329 ac_check_lib_save_LIBS=$LIBS 12330LIBS="-lsvld $LIBS" 12331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12332/* end confdefs.h. */ 12333 12334/* Override any GCC internal prototype to avoid an error. 12335 Use char because int might match the return type of a GCC 12336 builtin and then its argument prototype would still apply. */ 12337char dlopen (); 12338int 12339main (void) 12340{ 12341return dlopen (); 12342 ; 12343 return 0; 12344} 12345_ACEOF 12346if ac_fn_c_try_link "$LINENO" 12347then : 12348 ac_cv_lib_svld_dlopen=yes 12349else $as_nop 12350 ac_cv_lib_svld_dlopen=no 12351fi 12352rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12353 conftest$ac_exeext conftest.$ac_ext 12354LIBS=$ac_check_lib_save_LIBS 12355fi 12356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12357printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12358if test "x$ac_cv_lib_svld_dlopen" = xyes 12359then : 12360 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12361else $as_nop 12362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12363printf %s "checking for dld_link in -ldld... " >&6; } 12364if test ${ac_cv_lib_dld_dld_link+y} 12365then : 12366 printf %s "(cached) " >&6 12367else $as_nop 12368 ac_check_lib_save_LIBS=$LIBS 12369LIBS="-ldld $LIBS" 12370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12371/* end confdefs.h. */ 12372 12373/* Override any GCC internal prototype to avoid an error. 12374 Use char because int might match the return type of a GCC 12375 builtin and then its argument prototype would still apply. */ 12376char dld_link (); 12377int 12378main (void) 12379{ 12380return dld_link (); 12381 ; 12382 return 0; 12383} 12384_ACEOF 12385if ac_fn_c_try_link "$LINENO" 12386then : 12387 ac_cv_lib_dld_dld_link=yes 12388else $as_nop 12389 ac_cv_lib_dld_dld_link=no 12390fi 12391rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12392 conftest$ac_exeext conftest.$ac_ext 12393LIBS=$ac_check_lib_save_LIBS 12394fi 12395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12396printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12397if test "x$ac_cv_lib_dld_dld_link" = xyes 12398then : 12399 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12400fi 12401 12402 12403fi 12404 12405 12406fi 12407 12408 12409fi 12410 12411 12412fi 12413 12414 12415fi 12416 12417 ;; 12418 esac 12419 12420 if test no = "$lt_cv_dlopen"; then 12421 enable_dlopen=no 12422 else 12423 enable_dlopen=yes 12424 fi 12425 12426 case $lt_cv_dlopen in 12427 dlopen) 12428 save_CPPFLAGS=$CPPFLAGS 12429 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12430 12431 save_LDFLAGS=$LDFLAGS 12432 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12433 12434 save_LIBS=$LIBS 12435 LIBS="$lt_cv_dlopen_libs $LIBS" 12436 12437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12438printf %s "checking whether a program can dlopen itself... " >&6; } 12439if test ${lt_cv_dlopen_self+y} 12440then : 12441 printf %s "(cached) " >&6 12442else $as_nop 12443 if test yes = "$cross_compiling"; then : 12444 lt_cv_dlopen_self=cross 12445else 12446 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12447 lt_status=$lt_dlunknown 12448 cat > conftest.$ac_ext <<_LT_EOF 12449#line $LINENO "configure" 12450#include "confdefs.h" 12451 12452#if HAVE_DLFCN_H 12453#include <dlfcn.h> 12454#endif 12455 12456#include <stdio.h> 12457 12458#ifdef RTLD_GLOBAL 12459# define LT_DLGLOBAL RTLD_GLOBAL 12460#else 12461# ifdef DL_GLOBAL 12462# define LT_DLGLOBAL DL_GLOBAL 12463# else 12464# define LT_DLGLOBAL 0 12465# endif 12466#endif 12467 12468/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12469 find out it does not work in some platform. */ 12470#ifndef LT_DLLAZY_OR_NOW 12471# ifdef RTLD_LAZY 12472# define LT_DLLAZY_OR_NOW RTLD_LAZY 12473# else 12474# ifdef DL_LAZY 12475# define LT_DLLAZY_OR_NOW DL_LAZY 12476# else 12477# ifdef RTLD_NOW 12478# define LT_DLLAZY_OR_NOW RTLD_NOW 12479# else 12480# ifdef DL_NOW 12481# define LT_DLLAZY_OR_NOW DL_NOW 12482# else 12483# define LT_DLLAZY_OR_NOW 0 12484# endif 12485# endif 12486# endif 12487# endif 12488#endif 12489 12490/* When -fvisibility=hidden is used, assume the code has been annotated 12491 correspondingly for the symbols needed. */ 12492#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12493int fnord () __attribute__((visibility("default"))); 12494#endif 12495 12496int fnord () { return 42; } 12497int main () 12498{ 12499 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12500 int status = $lt_dlunknown; 12501 12502 if (self) 12503 { 12504 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12505 else 12506 { 12507 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12508 else puts (dlerror ()); 12509 } 12510 /* dlclose (self); */ 12511 } 12512 else 12513 puts (dlerror ()); 12514 12515 return status; 12516} 12517_LT_EOF 12518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12519 (eval $ac_link) 2>&5 12520 ac_status=$? 12521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12522 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12523 (./conftest; exit; ) >&5 2>/dev/null 12524 lt_status=$? 12525 case x$lt_status in 12526 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12527 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12528 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12529 esac 12530 else : 12531 # compilation failed 12532 lt_cv_dlopen_self=no 12533 fi 12534fi 12535rm -fr conftest* 12536 12537 12538fi 12539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12540printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12541 12542 if test yes = "$lt_cv_dlopen_self"; then 12543 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12545printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12546if test ${lt_cv_dlopen_self_static+y} 12547then : 12548 printf %s "(cached) " >&6 12549else $as_nop 12550 if test yes = "$cross_compiling"; then : 12551 lt_cv_dlopen_self_static=cross 12552else 12553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12554 lt_status=$lt_dlunknown 12555 cat > conftest.$ac_ext <<_LT_EOF 12556#line $LINENO "configure" 12557#include "confdefs.h" 12558 12559#if HAVE_DLFCN_H 12560#include <dlfcn.h> 12561#endif 12562 12563#include <stdio.h> 12564 12565#ifdef RTLD_GLOBAL 12566# define LT_DLGLOBAL RTLD_GLOBAL 12567#else 12568# ifdef DL_GLOBAL 12569# define LT_DLGLOBAL DL_GLOBAL 12570# else 12571# define LT_DLGLOBAL 0 12572# endif 12573#endif 12574 12575/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12576 find out it does not work in some platform. */ 12577#ifndef LT_DLLAZY_OR_NOW 12578# ifdef RTLD_LAZY 12579# define LT_DLLAZY_OR_NOW RTLD_LAZY 12580# else 12581# ifdef DL_LAZY 12582# define LT_DLLAZY_OR_NOW DL_LAZY 12583# else 12584# ifdef RTLD_NOW 12585# define LT_DLLAZY_OR_NOW RTLD_NOW 12586# else 12587# ifdef DL_NOW 12588# define LT_DLLAZY_OR_NOW DL_NOW 12589# else 12590# define LT_DLLAZY_OR_NOW 0 12591# endif 12592# endif 12593# endif 12594# endif 12595#endif 12596 12597/* When -fvisibility=hidden is used, assume the code has been annotated 12598 correspondingly for the symbols needed. */ 12599#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12600int fnord () __attribute__((visibility("default"))); 12601#endif 12602 12603int fnord () { return 42; } 12604int main () 12605{ 12606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12607 int status = $lt_dlunknown; 12608 12609 if (self) 12610 { 12611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12612 else 12613 { 12614 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12615 else puts (dlerror ()); 12616 } 12617 /* dlclose (self); */ 12618 } 12619 else 12620 puts (dlerror ()); 12621 12622 return status; 12623} 12624_LT_EOF 12625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12626 (eval $ac_link) 2>&5 12627 ac_status=$? 12628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12629 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12630 (./conftest; exit; ) >&5 2>/dev/null 12631 lt_status=$? 12632 case x$lt_status in 12633 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12634 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12635 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12636 esac 12637 else : 12638 # compilation failed 12639 lt_cv_dlopen_self_static=no 12640 fi 12641fi 12642rm -fr conftest* 12643 12644 12645fi 12646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12647printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12648 fi 12649 12650 CPPFLAGS=$save_CPPFLAGS 12651 LDFLAGS=$save_LDFLAGS 12652 LIBS=$save_LIBS 12653 ;; 12654 esac 12655 12656 case $lt_cv_dlopen_self in 12657 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12658 *) enable_dlopen_self=unknown ;; 12659 esac 12660 12661 case $lt_cv_dlopen_self_static in 12662 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12663 *) enable_dlopen_self_static=unknown ;; 12664 esac 12665fi 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683striplib= 12684old_striplib= 12685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12686printf %s "checking whether stripping libraries is possible... " >&6; } 12687if test -z "$STRIP"; then 12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12689printf "%s\n" "no" >&6; } 12690else 12691 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12692 old_striplib="$STRIP --strip-debug" 12693 striplib="$STRIP --strip-unneeded" 12694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12695printf "%s\n" "yes" >&6; } 12696 else 12697 case $host_os in 12698 darwin*) 12699 # FIXME - insert some real tests, host_os isn't really good enough 12700 striplib="$STRIP -x" 12701 old_striplib="$STRIP -S" 12702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12703printf "%s\n" "yes" >&6; } 12704 ;; 12705 freebsd*) 12706 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12707 old_striplib="$STRIP --strip-debug" 12708 striplib="$STRIP --strip-unneeded" 12709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12710printf "%s\n" "yes" >&6; } 12711 else 12712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12713printf "%s\n" "no" >&6; } 12714 fi 12715 ;; 12716 *) 12717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12718printf "%s\n" "no" >&6; } 12719 ;; 12720 esac 12721 fi 12722fi 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 # Report what library types will actually be built 12736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12737printf %s "checking if libtool supports shared libraries... " >&6; } 12738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12739printf "%s\n" "$can_build_shared" >&6; } 12740 12741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12742printf %s "checking whether to build shared libraries... " >&6; } 12743 test no = "$can_build_shared" && enable_shared=no 12744 12745 # On AIX, shared libraries and static libraries use the same namespace, and 12746 # are all built from PIC. 12747 case $host_os in 12748 aix3*) 12749 test yes = "$enable_shared" && enable_static=no 12750 if test -n "$RANLIB"; then 12751 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12752 postinstall_cmds='$RANLIB $lib' 12753 fi 12754 ;; 12755 12756 aix[4-9]*) 12757 if test ia64 != "$host_cpu"; then 12758 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12759 yes,aix,yes) ;; # shared object as lib.so file only 12760 yes,svr4,*) ;; # shared object as lib.so archive member only 12761 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12762 esac 12763 fi 12764 ;; 12765 esac 12766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12767printf "%s\n" "$enable_shared" >&6; } 12768 12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12770printf %s "checking whether to build static libraries... " >&6; } 12771 # Make sure either enable_shared or enable_static is yes. 12772 test yes = "$enable_shared" || enable_static=yes 12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12774printf "%s\n" "$enable_static" >&6; } 12775 12776 12777 12778 12779fi 12780ac_ext=c 12781ac_cpp='$CPP $CPPFLAGS' 12782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12784ac_compiler_gnu=$ac_cv_c_compiler_gnu 12785 12786CC=$lt_save_CC 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 ac_config_commands="$ac_config_commands libtool" 12803 12804 12805 12806 12807# Only expand once: 12808 12809 12810 12811 12812# Check whether --with-gnu-ld was given. 12813if test ${with_gnu_ld+y} 12814then : 12815 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12816else $as_nop 12817 with_gnu_ld=no 12818fi 12819 12820ac_prog=ld 12821if test yes = "$GCC"; then 12822 # Check if gcc -print-prog-name=ld gives a path. 12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12824printf %s "checking for ld used by $CC... " >&6; } 12825 case $host in 12826 *-*-mingw*) 12827 # gcc leaves a trailing carriage return, which upsets mingw 12828 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12829 *) 12830 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12831 esac 12832 case $ac_prog in 12833 # Accept absolute paths. 12834 [\\/]* | ?:[\\/]*) 12835 re_direlt='/[^/][^/]*/\.\./' 12836 # Canonicalize the pathname of ld 12837 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12838 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12839 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12840 done 12841 test -z "$LD" && LD=$ac_prog 12842 ;; 12843 "") 12844 # If it fails, then pretend we aren't using GCC. 12845 ac_prog=ld 12846 ;; 12847 *) 12848 # If it is relative, then search for the first ld in PATH. 12849 with_gnu_ld=unknown 12850 ;; 12851 esac 12852elif test yes = "$with_gnu_ld"; then 12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12854printf %s "checking for GNU ld... " >&6; } 12855else 12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12857printf %s "checking for non-GNU ld... " >&6; } 12858fi 12859if test ${lt_cv_path_LD+y} 12860then : 12861 printf %s "(cached) " >&6 12862else $as_nop 12863 if test -z "$LD"; then 12864 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12865 for ac_dir in $PATH; do 12866 IFS=$lt_save_ifs 12867 test -z "$ac_dir" && ac_dir=. 12868 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12869 lt_cv_path_LD=$ac_dir/$ac_prog 12870 # Check to see if the program is GNU ld. I'd rather use --version, 12871 # but apparently some variants of GNU ld only accept -v. 12872 # Break only if it was the GNU/non-GNU ld that we prefer. 12873 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12874 *GNU* | *'with BFD'*) 12875 test no != "$with_gnu_ld" && break 12876 ;; 12877 *) 12878 test yes != "$with_gnu_ld" && break 12879 ;; 12880 esac 12881 fi 12882 done 12883 IFS=$lt_save_ifs 12884else 12885 lt_cv_path_LD=$LD # Let the user override the test with a path. 12886fi 12887fi 12888 12889LD=$lt_cv_path_LD 12890if test -n "$LD"; then 12891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12892printf "%s\n" "$LD" >&6; } 12893else 12894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12895printf "%s\n" "no" >&6; } 12896fi 12897test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12899printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 12900if test ${lt_cv_prog_gnu_ld+y} 12901then : 12902 printf %s "(cached) " >&6 12903else $as_nop 12904 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12905case `$LD -v 2>&1 </dev/null` in 12906*GNU* | *'with BFD'*) 12907 lt_cv_prog_gnu_ld=yes 12908 ;; 12909*) 12910 lt_cv_prog_gnu_ld=no 12911 ;; 12912esac 12913fi 12914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12915printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 12916with_gnu_ld=$lt_cv_prog_gnu_ld 12917 12918 12919 12920 12921 12922 12923 12924with_ldflags="" 12925if test "x$lt_cv_prog_gnu_ld" = "xyes"; then 12926 12927 for flag in \ 12928 -Wl,--as-needed \ 12929 -Wl,--gc-sections \ 12930 -Wl,-z,relro \ 12931 -Wl,-z,now; do 12932 12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar LDFLAGS" >&5 12934printf %s "checking if $CC supports flag $flag in envvar LDFLAGS... " >&6; } 12935if { as_var=`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 12936then : 12937 printf %s "(cached) " >&6 12938else $as_nop 12939 eval "cc_save_LDFLAGS='${LDFLAGS}'" 12940 eval "LDFLAGS='-Werror $flag'" 12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12942/* end confdefs.h. */ 12943int a = 0; int main(void) { return a; } 12944_ACEOF 12945if ac_fn_c_try_link "$LINENO" 12946then : 12947 eval "`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='yes'" 12948else $as_nop 12949 eval "`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='no'" 12950fi 12951rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12952 conftest$ac_exeext conftest.$ac_ext 12953 eval "LDFLAGS='$cc_save_LDFLAGS'" 12954fi 12955eval ac_res=\$`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh` 12956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12957printf "%s\n" "$ac_res" >&6; } 12958 12959 if eval test x$`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh` = xyes 12960then : 12961 eval "with_ldflags='${with_ldflags} $flag'" 12962fi 12963 12964 done 12965 12966fi 12967GNU_LD_FLAGS=$with_ldflags 12968 12969 12970case "${host_os}" in 12971 freebsd*) 12972OS=freebsd 12973 12974 ;; 12975 *) 12976OS=linux 12977 12978 ;; 12979esac 12980 12981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5 12982printf %s "checking for round in -lm... " >&6; } 12983if test ${ac_cv_lib_m_round+y} 12984then : 12985 printf %s "(cached) " >&6 12986else $as_nop 12987 ac_check_lib_save_LIBS=$LIBS 12988LIBS="-lm $LIBS" 12989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12990/* end confdefs.h. */ 12991 12992/* Override any GCC internal prototype to avoid an error. 12993 Use char because int might match the return type of a GCC 12994 builtin and then its argument prototype would still apply. */ 12995char round (); 12996int 12997main (void) 12998{ 12999return round (); 13000 ; 13001 return 0; 13002} 13003_ACEOF 13004if ac_fn_c_try_link "$LINENO" 13005then : 13006 ac_cv_lib_m_round=yes 13007else $as_nop 13008 ac_cv_lib_m_round=no 13009fi 13010rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13011 conftest$ac_exeext conftest.$ac_ext 13012LIBS=$ac_check_lib_save_LIBS 13013fi 13014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5 13015printf "%s\n" "$ac_cv_lib_m_round" >&6; } 13016if test "x$ac_cv_lib_m_round" = xyes 13017then : 13018 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h 13019 13020 LIBS="-lm $LIBS" 13021 13022fi 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13033 if test -n "$ac_tool_prefix"; then 13034 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13035set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13037printf %s "checking for $ac_word... " >&6; } 13038if test ${ac_cv_path_PKG_CONFIG+y} 13039then : 13040 printf %s "(cached) " >&6 13041else $as_nop 13042 case $PKG_CONFIG in 13043 [\\/]* | ?:[\\/]*) 13044 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13045 ;; 13046 *) 13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13048for as_dir in $PATH 13049do 13050 IFS=$as_save_IFS 13051 case $as_dir in #((( 13052 '') as_dir=./ ;; 13053 */) ;; 13054 *) as_dir=$as_dir/ ;; 13055 esac 13056 for ac_exec_ext in '' $ac_executable_extensions; do 13057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13058 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13060 break 2 13061 fi 13062done 13063 done 13064IFS=$as_save_IFS 13065 13066 ;; 13067esac 13068fi 13069PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13070if test -n "$PKG_CONFIG"; then 13071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13072printf "%s\n" "$PKG_CONFIG" >&6; } 13073else 13074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13075printf "%s\n" "no" >&6; } 13076fi 13077 13078 13079fi 13080if test -z "$ac_cv_path_PKG_CONFIG"; then 13081 ac_pt_PKG_CONFIG=$PKG_CONFIG 13082 # Extract the first word of "pkg-config", so it can be a program name with args. 13083set dummy pkg-config; ac_word=$2 13084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13085printf %s "checking for $ac_word... " >&6; } 13086if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13087then : 13088 printf %s "(cached) " >&6 13089else $as_nop 13090 case $ac_pt_PKG_CONFIG in 13091 [\\/]* | ?:[\\/]*) 13092 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13093 ;; 13094 *) 13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13096for as_dir in $PATH 13097do 13098 IFS=$as_save_IFS 13099 case $as_dir in #((( 13100 '') as_dir=./ ;; 13101 */) ;; 13102 *) as_dir=$as_dir/ ;; 13103 esac 13104 for ac_exec_ext in '' $ac_executable_extensions; do 13105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13106 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13108 break 2 13109 fi 13110done 13111 done 13112IFS=$as_save_IFS 13113 13114 ;; 13115esac 13116fi 13117ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13118if test -n "$ac_pt_PKG_CONFIG"; then 13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13120printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13121else 13122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13123printf "%s\n" "no" >&6; } 13124fi 13125 13126 if test "x$ac_pt_PKG_CONFIG" = x; then 13127 PKG_CONFIG="" 13128 else 13129 case $cross_compiling:$ac_tool_warned in 13130yes:) 13131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13132printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13133ac_tool_warned=yes ;; 13134esac 13135 PKG_CONFIG=$ac_pt_PKG_CONFIG 13136 fi 13137else 13138 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13139fi 13140 13141fi 13142if test -n "$PKG_CONFIG"; then 13143 _pkg_min_version=0.9.0 13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13145printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13146 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13148printf "%s\n" "yes" >&6; } 13149 else 13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13151printf "%s\n" "no" >&6; } 13152 PKG_CONFIG="" 13153 fi 13154fi 13155 13156pkg_failed=no 13157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 13158printf %s "checking for CHECK... " >&6; } 13159 13160if test -n "$CHECK_CFLAGS"; then 13161 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" 13162 elif test -n "$PKG_CONFIG"; then 13163 if test -n "$PKG_CONFIG" && \ 13164 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.9\""; } >&5 13165 ($PKG_CONFIG --exists --print-errors "check >= 0.9.9") 2>&5 13166 ac_status=$? 13167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13168 test $ac_status = 0; }; then 13169 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.9" 2>/dev/null` 13170 test "x$?" != "x0" && pkg_failed=yes 13171else 13172 pkg_failed=yes 13173fi 13174 else 13175 pkg_failed=untried 13176fi 13177if test -n "$CHECK_LIBS"; then 13178 pkg_cv_CHECK_LIBS="$CHECK_LIBS" 13179 elif test -n "$PKG_CONFIG"; then 13180 if test -n "$PKG_CONFIG" && \ 13181 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.9\""; } >&5 13182 ($PKG_CONFIG --exists --print-errors "check >= 0.9.9") 2>&5 13183 ac_status=$? 13184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13185 test $ac_status = 0; }; then 13186 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.9" 2>/dev/null` 13187 test "x$?" != "x0" && pkg_failed=yes 13188else 13189 pkg_failed=yes 13190fi 13191 else 13192 pkg_failed=untried 13193fi 13194 13195 13196 13197if test $pkg_failed = yes; then 13198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13199printf "%s\n" "no" >&6; } 13200 13201if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13202 _pkg_short_errors_supported=yes 13203else 13204 _pkg_short_errors_supported=no 13205fi 13206 if test $_pkg_short_errors_supported = yes; then 13207 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.9" 2>&1` 13208 else 13209 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.9" 2>&1` 13210 fi 13211 # Put the nasty error message in config.log where it belongs 13212 echo "$CHECK_PKG_ERRORS" >&5 13213 13214 HAVE_CHECK="no" 13215elif test $pkg_failed = untried; then 13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13217printf "%s\n" "no" >&6; } 13218 HAVE_CHECK="no" 13219else 13220 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS 13221 CHECK_LIBS=$pkg_cv_CHECK_LIBS 13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13223printf "%s\n" "yes" >&6; } 13224 HAVE_CHECK="yes" 13225fi 13226if test "x$HAVE_CHECK" != "xyes"; then 13227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: check not found - skipping building unit tests" >&5 13228printf "%s\n" "$as_me: WARNING: check not found - skipping building unit tests" >&2;} 13229fi 13230 if test "x$HAVE_CHECK" = "xyes"; then 13231 ENABLE_RUNTIME_TESTS_TRUE= 13232 ENABLE_RUNTIME_TESTS_FALSE='#' 13233else 13234 ENABLE_RUNTIME_TESTS_TRUE='#' 13235 ENABLE_RUNTIME_TESTS_FALSE= 13236fi 13237 13238 if test "x$enable_static" = "xyes"; then 13239 ENABLE_STATIC_LINK_TEST_TRUE= 13240 ENABLE_STATIC_LINK_TEST_FALSE='#' 13241else 13242 ENABLE_STATIC_LINK_TEST_TRUE='#' 13243 ENABLE_STATIC_LINK_TEST_FALSE= 13244fi 13245 13246 13247with_cflags="" 13248if test "x$GCC" = "xyes"; then 13249 13250 for flag in \ 13251 -Wall \ 13252 -Wextra \ 13253 -Wno-unused-parameter \ 13254 -Wstrict-prototypes \ 13255 -Wmissing-prototypes \ 13256 -fvisibility=hidden \ 13257 -pipe \ 13258 -fno-strict-aliasing \ 13259 -ffunction-sections \ 13260 -fdata-sections \ 13261 -fno-strict-aliasing \ 13262 -fdiagnostics-show-option \ 13263 -fno-common; do 13264 13265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CFLAGS" >&5 13266printf %s "checking if $CC supports flag $flag in envvar CFLAGS... " >&6; } 13267if { as_var=`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 13268then : 13269 printf %s "(cached) " >&6 13270else $as_nop 13271 eval "cc_save_CFLAGS='${CFLAGS}'" 13272 eval "CFLAGS='-Werror $flag'" 13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13274/* end confdefs.h. */ 13275int a = 0; int main(void) { return a; } 13276_ACEOF 13277if ac_fn_c_try_link "$LINENO" 13278then : 13279 eval "`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh`='yes'" 13280else $as_nop 13281 eval "`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh`='no'" 13282fi 13283rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13284 conftest$ac_exeext conftest.$ac_ext 13285 eval "CFLAGS='$cc_save_CFLAGS'" 13286fi 13287eval ac_res=\$`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh` 13288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13289printf "%s\n" "$ac_res" >&6; } 13290 13291 if eval test x$`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh` = xyes 13292then : 13293 eval "with_cflags='${with_cflags} $flag'" 13294fi 13295 13296 done 13297 13298fi 13299GCC_CFLAGS=$with_cflags 13300 13301 13302# Extract the first word of "doxygen", so it can be a program name with args. 13303set dummy doxygen; ac_word=$2 13304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13305printf %s "checking for $ac_word... " >&6; } 13306if test ${ac_cv_path_DOXYGEN+y} 13307then : 13308 printf %s "(cached) " >&6 13309else $as_nop 13310 case $DOXYGEN in 13311 [\\/]* | ?:[\\/]*) 13312 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 13313 ;; 13314 *) 13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13316for as_dir in $PATH 13317do 13318 IFS=$as_save_IFS 13319 case $as_dir in #((( 13320 '') as_dir=./ ;; 13321 */) ;; 13322 *) as_dir=$as_dir/ ;; 13323 esac 13324 for ac_exec_ext in '' $ac_executable_extensions; do 13325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13326 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 13327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13328 break 2 13329 fi 13330done 13331 done 13332IFS=$as_save_IFS 13333 13334 ;; 13335esac 13336fi 13337DOXYGEN=$ac_cv_path_DOXYGEN 13338if test -n "$DOXYGEN"; then 13339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 13340printf "%s\n" "$DOXYGEN" >&6; } 13341else 13342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13343printf "%s\n" "no" >&6; } 13344fi 13345 13346 13347if test "x$DOXYGEN" = "x"; then 13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - required for documentation" >&5 13349printf "%s\n" "$as_me: WARNING: doxygen not found - required for documentation" >&2;} 13350 have_doxygen="no" 13351else 13352 have_doxygen="yes" 13353fi 13354 if test "x$have_doxygen" = "xyes"; then 13355 HAVE_DOXYGEN_TRUE= 13356 HAVE_DOXYGEN_FALSE='#' 13357else 13358 HAVE_DOXYGEN_TRUE='#' 13359 HAVE_DOXYGEN_FALSE= 13360fi 13361 13362 13363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov" >&5 13364printf %s "checking whether to build with gcov... " >&6; } 13365# Check whether --enable-gcov was given. 13366if test ${enable_gcov+y} 13367then : 13368 enableval=$enable_gcov; 13369else $as_nop 13370 enable_gcov=no 13371fi 13372 13373if test "x$enable_gcov" != "xno" 13374then : 13375 13376 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage" 13377 GCOV_LDFLAGS="-lgcov" 13378 enable_gcov=yes 13379 13380fi 13381 if test "x$enable_gcov" != "xno"; then 13382 GCOV_ENABLED_TRUE= 13383 GCOV_ENABLED_FALSE='#' 13384else 13385 GCOV_ENABLED_TRUE='#' 13386 GCOV_ENABLED_FALSE= 13387fi 13388 13389 13390 13391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gcov" >&5 13392printf "%s\n" "$enable_gcov" >&6; } 13393 13394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with coverity support" >&5 13395printf %s "checking whether to build with coverity support... " >&6; } 13396# Check whether --enable-coverity was given. 13397if test ${enable_coverity+y} 13398then : 13399 enableval=$enable_coverity; 13400else $as_nop 13401 enable_coverity=no 13402fi 13403 13404if test "x$enable_coverity" != "xno" 13405then : 13406 13407 13408printf "%s\n" "#define _Float128 __uint128_t" >>confdefs.h 13409 13410 13411printf "%s\n" "#define _Float32 int" >>confdefs.h 13412 13413 13414printf "%s\n" "#define _Float32x int" >>confdefs.h 13415 13416 13417printf "%s\n" "#define _Float64 long" >>confdefs.h 13418 13419 13420printf "%s\n" "#define _Float64x long" >>confdefs.h 13421 13422 enable_coverity=yes 13423 13424fi 13425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_coverity" >&5 13426printf "%s\n" "$enable_coverity" >&6; } 13427 13428 13429 13430 13431 13432 13433 13434 13435 if test -n "$PYTHON"; then 13436 # If the user set $PYTHON, use it and don't search something else. 13437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5 13438printf %s "checking whether $PYTHON version is >= 2.6... " >&6; } 13439 prog="import sys 13440# split strings by '.' and convert to numeric. Append some zeros 13441# because we need at least 4 digits for the hex conversion. 13442# map returns an iterator in Python 3.0 and a list in 2.x 13443minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 13444minverhex = 0 13445# xrange is not present in Python 3.0 and range returns an iterator 13446for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 13447sys.exit(sys.hexversion < minverhex)" 13448 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 13449 ($PYTHON -c "$prog") >&5 2>&5 13450 ac_status=$? 13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13452 (exit $ac_status); } 13453then : 13454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13455printf "%s\n" "yes" >&6; } 13456else $as_nop 13457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13458printf "%s\n" "no" >&6; } 13459 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 13460fi 13461 am_display_PYTHON=$PYTHON 13462 else 13463 # Otherwise, try each interpreter until we find one that satisfies 13464 # VERSION. 13465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5 13466printf %s "checking for a Python interpreter with version >= 2.6... " >&6; } 13467if test ${am_cv_pathless_PYTHON+y} 13468then : 13469 printf %s "(cached) " >&6 13470else $as_nop 13471 13472 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 13473 test "$am_cv_pathless_PYTHON" = none && break 13474 prog="import sys 13475# split strings by '.' and convert to numeric. Append some zeros 13476# because we need at least 4 digits for the hex conversion. 13477# map returns an iterator in Python 3.0 and a list in 2.x 13478minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 13479minverhex = 0 13480# xrange is not present in Python 3.0 and range returns an iterator 13481for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 13482sys.exit(sys.hexversion < minverhex)" 13483 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 13484 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 13485 ac_status=$? 13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13487 (exit $ac_status); } 13488then : 13489 break 13490fi 13491 done 13492fi 13493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 13494printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } 13495 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 13496 if test "$am_cv_pathless_PYTHON" = none; then 13497 PYTHON=: 13498 else 13499 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 13500set dummy $am_cv_pathless_PYTHON; ac_word=$2 13501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13502printf %s "checking for $ac_word... " >&6; } 13503if test ${ac_cv_path_PYTHON+y} 13504then : 13505 printf %s "(cached) " >&6 13506else $as_nop 13507 case $PYTHON in 13508 [\\/]* | ?:[\\/]*) 13509 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 13510 ;; 13511 *) 13512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13513for as_dir in $PATH 13514do 13515 IFS=$as_save_IFS 13516 case $as_dir in #((( 13517 '') as_dir=./ ;; 13518 */) ;; 13519 *) as_dir=$as_dir/ ;; 13520 esac 13521 for ac_exec_ext in '' $ac_executable_extensions; do 13522 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13523 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 13524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13525 break 2 13526 fi 13527done 13528 done 13529IFS=$as_save_IFS 13530 13531 ;; 13532esac 13533fi 13534PYTHON=$ac_cv_path_PYTHON 13535if test -n "$PYTHON"; then 13536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 13537printf "%s\n" "$PYTHON" >&6; } 13538else 13539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13540printf "%s\n" "no" >&6; } 13541fi 13542 13543 13544 fi 13545 am_display_PYTHON=$am_cv_pathless_PYTHON 13546 fi 13547 13548 13549 if test "$PYTHON" = :; then 13550 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 13551 else 13552 13553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 13554printf %s "checking for $am_display_PYTHON version... " >&6; } 13555if test ${am_cv_python_version+y} 13556then : 13557 printf %s "(cached) " >&6 13558else $as_nop 13559 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` 13560fi 13561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 13562printf "%s\n" "$am_cv_python_version" >&6; } 13563 PYTHON_VERSION=$am_cv_python_version 13564 13565 13566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 13567printf %s "checking for $am_display_PYTHON platform... " >&6; } 13568if test ${am_cv_python_platform+y} 13569then : 13570 printf %s "(cached) " >&6 13571else $as_nop 13572 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 13573fi 13574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 13575printf "%s\n" "$am_cv_python_platform" >&6; } 13576 PYTHON_PLATFORM=$am_cv_python_platform 13577 13578 13579 if test "x$prefix" = xNONE; then 13580 am__usable_prefix=$ac_default_prefix 13581 else 13582 am__usable_prefix=$prefix 13583 fi 13584 13585 # Allow user to request using sys.* values from Python, 13586 # instead of the GNU $prefix values. 13587 13588# Check whether --with-python-sys-prefix was given. 13589if test ${with_python_sys_prefix+y} 13590then : 13591 withval=$with_python_sys_prefix; am_use_python_sys=: 13592else $as_nop 13593 am_use_python_sys=false 13594fi 13595 13596 13597 # Allow user to override whatever the default Python prefix is. 13598 13599# Check whether --with-python_prefix was given. 13600if test ${with_python_prefix+y} 13601then : 13602 withval=$with_python_prefix; am_python_prefix_subst=$withval 13603 am_cv_python_prefix=$withval 13604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 13605printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 13607printf "%s\n" "$am_cv_python_prefix" >&6; } 13608else $as_nop 13609 13610 if $am_use_python_sys; then 13611 # using python sys.prefix value, not GNU 13612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 13613printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 13614if test ${am_cv_python_prefix+y} 13615then : 13616 printf %s "(cached) " >&6 13617else $as_nop 13618 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` 13619fi 13620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 13621printf "%s\n" "$am_cv_python_prefix" >&6; } 13622 13623 case $am_cv_python_prefix in 13624 $am__usable_prefix*) 13625 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 13626 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 13627 ;; 13628 *) 13629 am_python_prefix_subst=$am_cv_python_prefix 13630 ;; 13631 esac 13632 else # using GNU prefix value, not python sys.prefix 13633 am_python_prefix_subst='${prefix}' 13634 am_python_prefix=$am_python_prefix_subst 13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 13636printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 13637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 13638printf "%s\n" "$am_python_prefix" >&6; } 13639 fi 13640fi 13641 13642 # Substituting python_prefix_subst value. 13643 PYTHON_PREFIX=$am_python_prefix_subst 13644 13645 13646 # emacs-page Now do it all over again for Python exec_prefix, but with yet 13647 # another conditional: fall back to regular prefix if that was specified. 13648 13649# Check whether --with-python_exec_prefix was given. 13650if test ${with_python_exec_prefix+y} 13651then : 13652 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 13653 am_cv_python_exec_prefix=$withval 13654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 13655printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 13656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 13657printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 13658else $as_nop 13659 13660 # no explicit --with-python_exec_prefix, but if 13661 # --with-python_prefix was given, use its value for python_exec_prefix too. 13662 if test -n "$with_python_prefix" 13663then : 13664 am_python_exec_prefix_subst=$with_python_prefix 13665 am_cv_python_exec_prefix=$with_python_prefix 13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 13667printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 13669printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 13670else $as_nop 13671 13672 # Set am__usable_exec_prefix whether using GNU or Python values, 13673 # since we use that variable for pyexecdir. 13674 if test "x$exec_prefix" = xNONE; then 13675 am__usable_exec_prefix=$am__usable_prefix 13676 else 13677 am__usable_exec_prefix=$exec_prefix 13678 fi 13679 # 13680 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 13681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 13682printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 13683if test ${am_cv_python_exec_prefix+y} 13684then : 13685 printf %s "(cached) " >&6 13686else $as_nop 13687 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` 13688fi 13689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 13690printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 13691 case $am_cv_python_exec_prefix in 13692 $am__usable_exec_prefix*) 13693 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 13694 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 13695 ;; 13696 *) 13697 am_python_exec_prefix_subst=$am_cv_python_exec_prefix 13698 ;; 13699 esac 13700 else # using GNU $exec_prefix, not python sys.exec_prefix 13701 am_python_exec_prefix_subst='${exec_prefix}' 13702 am_python_exec_prefix=$am_python_exec_prefix_subst 13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 13704printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 13705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 13706printf "%s\n" "$am_python_exec_prefix" >&6; } 13707 fi 13708fi 13709fi 13710 13711 # Substituting python_exec_prefix_subst. 13712 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 13713 13714 13715 # Factor out some code duplication into this shell variable. 13716 am_python_setup_sysconfig="\ 13717import sys 13718# Prefer sysconfig over distutils.sysconfig, for better compatibility 13719# with python 3.x. See automake bug#10227. 13720try: 13721 import sysconfig 13722except ImportError: 13723 can_use_sysconfig = 0 13724else: 13725 can_use_sysconfig = 1 13726# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 13727# <https://github.com/pypa/virtualenv/issues/118> 13728try: 13729 from platform import python_implementation 13730 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 13731 can_use_sysconfig = 0 13732except ImportError: 13733 pass" 13734 13735 13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 13737printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 13738if test ${am_cv_python_pythondir+y} 13739then : 13740 printf %s "(cached) " >&6 13741else $as_nop 13742 if test "x$am_cv_python_prefix" = x; then 13743 am_py_prefix=$am__usable_prefix 13744 else 13745 am_py_prefix=$am_cv_python_prefix 13746 fi 13747 am_cv_python_pythondir=`$PYTHON -c " 13748$am_python_setup_sysconfig 13749if can_use_sysconfig: 13750 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 13751else: 13752 from distutils import sysconfig 13753 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 13754sys.stdout.write(sitedir)"` 13755 # 13756 case $am_cv_python_pythondir in 13757 $am_py_prefix*) 13758 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 13759 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 13760 ;; 13761 *) 13762 case $am_py_prefix in 13763 /usr|/System*) ;; 13764 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 13765 ;; 13766 esac 13767 ;; 13768 esac 13769 13770fi 13771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 13772printf "%s\n" "$am_cv_python_pythondir" >&6; } 13773 pythondir=$am_cv_python_pythondir 13774 13775 13776 pkgpythondir=\${pythondir}/$PACKAGE 13777 13778 13779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 13780printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 13781if test ${am_cv_python_pyexecdir+y} 13782then : 13783 printf %s "(cached) " >&6 13784else $as_nop 13785 if test "x$am_cv_python_exec_prefix" = x; then 13786 am_py_exec_prefix=$am__usable_exec_prefix 13787 else 13788 am_py_exec_prefix=$am_cv_python_exec_prefix 13789 fi 13790 am_cv_python_pyexecdir=`$PYTHON -c " 13791$am_python_setup_sysconfig 13792if can_use_sysconfig: 13793 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) 13794else: 13795 from distutils import sysconfig 13796 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 13797sys.stdout.write(sitedir)"` 13798 # 13799 case $am_cv_python_pyexecdir in 13800 $am_py_exec_prefix*) 13801 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 13802 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 13803 ;; 13804 *) 13805 case $am_py_exec_prefix in 13806 /usr|/System*) ;; 13807 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 13808 ;; 13809 esac 13810 ;; 13811 esac 13812 13813fi 13814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 13815printf "%s\n" "$am_cv_python_pyexecdir" >&6; } 13816 pyexecdir=$am_cv_python_pyexecdir 13817 13818 13819 pkgpyexecdir=\${pyexecdir}/$PACKAGE 13820 13821 13822 13823 fi 13824 13825 13826# nm to check for leaking symbols in the static library 13827# Extract the first word of "nm", so it can be a program name with args. 13828set dummy nm; ac_word=$2 13829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13830printf %s "checking for $ac_word... " >&6; } 13831if test ${ac_cv_path_NM+y} 13832then : 13833 printf %s "(cached) " >&6 13834else $as_nop 13835 case $NM in 13836 [\\/]* | ?:[\\/]*) 13837 ac_cv_path_NM="$NM" # Let the user override the test with a path. 13838 ;; 13839 *) 13840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13841for as_dir in $PATH 13842do 13843 IFS=$as_save_IFS 13844 case $as_dir in #((( 13845 '') as_dir=./ ;; 13846 */) ;; 13847 *) as_dir=$as_dir/ ;; 13848 esac 13849 for ac_exec_ext in '' $ac_executable_extensions; do 13850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13851 ac_cv_path_NM="$as_dir$ac_word$ac_exec_ext" 13852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13853 break 2 13854 fi 13855done 13856 done 13857IFS=$as_save_IFS 13858 13859 ;; 13860esac 13861fi 13862NM=$ac_cv_path_NM 13863if test -n "$NM"; then 13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 13865printf "%s\n" "$NM" >&6; } 13866else 13867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13868printf "%s\n" "no" >&6; } 13869fi 13870 13871 13872 if test "x$NM" != "x"; then 13873 HAVE_NM_TRUE= 13874 HAVE_NM_FALSE='#' 13875else 13876 HAVE_NM_TRUE='#' 13877 HAVE_NM_FALSE= 13878fi 13879 13880if test "x$enable_static" = "xno"; then 13881 static_symbol_leaks_test="no - static build disabled" 13882else 13883 if test "x$NM" = "x"; then 13884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nm not found - skipping symbol leak test" >&5 13885printf "%s\n" "$as_me: WARNING: nm not found - skipping symbol leak test" >&2;} 13886 have_nm="no" 13887 static_symbol_leaks_test="no - nm not found" 13888 else 13889 have_nm="yes" 13890 static_symbol_leaks_test="yes" 13891 fi 13892fi 13893 13894 if test "x$static_symbol_leaks_test" = "xyes"; then 13895 ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE= 13896 ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE='#' 13897else 13898 ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE='#' 13899 ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE= 13900fi 13901 13902 13903ac_config_files="$ac_config_files Makefile libevdev/Makefile doc/Makefile doc/libevdev.doxygen doc/libevdev.man tools/Makefile test/Makefile libevdev.pc" 13904 13905cat >confcache <<\_ACEOF 13906# This file is a shell script that caches the results of configure 13907# tests run on this system so they can be shared between configure 13908# scripts and configure runs, see configure's option --config-cache. 13909# It is not useful on other systems. If it contains results you don't 13910# want to keep, you may remove or edit it. 13911# 13912# config.status only pays attention to the cache file if you give it 13913# the --recheck option to rerun configure. 13914# 13915# `ac_cv_env_foo' variables (set or unset) will be overridden when 13916# loading this file, other *unset* `ac_cv_foo' will be assigned the 13917# following values. 13918 13919_ACEOF 13920 13921# The following way of writing the cache mishandles newlines in values, 13922# but we know of no workaround that is simple, portable, and efficient. 13923# So, we kill variables containing newlines. 13924# Ultrix sh set writes to stderr and can't be redirected directly, 13925# and sets the high bit in the cache file unless we assign to the vars. 13926( 13927 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13928 eval ac_val=\$$ac_var 13929 case $ac_val in #( 13930 *${as_nl}*) 13931 case $ac_var in #( 13932 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13933printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13934 esac 13935 case $ac_var in #( 13936 _ | IFS | as_nl) ;; #( 13937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13938 *) { eval $ac_var=; unset $ac_var;} ;; 13939 esac ;; 13940 esac 13941 done 13942 13943 (set) 2>&1 | 13944 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13945 *${as_nl}ac_space=\ *) 13946 # `set' does not quote correctly, so add quotes: double-quote 13947 # substitution turns \\\\ into \\, and sed turns \\ into \. 13948 sed -n \ 13949 "s/'/'\\\\''/g; 13950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13951 ;; #( 13952 *) 13953 # `set' quotes correctly as required by POSIX, so do not add quotes. 13954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13955 ;; 13956 esac | 13957 sort 13958) | 13959 sed ' 13960 /^ac_cv_env_/b end 13961 t clear 13962 :clear 13963 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 13964 t end 13965 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13966 :end' >>confcache 13967if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13968 if test -w "$cache_file"; then 13969 if test "x$cache_file" != "x/dev/null"; then 13970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13971printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 13972 if test ! -f "$cache_file" || test -h "$cache_file"; then 13973 cat confcache >"$cache_file" 13974 else 13975 case $cache_file in #( 13976 */* | ?:*) 13977 mv -f confcache "$cache_file"$$ && 13978 mv -f "$cache_file"$$ "$cache_file" ;; #( 13979 *) 13980 mv -f confcache "$cache_file" ;; 13981 esac 13982 fi 13983 fi 13984 else 13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13986printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 13987 fi 13988fi 13989rm -f confcache 13990 13991test "x$prefix" = xNONE && prefix=$ac_default_prefix 13992# Let make expand exec_prefix. 13993test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13994 13995DEFS=-DHAVE_CONFIG_H 13996 13997ac_libobjs= 13998ac_ltlibobjs= 13999U= 14000for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14001 # 1. Remove the extension, and $U if already installed. 14002 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14003 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 14004 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14005 # will be set to the directory where LIBOBJS objects are built. 14006 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14007 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14008done 14009LIBOBJS=$ac_libobjs 14010 14011LTLIBOBJS=$ac_ltlibobjs 14012 14013 14014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14015printf %s "checking that generated files are newer than configure... " >&6; } 14016 if test -n "$am_sleep_pid"; then 14017 # Hide warnings about reused PIDs. 14018 wait $am_sleep_pid 2>/dev/null 14019 fi 14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 14021printf "%s\n" "done" >&6; } 14022if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14023 as_fn_error $? "conditional \"AMDEP\" was never defined. 14024Usually this means the macro was only invoked conditionally." "$LINENO" 5 14025fi 14026if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14027 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14028Usually this means the macro was only invoked conditionally." "$LINENO" 5 14029fi 14030 if test -n "$EXEEXT"; then 14031 am__EXEEXT_TRUE= 14032 am__EXEEXT_FALSE='#' 14033else 14034 am__EXEEXT_TRUE='#' 14035 am__EXEEXT_FALSE= 14036fi 14037 14038if test -z "${ENABLE_RUNTIME_TESTS_TRUE}" && test -z "${ENABLE_RUNTIME_TESTS_FALSE}"; then 14039 as_fn_error $? "conditional \"ENABLE_RUNTIME_TESTS\" was never defined. 14040Usually this means the macro was only invoked conditionally." "$LINENO" 5 14041fi 14042if test -z "${ENABLE_STATIC_LINK_TEST_TRUE}" && test -z "${ENABLE_STATIC_LINK_TEST_FALSE}"; then 14043 as_fn_error $? "conditional \"ENABLE_STATIC_LINK_TEST\" was never defined. 14044Usually this means the macro was only invoked conditionally." "$LINENO" 5 14045fi 14046if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 14047 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 14048Usually this means the macro was only invoked conditionally." "$LINENO" 5 14049fi 14050if test -z "${GCOV_ENABLED_TRUE}" && test -z "${GCOV_ENABLED_FALSE}"; then 14051 as_fn_error $? "conditional \"GCOV_ENABLED\" was never defined. 14052Usually this means the macro was only invoked conditionally." "$LINENO" 5 14053fi 14054if test -z "${HAVE_NM_TRUE}" && test -z "${HAVE_NM_FALSE}"; then 14055 as_fn_error $? "conditional \"HAVE_NM\" was never defined. 14056Usually this means the macro was only invoked conditionally." "$LINENO" 5 14057fi 14058if test -z "${ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE}" && test -z "${ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE}"; then 14059 as_fn_error $? "conditional \"ENABLE_STATIC_SYMBOL_LEAKS_TEST\" was never defined. 14060Usually this means the macro was only invoked conditionally." "$LINENO" 5 14061fi 14062 14063: "${CONFIG_STATUS=./config.status}" 14064ac_write_fail=0 14065ac_clean_files_save=$ac_clean_files 14066ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14068printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 14069as_write_fail=0 14070cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14071#! $SHELL 14072# Generated by $as_me. 14073# Run this file to recreate the current configuration. 14074# Compiler output produced by configure, useful for debugging 14075# configure, is in config.log if it exists. 14076 14077debug=false 14078ac_cs_recheck=false 14079ac_cs_silent=false 14080 14081SHELL=\${CONFIG_SHELL-$SHELL} 14082export SHELL 14083_ASEOF 14084cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14085## -------------------- ## 14086## M4sh Initialization. ## 14087## -------------------- ## 14088 14089# Be more Bourne compatible 14090DUALCASE=1; export DUALCASE # for MKS sh 14091as_nop=: 14092if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 14093then : 14094 emulate sh 14095 NULLCMD=: 14096 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14097 # is contrary to our usage. Disable this feature. 14098 alias -g '${1+"$@"}'='"$@"' 14099 setopt NO_GLOB_SUBST 14100else $as_nop 14101 case `(set -o) 2>/dev/null` in #( 14102 *posix*) : 14103 set -o posix ;; #( 14104 *) : 14105 ;; 14106esac 14107fi 14108 14109 14110 14111# Reset variables that may have inherited troublesome values from 14112# the environment. 14113 14114# IFS needs to be set, to space, tab, and newline, in precisely that order. 14115# (If _AS_PATH_WALK were called with IFS unset, it would have the 14116# side effect of setting IFS to empty, thus disabling word splitting.) 14117# Quoting is to prevent editors from complaining about space-tab. 14118as_nl=' 14119' 14120export as_nl 14121IFS=" "" $as_nl" 14122 14123PS1='$ ' 14124PS2='> ' 14125PS4='+ ' 14126 14127# Ensure predictable behavior from utilities with locale-dependent output. 14128LC_ALL=C 14129export LC_ALL 14130LANGUAGE=C 14131export LANGUAGE 14132 14133# We cannot yet rely on "unset" to work, but we need these variables 14134# to be unset--not just set to an empty or harmless value--now, to 14135# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 14136# also avoids known problems related to "unset" and subshell syntax 14137# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 14138for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 14139do eval test \${$as_var+y} \ 14140 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14141done 14142 14143# Ensure that fds 0, 1, and 2 are open. 14144if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 14145if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 14146if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 14147 14148# The user is always right. 14149if ${PATH_SEPARATOR+false} :; then 14150 PATH_SEPARATOR=: 14151 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14152 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14153 PATH_SEPARATOR=';' 14154 } 14155fi 14156 14157 14158# Find who we are. Look in the path if we contain no directory separator. 14159as_myself= 14160case $0 in #(( 14161 *[\\/]* ) as_myself=$0 ;; 14162 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14163for as_dir in $PATH 14164do 14165 IFS=$as_save_IFS 14166 case $as_dir in #((( 14167 '') as_dir=./ ;; 14168 */) ;; 14169 *) as_dir=$as_dir/ ;; 14170 esac 14171 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 14172 done 14173IFS=$as_save_IFS 14174 14175 ;; 14176esac 14177# We did not find ourselves, most probably we were run as `sh COMMAND' 14178# in which case we are not to be found in the path. 14179if test "x$as_myself" = x; then 14180 as_myself=$0 14181fi 14182if test ! -f "$as_myself"; then 14183 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14184 exit 1 14185fi 14186 14187 14188 14189# as_fn_error STATUS ERROR [LINENO LOG_FD] 14190# ---------------------------------------- 14191# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14192# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14193# script with STATUS, using 1 if that was 0. 14194as_fn_error () 14195{ 14196 as_status=$1; test $as_status -eq 0 && as_status=1 14197 if test "$4"; then 14198 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14200 fi 14201 printf "%s\n" "$as_me: error: $2" >&2 14202 as_fn_exit $as_status 14203} # as_fn_error 14204 14205 14206 14207# as_fn_set_status STATUS 14208# ----------------------- 14209# Set $? to STATUS, without forking. 14210as_fn_set_status () 14211{ 14212 return $1 14213} # as_fn_set_status 14214 14215# as_fn_exit STATUS 14216# ----------------- 14217# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14218as_fn_exit () 14219{ 14220 set +e 14221 as_fn_set_status $1 14222 exit $1 14223} # as_fn_exit 14224 14225# as_fn_unset VAR 14226# --------------- 14227# Portably unset VAR. 14228as_fn_unset () 14229{ 14230 { eval $1=; unset $1;} 14231} 14232as_unset=as_fn_unset 14233 14234# as_fn_append VAR VALUE 14235# ---------------------- 14236# Append the text in VALUE to the end of the definition contained in VAR. Take 14237# advantage of any shell optimizations that allow amortized linear growth over 14238# repeated appends, instead of the typical quadratic growth present in naive 14239# implementations. 14240if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 14241then : 14242 eval 'as_fn_append () 14243 { 14244 eval $1+=\$2 14245 }' 14246else $as_nop 14247 as_fn_append () 14248 { 14249 eval $1=\$$1\$2 14250 } 14251fi # as_fn_append 14252 14253# as_fn_arith ARG... 14254# ------------------ 14255# Perform arithmetic evaluation on the ARGs, and store the result in the 14256# global $as_val. Take advantage of shells that can avoid forks. The arguments 14257# must be portable across $(()) and expr. 14258if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 14259then : 14260 eval 'as_fn_arith () 14261 { 14262 as_val=$(( $* )) 14263 }' 14264else $as_nop 14265 as_fn_arith () 14266 { 14267 as_val=`expr "$@" || test $? -eq 1` 14268 } 14269fi # as_fn_arith 14270 14271 14272if expr a : '\(a\)' >/dev/null 2>&1 && 14273 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14274 as_expr=expr 14275else 14276 as_expr=false 14277fi 14278 14279if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14280 as_basename=basename 14281else 14282 as_basename=false 14283fi 14284 14285if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14286 as_dirname=dirname 14287else 14288 as_dirname=false 14289fi 14290 14291as_me=`$as_basename -- "$0" || 14292$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14293 X"$0" : 'X\(//\)$' \| \ 14294 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14295printf "%s\n" X/"$0" | 14296 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14297 s//\1/ 14298 q 14299 } 14300 /^X\/\(\/\/\)$/{ 14301 s//\1/ 14302 q 14303 } 14304 /^X\/\(\/\).*/{ 14305 s//\1/ 14306 q 14307 } 14308 s/.*/./; q'` 14309 14310# Avoid depending upon Character Ranges. 14311as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14312as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14313as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14314as_cr_digits='0123456789' 14315as_cr_alnum=$as_cr_Letters$as_cr_digits 14316 14317 14318# Determine whether it's possible to make 'echo' print without a newline. 14319# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 14320# for compatibility with existing Makefiles. 14321ECHO_C= ECHO_N= ECHO_T= 14322case `echo -n x` in #((((( 14323-n*) 14324 case `echo 'xy\c'` in 14325 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14326 xy) ECHO_C='\c';; 14327 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14328 ECHO_T=' ';; 14329 esac;; 14330*) 14331 ECHO_N='-n';; 14332esac 14333 14334# For backward compatibility with old third-party macros, we provide 14335# the shell variables $as_echo and $as_echo_n. New code should use 14336# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 14337as_echo='printf %s\n' 14338as_echo_n='printf %s' 14339 14340rm -f conf$$ conf$$.exe conf$$.file 14341if test -d conf$$.dir; then 14342 rm -f conf$$.dir/conf$$.file 14343else 14344 rm -f conf$$.dir 14345 mkdir conf$$.dir 2>/dev/null 14346fi 14347if (echo >conf$$.file) 2>/dev/null; then 14348 if ln -s conf$$.file conf$$ 2>/dev/null; then 14349 as_ln_s='ln -s' 14350 # ... but there are two gotchas: 14351 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14352 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14353 # In both cases, we have to default to `cp -pR'. 14354 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14355 as_ln_s='cp -pR' 14356 elif ln conf$$.file conf$$ 2>/dev/null; then 14357 as_ln_s=ln 14358 else 14359 as_ln_s='cp -pR' 14360 fi 14361else 14362 as_ln_s='cp -pR' 14363fi 14364rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14365rmdir conf$$.dir 2>/dev/null 14366 14367 14368# as_fn_mkdir_p 14369# ------------- 14370# Create "$as_dir" as a directory, including parents if necessary. 14371as_fn_mkdir_p () 14372{ 14373 14374 case $as_dir in #( 14375 -*) as_dir=./$as_dir;; 14376 esac 14377 test -d "$as_dir" || eval $as_mkdir_p || { 14378 as_dirs= 14379 while :; do 14380 case $as_dir in #( 14381 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14382 *) as_qdir=$as_dir;; 14383 esac 14384 as_dirs="'$as_qdir' $as_dirs" 14385 as_dir=`$as_dirname -- "$as_dir" || 14386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14387 X"$as_dir" : 'X\(//\)[^/]' \| \ 14388 X"$as_dir" : 'X\(//\)$' \| \ 14389 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14390printf "%s\n" X"$as_dir" | 14391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14392 s//\1/ 14393 q 14394 } 14395 /^X\(\/\/\)[^/].*/{ 14396 s//\1/ 14397 q 14398 } 14399 /^X\(\/\/\)$/{ 14400 s//\1/ 14401 q 14402 } 14403 /^X\(\/\).*/{ 14404 s//\1/ 14405 q 14406 } 14407 s/.*/./; q'` 14408 test -d "$as_dir" && break 14409 done 14410 test -z "$as_dirs" || eval "mkdir $as_dirs" 14411 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14412 14413 14414} # as_fn_mkdir_p 14415if mkdir -p . 2>/dev/null; then 14416 as_mkdir_p='mkdir -p "$as_dir"' 14417else 14418 test -d ./-p && rmdir ./-p 14419 as_mkdir_p=false 14420fi 14421 14422 14423# as_fn_executable_p FILE 14424# ----------------------- 14425# Test if FILE is an executable regular file. 14426as_fn_executable_p () 14427{ 14428 test -f "$1" && test -x "$1" 14429} # as_fn_executable_p 14430as_test_x='test -x' 14431as_executable_p=as_fn_executable_p 14432 14433# Sed expression to map a string onto a valid CPP name. 14434as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14435 14436# Sed expression to map a string onto a valid variable name. 14437as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14438 14439 14440exec 6>&1 14441## ----------------------------------- ## 14442## Main body of $CONFIG_STATUS script. ## 14443## ----------------------------------- ## 14444_ASEOF 14445test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14446 14447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14448# Save the log message, to keep $0 and so on meaningful, and to 14449# report actual input values of CONFIG_FILES etc. instead of their 14450# values after options handling. 14451ac_log=" 14452This file was extended by libevdev $as_me 1.13.1, which was 14453generated by GNU Autoconf 2.71. Invocation command line was 14454 14455 CONFIG_FILES = $CONFIG_FILES 14456 CONFIG_HEADERS = $CONFIG_HEADERS 14457 CONFIG_LINKS = $CONFIG_LINKS 14458 CONFIG_COMMANDS = $CONFIG_COMMANDS 14459 $ $0 $@ 14460 14461on `(hostname || uname -n) 2>/dev/null | sed 1q` 14462" 14463 14464_ACEOF 14465 14466case $ac_config_files in *" 14467"*) set x $ac_config_files; shift; ac_config_files=$*;; 14468esac 14469 14470case $ac_config_headers in *" 14471"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14472esac 14473 14474 14475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14476# Files that config.status was made for. 14477config_files="$ac_config_files" 14478config_headers="$ac_config_headers" 14479config_commands="$ac_config_commands" 14480 14481_ACEOF 14482 14483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14484ac_cs_usage="\ 14485\`$as_me' instantiates files and other configuration actions 14486from templates according to the current configuration. Unless the files 14487and actions are specified as TAGs, all are instantiated by default. 14488 14489Usage: $0 [OPTION]... [TAG]... 14490 14491 -h, --help print this help, then exit 14492 -V, --version print version number and configuration settings, then exit 14493 --config print configuration, then exit 14494 -q, --quiet, --silent 14495 do not print progress messages 14496 -d, --debug don't remove temporary files 14497 --recheck update $as_me by reconfiguring in the same conditions 14498 --file=FILE[:TEMPLATE] 14499 instantiate the configuration file FILE 14500 --header=FILE[:TEMPLATE] 14501 instantiate the configuration header FILE 14502 14503Configuration files: 14504$config_files 14505 14506Configuration headers: 14507$config_headers 14508 14509Configuration commands: 14510$config_commands 14511 14512Report bugs to <https://gitlab.freedesktop.org/libevdev/libevdev/issues/>. 14513libevdev home page: <http://freedesktop.org/wiki/Software/libevdev/>." 14514 14515_ACEOF 14516ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 14517ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 14518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14519ac_cs_config='$ac_cs_config_escaped' 14520ac_cs_version="\\ 14521libevdev config.status 1.13.1 14522configured by $0, generated by GNU Autoconf 2.71, 14523 with options \\"\$ac_cs_config\\" 14524 14525Copyright (C) 2021 Free Software Foundation, Inc. 14526This config.status script is free software; the Free Software Foundation 14527gives unlimited permission to copy, distribute and modify it." 14528 14529ac_pwd='$ac_pwd' 14530srcdir='$srcdir' 14531INSTALL='$INSTALL' 14532MKDIR_P='$MKDIR_P' 14533AWK='$AWK' 14534test -n "\$AWK" || AWK=awk 14535_ACEOF 14536 14537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14538# The default lists apply if the user does not specify any file. 14539ac_need_defaults=: 14540while test $# != 0 14541do 14542 case $1 in 14543 --*=?*) 14544 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14545 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14546 ac_shift=: 14547 ;; 14548 --*=) 14549 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14550 ac_optarg= 14551 ac_shift=: 14552 ;; 14553 *) 14554 ac_option=$1 14555 ac_optarg=$2 14556 ac_shift=shift 14557 ;; 14558 esac 14559 14560 case $ac_option in 14561 # Handling of the options. 14562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14563 ac_cs_recheck=: ;; 14564 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14565 printf "%s\n" "$ac_cs_version"; exit ;; 14566 --config | --confi | --conf | --con | --co | --c ) 14567 printf "%s\n" "$ac_cs_config"; exit ;; 14568 --debug | --debu | --deb | --de | --d | -d ) 14569 debug=: ;; 14570 --file | --fil | --fi | --f ) 14571 $ac_shift 14572 case $ac_optarg in 14573 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14574 '') as_fn_error $? "missing file argument" ;; 14575 esac 14576 as_fn_append CONFIG_FILES " '$ac_optarg'" 14577 ac_need_defaults=false;; 14578 --header | --heade | --head | --hea ) 14579 $ac_shift 14580 case $ac_optarg in 14581 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14582 esac 14583 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14584 ac_need_defaults=false;; 14585 --he | --h) 14586 # Conflict between --help and --header 14587 as_fn_error $? "ambiguous option: \`$1' 14588Try \`$0 --help' for more information.";; 14589 --help | --hel | -h ) 14590 printf "%s\n" "$ac_cs_usage"; exit ;; 14591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14592 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14593 ac_cs_silent=: ;; 14594 14595 # This is an error. 14596 -*) as_fn_error $? "unrecognized option: \`$1' 14597Try \`$0 --help' for more information." ;; 14598 14599 *) as_fn_append ac_config_targets " $1" 14600 ac_need_defaults=false ;; 14601 14602 esac 14603 shift 14604done 14605 14606ac_configure_extra_args= 14607 14608if $ac_cs_silent; then 14609 exec 6>/dev/null 14610 ac_configure_extra_args="$ac_configure_extra_args --silent" 14611fi 14612 14613_ACEOF 14614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14615if \$ac_cs_recheck; then 14616 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14617 shift 14618 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 14619 CONFIG_SHELL='$SHELL' 14620 export CONFIG_SHELL 14621 exec "\$@" 14622fi 14623 14624_ACEOF 14625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14626exec 5>>config.log 14627{ 14628 echo 14629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14630## Running $as_me. ## 14631_ASBOX 14632 printf "%s\n" "$ac_log" 14633} >&5 14634 14635_ACEOF 14636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14637# 14638# INIT-COMMANDS 14639# 14640AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14641 14642 14643# The HP-UX ksh and POSIX shell print the target directory to stdout 14644# if CDPATH is set. 14645(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14646 14647sed_quote_subst='$sed_quote_subst' 14648double_quote_subst='$double_quote_subst' 14649delay_variable_subst='$delay_variable_subst' 14650macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14651macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14652enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14653enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14654pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14655enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14656shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14657SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14658ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14659PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14660host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14661host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14662host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14663build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14664build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14665build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14666SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14667Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14668GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14669EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14670FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14671LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14672NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14673LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14674max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14675ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14676exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14677lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14678lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14679lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14680lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14681lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14682reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14683reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14684FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 14685OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14686deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14687file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14688file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14689want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14690DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14691sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14692AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14693lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 14694AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14695archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14696STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14697RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14698old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14699old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14700old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14701lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14702CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14703CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14704compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14705GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14706lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14707lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14708lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14709lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14710lt_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"`' 14711lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14712nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14713lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14714lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14715objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14716MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14717lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14718lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14719lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14720lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14721lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14722need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14723MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14724DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14725NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14726LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14727OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14728OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14729libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14730shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14731extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14732archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14733enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14734export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14735whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14736compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14737old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14738old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14739archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14740archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14741module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14742module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14743with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14744allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14745no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14746hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14747hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14748hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14749hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14750hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14751hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14752hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14753inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14754link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14755always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14756export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14757exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14758include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14759prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14760postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14761file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14762variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14763need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14764need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14765version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14766runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14767shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14768shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14769libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14770library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14771soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14772install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14773postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14774postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14775finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14776finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14777hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14778sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14779configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14780configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14781hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14782enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14783enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14784enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14785old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14786striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14787 14788LTCC='$LTCC' 14789LTCFLAGS='$LTCFLAGS' 14790compiler='$compiler_DEFAULT' 14791 14792# A function that is used when there is no print builtin or printf. 14793func_fallback_echo () 14794{ 14795 eval 'cat <<_LTECHO_EOF 14796\$1 14797_LTECHO_EOF' 14798} 14799 14800# Quote evaled strings. 14801for var in SHELL \ 14802ECHO \ 14803PATH_SEPARATOR \ 14804SED \ 14805GREP \ 14806EGREP \ 14807FGREP \ 14808LD \ 14809NM \ 14810LN_S \ 14811lt_SP2NL \ 14812lt_NL2SP \ 14813reload_flag \ 14814FILECMD \ 14815OBJDUMP \ 14816deplibs_check_method \ 14817file_magic_cmd \ 14818file_magic_glob \ 14819want_nocaseglob \ 14820DLLTOOL \ 14821sharedlib_from_linklib_cmd \ 14822AR \ 14823archiver_list_spec \ 14824STRIP \ 14825RANLIB \ 14826CC \ 14827CFLAGS \ 14828compiler \ 14829lt_cv_sys_global_symbol_pipe \ 14830lt_cv_sys_global_symbol_to_cdecl \ 14831lt_cv_sys_global_symbol_to_import \ 14832lt_cv_sys_global_symbol_to_c_name_address \ 14833lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14834lt_cv_nm_interface \ 14835nm_file_list_spec \ 14836lt_cv_truncate_bin \ 14837lt_prog_compiler_no_builtin_flag \ 14838lt_prog_compiler_pic \ 14839lt_prog_compiler_wl \ 14840lt_prog_compiler_static \ 14841lt_cv_prog_compiler_c_o \ 14842need_locks \ 14843MANIFEST_TOOL \ 14844DSYMUTIL \ 14845NMEDIT \ 14846LIPO \ 14847OTOOL \ 14848OTOOL64 \ 14849shrext_cmds \ 14850export_dynamic_flag_spec \ 14851whole_archive_flag_spec \ 14852compiler_needs_object \ 14853with_gnu_ld \ 14854allow_undefined_flag \ 14855no_undefined_flag \ 14856hardcode_libdir_flag_spec \ 14857hardcode_libdir_separator \ 14858exclude_expsyms \ 14859include_expsyms \ 14860file_list_spec \ 14861variables_saved_for_relink \ 14862libname_spec \ 14863library_names_spec \ 14864soname_spec \ 14865install_override_mode \ 14866finish_eval \ 14867old_striplib \ 14868striplib; do 14869 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14870 *[\\\\\\\`\\"\\\$]*) 14871 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14872 ;; 14873 *) 14874 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14875 ;; 14876 esac 14877done 14878 14879# Double-quote double-evaled strings. 14880for var in reload_cmds \ 14881old_postinstall_cmds \ 14882old_postuninstall_cmds \ 14883old_archive_cmds \ 14884extract_expsyms_cmds \ 14885old_archive_from_new_cmds \ 14886old_archive_from_expsyms_cmds \ 14887archive_cmds \ 14888archive_expsym_cmds \ 14889module_cmds \ 14890module_expsym_cmds \ 14891export_symbols_cmds \ 14892prelink_cmds \ 14893postlink_cmds \ 14894postinstall_cmds \ 14895postuninstall_cmds \ 14896finish_cmds \ 14897sys_lib_search_path_spec \ 14898configure_time_dlsearch_path \ 14899configure_time_lt_sys_library_path; do 14900 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14901 *[\\\\\\\`\\"\\\$]*) 14902 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14903 ;; 14904 *) 14905 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14906 ;; 14907 esac 14908done 14909 14910ac_aux_dir='$ac_aux_dir' 14911 14912# See if we are running on zsh, and set the options that allow our 14913# commands through without removal of \ escapes INIT. 14914if test -n "\${ZSH_VERSION+set}"; then 14915 setopt NO_GLOB_SUBST 14916fi 14917 14918 14919 PACKAGE='$PACKAGE' 14920 VERSION='$VERSION' 14921 RM='$RM' 14922 ofile='$ofile' 14923 14924 14925 14926 14927_ACEOF 14928 14929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14930 14931# Handling of arguments. 14932for ac_config_target in $ac_config_targets 14933do 14934 case $ac_config_target in 14935 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14936 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14937 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14938 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14939 "libevdev/Makefile") CONFIG_FILES="$CONFIG_FILES libevdev/Makefile" ;; 14940 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14941 "doc/libevdev.doxygen") CONFIG_FILES="$CONFIG_FILES doc/libevdev.doxygen" ;; 14942 "doc/libevdev.man") CONFIG_FILES="$CONFIG_FILES doc/libevdev.man" ;; 14943 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 14944 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 14945 "libevdev.pc") CONFIG_FILES="$CONFIG_FILES libevdev.pc" ;; 14946 14947 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14948 esac 14949done 14950 14951 14952# If the user did not use the arguments to specify the items to instantiate, 14953# then the envvar interface is used. Set only those that are not. 14954# We use the long form for the default assignment because of an extremely 14955# bizarre bug on SunOS 4.1.3. 14956if $ac_need_defaults; then 14957 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 14958 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 14959 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 14960fi 14961 14962# Have a temporary directory for convenience. Make it in the build tree 14963# simply because there is no reason against having it here, and in addition, 14964# creating and moving files from /tmp can sometimes cause problems. 14965# Hook for its removal unless debugging. 14966# Note that there is a small window in which the directory will not be cleaned: 14967# after its creation but before its name has been assigned to `$tmp'. 14968$debug || 14969{ 14970 tmp= ac_tmp= 14971 trap 'exit_status=$? 14972 : "${ac_tmp:=$tmp}" 14973 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14974' 0 14975 trap 'as_fn_exit 1' 1 2 13 15 14976} 14977# Create a (secure) tmp directory for tmp files. 14978 14979{ 14980 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14981 test -d "$tmp" 14982} || 14983{ 14984 tmp=./conf$$-$RANDOM 14985 (umask 077 && mkdir "$tmp") 14986} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14987ac_tmp=$tmp 14988 14989# Set up the scripts for CONFIG_FILES section. 14990# No need to generate them if there are no CONFIG_FILES. 14991# This happens for instance with `./config.status config.h'. 14992if test -n "$CONFIG_FILES"; then 14993 14994 14995ac_cr=`echo X | tr X '\015'` 14996# On cygwin, bash can eat \r inside `` if the user requested igncr. 14997# But we know of no other shell where ac_cr would be empty at this 14998# point, so we can use a bashism as a fallback. 14999if test "x$ac_cr" = x; then 15000 eval ac_cr=\$\'\\r\' 15001fi 15002ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15003if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15004 ac_cs_awk_cr='\\r' 15005else 15006 ac_cs_awk_cr=$ac_cr 15007fi 15008 15009echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15010_ACEOF 15011 15012 15013{ 15014 echo "cat >conf$$subs.awk <<_ACEOF" && 15015 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15016 echo "_ACEOF" 15017} >conf$$subs.sh || 15018 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15019ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15020ac_delim='%!_!# ' 15021for ac_last_try in false false false false false :; do 15022 . ./conf$$subs.sh || 15023 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15024 15025 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15026 if test $ac_delim_n = $ac_delim_num; then 15027 break 15028 elif $ac_last_try; then 15029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15030 else 15031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15032 fi 15033done 15034rm -f conf$$subs.sh 15035 15036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15037cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15038_ACEOF 15039sed -n ' 15040h 15041s/^/S["/; s/!.*/"]=/ 15042p 15043g 15044s/^[^!]*!// 15045:repl 15046t repl 15047s/'"$ac_delim"'$// 15048t delim 15049:nl 15050h 15051s/\(.\{148\}\)..*/\1/ 15052t more1 15053s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15054p 15055n 15056b repl 15057:more1 15058s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15059p 15060g 15061s/.\{148\}// 15062t nl 15063:delim 15064h 15065s/\(.\{148\}\)..*/\1/ 15066t more2 15067s/["\\]/\\&/g; s/^/"/; s/$/"/ 15068p 15069b 15070:more2 15071s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15072p 15073g 15074s/.\{148\}// 15075t delim 15076' <conf$$subs.awk | sed ' 15077/^[^""]/{ 15078 N 15079 s/\n// 15080} 15081' >>$CONFIG_STATUS || ac_write_fail=1 15082rm -f conf$$subs.awk 15083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15084_ACAWK 15085cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15086 for (key in S) S_is_set[key] = 1 15087 FS = "" 15088 15089} 15090{ 15091 line = $ 0 15092 nfields = split(line, field, "@") 15093 substed = 0 15094 len = length(field[1]) 15095 for (i = 2; i < nfields; i++) { 15096 key = field[i] 15097 keylen = length(key) 15098 if (S_is_set[key]) { 15099 value = S[key] 15100 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15101 len += length(value) + length(field[++i]) 15102 substed = 1 15103 } else 15104 len += 1 + keylen 15105 } 15106 15107 print line 15108} 15109 15110_ACAWK 15111_ACEOF 15112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15113if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15114 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15115else 15116 cat 15117fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15118 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15119_ACEOF 15120 15121# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15122# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15123# trailing colons and then remove the whole line if VPATH becomes empty 15124# (actually we leave an empty line to preserve line numbers). 15125if test "x$srcdir" = x.; then 15126 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15127h 15128s/// 15129s/^/:/ 15130s/[ ]*$/:/ 15131s/:\$(srcdir):/:/g 15132s/:\${srcdir}:/:/g 15133s/:@srcdir@:/:/g 15134s/^:*// 15135s/:*$// 15136x 15137s/\(=[ ]*\).*/\1/ 15138G 15139s/\n// 15140s/^[^=]*=[ ]*$// 15141}' 15142fi 15143 15144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15145fi # test -n "$CONFIG_FILES" 15146 15147# Set up the scripts for CONFIG_HEADERS section. 15148# No need to generate them if there are no CONFIG_HEADERS. 15149# This happens for instance with `./config.status Makefile'. 15150if test -n "$CONFIG_HEADERS"; then 15151cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15152BEGIN { 15153_ACEOF 15154 15155# Transform confdefs.h into an awk script `defines.awk', embedded as 15156# here-document in config.status, that substitutes the proper values into 15157# config.h.in to produce config.h. 15158 15159# Create a delimiter string that does not exist in confdefs.h, to ease 15160# handling of long lines. 15161ac_delim='%!_!# ' 15162for ac_last_try in false false :; do 15163 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15164 if test -z "$ac_tt"; then 15165 break 15166 elif $ac_last_try; then 15167 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15168 else 15169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15170 fi 15171done 15172 15173# For the awk script, D is an array of macro values keyed by name, 15174# likewise P contains macro parameters if any. Preserve backslash 15175# newline sequences. 15176 15177ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15178sed -n ' 15179s/.\{148\}/&'"$ac_delim"'/g 15180t rset 15181:rset 15182s/^[ ]*#[ ]*define[ ][ ]*/ / 15183t def 15184d 15185:def 15186s/\\$// 15187t bsnl 15188s/["\\]/\\&/g 15189s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15190D["\1"]=" \3"/p 15191s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15192d 15193:bsnl 15194s/["\\]/\\&/g 15195s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15196D["\1"]=" \3\\\\\\n"\\/p 15197t cont 15198s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15199t cont 15200d 15201:cont 15202n 15203s/.\{148\}/&'"$ac_delim"'/g 15204t clear 15205:clear 15206s/\\$// 15207t bsnlc 15208s/["\\]/\\&/g; s/^/"/; s/$/"/p 15209d 15210:bsnlc 15211s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15212b cont 15213' <confdefs.h | sed ' 15214s/'"$ac_delim"'/"\\\ 15215"/g' >>$CONFIG_STATUS || ac_write_fail=1 15216 15217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15218 for (key in D) D_is_set[key] = 1 15219 FS = "" 15220} 15221/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15222 line = \$ 0 15223 split(line, arg, " ") 15224 if (arg[1] == "#") { 15225 defundef = arg[2] 15226 mac1 = arg[3] 15227 } else { 15228 defundef = substr(arg[1], 2) 15229 mac1 = arg[2] 15230 } 15231 split(mac1, mac2, "(") #) 15232 macro = mac2[1] 15233 prefix = substr(line, 1, index(line, defundef) - 1) 15234 if (D_is_set[macro]) { 15235 # Preserve the white space surrounding the "#". 15236 print prefix "define", macro P[macro] D[macro] 15237 next 15238 } else { 15239 # Replace #undef with comments. This is necessary, for example, 15240 # in the case of _POSIX_SOURCE, which is predefined and required 15241 # on some systems where configure will not decide to define it. 15242 if (defundef == "undef") { 15243 print "/*", prefix defundef, macro, "*/" 15244 next 15245 } 15246 } 15247} 15248{ print } 15249_ACAWK 15250_ACEOF 15251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15252 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15253fi # test -n "$CONFIG_HEADERS" 15254 15255 15256eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15257shift 15258for ac_tag 15259do 15260 case $ac_tag in 15261 :[FHLC]) ac_mode=$ac_tag; continue;; 15262 esac 15263 case $ac_mode$ac_tag in 15264 :[FHL]*:*);; 15265 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15266 :[FH]-) ac_tag=-:-;; 15267 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15268 esac 15269 ac_save_IFS=$IFS 15270 IFS=: 15271 set x $ac_tag 15272 IFS=$ac_save_IFS 15273 shift 15274 ac_file=$1 15275 shift 15276 15277 case $ac_mode in 15278 :L) ac_source=$1;; 15279 :[FH]) 15280 ac_file_inputs= 15281 for ac_f 15282 do 15283 case $ac_f in 15284 -) ac_f="$ac_tmp/stdin";; 15285 *) # Look for the file first in the build tree, then in the source tree 15286 # (if the path is not absolute). The absolute path cannot be DOS-style, 15287 # because $ac_f cannot contain `:'. 15288 test -f "$ac_f" || 15289 case $ac_f in 15290 [\\/$]*) false;; 15291 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15292 esac || 15293 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15294 esac 15295 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15296 as_fn_append ac_file_inputs " '$ac_f'" 15297 done 15298 15299 # Let's still pretend it is `configure' which instantiates (i.e., don't 15300 # use $as_me), people would be surprised to read: 15301 # /* config.h. Generated by config.status. */ 15302 configure_input='Generated from '` 15303 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15304 `' by configure.' 15305 if test x"$ac_file" != x-; then 15306 configure_input="$ac_file. $configure_input" 15307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15308printf "%s\n" "$as_me: creating $ac_file" >&6;} 15309 fi 15310 # Neutralize special characters interpreted by sed in replacement strings. 15311 case $configure_input in #( 15312 *\&* | *\|* | *\\* ) 15313 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 15314 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15315 *) ac_sed_conf_input=$configure_input;; 15316 esac 15317 15318 case $ac_tag in 15319 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15320 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15321 esac 15322 ;; 15323 esac 15324 15325 ac_dir=`$as_dirname -- "$ac_file" || 15326$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15327 X"$ac_file" : 'X\(//\)[^/]' \| \ 15328 X"$ac_file" : 'X\(//\)$' \| \ 15329 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15330printf "%s\n" X"$ac_file" | 15331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15332 s//\1/ 15333 q 15334 } 15335 /^X\(\/\/\)[^/].*/{ 15336 s//\1/ 15337 q 15338 } 15339 /^X\(\/\/\)$/{ 15340 s//\1/ 15341 q 15342 } 15343 /^X\(\/\).*/{ 15344 s//\1/ 15345 q 15346 } 15347 s/.*/./; q'` 15348 as_dir="$ac_dir"; as_fn_mkdir_p 15349 ac_builddir=. 15350 15351case "$ac_dir" in 15352.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15353*) 15354 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 15355 # A ".." for each directory in $ac_dir_suffix. 15356 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15357 case $ac_top_builddir_sub in 15358 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15359 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15360 esac ;; 15361esac 15362ac_abs_top_builddir=$ac_pwd 15363ac_abs_builddir=$ac_pwd$ac_dir_suffix 15364# for backward compatibility: 15365ac_top_builddir=$ac_top_build_prefix 15366 15367case $srcdir in 15368 .) # We are building in place. 15369 ac_srcdir=. 15370 ac_top_srcdir=$ac_top_builddir_sub 15371 ac_abs_top_srcdir=$ac_pwd ;; 15372 [\\/]* | ?:[\\/]* ) # Absolute name. 15373 ac_srcdir=$srcdir$ac_dir_suffix; 15374 ac_top_srcdir=$srcdir 15375 ac_abs_top_srcdir=$srcdir ;; 15376 *) # Relative name. 15377 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15378 ac_top_srcdir=$ac_top_build_prefix$srcdir 15379 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15380esac 15381ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15382 15383 15384 case $ac_mode in 15385 :F) 15386 # 15387 # CONFIG_FILE 15388 # 15389 15390 case $INSTALL in 15391 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15392 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15393 esac 15394 ac_MKDIR_P=$MKDIR_P 15395 case $MKDIR_P in 15396 [\\/$]* | ?:[\\/]* ) ;; 15397 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15398 esac 15399_ACEOF 15400 15401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15402# If the template does not know about datarootdir, expand it. 15403# FIXME: This hack should be removed a few years after 2.60. 15404ac_datarootdir_hack=; ac_datarootdir_seen= 15405ac_sed_dataroot=' 15406/datarootdir/ { 15407 p 15408 q 15409} 15410/@datadir@/p 15411/@docdir@/p 15412/@infodir@/p 15413/@localedir@/p 15414/@mandir@/p' 15415case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15416*datarootdir*) ac_datarootdir_seen=yes;; 15417*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15419printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15420_ACEOF 15421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15422 ac_datarootdir_hack=' 15423 s&@datadir@&$datadir&g 15424 s&@docdir@&$docdir&g 15425 s&@infodir@&$infodir&g 15426 s&@localedir@&$localedir&g 15427 s&@mandir@&$mandir&g 15428 s&\\\${datarootdir}&$datarootdir&g' ;; 15429esac 15430_ACEOF 15431 15432# Neutralize VPATH when `$srcdir' = `.'. 15433# Shell code in configure.ac might set extrasub. 15434# FIXME: do we really want to maintain this feature? 15435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15436ac_sed_extra="$ac_vpsub 15437$extrasub 15438_ACEOF 15439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15440:t 15441/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15442s|@configure_input@|$ac_sed_conf_input|;t t 15443s&@top_builddir@&$ac_top_builddir_sub&;t t 15444s&@top_build_prefix@&$ac_top_build_prefix&;t t 15445s&@srcdir@&$ac_srcdir&;t t 15446s&@abs_srcdir@&$ac_abs_srcdir&;t t 15447s&@top_srcdir@&$ac_top_srcdir&;t t 15448s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15449s&@builddir@&$ac_builddir&;t t 15450s&@abs_builddir@&$ac_abs_builddir&;t t 15451s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15452s&@INSTALL@&$ac_INSTALL&;t t 15453s&@MKDIR_P@&$ac_MKDIR_P&;t t 15454$ac_datarootdir_hack 15455" 15456eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15457 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15458 15459test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15460 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15461 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15462 "$ac_tmp/out"`; test -z "$ac_out"; } && 15463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15464which seems to be undefined. Please make sure it is defined" >&5 15465printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15466which seems to be undefined. Please make sure it is defined" >&2;} 15467 15468 rm -f "$ac_tmp/stdin" 15469 case $ac_file in 15470 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15471 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15472 esac \ 15473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15474 ;; 15475 :H) 15476 # 15477 # CONFIG_HEADER 15478 # 15479 if test x"$ac_file" != x-; then 15480 { 15481 printf "%s\n" "/* $configure_input */" >&1 \ 15482 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15483 } >"$ac_tmp/config.h" \ 15484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15485 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15487printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 15488 else 15489 rm -f "$ac_file" 15490 mv "$ac_tmp/config.h" "$ac_file" \ 15491 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15492 fi 15493 else 15494 printf "%s\n" "/* $configure_input */" >&1 \ 15495 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15496 || as_fn_error $? "could not create -" "$LINENO" 5 15497 fi 15498# Compute "$ac_file"'s index in $config_headers. 15499_am_arg="$ac_file" 15500_am_stamp_count=1 15501for _am_header in $config_headers :; do 15502 case $_am_header in 15503 $_am_arg | $_am_arg:* ) 15504 break ;; 15505 * ) 15506 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15507 esac 15508done 15509echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15510$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15511 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15512 X"$_am_arg" : 'X\(//\)$' \| \ 15513 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15514printf "%s\n" X"$_am_arg" | 15515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15516 s//\1/ 15517 q 15518 } 15519 /^X\(\/\/\)[^/].*/{ 15520 s//\1/ 15521 q 15522 } 15523 /^X\(\/\/\)$/{ 15524 s//\1/ 15525 q 15526 } 15527 /^X\(\/\).*/{ 15528 s//\1/ 15529 q 15530 } 15531 s/.*/./; q'`/stamp-h$_am_stamp_count 15532 ;; 15533 15534 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15535printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 15536 ;; 15537 esac 15538 15539 15540 case $ac_file$ac_mode in 15541 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15542 # Older Autoconf quotes --file arguments for eval, but not when files 15543 # are listed without --file. Let's play safe and only enable the eval 15544 # if we detect the quoting. 15545 # TODO: see whether this extra hack can be removed once we start 15546 # requiring Autoconf 2.70 or later. 15547 case $CONFIG_FILES in #( 15548 *\'*) : 15549 eval set x "$CONFIG_FILES" ;; #( 15550 *) : 15551 set x $CONFIG_FILES ;; #( 15552 *) : 15553 ;; 15554esac 15555 shift 15556 # Used to flag and report bootstrapping failures. 15557 am_rc=0 15558 for am_mf 15559 do 15560 # Strip MF so we end up with the name of the file. 15561 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 15562 # Check whether this is an Automake generated Makefile which includes 15563 # dependency-tracking related rules and includes. 15564 # Grep'ing the whole file directly is not great: AIX grep has a line 15565 # limit of 2048, but all sed's we know have understand at least 4000. 15566 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15567 || continue 15568 am_dirpart=`$as_dirname -- "$am_mf" || 15569$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15570 X"$am_mf" : 'X\(//\)[^/]' \| \ 15571 X"$am_mf" : 'X\(//\)$' \| \ 15572 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15573printf "%s\n" X"$am_mf" | 15574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15575 s//\1/ 15576 q 15577 } 15578 /^X\(\/\/\)[^/].*/{ 15579 s//\1/ 15580 q 15581 } 15582 /^X\(\/\/\)$/{ 15583 s//\1/ 15584 q 15585 } 15586 /^X\(\/\).*/{ 15587 s//\1/ 15588 q 15589 } 15590 s/.*/./; q'` 15591 am_filepart=`$as_basename -- "$am_mf" || 15592$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15593 X"$am_mf" : 'X\(//\)$' \| \ 15594 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15595printf "%s\n" X/"$am_mf" | 15596 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15597 s//\1/ 15598 q 15599 } 15600 /^X\/\(\/\/\)$/{ 15601 s//\1/ 15602 q 15603 } 15604 /^X\/\(\/\).*/{ 15605 s//\1/ 15606 q 15607 } 15608 s/.*/./; q'` 15609 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15610 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15611 | $MAKE -f - am--depfiles" >&5 15612 (cd "$am_dirpart" \ 15613 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15614 | $MAKE -f - am--depfiles) >&5 2>&5 15615 ac_status=$? 15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15617 (exit $ac_status); } || am_rc=$? 15618 done 15619 if test $am_rc -ne 0; then 15620 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15621printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15622as_fn_error $? "Something went wrong bootstrapping makefile fragments 15623 for automatic dependency tracking. If GNU make was not used, consider 15624 re-running the configure script with MAKE=\"gmake\" (or whatever is 15625 necessary). You can also try re-running configure with the 15626 '--disable-dependency-tracking' option to at least be able to build 15627 the package (albeit without support for automatic dependency tracking). 15628See \`config.log' for more details" "$LINENO" 5; } 15629 fi 15630 { am_dirpart=; unset am_dirpart;} 15631 { am_filepart=; unset am_filepart;} 15632 { am_mf=; unset am_mf;} 15633 { am_rc=; unset am_rc;} 15634 rm -f conftest-deps.mk 15635} 15636 ;; 15637 "libtool":C) 15638 15639 # See if we are running on zsh, and set the options that allow our 15640 # commands through without removal of \ escapes. 15641 if test -n "${ZSH_VERSION+set}"; then 15642 setopt NO_GLOB_SUBST 15643 fi 15644 15645 cfgfile=${ofile}T 15646 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15647 $RM "$cfgfile" 15648 15649 cat <<_LT_EOF >> "$cfgfile" 15650#! $SHELL 15651# Generated automatically by $as_me ($PACKAGE) $VERSION 15652# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15653# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15654 15655# Provide generalized library-building support services. 15656# Written by Gordon Matzigkeit, 1996 15657 15658# Copyright (C) 2014 Free Software Foundation, Inc. 15659# This is free software; see the source for copying conditions. There is NO 15660# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15661 15662# GNU Libtool is free software; you can redistribute it and/or modify 15663# it under the terms of the GNU General Public License as published by 15664# the Free Software Foundation; either version 2 of of the License, or 15665# (at your option) any later version. 15666# 15667# As a special exception to the GNU General Public License, if you 15668# distribute this file as part of a program or library that is built 15669# using GNU Libtool, you may include this file under the same 15670# distribution terms that you use for the rest of that program. 15671# 15672# GNU Libtool is distributed in the hope that it will be useful, but 15673# WITHOUT ANY WARRANTY; without even the implied warranty of 15674# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15675# GNU General Public License for more details. 15676# 15677# You should have received a copy of the GNU General Public License 15678# along with this program. If not, see <http://www.gnu.org/licenses/>. 15679 15680 15681# The names of the tagged configurations supported by this script. 15682available_tags='' 15683 15684# Configured defaults for sys_lib_dlsearch_path munging. 15685: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15686 15687# ### BEGIN LIBTOOL CONFIG 15688 15689# Which release of libtool.m4 was used? 15690macro_version=$macro_version 15691macro_revision=$macro_revision 15692 15693# Whether or not to build shared libraries. 15694build_libtool_libs=$enable_shared 15695 15696# Whether or not to build static libraries. 15697build_old_libs=$enable_static 15698 15699# What type of objects to build. 15700pic_mode=$pic_mode 15701 15702# Whether or not to optimize for fast installation. 15703fast_install=$enable_fast_install 15704 15705# Shared archive member basename,for filename based shared library versioning on AIX. 15706shared_archive_member_spec=$shared_archive_member_spec 15707 15708# Shell to use when invoking shell scripts. 15709SHELL=$lt_SHELL 15710 15711# An echo program that protects backslashes. 15712ECHO=$lt_ECHO 15713 15714# The PATH separator for the build system. 15715PATH_SEPARATOR=$lt_PATH_SEPARATOR 15716 15717# The host system. 15718host_alias=$host_alias 15719host=$host 15720host_os=$host_os 15721 15722# The build system. 15723build_alias=$build_alias 15724build=$build 15725build_os=$build_os 15726 15727# A sed program that does not truncate output. 15728SED=$lt_SED 15729 15730# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15731Xsed="\$SED -e 1s/^X//" 15732 15733# A grep program that handles long lines. 15734GREP=$lt_GREP 15735 15736# An ERE matcher. 15737EGREP=$lt_EGREP 15738 15739# A literal string matcher. 15740FGREP=$lt_FGREP 15741 15742# A BSD- or MS-compatible name lister. 15743NM=$lt_NM 15744 15745# Whether we need soft or hard links. 15746LN_S=$lt_LN_S 15747 15748# What is the maximum length of a command? 15749max_cmd_len=$max_cmd_len 15750 15751# Object file suffix (normally "o"). 15752objext=$ac_objext 15753 15754# Executable file suffix (normally ""). 15755exeext=$exeext 15756 15757# whether the shell understands "unset". 15758lt_unset=$lt_unset 15759 15760# turn spaces into newlines. 15761SP2NL=$lt_lt_SP2NL 15762 15763# turn newlines into spaces. 15764NL2SP=$lt_lt_NL2SP 15765 15766# convert \$build file names to \$host format. 15767to_host_file_cmd=$lt_cv_to_host_file_cmd 15768 15769# convert \$build files to toolchain format. 15770to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15771 15772# A file(cmd) program that detects file types. 15773FILECMD=$lt_FILECMD 15774 15775# An object symbol dumper. 15776OBJDUMP=$lt_OBJDUMP 15777 15778# Method to check whether dependent libraries are shared objects. 15779deplibs_check_method=$lt_deplibs_check_method 15780 15781# Command to use when deplibs_check_method = "file_magic". 15782file_magic_cmd=$lt_file_magic_cmd 15783 15784# How to find potential files when deplibs_check_method = "file_magic". 15785file_magic_glob=$lt_file_magic_glob 15786 15787# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15788want_nocaseglob=$lt_want_nocaseglob 15789 15790# DLL creation program. 15791DLLTOOL=$lt_DLLTOOL 15792 15793# Command to associate shared and link libraries. 15794sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15795 15796# The archiver. 15797AR=$lt_AR 15798 15799# Flags to create an archive (by configure). 15800lt_ar_flags=$lt_ar_flags 15801 15802# Flags to create an archive. 15803AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 15804 15805# How to feed a file listing to the archiver. 15806archiver_list_spec=$lt_archiver_list_spec 15807 15808# A symbol stripping program. 15809STRIP=$lt_STRIP 15810 15811# Commands used to install an old-style archive. 15812RANLIB=$lt_RANLIB 15813old_postinstall_cmds=$lt_old_postinstall_cmds 15814old_postuninstall_cmds=$lt_old_postuninstall_cmds 15815 15816# Whether to use a lock for old archive extraction. 15817lock_old_archive_extraction=$lock_old_archive_extraction 15818 15819# A C compiler. 15820LTCC=$lt_CC 15821 15822# LTCC compiler flags. 15823LTCFLAGS=$lt_CFLAGS 15824 15825# Take the output of nm and produce a listing of raw symbols and C names. 15826global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15827 15828# Transform the output of nm in a proper C declaration. 15829global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15830 15831# Transform the output of nm into a list of symbols to manually relocate. 15832global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15833 15834# Transform the output of nm in a C name address pair. 15835global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15836 15837# Transform the output of nm in a C name address pair when lib prefix is needed. 15838global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15839 15840# The name lister interface. 15841nm_interface=$lt_lt_cv_nm_interface 15842 15843# Specify filename containing input files for \$NM. 15844nm_file_list_spec=$lt_nm_file_list_spec 15845 15846# The root where to search for dependent libraries,and where our libraries should be installed. 15847lt_sysroot=$lt_sysroot 15848 15849# Command to truncate a binary pipe. 15850lt_truncate_bin=$lt_lt_cv_truncate_bin 15851 15852# The name of the directory that contains temporary libtool files. 15853objdir=$objdir 15854 15855# Used to examine libraries when file_magic_cmd begins with "file". 15856MAGIC_CMD=$MAGIC_CMD 15857 15858# Must we lock files when doing compilation? 15859need_locks=$lt_need_locks 15860 15861# Manifest tool. 15862MANIFEST_TOOL=$lt_MANIFEST_TOOL 15863 15864# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15865DSYMUTIL=$lt_DSYMUTIL 15866 15867# Tool to change global to local symbols on Mac OS X. 15868NMEDIT=$lt_NMEDIT 15869 15870# Tool to manipulate fat objects and archives on Mac OS X. 15871LIPO=$lt_LIPO 15872 15873# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15874OTOOL=$lt_OTOOL 15875 15876# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15877OTOOL64=$lt_OTOOL64 15878 15879# Old archive suffix (normally "a"). 15880libext=$libext 15881 15882# Shared library suffix (normally ".so"). 15883shrext_cmds=$lt_shrext_cmds 15884 15885# The commands to extract the exported symbol list from a shared archive. 15886extract_expsyms_cmds=$lt_extract_expsyms_cmds 15887 15888# Variables whose values should be saved in libtool wrapper scripts and 15889# restored at link time. 15890variables_saved_for_relink=$lt_variables_saved_for_relink 15891 15892# Do we need the "lib" prefix for modules? 15893need_lib_prefix=$need_lib_prefix 15894 15895# Do we need a version for libraries? 15896need_version=$need_version 15897 15898# Library versioning type. 15899version_type=$version_type 15900 15901# Shared library runtime path variable. 15902runpath_var=$runpath_var 15903 15904# Shared library path variable. 15905shlibpath_var=$shlibpath_var 15906 15907# Is shlibpath searched before the hard-coded library search path? 15908shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15909 15910# Format of library name prefix. 15911libname_spec=$lt_libname_spec 15912 15913# List of archive names. First name is the real one, the rest are links. 15914# The last name is the one that the linker finds with -lNAME 15915library_names_spec=$lt_library_names_spec 15916 15917# The coded name of the library, if different from the real name. 15918soname_spec=$lt_soname_spec 15919 15920# Permission mode override for installation of shared libraries. 15921install_override_mode=$lt_install_override_mode 15922 15923# Command to use after installation of a shared archive. 15924postinstall_cmds=$lt_postinstall_cmds 15925 15926# Command to use after uninstallation of a shared archive. 15927postuninstall_cmds=$lt_postuninstall_cmds 15928 15929# Commands used to finish a libtool library installation in a directory. 15930finish_cmds=$lt_finish_cmds 15931 15932# As "finish_cmds", except a single script fragment to be evaled but 15933# not shown. 15934finish_eval=$lt_finish_eval 15935 15936# Whether we should hardcode library paths into libraries. 15937hardcode_into_libs=$hardcode_into_libs 15938 15939# Compile-time system search path for libraries. 15940sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15941 15942# Detected run-time system search path for libraries. 15943sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15944 15945# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15946configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15947 15948# Whether dlopen is supported. 15949dlopen_support=$enable_dlopen 15950 15951# Whether dlopen of programs is supported. 15952dlopen_self=$enable_dlopen_self 15953 15954# Whether dlopen of statically linked programs is supported. 15955dlopen_self_static=$enable_dlopen_self_static 15956 15957# Commands to strip libraries. 15958old_striplib=$lt_old_striplib 15959striplib=$lt_striplib 15960 15961 15962# The linker used to build libraries. 15963LD=$lt_LD 15964 15965# How to create reloadable object files. 15966reload_flag=$lt_reload_flag 15967reload_cmds=$lt_reload_cmds 15968 15969# Commands used to build an old-style archive. 15970old_archive_cmds=$lt_old_archive_cmds 15971 15972# A language specific compiler. 15973CC=$lt_compiler 15974 15975# Is the compiler the GNU compiler? 15976with_gcc=$GCC 15977 15978# Compiler flag to turn off builtin functions. 15979no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15980 15981# Additional compiler flags for building library objects. 15982pic_flag=$lt_lt_prog_compiler_pic 15983 15984# How to pass a linker flag through the compiler. 15985wl=$lt_lt_prog_compiler_wl 15986 15987# Compiler flag to prevent dynamic linking. 15988link_static_flag=$lt_lt_prog_compiler_static 15989 15990# Does compiler simultaneously support -c and -o options? 15991compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15992 15993# Whether or not to add -lc for building shared libraries. 15994build_libtool_need_lc=$archive_cmds_need_lc 15995 15996# Whether or not to disallow shared libs when runtime libs are static. 15997allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15998 15999# Compiler flag to allow reflexive dlopens. 16000export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16001 16002# Compiler flag to generate shared objects directly from archives. 16003whole_archive_flag_spec=$lt_whole_archive_flag_spec 16004 16005# Whether the compiler copes with passing no objects directly. 16006compiler_needs_object=$lt_compiler_needs_object 16007 16008# Create an old-style archive from a shared archive. 16009old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16010 16011# Create a temporary old-style archive to link instead of a shared archive. 16012old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16013 16014# Commands used to build a shared archive. 16015archive_cmds=$lt_archive_cmds 16016archive_expsym_cmds=$lt_archive_expsym_cmds 16017 16018# Commands used to build a loadable module if different from building 16019# a shared archive. 16020module_cmds=$lt_module_cmds 16021module_expsym_cmds=$lt_module_expsym_cmds 16022 16023# Whether we are building with GNU ld or not. 16024with_gnu_ld=$lt_with_gnu_ld 16025 16026# Flag that allows shared libraries with undefined symbols to be built. 16027allow_undefined_flag=$lt_allow_undefined_flag 16028 16029# Flag that enforces no undefined symbols. 16030no_undefined_flag=$lt_no_undefined_flag 16031 16032# Flag to hardcode \$libdir into a binary during linking. 16033# This must work even if \$libdir does not exist 16034hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16035 16036# Whether we need a single "-rpath" flag with a separated argument. 16037hardcode_libdir_separator=$lt_hardcode_libdir_separator 16038 16039# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16040# DIR into the resulting binary. 16041hardcode_direct=$hardcode_direct 16042 16043# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16044# DIR into the resulting binary and the resulting library dependency is 16045# "absolute",i.e impossible to change by setting \$shlibpath_var if the 16046# library is relocated. 16047hardcode_direct_absolute=$hardcode_direct_absolute 16048 16049# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16050# into the resulting binary. 16051hardcode_minus_L=$hardcode_minus_L 16052 16053# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16054# into the resulting binary. 16055hardcode_shlibpath_var=$hardcode_shlibpath_var 16056 16057# Set to "yes" if building a shared library automatically hardcodes DIR 16058# into the library and all subsequent libraries and executables linked 16059# against it. 16060hardcode_automatic=$hardcode_automatic 16061 16062# Set to yes if linker adds runtime paths of dependent libraries 16063# to runtime path list. 16064inherit_rpath=$inherit_rpath 16065 16066# Whether libtool must link a program against all its dependency libraries. 16067link_all_deplibs=$link_all_deplibs 16068 16069# Set to "yes" if exported symbols are required. 16070always_export_symbols=$always_export_symbols 16071 16072# The commands to list exported symbols. 16073export_symbols_cmds=$lt_export_symbols_cmds 16074 16075# Symbols that should not be listed in the preloaded symbols. 16076exclude_expsyms=$lt_exclude_expsyms 16077 16078# Symbols that must always be exported. 16079include_expsyms=$lt_include_expsyms 16080 16081# Commands necessary for linking programs (against libraries) with templates. 16082prelink_cmds=$lt_prelink_cmds 16083 16084# Commands necessary for finishing linking programs. 16085postlink_cmds=$lt_postlink_cmds 16086 16087# Specify filename containing input files. 16088file_list_spec=$lt_file_list_spec 16089 16090# How to hardcode a shared library path into an executable. 16091hardcode_action=$hardcode_action 16092 16093# ### END LIBTOOL CONFIG 16094 16095_LT_EOF 16096 16097 cat <<'_LT_EOF' >> "$cfgfile" 16098 16099# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 16100 16101# func_munge_path_list VARIABLE PATH 16102# ----------------------------------- 16103# VARIABLE is name of variable containing _space_ separated list of 16104# directories to be munged by the contents of PATH, which is string 16105# having a format: 16106# "DIR[:DIR]:" 16107# string "DIR[ DIR]" will be prepended to VARIABLE 16108# ":DIR[:DIR]" 16109# string "DIR[ DIR]" will be appended to VARIABLE 16110# "DIRP[:DIRP]::[DIRA:]DIRA" 16111# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16112# "DIRA[ DIRA]" will be appended to VARIABLE 16113# "DIR[:DIR]" 16114# VARIABLE will be replaced by "DIR[ DIR]" 16115func_munge_path_list () 16116{ 16117 case x$2 in 16118 x) 16119 ;; 16120 *:) 16121 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16122 ;; 16123 x:*) 16124 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16125 ;; 16126 *::*) 16127 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16128 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16129 ;; 16130 *) 16131 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16132 ;; 16133 esac 16134} 16135 16136 16137# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16138func_cc_basename () 16139{ 16140 for cc_temp in $*""; do 16141 case $cc_temp in 16142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16144 \-*) ;; 16145 *) break;; 16146 esac 16147 done 16148 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16149} 16150 16151 16152# ### END FUNCTIONS SHARED WITH CONFIGURE 16153 16154_LT_EOF 16155 16156 case $host_os in 16157 aix3*) 16158 cat <<\_LT_EOF >> "$cfgfile" 16159# AIX sometimes has problems with the GCC collect2 program. For some 16160# reason, if we set the COLLECT_NAMES environment variable, the problems 16161# vanish in a puff of smoke. 16162if test set != "${COLLECT_NAMES+set}"; then 16163 COLLECT_NAMES= 16164 export COLLECT_NAMES 16165fi 16166_LT_EOF 16167 ;; 16168 esac 16169 16170 16171 16172ltmain=$ac_aux_dir/ltmain.sh 16173 16174 16175 # We use sed instead of cat because bash on DJGPP gets confused if 16176 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16177 # text mode, it properly converts lines to CR/LF. This bash problem 16178 # is reportedly fixed, but why not run on old versions too? 16179 $SED '$q' "$ltmain" >> "$cfgfile" \ 16180 || (rm -f "$cfgfile"; exit 1) 16181 16182 mv -f "$cfgfile" "$ofile" || 16183 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16184 chmod +x "$ofile" 16185 16186 ;; 16187 16188 esac 16189done # for ac_tag 16190 16191 16192as_fn_exit 0 16193_ACEOF 16194ac_clean_files=$ac_clean_files_save 16195 16196test $ac_write_fail = 0 || 16197 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16198 16199 16200# configure is writing to config.log, and then calls config.status. 16201# config.status does its own redirection, appending to config.log. 16202# Unfortunately, on DOS this fails, as config.log is still kept open 16203# by configure, so config.status won't be able to write to it; its 16204# output is simply discarded. So we exec the FD to /dev/null, 16205# effectively closing config.log, so it can be properly (re)opened and 16206# appended to by config.status. When coming back to configure, we 16207# need to make the FD available again. 16208if test "$no_create" != yes; then 16209 ac_cs_success=: 16210 ac_config_status_args= 16211 test "$silent" = yes && 16212 ac_config_status_args="$ac_config_status_args --quiet" 16213 exec 5>/dev/null 16214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16215 exec 5>>config.log 16216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16217 # would make configure fail if this is the last instruction. 16218 $ac_cs_success || as_fn_exit 1 16219fi 16220if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16222printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16223fi 16224 16225 16226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 16227 Prefix ${prefix} 16228 Libdir ${libdir} 16229 16230 Build documentation ${have_doxygen} 16231 Enable unit-tests ${HAVE_CHECK} 16232 Enable profiling ${enable_gcov} 16233 Enable coverity support ${enable_coverity} 16234 Static library symbol check ${static_symbol_leaks_test} 16235 " >&5 16236printf "%s\n" " 16237 Prefix ${prefix} 16238 Libdir ${libdir} 16239 16240 Build documentation ${have_doxygen} 16241 Enable unit-tests ${HAVE_CHECK} 16242 Enable profiling ${enable_gcov} 16243 Enable coverity support ${enable_coverity} 16244 Static library symbol check ${static_symbol_leaks_test} 16245 " >&6; } 16246 16247