1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libevdev 1.13.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev>. 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://bugs.freedesktop.org/enter_bug.cgi?product=libevdev 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.0' 626PACKAGE_STRING='libevdev 1.13.0' 627PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev' 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 692HAVE_VALGRIND_FALSE 693HAVE_VALGRIND_TRUE 694VALGRIND 695CHECK_LIBS 696CHECK_CFLAGS 697PKG_CONFIG_LIBDIR 698PKG_CONFIG_PATH 699PKG_CONFIG 700OS 701GNU_LD_FLAGS 702LT_SYS_LIBRARY_PATH 703OTOOL64 704OTOOL 705LIPO 706NMEDIT 707DSYMUTIL 708MANIFEST_TOOL 709RANLIB 710ac_ct_AR 711AR 712DLLTOOL 713OBJDUMP 714FILECMD 715LN_S 716NM 717ac_ct_DUMPBIN 718DUMPBIN 719LD 720FGREP 721EGREP 722GREP 723SED 724host_os 725host_vendor 726host_cpu 727host 728build_os 729build_vendor 730build_cpu 731build 732LIBTOOL 733LIBEVDEV_LT_VERSION 734AM_BACKSLASH 735AM_DEFAULT_VERBOSITY 736AM_DEFAULT_V 737AM_V 738CSCOPE 739ETAGS 740CTAGS 741am__fastdepCC_FALSE 742am__fastdepCC_TRUE 743CCDEPMODE 744am__nodep 745AMDEPBACKSLASH 746AMDEP_FALSE 747AMDEP_TRUE 748am__include 749DEPDIR 750am__untar 751am__tar 752AMTAR 753am__leading_dot 754SET_MAKE 755AWK 756mkdir_p 757MKDIR_P 758INSTALL_STRIP_PROGRAM 759STRIP 760install_sh 761MAKEINFO 762AUTOHEADER 763AUTOMAKE 764AUTOCONF 765ACLOCAL 766VERSION 767PACKAGE 768CYGPATH_W 769am__isrc 770INSTALL_DATA 771INSTALL_SCRIPT 772INSTALL_PROGRAM 773OBJEXT 774EXEEXT 775ac_ct_CC 776CPPFLAGS 777LDFLAGS 778CFLAGS 779CC 780target_alias 781host_alias 782build_alias 783LIBS 784ECHO_T 785ECHO_N 786ECHO_C 787DEFS 788mandir 789localedir 790libdir 791psdir 792pdfdir 793dvidir 794htmldir 795infodir 796docdir 797oldincludedir 798includedir 799runstatedir 800localstatedir 801sharedstatedir 802sysconfdir 803datadir 804datarootdir 805libexecdir 806sbindir 807bindir 808program_transform_name 809prefix 810exec_prefix 811PACKAGE_URL 812PACKAGE_BUGREPORT 813PACKAGE_STRING 814PACKAGE_VERSION 815PACKAGE_TARNAME 816PACKAGE_NAME 817PATH_SEPARATOR 818SHELL 819am__quote' 820ac_subst_files='' 821ac_user_opts=' 822enable_option_checking 823enable_dependency_tracking 824enable_silent_rules 825enable_shared 826enable_static 827with_pic 828enable_fast_install 829with_aix_soname 830with_gnu_ld 831with_sysroot 832enable_libtool_lock 833enable_gcov 834enable_coverity 835with_python_sys_prefix 836with_python_prefix 837with_python_exec_prefix 838' 839 ac_precious_vars='build_alias 840host_alias 841target_alias 842CC 843CFLAGS 844LDFLAGS 845LIBS 846CPPFLAGS 847LT_SYS_LIBRARY_PATH 848PKG_CONFIG 849PKG_CONFIG_PATH 850PKG_CONFIG_LIBDIR 851CHECK_CFLAGS 852CHECK_LIBS 853PYTHON' 854 855 856# Initialize some variables set by options. 857ac_init_help= 858ac_init_version=false 859ac_unrecognized_opts= 860ac_unrecognized_sep= 861# The variables have the same names as the options, with 862# dashes changed to underlines. 863cache_file=/dev/null 864exec_prefix=NONE 865no_create= 866no_recursion= 867prefix=NONE 868program_prefix=NONE 869program_suffix=NONE 870program_transform_name=s,x,x, 871silent= 872site= 873srcdir= 874verbose= 875x_includes=NONE 876x_libraries=NONE 877 878# Installation directory options. 879# These are left unexpanded so users can "make install exec_prefix=/foo" 880# and all the variables that are supposed to be based on exec_prefix 881# by default will actually change. 882# Use braces instead of parens because sh, perl, etc. also accept them. 883# (The list follows the same order as the GNU Coding Standards.) 884bindir='${exec_prefix}/bin' 885sbindir='${exec_prefix}/sbin' 886libexecdir='${exec_prefix}/libexec' 887datarootdir='${prefix}/share' 888datadir='${datarootdir}' 889sysconfdir='${prefix}/etc' 890sharedstatedir='${prefix}/com' 891localstatedir='${prefix}/var' 892runstatedir='${localstatedir}/run' 893includedir='${prefix}/include' 894oldincludedir='/usr/include' 895docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 896infodir='${datarootdir}/info' 897htmldir='${docdir}' 898dvidir='${docdir}' 899pdfdir='${docdir}' 900psdir='${docdir}' 901libdir='${exec_prefix}/lib' 902localedir='${datarootdir}/locale' 903mandir='${datarootdir}/man' 904 905ac_prev= 906ac_dashdash= 907for ac_option 908do 909 # If the previous option needs an argument, assign it. 910 if test -n "$ac_prev"; then 911 eval $ac_prev=\$ac_option 912 ac_prev= 913 continue 914 fi 915 916 case $ac_option in 917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 918 *=) ac_optarg= ;; 919 *) ac_optarg=yes ;; 920 esac 921 922 case $ac_dashdash$ac_option in 923 --) 924 ac_dashdash=yes ;; 925 926 -bindir | --bindir | --bindi | --bind | --bin | --bi) 927 ac_prev=bindir ;; 928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 929 bindir=$ac_optarg ;; 930 931 -build | --build | --buil | --bui | --bu) 932 ac_prev=build_alias ;; 933 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 934 build_alias=$ac_optarg ;; 935 936 -cache-file | --cache-file | --cache-fil | --cache-fi \ 937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 938 ac_prev=cache_file ;; 939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 941 cache_file=$ac_optarg ;; 942 943 --config-cache | -C) 944 cache_file=config.cache ;; 945 946 -datadir | --datadir | --datadi | --datad) 947 ac_prev=datadir ;; 948 -datadir=* | --datadir=* | --datadi=* | --datad=*) 949 datadir=$ac_optarg ;; 950 951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 952 | --dataroo | --dataro | --datar) 953 ac_prev=datarootdir ;; 954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 956 datarootdir=$ac_optarg ;; 957 958 -disable-* | --disable-*) 959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 960 # Reject names that are not valid shell variable names. 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 962 as_fn_error $? "invalid feature name: \`$ac_useropt'" 963 ac_useropt_orig=$ac_useropt 964 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 965 case $ac_user_opts in 966 *" 967"enable_$ac_useropt" 968"*) ;; 969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 970 ac_unrecognized_sep=', ';; 971 esac 972 eval enable_$ac_useropt=no ;; 973 974 -docdir | --docdir | --docdi | --doc | --do) 975 ac_prev=docdir ;; 976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 977 docdir=$ac_optarg ;; 978 979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 980 ac_prev=dvidir ;; 981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 982 dvidir=$ac_optarg ;; 983 984 -enable-* | --enable-*) 985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 986 # Reject names that are not valid shell variable names. 987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 988 as_fn_error $? "invalid feature name: \`$ac_useropt'" 989 ac_useropt_orig=$ac_useropt 990 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 991 case $ac_user_opts in 992 *" 993"enable_$ac_useropt" 994"*) ;; 995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 996 ac_unrecognized_sep=', ';; 997 esac 998 eval enable_$ac_useropt=\$ac_optarg ;; 999 1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1002 | --exec | --exe | --ex) 1003 ac_prev=exec_prefix ;; 1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1006 | --exec=* | --exe=* | --ex=*) 1007 exec_prefix=$ac_optarg ;; 1008 1009 -gas | --gas | --ga | --g) 1010 # Obsolete; use --with-gas. 1011 with_gas=yes ;; 1012 1013 -help | --help | --hel | --he | -h) 1014 ac_init_help=long ;; 1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1016 ac_init_help=recursive ;; 1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1018 ac_init_help=short ;; 1019 1020 -host | --host | --hos | --ho) 1021 ac_prev=host_alias ;; 1022 -host=* | --host=* | --hos=* | --ho=*) 1023 host_alias=$ac_optarg ;; 1024 1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1026 ac_prev=htmldir ;; 1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1028 | --ht=*) 1029 htmldir=$ac_optarg ;; 1030 1031 -includedir | --includedir | --includedi | --included | --include \ 1032 | --includ | --inclu | --incl | --inc) 1033 ac_prev=includedir ;; 1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1035 | --includ=* | --inclu=* | --incl=* | --inc=*) 1036 includedir=$ac_optarg ;; 1037 1038 -infodir | --infodir | --infodi | --infod | --info | --inf) 1039 ac_prev=infodir ;; 1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1041 infodir=$ac_optarg ;; 1042 1043 -libdir | --libdir | --libdi | --libd) 1044 ac_prev=libdir ;; 1045 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1046 libdir=$ac_optarg ;; 1047 1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1049 | --libexe | --libex | --libe) 1050 ac_prev=libexecdir ;; 1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1052 | --libexe=* | --libex=* | --libe=*) 1053 libexecdir=$ac_optarg ;; 1054 1055 -localedir | --localedir | --localedi | --localed | --locale) 1056 ac_prev=localedir ;; 1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1058 localedir=$ac_optarg ;; 1059 1060 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1061 | --localstate | --localstat | --localsta | --localst | --locals) 1062 ac_prev=localstatedir ;; 1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1065 localstatedir=$ac_optarg ;; 1066 1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1068 ac_prev=mandir ;; 1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1070 mandir=$ac_optarg ;; 1071 1072 -nfp | --nfp | --nf) 1073 # Obsolete; use --without-fp. 1074 with_fp=no ;; 1075 1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1077 | --no-cr | --no-c | -n) 1078 no_create=yes ;; 1079 1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1082 no_recursion=yes ;; 1083 1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1086 | --oldin | --oldi | --old | --ol | --o) 1087 ac_prev=oldincludedir ;; 1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1091 oldincludedir=$ac_optarg ;; 1092 1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1094 ac_prev=prefix ;; 1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1096 prefix=$ac_optarg ;; 1097 1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1099 | --program-pre | --program-pr | --program-p) 1100 ac_prev=program_prefix ;; 1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1103 program_prefix=$ac_optarg ;; 1104 1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1106 | --program-suf | --program-su | --program-s) 1107 ac_prev=program_suffix ;; 1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1110 program_suffix=$ac_optarg ;; 1111 1112 -program-transform-name | --program-transform-name \ 1113 | --program-transform-nam | --program-transform-na \ 1114 | --program-transform-n | --program-transform- \ 1115 | --program-transform | --program-transfor \ 1116 | --program-transfo | --program-transf \ 1117 | --program-trans | --program-tran \ 1118 | --progr-tra | --program-tr | --program-t) 1119 ac_prev=program_transform_name ;; 1120 -program-transform-name=* | --program-transform-name=* \ 1121 | --program-transform-nam=* | --program-transform-na=* \ 1122 | --program-transform-n=* | --program-transform-=* \ 1123 | --program-transform=* | --program-transfor=* \ 1124 | --program-transfo=* | --program-transf=* \ 1125 | --program-trans=* | --program-tran=* \ 1126 | --progr-tra=* | --program-tr=* | --program-t=*) 1127 program_transform_name=$ac_optarg ;; 1128 1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1130 ac_prev=pdfdir ;; 1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1132 pdfdir=$ac_optarg ;; 1133 1134 -psdir | --psdir | --psdi | --psd | --ps) 1135 ac_prev=psdir ;; 1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1137 psdir=$ac_optarg ;; 1138 1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1140 | -silent | --silent | --silen | --sile | --sil) 1141 silent=yes ;; 1142 1143 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1144 | --runstate | --runstat | --runsta | --runst | --runs \ 1145 | --run | --ru | --r) 1146 ac_prev=runstatedir ;; 1147 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1148 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1149 | --run=* | --ru=* | --r=*) 1150 runstatedir=$ac_optarg ;; 1151 1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1153 ac_prev=sbindir ;; 1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1155 | --sbi=* | --sb=*) 1156 sbindir=$ac_optarg ;; 1157 1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1160 | --sharedst | --shareds | --shared | --share | --shar \ 1161 | --sha | --sh) 1162 ac_prev=sharedstatedir ;; 1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1166 | --sha=* | --sh=*) 1167 sharedstatedir=$ac_optarg ;; 1168 1169 -site | --site | --sit) 1170 ac_prev=site ;; 1171 -site=* | --site=* | --sit=*) 1172 site=$ac_optarg ;; 1173 1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1175 ac_prev=srcdir ;; 1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1177 srcdir=$ac_optarg ;; 1178 1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1180 | --syscon | --sysco | --sysc | --sys | --sy) 1181 ac_prev=sysconfdir ;; 1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1184 sysconfdir=$ac_optarg ;; 1185 1186 -target | --target | --targe | --targ | --tar | --ta | --t) 1187 ac_prev=target_alias ;; 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1189 target_alias=$ac_optarg ;; 1190 1191 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1192 verbose=yes ;; 1193 1194 -version | --version | --versio | --versi | --vers | -V) 1195 ac_init_version=: ;; 1196 1197 -with-* | --with-*) 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1201 as_fn_error $? "invalid package name: \`$ac_useropt'" 1202 ac_useropt_orig=$ac_useropt 1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1204 case $ac_user_opts in 1205 *" 1206"with_$ac_useropt" 1207"*) ;; 1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1209 ac_unrecognized_sep=', ';; 1210 esac 1211 eval with_$ac_useropt=\$ac_optarg ;; 1212 1213 -without-* | --without-*) 1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 as_fn_error $? "invalid package name: \`$ac_useropt'" 1218 ac_useropt_orig=$ac_useropt 1219 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1220 case $ac_user_opts in 1221 *" 1222"with_$ac_useropt" 1223"*) ;; 1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1225 ac_unrecognized_sep=', ';; 1226 esac 1227 eval with_$ac_useropt=no ;; 1228 1229 --x) 1230 # Obsolete; use --with-x. 1231 with_x=yes ;; 1232 1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1234 | --x-incl | --x-inc | --x-in | --x-i) 1235 ac_prev=x_includes ;; 1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1238 x_includes=$ac_optarg ;; 1239 1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1242 ac_prev=x_libraries ;; 1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1245 x_libraries=$ac_optarg ;; 1246 1247 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1248Try \`$0 --help' for more information" 1249 ;; 1250 1251 *=*) 1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1253 # Reject names that are not valid shell variable names. 1254 case $ac_envvar in #( 1255 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1257 esac 1258 eval $ac_envvar=\$ac_optarg 1259 export $ac_envvar ;; 1260 1261 *) 1262 # FIXME: should be removed in autoconf 3.0. 1263 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1265 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1267 ;; 1268 1269 esac 1270done 1271 1272if test -n "$ac_prev"; then 1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1274 as_fn_error $? "missing argument to $ac_option" 1275fi 1276 1277if test -n "$ac_unrecognized_opts"; then 1278 case $enable_option_checking in 1279 no) ;; 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1281 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1282 esac 1283fi 1284 1285# Check all directory arguments for consistency. 1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1287 datadir sysconfdir sharedstatedir localstatedir includedir \ 1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1289 libdir localedir mandir runstatedir 1290do 1291 eval ac_val=\$$ac_var 1292 # Remove trailing slashes. 1293 case $ac_val in 1294 */ ) 1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1296 eval $ac_var=\$ac_val;; 1297 esac 1298 # Be sure to have absolute directory names. 1299 case $ac_val in 1300 [\\/$]* | ?:[\\/]* ) continue;; 1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1302 esac 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1304done 1305 1306# There might be people who depend on the old broken behavior: `$host' 1307# used to hold the argument of --host etc. 1308# FIXME: To remove some day. 1309build=$build_alias 1310host=$host_alias 1311target=$target_alias 1312 1313# FIXME: To remove some day. 1314if test "x$host_alias" != x; then 1315 if test "x$build_alias" = x; then 1316 cross_compiling=maybe 1317 elif test "x$build_alias" != "x$host_alias"; then 1318 cross_compiling=yes 1319 fi 1320fi 1321 1322ac_tool_prefix= 1323test -n "$host_alias" && ac_tool_prefix=$host_alias- 1324 1325test "$silent" = yes && exec 6>/dev/null 1326 1327 1328ac_pwd=`pwd` && test -n "$ac_pwd" && 1329ac_ls_di=`ls -di .` && 1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1331 as_fn_error $? "working directory cannot be determined" 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1333 as_fn_error $? "pwd does not report name of working directory" 1334 1335 1336# Find the source files, if location was not specified. 1337if test -z "$srcdir"; then 1338 ac_srcdir_defaulted=yes 1339 # Try the directory containing this script, then the parent directory. 1340 ac_confdir=`$as_dirname -- "$as_myself" || 1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1342 X"$as_myself" : 'X\(//\)[^/]' \| \ 1343 X"$as_myself" : 'X\(//\)$' \| \ 1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1345printf "%s\n" X"$as_myself" | 1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)[^/].*/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\).*/{ 1359 s//\1/ 1360 q 1361 } 1362 s/.*/./; q'` 1363 srcdir=$ac_confdir 1364 if test ! -r "$srcdir/$ac_unique_file"; then 1365 srcdir=.. 1366 fi 1367else 1368 ac_srcdir_defaulted=no 1369fi 1370if test ! -r "$srcdir/$ac_unique_file"; then 1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1373fi 1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1375ac_abs_confdir=`( 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1377 pwd)` 1378# When building in place, set srcdir=. 1379if test "$ac_abs_confdir" = "$ac_pwd"; then 1380 srcdir=. 1381fi 1382# Remove unnecessary trailing slashes from srcdir. 1383# Double slashes in file names in object file debugging info 1384# mess up M-x gdb in Emacs. 1385case $srcdir in 1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1387esac 1388for ac_var in $ac_precious_vars; do 1389 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_env_${ac_var}_value=\$${ac_var} 1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1393done 1394 1395# 1396# Report the --help message. 1397# 1398if test "$ac_init_help" = "long"; then 1399 # Omit some internal or obsolete options to make the list less imposing. 1400 # This message is too long to be a string in the A/UX 3.1 sh. 1401 cat <<_ACEOF 1402\`configure' configures libevdev 1.13.0 to adapt to many kinds of systems. 1403 1404Usage: $0 [OPTION]... [VAR=VALUE]... 1405 1406To assign environment variables (e.g., CC, CFLAGS...), specify them as 1407VAR=VALUE. See below for descriptions of some of the useful variables. 1408 1409Defaults for the options are specified in brackets. 1410 1411Configuration: 1412 -h, --help display this help and exit 1413 --help=short display options specific to this package 1414 --help=recursive display the short help of all the included packages 1415 -V, --version display version information and exit 1416 -q, --quiet, --silent do not print \`checking ...' messages 1417 --cache-file=FILE cache test results in FILE [disabled] 1418 -C, --config-cache alias for \`--cache-file=config.cache' 1419 -n, --no-create do not create output files 1420 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1421 1422Installation directories: 1423 --prefix=PREFIX install architecture-independent files in PREFIX 1424 [$ac_default_prefix] 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1426 [PREFIX] 1427 1428By default, \`make install' will install all the files in 1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1430an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1431for instance \`--prefix=\$HOME'. 1432 1433For better control, use the options below. 1434 1435Fine tuning of the installation directories: 1436 --bindir=DIR user executables [EPREFIX/bin] 1437 --sbindir=DIR system admin executables [EPREFIX/sbin] 1438 --libexecdir=DIR program executables [EPREFIX/libexec] 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1442 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1443 --libdir=DIR object code libraries [EPREFIX/lib] 1444 --includedir=DIR C header files [PREFIX/include] 1445 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1448 --infodir=DIR info documentation [DATAROOTDIR/info] 1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1450 --mandir=DIR man documentation [DATAROOTDIR/man] 1451 --docdir=DIR documentation root [DATAROOTDIR/doc/libevdev] 1452 --htmldir=DIR html documentation [DOCDIR] 1453 --dvidir=DIR dvi documentation [DOCDIR] 1454 --pdfdir=DIR pdf documentation [DOCDIR] 1455 --psdir=DIR ps documentation [DOCDIR] 1456_ACEOF 1457 1458 cat <<\_ACEOF 1459 1460Program names: 1461 --program-prefix=PREFIX prepend PREFIX to installed program names 1462 --program-suffix=SUFFIX append SUFFIX to installed program names 1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1464 1465System types: 1466 --build=BUILD configure for building on BUILD [guessed] 1467 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1468_ACEOF 1469fi 1470 1471if test -n "$ac_init_help"; then 1472 case $ac_init_help in 1473 short | recursive ) echo "Configuration of libevdev 1.13.0:";; 1474 esac 1475 cat <<\_ACEOF 1476 1477Optional Features: 1478 --disable-option-checking ignore unrecognized --enable/--with options 1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1481 --enable-dependency-tracking 1482 do not reject slow dependency extractors 1483 --disable-dependency-tracking 1484 speeds up one-time build 1485 --enable-silent-rules less verbose build output (undo: "make V=1") 1486 --disable-silent-rules verbose build output (undo: "make V=0") 1487 --enable-shared[=PKGS] build shared libraries [default=yes] 1488 --enable-static[=PKGS] build static libraries [default=yes] 1489 --enable-fast-install[=PKGS] 1490 optimize for fast installation [default=yes] 1491 --disable-libtool-lock avoid locking (might break parallel builds) 1492 --enable-gcov Whether to enable coverage testing 1493 (default:disabled) 1494 --enable-coverity Whether to build with coverity support (default: 1495 disabled) 1496 1497Optional Packages: 1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1501 both] 1502 --with-aix-soname=aix|svr4|both 1503 shared library versioning (aka "SONAME") variant to 1504 provide on AIX, [default=aix]. 1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1506 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1507 compiler's sysroot if not specified). 1508 --with-python-sys-prefix 1509 use Python's sys.prefix and sys.exec_prefix values 1510 --with-python_prefix override the default PYTHON_PREFIX 1511 --with-python_exec_prefix 1512 override the default PYTHON_EXEC_PREFIX 1513 1514Some influential environment variables: 1515 CC C compiler command 1516 CFLAGS C compiler flags 1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1518 nonstandard directory <lib dir> 1519 LIBS libraries to pass to the linker, e.g. -l<library> 1520 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1521 you have headers in a nonstandard directory <include dir> 1522 LT_SYS_LIBRARY_PATH 1523 User-defined run-time library search path. 1524 PKG_CONFIG path to pkg-config utility 1525 PKG_CONFIG_PATH 1526 directories to add to pkg-config's search path 1527 PKG_CONFIG_LIBDIR 1528 path overriding pkg-config's built-in search path 1529 CHECK_CFLAGS 1530 C compiler flags for CHECK, overriding pkg-config 1531 CHECK_LIBS linker flags for CHECK, overriding pkg-config 1532 PYTHON the Python interpreter 1533 1534Use these variables to override the choices made by `configure' or to help 1535it to find libraries and programs with nonstandard names/locations. 1536 1537Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev>. 1538libevdev home page: <http://freedesktop.org/wiki/Software/libevdev/>. 1539_ACEOF 1540ac_status=$? 1541fi 1542 1543if test "$ac_init_help" = "recursive"; then 1544 # If there are subdirs, report their specific --help. 1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1546 test -d "$ac_dir" || 1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1548 continue 1549 ac_builddir=. 1550 1551case "$ac_dir" in 1552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1553*) 1554 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1555 # A ".." for each directory in $ac_dir_suffix. 1556 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1557 case $ac_top_builddir_sub in 1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1560 esac ;; 1561esac 1562ac_abs_top_builddir=$ac_pwd 1563ac_abs_builddir=$ac_pwd$ac_dir_suffix 1564# for backward compatibility: 1565ac_top_builddir=$ac_top_build_prefix 1566 1567case $srcdir in 1568 .) # We are building in place. 1569 ac_srcdir=. 1570 ac_top_srcdir=$ac_top_builddir_sub 1571 ac_abs_top_srcdir=$ac_pwd ;; 1572 [\\/]* | ?:[\\/]* ) # Absolute name. 1573 ac_srcdir=$srcdir$ac_dir_suffix; 1574 ac_top_srcdir=$srcdir 1575 ac_abs_top_srcdir=$srcdir ;; 1576 *) # Relative name. 1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1578 ac_top_srcdir=$ac_top_build_prefix$srcdir 1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1580esac 1581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1582 1583 cd "$ac_dir" || { ac_status=$?; continue; } 1584 # Check for configure.gnu first; this name is used for a wrapper for 1585 # Metaconfig's "Configure" on case-insensitive file systems. 1586 if test -f "$ac_srcdir/configure.gnu"; then 1587 echo && 1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1589 elif test -f "$ac_srcdir/configure"; then 1590 echo && 1591 $SHELL "$ac_srcdir/configure" --help=recursive 1592 else 1593 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1594 fi || ac_status=$? 1595 cd "$ac_pwd" || { ac_status=$?; break; } 1596 done 1597fi 1598 1599test -n "$ac_init_help" && exit $ac_status 1600if $ac_init_version; then 1601 cat <<\_ACEOF 1602libevdev configure 1.13.0 1603generated by GNU Autoconf 2.71 1604 1605Copyright (C) 2021 Free Software Foundation, Inc. 1606This configure script is free software; the Free Software Foundation 1607gives unlimited permission to copy, distribute and modify it. 1608_ACEOF 1609 exit 1610fi 1611 1612## ------------------------ ## 1613## Autoconf initialization. ## 1614## ------------------------ ## 1615 1616# ac_fn_c_try_compile LINENO 1617# -------------------------- 1618# Try to compile conftest.$ac_ext, and return whether this succeeded. 1619ac_fn_c_try_compile () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 rm -f conftest.$ac_objext conftest.beam 1623 if { { ac_try="$ac_compile" 1624case "(($ac_try" in 1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1626 *) ac_try_echo=$ac_try;; 1627esac 1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1629printf "%s\n" "$ac_try_echo"; } >&5 1630 (eval "$ac_compile") 2>conftest.err 1631 ac_status=$? 1632 if test -s conftest.err; then 1633 grep -v '^ *+' conftest.err >conftest.er1 1634 cat conftest.er1 >&5 1635 mv -f conftest.er1 conftest.err 1636 fi 1637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1638 test $ac_status = 0; } && { 1639 test -z "$ac_c_werror_flag" || 1640 test ! -s conftest.err 1641 } && test -s conftest.$ac_objext 1642then : 1643 ac_retval=0 1644else $as_nop 1645 printf "%s\n" "$as_me: failed program was:" >&5 1646sed 's/^/| /' conftest.$ac_ext >&5 1647 1648 ac_retval=1 1649fi 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 as_fn_set_status $ac_retval 1652 1653} # ac_fn_c_try_compile 1654 1655# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1656# ------------------------------------------------------- 1657# Tests whether HEADER exists and can be compiled using the include files in 1658# INCLUDES, setting the cache variable VAR accordingly. 1659ac_fn_c_check_header_compile () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1663printf %s "checking for $2... " >&6; } 1664if eval test \${$3+y} 1665then : 1666 printf %s "(cached) " >&6 1667else $as_nop 1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1669/* end confdefs.h. */ 1670$4 1671#include <$2> 1672_ACEOF 1673if ac_fn_c_try_compile "$LINENO" 1674then : 1675 eval "$3=yes" 1676else $as_nop 1677 eval "$3=no" 1678fi 1679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1680fi 1681eval ac_res=\$$3 1682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1683printf "%s\n" "$ac_res" >&6; } 1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685 1686} # ac_fn_c_check_header_compile 1687 1688# ac_fn_c_try_link LINENO 1689# ----------------------- 1690# Try to link conftest.$ac_ext, and return whether this succeeded. 1691ac_fn_c_try_link () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1695 if { { ac_try="$ac_link" 1696case "(($ac_try" in 1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1698 *) ac_try_echo=$ac_try;; 1699esac 1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1701printf "%s\n" "$ac_try_echo"; } >&5 1702 (eval "$ac_link") 2>conftest.err 1703 ac_status=$? 1704 if test -s conftest.err; then 1705 grep -v '^ *+' conftest.err >conftest.er1 1706 cat conftest.er1 >&5 1707 mv -f conftest.er1 conftest.err 1708 fi 1709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; } && { 1711 test -z "$ac_c_werror_flag" || 1712 test ! -s conftest.err 1713 } && test -s conftest$ac_exeext && { 1714 test "$cross_compiling" = yes || 1715 test -x conftest$ac_exeext 1716 } 1717then : 1718 ac_retval=0 1719else $as_nop 1720 printf "%s\n" "$as_me: failed program was:" >&5 1721sed 's/^/| /' conftest.$ac_ext >&5 1722 1723 ac_retval=1 1724fi 1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1727 # interfere with the next link command; also delete a directory that is 1728 # left behind by Apple's compiler. We do this before executing the actions. 1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1731 as_fn_set_status $ac_retval 1732 1733} # ac_fn_c_try_link 1734 1735# ac_fn_c_check_func LINENO FUNC VAR 1736# ---------------------------------- 1737# Tests whether FUNC exists, setting the cache variable VAR accordingly 1738ac_fn_c_check_func () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1742printf %s "checking for $2... " >&6; } 1743if eval test \${$3+y} 1744then : 1745 printf %s "(cached) " >&6 1746else $as_nop 1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1748/* end confdefs.h. */ 1749/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1750 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1751#define $2 innocuous_$2 1752 1753/* System header to define __stub macros and hopefully few prototypes, 1754 which can conflict with char $2 (); below. */ 1755 1756#include <limits.h> 1757#undef $2 1758 1759/* Override any GCC internal prototype to avoid an error. 1760 Use char because int might match the return type of a GCC 1761 builtin and then its argument prototype would still apply. */ 1762#ifdef __cplusplus 1763extern "C" 1764#endif 1765char $2 (); 1766/* The GNU C library defines this for functions which it implements 1767 to always fail with ENOSYS. Some functions are actually named 1768 something starting with __ and the normal name is an alias. */ 1769#if defined __stub_$2 || defined __stub___$2 1770choke me 1771#endif 1772 1773int 1774main (void) 1775{ 1776return $2 (); 1777 ; 1778 return 0; 1779} 1780_ACEOF 1781if ac_fn_c_try_link "$LINENO" 1782then : 1783 eval "$3=yes" 1784else $as_nop 1785 eval "$3=no" 1786fi 1787rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1788 conftest$ac_exeext conftest.$ac_ext 1789fi 1790eval ac_res=\$$3 1791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1792printf "%s\n" "$ac_res" >&6; } 1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1794 1795} # ac_fn_c_check_func 1796ac_configure_args_raw= 1797for ac_arg 1798do 1799 case $ac_arg in 1800 *\'*) 1801 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1802 esac 1803 as_fn_append ac_configure_args_raw " '$ac_arg'" 1804done 1805 1806case $ac_configure_args_raw in 1807 *$as_nl*) 1808 ac_safe_unquote= ;; 1809 *) 1810 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1811 ac_unsafe_a="$ac_unsafe_z#~" 1812 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1813 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1814esac 1815 1816cat >config.log <<_ACEOF 1817This file contains any messages produced by compilers while 1818running configure, to aid debugging if configure makes a mistake. 1819 1820It was created by libevdev $as_me 1.13.0, which was 1821generated by GNU Autoconf 2.71. Invocation command line was 1822 1823 $ $0$ac_configure_args_raw 1824 1825_ACEOF 1826exec 5>>config.log 1827{ 1828cat <<_ASUNAME 1829## --------- ## 1830## Platform. ## 1831## --------- ## 1832 1833hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1834uname -m = `(uname -m) 2>/dev/null || echo unknown` 1835uname -r = `(uname -r) 2>/dev/null || echo unknown` 1836uname -s = `(uname -s) 2>/dev/null || echo unknown` 1837uname -v = `(uname -v) 2>/dev/null || echo unknown` 1838 1839/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1840/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1841 1842/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1843/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1844/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1845/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1846/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1847/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1848/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1849 1850_ASUNAME 1851 1852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1853for as_dir in $PATH 1854do 1855 IFS=$as_save_IFS 1856 case $as_dir in #((( 1857 '') as_dir=./ ;; 1858 */) ;; 1859 *) as_dir=$as_dir/ ;; 1860 esac 1861 printf "%s\n" "PATH: $as_dir" 1862 done 1863IFS=$as_save_IFS 1864 1865} >&5 1866 1867cat >&5 <<_ACEOF 1868 1869 1870## ----------- ## 1871## Core tests. ## 1872## ----------- ## 1873 1874_ACEOF 1875 1876 1877# Keep a trace of the command line. 1878# Strip out --no-create and --no-recursion so they do not pile up. 1879# Strip out --silent because we don't want to record it for future runs. 1880# Also quote any args containing shell meta-characters. 1881# Make two passes to allow for proper duplicate-argument suppression. 1882ac_configure_args= 1883ac_configure_args0= 1884ac_configure_args1= 1885ac_must_keep_next=false 1886for ac_pass in 1 2 1887do 1888 for ac_arg 1889 do 1890 case $ac_arg in 1891 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1892 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1893 | -silent | --silent | --silen | --sile | --sil) 1894 continue ;; 1895 *\'*) 1896 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1897 esac 1898 case $ac_pass in 1899 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1900 2) 1901 as_fn_append ac_configure_args1 " '$ac_arg'" 1902 if test $ac_must_keep_next = true; then 1903 ac_must_keep_next=false # Got value, back to normal. 1904 else 1905 case $ac_arg in 1906 *=* | --config-cache | -C | -disable-* | --disable-* \ 1907 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1908 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1909 | -with-* | --with-* | -without-* | --without-* | --x) 1910 case "$ac_configure_args0 " in 1911 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1912 esac 1913 ;; 1914 -* ) ac_must_keep_next=true ;; 1915 esac 1916 fi 1917 as_fn_append ac_configure_args " '$ac_arg'" 1918 ;; 1919 esac 1920 done 1921done 1922{ ac_configure_args0=; unset ac_configure_args0;} 1923{ ac_configure_args1=; unset ac_configure_args1;} 1924 1925# When interrupted or exit'd, cleanup temporary files, and complete 1926# config.log. We remove comments because anyway the quotes in there 1927# would cause problems or look ugly. 1928# WARNING: Use '\'' to represent an apostrophe within the trap. 1929# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1930trap 'exit_status=$? 1931 # Sanitize IFS. 1932 IFS=" "" $as_nl" 1933 # Save into config.log some information that might help in debugging. 1934 { 1935 echo 1936 1937 printf "%s\n" "## ---------------- ## 1938## Cache variables. ## 1939## ---------------- ##" 1940 echo 1941 # The following way of writing the cache mishandles newlines in values, 1942( 1943 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1944 eval ac_val=\$$ac_var 1945 case $ac_val in #( 1946 *${as_nl}*) 1947 case $ac_var in #( 1948 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1949printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1950 esac 1951 case $ac_var in #( 1952 _ | IFS | as_nl) ;; #( 1953 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1954 *) { eval $ac_var=; unset $ac_var;} ;; 1955 esac ;; 1956 esac 1957 done 1958 (set) 2>&1 | 1959 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1960 *${as_nl}ac_space=\ *) 1961 sed -n \ 1962 "s/'\''/'\''\\\\'\'''\''/g; 1963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1964 ;; #( 1965 *) 1966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1967 ;; 1968 esac | 1969 sort 1970) 1971 echo 1972 1973 printf "%s\n" "## ----------------- ## 1974## Output variables. ## 1975## ----------------- ##" 1976 echo 1977 for ac_var in $ac_subst_vars 1978 do 1979 eval ac_val=\$$ac_var 1980 case $ac_val in 1981 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1982 esac 1983 printf "%s\n" "$ac_var='\''$ac_val'\''" 1984 done | sort 1985 echo 1986 1987 if test -n "$ac_subst_files"; then 1988 printf "%s\n" "## ------------------- ## 1989## File substitutions. ## 1990## ------------------- ##" 1991 echo 1992 for ac_var in $ac_subst_files 1993 do 1994 eval ac_val=\$$ac_var 1995 case $ac_val in 1996 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1997 esac 1998 printf "%s\n" "$ac_var='\''$ac_val'\''" 1999 done | sort 2000 echo 2001 fi 2002 2003 if test -s confdefs.h; then 2004 printf "%s\n" "## ----------- ## 2005## confdefs.h. ## 2006## ----------- ##" 2007 echo 2008 cat confdefs.h 2009 echo 2010 fi 2011 test "$ac_signal" != 0 && 2012 printf "%s\n" "$as_me: caught signal $ac_signal" 2013 printf "%s\n" "$as_me: exit $exit_status" 2014 } >&5 2015 rm -f core *.core core.conftest.* && 2016 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2017 exit $exit_status 2018' 0 2019for ac_signal in 1 2 13 15; do 2020 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2021done 2022ac_signal=0 2023 2024# confdefs.h avoids OS command line length limits that DEFS can exceed. 2025rm -f -r conftest* confdefs.h 2026 2027printf "%s\n" "/* confdefs.h */" > confdefs.h 2028 2029# Predefined preprocessor variables. 2030 2031printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2032 2033printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2034 2035printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2036 2037printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2038 2039printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2040 2041printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2042 2043 2044# Let the site file select an alternate cache file if it wants to. 2045# Prefer an explicitly selected file to automatically selected ones. 2046if test -n "$CONFIG_SITE"; then 2047 ac_site_files="$CONFIG_SITE" 2048elif test "x$prefix" != xNONE; then 2049 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2050else 2051 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2052fi 2053 2054for ac_site_file in $ac_site_files 2055do 2056 case $ac_site_file in #( 2057 */*) : 2058 ;; #( 2059 *) : 2060 ac_site_file=./$ac_site_file ;; 2061esac 2062 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2064printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2065 sed 's/^/| /' "$ac_site_file" >&5 2066 . "$ac_site_file" \ 2067 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2068printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2069as_fn_error $? "failed to load site script $ac_site_file 2070See \`config.log' for more details" "$LINENO" 5; } 2071 fi 2072done 2073 2074if test -r "$cache_file"; then 2075 # Some versions of bash will fail to source /dev/null (special files 2076 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2077 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2079printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2080 case $cache_file in 2081 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2082 *) . "./$cache_file";; 2083 esac 2084 fi 2085else 2086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2087printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2088 >$cache_file 2089fi 2090 2091as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2092# Test code for whether the C compiler supports C89 (global declarations) 2093ac_c_conftest_c89_globals=' 2094/* Does the compiler advertise C89 conformance? 2095 Do not test the value of __STDC__, because some compilers set it to 0 2096 while being otherwise adequately conformant. */ 2097#if !defined __STDC__ 2098# error "Compiler does not advertise C89 conformance" 2099#endif 2100 2101#include <stddef.h> 2102#include <stdarg.h> 2103struct stat; 2104/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2105struct buf { int x; }; 2106struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2107static char *e (p, i) 2108 char **p; 2109 int i; 2110{ 2111 return p[i]; 2112} 2113static char *f (char * (*g) (char **, int), char **p, ...) 2114{ 2115 char *s; 2116 va_list v; 2117 va_start (v,p); 2118 s = g (p, va_arg (v,int)); 2119 va_end (v); 2120 return s; 2121} 2122 2123/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2124 function prototypes and stuff, but not \xHH hex character constants. 2125 These do not provoke an error unfortunately, instead are silently treated 2126 as an "x". The following induces an error, until -std is added to get 2127 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2128 array size at least. It is necessary to write \x00 == 0 to get something 2129 that is true only with -std. */ 2130int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2131 2132/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2133 inside strings and character constants. */ 2134#define FOO(x) '\''x'\'' 2135int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2136 2137int test (int i, double x); 2138struct s1 {int (*f) (int a);}; 2139struct s2 {int (*f) (double a);}; 2140int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2141 int, int);' 2142 2143# Test code for whether the C compiler supports C89 (body of main). 2144ac_c_conftest_c89_main=' 2145ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2146' 2147 2148# Test code for whether the C compiler supports C99 (global declarations) 2149ac_c_conftest_c99_globals=' 2150// Does the compiler advertise C99 conformance? 2151#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2152# error "Compiler does not advertise C99 conformance" 2153#endif 2154 2155#include <stdbool.h> 2156extern int puts (const char *); 2157extern int printf (const char *, ...); 2158extern int dprintf (int, const char *, ...); 2159extern void *malloc (size_t); 2160 2161// Check varargs macros. These examples are taken from C99 6.10.3.5. 2162// dprintf is used instead of fprintf to avoid needing to declare 2163// FILE and stderr. 2164#define debug(...) dprintf (2, __VA_ARGS__) 2165#define showlist(...) puts (#__VA_ARGS__) 2166#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2167static void 2168test_varargs_macros (void) 2169{ 2170 int x = 1234; 2171 int y = 5678; 2172 debug ("Flag"); 2173 debug ("X = %d\n", x); 2174 showlist (The first, second, and third items.); 2175 report (x>y, "x is %d but y is %d", x, y); 2176} 2177 2178// Check long long types. 2179#define BIG64 18446744073709551615ull 2180#define BIG32 4294967295ul 2181#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2182#if !BIG_OK 2183 #error "your preprocessor is broken" 2184#endif 2185#if BIG_OK 2186#else 2187 #error "your preprocessor is broken" 2188#endif 2189static long long int bignum = -9223372036854775807LL; 2190static unsigned long long int ubignum = BIG64; 2191 2192struct incomplete_array 2193{ 2194 int datasize; 2195 double data[]; 2196}; 2197 2198struct named_init { 2199 int number; 2200 const wchar_t *name; 2201 double average; 2202}; 2203 2204typedef const char *ccp; 2205 2206static inline int 2207test_restrict (ccp restrict text) 2208{ 2209 // See if C++-style comments work. 2210 // Iterate through items via the restricted pointer. 2211 // Also check for declarations in for loops. 2212 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2213 continue; 2214 return 0; 2215} 2216 2217// Check varargs and va_copy. 2218static bool 2219test_varargs (const char *format, ...) 2220{ 2221 va_list args; 2222 va_start (args, format); 2223 va_list args_copy; 2224 va_copy (args_copy, args); 2225 2226 const char *str = ""; 2227 int number = 0; 2228 float fnumber = 0; 2229 2230 while (*format) 2231 { 2232 switch (*format++) 2233 { 2234 case '\''s'\'': // string 2235 str = va_arg (args_copy, const char *); 2236 break; 2237 case '\''d'\'': // int 2238 number = va_arg (args_copy, int); 2239 break; 2240 case '\''f'\'': // float 2241 fnumber = va_arg (args_copy, double); 2242 break; 2243 default: 2244 break; 2245 } 2246 } 2247 va_end (args_copy); 2248 va_end (args); 2249 2250 return *str && number && fnumber; 2251} 2252' 2253 2254# Test code for whether the C compiler supports C99 (body of main). 2255ac_c_conftest_c99_main=' 2256 // Check bool. 2257 _Bool success = false; 2258 success |= (argc != 0); 2259 2260 // Check restrict. 2261 if (test_restrict ("String literal") == 0) 2262 success = true; 2263 char *restrict newvar = "Another string"; 2264 2265 // Check varargs. 2266 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2267 test_varargs_macros (); 2268 2269 // Check flexible array members. 2270 struct incomplete_array *ia = 2271 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2272 ia->datasize = 10; 2273 for (int i = 0; i < ia->datasize; ++i) 2274 ia->data[i] = i * 1.234; 2275 2276 // Check named initializers. 2277 struct named_init ni = { 2278 .number = 34, 2279 .name = L"Test wide string", 2280 .average = 543.34343, 2281 }; 2282 2283 ni.number = 58; 2284 2285 int dynamic_array[ni.number]; 2286 dynamic_array[0] = argv[0][0]; 2287 dynamic_array[ni.number - 1] = 543; 2288 2289 // work around unused variable warnings 2290 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2291 || dynamic_array[ni.number - 1] != 543); 2292' 2293 2294# Test code for whether the C compiler supports C11 (global declarations) 2295ac_c_conftest_c11_globals=' 2296// Does the compiler advertise C11 conformance? 2297#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2298# error "Compiler does not advertise C11 conformance" 2299#endif 2300 2301// Check _Alignas. 2302char _Alignas (double) aligned_as_double; 2303char _Alignas (0) no_special_alignment; 2304extern char aligned_as_int; 2305char _Alignas (0) _Alignas (int) aligned_as_int; 2306 2307// Check _Alignof. 2308enum 2309{ 2310 int_alignment = _Alignof (int), 2311 int_array_alignment = _Alignof (int[100]), 2312 char_alignment = _Alignof (char) 2313}; 2314_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2315 2316// Check _Noreturn. 2317int _Noreturn does_not_return (void) { for (;;) continue; } 2318 2319// Check _Static_assert. 2320struct test_static_assert 2321{ 2322 int x; 2323 _Static_assert (sizeof (int) <= sizeof (long int), 2324 "_Static_assert does not work in struct"); 2325 long int y; 2326}; 2327 2328// Check UTF-8 literals. 2329#define u8 syntax error! 2330char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2331 2332// Check duplicate typedefs. 2333typedef long *long_ptr; 2334typedef long int *long_ptr; 2335typedef long_ptr long_ptr; 2336 2337// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2338struct anonymous 2339{ 2340 union { 2341 struct { int i; int j; }; 2342 struct { int k; long int l; } w; 2343 }; 2344 int m; 2345} v1; 2346' 2347 2348# Test code for whether the C compiler supports C11 (body of main). 2349ac_c_conftest_c11_main=' 2350 _Static_assert ((offsetof (struct anonymous, i) 2351 == offsetof (struct anonymous, w.k)), 2352 "Anonymous union alignment botch"); 2353 v1.i = 2; 2354 v1.w.k = 5; 2355 ok |= v1.i != 5; 2356' 2357 2358# Test code for whether the C compiler supports C11 (complete). 2359ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2360${ac_c_conftest_c99_globals} 2361${ac_c_conftest_c11_globals} 2362 2363int 2364main (int argc, char **argv) 2365{ 2366 int ok = 0; 2367 ${ac_c_conftest_c89_main} 2368 ${ac_c_conftest_c99_main} 2369 ${ac_c_conftest_c11_main} 2370 return ok; 2371} 2372" 2373 2374# Test code for whether the C compiler supports C99 (complete). 2375ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2376${ac_c_conftest_c99_globals} 2377 2378int 2379main (int argc, char **argv) 2380{ 2381 int ok = 0; 2382 ${ac_c_conftest_c89_main} 2383 ${ac_c_conftest_c99_main} 2384 return ok; 2385} 2386" 2387 2388# Test code for whether the C compiler supports C89 (complete). 2389ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2390 2391int 2392main (int argc, char **argv) 2393{ 2394 int ok = 0; 2395 ${ac_c_conftest_c89_main} 2396 return ok; 2397} 2398" 2399 2400as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2401as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2402as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2403as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2404as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2405as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2406as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2407as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2408as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2409as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2410 2411# Auxiliary files required by this configure script. 2412ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2413 2414# Locations in which to look for auxiliary files. 2415ac_aux_dir_candidates="${srcdir}/build-aux" 2416 2417# Search for a directory containing all of the required auxiliary files, 2418# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2419# If we don't find one directory that contains all the files we need, 2420# we report the set of missing files from the *first* directory in 2421# $ac_aux_dir_candidates and give up. 2422ac_missing_aux_files="" 2423ac_first_candidate=: 2424printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2426as_found=false 2427for as_dir in $ac_aux_dir_candidates 2428do 2429 IFS=$as_save_IFS 2430 case $as_dir in #((( 2431 '') as_dir=./ ;; 2432 */) ;; 2433 *) as_dir=$as_dir/ ;; 2434 esac 2435 as_found=: 2436 2437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2438 ac_aux_dir_found=yes 2439 ac_install_sh= 2440 for ac_aux in $ac_aux_files 2441 do 2442 # As a special case, if "install-sh" is required, that requirement 2443 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2444 # and $ac_install_sh is set appropriately for whichever one is found. 2445 if test x"$ac_aux" = x"install-sh" 2446 then 2447 if 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}install.sh"; then 2451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2452 ac_install_sh="${as_dir}install.sh -c" 2453 elif test -f "${as_dir}shtool"; then 2454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2455 ac_install_sh="${as_dir}shtool install -c" 2456 else 2457 ac_aux_dir_found=no 2458 if $ac_first_candidate; then 2459 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2460 else 2461 break 2462 fi 2463 fi 2464 else 2465 if test -f "${as_dir}${ac_aux}"; then 2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2467 else 2468 ac_aux_dir_found=no 2469 if $ac_first_candidate; then 2470 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2471 else 2472 break 2473 fi 2474 fi 2475 fi 2476 done 2477 if test "$ac_aux_dir_found" = yes; then 2478 ac_aux_dir="$as_dir" 2479 break 2480 fi 2481 ac_first_candidate=false 2482 2483 as_found=false 2484done 2485IFS=$as_save_IFS 2486if $as_found 2487then : 2488 2489else $as_nop 2490 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2491fi 2492 2493 2494# These three variables are undocumented and unsupported, 2495# and are intended to be withdrawn in a future Autoconf release. 2496# They can cause serious problems if a builder's source tree is in a directory 2497# whose full name contains unusual characters. 2498if test -f "${ac_aux_dir}config.guess"; then 2499 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2500fi 2501if test -f "${ac_aux_dir}config.sub"; then 2502 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2503fi 2504if test -f "$ac_aux_dir/configure"; then 2505 ac_configure="$SHELL ${ac_aux_dir}configure" 2506fi 2507 2508# Check that the precious variables saved in the cache have kept the same 2509# value. 2510ac_cache_corrupted=false 2511for ac_var in $ac_precious_vars; do 2512 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2513 eval ac_new_set=\$ac_env_${ac_var}_set 2514 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2515 eval ac_new_val=\$ac_env_${ac_var}_value 2516 case $ac_old_set,$ac_new_set in 2517 set,) 2518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2519printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2520 ac_cache_corrupted=: ;; 2521 ,set) 2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2523printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2524 ac_cache_corrupted=: ;; 2525 ,);; 2526 *) 2527 if test "x$ac_old_val" != "x$ac_new_val"; then 2528 # differences in whitespace do not lead to failure. 2529 ac_old_val_w=`echo x $ac_old_val` 2530 ac_new_val_w=`echo x $ac_new_val` 2531 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2533printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2534 ac_cache_corrupted=: 2535 else 2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2537printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2538 eval $ac_var=\$ac_old_val 2539 fi 2540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2541printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2543printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2544 fi;; 2545 esac 2546 # Pass precious variables to config.status. 2547 if test "$ac_new_set" = set; then 2548 case $ac_new_val in 2549 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2550 *) ac_arg=$ac_var=$ac_new_val ;; 2551 esac 2552 case " $ac_configure_args " in 2553 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2554 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2555 esac 2556 fi 2557done 2558if $ac_cache_corrupted; then 2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2560printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2562printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2563 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2564 and start over" "$LINENO" 5 2565fi 2566## -------------------- ## 2567## Main body of script. ## 2568## -------------------- ## 2569 2570ac_ext=c 2571ac_cpp='$CPP $CPPFLAGS' 2572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2574ac_compiler_gnu=$ac_cv_c_compiler_gnu 2575 2576 2577 2578 2579ac_config_headers="$ac_config_headers config.h" 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594# Expand $ac_aux_dir to an absolute path. 2595am_aux_dir=`cd "$ac_aux_dir" && pwd` 2596 2597ac_ext=c 2598ac_cpp='$CPP $CPPFLAGS' 2599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2601ac_compiler_gnu=$ac_cv_c_compiler_gnu 2602if test -n "$ac_tool_prefix"; then 2603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2604set dummy ${ac_tool_prefix}gcc; ac_word=$2 2605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2606printf %s "checking for $ac_word... " >&6; } 2607if test ${ac_cv_prog_CC+y} 2608then : 2609 printf %s "(cached) " >&6 2610else $as_nop 2611 if test -n "$CC"; then 2612 ac_cv_prog_CC="$CC" # Let the user override the test. 2613else 2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2615for as_dir in $PATH 2616do 2617 IFS=$as_save_IFS 2618 case $as_dir in #((( 2619 '') as_dir=./ ;; 2620 */) ;; 2621 *) as_dir=$as_dir/ ;; 2622 esac 2623 for ac_exec_ext in '' $ac_executable_extensions; do 2624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2625 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2627 break 2 2628 fi 2629done 2630 done 2631IFS=$as_save_IFS 2632 2633fi 2634fi 2635CC=$ac_cv_prog_CC 2636if test -n "$CC"; then 2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2638printf "%s\n" "$CC" >&6; } 2639else 2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2641printf "%s\n" "no" >&6; } 2642fi 2643 2644 2645fi 2646if test -z "$ac_cv_prog_CC"; then 2647 ac_ct_CC=$CC 2648 # Extract the first word of "gcc", so it can be a program name with args. 2649set dummy gcc; ac_word=$2 2650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2651printf %s "checking for $ac_word... " >&6; } 2652if test ${ac_cv_prog_ac_ct_CC+y} 2653then : 2654 printf %s "(cached) " >&6 2655else $as_nop 2656 if test -n "$ac_ct_CC"; then 2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2658else 2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2660for as_dir in $PATH 2661do 2662 IFS=$as_save_IFS 2663 case $as_dir in #((( 2664 '') as_dir=./ ;; 2665 */) ;; 2666 *) as_dir=$as_dir/ ;; 2667 esac 2668 for ac_exec_ext in '' $ac_executable_extensions; do 2669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2670 ac_cv_prog_ac_ct_CC="gcc" 2671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2672 break 2 2673 fi 2674done 2675 done 2676IFS=$as_save_IFS 2677 2678fi 2679fi 2680ac_ct_CC=$ac_cv_prog_ac_ct_CC 2681if test -n "$ac_ct_CC"; then 2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2683printf "%s\n" "$ac_ct_CC" >&6; } 2684else 2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2686printf "%s\n" "no" >&6; } 2687fi 2688 2689 if test "x$ac_ct_CC" = x; then 2690 CC="" 2691 else 2692 case $cross_compiling:$ac_tool_warned in 2693yes:) 2694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2695printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2696ac_tool_warned=yes ;; 2697esac 2698 CC=$ac_ct_CC 2699 fi 2700else 2701 CC="$ac_cv_prog_CC" 2702fi 2703 2704if test -z "$CC"; then 2705 if test -n "$ac_tool_prefix"; then 2706 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2707set dummy ${ac_tool_prefix}cc; ac_word=$2 2708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2709printf %s "checking for $ac_word... " >&6; } 2710if test ${ac_cv_prog_CC+y} 2711then : 2712 printf %s "(cached) " >&6 2713else $as_nop 2714 if test -n "$CC"; then 2715 ac_cv_prog_CC="$CC" # Let the user override the test. 2716else 2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2718for as_dir in $PATH 2719do 2720 IFS=$as_save_IFS 2721 case $as_dir in #((( 2722 '') as_dir=./ ;; 2723 */) ;; 2724 *) as_dir=$as_dir/ ;; 2725 esac 2726 for ac_exec_ext in '' $ac_executable_extensions; do 2727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2728 ac_cv_prog_CC="${ac_tool_prefix}cc" 2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2730 break 2 2731 fi 2732done 2733 done 2734IFS=$as_save_IFS 2735 2736fi 2737fi 2738CC=$ac_cv_prog_CC 2739if test -n "$CC"; then 2740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2741printf "%s\n" "$CC" >&6; } 2742else 2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2744printf "%s\n" "no" >&6; } 2745fi 2746 2747 2748 fi 2749fi 2750if test -z "$CC"; then 2751 # Extract the first word of "cc", so it can be a program name with args. 2752set dummy cc; ac_word=$2 2753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2754printf %s "checking for $ac_word... " >&6; } 2755if test ${ac_cv_prog_CC+y} 2756then : 2757 printf %s "(cached) " >&6 2758else $as_nop 2759 if test -n "$CC"; then 2760 ac_cv_prog_CC="$CC" # Let the user override the test. 2761else 2762 ac_prog_rejected=no 2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2764for as_dir in $PATH 2765do 2766 IFS=$as_save_IFS 2767 case $as_dir in #((( 2768 '') as_dir=./ ;; 2769 */) ;; 2770 *) as_dir=$as_dir/ ;; 2771 esac 2772 for ac_exec_ext in '' $ac_executable_extensions; do 2773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2774 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2775 ac_prog_rejected=yes 2776 continue 2777 fi 2778 ac_cv_prog_CC="cc" 2779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2780 break 2 2781 fi 2782done 2783 done 2784IFS=$as_save_IFS 2785 2786if test $ac_prog_rejected = yes; then 2787 # We found a bogon in the path, so make sure we never use it. 2788 set dummy $ac_cv_prog_CC 2789 shift 2790 if test $# != 0; then 2791 # We chose a different compiler from the bogus one. 2792 # However, it has the same basename, so the bogon will be chosen 2793 # first if we set CC to just the basename; use the full file name. 2794 shift 2795 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2796 fi 2797fi 2798fi 2799fi 2800CC=$ac_cv_prog_CC 2801if test -n "$CC"; then 2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2803printf "%s\n" "$CC" >&6; } 2804else 2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2806printf "%s\n" "no" >&6; } 2807fi 2808 2809 2810fi 2811if test -z "$CC"; then 2812 if test -n "$ac_tool_prefix"; then 2813 for ac_prog in cl.exe 2814 do 2815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2816set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2818printf %s "checking for $ac_word... " >&6; } 2819if test ${ac_cv_prog_CC+y} 2820then : 2821 printf %s "(cached) " >&6 2822else $as_nop 2823 if test -n "$CC"; then 2824 ac_cv_prog_CC="$CC" # Let the user override the test. 2825else 2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2827for as_dir in $PATH 2828do 2829 IFS=$as_save_IFS 2830 case $as_dir in #((( 2831 '') as_dir=./ ;; 2832 */) ;; 2833 *) as_dir=$as_dir/ ;; 2834 esac 2835 for ac_exec_ext in '' $ac_executable_extensions; do 2836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2839 break 2 2840 fi 2841done 2842 done 2843IFS=$as_save_IFS 2844 2845fi 2846fi 2847CC=$ac_cv_prog_CC 2848if test -n "$CC"; then 2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2850printf "%s\n" "$CC" >&6; } 2851else 2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2853printf "%s\n" "no" >&6; } 2854fi 2855 2856 2857 test -n "$CC" && break 2858 done 2859fi 2860if test -z "$CC"; then 2861 ac_ct_CC=$CC 2862 for ac_prog in cl.exe 2863do 2864 # Extract the first word of "$ac_prog", so it can be a program name with args. 2865set dummy $ac_prog; ac_word=$2 2866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2867printf %s "checking for $ac_word... " >&6; } 2868if test ${ac_cv_prog_ac_ct_CC+y} 2869then : 2870 printf %s "(cached) " >&6 2871else $as_nop 2872 if test -n "$ac_ct_CC"; then 2873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2874else 2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2876for as_dir in $PATH 2877do 2878 IFS=$as_save_IFS 2879 case $as_dir in #((( 2880 '') as_dir=./ ;; 2881 */) ;; 2882 *) as_dir=$as_dir/ ;; 2883 esac 2884 for ac_exec_ext in '' $ac_executable_extensions; do 2885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2886 ac_cv_prog_ac_ct_CC="$ac_prog" 2887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2888 break 2 2889 fi 2890done 2891 done 2892IFS=$as_save_IFS 2893 2894fi 2895fi 2896ac_ct_CC=$ac_cv_prog_ac_ct_CC 2897if test -n "$ac_ct_CC"; then 2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2899printf "%s\n" "$ac_ct_CC" >&6; } 2900else 2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2902printf "%s\n" "no" >&6; } 2903fi 2904 2905 2906 test -n "$ac_ct_CC" && break 2907done 2908 2909 if test "x$ac_ct_CC" = x; then 2910 CC="" 2911 else 2912 case $cross_compiling:$ac_tool_warned in 2913yes:) 2914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2915printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2916ac_tool_warned=yes ;; 2917esac 2918 CC=$ac_ct_CC 2919 fi 2920fi 2921 2922fi 2923if test -z "$CC"; then 2924 if test -n "$ac_tool_prefix"; then 2925 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2926set dummy ${ac_tool_prefix}clang; ac_word=$2 2927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2928printf %s "checking for $ac_word... " >&6; } 2929if test ${ac_cv_prog_CC+y} 2930then : 2931 printf %s "(cached) " >&6 2932else $as_nop 2933 if test -n "$CC"; then 2934 ac_cv_prog_CC="$CC" # Let the user override the test. 2935else 2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2937for as_dir in $PATH 2938do 2939 IFS=$as_save_IFS 2940 case $as_dir in #((( 2941 '') as_dir=./ ;; 2942 */) ;; 2943 *) as_dir=$as_dir/ ;; 2944 esac 2945 for ac_exec_ext in '' $ac_executable_extensions; do 2946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2947 ac_cv_prog_CC="${ac_tool_prefix}clang" 2948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2949 break 2 2950 fi 2951done 2952 done 2953IFS=$as_save_IFS 2954 2955fi 2956fi 2957CC=$ac_cv_prog_CC 2958if test -n "$CC"; then 2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2960printf "%s\n" "$CC" >&6; } 2961else 2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2963printf "%s\n" "no" >&6; } 2964fi 2965 2966 2967fi 2968if test -z "$ac_cv_prog_CC"; then 2969 ac_ct_CC=$CC 2970 # Extract the first word of "clang", so it can be a program name with args. 2971set dummy clang; ac_word=$2 2972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2973printf %s "checking for $ac_word... " >&6; } 2974if test ${ac_cv_prog_ac_ct_CC+y} 2975then : 2976 printf %s "(cached) " >&6 2977else $as_nop 2978 if test -n "$ac_ct_CC"; then 2979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2980else 2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2982for as_dir in $PATH 2983do 2984 IFS=$as_save_IFS 2985 case $as_dir in #((( 2986 '') as_dir=./ ;; 2987 */) ;; 2988 *) as_dir=$as_dir/ ;; 2989 esac 2990 for ac_exec_ext in '' $ac_executable_extensions; do 2991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2992 ac_cv_prog_ac_ct_CC="clang" 2993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2994 break 2 2995 fi 2996done 2997 done 2998IFS=$as_save_IFS 2999 3000fi 3001fi 3002ac_ct_CC=$ac_cv_prog_ac_ct_CC 3003if test -n "$ac_ct_CC"; then 3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3005printf "%s\n" "$ac_ct_CC" >&6; } 3006else 3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3008printf "%s\n" "no" >&6; } 3009fi 3010 3011 if test "x$ac_ct_CC" = x; then 3012 CC="" 3013 else 3014 case $cross_compiling:$ac_tool_warned in 3015yes:) 3016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3017printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3018ac_tool_warned=yes ;; 3019esac 3020 CC=$ac_ct_CC 3021 fi 3022else 3023 CC="$ac_cv_prog_CC" 3024fi 3025 3026fi 3027 3028 3029test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3030printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3031as_fn_error $? "no acceptable C compiler found in \$PATH 3032See \`config.log' for more details" "$LINENO" 5; } 3033 3034# Provide some information about the compiler. 3035printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3036set X $ac_compile 3037ac_compiler=$2 3038for ac_option in --version -v -V -qversion -version; do 3039 { { ac_try="$ac_compiler $ac_option >&5" 3040case "(($ac_try" in 3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3042 *) ac_try_echo=$ac_try;; 3043esac 3044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3045printf "%s\n" "$ac_try_echo"; } >&5 3046 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3047 ac_status=$? 3048 if test -s conftest.err; then 3049 sed '10a\ 3050... rest of stderr output deleted ... 3051 10q' conftest.err >conftest.er1 3052 cat conftest.er1 >&5 3053 fi 3054 rm -f conftest.er1 conftest.err 3055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3056 test $ac_status = 0; } 3057done 3058 3059cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3060/* end confdefs.h. */ 3061 3062int 3063main (void) 3064{ 3065 3066 ; 3067 return 0; 3068} 3069_ACEOF 3070ac_clean_files_save=$ac_clean_files 3071ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3072# Try to create an executable without -o first, disregard a.out. 3073# It will help us diagnose broken compilers, and finding out an intuition 3074# of exeext. 3075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3076printf %s "checking whether the C compiler works... " >&6; } 3077ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3078 3079# The possible output files: 3080ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3081 3082ac_rmfiles= 3083for ac_file in $ac_files 3084do 3085 case $ac_file in 3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3087 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3088 esac 3089done 3090rm -f $ac_rmfiles 3091 3092if { { ac_try="$ac_link_default" 3093case "(($ac_try" in 3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3095 *) ac_try_echo=$ac_try;; 3096esac 3097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3098printf "%s\n" "$ac_try_echo"; } >&5 3099 (eval "$ac_link_default") 2>&5 3100 ac_status=$? 3101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3102 test $ac_status = 0; } 3103then : 3104 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3105# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3106# in a Makefile. We should not override ac_cv_exeext if it was cached, 3107# so that the user can short-circuit this test for compilers unknown to 3108# Autoconf. 3109for ac_file in $ac_files '' 3110do 3111 test -f "$ac_file" || continue 3112 case $ac_file in 3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3114 ;; 3115 [ab].out ) 3116 # We found the default executable, but exeext='' is most 3117 # certainly right. 3118 break;; 3119 *.* ) 3120 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3121 then :; else 3122 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3123 fi 3124 # We set ac_cv_exeext here because the later test for it is not 3125 # safe: cross compilers may not add the suffix if given an `-o' 3126 # argument, so we may need to know it at that point already. 3127 # Even if this section looks crufty: it has the advantage of 3128 # actually working. 3129 break;; 3130 * ) 3131 break;; 3132 esac 3133done 3134test "$ac_cv_exeext" = no && ac_cv_exeext= 3135 3136else $as_nop 3137 ac_file='' 3138fi 3139if test -z "$ac_file" 3140then : 3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3142printf "%s\n" "no" >&6; } 3143printf "%s\n" "$as_me: failed program was:" >&5 3144sed 's/^/| /' conftest.$ac_ext >&5 3145 3146{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3147printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3148as_fn_error 77 "C compiler cannot create executables 3149See \`config.log' for more details" "$LINENO" 5; } 3150else $as_nop 3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3152printf "%s\n" "yes" >&6; } 3153fi 3154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3155printf %s "checking for C compiler default output file name... " >&6; } 3156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3157printf "%s\n" "$ac_file" >&6; } 3158ac_exeext=$ac_cv_exeext 3159 3160rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3161ac_clean_files=$ac_clean_files_save 3162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3163printf %s "checking for suffix of executables... " >&6; } 3164if { { ac_try="$ac_link" 3165case "(($ac_try" in 3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3167 *) ac_try_echo=$ac_try;; 3168esac 3169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3170printf "%s\n" "$ac_try_echo"; } >&5 3171 (eval "$ac_link") 2>&5 3172 ac_status=$? 3173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3174 test $ac_status = 0; } 3175then : 3176 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3177# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3178# work properly (i.e., refer to `conftest.exe'), while it won't with 3179# `rm'. 3180for ac_file in conftest.exe conftest conftest.*; do 3181 test -f "$ac_file" || continue 3182 case $ac_file in 3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3184 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3185 break;; 3186 * ) break;; 3187 esac 3188done 3189else $as_nop 3190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3191printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3192as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3193See \`config.log' for more details" "$LINENO" 5; } 3194fi 3195rm -f conftest conftest$ac_cv_exeext 3196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3197printf "%s\n" "$ac_cv_exeext" >&6; } 3198 3199rm -f conftest.$ac_ext 3200EXEEXT=$ac_cv_exeext 3201ac_exeext=$EXEEXT 3202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3203/* end confdefs.h. */ 3204#include <stdio.h> 3205int 3206main (void) 3207{ 3208FILE *f = fopen ("conftest.out", "w"); 3209 return ferror (f) || fclose (f) != 0; 3210 3211 ; 3212 return 0; 3213} 3214_ACEOF 3215ac_clean_files="$ac_clean_files conftest.out" 3216# Check that the compiler produces executables we can run. If not, either 3217# the compiler is broken, or we cross compile. 3218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3219printf %s "checking whether we are cross compiling... " >&6; } 3220if test "$cross_compiling" != yes; then 3221 { { ac_try="$ac_link" 3222case "(($ac_try" in 3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3224 *) ac_try_echo=$ac_try;; 3225esac 3226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3227printf "%s\n" "$ac_try_echo"; } >&5 3228 (eval "$ac_link") 2>&5 3229 ac_status=$? 3230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3231 test $ac_status = 0; } 3232 if { ac_try='./conftest$ac_cv_exeext' 3233 { { case "(($ac_try" in 3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3235 *) ac_try_echo=$ac_try;; 3236esac 3237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3238printf "%s\n" "$ac_try_echo"; } >&5 3239 (eval "$ac_try") 2>&5 3240 ac_status=$? 3241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3242 test $ac_status = 0; }; }; then 3243 cross_compiling=no 3244 else 3245 if test "$cross_compiling" = maybe; then 3246 cross_compiling=yes 3247 else 3248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3249printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3250as_fn_error 77 "cannot run C compiled programs. 3251If you meant to cross compile, use \`--host'. 3252See \`config.log' for more details" "$LINENO" 5; } 3253 fi 3254 fi 3255fi 3256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3257printf "%s\n" "$cross_compiling" >&6; } 3258 3259rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3260ac_clean_files=$ac_clean_files_save 3261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3262printf %s "checking for suffix of object files... " >&6; } 3263if test ${ac_cv_objext+y} 3264then : 3265 printf %s "(cached) " >&6 3266else $as_nop 3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3268/* end confdefs.h. */ 3269 3270int 3271main (void) 3272{ 3273 3274 ; 3275 return 0; 3276} 3277_ACEOF 3278rm -f conftest.o conftest.obj 3279if { { ac_try="$ac_compile" 3280case "(($ac_try" in 3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3282 *) ac_try_echo=$ac_try;; 3283esac 3284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3285printf "%s\n" "$ac_try_echo"; } >&5 3286 (eval "$ac_compile") 2>&5 3287 ac_status=$? 3288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3289 test $ac_status = 0; } 3290then : 3291 for ac_file in conftest.o conftest.obj conftest.*; do 3292 test -f "$ac_file" || continue; 3293 case $ac_file in 3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3295 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3296 break;; 3297 esac 3298done 3299else $as_nop 3300 printf "%s\n" "$as_me: failed program was:" >&5 3301sed 's/^/| /' conftest.$ac_ext >&5 3302 3303{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3304printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3305as_fn_error $? "cannot compute suffix of object files: cannot compile 3306See \`config.log' for more details" "$LINENO" 5; } 3307fi 3308rm -f conftest.$ac_cv_objext conftest.$ac_ext 3309fi 3310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3311printf "%s\n" "$ac_cv_objext" >&6; } 3312OBJEXT=$ac_cv_objext 3313ac_objext=$OBJEXT 3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3315printf %s "checking whether the compiler supports GNU C... " >&6; } 3316if test ${ac_cv_c_compiler_gnu+y} 3317then : 3318 printf %s "(cached) " >&6 3319else $as_nop 3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3321/* end confdefs.h. */ 3322 3323int 3324main (void) 3325{ 3326#ifndef __GNUC__ 3327 choke me 3328#endif 3329 3330 ; 3331 return 0; 3332} 3333_ACEOF 3334if ac_fn_c_try_compile "$LINENO" 3335then : 3336 ac_compiler_gnu=yes 3337else $as_nop 3338 ac_compiler_gnu=no 3339fi 3340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3341ac_cv_c_compiler_gnu=$ac_compiler_gnu 3342 3343fi 3344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3345printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3346ac_compiler_gnu=$ac_cv_c_compiler_gnu 3347 3348if test $ac_compiler_gnu = yes; then 3349 GCC=yes 3350else 3351 GCC= 3352fi 3353ac_test_CFLAGS=${CFLAGS+y} 3354ac_save_CFLAGS=$CFLAGS 3355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3356printf %s "checking whether $CC accepts -g... " >&6; } 3357if test ${ac_cv_prog_cc_g+y} 3358then : 3359 printf %s "(cached) " >&6 3360else $as_nop 3361 ac_save_c_werror_flag=$ac_c_werror_flag 3362 ac_c_werror_flag=yes 3363 ac_cv_prog_cc_g=no 3364 CFLAGS="-g" 3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3366/* end confdefs.h. */ 3367 3368int 3369main (void) 3370{ 3371 3372 ; 3373 return 0; 3374} 3375_ACEOF 3376if ac_fn_c_try_compile "$LINENO" 3377then : 3378 ac_cv_prog_cc_g=yes 3379else $as_nop 3380 CFLAGS="" 3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3382/* end confdefs.h. */ 3383 3384int 3385main (void) 3386{ 3387 3388 ; 3389 return 0; 3390} 3391_ACEOF 3392if ac_fn_c_try_compile "$LINENO" 3393then : 3394 3395else $as_nop 3396 ac_c_werror_flag=$ac_save_c_werror_flag 3397 CFLAGS="-g" 3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3399/* end confdefs.h. */ 3400 3401int 3402main (void) 3403{ 3404 3405 ; 3406 return 0; 3407} 3408_ACEOF 3409if ac_fn_c_try_compile "$LINENO" 3410then : 3411 ac_cv_prog_cc_g=yes 3412fi 3413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3414fi 3415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3416fi 3417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3418 ac_c_werror_flag=$ac_save_c_werror_flag 3419fi 3420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3421printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3422if test $ac_test_CFLAGS; then 3423 CFLAGS=$ac_save_CFLAGS 3424elif test $ac_cv_prog_cc_g = yes; then 3425 if test "$GCC" = yes; then 3426 CFLAGS="-g -O2" 3427 else 3428 CFLAGS="-g" 3429 fi 3430else 3431 if test "$GCC" = yes; then 3432 CFLAGS="-O2" 3433 else 3434 CFLAGS= 3435 fi 3436fi 3437ac_prog_cc_stdc=no 3438if test x$ac_prog_cc_stdc = xno 3439then : 3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3441printf %s "checking for $CC option to enable C11 features... " >&6; } 3442if test ${ac_cv_prog_cc_c11+y} 3443then : 3444 printf %s "(cached) " >&6 3445else $as_nop 3446 ac_cv_prog_cc_c11=no 3447ac_save_CC=$CC 3448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3449/* end confdefs.h. */ 3450$ac_c_conftest_c11_program 3451_ACEOF 3452for ac_arg in '' -std=gnu11 3453do 3454 CC="$ac_save_CC $ac_arg" 3455 if ac_fn_c_try_compile "$LINENO" 3456then : 3457 ac_cv_prog_cc_c11=$ac_arg 3458fi 3459rm -f core conftest.err conftest.$ac_objext conftest.beam 3460 test "x$ac_cv_prog_cc_c11" != "xno" && break 3461done 3462rm -f conftest.$ac_ext 3463CC=$ac_save_CC 3464fi 3465 3466if test "x$ac_cv_prog_cc_c11" = xno 3467then : 3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3469printf "%s\n" "unsupported" >&6; } 3470else $as_nop 3471 if test "x$ac_cv_prog_cc_c11" = x 3472then : 3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3474printf "%s\n" "none needed" >&6; } 3475else $as_nop 3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3477printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3478 CC="$CC $ac_cv_prog_cc_c11" 3479fi 3480 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3481 ac_prog_cc_stdc=c11 3482fi 3483fi 3484if test x$ac_prog_cc_stdc = xno 3485then : 3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3487printf %s "checking for $CC option to enable C99 features... " >&6; } 3488if test ${ac_cv_prog_cc_c99+y} 3489then : 3490 printf %s "(cached) " >&6 3491else $as_nop 3492 ac_cv_prog_cc_c99=no 3493ac_save_CC=$CC 3494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3495/* end confdefs.h. */ 3496$ac_c_conftest_c99_program 3497_ACEOF 3498for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3499do 3500 CC="$ac_save_CC $ac_arg" 3501 if ac_fn_c_try_compile "$LINENO" 3502then : 3503 ac_cv_prog_cc_c99=$ac_arg 3504fi 3505rm -f core conftest.err conftest.$ac_objext conftest.beam 3506 test "x$ac_cv_prog_cc_c99" != "xno" && break 3507done 3508rm -f conftest.$ac_ext 3509CC=$ac_save_CC 3510fi 3511 3512if test "x$ac_cv_prog_cc_c99" = xno 3513then : 3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3515printf "%s\n" "unsupported" >&6; } 3516else $as_nop 3517 if test "x$ac_cv_prog_cc_c99" = x 3518then : 3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3520printf "%s\n" "none needed" >&6; } 3521else $as_nop 3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3523printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3524 CC="$CC $ac_cv_prog_cc_c99" 3525fi 3526 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3527 ac_prog_cc_stdc=c99 3528fi 3529fi 3530if test x$ac_prog_cc_stdc = xno 3531then : 3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3533printf %s "checking for $CC option to enable C89 features... " >&6; } 3534if test ${ac_cv_prog_cc_c89+y} 3535then : 3536 printf %s "(cached) " >&6 3537else $as_nop 3538 ac_cv_prog_cc_c89=no 3539ac_save_CC=$CC 3540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3541/* end confdefs.h. */ 3542$ac_c_conftest_c89_program 3543_ACEOF 3544for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3545do 3546 CC="$ac_save_CC $ac_arg" 3547 if ac_fn_c_try_compile "$LINENO" 3548then : 3549 ac_cv_prog_cc_c89=$ac_arg 3550fi 3551rm -f core conftest.err conftest.$ac_objext conftest.beam 3552 test "x$ac_cv_prog_cc_c89" != "xno" && break 3553done 3554rm -f conftest.$ac_ext 3555CC=$ac_save_CC 3556fi 3557 3558if test "x$ac_cv_prog_cc_c89" = xno 3559then : 3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3561printf "%s\n" "unsupported" >&6; } 3562else $as_nop 3563 if test "x$ac_cv_prog_cc_c89" = x 3564then : 3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3566printf "%s\n" "none needed" >&6; } 3567else $as_nop 3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3569printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3570 CC="$CC $ac_cv_prog_cc_c89" 3571fi 3572 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3573 ac_prog_cc_stdc=c89 3574fi 3575fi 3576 3577ac_ext=c 3578ac_cpp='$CPP $CPPFLAGS' 3579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3581ac_compiler_gnu=$ac_cv_c_compiler_gnu 3582 3583 3584 ac_ext=c 3585ac_cpp='$CPP $CPPFLAGS' 3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3588ac_compiler_gnu=$ac_cv_c_compiler_gnu 3589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3590printf %s "checking whether $CC understands -c and -o together... " >&6; } 3591if test ${am_cv_prog_cc_c_o+y} 3592then : 3593 printf %s "(cached) " >&6 3594else $as_nop 3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3596/* end confdefs.h. */ 3597 3598int 3599main (void) 3600{ 3601 3602 ; 3603 return 0; 3604} 3605_ACEOF 3606 # Make sure it works both with $CC and with simple cc. 3607 # Following AC_PROG_CC_C_O, we do the test twice because some 3608 # compilers refuse to overwrite an existing .o file with -o, 3609 # though they will create one. 3610 am_cv_prog_cc_c_o=yes 3611 for am_i in 1 2; do 3612 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3613 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3614 ac_status=$? 3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3616 (exit $ac_status); } \ 3617 && test -f conftest2.$ac_objext; then 3618 : OK 3619 else 3620 am_cv_prog_cc_c_o=no 3621 break 3622 fi 3623 done 3624 rm -f core conftest* 3625 unset am_i 3626fi 3627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3628printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3629if test "$am_cv_prog_cc_c_o" != yes; then 3630 # Losing compiler, so override with the script. 3631 # FIXME: It is wrong to rewrite CC. 3632 # But if we don't then we get into trouble of one sort or another. 3633 # A longer-term fix would be to have automake use am__CC in this case, 3634 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3635 CC="$am_aux_dir/compile $CC" 3636fi 3637ac_ext=c 3638ac_cpp='$CPP $CPPFLAGS' 3639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3641ac_compiler_gnu=$ac_cv_c_compiler_gnu 3642 3643 3644 3645ac_header= ac_cache= 3646for ac_item in $ac_header_c_list 3647do 3648 if test $ac_cache; then 3649 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3650 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3651 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3652 fi 3653 ac_header= ac_cache= 3654 elif test $ac_header; then 3655 ac_cache=$ac_item 3656 else 3657 ac_header=$ac_item 3658 fi 3659done 3660 3661 3662 3663 3664 3665 3666 3667 3668if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3669then : 3670 3671printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3672 3673fi 3674 3675 3676 3677 3678 3679 3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3681printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3682if test ${ac_cv_safe_to_define___extensions__+y} 3683then : 3684 printf %s "(cached) " >&6 3685else $as_nop 3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3687/* end confdefs.h. */ 3688 3689# define __EXTENSIONS__ 1 3690 $ac_includes_default 3691int 3692main (void) 3693{ 3694 3695 ; 3696 return 0; 3697} 3698_ACEOF 3699if ac_fn_c_try_compile "$LINENO" 3700then : 3701 ac_cv_safe_to_define___extensions__=yes 3702else $as_nop 3703 ac_cv_safe_to_define___extensions__=no 3704fi 3705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3706fi 3707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3708printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3709 3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3711printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3712if test ${ac_cv_should_define__xopen_source+y} 3713then : 3714 printf %s "(cached) " >&6 3715else $as_nop 3716 ac_cv_should_define__xopen_source=no 3717 if test $ac_cv_header_wchar_h = yes 3718then : 3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3720/* end confdefs.h. */ 3721 3722 #include <wchar.h> 3723 mbstate_t x; 3724int 3725main (void) 3726{ 3727 3728 ; 3729 return 0; 3730} 3731_ACEOF 3732if ac_fn_c_try_compile "$LINENO" 3733then : 3734 3735else $as_nop 3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3737/* end confdefs.h. */ 3738 3739 #define _XOPEN_SOURCE 500 3740 #include <wchar.h> 3741 mbstate_t x; 3742int 3743main (void) 3744{ 3745 3746 ; 3747 return 0; 3748} 3749_ACEOF 3750if ac_fn_c_try_compile "$LINENO" 3751then : 3752 ac_cv_should_define__xopen_source=yes 3753fi 3754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3755fi 3756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3757fi 3758fi 3759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3760printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3761 3762 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3763 3764 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3765 3766 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3767 3768 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3769 3770 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3771 3772 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3773 3774 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3775 3776 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3777 3778 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3779 3780 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3781 3782 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3783 3784 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3785 3786 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3787 3788 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3789 3790 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3791 3792 if test $ac_cv_header_minix_config_h = yes 3793then : 3794 MINIX=yes 3795 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3796 3797 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3798 3799 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3800 3801else $as_nop 3802 MINIX= 3803fi 3804 if test $ac_cv_safe_to_define___extensions__ = yes 3805then : 3806 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3807 3808fi 3809 if test $ac_cv_should_define__xopen_source = yes 3810then : 3811 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3812 3813fi 3814 3815 3816am__api_version='1.16' 3817 3818 3819 # Find a good install program. We prefer a C program (faster), 3820# so one script is as good as another. But avoid the broken or 3821# incompatible versions: 3822# SysV /etc/install, /usr/sbin/install 3823# SunOS /usr/etc/install 3824# IRIX /sbin/install 3825# AIX /bin/install 3826# AmigaOS /C/install, which installs bootblocks on floppy discs 3827# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3828# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3829# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3830# OS/2's system install, which has a completely different semantic 3831# ./install, which can be erroneously created by make from ./install.sh. 3832# Reject install programs that cannot install multiple files. 3833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3834printf %s "checking for a BSD-compatible install... " >&6; } 3835if test -z "$INSTALL"; then 3836if test ${ac_cv_path_install+y} 3837then : 3838 printf %s "(cached) " >&6 3839else $as_nop 3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3841for as_dir in $PATH 3842do 3843 IFS=$as_save_IFS 3844 case $as_dir in #((( 3845 '') as_dir=./ ;; 3846 */) ;; 3847 *) as_dir=$as_dir/ ;; 3848 esac 3849 # Account for fact that we put trailing slashes in our PATH walk. 3850case $as_dir in #(( 3851 ./ | /[cC]/* | \ 3852 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3853 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3854 /usr/ucb/* ) ;; 3855 *) 3856 # OSF1 and SCO ODT 3.0 have their own names for install. 3857 # Don't use installbsd from OSF since it installs stuff as root 3858 # by default. 3859 for ac_prog in ginstall scoinst install; do 3860 for ac_exec_ext in '' $ac_executable_extensions; do 3861 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3862 if test $ac_prog = install && 3863 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3864 # AIX install. It has an incompatible calling convention. 3865 : 3866 elif test $ac_prog = install && 3867 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3868 # program-specific install script used by HP pwplus--don't use. 3869 : 3870 else 3871 rm -rf conftest.one conftest.two conftest.dir 3872 echo one > conftest.one 3873 echo two > conftest.two 3874 mkdir conftest.dir 3875 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3876 test -s conftest.one && test -s conftest.two && 3877 test -s conftest.dir/conftest.one && 3878 test -s conftest.dir/conftest.two 3879 then 3880 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3881 break 3 3882 fi 3883 fi 3884 fi 3885 done 3886 done 3887 ;; 3888esac 3889 3890 done 3891IFS=$as_save_IFS 3892 3893rm -rf conftest.one conftest.two conftest.dir 3894 3895fi 3896 if test ${ac_cv_path_install+y}; then 3897 INSTALL=$ac_cv_path_install 3898 else 3899 # As a last resort, use the slow shell script. Don't cache a 3900 # value for INSTALL within a source directory, because that will 3901 # break other packages using the cache if that directory is 3902 # removed, or if the value is a relative name. 3903 INSTALL=$ac_install_sh 3904 fi 3905fi 3906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3907printf "%s\n" "$INSTALL" >&6; } 3908 3909# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3910# It thinks the first close brace ends the variable substitution. 3911test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3912 3913test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3914 3915test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3916 3917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3918printf %s "checking whether build environment is sane... " >&6; } 3919# Reject unsafe characters in $srcdir or the absolute working directory 3920# name. Accept space and tab only in the latter. 3921am_lf=' 3922' 3923case `pwd` in 3924 *[\\\"\#\$\&\'\`$am_lf]*) 3925 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3926esac 3927case $srcdir in 3928 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3929 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3930esac 3931 3932# Do 'set' in a subshell so we don't clobber the current shell's 3933# arguments. Must try -L first in case configure is actually a 3934# symlink; some systems play weird games with the mod time of symlinks 3935# (eg FreeBSD returns the mod time of the symlink's containing 3936# directory). 3937if ( 3938 am_has_slept=no 3939 for am_try in 1 2; do 3940 echo "timestamp, slept: $am_has_slept" > conftest.file 3941 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3942 if test "$*" = "X"; then 3943 # -L didn't work. 3944 set X `ls -t "$srcdir/configure" conftest.file` 3945 fi 3946 if test "$*" != "X $srcdir/configure conftest.file" \ 3947 && test "$*" != "X conftest.file $srcdir/configure"; then 3948 3949 # If neither matched, then we have a broken ls. This can happen 3950 # if, for instance, CONFIG_SHELL is bash and it inherits a 3951 # broken ls alias from the environment. This has actually 3952 # happened. Such a system could not be considered "sane". 3953 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3954 alias in your environment" "$LINENO" 5 3955 fi 3956 if test "$2" = conftest.file || test $am_try -eq 2; then 3957 break 3958 fi 3959 # Just in case. 3960 sleep 1 3961 am_has_slept=yes 3962 done 3963 test "$2" = conftest.file 3964 ) 3965then 3966 # Ok. 3967 : 3968else 3969 as_fn_error $? "newly created file is older than distributed files! 3970Check your system clock" "$LINENO" 5 3971fi 3972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3973printf "%s\n" "yes" >&6; } 3974# If we didn't sleep, we still need to ensure time stamps of config.status and 3975# generated files are strictly newer. 3976am_sleep_pid= 3977if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3978 ( sleep 1 ) & 3979 am_sleep_pid=$! 3980fi 3981 3982rm -f conftest.file 3983 3984test "$program_prefix" != NONE && 3985 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3986# Use a double $ so make ignores it. 3987test "$program_suffix" != NONE && 3988 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3989# Double any \ or $. 3990# By default was `s,x,x', remove it if useless. 3991ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3992program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3993 3994 3995 if test x"${MISSING+set}" != xset; then 3996 MISSING="\${SHELL} '$am_aux_dir/missing'" 3997fi 3998# Use eval to expand $SHELL 3999if eval "$MISSING --is-lightweight"; then 4000 am_missing_run="$MISSING " 4001else 4002 am_missing_run= 4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4004printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4005fi 4006 4007if test x"${install_sh+set}" != xset; then 4008 case $am_aux_dir in 4009 *\ * | *\ *) 4010 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4011 *) 4012 install_sh="\${SHELL} $am_aux_dir/install-sh" 4013 esac 4014fi 4015 4016# Installed binaries are usually stripped using 'strip' when the user 4017# run "make install-strip". However 'strip' might not be the right 4018# tool to use in cross-compilation environments, therefore Automake 4019# will honor the 'STRIP' environment variable to overrule this program. 4020if test "$cross_compiling" != no; then 4021 if test -n "$ac_tool_prefix"; then 4022 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4023set dummy ${ac_tool_prefix}strip; ac_word=$2 4024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4025printf %s "checking for $ac_word... " >&6; } 4026if test ${ac_cv_prog_STRIP+y} 4027then : 4028 printf %s "(cached) " >&6 4029else $as_nop 4030 if test -n "$STRIP"; then 4031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4032else 4033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4034for as_dir in $PATH 4035do 4036 IFS=$as_save_IFS 4037 case $as_dir in #((( 4038 '') as_dir=./ ;; 4039 */) ;; 4040 *) as_dir=$as_dir/ ;; 4041 esac 4042 for ac_exec_ext in '' $ac_executable_extensions; do 4043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4044 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4046 break 2 4047 fi 4048done 4049 done 4050IFS=$as_save_IFS 4051 4052fi 4053fi 4054STRIP=$ac_cv_prog_STRIP 4055if test -n "$STRIP"; then 4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4057printf "%s\n" "$STRIP" >&6; } 4058else 4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4060printf "%s\n" "no" >&6; } 4061fi 4062 4063 4064fi 4065if test -z "$ac_cv_prog_STRIP"; then 4066 ac_ct_STRIP=$STRIP 4067 # Extract the first word of "strip", so it can be a program name with args. 4068set dummy strip; ac_word=$2 4069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4070printf %s "checking for $ac_word... " >&6; } 4071if test ${ac_cv_prog_ac_ct_STRIP+y} 4072then : 4073 printf %s "(cached) " >&6 4074else $as_nop 4075 if test -n "$ac_ct_STRIP"; then 4076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4077else 4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4079for as_dir in $PATH 4080do 4081 IFS=$as_save_IFS 4082 case $as_dir in #((( 4083 '') as_dir=./ ;; 4084 */) ;; 4085 *) as_dir=$as_dir/ ;; 4086 esac 4087 for ac_exec_ext in '' $ac_executable_extensions; do 4088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4089 ac_cv_prog_ac_ct_STRIP="strip" 4090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4091 break 2 4092 fi 4093done 4094 done 4095IFS=$as_save_IFS 4096 4097fi 4098fi 4099ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4100if test -n "$ac_ct_STRIP"; then 4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4102printf "%s\n" "$ac_ct_STRIP" >&6; } 4103else 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4105printf "%s\n" "no" >&6; } 4106fi 4107 4108 if test "x$ac_ct_STRIP" = x; then 4109 STRIP=":" 4110 else 4111 case $cross_compiling:$ac_tool_warned in 4112yes:) 4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4114printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4115ac_tool_warned=yes ;; 4116esac 4117 STRIP=$ac_ct_STRIP 4118 fi 4119else 4120 STRIP="$ac_cv_prog_STRIP" 4121fi 4122 4123fi 4124INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4125 4126 4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4128printf %s "checking for a race-free mkdir -p... " >&6; } 4129if test -z "$MKDIR_P"; then 4130 if test ${ac_cv_path_mkdir+y} 4131then : 4132 printf %s "(cached) " >&6 4133else $as_nop 4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4135for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4136do 4137 IFS=$as_save_IFS 4138 case $as_dir in #((( 4139 '') as_dir=./ ;; 4140 */) ;; 4141 *) as_dir=$as_dir/ ;; 4142 esac 4143 for ac_prog in mkdir gmkdir; do 4144 for ac_exec_ext in '' $ac_executable_extensions; do 4145 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4146 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4147 'mkdir ('*'coreutils) '* | \ 4148 'BusyBox '* | \ 4149 'mkdir (fileutils) '4.1*) 4150 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4151 break 3;; 4152 esac 4153 done 4154 done 4155 done 4156IFS=$as_save_IFS 4157 4158fi 4159 4160 test -d ./--version && rmdir ./--version 4161 if test ${ac_cv_path_mkdir+y}; then 4162 MKDIR_P="$ac_cv_path_mkdir -p" 4163 else 4164 # As a last resort, use the slow shell script. Don't cache a 4165 # value for MKDIR_P within a source directory, because that will 4166 # break other packages using the cache if that directory is 4167 # removed, or if the value is a relative name. 4168 MKDIR_P="$ac_install_sh -d" 4169 fi 4170fi 4171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4172printf "%s\n" "$MKDIR_P" >&6; } 4173 4174for ac_prog in gawk mawk nawk awk 4175do 4176 # Extract the first word of "$ac_prog", so it can be a program name with args. 4177set dummy $ac_prog; ac_word=$2 4178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4179printf %s "checking for $ac_word... " >&6; } 4180if test ${ac_cv_prog_AWK+y} 4181then : 4182 printf %s "(cached) " >&6 4183else $as_nop 4184 if test -n "$AWK"; then 4185 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4186else 4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4188for as_dir in $PATH 4189do 4190 IFS=$as_save_IFS 4191 case $as_dir in #((( 4192 '') as_dir=./ ;; 4193 */) ;; 4194 *) as_dir=$as_dir/ ;; 4195 esac 4196 for ac_exec_ext in '' $ac_executable_extensions; do 4197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4198 ac_cv_prog_AWK="$ac_prog" 4199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4200 break 2 4201 fi 4202done 4203 done 4204IFS=$as_save_IFS 4205 4206fi 4207fi 4208AWK=$ac_cv_prog_AWK 4209if test -n "$AWK"; then 4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4211printf "%s\n" "$AWK" >&6; } 4212else 4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4214printf "%s\n" "no" >&6; } 4215fi 4216 4217 4218 test -n "$AWK" && break 4219done 4220 4221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4222printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4223set x ${MAKE-make} 4224ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4225if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4226then : 4227 printf %s "(cached) " >&6 4228else $as_nop 4229 cat >conftest.make <<\_ACEOF 4230SHELL = /bin/sh 4231all: 4232 @echo '@@@%%%=$(MAKE)=@@@%%%' 4233_ACEOF 4234# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4235case `${MAKE-make} -f conftest.make 2>/dev/null` in 4236 *@@@%%%=?*=@@@%%%*) 4237 eval ac_cv_prog_make_${ac_make}_set=yes;; 4238 *) 4239 eval ac_cv_prog_make_${ac_make}_set=no;; 4240esac 4241rm -f conftest.make 4242fi 4243if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4245printf "%s\n" "yes" >&6; } 4246 SET_MAKE= 4247else 4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4249printf "%s\n" "no" >&6; } 4250 SET_MAKE="MAKE=${MAKE-make}" 4251fi 4252 4253rm -rf .tst 2>/dev/null 4254mkdir .tst 2>/dev/null 4255if test -d .tst; then 4256 am__leading_dot=. 4257else 4258 am__leading_dot=_ 4259fi 4260rmdir .tst 2>/dev/null 4261 4262DEPDIR="${am__leading_dot}deps" 4263 4264ac_config_commands="$ac_config_commands depfiles" 4265 4266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4267printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4268cat > confinc.mk << 'END' 4269am__doit: 4270 @echo this is the am__doit target >confinc.out 4271.PHONY: am__doit 4272END 4273am__include="#" 4274am__quote= 4275# BSD make does it like this. 4276echo '.include "confinc.mk" # ignored' > confmf.BSD 4277# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4278echo 'include confinc.mk # ignored' > confmf.GNU 4279_am_result=no 4280for s in GNU BSD; do 4281 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4282 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4283 ac_status=$? 4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4285 (exit $ac_status); } 4286 case $?:`cat confinc.out 2>/dev/null` in #( 4287 '0:this is the am__doit target') : 4288 case $s in #( 4289 BSD) : 4290 am__include='.include' am__quote='"' ;; #( 4291 *) : 4292 am__include='include' am__quote='' ;; 4293esac ;; #( 4294 *) : 4295 ;; 4296esac 4297 if test "$am__include" != "#"; then 4298 _am_result="yes ($s style)" 4299 break 4300 fi 4301done 4302rm -f confinc.* confmf.* 4303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4304printf "%s\n" "${_am_result}" >&6; } 4305 4306# Check whether --enable-dependency-tracking was given. 4307if test ${enable_dependency_tracking+y} 4308then : 4309 enableval=$enable_dependency_tracking; 4310fi 4311 4312if test "x$enable_dependency_tracking" != xno; then 4313 am_depcomp="$ac_aux_dir/depcomp" 4314 AMDEPBACKSLASH='\' 4315 am__nodep='_no' 4316fi 4317 if test "x$enable_dependency_tracking" != xno; then 4318 AMDEP_TRUE= 4319 AMDEP_FALSE='#' 4320else 4321 AMDEP_TRUE='#' 4322 AMDEP_FALSE= 4323fi 4324 4325 4326# Check whether --enable-silent-rules was given. 4327if test ${enable_silent_rules+y} 4328then : 4329 enableval=$enable_silent_rules; 4330fi 4331 4332case $enable_silent_rules in # ((( 4333 yes) AM_DEFAULT_VERBOSITY=0;; 4334 no) AM_DEFAULT_VERBOSITY=1;; 4335 *) AM_DEFAULT_VERBOSITY=1;; 4336esac 4337am_make=${MAKE-make} 4338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4339printf %s "checking whether $am_make supports nested variables... " >&6; } 4340if test ${am_cv_make_support_nested_variables+y} 4341then : 4342 printf %s "(cached) " >&6 4343else $as_nop 4344 if printf "%s\n" 'TRUE=$(BAR$(V)) 4345BAR0=false 4346BAR1=true 4347V=1 4348am__doit: 4349 @$(TRUE) 4350.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4351 am_cv_make_support_nested_variables=yes 4352else 4353 am_cv_make_support_nested_variables=no 4354fi 4355fi 4356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4357printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4358if test $am_cv_make_support_nested_variables = yes; then 4359 AM_V='$(V)' 4360 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4361else 4362 AM_V=$AM_DEFAULT_VERBOSITY 4363 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4364fi 4365AM_BACKSLASH='\' 4366 4367if test "`cd $srcdir && pwd`" != "`pwd`"; then 4368 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4369 # is not polluted with repeated "-I." 4370 am__isrc=' -I$(srcdir)' 4371 # test to see if srcdir already configured 4372 if test -f $srcdir/config.status; then 4373 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4374 fi 4375fi 4376 4377# test whether we have cygpath 4378if test -z "$CYGPATH_W"; then 4379 if (cygpath --version) >/dev/null 2>/dev/null; then 4380 CYGPATH_W='cygpath -w' 4381 else 4382 CYGPATH_W=echo 4383 fi 4384fi 4385 4386 4387# Define the identity of the package. 4388 PACKAGE='libevdev' 4389 VERSION='1.13.0' 4390 4391 4392printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4393 4394 4395printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4396 4397# Some tools Automake needs. 4398 4399ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4400 4401 4402AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4403 4404 4405AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4406 4407 4408AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4409 4410 4411MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4412 4413# For better backward compatibility. To be removed once Automake 1.9.x 4414# dies out for good. For more background, see: 4415# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4416# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4417mkdir_p='$(MKDIR_P)' 4418 4419# We need awk for the "check" target (and possibly the TAP driver). The 4420# system "awk" is bad on some platforms. 4421# Always define AMTAR for backward compatibility. Yes, it's still used 4422# in the wild :-( We should find a proper way to deprecate it ... 4423AMTAR='$${TAR-tar}' 4424 4425 4426# We'll loop over all known methods to create a tar archive until one works. 4427_am_tools='gnutar pax cpio none' 4428 4429am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4430 4431 4432 4433 4434 4435depcc="$CC" am_compiler_list= 4436 4437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4438printf %s "checking dependency style of $depcc... " >&6; } 4439if test ${am_cv_CC_dependencies_compiler_type+y} 4440then : 4441 printf %s "(cached) " >&6 4442else $as_nop 4443 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4444 # We make a subdir and do the tests there. Otherwise we can end up 4445 # making bogus files that we don't know about and never remove. For 4446 # instance it was reported that on HP-UX the gcc test will end up 4447 # making a dummy file named 'D' -- because '-MD' means "put the output 4448 # in D". 4449 rm -rf conftest.dir 4450 mkdir conftest.dir 4451 # Copy depcomp to subdir because otherwise we won't find it if we're 4452 # using a relative directory. 4453 cp "$am_depcomp" conftest.dir 4454 cd conftest.dir 4455 # We will build objects and dependencies in a subdirectory because 4456 # it helps to detect inapplicable dependency modes. For instance 4457 # both Tru64's cc and ICC support -MD to output dependencies as a 4458 # side effect of compilation, but ICC will put the dependencies in 4459 # the current directory while Tru64 will put them in the object 4460 # directory. 4461 mkdir sub 4462 4463 am_cv_CC_dependencies_compiler_type=none 4464 if test "$am_compiler_list" = ""; then 4465 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4466 fi 4467 am__universal=false 4468 case " $depcc " in #( 4469 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4470 esac 4471 4472 for depmode in $am_compiler_list; do 4473 # Setup a source with many dependencies, because some compilers 4474 # like to wrap large dependency lists on column 80 (with \), and 4475 # we should not choose a depcomp mode which is confused by this. 4476 # 4477 # We need to recreate these files for each test, as the compiler may 4478 # overwrite some of them when testing with obscure command lines. 4479 # This happens at least with the AIX C compiler. 4480 : > sub/conftest.c 4481 for i in 1 2 3 4 5 6; do 4482 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4483 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4484 # Solaris 10 /bin/sh. 4485 echo '/* dummy */' > sub/conftst$i.h 4486 done 4487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4488 4489 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4490 # mode. It turns out that the SunPro C++ compiler does not properly 4491 # handle '-M -o', and we need to detect this. Also, some Intel 4492 # versions had trouble with output in subdirs. 4493 am__obj=sub/conftest.${OBJEXT-o} 4494 am__minus_obj="-o $am__obj" 4495 case $depmode in 4496 gcc) 4497 # This depmode causes a compiler race in universal mode. 4498 test "$am__universal" = false || continue 4499 ;; 4500 nosideeffect) 4501 # After this tag, mechanisms are not by side-effect, so they'll 4502 # only be used when explicitly requested. 4503 if test "x$enable_dependency_tracking" = xyes; then 4504 continue 4505 else 4506 break 4507 fi 4508 ;; 4509 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4510 # This compiler won't grok '-c -o', but also, the minuso test has 4511 # not run yet. These depmodes are late enough in the game, and 4512 # so weak that their functioning should not be impacted. 4513 am__obj=conftest.${OBJEXT-o} 4514 am__minus_obj= 4515 ;; 4516 none) break ;; 4517 esac 4518 if depmode=$depmode \ 4519 source=sub/conftest.c object=$am__obj \ 4520 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4521 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4522 >/dev/null 2>conftest.err && 4523 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4524 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4525 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4526 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4527 # icc doesn't choke on unknown options, it will just issue warnings 4528 # or remarks (even with -Werror). So we grep stderr for any message 4529 # that says an option was ignored or not supported. 4530 # When given -MP, icc 7.0 and 7.1 complain thusly: 4531 # icc: Command line warning: ignoring option '-M'; no argument required 4532 # The diagnosis changed in icc 8.0: 4533 # icc: Command line remark: option '-MP' not supported 4534 if (grep 'ignoring option' conftest.err || 4535 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4536 am_cv_CC_dependencies_compiler_type=$depmode 4537 break 4538 fi 4539 fi 4540 done 4541 4542 cd .. 4543 rm -rf conftest.dir 4544else 4545 am_cv_CC_dependencies_compiler_type=none 4546fi 4547 4548fi 4549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4550printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4551CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4552 4553 if 4554 test "x$enable_dependency_tracking" != xno \ 4555 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4556 am__fastdepCC_TRUE= 4557 am__fastdepCC_FALSE='#' 4558else 4559 am__fastdepCC_TRUE='#' 4560 am__fastdepCC_FALSE= 4561fi 4562 4563 4564# Variables for tags utilities; see am/tags.am 4565if test -z "$CTAGS"; then 4566 CTAGS=ctags 4567fi 4568 4569if test -z "$ETAGS"; then 4570 ETAGS=etags 4571fi 4572 4573if test -z "$CSCOPE"; then 4574 CSCOPE=cscope 4575fi 4576 4577 4578 4579# POSIX will say in a future version that running "rm -f" with no argument 4580# is OK; and we want to be able to make that assumption in our Makefile 4581# recipes. So use an aggressive probe to check that the usage we want is 4582# actually supported "in the wild" to an acceptable degree. 4583# See automake bug#10828. 4584# To make any issue more visible, cause the running configure to be aborted 4585# by default if the 'rm' program in use doesn't match our expectations; the 4586# user can still override this though. 4587if rm -f && rm -fr && rm -rf; then : OK; else 4588 cat >&2 <<'END' 4589Oops! 4590 4591Your 'rm' program seems unable to run without file operands specified 4592on the command line, even when the '-f' option is present. This is contrary 4593to the behaviour of most rm programs out there, and not conforming with 4594the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4595 4596Please tell bug-automake@gnu.org about your system, including the value 4597of your $PATH and any error possibly output before this message. This 4598can help us improve future automake versions. 4599 4600END 4601 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4602 echo 'Configuration will proceed anyway, since you have set the' >&2 4603 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4604 echo >&2 4605 else 4606 cat >&2 <<'END' 4607Aborting the configuration process, to ensure you take notice of the issue. 4608 4609You can download and install GNU coreutils to get an 'rm' implementation 4610that behaves properly: <https://www.gnu.org/software/coreutils/>. 4611 4612If you want to complete the configuration process using your problematic 4613'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4614to "yes", and re-run configure. 4615 4616END 4617 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4618 fi 4619fi 4620 4621 4622# DO NOT MODIFY THIS 4623# Use symbol versioning instead. 4624LIBEVDEV_LT_VERSION=5:0:3 4625 4626 4627 4628# Check whether --enable-silent-rules was given. 4629if test ${enable_silent_rules+y} 4630then : 4631 enableval=$enable_silent_rules; 4632fi 4633 4634case $enable_silent_rules in # ((( 4635 yes) AM_DEFAULT_VERBOSITY=0;; 4636 no) AM_DEFAULT_VERBOSITY=1;; 4637 *) AM_DEFAULT_VERBOSITY=0;; 4638esac 4639am_make=${MAKE-make} 4640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4641printf %s "checking whether $am_make supports nested variables... " >&6; } 4642if test ${am_cv_make_support_nested_variables+y} 4643then : 4644 printf %s "(cached) " >&6 4645else $as_nop 4646 if printf "%s\n" 'TRUE=$(BAR$(V)) 4647BAR0=false 4648BAR1=true 4649V=1 4650am__doit: 4651 @$(TRUE) 4652.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4653 am_cv_make_support_nested_variables=yes 4654else 4655 am_cv_make_support_nested_variables=no 4656fi 4657fi 4658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4659printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4660if test $am_cv_make_support_nested_variables = yes; then 4661 AM_V='$(V)' 4662 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4663else 4664 AM_V=$AM_DEFAULT_VERBOSITY 4665 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4666fi 4667AM_BACKSLASH='\' 4668 4669 4670# Check for programs 4671 4672 4673# Initialize libtool 4674 4675case `pwd` in 4676 *\ * | *\ *) 4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4678printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4679esac 4680 4681 4682 4683macro_version='2.4.7' 4684macro_revision='2.4.7' 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699ltmain=$ac_aux_dir/ltmain.sh 4700 4701 4702 4703 # Make sure we can run config.sub. 4704$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4705 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4706 4707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4708printf %s "checking build system type... " >&6; } 4709if test ${ac_cv_build+y} 4710then : 4711 printf %s "(cached) " >&6 4712else $as_nop 4713 ac_build_alias=$build_alias 4714test "x$ac_build_alias" = x && 4715 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4716test "x$ac_build_alias" = x && 4717 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4718ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4719 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4720 4721fi 4722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4723printf "%s\n" "$ac_cv_build" >&6; } 4724case $ac_cv_build in 4725*-*-*) ;; 4726*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4727esac 4728build=$ac_cv_build 4729ac_save_IFS=$IFS; IFS='-' 4730set x $ac_cv_build 4731shift 4732build_cpu=$1 4733build_vendor=$2 4734shift; shift 4735# Remember, the first character of IFS is used to create $*, 4736# except with old shells: 4737build_os=$* 4738IFS=$ac_save_IFS 4739case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4740 4741 4742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4743printf %s "checking host system type... " >&6; } 4744if test ${ac_cv_host+y} 4745then : 4746 printf %s "(cached) " >&6 4747else $as_nop 4748 if test "x$host_alias" = x; then 4749 ac_cv_host=$ac_cv_build 4750else 4751 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4752 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4753fi 4754 4755fi 4756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4757printf "%s\n" "$ac_cv_host" >&6; } 4758case $ac_cv_host in 4759*-*-*) ;; 4760*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4761esac 4762host=$ac_cv_host 4763ac_save_IFS=$IFS; IFS='-' 4764set x $ac_cv_host 4765shift 4766host_cpu=$1 4767host_vendor=$2 4768shift; shift 4769# Remember, the first character of IFS is used to create $*, 4770# except with old shells: 4771host_os=$* 4772IFS=$ac_save_IFS 4773case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4774 4775 4776# Backslashify metacharacters that are still active within 4777# double-quoted strings. 4778sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4779 4780# Same as above, but do not quote variable references. 4781double_quote_subst='s/\(["`\\]\)/\\\1/g' 4782 4783# Sed substitution to delay expansion of an escaped shell variable in a 4784# double_quote_subst'ed string. 4785delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4786 4787# Sed substitution to delay expansion of an escaped single quote. 4788delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4789 4790# Sed substitution to avoid accidental globbing in evaled expressions 4791no_glob_subst='s/\*/\\\*/g' 4792 4793ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4794ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4795ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4796 4797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4798printf %s "checking how to print strings... " >&6; } 4799# Test print first, because it will be a builtin if present. 4800if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4801 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4802 ECHO='print -r --' 4803elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4804 ECHO='printf %s\n' 4805else 4806 # Use this function as a fallback that always works. 4807 func_fallback_echo () 4808 { 4809 eval 'cat <<_LTECHO_EOF 4810$1 4811_LTECHO_EOF' 4812 } 4813 ECHO='func_fallback_echo' 4814fi 4815 4816# func_echo_all arg... 4817# Invoke $ECHO with all args, space-separated. 4818func_echo_all () 4819{ 4820 $ECHO "" 4821} 4822 4823case $ECHO in 4824 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4825printf "%s\n" "printf" >&6; } ;; 4826 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4827printf "%s\n" "print -r" >&6; } ;; 4828 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4829printf "%s\n" "cat" >&6; } ;; 4830esac 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4846printf %s "checking for a sed that does not truncate output... " >&6; } 4847if test ${ac_cv_path_SED+y} 4848then : 4849 printf %s "(cached) " >&6 4850else $as_nop 4851 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4852 for ac_i in 1 2 3 4 5 6 7; do 4853 ac_script="$ac_script$as_nl$ac_script" 4854 done 4855 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4856 { ac_script=; unset ac_script;} 4857 if test -z "$SED"; then 4858 ac_path_SED_found=false 4859 # Loop through the user's path and test for each of PROGNAME-LIST 4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4861for as_dir in $PATH 4862do 4863 IFS=$as_save_IFS 4864 case $as_dir in #((( 4865 '') as_dir=./ ;; 4866 */) ;; 4867 *) as_dir=$as_dir/ ;; 4868 esac 4869 for ac_prog in sed gsed 4870 do 4871 for ac_exec_ext in '' $ac_executable_extensions; do 4872 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4873 as_fn_executable_p "$ac_path_SED" || continue 4874# Check for GNU ac_path_SED and select it if it is found. 4875 # Check for GNU $ac_path_SED 4876case `"$ac_path_SED" --version 2>&1` in 4877*GNU*) 4878 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4879*) 4880 ac_count=0 4881 printf %s 0123456789 >"conftest.in" 4882 while : 4883 do 4884 cat "conftest.in" "conftest.in" >"conftest.tmp" 4885 mv "conftest.tmp" "conftest.in" 4886 cp "conftest.in" "conftest.nl" 4887 printf "%s\n" '' >> "conftest.nl" 4888 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4890 as_fn_arith $ac_count + 1 && ac_count=$as_val 4891 if test $ac_count -gt ${ac_path_SED_max-0}; then 4892 # Best one so far, save it but keep looking for a better one 4893 ac_cv_path_SED="$ac_path_SED" 4894 ac_path_SED_max=$ac_count 4895 fi 4896 # 10*(2^10) chars as input seems more than enough 4897 test $ac_count -gt 10 && break 4898 done 4899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4900esac 4901 4902 $ac_path_SED_found && break 3 4903 done 4904 done 4905 done 4906IFS=$as_save_IFS 4907 if test -z "$ac_cv_path_SED"; then 4908 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4909 fi 4910else 4911 ac_cv_path_SED=$SED 4912fi 4913 4914fi 4915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4916printf "%s\n" "$ac_cv_path_SED" >&6; } 4917 SED="$ac_cv_path_SED" 4918 rm -f conftest.sed 4919 4920test -z "$SED" && SED=sed 4921Xsed="$SED -e 1s/^X//" 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4934printf %s "checking for grep that handles long lines and -e... " >&6; } 4935if test ${ac_cv_path_GREP+y} 4936then : 4937 printf %s "(cached) " >&6 4938else $as_nop 4939 if test -z "$GREP"; then 4940 ac_path_GREP_found=false 4941 # Loop through the user's path and test for each of PROGNAME-LIST 4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4943for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4944do 4945 IFS=$as_save_IFS 4946 case $as_dir in #((( 4947 '') as_dir=./ ;; 4948 */) ;; 4949 *) as_dir=$as_dir/ ;; 4950 esac 4951 for ac_prog in grep ggrep 4952 do 4953 for ac_exec_ext in '' $ac_executable_extensions; do 4954 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4955 as_fn_executable_p "$ac_path_GREP" || continue 4956# Check for GNU ac_path_GREP and select it if it is found. 4957 # Check for GNU $ac_path_GREP 4958case `"$ac_path_GREP" --version 2>&1` in 4959*GNU*) 4960 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4961*) 4962 ac_count=0 4963 printf %s 0123456789 >"conftest.in" 4964 while : 4965 do 4966 cat "conftest.in" "conftest.in" >"conftest.tmp" 4967 mv "conftest.tmp" "conftest.in" 4968 cp "conftest.in" "conftest.nl" 4969 printf "%s\n" 'GREP' >> "conftest.nl" 4970 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4972 as_fn_arith $ac_count + 1 && ac_count=$as_val 4973 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4974 # Best one so far, save it but keep looking for a better one 4975 ac_cv_path_GREP="$ac_path_GREP" 4976 ac_path_GREP_max=$ac_count 4977 fi 4978 # 10*(2^10) chars as input seems more than enough 4979 test $ac_count -gt 10 && break 4980 done 4981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4982esac 4983 4984 $ac_path_GREP_found && break 3 4985 done 4986 done 4987 done 4988IFS=$as_save_IFS 4989 if test -z "$ac_cv_path_GREP"; then 4990 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4991 fi 4992else 4993 ac_cv_path_GREP=$GREP 4994fi 4995 4996fi 4997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4998printf "%s\n" "$ac_cv_path_GREP" >&6; } 4999 GREP="$ac_cv_path_GREP" 5000 5001 5002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5003printf %s "checking for egrep... " >&6; } 5004if test ${ac_cv_path_EGREP+y} 5005then : 5006 printf %s "(cached) " >&6 5007else $as_nop 5008 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5009 then ac_cv_path_EGREP="$GREP -E" 5010 else 5011 if test -z "$EGREP"; then 5012 ac_path_EGREP_found=false 5013 # Loop through the user's path and test for each of PROGNAME-LIST 5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5015for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5016do 5017 IFS=$as_save_IFS 5018 case $as_dir in #((( 5019 '') as_dir=./ ;; 5020 */) ;; 5021 *) as_dir=$as_dir/ ;; 5022 esac 5023 for ac_prog in egrep 5024 do 5025 for ac_exec_ext in '' $ac_executable_extensions; do 5026 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5027 as_fn_executable_p "$ac_path_EGREP" || continue 5028# Check for GNU ac_path_EGREP and select it if it is found. 5029 # Check for GNU $ac_path_EGREP 5030case `"$ac_path_EGREP" --version 2>&1` in 5031*GNU*) 5032 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5033*) 5034 ac_count=0 5035 printf %s 0123456789 >"conftest.in" 5036 while : 5037 do 5038 cat "conftest.in" "conftest.in" >"conftest.tmp" 5039 mv "conftest.tmp" "conftest.in" 5040 cp "conftest.in" "conftest.nl" 5041 printf "%s\n" 'EGREP' >> "conftest.nl" 5042 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5044 as_fn_arith $ac_count + 1 && ac_count=$as_val 5045 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5046 # Best one so far, save it but keep looking for a better one 5047 ac_cv_path_EGREP="$ac_path_EGREP" 5048 ac_path_EGREP_max=$ac_count 5049 fi 5050 # 10*(2^10) chars as input seems more than enough 5051 test $ac_count -gt 10 && break 5052 done 5053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5054esac 5055 5056 $ac_path_EGREP_found && break 3 5057 done 5058 done 5059 done 5060IFS=$as_save_IFS 5061 if test -z "$ac_cv_path_EGREP"; then 5062 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5063 fi 5064else 5065 ac_cv_path_EGREP=$EGREP 5066fi 5067 5068 fi 5069fi 5070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5071printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5072 EGREP="$ac_cv_path_EGREP" 5073 5074 5075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5076printf %s "checking for fgrep... " >&6; } 5077if test ${ac_cv_path_FGREP+y} 5078then : 5079 printf %s "(cached) " >&6 5080else $as_nop 5081 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5082 then ac_cv_path_FGREP="$GREP -F" 5083 else 5084 if test -z "$FGREP"; then 5085 ac_path_FGREP_found=false 5086 # Loop through the user's path and test for each of PROGNAME-LIST 5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5088for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5089do 5090 IFS=$as_save_IFS 5091 case $as_dir in #((( 5092 '') as_dir=./ ;; 5093 */) ;; 5094 *) as_dir=$as_dir/ ;; 5095 esac 5096 for ac_prog in fgrep 5097 do 5098 for ac_exec_ext in '' $ac_executable_extensions; do 5099 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5100 as_fn_executable_p "$ac_path_FGREP" || continue 5101# Check for GNU ac_path_FGREP and select it if it is found. 5102 # Check for GNU $ac_path_FGREP 5103case `"$ac_path_FGREP" --version 2>&1` in 5104*GNU*) 5105 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5106*) 5107 ac_count=0 5108 printf %s 0123456789 >"conftest.in" 5109 while : 5110 do 5111 cat "conftest.in" "conftest.in" >"conftest.tmp" 5112 mv "conftest.tmp" "conftest.in" 5113 cp "conftest.in" "conftest.nl" 5114 printf "%s\n" 'FGREP' >> "conftest.nl" 5115 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5117 as_fn_arith $ac_count + 1 && ac_count=$as_val 5118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5119 # Best one so far, save it but keep looking for a better one 5120 ac_cv_path_FGREP="$ac_path_FGREP" 5121 ac_path_FGREP_max=$ac_count 5122 fi 5123 # 10*(2^10) chars as input seems more than enough 5124 test $ac_count -gt 10 && break 5125 done 5126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5127esac 5128 5129 $ac_path_FGREP_found && break 3 5130 done 5131 done 5132 done 5133IFS=$as_save_IFS 5134 if test -z "$ac_cv_path_FGREP"; then 5135 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5136 fi 5137else 5138 ac_cv_path_FGREP=$FGREP 5139fi 5140 5141 fi 5142fi 5143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5144printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5145 FGREP="$ac_cv_path_FGREP" 5146 5147 5148test -z "$GREP" && GREP=grep 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168# Check whether --with-gnu-ld was given. 5169if test ${with_gnu_ld+y} 5170then : 5171 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5172else $as_nop 5173 with_gnu_ld=no 5174fi 5175 5176ac_prog=ld 5177if test yes = "$GCC"; then 5178 # Check if gcc -print-prog-name=ld gives a path. 5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5180printf %s "checking for ld used by $CC... " >&6; } 5181 case $host in 5182 *-*-mingw*) 5183 # gcc leaves a trailing carriage return, which upsets mingw 5184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5185 *) 5186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5187 esac 5188 case $ac_prog in 5189 # Accept absolute paths. 5190 [\\/]* | ?:[\\/]*) 5191 re_direlt='/[^/][^/]*/\.\./' 5192 # Canonicalize the pathname of ld 5193 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5194 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5195 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5196 done 5197 test -z "$LD" && LD=$ac_prog 5198 ;; 5199 "") 5200 # If it fails, then pretend we aren't using GCC. 5201 ac_prog=ld 5202 ;; 5203 *) 5204 # If it is relative, then search for the first ld in PATH. 5205 with_gnu_ld=unknown 5206 ;; 5207 esac 5208elif test yes = "$with_gnu_ld"; then 5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5210printf %s "checking for GNU ld... " >&6; } 5211else 5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5213printf %s "checking for non-GNU ld... " >&6; } 5214fi 5215if test ${lt_cv_path_LD+y} 5216then : 5217 printf %s "(cached) " >&6 5218else $as_nop 5219 if test -z "$LD"; then 5220 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5221 for ac_dir in $PATH; do 5222 IFS=$lt_save_ifs 5223 test -z "$ac_dir" && ac_dir=. 5224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5225 lt_cv_path_LD=$ac_dir/$ac_prog 5226 # Check to see if the program is GNU ld. I'd rather use --version, 5227 # but apparently some variants of GNU ld only accept -v. 5228 # Break only if it was the GNU/non-GNU ld that we prefer. 5229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5230 *GNU* | *'with BFD'*) 5231 test no != "$with_gnu_ld" && break 5232 ;; 5233 *) 5234 test yes != "$with_gnu_ld" && break 5235 ;; 5236 esac 5237 fi 5238 done 5239 IFS=$lt_save_ifs 5240else 5241 lt_cv_path_LD=$LD # Let the user override the test with a path. 5242fi 5243fi 5244 5245LD=$lt_cv_path_LD 5246if test -n "$LD"; then 5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5248printf "%s\n" "$LD" >&6; } 5249else 5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5251printf "%s\n" "no" >&6; } 5252fi 5253test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5255printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5256if test ${lt_cv_prog_gnu_ld+y} 5257then : 5258 printf %s "(cached) " >&6 5259else $as_nop 5260 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5261case `$LD -v 2>&1 </dev/null` in 5262*GNU* | *'with BFD'*) 5263 lt_cv_prog_gnu_ld=yes 5264 ;; 5265*) 5266 lt_cv_prog_gnu_ld=no 5267 ;; 5268esac 5269fi 5270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5271printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5272with_gnu_ld=$lt_cv_prog_gnu_ld 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5283printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5284if test ${lt_cv_path_NM+y} 5285then : 5286 printf %s "(cached) " >&6 5287else $as_nop 5288 if test -n "$NM"; then 5289 # Let the user override the test. 5290 lt_cv_path_NM=$NM 5291else 5292 lt_nm_to_check=${ac_tool_prefix}nm 5293 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5294 lt_nm_to_check="$lt_nm_to_check nm" 5295 fi 5296 for lt_tmp_nm in $lt_nm_to_check; do 5297 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5298 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5299 IFS=$lt_save_ifs 5300 test -z "$ac_dir" && ac_dir=. 5301 tmp_nm=$ac_dir/$lt_tmp_nm 5302 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5303 # Check to see if the nm accepts a BSD-compat flag. 5304 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5305 # nm: unknown option "B" ignored 5306 # Tru64's nm complains that /dev/null is an invalid object file 5307 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5308 case $build_os in 5309 mingw*) lt_bad_file=conftest.nm/nofile ;; 5310 *) lt_bad_file=/dev/null ;; 5311 esac 5312 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5313 *$lt_bad_file* | *'Invalid file or object type'*) 5314 lt_cv_path_NM="$tmp_nm -B" 5315 break 2 5316 ;; 5317 *) 5318 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5319 */dev/null*) 5320 lt_cv_path_NM="$tmp_nm -p" 5321 break 2 5322 ;; 5323 *) 5324 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5325 continue # so that we can try to find one that supports BSD flags 5326 ;; 5327 esac 5328 ;; 5329 esac 5330 fi 5331 done 5332 IFS=$lt_save_ifs 5333 done 5334 : ${lt_cv_path_NM=no} 5335fi 5336fi 5337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5338printf "%s\n" "$lt_cv_path_NM" >&6; } 5339if test no != "$lt_cv_path_NM"; then 5340 NM=$lt_cv_path_NM 5341else 5342 # Didn't find any BSD compatible name lister, look for dumpbin. 5343 if test -n "$DUMPBIN"; then : 5344 # Let the user override the test. 5345 else 5346 if test -n "$ac_tool_prefix"; then 5347 for ac_prog in dumpbin "link -dump" 5348 do 5349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5350set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5352printf %s "checking for $ac_word... " >&6; } 5353if test ${ac_cv_prog_DUMPBIN+y} 5354then : 5355 printf %s "(cached) " >&6 5356else $as_nop 5357 if test -n "$DUMPBIN"; then 5358 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5359else 5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5361for as_dir in $PATH 5362do 5363 IFS=$as_save_IFS 5364 case $as_dir in #((( 5365 '') as_dir=./ ;; 5366 */) ;; 5367 *) as_dir=$as_dir/ ;; 5368 esac 5369 for ac_exec_ext in '' $ac_executable_extensions; do 5370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5371 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5373 break 2 5374 fi 5375done 5376 done 5377IFS=$as_save_IFS 5378 5379fi 5380fi 5381DUMPBIN=$ac_cv_prog_DUMPBIN 5382if test -n "$DUMPBIN"; then 5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5384printf "%s\n" "$DUMPBIN" >&6; } 5385else 5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5387printf "%s\n" "no" >&6; } 5388fi 5389 5390 5391 test -n "$DUMPBIN" && break 5392 done 5393fi 5394if test -z "$DUMPBIN"; then 5395 ac_ct_DUMPBIN=$DUMPBIN 5396 for ac_prog in dumpbin "link -dump" 5397do 5398 # Extract the first word of "$ac_prog", so it can be a program name with args. 5399set dummy $ac_prog; ac_word=$2 5400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5401printf %s "checking for $ac_word... " >&6; } 5402if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5403then : 5404 printf %s "(cached) " >&6 5405else $as_nop 5406 if test -n "$ac_ct_DUMPBIN"; then 5407 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5408else 5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5410for as_dir in $PATH 5411do 5412 IFS=$as_save_IFS 5413 case $as_dir in #((( 5414 '') as_dir=./ ;; 5415 */) ;; 5416 *) as_dir=$as_dir/ ;; 5417 esac 5418 for ac_exec_ext in '' $ac_executable_extensions; do 5419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5420 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5422 break 2 5423 fi 5424done 5425 done 5426IFS=$as_save_IFS 5427 5428fi 5429fi 5430ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5431if test -n "$ac_ct_DUMPBIN"; then 5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5433printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5434else 5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5436printf "%s\n" "no" >&6; } 5437fi 5438 5439 5440 test -n "$ac_ct_DUMPBIN" && break 5441done 5442 5443 if test "x$ac_ct_DUMPBIN" = x; then 5444 DUMPBIN=":" 5445 else 5446 case $cross_compiling:$ac_tool_warned in 5447yes:) 5448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5449printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5450ac_tool_warned=yes ;; 5451esac 5452 DUMPBIN=$ac_ct_DUMPBIN 5453 fi 5454fi 5455 5456 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5457 *COFF*) 5458 DUMPBIN="$DUMPBIN -symbols -headers" 5459 ;; 5460 *) 5461 DUMPBIN=: 5462 ;; 5463 esac 5464 fi 5465 5466 if test : != "$DUMPBIN"; then 5467 NM=$DUMPBIN 5468 fi 5469fi 5470test -z "$NM" && NM=nm 5471 5472 5473 5474 5475 5476 5477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5478printf %s "checking the name lister ($NM) interface... " >&6; } 5479if test ${lt_cv_nm_interface+y} 5480then : 5481 printf %s "(cached) " >&6 5482else $as_nop 5483 lt_cv_nm_interface="BSD nm" 5484 echo "int some_variable = 0;" > conftest.$ac_ext 5485 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5486 (eval "$ac_compile" 2>conftest.err) 5487 cat conftest.err >&5 5488 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5489 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5490 cat conftest.err >&5 5491 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5492 cat conftest.out >&5 5493 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5494 lt_cv_nm_interface="MS dumpbin" 5495 fi 5496 rm -f conftest* 5497fi 5498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5499printf "%s\n" "$lt_cv_nm_interface" >&6; } 5500 5501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5502printf %s "checking whether ln -s works... " >&6; } 5503LN_S=$as_ln_s 5504if test "$LN_S" = "ln -s"; then 5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5506printf "%s\n" "yes" >&6; } 5507else 5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5509printf "%s\n" "no, using $LN_S" >&6; } 5510fi 5511 5512# find the maximum length of command line arguments 5513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5514printf %s "checking the maximum length of command line arguments... " >&6; } 5515if test ${lt_cv_sys_max_cmd_len+y} 5516then : 5517 printf %s "(cached) " >&6 5518else $as_nop 5519 i=0 5520 teststring=ABCD 5521 5522 case $build_os in 5523 msdosdjgpp*) 5524 # On DJGPP, this test can blow up pretty badly due to problems in libc 5525 # (any single argument exceeding 2000 bytes causes a buffer overrun 5526 # during glob expansion). Even if it were fixed, the result of this 5527 # check would be larger than it should be. 5528 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5529 ;; 5530 5531 gnu*) 5532 # Under GNU Hurd, this test is not required because there is 5533 # no limit to the length of command line arguments. 5534 # Libtool will interpret -1 as no limit whatsoever 5535 lt_cv_sys_max_cmd_len=-1; 5536 ;; 5537 5538 cygwin* | mingw* | cegcc*) 5539 # On Win9x/ME, this test blows up -- it succeeds, but takes 5540 # about 5 minutes as the teststring grows exponentially. 5541 # Worse, since 9x/ME are not pre-emptively multitasking, 5542 # you end up with a "frozen" computer, even though with patience 5543 # the test eventually succeeds (with a max line length of 256k). 5544 # Instead, let's just punt: use the minimum linelength reported by 5545 # all of the supported platforms: 8192 (on NT/2K/XP). 5546 lt_cv_sys_max_cmd_len=8192; 5547 ;; 5548 5549 mint*) 5550 # On MiNT this can take a long time and run out of memory. 5551 lt_cv_sys_max_cmd_len=8192; 5552 ;; 5553 5554 amigaos*) 5555 # On AmigaOS with pdksh, this test takes hours, literally. 5556 # So we just punt and use a minimum line length of 8192. 5557 lt_cv_sys_max_cmd_len=8192; 5558 ;; 5559 5560 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5561 # This has been around since 386BSD, at least. Likely further. 5562 if test -x /sbin/sysctl; then 5563 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5564 elif test -x /usr/sbin/sysctl; then 5565 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5566 else 5567 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5568 fi 5569 # And add a safety zone 5570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5572 ;; 5573 5574 interix*) 5575 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5576 lt_cv_sys_max_cmd_len=196608 5577 ;; 5578 5579 os2*) 5580 # The test takes a long time on OS/2. 5581 lt_cv_sys_max_cmd_len=8192 5582 ;; 5583 5584 osf*) 5585 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5586 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5587 # nice to cause kernel panics so lets avoid the loop below. 5588 # First set a reasonable default. 5589 lt_cv_sys_max_cmd_len=16384 5590 # 5591 if test -x /sbin/sysconfig; then 5592 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5593 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5594 esac 5595 fi 5596 ;; 5597 sco3.2v5*) 5598 lt_cv_sys_max_cmd_len=102400 5599 ;; 5600 sysv5* | sco5v6* | sysv4.2uw2*) 5601 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5602 if test -n "$kargmax"; then 5603 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5604 else 5605 lt_cv_sys_max_cmd_len=32768 5606 fi 5607 ;; 5608 *) 5609 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5610 if test -n "$lt_cv_sys_max_cmd_len" && \ 5611 test undefined != "$lt_cv_sys_max_cmd_len"; then 5612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5614 else 5615 # Make teststring a little bigger before we do anything with it. 5616 # a 1K string should be a reasonable start. 5617 for i in 1 2 3 4 5 6 7 8; do 5618 teststring=$teststring$teststring 5619 done 5620 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5621 # If test is not a shell built-in, we'll probably end up computing a 5622 # maximum length that is only half of the actual maximum length, but 5623 # we can't tell. 5624 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5625 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5626 test 17 != "$i" # 1/2 MB should be enough 5627 do 5628 i=`expr $i + 1` 5629 teststring=$teststring$teststring 5630 done 5631 # Only check the string length outside the loop. 5632 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5633 teststring= 5634 # Add a significant safety factor because C++ compilers can tack on 5635 # massive amounts of additional arguments before passing them to the 5636 # linker. It appears as though 1/2 is a usable value. 5637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5638 fi 5639 ;; 5640 esac 5641 5642fi 5643 5644if test -n "$lt_cv_sys_max_cmd_len"; then 5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5646printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5647else 5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5649printf "%s\n" "none" >&6; } 5650fi 5651max_cmd_len=$lt_cv_sys_max_cmd_len 5652 5653 5654 5655 5656 5657 5658: ${CP="cp -f"} 5659: ${MV="mv -f"} 5660: ${RM="rm -f"} 5661 5662if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5663 lt_unset=unset 5664else 5665 lt_unset=false 5666fi 5667 5668 5669 5670 5671 5672# test EBCDIC or ASCII 5673case `echo X|tr X '\101'` in 5674 A) # ASCII based system 5675 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5676 lt_SP2NL='tr \040 \012' 5677 lt_NL2SP='tr \015\012 \040\040' 5678 ;; 5679 *) # EBCDIC based system 5680 lt_SP2NL='tr \100 \n' 5681 lt_NL2SP='tr \r\n \100\100' 5682 ;; 5683esac 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5694printf %s "checking how to convert $build file names to $host format... " >&6; } 5695if test ${lt_cv_to_host_file_cmd+y} 5696then : 5697 printf %s "(cached) " >&6 5698else $as_nop 5699 case $host in 5700 *-*-mingw* ) 5701 case $build in 5702 *-*-mingw* ) # actually msys 5703 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5704 ;; 5705 *-*-cygwin* ) 5706 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5707 ;; 5708 * ) # otherwise, assume *nix 5709 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5710 ;; 5711 esac 5712 ;; 5713 *-*-cygwin* ) 5714 case $build in 5715 *-*-mingw* ) # actually msys 5716 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5717 ;; 5718 *-*-cygwin* ) 5719 lt_cv_to_host_file_cmd=func_convert_file_noop 5720 ;; 5721 * ) # otherwise, assume *nix 5722 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5723 ;; 5724 esac 5725 ;; 5726 * ) # unhandled hosts (and "normal" native builds) 5727 lt_cv_to_host_file_cmd=func_convert_file_noop 5728 ;; 5729esac 5730 5731fi 5732 5733to_host_file_cmd=$lt_cv_to_host_file_cmd 5734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5735printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5736 5737 5738 5739 5740 5741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5742printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5743if test ${lt_cv_to_tool_file_cmd+y} 5744then : 5745 printf %s "(cached) " >&6 5746else $as_nop 5747 #assume ordinary cross tools, or native build. 5748lt_cv_to_tool_file_cmd=func_convert_file_noop 5749case $host in 5750 *-*-mingw* ) 5751 case $build in 5752 *-*-mingw* ) # actually msys 5753 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5754 ;; 5755 esac 5756 ;; 5757esac 5758 5759fi 5760 5761to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5763printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5764 5765 5766 5767 5768 5769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5770printf %s "checking for $LD option to reload object files... " >&6; } 5771if test ${lt_cv_ld_reload_flag+y} 5772then : 5773 printf %s "(cached) " >&6 5774else $as_nop 5775 lt_cv_ld_reload_flag='-r' 5776fi 5777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5778printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5779reload_flag=$lt_cv_ld_reload_flag 5780case $reload_flag in 5781"" | " "*) ;; 5782*) reload_flag=" $reload_flag" ;; 5783esac 5784reload_cmds='$LD$reload_flag -o $output$reload_objs' 5785case $host_os in 5786 cygwin* | mingw* | pw32* | cegcc*) 5787 if test yes != "$GCC"; then 5788 reload_cmds=false 5789 fi 5790 ;; 5791 darwin*) 5792 if test yes = "$GCC"; then 5793 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5794 else 5795 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5796 fi 5797 ;; 5798esac 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808if test -n "$ac_tool_prefix"; then 5809 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5810set dummy ${ac_tool_prefix}file; ac_word=$2 5811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5812printf %s "checking for $ac_word... " >&6; } 5813if test ${ac_cv_prog_FILECMD+y} 5814then : 5815 printf %s "(cached) " >&6 5816else $as_nop 5817 if test -n "$FILECMD"; then 5818 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5819else 5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5821for as_dir in $PATH 5822do 5823 IFS=$as_save_IFS 5824 case $as_dir in #((( 5825 '') as_dir=./ ;; 5826 */) ;; 5827 *) as_dir=$as_dir/ ;; 5828 esac 5829 for ac_exec_ext in '' $ac_executable_extensions; do 5830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5831 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5833 break 2 5834 fi 5835done 5836 done 5837IFS=$as_save_IFS 5838 5839fi 5840fi 5841FILECMD=$ac_cv_prog_FILECMD 5842if test -n "$FILECMD"; then 5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5844printf "%s\n" "$FILECMD" >&6; } 5845else 5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5847printf "%s\n" "no" >&6; } 5848fi 5849 5850 5851fi 5852if test -z "$ac_cv_prog_FILECMD"; then 5853 ac_ct_FILECMD=$FILECMD 5854 # Extract the first word of "file", so it can be a program name with args. 5855set dummy file; ac_word=$2 5856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5857printf %s "checking for $ac_word... " >&6; } 5858if test ${ac_cv_prog_ac_ct_FILECMD+y} 5859then : 5860 printf %s "(cached) " >&6 5861else $as_nop 5862 if test -n "$ac_ct_FILECMD"; then 5863 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5864else 5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5866for as_dir in $PATH 5867do 5868 IFS=$as_save_IFS 5869 case $as_dir in #((( 5870 '') as_dir=./ ;; 5871 */) ;; 5872 *) as_dir=$as_dir/ ;; 5873 esac 5874 for ac_exec_ext in '' $ac_executable_extensions; do 5875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5876 ac_cv_prog_ac_ct_FILECMD="file" 5877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5878 break 2 5879 fi 5880done 5881 done 5882IFS=$as_save_IFS 5883 5884fi 5885fi 5886ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5887if test -n "$ac_ct_FILECMD"; then 5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5889printf "%s\n" "$ac_ct_FILECMD" >&6; } 5890else 5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5892printf "%s\n" "no" >&6; } 5893fi 5894 5895 if test "x$ac_ct_FILECMD" = x; then 5896 FILECMD=":" 5897 else 5898 case $cross_compiling:$ac_tool_warned in 5899yes:) 5900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5901printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5902ac_tool_warned=yes ;; 5903esac 5904 FILECMD=$ac_ct_FILECMD 5905 fi 5906else 5907 FILECMD="$ac_cv_prog_FILECMD" 5908fi 5909 5910 5911 5912 5913 5914 5915 5916if test -n "$ac_tool_prefix"; then 5917 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5918set dummy ${ac_tool_prefix}objdump; ac_word=$2 5919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5920printf %s "checking for $ac_word... " >&6; } 5921if test ${ac_cv_prog_OBJDUMP+y} 5922then : 5923 printf %s "(cached) " >&6 5924else $as_nop 5925 if test -n "$OBJDUMP"; then 5926 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5927else 5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5929for as_dir in $PATH 5930do 5931 IFS=$as_save_IFS 5932 case $as_dir in #((( 5933 '') as_dir=./ ;; 5934 */) ;; 5935 *) as_dir=$as_dir/ ;; 5936 esac 5937 for ac_exec_ext in '' $ac_executable_extensions; do 5938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5939 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5941 break 2 5942 fi 5943done 5944 done 5945IFS=$as_save_IFS 5946 5947fi 5948fi 5949OBJDUMP=$ac_cv_prog_OBJDUMP 5950if test -n "$OBJDUMP"; then 5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5952printf "%s\n" "$OBJDUMP" >&6; } 5953else 5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5955printf "%s\n" "no" >&6; } 5956fi 5957 5958 5959fi 5960if test -z "$ac_cv_prog_OBJDUMP"; then 5961 ac_ct_OBJDUMP=$OBJDUMP 5962 # Extract the first word of "objdump", so it can be a program name with args. 5963set dummy objdump; ac_word=$2 5964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5965printf %s "checking for $ac_word... " >&6; } 5966if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5967then : 5968 printf %s "(cached) " >&6 5969else $as_nop 5970 if test -n "$ac_ct_OBJDUMP"; then 5971 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5972else 5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5974for as_dir in $PATH 5975do 5976 IFS=$as_save_IFS 5977 case $as_dir in #((( 5978 '') as_dir=./ ;; 5979 */) ;; 5980 *) as_dir=$as_dir/ ;; 5981 esac 5982 for ac_exec_ext in '' $ac_executable_extensions; do 5983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5984 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5986 break 2 5987 fi 5988done 5989 done 5990IFS=$as_save_IFS 5991 5992fi 5993fi 5994ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5995if test -n "$ac_ct_OBJDUMP"; then 5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5997printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5998else 5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6000printf "%s\n" "no" >&6; } 6001fi 6002 6003 if test "x$ac_ct_OBJDUMP" = x; then 6004 OBJDUMP="false" 6005 else 6006 case $cross_compiling:$ac_tool_warned in 6007yes:) 6008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6009printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6010ac_tool_warned=yes ;; 6011esac 6012 OBJDUMP=$ac_ct_OBJDUMP 6013 fi 6014else 6015 OBJDUMP="$ac_cv_prog_OBJDUMP" 6016fi 6017 6018test -z "$OBJDUMP" && OBJDUMP=objdump 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6029printf %s "checking how to recognize dependent libraries... " >&6; } 6030if test ${lt_cv_deplibs_check_method+y} 6031then : 6032 printf %s "(cached) " >&6 6033else $as_nop 6034 lt_cv_file_magic_cmd='$MAGIC_CMD' 6035lt_cv_file_magic_test_file= 6036lt_cv_deplibs_check_method='unknown' 6037# Need to set the preceding variable on all platforms that support 6038# interlibrary dependencies. 6039# 'none' -- dependencies not supported. 6040# 'unknown' -- same as none, but documents that we really don't know. 6041# 'pass_all' -- all dependencies passed with no checks. 6042# 'test_compile' -- check by making test program. 6043# 'file_magic [[regex]]' -- check by looking for files in library path 6044# that responds to the $file_magic_cmd with a given extended regex. 6045# If you have 'file' or equivalent on your system and you're not sure 6046# whether 'pass_all' will *always* work, you probably want this one. 6047 6048case $host_os in 6049aix[4-9]*) 6050 lt_cv_deplibs_check_method=pass_all 6051 ;; 6052 6053beos*) 6054 lt_cv_deplibs_check_method=pass_all 6055 ;; 6056 6057bsdi[45]*) 6058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6059 lt_cv_file_magic_cmd='$FILECMD -L' 6060 lt_cv_file_magic_test_file=/shlib/libc.so 6061 ;; 6062 6063cygwin*) 6064 # func_win32_libid is a shell function defined in ltmain.sh 6065 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6066 lt_cv_file_magic_cmd='func_win32_libid' 6067 ;; 6068 6069mingw* | pw32*) 6070 # Base MSYS/MinGW do not provide the 'file' command needed by 6071 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6072 # unless we find 'file', for example because we are cross-compiling. 6073 if ( file / ) >/dev/null 2>&1; then 6074 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6075 lt_cv_file_magic_cmd='func_win32_libid' 6076 else 6077 # Keep this pattern in sync with the one in func_win32_libid. 6078 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6079 lt_cv_file_magic_cmd='$OBJDUMP -f' 6080 fi 6081 ;; 6082 6083cegcc*) 6084 # use the weaker test based on 'objdump'. See mingw*. 6085 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6086 lt_cv_file_magic_cmd='$OBJDUMP -f' 6087 ;; 6088 6089darwin* | rhapsody*) 6090 lt_cv_deplibs_check_method=pass_all 6091 ;; 6092 6093freebsd* | dragonfly* | midnightbsd*) 6094 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6095 case $host_cpu in 6096 i*86 ) 6097 # Not sure whether the presence of OpenBSD here was a mistake. 6098 # Let's accept both of them until this is cleared up. 6099 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6100 lt_cv_file_magic_cmd=$FILECMD 6101 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6102 ;; 6103 esac 6104 else 6105 lt_cv_deplibs_check_method=pass_all 6106 fi 6107 ;; 6108 6109haiku*) 6110 lt_cv_deplibs_check_method=pass_all 6111 ;; 6112 6113hpux10.20* | hpux11*) 6114 lt_cv_file_magic_cmd=$FILECMD 6115 case $host_cpu in 6116 ia64*) 6117 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6118 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6119 ;; 6120 hppa*64*) 6121 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]' 6122 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6123 ;; 6124 *) 6125 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6126 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6127 ;; 6128 esac 6129 ;; 6130 6131interix[3-9]*) 6132 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6134 ;; 6135 6136irix5* | irix6* | nonstopux*) 6137 case $LD in 6138 *-32|*"-32 ") libmagic=32-bit;; 6139 *-n32|*"-n32 ") libmagic=N32;; 6140 *-64|*"-64 ") libmagic=64-bit;; 6141 *) libmagic=never-match;; 6142 esac 6143 lt_cv_deplibs_check_method=pass_all 6144 ;; 6145 6146# This must be glibc/ELF. 6147linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6148 lt_cv_deplibs_check_method=pass_all 6149 ;; 6150 6151netbsd*) 6152 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6154 else 6155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6156 fi 6157 ;; 6158 6159newos6*) 6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6161 lt_cv_file_magic_cmd=$FILECMD 6162 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6163 ;; 6164 6165*nto* | *qnx*) 6166 lt_cv_deplibs_check_method=pass_all 6167 ;; 6168 6169openbsd* | bitrig*) 6170 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6172 else 6173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6174 fi 6175 ;; 6176 6177osf3* | osf4* | osf5*) 6178 lt_cv_deplibs_check_method=pass_all 6179 ;; 6180 6181rdos*) 6182 lt_cv_deplibs_check_method=pass_all 6183 ;; 6184 6185solaris*) 6186 lt_cv_deplibs_check_method=pass_all 6187 ;; 6188 6189sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6190 lt_cv_deplibs_check_method=pass_all 6191 ;; 6192 6193sysv4 | sysv4.3*) 6194 case $host_vendor in 6195 motorola) 6196 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]' 6197 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6198 ;; 6199 ncr) 6200 lt_cv_deplibs_check_method=pass_all 6201 ;; 6202 sequent) 6203 lt_cv_file_magic_cmd='/bin/file' 6204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6205 ;; 6206 sni) 6207 lt_cv_file_magic_cmd='/bin/file' 6208 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6209 lt_cv_file_magic_test_file=/lib/libc.so 6210 ;; 6211 siemens) 6212 lt_cv_deplibs_check_method=pass_all 6213 ;; 6214 pc) 6215 lt_cv_deplibs_check_method=pass_all 6216 ;; 6217 esac 6218 ;; 6219 6220tpf*) 6221 lt_cv_deplibs_check_method=pass_all 6222 ;; 6223os2*) 6224 lt_cv_deplibs_check_method=pass_all 6225 ;; 6226esac 6227 6228fi 6229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6230printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6231 6232file_magic_glob= 6233want_nocaseglob=no 6234if test "$build" = "$host"; then 6235 case $host_os in 6236 mingw* | pw32*) 6237 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6238 want_nocaseglob=yes 6239 else 6240 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6241 fi 6242 ;; 6243 esac 6244fi 6245 6246file_magic_cmd=$lt_cv_file_magic_cmd 6247deplibs_check_method=$lt_cv_deplibs_check_method 6248test -z "$deplibs_check_method" && deplibs_check_method=unknown 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271if test -n "$ac_tool_prefix"; then 6272 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6273set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6275printf %s "checking for $ac_word... " >&6; } 6276if test ${ac_cv_prog_DLLTOOL+y} 6277then : 6278 printf %s "(cached) " >&6 6279else $as_nop 6280 if test -n "$DLLTOOL"; then 6281 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6282else 6283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6284for as_dir in $PATH 6285do 6286 IFS=$as_save_IFS 6287 case $as_dir in #((( 6288 '') as_dir=./ ;; 6289 */) ;; 6290 *) as_dir=$as_dir/ ;; 6291 esac 6292 for ac_exec_ext in '' $ac_executable_extensions; do 6293 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6294 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6296 break 2 6297 fi 6298done 6299 done 6300IFS=$as_save_IFS 6301 6302fi 6303fi 6304DLLTOOL=$ac_cv_prog_DLLTOOL 6305if test -n "$DLLTOOL"; then 6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6307printf "%s\n" "$DLLTOOL" >&6; } 6308else 6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6310printf "%s\n" "no" >&6; } 6311fi 6312 6313 6314fi 6315if test -z "$ac_cv_prog_DLLTOOL"; then 6316 ac_ct_DLLTOOL=$DLLTOOL 6317 # Extract the first word of "dlltool", so it can be a program name with args. 6318set dummy dlltool; ac_word=$2 6319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6320printf %s "checking for $ac_word... " >&6; } 6321if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6322then : 6323 printf %s "(cached) " >&6 6324else $as_nop 6325 if test -n "$ac_ct_DLLTOOL"; then 6326 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6327else 6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6329for as_dir in $PATH 6330do 6331 IFS=$as_save_IFS 6332 case $as_dir in #((( 6333 '') as_dir=./ ;; 6334 */) ;; 6335 *) as_dir=$as_dir/ ;; 6336 esac 6337 for ac_exec_ext in '' $ac_executable_extensions; do 6338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6339 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6341 break 2 6342 fi 6343done 6344 done 6345IFS=$as_save_IFS 6346 6347fi 6348fi 6349ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6350if test -n "$ac_ct_DLLTOOL"; then 6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6352printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6353else 6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6355printf "%s\n" "no" >&6; } 6356fi 6357 6358 if test "x$ac_ct_DLLTOOL" = x; then 6359 DLLTOOL="false" 6360 else 6361 case $cross_compiling:$ac_tool_warned in 6362yes:) 6363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6364printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6365ac_tool_warned=yes ;; 6366esac 6367 DLLTOOL=$ac_ct_DLLTOOL 6368 fi 6369else 6370 DLLTOOL="$ac_cv_prog_DLLTOOL" 6371fi 6372 6373test -z "$DLLTOOL" && DLLTOOL=dlltool 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6385printf %s "checking how to associate runtime and link libraries... " >&6; } 6386if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6387then : 6388 printf %s "(cached) " >&6 6389else $as_nop 6390 lt_cv_sharedlib_from_linklib_cmd='unknown' 6391 6392case $host_os in 6393cygwin* | mingw* | pw32* | cegcc*) 6394 # two different shell functions defined in ltmain.sh; 6395 # decide which one to use based on capabilities of $DLLTOOL 6396 case `$DLLTOOL --help 2>&1` in 6397 *--identify-strict*) 6398 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6399 ;; 6400 *) 6401 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6402 ;; 6403 esac 6404 ;; 6405*) 6406 # fallback: assume linklib IS sharedlib 6407 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6408 ;; 6409esac 6410 6411fi 6412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6413printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6414sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6415test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6416 6417 6418 6419 6420 6421 6422 6423if test -n "$ac_tool_prefix"; then 6424 for ac_prog in ar 6425 do 6426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6427set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6429printf %s "checking for $ac_word... " >&6; } 6430if test ${ac_cv_prog_AR+y} 6431then : 6432 printf %s "(cached) " >&6 6433else $as_nop 6434 if test -n "$AR"; then 6435 ac_cv_prog_AR="$AR" # Let the user override the test. 6436else 6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6438for as_dir in $PATH 6439do 6440 IFS=$as_save_IFS 6441 case $as_dir in #((( 6442 '') as_dir=./ ;; 6443 */) ;; 6444 *) as_dir=$as_dir/ ;; 6445 esac 6446 for ac_exec_ext in '' $ac_executable_extensions; do 6447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6448 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6450 break 2 6451 fi 6452done 6453 done 6454IFS=$as_save_IFS 6455 6456fi 6457fi 6458AR=$ac_cv_prog_AR 6459if test -n "$AR"; then 6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6461printf "%s\n" "$AR" >&6; } 6462else 6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6464printf "%s\n" "no" >&6; } 6465fi 6466 6467 6468 test -n "$AR" && break 6469 done 6470fi 6471if test -z "$AR"; then 6472 ac_ct_AR=$AR 6473 for ac_prog in ar 6474do 6475 # Extract the first word of "$ac_prog", so it can be a program name with args. 6476set dummy $ac_prog; ac_word=$2 6477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6478printf %s "checking for $ac_word... " >&6; } 6479if test ${ac_cv_prog_ac_ct_AR+y} 6480then : 6481 printf %s "(cached) " >&6 6482else $as_nop 6483 if test -n "$ac_ct_AR"; then 6484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6485else 6486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6487for as_dir in $PATH 6488do 6489 IFS=$as_save_IFS 6490 case $as_dir in #((( 6491 '') as_dir=./ ;; 6492 */) ;; 6493 *) as_dir=$as_dir/ ;; 6494 esac 6495 for ac_exec_ext in '' $ac_executable_extensions; do 6496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6497 ac_cv_prog_ac_ct_AR="$ac_prog" 6498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6499 break 2 6500 fi 6501done 6502 done 6503IFS=$as_save_IFS 6504 6505fi 6506fi 6507ac_ct_AR=$ac_cv_prog_ac_ct_AR 6508if test -n "$ac_ct_AR"; then 6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6510printf "%s\n" "$ac_ct_AR" >&6; } 6511else 6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6513printf "%s\n" "no" >&6; } 6514fi 6515 6516 6517 test -n "$ac_ct_AR" && break 6518done 6519 6520 if test "x$ac_ct_AR" = x; then 6521 AR="false" 6522 else 6523 case $cross_compiling:$ac_tool_warned in 6524yes:) 6525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6526printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6527ac_tool_warned=yes ;; 6528esac 6529 AR=$ac_ct_AR 6530 fi 6531fi 6532 6533: ${AR=ar} 6534 6535 6536 6537 6538 6539 6540# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6541# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6542# higher priority because thats what people were doing historically (setting 6543# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6544# variable obsoleted/removed. 6545 6546test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6547lt_ar_flags=$AR_FLAGS 6548 6549 6550 6551 6552 6553 6554# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6555# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6556 6557 6558 6559 6560 6561 6562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6563printf %s "checking for archiver @FILE support... " >&6; } 6564if test ${lt_cv_ar_at_file+y} 6565then : 6566 printf %s "(cached) " >&6 6567else $as_nop 6568 lt_cv_ar_at_file=no 6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6570/* end confdefs.h. */ 6571 6572int 6573main (void) 6574{ 6575 6576 ; 6577 return 0; 6578} 6579_ACEOF 6580if ac_fn_c_try_compile "$LINENO" 6581then : 6582 echo conftest.$ac_objext > conftest.lst 6583 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6585 (eval $lt_ar_try) 2>&5 6586 ac_status=$? 6587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6588 test $ac_status = 0; } 6589 if test 0 -eq "$ac_status"; then 6590 # Ensure the archiver fails upon bogus file names. 6591 rm -f conftest.$ac_objext libconftest.a 6592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6593 (eval $lt_ar_try) 2>&5 6594 ac_status=$? 6595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6596 test $ac_status = 0; } 6597 if test 0 -ne "$ac_status"; then 6598 lt_cv_ar_at_file=@ 6599 fi 6600 fi 6601 rm -f conftest.* libconftest.a 6602 6603fi 6604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6605 6606fi 6607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6608printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6609 6610if test no = "$lt_cv_ar_at_file"; then 6611 archiver_list_spec= 6612else 6613 archiver_list_spec=$lt_cv_ar_at_file 6614fi 6615 6616 6617 6618 6619 6620 6621 6622if test -n "$ac_tool_prefix"; then 6623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6624set dummy ${ac_tool_prefix}strip; ac_word=$2 6625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6626printf %s "checking for $ac_word... " >&6; } 6627if test ${ac_cv_prog_STRIP+y} 6628then : 6629 printf %s "(cached) " >&6 6630else $as_nop 6631 if test -n "$STRIP"; then 6632 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6633else 6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6635for as_dir in $PATH 6636do 6637 IFS=$as_save_IFS 6638 case $as_dir in #((( 6639 '') as_dir=./ ;; 6640 */) ;; 6641 *) as_dir=$as_dir/ ;; 6642 esac 6643 for ac_exec_ext in '' $ac_executable_extensions; do 6644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6645 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6647 break 2 6648 fi 6649done 6650 done 6651IFS=$as_save_IFS 6652 6653fi 6654fi 6655STRIP=$ac_cv_prog_STRIP 6656if test -n "$STRIP"; then 6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6658printf "%s\n" "$STRIP" >&6; } 6659else 6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6661printf "%s\n" "no" >&6; } 6662fi 6663 6664 6665fi 6666if test -z "$ac_cv_prog_STRIP"; then 6667 ac_ct_STRIP=$STRIP 6668 # Extract the first word of "strip", so it can be a program name with args. 6669set dummy strip; ac_word=$2 6670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6671printf %s "checking for $ac_word... " >&6; } 6672if test ${ac_cv_prog_ac_ct_STRIP+y} 6673then : 6674 printf %s "(cached) " >&6 6675else $as_nop 6676 if test -n "$ac_ct_STRIP"; then 6677 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6678else 6679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6680for as_dir in $PATH 6681do 6682 IFS=$as_save_IFS 6683 case $as_dir in #((( 6684 '') as_dir=./ ;; 6685 */) ;; 6686 *) as_dir=$as_dir/ ;; 6687 esac 6688 for ac_exec_ext in '' $ac_executable_extensions; do 6689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6690 ac_cv_prog_ac_ct_STRIP="strip" 6691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6692 break 2 6693 fi 6694done 6695 done 6696IFS=$as_save_IFS 6697 6698fi 6699fi 6700ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6701if test -n "$ac_ct_STRIP"; then 6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6703printf "%s\n" "$ac_ct_STRIP" >&6; } 6704else 6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6706printf "%s\n" "no" >&6; } 6707fi 6708 6709 if test "x$ac_ct_STRIP" = x; then 6710 STRIP=":" 6711 else 6712 case $cross_compiling:$ac_tool_warned in 6713yes:) 6714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6715printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6716ac_tool_warned=yes ;; 6717esac 6718 STRIP=$ac_ct_STRIP 6719 fi 6720else 6721 STRIP="$ac_cv_prog_STRIP" 6722fi 6723 6724test -z "$STRIP" && STRIP=: 6725 6726 6727 6728 6729 6730 6731if test -n "$ac_tool_prefix"; then 6732 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6733set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6735printf %s "checking for $ac_word... " >&6; } 6736if test ${ac_cv_prog_RANLIB+y} 6737then : 6738 printf %s "(cached) " >&6 6739else $as_nop 6740 if test -n "$RANLIB"; then 6741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6742else 6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6744for as_dir in $PATH 6745do 6746 IFS=$as_save_IFS 6747 case $as_dir in #((( 6748 '') as_dir=./ ;; 6749 */) ;; 6750 *) as_dir=$as_dir/ ;; 6751 esac 6752 for ac_exec_ext in '' $ac_executable_extensions; do 6753 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6754 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6756 break 2 6757 fi 6758done 6759 done 6760IFS=$as_save_IFS 6761 6762fi 6763fi 6764RANLIB=$ac_cv_prog_RANLIB 6765if test -n "$RANLIB"; then 6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6767printf "%s\n" "$RANLIB" >&6; } 6768else 6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6770printf "%s\n" "no" >&6; } 6771fi 6772 6773 6774fi 6775if test -z "$ac_cv_prog_RANLIB"; then 6776 ac_ct_RANLIB=$RANLIB 6777 # Extract the first word of "ranlib", so it can be a program name with args. 6778set dummy ranlib; ac_word=$2 6779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6780printf %s "checking for $ac_word... " >&6; } 6781if test ${ac_cv_prog_ac_ct_RANLIB+y} 6782then : 6783 printf %s "(cached) " >&6 6784else $as_nop 6785 if test -n "$ac_ct_RANLIB"; then 6786 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6787else 6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6789for as_dir in $PATH 6790do 6791 IFS=$as_save_IFS 6792 case $as_dir in #((( 6793 '') as_dir=./ ;; 6794 */) ;; 6795 *) as_dir=$as_dir/ ;; 6796 esac 6797 for ac_exec_ext in '' $ac_executable_extensions; do 6798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6799 ac_cv_prog_ac_ct_RANLIB="ranlib" 6800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6801 break 2 6802 fi 6803done 6804 done 6805IFS=$as_save_IFS 6806 6807fi 6808fi 6809ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6810if test -n "$ac_ct_RANLIB"; then 6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6812printf "%s\n" "$ac_ct_RANLIB" >&6; } 6813else 6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6815printf "%s\n" "no" >&6; } 6816fi 6817 6818 if test "x$ac_ct_RANLIB" = x; then 6819 RANLIB=":" 6820 else 6821 case $cross_compiling:$ac_tool_warned in 6822yes:) 6823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6824printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6825ac_tool_warned=yes ;; 6826esac 6827 RANLIB=$ac_ct_RANLIB 6828 fi 6829else 6830 RANLIB="$ac_cv_prog_RANLIB" 6831fi 6832 6833test -z "$RANLIB" && RANLIB=: 6834 6835 6836 6837 6838 6839 6840# Determine commands to create old-style static archives. 6841old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6842old_postinstall_cmds='chmod 644 $oldlib' 6843old_postuninstall_cmds= 6844 6845if test -n "$RANLIB"; then 6846 case $host_os in 6847 bitrig* | openbsd*) 6848 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6849 ;; 6850 *) 6851 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6852 ;; 6853 esac 6854 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6855fi 6856 6857case $host_os in 6858 darwin*) 6859 lock_old_archive_extraction=yes ;; 6860 *) 6861 lock_old_archive_extraction=no ;; 6862esac 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 6900 6901 6902# If no C compiler was specified, use CC. 6903LTCC=${LTCC-"$CC"} 6904 6905# If no C compiler flags were specified, use CFLAGS. 6906LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6907 6908# Allow CC to be a program name with arguments. 6909compiler=$CC 6910 6911 6912# Check for command to grab the raw symbol name followed by C symbol from nm. 6913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6914printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6915if test ${lt_cv_sys_global_symbol_pipe+y} 6916then : 6917 printf %s "(cached) " >&6 6918else $as_nop 6919 6920# These are sane defaults that work on at least a few old systems. 6921# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6922 6923# Character class describing NM global symbol codes. 6924symcode='[BCDEGRST]' 6925 6926# Regexp to match symbols that can be accessed directly from C. 6927sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6928 6929# Define system-specific variables. 6930case $host_os in 6931aix*) 6932 symcode='[BCDT]' 6933 ;; 6934cygwin* | mingw* | pw32* | cegcc*) 6935 symcode='[ABCDGISTW]' 6936 ;; 6937hpux*) 6938 if test ia64 = "$host_cpu"; then 6939 symcode='[ABCDEGRST]' 6940 fi 6941 ;; 6942irix* | nonstopux*) 6943 symcode='[BCDEGRST]' 6944 ;; 6945osf*) 6946 symcode='[BCDEGQRST]' 6947 ;; 6948solaris*) 6949 symcode='[BDRT]' 6950 ;; 6951sco3.2v5*) 6952 symcode='[DT]' 6953 ;; 6954sysv4.2uw2*) 6955 symcode='[DT]' 6956 ;; 6957sysv5* | sco5v6* | unixware* | OpenUNIX*) 6958 symcode='[ABDT]' 6959 ;; 6960sysv4) 6961 symcode='[DFNSTU]' 6962 ;; 6963esac 6964 6965# If we're using GNU nm, then use its standard symbol codes. 6966case `$NM -V 2>&1` in 6967*GNU* | *'with BFD'*) 6968 symcode='[ABCDGIRSTW]' ;; 6969esac 6970 6971if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6972 # Gets list of data symbols to import. 6973 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6974 # Adjust the below global symbol transforms to fixup imported variables. 6975 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6976 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6977 lt_c_name_lib_hook="\ 6978 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6979 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6980else 6981 # Disable hooks by default. 6982 lt_cv_sys_global_symbol_to_import= 6983 lt_cdecl_hook= 6984 lt_c_name_hook= 6985 lt_c_name_lib_hook= 6986fi 6987 6988# Transform an extracted symbol line into a proper C declaration. 6989# Some systems (esp. on ia64) link data and code symbols differently, 6990# so use this general approach. 6991lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6992$lt_cdecl_hook\ 6993" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6994" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6995 6996# Transform an extracted symbol line into symbol name and symbol address 6997lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6998$lt_c_name_hook\ 6999" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7000" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7001 7002# Transform an extracted symbol line into symbol name with lib prefix and 7003# symbol address. 7004lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7005$lt_c_name_lib_hook\ 7006" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7007" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7008" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7009 7010# Handle CRLF in mingw tool chain 7011opt_cr= 7012case $build_os in 7013mingw*) 7014 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7015 ;; 7016esac 7017 7018# Try without a prefix underscore, then with it. 7019for ac_symprfx in "" "_"; do 7020 7021 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7022 symxfrm="\\1 $ac_symprfx\\2 \\2" 7023 7024 # Write the raw and C identifiers. 7025 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7026 # Fake it for dumpbin and say T for any non-static function, 7027 # D for any global variable and I for any imported variable. 7028 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7029 # which start with @ or ?. 7030 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7031" {last_section=section; section=\$ 3};"\ 7032" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7033" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7034" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7035" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7036" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7037" \$ 0!~/External *\|/{next};"\ 7038" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7039" {if(hide[section]) next};"\ 7040" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7041" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7042" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7043" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7044" ' prfx=^$ac_symprfx" 7045 else 7046 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7047 fi 7048 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7049 7050 # Check to see that the pipe works correctly. 7051 pipe_works=no 7052 7053 rm -f conftest* 7054 cat > conftest.$ac_ext <<_LT_EOF 7055#ifdef __cplusplus 7056extern "C" { 7057#endif 7058char nm_test_var; 7059void nm_test_func(void); 7060void nm_test_func(void){} 7061#ifdef __cplusplus 7062} 7063#endif 7064int main(){nm_test_var='a';nm_test_func();return(0);} 7065_LT_EOF 7066 7067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7068 (eval $ac_compile) 2>&5 7069 ac_status=$? 7070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7071 test $ac_status = 0; }; then 7072 # Now try to grab the symbols. 7073 nlist=conftest.nm 7074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7075 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7076 ac_status=$? 7077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7078 test $ac_status = 0; } && test -s "$nlist"; then 7079 # Try sorting and uniquifying the output. 7080 if sort "$nlist" | uniq > "$nlist"T; then 7081 mv -f "$nlist"T "$nlist" 7082 else 7083 rm -f "$nlist"T 7084 fi 7085 7086 # Make sure that we snagged all the symbols we need. 7087 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7088 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7089 cat <<_LT_EOF > conftest.$ac_ext 7090/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7091#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7092/* DATA imports from DLLs on WIN32 can't be const, because runtime 7093 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7094# define LT_DLSYM_CONST 7095#elif defined __osf__ 7096/* This system does not cope well with relocations in const data. */ 7097# define LT_DLSYM_CONST 7098#else 7099# define LT_DLSYM_CONST const 7100#endif 7101 7102#ifdef __cplusplus 7103extern "C" { 7104#endif 7105 7106_LT_EOF 7107 # Now generate the symbol file. 7108 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7109 7110 cat <<_LT_EOF >> conftest.$ac_ext 7111 7112/* The mapping between symbol names and symbols. */ 7113LT_DLSYM_CONST struct { 7114 const char *name; 7115 void *address; 7116} 7117lt__PROGRAM__LTX_preloaded_symbols[] = 7118{ 7119 { "@PROGRAM@", (void *) 0 }, 7120_LT_EOF 7121 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7122 cat <<\_LT_EOF >> conftest.$ac_ext 7123 {0, (void *) 0} 7124}; 7125 7126/* This works around a problem in FreeBSD linker */ 7127#ifdef FREEBSD_WORKAROUND 7128static const void *lt_preloaded_setup() { 7129 return lt__PROGRAM__LTX_preloaded_symbols; 7130} 7131#endif 7132 7133#ifdef __cplusplus 7134} 7135#endif 7136_LT_EOF 7137 # Now try linking the two files. 7138 mv conftest.$ac_objext conftstm.$ac_objext 7139 lt_globsym_save_LIBS=$LIBS 7140 lt_globsym_save_CFLAGS=$CFLAGS 7141 LIBS=conftstm.$ac_objext 7142 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7144 (eval $ac_link) 2>&5 7145 ac_status=$? 7146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7147 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7148 pipe_works=yes 7149 fi 7150 LIBS=$lt_globsym_save_LIBS 7151 CFLAGS=$lt_globsym_save_CFLAGS 7152 else 7153 echo "cannot find nm_test_func in $nlist" >&5 7154 fi 7155 else 7156 echo "cannot find nm_test_var in $nlist" >&5 7157 fi 7158 else 7159 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7160 fi 7161 else 7162 echo "$progname: failed program was:" >&5 7163 cat conftest.$ac_ext >&5 7164 fi 7165 rm -rf conftest* conftst* 7166 7167 # Do not use the global_symbol_pipe unless it works. 7168 if test yes = "$pipe_works"; then 7169 break 7170 else 7171 lt_cv_sys_global_symbol_pipe= 7172 fi 7173done 7174 7175fi 7176 7177if test -z "$lt_cv_sys_global_symbol_pipe"; then 7178 lt_cv_sys_global_symbol_to_cdecl= 7179fi 7180if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7182printf "%s\n" "failed" >&6; } 7183else 7184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7185printf "%s\n" "ok" >&6; } 7186fi 7187 7188# Response file support. 7189if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7190 nm_file_list_spec='@' 7191elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7192 nm_file_list_spec='@' 7193fi 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 7229 7230 7231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7232printf %s "checking for sysroot... " >&6; } 7233 7234# Check whether --with-sysroot was given. 7235if test ${with_sysroot+y} 7236then : 7237 withval=$with_sysroot; 7238else $as_nop 7239 with_sysroot=no 7240fi 7241 7242 7243lt_sysroot= 7244case $with_sysroot in #( 7245 yes) 7246 if test yes = "$GCC"; then 7247 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7248 fi 7249 ;; #( 7250 /*) 7251 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7252 ;; #( 7253 no|'') 7254 ;; #( 7255 *) 7256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7257printf "%s\n" "$with_sysroot" >&6; } 7258 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7259 ;; 7260esac 7261 7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7263printf "%s\n" "${lt_sysroot:-no}" >&6; } 7264 7265 7266 7267 7268 7269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7270printf %s "checking for a working dd... " >&6; } 7271if test ${ac_cv_path_lt_DD+y} 7272then : 7273 printf %s "(cached) " >&6 7274else $as_nop 7275 printf 0123456789abcdef0123456789abcdef >conftest.i 7276cat conftest.i conftest.i >conftest2.i 7277: ${lt_DD:=$DD} 7278if test -z "$lt_DD"; then 7279 ac_path_lt_DD_found=false 7280 # Loop through the user's path and test for each of PROGNAME-LIST 7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7282for as_dir in $PATH 7283do 7284 IFS=$as_save_IFS 7285 case $as_dir in #((( 7286 '') as_dir=./ ;; 7287 */) ;; 7288 *) as_dir=$as_dir/ ;; 7289 esac 7290 for ac_prog in dd 7291 do 7292 for ac_exec_ext in '' $ac_executable_extensions; do 7293 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7294 as_fn_executable_p "$ac_path_lt_DD" || continue 7295if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7296 cmp -s conftest.i conftest.out \ 7297 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7298fi 7299 $ac_path_lt_DD_found && break 3 7300 done 7301 done 7302 done 7303IFS=$as_save_IFS 7304 if test -z "$ac_cv_path_lt_DD"; then 7305 : 7306 fi 7307else 7308 ac_cv_path_lt_DD=$lt_DD 7309fi 7310 7311rm -f conftest.i conftest2.i conftest.out 7312fi 7313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7314printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7315 7316 7317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7318printf %s "checking how to truncate binary pipes... " >&6; } 7319if test ${lt_cv_truncate_bin+y} 7320then : 7321 printf %s "(cached) " >&6 7322else $as_nop 7323 printf 0123456789abcdef0123456789abcdef >conftest.i 7324cat conftest.i conftest.i >conftest2.i 7325lt_cv_truncate_bin= 7326if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7327 cmp -s conftest.i conftest.out \ 7328 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7329fi 7330rm -f conftest.i conftest2.i conftest.out 7331test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7332fi 7333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7334printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7335 7336 7337 7338 7339 7340 7341 7342# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7343func_cc_basename () 7344{ 7345 for cc_temp in $*""; do 7346 case $cc_temp in 7347 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7348 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7349 \-*) ;; 7350 *) break;; 7351 esac 7352 done 7353 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7354} 7355 7356# Check whether --enable-libtool-lock was given. 7357if test ${enable_libtool_lock+y} 7358then : 7359 enableval=$enable_libtool_lock; 7360fi 7361 7362test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7363 7364# Some flags need to be propagated to the compiler or linker for good 7365# libtool support. 7366case $host in 7367ia64-*-hpux*) 7368 # Find out what ABI is being produced by ac_compile, and set mode 7369 # options accordingly. 7370 echo 'int i;' > conftest.$ac_ext 7371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7372 (eval $ac_compile) 2>&5 7373 ac_status=$? 7374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7375 test $ac_status = 0; }; then 7376 case `$FILECMD conftest.$ac_objext` in 7377 *ELF-32*) 7378 HPUX_IA64_MODE=32 7379 ;; 7380 *ELF-64*) 7381 HPUX_IA64_MODE=64 7382 ;; 7383 esac 7384 fi 7385 rm -rf conftest* 7386 ;; 7387*-*-irix6*) 7388 # Find out what ABI is being produced by ac_compile, and set linker 7389 # options accordingly. 7390 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7392 (eval $ac_compile) 2>&5 7393 ac_status=$? 7394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7395 test $ac_status = 0; }; then 7396 if test yes = "$lt_cv_prog_gnu_ld"; then 7397 case `$FILECMD conftest.$ac_objext` in 7398 *32-bit*) 7399 LD="${LD-ld} -melf32bsmip" 7400 ;; 7401 *N32*) 7402 LD="${LD-ld} -melf32bmipn32" 7403 ;; 7404 *64-bit*) 7405 LD="${LD-ld} -melf64bmip" 7406 ;; 7407 esac 7408 else 7409 case `$FILECMD conftest.$ac_objext` in 7410 *32-bit*) 7411 LD="${LD-ld} -32" 7412 ;; 7413 *N32*) 7414 LD="${LD-ld} -n32" 7415 ;; 7416 *64-bit*) 7417 LD="${LD-ld} -64" 7418 ;; 7419 esac 7420 fi 7421 fi 7422 rm -rf conftest* 7423 ;; 7424 7425mips64*-*linux*) 7426 # Find out what ABI is being produced by ac_compile, and set linker 7427 # options accordingly. 7428 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7430 (eval $ac_compile) 2>&5 7431 ac_status=$? 7432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7433 test $ac_status = 0; }; then 7434 emul=elf 7435 case `$FILECMD conftest.$ac_objext` in 7436 *32-bit*) 7437 emul="${emul}32" 7438 ;; 7439 *64-bit*) 7440 emul="${emul}64" 7441 ;; 7442 esac 7443 case `$FILECMD conftest.$ac_objext` in 7444 *MSB*) 7445 emul="${emul}btsmip" 7446 ;; 7447 *LSB*) 7448 emul="${emul}ltsmip" 7449 ;; 7450 esac 7451 case `$FILECMD conftest.$ac_objext` in 7452 *N32*) 7453 emul="${emul}n32" 7454 ;; 7455 esac 7456 LD="${LD-ld} -m $emul" 7457 fi 7458 rm -rf conftest* 7459 ;; 7460 7461x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7462s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7463 # Find out what ABI is being produced by ac_compile, and set linker 7464 # options accordingly. Note that the listed cases only cover the 7465 # situations where additional linker options are needed (such as when 7466 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7467 # vice versa); the common cases where no linker options are needed do 7468 # not appear in the list. 7469 echo 'int i;' > conftest.$ac_ext 7470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7471 (eval $ac_compile) 2>&5 7472 ac_status=$? 7473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7474 test $ac_status = 0; }; then 7475 case `$FILECMD conftest.o` in 7476 *32-bit*) 7477 case $host in 7478 x86_64-*kfreebsd*-gnu) 7479 LD="${LD-ld} -m elf_i386_fbsd" 7480 ;; 7481 x86_64-*linux*) 7482 case `$FILECMD conftest.o` in 7483 *x86-64*) 7484 LD="${LD-ld} -m elf32_x86_64" 7485 ;; 7486 *) 7487 LD="${LD-ld} -m elf_i386" 7488 ;; 7489 esac 7490 ;; 7491 powerpc64le-*linux*) 7492 LD="${LD-ld} -m elf32lppclinux" 7493 ;; 7494 powerpc64-*linux*) 7495 LD="${LD-ld} -m elf32ppclinux" 7496 ;; 7497 s390x-*linux*) 7498 LD="${LD-ld} -m elf_s390" 7499 ;; 7500 sparc64-*linux*) 7501 LD="${LD-ld} -m elf32_sparc" 7502 ;; 7503 esac 7504 ;; 7505 *64-bit*) 7506 case $host in 7507 x86_64-*kfreebsd*-gnu) 7508 LD="${LD-ld} -m elf_x86_64_fbsd" 7509 ;; 7510 x86_64-*linux*) 7511 LD="${LD-ld} -m elf_x86_64" 7512 ;; 7513 powerpcle-*linux*) 7514 LD="${LD-ld} -m elf64lppc" 7515 ;; 7516 powerpc-*linux*) 7517 LD="${LD-ld} -m elf64ppc" 7518 ;; 7519 s390*-*linux*|s390*-*tpf*) 7520 LD="${LD-ld} -m elf64_s390" 7521 ;; 7522 sparc*-*linux*) 7523 LD="${LD-ld} -m elf64_sparc" 7524 ;; 7525 esac 7526 ;; 7527 esac 7528 fi 7529 rm -rf conftest* 7530 ;; 7531 7532*-*-sco3.2v5*) 7533 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7534 SAVE_CFLAGS=$CFLAGS 7535 CFLAGS="$CFLAGS -belf" 7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7537printf %s "checking whether the C compiler needs -belf... " >&6; } 7538if test ${lt_cv_cc_needs_belf+y} 7539then : 7540 printf %s "(cached) " >&6 7541else $as_nop 7542 ac_ext=c 7543ac_cpp='$CPP $CPPFLAGS' 7544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7546ac_compiler_gnu=$ac_cv_c_compiler_gnu 7547 7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7549/* end confdefs.h. */ 7550 7551int 7552main (void) 7553{ 7554 7555 ; 7556 return 0; 7557} 7558_ACEOF 7559if ac_fn_c_try_link "$LINENO" 7560then : 7561 lt_cv_cc_needs_belf=yes 7562else $as_nop 7563 lt_cv_cc_needs_belf=no 7564fi 7565rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7566 conftest$ac_exeext conftest.$ac_ext 7567 ac_ext=c 7568ac_cpp='$CPP $CPPFLAGS' 7569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7571ac_compiler_gnu=$ac_cv_c_compiler_gnu 7572 7573fi 7574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7575printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7576 if test yes != "$lt_cv_cc_needs_belf"; then 7577 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7578 CFLAGS=$SAVE_CFLAGS 7579 fi 7580 ;; 7581*-*solaris*) 7582 # Find out what ABI is being produced by ac_compile, and set linker 7583 # options accordingly. 7584 echo 'int i;' > conftest.$ac_ext 7585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7586 (eval $ac_compile) 2>&5 7587 ac_status=$? 7588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7589 test $ac_status = 0; }; then 7590 case `$FILECMD conftest.o` in 7591 *64-bit*) 7592 case $lt_cv_prog_gnu_ld in 7593 yes*) 7594 case $host in 7595 i?86-*-solaris*|x86_64-*-solaris*) 7596 LD="${LD-ld} -m elf_x86_64" 7597 ;; 7598 sparc*-*-solaris*) 7599 LD="${LD-ld} -m elf64_sparc" 7600 ;; 7601 esac 7602 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7603 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7604 LD=${LD-ld}_sol2 7605 fi 7606 ;; 7607 *) 7608 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7609 LD="${LD-ld} -64" 7610 fi 7611 ;; 7612 esac 7613 ;; 7614 esac 7615 fi 7616 rm -rf conftest* 7617 ;; 7618esac 7619 7620need_locks=$enable_libtool_lock 7621 7622if test -n "$ac_tool_prefix"; then 7623 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7624set dummy ${ac_tool_prefix}mt; ac_word=$2 7625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7626printf %s "checking for $ac_word... " >&6; } 7627if test ${ac_cv_prog_MANIFEST_TOOL+y} 7628then : 7629 printf %s "(cached) " >&6 7630else $as_nop 7631 if test -n "$MANIFEST_TOOL"; then 7632 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7633else 7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7635for as_dir in $PATH 7636do 7637 IFS=$as_save_IFS 7638 case $as_dir in #((( 7639 '') as_dir=./ ;; 7640 */) ;; 7641 *) as_dir=$as_dir/ ;; 7642 esac 7643 for ac_exec_ext in '' $ac_executable_extensions; do 7644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7645 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7647 break 2 7648 fi 7649done 7650 done 7651IFS=$as_save_IFS 7652 7653fi 7654fi 7655MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7656if test -n "$MANIFEST_TOOL"; then 7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7658printf "%s\n" "$MANIFEST_TOOL" >&6; } 7659else 7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7661printf "%s\n" "no" >&6; } 7662fi 7663 7664 7665fi 7666if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7667 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7668 # Extract the first word of "mt", so it can be a program name with args. 7669set dummy mt; ac_word=$2 7670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7671printf %s "checking for $ac_word... " >&6; } 7672if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7673then : 7674 printf %s "(cached) " >&6 7675else $as_nop 7676 if test -n "$ac_ct_MANIFEST_TOOL"; then 7677 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7678else 7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7680for as_dir in $PATH 7681do 7682 IFS=$as_save_IFS 7683 case $as_dir in #((( 7684 '') as_dir=./ ;; 7685 */) ;; 7686 *) as_dir=$as_dir/ ;; 7687 esac 7688 for ac_exec_ext in '' $ac_executable_extensions; do 7689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7690 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7692 break 2 7693 fi 7694done 7695 done 7696IFS=$as_save_IFS 7697 7698fi 7699fi 7700ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7701if test -n "$ac_ct_MANIFEST_TOOL"; then 7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7703printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7704else 7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7706printf "%s\n" "no" >&6; } 7707fi 7708 7709 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7710 MANIFEST_TOOL=":" 7711 else 7712 case $cross_compiling:$ac_tool_warned in 7713yes:) 7714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7715printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7716ac_tool_warned=yes ;; 7717esac 7718 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7719 fi 7720else 7721 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7722fi 7723 7724test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7726printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7727if test ${lt_cv_path_mainfest_tool+y} 7728then : 7729 printf %s "(cached) " >&6 7730else $as_nop 7731 lt_cv_path_mainfest_tool=no 7732 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7733 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7734 cat conftest.err >&5 7735 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7736 lt_cv_path_mainfest_tool=yes 7737 fi 7738 rm -f conftest* 7739fi 7740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7741printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7742if test yes != "$lt_cv_path_mainfest_tool"; then 7743 MANIFEST_TOOL=: 7744fi 7745 7746 7747 7748 7749 7750 7751 case $host_os in 7752 rhapsody* | darwin*) 7753 if test -n "$ac_tool_prefix"; then 7754 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7755set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7757printf %s "checking for $ac_word... " >&6; } 7758if test ${ac_cv_prog_DSYMUTIL+y} 7759then : 7760 printf %s "(cached) " >&6 7761else $as_nop 7762 if test -n "$DSYMUTIL"; then 7763 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7764else 7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7766for as_dir in $PATH 7767do 7768 IFS=$as_save_IFS 7769 case $as_dir in #((( 7770 '') as_dir=./ ;; 7771 */) ;; 7772 *) as_dir=$as_dir/ ;; 7773 esac 7774 for ac_exec_ext in '' $ac_executable_extensions; do 7775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7776 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7778 break 2 7779 fi 7780done 7781 done 7782IFS=$as_save_IFS 7783 7784fi 7785fi 7786DSYMUTIL=$ac_cv_prog_DSYMUTIL 7787if test -n "$DSYMUTIL"; then 7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7789printf "%s\n" "$DSYMUTIL" >&6; } 7790else 7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7792printf "%s\n" "no" >&6; } 7793fi 7794 7795 7796fi 7797if test -z "$ac_cv_prog_DSYMUTIL"; then 7798 ac_ct_DSYMUTIL=$DSYMUTIL 7799 # Extract the first word of "dsymutil", so it can be a program name with args. 7800set dummy dsymutil; ac_word=$2 7801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7802printf %s "checking for $ac_word... " >&6; } 7803if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7804then : 7805 printf %s "(cached) " >&6 7806else $as_nop 7807 if test -n "$ac_ct_DSYMUTIL"; then 7808 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7809else 7810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7811for as_dir in $PATH 7812do 7813 IFS=$as_save_IFS 7814 case $as_dir in #((( 7815 '') as_dir=./ ;; 7816 */) ;; 7817 *) as_dir=$as_dir/ ;; 7818 esac 7819 for ac_exec_ext in '' $ac_executable_extensions; do 7820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7821 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7823 break 2 7824 fi 7825done 7826 done 7827IFS=$as_save_IFS 7828 7829fi 7830fi 7831ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7832if test -n "$ac_ct_DSYMUTIL"; then 7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7834printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7835else 7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7837printf "%s\n" "no" >&6; } 7838fi 7839 7840 if test "x$ac_ct_DSYMUTIL" = x; then 7841 DSYMUTIL=":" 7842 else 7843 case $cross_compiling:$ac_tool_warned in 7844yes:) 7845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7846printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7847ac_tool_warned=yes ;; 7848esac 7849 DSYMUTIL=$ac_ct_DSYMUTIL 7850 fi 7851else 7852 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7853fi 7854 7855 if test -n "$ac_tool_prefix"; then 7856 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7857set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7859printf %s "checking for $ac_word... " >&6; } 7860if test ${ac_cv_prog_NMEDIT+y} 7861then : 7862 printf %s "(cached) " >&6 7863else $as_nop 7864 if test -n "$NMEDIT"; then 7865 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7866else 7867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7868for as_dir in $PATH 7869do 7870 IFS=$as_save_IFS 7871 case $as_dir in #((( 7872 '') as_dir=./ ;; 7873 */) ;; 7874 *) as_dir=$as_dir/ ;; 7875 esac 7876 for ac_exec_ext in '' $ac_executable_extensions; do 7877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7878 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7880 break 2 7881 fi 7882done 7883 done 7884IFS=$as_save_IFS 7885 7886fi 7887fi 7888NMEDIT=$ac_cv_prog_NMEDIT 7889if test -n "$NMEDIT"; then 7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7891printf "%s\n" "$NMEDIT" >&6; } 7892else 7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7894printf "%s\n" "no" >&6; } 7895fi 7896 7897 7898fi 7899if test -z "$ac_cv_prog_NMEDIT"; then 7900 ac_ct_NMEDIT=$NMEDIT 7901 # Extract the first word of "nmedit", so it can be a program name with args. 7902set dummy nmedit; ac_word=$2 7903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7904printf %s "checking for $ac_word... " >&6; } 7905if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7906then : 7907 printf %s "(cached) " >&6 7908else $as_nop 7909 if test -n "$ac_ct_NMEDIT"; then 7910 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7911else 7912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7913for as_dir in $PATH 7914do 7915 IFS=$as_save_IFS 7916 case $as_dir in #((( 7917 '') as_dir=./ ;; 7918 */) ;; 7919 *) as_dir=$as_dir/ ;; 7920 esac 7921 for ac_exec_ext in '' $ac_executable_extensions; do 7922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7923 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7925 break 2 7926 fi 7927done 7928 done 7929IFS=$as_save_IFS 7930 7931fi 7932fi 7933ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7934if test -n "$ac_ct_NMEDIT"; then 7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7936printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7937else 7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7939printf "%s\n" "no" >&6; } 7940fi 7941 7942 if test "x$ac_ct_NMEDIT" = x; then 7943 NMEDIT=":" 7944 else 7945 case $cross_compiling:$ac_tool_warned in 7946yes:) 7947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7948printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7949ac_tool_warned=yes ;; 7950esac 7951 NMEDIT=$ac_ct_NMEDIT 7952 fi 7953else 7954 NMEDIT="$ac_cv_prog_NMEDIT" 7955fi 7956 7957 if test -n "$ac_tool_prefix"; then 7958 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7959set dummy ${ac_tool_prefix}lipo; ac_word=$2 7960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7961printf %s "checking for $ac_word... " >&6; } 7962if test ${ac_cv_prog_LIPO+y} 7963then : 7964 printf %s "(cached) " >&6 7965else $as_nop 7966 if test -n "$LIPO"; then 7967 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7968else 7969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7970for as_dir in $PATH 7971do 7972 IFS=$as_save_IFS 7973 case $as_dir in #((( 7974 '') as_dir=./ ;; 7975 */) ;; 7976 *) as_dir=$as_dir/ ;; 7977 esac 7978 for ac_exec_ext in '' $ac_executable_extensions; do 7979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7980 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7982 break 2 7983 fi 7984done 7985 done 7986IFS=$as_save_IFS 7987 7988fi 7989fi 7990LIPO=$ac_cv_prog_LIPO 7991if test -n "$LIPO"; then 7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7993printf "%s\n" "$LIPO" >&6; } 7994else 7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7996printf "%s\n" "no" >&6; } 7997fi 7998 7999 8000fi 8001if test -z "$ac_cv_prog_LIPO"; then 8002 ac_ct_LIPO=$LIPO 8003 # Extract the first word of "lipo", so it can be a program name with args. 8004set dummy lipo; ac_word=$2 8005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8006printf %s "checking for $ac_word... " >&6; } 8007if test ${ac_cv_prog_ac_ct_LIPO+y} 8008then : 8009 printf %s "(cached) " >&6 8010else $as_nop 8011 if test -n "$ac_ct_LIPO"; then 8012 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8013else 8014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8015for as_dir in $PATH 8016do 8017 IFS=$as_save_IFS 8018 case $as_dir in #((( 8019 '') as_dir=./ ;; 8020 */) ;; 8021 *) as_dir=$as_dir/ ;; 8022 esac 8023 for ac_exec_ext in '' $ac_executable_extensions; do 8024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8025 ac_cv_prog_ac_ct_LIPO="lipo" 8026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8027 break 2 8028 fi 8029done 8030 done 8031IFS=$as_save_IFS 8032 8033fi 8034fi 8035ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8036if test -n "$ac_ct_LIPO"; then 8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8038printf "%s\n" "$ac_ct_LIPO" >&6; } 8039else 8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8041printf "%s\n" "no" >&6; } 8042fi 8043 8044 if test "x$ac_ct_LIPO" = x; then 8045 LIPO=":" 8046 else 8047 case $cross_compiling:$ac_tool_warned in 8048yes:) 8049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8050printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8051ac_tool_warned=yes ;; 8052esac 8053 LIPO=$ac_ct_LIPO 8054 fi 8055else 8056 LIPO="$ac_cv_prog_LIPO" 8057fi 8058 8059 if test -n "$ac_tool_prefix"; then 8060 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8061set dummy ${ac_tool_prefix}otool; ac_word=$2 8062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8063printf %s "checking for $ac_word... " >&6; } 8064if test ${ac_cv_prog_OTOOL+y} 8065then : 8066 printf %s "(cached) " >&6 8067else $as_nop 8068 if test -n "$OTOOL"; then 8069 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8070else 8071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8072for as_dir in $PATH 8073do 8074 IFS=$as_save_IFS 8075 case $as_dir in #((( 8076 '') as_dir=./ ;; 8077 */) ;; 8078 *) as_dir=$as_dir/ ;; 8079 esac 8080 for ac_exec_ext in '' $ac_executable_extensions; do 8081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8082 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8084 break 2 8085 fi 8086done 8087 done 8088IFS=$as_save_IFS 8089 8090fi 8091fi 8092OTOOL=$ac_cv_prog_OTOOL 8093if test -n "$OTOOL"; then 8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8095printf "%s\n" "$OTOOL" >&6; } 8096else 8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8098printf "%s\n" "no" >&6; } 8099fi 8100 8101 8102fi 8103if test -z "$ac_cv_prog_OTOOL"; then 8104 ac_ct_OTOOL=$OTOOL 8105 # Extract the first word of "otool", so it can be a program name with args. 8106set dummy otool; ac_word=$2 8107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8108printf %s "checking for $ac_word... " >&6; } 8109if test ${ac_cv_prog_ac_ct_OTOOL+y} 8110then : 8111 printf %s "(cached) " >&6 8112else $as_nop 8113 if test -n "$ac_ct_OTOOL"; then 8114 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8115else 8116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8117for as_dir in $PATH 8118do 8119 IFS=$as_save_IFS 8120 case $as_dir in #((( 8121 '') as_dir=./ ;; 8122 */) ;; 8123 *) as_dir=$as_dir/ ;; 8124 esac 8125 for ac_exec_ext in '' $ac_executable_extensions; do 8126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8127 ac_cv_prog_ac_ct_OTOOL="otool" 8128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8129 break 2 8130 fi 8131done 8132 done 8133IFS=$as_save_IFS 8134 8135fi 8136fi 8137ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8138if test -n "$ac_ct_OTOOL"; then 8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8140printf "%s\n" "$ac_ct_OTOOL" >&6; } 8141else 8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8143printf "%s\n" "no" >&6; } 8144fi 8145 8146 if test "x$ac_ct_OTOOL" = x; then 8147 OTOOL=":" 8148 else 8149 case $cross_compiling:$ac_tool_warned in 8150yes:) 8151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8152printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8153ac_tool_warned=yes ;; 8154esac 8155 OTOOL=$ac_ct_OTOOL 8156 fi 8157else 8158 OTOOL="$ac_cv_prog_OTOOL" 8159fi 8160 8161 if test -n "$ac_tool_prefix"; then 8162 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8163set dummy ${ac_tool_prefix}otool64; ac_word=$2 8164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8165printf %s "checking for $ac_word... " >&6; } 8166if test ${ac_cv_prog_OTOOL64+y} 8167then : 8168 printf %s "(cached) " >&6 8169else $as_nop 8170 if test -n "$OTOOL64"; then 8171 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8172else 8173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8174for as_dir in $PATH 8175do 8176 IFS=$as_save_IFS 8177 case $as_dir in #((( 8178 '') as_dir=./ ;; 8179 */) ;; 8180 *) as_dir=$as_dir/ ;; 8181 esac 8182 for ac_exec_ext in '' $ac_executable_extensions; do 8183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8184 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8186 break 2 8187 fi 8188done 8189 done 8190IFS=$as_save_IFS 8191 8192fi 8193fi 8194OTOOL64=$ac_cv_prog_OTOOL64 8195if test -n "$OTOOL64"; then 8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8197printf "%s\n" "$OTOOL64" >&6; } 8198else 8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8200printf "%s\n" "no" >&6; } 8201fi 8202 8203 8204fi 8205if test -z "$ac_cv_prog_OTOOL64"; then 8206 ac_ct_OTOOL64=$OTOOL64 8207 # Extract the first word of "otool64", so it can be a program name with args. 8208set dummy otool64; ac_word=$2 8209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8210printf %s "checking for $ac_word... " >&6; } 8211if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8212then : 8213 printf %s "(cached) " >&6 8214else $as_nop 8215 if test -n "$ac_ct_OTOOL64"; then 8216 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8217else 8218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8219for as_dir in $PATH 8220do 8221 IFS=$as_save_IFS 8222 case $as_dir in #((( 8223 '') as_dir=./ ;; 8224 */) ;; 8225 *) as_dir=$as_dir/ ;; 8226 esac 8227 for ac_exec_ext in '' $ac_executable_extensions; do 8228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8229 ac_cv_prog_ac_ct_OTOOL64="otool64" 8230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8231 break 2 8232 fi 8233done 8234 done 8235IFS=$as_save_IFS 8236 8237fi 8238fi 8239ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8240if test -n "$ac_ct_OTOOL64"; then 8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8242printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8243else 8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8245printf "%s\n" "no" >&6; } 8246fi 8247 8248 if test "x$ac_ct_OTOOL64" = x; then 8249 OTOOL64=":" 8250 else 8251 case $cross_compiling:$ac_tool_warned in 8252yes:) 8253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8254printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8255ac_tool_warned=yes ;; 8256esac 8257 OTOOL64=$ac_ct_OTOOL64 8258 fi 8259else 8260 OTOOL64="$ac_cv_prog_OTOOL64" 8261fi 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 8287 8288 8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8290printf %s "checking for -single_module linker flag... " >&6; } 8291if test ${lt_cv_apple_cc_single_mod+y} 8292then : 8293 printf %s "(cached) " >&6 8294else $as_nop 8295 lt_cv_apple_cc_single_mod=no 8296 if test -z "$LT_MULTI_MODULE"; then 8297 # By default we will add the -single_module flag. You can override 8298 # by either setting the environment variable LT_MULTI_MODULE 8299 # non-empty at configure time, or by adding -multi_module to the 8300 # link flags. 8301 rm -rf libconftest.dylib* 8302 echo "int foo(void){return 1;}" > conftest.c 8303 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8304-dynamiclib -Wl,-single_module conftest.c" >&5 8305 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8306 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8307 _lt_result=$? 8308 # If there is a non-empty error log, and "single_module" 8309 # appears in it, assume the flag caused a linker warning 8310 if test -s conftest.err && $GREP single_module conftest.err; then 8311 cat conftest.err >&5 8312 # Otherwise, if the output was created with a 0 exit code from 8313 # the compiler, it worked. 8314 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8315 lt_cv_apple_cc_single_mod=yes 8316 else 8317 cat conftest.err >&5 8318 fi 8319 rm -rf libconftest.dylib* 8320 rm -f conftest.* 8321 fi 8322fi 8323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8324printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8325 8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8327printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8328if test ${lt_cv_ld_exported_symbols_list+y} 8329then : 8330 printf %s "(cached) " >&6 8331else $as_nop 8332 lt_cv_ld_exported_symbols_list=no 8333 save_LDFLAGS=$LDFLAGS 8334 echo "_main" > conftest.sym 8335 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8337/* end confdefs.h. */ 8338 8339int 8340main (void) 8341{ 8342 8343 ; 8344 return 0; 8345} 8346_ACEOF 8347if ac_fn_c_try_link "$LINENO" 8348then : 8349 lt_cv_ld_exported_symbols_list=yes 8350else $as_nop 8351 lt_cv_ld_exported_symbols_list=no 8352fi 8353rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8354 conftest$ac_exeext conftest.$ac_ext 8355 LDFLAGS=$save_LDFLAGS 8356 8357fi 8358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8359printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8360 8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8362printf %s "checking for -force_load linker flag... " >&6; } 8363if test ${lt_cv_ld_force_load+y} 8364then : 8365 printf %s "(cached) " >&6 8366else $as_nop 8367 lt_cv_ld_force_load=no 8368 cat > conftest.c << _LT_EOF 8369int forced_loaded() { return 2;} 8370_LT_EOF 8371 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8372 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8373 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8374 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8375 echo "$RANLIB libconftest.a" >&5 8376 $RANLIB libconftest.a 2>&5 8377 cat > conftest.c << _LT_EOF 8378int main() { return 0;} 8379_LT_EOF 8380 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8381 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8382 _lt_result=$? 8383 if test -s conftest.err && $GREP force_load conftest.err; then 8384 cat conftest.err >&5 8385 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8386 lt_cv_ld_force_load=yes 8387 else 8388 cat conftest.err >&5 8389 fi 8390 rm -f conftest.err libconftest.a conftest conftest.c 8391 rm -rf conftest.dSYM 8392 8393fi 8394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8395printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8396 case $host_os in 8397 rhapsody* | darwin1.[012]) 8398 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8399 darwin1.*) 8400 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8401 darwin*) 8402 case $MACOSX_DEPLOYMENT_TARGET,$host in 8403 10.[012],*|,*powerpc*-darwin[5-8]*) 8404 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8405 *) 8406 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8407 esac 8408 ;; 8409 esac 8410 if test yes = "$lt_cv_apple_cc_single_mod"; then 8411 _lt_dar_single_mod='$single_module' 8412 fi 8413 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8414 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8415 else 8416 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8417 fi 8418 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8419 _lt_dsymutil='~$DSYMUTIL $lib || :' 8420 else 8421 _lt_dsymutil= 8422 fi 8423 ;; 8424 esac 8425 8426# func_munge_path_list VARIABLE PATH 8427# ----------------------------------- 8428# VARIABLE is name of variable containing _space_ separated list of 8429# directories to be munged by the contents of PATH, which is string 8430# having a format: 8431# "DIR[:DIR]:" 8432# string "DIR[ DIR]" will be prepended to VARIABLE 8433# ":DIR[:DIR]" 8434# string "DIR[ DIR]" will be appended to VARIABLE 8435# "DIRP[:DIRP]::[DIRA:]DIRA" 8436# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8437# "DIRA[ DIRA]" will be appended to VARIABLE 8438# "DIR[:DIR]" 8439# VARIABLE will be replaced by "DIR[ DIR]" 8440func_munge_path_list () 8441{ 8442 case x$2 in 8443 x) 8444 ;; 8445 *:) 8446 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8447 ;; 8448 x:*) 8449 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8450 ;; 8451 *::*) 8452 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8453 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8454 ;; 8455 *) 8456 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8457 ;; 8458 esac 8459} 8460 8461ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8462" 8463if test "x$ac_cv_header_dlfcn_h" = xyes 8464then : 8465 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8466 8467fi 8468 8469 8470 8471 8472 8473# Set options 8474 8475 8476 8477 enable_dlopen=no 8478 8479 8480 enable_win32_dll=no 8481 8482 8483 # Check whether --enable-shared was given. 8484if test ${enable_shared+y} 8485then : 8486 enableval=$enable_shared; p=${PACKAGE-default} 8487 case $enableval in 8488 yes) enable_shared=yes ;; 8489 no) enable_shared=no ;; 8490 *) 8491 enable_shared=no 8492 # Look at the argument we got. We use all the common list separators. 8493 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8494 for pkg in $enableval; do 8495 IFS=$lt_save_ifs 8496 if test "X$pkg" = "X$p"; then 8497 enable_shared=yes 8498 fi 8499 done 8500 IFS=$lt_save_ifs 8501 ;; 8502 esac 8503else $as_nop 8504 enable_shared=yes 8505fi 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 # Check whether --enable-static was given. 8516if test ${enable_static+y} 8517then : 8518 enableval=$enable_static; p=${PACKAGE-default} 8519 case $enableval in 8520 yes) enable_static=yes ;; 8521 no) enable_static=no ;; 8522 *) 8523 enable_static=no 8524 # Look at the argument we got. We use all the common list separators. 8525 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8526 for pkg in $enableval; do 8527 IFS=$lt_save_ifs 8528 if test "X$pkg" = "X$p"; then 8529 enable_static=yes 8530 fi 8531 done 8532 IFS=$lt_save_ifs 8533 ;; 8534 esac 8535else $as_nop 8536 enable_static=yes 8537fi 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548# Check whether --with-pic was given. 8549if test ${with_pic+y} 8550then : 8551 withval=$with_pic; lt_p=${PACKAGE-default} 8552 case $withval in 8553 yes|no) pic_mode=$withval ;; 8554 *) 8555 pic_mode=default 8556 # Look at the argument we got. We use all the common list separators. 8557 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8558 for lt_pkg in $withval; do 8559 IFS=$lt_save_ifs 8560 if test "X$lt_pkg" = "X$lt_p"; then 8561 pic_mode=yes 8562 fi 8563 done 8564 IFS=$lt_save_ifs 8565 ;; 8566 esac 8567else $as_nop 8568 pic_mode=default 8569fi 8570 8571 8572 8573 8574 8575 8576 8577 8578 # Check whether --enable-fast-install was given. 8579if test ${enable_fast_install+y} 8580then : 8581 enableval=$enable_fast_install; p=${PACKAGE-default} 8582 case $enableval in 8583 yes) enable_fast_install=yes ;; 8584 no) enable_fast_install=no ;; 8585 *) 8586 enable_fast_install=no 8587 # Look at the argument we got. We use all the common list separators. 8588 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8589 for pkg in $enableval; do 8590 IFS=$lt_save_ifs 8591 if test "X$pkg" = "X$p"; then 8592 enable_fast_install=yes 8593 fi 8594 done 8595 IFS=$lt_save_ifs 8596 ;; 8597 esac 8598else $as_nop 8599 enable_fast_install=yes 8600fi 8601 8602 8603 8604 8605 8606 8607 8608 8609 shared_archive_member_spec= 8610case $host,$enable_shared in 8611power*-*-aix[5-9]*,yes) 8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8613printf %s "checking which variant of shared library versioning to provide... " >&6; } 8614 8615# Check whether --with-aix-soname was given. 8616if test ${with_aix_soname+y} 8617then : 8618 withval=$with_aix_soname; case $withval in 8619 aix|svr4|both) 8620 ;; 8621 *) 8622 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8623 ;; 8624 esac 8625 lt_cv_with_aix_soname=$with_aix_soname 8626else $as_nop 8627 if test ${lt_cv_with_aix_soname+y} 8628then : 8629 printf %s "(cached) " >&6 8630else $as_nop 8631 lt_cv_with_aix_soname=aix 8632fi 8633 8634 with_aix_soname=$lt_cv_with_aix_soname 8635fi 8636 8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8638printf "%s\n" "$with_aix_soname" >&6; } 8639 if test aix != "$with_aix_soname"; then 8640 # For the AIX way of multilib, we name the shared archive member 8641 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8642 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8643 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8644 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8645 if test 64 = "${OBJECT_MODE-32}"; then 8646 shared_archive_member_spec=shr_64 8647 else 8648 shared_archive_member_spec=shr 8649 fi 8650 fi 8651 ;; 8652*) 8653 with_aix_soname=aix 8654 ;; 8655esac 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666# This can be used to rebuild libtool when needed 8667LIBTOOL_DEPS=$ltmain 8668 8669# Always use our own libtool. 8670LIBTOOL='$(SHELL) $(top_builddir)/libtool' 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 8698 8699 8700 8701test -z "$LN_S" && LN_S="ln -s" 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716if test -n "${ZSH_VERSION+set}"; then 8717 setopt NO_GLOB_SUBST 8718fi 8719 8720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8721printf %s "checking for objdir... " >&6; } 8722if test ${lt_cv_objdir+y} 8723then : 8724 printf %s "(cached) " >&6 8725else $as_nop 8726 rm -f .libs 2>/dev/null 8727mkdir .libs 2>/dev/null 8728if test -d .libs; then 8729 lt_cv_objdir=.libs 8730else 8731 # MS-DOS does not allow filenames that begin with a dot. 8732 lt_cv_objdir=_libs 8733fi 8734rmdir .libs 2>/dev/null 8735fi 8736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8737printf "%s\n" "$lt_cv_objdir" >&6; } 8738objdir=$lt_cv_objdir 8739 8740 8741 8742 8743 8744printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8745 8746 8747 8748 8749case $host_os in 8750aix3*) 8751 # AIX sometimes has problems with the GCC collect2 program. For some 8752 # reason, if we set the COLLECT_NAMES environment variable, the problems 8753 # vanish in a puff of smoke. 8754 if test set != "${COLLECT_NAMES+set}"; then 8755 COLLECT_NAMES= 8756 export COLLECT_NAMES 8757 fi 8758 ;; 8759esac 8760 8761# Global variables: 8762ofile=libtool 8763can_build_shared=yes 8764 8765# All known linkers require a '.a' archive for static linking (except MSVC and 8766# ICC, which need '.lib'). 8767libext=a 8768 8769with_gnu_ld=$lt_cv_prog_gnu_ld 8770 8771old_CC=$CC 8772old_CFLAGS=$CFLAGS 8773 8774# Set sane defaults for various variables 8775test -z "$CC" && CC=cc 8776test -z "$LTCC" && LTCC=$CC 8777test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8778test -z "$LD" && LD=ld 8779test -z "$ac_objext" && ac_objext=o 8780 8781func_cc_basename $compiler 8782cc_basename=$func_cc_basename_result 8783 8784 8785# Only perform the check for file, if the check method requires it 8786test -z "$MAGIC_CMD" && MAGIC_CMD=file 8787case $deplibs_check_method in 8788file_magic*) 8789 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8791printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8792if test ${lt_cv_path_MAGIC_CMD+y} 8793then : 8794 printf %s "(cached) " >&6 8795else $as_nop 8796 case $MAGIC_CMD in 8797[\\/*] | ?:[\\/]*) 8798 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8799 ;; 8800*) 8801 lt_save_MAGIC_CMD=$MAGIC_CMD 8802 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8803 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8804 for ac_dir in $ac_dummy; do 8805 IFS=$lt_save_ifs 8806 test -z "$ac_dir" && ac_dir=. 8807 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8808 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8809 if test -n "$file_magic_test_file"; then 8810 case $deplibs_check_method in 8811 "file_magic "*) 8812 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8813 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8815 $EGREP "$file_magic_regex" > /dev/null; then 8816 : 8817 else 8818 cat <<_LT_EOF 1>&2 8819 8820*** Warning: the command libtool uses to detect shared libraries, 8821*** $file_magic_cmd, produces output that libtool cannot recognize. 8822*** The result is that libtool may fail to recognize shared libraries 8823*** as such. This will affect the creation of libtool libraries that 8824*** depend on shared libraries, but programs linked with such libtool 8825*** libraries will work regardless of this problem. Nevertheless, you 8826*** may want to report the problem to your system manager and/or to 8827*** bug-libtool@gnu.org 8828 8829_LT_EOF 8830 fi ;; 8831 esac 8832 fi 8833 break 8834 fi 8835 done 8836 IFS=$lt_save_ifs 8837 MAGIC_CMD=$lt_save_MAGIC_CMD 8838 ;; 8839esac 8840fi 8841 8842MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8843if test -n "$MAGIC_CMD"; then 8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8845printf "%s\n" "$MAGIC_CMD" >&6; } 8846else 8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8848printf "%s\n" "no" >&6; } 8849fi 8850 8851 8852 8853 8854 8855if test -z "$lt_cv_path_MAGIC_CMD"; then 8856 if test -n "$ac_tool_prefix"; then 8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8858printf %s "checking for file... " >&6; } 8859if test ${lt_cv_path_MAGIC_CMD+y} 8860then : 8861 printf %s "(cached) " >&6 8862else $as_nop 8863 case $MAGIC_CMD in 8864[\\/*] | ?:[\\/]*) 8865 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8866 ;; 8867*) 8868 lt_save_MAGIC_CMD=$MAGIC_CMD 8869 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8870 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8871 for ac_dir in $ac_dummy; do 8872 IFS=$lt_save_ifs 8873 test -z "$ac_dir" && ac_dir=. 8874 if test -f "$ac_dir/file"; then 8875 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8876 if test -n "$file_magic_test_file"; then 8877 case $deplibs_check_method in 8878 "file_magic "*) 8879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8880 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8882 $EGREP "$file_magic_regex" > /dev/null; then 8883 : 8884 else 8885 cat <<_LT_EOF 1>&2 8886 8887*** Warning: the command libtool uses to detect shared libraries, 8888*** $file_magic_cmd, produces output that libtool cannot recognize. 8889*** The result is that libtool may fail to recognize shared libraries 8890*** as such. This will affect the creation of libtool libraries that 8891*** depend on shared libraries, but programs linked with such libtool 8892*** libraries will work regardless of this problem. Nevertheless, you 8893*** may want to report the problem to your system manager and/or to 8894*** bug-libtool@gnu.org 8895 8896_LT_EOF 8897 fi ;; 8898 esac 8899 fi 8900 break 8901 fi 8902 done 8903 IFS=$lt_save_ifs 8904 MAGIC_CMD=$lt_save_MAGIC_CMD 8905 ;; 8906esac 8907fi 8908 8909MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8910if test -n "$MAGIC_CMD"; then 8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8912printf "%s\n" "$MAGIC_CMD" >&6; } 8913else 8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8915printf "%s\n" "no" >&6; } 8916fi 8917 8918 8919 else 8920 MAGIC_CMD=: 8921 fi 8922fi 8923 8924 fi 8925 ;; 8926esac 8927 8928# Use C for the default configuration in the libtool script 8929 8930lt_save_CC=$CC 8931ac_ext=c 8932ac_cpp='$CPP $CPPFLAGS' 8933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8935ac_compiler_gnu=$ac_cv_c_compiler_gnu 8936 8937 8938# Source file extension for C test sources. 8939ac_ext=c 8940 8941# Object file extension for compiled C test sources. 8942objext=o 8943objext=$objext 8944 8945# Code to be used in simple compile tests 8946lt_simple_compile_test_code="int some_variable = 0;" 8947 8948# Code to be used in simple link tests 8949lt_simple_link_test_code='int main(){return(0);}' 8950 8951 8952 8953 8954 8955 8956 8957# If no C compiler was specified, use CC. 8958LTCC=${LTCC-"$CC"} 8959 8960# If no C compiler flags were specified, use CFLAGS. 8961LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8962 8963# Allow CC to be a program name with arguments. 8964compiler=$CC 8965 8966# Save the default compiler, since it gets overwritten when the other 8967# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8968compiler_DEFAULT=$CC 8969 8970# save warnings/boilerplate of simple test code 8971ac_outfile=conftest.$ac_objext 8972echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8973eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8974_lt_compiler_boilerplate=`cat conftest.err` 8975$RM conftest* 8976 8977ac_outfile=conftest.$ac_objext 8978echo "$lt_simple_link_test_code" >conftest.$ac_ext 8979eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8980_lt_linker_boilerplate=`cat conftest.err` 8981$RM -r conftest* 8982 8983 8984## CAVEAT EMPTOR: 8985## There is no encapsulation within the following macros, do not change 8986## the running order or otherwise move them around unless you know exactly 8987## what you are doing... 8988if test -n "$compiler"; then 8989 8990lt_prog_compiler_no_builtin_flag= 8991 8992if test yes = "$GCC"; then 8993 case $cc_basename in 8994 nvcc*) 8995 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8996 *) 8997 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8998 esac 8999 9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9001printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9002if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9003then : 9004 printf %s "(cached) " >&6 9005else $as_nop 9006 lt_cv_prog_compiler_rtti_exceptions=no 9007 ac_outfile=conftest.$ac_objext 9008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9009 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9010 # Insert the option either (1) after the last *FLAGS variable, or 9011 # (2) before a word containing "conftest.", or (3) at the end. 9012 # Note that $ac_compile itself does not contain backslashes and begins 9013 # with a dollar sign (not a hyphen), so the echo should work correctly. 9014 # The option is referenced via a variable to avoid confusing sed. 9015 lt_compile=`echo "$ac_compile" | $SED \ 9016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9018 -e 's:$: $lt_compiler_flag:'` 9019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9020 (eval "$lt_compile" 2>conftest.err) 9021 ac_status=$? 9022 cat conftest.err >&5 9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9024 if (exit $ac_status) && test -s "$ac_outfile"; then 9025 # The compiler can only warn and ignore the option if not recognized 9026 # So say no if there are warnings other than the usual output. 9027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9030 lt_cv_prog_compiler_rtti_exceptions=yes 9031 fi 9032 fi 9033 $RM conftest* 9034 9035fi 9036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9037printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9038 9039if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9040 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9041else 9042 : 9043fi 9044 9045fi 9046 9047 9048 9049 9050 9051 9052 lt_prog_compiler_wl= 9053lt_prog_compiler_pic= 9054lt_prog_compiler_static= 9055 9056 9057 if test yes = "$GCC"; then 9058 lt_prog_compiler_wl='-Wl,' 9059 lt_prog_compiler_static='-static' 9060 9061 case $host_os in 9062 aix*) 9063 # All AIX code is PIC. 9064 if test ia64 = "$host_cpu"; then 9065 # AIX 5 now supports IA64 processor 9066 lt_prog_compiler_static='-Bstatic' 9067 fi 9068 lt_prog_compiler_pic='-fPIC' 9069 ;; 9070 9071 amigaos*) 9072 case $host_cpu in 9073 powerpc) 9074 # see comment about AmigaOS4 .so support 9075 lt_prog_compiler_pic='-fPIC' 9076 ;; 9077 m68k) 9078 # FIXME: we need at least 68020 code to build shared libraries, but 9079 # adding the '-m68020' flag to GCC prevents building anything better, 9080 # like '-m68040'. 9081 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9082 ;; 9083 esac 9084 ;; 9085 9086 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9087 # PIC is the default for these OSes. 9088 ;; 9089 9090 mingw* | cygwin* | pw32* | os2* | cegcc*) 9091 # This hack is so that the source file can tell whether it is being 9092 # built for inclusion in a dll (and should export symbols for example). 9093 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9094 # (--disable-auto-import) libraries 9095 lt_prog_compiler_pic='-DDLL_EXPORT' 9096 case $host_os in 9097 os2*) 9098 lt_prog_compiler_static='$wl-static' 9099 ;; 9100 esac 9101 ;; 9102 9103 darwin* | rhapsody*) 9104 # PIC is the default on this platform 9105 # Common symbols not allowed in MH_DYLIB files 9106 lt_prog_compiler_pic='-fno-common' 9107 ;; 9108 9109 haiku*) 9110 # PIC is the default for Haiku. 9111 # The "-static" flag exists, but is broken. 9112 lt_prog_compiler_static= 9113 ;; 9114 9115 hpux*) 9116 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9117 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9118 # sets the default TLS model and affects inlining. 9119 case $host_cpu in 9120 hppa*64*) 9121 # +Z the default 9122 ;; 9123 *) 9124 lt_prog_compiler_pic='-fPIC' 9125 ;; 9126 esac 9127 ;; 9128 9129 interix[3-9]*) 9130 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9131 # Instead, we relocate shared libraries at runtime. 9132 ;; 9133 9134 msdosdjgpp*) 9135 # Just because we use GCC doesn't mean we suddenly get shared libraries 9136 # on systems that don't support them. 9137 lt_prog_compiler_can_build_shared=no 9138 enable_shared=no 9139 ;; 9140 9141 *nto* | *qnx*) 9142 # QNX uses GNU C++, but need to define -shared option too, otherwise 9143 # it will coredump. 9144 lt_prog_compiler_pic='-fPIC -shared' 9145 ;; 9146 9147 sysv4*MP*) 9148 if test -d /usr/nec; then 9149 lt_prog_compiler_pic=-Kconform_pic 9150 fi 9151 ;; 9152 9153 *) 9154 lt_prog_compiler_pic='-fPIC' 9155 ;; 9156 esac 9157 9158 case $cc_basename in 9159 nvcc*) # Cuda Compiler Driver 2.2 9160 lt_prog_compiler_wl='-Xlinker ' 9161 if test -n "$lt_prog_compiler_pic"; then 9162 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9163 fi 9164 ;; 9165 esac 9166 else 9167 # PORTME Check for flag to pass linker flags through the system compiler. 9168 case $host_os in 9169 aix*) 9170 lt_prog_compiler_wl='-Wl,' 9171 if test ia64 = "$host_cpu"; then 9172 # AIX 5 now supports IA64 processor 9173 lt_prog_compiler_static='-Bstatic' 9174 else 9175 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9176 fi 9177 ;; 9178 9179 darwin* | rhapsody*) 9180 # PIC is the default on this platform 9181 # Common symbols not allowed in MH_DYLIB files 9182 lt_prog_compiler_pic='-fno-common' 9183 case $cc_basename in 9184 nagfor*) 9185 # NAG Fortran compiler 9186 lt_prog_compiler_wl='-Wl,-Wl,,' 9187 lt_prog_compiler_pic='-PIC' 9188 lt_prog_compiler_static='-Bstatic' 9189 ;; 9190 esac 9191 ;; 9192 9193 mingw* | cygwin* | pw32* | os2* | cegcc*) 9194 # This hack is so that the source file can tell whether it is being 9195 # built for inclusion in a dll (and should export symbols for example). 9196 lt_prog_compiler_pic='-DDLL_EXPORT' 9197 case $host_os in 9198 os2*) 9199 lt_prog_compiler_static='$wl-static' 9200 ;; 9201 esac 9202 ;; 9203 9204 hpux9* | hpux10* | hpux11*) 9205 lt_prog_compiler_wl='-Wl,' 9206 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9207 # not for PA HP-UX. 9208 case $host_cpu in 9209 hppa*64*|ia64*) 9210 # +Z the default 9211 ;; 9212 *) 9213 lt_prog_compiler_pic='+Z' 9214 ;; 9215 esac 9216 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9217 lt_prog_compiler_static='$wl-a ${wl}archive' 9218 ;; 9219 9220 irix5* | irix6* | nonstopux*) 9221 lt_prog_compiler_wl='-Wl,' 9222 # PIC (with -KPIC) is the default. 9223 lt_prog_compiler_static='-non_shared' 9224 ;; 9225 9226 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9227 case $cc_basename in 9228 # old Intel for x86_64, which still supported -KPIC. 9229 ecc*) 9230 lt_prog_compiler_wl='-Wl,' 9231 lt_prog_compiler_pic='-KPIC' 9232 lt_prog_compiler_static='-static' 9233 ;; 9234 # icc used to be incompatible with GCC. 9235 # ICC 10 doesn't accept -KPIC any more. 9236 icc* | ifort*) 9237 lt_prog_compiler_wl='-Wl,' 9238 lt_prog_compiler_pic='-fPIC' 9239 lt_prog_compiler_static='-static' 9240 ;; 9241 # Lahey Fortran 8.1. 9242 lf95*) 9243 lt_prog_compiler_wl='-Wl,' 9244 lt_prog_compiler_pic='--shared' 9245 lt_prog_compiler_static='--static' 9246 ;; 9247 nagfor*) 9248 # NAG Fortran compiler 9249 lt_prog_compiler_wl='-Wl,-Wl,,' 9250 lt_prog_compiler_pic='-PIC' 9251 lt_prog_compiler_static='-Bstatic' 9252 ;; 9253 tcc*) 9254 # Fabrice Bellard et al's Tiny C Compiler 9255 lt_prog_compiler_wl='-Wl,' 9256 lt_prog_compiler_pic='-fPIC' 9257 lt_prog_compiler_static='-static' 9258 ;; 9259 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9260 # Portland Group compilers (*not* the Pentium gcc compiler, 9261 # which looks to be a dead project) 9262 lt_prog_compiler_wl='-Wl,' 9263 lt_prog_compiler_pic='-fpic' 9264 lt_prog_compiler_static='-Bstatic' 9265 ;; 9266 ccc*) 9267 lt_prog_compiler_wl='-Wl,' 9268 # All Alpha code is PIC. 9269 lt_prog_compiler_static='-non_shared' 9270 ;; 9271 xl* | bgxl* | bgf* | mpixl*) 9272 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9273 lt_prog_compiler_wl='-Wl,' 9274 lt_prog_compiler_pic='-qpic' 9275 lt_prog_compiler_static='-qstaticlink' 9276 ;; 9277 *) 9278 case `$CC -V 2>&1 | $SED 5q` in 9279 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9280 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9281 lt_prog_compiler_pic='-KPIC' 9282 lt_prog_compiler_static='-Bstatic' 9283 lt_prog_compiler_wl='' 9284 ;; 9285 *Sun\ F* | *Sun*Fortran*) 9286 lt_prog_compiler_pic='-KPIC' 9287 lt_prog_compiler_static='-Bstatic' 9288 lt_prog_compiler_wl='-Qoption ld ' 9289 ;; 9290 *Sun\ C*) 9291 # Sun C 5.9 9292 lt_prog_compiler_pic='-KPIC' 9293 lt_prog_compiler_static='-Bstatic' 9294 lt_prog_compiler_wl='-Wl,' 9295 ;; 9296 *Intel*\ [CF]*Compiler*) 9297 lt_prog_compiler_wl='-Wl,' 9298 lt_prog_compiler_pic='-fPIC' 9299 lt_prog_compiler_static='-static' 9300 ;; 9301 *Portland\ Group*) 9302 lt_prog_compiler_wl='-Wl,' 9303 lt_prog_compiler_pic='-fpic' 9304 lt_prog_compiler_static='-Bstatic' 9305 ;; 9306 esac 9307 ;; 9308 esac 9309 ;; 9310 9311 newsos6) 9312 lt_prog_compiler_pic='-KPIC' 9313 lt_prog_compiler_static='-Bstatic' 9314 ;; 9315 9316 *nto* | *qnx*) 9317 # QNX uses GNU C++, but need to define -shared option too, otherwise 9318 # it will coredump. 9319 lt_prog_compiler_pic='-fPIC -shared' 9320 ;; 9321 9322 osf3* | osf4* | osf5*) 9323 lt_prog_compiler_wl='-Wl,' 9324 # All OSF/1 code is PIC. 9325 lt_prog_compiler_static='-non_shared' 9326 ;; 9327 9328 rdos*) 9329 lt_prog_compiler_static='-non_shared' 9330 ;; 9331 9332 solaris*) 9333 lt_prog_compiler_pic='-KPIC' 9334 lt_prog_compiler_static='-Bstatic' 9335 case $cc_basename in 9336 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9337 lt_prog_compiler_wl='-Qoption ld ';; 9338 *) 9339 lt_prog_compiler_wl='-Wl,';; 9340 esac 9341 ;; 9342 9343 sunos4*) 9344 lt_prog_compiler_wl='-Qoption ld ' 9345 lt_prog_compiler_pic='-PIC' 9346 lt_prog_compiler_static='-Bstatic' 9347 ;; 9348 9349 sysv4 | sysv4.2uw2* | sysv4.3*) 9350 lt_prog_compiler_wl='-Wl,' 9351 lt_prog_compiler_pic='-KPIC' 9352 lt_prog_compiler_static='-Bstatic' 9353 ;; 9354 9355 sysv4*MP*) 9356 if test -d /usr/nec; then 9357 lt_prog_compiler_pic='-Kconform_pic' 9358 lt_prog_compiler_static='-Bstatic' 9359 fi 9360 ;; 9361 9362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9363 lt_prog_compiler_wl='-Wl,' 9364 lt_prog_compiler_pic='-KPIC' 9365 lt_prog_compiler_static='-Bstatic' 9366 ;; 9367 9368 unicos*) 9369 lt_prog_compiler_wl='-Wl,' 9370 lt_prog_compiler_can_build_shared=no 9371 ;; 9372 9373 uts4*) 9374 lt_prog_compiler_pic='-pic' 9375 lt_prog_compiler_static='-Bstatic' 9376 ;; 9377 9378 *) 9379 lt_prog_compiler_can_build_shared=no 9380 ;; 9381 esac 9382 fi 9383 9384case $host_os in 9385 # For platforms that do not support PIC, -DPIC is meaningless: 9386 *djgpp*) 9387 lt_prog_compiler_pic= 9388 ;; 9389 *) 9390 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9391 ;; 9392esac 9393 9394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9395printf %s "checking for $compiler option to produce PIC... " >&6; } 9396if test ${lt_cv_prog_compiler_pic+y} 9397then : 9398 printf %s "(cached) " >&6 9399else $as_nop 9400 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9401fi 9402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9403printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9404lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9405 9406# 9407# Check to make sure the PIC flag actually works. 9408# 9409if test -n "$lt_prog_compiler_pic"; then 9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9411printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9412if test ${lt_cv_prog_compiler_pic_works+y} 9413then : 9414 printf %s "(cached) " >&6 9415else $as_nop 9416 lt_cv_prog_compiler_pic_works=no 9417 ac_outfile=conftest.$ac_objext 9418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9419 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9420 # Insert the option either (1) after the last *FLAGS variable, or 9421 # (2) before a word containing "conftest.", or (3) at the end. 9422 # Note that $ac_compile itself does not contain backslashes and begins 9423 # with a dollar sign (not a hyphen), so the echo should work correctly. 9424 # The option is referenced via a variable to avoid confusing sed. 9425 lt_compile=`echo "$ac_compile" | $SED \ 9426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9428 -e 's:$: $lt_compiler_flag:'` 9429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9430 (eval "$lt_compile" 2>conftest.err) 9431 ac_status=$? 9432 cat conftest.err >&5 9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9434 if (exit $ac_status) && test -s "$ac_outfile"; then 9435 # The compiler can only warn and ignore the option if not recognized 9436 # So say no if there are warnings other than the usual output. 9437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9440 lt_cv_prog_compiler_pic_works=yes 9441 fi 9442 fi 9443 $RM conftest* 9444 9445fi 9446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9447printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9448 9449if test yes = "$lt_cv_prog_compiler_pic_works"; then 9450 case $lt_prog_compiler_pic in 9451 "" | " "*) ;; 9452 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9453 esac 9454else 9455 lt_prog_compiler_pic= 9456 lt_prog_compiler_can_build_shared=no 9457fi 9458 9459fi 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471# 9472# Check to make sure the static flag actually works. 9473# 9474wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9476printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9477if test ${lt_cv_prog_compiler_static_works+y} 9478then : 9479 printf %s "(cached) " >&6 9480else $as_nop 9481 lt_cv_prog_compiler_static_works=no 9482 save_LDFLAGS=$LDFLAGS 9483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9484 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9486 # The linker can only warn and ignore the option if not recognized 9487 # So say no if there are warnings 9488 if test -s conftest.err; then 9489 # Append any errors to the config.log. 9490 cat conftest.err 1>&5 9491 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9493 if diff conftest.exp conftest.er2 >/dev/null; then 9494 lt_cv_prog_compiler_static_works=yes 9495 fi 9496 else 9497 lt_cv_prog_compiler_static_works=yes 9498 fi 9499 fi 9500 $RM -r conftest* 9501 LDFLAGS=$save_LDFLAGS 9502 9503fi 9504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9505printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9506 9507if test yes = "$lt_cv_prog_compiler_static_works"; then 9508 : 9509else 9510 lt_prog_compiler_static= 9511fi 9512 9513 9514 9515 9516 9517 9518 9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9520printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9521if test ${lt_cv_prog_compiler_c_o+y} 9522then : 9523 printf %s "(cached) " >&6 9524else $as_nop 9525 lt_cv_prog_compiler_c_o=no 9526 $RM -r conftest 2>/dev/null 9527 mkdir conftest 9528 cd conftest 9529 mkdir out 9530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9531 9532 lt_compiler_flag="-o out/conftest2.$ac_objext" 9533 # Insert the option either (1) after the last *FLAGS variable, or 9534 # (2) before a word containing "conftest.", or (3) at the end. 9535 # Note that $ac_compile itself does not contain backslashes and begins 9536 # with a dollar sign (not a hyphen), so the echo should work correctly. 9537 lt_compile=`echo "$ac_compile" | $SED \ 9538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9540 -e 's:$: $lt_compiler_flag:'` 9541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9542 (eval "$lt_compile" 2>out/conftest.err) 9543 ac_status=$? 9544 cat out/conftest.err >&5 9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9546 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9547 then 9548 # The compiler can only warn and ignore the option if not recognized 9549 # So say no if there are warnings 9550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9553 lt_cv_prog_compiler_c_o=yes 9554 fi 9555 fi 9556 chmod u+w . 2>&5 9557 $RM conftest* 9558 # SGI C++ compiler will create directory out/ii_files/ for 9559 # template instantiation 9560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9561 $RM out/* && rmdir out 9562 cd .. 9563 $RM -r conftest 9564 $RM conftest* 9565 9566fi 9567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9568printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9569 9570 9571 9572 9573 9574 9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9576printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9577if test ${lt_cv_prog_compiler_c_o+y} 9578then : 9579 printf %s "(cached) " >&6 9580else $as_nop 9581 lt_cv_prog_compiler_c_o=no 9582 $RM -r conftest 2>/dev/null 9583 mkdir conftest 9584 cd conftest 9585 mkdir out 9586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9587 9588 lt_compiler_flag="-o out/conftest2.$ac_objext" 9589 # Insert the option either (1) after the last *FLAGS variable, or 9590 # (2) before a word containing "conftest.", or (3) at the end. 9591 # Note that $ac_compile itself does not contain backslashes and begins 9592 # with a dollar sign (not a hyphen), so the echo should work correctly. 9593 lt_compile=`echo "$ac_compile" | $SED \ 9594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9596 -e 's:$: $lt_compiler_flag:'` 9597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9598 (eval "$lt_compile" 2>out/conftest.err) 9599 ac_status=$? 9600 cat out/conftest.err >&5 9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9603 then 9604 # The compiler can only warn and ignore the option if not recognized 9605 # So say no if there are warnings 9606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9607 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9608 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9609 lt_cv_prog_compiler_c_o=yes 9610 fi 9611 fi 9612 chmod u+w . 2>&5 9613 $RM conftest* 9614 # SGI C++ compiler will create directory out/ii_files/ for 9615 # template instantiation 9616 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9617 $RM out/* && rmdir out 9618 cd .. 9619 $RM -r conftest 9620 $RM conftest* 9621 9622fi 9623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9624printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9625 9626 9627 9628 9629hard_links=nottested 9630if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9631 # do not overwrite the value of need_locks provided by the user 9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9633printf %s "checking if we can lock with hard links... " >&6; } 9634 hard_links=yes 9635 $RM conftest* 9636 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9637 touch conftest.a 9638 ln conftest.a conftest.b 2>&5 || hard_links=no 9639 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9641printf "%s\n" "$hard_links" >&6; } 9642 if test no = "$hard_links"; then 9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9644printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9645 need_locks=warn 9646 fi 9647else 9648 need_locks=no 9649fi 9650 9651 9652 9653 9654 9655 9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9657printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9658 9659 runpath_var= 9660 allow_undefined_flag= 9661 always_export_symbols=no 9662 archive_cmds= 9663 archive_expsym_cmds= 9664 compiler_needs_object=no 9665 enable_shared_with_static_runtimes=no 9666 export_dynamic_flag_spec= 9667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9668 hardcode_automatic=no 9669 hardcode_direct=no 9670 hardcode_direct_absolute=no 9671 hardcode_libdir_flag_spec= 9672 hardcode_libdir_separator= 9673 hardcode_minus_L=no 9674 hardcode_shlibpath_var=unsupported 9675 inherit_rpath=no 9676 link_all_deplibs=unknown 9677 module_cmds= 9678 module_expsym_cmds= 9679 old_archive_from_new_cmds= 9680 old_archive_from_expsyms_cmds= 9681 thread_safe_flag_spec= 9682 whole_archive_flag_spec= 9683 # include_expsyms should be a list of space-separated symbols to be *always* 9684 # included in the symbol list 9685 include_expsyms= 9686 # exclude_expsyms can be an extended regexp of symbols to exclude 9687 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9688 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9689 # as well as any symbol that contains 'd'. 9690 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9691 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9692 # platforms (ab)use it in PIC code, but their linkers get confused if 9693 # the symbol is explicitly referenced. Since portable code cannot 9694 # rely on this symbol name, it's probably fine to never include it in 9695 # preloaded symbol tables. 9696 # Exclude shared library initialization/finalization symbols. 9697 extract_expsyms_cmds= 9698 9699 case $host_os in 9700 cygwin* | mingw* | pw32* | cegcc*) 9701 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9702 # When not using gcc, we currently assume that we are using 9703 # Microsoft Visual C++ or Intel C++ Compiler. 9704 if test yes != "$GCC"; then 9705 with_gnu_ld=no 9706 fi 9707 ;; 9708 interix*) 9709 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9710 with_gnu_ld=yes 9711 ;; 9712 openbsd* | bitrig*) 9713 with_gnu_ld=no 9714 ;; 9715 esac 9716 9717 ld_shlibs=yes 9718 9719 # On some targets, GNU ld is compatible enough with the native linker 9720 # that we're better off using the native interface for both. 9721 lt_use_gnu_ld_interface=no 9722 if test yes = "$with_gnu_ld"; then 9723 case $host_os in 9724 aix*) 9725 # The AIX port of GNU ld has always aspired to compatibility 9726 # with the native linker. However, as the warning in the GNU ld 9727 # block says, versions before 2.19.5* couldn't really create working 9728 # shared libraries, regardless of the interface used. 9729 case `$LD -v 2>&1` in 9730 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9731 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9732 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9733 *) 9734 lt_use_gnu_ld_interface=yes 9735 ;; 9736 esac 9737 ;; 9738 *) 9739 lt_use_gnu_ld_interface=yes 9740 ;; 9741 esac 9742 fi 9743 9744 if test yes = "$lt_use_gnu_ld_interface"; then 9745 # If archive_cmds runs LD, not CC, wlarc should be empty 9746 wlarc='$wl' 9747 9748 # Set some defaults for GNU ld with shared library support. These 9749 # are reset later if shared libraries are not supported. Putting them 9750 # here allows them to be overridden if necessary. 9751 runpath_var=LD_RUN_PATH 9752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9753 export_dynamic_flag_spec='$wl--export-dynamic' 9754 # ancient GNU ld didn't support --whole-archive et. al. 9755 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9756 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9757 else 9758 whole_archive_flag_spec= 9759 fi 9760 supports_anon_versioning=no 9761 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9762 *GNU\ gold*) supports_anon_versioning=yes ;; 9763 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9766 *\ 2.11.*) ;; # other 2.11 versions 9767 *) supports_anon_versioning=yes ;; 9768 esac 9769 9770 # See if GNU ld supports shared libraries. 9771 case $host_os in 9772 aix[3-9]*) 9773 # On AIX/PPC, the GNU linker is very broken 9774 if test ia64 != "$host_cpu"; then 9775 ld_shlibs=no 9776 cat <<_LT_EOF 1>&2 9777 9778*** Warning: the GNU linker, at least up to release 2.19, is reported 9779*** to be unable to reliably create shared libraries on AIX. 9780*** Therefore, libtool is disabling shared libraries support. If you 9781*** really care for shared libraries, you may want to install binutils 9782*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9783*** You will then need to restart the configuration process. 9784 9785_LT_EOF 9786 fi 9787 ;; 9788 9789 amigaos*) 9790 case $host_cpu in 9791 powerpc) 9792 # see comment about AmigaOS4 .so support 9793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9794 archive_expsym_cmds='' 9795 ;; 9796 m68k) 9797 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)' 9798 hardcode_libdir_flag_spec='-L$libdir' 9799 hardcode_minus_L=yes 9800 ;; 9801 esac 9802 ;; 9803 9804 beos*) 9805 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9806 allow_undefined_flag=unsupported 9807 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9808 # support --undefined. This deserves some investigation. FIXME 9809 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9810 else 9811 ld_shlibs=no 9812 fi 9813 ;; 9814 9815 cygwin* | mingw* | pw32* | cegcc*) 9816 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9817 # as there is no search path for DLLs. 9818 hardcode_libdir_flag_spec='-L$libdir' 9819 export_dynamic_flag_spec='$wl--export-all-symbols' 9820 allow_undefined_flag=unsupported 9821 always_export_symbols=no 9822 enable_shared_with_static_runtimes=yes 9823 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' 9824 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9825 9826 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9828 # If the export-symbols file already is a .def file, use it as 9829 # is; otherwise, prepend EXPORTS... 9830 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9831 cp $export_symbols $output_objdir/$soname.def; 9832 else 9833 echo EXPORTS > $output_objdir/$soname.def; 9834 cat $export_symbols >> $output_objdir/$soname.def; 9835 fi~ 9836 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9837 else 9838 ld_shlibs=no 9839 fi 9840 ;; 9841 9842 haiku*) 9843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9844 link_all_deplibs=yes 9845 ;; 9846 9847 os2*) 9848 hardcode_libdir_flag_spec='-L$libdir' 9849 hardcode_minus_L=yes 9850 allow_undefined_flag=unsupported 9851 shrext_cmds=.dll 9852 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9853 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9854 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9855 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9856 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9857 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9858 emximp -o $lib $output_objdir/$libname.def' 9859 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9860 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9861 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9862 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9863 prefix_cmds="$SED"~ 9864 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9865 prefix_cmds="$prefix_cmds -e 1d"; 9866 fi~ 9867 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9868 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9869 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9870 emximp -o $lib $output_objdir/$libname.def' 9871 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9872 enable_shared_with_static_runtimes=yes 9873 file_list_spec='@' 9874 ;; 9875 9876 interix[3-9]*) 9877 hardcode_direct=no 9878 hardcode_shlibpath_var=no 9879 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9880 export_dynamic_flag_spec='$wl-E' 9881 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9882 # Instead, shared libraries are loaded at an image base (0x10000000 by 9883 # default) and relocated if they conflict, which is a slow very memory 9884 # consuming and fragmenting process. To avoid this, we pick a random, 9885 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9886 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9888 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' 9889 ;; 9890 9891 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9892 tmp_diet=no 9893 if test linux-dietlibc = "$host_os"; then 9894 case $cc_basename in 9895 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9896 esac 9897 fi 9898 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9899 && test no = "$tmp_diet" 9900 then 9901 tmp_addflag=' $pic_flag' 9902 tmp_sharedflag='-shared' 9903 case $cc_basename,$host_cpu in 9904 pgcc*) # Portland Group C compiler 9905 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' 9906 tmp_addflag=' $pic_flag' 9907 ;; 9908 pgf77* | pgf90* | pgf95* | pgfortran*) 9909 # Portland Group f77 and f90 compilers 9910 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' 9911 tmp_addflag=' $pic_flag -Mnomain' ;; 9912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9913 tmp_addflag=' -i_dynamic' ;; 9914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9915 tmp_addflag=' -i_dynamic -nofor_main' ;; 9916 ifc* | ifort*) # Intel Fortran compiler 9917 tmp_addflag=' -nofor_main' ;; 9918 lf95*) # Lahey Fortran 8.1 9919 whole_archive_flag_spec= 9920 tmp_sharedflag='--shared' ;; 9921 nagfor*) # NAGFOR 5.3 9922 tmp_sharedflag='-Wl,-shared' ;; 9923 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9924 tmp_sharedflag='-qmkshrobj' 9925 tmp_addflag= ;; 9926 nvcc*) # Cuda Compiler Driver 2.2 9927 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' 9928 compiler_needs_object=yes 9929 ;; 9930 esac 9931 case `$CC -V 2>&1 | $SED 5q` in 9932 *Sun\ C*) # Sun C 5.9 9933 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' 9934 compiler_needs_object=yes 9935 tmp_sharedflag='-G' ;; 9936 *Sun\ F*) # Sun Fortran 8.3 9937 tmp_sharedflag='-G' ;; 9938 esac 9939 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9940 9941 if test yes = "$supports_anon_versioning"; then 9942 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9943 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9944 echo "local: *; };" >> $output_objdir/$libname.ver~ 9945 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9946 fi 9947 9948 case $cc_basename in 9949 tcc*) 9950 export_dynamic_flag_spec='-rdynamic' 9951 ;; 9952 xlf* | bgf* | bgxlf* | mpixlf*) 9953 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9954 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9955 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9956 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9957 if test yes = "$supports_anon_versioning"; then 9958 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9959 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9960 echo "local: *; };" >> $output_objdir/$libname.ver~ 9961 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9962 fi 9963 ;; 9964 esac 9965 else 9966 ld_shlibs=no 9967 fi 9968 ;; 9969 9970 netbsd*) 9971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9972 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9973 wlarc= 9974 else 9975 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9976 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9977 fi 9978 ;; 9979 9980 solaris*) 9981 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9982 ld_shlibs=no 9983 cat <<_LT_EOF 1>&2 9984 9985*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9986*** create shared libraries on Solaris systems. Therefore, libtool 9987*** is disabling shared libraries support. We urge you to upgrade GNU 9988*** binutils to release 2.9.1 or newer. Another option is to modify 9989*** your PATH or compiler configuration so that the native linker is 9990*** used, and then restart. 9991 9992_LT_EOF 9993 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9994 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9995 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9996 else 9997 ld_shlibs=no 9998 fi 9999 ;; 10000 10001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10002 case `$LD -v 2>&1` in 10003 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10004 ld_shlibs=no 10005 cat <<_LT_EOF 1>&2 10006 10007*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10008*** reliably create shared libraries on SCO systems. Therefore, libtool 10009*** is disabling shared libraries support. We urge you to upgrade GNU 10010*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10011*** your PATH or compiler configuration so that the native linker is 10012*** used, and then restart. 10013 10014_LT_EOF 10015 ;; 10016 *) 10017 # For security reasons, it is highly recommended that you always 10018 # use absolute paths for naming shared libraries, and exclude the 10019 # DT_RUNPATH tag from executables and libraries. But doing so 10020 # requires that you compile everything twice, which is a pain. 10021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10022 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10025 else 10026 ld_shlibs=no 10027 fi 10028 ;; 10029 esac 10030 ;; 10031 10032 sunos4*) 10033 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10034 wlarc= 10035 hardcode_direct=yes 10036 hardcode_shlibpath_var=no 10037 ;; 10038 10039 *) 10040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10041 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10042 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10043 else 10044 ld_shlibs=no 10045 fi 10046 ;; 10047 esac 10048 10049 if test no = "$ld_shlibs"; then 10050 runpath_var= 10051 hardcode_libdir_flag_spec= 10052 export_dynamic_flag_spec= 10053 whole_archive_flag_spec= 10054 fi 10055 else 10056 # PORTME fill in a description of your system's linker (not GNU ld) 10057 case $host_os in 10058 aix3*) 10059 allow_undefined_flag=unsupported 10060 always_export_symbols=yes 10061 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' 10062 # Note: this linker hardcodes the directories in LIBPATH if there 10063 # are no directories specified by -L. 10064 hardcode_minus_L=yes 10065 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10066 # Neither direct hardcoding nor static linking is supported with a 10067 # broken collect2. 10068 hardcode_direct=unsupported 10069 fi 10070 ;; 10071 10072 aix[4-9]*) 10073 if test ia64 = "$host_cpu"; then 10074 # On IA64, the linker does run time linking by default, so we don't 10075 # have to do anything special. 10076 aix_use_runtimelinking=no 10077 exp_sym_flag='-Bexport' 10078 no_entry_flag= 10079 else 10080 # If we're using GNU nm, then we don't want the "-C" option. 10081 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10082 # Without the "-l" option, or with the "-B" option, AIX nm treats 10083 # weak defined symbols like other global defined symbols, whereas 10084 # GNU nm marks them as "W". 10085 # While the 'weak' keyword is ignored in the Export File, we need 10086 # it in the Import File for the 'aix-soname' feature, so we have 10087 # to replace the "-B" option with "-P" for AIX nm. 10088 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10089 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' 10090 else 10091 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' 10092 fi 10093 aix_use_runtimelinking=no 10094 10095 # Test if we are trying to use run time linking or normal 10096 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10097 # have runtime linking enabled, and use it for executables. 10098 # For shared libraries, we enable/disable runtime linking 10099 # depending on the kind of the shared library created - 10100 # when "with_aix_soname,aix_use_runtimelinking" is: 10101 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10102 # "aix,yes" lib.so shared, rtl:yes, for executables 10103 # lib.a static archive 10104 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10105 # lib.a(lib.so.V) shared, rtl:no, for executables 10106 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10107 # lib.a(lib.so.V) shared, rtl:no 10108 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10109 # lib.a static archive 10110 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10111 for ld_flag in $LDFLAGS; do 10112 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10113 aix_use_runtimelinking=yes 10114 break 10115 fi 10116 done 10117 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10118 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10119 # so we don't have lib.a shared libs to link our executables. 10120 # We have to force runtime linking in this case. 10121 aix_use_runtimelinking=yes 10122 LDFLAGS="$LDFLAGS -Wl,-brtl" 10123 fi 10124 ;; 10125 esac 10126 10127 exp_sym_flag='-bexport' 10128 no_entry_flag='-bnoentry' 10129 fi 10130 10131 # When large executables or shared objects are built, AIX ld can 10132 # have problems creating the table of contents. If linking a library 10133 # or program results in "error TOC overflow" add -mminimal-toc to 10134 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10135 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10136 10137 archive_cmds='' 10138 hardcode_direct=yes 10139 hardcode_direct_absolute=yes 10140 hardcode_libdir_separator=':' 10141 link_all_deplibs=yes 10142 file_list_spec='$wl-f,' 10143 case $with_aix_soname,$aix_use_runtimelinking in 10144 aix,*) ;; # traditional, no import file 10145 svr4,* | *,yes) # use import file 10146 # The Import File defines what to hardcode. 10147 hardcode_direct=no 10148 hardcode_direct_absolute=no 10149 ;; 10150 esac 10151 10152 if test yes = "$GCC"; then 10153 case $host_os in aix4.[012]|aix4.[012].*) 10154 # We only want to do this on AIX 4.2 and lower, the check 10155 # below for broken collect2 doesn't work under 4.3+ 10156 collect2name=`$CC -print-prog-name=collect2` 10157 if test -f "$collect2name" && 10158 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10159 then 10160 # We have reworked collect2 10161 : 10162 else 10163 # We have old collect2 10164 hardcode_direct=unsupported 10165 # It fails to find uninstalled libraries when the uninstalled 10166 # path is not listed in the libpath. Setting hardcode_minus_L 10167 # to unsupported forces relinking 10168 hardcode_minus_L=yes 10169 hardcode_libdir_flag_spec='-L$libdir' 10170 hardcode_libdir_separator= 10171 fi 10172 ;; 10173 esac 10174 shared_flag='-shared' 10175 if test yes = "$aix_use_runtimelinking"; then 10176 shared_flag="$shared_flag "'$wl-G' 10177 fi 10178 # Need to ensure runtime linking is disabled for the traditional 10179 # shared library, or the linker may eventually find shared libraries 10180 # /with/ Import File - we do not want to mix them. 10181 shared_flag_aix='-shared' 10182 shared_flag_svr4='-shared $wl-G' 10183 else 10184 # not using gcc 10185 if test ia64 = "$host_cpu"; then 10186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10187 # chokes on -Wl,-G. The following line is correct: 10188 shared_flag='-G' 10189 else 10190 if test yes = "$aix_use_runtimelinking"; then 10191 shared_flag='$wl-G' 10192 else 10193 shared_flag='$wl-bM:SRE' 10194 fi 10195 shared_flag_aix='$wl-bM:SRE' 10196 shared_flag_svr4='$wl-G' 10197 fi 10198 fi 10199 10200 export_dynamic_flag_spec='$wl-bexpall' 10201 # It seems that -bexpall does not export symbols beginning with 10202 # underscore (_), so it is better to generate a list of symbols to export. 10203 always_export_symbols=yes 10204 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10205 # Warning - without using the other runtime loading flags (-brtl), 10206 # -berok will link without error, but may produce a broken library. 10207 allow_undefined_flag='-berok' 10208 # Determine the default libpath from the value encoded in an 10209 # empty executable. 10210 if test set = "${lt_cv_aix_libpath+set}"; then 10211 aix_libpath=$lt_cv_aix_libpath 10212else 10213 if test ${lt_cv_aix_libpath_+y} 10214then : 10215 printf %s "(cached) " >&6 10216else $as_nop 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218/* end confdefs.h. */ 10219 10220int 10221main (void) 10222{ 10223 10224 ; 10225 return 0; 10226} 10227_ACEOF 10228if ac_fn_c_try_link "$LINENO" 10229then : 10230 10231 lt_aix_libpath_sed=' 10232 /Import File Strings/,/^$/ { 10233 /^0/ { 10234 s/^0 *\([^ ]*\) *$/\1/ 10235 p 10236 } 10237 }' 10238 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10239 # Check for a 64-bit object if we didn't find anything. 10240 if test -z "$lt_cv_aix_libpath_"; then 10241 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10242 fi 10243fi 10244rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10245 conftest$ac_exeext conftest.$ac_ext 10246 if test -z "$lt_cv_aix_libpath_"; then 10247 lt_cv_aix_libpath_=/usr/lib:/lib 10248 fi 10249 10250fi 10251 10252 aix_libpath=$lt_cv_aix_libpath_ 10253fi 10254 10255 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10256 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 10257 else 10258 if test ia64 = "$host_cpu"; then 10259 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10260 allow_undefined_flag="-z nodefs" 10261 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" 10262 else 10263 # Determine the default libpath from the value encoded in an 10264 # empty executable. 10265 if test set = "${lt_cv_aix_libpath+set}"; then 10266 aix_libpath=$lt_cv_aix_libpath 10267else 10268 if test ${lt_cv_aix_libpath_+y} 10269then : 10270 printf %s "(cached) " >&6 10271else $as_nop 10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10273/* end confdefs.h. */ 10274 10275int 10276main (void) 10277{ 10278 10279 ; 10280 return 0; 10281} 10282_ACEOF 10283if ac_fn_c_try_link "$LINENO" 10284then : 10285 10286 lt_aix_libpath_sed=' 10287 /Import File Strings/,/^$/ { 10288 /^0/ { 10289 s/^0 *\([^ ]*\) *$/\1/ 10290 p 10291 } 10292 }' 10293 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10294 # Check for a 64-bit object if we didn't find anything. 10295 if test -z "$lt_cv_aix_libpath_"; then 10296 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10297 fi 10298fi 10299rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10300 conftest$ac_exeext conftest.$ac_ext 10301 if test -z "$lt_cv_aix_libpath_"; then 10302 lt_cv_aix_libpath_=/usr/lib:/lib 10303 fi 10304 10305fi 10306 10307 aix_libpath=$lt_cv_aix_libpath_ 10308fi 10309 10310 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10311 # Warning - without using the other run time loading flags, 10312 # -berok will link without error, but may produce a broken library. 10313 no_undefined_flag=' $wl-bernotok' 10314 allow_undefined_flag=' $wl-berok' 10315 if test yes = "$with_gnu_ld"; then 10316 # We only use this code for GNU lds that support --whole-archive. 10317 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10318 else 10319 # Exported symbols can be pulled into shared objects from archives 10320 whole_archive_flag_spec='$convenience' 10321 fi 10322 archive_cmds_need_lc=yes 10323 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10324 # -brtl affects multiple linker settings, -berok does not and is overridden later 10325 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10326 if test svr4 != "$with_aix_soname"; then 10327 # This is similar to how AIX traditionally builds its shared libraries. 10328 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' 10329 fi 10330 if test aix != "$with_aix_soname"; then 10331 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' 10332 else 10333 # used by -dlpreopen to get the symbols 10334 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10335 fi 10336 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10337 fi 10338 fi 10339 ;; 10340 10341 amigaos*) 10342 case $host_cpu in 10343 powerpc) 10344 # see comment about AmigaOS4 .so support 10345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10346 archive_expsym_cmds='' 10347 ;; 10348 m68k) 10349 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)' 10350 hardcode_libdir_flag_spec='-L$libdir' 10351 hardcode_minus_L=yes 10352 ;; 10353 esac 10354 ;; 10355 10356 bsdi[45]*) 10357 export_dynamic_flag_spec=-rdynamic 10358 ;; 10359 10360 cygwin* | mingw* | pw32* | cegcc*) 10361 # When not using gcc, we currently assume that we are using 10362 # Microsoft Visual C++ or Intel C++ Compiler. 10363 # hardcode_libdir_flag_spec is actually meaningless, as there is 10364 # no search path for DLLs. 10365 case $cc_basename in 10366 cl* | icl*) 10367 # Native MSVC or ICC 10368 hardcode_libdir_flag_spec=' ' 10369 allow_undefined_flag=unsupported 10370 always_export_symbols=yes 10371 file_list_spec='@' 10372 # Tell ltmain to make .lib files, not .a files. 10373 libext=lib 10374 # Tell ltmain to make .dll files, not .so files. 10375 shrext_cmds=.dll 10376 # FIXME: Setting linknames here is a bad hack. 10377 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10378 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10379 cp "$export_symbols" "$output_objdir/$soname.def"; 10380 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10381 else 10382 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10383 fi~ 10384 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10385 linknames=' 10386 # The linker will not automatically build a static lib if we build a DLL. 10387 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10388 enable_shared_with_static_runtimes=yes 10389 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10390 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10391 # Don't use ranlib 10392 old_postinstall_cmds='chmod 644 $oldlib' 10393 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10394 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10395 case $lt_outputfile in 10396 *.exe|*.EXE) ;; 10397 *) 10398 lt_outputfile=$lt_outputfile.exe 10399 lt_tool_outputfile=$lt_tool_outputfile.exe 10400 ;; 10401 esac~ 10402 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10403 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10404 $RM "$lt_outputfile.manifest"; 10405 fi' 10406 ;; 10407 *) 10408 # Assume MSVC and ICC wrapper 10409 hardcode_libdir_flag_spec=' ' 10410 allow_undefined_flag=unsupported 10411 # Tell ltmain to make .lib files, not .a files. 10412 libext=lib 10413 # Tell ltmain to make .dll files, not .so files. 10414 shrext_cmds=.dll 10415 # FIXME: Setting linknames here is a bad hack. 10416 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10417 # The linker will automatically build a .lib file if we build a DLL. 10418 old_archive_from_new_cmds='true' 10419 # FIXME: Should let the user specify the lib program. 10420 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10421 enable_shared_with_static_runtimes=yes 10422 ;; 10423 esac 10424 ;; 10425 10426 darwin* | rhapsody*) 10427 10428 10429 archive_cmds_need_lc=no 10430 hardcode_direct=no 10431 hardcode_automatic=yes 10432 hardcode_shlibpath_var=unsupported 10433 if test yes = "$lt_cv_ld_force_load"; then 10434 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\"`' 10435 10436 else 10437 whole_archive_flag_spec='' 10438 fi 10439 link_all_deplibs=yes 10440 allow_undefined_flag=$_lt_dar_allow_undefined 10441 case $cc_basename in 10442 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10443 *) _lt_dar_can_shared=$GCC ;; 10444 esac 10445 if test yes = "$_lt_dar_can_shared"; then 10446 output_verbose_link_cmd=func_echo_all 10447 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10448 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10449 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" 10450 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" 10451 10452 else 10453 ld_shlibs=no 10454 fi 10455 10456 ;; 10457 10458 dgux*) 10459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10460 hardcode_libdir_flag_spec='-L$libdir' 10461 hardcode_shlibpath_var=no 10462 ;; 10463 10464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10465 # support. Future versions do this automatically, but an explicit c++rt0.o 10466 # does not break anything, and helps significantly (at the cost of a little 10467 # extra space). 10468 freebsd2.2*) 10469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10470 hardcode_libdir_flag_spec='-R$libdir' 10471 hardcode_direct=yes 10472 hardcode_shlibpath_var=no 10473 ;; 10474 10475 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10476 freebsd2.*) 10477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10478 hardcode_direct=yes 10479 hardcode_minus_L=yes 10480 hardcode_shlibpath_var=no 10481 ;; 10482 10483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10484 freebsd* | dragonfly* | midnightbsd*) 10485 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10486 hardcode_libdir_flag_spec='-R$libdir' 10487 hardcode_direct=yes 10488 hardcode_shlibpath_var=no 10489 ;; 10490 10491 hpux9*) 10492 if test yes = "$GCC"; then 10493 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' 10494 else 10495 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' 10496 fi 10497 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10498 hardcode_libdir_separator=: 10499 hardcode_direct=yes 10500 10501 # hardcode_minus_L: Not really in the search PATH, 10502 # but as the default location of the library. 10503 hardcode_minus_L=yes 10504 export_dynamic_flag_spec='$wl-E' 10505 ;; 10506 10507 hpux10*) 10508 if test yes,no = "$GCC,$with_gnu_ld"; then 10509 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10510 else 10511 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10512 fi 10513 if test no = "$with_gnu_ld"; then 10514 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10515 hardcode_libdir_separator=: 10516 hardcode_direct=yes 10517 hardcode_direct_absolute=yes 10518 export_dynamic_flag_spec='$wl-E' 10519 # hardcode_minus_L: Not really in the search PATH, 10520 # but as the default location of the library. 10521 hardcode_minus_L=yes 10522 fi 10523 ;; 10524 10525 hpux11*) 10526 if test yes,no = "$GCC,$with_gnu_ld"; then 10527 case $host_cpu in 10528 hppa*64*) 10529 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10530 ;; 10531 ia64*) 10532 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10533 ;; 10534 *) 10535 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10536 ;; 10537 esac 10538 else 10539 case $host_cpu in 10540 hppa*64*) 10541 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10542 ;; 10543 ia64*) 10544 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10545 ;; 10546 *) 10547 10548 # Older versions of the 11.00 compiler do not understand -b yet 10549 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10551printf %s "checking if $CC understands -b... " >&6; } 10552if test ${lt_cv_prog_compiler__b+y} 10553then : 10554 printf %s "(cached) " >&6 10555else $as_nop 10556 lt_cv_prog_compiler__b=no 10557 save_LDFLAGS=$LDFLAGS 10558 LDFLAGS="$LDFLAGS -b" 10559 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10561 # The linker can only warn and ignore the option if not recognized 10562 # So say no if there are warnings 10563 if test -s conftest.err; then 10564 # Append any errors to the config.log. 10565 cat conftest.err 1>&5 10566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10568 if diff conftest.exp conftest.er2 >/dev/null; then 10569 lt_cv_prog_compiler__b=yes 10570 fi 10571 else 10572 lt_cv_prog_compiler__b=yes 10573 fi 10574 fi 10575 $RM -r conftest* 10576 LDFLAGS=$save_LDFLAGS 10577 10578fi 10579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10580printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10581 10582if test yes = "$lt_cv_prog_compiler__b"; then 10583 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10584else 10585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10586fi 10587 10588 ;; 10589 esac 10590 fi 10591 if test no = "$with_gnu_ld"; then 10592 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10593 hardcode_libdir_separator=: 10594 10595 case $host_cpu in 10596 hppa*64*|ia64*) 10597 hardcode_direct=no 10598 hardcode_shlibpath_var=no 10599 ;; 10600 *) 10601 hardcode_direct=yes 10602 hardcode_direct_absolute=yes 10603 export_dynamic_flag_spec='$wl-E' 10604 10605 # hardcode_minus_L: Not really in the search PATH, 10606 # but as the default location of the library. 10607 hardcode_minus_L=yes 10608 ;; 10609 esac 10610 fi 10611 ;; 10612 10613 irix5* | irix6* | nonstopux*) 10614 if test yes = "$GCC"; then 10615 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' 10616 # Try to use the -exported_symbol ld option, if it does not 10617 # work, assume that -exports_file does not work either and 10618 # implicitly export all symbols. 10619 # This should be the same for all languages, so no per-tag cache variable. 10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10621printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10622if test ${lt_cv_irix_exported_symbol+y} 10623then : 10624 printf %s "(cached) " >&6 10625else $as_nop 10626 save_LDFLAGS=$LDFLAGS 10627 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10629/* end confdefs.h. */ 10630int foo (void) { return 0; } 10631_ACEOF 10632if ac_fn_c_try_link "$LINENO" 10633then : 10634 lt_cv_irix_exported_symbol=yes 10635else $as_nop 10636 lt_cv_irix_exported_symbol=no 10637fi 10638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10639 conftest$ac_exeext conftest.$ac_ext 10640 LDFLAGS=$save_LDFLAGS 10641fi 10642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10643printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10644 if test yes = "$lt_cv_irix_exported_symbol"; then 10645 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' 10646 fi 10647 else 10648 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' 10649 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' 10650 fi 10651 archive_cmds_need_lc='no' 10652 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10653 hardcode_libdir_separator=: 10654 inherit_rpath=yes 10655 link_all_deplibs=yes 10656 ;; 10657 10658 linux*) 10659 case $cc_basename in 10660 tcc*) 10661 # Fabrice Bellard et al's Tiny C Compiler 10662 ld_shlibs=yes 10663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10664 ;; 10665 esac 10666 ;; 10667 10668 netbsd*) 10669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10671 else 10672 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10673 fi 10674 hardcode_libdir_flag_spec='-R$libdir' 10675 hardcode_direct=yes 10676 hardcode_shlibpath_var=no 10677 ;; 10678 10679 newsos6) 10680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10681 hardcode_direct=yes 10682 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10683 hardcode_libdir_separator=: 10684 hardcode_shlibpath_var=no 10685 ;; 10686 10687 *nto* | *qnx*) 10688 ;; 10689 10690 openbsd* | bitrig*) 10691 if test -f /usr/libexec/ld.so; then 10692 hardcode_direct=yes 10693 hardcode_shlibpath_var=no 10694 hardcode_direct_absolute=yes 10695 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10696 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10697 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10698 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10699 export_dynamic_flag_spec='$wl-E' 10700 else 10701 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10702 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10703 fi 10704 else 10705 ld_shlibs=no 10706 fi 10707 ;; 10708 10709 os2*) 10710 hardcode_libdir_flag_spec='-L$libdir' 10711 hardcode_minus_L=yes 10712 allow_undefined_flag=unsupported 10713 shrext_cmds=.dll 10714 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10715 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10716 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10717 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10718 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10719 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10720 emximp -o $lib $output_objdir/$libname.def' 10721 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10722 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10723 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10724 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10725 prefix_cmds="$SED"~ 10726 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10727 prefix_cmds="$prefix_cmds -e 1d"; 10728 fi~ 10729 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10730 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10731 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10732 emximp -o $lib $output_objdir/$libname.def' 10733 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10734 enable_shared_with_static_runtimes=yes 10735 file_list_spec='@' 10736 ;; 10737 10738 osf3*) 10739 if test yes = "$GCC"; then 10740 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10741 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' 10742 else 10743 allow_undefined_flag=' -expect_unresolved \*' 10744 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' 10745 fi 10746 archive_cmds_need_lc='no' 10747 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10748 hardcode_libdir_separator=: 10749 ;; 10750 10751 osf4* | osf5*) # as osf3* with the addition of -msym flag 10752 if test yes = "$GCC"; then 10753 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10754 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' 10755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10756 else 10757 allow_undefined_flag=' -expect_unresolved \*' 10758 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' 10759 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~ 10760 $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' 10761 10762 # Both c and cxx compiler support -rpath directly 10763 hardcode_libdir_flag_spec='-rpath $libdir' 10764 fi 10765 archive_cmds_need_lc='no' 10766 hardcode_libdir_separator=: 10767 ;; 10768 10769 solaris*) 10770 no_undefined_flag=' -z defs' 10771 if test yes = "$GCC"; then 10772 wlarc='$wl' 10773 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10774 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10775 $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' 10776 else 10777 case `$CC -V 2>&1` in 10778 *"Compilers 5.0"*) 10779 wlarc='' 10780 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10781 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10782 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10783 ;; 10784 *) 10785 wlarc='$wl' 10786 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10787 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10788 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10789 ;; 10790 esac 10791 fi 10792 hardcode_libdir_flag_spec='-R$libdir' 10793 hardcode_shlibpath_var=no 10794 case $host_os in 10795 solaris2.[0-5] | solaris2.[0-5].*) ;; 10796 *) 10797 # The compiler driver will combine and reorder linker options, 10798 # but understands '-z linker_flag'. GCC discards it without '$wl', 10799 # but is careful enough not to reorder. 10800 # Supported since Solaris 2.6 (maybe 2.5.1?) 10801 if test yes = "$GCC"; then 10802 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10803 else 10804 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10805 fi 10806 ;; 10807 esac 10808 link_all_deplibs=yes 10809 ;; 10810 10811 sunos4*) 10812 if test sequent = "$host_vendor"; then 10813 # Use $CC to link under sequent, because it throws in some extra .o 10814 # files that make .init and .fini sections work. 10815 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10816 else 10817 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10818 fi 10819 hardcode_libdir_flag_spec='-L$libdir' 10820 hardcode_direct=yes 10821 hardcode_minus_L=yes 10822 hardcode_shlibpath_var=no 10823 ;; 10824 10825 sysv4) 10826 case $host_vendor in 10827 sni) 10828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10829 hardcode_direct=yes # is this really true??? 10830 ;; 10831 siemens) 10832 ## LD is ld it makes a PLAMLIB 10833 ## CC just makes a GrossModule. 10834 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10835 reload_cmds='$CC -r -o $output$reload_objs' 10836 hardcode_direct=no 10837 ;; 10838 motorola) 10839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10840 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10841 ;; 10842 esac 10843 runpath_var='LD_RUN_PATH' 10844 hardcode_shlibpath_var=no 10845 ;; 10846 10847 sysv4.3*) 10848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10849 hardcode_shlibpath_var=no 10850 export_dynamic_flag_spec='-Bexport' 10851 ;; 10852 10853 sysv4*MP*) 10854 if test -d /usr/nec; then 10855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10856 hardcode_shlibpath_var=no 10857 runpath_var=LD_RUN_PATH 10858 hardcode_runpath_var=yes 10859 ld_shlibs=yes 10860 fi 10861 ;; 10862 10863 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10864 no_undefined_flag='$wl-z,text' 10865 archive_cmds_need_lc=no 10866 hardcode_shlibpath_var=no 10867 runpath_var='LD_RUN_PATH' 10868 10869 if test yes = "$GCC"; then 10870 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10871 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10872 else 10873 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10874 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10875 fi 10876 ;; 10877 10878 sysv5* | sco3.2v5* | sco5v6*) 10879 # Note: We CANNOT use -z defs as we might desire, because we do not 10880 # link with -lc, and that would cause any symbols used from libc to 10881 # always be unresolved, which means just about no library would 10882 # ever link correctly. If we're not using GNU ld we use -z text 10883 # though, which does catch some bad symbols but isn't as heavy-handed 10884 # as -z defs. 10885 no_undefined_flag='$wl-z,text' 10886 allow_undefined_flag='$wl-z,nodefs' 10887 archive_cmds_need_lc=no 10888 hardcode_shlibpath_var=no 10889 hardcode_libdir_flag_spec='$wl-R,$libdir' 10890 hardcode_libdir_separator=':' 10891 link_all_deplibs=yes 10892 export_dynamic_flag_spec='$wl-Bexport' 10893 runpath_var='LD_RUN_PATH' 10894 10895 if test yes = "$GCC"; then 10896 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10897 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10898 else 10899 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10900 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10901 fi 10902 ;; 10903 10904 uts4*) 10905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10906 hardcode_libdir_flag_spec='-L$libdir' 10907 hardcode_shlibpath_var=no 10908 ;; 10909 10910 *) 10911 ld_shlibs=no 10912 ;; 10913 esac 10914 10915 if test sni = "$host_vendor"; then 10916 case $host in 10917 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10918 export_dynamic_flag_spec='$wl-Blargedynsym' 10919 ;; 10920 esac 10921 fi 10922 fi 10923 10924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10925printf "%s\n" "$ld_shlibs" >&6; } 10926test no = "$ld_shlibs" && can_build_shared=no 10927 10928with_gnu_ld=$with_gnu_ld 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944# 10945# Do we need to explicitly link libc? 10946# 10947case "x$archive_cmds_need_lc" in 10948x|xyes) 10949 # Assume -lc should be added 10950 archive_cmds_need_lc=yes 10951 10952 if test yes,yes = "$GCC,$enable_shared"; then 10953 case $archive_cmds in 10954 *'~'*) 10955 # FIXME: we may have to deal with multi-command sequences. 10956 ;; 10957 '$CC '*) 10958 # Test whether the compiler implicitly links with -lc since on some 10959 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10960 # to ld, don't add -lc before -lgcc. 10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10962printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10963if test ${lt_cv_archive_cmds_need_lc+y} 10964then : 10965 printf %s "(cached) " >&6 10966else $as_nop 10967 $RM conftest* 10968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10969 10970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10971 (eval $ac_compile) 2>&5 10972 ac_status=$? 10973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10974 test $ac_status = 0; } 2>conftest.err; then 10975 soname=conftest 10976 lib=conftest 10977 libobjs=conftest.$ac_objext 10978 deplibs= 10979 wl=$lt_prog_compiler_wl 10980 pic_flag=$lt_prog_compiler_pic 10981 compiler_flags=-v 10982 linker_flags=-v 10983 verstring= 10984 output_objdir=. 10985 libname=conftest 10986 lt_save_allow_undefined_flag=$allow_undefined_flag 10987 allow_undefined_flag= 10988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10989 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10990 ac_status=$? 10991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10992 test $ac_status = 0; } 10993 then 10994 lt_cv_archive_cmds_need_lc=no 10995 else 10996 lt_cv_archive_cmds_need_lc=yes 10997 fi 10998 allow_undefined_flag=$lt_save_allow_undefined_flag 10999 else 11000 cat conftest.err 1>&5 11001 fi 11002 $RM conftest* 11003 11004fi 11005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11006printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11007 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11008 ;; 11009 esac 11010 fi 11011 ;; 11012esac 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 11163 11164 11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11166printf %s "checking dynamic linker characteristics... " >&6; } 11167 11168if test yes = "$GCC"; then 11169 case $host_os in 11170 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11171 *) lt_awk_arg='/^libraries:/' ;; 11172 esac 11173 case $host_os in 11174 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11175 *) lt_sed_strip_eq='s|=/|/|g' ;; 11176 esac 11177 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11178 case $lt_search_path_spec in 11179 *\;*) 11180 # if the path contains ";" then we assume it to be the separator 11181 # otherwise default to the standard path separator (i.e. ":") - it is 11182 # assumed that no part of a normal pathname contains ";" but that should 11183 # okay in the real world where ";" in dirpaths is itself problematic. 11184 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11185 ;; 11186 *) 11187 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11188 ;; 11189 esac 11190 # Ok, now we have the path, separated by spaces, we can step through it 11191 # and add multilib dir if necessary... 11192 lt_tmp_lt_search_path_spec= 11193 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11194 # ...but if some path component already ends with the multilib dir we assume 11195 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11196 case "$lt_multi_os_dir; $lt_search_path_spec " in 11197 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11198 lt_multi_os_dir= 11199 ;; 11200 esac 11201 for lt_sys_path in $lt_search_path_spec; do 11202 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11203 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11204 elif test -n "$lt_multi_os_dir"; then 11205 test -d "$lt_sys_path" && \ 11206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11207 fi 11208 done 11209 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11210BEGIN {RS = " "; FS = "/|\n";} { 11211 lt_foo = ""; 11212 lt_count = 0; 11213 for (lt_i = NF; lt_i > 0; lt_i--) { 11214 if ($lt_i != "" && $lt_i != ".") { 11215 if ($lt_i == "..") { 11216 lt_count++; 11217 } else { 11218 if (lt_count == 0) { 11219 lt_foo = "/" $lt_i lt_foo; 11220 } else { 11221 lt_count--; 11222 } 11223 } 11224 } 11225 } 11226 if (lt_foo != "") { lt_freq[lt_foo]++; } 11227 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11228}'` 11229 # AWK program above erroneously prepends '/' to C:/dos/paths 11230 # for these hosts. 11231 case $host_os in 11232 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11233 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11234 esac 11235 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11236else 11237 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11238fi 11239library_names_spec= 11240libname_spec='lib$name' 11241soname_spec= 11242shrext_cmds=.so 11243postinstall_cmds= 11244postuninstall_cmds= 11245finish_cmds= 11246finish_eval= 11247shlibpath_var= 11248shlibpath_overrides_runpath=unknown 11249version_type=none 11250dynamic_linker="$host_os ld.so" 11251sys_lib_dlsearch_path_spec="/lib /usr/lib" 11252need_lib_prefix=unknown 11253hardcode_into_libs=no 11254 11255# when you set need_version to no, make sure it does not cause -set_version 11256# flags to be left without arguments 11257need_version=unknown 11258 11259 11260 11261case $host_os in 11262aix3*) 11263 version_type=linux # correct to gnu/linux during the next big refactor 11264 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11265 shlibpath_var=LIBPATH 11266 11267 # AIX 3 has no versioning support, so we append a major version to the name. 11268 soname_spec='$libname$release$shared_ext$major' 11269 ;; 11270 11271aix[4-9]*) 11272 version_type=linux # correct to gnu/linux during the next big refactor 11273 need_lib_prefix=no 11274 need_version=no 11275 hardcode_into_libs=yes 11276 if test ia64 = "$host_cpu"; then 11277 # AIX 5 supports IA64 11278 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11279 shlibpath_var=LD_LIBRARY_PATH 11280 else 11281 # With GCC up to 2.95.x, collect2 would create an import file 11282 # for dependence libraries. The import file would start with 11283 # the line '#! .'. This would cause the generated library to 11284 # depend on '.', always an invalid library. This was fixed in 11285 # development snapshots of GCC prior to 3.0. 11286 case $host_os in 11287 aix4 | aix4.[01] | aix4.[01].*) 11288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11289 echo ' yes ' 11290 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11291 : 11292 else 11293 can_build_shared=no 11294 fi 11295 ;; 11296 esac 11297 # Using Import Files as archive members, it is possible to support 11298 # filename-based versioning of shared library archives on AIX. While 11299 # this would work for both with and without runtime linking, it will 11300 # prevent static linking of such archives. So we do filename-based 11301 # shared library versioning with .so extension only, which is used 11302 # when both runtime linking and shared linking is enabled. 11303 # Unfortunately, runtime linking may impact performance, so we do 11304 # not want this to be the default eventually. Also, we use the 11305 # versioned .so libs for executables only if there is the -brtl 11306 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11307 # To allow for filename-based versioning support, we need to create 11308 # libNAME.so.V as an archive file, containing: 11309 # *) an Import File, referring to the versioned filename of the 11310 # archive as well as the shared archive member, telling the 11311 # bitwidth (32 or 64) of that shared object, and providing the 11312 # list of exported symbols of that shared object, eventually 11313 # decorated with the 'weak' keyword 11314 # *) the shared object with the F_LOADONLY flag set, to really avoid 11315 # it being seen by the linker. 11316 # At run time we better use the real file rather than another symlink, 11317 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11318 11319 case $with_aix_soname,$aix_use_runtimelinking in 11320 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11321 # soname into executable. Probably we can add versioning support to 11322 # collect2, so additional links can be useful in future. 11323 aix,yes) # traditional libtool 11324 dynamic_linker='AIX unversionable lib.so' 11325 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11326 # instead of lib<name>.a to let people know that these are not 11327 # typical AIX shared libraries. 11328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11329 ;; 11330 aix,no) # traditional AIX only 11331 dynamic_linker='AIX lib.a(lib.so.V)' 11332 # We preserve .a as extension for shared libraries through AIX4.2 11333 # and later when we are not doing run time linking. 11334 library_names_spec='$libname$release.a $libname.a' 11335 soname_spec='$libname$release$shared_ext$major' 11336 ;; 11337 svr4,*) # full svr4 only 11338 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11339 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11340 # We do not specify a path in Import Files, so LIBPATH fires. 11341 shlibpath_overrides_runpath=yes 11342 ;; 11343 *,yes) # both, prefer svr4 11344 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11345 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11346 # unpreferred sharedlib libNAME.a needs extra handling 11347 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"' 11348 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"' 11349 # We do not specify a path in Import Files, so LIBPATH fires. 11350 shlibpath_overrides_runpath=yes 11351 ;; 11352 *,no) # both, prefer aix 11353 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11354 library_names_spec='$libname$release.a $libname.a' 11355 soname_spec='$libname$release$shared_ext$major' 11356 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11357 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)' 11358 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"' 11359 ;; 11360 esac 11361 shlibpath_var=LIBPATH 11362 fi 11363 ;; 11364 11365amigaos*) 11366 case $host_cpu in 11367 powerpc) 11368 # Since July 2007 AmigaOS4 officially supports .so libraries. 11369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11371 ;; 11372 m68k) 11373 library_names_spec='$libname.ixlibrary $libname.a' 11374 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11375 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' 11376 ;; 11377 esac 11378 ;; 11379 11380beos*) 11381 library_names_spec='$libname$shared_ext' 11382 dynamic_linker="$host_os ld.so" 11383 shlibpath_var=LIBRARY_PATH 11384 ;; 11385 11386bsdi[45]*) 11387 version_type=linux # correct to gnu/linux during the next big refactor 11388 need_version=no 11389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11390 soname_spec='$libname$release$shared_ext$major' 11391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11392 shlibpath_var=LD_LIBRARY_PATH 11393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11395 # the default ld.so.conf also contains /usr/contrib/lib and 11396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11397 # libtool to hard-code these into programs 11398 ;; 11399 11400cygwin* | mingw* | pw32* | cegcc*) 11401 version_type=windows 11402 shrext_cmds=.dll 11403 need_version=no 11404 need_lib_prefix=no 11405 11406 case $GCC,$cc_basename in 11407 yes,*) 11408 # gcc 11409 library_names_spec='$libname.dll.a' 11410 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11411 postinstall_cmds='base_file=`basename \$file`~ 11412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11413 dldir=$destdir/`dirname \$dlpath`~ 11414 test -d \$dldir || mkdir -p \$dldir~ 11415 $install_prog $dir/$dlname \$dldir/$dlname~ 11416 chmod a+x \$dldir/$dlname~ 11417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11419 fi' 11420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11421 dlpath=$dir/\$dldll~ 11422 $RM \$dlpath' 11423 shlibpath_overrides_runpath=yes 11424 11425 case $host_os in 11426 cygwin*) 11427 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11428 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11429 11430 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11431 ;; 11432 mingw* | cegcc*) 11433 # MinGW DLLs use traditional 'lib' prefix 11434 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11435 ;; 11436 pw32*) 11437 # pw32 DLLs use 'pw' prefix rather than 'lib' 11438 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11439 ;; 11440 esac 11441 dynamic_linker='Win32 ld.exe' 11442 ;; 11443 11444 *,cl* | *,icl*) 11445 # Native MSVC or ICC 11446 libname_spec='$name' 11447 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11448 library_names_spec='$libname.dll.lib' 11449 11450 case $build_os in 11451 mingw*) 11452 sys_lib_search_path_spec= 11453 lt_save_ifs=$IFS 11454 IFS=';' 11455 for lt_path in $LIB 11456 do 11457 IFS=$lt_save_ifs 11458 # Let DOS variable expansion print the short 8.3 style file name. 11459 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11460 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11461 done 11462 IFS=$lt_save_ifs 11463 # Convert to MSYS style. 11464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11465 ;; 11466 cygwin*) 11467 # Convert to unix form, then to dos form, then back to unix form 11468 # but this time dos style (no spaces!) so that the unix form looks 11469 # like /cygdrive/c/PROGRA~1:/cygdr... 11470 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11471 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11472 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11473 ;; 11474 *) 11475 sys_lib_search_path_spec=$LIB 11476 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11477 # It is most probably a Windows format PATH. 11478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11479 else 11480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11481 fi 11482 # FIXME: find the short name or the path components, as spaces are 11483 # common. (e.g. "Program Files" -> "PROGRA~1") 11484 ;; 11485 esac 11486 11487 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11488 postinstall_cmds='base_file=`basename \$file`~ 11489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11490 dldir=$destdir/`dirname \$dlpath`~ 11491 test -d \$dldir || mkdir -p \$dldir~ 11492 $install_prog $dir/$dlname \$dldir/$dlname' 11493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11494 dlpath=$dir/\$dldll~ 11495 $RM \$dlpath' 11496 shlibpath_overrides_runpath=yes 11497 dynamic_linker='Win32 link.exe' 11498 ;; 11499 11500 *) 11501 # Assume MSVC and ICC wrapper 11502 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11503 dynamic_linker='Win32 ld.exe' 11504 ;; 11505 esac 11506 # FIXME: first we should search . and the directory the executable is in 11507 shlibpath_var=PATH 11508 ;; 11509 11510darwin* | rhapsody*) 11511 dynamic_linker="$host_os dyld" 11512 version_type=darwin 11513 need_lib_prefix=no 11514 need_version=no 11515 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11516 soname_spec='$libname$release$major$shared_ext' 11517 shlibpath_overrides_runpath=yes 11518 shlibpath_var=DYLD_LIBRARY_PATH 11519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11520 11521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11523 ;; 11524 11525dgux*) 11526 version_type=linux # correct to gnu/linux during the next big refactor 11527 need_lib_prefix=no 11528 need_version=no 11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11530 soname_spec='$libname$release$shared_ext$major' 11531 shlibpath_var=LD_LIBRARY_PATH 11532 ;; 11533 11534freebsd* | dragonfly* | midnightbsd*) 11535 # DragonFly does not have aout. When/if they implement a new 11536 # versioning mechanism, adjust this. 11537 if test -x /usr/bin/objformat; then 11538 objformat=`/usr/bin/objformat` 11539 else 11540 case $host_os in 11541 freebsd[23].*) objformat=aout ;; 11542 *) objformat=elf ;; 11543 esac 11544 fi 11545 version_type=freebsd-$objformat 11546 case $version_type in 11547 freebsd-elf*) 11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11549 soname_spec='$libname$release$shared_ext$major' 11550 need_version=no 11551 need_lib_prefix=no 11552 ;; 11553 freebsd-*) 11554 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11555 need_version=yes 11556 ;; 11557 esac 11558 shlibpath_var=LD_LIBRARY_PATH 11559 case $host_os in 11560 freebsd2.*) 11561 shlibpath_overrides_runpath=yes 11562 ;; 11563 freebsd3.[01]* | freebsdelf3.[01]*) 11564 shlibpath_overrides_runpath=yes 11565 hardcode_into_libs=yes 11566 ;; 11567 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11568 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11569 shlibpath_overrides_runpath=no 11570 hardcode_into_libs=yes 11571 ;; 11572 *) # from 4.6 on, and DragonFly 11573 shlibpath_overrides_runpath=yes 11574 hardcode_into_libs=yes 11575 ;; 11576 esac 11577 ;; 11578 11579haiku*) 11580 version_type=linux # correct to gnu/linux during the next big refactor 11581 need_lib_prefix=no 11582 need_version=no 11583 dynamic_linker="$host_os runtime_loader" 11584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11585 soname_spec='$libname$release$shared_ext$major' 11586 shlibpath_var=LIBRARY_PATH 11587 shlibpath_overrides_runpath=no 11588 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11589 hardcode_into_libs=yes 11590 ;; 11591 11592hpux9* | hpux10* | hpux11*) 11593 # Give a soname corresponding to the major version so that dld.sl refuses to 11594 # link against other versions. 11595 version_type=sunos 11596 need_lib_prefix=no 11597 need_version=no 11598 case $host_cpu in 11599 ia64*) 11600 shrext_cmds='.so' 11601 hardcode_into_libs=yes 11602 dynamic_linker="$host_os dld.so" 11603 shlibpath_var=LD_LIBRARY_PATH 11604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11606 soname_spec='$libname$release$shared_ext$major' 11607 if test 32 = "$HPUX_IA64_MODE"; then 11608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11609 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11610 else 11611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11612 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11613 fi 11614 ;; 11615 hppa*64*) 11616 shrext_cmds='.sl' 11617 hardcode_into_libs=yes 11618 dynamic_linker="$host_os dld.sl" 11619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11622 soname_spec='$libname$release$shared_ext$major' 11623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11625 ;; 11626 *) 11627 shrext_cmds='.sl' 11628 dynamic_linker="$host_os dld.sl" 11629 shlibpath_var=SHLIB_PATH 11630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11632 soname_spec='$libname$release$shared_ext$major' 11633 ;; 11634 esac 11635 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11636 postinstall_cmds='chmod 555 $lib' 11637 # or fails outright, so override atomically: 11638 install_override_mode=555 11639 ;; 11640 11641interix[3-9]*) 11642 version_type=linux # correct to gnu/linux during the next big refactor 11643 need_lib_prefix=no 11644 need_version=no 11645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11646 soname_spec='$libname$release$shared_ext$major' 11647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11648 shlibpath_var=LD_LIBRARY_PATH 11649 shlibpath_overrides_runpath=no 11650 hardcode_into_libs=yes 11651 ;; 11652 11653irix5* | irix6* | nonstopux*) 11654 case $host_os in 11655 nonstopux*) version_type=nonstopux ;; 11656 *) 11657 if test yes = "$lt_cv_prog_gnu_ld"; then 11658 version_type=linux # correct to gnu/linux during the next big refactor 11659 else 11660 version_type=irix 11661 fi ;; 11662 esac 11663 need_lib_prefix=no 11664 need_version=no 11665 soname_spec='$libname$release$shared_ext$major' 11666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11667 case $host_os in 11668 irix5* | nonstopux*) 11669 libsuff= shlibsuff= 11670 ;; 11671 *) 11672 case $LD in # libtool.m4 will add one of these switches to LD 11673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11674 libsuff= shlibsuff= libmagic=32-bit;; 11675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11676 libsuff=32 shlibsuff=N32 libmagic=N32;; 11677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11678 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11679 *) libsuff= shlibsuff= libmagic=never-match;; 11680 esac 11681 ;; 11682 esac 11683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11684 shlibpath_overrides_runpath=no 11685 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11686 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11687 hardcode_into_libs=yes 11688 ;; 11689 11690# No shared lib support for Linux oldld, aout, or coff. 11691linux*oldld* | linux*aout* | linux*coff*) 11692 dynamic_linker=no 11693 ;; 11694 11695linux*android*) 11696 version_type=none # Android doesn't support versioned libraries. 11697 need_lib_prefix=no 11698 need_version=no 11699 library_names_spec='$libname$release$shared_ext' 11700 soname_spec='$libname$release$shared_ext' 11701 finish_cmds= 11702 shlibpath_var=LD_LIBRARY_PATH 11703 shlibpath_overrides_runpath=yes 11704 11705 # This implies no fast_install, which is unacceptable. 11706 # Some rework will be needed to allow for fast_install 11707 # before this can be enabled. 11708 hardcode_into_libs=yes 11709 11710 dynamic_linker='Android linker' 11711 # Don't embed -rpath directories since the linker doesn't support them. 11712 hardcode_libdir_flag_spec='-L$libdir' 11713 ;; 11714 11715# This must be glibc/ELF. 11716linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11717 version_type=linux # correct to gnu/linux during the next big refactor 11718 need_lib_prefix=no 11719 need_version=no 11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11721 soname_spec='$libname$release$shared_ext$major' 11722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11723 shlibpath_var=LD_LIBRARY_PATH 11724 shlibpath_overrides_runpath=no 11725 11726 # Some binutils ld are patched to set DT_RUNPATH 11727 if test ${lt_cv_shlibpath_overrides_runpath+y} 11728then : 11729 printf %s "(cached) " >&6 11730else $as_nop 11731 lt_cv_shlibpath_overrides_runpath=no 11732 save_LDFLAGS=$LDFLAGS 11733 save_libdir=$libdir 11734 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11735 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11737/* end confdefs.h. */ 11738 11739int 11740main (void) 11741{ 11742 11743 ; 11744 return 0; 11745} 11746_ACEOF 11747if ac_fn_c_try_link "$LINENO" 11748then : 11749 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11750then : 11751 lt_cv_shlibpath_overrides_runpath=yes 11752fi 11753fi 11754rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11755 conftest$ac_exeext conftest.$ac_ext 11756 LDFLAGS=$save_LDFLAGS 11757 libdir=$save_libdir 11758 11759fi 11760 11761 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11762 11763 # This implies no fast_install, which is unacceptable. 11764 # Some rework will be needed to allow for fast_install 11765 # before this can be enabled. 11766 hardcode_into_libs=yes 11767 11768 # Add ABI-specific directories to the system library path. 11769 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11770 11771 # Ideally, we could use ldconfig to report *all* directores which are 11772 # searched for libraries, however this is still not possible. Aside from not 11773 # being certain /sbin/ldconfig is available, command 11774 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11775 # even though it is searched at run-time. Try to do the best guess by 11776 # appending ld.so.conf contents (and includes) to the search path. 11777 if test -f /etc/ld.so.conf; then 11778 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' ' '` 11779 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11780 fi 11781 11782 # We used to test for /lib/ld.so.1 and disable shared libraries on 11783 # powerpc, because MkLinux only supported shared libraries with the 11784 # GNU dynamic linker. Since this was broken with cross compilers, 11785 # most powerpc-linux boxes support dynamic linking these days and 11786 # people can always --disable-shared, the test was removed, and we 11787 # assume the GNU/Linux dynamic linker is in use. 11788 dynamic_linker='GNU/Linux ld.so' 11789 ;; 11790 11791netbsd*) 11792 version_type=sunos 11793 need_lib_prefix=no 11794 need_version=no 11795 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11798 dynamic_linker='NetBSD (a.out) ld.so' 11799 else 11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11801 soname_spec='$libname$release$shared_ext$major' 11802 dynamic_linker='NetBSD ld.elf_so' 11803 fi 11804 shlibpath_var=LD_LIBRARY_PATH 11805 shlibpath_overrides_runpath=yes 11806 hardcode_into_libs=yes 11807 ;; 11808 11809newsos6) 11810 version_type=linux # correct to gnu/linux during the next big refactor 11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11812 shlibpath_var=LD_LIBRARY_PATH 11813 shlibpath_overrides_runpath=yes 11814 ;; 11815 11816*nto* | *qnx*) 11817 version_type=qnx 11818 need_lib_prefix=no 11819 need_version=no 11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11821 soname_spec='$libname$release$shared_ext$major' 11822 shlibpath_var=LD_LIBRARY_PATH 11823 shlibpath_overrides_runpath=no 11824 hardcode_into_libs=yes 11825 dynamic_linker='ldqnx.so' 11826 ;; 11827 11828openbsd* | bitrig*) 11829 version_type=sunos 11830 sys_lib_dlsearch_path_spec=/usr/lib 11831 need_lib_prefix=no 11832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11833 need_version=no 11834 else 11835 need_version=yes 11836 fi 11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11839 shlibpath_var=LD_LIBRARY_PATH 11840 shlibpath_overrides_runpath=yes 11841 ;; 11842 11843os2*) 11844 libname_spec='$name' 11845 version_type=windows 11846 shrext_cmds=.dll 11847 need_version=no 11848 need_lib_prefix=no 11849 # OS/2 can only load a DLL with a base name of 8 characters or less. 11850 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11851 v=$($ECHO $release$versuffix | tr -d .-); 11852 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11853 $ECHO $n$v`$shared_ext' 11854 library_names_spec='${libname}_dll.$libext' 11855 dynamic_linker='OS/2 ld.exe' 11856 shlibpath_var=BEGINLIBPATH 11857 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11859 postinstall_cmds='base_file=`basename \$file`~ 11860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11861 dldir=$destdir/`dirname \$dlpath`~ 11862 test -d \$dldir || mkdir -p \$dldir~ 11863 $install_prog $dir/$dlname \$dldir/$dlname~ 11864 chmod a+x \$dldir/$dlname~ 11865 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11866 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11867 fi' 11868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11869 dlpath=$dir/\$dldll~ 11870 $RM \$dlpath' 11871 ;; 11872 11873osf3* | osf4* | osf5*) 11874 version_type=osf 11875 need_lib_prefix=no 11876 need_version=no 11877 soname_spec='$libname$release$shared_ext$major' 11878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11879 shlibpath_var=LD_LIBRARY_PATH 11880 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11882 ;; 11883 11884rdos*) 11885 dynamic_linker=no 11886 ;; 11887 11888solaris*) 11889 version_type=linux # correct to gnu/linux during the next big refactor 11890 need_lib_prefix=no 11891 need_version=no 11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11893 soname_spec='$libname$release$shared_ext$major' 11894 shlibpath_var=LD_LIBRARY_PATH 11895 shlibpath_overrides_runpath=yes 11896 hardcode_into_libs=yes 11897 # ldd complains unless libraries are executable 11898 postinstall_cmds='chmod +x $lib' 11899 ;; 11900 11901sunos4*) 11902 version_type=sunos 11903 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11904 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11905 shlibpath_var=LD_LIBRARY_PATH 11906 shlibpath_overrides_runpath=yes 11907 if test yes = "$with_gnu_ld"; then 11908 need_lib_prefix=no 11909 fi 11910 need_version=yes 11911 ;; 11912 11913sysv4 | sysv4.3*) 11914 version_type=linux # correct to gnu/linux during the next big refactor 11915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11916 soname_spec='$libname$release$shared_ext$major' 11917 shlibpath_var=LD_LIBRARY_PATH 11918 case $host_vendor in 11919 sni) 11920 shlibpath_overrides_runpath=no 11921 need_lib_prefix=no 11922 runpath_var=LD_RUN_PATH 11923 ;; 11924 siemens) 11925 need_lib_prefix=no 11926 ;; 11927 motorola) 11928 need_lib_prefix=no 11929 need_version=no 11930 shlibpath_overrides_runpath=no 11931 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11932 ;; 11933 esac 11934 ;; 11935 11936sysv4*MP*) 11937 if test -d /usr/nec; then 11938 version_type=linux # correct to gnu/linux during the next big refactor 11939 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11940 soname_spec='$libname$shared_ext.$major' 11941 shlibpath_var=LD_LIBRARY_PATH 11942 fi 11943 ;; 11944 11945sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11946 version_type=sco 11947 need_lib_prefix=no 11948 need_version=no 11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11950 soname_spec='$libname$release$shared_ext$major' 11951 shlibpath_var=LD_LIBRARY_PATH 11952 shlibpath_overrides_runpath=yes 11953 hardcode_into_libs=yes 11954 if test yes = "$with_gnu_ld"; then 11955 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11956 else 11957 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11958 case $host_os in 11959 sco3.2v5*) 11960 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11961 ;; 11962 esac 11963 fi 11964 sys_lib_dlsearch_path_spec='/usr/lib' 11965 ;; 11966 11967tpf*) 11968 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11969 version_type=linux # correct to gnu/linux during the next big refactor 11970 need_lib_prefix=no 11971 need_version=no 11972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11973 shlibpath_var=LD_LIBRARY_PATH 11974 shlibpath_overrides_runpath=no 11975 hardcode_into_libs=yes 11976 ;; 11977 11978uts4*) 11979 version_type=linux # correct to gnu/linux during the next big refactor 11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11981 soname_spec='$libname$release$shared_ext$major' 11982 shlibpath_var=LD_LIBRARY_PATH 11983 ;; 11984 11985*) 11986 dynamic_linker=no 11987 ;; 11988esac 11989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11990printf "%s\n" "$dynamic_linker" >&6; } 11991test no = "$dynamic_linker" && can_build_shared=no 11992 11993variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11994if test yes = "$GCC"; then 11995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11996fi 11997 11998if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11999 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12000fi 12001 12002if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12003 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12004fi 12005 12006# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12007configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12008 12009# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12010func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12011 12012# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12013configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 12109 12110 12111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12112printf %s "checking how to hardcode library paths into programs... " >&6; } 12113hardcode_action= 12114if test -n "$hardcode_libdir_flag_spec" || 12115 test -n "$runpath_var" || 12116 test yes = "$hardcode_automatic"; then 12117 12118 # We can hardcode non-existent directories. 12119 if test no != "$hardcode_direct" && 12120 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12121 # have to relink, otherwise we might link with an installed library 12122 # when we should be linking with a yet-to-be-installed one 12123 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12124 test no != "$hardcode_minus_L"; then 12125 # Linking always hardcodes the temporary library directory. 12126 hardcode_action=relink 12127 else 12128 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12129 hardcode_action=immediate 12130 fi 12131else 12132 # We cannot hardcode anything, or else we can only hardcode existing 12133 # directories. 12134 hardcode_action=unsupported 12135fi 12136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12137printf "%s\n" "$hardcode_action" >&6; } 12138 12139if test relink = "$hardcode_action" || 12140 test yes = "$inherit_rpath"; then 12141 # Fast installation is not supported 12142 enable_fast_install=no 12143elif test yes = "$shlibpath_overrides_runpath" || 12144 test no = "$enable_shared"; then 12145 # Fast installation is not necessary 12146 enable_fast_install=needless 12147fi 12148 12149 12150 12151 12152 12153 12154 if test yes != "$enable_dlopen"; then 12155 enable_dlopen=unknown 12156 enable_dlopen_self=unknown 12157 enable_dlopen_self_static=unknown 12158else 12159 lt_cv_dlopen=no 12160 lt_cv_dlopen_libs= 12161 12162 case $host_os in 12163 beos*) 12164 lt_cv_dlopen=load_add_on 12165 lt_cv_dlopen_libs= 12166 lt_cv_dlopen_self=yes 12167 ;; 12168 12169 mingw* | pw32* | cegcc*) 12170 lt_cv_dlopen=LoadLibrary 12171 lt_cv_dlopen_libs= 12172 ;; 12173 12174 cygwin*) 12175 lt_cv_dlopen=dlopen 12176 lt_cv_dlopen_libs= 12177 ;; 12178 12179 darwin*) 12180 # if libdl is installed we need to link against it 12181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12182printf %s "checking for dlopen in -ldl... " >&6; } 12183if test ${ac_cv_lib_dl_dlopen+y} 12184then : 12185 printf %s "(cached) " >&6 12186else $as_nop 12187 ac_check_lib_save_LIBS=$LIBS 12188LIBS="-ldl $LIBS" 12189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12190/* end confdefs.h. */ 12191 12192/* Override any GCC internal prototype to avoid an error. 12193 Use char because int might match the return type of a GCC 12194 builtin and then its argument prototype would still apply. */ 12195char dlopen (); 12196int 12197main (void) 12198{ 12199return dlopen (); 12200 ; 12201 return 0; 12202} 12203_ACEOF 12204if ac_fn_c_try_link "$LINENO" 12205then : 12206 ac_cv_lib_dl_dlopen=yes 12207else $as_nop 12208 ac_cv_lib_dl_dlopen=no 12209fi 12210rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12211 conftest$ac_exeext conftest.$ac_ext 12212LIBS=$ac_check_lib_save_LIBS 12213fi 12214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12215printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12216if test "x$ac_cv_lib_dl_dlopen" = xyes 12217then : 12218 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12219else $as_nop 12220 12221 lt_cv_dlopen=dyld 12222 lt_cv_dlopen_libs= 12223 lt_cv_dlopen_self=yes 12224 12225fi 12226 12227 ;; 12228 12229 tpf*) 12230 # Don't try to run any link tests for TPF. We know it's impossible 12231 # because TPF is a cross-compiler, and we know how we open DSOs. 12232 lt_cv_dlopen=dlopen 12233 lt_cv_dlopen_libs= 12234 lt_cv_dlopen_self=no 12235 ;; 12236 12237 *) 12238 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12239if test "x$ac_cv_func_shl_load" = xyes 12240then : 12241 lt_cv_dlopen=shl_load 12242else $as_nop 12243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12244printf %s "checking for shl_load in -ldld... " >&6; } 12245if test ${ac_cv_lib_dld_shl_load+y} 12246then : 12247 printf %s "(cached) " >&6 12248else $as_nop 12249 ac_check_lib_save_LIBS=$LIBS 12250LIBS="-ldld $LIBS" 12251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12252/* end confdefs.h. */ 12253 12254/* Override any GCC internal prototype to avoid an error. 12255 Use char because int might match the return type of a GCC 12256 builtin and then its argument prototype would still apply. */ 12257char shl_load (); 12258int 12259main (void) 12260{ 12261return shl_load (); 12262 ; 12263 return 0; 12264} 12265_ACEOF 12266if ac_fn_c_try_link "$LINENO" 12267then : 12268 ac_cv_lib_dld_shl_load=yes 12269else $as_nop 12270 ac_cv_lib_dld_shl_load=no 12271fi 12272rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12273 conftest$ac_exeext conftest.$ac_ext 12274LIBS=$ac_check_lib_save_LIBS 12275fi 12276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12277printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12278if test "x$ac_cv_lib_dld_shl_load" = xyes 12279then : 12280 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12281else $as_nop 12282 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12283if test "x$ac_cv_func_dlopen" = xyes 12284then : 12285 lt_cv_dlopen=dlopen 12286else $as_nop 12287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12288printf %s "checking for dlopen in -ldl... " >&6; } 12289if test ${ac_cv_lib_dl_dlopen+y} 12290then : 12291 printf %s "(cached) " >&6 12292else $as_nop 12293 ac_check_lib_save_LIBS=$LIBS 12294LIBS="-ldl $LIBS" 12295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12296/* end confdefs.h. */ 12297 12298/* Override any GCC internal prototype to avoid an error. 12299 Use char because int might match the return type of a GCC 12300 builtin and then its argument prototype would still apply. */ 12301char dlopen (); 12302int 12303main (void) 12304{ 12305return dlopen (); 12306 ; 12307 return 0; 12308} 12309_ACEOF 12310if ac_fn_c_try_link "$LINENO" 12311then : 12312 ac_cv_lib_dl_dlopen=yes 12313else $as_nop 12314 ac_cv_lib_dl_dlopen=no 12315fi 12316rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12317 conftest$ac_exeext conftest.$ac_ext 12318LIBS=$ac_check_lib_save_LIBS 12319fi 12320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12321printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12322if test "x$ac_cv_lib_dl_dlopen" = xyes 12323then : 12324 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12325else $as_nop 12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12327printf %s "checking for dlopen in -lsvld... " >&6; } 12328if test ${ac_cv_lib_svld_dlopen+y} 12329then : 12330 printf %s "(cached) " >&6 12331else $as_nop 12332 ac_check_lib_save_LIBS=$LIBS 12333LIBS="-lsvld $LIBS" 12334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12335/* end confdefs.h. */ 12336 12337/* Override any GCC internal prototype to avoid an error. 12338 Use char because int might match the return type of a GCC 12339 builtin and then its argument prototype would still apply. */ 12340char dlopen (); 12341int 12342main (void) 12343{ 12344return dlopen (); 12345 ; 12346 return 0; 12347} 12348_ACEOF 12349if ac_fn_c_try_link "$LINENO" 12350then : 12351 ac_cv_lib_svld_dlopen=yes 12352else $as_nop 12353 ac_cv_lib_svld_dlopen=no 12354fi 12355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12356 conftest$ac_exeext conftest.$ac_ext 12357LIBS=$ac_check_lib_save_LIBS 12358fi 12359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12360printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12361if test "x$ac_cv_lib_svld_dlopen" = xyes 12362then : 12363 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12364else $as_nop 12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12366printf %s "checking for dld_link in -ldld... " >&6; } 12367if test ${ac_cv_lib_dld_dld_link+y} 12368then : 12369 printf %s "(cached) " >&6 12370else $as_nop 12371 ac_check_lib_save_LIBS=$LIBS 12372LIBS="-ldld $LIBS" 12373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12374/* end confdefs.h. */ 12375 12376/* Override any GCC internal prototype to avoid an error. 12377 Use char because int might match the return type of a GCC 12378 builtin and then its argument prototype would still apply. */ 12379char dld_link (); 12380int 12381main (void) 12382{ 12383return dld_link (); 12384 ; 12385 return 0; 12386} 12387_ACEOF 12388if ac_fn_c_try_link "$LINENO" 12389then : 12390 ac_cv_lib_dld_dld_link=yes 12391else $as_nop 12392 ac_cv_lib_dld_dld_link=no 12393fi 12394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12395 conftest$ac_exeext conftest.$ac_ext 12396LIBS=$ac_check_lib_save_LIBS 12397fi 12398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12399printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12400if test "x$ac_cv_lib_dld_dld_link" = xyes 12401then : 12402 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12403fi 12404 12405 12406fi 12407 12408 12409fi 12410 12411 12412fi 12413 12414 12415fi 12416 12417 12418fi 12419 12420 ;; 12421 esac 12422 12423 if test no = "$lt_cv_dlopen"; then 12424 enable_dlopen=no 12425 else 12426 enable_dlopen=yes 12427 fi 12428 12429 case $lt_cv_dlopen in 12430 dlopen) 12431 save_CPPFLAGS=$CPPFLAGS 12432 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12433 12434 save_LDFLAGS=$LDFLAGS 12435 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12436 12437 save_LIBS=$LIBS 12438 LIBS="$lt_cv_dlopen_libs $LIBS" 12439 12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12441printf %s "checking whether a program can dlopen itself... " >&6; } 12442if test ${lt_cv_dlopen_self+y} 12443then : 12444 printf %s "(cached) " >&6 12445else $as_nop 12446 if test yes = "$cross_compiling"; then : 12447 lt_cv_dlopen_self=cross 12448else 12449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12450 lt_status=$lt_dlunknown 12451 cat > conftest.$ac_ext <<_LT_EOF 12452#line $LINENO "configure" 12453#include "confdefs.h" 12454 12455#if HAVE_DLFCN_H 12456#include <dlfcn.h> 12457#endif 12458 12459#include <stdio.h> 12460 12461#ifdef RTLD_GLOBAL 12462# define LT_DLGLOBAL RTLD_GLOBAL 12463#else 12464# ifdef DL_GLOBAL 12465# define LT_DLGLOBAL DL_GLOBAL 12466# else 12467# define LT_DLGLOBAL 0 12468# endif 12469#endif 12470 12471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12472 find out it does not work in some platform. */ 12473#ifndef LT_DLLAZY_OR_NOW 12474# ifdef RTLD_LAZY 12475# define LT_DLLAZY_OR_NOW RTLD_LAZY 12476# else 12477# ifdef DL_LAZY 12478# define LT_DLLAZY_OR_NOW DL_LAZY 12479# else 12480# ifdef RTLD_NOW 12481# define LT_DLLAZY_OR_NOW RTLD_NOW 12482# else 12483# ifdef DL_NOW 12484# define LT_DLLAZY_OR_NOW DL_NOW 12485# else 12486# define LT_DLLAZY_OR_NOW 0 12487# endif 12488# endif 12489# endif 12490# endif 12491#endif 12492 12493/* When -fvisibility=hidden is used, assume the code has been annotated 12494 correspondingly for the symbols needed. */ 12495#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12496int fnord () __attribute__((visibility("default"))); 12497#endif 12498 12499int fnord () { return 42; } 12500int main () 12501{ 12502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12503 int status = $lt_dlunknown; 12504 12505 if (self) 12506 { 12507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12508 else 12509 { 12510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12511 else puts (dlerror ()); 12512 } 12513 /* dlclose (self); */ 12514 } 12515 else 12516 puts (dlerror ()); 12517 12518 return status; 12519} 12520_LT_EOF 12521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12522 (eval $ac_link) 2>&5 12523 ac_status=$? 12524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12525 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12526 (./conftest; exit; ) >&5 2>/dev/null 12527 lt_status=$? 12528 case x$lt_status in 12529 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12530 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12531 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12532 esac 12533 else : 12534 # compilation failed 12535 lt_cv_dlopen_self=no 12536 fi 12537fi 12538rm -fr conftest* 12539 12540 12541fi 12542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12543printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12544 12545 if test yes = "$lt_cv_dlopen_self"; then 12546 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12548printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12549if test ${lt_cv_dlopen_self_static+y} 12550then : 12551 printf %s "(cached) " >&6 12552else $as_nop 12553 if test yes = "$cross_compiling"; then : 12554 lt_cv_dlopen_self_static=cross 12555else 12556 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12557 lt_status=$lt_dlunknown 12558 cat > conftest.$ac_ext <<_LT_EOF 12559#line $LINENO "configure" 12560#include "confdefs.h" 12561 12562#if HAVE_DLFCN_H 12563#include <dlfcn.h> 12564#endif 12565 12566#include <stdio.h> 12567 12568#ifdef RTLD_GLOBAL 12569# define LT_DLGLOBAL RTLD_GLOBAL 12570#else 12571# ifdef DL_GLOBAL 12572# define LT_DLGLOBAL DL_GLOBAL 12573# else 12574# define LT_DLGLOBAL 0 12575# endif 12576#endif 12577 12578/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12579 find out it does not work in some platform. */ 12580#ifndef LT_DLLAZY_OR_NOW 12581# ifdef RTLD_LAZY 12582# define LT_DLLAZY_OR_NOW RTLD_LAZY 12583# else 12584# ifdef DL_LAZY 12585# define LT_DLLAZY_OR_NOW DL_LAZY 12586# else 12587# ifdef RTLD_NOW 12588# define LT_DLLAZY_OR_NOW RTLD_NOW 12589# else 12590# ifdef DL_NOW 12591# define LT_DLLAZY_OR_NOW DL_NOW 12592# else 12593# define LT_DLLAZY_OR_NOW 0 12594# endif 12595# endif 12596# endif 12597# endif 12598#endif 12599 12600/* When -fvisibility=hidden is used, assume the code has been annotated 12601 correspondingly for the symbols needed. */ 12602#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12603int fnord () __attribute__((visibility("default"))); 12604#endif 12605 12606int fnord () { return 42; } 12607int main () 12608{ 12609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12610 int status = $lt_dlunknown; 12611 12612 if (self) 12613 { 12614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12615 else 12616 { 12617 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12618 else puts (dlerror ()); 12619 } 12620 /* dlclose (self); */ 12621 } 12622 else 12623 puts (dlerror ()); 12624 12625 return status; 12626} 12627_LT_EOF 12628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12629 (eval $ac_link) 2>&5 12630 ac_status=$? 12631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12632 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12633 (./conftest; exit; ) >&5 2>/dev/null 12634 lt_status=$? 12635 case x$lt_status in 12636 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12637 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12638 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12639 esac 12640 else : 12641 # compilation failed 12642 lt_cv_dlopen_self_static=no 12643 fi 12644fi 12645rm -fr conftest* 12646 12647 12648fi 12649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12650printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12651 fi 12652 12653 CPPFLAGS=$save_CPPFLAGS 12654 LDFLAGS=$save_LDFLAGS 12655 LIBS=$save_LIBS 12656 ;; 12657 esac 12658 12659 case $lt_cv_dlopen_self in 12660 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12661 *) enable_dlopen_self=unknown ;; 12662 esac 12663 12664 case $lt_cv_dlopen_self_static in 12665 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12666 *) enable_dlopen_self_static=unknown ;; 12667 esac 12668fi 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686striplib= 12687old_striplib= 12688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12689printf %s "checking whether stripping libraries is possible... " >&6; } 12690if test -z "$STRIP"; then 12691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12692printf "%s\n" "no" >&6; } 12693else 12694 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12695 old_striplib="$STRIP --strip-debug" 12696 striplib="$STRIP --strip-unneeded" 12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12698printf "%s\n" "yes" >&6; } 12699 else 12700 case $host_os in 12701 darwin*) 12702 # FIXME - insert some real tests, host_os isn't really good enough 12703 striplib="$STRIP -x" 12704 old_striplib="$STRIP -S" 12705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12706printf "%s\n" "yes" >&6; } 12707 ;; 12708 freebsd*) 12709 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12710 old_striplib="$STRIP --strip-debug" 12711 striplib="$STRIP --strip-unneeded" 12712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12713printf "%s\n" "yes" >&6; } 12714 else 12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12716printf "%s\n" "no" >&6; } 12717 fi 12718 ;; 12719 *) 12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12721printf "%s\n" "no" >&6; } 12722 ;; 12723 esac 12724 fi 12725fi 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 # Report what library types will actually be built 12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12740printf %s "checking if libtool supports shared libraries... " >&6; } 12741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12742printf "%s\n" "$can_build_shared" >&6; } 12743 12744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12745printf %s "checking whether to build shared libraries... " >&6; } 12746 test no = "$can_build_shared" && enable_shared=no 12747 12748 # On AIX, shared libraries and static libraries use the same namespace, and 12749 # are all built from PIC. 12750 case $host_os in 12751 aix3*) 12752 test yes = "$enable_shared" && enable_static=no 12753 if test -n "$RANLIB"; then 12754 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12755 postinstall_cmds='$RANLIB $lib' 12756 fi 12757 ;; 12758 12759 aix[4-9]*) 12760 if test ia64 != "$host_cpu"; then 12761 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12762 yes,aix,yes) ;; # shared object as lib.so file only 12763 yes,svr4,*) ;; # shared object as lib.so archive member only 12764 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12765 esac 12766 fi 12767 ;; 12768 esac 12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12770printf "%s\n" "$enable_shared" >&6; } 12771 12772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12773printf %s "checking whether to build static libraries... " >&6; } 12774 # Make sure either enable_shared or enable_static is yes. 12775 test yes = "$enable_shared" || enable_static=yes 12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12777printf "%s\n" "$enable_static" >&6; } 12778 12779 12780 12781 12782fi 12783ac_ext=c 12784ac_cpp='$CPP $CPPFLAGS' 12785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12787ac_compiler_gnu=$ac_cv_c_compiler_gnu 12788 12789CC=$lt_save_CC 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 ac_config_commands="$ac_config_commands libtool" 12806 12807 12808 12809 12810# Only expand once: 12811 12812 12813 12814 12815# Check whether --with-gnu-ld was given. 12816if test ${with_gnu_ld+y} 12817then : 12818 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12819else $as_nop 12820 with_gnu_ld=no 12821fi 12822 12823ac_prog=ld 12824if test yes = "$GCC"; then 12825 # Check if gcc -print-prog-name=ld gives a path. 12826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12827printf %s "checking for ld used by $CC... " >&6; } 12828 case $host in 12829 *-*-mingw*) 12830 # gcc leaves a trailing carriage return, which upsets mingw 12831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12832 *) 12833 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12834 esac 12835 case $ac_prog in 12836 # Accept absolute paths. 12837 [\\/]* | ?:[\\/]*) 12838 re_direlt='/[^/][^/]*/\.\./' 12839 # Canonicalize the pathname of ld 12840 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12841 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12842 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12843 done 12844 test -z "$LD" && LD=$ac_prog 12845 ;; 12846 "") 12847 # If it fails, then pretend we aren't using GCC. 12848 ac_prog=ld 12849 ;; 12850 *) 12851 # If it is relative, then search for the first ld in PATH. 12852 with_gnu_ld=unknown 12853 ;; 12854 esac 12855elif test yes = "$with_gnu_ld"; then 12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12857printf %s "checking for GNU ld... " >&6; } 12858else 12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12860printf %s "checking for non-GNU ld... " >&6; } 12861fi 12862if test ${lt_cv_path_LD+y} 12863then : 12864 printf %s "(cached) " >&6 12865else $as_nop 12866 if test -z "$LD"; then 12867 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12868 for ac_dir in $PATH; do 12869 IFS=$lt_save_ifs 12870 test -z "$ac_dir" && ac_dir=. 12871 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12872 lt_cv_path_LD=$ac_dir/$ac_prog 12873 # Check to see if the program is GNU ld. I'd rather use --version, 12874 # but apparently some variants of GNU ld only accept -v. 12875 # Break only if it was the GNU/non-GNU ld that we prefer. 12876 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12877 *GNU* | *'with BFD'*) 12878 test no != "$with_gnu_ld" && break 12879 ;; 12880 *) 12881 test yes != "$with_gnu_ld" && break 12882 ;; 12883 esac 12884 fi 12885 done 12886 IFS=$lt_save_ifs 12887else 12888 lt_cv_path_LD=$LD # Let the user override the test with a path. 12889fi 12890fi 12891 12892LD=$lt_cv_path_LD 12893if test -n "$LD"; then 12894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12895printf "%s\n" "$LD" >&6; } 12896else 12897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12898printf "%s\n" "no" >&6; } 12899fi 12900test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12902printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 12903if test ${lt_cv_prog_gnu_ld+y} 12904then : 12905 printf %s "(cached) " >&6 12906else $as_nop 12907 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12908case `$LD -v 2>&1 </dev/null` in 12909*GNU* | *'with BFD'*) 12910 lt_cv_prog_gnu_ld=yes 12911 ;; 12912*) 12913 lt_cv_prog_gnu_ld=no 12914 ;; 12915esac 12916fi 12917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12918printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 12919with_gnu_ld=$lt_cv_prog_gnu_ld 12920 12921 12922 12923 12924 12925 12926 12927with_ldflags="" 12928if test "x$lt_cv_prog_gnu_ld" = "xyes"; then 12929 12930 for flag in \ 12931 -Wl,--as-needed \ 12932 -Wl,--gc-sections \ 12933 -Wl,-z,relro \ 12934 -Wl,-z,now; do 12935 12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar LDFLAGS" >&5 12937printf %s "checking if $CC supports flag $flag in envvar LDFLAGS... " >&6; } 12938if { as_var=`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 12939then : 12940 printf %s "(cached) " >&6 12941else $as_nop 12942 eval "cc_save_LDFLAGS='${LDFLAGS}'" 12943 eval "LDFLAGS='-Werror $flag'" 12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12945/* end confdefs.h. */ 12946int a = 0; int main(void) { return a; } 12947_ACEOF 12948if ac_fn_c_try_link "$LINENO" 12949then : 12950 eval "`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='yes'" 12951else $as_nop 12952 eval "`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh`='no'" 12953fi 12954rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12955 conftest$ac_exeext conftest.$ac_ext 12956 eval "LDFLAGS='$cc_save_LDFLAGS'" 12957fi 12958eval ac_res=\$`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh` 12959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12960printf "%s\n" "$ac_res" >&6; } 12961 12962 if eval test x$`printf "%s\n" "cc_cv_LDFLAGS_$flag" | $as_tr_sh` = xyes 12963then : 12964 eval "with_ldflags='${with_ldflags} $flag'" 12965fi 12966 12967 done 12968 12969fi 12970GNU_LD_FLAGS=$with_ldflags 12971 12972 12973case "${host_os}" in 12974 freebsd*) 12975OS=freebsd 12976 12977 ;; 12978 *) 12979OS=linux 12980 12981 ;; 12982esac 12983 12984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5 12985printf %s "checking for round in -lm... " >&6; } 12986if test ${ac_cv_lib_m_round+y} 12987then : 12988 printf %s "(cached) " >&6 12989else $as_nop 12990 ac_check_lib_save_LIBS=$LIBS 12991LIBS="-lm $LIBS" 12992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12993/* end confdefs.h. */ 12994 12995/* Override any GCC internal prototype to avoid an error. 12996 Use char because int might match the return type of a GCC 12997 builtin and then its argument prototype would still apply. */ 12998char round (); 12999int 13000main (void) 13001{ 13002return round (); 13003 ; 13004 return 0; 13005} 13006_ACEOF 13007if ac_fn_c_try_link "$LINENO" 13008then : 13009 ac_cv_lib_m_round=yes 13010else $as_nop 13011 ac_cv_lib_m_round=no 13012fi 13013rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13014 conftest$ac_exeext conftest.$ac_ext 13015LIBS=$ac_check_lib_save_LIBS 13016fi 13017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5 13018printf "%s\n" "$ac_cv_lib_m_round" >&6; } 13019if test "x$ac_cv_lib_m_round" = xyes 13020then : 13021 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h 13022 13023 LIBS="-lm $LIBS" 13024 13025fi 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13036 if test -n "$ac_tool_prefix"; then 13037 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13038set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13040printf %s "checking for $ac_word... " >&6; } 13041if test ${ac_cv_path_PKG_CONFIG+y} 13042then : 13043 printf %s "(cached) " >&6 13044else $as_nop 13045 case $PKG_CONFIG in 13046 [\\/]* | ?:[\\/]*) 13047 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13048 ;; 13049 *) 13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13051for as_dir in $PATH 13052do 13053 IFS=$as_save_IFS 13054 case $as_dir in #((( 13055 '') as_dir=./ ;; 13056 */) ;; 13057 *) as_dir=$as_dir/ ;; 13058 esac 13059 for ac_exec_ext in '' $ac_executable_extensions; do 13060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13061 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13063 break 2 13064 fi 13065done 13066 done 13067IFS=$as_save_IFS 13068 13069 ;; 13070esac 13071fi 13072PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13073if test -n "$PKG_CONFIG"; then 13074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13075printf "%s\n" "$PKG_CONFIG" >&6; } 13076else 13077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13078printf "%s\n" "no" >&6; } 13079fi 13080 13081 13082fi 13083if test -z "$ac_cv_path_PKG_CONFIG"; then 13084 ac_pt_PKG_CONFIG=$PKG_CONFIG 13085 # Extract the first word of "pkg-config", so it can be a program name with args. 13086set dummy pkg-config; ac_word=$2 13087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13088printf %s "checking for $ac_word... " >&6; } 13089if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13090then : 13091 printf %s "(cached) " >&6 13092else $as_nop 13093 case $ac_pt_PKG_CONFIG in 13094 [\\/]* | ?:[\\/]*) 13095 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13096 ;; 13097 *) 13098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13099for as_dir in $PATH 13100do 13101 IFS=$as_save_IFS 13102 case $as_dir in #((( 13103 '') as_dir=./ ;; 13104 */) ;; 13105 *) as_dir=$as_dir/ ;; 13106 esac 13107 for ac_exec_ext in '' $ac_executable_extensions; do 13108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13109 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13111 break 2 13112 fi 13113done 13114 done 13115IFS=$as_save_IFS 13116 13117 ;; 13118esac 13119fi 13120ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13121if test -n "$ac_pt_PKG_CONFIG"; then 13122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13123printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13124else 13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13126printf "%s\n" "no" >&6; } 13127fi 13128 13129 if test "x$ac_pt_PKG_CONFIG" = x; then 13130 PKG_CONFIG="" 13131 else 13132 case $cross_compiling:$ac_tool_warned in 13133yes:) 13134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13135printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13136ac_tool_warned=yes ;; 13137esac 13138 PKG_CONFIG=$ac_pt_PKG_CONFIG 13139 fi 13140else 13141 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13142fi 13143 13144fi 13145if test -n "$PKG_CONFIG"; then 13146 _pkg_min_version=0.9.0 13147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13148printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13149 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13151printf "%s\n" "yes" >&6; } 13152 else 13153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13154printf "%s\n" "no" >&6; } 13155 PKG_CONFIG="" 13156 fi 13157fi 13158 13159pkg_failed=no 13160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 13161printf %s "checking for CHECK... " >&6; } 13162 13163if test -n "$CHECK_CFLAGS"; then 13164 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" 13165 elif test -n "$PKG_CONFIG"; then 13166 if test -n "$PKG_CONFIG" && \ 13167 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.9\""; } >&5 13168 ($PKG_CONFIG --exists --print-errors "check >= 0.9.9") 2>&5 13169 ac_status=$? 13170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13171 test $ac_status = 0; }; then 13172 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.9" 2>/dev/null` 13173 test "x$?" != "x0" && pkg_failed=yes 13174else 13175 pkg_failed=yes 13176fi 13177 else 13178 pkg_failed=untried 13179fi 13180if test -n "$CHECK_LIBS"; then 13181 pkg_cv_CHECK_LIBS="$CHECK_LIBS" 13182 elif test -n "$PKG_CONFIG"; then 13183 if test -n "$PKG_CONFIG" && \ 13184 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.9\""; } >&5 13185 ($PKG_CONFIG --exists --print-errors "check >= 0.9.9") 2>&5 13186 ac_status=$? 13187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13188 test $ac_status = 0; }; then 13189 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.9" 2>/dev/null` 13190 test "x$?" != "x0" && pkg_failed=yes 13191else 13192 pkg_failed=yes 13193fi 13194 else 13195 pkg_failed=untried 13196fi 13197 13198 13199 13200if test $pkg_failed = yes; then 13201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13202printf "%s\n" "no" >&6; } 13203 13204if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13205 _pkg_short_errors_supported=yes 13206else 13207 _pkg_short_errors_supported=no 13208fi 13209 if test $_pkg_short_errors_supported = yes; then 13210 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.9" 2>&1` 13211 else 13212 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.9" 2>&1` 13213 fi 13214 # Put the nasty error message in config.log where it belongs 13215 echo "$CHECK_PKG_ERRORS" >&5 13216 13217 HAVE_CHECK="no" 13218elif test $pkg_failed = untried; then 13219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13220printf "%s\n" "no" >&6; } 13221 HAVE_CHECK="no" 13222else 13223 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS 13224 CHECK_LIBS=$pkg_cv_CHECK_LIBS 13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13226printf "%s\n" "yes" >&6; } 13227 HAVE_CHECK="yes" 13228fi 13229if test "x$HAVE_CHECK" = "xyes"; then 13230 # Extract the first word of "valgrind", so it can be a program name with args. 13231set dummy valgrind; ac_word=$2 13232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13233printf %s "checking for $ac_word... " >&6; } 13234if test ${ac_cv_path_VALGRIND+y} 13235then : 13236 printf %s "(cached) " >&6 13237else $as_nop 13238 case $VALGRIND in 13239 [\\/]* | ?:[\\/]*) 13240 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. 13241 ;; 13242 *) 13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13244for as_dir in $PATH 13245do 13246 IFS=$as_save_IFS 13247 case $as_dir in #((( 13248 '') as_dir=./ ;; 13249 */) ;; 13250 *) as_dir=$as_dir/ ;; 13251 esac 13252 for ac_exec_ext in '' $ac_executable_extensions; do 13253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13254 ac_cv_path_VALGRIND="$as_dir$ac_word$ac_exec_ext" 13255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13256 break 2 13257 fi 13258done 13259 done 13260IFS=$as_save_IFS 13261 13262 ;; 13263esac 13264fi 13265VALGRIND=$ac_cv_path_VALGRIND 13266if test -n "$VALGRIND"; then 13267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 13268printf "%s\n" "$VALGRIND" >&6; } 13269else 13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13271printf "%s\n" "no" >&6; } 13272fi 13273 13274 13275else 13276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: check not found - skipping building unit tests" >&5 13277printf "%s\n" "$as_me: WARNING: check not found - skipping building unit tests" >&2;} 13278fi 13279 if test "x$VALGRIND" != "x"; then 13280 HAVE_VALGRIND_TRUE= 13281 HAVE_VALGRIND_FALSE='#' 13282else 13283 HAVE_VALGRIND_TRUE='#' 13284 HAVE_VALGRIND_FALSE= 13285fi 13286 13287 if test "x$HAVE_CHECK" = "xyes"; then 13288 ENABLE_RUNTIME_TESTS_TRUE= 13289 ENABLE_RUNTIME_TESTS_FALSE='#' 13290else 13291 ENABLE_RUNTIME_TESTS_TRUE='#' 13292 ENABLE_RUNTIME_TESTS_FALSE= 13293fi 13294 13295 if test "x$enable_static" = "xyes"; then 13296 ENABLE_STATIC_LINK_TEST_TRUE= 13297 ENABLE_STATIC_LINK_TEST_FALSE='#' 13298else 13299 ENABLE_STATIC_LINK_TEST_TRUE='#' 13300 ENABLE_STATIC_LINK_TEST_FALSE= 13301fi 13302 13303 13304with_cflags="" 13305if test "x$GCC" = "xyes"; then 13306 13307 for flag in \ 13308 -Wall \ 13309 -Wextra \ 13310 -Wno-unused-parameter \ 13311 -Wstrict-prototypes \ 13312 -Wmissing-prototypes \ 13313 -fvisibility=hidden \ 13314 -pipe \ 13315 -fno-strict-aliasing \ 13316 -ffunction-sections \ 13317 -fdata-sections \ 13318 -fno-strict-aliasing \ 13319 -fdiagnostics-show-option \ 13320 -fno-common; do 13321 13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CFLAGS" >&5 13323printf %s "checking if $CC supports flag $flag in envvar CFLAGS... " >&6; } 13324if { as_var=`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh`; eval test \${$as_var+y}; } 13325then : 13326 printf %s "(cached) " >&6 13327else $as_nop 13328 eval "cc_save_CFLAGS='${CFLAGS}'" 13329 eval "CFLAGS='-Werror $flag'" 13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13331/* end confdefs.h. */ 13332int a = 0; int main(void) { return a; } 13333_ACEOF 13334if ac_fn_c_try_link "$LINENO" 13335then : 13336 eval "`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh`='yes'" 13337else $as_nop 13338 eval "`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh`='no'" 13339fi 13340rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13341 conftest$ac_exeext conftest.$ac_ext 13342 eval "CFLAGS='$cc_save_CFLAGS'" 13343fi 13344eval ac_res=\$`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh` 13345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13346printf "%s\n" "$ac_res" >&6; } 13347 13348 if eval test x$`printf "%s\n" "cc_cv_CFLAGS_$flag" | $as_tr_sh` = xyes 13349then : 13350 eval "with_cflags='${with_cflags} $flag'" 13351fi 13352 13353 done 13354 13355fi 13356GCC_CFLAGS=$with_cflags 13357 13358 13359# Extract the first word of "doxygen", so it can be a program name with args. 13360set dummy doxygen; ac_word=$2 13361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13362printf %s "checking for $ac_word... " >&6; } 13363if test ${ac_cv_path_DOXYGEN+y} 13364then : 13365 printf %s "(cached) " >&6 13366else $as_nop 13367 case $DOXYGEN in 13368 [\\/]* | ?:[\\/]*) 13369 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 13370 ;; 13371 *) 13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13373for as_dir in $PATH 13374do 13375 IFS=$as_save_IFS 13376 case $as_dir in #((( 13377 '') as_dir=./ ;; 13378 */) ;; 13379 *) as_dir=$as_dir/ ;; 13380 esac 13381 for ac_exec_ext in '' $ac_executable_extensions; do 13382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13383 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 13384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13385 break 2 13386 fi 13387done 13388 done 13389IFS=$as_save_IFS 13390 13391 ;; 13392esac 13393fi 13394DOXYGEN=$ac_cv_path_DOXYGEN 13395if test -n "$DOXYGEN"; then 13396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 13397printf "%s\n" "$DOXYGEN" >&6; } 13398else 13399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13400printf "%s\n" "no" >&6; } 13401fi 13402 13403 13404if test "x$DOXYGEN" = "x"; then 13405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - required for documentation" >&5 13406printf "%s\n" "$as_me: WARNING: doxygen not found - required for documentation" >&2;} 13407 have_doxygen="no" 13408else 13409 have_doxygen="yes" 13410fi 13411 if test "x$have_doxygen" = "xyes"; then 13412 HAVE_DOXYGEN_TRUE= 13413 HAVE_DOXYGEN_FALSE='#' 13414else 13415 HAVE_DOXYGEN_TRUE='#' 13416 HAVE_DOXYGEN_FALSE= 13417fi 13418 13419 13420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov" >&5 13421printf %s "checking whether to build with gcov... " >&6; } 13422# Check whether --enable-gcov was given. 13423if test ${enable_gcov+y} 13424then : 13425 enableval=$enable_gcov; 13426else $as_nop 13427 enable_gcov=no 13428fi 13429 13430if test "x$enable_gcov" != "xno" 13431then : 13432 13433 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage" 13434 GCOV_LDFLAGS="-lgcov" 13435 enable_gcov=yes 13436 13437fi 13438 if test "x$enable_gcov" != "xno"; then 13439 GCOV_ENABLED_TRUE= 13440 GCOV_ENABLED_FALSE='#' 13441else 13442 GCOV_ENABLED_TRUE='#' 13443 GCOV_ENABLED_FALSE= 13444fi 13445 13446 13447 13448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gcov" >&5 13449printf "%s\n" "$enable_gcov" >&6; } 13450 13451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with coverity support" >&5 13452printf %s "checking whether to build with coverity support... " >&6; } 13453# Check whether --enable-coverity was given. 13454if test ${enable_coverity+y} 13455then : 13456 enableval=$enable_coverity; 13457else $as_nop 13458 enable_coverity=no 13459fi 13460 13461if test "x$enable_coverity" != "xno" 13462then : 13463 13464 13465printf "%s\n" "#define _Float128 __uint128_t" >>confdefs.h 13466 13467 13468printf "%s\n" "#define _Float32 int" >>confdefs.h 13469 13470 13471printf "%s\n" "#define _Float32x int" >>confdefs.h 13472 13473 13474printf "%s\n" "#define _Float64 long" >>confdefs.h 13475 13476 13477printf "%s\n" "#define _Float64x long" >>confdefs.h 13478 13479 enable_coverity=yes 13480 13481fi 13482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_coverity" >&5 13483printf "%s\n" "$enable_coverity" >&6; } 13484 13485 13486 13487 13488 13489 13490 13491 13492 if test -n "$PYTHON"; then 13493 # If the user set $PYTHON, use it and don't search something else. 13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5 13495printf %s "checking whether $PYTHON version is >= 2.6... " >&6; } 13496 prog="import sys 13497# split strings by '.' and convert to numeric. Append some zeros 13498# because we need at least 4 digits for the hex conversion. 13499# map returns an iterator in Python 3.0 and a list in 2.x 13500minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 13501minverhex = 0 13502# xrange is not present in Python 3.0 and range returns an iterator 13503for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 13504sys.exit(sys.hexversion < minverhex)" 13505 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 13506 ($PYTHON -c "$prog") >&5 2>&5 13507 ac_status=$? 13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13509 (exit $ac_status); } 13510then : 13511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13512printf "%s\n" "yes" >&6; } 13513else $as_nop 13514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13515printf "%s\n" "no" >&6; } 13516 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 13517fi 13518 am_display_PYTHON=$PYTHON 13519 else 13520 # Otherwise, try each interpreter until we find one that satisfies 13521 # VERSION. 13522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5 13523printf %s "checking for a Python interpreter with version >= 2.6... " >&6; } 13524if test ${am_cv_pathless_PYTHON+y} 13525then : 13526 printf %s "(cached) " >&6 13527else $as_nop 13528 13529 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 13530 test "$am_cv_pathless_PYTHON" = none && break 13531 prog="import sys 13532# split strings by '.' and convert to numeric. Append some zeros 13533# because we need at least 4 digits for the hex conversion. 13534# map returns an iterator in Python 3.0 and a list in 2.x 13535minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 13536minverhex = 0 13537# xrange is not present in Python 3.0 and range returns an iterator 13538for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 13539sys.exit(sys.hexversion < minverhex)" 13540 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 13541 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 13542 ac_status=$? 13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13544 (exit $ac_status); } 13545then : 13546 break 13547fi 13548 done 13549fi 13550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 13551printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } 13552 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 13553 if test "$am_cv_pathless_PYTHON" = none; then 13554 PYTHON=: 13555 else 13556 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 13557set dummy $am_cv_pathless_PYTHON; ac_word=$2 13558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13559printf %s "checking for $ac_word... " >&6; } 13560if test ${ac_cv_path_PYTHON+y} 13561then : 13562 printf %s "(cached) " >&6 13563else $as_nop 13564 case $PYTHON in 13565 [\\/]* | ?:[\\/]*) 13566 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 13567 ;; 13568 *) 13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13570for as_dir in $PATH 13571do 13572 IFS=$as_save_IFS 13573 case $as_dir in #((( 13574 '') as_dir=./ ;; 13575 */) ;; 13576 *) as_dir=$as_dir/ ;; 13577 esac 13578 for ac_exec_ext in '' $ac_executable_extensions; do 13579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13580 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 13581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13582 break 2 13583 fi 13584done 13585 done 13586IFS=$as_save_IFS 13587 13588 ;; 13589esac 13590fi 13591PYTHON=$ac_cv_path_PYTHON 13592if test -n "$PYTHON"; then 13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 13594printf "%s\n" "$PYTHON" >&6; } 13595else 13596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13597printf "%s\n" "no" >&6; } 13598fi 13599 13600 13601 fi 13602 am_display_PYTHON=$am_cv_pathless_PYTHON 13603 fi 13604 13605 13606 if test "$PYTHON" = :; then 13607 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 13608 else 13609 13610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 13611printf %s "checking for $am_display_PYTHON version... " >&6; } 13612if test ${am_cv_python_version+y} 13613then : 13614 printf %s "(cached) " >&6 13615else $as_nop 13616 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` 13617fi 13618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 13619printf "%s\n" "$am_cv_python_version" >&6; } 13620 PYTHON_VERSION=$am_cv_python_version 13621 13622 13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 13624printf %s "checking for $am_display_PYTHON platform... " >&6; } 13625if test ${am_cv_python_platform+y} 13626then : 13627 printf %s "(cached) " >&6 13628else $as_nop 13629 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 13630fi 13631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 13632printf "%s\n" "$am_cv_python_platform" >&6; } 13633 PYTHON_PLATFORM=$am_cv_python_platform 13634 13635 13636 if test "x$prefix" = xNONE; then 13637 am__usable_prefix=$ac_default_prefix 13638 else 13639 am__usable_prefix=$prefix 13640 fi 13641 13642 # Allow user to request using sys.* values from Python, 13643 # instead of the GNU $prefix values. 13644 13645# Check whether --with-python-sys-prefix was given. 13646if test ${with_python_sys_prefix+y} 13647then : 13648 withval=$with_python_sys_prefix; am_use_python_sys=: 13649else $as_nop 13650 am_use_python_sys=false 13651fi 13652 13653 13654 # Allow user to override whatever the default Python prefix is. 13655 13656# Check whether --with-python_prefix was given. 13657if test ${with_python_prefix+y} 13658then : 13659 withval=$with_python_prefix; am_python_prefix_subst=$withval 13660 am_cv_python_prefix=$withval 13661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 13662printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 13663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 13664printf "%s\n" "$am_cv_python_prefix" >&6; } 13665else $as_nop 13666 13667 if $am_use_python_sys; then 13668 # using python sys.prefix value, not GNU 13669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 13670printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 13671if test ${am_cv_python_prefix+y} 13672then : 13673 printf %s "(cached) " >&6 13674else $as_nop 13675 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` 13676fi 13677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 13678printf "%s\n" "$am_cv_python_prefix" >&6; } 13679 13680 case $am_cv_python_prefix in 13681 $am__usable_prefix*) 13682 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 13683 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 13684 ;; 13685 *) 13686 am_python_prefix_subst=$am_cv_python_prefix 13687 ;; 13688 esac 13689 else # using GNU prefix value, not python sys.prefix 13690 am_python_prefix_subst='${prefix}' 13691 am_python_prefix=$am_python_prefix_subst 13692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 13693printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 13694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 13695printf "%s\n" "$am_python_prefix" >&6; } 13696 fi 13697fi 13698 13699 # Substituting python_prefix_subst value. 13700 PYTHON_PREFIX=$am_python_prefix_subst 13701 13702 13703 # emacs-page Now do it all over again for Python exec_prefix, but with yet 13704 # another conditional: fall back to regular prefix if that was specified. 13705 13706# Check whether --with-python_exec_prefix was given. 13707if test ${with_python_exec_prefix+y} 13708then : 13709 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 13710 am_cv_python_exec_prefix=$withval 13711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 13712printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 13714printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 13715else $as_nop 13716 13717 # no explicit --with-python_exec_prefix, but if 13718 # --with-python_prefix was given, use its value for python_exec_prefix too. 13719 if test -n "$with_python_prefix" 13720then : 13721 am_python_exec_prefix_subst=$with_python_prefix 13722 am_cv_python_exec_prefix=$with_python_prefix 13723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 13724printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 13726printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 13727else $as_nop 13728 13729 # Set am__usable_exec_prefix whether using GNU or Python values, 13730 # since we use that variable for pyexecdir. 13731 if test "x$exec_prefix" = xNONE; then 13732 am__usable_exec_prefix=$am__usable_prefix 13733 else 13734 am__usable_exec_prefix=$exec_prefix 13735 fi 13736 # 13737 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 13738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 13739printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 13740if test ${am_cv_python_exec_prefix+y} 13741then : 13742 printf %s "(cached) " >&6 13743else $as_nop 13744 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` 13745fi 13746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 13747printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 13748 case $am_cv_python_exec_prefix in 13749 $am__usable_exec_prefix*) 13750 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 13751 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 13752 ;; 13753 *) 13754 am_python_exec_prefix_subst=$am_cv_python_exec_prefix 13755 ;; 13756 esac 13757 else # using GNU $exec_prefix, not python sys.exec_prefix 13758 am_python_exec_prefix_subst='${exec_prefix}' 13759 am_python_exec_prefix=$am_python_exec_prefix_subst 13760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 13761printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 13763printf "%s\n" "$am_python_exec_prefix" >&6; } 13764 fi 13765fi 13766fi 13767 13768 # Substituting python_exec_prefix_subst. 13769 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 13770 13771 13772 # Factor out some code duplication into this shell variable. 13773 am_python_setup_sysconfig="\ 13774import sys 13775# Prefer sysconfig over distutils.sysconfig, for better compatibility 13776# with python 3.x. See automake bug#10227. 13777try: 13778 import sysconfig 13779except ImportError: 13780 can_use_sysconfig = 0 13781else: 13782 can_use_sysconfig = 1 13783# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 13784# <https://github.com/pypa/virtualenv/issues/118> 13785try: 13786 from platform import python_implementation 13787 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 13788 can_use_sysconfig = 0 13789except ImportError: 13790 pass" 13791 13792 13793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 13794printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 13795if test ${am_cv_python_pythondir+y} 13796then : 13797 printf %s "(cached) " >&6 13798else $as_nop 13799 if test "x$am_cv_python_prefix" = x; then 13800 am_py_prefix=$am__usable_prefix 13801 else 13802 am_py_prefix=$am_cv_python_prefix 13803 fi 13804 am_cv_python_pythondir=`$PYTHON -c " 13805$am_python_setup_sysconfig 13806if can_use_sysconfig: 13807 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 13808else: 13809 from distutils import sysconfig 13810 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 13811sys.stdout.write(sitedir)"` 13812 # 13813 case $am_cv_python_pythondir in 13814 $am_py_prefix*) 13815 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 13816 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 13817 ;; 13818 *) 13819 case $am_py_prefix in 13820 /usr|/System*) ;; 13821 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 13822 ;; 13823 esac 13824 ;; 13825 esac 13826 13827fi 13828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 13829printf "%s\n" "$am_cv_python_pythondir" >&6; } 13830 pythondir=$am_cv_python_pythondir 13831 13832 13833 pkgpythondir=\${pythondir}/$PACKAGE 13834 13835 13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 13837printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 13838if test ${am_cv_python_pyexecdir+y} 13839then : 13840 printf %s "(cached) " >&6 13841else $as_nop 13842 if test "x$am_cv_python_exec_prefix" = x; then 13843 am_py_exec_prefix=$am__usable_exec_prefix 13844 else 13845 am_py_exec_prefix=$am_cv_python_exec_prefix 13846 fi 13847 am_cv_python_pyexecdir=`$PYTHON -c " 13848$am_python_setup_sysconfig 13849if can_use_sysconfig: 13850 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) 13851else: 13852 from distutils import sysconfig 13853 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 13854sys.stdout.write(sitedir)"` 13855 # 13856 case $am_cv_python_pyexecdir in 13857 $am_py_exec_prefix*) 13858 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 13859 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 13860 ;; 13861 *) 13862 case $am_py_exec_prefix in 13863 /usr|/System*) ;; 13864 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 13865 ;; 13866 esac 13867 ;; 13868 esac 13869 13870fi 13871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 13872printf "%s\n" "$am_cv_python_pyexecdir" >&6; } 13873 pyexecdir=$am_cv_python_pyexecdir 13874 13875 13876 pkgpyexecdir=\${pyexecdir}/$PACKAGE 13877 13878 13879 13880 fi 13881 13882 13883# nm to check for leaking symbols in the static library 13884# Extract the first word of "nm", so it can be a program name with args. 13885set dummy nm; ac_word=$2 13886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13887printf %s "checking for $ac_word... " >&6; } 13888if test ${ac_cv_path_NM+y} 13889then : 13890 printf %s "(cached) " >&6 13891else $as_nop 13892 case $NM in 13893 [\\/]* | ?:[\\/]*) 13894 ac_cv_path_NM="$NM" # Let the user override the test with a path. 13895 ;; 13896 *) 13897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13898for as_dir in $PATH 13899do 13900 IFS=$as_save_IFS 13901 case $as_dir in #((( 13902 '') as_dir=./ ;; 13903 */) ;; 13904 *) as_dir=$as_dir/ ;; 13905 esac 13906 for ac_exec_ext in '' $ac_executable_extensions; do 13907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13908 ac_cv_path_NM="$as_dir$ac_word$ac_exec_ext" 13909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13910 break 2 13911 fi 13912done 13913 done 13914IFS=$as_save_IFS 13915 13916 ;; 13917esac 13918fi 13919NM=$ac_cv_path_NM 13920if test -n "$NM"; then 13921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 13922printf "%s\n" "$NM" >&6; } 13923else 13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13925printf "%s\n" "no" >&6; } 13926fi 13927 13928 13929 if test "x$NM" != "x"; then 13930 HAVE_NM_TRUE= 13931 HAVE_NM_FALSE='#' 13932else 13933 HAVE_NM_TRUE='#' 13934 HAVE_NM_FALSE= 13935fi 13936 13937if test "x$enable_static" = "xno"; then 13938 static_symbol_leaks_test="no - static build disabled" 13939else 13940 if test "x$NM" = "x"; then 13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nm not found - skipping symbol leak test" >&5 13942printf "%s\n" "$as_me: WARNING: nm not found - skipping symbol leak test" >&2;} 13943 have_nm="no" 13944 static_symbol_leaks_test="no - nm not found" 13945 else 13946 have_nm="yes" 13947 static_symbol_leaks_test="yes" 13948 fi 13949fi 13950 13951 if test "x$static_symbol_leaks_test" = "xyes"; then 13952 ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE= 13953 ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE='#' 13954else 13955 ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE='#' 13956 ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE= 13957fi 13958 13959 13960ac_config_files="$ac_config_files Makefile libevdev/Makefile doc/Makefile doc/libevdev.doxygen doc/libevdev.man tools/Makefile test/Makefile libevdev.pc" 13961 13962cat >confcache <<\_ACEOF 13963# This file is a shell script that caches the results of configure 13964# tests run on this system so they can be shared between configure 13965# scripts and configure runs, see configure's option --config-cache. 13966# It is not useful on other systems. If it contains results you don't 13967# want to keep, you may remove or edit it. 13968# 13969# config.status only pays attention to the cache file if you give it 13970# the --recheck option to rerun configure. 13971# 13972# `ac_cv_env_foo' variables (set or unset) will be overridden when 13973# loading this file, other *unset* `ac_cv_foo' will be assigned the 13974# following values. 13975 13976_ACEOF 13977 13978# The following way of writing the cache mishandles newlines in values, 13979# but we know of no workaround that is simple, portable, and efficient. 13980# So, we kill variables containing newlines. 13981# Ultrix sh set writes to stderr and can't be redirected directly, 13982# and sets the high bit in the cache file unless we assign to the vars. 13983( 13984 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13985 eval ac_val=\$$ac_var 13986 case $ac_val in #( 13987 *${as_nl}*) 13988 case $ac_var in #( 13989 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13990printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13991 esac 13992 case $ac_var in #( 13993 _ | IFS | as_nl) ;; #( 13994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13995 *) { eval $ac_var=; unset $ac_var;} ;; 13996 esac ;; 13997 esac 13998 done 13999 14000 (set) 2>&1 | 14001 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14002 *${as_nl}ac_space=\ *) 14003 # `set' does not quote correctly, so add quotes: double-quote 14004 # substitution turns \\\\ into \\, and sed turns \\ into \. 14005 sed -n \ 14006 "s/'/'\\\\''/g; 14007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14008 ;; #( 14009 *) 14010 # `set' quotes correctly as required by POSIX, so do not add quotes. 14011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14012 ;; 14013 esac | 14014 sort 14015) | 14016 sed ' 14017 /^ac_cv_env_/b end 14018 t clear 14019 :clear 14020 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 14021 t end 14022 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14023 :end' >>confcache 14024if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14025 if test -w "$cache_file"; then 14026 if test "x$cache_file" != "x/dev/null"; then 14027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14028printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 14029 if test ! -f "$cache_file" || test -h "$cache_file"; then 14030 cat confcache >"$cache_file" 14031 else 14032 case $cache_file in #( 14033 */* | ?:*) 14034 mv -f confcache "$cache_file"$$ && 14035 mv -f "$cache_file"$$ "$cache_file" ;; #( 14036 *) 14037 mv -f confcache "$cache_file" ;; 14038 esac 14039 fi 14040 fi 14041 else 14042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14043printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 14044 fi 14045fi 14046rm -f confcache 14047 14048test "x$prefix" = xNONE && prefix=$ac_default_prefix 14049# Let make expand exec_prefix. 14050test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14051 14052DEFS=-DHAVE_CONFIG_H 14053 14054ac_libobjs= 14055ac_ltlibobjs= 14056U= 14057for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14058 # 1. Remove the extension, and $U if already installed. 14059 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14060 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 14061 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14062 # will be set to the directory where LIBOBJS objects are built. 14063 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14064 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14065done 14066LIBOBJS=$ac_libobjs 14067 14068LTLIBOBJS=$ac_ltlibobjs 14069 14070 14071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14072printf %s "checking that generated files are newer than configure... " >&6; } 14073 if test -n "$am_sleep_pid"; then 14074 # Hide warnings about reused PIDs. 14075 wait $am_sleep_pid 2>/dev/null 14076 fi 14077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 14078printf "%s\n" "done" >&6; } 14079if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14080 as_fn_error $? "conditional \"AMDEP\" was never defined. 14081Usually this means the macro was only invoked conditionally." "$LINENO" 5 14082fi 14083if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14084 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14085Usually this means the macro was only invoked conditionally." "$LINENO" 5 14086fi 14087 if test -n "$EXEEXT"; then 14088 am__EXEEXT_TRUE= 14089 am__EXEEXT_FALSE='#' 14090else 14091 am__EXEEXT_TRUE='#' 14092 am__EXEEXT_FALSE= 14093fi 14094 14095if test -z "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then 14096 as_fn_error $? "conditional \"HAVE_VALGRIND\" was never defined. 14097Usually this means the macro was only invoked conditionally." "$LINENO" 5 14098fi 14099if test -z "${ENABLE_RUNTIME_TESTS_TRUE}" && test -z "${ENABLE_RUNTIME_TESTS_FALSE}"; then 14100 as_fn_error $? "conditional \"ENABLE_RUNTIME_TESTS\" was never defined. 14101Usually this means the macro was only invoked conditionally." "$LINENO" 5 14102fi 14103if test -z "${ENABLE_STATIC_LINK_TEST_TRUE}" && test -z "${ENABLE_STATIC_LINK_TEST_FALSE}"; then 14104 as_fn_error $? "conditional \"ENABLE_STATIC_LINK_TEST\" was never defined. 14105Usually this means the macro was only invoked conditionally." "$LINENO" 5 14106fi 14107if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 14108 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 14109Usually this means the macro was only invoked conditionally." "$LINENO" 5 14110fi 14111if test -z "${GCOV_ENABLED_TRUE}" && test -z "${GCOV_ENABLED_FALSE}"; then 14112 as_fn_error $? "conditional \"GCOV_ENABLED\" was never defined. 14113Usually this means the macro was only invoked conditionally." "$LINENO" 5 14114fi 14115if test -z "${HAVE_NM_TRUE}" && test -z "${HAVE_NM_FALSE}"; then 14116 as_fn_error $? "conditional \"HAVE_NM\" was never defined. 14117Usually this means the macro was only invoked conditionally." "$LINENO" 5 14118fi 14119if test -z "${ENABLE_STATIC_SYMBOL_LEAKS_TEST_TRUE}" && test -z "${ENABLE_STATIC_SYMBOL_LEAKS_TEST_FALSE}"; then 14120 as_fn_error $? "conditional \"ENABLE_STATIC_SYMBOL_LEAKS_TEST\" was never defined. 14121Usually this means the macro was only invoked conditionally." "$LINENO" 5 14122fi 14123 14124: "${CONFIG_STATUS=./config.status}" 14125ac_write_fail=0 14126ac_clean_files_save=$ac_clean_files 14127ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14129printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 14130as_write_fail=0 14131cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14132#! $SHELL 14133# Generated by $as_me. 14134# Run this file to recreate the current configuration. 14135# Compiler output produced by configure, useful for debugging 14136# configure, is in config.log if it exists. 14137 14138debug=false 14139ac_cs_recheck=false 14140ac_cs_silent=false 14141 14142SHELL=\${CONFIG_SHELL-$SHELL} 14143export SHELL 14144_ASEOF 14145cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14146## -------------------- ## 14147## M4sh Initialization. ## 14148## -------------------- ## 14149 14150# Be more Bourne compatible 14151DUALCASE=1; export DUALCASE # for MKS sh 14152as_nop=: 14153if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 14154then : 14155 emulate sh 14156 NULLCMD=: 14157 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14158 # is contrary to our usage. Disable this feature. 14159 alias -g '${1+"$@"}'='"$@"' 14160 setopt NO_GLOB_SUBST 14161else $as_nop 14162 case `(set -o) 2>/dev/null` in #( 14163 *posix*) : 14164 set -o posix ;; #( 14165 *) : 14166 ;; 14167esac 14168fi 14169 14170 14171 14172# Reset variables that may have inherited troublesome values from 14173# the environment. 14174 14175# IFS needs to be set, to space, tab, and newline, in precisely that order. 14176# (If _AS_PATH_WALK were called with IFS unset, it would have the 14177# side effect of setting IFS to empty, thus disabling word splitting.) 14178# Quoting is to prevent editors from complaining about space-tab. 14179as_nl=' 14180' 14181export as_nl 14182IFS=" "" $as_nl" 14183 14184PS1='$ ' 14185PS2='> ' 14186PS4='+ ' 14187 14188# Ensure predictable behavior from utilities with locale-dependent output. 14189LC_ALL=C 14190export LC_ALL 14191LANGUAGE=C 14192export LANGUAGE 14193 14194# We cannot yet rely on "unset" to work, but we need these variables 14195# to be unset--not just set to an empty or harmless value--now, to 14196# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 14197# also avoids known problems related to "unset" and subshell syntax 14198# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 14199for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 14200do eval test \${$as_var+y} \ 14201 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14202done 14203 14204# Ensure that fds 0, 1, and 2 are open. 14205if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 14206if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 14207if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 14208 14209# The user is always right. 14210if ${PATH_SEPARATOR+false} :; then 14211 PATH_SEPARATOR=: 14212 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14213 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14214 PATH_SEPARATOR=';' 14215 } 14216fi 14217 14218 14219# Find who we are. Look in the path if we contain no directory separator. 14220as_myself= 14221case $0 in #(( 14222 *[\\/]* ) as_myself=$0 ;; 14223 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14224for as_dir in $PATH 14225do 14226 IFS=$as_save_IFS 14227 case $as_dir in #((( 14228 '') as_dir=./ ;; 14229 */) ;; 14230 *) as_dir=$as_dir/ ;; 14231 esac 14232 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 14233 done 14234IFS=$as_save_IFS 14235 14236 ;; 14237esac 14238# We did not find ourselves, most probably we were run as `sh COMMAND' 14239# in which case we are not to be found in the path. 14240if test "x$as_myself" = x; then 14241 as_myself=$0 14242fi 14243if test ! -f "$as_myself"; then 14244 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14245 exit 1 14246fi 14247 14248 14249 14250# as_fn_error STATUS ERROR [LINENO LOG_FD] 14251# ---------------------------------------- 14252# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14253# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14254# script with STATUS, using 1 if that was 0. 14255as_fn_error () 14256{ 14257 as_status=$1; test $as_status -eq 0 && as_status=1 14258 if test "$4"; then 14259 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14261 fi 14262 printf "%s\n" "$as_me: error: $2" >&2 14263 as_fn_exit $as_status 14264} # as_fn_error 14265 14266 14267 14268# as_fn_set_status STATUS 14269# ----------------------- 14270# Set $? to STATUS, without forking. 14271as_fn_set_status () 14272{ 14273 return $1 14274} # as_fn_set_status 14275 14276# as_fn_exit STATUS 14277# ----------------- 14278# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14279as_fn_exit () 14280{ 14281 set +e 14282 as_fn_set_status $1 14283 exit $1 14284} # as_fn_exit 14285 14286# as_fn_unset VAR 14287# --------------- 14288# Portably unset VAR. 14289as_fn_unset () 14290{ 14291 { eval $1=; unset $1;} 14292} 14293as_unset=as_fn_unset 14294 14295# as_fn_append VAR VALUE 14296# ---------------------- 14297# Append the text in VALUE to the end of the definition contained in VAR. Take 14298# advantage of any shell optimizations that allow amortized linear growth over 14299# repeated appends, instead of the typical quadratic growth present in naive 14300# implementations. 14301if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 14302then : 14303 eval 'as_fn_append () 14304 { 14305 eval $1+=\$2 14306 }' 14307else $as_nop 14308 as_fn_append () 14309 { 14310 eval $1=\$$1\$2 14311 } 14312fi # as_fn_append 14313 14314# as_fn_arith ARG... 14315# ------------------ 14316# Perform arithmetic evaluation on the ARGs, and store the result in the 14317# global $as_val. Take advantage of shells that can avoid forks. The arguments 14318# must be portable across $(()) and expr. 14319if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 14320then : 14321 eval 'as_fn_arith () 14322 { 14323 as_val=$(( $* )) 14324 }' 14325else $as_nop 14326 as_fn_arith () 14327 { 14328 as_val=`expr "$@" || test $? -eq 1` 14329 } 14330fi # as_fn_arith 14331 14332 14333if expr a : '\(a\)' >/dev/null 2>&1 && 14334 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14335 as_expr=expr 14336else 14337 as_expr=false 14338fi 14339 14340if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14341 as_basename=basename 14342else 14343 as_basename=false 14344fi 14345 14346if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14347 as_dirname=dirname 14348else 14349 as_dirname=false 14350fi 14351 14352as_me=`$as_basename -- "$0" || 14353$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14354 X"$0" : 'X\(//\)$' \| \ 14355 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14356printf "%s\n" X/"$0" | 14357 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14358 s//\1/ 14359 q 14360 } 14361 /^X\/\(\/\/\)$/{ 14362 s//\1/ 14363 q 14364 } 14365 /^X\/\(\/\).*/{ 14366 s//\1/ 14367 q 14368 } 14369 s/.*/./; q'` 14370 14371# Avoid depending upon Character Ranges. 14372as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14373as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14374as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14375as_cr_digits='0123456789' 14376as_cr_alnum=$as_cr_Letters$as_cr_digits 14377 14378 14379# Determine whether it's possible to make 'echo' print without a newline. 14380# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 14381# for compatibility with existing Makefiles. 14382ECHO_C= ECHO_N= ECHO_T= 14383case `echo -n x` in #((((( 14384-n*) 14385 case `echo 'xy\c'` in 14386 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14387 xy) ECHO_C='\c';; 14388 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14389 ECHO_T=' ';; 14390 esac;; 14391*) 14392 ECHO_N='-n';; 14393esac 14394 14395# For backward compatibility with old third-party macros, we provide 14396# the shell variables $as_echo and $as_echo_n. New code should use 14397# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 14398as_echo='printf %s\n' 14399as_echo_n='printf %s' 14400 14401rm -f conf$$ conf$$.exe conf$$.file 14402if test -d conf$$.dir; then 14403 rm -f conf$$.dir/conf$$.file 14404else 14405 rm -f conf$$.dir 14406 mkdir conf$$.dir 2>/dev/null 14407fi 14408if (echo >conf$$.file) 2>/dev/null; then 14409 if ln -s conf$$.file conf$$ 2>/dev/null; then 14410 as_ln_s='ln -s' 14411 # ... but there are two gotchas: 14412 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14413 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14414 # In both cases, we have to default to `cp -pR'. 14415 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14416 as_ln_s='cp -pR' 14417 elif ln conf$$.file conf$$ 2>/dev/null; then 14418 as_ln_s=ln 14419 else 14420 as_ln_s='cp -pR' 14421 fi 14422else 14423 as_ln_s='cp -pR' 14424fi 14425rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14426rmdir conf$$.dir 2>/dev/null 14427 14428 14429# as_fn_mkdir_p 14430# ------------- 14431# Create "$as_dir" as a directory, including parents if necessary. 14432as_fn_mkdir_p () 14433{ 14434 14435 case $as_dir in #( 14436 -*) as_dir=./$as_dir;; 14437 esac 14438 test -d "$as_dir" || eval $as_mkdir_p || { 14439 as_dirs= 14440 while :; do 14441 case $as_dir in #( 14442 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14443 *) as_qdir=$as_dir;; 14444 esac 14445 as_dirs="'$as_qdir' $as_dirs" 14446 as_dir=`$as_dirname -- "$as_dir" || 14447$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14448 X"$as_dir" : 'X\(//\)[^/]' \| \ 14449 X"$as_dir" : 'X\(//\)$' \| \ 14450 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14451printf "%s\n" X"$as_dir" | 14452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14453 s//\1/ 14454 q 14455 } 14456 /^X\(\/\/\)[^/].*/{ 14457 s//\1/ 14458 q 14459 } 14460 /^X\(\/\/\)$/{ 14461 s//\1/ 14462 q 14463 } 14464 /^X\(\/\).*/{ 14465 s//\1/ 14466 q 14467 } 14468 s/.*/./; q'` 14469 test -d "$as_dir" && break 14470 done 14471 test -z "$as_dirs" || eval "mkdir $as_dirs" 14472 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14473 14474 14475} # as_fn_mkdir_p 14476if mkdir -p . 2>/dev/null; then 14477 as_mkdir_p='mkdir -p "$as_dir"' 14478else 14479 test -d ./-p && rmdir ./-p 14480 as_mkdir_p=false 14481fi 14482 14483 14484# as_fn_executable_p FILE 14485# ----------------------- 14486# Test if FILE is an executable regular file. 14487as_fn_executable_p () 14488{ 14489 test -f "$1" && test -x "$1" 14490} # as_fn_executable_p 14491as_test_x='test -x' 14492as_executable_p=as_fn_executable_p 14493 14494# Sed expression to map a string onto a valid CPP name. 14495as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14496 14497# Sed expression to map a string onto a valid variable name. 14498as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14499 14500 14501exec 6>&1 14502## ----------------------------------- ## 14503## Main body of $CONFIG_STATUS script. ## 14504## ----------------------------------- ## 14505_ASEOF 14506test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14507 14508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14509# Save the log message, to keep $0 and so on meaningful, and to 14510# report actual input values of CONFIG_FILES etc. instead of their 14511# values after options handling. 14512ac_log=" 14513This file was extended by libevdev $as_me 1.13.0, which was 14514generated by GNU Autoconf 2.71. Invocation command line was 14515 14516 CONFIG_FILES = $CONFIG_FILES 14517 CONFIG_HEADERS = $CONFIG_HEADERS 14518 CONFIG_LINKS = $CONFIG_LINKS 14519 CONFIG_COMMANDS = $CONFIG_COMMANDS 14520 $ $0 $@ 14521 14522on `(hostname || uname -n) 2>/dev/null | sed 1q` 14523" 14524 14525_ACEOF 14526 14527case $ac_config_files in *" 14528"*) set x $ac_config_files; shift; ac_config_files=$*;; 14529esac 14530 14531case $ac_config_headers in *" 14532"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14533esac 14534 14535 14536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14537# Files that config.status was made for. 14538config_files="$ac_config_files" 14539config_headers="$ac_config_headers" 14540config_commands="$ac_config_commands" 14541 14542_ACEOF 14543 14544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14545ac_cs_usage="\ 14546\`$as_me' instantiates files and other configuration actions 14547from templates according to the current configuration. Unless the files 14548and actions are specified as TAGs, all are instantiated by default. 14549 14550Usage: $0 [OPTION]... [TAG]... 14551 14552 -h, --help print this help, then exit 14553 -V, --version print version number and configuration settings, then exit 14554 --config print configuration, then exit 14555 -q, --quiet, --silent 14556 do not print progress messages 14557 -d, --debug don't remove temporary files 14558 --recheck update $as_me by reconfiguring in the same conditions 14559 --file=FILE[:TEMPLATE] 14560 instantiate the configuration file FILE 14561 --header=FILE[:TEMPLATE] 14562 instantiate the configuration header FILE 14563 14564Configuration files: 14565$config_files 14566 14567Configuration headers: 14568$config_headers 14569 14570Configuration commands: 14571$config_commands 14572 14573Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=libevdev>. 14574libevdev home page: <http://freedesktop.org/wiki/Software/libevdev/>." 14575 14576_ACEOF 14577ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 14578ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 14579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14580ac_cs_config='$ac_cs_config_escaped' 14581ac_cs_version="\\ 14582libevdev config.status 1.13.0 14583configured by $0, generated by GNU Autoconf 2.71, 14584 with options \\"\$ac_cs_config\\" 14585 14586Copyright (C) 2021 Free Software Foundation, Inc. 14587This config.status script is free software; the Free Software Foundation 14588gives unlimited permission to copy, distribute and modify it." 14589 14590ac_pwd='$ac_pwd' 14591srcdir='$srcdir' 14592INSTALL='$INSTALL' 14593MKDIR_P='$MKDIR_P' 14594AWK='$AWK' 14595test -n "\$AWK" || AWK=awk 14596_ACEOF 14597 14598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14599# The default lists apply if the user does not specify any file. 14600ac_need_defaults=: 14601while test $# != 0 14602do 14603 case $1 in 14604 --*=?*) 14605 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14606 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14607 ac_shift=: 14608 ;; 14609 --*=) 14610 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14611 ac_optarg= 14612 ac_shift=: 14613 ;; 14614 *) 14615 ac_option=$1 14616 ac_optarg=$2 14617 ac_shift=shift 14618 ;; 14619 esac 14620 14621 case $ac_option in 14622 # Handling of the options. 14623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14624 ac_cs_recheck=: ;; 14625 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14626 printf "%s\n" "$ac_cs_version"; exit ;; 14627 --config | --confi | --conf | --con | --co | --c ) 14628 printf "%s\n" "$ac_cs_config"; exit ;; 14629 --debug | --debu | --deb | --de | --d | -d ) 14630 debug=: ;; 14631 --file | --fil | --fi | --f ) 14632 $ac_shift 14633 case $ac_optarg in 14634 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14635 '') as_fn_error $? "missing file argument" ;; 14636 esac 14637 as_fn_append CONFIG_FILES " '$ac_optarg'" 14638 ac_need_defaults=false;; 14639 --header | --heade | --head | --hea ) 14640 $ac_shift 14641 case $ac_optarg in 14642 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14643 esac 14644 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14645 ac_need_defaults=false;; 14646 --he | --h) 14647 # Conflict between --help and --header 14648 as_fn_error $? "ambiguous option: \`$1' 14649Try \`$0 --help' for more information.";; 14650 --help | --hel | -h ) 14651 printf "%s\n" "$ac_cs_usage"; exit ;; 14652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14653 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14654 ac_cs_silent=: ;; 14655 14656 # This is an error. 14657 -*) as_fn_error $? "unrecognized option: \`$1' 14658Try \`$0 --help' for more information." ;; 14659 14660 *) as_fn_append ac_config_targets " $1" 14661 ac_need_defaults=false ;; 14662 14663 esac 14664 shift 14665done 14666 14667ac_configure_extra_args= 14668 14669if $ac_cs_silent; then 14670 exec 6>/dev/null 14671 ac_configure_extra_args="$ac_configure_extra_args --silent" 14672fi 14673 14674_ACEOF 14675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14676if \$ac_cs_recheck; then 14677 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14678 shift 14679 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 14680 CONFIG_SHELL='$SHELL' 14681 export CONFIG_SHELL 14682 exec "\$@" 14683fi 14684 14685_ACEOF 14686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14687exec 5>>config.log 14688{ 14689 echo 14690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14691## Running $as_me. ## 14692_ASBOX 14693 printf "%s\n" "$ac_log" 14694} >&5 14695 14696_ACEOF 14697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14698# 14699# INIT-COMMANDS 14700# 14701AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14702 14703 14704# The HP-UX ksh and POSIX shell print the target directory to stdout 14705# if CDPATH is set. 14706(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14707 14708sed_quote_subst='$sed_quote_subst' 14709double_quote_subst='$double_quote_subst' 14710delay_variable_subst='$delay_variable_subst' 14711macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14712macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14713enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14714enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14715pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14716enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14717shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14718SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14719ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14720PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14721host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14722host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14723host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14724build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14725build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14726build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14727SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14728Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14729GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14730EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14731FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14732LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14733NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14734LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14735max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14736ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14737exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14738lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14739lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14740lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14741lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14742lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14743reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14744reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14745FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 14746OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14747deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14748file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14749file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14750want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14751DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14752sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14753AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14754lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 14755AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14756archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14757STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14758RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14759old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14760old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14761old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14762lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14763CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14764CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14765compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14766GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14767lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14768lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14769lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14770lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14771lt_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"`' 14772lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14773nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14774lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14775lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14776objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14777MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14778lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14779lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14780lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14781lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14782lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14783need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14784MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14785DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14786NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14787LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14788OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14789OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14790libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14791shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14792extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14793archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14794enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14795export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14796whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14797compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14798old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14799old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14800archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14801archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14802module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14803module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14804with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14805allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14806no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14807hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14808hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14809hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14810hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14811hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14812hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14813hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14814inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14815link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14816always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14817export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14818exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14819include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14820prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14821postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14822file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14823variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14824need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14825need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14826version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14827runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14828shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14829shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14830libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14831library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14832soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14833install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14834postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14835postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14836finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14837finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14838hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14839sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14840configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14841configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14842hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14843enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14844enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14845enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14846old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14847striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14848 14849LTCC='$LTCC' 14850LTCFLAGS='$LTCFLAGS' 14851compiler='$compiler_DEFAULT' 14852 14853# A function that is used when there is no print builtin or printf. 14854func_fallback_echo () 14855{ 14856 eval 'cat <<_LTECHO_EOF 14857\$1 14858_LTECHO_EOF' 14859} 14860 14861# Quote evaled strings. 14862for var in SHELL \ 14863ECHO \ 14864PATH_SEPARATOR \ 14865SED \ 14866GREP \ 14867EGREP \ 14868FGREP \ 14869LD \ 14870NM \ 14871LN_S \ 14872lt_SP2NL \ 14873lt_NL2SP \ 14874reload_flag \ 14875FILECMD \ 14876OBJDUMP \ 14877deplibs_check_method \ 14878file_magic_cmd \ 14879file_magic_glob \ 14880want_nocaseglob \ 14881DLLTOOL \ 14882sharedlib_from_linklib_cmd \ 14883AR \ 14884archiver_list_spec \ 14885STRIP \ 14886RANLIB \ 14887CC \ 14888CFLAGS \ 14889compiler \ 14890lt_cv_sys_global_symbol_pipe \ 14891lt_cv_sys_global_symbol_to_cdecl \ 14892lt_cv_sys_global_symbol_to_import \ 14893lt_cv_sys_global_symbol_to_c_name_address \ 14894lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14895lt_cv_nm_interface \ 14896nm_file_list_spec \ 14897lt_cv_truncate_bin \ 14898lt_prog_compiler_no_builtin_flag \ 14899lt_prog_compiler_pic \ 14900lt_prog_compiler_wl \ 14901lt_prog_compiler_static \ 14902lt_cv_prog_compiler_c_o \ 14903need_locks \ 14904MANIFEST_TOOL \ 14905DSYMUTIL \ 14906NMEDIT \ 14907LIPO \ 14908OTOOL \ 14909OTOOL64 \ 14910shrext_cmds \ 14911export_dynamic_flag_spec \ 14912whole_archive_flag_spec \ 14913compiler_needs_object \ 14914with_gnu_ld \ 14915allow_undefined_flag \ 14916no_undefined_flag \ 14917hardcode_libdir_flag_spec \ 14918hardcode_libdir_separator \ 14919exclude_expsyms \ 14920include_expsyms \ 14921file_list_spec \ 14922variables_saved_for_relink \ 14923libname_spec \ 14924library_names_spec \ 14925soname_spec \ 14926install_override_mode \ 14927finish_eval \ 14928old_striplib \ 14929striplib; do 14930 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14931 *[\\\\\\\`\\"\\\$]*) 14932 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14933 ;; 14934 *) 14935 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14936 ;; 14937 esac 14938done 14939 14940# Double-quote double-evaled strings. 14941for var in reload_cmds \ 14942old_postinstall_cmds \ 14943old_postuninstall_cmds \ 14944old_archive_cmds \ 14945extract_expsyms_cmds \ 14946old_archive_from_new_cmds \ 14947old_archive_from_expsyms_cmds \ 14948archive_cmds \ 14949archive_expsym_cmds \ 14950module_cmds \ 14951module_expsym_cmds \ 14952export_symbols_cmds \ 14953prelink_cmds \ 14954postlink_cmds \ 14955postinstall_cmds \ 14956postuninstall_cmds \ 14957finish_cmds \ 14958sys_lib_search_path_spec \ 14959configure_time_dlsearch_path \ 14960configure_time_lt_sys_library_path; do 14961 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14962 *[\\\\\\\`\\"\\\$]*) 14963 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14964 ;; 14965 *) 14966 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14967 ;; 14968 esac 14969done 14970 14971ac_aux_dir='$ac_aux_dir' 14972 14973# See if we are running on zsh, and set the options that allow our 14974# commands through without removal of \ escapes INIT. 14975if test -n "\${ZSH_VERSION+set}"; then 14976 setopt NO_GLOB_SUBST 14977fi 14978 14979 14980 PACKAGE='$PACKAGE' 14981 VERSION='$VERSION' 14982 RM='$RM' 14983 ofile='$ofile' 14984 14985 14986 14987 14988_ACEOF 14989 14990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14991 14992# Handling of arguments. 14993for ac_config_target in $ac_config_targets 14994do 14995 case $ac_config_target in 14996 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14997 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14998 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14999 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15000 "libevdev/Makefile") CONFIG_FILES="$CONFIG_FILES libevdev/Makefile" ;; 15001 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 15002 "doc/libevdev.doxygen") CONFIG_FILES="$CONFIG_FILES doc/libevdev.doxygen" ;; 15003 "doc/libevdev.man") CONFIG_FILES="$CONFIG_FILES doc/libevdev.man" ;; 15004 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 15005 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 15006 "libevdev.pc") CONFIG_FILES="$CONFIG_FILES libevdev.pc" ;; 15007 15008 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15009 esac 15010done 15011 15012 15013# If the user did not use the arguments to specify the items to instantiate, 15014# then the envvar interface is used. Set only those that are not. 15015# We use the long form for the default assignment because of an extremely 15016# bizarre bug on SunOS 4.1.3. 15017if $ac_need_defaults; then 15018 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 15019 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 15020 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 15021fi 15022 15023# Have a temporary directory for convenience. Make it in the build tree 15024# simply because there is no reason against having it here, and in addition, 15025# creating and moving files from /tmp can sometimes cause problems. 15026# Hook for its removal unless debugging. 15027# Note that there is a small window in which the directory will not be cleaned: 15028# after its creation but before its name has been assigned to `$tmp'. 15029$debug || 15030{ 15031 tmp= ac_tmp= 15032 trap 'exit_status=$? 15033 : "${ac_tmp:=$tmp}" 15034 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15035' 0 15036 trap 'as_fn_exit 1' 1 2 13 15 15037} 15038# Create a (secure) tmp directory for tmp files. 15039 15040{ 15041 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15042 test -d "$tmp" 15043} || 15044{ 15045 tmp=./conf$$-$RANDOM 15046 (umask 077 && mkdir "$tmp") 15047} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15048ac_tmp=$tmp 15049 15050# Set up the scripts for CONFIG_FILES section. 15051# No need to generate them if there are no CONFIG_FILES. 15052# This happens for instance with `./config.status config.h'. 15053if test -n "$CONFIG_FILES"; then 15054 15055 15056ac_cr=`echo X | tr X '\015'` 15057# On cygwin, bash can eat \r inside `` if the user requested igncr. 15058# But we know of no other shell where ac_cr would be empty at this 15059# point, so we can use a bashism as a fallback. 15060if test "x$ac_cr" = x; then 15061 eval ac_cr=\$\'\\r\' 15062fi 15063ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15064if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15065 ac_cs_awk_cr='\\r' 15066else 15067 ac_cs_awk_cr=$ac_cr 15068fi 15069 15070echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15071_ACEOF 15072 15073 15074{ 15075 echo "cat >conf$$subs.awk <<_ACEOF" && 15076 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15077 echo "_ACEOF" 15078} >conf$$subs.sh || 15079 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15080ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15081ac_delim='%!_!# ' 15082for ac_last_try in false false false false false :; do 15083 . ./conf$$subs.sh || 15084 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15085 15086 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15087 if test $ac_delim_n = $ac_delim_num; then 15088 break 15089 elif $ac_last_try; then 15090 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15091 else 15092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15093 fi 15094done 15095rm -f conf$$subs.sh 15096 15097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15098cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15099_ACEOF 15100sed -n ' 15101h 15102s/^/S["/; s/!.*/"]=/ 15103p 15104g 15105s/^[^!]*!// 15106:repl 15107t repl 15108s/'"$ac_delim"'$// 15109t delim 15110:nl 15111h 15112s/\(.\{148\}\)..*/\1/ 15113t more1 15114s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15115p 15116n 15117b repl 15118:more1 15119s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15120p 15121g 15122s/.\{148\}// 15123t nl 15124:delim 15125h 15126s/\(.\{148\}\)..*/\1/ 15127t more2 15128s/["\\]/\\&/g; s/^/"/; s/$/"/ 15129p 15130b 15131:more2 15132s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15133p 15134g 15135s/.\{148\}// 15136t delim 15137' <conf$$subs.awk | sed ' 15138/^[^""]/{ 15139 N 15140 s/\n// 15141} 15142' >>$CONFIG_STATUS || ac_write_fail=1 15143rm -f conf$$subs.awk 15144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15145_ACAWK 15146cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15147 for (key in S) S_is_set[key] = 1 15148 FS = "" 15149 15150} 15151{ 15152 line = $ 0 15153 nfields = split(line, field, "@") 15154 substed = 0 15155 len = length(field[1]) 15156 for (i = 2; i < nfields; i++) { 15157 key = field[i] 15158 keylen = length(key) 15159 if (S_is_set[key]) { 15160 value = S[key] 15161 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15162 len += length(value) + length(field[++i]) 15163 substed = 1 15164 } else 15165 len += 1 + keylen 15166 } 15167 15168 print line 15169} 15170 15171_ACAWK 15172_ACEOF 15173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15174if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15175 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15176else 15177 cat 15178fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15179 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15180_ACEOF 15181 15182# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15183# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15184# trailing colons and then remove the whole line if VPATH becomes empty 15185# (actually we leave an empty line to preserve line numbers). 15186if test "x$srcdir" = x.; then 15187 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15188h 15189s/// 15190s/^/:/ 15191s/[ ]*$/:/ 15192s/:\$(srcdir):/:/g 15193s/:\${srcdir}:/:/g 15194s/:@srcdir@:/:/g 15195s/^:*// 15196s/:*$// 15197x 15198s/\(=[ ]*\).*/\1/ 15199G 15200s/\n// 15201s/^[^=]*=[ ]*$// 15202}' 15203fi 15204 15205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15206fi # test -n "$CONFIG_FILES" 15207 15208# Set up the scripts for CONFIG_HEADERS section. 15209# No need to generate them if there are no CONFIG_HEADERS. 15210# This happens for instance with `./config.status Makefile'. 15211if test -n "$CONFIG_HEADERS"; then 15212cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15213BEGIN { 15214_ACEOF 15215 15216# Transform confdefs.h into an awk script `defines.awk', embedded as 15217# here-document in config.status, that substitutes the proper values into 15218# config.h.in to produce config.h. 15219 15220# Create a delimiter string that does not exist in confdefs.h, to ease 15221# handling of long lines. 15222ac_delim='%!_!# ' 15223for ac_last_try in false false :; do 15224 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15225 if test -z "$ac_tt"; then 15226 break 15227 elif $ac_last_try; then 15228 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15229 else 15230 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15231 fi 15232done 15233 15234# For the awk script, D is an array of macro values keyed by name, 15235# likewise P contains macro parameters if any. Preserve backslash 15236# newline sequences. 15237 15238ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15239sed -n ' 15240s/.\{148\}/&'"$ac_delim"'/g 15241t rset 15242:rset 15243s/^[ ]*#[ ]*define[ ][ ]*/ / 15244t def 15245d 15246:def 15247s/\\$// 15248t bsnl 15249s/["\\]/\\&/g 15250s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15251D["\1"]=" \3"/p 15252s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15253d 15254:bsnl 15255s/["\\]/\\&/g 15256s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15257D["\1"]=" \3\\\\\\n"\\/p 15258t cont 15259s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15260t cont 15261d 15262:cont 15263n 15264s/.\{148\}/&'"$ac_delim"'/g 15265t clear 15266:clear 15267s/\\$// 15268t bsnlc 15269s/["\\]/\\&/g; s/^/"/; s/$/"/p 15270d 15271:bsnlc 15272s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15273b cont 15274' <confdefs.h | sed ' 15275s/'"$ac_delim"'/"\\\ 15276"/g' >>$CONFIG_STATUS || ac_write_fail=1 15277 15278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15279 for (key in D) D_is_set[key] = 1 15280 FS = "" 15281} 15282/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15283 line = \$ 0 15284 split(line, arg, " ") 15285 if (arg[1] == "#") { 15286 defundef = arg[2] 15287 mac1 = arg[3] 15288 } else { 15289 defundef = substr(arg[1], 2) 15290 mac1 = arg[2] 15291 } 15292 split(mac1, mac2, "(") #) 15293 macro = mac2[1] 15294 prefix = substr(line, 1, index(line, defundef) - 1) 15295 if (D_is_set[macro]) { 15296 # Preserve the white space surrounding the "#". 15297 print prefix "define", macro P[macro] D[macro] 15298 next 15299 } else { 15300 # Replace #undef with comments. This is necessary, for example, 15301 # in the case of _POSIX_SOURCE, which is predefined and required 15302 # on some systems where configure will not decide to define it. 15303 if (defundef == "undef") { 15304 print "/*", prefix defundef, macro, "*/" 15305 next 15306 } 15307 } 15308} 15309{ print } 15310_ACAWK 15311_ACEOF 15312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15313 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15314fi # test -n "$CONFIG_HEADERS" 15315 15316 15317eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15318shift 15319for ac_tag 15320do 15321 case $ac_tag in 15322 :[FHLC]) ac_mode=$ac_tag; continue;; 15323 esac 15324 case $ac_mode$ac_tag in 15325 :[FHL]*:*);; 15326 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15327 :[FH]-) ac_tag=-:-;; 15328 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15329 esac 15330 ac_save_IFS=$IFS 15331 IFS=: 15332 set x $ac_tag 15333 IFS=$ac_save_IFS 15334 shift 15335 ac_file=$1 15336 shift 15337 15338 case $ac_mode in 15339 :L) ac_source=$1;; 15340 :[FH]) 15341 ac_file_inputs= 15342 for ac_f 15343 do 15344 case $ac_f in 15345 -) ac_f="$ac_tmp/stdin";; 15346 *) # Look for the file first in the build tree, then in the source tree 15347 # (if the path is not absolute). The absolute path cannot be DOS-style, 15348 # because $ac_f cannot contain `:'. 15349 test -f "$ac_f" || 15350 case $ac_f in 15351 [\\/$]*) false;; 15352 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15353 esac || 15354 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15355 esac 15356 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15357 as_fn_append ac_file_inputs " '$ac_f'" 15358 done 15359 15360 # Let's still pretend it is `configure' which instantiates (i.e., don't 15361 # use $as_me), people would be surprised to read: 15362 # /* config.h. Generated by config.status. */ 15363 configure_input='Generated from '` 15364 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15365 `' by configure.' 15366 if test x"$ac_file" != x-; then 15367 configure_input="$ac_file. $configure_input" 15368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15369printf "%s\n" "$as_me: creating $ac_file" >&6;} 15370 fi 15371 # Neutralize special characters interpreted by sed in replacement strings. 15372 case $configure_input in #( 15373 *\&* | *\|* | *\\* ) 15374 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 15375 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15376 *) ac_sed_conf_input=$configure_input;; 15377 esac 15378 15379 case $ac_tag in 15380 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15381 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15382 esac 15383 ;; 15384 esac 15385 15386 ac_dir=`$as_dirname -- "$ac_file" || 15387$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15388 X"$ac_file" : 'X\(//\)[^/]' \| \ 15389 X"$ac_file" : 'X\(//\)$' \| \ 15390 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15391printf "%s\n" X"$ac_file" | 15392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15393 s//\1/ 15394 q 15395 } 15396 /^X\(\/\/\)[^/].*/{ 15397 s//\1/ 15398 q 15399 } 15400 /^X\(\/\/\)$/{ 15401 s//\1/ 15402 q 15403 } 15404 /^X\(\/\).*/{ 15405 s//\1/ 15406 q 15407 } 15408 s/.*/./; q'` 15409 as_dir="$ac_dir"; as_fn_mkdir_p 15410 ac_builddir=. 15411 15412case "$ac_dir" in 15413.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15414*) 15415 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 15416 # A ".." for each directory in $ac_dir_suffix. 15417 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15418 case $ac_top_builddir_sub in 15419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15421 esac ;; 15422esac 15423ac_abs_top_builddir=$ac_pwd 15424ac_abs_builddir=$ac_pwd$ac_dir_suffix 15425# for backward compatibility: 15426ac_top_builddir=$ac_top_build_prefix 15427 15428case $srcdir in 15429 .) # We are building in place. 15430 ac_srcdir=. 15431 ac_top_srcdir=$ac_top_builddir_sub 15432 ac_abs_top_srcdir=$ac_pwd ;; 15433 [\\/]* | ?:[\\/]* ) # Absolute name. 15434 ac_srcdir=$srcdir$ac_dir_suffix; 15435 ac_top_srcdir=$srcdir 15436 ac_abs_top_srcdir=$srcdir ;; 15437 *) # Relative name. 15438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15439 ac_top_srcdir=$ac_top_build_prefix$srcdir 15440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15441esac 15442ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15443 15444 15445 case $ac_mode in 15446 :F) 15447 # 15448 # CONFIG_FILE 15449 # 15450 15451 case $INSTALL in 15452 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15453 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15454 esac 15455 ac_MKDIR_P=$MKDIR_P 15456 case $MKDIR_P in 15457 [\\/$]* | ?:[\\/]* ) ;; 15458 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15459 esac 15460_ACEOF 15461 15462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15463# If the template does not know about datarootdir, expand it. 15464# FIXME: This hack should be removed a few years after 2.60. 15465ac_datarootdir_hack=; ac_datarootdir_seen= 15466ac_sed_dataroot=' 15467/datarootdir/ { 15468 p 15469 q 15470} 15471/@datadir@/p 15472/@docdir@/p 15473/@infodir@/p 15474/@localedir@/p 15475/@mandir@/p' 15476case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15477*datarootdir*) ac_datarootdir_seen=yes;; 15478*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15480printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15481_ACEOF 15482cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15483 ac_datarootdir_hack=' 15484 s&@datadir@&$datadir&g 15485 s&@docdir@&$docdir&g 15486 s&@infodir@&$infodir&g 15487 s&@localedir@&$localedir&g 15488 s&@mandir@&$mandir&g 15489 s&\\\${datarootdir}&$datarootdir&g' ;; 15490esac 15491_ACEOF 15492 15493# Neutralize VPATH when `$srcdir' = `.'. 15494# Shell code in configure.ac might set extrasub. 15495# FIXME: do we really want to maintain this feature? 15496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15497ac_sed_extra="$ac_vpsub 15498$extrasub 15499_ACEOF 15500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15501:t 15502/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15503s|@configure_input@|$ac_sed_conf_input|;t t 15504s&@top_builddir@&$ac_top_builddir_sub&;t t 15505s&@top_build_prefix@&$ac_top_build_prefix&;t t 15506s&@srcdir@&$ac_srcdir&;t t 15507s&@abs_srcdir@&$ac_abs_srcdir&;t t 15508s&@top_srcdir@&$ac_top_srcdir&;t t 15509s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15510s&@builddir@&$ac_builddir&;t t 15511s&@abs_builddir@&$ac_abs_builddir&;t t 15512s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15513s&@INSTALL@&$ac_INSTALL&;t t 15514s&@MKDIR_P@&$ac_MKDIR_P&;t t 15515$ac_datarootdir_hack 15516" 15517eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15518 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15519 15520test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15521 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15522 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15523 "$ac_tmp/out"`; test -z "$ac_out"; } && 15524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15525which seems to be undefined. Please make sure it is defined" >&5 15526printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15527which seems to be undefined. Please make sure it is defined" >&2;} 15528 15529 rm -f "$ac_tmp/stdin" 15530 case $ac_file in 15531 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15532 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15533 esac \ 15534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15535 ;; 15536 :H) 15537 # 15538 # CONFIG_HEADER 15539 # 15540 if test x"$ac_file" != x-; then 15541 { 15542 printf "%s\n" "/* $configure_input */" >&1 \ 15543 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15544 } >"$ac_tmp/config.h" \ 15545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15546 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15548printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 15549 else 15550 rm -f "$ac_file" 15551 mv "$ac_tmp/config.h" "$ac_file" \ 15552 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15553 fi 15554 else 15555 printf "%s\n" "/* $configure_input */" >&1 \ 15556 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15557 || as_fn_error $? "could not create -" "$LINENO" 5 15558 fi 15559# Compute "$ac_file"'s index in $config_headers. 15560_am_arg="$ac_file" 15561_am_stamp_count=1 15562for _am_header in $config_headers :; do 15563 case $_am_header in 15564 $_am_arg | $_am_arg:* ) 15565 break ;; 15566 * ) 15567 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15568 esac 15569done 15570echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15571$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15572 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15573 X"$_am_arg" : 'X\(//\)$' \| \ 15574 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15575printf "%s\n" X"$_am_arg" | 15576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15577 s//\1/ 15578 q 15579 } 15580 /^X\(\/\/\)[^/].*/{ 15581 s//\1/ 15582 q 15583 } 15584 /^X\(\/\/\)$/{ 15585 s//\1/ 15586 q 15587 } 15588 /^X\(\/\).*/{ 15589 s//\1/ 15590 q 15591 } 15592 s/.*/./; q'`/stamp-h$_am_stamp_count 15593 ;; 15594 15595 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15596printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 15597 ;; 15598 esac 15599 15600 15601 case $ac_file$ac_mode in 15602 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15603 # Older Autoconf quotes --file arguments for eval, but not when files 15604 # are listed without --file. Let's play safe and only enable the eval 15605 # if we detect the quoting. 15606 # TODO: see whether this extra hack can be removed once we start 15607 # requiring Autoconf 2.70 or later. 15608 case $CONFIG_FILES in #( 15609 *\'*) : 15610 eval set x "$CONFIG_FILES" ;; #( 15611 *) : 15612 set x $CONFIG_FILES ;; #( 15613 *) : 15614 ;; 15615esac 15616 shift 15617 # Used to flag and report bootstrapping failures. 15618 am_rc=0 15619 for am_mf 15620 do 15621 # Strip MF so we end up with the name of the file. 15622 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 15623 # Check whether this is an Automake generated Makefile which includes 15624 # dependency-tracking related rules and includes. 15625 # Grep'ing the whole file directly is not great: AIX grep has a line 15626 # limit of 2048, but all sed's we know have understand at least 4000. 15627 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15628 || continue 15629 am_dirpart=`$as_dirname -- "$am_mf" || 15630$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15631 X"$am_mf" : 'X\(//\)[^/]' \| \ 15632 X"$am_mf" : 'X\(//\)$' \| \ 15633 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15634printf "%s\n" X"$am_mf" | 15635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15636 s//\1/ 15637 q 15638 } 15639 /^X\(\/\/\)[^/].*/{ 15640 s//\1/ 15641 q 15642 } 15643 /^X\(\/\/\)$/{ 15644 s//\1/ 15645 q 15646 } 15647 /^X\(\/\).*/{ 15648 s//\1/ 15649 q 15650 } 15651 s/.*/./; q'` 15652 am_filepart=`$as_basename -- "$am_mf" || 15653$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15654 X"$am_mf" : 'X\(//\)$' \| \ 15655 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15656printf "%s\n" X/"$am_mf" | 15657 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15658 s//\1/ 15659 q 15660 } 15661 /^X\/\(\/\/\)$/{ 15662 s//\1/ 15663 q 15664 } 15665 /^X\/\(\/\).*/{ 15666 s//\1/ 15667 q 15668 } 15669 s/.*/./; q'` 15670 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15671 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15672 | $MAKE -f - am--depfiles" >&5 15673 (cd "$am_dirpart" \ 15674 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15675 | $MAKE -f - am--depfiles) >&5 2>&5 15676 ac_status=$? 15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15678 (exit $ac_status); } || am_rc=$? 15679 done 15680 if test $am_rc -ne 0; then 15681 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15682printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15683as_fn_error $? "Something went wrong bootstrapping makefile fragments 15684 for automatic dependency tracking. If GNU make was not used, consider 15685 re-running the configure script with MAKE=\"gmake\" (or whatever is 15686 necessary). You can also try re-running configure with the 15687 '--disable-dependency-tracking' option to at least be able to build 15688 the package (albeit without support for automatic dependency tracking). 15689See \`config.log' for more details" "$LINENO" 5; } 15690 fi 15691 { am_dirpart=; unset am_dirpart;} 15692 { am_filepart=; unset am_filepart;} 15693 { am_mf=; unset am_mf;} 15694 { am_rc=; unset am_rc;} 15695 rm -f conftest-deps.mk 15696} 15697 ;; 15698 "libtool":C) 15699 15700 # See if we are running on zsh, and set the options that allow our 15701 # commands through without removal of \ escapes. 15702 if test -n "${ZSH_VERSION+set}"; then 15703 setopt NO_GLOB_SUBST 15704 fi 15705 15706 cfgfile=${ofile}T 15707 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15708 $RM "$cfgfile" 15709 15710 cat <<_LT_EOF >> "$cfgfile" 15711#! $SHELL 15712# Generated automatically by $as_me ($PACKAGE) $VERSION 15713# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15714# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15715 15716# Provide generalized library-building support services. 15717# Written by Gordon Matzigkeit, 1996 15718 15719# Copyright (C) 2014 Free Software Foundation, Inc. 15720# This is free software; see the source for copying conditions. There is NO 15721# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15722 15723# GNU Libtool is free software; you can redistribute it and/or modify 15724# it under the terms of the GNU General Public License as published by 15725# the Free Software Foundation; either version 2 of of the License, or 15726# (at your option) any later version. 15727# 15728# As a special exception to the GNU General Public License, if you 15729# distribute this file as part of a program or library that is built 15730# using GNU Libtool, you may include this file under the same 15731# distribution terms that you use for the rest of that program. 15732# 15733# GNU Libtool is distributed in the hope that it will be useful, but 15734# WITHOUT ANY WARRANTY; without even the implied warranty of 15735# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15736# GNU General Public License for more details. 15737# 15738# You should have received a copy of the GNU General Public License 15739# along with this program. If not, see <http://www.gnu.org/licenses/>. 15740 15741 15742# The names of the tagged configurations supported by this script. 15743available_tags='' 15744 15745# Configured defaults for sys_lib_dlsearch_path munging. 15746: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15747 15748# ### BEGIN LIBTOOL CONFIG 15749 15750# Which release of libtool.m4 was used? 15751macro_version=$macro_version 15752macro_revision=$macro_revision 15753 15754# Whether or not to build shared libraries. 15755build_libtool_libs=$enable_shared 15756 15757# Whether or not to build static libraries. 15758build_old_libs=$enable_static 15759 15760# What type of objects to build. 15761pic_mode=$pic_mode 15762 15763# Whether or not to optimize for fast installation. 15764fast_install=$enable_fast_install 15765 15766# Shared archive member basename,for filename based shared library versioning on AIX. 15767shared_archive_member_spec=$shared_archive_member_spec 15768 15769# Shell to use when invoking shell scripts. 15770SHELL=$lt_SHELL 15771 15772# An echo program that protects backslashes. 15773ECHO=$lt_ECHO 15774 15775# The PATH separator for the build system. 15776PATH_SEPARATOR=$lt_PATH_SEPARATOR 15777 15778# The host system. 15779host_alias=$host_alias 15780host=$host 15781host_os=$host_os 15782 15783# The build system. 15784build_alias=$build_alias 15785build=$build 15786build_os=$build_os 15787 15788# A sed program that does not truncate output. 15789SED=$lt_SED 15790 15791# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15792Xsed="\$SED -e 1s/^X//" 15793 15794# A grep program that handles long lines. 15795GREP=$lt_GREP 15796 15797# An ERE matcher. 15798EGREP=$lt_EGREP 15799 15800# A literal string matcher. 15801FGREP=$lt_FGREP 15802 15803# A BSD- or MS-compatible name lister. 15804NM=$lt_NM 15805 15806# Whether we need soft or hard links. 15807LN_S=$lt_LN_S 15808 15809# What is the maximum length of a command? 15810max_cmd_len=$max_cmd_len 15811 15812# Object file suffix (normally "o"). 15813objext=$ac_objext 15814 15815# Executable file suffix (normally ""). 15816exeext=$exeext 15817 15818# whether the shell understands "unset". 15819lt_unset=$lt_unset 15820 15821# turn spaces into newlines. 15822SP2NL=$lt_lt_SP2NL 15823 15824# turn newlines into spaces. 15825NL2SP=$lt_lt_NL2SP 15826 15827# convert \$build file names to \$host format. 15828to_host_file_cmd=$lt_cv_to_host_file_cmd 15829 15830# convert \$build files to toolchain format. 15831to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15832 15833# A file(cmd) program that detects file types. 15834FILECMD=$lt_FILECMD 15835 15836# An object symbol dumper. 15837OBJDUMP=$lt_OBJDUMP 15838 15839# Method to check whether dependent libraries are shared objects. 15840deplibs_check_method=$lt_deplibs_check_method 15841 15842# Command to use when deplibs_check_method = "file_magic". 15843file_magic_cmd=$lt_file_magic_cmd 15844 15845# How to find potential files when deplibs_check_method = "file_magic". 15846file_magic_glob=$lt_file_magic_glob 15847 15848# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15849want_nocaseglob=$lt_want_nocaseglob 15850 15851# DLL creation program. 15852DLLTOOL=$lt_DLLTOOL 15853 15854# Command to associate shared and link libraries. 15855sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15856 15857# The archiver. 15858AR=$lt_AR 15859 15860# Flags to create an archive (by configure). 15861lt_ar_flags=$lt_ar_flags 15862 15863# Flags to create an archive. 15864AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 15865 15866# How to feed a file listing to the archiver. 15867archiver_list_spec=$lt_archiver_list_spec 15868 15869# A symbol stripping program. 15870STRIP=$lt_STRIP 15871 15872# Commands used to install an old-style archive. 15873RANLIB=$lt_RANLIB 15874old_postinstall_cmds=$lt_old_postinstall_cmds 15875old_postuninstall_cmds=$lt_old_postuninstall_cmds 15876 15877# Whether to use a lock for old archive extraction. 15878lock_old_archive_extraction=$lock_old_archive_extraction 15879 15880# A C compiler. 15881LTCC=$lt_CC 15882 15883# LTCC compiler flags. 15884LTCFLAGS=$lt_CFLAGS 15885 15886# Take the output of nm and produce a listing of raw symbols and C names. 15887global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15888 15889# Transform the output of nm in a proper C declaration. 15890global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15891 15892# Transform the output of nm into a list of symbols to manually relocate. 15893global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15894 15895# Transform the output of nm in a C name address pair. 15896global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15897 15898# Transform the output of nm in a C name address pair when lib prefix is needed. 15899global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15900 15901# The name lister interface. 15902nm_interface=$lt_lt_cv_nm_interface 15903 15904# Specify filename containing input files for \$NM. 15905nm_file_list_spec=$lt_nm_file_list_spec 15906 15907# The root where to search for dependent libraries,and where our libraries should be installed. 15908lt_sysroot=$lt_sysroot 15909 15910# Command to truncate a binary pipe. 15911lt_truncate_bin=$lt_lt_cv_truncate_bin 15912 15913# The name of the directory that contains temporary libtool files. 15914objdir=$objdir 15915 15916# Used to examine libraries when file_magic_cmd begins with "file". 15917MAGIC_CMD=$MAGIC_CMD 15918 15919# Must we lock files when doing compilation? 15920need_locks=$lt_need_locks 15921 15922# Manifest tool. 15923MANIFEST_TOOL=$lt_MANIFEST_TOOL 15924 15925# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15926DSYMUTIL=$lt_DSYMUTIL 15927 15928# Tool to change global to local symbols on Mac OS X. 15929NMEDIT=$lt_NMEDIT 15930 15931# Tool to manipulate fat objects and archives on Mac OS X. 15932LIPO=$lt_LIPO 15933 15934# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15935OTOOL=$lt_OTOOL 15936 15937# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15938OTOOL64=$lt_OTOOL64 15939 15940# Old archive suffix (normally "a"). 15941libext=$libext 15942 15943# Shared library suffix (normally ".so"). 15944shrext_cmds=$lt_shrext_cmds 15945 15946# The commands to extract the exported symbol list from a shared archive. 15947extract_expsyms_cmds=$lt_extract_expsyms_cmds 15948 15949# Variables whose values should be saved in libtool wrapper scripts and 15950# restored at link time. 15951variables_saved_for_relink=$lt_variables_saved_for_relink 15952 15953# Do we need the "lib" prefix for modules? 15954need_lib_prefix=$need_lib_prefix 15955 15956# Do we need a version for libraries? 15957need_version=$need_version 15958 15959# Library versioning type. 15960version_type=$version_type 15961 15962# Shared library runtime path variable. 15963runpath_var=$runpath_var 15964 15965# Shared library path variable. 15966shlibpath_var=$shlibpath_var 15967 15968# Is shlibpath searched before the hard-coded library search path? 15969shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15970 15971# Format of library name prefix. 15972libname_spec=$lt_libname_spec 15973 15974# List of archive names. First name is the real one, the rest are links. 15975# The last name is the one that the linker finds with -lNAME 15976library_names_spec=$lt_library_names_spec 15977 15978# The coded name of the library, if different from the real name. 15979soname_spec=$lt_soname_spec 15980 15981# Permission mode override for installation of shared libraries. 15982install_override_mode=$lt_install_override_mode 15983 15984# Command to use after installation of a shared archive. 15985postinstall_cmds=$lt_postinstall_cmds 15986 15987# Command to use after uninstallation of a shared archive. 15988postuninstall_cmds=$lt_postuninstall_cmds 15989 15990# Commands used to finish a libtool library installation in a directory. 15991finish_cmds=$lt_finish_cmds 15992 15993# As "finish_cmds", except a single script fragment to be evaled but 15994# not shown. 15995finish_eval=$lt_finish_eval 15996 15997# Whether we should hardcode library paths into libraries. 15998hardcode_into_libs=$hardcode_into_libs 15999 16000# Compile-time system search path for libraries. 16001sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16002 16003# Detected run-time system search path for libraries. 16004sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 16005 16006# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 16007configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 16008 16009# Whether dlopen is supported. 16010dlopen_support=$enable_dlopen 16011 16012# Whether dlopen of programs is supported. 16013dlopen_self=$enable_dlopen_self 16014 16015# Whether dlopen of statically linked programs is supported. 16016dlopen_self_static=$enable_dlopen_self_static 16017 16018# Commands to strip libraries. 16019old_striplib=$lt_old_striplib 16020striplib=$lt_striplib 16021 16022 16023# The linker used to build libraries. 16024LD=$lt_LD 16025 16026# How to create reloadable object files. 16027reload_flag=$lt_reload_flag 16028reload_cmds=$lt_reload_cmds 16029 16030# Commands used to build an old-style archive. 16031old_archive_cmds=$lt_old_archive_cmds 16032 16033# A language specific compiler. 16034CC=$lt_compiler 16035 16036# Is the compiler the GNU compiler? 16037with_gcc=$GCC 16038 16039# Compiler flag to turn off builtin functions. 16040no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16041 16042# Additional compiler flags for building library objects. 16043pic_flag=$lt_lt_prog_compiler_pic 16044 16045# How to pass a linker flag through the compiler. 16046wl=$lt_lt_prog_compiler_wl 16047 16048# Compiler flag to prevent dynamic linking. 16049link_static_flag=$lt_lt_prog_compiler_static 16050 16051# Does compiler simultaneously support -c and -o options? 16052compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16053 16054# Whether or not to add -lc for building shared libraries. 16055build_libtool_need_lc=$archive_cmds_need_lc 16056 16057# Whether or not to disallow shared libs when runtime libs are static. 16058allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16059 16060# Compiler flag to allow reflexive dlopens. 16061export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16062 16063# Compiler flag to generate shared objects directly from archives. 16064whole_archive_flag_spec=$lt_whole_archive_flag_spec 16065 16066# Whether the compiler copes with passing no objects directly. 16067compiler_needs_object=$lt_compiler_needs_object 16068 16069# Create an old-style archive from a shared archive. 16070old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16071 16072# Create a temporary old-style archive to link instead of a shared archive. 16073old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16074 16075# Commands used to build a shared archive. 16076archive_cmds=$lt_archive_cmds 16077archive_expsym_cmds=$lt_archive_expsym_cmds 16078 16079# Commands used to build a loadable module if different from building 16080# a shared archive. 16081module_cmds=$lt_module_cmds 16082module_expsym_cmds=$lt_module_expsym_cmds 16083 16084# Whether we are building with GNU ld or not. 16085with_gnu_ld=$lt_with_gnu_ld 16086 16087# Flag that allows shared libraries with undefined symbols to be built. 16088allow_undefined_flag=$lt_allow_undefined_flag 16089 16090# Flag that enforces no undefined symbols. 16091no_undefined_flag=$lt_no_undefined_flag 16092 16093# Flag to hardcode \$libdir into a binary during linking. 16094# This must work even if \$libdir does not exist 16095hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16096 16097# Whether we need a single "-rpath" flag with a separated argument. 16098hardcode_libdir_separator=$lt_hardcode_libdir_separator 16099 16100# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16101# DIR into the resulting binary. 16102hardcode_direct=$hardcode_direct 16103 16104# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16105# DIR into the resulting binary and the resulting library dependency is 16106# "absolute",i.e impossible to change by setting \$shlibpath_var if the 16107# library is relocated. 16108hardcode_direct_absolute=$hardcode_direct_absolute 16109 16110# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16111# into the resulting binary. 16112hardcode_minus_L=$hardcode_minus_L 16113 16114# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16115# into the resulting binary. 16116hardcode_shlibpath_var=$hardcode_shlibpath_var 16117 16118# Set to "yes" if building a shared library automatically hardcodes DIR 16119# into the library and all subsequent libraries and executables linked 16120# against it. 16121hardcode_automatic=$hardcode_automatic 16122 16123# Set to yes if linker adds runtime paths of dependent libraries 16124# to runtime path list. 16125inherit_rpath=$inherit_rpath 16126 16127# Whether libtool must link a program against all its dependency libraries. 16128link_all_deplibs=$link_all_deplibs 16129 16130# Set to "yes" if exported symbols are required. 16131always_export_symbols=$always_export_symbols 16132 16133# The commands to list exported symbols. 16134export_symbols_cmds=$lt_export_symbols_cmds 16135 16136# Symbols that should not be listed in the preloaded symbols. 16137exclude_expsyms=$lt_exclude_expsyms 16138 16139# Symbols that must always be exported. 16140include_expsyms=$lt_include_expsyms 16141 16142# Commands necessary for linking programs (against libraries) with templates. 16143prelink_cmds=$lt_prelink_cmds 16144 16145# Commands necessary for finishing linking programs. 16146postlink_cmds=$lt_postlink_cmds 16147 16148# Specify filename containing input files. 16149file_list_spec=$lt_file_list_spec 16150 16151# How to hardcode a shared library path into an executable. 16152hardcode_action=$hardcode_action 16153 16154# ### END LIBTOOL CONFIG 16155 16156_LT_EOF 16157 16158 cat <<'_LT_EOF' >> "$cfgfile" 16159 16160# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 16161 16162# func_munge_path_list VARIABLE PATH 16163# ----------------------------------- 16164# VARIABLE is name of variable containing _space_ separated list of 16165# directories to be munged by the contents of PATH, which is string 16166# having a format: 16167# "DIR[:DIR]:" 16168# string "DIR[ DIR]" will be prepended to VARIABLE 16169# ":DIR[:DIR]" 16170# string "DIR[ DIR]" will be appended to VARIABLE 16171# "DIRP[:DIRP]::[DIRA:]DIRA" 16172# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16173# "DIRA[ DIRA]" will be appended to VARIABLE 16174# "DIR[:DIR]" 16175# VARIABLE will be replaced by "DIR[ DIR]" 16176func_munge_path_list () 16177{ 16178 case x$2 in 16179 x) 16180 ;; 16181 *:) 16182 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16183 ;; 16184 x:*) 16185 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16186 ;; 16187 *::*) 16188 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16189 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16190 ;; 16191 *) 16192 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16193 ;; 16194 esac 16195} 16196 16197 16198# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16199func_cc_basename () 16200{ 16201 for cc_temp in $*""; do 16202 case $cc_temp in 16203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16205 \-*) ;; 16206 *) break;; 16207 esac 16208 done 16209 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16210} 16211 16212 16213# ### END FUNCTIONS SHARED WITH CONFIGURE 16214 16215_LT_EOF 16216 16217 case $host_os in 16218 aix3*) 16219 cat <<\_LT_EOF >> "$cfgfile" 16220# AIX sometimes has problems with the GCC collect2 program. For some 16221# reason, if we set the COLLECT_NAMES environment variable, the problems 16222# vanish in a puff of smoke. 16223if test set != "${COLLECT_NAMES+set}"; then 16224 COLLECT_NAMES= 16225 export COLLECT_NAMES 16226fi 16227_LT_EOF 16228 ;; 16229 esac 16230 16231 16232 16233ltmain=$ac_aux_dir/ltmain.sh 16234 16235 16236 # We use sed instead of cat because bash on DJGPP gets confused if 16237 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16238 # text mode, it properly converts lines to CR/LF. This bash problem 16239 # is reportedly fixed, but why not run on old versions too? 16240 $SED '$q' "$ltmain" >> "$cfgfile" \ 16241 || (rm -f "$cfgfile"; exit 1) 16242 16243 mv -f "$cfgfile" "$ofile" || 16244 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16245 chmod +x "$ofile" 16246 16247 ;; 16248 16249 esac 16250done # for ac_tag 16251 16252 16253as_fn_exit 0 16254_ACEOF 16255ac_clean_files=$ac_clean_files_save 16256 16257test $ac_write_fail = 0 || 16258 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16259 16260 16261# configure is writing to config.log, and then calls config.status. 16262# config.status does its own redirection, appending to config.log. 16263# Unfortunately, on DOS this fails, as config.log is still kept open 16264# by configure, so config.status won't be able to write to it; its 16265# output is simply discarded. So we exec the FD to /dev/null, 16266# effectively closing config.log, so it can be properly (re)opened and 16267# appended to by config.status. When coming back to configure, we 16268# need to make the FD available again. 16269if test "$no_create" != yes; then 16270 ac_cs_success=: 16271 ac_config_status_args= 16272 test "$silent" = yes && 16273 ac_config_status_args="$ac_config_status_args --quiet" 16274 exec 5>/dev/null 16275 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16276 exec 5>>config.log 16277 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16278 # would make configure fail if this is the last instruction. 16279 $ac_cs_success || as_fn_exit 1 16280fi 16281if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16283printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16284fi 16285 16286 16287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 16288 Prefix ${prefix} 16289 Libdir ${libdir} 16290 16291 Build documentation ${have_doxygen} 16292 Enable unit-tests ${HAVE_CHECK} 16293 Enable profiling ${enable_gcov} 16294 Enable coverity support ${enable_coverity} 16295 Static library symbol check ${static_symbol_leaks_test} 16296 " >&5 16297printf "%s\n" " 16298 Prefix ${prefix} 16299 Libdir ${libdir} 16300 16301 Build documentation ${have_doxygen} 16302 Enable unit-tests ${HAVE_CHECK} 16303 Enable profiling ${enable_gcov} 16304 Enable coverity support ${enable_coverity} 16305 Static library symbol check ${static_symbol_leaks_test} 16306 " >&6; } 16307 16308