1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for Multitouch Protocol Translation Library 1.1.6. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='Multitouch Protocol Translation Library' 589PACKAGE_TARNAME='mtdev' 590PACKAGE_VERSION='1.1.6' 591PACKAGE_STRING='Multitouch Protocol Translation Library 1.1.6' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="Makefile.am" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636CPP 637LT_SYS_LIBRARY_PATH 638OTOOL64 639OTOOL 640LIPO 641NMEDIT 642DSYMUTIL 643MANIFEST_TOOL 644RANLIB 645ac_ct_AR 646AR 647DLLTOOL 648OBJDUMP 649LN_S 650NM 651ac_ct_DUMPBIN 652DUMPBIN 653LD 654FGREP 655EGREP 656GREP 657SED 658am__fastdepCC_FALSE 659am__fastdepCC_TRUE 660CCDEPMODE 661am__nodep 662AMDEPBACKSLASH 663AMDEP_FALSE 664AMDEP_TRUE 665am__include 666DEPDIR 667OBJEXT 668EXEEXT 669ac_ct_CC 670CPPFLAGS 671LDFLAGS 672CFLAGS 673CC 674host_os 675host_vendor 676host_cpu 677host 678build_os 679build_vendor 680build_cpu 681build 682LIBTOOL 683LIB_VERSION 684AM_BACKSLASH 685AM_DEFAULT_VERBOSITY 686AM_DEFAULT_V 687AM_V 688am__untar 689am__tar 690AMTAR 691am__leading_dot 692SET_MAKE 693AWK 694mkdir_p 695MKDIR_P 696INSTALL_STRIP_PROGRAM 697STRIP 698install_sh 699MAKEINFO 700AUTOHEADER 701AUTOMAKE 702AUTOCONF 703ACLOCAL 704VERSION 705PACKAGE 706CYGPATH_W 707am__isrc 708INSTALL_DATA 709INSTALL_SCRIPT 710INSTALL_PROGRAM 711target_alias 712host_alias 713build_alias 714LIBS 715ECHO_T 716ECHO_N 717ECHO_C 718DEFS 719mandir 720localedir 721libdir 722psdir 723pdfdir 724dvidir 725htmldir 726infodir 727docdir 728oldincludedir 729includedir 730localstatedir 731sharedstatedir 732sysconfdir 733datadir 734datarootdir 735libexecdir 736sbindir 737bindir 738program_transform_name 739prefix 740exec_prefix 741PACKAGE_URL 742PACKAGE_BUGREPORT 743PACKAGE_STRING 744PACKAGE_VERSION 745PACKAGE_TARNAME 746PACKAGE_NAME 747PATH_SEPARATOR 748SHELL 749am__quote' 750ac_subst_files='' 751ac_user_opts=' 752enable_option_checking 753enable_silent_rules 754enable_shared 755enable_static 756with_pic 757enable_fast_install 758with_aix_soname 759enable_dependency_tracking 760with_gnu_ld 761with_sysroot 762enable_libtool_lock 763' 764 ac_precious_vars='build_alias 765host_alias 766target_alias 767CC 768CFLAGS 769LDFLAGS 770LIBS 771CPPFLAGS 772LT_SYS_LIBRARY_PATH 773CPP' 774 775 776# Initialize some variables set by options. 777ac_init_help= 778ac_init_version=false 779ac_unrecognized_opts= 780ac_unrecognized_sep= 781# The variables have the same names as the options, with 782# dashes changed to underlines. 783cache_file=/dev/null 784exec_prefix=NONE 785no_create= 786no_recursion= 787prefix=NONE 788program_prefix=NONE 789program_suffix=NONE 790program_transform_name=s,x,x, 791silent= 792site= 793srcdir= 794verbose= 795x_includes=NONE 796x_libraries=NONE 797 798# Installation directory options. 799# These are left unexpanded so users can "make install exec_prefix=/foo" 800# and all the variables that are supposed to be based on exec_prefix 801# by default will actually change. 802# Use braces instead of parens because sh, perl, etc. also accept them. 803# (The list follows the same order as the GNU Coding Standards.) 804bindir='${exec_prefix}/bin' 805sbindir='${exec_prefix}/sbin' 806libexecdir='${exec_prefix}/libexec' 807datarootdir='${prefix}/share' 808datadir='${datarootdir}' 809sysconfdir='${prefix}/etc' 810sharedstatedir='${prefix}/com' 811localstatedir='${prefix}/var' 812includedir='${prefix}/include' 813oldincludedir='/usr/include' 814docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 815infodir='${datarootdir}/info' 816htmldir='${docdir}' 817dvidir='${docdir}' 818pdfdir='${docdir}' 819psdir='${docdir}' 820libdir='${exec_prefix}/lib' 821localedir='${datarootdir}/locale' 822mandir='${datarootdir}/man' 823 824ac_prev= 825ac_dashdash= 826for ac_option 827do 828 # If the previous option needs an argument, assign it. 829 if test -n "$ac_prev"; then 830 eval $ac_prev=\$ac_option 831 ac_prev= 832 continue 833 fi 834 835 case $ac_option in 836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 837 *=) ac_optarg= ;; 838 *) ac_optarg=yes ;; 839 esac 840 841 # Accept the important Cygnus configure options, so we can diagnose typos. 842 843 case $ac_dashdash$ac_option in 844 --) 845 ac_dashdash=yes ;; 846 847 -bindir | --bindir | --bindi | --bind | --bin | --bi) 848 ac_prev=bindir ;; 849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 850 bindir=$ac_optarg ;; 851 852 -build | --build | --buil | --bui | --bu) 853 ac_prev=build_alias ;; 854 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 855 build_alias=$ac_optarg ;; 856 857 -cache-file | --cache-file | --cache-fil | --cache-fi \ 858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 859 ac_prev=cache_file ;; 860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 862 cache_file=$ac_optarg ;; 863 864 --config-cache | -C) 865 cache_file=config.cache ;; 866 867 -datadir | --datadir | --datadi | --datad) 868 ac_prev=datadir ;; 869 -datadir=* | --datadir=* | --datadi=* | --datad=*) 870 datadir=$ac_optarg ;; 871 872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 873 | --dataroo | --dataro | --datar) 874 ac_prev=datarootdir ;; 875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 877 datarootdir=$ac_optarg ;; 878 879 -disable-* | --disable-*) 880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 881 # Reject names that are not valid shell variable names. 882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 883 as_fn_error $? "invalid feature name: $ac_useropt" 884 ac_useropt_orig=$ac_useropt 885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 886 case $ac_user_opts in 887 *" 888"enable_$ac_useropt" 889"*) ;; 890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 891 ac_unrecognized_sep=', ';; 892 esac 893 eval enable_$ac_useropt=no ;; 894 895 -docdir | --docdir | --docdi | --doc | --do) 896 ac_prev=docdir ;; 897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 898 docdir=$ac_optarg ;; 899 900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 901 ac_prev=dvidir ;; 902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 903 dvidir=$ac_optarg ;; 904 905 -enable-* | --enable-*) 906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 907 # Reject names that are not valid shell variable names. 908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 as_fn_error $? "invalid feature name: $ac_useropt" 910 ac_useropt_orig=$ac_useropt 911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 912 case $ac_user_opts in 913 *" 914"enable_$ac_useropt" 915"*) ;; 916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 917 ac_unrecognized_sep=', ';; 918 esac 919 eval enable_$ac_useropt=\$ac_optarg ;; 920 921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 923 | --exec | --exe | --ex) 924 ac_prev=exec_prefix ;; 925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 927 | --exec=* | --exe=* | --ex=*) 928 exec_prefix=$ac_optarg ;; 929 930 -gas | --gas | --ga | --g) 931 # Obsolete; use --with-gas. 932 with_gas=yes ;; 933 934 -help | --help | --hel | --he | -h) 935 ac_init_help=long ;; 936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 937 ac_init_help=recursive ;; 938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 939 ac_init_help=short ;; 940 941 -host | --host | --hos | --ho) 942 ac_prev=host_alias ;; 943 -host=* | --host=* | --hos=* | --ho=*) 944 host_alias=$ac_optarg ;; 945 946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 947 ac_prev=htmldir ;; 948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 949 | --ht=*) 950 htmldir=$ac_optarg ;; 951 952 -includedir | --includedir | --includedi | --included | --include \ 953 | --includ | --inclu | --incl | --inc) 954 ac_prev=includedir ;; 955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 956 | --includ=* | --inclu=* | --incl=* | --inc=*) 957 includedir=$ac_optarg ;; 958 959 -infodir | --infodir | --infodi | --infod | --info | --inf) 960 ac_prev=infodir ;; 961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 962 infodir=$ac_optarg ;; 963 964 -libdir | --libdir | --libdi | --libd) 965 ac_prev=libdir ;; 966 -libdir=* | --libdir=* | --libdi=* | --libd=*) 967 libdir=$ac_optarg ;; 968 969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 970 | --libexe | --libex | --libe) 971 ac_prev=libexecdir ;; 972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 973 | --libexe=* | --libex=* | --libe=*) 974 libexecdir=$ac_optarg ;; 975 976 -localedir | --localedir | --localedi | --localed | --locale) 977 ac_prev=localedir ;; 978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 979 localedir=$ac_optarg ;; 980 981 -localstatedir | --localstatedir | --localstatedi | --localstated \ 982 | --localstate | --localstat | --localsta | --localst | --locals) 983 ac_prev=localstatedir ;; 984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 986 localstatedir=$ac_optarg ;; 987 988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 989 ac_prev=mandir ;; 990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 991 mandir=$ac_optarg ;; 992 993 -nfp | --nfp | --nf) 994 # Obsolete; use --without-fp. 995 with_fp=no ;; 996 997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 998 | --no-cr | --no-c | -n) 999 no_create=yes ;; 1000 1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1003 no_recursion=yes ;; 1004 1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1007 | --oldin | --oldi | --old | --ol | --o) 1008 ac_prev=oldincludedir ;; 1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1012 oldincludedir=$ac_optarg ;; 1013 1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1015 ac_prev=prefix ;; 1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1017 prefix=$ac_optarg ;; 1018 1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1020 | --program-pre | --program-pr | --program-p) 1021 ac_prev=program_prefix ;; 1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1024 program_prefix=$ac_optarg ;; 1025 1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1027 | --program-suf | --program-su | --program-s) 1028 ac_prev=program_suffix ;; 1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1031 program_suffix=$ac_optarg ;; 1032 1033 -program-transform-name | --program-transform-name \ 1034 | --program-transform-nam | --program-transform-na \ 1035 | --program-transform-n | --program-transform- \ 1036 | --program-transform | --program-transfor \ 1037 | --program-transfo | --program-transf \ 1038 | --program-trans | --program-tran \ 1039 | --progr-tra | --program-tr | --program-t) 1040 ac_prev=program_transform_name ;; 1041 -program-transform-name=* | --program-transform-name=* \ 1042 | --program-transform-nam=* | --program-transform-na=* \ 1043 | --program-transform-n=* | --program-transform-=* \ 1044 | --program-transform=* | --program-transfor=* \ 1045 | --program-transfo=* | --program-transf=* \ 1046 | --program-trans=* | --program-tran=* \ 1047 | --progr-tra=* | --program-tr=* | --program-t=*) 1048 program_transform_name=$ac_optarg ;; 1049 1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1051 ac_prev=pdfdir ;; 1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1053 pdfdir=$ac_optarg ;; 1054 1055 -psdir | --psdir | --psdi | --psd | --ps) 1056 ac_prev=psdir ;; 1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1058 psdir=$ac_optarg ;; 1059 1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1061 | -silent | --silent | --silen | --sile | --sil) 1062 silent=yes ;; 1063 1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1065 ac_prev=sbindir ;; 1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1067 | --sbi=* | --sb=*) 1068 sbindir=$ac_optarg ;; 1069 1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1072 | --sharedst | --shareds | --shared | --share | --shar \ 1073 | --sha | --sh) 1074 ac_prev=sharedstatedir ;; 1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1078 | --sha=* | --sh=*) 1079 sharedstatedir=$ac_optarg ;; 1080 1081 -site | --site | --sit) 1082 ac_prev=site ;; 1083 -site=* | --site=* | --sit=*) 1084 site=$ac_optarg ;; 1085 1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1087 ac_prev=srcdir ;; 1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1089 srcdir=$ac_optarg ;; 1090 1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1092 | --syscon | --sysco | --sysc | --sys | --sy) 1093 ac_prev=sysconfdir ;; 1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1096 sysconfdir=$ac_optarg ;; 1097 1098 -target | --target | --targe | --targ | --tar | --ta | --t) 1099 ac_prev=target_alias ;; 1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1101 target_alias=$ac_optarg ;; 1102 1103 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1104 verbose=yes ;; 1105 1106 -version | --version | --versio | --versi | --vers | -V) 1107 ac_init_version=: ;; 1108 1109 -with-* | --with-*) 1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1111 # Reject names that are not valid shell variable names. 1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1113 as_fn_error $? "invalid package name: $ac_useropt" 1114 ac_useropt_orig=$ac_useropt 1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1116 case $ac_user_opts in 1117 *" 1118"with_$ac_useropt" 1119"*) ;; 1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1121 ac_unrecognized_sep=', ';; 1122 esac 1123 eval with_$ac_useropt=\$ac_optarg ;; 1124 1125 -without-* | --without-*) 1126 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1127 # Reject names that are not valid shell variable names. 1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1129 as_fn_error $? "invalid package name: $ac_useropt" 1130 ac_useropt_orig=$ac_useropt 1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1132 case $ac_user_opts in 1133 *" 1134"with_$ac_useropt" 1135"*) ;; 1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1137 ac_unrecognized_sep=', ';; 1138 esac 1139 eval with_$ac_useropt=no ;; 1140 1141 --x) 1142 # Obsolete; use --with-x. 1143 with_x=yes ;; 1144 1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1146 | --x-incl | --x-inc | --x-in | --x-i) 1147 ac_prev=x_includes ;; 1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1150 x_includes=$ac_optarg ;; 1151 1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1154 ac_prev=x_libraries ;; 1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1157 x_libraries=$ac_optarg ;; 1158 1159 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1160Try \`$0 --help' for more information" 1161 ;; 1162 1163 *=*) 1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1165 # Reject names that are not valid shell variable names. 1166 case $ac_envvar in #( 1167 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1168 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1169 esac 1170 eval $ac_envvar=\$ac_optarg 1171 export $ac_envvar ;; 1172 1173 *) 1174 # FIXME: should be removed in autoconf 3.0. 1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1178 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1179 ;; 1180 1181 esac 1182done 1183 1184if test -n "$ac_prev"; then 1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1186 as_fn_error $? "missing argument to $ac_option" 1187fi 1188 1189if test -n "$ac_unrecognized_opts"; then 1190 case $enable_option_checking in 1191 no) ;; 1192 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1194 esac 1195fi 1196 1197# Check all directory arguments for consistency. 1198for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1199 datadir sysconfdir sharedstatedir localstatedir includedir \ 1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1201 libdir localedir mandir 1202do 1203 eval ac_val=\$$ac_var 1204 # Remove trailing slashes. 1205 case $ac_val in 1206 */ ) 1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1208 eval $ac_var=\$ac_val;; 1209 esac 1210 # Be sure to have absolute directory names. 1211 case $ac_val in 1212 [\\/$]* | ?:[\\/]* ) continue;; 1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1214 esac 1215 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1216done 1217 1218# There might be people who depend on the old broken behavior: `$host' 1219# used to hold the argument of --host etc. 1220# FIXME: To remove some day. 1221build=$build_alias 1222host=$host_alias 1223target=$target_alias 1224 1225# FIXME: To remove some day. 1226if test "x$host_alias" != x; then 1227 if test "x$build_alias" = x; then 1228 cross_compiling=maybe 1229 elif test "x$build_alias" != "x$host_alias"; then 1230 cross_compiling=yes 1231 fi 1232fi 1233 1234ac_tool_prefix= 1235test -n "$host_alias" && ac_tool_prefix=$host_alias- 1236 1237test "$silent" = yes && exec 6>/dev/null 1238 1239 1240ac_pwd=`pwd` && test -n "$ac_pwd" && 1241ac_ls_di=`ls -di .` && 1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1243 as_fn_error $? "working directory cannot be determined" 1244test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1245 as_fn_error $? "pwd does not report name of working directory" 1246 1247 1248# Find the source files, if location was not specified. 1249if test -z "$srcdir"; then 1250 ac_srcdir_defaulted=yes 1251 # Try the directory containing this script, then the parent directory. 1252 ac_confdir=`$as_dirname -- "$as_myself" || 1253$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1254 X"$as_myself" : 'X\(//\)[^/]' \| \ 1255 X"$as_myself" : 'X\(//\)$' \| \ 1256 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1257$as_echo X"$as_myself" | 1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\/\)[^/].*/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\/\)$/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\).*/{ 1271 s//\1/ 1272 q 1273 } 1274 s/.*/./; q'` 1275 srcdir=$ac_confdir 1276 if test ! -r "$srcdir/$ac_unique_file"; then 1277 srcdir=.. 1278 fi 1279else 1280 ac_srcdir_defaulted=no 1281fi 1282if test ! -r "$srcdir/$ac_unique_file"; then 1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1284 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1285fi 1286ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1287ac_abs_confdir=`( 1288 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1289 pwd)` 1290# When building in place, set srcdir=. 1291if test "$ac_abs_confdir" = "$ac_pwd"; then 1292 srcdir=. 1293fi 1294# Remove unnecessary trailing slashes from srcdir. 1295# Double slashes in file names in object file debugging info 1296# mess up M-x gdb in Emacs. 1297case $srcdir in 1298*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1299esac 1300for ac_var in $ac_precious_vars; do 1301 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1302 eval ac_env_${ac_var}_value=\$${ac_var} 1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1304 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1305done 1306 1307# 1308# Report the --help message. 1309# 1310if test "$ac_init_help" = "long"; then 1311 # Omit some internal or obsolete options to make the list less imposing. 1312 # This message is too long to be a string in the A/UX 3.1 sh. 1313 cat <<_ACEOF 1314\`configure' configures Multitouch Protocol Translation Library 1.1.6 to adapt to many kinds of systems. 1315 1316Usage: $0 [OPTION]... [VAR=VALUE]... 1317 1318To assign environment variables (e.g., CC, CFLAGS...), specify them as 1319VAR=VALUE. See below for descriptions of some of the useful variables. 1320 1321Defaults for the options are specified in brackets. 1322 1323Configuration: 1324 -h, --help display this help and exit 1325 --help=short display options specific to this package 1326 --help=recursive display the short help of all the included packages 1327 -V, --version display version information and exit 1328 -q, --quiet, --silent do not print \`checking ...' messages 1329 --cache-file=FILE cache test results in FILE [disabled] 1330 -C, --config-cache alias for \`--cache-file=config.cache' 1331 -n, --no-create do not create output files 1332 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1333 1334Installation directories: 1335 --prefix=PREFIX install architecture-independent files in PREFIX 1336 [$ac_default_prefix] 1337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1338 [PREFIX] 1339 1340By default, \`make install' will install all the files in 1341\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1342an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1343for instance \`--prefix=\$HOME'. 1344 1345For better control, use the options below. 1346 1347Fine tuning of the installation directories: 1348 --bindir=DIR user executables [EPREFIX/bin] 1349 --sbindir=DIR system admin executables [EPREFIX/sbin] 1350 --libexecdir=DIR program executables [EPREFIX/libexec] 1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1354 --libdir=DIR object code libraries [EPREFIX/lib] 1355 --includedir=DIR C header files [PREFIX/include] 1356 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1359 --infodir=DIR info documentation [DATAROOTDIR/info] 1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1361 --mandir=DIR man documentation [DATAROOTDIR/man] 1362 --docdir=DIR documentation root [DATAROOTDIR/doc/mtdev] 1363 --htmldir=DIR html documentation [DOCDIR] 1364 --dvidir=DIR dvi documentation [DOCDIR] 1365 --pdfdir=DIR pdf documentation [DOCDIR] 1366 --psdir=DIR ps documentation [DOCDIR] 1367_ACEOF 1368 1369 cat <<\_ACEOF 1370 1371Program names: 1372 --program-prefix=PREFIX prepend PREFIX to installed program names 1373 --program-suffix=SUFFIX append SUFFIX to installed program names 1374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1375 1376System types: 1377 --build=BUILD configure for building on BUILD [guessed] 1378 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1379_ACEOF 1380fi 1381 1382if test -n "$ac_init_help"; then 1383 case $ac_init_help in 1384 short | recursive ) echo "Configuration of Multitouch Protocol Translation Library 1.1.6:";; 1385 esac 1386 cat <<\_ACEOF 1387 1388Optional Features: 1389 --disable-option-checking ignore unrecognized --enable/--with options 1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1392 --enable-silent-rules less verbose build output (undo: "make V=1") 1393 --disable-silent-rules verbose build output (undo: "make V=0") 1394 --enable-shared[=PKGS] build shared libraries [default=yes] 1395 --enable-static[=PKGS] build static libraries [default=yes] 1396 --enable-fast-install[=PKGS] 1397 optimize for fast installation [default=yes] 1398 --enable-dependency-tracking 1399 do not reject slow dependency extractors 1400 --disable-dependency-tracking 1401 speeds up one-time build 1402 --disable-libtool-lock avoid locking (might break parallel builds) 1403 1404Optional Packages: 1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1407 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1408 both] 1409 --with-aix-soname=aix|svr4|both 1410 shared library versioning (aka "SONAME") variant to 1411 provide on AIX, [default=aix]. 1412 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1413 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1414 compiler's sysroot if not specified). 1415 1416Some influential environment variables: 1417 CC C compiler command 1418 CFLAGS C compiler flags 1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1420 nonstandard directory <lib dir> 1421 LIBS libraries to pass to the linker, e.g. -l<library> 1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1423 you have headers in a nonstandard directory <include dir> 1424 LT_SYS_LIBRARY_PATH 1425 User-defined run-time library search path. 1426 CPP C preprocessor 1427 1428Use these variables to override the choices made by `configure' or to help 1429it to find libraries and programs with nonstandard names/locations. 1430 1431Report bugs to the package provider. 1432_ACEOF 1433ac_status=$? 1434fi 1435 1436if test "$ac_init_help" = "recursive"; then 1437 # If there are subdirs, report their specific --help. 1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1439 test -d "$ac_dir" || 1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1441 continue 1442 ac_builddir=. 1443 1444case "$ac_dir" in 1445.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1446*) 1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1448 # A ".." for each directory in $ac_dir_suffix. 1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1450 case $ac_top_builddir_sub in 1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1453 esac ;; 1454esac 1455ac_abs_top_builddir=$ac_pwd 1456ac_abs_builddir=$ac_pwd$ac_dir_suffix 1457# for backward compatibility: 1458ac_top_builddir=$ac_top_build_prefix 1459 1460case $srcdir in 1461 .) # We are building in place. 1462 ac_srcdir=. 1463 ac_top_srcdir=$ac_top_builddir_sub 1464 ac_abs_top_srcdir=$ac_pwd ;; 1465 [\\/]* | ?:[\\/]* ) # Absolute name. 1466 ac_srcdir=$srcdir$ac_dir_suffix; 1467 ac_top_srcdir=$srcdir 1468 ac_abs_top_srcdir=$srcdir ;; 1469 *) # Relative name. 1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1471 ac_top_srcdir=$ac_top_build_prefix$srcdir 1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1473esac 1474ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1475 1476 cd "$ac_dir" || { ac_status=$?; continue; } 1477 # Check for guested configure. 1478 if test -f "$ac_srcdir/configure.gnu"; then 1479 echo && 1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1481 elif test -f "$ac_srcdir/configure"; then 1482 echo && 1483 $SHELL "$ac_srcdir/configure" --help=recursive 1484 else 1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1486 fi || ac_status=$? 1487 cd "$ac_pwd" || { ac_status=$?; break; } 1488 done 1489fi 1490 1491test -n "$ac_init_help" && exit $ac_status 1492if $ac_init_version; then 1493 cat <<\_ACEOF 1494Multitouch Protocol Translation Library configure 1.1.6 1495generated by GNU Autoconf 2.69 1496 1497Copyright (C) 2012 Free Software Foundation, Inc. 1498This configure script is free software; the Free Software Foundation 1499gives unlimited permission to copy, distribute and modify it. 1500_ACEOF 1501 exit 1502fi 1503 1504## ------------------------ ## 1505## Autoconf initialization. ## 1506## ------------------------ ## 1507 1508# ac_fn_c_try_compile LINENO 1509# -------------------------- 1510# Try to compile conftest.$ac_ext, and return whether this succeeded. 1511ac_fn_c_try_compile () 1512{ 1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1514 rm -f conftest.$ac_objext 1515 if { { ac_try="$ac_compile" 1516case "(($ac_try" in 1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1518 *) ac_try_echo=$ac_try;; 1519esac 1520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1521$as_echo "$ac_try_echo"; } >&5 1522 (eval "$ac_compile") 2>conftest.err 1523 ac_status=$? 1524 if test -s conftest.err; then 1525 grep -v '^ *+' conftest.err >conftest.er1 1526 cat conftest.er1 >&5 1527 mv -f conftest.er1 conftest.err 1528 fi 1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1530 test $ac_status = 0; } && { 1531 test -z "$ac_c_werror_flag" || 1532 test ! -s conftest.err 1533 } && test -s conftest.$ac_objext; then : 1534 ac_retval=0 1535else 1536 $as_echo "$as_me: failed program was:" >&5 1537sed 's/^/| /' conftest.$ac_ext >&5 1538 1539 ac_retval=1 1540fi 1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1542 as_fn_set_status $ac_retval 1543 1544} # ac_fn_c_try_compile 1545 1546# ac_fn_c_try_link LINENO 1547# ----------------------- 1548# Try to link conftest.$ac_ext, and return whether this succeeded. 1549ac_fn_c_try_link () 1550{ 1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1552 rm -f conftest.$ac_objext conftest$ac_exeext 1553 if { { ac_try="$ac_link" 1554case "(($ac_try" in 1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1556 *) ac_try_echo=$ac_try;; 1557esac 1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1559$as_echo "$ac_try_echo"; } >&5 1560 (eval "$ac_link") 2>conftest.err 1561 ac_status=$? 1562 if test -s conftest.err; then 1563 grep -v '^ *+' conftest.err >conftest.er1 1564 cat conftest.er1 >&5 1565 mv -f conftest.er1 conftest.err 1566 fi 1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1568 test $ac_status = 0; } && { 1569 test -z "$ac_c_werror_flag" || 1570 test ! -s conftest.err 1571 } && test -s conftest$ac_exeext && { 1572 test "$cross_compiling" = yes || 1573 test -x conftest$ac_exeext 1574 }; then : 1575 ac_retval=0 1576else 1577 $as_echo "$as_me: failed program was:" >&5 1578sed 's/^/| /' conftest.$ac_ext >&5 1579 1580 ac_retval=1 1581fi 1582 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1583 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1584 # interfere with the next link command; also delete a directory that is 1585 # left behind by Apple's compiler. We do this before executing the actions. 1586 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1588 as_fn_set_status $ac_retval 1589 1590} # ac_fn_c_try_link 1591 1592# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1593# ------------------------------------------------------- 1594# Tests whether HEADER exists and can be compiled using the include files in 1595# INCLUDES, setting the cache variable VAR accordingly. 1596ac_fn_c_check_header_compile () 1597{ 1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1600$as_echo_n "checking for $2... " >&6; } 1601if eval \${$3+:} false; then : 1602 $as_echo_n "(cached) " >&6 1603else 1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1605/* end confdefs.h. */ 1606$4 1607#include <$2> 1608_ACEOF 1609if ac_fn_c_try_compile "$LINENO"; then : 1610 eval "$3=yes" 1611else 1612 eval "$3=no" 1613fi 1614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1615fi 1616eval ac_res=\$$3 1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1618$as_echo "$ac_res" >&6; } 1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1620 1621} # ac_fn_c_check_header_compile 1622 1623# ac_fn_c_try_cpp LINENO 1624# ---------------------- 1625# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1626ac_fn_c_try_cpp () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 if { { ac_try="$ac_cpp conftest.$ac_ext" 1630case "(($ac_try" in 1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1632 *) ac_try_echo=$ac_try;; 1633esac 1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1635$as_echo "$ac_try_echo"; } >&5 1636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1637 ac_status=$? 1638 if test -s conftest.err; then 1639 grep -v '^ *+' conftest.err >conftest.er1 1640 cat conftest.er1 >&5 1641 mv -f conftest.er1 conftest.err 1642 fi 1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1644 test $ac_status = 0; } > conftest.i && { 1645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1646 test ! -s conftest.err 1647 }; then : 1648 ac_retval=0 1649else 1650 $as_echo "$as_me: failed program was:" >&5 1651sed 's/^/| /' conftest.$ac_ext >&5 1652 1653 ac_retval=1 1654fi 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 as_fn_set_status $ac_retval 1657 1658} # ac_fn_c_try_cpp 1659 1660# ac_fn_c_try_run LINENO 1661# ---------------------- 1662# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1663# that executables *can* be run. 1664ac_fn_c_try_run () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 if { { ac_try="$ac_link" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673$as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_link") 2>&5 1675 ac_status=$? 1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1678 { { case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681esac 1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683$as_echo "$ac_try_echo"; } >&5 1684 (eval "$ac_try") 2>&5 1685 ac_status=$? 1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1687 test $ac_status = 0; }; }; then : 1688 ac_retval=0 1689else 1690 $as_echo "$as_me: program exited with status $ac_status" >&5 1691 $as_echo "$as_me: failed program was:" >&5 1692sed 's/^/| /' conftest.$ac_ext >&5 1693 1694 ac_retval=$ac_status 1695fi 1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1698 as_fn_set_status $ac_retval 1699 1700} # ac_fn_c_try_run 1701 1702# ac_fn_c_check_func LINENO FUNC VAR 1703# ---------------------------------- 1704# Tests whether FUNC exists, setting the cache variable VAR accordingly 1705ac_fn_c_check_func () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1709$as_echo_n "checking for $2... " >&6; } 1710if eval \${$3+:} false; then : 1711 $as_echo_n "(cached) " >&6 1712else 1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1714/* end confdefs.h. */ 1715/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1716 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1717#define $2 innocuous_$2 1718 1719/* System header to define __stub macros and hopefully few prototypes, 1720 which can conflict with char $2 (); below. 1721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1722 <limits.h> exists even on freestanding compilers. */ 1723 1724#ifdef __STDC__ 1725# include <limits.h> 1726#else 1727# include <assert.h> 1728#endif 1729 1730#undef $2 1731 1732/* Override any GCC internal prototype to avoid an error. 1733 Use char because int might match the return type of a GCC 1734 builtin and then its argument prototype would still apply. */ 1735#ifdef __cplusplus 1736extern "C" 1737#endif 1738char $2 (); 1739/* The GNU C library defines this for functions which it implements 1740 to always fail with ENOSYS. Some functions are actually named 1741 something starting with __ and the normal name is an alias. */ 1742#if defined __stub_$2 || defined __stub___$2 1743choke me 1744#endif 1745 1746int 1747main () 1748{ 1749return $2 (); 1750 ; 1751 return 0; 1752} 1753_ACEOF 1754if ac_fn_c_try_link "$LINENO"; then : 1755 eval "$3=yes" 1756else 1757 eval "$3=no" 1758fi 1759rm -f core conftest.err conftest.$ac_objext \ 1760 conftest$ac_exeext conftest.$ac_ext 1761fi 1762eval ac_res=\$$3 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1764$as_echo "$ac_res" >&6; } 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 1767} # ac_fn_c_check_func 1768cat >config.log <<_ACEOF 1769This file contains any messages produced by compilers while 1770running configure, to aid debugging if configure makes a mistake. 1771 1772It was created by Multitouch Protocol Translation Library $as_me 1.1.6, which was 1773generated by GNU Autoconf 2.69. Invocation command line was 1774 1775 $ $0 $@ 1776 1777_ACEOF 1778exec 5>>config.log 1779{ 1780cat <<_ASUNAME 1781## --------- ## 1782## Platform. ## 1783## --------- ## 1784 1785hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1786uname -m = `(uname -m) 2>/dev/null || echo unknown` 1787uname -r = `(uname -r) 2>/dev/null || echo unknown` 1788uname -s = `(uname -s) 2>/dev/null || echo unknown` 1789uname -v = `(uname -v) 2>/dev/null || echo unknown` 1790 1791/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1792/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1793 1794/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1795/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1796/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1797/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1798/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1799/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1800/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1801 1802_ASUNAME 1803 1804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1805for as_dir in $PATH 1806do 1807 IFS=$as_save_IFS 1808 test -z "$as_dir" && as_dir=. 1809 $as_echo "PATH: $as_dir" 1810 done 1811IFS=$as_save_IFS 1812 1813} >&5 1814 1815cat >&5 <<_ACEOF 1816 1817 1818## ----------- ## 1819## Core tests. ## 1820## ----------- ## 1821 1822_ACEOF 1823 1824 1825# Keep a trace of the command line. 1826# Strip out --no-create and --no-recursion so they do not pile up. 1827# Strip out --silent because we don't want to record it for future runs. 1828# Also quote any args containing shell meta-characters. 1829# Make two passes to allow for proper duplicate-argument suppression. 1830ac_configure_args= 1831ac_configure_args0= 1832ac_configure_args1= 1833ac_must_keep_next=false 1834for ac_pass in 1 2 1835do 1836 for ac_arg 1837 do 1838 case $ac_arg in 1839 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1840 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1841 | -silent | --silent | --silen | --sile | --sil) 1842 continue ;; 1843 *\'*) 1844 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1845 esac 1846 case $ac_pass in 1847 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1848 2) 1849 as_fn_append ac_configure_args1 " '$ac_arg'" 1850 if test $ac_must_keep_next = true; then 1851 ac_must_keep_next=false # Got value, back to normal. 1852 else 1853 case $ac_arg in 1854 *=* | --config-cache | -C | -disable-* | --disable-* \ 1855 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1856 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1857 | -with-* | --with-* | -without-* | --without-* | --x) 1858 case "$ac_configure_args0 " in 1859 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1860 esac 1861 ;; 1862 -* ) ac_must_keep_next=true ;; 1863 esac 1864 fi 1865 as_fn_append ac_configure_args " '$ac_arg'" 1866 ;; 1867 esac 1868 done 1869done 1870{ ac_configure_args0=; unset ac_configure_args0;} 1871{ ac_configure_args1=; unset ac_configure_args1;} 1872 1873# When interrupted or exit'd, cleanup temporary files, and complete 1874# config.log. We remove comments because anyway the quotes in there 1875# would cause problems or look ugly. 1876# WARNING: Use '\'' to represent an apostrophe within the trap. 1877# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1878trap 'exit_status=$? 1879 # Save into config.log some information that might help in debugging. 1880 { 1881 echo 1882 1883 $as_echo "## ---------------- ## 1884## Cache variables. ## 1885## ---------------- ##" 1886 echo 1887 # The following way of writing the cache mishandles newlines in values, 1888( 1889 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1890 eval ac_val=\$$ac_var 1891 case $ac_val in #( 1892 *${as_nl}*) 1893 case $ac_var in #( 1894 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1895$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1896 esac 1897 case $ac_var in #( 1898 _ | IFS | as_nl) ;; #( 1899 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1900 *) { eval $ac_var=; unset $ac_var;} ;; 1901 esac ;; 1902 esac 1903 done 1904 (set) 2>&1 | 1905 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1906 *${as_nl}ac_space=\ *) 1907 sed -n \ 1908 "s/'\''/'\''\\\\'\'''\''/g; 1909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1910 ;; #( 1911 *) 1912 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1913 ;; 1914 esac | 1915 sort 1916) 1917 echo 1918 1919 $as_echo "## ----------------- ## 1920## Output variables. ## 1921## ----------------- ##" 1922 echo 1923 for ac_var in $ac_subst_vars 1924 do 1925 eval ac_val=\$$ac_var 1926 case $ac_val in 1927 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1928 esac 1929 $as_echo "$ac_var='\''$ac_val'\''" 1930 done | sort 1931 echo 1932 1933 if test -n "$ac_subst_files"; then 1934 $as_echo "## ------------------- ## 1935## File substitutions. ## 1936## ------------------- ##" 1937 echo 1938 for ac_var in $ac_subst_files 1939 do 1940 eval ac_val=\$$ac_var 1941 case $ac_val in 1942 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1943 esac 1944 $as_echo "$ac_var='\''$ac_val'\''" 1945 done | sort 1946 echo 1947 fi 1948 1949 if test -s confdefs.h; then 1950 $as_echo "## ----------- ## 1951## confdefs.h. ## 1952## ----------- ##" 1953 echo 1954 cat confdefs.h 1955 echo 1956 fi 1957 test "$ac_signal" != 0 && 1958 $as_echo "$as_me: caught signal $ac_signal" 1959 $as_echo "$as_me: exit $exit_status" 1960 } >&5 1961 rm -f core *.core core.conftest.* && 1962 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1963 exit $exit_status 1964' 0 1965for ac_signal in 1 2 13 15; do 1966 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1967done 1968ac_signal=0 1969 1970# confdefs.h avoids OS command line length limits that DEFS can exceed. 1971rm -f -r conftest* confdefs.h 1972 1973$as_echo "/* confdefs.h */" > confdefs.h 1974 1975# Predefined preprocessor variables. 1976 1977cat >>confdefs.h <<_ACEOF 1978#define PACKAGE_NAME "$PACKAGE_NAME" 1979_ACEOF 1980 1981cat >>confdefs.h <<_ACEOF 1982#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1983_ACEOF 1984 1985cat >>confdefs.h <<_ACEOF 1986#define PACKAGE_VERSION "$PACKAGE_VERSION" 1987_ACEOF 1988 1989cat >>confdefs.h <<_ACEOF 1990#define PACKAGE_STRING "$PACKAGE_STRING" 1991_ACEOF 1992 1993cat >>confdefs.h <<_ACEOF 1994#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1995_ACEOF 1996 1997cat >>confdefs.h <<_ACEOF 1998#define PACKAGE_URL "$PACKAGE_URL" 1999_ACEOF 2000 2001 2002# Let the site file select an alternate cache file if it wants to. 2003# Prefer an explicitly selected file to automatically selected ones. 2004ac_site_file1=NONE 2005ac_site_file2=NONE 2006if test -n "$CONFIG_SITE"; then 2007 # We do not want a PATH search for config.site. 2008 case $CONFIG_SITE in #(( 2009 -*) ac_site_file1=./$CONFIG_SITE;; 2010 */*) ac_site_file1=$CONFIG_SITE;; 2011 *) ac_site_file1=./$CONFIG_SITE;; 2012 esac 2013elif test "x$prefix" != xNONE; then 2014 ac_site_file1=$prefix/share/config.site 2015 ac_site_file2=$prefix/etc/config.site 2016else 2017 ac_site_file1=$ac_default_prefix/share/config.site 2018 ac_site_file2=$ac_default_prefix/etc/config.site 2019fi 2020for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2021do 2022 test "x$ac_site_file" = xNONE && continue 2023 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2025$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2026 sed 's/^/| /' "$ac_site_file" >&5 2027 . "$ac_site_file" \ 2028 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2030as_fn_error $? "failed to load site script $ac_site_file 2031See \`config.log' for more details" "$LINENO" 5; } 2032 fi 2033done 2034 2035if test -r "$cache_file"; then 2036 # Some versions of bash will fail to source /dev/null (special files 2037 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2038 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2040$as_echo "$as_me: loading cache $cache_file" >&6;} 2041 case $cache_file in 2042 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2043 *) . "./$cache_file";; 2044 esac 2045 fi 2046else 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2048$as_echo "$as_me: creating cache $cache_file" >&6;} 2049 >$cache_file 2050fi 2051 2052# Check that the precious variables saved in the cache have kept the same 2053# value. 2054ac_cache_corrupted=false 2055for ac_var in $ac_precious_vars; do 2056 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2057 eval ac_new_set=\$ac_env_${ac_var}_set 2058 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2059 eval ac_new_val=\$ac_env_${ac_var}_value 2060 case $ac_old_set,$ac_new_set in 2061 set,) 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2063$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2064 ac_cache_corrupted=: ;; 2065 ,set) 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2067$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2068 ac_cache_corrupted=: ;; 2069 ,);; 2070 *) 2071 if test "x$ac_old_val" != "x$ac_new_val"; then 2072 # differences in whitespace do not lead to failure. 2073 ac_old_val_w=`echo x $ac_old_val` 2074 ac_new_val_w=`echo x $ac_new_val` 2075 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2077$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2078 ac_cache_corrupted=: 2079 else 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2081$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2082 eval $ac_var=\$ac_old_val 2083 fi 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2085$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2087$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2088 fi;; 2089 esac 2090 # Pass precious variables to config.status. 2091 if test "$ac_new_set" = set; then 2092 case $ac_new_val in 2093 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2094 *) ac_arg=$ac_var=$ac_new_val ;; 2095 esac 2096 case " $ac_configure_args " in 2097 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2098 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2099 esac 2100 fi 2101done 2102if $ac_cache_corrupted; then 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2106$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2107 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2108fi 2109## -------------------- ## 2110## Main body of script. ## 2111## -------------------- ## 2112 2113ac_ext=c 2114ac_cpp='$CPP $CPPFLAGS' 2115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2117ac_compiler_gnu=$ac_cv_c_compiler_gnu 2118 2119 2120 2121ac_config_headers="$ac_config_headers config.h" 2122 2123ac_aux_dir= 2124for ac_dir in config-aux "$srcdir"/config-aux; do 2125 if test -f "$ac_dir/install-sh"; then 2126 ac_aux_dir=$ac_dir 2127 ac_install_sh="$ac_aux_dir/install-sh -c" 2128 break 2129 elif test -f "$ac_dir/install.sh"; then 2130 ac_aux_dir=$ac_dir 2131 ac_install_sh="$ac_aux_dir/install.sh -c" 2132 break 2133 elif test -f "$ac_dir/shtool"; then 2134 ac_aux_dir=$ac_dir 2135 ac_install_sh="$ac_aux_dir/shtool install -c" 2136 break 2137 fi 2138done 2139if test -z "$ac_aux_dir"; then 2140 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config-aux \"$srcdir\"/config-aux" "$LINENO" 5 2141fi 2142 2143# These three variables are undocumented and unsupported, 2144# and are intended to be withdrawn in a future Autoconf release. 2145# They can cause serious problems if a builder's source tree is in a directory 2146# whose full name contains unusual characters. 2147ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2148ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2149ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2150 2151 2152 2153# Initialize Automake 2154am__api_version='1.16' 2155 2156# Find a good install program. We prefer a C program (faster), 2157# so one script is as good as another. But avoid the broken or 2158# incompatible versions: 2159# SysV /etc/install, /usr/sbin/install 2160# SunOS /usr/etc/install 2161# IRIX /sbin/install 2162# AIX /bin/install 2163# AmigaOS /C/install, which installs bootblocks on floppy discs 2164# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2165# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2166# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2167# OS/2's system install, which has a completely different semantic 2168# ./install, which can be erroneously created by make from ./install.sh. 2169# Reject install programs that cannot install multiple files. 2170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2171$as_echo_n "checking for a BSD-compatible install... " >&6; } 2172if test -z "$INSTALL"; then 2173if ${ac_cv_path_install+:} false; then : 2174 $as_echo_n "(cached) " >&6 2175else 2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2177for as_dir in $PATH 2178do 2179 IFS=$as_save_IFS 2180 test -z "$as_dir" && as_dir=. 2181 # Account for people who put trailing slashes in PATH elements. 2182case $as_dir/ in #(( 2183 ./ | .// | /[cC]/* | \ 2184 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2185 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2186 /usr/ucb/* ) ;; 2187 *) 2188 # OSF1 and SCO ODT 3.0 have their own names for install. 2189 # Don't use installbsd from OSF since it installs stuff as root 2190 # by default. 2191 for ac_prog in ginstall scoinst install; do 2192 for ac_exec_ext in '' $ac_executable_extensions; do 2193 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2194 if test $ac_prog = install && 2195 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2196 # AIX install. It has an incompatible calling convention. 2197 : 2198 elif test $ac_prog = install && 2199 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2200 # program-specific install script used by HP pwplus--don't use. 2201 : 2202 else 2203 rm -rf conftest.one conftest.two conftest.dir 2204 echo one > conftest.one 2205 echo two > conftest.two 2206 mkdir conftest.dir 2207 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2208 test -s conftest.one && test -s conftest.two && 2209 test -s conftest.dir/conftest.one && 2210 test -s conftest.dir/conftest.two 2211 then 2212 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2213 break 3 2214 fi 2215 fi 2216 fi 2217 done 2218 done 2219 ;; 2220esac 2221 2222 done 2223IFS=$as_save_IFS 2224 2225rm -rf conftest.one conftest.two conftest.dir 2226 2227fi 2228 if test "${ac_cv_path_install+set}" = set; then 2229 INSTALL=$ac_cv_path_install 2230 else 2231 # As a last resort, use the slow shell script. Don't cache a 2232 # value for INSTALL within a source directory, because that will 2233 # break other packages using the cache if that directory is 2234 # removed, or if the value is a relative name. 2235 INSTALL=$ac_install_sh 2236 fi 2237fi 2238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2239$as_echo "$INSTALL" >&6; } 2240 2241# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2242# It thinks the first close brace ends the variable substitution. 2243test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2244 2245test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2246 2247test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2248 2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2250$as_echo_n "checking whether build environment is sane... " >&6; } 2251# Reject unsafe characters in $srcdir or the absolute working directory 2252# name. Accept space and tab only in the latter. 2253am_lf=' 2254' 2255case `pwd` in 2256 *[\\\"\#\$\&\'\`$am_lf]*) 2257 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2258esac 2259case $srcdir in 2260 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2261 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2262esac 2263 2264# Do 'set' in a subshell so we don't clobber the current shell's 2265# arguments. Must try -L first in case configure is actually a 2266# symlink; some systems play weird games with the mod time of symlinks 2267# (eg FreeBSD returns the mod time of the symlink's containing 2268# directory). 2269if ( 2270 am_has_slept=no 2271 for am_try in 1 2; do 2272 echo "timestamp, slept: $am_has_slept" > conftest.file 2273 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2274 if test "$*" = "X"; then 2275 # -L didn't work. 2276 set X `ls -t "$srcdir/configure" conftest.file` 2277 fi 2278 if test "$*" != "X $srcdir/configure conftest.file" \ 2279 && test "$*" != "X conftest.file $srcdir/configure"; then 2280 2281 # If neither matched, then we have a broken ls. This can happen 2282 # if, for instance, CONFIG_SHELL is bash and it inherits a 2283 # broken ls alias from the environment. This has actually 2284 # happened. Such a system could not be considered "sane". 2285 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2286 alias in your environment" "$LINENO" 5 2287 fi 2288 if test "$2" = conftest.file || test $am_try -eq 2; then 2289 break 2290 fi 2291 # Just in case. 2292 sleep 1 2293 am_has_slept=yes 2294 done 2295 test "$2" = conftest.file 2296 ) 2297then 2298 # Ok. 2299 : 2300else 2301 as_fn_error $? "newly created file is older than distributed files! 2302Check your system clock" "$LINENO" 5 2303fi 2304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2305$as_echo "yes" >&6; } 2306# If we didn't sleep, we still need to ensure time stamps of config.status and 2307# generated files are strictly newer. 2308am_sleep_pid= 2309if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2310 ( sleep 1 ) & 2311 am_sleep_pid=$! 2312fi 2313 2314rm -f conftest.file 2315 2316test "$program_prefix" != NONE && 2317 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2318# Use a double $ so make ignores it. 2319test "$program_suffix" != NONE && 2320 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2321# Double any \ or $. 2322# By default was `s,x,x', remove it if useless. 2323ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2324program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2325 2326# Expand $ac_aux_dir to an absolute path. 2327am_aux_dir=`cd "$ac_aux_dir" && pwd` 2328 2329if test x"${MISSING+set}" != xset; then 2330 case $am_aux_dir in 2331 *\ * | *\ *) 2332 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2333 *) 2334 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2335 esac 2336fi 2337# Use eval to expand $SHELL 2338if eval "$MISSING --is-lightweight"; then 2339 am_missing_run="$MISSING " 2340else 2341 am_missing_run= 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2343$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2344fi 2345 2346if test x"${install_sh+set}" != xset; then 2347 case $am_aux_dir in 2348 *\ * | *\ *) 2349 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2350 *) 2351 install_sh="\${SHELL} $am_aux_dir/install-sh" 2352 esac 2353fi 2354 2355# Installed binaries are usually stripped using 'strip' when the user 2356# run "make install-strip". However 'strip' might not be the right 2357# tool to use in cross-compilation environments, therefore Automake 2358# will honor the 'STRIP' environment variable to overrule this program. 2359if test "$cross_compiling" != no; then 2360 if test -n "$ac_tool_prefix"; then 2361 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2362set dummy ${ac_tool_prefix}strip; ac_word=$2 2363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2364$as_echo_n "checking for $ac_word... " >&6; } 2365if ${ac_cv_prog_STRIP+:} false; then : 2366 $as_echo_n "(cached) " >&6 2367else 2368 if test -n "$STRIP"; then 2369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2370else 2371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2372for as_dir in $PATH 2373do 2374 IFS=$as_save_IFS 2375 test -z "$as_dir" && as_dir=. 2376 for ac_exec_ext in '' $ac_executable_extensions; do 2377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2378 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2380 break 2 2381 fi 2382done 2383 done 2384IFS=$as_save_IFS 2385 2386fi 2387fi 2388STRIP=$ac_cv_prog_STRIP 2389if test -n "$STRIP"; then 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2391$as_echo "$STRIP" >&6; } 2392else 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2394$as_echo "no" >&6; } 2395fi 2396 2397 2398fi 2399if test -z "$ac_cv_prog_STRIP"; then 2400 ac_ct_STRIP=$STRIP 2401 # Extract the first word of "strip", so it can be a program name with args. 2402set dummy strip; ac_word=$2 2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2404$as_echo_n "checking for $ac_word... " >&6; } 2405if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2406 $as_echo_n "(cached) " >&6 2407else 2408 if test -n "$ac_ct_STRIP"; then 2409 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2410else 2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2412for as_dir in $PATH 2413do 2414 IFS=$as_save_IFS 2415 test -z "$as_dir" && as_dir=. 2416 for ac_exec_ext in '' $ac_executable_extensions; do 2417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2418 ac_cv_prog_ac_ct_STRIP="strip" 2419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2420 break 2 2421 fi 2422done 2423 done 2424IFS=$as_save_IFS 2425 2426fi 2427fi 2428ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2429if test -n "$ac_ct_STRIP"; then 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2431$as_echo "$ac_ct_STRIP" >&6; } 2432else 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2434$as_echo "no" >&6; } 2435fi 2436 2437 if test "x$ac_ct_STRIP" = x; then 2438 STRIP=":" 2439 else 2440 case $cross_compiling:$ac_tool_warned in 2441yes:) 2442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2444ac_tool_warned=yes ;; 2445esac 2446 STRIP=$ac_ct_STRIP 2447 fi 2448else 2449 STRIP="$ac_cv_prog_STRIP" 2450fi 2451 2452fi 2453INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2454 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2456$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2457if test -z "$MKDIR_P"; then 2458 if ${ac_cv_path_mkdir+:} false; then : 2459 $as_echo_n "(cached) " >&6 2460else 2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2462for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2463do 2464 IFS=$as_save_IFS 2465 test -z "$as_dir" && as_dir=. 2466 for ac_prog in mkdir gmkdir; do 2467 for ac_exec_ext in '' $ac_executable_extensions; do 2468 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2469 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2470 'mkdir (GNU coreutils) '* | \ 2471 'mkdir (coreutils) '* | \ 2472 'mkdir (fileutils) '4.1*) 2473 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2474 break 3;; 2475 esac 2476 done 2477 done 2478 done 2479IFS=$as_save_IFS 2480 2481fi 2482 2483 test -d ./--version && rmdir ./--version 2484 if test "${ac_cv_path_mkdir+set}" = set; then 2485 MKDIR_P="$ac_cv_path_mkdir -p" 2486 else 2487 # As a last resort, use the slow shell script. Don't cache a 2488 # value for MKDIR_P within a source directory, because that will 2489 # break other packages using the cache if that directory is 2490 # removed, or if the value is a relative name. 2491 MKDIR_P="$ac_install_sh -d" 2492 fi 2493fi 2494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2495$as_echo "$MKDIR_P" >&6; } 2496 2497for ac_prog in gawk mawk nawk awk 2498do 2499 # Extract the first word of "$ac_prog", so it can be a program name with args. 2500set dummy $ac_prog; ac_word=$2 2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2502$as_echo_n "checking for $ac_word... " >&6; } 2503if ${ac_cv_prog_AWK+:} false; then : 2504 $as_echo_n "(cached) " >&6 2505else 2506 if test -n "$AWK"; then 2507 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2508else 2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2510for as_dir in $PATH 2511do 2512 IFS=$as_save_IFS 2513 test -z "$as_dir" && as_dir=. 2514 for ac_exec_ext in '' $ac_executable_extensions; do 2515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2516 ac_cv_prog_AWK="$ac_prog" 2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2518 break 2 2519 fi 2520done 2521 done 2522IFS=$as_save_IFS 2523 2524fi 2525fi 2526AWK=$ac_cv_prog_AWK 2527if test -n "$AWK"; then 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2529$as_echo "$AWK" >&6; } 2530else 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2532$as_echo "no" >&6; } 2533fi 2534 2535 2536 test -n "$AWK" && break 2537done 2538 2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2540$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2541set x ${MAKE-make} 2542ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2543if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2544 $as_echo_n "(cached) " >&6 2545else 2546 cat >conftest.make <<\_ACEOF 2547SHELL = /bin/sh 2548all: 2549 @echo '@@@%%%=$(MAKE)=@@@%%%' 2550_ACEOF 2551# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2552case `${MAKE-make} -f conftest.make 2>/dev/null` in 2553 *@@@%%%=?*=@@@%%%*) 2554 eval ac_cv_prog_make_${ac_make}_set=yes;; 2555 *) 2556 eval ac_cv_prog_make_${ac_make}_set=no;; 2557esac 2558rm -f conftest.make 2559fi 2560if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2562$as_echo "yes" >&6; } 2563 SET_MAKE= 2564else 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2566$as_echo "no" >&6; } 2567 SET_MAKE="MAKE=${MAKE-make}" 2568fi 2569 2570rm -rf .tst 2>/dev/null 2571mkdir .tst 2>/dev/null 2572if test -d .tst; then 2573 am__leading_dot=. 2574else 2575 am__leading_dot=_ 2576fi 2577rmdir .tst 2>/dev/null 2578 2579# Check whether --enable-silent-rules was given. 2580if test "${enable_silent_rules+set}" = set; then : 2581 enableval=$enable_silent_rules; 2582fi 2583 2584case $enable_silent_rules in # ((( 2585 yes) AM_DEFAULT_VERBOSITY=0;; 2586 no) AM_DEFAULT_VERBOSITY=1;; 2587 *) AM_DEFAULT_VERBOSITY=1;; 2588esac 2589am_make=${MAKE-make} 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2591$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2592if ${am_cv_make_support_nested_variables+:} false; then : 2593 $as_echo_n "(cached) " >&6 2594else 2595 if $as_echo 'TRUE=$(BAR$(V)) 2596BAR0=false 2597BAR1=true 2598V=1 2599am__doit: 2600 @$(TRUE) 2601.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2602 am_cv_make_support_nested_variables=yes 2603else 2604 am_cv_make_support_nested_variables=no 2605fi 2606fi 2607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2608$as_echo "$am_cv_make_support_nested_variables" >&6; } 2609if test $am_cv_make_support_nested_variables = yes; then 2610 AM_V='$(V)' 2611 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2612else 2613 AM_V=$AM_DEFAULT_VERBOSITY 2614 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2615fi 2616AM_BACKSLASH='\' 2617 2618if test "`cd $srcdir && pwd`" != "`pwd`"; then 2619 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2620 # is not polluted with repeated "-I." 2621 am__isrc=' -I$(srcdir)' 2622 # test to see if srcdir already configured 2623 if test -f $srcdir/config.status; then 2624 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2625 fi 2626fi 2627 2628# test whether we have cygpath 2629if test -z "$CYGPATH_W"; then 2630 if (cygpath --version) >/dev/null 2>/dev/null; then 2631 CYGPATH_W='cygpath -w' 2632 else 2633 CYGPATH_W=echo 2634 fi 2635fi 2636 2637 2638# Define the identity of the package. 2639 PACKAGE='mtdev' 2640 VERSION='1.1.6' 2641 2642 2643cat >>confdefs.h <<_ACEOF 2644#define PACKAGE "$PACKAGE" 2645_ACEOF 2646 2647 2648cat >>confdefs.h <<_ACEOF 2649#define VERSION "$VERSION" 2650_ACEOF 2651 2652# Some tools Automake needs. 2653 2654ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2655 2656 2657AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2658 2659 2660AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2661 2662 2663AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2664 2665 2666MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2667 2668# For better backward compatibility. To be removed once Automake 1.9.x 2669# dies out for good. For more background, see: 2670# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2671# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2672mkdir_p='$(MKDIR_P)' 2673 2674# We need awk for the "check" target (and possibly the TAP driver). The 2675# system "awk" is bad on some platforms. 2676# Always define AMTAR for backward compatibility. Yes, it's still used 2677# in the wild :-( We should find a proper way to deprecate it ... 2678AMTAR='$${TAR-tar}' 2679 2680 2681# We'll loop over all known methods to create a tar archive until one works. 2682_am_tools='gnutar pax cpio none' 2683 2684am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2685 2686 2687 2688 2689 2690 2691# POSIX will say in a future version that running "rm -f" with no argument 2692# is OK; and we want to be able to make that assumption in our Makefile 2693# recipes. So use an aggressive probe to check that the usage we want is 2694# actually supported "in the wild" to an acceptable degree. 2695# See automake bug#10828. 2696# To make any issue more visible, cause the running configure to be aborted 2697# by default if the 'rm' program in use doesn't match our expectations; the 2698# user can still override this though. 2699if rm -f && rm -fr && rm -rf; then : OK; else 2700 cat >&2 <<'END' 2701Oops! 2702 2703Your 'rm' program seems unable to run without file operands specified 2704on the command line, even when the '-f' option is present. This is contrary 2705to the behaviour of most rm programs out there, and not conforming with 2706the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2707 2708Please tell bug-automake@gnu.org about your system, including the value 2709of your $PATH and any error possibly output before this message. This 2710can help us improve future automake versions. 2711 2712END 2713 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2714 echo 'Configuration will proceed anyway, since you have set the' >&2 2715 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2716 echo >&2 2717 else 2718 cat >&2 <<'END' 2719Aborting the configuration process, to ensure you take notice of the issue. 2720 2721You can download and install GNU coreutils to get an 'rm' implementation 2722that behaves properly: <https://www.gnu.org/software/coreutils/>. 2723 2724If you want to complete the configuration process using your problematic 2725'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2726to "yes", and re-run configure. 2727 2728END 2729 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2730 fi 2731fi 2732 2733# Check whether --enable-silent-rules was given. 2734if test "${enable_silent_rules+set}" = set; then : 2735 enableval=$enable_silent_rules; 2736fi 2737 2738case $enable_silent_rules in # ((( 2739 yes) AM_DEFAULT_VERBOSITY=0;; 2740 no) AM_DEFAULT_VERBOSITY=1;; 2741 *) AM_DEFAULT_VERBOSITY=0;; 2742esac 2743am_make=${MAKE-make} 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2745$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2746if ${am_cv_make_support_nested_variables+:} false; then : 2747 $as_echo_n "(cached) " >&6 2748else 2749 if $as_echo 'TRUE=$(BAR$(V)) 2750BAR0=false 2751BAR1=true 2752V=1 2753am__doit: 2754 @$(TRUE) 2755.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2756 am_cv_make_support_nested_variables=yes 2757else 2758 am_cv_make_support_nested_variables=no 2759fi 2760fi 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2762$as_echo "$am_cv_make_support_nested_variables" >&6; } 2763if test $am_cv_make_support_nested_variables = yes; then 2764 AM_V='$(V)' 2765 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2766else 2767 AM_V=$AM_DEFAULT_VERBOSITY 2768 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2769fi 2770AM_BACKSLASH='\' 2771 2772 2773LIB_VERSION=1:0:0 2774 2775 2776# Initialize libtool 2777case `pwd` in 2778 *\ * | *\ *) 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2780$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2781esac 2782 2783 2784 2785macro_version='2.4.6.42-b88ce' 2786macro_revision='2.4.6.42' 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800ltmain=$ac_aux_dir/ltmain.sh 2801 2802# Make sure we can run config.sub. 2803$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2804 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2805 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2807$as_echo_n "checking build system type... " >&6; } 2808if ${ac_cv_build+:} false; then : 2809 $as_echo_n "(cached) " >&6 2810else 2811 ac_build_alias=$build_alias 2812test "x$ac_build_alias" = x && 2813 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2814test "x$ac_build_alias" = x && 2815 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2816ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2817 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2818 2819fi 2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2821$as_echo "$ac_cv_build" >&6; } 2822case $ac_cv_build in 2823*-*-*) ;; 2824*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2825esac 2826build=$ac_cv_build 2827ac_save_IFS=$IFS; IFS='-' 2828set x $ac_cv_build 2829shift 2830build_cpu=$1 2831build_vendor=$2 2832shift; shift 2833# Remember, the first character of IFS is used to create $*, 2834# except with old shells: 2835build_os=$* 2836IFS=$ac_save_IFS 2837case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2838 2839 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2841$as_echo_n "checking host system type... " >&6; } 2842if ${ac_cv_host+:} false; then : 2843 $as_echo_n "(cached) " >&6 2844else 2845 if test "x$host_alias" = x; then 2846 ac_cv_host=$ac_cv_build 2847else 2848 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2849 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2850fi 2851 2852fi 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2854$as_echo "$ac_cv_host" >&6; } 2855case $ac_cv_host in 2856*-*-*) ;; 2857*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2858esac 2859host=$ac_cv_host 2860ac_save_IFS=$IFS; IFS='-' 2861set x $ac_cv_host 2862shift 2863host_cpu=$1 2864host_vendor=$2 2865shift; shift 2866# Remember, the first character of IFS is used to create $*, 2867# except with old shells: 2868host_os=$* 2869IFS=$ac_save_IFS 2870case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2871 2872 2873# Backslashify metacharacters that are still active within 2874# double-quoted strings. 2875sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2876 2877# Same as above, but do not quote variable references. 2878double_quote_subst='s/\(["`\\]\)/\\\1/g' 2879 2880# Sed substitution to delay expansion of an escaped shell variable in a 2881# double_quote_subst'ed string. 2882delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2883 2884# Sed substitution to delay expansion of an escaped single quote. 2885delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2886 2887# Sed substitution to avoid accidental globbing in evaled expressions 2888no_glob_subst='s/\*/\\\*/g' 2889 2890ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2891ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2892ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2893 2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2895$as_echo_n "checking how to print strings... " >&6; } 2896# Test print first, because it will be a builtin if present. 2897if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2898 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2899 ECHO='print -r --' 2900elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2901 ECHO='printf %s\n' 2902else 2903 # Use this function as a fallback that always works. 2904 func_fallback_echo () 2905 { 2906 eval 'cat <<_LTECHO_EOF 2907$1 2908_LTECHO_EOF' 2909 } 2910 ECHO='func_fallback_echo' 2911fi 2912 2913# func_echo_all arg... 2914# Invoke $ECHO with all args, space-separated. 2915func_echo_all () 2916{ 2917 $ECHO "" 2918} 2919 2920case $ECHO in 2921 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2922$as_echo "printf" >&6; } ;; 2923 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2924$as_echo "print -r" >&6; } ;; 2925 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2926$as_echo "cat" >&6; } ;; 2927esac 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942DEPDIR="${am__leading_dot}deps" 2943 2944ac_config_commands="$ac_config_commands depfiles" 2945 2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2947$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2948cat > confinc.mk << 'END' 2949am__doit: 2950 @echo this is the am__doit target >confinc.out 2951.PHONY: am__doit 2952END 2953am__include="#" 2954am__quote= 2955# BSD make does it like this. 2956echo '.include "confinc.mk" # ignored' > confmf.BSD 2957# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2958echo 'include confinc.mk # ignored' > confmf.GNU 2959_am_result=no 2960for s in GNU BSD; do 2961 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2962 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2963 ac_status=$? 2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2965 (exit $ac_status); } 2966 case $?:`cat confinc.out 2>/dev/null` in #( 2967 '0:this is the am__doit target') : 2968 case $s in #( 2969 BSD) : 2970 am__include='.include' am__quote='"' ;; #( 2971 *) : 2972 am__include='include' am__quote='' ;; 2973esac ;; #( 2974 *) : 2975 ;; 2976esac 2977 if test "$am__include" != "#"; then 2978 _am_result="yes ($s style)" 2979 break 2980 fi 2981done 2982rm -f confinc.* confmf.* 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 2984$as_echo "${_am_result}" >&6; } 2985 2986# Check whether --enable-dependency-tracking was given. 2987if test "${enable_dependency_tracking+set}" = set; then : 2988 enableval=$enable_dependency_tracking; 2989fi 2990 2991if test "x$enable_dependency_tracking" != xno; then 2992 am_depcomp="$ac_aux_dir/depcomp" 2993 AMDEPBACKSLASH='\' 2994 am__nodep='_no' 2995fi 2996 if test "x$enable_dependency_tracking" != xno; then 2997 AMDEP_TRUE= 2998 AMDEP_FALSE='#' 2999else 3000 AMDEP_TRUE='#' 3001 AMDEP_FALSE= 3002fi 3003 3004 3005ac_ext=c 3006ac_cpp='$CPP $CPPFLAGS' 3007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3009ac_compiler_gnu=$ac_cv_c_compiler_gnu 3010if test -n "$ac_tool_prefix"; then 3011 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3012set dummy ${ac_tool_prefix}gcc; ac_word=$2 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3014$as_echo_n "checking for $ac_word... " >&6; } 3015if ${ac_cv_prog_CC+:} false; then : 3016 $as_echo_n "(cached) " >&6 3017else 3018 if test -n "$CC"; then 3019 ac_cv_prog_CC="$CC" # Let the user override the test. 3020else 3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3022for as_dir in $PATH 3023do 3024 IFS=$as_save_IFS 3025 test -z "$as_dir" && as_dir=. 3026 for ac_exec_ext in '' $ac_executable_extensions; do 3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3028 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3030 break 2 3031 fi 3032done 3033 done 3034IFS=$as_save_IFS 3035 3036fi 3037fi 3038CC=$ac_cv_prog_CC 3039if test -n "$CC"; then 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3041$as_echo "$CC" >&6; } 3042else 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3044$as_echo "no" >&6; } 3045fi 3046 3047 3048fi 3049if test -z "$ac_cv_prog_CC"; then 3050 ac_ct_CC=$CC 3051 # Extract the first word of "gcc", so it can be a program name with args. 3052set dummy gcc; ac_word=$2 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3054$as_echo_n "checking for $ac_word... " >&6; } 3055if ${ac_cv_prog_ac_ct_CC+:} false; then : 3056 $as_echo_n "(cached) " >&6 3057else 3058 if test -n "$ac_ct_CC"; then 3059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3060else 3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3062for as_dir in $PATH 3063do 3064 IFS=$as_save_IFS 3065 test -z "$as_dir" && as_dir=. 3066 for ac_exec_ext in '' $ac_executable_extensions; do 3067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3068 ac_cv_prog_ac_ct_CC="gcc" 3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3070 break 2 3071 fi 3072done 3073 done 3074IFS=$as_save_IFS 3075 3076fi 3077fi 3078ac_ct_CC=$ac_cv_prog_ac_ct_CC 3079if test -n "$ac_ct_CC"; then 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3081$as_echo "$ac_ct_CC" >&6; } 3082else 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3084$as_echo "no" >&6; } 3085fi 3086 3087 if test "x$ac_ct_CC" = x; then 3088 CC="" 3089 else 3090 case $cross_compiling:$ac_tool_warned in 3091yes:) 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3094ac_tool_warned=yes ;; 3095esac 3096 CC=$ac_ct_CC 3097 fi 3098else 3099 CC="$ac_cv_prog_CC" 3100fi 3101 3102if test -z "$CC"; then 3103 if test -n "$ac_tool_prefix"; then 3104 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3105set dummy ${ac_tool_prefix}cc; ac_word=$2 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3107$as_echo_n "checking for $ac_word... " >&6; } 3108if ${ac_cv_prog_CC+:} false; then : 3109 $as_echo_n "(cached) " >&6 3110else 3111 if test -n "$CC"; then 3112 ac_cv_prog_CC="$CC" # Let the user override the test. 3113else 3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3115for as_dir in $PATH 3116do 3117 IFS=$as_save_IFS 3118 test -z "$as_dir" && as_dir=. 3119 for ac_exec_ext in '' $ac_executable_extensions; do 3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3121 ac_cv_prog_CC="${ac_tool_prefix}cc" 3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3123 break 2 3124 fi 3125done 3126 done 3127IFS=$as_save_IFS 3128 3129fi 3130fi 3131CC=$ac_cv_prog_CC 3132if test -n "$CC"; then 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3134$as_echo "$CC" >&6; } 3135else 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3137$as_echo "no" >&6; } 3138fi 3139 3140 3141 fi 3142fi 3143if test -z "$CC"; then 3144 # Extract the first word of "cc", so it can be a program name with args. 3145set dummy cc; ac_word=$2 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3147$as_echo_n "checking for $ac_word... " >&6; } 3148if ${ac_cv_prog_CC+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 if test -n "$CC"; then 3152 ac_cv_prog_CC="$CC" # Let the user override the test. 3153else 3154 ac_prog_rejected=no 3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3156for as_dir in $PATH 3157do 3158 IFS=$as_save_IFS 3159 test -z "$as_dir" && as_dir=. 3160 for ac_exec_ext in '' $ac_executable_extensions; do 3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3163 ac_prog_rejected=yes 3164 continue 3165 fi 3166 ac_cv_prog_CC="cc" 3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3168 break 2 3169 fi 3170done 3171 done 3172IFS=$as_save_IFS 3173 3174if test $ac_prog_rejected = yes; then 3175 # We found a bogon in the path, so make sure we never use it. 3176 set dummy $ac_cv_prog_CC 3177 shift 3178 if test $# != 0; then 3179 # We chose a different compiler from the bogus one. 3180 # However, it has the same basename, so the bogon will be chosen 3181 # first if we set CC to just the basename; use the full file name. 3182 shift 3183 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3184 fi 3185fi 3186fi 3187fi 3188CC=$ac_cv_prog_CC 3189if test -n "$CC"; then 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3191$as_echo "$CC" >&6; } 3192else 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3194$as_echo "no" >&6; } 3195fi 3196 3197 3198fi 3199if test -z "$CC"; then 3200 if test -n "$ac_tool_prefix"; then 3201 for ac_prog in cl.exe 3202 do 3203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3204set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3206$as_echo_n "checking for $ac_word... " >&6; } 3207if ${ac_cv_prog_CC+:} false; then : 3208 $as_echo_n "(cached) " >&6 3209else 3210 if test -n "$CC"; then 3211 ac_cv_prog_CC="$CC" # Let the user override the test. 3212else 3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3214for as_dir in $PATH 3215do 3216 IFS=$as_save_IFS 3217 test -z "$as_dir" && as_dir=. 3218 for ac_exec_ext in '' $ac_executable_extensions; do 3219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3220 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3222 break 2 3223 fi 3224done 3225 done 3226IFS=$as_save_IFS 3227 3228fi 3229fi 3230CC=$ac_cv_prog_CC 3231if test -n "$CC"; then 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3233$as_echo "$CC" >&6; } 3234else 3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3236$as_echo "no" >&6; } 3237fi 3238 3239 3240 test -n "$CC" && break 3241 done 3242fi 3243if test -z "$CC"; then 3244 ac_ct_CC=$CC 3245 for ac_prog in cl.exe 3246do 3247 # Extract the first word of "$ac_prog", so it can be a program name with args. 3248set dummy $ac_prog; ac_word=$2 3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3250$as_echo_n "checking for $ac_word... " >&6; } 3251if ${ac_cv_prog_ac_ct_CC+:} false; then : 3252 $as_echo_n "(cached) " >&6 3253else 3254 if test -n "$ac_ct_CC"; then 3255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3256else 3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3258for as_dir in $PATH 3259do 3260 IFS=$as_save_IFS 3261 test -z "$as_dir" && as_dir=. 3262 for ac_exec_ext in '' $ac_executable_extensions; do 3263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3264 ac_cv_prog_ac_ct_CC="$ac_prog" 3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3266 break 2 3267 fi 3268done 3269 done 3270IFS=$as_save_IFS 3271 3272fi 3273fi 3274ac_ct_CC=$ac_cv_prog_ac_ct_CC 3275if test -n "$ac_ct_CC"; then 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3277$as_echo "$ac_ct_CC" >&6; } 3278else 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3280$as_echo "no" >&6; } 3281fi 3282 3283 3284 test -n "$ac_ct_CC" && break 3285done 3286 3287 if test "x$ac_ct_CC" = x; then 3288 CC="" 3289 else 3290 case $cross_compiling:$ac_tool_warned in 3291yes:) 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3294ac_tool_warned=yes ;; 3295esac 3296 CC=$ac_ct_CC 3297 fi 3298fi 3299 3300fi 3301 3302 3303test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3305as_fn_error $? "no acceptable C compiler found in \$PATH 3306See \`config.log' for more details" "$LINENO" 5; } 3307 3308# Provide some information about the compiler. 3309$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3310set X $ac_compile 3311ac_compiler=$2 3312for ac_option in --version -v -V -qversion; do 3313 { { ac_try="$ac_compiler $ac_option >&5" 3314case "(($ac_try" in 3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3316 *) ac_try_echo=$ac_try;; 3317esac 3318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3319$as_echo "$ac_try_echo"; } >&5 3320 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3321 ac_status=$? 3322 if test -s conftest.err; then 3323 sed '10a\ 3324... rest of stderr output deleted ... 3325 10q' conftest.err >conftest.er1 3326 cat conftest.er1 >&5 3327 fi 3328 rm -f conftest.er1 conftest.err 3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3330 test $ac_status = 0; } 3331done 3332 3333cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3334/* end confdefs.h. */ 3335 3336int 3337main () 3338{ 3339 3340 ; 3341 return 0; 3342} 3343_ACEOF 3344ac_clean_files_save=$ac_clean_files 3345ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3346# Try to create an executable without -o first, disregard a.out. 3347# It will help us diagnose broken compilers, and finding out an intuition 3348# of exeext. 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3350$as_echo_n "checking whether the C compiler works... " >&6; } 3351ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3352 3353# The possible output files: 3354ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3355 3356ac_rmfiles= 3357for ac_file in $ac_files 3358do 3359 case $ac_file in 3360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3361 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3362 esac 3363done 3364rm -f $ac_rmfiles 3365 3366if { { ac_try="$ac_link_default" 3367case "(($ac_try" in 3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3369 *) ac_try_echo=$ac_try;; 3370esac 3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3372$as_echo "$ac_try_echo"; } >&5 3373 (eval "$ac_link_default") 2>&5 3374 ac_status=$? 3375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3376 test $ac_status = 0; }; then : 3377 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3378# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3379# in a Makefile. We should not override ac_cv_exeext if it was cached, 3380# so that the user can short-circuit this test for compilers unknown to 3381# Autoconf. 3382for ac_file in $ac_files '' 3383do 3384 test -f "$ac_file" || continue 3385 case $ac_file in 3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3387 ;; 3388 [ab].out ) 3389 # We found the default executable, but exeext='' is most 3390 # certainly right. 3391 break;; 3392 *.* ) 3393 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3394 then :; else 3395 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3396 fi 3397 # We set ac_cv_exeext here because the later test for it is not 3398 # safe: cross compilers may not add the suffix if given an `-o' 3399 # argument, so we may need to know it at that point already. 3400 # Even if this section looks crufty: it has the advantage of 3401 # actually working. 3402 break;; 3403 * ) 3404 break;; 3405 esac 3406done 3407test "$ac_cv_exeext" = no && ac_cv_exeext= 3408 3409else 3410 ac_file='' 3411fi 3412if test -z "$ac_file"; then : 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3414$as_echo "no" >&6; } 3415$as_echo "$as_me: failed program was:" >&5 3416sed 's/^/| /' conftest.$ac_ext >&5 3417 3418{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3420as_fn_error 77 "C compiler cannot create executables 3421See \`config.log' for more details" "$LINENO" 5; } 3422else 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3424$as_echo "yes" >&6; } 3425fi 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3427$as_echo_n "checking for C compiler default output file name... " >&6; } 3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3429$as_echo "$ac_file" >&6; } 3430ac_exeext=$ac_cv_exeext 3431 3432rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3433ac_clean_files=$ac_clean_files_save 3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3435$as_echo_n "checking for suffix of executables... " >&6; } 3436if { { ac_try="$ac_link" 3437case "(($ac_try" in 3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3439 *) ac_try_echo=$ac_try;; 3440esac 3441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3442$as_echo "$ac_try_echo"; } >&5 3443 (eval "$ac_link") 2>&5 3444 ac_status=$? 3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3446 test $ac_status = 0; }; then : 3447 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3448# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3449# work properly (i.e., refer to `conftest.exe'), while it won't with 3450# `rm'. 3451for ac_file in conftest.exe conftest conftest.*; do 3452 test -f "$ac_file" || continue 3453 case $ac_file in 3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3456 break;; 3457 * ) break;; 3458 esac 3459done 3460else 3461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3463as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3464See \`config.log' for more details" "$LINENO" 5; } 3465fi 3466rm -f conftest conftest$ac_cv_exeext 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3468$as_echo "$ac_cv_exeext" >&6; } 3469 3470rm -f conftest.$ac_ext 3471EXEEXT=$ac_cv_exeext 3472ac_exeext=$EXEEXT 3473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3474/* end confdefs.h. */ 3475#include <stdio.h> 3476int 3477main () 3478{ 3479FILE *f = fopen ("conftest.out", "w"); 3480 return ferror (f) || fclose (f) != 0; 3481 3482 ; 3483 return 0; 3484} 3485_ACEOF 3486ac_clean_files="$ac_clean_files conftest.out" 3487# Check that the compiler produces executables we can run. If not, either 3488# the compiler is broken, or we cross compile. 3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3490$as_echo_n "checking whether we are cross compiling... " >&6; } 3491if test "$cross_compiling" != yes; then 3492 { { ac_try="$ac_link" 3493case "(($ac_try" in 3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3495 *) ac_try_echo=$ac_try;; 3496esac 3497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3498$as_echo "$ac_try_echo"; } >&5 3499 (eval "$ac_link") 2>&5 3500 ac_status=$? 3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3502 test $ac_status = 0; } 3503 if { ac_try='./conftest$ac_cv_exeext' 3504 { { case "(($ac_try" in 3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3506 *) ac_try_echo=$ac_try;; 3507esac 3508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3509$as_echo "$ac_try_echo"; } >&5 3510 (eval "$ac_try") 2>&5 3511 ac_status=$? 3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3513 test $ac_status = 0; }; }; then 3514 cross_compiling=no 3515 else 3516 if test "$cross_compiling" = maybe; then 3517 cross_compiling=yes 3518 else 3519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3521as_fn_error $? "cannot run C compiled programs. 3522If you meant to cross compile, use \`--host'. 3523See \`config.log' for more details" "$LINENO" 5; } 3524 fi 3525 fi 3526fi 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3528$as_echo "$cross_compiling" >&6; } 3529 3530rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3531ac_clean_files=$ac_clean_files_save 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3533$as_echo_n "checking for suffix of object files... " >&6; } 3534if ${ac_cv_objext+:} false; then : 3535 $as_echo_n "(cached) " >&6 3536else 3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3538/* end confdefs.h. */ 3539 3540int 3541main () 3542{ 3543 3544 ; 3545 return 0; 3546} 3547_ACEOF 3548rm -f conftest.o conftest.obj 3549if { { ac_try="$ac_compile" 3550case "(($ac_try" in 3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3552 *) ac_try_echo=$ac_try;; 3553esac 3554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3555$as_echo "$ac_try_echo"; } >&5 3556 (eval "$ac_compile") 2>&5 3557 ac_status=$? 3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3559 test $ac_status = 0; }; then : 3560 for ac_file in conftest.o conftest.obj conftest.*; do 3561 test -f "$ac_file" || continue; 3562 case $ac_file in 3563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3564 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3565 break;; 3566 esac 3567done 3568else 3569 $as_echo "$as_me: failed program was:" >&5 3570sed 's/^/| /' conftest.$ac_ext >&5 3571 3572{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3574as_fn_error $? "cannot compute suffix of object files: cannot compile 3575See \`config.log' for more details" "$LINENO" 5; } 3576fi 3577rm -f conftest.$ac_cv_objext conftest.$ac_ext 3578fi 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3580$as_echo "$ac_cv_objext" >&6; } 3581OBJEXT=$ac_cv_objext 3582ac_objext=$OBJEXT 3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3584$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3585if ${ac_cv_c_compiler_gnu+:} false; then : 3586 $as_echo_n "(cached) " >&6 3587else 3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3589/* end confdefs.h. */ 3590 3591int 3592main () 3593{ 3594#ifndef __GNUC__ 3595 choke me 3596#endif 3597 3598 ; 3599 return 0; 3600} 3601_ACEOF 3602if ac_fn_c_try_compile "$LINENO"; then : 3603 ac_compiler_gnu=yes 3604else 3605 ac_compiler_gnu=no 3606fi 3607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3608ac_cv_c_compiler_gnu=$ac_compiler_gnu 3609 3610fi 3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3612$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3613if test $ac_compiler_gnu = yes; then 3614 GCC=yes 3615else 3616 GCC= 3617fi 3618ac_test_CFLAGS=${CFLAGS+set} 3619ac_save_CFLAGS=$CFLAGS 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3621$as_echo_n "checking whether $CC accepts -g... " >&6; } 3622if ${ac_cv_prog_cc_g+:} false; then : 3623 $as_echo_n "(cached) " >&6 3624else 3625 ac_save_c_werror_flag=$ac_c_werror_flag 3626 ac_c_werror_flag=yes 3627 ac_cv_prog_cc_g=no 3628 CFLAGS="-g" 3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3630/* end confdefs.h. */ 3631 3632int 3633main () 3634{ 3635 3636 ; 3637 return 0; 3638} 3639_ACEOF 3640if ac_fn_c_try_compile "$LINENO"; then : 3641 ac_cv_prog_cc_g=yes 3642else 3643 CFLAGS="" 3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3645/* end confdefs.h. */ 3646 3647int 3648main () 3649{ 3650 3651 ; 3652 return 0; 3653} 3654_ACEOF 3655if ac_fn_c_try_compile "$LINENO"; then : 3656 3657else 3658 ac_c_werror_flag=$ac_save_c_werror_flag 3659 CFLAGS="-g" 3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661/* end confdefs.h. */ 3662 3663int 3664main () 3665{ 3666 3667 ; 3668 return 0; 3669} 3670_ACEOF 3671if ac_fn_c_try_compile "$LINENO"; then : 3672 ac_cv_prog_cc_g=yes 3673fi 3674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3675fi 3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3677fi 3678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3679 ac_c_werror_flag=$ac_save_c_werror_flag 3680fi 3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3682$as_echo "$ac_cv_prog_cc_g" >&6; } 3683if test "$ac_test_CFLAGS" = set; then 3684 CFLAGS=$ac_save_CFLAGS 3685elif test $ac_cv_prog_cc_g = yes; then 3686 if test "$GCC" = yes; then 3687 CFLAGS="-g -O2" 3688 else 3689 CFLAGS="-g" 3690 fi 3691else 3692 if test "$GCC" = yes; then 3693 CFLAGS="-O2" 3694 else 3695 CFLAGS= 3696 fi 3697fi 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3699$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3700if ${ac_cv_prog_cc_c89+:} false; then : 3701 $as_echo_n "(cached) " >&6 3702else 3703 ac_cv_prog_cc_c89=no 3704ac_save_CC=$CC 3705cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3706/* end confdefs.h. */ 3707#include <stdarg.h> 3708#include <stdio.h> 3709struct stat; 3710/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3711struct buf { int x; }; 3712FILE * (*rcsopen) (struct buf *, struct stat *, int); 3713static char *e (p, i) 3714 char **p; 3715 int i; 3716{ 3717 return p[i]; 3718} 3719static char *f (char * (*g) (char **, int), char **p, ...) 3720{ 3721 char *s; 3722 va_list v; 3723 va_start (v,p); 3724 s = g (p, va_arg (v,int)); 3725 va_end (v); 3726 return s; 3727} 3728 3729/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3730 function prototypes and stuff, but not '\xHH' hex character constants. 3731 These don't provoke an error unfortunately, instead are silently treated 3732 as 'x'. The following induces an error, until -std is added to get 3733 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3734 array size at least. It's necessary to write '\x00'==0 to get something 3735 that's true only with -std. */ 3736int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3737 3738/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3739 inside strings and character constants. */ 3740#define FOO(x) 'x' 3741int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3742 3743int test (int i, double x); 3744struct s1 {int (*f) (int a);}; 3745struct s2 {int (*f) (double a);}; 3746int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3747int argc; 3748char **argv; 3749int 3750main () 3751{ 3752return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3753 ; 3754 return 0; 3755} 3756_ACEOF 3757for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3758 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3759do 3760 CC="$ac_save_CC $ac_arg" 3761 if ac_fn_c_try_compile "$LINENO"; then : 3762 ac_cv_prog_cc_c89=$ac_arg 3763fi 3764rm -f core conftest.err conftest.$ac_objext 3765 test "x$ac_cv_prog_cc_c89" != "xno" && break 3766done 3767rm -f conftest.$ac_ext 3768CC=$ac_save_CC 3769 3770fi 3771# AC_CACHE_VAL 3772case "x$ac_cv_prog_cc_c89" in 3773 x) 3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3775$as_echo "none needed" >&6; } ;; 3776 xno) 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3778$as_echo "unsupported" >&6; } ;; 3779 *) 3780 CC="$CC $ac_cv_prog_cc_c89" 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3782$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3783esac 3784if test "x$ac_cv_prog_cc_c89" != xno; then : 3785 3786fi 3787 3788ac_ext=c 3789ac_cpp='$CPP $CPPFLAGS' 3790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3792ac_compiler_gnu=$ac_cv_c_compiler_gnu 3793 3794ac_ext=c 3795ac_cpp='$CPP $CPPFLAGS' 3796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3798ac_compiler_gnu=$ac_cv_c_compiler_gnu 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3800$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3801if ${am_cv_prog_cc_c_o+:} false; then : 3802 $as_echo_n "(cached) " >&6 3803else 3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3805/* end confdefs.h. */ 3806 3807int 3808main () 3809{ 3810 3811 ; 3812 return 0; 3813} 3814_ACEOF 3815 # Make sure it works both with $CC and with simple cc. 3816 # Following AC_PROG_CC_C_O, we do the test twice because some 3817 # compilers refuse to overwrite an existing .o file with -o, 3818 # though they will create one. 3819 am_cv_prog_cc_c_o=yes 3820 for am_i in 1 2; do 3821 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3822 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3823 ac_status=$? 3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3825 (exit $ac_status); } \ 3826 && test -f conftest2.$ac_objext; then 3827 : OK 3828 else 3829 am_cv_prog_cc_c_o=no 3830 break 3831 fi 3832 done 3833 rm -f core conftest* 3834 unset am_i 3835fi 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3837$as_echo "$am_cv_prog_cc_c_o" >&6; } 3838if test "$am_cv_prog_cc_c_o" != yes; then 3839 # Losing compiler, so override with the script. 3840 # FIXME: It is wrong to rewrite CC. 3841 # But if we don't then we get into trouble of one sort or another. 3842 # A longer-term fix would be to have automake use am__CC in this case, 3843 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3844 CC="$am_aux_dir/compile $CC" 3845fi 3846ac_ext=c 3847ac_cpp='$CPP $CPPFLAGS' 3848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3850ac_compiler_gnu=$ac_cv_c_compiler_gnu 3851 3852 3853depcc="$CC" am_compiler_list= 3854 3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3856$as_echo_n "checking dependency style of $depcc... " >&6; } 3857if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3858 $as_echo_n "(cached) " >&6 3859else 3860 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3861 # We make a subdir and do the tests there. Otherwise we can end up 3862 # making bogus files that we don't know about and never remove. For 3863 # instance it was reported that on HP-UX the gcc test will end up 3864 # making a dummy file named 'D' -- because '-MD' means "put the output 3865 # in D". 3866 rm -rf conftest.dir 3867 mkdir conftest.dir 3868 # Copy depcomp to subdir because otherwise we won't find it if we're 3869 # using a relative directory. 3870 cp "$am_depcomp" conftest.dir 3871 cd conftest.dir 3872 # We will build objects and dependencies in a subdirectory because 3873 # it helps to detect inapplicable dependency modes. For instance 3874 # both Tru64's cc and ICC support -MD to output dependencies as a 3875 # side effect of compilation, but ICC will put the dependencies in 3876 # the current directory while Tru64 will put them in the object 3877 # directory. 3878 mkdir sub 3879 3880 am_cv_CC_dependencies_compiler_type=none 3881 if test "$am_compiler_list" = ""; then 3882 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3883 fi 3884 am__universal=false 3885 case " $depcc " in #( 3886 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3887 esac 3888 3889 for depmode in $am_compiler_list; do 3890 # Setup a source with many dependencies, because some compilers 3891 # like to wrap large dependency lists on column 80 (with \), and 3892 # we should not choose a depcomp mode which is confused by this. 3893 # 3894 # We need to recreate these files for each test, as the compiler may 3895 # overwrite some of them when testing with obscure command lines. 3896 # This happens at least with the AIX C compiler. 3897 : > sub/conftest.c 3898 for i in 1 2 3 4 5 6; do 3899 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3900 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3901 # Solaris 10 /bin/sh. 3902 echo '/* dummy */' > sub/conftst$i.h 3903 done 3904 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3905 3906 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3907 # mode. It turns out that the SunPro C++ compiler does not properly 3908 # handle '-M -o', and we need to detect this. Also, some Intel 3909 # versions had trouble with output in subdirs. 3910 am__obj=sub/conftest.${OBJEXT-o} 3911 am__minus_obj="-o $am__obj" 3912 case $depmode in 3913 gcc) 3914 # This depmode causes a compiler race in universal mode. 3915 test "$am__universal" = false || continue 3916 ;; 3917 nosideeffect) 3918 # After this tag, mechanisms are not by side-effect, so they'll 3919 # only be used when explicitly requested. 3920 if test "x$enable_dependency_tracking" = xyes; then 3921 continue 3922 else 3923 break 3924 fi 3925 ;; 3926 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3927 # This compiler won't grok '-c -o', but also, the minuso test has 3928 # not run yet. These depmodes are late enough in the game, and 3929 # so weak that their functioning should not be impacted. 3930 am__obj=conftest.${OBJEXT-o} 3931 am__minus_obj= 3932 ;; 3933 none) break ;; 3934 esac 3935 if depmode=$depmode \ 3936 source=sub/conftest.c object=$am__obj \ 3937 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3938 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3939 >/dev/null 2>conftest.err && 3940 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3942 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3944 # icc doesn't choke on unknown options, it will just issue warnings 3945 # or remarks (even with -Werror). So we grep stderr for any message 3946 # that says an option was ignored or not supported. 3947 # When given -MP, icc 7.0 and 7.1 complain thusly: 3948 # icc: Command line warning: ignoring option '-M'; no argument required 3949 # The diagnosis changed in icc 8.0: 3950 # icc: Command line remark: option '-MP' not supported 3951 if (grep 'ignoring option' conftest.err || 3952 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3953 am_cv_CC_dependencies_compiler_type=$depmode 3954 break 3955 fi 3956 fi 3957 done 3958 3959 cd .. 3960 rm -rf conftest.dir 3961else 3962 am_cv_CC_dependencies_compiler_type=none 3963fi 3964 3965fi 3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3967$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3968CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3969 3970 if 3971 test "x$enable_dependency_tracking" != xno \ 3972 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3973 am__fastdepCC_TRUE= 3974 am__fastdepCC_FALSE='#' 3975else 3976 am__fastdepCC_TRUE='#' 3977 am__fastdepCC_FALSE= 3978fi 3979 3980 3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3982$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3983if ${ac_cv_path_SED+:} false; then : 3984 $as_echo_n "(cached) " >&6 3985else 3986 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3987 for ac_i in 1 2 3 4 5 6 7; do 3988 ac_script="$ac_script$as_nl$ac_script" 3989 done 3990 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3991 { ac_script=; unset ac_script;} 3992 if test -z "$SED"; then 3993 ac_path_SED_found=false 3994 # Loop through the user's path and test for each of PROGNAME-LIST 3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3996for as_dir in $PATH 3997do 3998 IFS=$as_save_IFS 3999 test -z "$as_dir" && as_dir=. 4000 for ac_prog in sed gsed; do 4001 for ac_exec_ext in '' $ac_executable_extensions; do 4002 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4003 as_fn_executable_p "$ac_path_SED" || continue 4004# Check for GNU ac_path_SED and select it if it is found. 4005 # Check for GNU $ac_path_SED 4006case `"$ac_path_SED" --version 2>&1` in 4007*GNU*) 4008 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4009*) 4010 ac_count=0 4011 $as_echo_n 0123456789 >"conftest.in" 4012 while : 4013 do 4014 cat "conftest.in" "conftest.in" >"conftest.tmp" 4015 mv "conftest.tmp" "conftest.in" 4016 cp "conftest.in" "conftest.nl" 4017 $as_echo '' >> "conftest.nl" 4018 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4020 as_fn_arith $ac_count + 1 && ac_count=$as_val 4021 if test $ac_count -gt ${ac_path_SED_max-0}; then 4022 # Best one so far, save it but keep looking for a better one 4023 ac_cv_path_SED="$ac_path_SED" 4024 ac_path_SED_max=$ac_count 4025 fi 4026 # 10*(2^10) chars as input seems more than enough 4027 test $ac_count -gt 10 && break 4028 done 4029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4030esac 4031 4032 $ac_path_SED_found && break 3 4033 done 4034 done 4035 done 4036IFS=$as_save_IFS 4037 if test -z "$ac_cv_path_SED"; then 4038 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4039 fi 4040else 4041 ac_cv_path_SED=$SED 4042fi 4043 4044fi 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4046$as_echo "$ac_cv_path_SED" >&6; } 4047 SED="$ac_cv_path_SED" 4048 rm -f conftest.sed 4049 4050test -z "$SED" && SED=sed 4051Xsed="$SED -e 1s/^X//" 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4064$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4065if ${ac_cv_path_GREP+:} false; then : 4066 $as_echo_n "(cached) " >&6 4067else 4068 if test -z "$GREP"; then 4069 ac_path_GREP_found=false 4070 # Loop through the user's path and test for each of PROGNAME-LIST 4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4072for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4073do 4074 IFS=$as_save_IFS 4075 test -z "$as_dir" && as_dir=. 4076 for ac_prog in grep ggrep; do 4077 for ac_exec_ext in '' $ac_executable_extensions; do 4078 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4079 as_fn_executable_p "$ac_path_GREP" || continue 4080# Check for GNU ac_path_GREP and select it if it is found. 4081 # Check for GNU $ac_path_GREP 4082case `"$ac_path_GREP" --version 2>&1` in 4083*GNU*) 4084 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4085*) 4086 ac_count=0 4087 $as_echo_n 0123456789 >"conftest.in" 4088 while : 4089 do 4090 cat "conftest.in" "conftest.in" >"conftest.tmp" 4091 mv "conftest.tmp" "conftest.in" 4092 cp "conftest.in" "conftest.nl" 4093 $as_echo 'GREP' >> "conftest.nl" 4094 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4096 as_fn_arith $ac_count + 1 && ac_count=$as_val 4097 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4098 # Best one so far, save it but keep looking for a better one 4099 ac_cv_path_GREP="$ac_path_GREP" 4100 ac_path_GREP_max=$ac_count 4101 fi 4102 # 10*(2^10) chars as input seems more than enough 4103 test $ac_count -gt 10 && break 4104 done 4105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4106esac 4107 4108 $ac_path_GREP_found && break 3 4109 done 4110 done 4111 done 4112IFS=$as_save_IFS 4113 if test -z "$ac_cv_path_GREP"; then 4114 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4115 fi 4116else 4117 ac_cv_path_GREP=$GREP 4118fi 4119 4120fi 4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4122$as_echo "$ac_cv_path_GREP" >&6; } 4123 GREP="$ac_cv_path_GREP" 4124 4125 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4127$as_echo_n "checking for egrep... " >&6; } 4128if ${ac_cv_path_EGREP+:} false; then : 4129 $as_echo_n "(cached) " >&6 4130else 4131 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4132 then ac_cv_path_EGREP="$GREP -E" 4133 else 4134 if test -z "$EGREP"; then 4135 ac_path_EGREP_found=false 4136 # Loop through the user's path and test for each of PROGNAME-LIST 4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4138for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4139do 4140 IFS=$as_save_IFS 4141 test -z "$as_dir" && as_dir=. 4142 for ac_prog in egrep; do 4143 for ac_exec_ext in '' $ac_executable_extensions; do 4144 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4145 as_fn_executable_p "$ac_path_EGREP" || continue 4146# Check for GNU ac_path_EGREP and select it if it is found. 4147 # Check for GNU $ac_path_EGREP 4148case `"$ac_path_EGREP" --version 2>&1` in 4149*GNU*) 4150 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4151*) 4152 ac_count=0 4153 $as_echo_n 0123456789 >"conftest.in" 4154 while : 4155 do 4156 cat "conftest.in" "conftest.in" >"conftest.tmp" 4157 mv "conftest.tmp" "conftest.in" 4158 cp "conftest.in" "conftest.nl" 4159 $as_echo 'EGREP' >> "conftest.nl" 4160 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4162 as_fn_arith $ac_count + 1 && ac_count=$as_val 4163 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4164 # Best one so far, save it but keep looking for a better one 4165 ac_cv_path_EGREP="$ac_path_EGREP" 4166 ac_path_EGREP_max=$ac_count 4167 fi 4168 # 10*(2^10) chars as input seems more than enough 4169 test $ac_count -gt 10 && break 4170 done 4171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4172esac 4173 4174 $ac_path_EGREP_found && break 3 4175 done 4176 done 4177 done 4178IFS=$as_save_IFS 4179 if test -z "$ac_cv_path_EGREP"; then 4180 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4181 fi 4182else 4183 ac_cv_path_EGREP=$EGREP 4184fi 4185 4186 fi 4187fi 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4189$as_echo "$ac_cv_path_EGREP" >&6; } 4190 EGREP="$ac_cv_path_EGREP" 4191 4192 4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4194$as_echo_n "checking for fgrep... " >&6; } 4195if ${ac_cv_path_FGREP+:} false; then : 4196 $as_echo_n "(cached) " >&6 4197else 4198 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4199 then ac_cv_path_FGREP="$GREP -F" 4200 else 4201 if test -z "$FGREP"; then 4202 ac_path_FGREP_found=false 4203 # Loop through the user's path and test for each of PROGNAME-LIST 4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4205for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4206do 4207 IFS=$as_save_IFS 4208 test -z "$as_dir" && as_dir=. 4209 for ac_prog in fgrep; do 4210 for ac_exec_ext in '' $ac_executable_extensions; do 4211 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4212 as_fn_executable_p "$ac_path_FGREP" || continue 4213# Check for GNU ac_path_FGREP and select it if it is found. 4214 # Check for GNU $ac_path_FGREP 4215case `"$ac_path_FGREP" --version 2>&1` in 4216*GNU*) 4217 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4218*) 4219 ac_count=0 4220 $as_echo_n 0123456789 >"conftest.in" 4221 while : 4222 do 4223 cat "conftest.in" "conftest.in" >"conftest.tmp" 4224 mv "conftest.tmp" "conftest.in" 4225 cp "conftest.in" "conftest.nl" 4226 $as_echo 'FGREP' >> "conftest.nl" 4227 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4229 as_fn_arith $ac_count + 1 && ac_count=$as_val 4230 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4231 # Best one so far, save it but keep looking for a better one 4232 ac_cv_path_FGREP="$ac_path_FGREP" 4233 ac_path_FGREP_max=$ac_count 4234 fi 4235 # 10*(2^10) chars as input seems more than enough 4236 test $ac_count -gt 10 && break 4237 done 4238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4239esac 4240 4241 $ac_path_FGREP_found && break 3 4242 done 4243 done 4244 done 4245IFS=$as_save_IFS 4246 if test -z "$ac_cv_path_FGREP"; then 4247 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4248 fi 4249else 4250 ac_cv_path_FGREP=$FGREP 4251fi 4252 4253 fi 4254fi 4255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4256$as_echo "$ac_cv_path_FGREP" >&6; } 4257 FGREP="$ac_cv_path_FGREP" 4258 4259 4260test -z "$GREP" && GREP=grep 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280# Check whether --with-gnu-ld was given. 4281if test "${with_gnu_ld+set}" = set; then : 4282 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4283else 4284 with_gnu_ld=no 4285fi 4286 4287ac_prog=ld 4288if test yes = "$GCC"; then 4289 # Check if gcc -print-prog-name=ld gives a path. 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4291$as_echo_n "checking for ld used by $CC... " >&6; } 4292 case $host in 4293 *-*-mingw*) 4294 # gcc leaves a trailing carriage return, which upsets mingw 4295 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4296 *) 4297 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4298 esac 4299 case $ac_prog in 4300 # Accept absolute paths. 4301 [\\/]* | ?:[\\/]*) 4302 re_direlt='/[^/][^/]*/\.\./' 4303 # Canonicalize the pathname of ld 4304 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4305 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4306 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4307 done 4308 test -z "$LD" && LD=$ac_prog 4309 ;; 4310 "") 4311 # If it fails, then pretend we aren't using GCC. 4312 ac_prog=ld 4313 ;; 4314 *) 4315 # If it is relative, then search for the first ld in PATH. 4316 with_gnu_ld=unknown 4317 ;; 4318 esac 4319elif test yes = "$with_gnu_ld"; then 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4321$as_echo_n "checking for GNU ld... " >&6; } 4322else 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4324$as_echo_n "checking for non-GNU ld... " >&6; } 4325fi 4326if ${lt_cv_path_LD+:} false; then : 4327 $as_echo_n "(cached) " >&6 4328else 4329 if test -z "$LD"; then 4330 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4331 for ac_dir in $PATH; do 4332 IFS=$lt_save_ifs 4333 test -z "$ac_dir" && ac_dir=. 4334 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4335 lt_cv_path_LD=$ac_dir/$ac_prog 4336 # Check to see if the program is GNU ld. I'd rather use --version, 4337 # but apparently some variants of GNU ld only accept -v. 4338 # Break only if it was the GNU/non-GNU ld that we prefer. 4339 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4340 *GNU* | *'with BFD'*) 4341 test no != "$with_gnu_ld" && break 4342 ;; 4343 *) 4344 test yes != "$with_gnu_ld" && break 4345 ;; 4346 esac 4347 fi 4348 done 4349 IFS=$lt_save_ifs 4350else 4351 lt_cv_path_LD=$LD # Let the user override the test with a path. 4352fi 4353fi 4354 4355LD=$lt_cv_path_LD 4356if test -n "$LD"; then 4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4358$as_echo "$LD" >&6; } 4359else 4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4361$as_echo "no" >&6; } 4362fi 4363test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4365$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4366if ${lt_cv_prog_gnu_ld+:} false; then : 4367 $as_echo_n "(cached) " >&6 4368else 4369 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4370case `$LD -v 2>&1 </dev/null` in 4371*GNU* | *'with BFD'*) 4372 lt_cv_prog_gnu_ld=yes 4373 ;; 4374*) 4375 lt_cv_prog_gnu_ld=no 4376 ;; 4377esac 4378fi 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4380$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4381with_gnu_ld=$lt_cv_prog_gnu_ld 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4392$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4393if ${lt_cv_path_NM+:} false; then : 4394 $as_echo_n "(cached) " >&6 4395else 4396 if test -n "$NM"; then 4397 # Let the user override the test. 4398 lt_cv_path_NM=$NM 4399else 4400 lt_nm_to_check=${ac_tool_prefix}nm 4401 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4402 lt_nm_to_check="$lt_nm_to_check nm" 4403 fi 4404 for lt_tmp_nm in $lt_nm_to_check; do 4405 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4406 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4407 IFS=$lt_save_ifs 4408 test -z "$ac_dir" && ac_dir=. 4409 tmp_nm=$ac_dir/$lt_tmp_nm 4410 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4411 # Check to see if the nm accepts a BSD-compat flag. 4412 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4413 # nm: unknown option "B" ignored 4414 # Tru64's nm complains that /dev/null is an invalid object file 4415 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4416 case $build_os in 4417 mingw*) lt_bad_file=conftest.nm/nofile ;; 4418 *) lt_bad_file=/dev/null ;; 4419 esac 4420 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4421 *$lt_bad_file* | *'Invalid file or object type'*) 4422 lt_cv_path_NM="$tmp_nm -B" 4423 break 2 4424 ;; 4425 *) 4426 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4427 */dev/null*) 4428 lt_cv_path_NM="$tmp_nm -p" 4429 break 2 4430 ;; 4431 *) 4432 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4433 continue # so that we can try to find one that supports BSD flags 4434 ;; 4435 esac 4436 ;; 4437 esac 4438 fi 4439 done 4440 IFS=$lt_save_ifs 4441 done 4442 : ${lt_cv_path_NM=no} 4443fi 4444fi 4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4446$as_echo "$lt_cv_path_NM" >&6; } 4447if test no != "$lt_cv_path_NM"; then 4448 NM=$lt_cv_path_NM 4449else 4450 # Didn't find any BSD compatible name lister, look for dumpbin. 4451 if test -n "$DUMPBIN"; then : 4452 # Let the user override the test. 4453 else 4454 if test -n "$ac_tool_prefix"; then 4455 for ac_prog in dumpbin "link -dump" 4456 do 4457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4458set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4460$as_echo_n "checking for $ac_word... " >&6; } 4461if ${ac_cv_prog_DUMPBIN+:} false; then : 4462 $as_echo_n "(cached) " >&6 4463else 4464 if test -n "$DUMPBIN"; then 4465 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4466else 4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4468for as_dir in $PATH 4469do 4470 IFS=$as_save_IFS 4471 test -z "$as_dir" && as_dir=. 4472 for ac_exec_ext in '' $ac_executable_extensions; do 4473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4474 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4476 break 2 4477 fi 4478done 4479 done 4480IFS=$as_save_IFS 4481 4482fi 4483fi 4484DUMPBIN=$ac_cv_prog_DUMPBIN 4485if test -n "$DUMPBIN"; then 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4487$as_echo "$DUMPBIN" >&6; } 4488else 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4490$as_echo "no" >&6; } 4491fi 4492 4493 4494 test -n "$DUMPBIN" && break 4495 done 4496fi 4497if test -z "$DUMPBIN"; then 4498 ac_ct_DUMPBIN=$DUMPBIN 4499 for ac_prog in dumpbin "link -dump" 4500do 4501 # Extract the first word of "$ac_prog", so it can be a program name with args. 4502set dummy $ac_prog; ac_word=$2 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4504$as_echo_n "checking for $ac_word... " >&6; } 4505if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4506 $as_echo_n "(cached) " >&6 4507else 4508 if test -n "$ac_ct_DUMPBIN"; then 4509 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4510else 4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4512for as_dir in $PATH 4513do 4514 IFS=$as_save_IFS 4515 test -z "$as_dir" && as_dir=. 4516 for ac_exec_ext in '' $ac_executable_extensions; do 4517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4518 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4520 break 2 4521 fi 4522done 4523 done 4524IFS=$as_save_IFS 4525 4526fi 4527fi 4528ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4529if test -n "$ac_ct_DUMPBIN"; then 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4531$as_echo "$ac_ct_DUMPBIN" >&6; } 4532else 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4534$as_echo "no" >&6; } 4535fi 4536 4537 4538 test -n "$ac_ct_DUMPBIN" && break 4539done 4540 4541 if test "x$ac_ct_DUMPBIN" = x; then 4542 DUMPBIN=":" 4543 else 4544 case $cross_compiling:$ac_tool_warned in 4545yes:) 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4548ac_tool_warned=yes ;; 4549esac 4550 DUMPBIN=$ac_ct_DUMPBIN 4551 fi 4552fi 4553 4554 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4555 *COFF*) 4556 DUMPBIN="$DUMPBIN -symbols -headers" 4557 ;; 4558 *) 4559 DUMPBIN=: 4560 ;; 4561 esac 4562 fi 4563 4564 if test : != "$DUMPBIN"; then 4565 NM=$DUMPBIN 4566 fi 4567fi 4568test -z "$NM" && NM=nm 4569 4570 4571 4572 4573 4574 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4576$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4577if ${lt_cv_nm_interface+:} false; then : 4578 $as_echo_n "(cached) " >&6 4579else 4580 lt_cv_nm_interface="BSD nm" 4581 echo "int some_variable = 0;" > conftest.$ac_ext 4582 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4583 (eval "$ac_compile" 2>conftest.err) 4584 cat conftest.err >&5 4585 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4586 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4587 cat conftest.err >&5 4588 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4589 cat conftest.out >&5 4590 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4591 lt_cv_nm_interface="MS dumpbin" 4592 fi 4593 rm -f conftest* 4594fi 4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4596$as_echo "$lt_cv_nm_interface" >&6; } 4597 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4599$as_echo_n "checking whether ln -s works... " >&6; } 4600LN_S=$as_ln_s 4601if test "$LN_S" = "ln -s"; then 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4603$as_echo "yes" >&6; } 4604else 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4606$as_echo "no, using $LN_S" >&6; } 4607fi 4608 4609# find the maximum length of command line arguments 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4611$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4612if ${lt_cv_sys_max_cmd_len+:} false; then : 4613 $as_echo_n "(cached) " >&6 4614else 4615 i=0 4616 teststring=ABCD 4617 4618 case $build_os in 4619 msdosdjgpp*) 4620 # On DJGPP, this test can blow up pretty badly due to problems in libc 4621 # (any single argument exceeding 2000 bytes causes a buffer overrun 4622 # during glob expansion). Even if it were fixed, the result of this 4623 # check would be larger than it should be. 4624 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4625 ;; 4626 4627 gnu*) 4628 # Under GNU Hurd, this test is not required because there is 4629 # no limit to the length of command line arguments. 4630 # Libtool will interpret -1 as no limit whatsoever 4631 lt_cv_sys_max_cmd_len=-1; 4632 ;; 4633 4634 cygwin* | mingw* | cegcc*) 4635 # On Win9x/ME, this test blows up -- it succeeds, but takes 4636 # about 5 minutes as the teststring grows exponentially. 4637 # Worse, since 9x/ME are not pre-emptively multitasking, 4638 # you end up with a "frozen" computer, even though with patience 4639 # the test eventually succeeds (with a max line length of 256k). 4640 # Instead, let's just punt: use the minimum linelength reported by 4641 # all of the supported platforms: 8192 (on NT/2K/XP). 4642 lt_cv_sys_max_cmd_len=8192; 4643 ;; 4644 4645 mint*) 4646 # On MiNT this can take a long time and run out of memory. 4647 lt_cv_sys_max_cmd_len=8192; 4648 ;; 4649 4650 amigaos*) 4651 # On AmigaOS with pdksh, this test takes hours, literally. 4652 # So we just punt and use a minimum line length of 8192. 4653 lt_cv_sys_max_cmd_len=8192; 4654 ;; 4655 4656 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4657 # This has been around since 386BSD, at least. Likely further. 4658 if test -x /sbin/sysctl; then 4659 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4660 elif test -x /usr/sbin/sysctl; then 4661 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4662 else 4663 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4664 fi 4665 # And add a safety zone 4666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4668 ;; 4669 4670 interix*) 4671 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4672 lt_cv_sys_max_cmd_len=196608 4673 ;; 4674 4675 os2*) 4676 # The test takes a long time on OS/2. 4677 lt_cv_sys_max_cmd_len=8192 4678 ;; 4679 4680 osf*) 4681 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4682 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4683 # nice to cause kernel panics so lets avoid the loop below. 4684 # First set a reasonable default. 4685 lt_cv_sys_max_cmd_len=16384 4686 # 4687 if test -x /sbin/sysconfig; then 4688 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4689 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4690 esac 4691 fi 4692 ;; 4693 sco3.2v5*) 4694 lt_cv_sys_max_cmd_len=102400 4695 ;; 4696 sysv5* | sco5v6* | sysv4.2uw2*) 4697 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4698 if test -n "$kargmax"; then 4699 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4700 else 4701 lt_cv_sys_max_cmd_len=32768 4702 fi 4703 ;; 4704 *) 4705 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4706 if test -n "$lt_cv_sys_max_cmd_len" && \ 4707 test undefined != "$lt_cv_sys_max_cmd_len"; then 4708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4710 else 4711 # Make teststring a little bigger before we do anything with it. 4712 # a 1K string should be a reasonable start. 4713 for i in 1 2 3 4 5 6 7 8; do 4714 teststring=$teststring$teststring 4715 done 4716 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4717 # If test is not a shell built-in, we'll probably end up computing a 4718 # maximum length that is only half of the actual maximum length, but 4719 # we can't tell. 4720 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4721 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4722 test 17 != "$i" # 1/2 MB should be enough 4723 do 4724 i=`expr $i + 1` 4725 teststring=$teststring$teststring 4726 done 4727 # Only check the string length outside the loop. 4728 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4729 teststring= 4730 # Add a significant safety factor because C++ compilers can tack on 4731 # massive amounts of additional arguments before passing them to the 4732 # linker. It appears as though 1/2 is a usable value. 4733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4734 fi 4735 ;; 4736 esac 4737 4738fi 4739 4740if test -n "$lt_cv_sys_max_cmd_len"; then 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4742$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4743else 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4745$as_echo "none" >&6; } 4746fi 4747max_cmd_len=$lt_cv_sys_max_cmd_len 4748 4749 4750 4751 4752 4753 4754: ${CP="cp -f"} 4755: ${MV="mv -f"} 4756: ${RM="rm -f"} 4757 4758if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4759 lt_unset=unset 4760else 4761 lt_unset=false 4762fi 4763 4764 4765 4766 4767 4768# test EBCDIC or ASCII 4769case `echo X|tr X '\101'` in 4770 A) # ASCII based system 4771 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4772 lt_SP2NL='tr \040 \012' 4773 lt_NL2SP='tr \015\012 \040\040' 4774 ;; 4775 *) # EBCDIC based system 4776 lt_SP2NL='tr \100 \n' 4777 lt_NL2SP='tr \r\n \100\100' 4778 ;; 4779esac 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4790$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4791if ${lt_cv_to_host_file_cmd+:} false; then : 4792 $as_echo_n "(cached) " >&6 4793else 4794 case $host in 4795 *-*-mingw* ) 4796 case $build in 4797 *-*-mingw* ) # actually msys 4798 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4799 ;; 4800 *-*-cygwin* ) 4801 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4802 ;; 4803 * ) # otherwise, assume *nix 4804 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4805 ;; 4806 esac 4807 ;; 4808 *-*-cygwin* ) 4809 case $build in 4810 *-*-mingw* ) # actually msys 4811 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4812 ;; 4813 *-*-cygwin* ) 4814 lt_cv_to_host_file_cmd=func_convert_file_noop 4815 ;; 4816 * ) # otherwise, assume *nix 4817 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4818 ;; 4819 esac 4820 ;; 4821 * ) # unhandled hosts (and "normal" native builds) 4822 lt_cv_to_host_file_cmd=func_convert_file_noop 4823 ;; 4824esac 4825 4826fi 4827 4828to_host_file_cmd=$lt_cv_to_host_file_cmd 4829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4830$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4831 4832 4833 4834 4835 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4837$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4838if ${lt_cv_to_tool_file_cmd+:} false; then : 4839 $as_echo_n "(cached) " >&6 4840else 4841 #assume ordinary cross tools, or native build. 4842lt_cv_to_tool_file_cmd=func_convert_file_noop 4843case $host in 4844 *-*-mingw* ) 4845 case $build in 4846 *-*-mingw* ) # actually msys 4847 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4848 ;; 4849 esac 4850 ;; 4851esac 4852 4853fi 4854 4855to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4857$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4858 4859 4860 4861 4862 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4864$as_echo_n "checking for $LD option to reload object files... " >&6; } 4865if ${lt_cv_ld_reload_flag+:} false; then : 4866 $as_echo_n "(cached) " >&6 4867else 4868 lt_cv_ld_reload_flag='-r' 4869fi 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4871$as_echo "$lt_cv_ld_reload_flag" >&6; } 4872reload_flag=$lt_cv_ld_reload_flag 4873case $reload_flag in 4874"" | " "*) ;; 4875*) reload_flag=" $reload_flag" ;; 4876esac 4877reload_cmds='$LD$reload_flag -o $output$reload_objs' 4878case $host_os in 4879 cygwin* | mingw* | pw32* | cegcc*) 4880 if test yes != "$GCC"; then 4881 reload_cmds=false 4882 fi 4883 ;; 4884 darwin*) 4885 if test yes = "$GCC"; then 4886 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4887 else 4888 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4889 fi 4890 ;; 4891esac 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901if test -n "$ac_tool_prefix"; then 4902 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4903set dummy ${ac_tool_prefix}objdump; ac_word=$2 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4905$as_echo_n "checking for $ac_word... " >&6; } 4906if ${ac_cv_prog_OBJDUMP+:} false; then : 4907 $as_echo_n "(cached) " >&6 4908else 4909 if test -n "$OBJDUMP"; then 4910 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4911else 4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4913for as_dir in $PATH 4914do 4915 IFS=$as_save_IFS 4916 test -z "$as_dir" && as_dir=. 4917 for ac_exec_ext in '' $ac_executable_extensions; do 4918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4919 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4921 break 2 4922 fi 4923done 4924 done 4925IFS=$as_save_IFS 4926 4927fi 4928fi 4929OBJDUMP=$ac_cv_prog_OBJDUMP 4930if test -n "$OBJDUMP"; then 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4932$as_echo "$OBJDUMP" >&6; } 4933else 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4935$as_echo "no" >&6; } 4936fi 4937 4938 4939fi 4940if test -z "$ac_cv_prog_OBJDUMP"; then 4941 ac_ct_OBJDUMP=$OBJDUMP 4942 # Extract the first word of "objdump", so it can be a program name with args. 4943set dummy objdump; ac_word=$2 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4945$as_echo_n "checking for $ac_word... " >&6; } 4946if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 if test -n "$ac_ct_OBJDUMP"; then 4950 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4951else 4952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4953for as_dir in $PATH 4954do 4955 IFS=$as_save_IFS 4956 test -z "$as_dir" && as_dir=. 4957 for ac_exec_ext in '' $ac_executable_extensions; do 4958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4959 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4961 break 2 4962 fi 4963done 4964 done 4965IFS=$as_save_IFS 4966 4967fi 4968fi 4969ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4970if test -n "$ac_ct_OBJDUMP"; then 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4972$as_echo "$ac_ct_OBJDUMP" >&6; } 4973else 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4975$as_echo "no" >&6; } 4976fi 4977 4978 if test "x$ac_ct_OBJDUMP" = x; then 4979 OBJDUMP="false" 4980 else 4981 case $cross_compiling:$ac_tool_warned in 4982yes:) 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4985ac_tool_warned=yes ;; 4986esac 4987 OBJDUMP=$ac_ct_OBJDUMP 4988 fi 4989else 4990 OBJDUMP="$ac_cv_prog_OBJDUMP" 4991fi 4992 4993test -z "$OBJDUMP" && OBJDUMP=objdump 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5004$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5005if ${lt_cv_deplibs_check_method+:} false; then : 5006 $as_echo_n "(cached) " >&6 5007else 5008 lt_cv_file_magic_cmd='$MAGIC_CMD' 5009lt_cv_file_magic_test_file= 5010lt_cv_deplibs_check_method='unknown' 5011# Need to set the preceding variable on all platforms that support 5012# interlibrary dependencies. 5013# 'none' -- dependencies not supported. 5014# 'unknown' -- same as none, but documents that we really don't know. 5015# 'pass_all' -- all dependencies passed with no checks. 5016# 'test_compile' -- check by making test program. 5017# 'file_magic [[regex]]' -- check by looking for files in library path 5018# that responds to the $file_magic_cmd with a given extended regex. 5019# If you have 'file' or equivalent on your system and you're not sure 5020# whether 'pass_all' will *always* work, you probably want this one. 5021 5022case $host_os in 5023aix[4-9]*) 5024 lt_cv_deplibs_check_method=pass_all 5025 ;; 5026 5027beos*) 5028 lt_cv_deplibs_check_method=pass_all 5029 ;; 5030 5031bsdi[45]*) 5032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5033 lt_cv_file_magic_cmd='/usr/bin/file -L' 5034 lt_cv_file_magic_test_file=/shlib/libc.so 5035 ;; 5036 5037cygwin*) 5038 # func_win32_libid is a shell function defined in ltmain.sh 5039 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5040 lt_cv_file_magic_cmd='func_win32_libid' 5041 ;; 5042 5043mingw* | pw32*) 5044 # Base MSYS/MinGW do not provide the 'file' command needed by 5045 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5046 # unless we find 'file', for example because we are cross-compiling. 5047 if ( file / ) >/dev/null 2>&1; then 5048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5049 lt_cv_file_magic_cmd='func_win32_libid' 5050 else 5051 # Keep this pattern in sync with the one in func_win32_libid. 5052 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5053 lt_cv_file_magic_cmd='$OBJDUMP -f' 5054 fi 5055 ;; 5056 5057cegcc*) 5058 # use the weaker test based on 'objdump'. See mingw*. 5059 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5060 lt_cv_file_magic_cmd='$OBJDUMP -f' 5061 ;; 5062 5063darwin* | rhapsody*) 5064 lt_cv_deplibs_check_method=pass_all 5065 ;; 5066 5067freebsd* | dragonfly*) 5068 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5069 case $host_cpu in 5070 i*86 ) 5071 # Not sure whether the presence of OpenBSD here was a mistake. 5072 # Let's accept both of them until this is cleared up. 5073 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5074 lt_cv_file_magic_cmd=/usr/bin/file 5075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5076 ;; 5077 esac 5078 else 5079 lt_cv_deplibs_check_method=pass_all 5080 fi 5081 ;; 5082 5083haiku*) 5084 lt_cv_deplibs_check_method=pass_all 5085 ;; 5086 5087hpux10.20* | hpux11*) 5088 lt_cv_file_magic_cmd=/usr/bin/file 5089 case $host_cpu in 5090 ia64*) 5091 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5092 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5093 ;; 5094 hppa*64*) 5095 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]' 5096 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5097 ;; 5098 *) 5099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5100 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5101 ;; 5102 esac 5103 ;; 5104 5105interix[3-9]*) 5106 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5108 ;; 5109 5110irix5* | irix6* | nonstopux*) 5111 case $LD in 5112 *-32|*"-32 ") libmagic=32-bit;; 5113 *-n32|*"-n32 ") libmagic=N32;; 5114 *-64|*"-64 ") libmagic=64-bit;; 5115 *) libmagic=never-match;; 5116 esac 5117 lt_cv_deplibs_check_method=pass_all 5118 ;; 5119 5120# This must be glibc/ELF. 5121linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5122 lt_cv_deplibs_check_method=pass_all 5123 ;; 5124 5125netbsd*) 5126 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5128 else 5129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5130 fi 5131 ;; 5132 5133newos6*) 5134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5135 lt_cv_file_magic_cmd=/usr/bin/file 5136 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5137 ;; 5138 5139*nto* | *qnx*) 5140 lt_cv_deplibs_check_method=pass_all 5141 ;; 5142 5143openbsd* | bitrig*) 5144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5146 else 5147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5148 fi 5149 ;; 5150 5151osf3* | osf4* | osf5*) 5152 lt_cv_deplibs_check_method=pass_all 5153 ;; 5154 5155rdos*) 5156 lt_cv_deplibs_check_method=pass_all 5157 ;; 5158 5159solaris*) 5160 lt_cv_deplibs_check_method=pass_all 5161 ;; 5162 5163sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5164 lt_cv_deplibs_check_method=pass_all 5165 ;; 5166 5167sysv4 | sysv4.3*) 5168 case $host_vendor in 5169 motorola) 5170 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]' 5171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5172 ;; 5173 ncr) 5174 lt_cv_deplibs_check_method=pass_all 5175 ;; 5176 sequent) 5177 lt_cv_file_magic_cmd='/bin/file' 5178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5179 ;; 5180 sni) 5181 lt_cv_file_magic_cmd='/bin/file' 5182 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5183 lt_cv_file_magic_test_file=/lib/libc.so 5184 ;; 5185 siemens) 5186 lt_cv_deplibs_check_method=pass_all 5187 ;; 5188 pc) 5189 lt_cv_deplibs_check_method=pass_all 5190 ;; 5191 esac 5192 ;; 5193 5194tpf*) 5195 lt_cv_deplibs_check_method=pass_all 5196 ;; 5197os2*) 5198 lt_cv_deplibs_check_method=pass_all 5199 ;; 5200esac 5201 5202fi 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5204$as_echo "$lt_cv_deplibs_check_method" >&6; } 5205 5206file_magic_glob= 5207want_nocaseglob=no 5208if test "$build" = "$host"; then 5209 case $host_os in 5210 mingw* | pw32*) 5211 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5212 want_nocaseglob=yes 5213 else 5214 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5215 fi 5216 ;; 5217 esac 5218fi 5219 5220file_magic_cmd=$lt_cv_file_magic_cmd 5221deplibs_check_method=$lt_cv_deplibs_check_method 5222test -z "$deplibs_check_method" && deplibs_check_method=unknown 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245if test -n "$ac_tool_prefix"; then 5246 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5247set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5249$as_echo_n "checking for $ac_word... " >&6; } 5250if ${ac_cv_prog_DLLTOOL+:} false; then : 5251 $as_echo_n "(cached) " >&6 5252else 5253 if test -n "$DLLTOOL"; then 5254 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5255else 5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5257for as_dir in $PATH 5258do 5259 IFS=$as_save_IFS 5260 test -z "$as_dir" && as_dir=. 5261 for ac_exec_ext in '' $ac_executable_extensions; do 5262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5263 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5265 break 2 5266 fi 5267done 5268 done 5269IFS=$as_save_IFS 5270 5271fi 5272fi 5273DLLTOOL=$ac_cv_prog_DLLTOOL 5274if test -n "$DLLTOOL"; then 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5276$as_echo "$DLLTOOL" >&6; } 5277else 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5279$as_echo "no" >&6; } 5280fi 5281 5282 5283fi 5284if test -z "$ac_cv_prog_DLLTOOL"; then 5285 ac_ct_DLLTOOL=$DLLTOOL 5286 # Extract the first word of "dlltool", so it can be a program name with args. 5287set dummy dlltool; ac_word=$2 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5289$as_echo_n "checking for $ac_word... " >&6; } 5290if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5291 $as_echo_n "(cached) " >&6 5292else 5293 if test -n "$ac_ct_DLLTOOL"; then 5294 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5295else 5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5297for as_dir in $PATH 5298do 5299 IFS=$as_save_IFS 5300 test -z "$as_dir" && as_dir=. 5301 for ac_exec_ext in '' $ac_executable_extensions; do 5302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5303 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5305 break 2 5306 fi 5307done 5308 done 5309IFS=$as_save_IFS 5310 5311fi 5312fi 5313ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5314if test -n "$ac_ct_DLLTOOL"; then 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5316$as_echo "$ac_ct_DLLTOOL" >&6; } 5317else 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5319$as_echo "no" >&6; } 5320fi 5321 5322 if test "x$ac_ct_DLLTOOL" = x; then 5323 DLLTOOL="false" 5324 else 5325 case $cross_compiling:$ac_tool_warned in 5326yes:) 5327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5329ac_tool_warned=yes ;; 5330esac 5331 DLLTOOL=$ac_ct_DLLTOOL 5332 fi 5333else 5334 DLLTOOL="$ac_cv_prog_DLLTOOL" 5335fi 5336 5337test -z "$DLLTOOL" && DLLTOOL=dlltool 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5349$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5350if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5351 $as_echo_n "(cached) " >&6 5352else 5353 lt_cv_sharedlib_from_linklib_cmd='unknown' 5354 5355case $host_os in 5356cygwin* | mingw* | pw32* | cegcc*) 5357 # two different shell functions defined in ltmain.sh; 5358 # decide which one to use based on capabilities of $DLLTOOL 5359 case `$DLLTOOL --help 2>&1` in 5360 *--identify-strict*) 5361 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5362 ;; 5363 *) 5364 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5365 ;; 5366 esac 5367 ;; 5368*) 5369 # fallback: assume linklib IS sharedlib 5370 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5371 ;; 5372esac 5373 5374fi 5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5376$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5377sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5378test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5379 5380 5381 5382 5383 5384 5385 5386 5387if test -n "$ac_tool_prefix"; then 5388 for ac_prog in ar 5389 do 5390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5391set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5393$as_echo_n "checking for $ac_word... " >&6; } 5394if ${ac_cv_prog_AR+:} false; then : 5395 $as_echo_n "(cached) " >&6 5396else 5397 if test -n "$AR"; then 5398 ac_cv_prog_AR="$AR" # Let the user override the test. 5399else 5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5401for as_dir in $PATH 5402do 5403 IFS=$as_save_IFS 5404 test -z "$as_dir" && as_dir=. 5405 for ac_exec_ext in '' $ac_executable_extensions; do 5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5407 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5409 break 2 5410 fi 5411done 5412 done 5413IFS=$as_save_IFS 5414 5415fi 5416fi 5417AR=$ac_cv_prog_AR 5418if test -n "$AR"; then 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5420$as_echo "$AR" >&6; } 5421else 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5423$as_echo "no" >&6; } 5424fi 5425 5426 5427 test -n "$AR" && break 5428 done 5429fi 5430if test -z "$AR"; then 5431 ac_ct_AR=$AR 5432 for ac_prog in ar 5433do 5434 # Extract the first word of "$ac_prog", so it can be a program name with args. 5435set dummy $ac_prog; ac_word=$2 5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5437$as_echo_n "checking for $ac_word... " >&6; } 5438if ${ac_cv_prog_ac_ct_AR+:} false; then : 5439 $as_echo_n "(cached) " >&6 5440else 5441 if test -n "$ac_ct_AR"; then 5442 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5443else 5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5445for as_dir in $PATH 5446do 5447 IFS=$as_save_IFS 5448 test -z "$as_dir" && as_dir=. 5449 for ac_exec_ext in '' $ac_executable_extensions; do 5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5451 ac_cv_prog_ac_ct_AR="$ac_prog" 5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5453 break 2 5454 fi 5455done 5456 done 5457IFS=$as_save_IFS 5458 5459fi 5460fi 5461ac_ct_AR=$ac_cv_prog_ac_ct_AR 5462if test -n "$ac_ct_AR"; then 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5464$as_echo "$ac_ct_AR" >&6; } 5465else 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5467$as_echo "no" >&6; } 5468fi 5469 5470 5471 test -n "$ac_ct_AR" && break 5472done 5473 5474 if test "x$ac_ct_AR" = x; then 5475 AR="false" 5476 else 5477 case $cross_compiling:$ac_tool_warned in 5478yes:) 5479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5481ac_tool_warned=yes ;; 5482esac 5483 AR=$ac_ct_AR 5484 fi 5485fi 5486 5487: ${AR=ar} 5488 5489 5490 5491 5492 5493 5494# Use ARFLAGS variable as AR's operation code to sync the variable naming with 5495# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 5496# higher priority because thats what people were doing historically (setting 5497# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 5498# variable obsoleted/removed. 5499 5500test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 5501lt_ar_flags=$AR_FLAGS 5502 5503 5504 5505 5506 5507 5508# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 5509# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 5510 5511 5512 5513 5514 5515 5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5517$as_echo_n "checking for archiver @FILE support... " >&6; } 5518if ${lt_cv_ar_at_file+:} false; then : 5519 $as_echo_n "(cached) " >&6 5520else 5521 lt_cv_ar_at_file=no 5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5523/* end confdefs.h. */ 5524 5525int 5526main () 5527{ 5528 5529 ; 5530 return 0; 5531} 5532_ACEOF 5533if ac_fn_c_try_compile "$LINENO"; then : 5534 echo conftest.$ac_objext > conftest.lst 5535 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5537 (eval $lt_ar_try) 2>&5 5538 ac_status=$? 5539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5540 test $ac_status = 0; } 5541 if test 0 -eq "$ac_status"; then 5542 # Ensure the archiver fails upon bogus file names. 5543 rm -f conftest.$ac_objext libconftest.a 5544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5545 (eval $lt_ar_try) 2>&5 5546 ac_status=$? 5547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5548 test $ac_status = 0; } 5549 if test 0 -ne "$ac_status"; then 5550 lt_cv_ar_at_file=@ 5551 fi 5552 fi 5553 rm -f conftest.* libconftest.a 5554 5555fi 5556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5557 5558fi 5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5560$as_echo "$lt_cv_ar_at_file" >&6; } 5561 5562if test no = "$lt_cv_ar_at_file"; then 5563 archiver_list_spec= 5564else 5565 archiver_list_spec=$lt_cv_ar_at_file 5566fi 5567 5568 5569 5570 5571 5572 5573 5574if test -n "$ac_tool_prefix"; then 5575 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5576set dummy ${ac_tool_prefix}strip; ac_word=$2 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5578$as_echo_n "checking for $ac_word... " >&6; } 5579if ${ac_cv_prog_STRIP+:} false; then : 5580 $as_echo_n "(cached) " >&6 5581else 5582 if test -n "$STRIP"; then 5583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5584else 5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5586for as_dir in $PATH 5587do 5588 IFS=$as_save_IFS 5589 test -z "$as_dir" && as_dir=. 5590 for ac_exec_ext in '' $ac_executable_extensions; do 5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5592 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5594 break 2 5595 fi 5596done 5597 done 5598IFS=$as_save_IFS 5599 5600fi 5601fi 5602STRIP=$ac_cv_prog_STRIP 5603if test -n "$STRIP"; then 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5605$as_echo "$STRIP" >&6; } 5606else 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5608$as_echo "no" >&6; } 5609fi 5610 5611 5612fi 5613if test -z "$ac_cv_prog_STRIP"; then 5614 ac_ct_STRIP=$STRIP 5615 # Extract the first word of "strip", so it can be a program name with args. 5616set dummy strip; ac_word=$2 5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5618$as_echo_n "checking for $ac_word... " >&6; } 5619if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5620 $as_echo_n "(cached) " >&6 5621else 5622 if test -n "$ac_ct_STRIP"; then 5623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5624else 5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5626for as_dir in $PATH 5627do 5628 IFS=$as_save_IFS 5629 test -z "$as_dir" && as_dir=. 5630 for ac_exec_ext in '' $ac_executable_extensions; do 5631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5632 ac_cv_prog_ac_ct_STRIP="strip" 5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5634 break 2 5635 fi 5636done 5637 done 5638IFS=$as_save_IFS 5639 5640fi 5641fi 5642ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5643if test -n "$ac_ct_STRIP"; then 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5645$as_echo "$ac_ct_STRIP" >&6; } 5646else 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5648$as_echo "no" >&6; } 5649fi 5650 5651 if test "x$ac_ct_STRIP" = x; then 5652 STRIP=":" 5653 else 5654 case $cross_compiling:$ac_tool_warned in 5655yes:) 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5658ac_tool_warned=yes ;; 5659esac 5660 STRIP=$ac_ct_STRIP 5661 fi 5662else 5663 STRIP="$ac_cv_prog_STRIP" 5664fi 5665 5666test -z "$STRIP" && STRIP=: 5667 5668 5669 5670 5671 5672 5673if test -n "$ac_tool_prefix"; then 5674 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5675set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5677$as_echo_n "checking for $ac_word... " >&6; } 5678if ${ac_cv_prog_RANLIB+:} false; then : 5679 $as_echo_n "(cached) " >&6 5680else 5681 if test -n "$RANLIB"; then 5682 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5683else 5684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5685for as_dir in $PATH 5686do 5687 IFS=$as_save_IFS 5688 test -z "$as_dir" && as_dir=. 5689 for ac_exec_ext in '' $ac_executable_extensions; do 5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5691 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5693 break 2 5694 fi 5695done 5696 done 5697IFS=$as_save_IFS 5698 5699fi 5700fi 5701RANLIB=$ac_cv_prog_RANLIB 5702if test -n "$RANLIB"; then 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5704$as_echo "$RANLIB" >&6; } 5705else 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5707$as_echo "no" >&6; } 5708fi 5709 5710 5711fi 5712if test -z "$ac_cv_prog_RANLIB"; then 5713 ac_ct_RANLIB=$RANLIB 5714 # Extract the first word of "ranlib", so it can be a program name with args. 5715set dummy ranlib; ac_word=$2 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5717$as_echo_n "checking for $ac_word... " >&6; } 5718if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5719 $as_echo_n "(cached) " >&6 5720else 5721 if test -n "$ac_ct_RANLIB"; then 5722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5723else 5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5725for as_dir in $PATH 5726do 5727 IFS=$as_save_IFS 5728 test -z "$as_dir" && as_dir=. 5729 for ac_exec_ext in '' $ac_executable_extensions; do 5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5731 ac_cv_prog_ac_ct_RANLIB="ranlib" 5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5733 break 2 5734 fi 5735done 5736 done 5737IFS=$as_save_IFS 5738 5739fi 5740fi 5741ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5742if test -n "$ac_ct_RANLIB"; then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5744$as_echo "$ac_ct_RANLIB" >&6; } 5745else 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5747$as_echo "no" >&6; } 5748fi 5749 5750 if test "x$ac_ct_RANLIB" = x; then 5751 RANLIB=":" 5752 else 5753 case $cross_compiling:$ac_tool_warned in 5754yes:) 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5757ac_tool_warned=yes ;; 5758esac 5759 RANLIB=$ac_ct_RANLIB 5760 fi 5761else 5762 RANLIB="$ac_cv_prog_RANLIB" 5763fi 5764 5765test -z "$RANLIB" && RANLIB=: 5766 5767 5768 5769 5770 5771 5772# Determine commands to create old-style static archives. 5773old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5774old_postinstall_cmds='chmod 644 $oldlib' 5775old_postuninstall_cmds= 5776 5777if test -n "$RANLIB"; then 5778 case $host_os in 5779 bitrig* | openbsd*) 5780 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5781 ;; 5782 *) 5783 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5784 ;; 5785 esac 5786 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5787fi 5788 5789case $host_os in 5790 darwin*) 5791 lock_old_archive_extraction=yes ;; 5792 *) 5793 lock_old_archive_extraction=no ;; 5794esac 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834# If no C compiler was specified, use CC. 5835LTCC=${LTCC-"$CC"} 5836 5837# If no C compiler flags were specified, use CFLAGS. 5838LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5839 5840# Allow CC to be a program name with arguments. 5841compiler=$CC 5842 5843 5844# Check for command to grab the raw symbol name followed by C symbol from nm. 5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5846$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5847if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5848 $as_echo_n "(cached) " >&6 5849else 5850 5851# These are sane defaults that work on at least a few old systems. 5852# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5853 5854# Character class describing NM global symbol codes. 5855symcode='[BCDEGRST]' 5856 5857# Regexp to match symbols that can be accessed directly from C. 5858sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5859 5860# Define system-specific variables. 5861case $host_os in 5862aix*) 5863 symcode='[BCDT]' 5864 ;; 5865cygwin* | mingw* | pw32* | cegcc*) 5866 symcode='[ABCDGISTW]' 5867 ;; 5868hpux*) 5869 if test ia64 = "$host_cpu"; then 5870 symcode='[ABCDEGRST]' 5871 fi 5872 ;; 5873irix* | nonstopux*) 5874 symcode='[BCDEGRST]' 5875 ;; 5876osf*) 5877 symcode='[BCDEGQRST]' 5878 ;; 5879solaris*) 5880 symcode='[BDRT]' 5881 ;; 5882sco3.2v5*) 5883 symcode='[DT]' 5884 ;; 5885sysv4.2uw2*) 5886 symcode='[DT]' 5887 ;; 5888sysv5* | sco5v6* | unixware* | OpenUNIX*) 5889 symcode='[ABDT]' 5890 ;; 5891sysv4) 5892 symcode='[DFNSTU]' 5893 ;; 5894esac 5895 5896# If we're using GNU nm, then use its standard symbol codes. 5897case `$NM -V 2>&1` in 5898*GNU* | *'with BFD'*) 5899 symcode='[ABCDGIRSTW]' ;; 5900esac 5901 5902if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5903 # Gets list of data symbols to import. 5904 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5905 # Adjust the below global symbol transforms to fixup imported variables. 5906 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5907 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5908 lt_c_name_lib_hook="\ 5909 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5910 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 5911else 5912 # Disable hooks by default. 5913 lt_cv_sys_global_symbol_to_import= 5914 lt_cdecl_hook= 5915 lt_c_name_hook= 5916 lt_c_name_lib_hook= 5917fi 5918 5919# Transform an extracted symbol line into a proper C declaration. 5920# Some systems (esp. on ia64) link data and code symbols differently, 5921# so use this general approach. 5922lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 5923$lt_cdecl_hook\ 5924" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 5925" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 5926 5927# Transform an extracted symbol line into symbol name and symbol address 5928lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 5929$lt_c_name_hook\ 5930" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5931" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 5932 5933# Transform an extracted symbol line into symbol name with lib prefix and 5934# symbol address. 5935lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 5936$lt_c_name_lib_hook\ 5937" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5938" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 5939" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 5940 5941# Handle CRLF in mingw tool chain 5942opt_cr= 5943case $build_os in 5944mingw*) 5945 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5946 ;; 5947esac 5948 5949# Try without a prefix underscore, then with it. 5950for ac_symprfx in "" "_"; do 5951 5952 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5953 symxfrm="\\1 $ac_symprfx\\2 \\2" 5954 5955 # Write the raw and C identifiers. 5956 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5957 # Fake it for dumpbin and say T for any non-static function, 5958 # D for any global variable and I for any imported variable. 5959 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 5960 # which start with @ or ?. 5961 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5962" {last_section=section; section=\$ 3};"\ 5963" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5964" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5965" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 5966" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 5967" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 5968" \$ 0!~/External *\|/{next};"\ 5969" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5970" {if(hide[section]) next};"\ 5971" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 5972" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 5973" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 5974" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 5975" ' prfx=^$ac_symprfx" 5976 else 5977 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5978 fi 5979 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5980 5981 # Check to see that the pipe works correctly. 5982 pipe_works=no 5983 5984 rm -f conftest* 5985 cat > conftest.$ac_ext <<_LT_EOF 5986#ifdef __cplusplus 5987extern "C" { 5988#endif 5989char nm_test_var; 5990void nm_test_func(void); 5991void nm_test_func(void){} 5992#ifdef __cplusplus 5993} 5994#endif 5995int main(){nm_test_var='a';nm_test_func();return(0);} 5996_LT_EOF 5997 5998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5999 (eval $ac_compile) 2>&5 6000 ac_status=$? 6001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6002 test $ac_status = 0; }; then 6003 # Now try to grab the symbols. 6004 nlist=conftest.nm 6005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6006 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6007 ac_status=$? 6008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6009 test $ac_status = 0; } && test -s "$nlist"; then 6010 # Try sorting and uniquifying the output. 6011 if sort "$nlist" | uniq > "$nlist"T; then 6012 mv -f "$nlist"T "$nlist" 6013 else 6014 rm -f "$nlist"T 6015 fi 6016 6017 # Make sure that we snagged all the symbols we need. 6018 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6019 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6020 cat <<_LT_EOF > conftest.$ac_ext 6021/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6022#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6023/* DATA imports from DLLs on WIN32 can't be const, because runtime 6024 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6025# define LT_DLSYM_CONST 6026#elif defined __osf__ 6027/* This system does not cope well with relocations in const data. */ 6028# define LT_DLSYM_CONST 6029#else 6030# define LT_DLSYM_CONST const 6031#endif 6032 6033#ifdef __cplusplus 6034extern "C" { 6035#endif 6036 6037_LT_EOF 6038 # Now generate the symbol file. 6039 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6040 6041 cat <<_LT_EOF >> conftest.$ac_ext 6042 6043/* The mapping between symbol names and symbols. */ 6044LT_DLSYM_CONST struct { 6045 const char *name; 6046 void *address; 6047} 6048lt__PROGRAM__LTX_preloaded_symbols[] = 6049{ 6050 { "@PROGRAM@", (void *) 0 }, 6051_LT_EOF 6052 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6053 cat <<\_LT_EOF >> conftest.$ac_ext 6054 {0, (void *) 0} 6055}; 6056 6057/* This works around a problem in FreeBSD linker */ 6058#ifdef FREEBSD_WORKAROUND 6059static const void *lt_preloaded_setup() { 6060 return lt__PROGRAM__LTX_preloaded_symbols; 6061} 6062#endif 6063 6064#ifdef __cplusplus 6065} 6066#endif 6067_LT_EOF 6068 # Now try linking the two files. 6069 mv conftest.$ac_objext conftstm.$ac_objext 6070 lt_globsym_save_LIBS=$LIBS 6071 lt_globsym_save_CFLAGS=$CFLAGS 6072 LIBS=conftstm.$ac_objext 6073 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6075 (eval $ac_link) 2>&5 6076 ac_status=$? 6077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6078 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6079 pipe_works=yes 6080 fi 6081 LIBS=$lt_globsym_save_LIBS 6082 CFLAGS=$lt_globsym_save_CFLAGS 6083 else 6084 echo "cannot find nm_test_func in $nlist" >&5 6085 fi 6086 else 6087 echo "cannot find nm_test_var in $nlist" >&5 6088 fi 6089 else 6090 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6091 fi 6092 else 6093 echo "$progname: failed program was:" >&5 6094 cat conftest.$ac_ext >&5 6095 fi 6096 rm -rf conftest* conftst* 6097 6098 # Do not use the global_symbol_pipe unless it works. 6099 if test yes = "$pipe_works"; then 6100 break 6101 else 6102 lt_cv_sys_global_symbol_pipe= 6103 fi 6104done 6105 6106fi 6107 6108if test -z "$lt_cv_sys_global_symbol_pipe"; then 6109 lt_cv_sys_global_symbol_to_cdecl= 6110fi 6111if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6113$as_echo "failed" >&6; } 6114else 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6116$as_echo "ok" >&6; } 6117fi 6118 6119# Response file support. 6120if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6121 nm_file_list_spec='@' 6122elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6123 nm_file_list_spec='@' 6124fi 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6163$as_echo_n "checking for sysroot... " >&6; } 6164 6165# Check whether --with-sysroot was given. 6166if test "${with_sysroot+set}" = set; then : 6167 withval=$with_sysroot; 6168else 6169 with_sysroot=no 6170fi 6171 6172 6173lt_sysroot= 6174case $with_sysroot in #( 6175 yes) 6176 if test yes = "$GCC"; then 6177 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6178 fi 6179 ;; #( 6180 /*) 6181 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6182 ;; #( 6183 no|'') 6184 ;; #( 6185 *) 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6187$as_echo "$with_sysroot" >&6; } 6188 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6189 ;; 6190esac 6191 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6193$as_echo "${lt_sysroot:-no}" >&6; } 6194 6195 6196 6197 6198 6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6200$as_echo_n "checking for a working dd... " >&6; } 6201if ${ac_cv_path_lt_DD+:} false; then : 6202 $as_echo_n "(cached) " >&6 6203else 6204 printf 0123456789abcdef0123456789abcdef >conftest.i 6205cat conftest.i conftest.i >conftest2.i 6206: ${lt_DD:=$DD} 6207if test -z "$lt_DD"; then 6208 ac_path_lt_DD_found=false 6209 # Loop through the user's path and test for each of PROGNAME-LIST 6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6211for as_dir in $PATH 6212do 6213 IFS=$as_save_IFS 6214 test -z "$as_dir" && as_dir=. 6215 for ac_prog in dd; do 6216 for ac_exec_ext in '' $ac_executable_extensions; do 6217 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6218 as_fn_executable_p "$ac_path_lt_DD" || continue 6219if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6220 cmp -s conftest.i conftest.out \ 6221 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6222fi 6223 $ac_path_lt_DD_found && break 3 6224 done 6225 done 6226 done 6227IFS=$as_save_IFS 6228 if test -z "$ac_cv_path_lt_DD"; then 6229 : 6230 fi 6231else 6232 ac_cv_path_lt_DD=$lt_DD 6233fi 6234 6235rm -f conftest.i conftest2.i conftest.out 6236fi 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6238$as_echo "$ac_cv_path_lt_DD" >&6; } 6239 6240 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6242$as_echo_n "checking how to truncate binary pipes... " >&6; } 6243if ${lt_cv_truncate_bin+:} false; then : 6244 $as_echo_n "(cached) " >&6 6245else 6246 printf 0123456789abcdef0123456789abcdef >conftest.i 6247cat conftest.i conftest.i >conftest2.i 6248lt_cv_truncate_bin= 6249if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6250 cmp -s conftest.i conftest.out \ 6251 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6252fi 6253rm -f conftest.i conftest2.i conftest.out 6254test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6255fi 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6257$as_echo "$lt_cv_truncate_bin" >&6; } 6258 6259 6260 6261 6262 6263 6264 6265# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6266func_cc_basename () 6267{ 6268 for cc_temp in $*""; do 6269 case $cc_temp in 6270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6272 \-*) ;; 6273 *) break;; 6274 esac 6275 done 6276 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6277} 6278 6279# Check whether --enable-libtool-lock was given. 6280if test "${enable_libtool_lock+set}" = set; then : 6281 enableval=$enable_libtool_lock; 6282fi 6283 6284test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6285 6286# Some flags need to be propagated to the compiler or linker for good 6287# libtool support. 6288case $host in 6289ia64-*-hpux*) 6290 # Find out what ABI is being produced by ac_compile, and set mode 6291 # options accordingly. 6292 echo 'int i;' > conftest.$ac_ext 6293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6294 (eval $ac_compile) 2>&5 6295 ac_status=$? 6296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6297 test $ac_status = 0; }; then 6298 case `/usr/bin/file conftest.$ac_objext` in 6299 *ELF-32*) 6300 HPUX_IA64_MODE=32 6301 ;; 6302 *ELF-64*) 6303 HPUX_IA64_MODE=64 6304 ;; 6305 esac 6306 fi 6307 rm -rf conftest* 6308 ;; 6309*-*-irix6*) 6310 # Find out what ABI is being produced by ac_compile, and set linker 6311 # options accordingly. 6312 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6314 (eval $ac_compile) 2>&5 6315 ac_status=$? 6316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6317 test $ac_status = 0; }; then 6318 if test yes = "$lt_cv_prog_gnu_ld"; then 6319 case `/usr/bin/file conftest.$ac_objext` in 6320 *32-bit*) 6321 LD="${LD-ld} -melf32bsmip" 6322 ;; 6323 *N32*) 6324 LD="${LD-ld} -melf32bmipn32" 6325 ;; 6326 *64-bit*) 6327 LD="${LD-ld} -melf64bmip" 6328 ;; 6329 esac 6330 else 6331 case `/usr/bin/file conftest.$ac_objext` in 6332 *32-bit*) 6333 LD="${LD-ld} -32" 6334 ;; 6335 *N32*) 6336 LD="${LD-ld} -n32" 6337 ;; 6338 *64-bit*) 6339 LD="${LD-ld} -64" 6340 ;; 6341 esac 6342 fi 6343 fi 6344 rm -rf conftest* 6345 ;; 6346 6347mips64*-*linux*) 6348 # Find out what ABI is being produced by ac_compile, and set linker 6349 # options accordingly. 6350 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6352 (eval $ac_compile) 2>&5 6353 ac_status=$? 6354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6355 test $ac_status = 0; }; then 6356 emul=elf 6357 case `/usr/bin/file conftest.$ac_objext` in 6358 *32-bit*) 6359 emul="${emul}32" 6360 ;; 6361 *64-bit*) 6362 emul="${emul}64" 6363 ;; 6364 esac 6365 case `/usr/bin/file conftest.$ac_objext` in 6366 *MSB*) 6367 emul="${emul}btsmip" 6368 ;; 6369 *LSB*) 6370 emul="${emul}ltsmip" 6371 ;; 6372 esac 6373 case `/usr/bin/file conftest.$ac_objext` in 6374 *N32*) 6375 emul="${emul}n32" 6376 ;; 6377 esac 6378 LD="${LD-ld} -m $emul" 6379 fi 6380 rm -rf conftest* 6381 ;; 6382 6383x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6384s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6385 # Find out what ABI is being produced by ac_compile, and set linker 6386 # options accordingly. Note that the listed cases only cover the 6387 # situations where additional linker options are needed (such as when 6388 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6389 # vice versa); the common cases where no linker options are needed do 6390 # not appear in the list. 6391 echo 'int i;' > conftest.$ac_ext 6392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6393 (eval $ac_compile) 2>&5 6394 ac_status=$? 6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6396 test $ac_status = 0; }; then 6397 case `/usr/bin/file conftest.o` in 6398 *32-bit*) 6399 case $host in 6400 x86_64-*kfreebsd*-gnu) 6401 LD="${LD-ld} -m elf_i386_fbsd" 6402 ;; 6403 x86_64-*linux*) 6404 case `/usr/bin/file conftest.o` in 6405 *x86-64*) 6406 LD="${LD-ld} -m elf32_x86_64" 6407 ;; 6408 *) 6409 LD="${LD-ld} -m elf_i386" 6410 ;; 6411 esac 6412 ;; 6413 powerpc64le-*linux*) 6414 LD="${LD-ld} -m elf32lppclinux" 6415 ;; 6416 powerpc64-*linux*) 6417 LD="${LD-ld} -m elf32ppclinux" 6418 ;; 6419 s390x-*linux*) 6420 LD="${LD-ld} -m elf_s390" 6421 ;; 6422 sparc64-*linux*) 6423 LD="${LD-ld} -m elf32_sparc" 6424 ;; 6425 esac 6426 ;; 6427 *64-bit*) 6428 case $host in 6429 x86_64-*kfreebsd*-gnu) 6430 LD="${LD-ld} -m elf_x86_64_fbsd" 6431 ;; 6432 x86_64-*linux*) 6433 LD="${LD-ld} -m elf_x86_64" 6434 ;; 6435 powerpcle-*linux*) 6436 LD="${LD-ld} -m elf64lppc" 6437 ;; 6438 powerpc-*linux*) 6439 LD="${LD-ld} -m elf64ppc" 6440 ;; 6441 s390*-*linux*|s390*-*tpf*) 6442 LD="${LD-ld} -m elf64_s390" 6443 ;; 6444 sparc*-*linux*) 6445 LD="${LD-ld} -m elf64_sparc" 6446 ;; 6447 esac 6448 ;; 6449 esac 6450 fi 6451 rm -rf conftest* 6452 ;; 6453 6454*-*-sco3.2v5*) 6455 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6456 SAVE_CFLAGS=$CFLAGS 6457 CFLAGS="$CFLAGS -belf" 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6459$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6460if ${lt_cv_cc_needs_belf+:} false; then : 6461 $as_echo_n "(cached) " >&6 6462else 6463 ac_ext=c 6464ac_cpp='$CPP $CPPFLAGS' 6465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6467ac_compiler_gnu=$ac_cv_c_compiler_gnu 6468 6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6470/* end confdefs.h. */ 6471 6472int 6473main () 6474{ 6475 6476 ; 6477 return 0; 6478} 6479_ACEOF 6480if ac_fn_c_try_link "$LINENO"; then : 6481 lt_cv_cc_needs_belf=yes 6482else 6483 lt_cv_cc_needs_belf=no 6484fi 6485rm -f core conftest.err conftest.$ac_objext \ 6486 conftest$ac_exeext conftest.$ac_ext 6487 ac_ext=c 6488ac_cpp='$CPP $CPPFLAGS' 6489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6491ac_compiler_gnu=$ac_cv_c_compiler_gnu 6492 6493fi 6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6495$as_echo "$lt_cv_cc_needs_belf" >&6; } 6496 if test yes != "$lt_cv_cc_needs_belf"; then 6497 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6498 CFLAGS=$SAVE_CFLAGS 6499 fi 6500 ;; 6501*-*solaris*) 6502 # Find out what ABI is being produced by ac_compile, and set linker 6503 # options accordingly. 6504 echo 'int i;' > conftest.$ac_ext 6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6506 (eval $ac_compile) 2>&5 6507 ac_status=$? 6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6509 test $ac_status = 0; }; then 6510 case `/usr/bin/file conftest.o` in 6511 *64-bit*) 6512 case $lt_cv_prog_gnu_ld in 6513 yes*) 6514 case $host in 6515 i?86-*-solaris*|x86_64-*-solaris*) 6516 LD="${LD-ld} -m elf_x86_64" 6517 ;; 6518 sparc*-*-solaris*) 6519 LD="${LD-ld} -m elf64_sparc" 6520 ;; 6521 esac 6522 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6523 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6524 LD=${LD-ld}_sol2 6525 fi 6526 ;; 6527 *) 6528 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6529 LD="${LD-ld} -64" 6530 fi 6531 ;; 6532 esac 6533 ;; 6534 esac 6535 fi 6536 rm -rf conftest* 6537 ;; 6538esac 6539 6540need_locks=$enable_libtool_lock 6541 6542if test -n "$ac_tool_prefix"; then 6543 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6544set dummy ${ac_tool_prefix}mt; ac_word=$2 6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6546$as_echo_n "checking for $ac_word... " >&6; } 6547if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6548 $as_echo_n "(cached) " >&6 6549else 6550 if test -n "$MANIFEST_TOOL"; then 6551 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6552else 6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6554for as_dir in $PATH 6555do 6556 IFS=$as_save_IFS 6557 test -z "$as_dir" && as_dir=. 6558 for ac_exec_ext in '' $ac_executable_extensions; do 6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6560 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6562 break 2 6563 fi 6564done 6565 done 6566IFS=$as_save_IFS 6567 6568fi 6569fi 6570MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6571if test -n "$MANIFEST_TOOL"; then 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6573$as_echo "$MANIFEST_TOOL" >&6; } 6574else 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6576$as_echo "no" >&6; } 6577fi 6578 6579 6580fi 6581if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6582 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6583 # Extract the first word of "mt", so it can be a program name with args. 6584set dummy mt; ac_word=$2 6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6586$as_echo_n "checking for $ac_word... " >&6; } 6587if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6588 $as_echo_n "(cached) " >&6 6589else 6590 if test -n "$ac_ct_MANIFEST_TOOL"; then 6591 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6592else 6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6594for as_dir in $PATH 6595do 6596 IFS=$as_save_IFS 6597 test -z "$as_dir" && as_dir=. 6598 for ac_exec_ext in '' $ac_executable_extensions; do 6599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6600 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6602 break 2 6603 fi 6604done 6605 done 6606IFS=$as_save_IFS 6607 6608fi 6609fi 6610ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6611if test -n "$ac_ct_MANIFEST_TOOL"; then 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6613$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6614else 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6616$as_echo "no" >&6; } 6617fi 6618 6619 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6620 MANIFEST_TOOL=":" 6621 else 6622 case $cross_compiling:$ac_tool_warned in 6623yes:) 6624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6626ac_tool_warned=yes ;; 6627esac 6628 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6629 fi 6630else 6631 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6632fi 6633 6634test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6636$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6637if ${lt_cv_path_mainfest_tool+:} false; then : 6638 $as_echo_n "(cached) " >&6 6639else 6640 lt_cv_path_mainfest_tool=no 6641 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6642 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6643 cat conftest.err >&5 6644 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6645 lt_cv_path_mainfest_tool=yes 6646 fi 6647 rm -f conftest* 6648fi 6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6650$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6651if test yes != "$lt_cv_path_mainfest_tool"; then 6652 MANIFEST_TOOL=: 6653fi 6654 6655 6656 6657 6658 6659 6660 case $host_os in 6661 rhapsody* | darwin*) 6662 if test -n "$ac_tool_prefix"; then 6663 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6664set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6666$as_echo_n "checking for $ac_word... " >&6; } 6667if ${ac_cv_prog_DSYMUTIL+:} false; then : 6668 $as_echo_n "(cached) " >&6 6669else 6670 if test -n "$DSYMUTIL"; then 6671 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6672else 6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6674for as_dir in $PATH 6675do 6676 IFS=$as_save_IFS 6677 test -z "$as_dir" && as_dir=. 6678 for ac_exec_ext in '' $ac_executable_extensions; do 6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6680 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6682 break 2 6683 fi 6684done 6685 done 6686IFS=$as_save_IFS 6687 6688fi 6689fi 6690DSYMUTIL=$ac_cv_prog_DSYMUTIL 6691if test -n "$DSYMUTIL"; then 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6693$as_echo "$DSYMUTIL" >&6; } 6694else 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6696$as_echo "no" >&6; } 6697fi 6698 6699 6700fi 6701if test -z "$ac_cv_prog_DSYMUTIL"; then 6702 ac_ct_DSYMUTIL=$DSYMUTIL 6703 # Extract the first word of "dsymutil", so it can be a program name with args. 6704set dummy dsymutil; ac_word=$2 6705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6706$as_echo_n "checking for $ac_word... " >&6; } 6707if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6708 $as_echo_n "(cached) " >&6 6709else 6710 if test -n "$ac_ct_DSYMUTIL"; then 6711 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6712else 6713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6714for as_dir in $PATH 6715do 6716 IFS=$as_save_IFS 6717 test -z "$as_dir" && as_dir=. 6718 for ac_exec_ext in '' $ac_executable_extensions; do 6719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6720 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6722 break 2 6723 fi 6724done 6725 done 6726IFS=$as_save_IFS 6727 6728fi 6729fi 6730ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6731if test -n "$ac_ct_DSYMUTIL"; then 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6733$as_echo "$ac_ct_DSYMUTIL" >&6; } 6734else 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6736$as_echo "no" >&6; } 6737fi 6738 6739 if test "x$ac_ct_DSYMUTIL" = x; then 6740 DSYMUTIL=":" 6741 else 6742 case $cross_compiling:$ac_tool_warned in 6743yes:) 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6746ac_tool_warned=yes ;; 6747esac 6748 DSYMUTIL=$ac_ct_DSYMUTIL 6749 fi 6750else 6751 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6752fi 6753 6754 if test -n "$ac_tool_prefix"; then 6755 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6756set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6758$as_echo_n "checking for $ac_word... " >&6; } 6759if ${ac_cv_prog_NMEDIT+:} false; then : 6760 $as_echo_n "(cached) " >&6 6761else 6762 if test -n "$NMEDIT"; then 6763 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6764else 6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6766for as_dir in $PATH 6767do 6768 IFS=$as_save_IFS 6769 test -z "$as_dir" && as_dir=. 6770 for ac_exec_ext in '' $ac_executable_extensions; do 6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6772 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6774 break 2 6775 fi 6776done 6777 done 6778IFS=$as_save_IFS 6779 6780fi 6781fi 6782NMEDIT=$ac_cv_prog_NMEDIT 6783if test -n "$NMEDIT"; then 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6785$as_echo "$NMEDIT" >&6; } 6786else 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6788$as_echo "no" >&6; } 6789fi 6790 6791 6792fi 6793if test -z "$ac_cv_prog_NMEDIT"; then 6794 ac_ct_NMEDIT=$NMEDIT 6795 # Extract the first word of "nmedit", so it can be a program name with args. 6796set dummy nmedit; ac_word=$2 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6798$as_echo_n "checking for $ac_word... " >&6; } 6799if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801else 6802 if test -n "$ac_ct_NMEDIT"; then 6803 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6804else 6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6806for as_dir in $PATH 6807do 6808 IFS=$as_save_IFS 6809 test -z "$as_dir" && as_dir=. 6810 for ac_exec_ext in '' $ac_executable_extensions; do 6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6812 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6814 break 2 6815 fi 6816done 6817 done 6818IFS=$as_save_IFS 6819 6820fi 6821fi 6822ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6823if test -n "$ac_ct_NMEDIT"; then 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6825$as_echo "$ac_ct_NMEDIT" >&6; } 6826else 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6828$as_echo "no" >&6; } 6829fi 6830 6831 if test "x$ac_ct_NMEDIT" = x; then 6832 NMEDIT=":" 6833 else 6834 case $cross_compiling:$ac_tool_warned in 6835yes:) 6836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6838ac_tool_warned=yes ;; 6839esac 6840 NMEDIT=$ac_ct_NMEDIT 6841 fi 6842else 6843 NMEDIT="$ac_cv_prog_NMEDIT" 6844fi 6845 6846 if test -n "$ac_tool_prefix"; then 6847 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6848set dummy ${ac_tool_prefix}lipo; ac_word=$2 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6850$as_echo_n "checking for $ac_word... " >&6; } 6851if ${ac_cv_prog_LIPO+:} false; then : 6852 $as_echo_n "(cached) " >&6 6853else 6854 if test -n "$LIPO"; then 6855 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6856else 6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6858for as_dir in $PATH 6859do 6860 IFS=$as_save_IFS 6861 test -z "$as_dir" && as_dir=. 6862 for ac_exec_ext in '' $ac_executable_extensions; do 6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6864 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6866 break 2 6867 fi 6868done 6869 done 6870IFS=$as_save_IFS 6871 6872fi 6873fi 6874LIPO=$ac_cv_prog_LIPO 6875if test -n "$LIPO"; then 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6877$as_echo "$LIPO" >&6; } 6878else 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6880$as_echo "no" >&6; } 6881fi 6882 6883 6884fi 6885if test -z "$ac_cv_prog_LIPO"; then 6886 ac_ct_LIPO=$LIPO 6887 # Extract the first word of "lipo", so it can be a program name with args. 6888set dummy lipo; ac_word=$2 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6890$as_echo_n "checking for $ac_word... " >&6; } 6891if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6892 $as_echo_n "(cached) " >&6 6893else 6894 if test -n "$ac_ct_LIPO"; then 6895 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6896else 6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6898for as_dir in $PATH 6899do 6900 IFS=$as_save_IFS 6901 test -z "$as_dir" && as_dir=. 6902 for ac_exec_ext in '' $ac_executable_extensions; do 6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6904 ac_cv_prog_ac_ct_LIPO="lipo" 6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6906 break 2 6907 fi 6908done 6909 done 6910IFS=$as_save_IFS 6911 6912fi 6913fi 6914ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6915if test -n "$ac_ct_LIPO"; then 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6917$as_echo "$ac_ct_LIPO" >&6; } 6918else 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6920$as_echo "no" >&6; } 6921fi 6922 6923 if test "x$ac_ct_LIPO" = x; then 6924 LIPO=":" 6925 else 6926 case $cross_compiling:$ac_tool_warned in 6927yes:) 6928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6930ac_tool_warned=yes ;; 6931esac 6932 LIPO=$ac_ct_LIPO 6933 fi 6934else 6935 LIPO="$ac_cv_prog_LIPO" 6936fi 6937 6938 if test -n "$ac_tool_prefix"; then 6939 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6940set dummy ${ac_tool_prefix}otool; ac_word=$2 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6942$as_echo_n "checking for $ac_word... " >&6; } 6943if ${ac_cv_prog_OTOOL+:} false; then : 6944 $as_echo_n "(cached) " >&6 6945else 6946 if test -n "$OTOOL"; then 6947 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6948else 6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6950for as_dir in $PATH 6951do 6952 IFS=$as_save_IFS 6953 test -z "$as_dir" && as_dir=. 6954 for ac_exec_ext in '' $ac_executable_extensions; do 6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6956 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6958 break 2 6959 fi 6960done 6961 done 6962IFS=$as_save_IFS 6963 6964fi 6965fi 6966OTOOL=$ac_cv_prog_OTOOL 6967if test -n "$OTOOL"; then 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6969$as_echo "$OTOOL" >&6; } 6970else 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6972$as_echo "no" >&6; } 6973fi 6974 6975 6976fi 6977if test -z "$ac_cv_prog_OTOOL"; then 6978 ac_ct_OTOOL=$OTOOL 6979 # Extract the first word of "otool", so it can be a program name with args. 6980set dummy otool; ac_word=$2 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6982$as_echo_n "checking for $ac_word... " >&6; } 6983if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6984 $as_echo_n "(cached) " >&6 6985else 6986 if test -n "$ac_ct_OTOOL"; then 6987 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6988else 6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6990for as_dir in $PATH 6991do 6992 IFS=$as_save_IFS 6993 test -z "$as_dir" && as_dir=. 6994 for ac_exec_ext in '' $ac_executable_extensions; do 6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6996 ac_cv_prog_ac_ct_OTOOL="otool" 6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6998 break 2 6999 fi 7000done 7001 done 7002IFS=$as_save_IFS 7003 7004fi 7005fi 7006ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7007if test -n "$ac_ct_OTOOL"; then 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7009$as_echo "$ac_ct_OTOOL" >&6; } 7010else 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7012$as_echo "no" >&6; } 7013fi 7014 7015 if test "x$ac_ct_OTOOL" = x; then 7016 OTOOL=":" 7017 else 7018 case $cross_compiling:$ac_tool_warned in 7019yes:) 7020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7022ac_tool_warned=yes ;; 7023esac 7024 OTOOL=$ac_ct_OTOOL 7025 fi 7026else 7027 OTOOL="$ac_cv_prog_OTOOL" 7028fi 7029 7030 if test -n "$ac_tool_prefix"; then 7031 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7032set dummy ${ac_tool_prefix}otool64; ac_word=$2 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7034$as_echo_n "checking for $ac_word... " >&6; } 7035if ${ac_cv_prog_OTOOL64+:} false; then : 7036 $as_echo_n "(cached) " >&6 7037else 7038 if test -n "$OTOOL64"; then 7039 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7040else 7041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7042for as_dir in $PATH 7043do 7044 IFS=$as_save_IFS 7045 test -z "$as_dir" && as_dir=. 7046 for ac_exec_ext in '' $ac_executable_extensions; do 7047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7048 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7050 break 2 7051 fi 7052done 7053 done 7054IFS=$as_save_IFS 7055 7056fi 7057fi 7058OTOOL64=$ac_cv_prog_OTOOL64 7059if test -n "$OTOOL64"; then 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7061$as_echo "$OTOOL64" >&6; } 7062else 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7064$as_echo "no" >&6; } 7065fi 7066 7067 7068fi 7069if test -z "$ac_cv_prog_OTOOL64"; then 7070 ac_ct_OTOOL64=$OTOOL64 7071 # Extract the first word of "otool64", so it can be a program name with args. 7072set dummy otool64; ac_word=$2 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7074$as_echo_n "checking for $ac_word... " >&6; } 7075if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7076 $as_echo_n "(cached) " >&6 7077else 7078 if test -n "$ac_ct_OTOOL64"; then 7079 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7080else 7081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7082for as_dir in $PATH 7083do 7084 IFS=$as_save_IFS 7085 test -z "$as_dir" && as_dir=. 7086 for ac_exec_ext in '' $ac_executable_extensions; do 7087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7088 ac_cv_prog_ac_ct_OTOOL64="otool64" 7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7090 break 2 7091 fi 7092done 7093 done 7094IFS=$as_save_IFS 7095 7096fi 7097fi 7098ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7099if test -n "$ac_ct_OTOOL64"; then 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7101$as_echo "$ac_ct_OTOOL64" >&6; } 7102else 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7104$as_echo "no" >&6; } 7105fi 7106 7107 if test "x$ac_ct_OTOOL64" = x; then 7108 OTOOL64=":" 7109 else 7110 case $cross_compiling:$ac_tool_warned in 7111yes:) 7112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7114ac_tool_warned=yes ;; 7115esac 7116 OTOOL64=$ac_ct_OTOOL64 7117 fi 7118else 7119 OTOOL64="$ac_cv_prog_OTOOL64" 7120fi 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7149$as_echo_n "checking for -single_module linker flag... " >&6; } 7150if ${lt_cv_apple_cc_single_mod+:} false; then : 7151 $as_echo_n "(cached) " >&6 7152else 7153 lt_cv_apple_cc_single_mod=no 7154 if test -z "$LT_MULTI_MODULE"; then 7155 # By default we will add the -single_module flag. You can override 7156 # by either setting the environment variable LT_MULTI_MODULE 7157 # non-empty at configure time, or by adding -multi_module to the 7158 # link flags. 7159 rm -rf libconftest.dylib* 7160 echo "int foo(void){return 1;}" > conftest.c 7161 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7162-dynamiclib -Wl,-single_module conftest.c" >&5 7163 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7164 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7165 _lt_result=$? 7166 # If there is a non-empty error log, and "single_module" 7167 # appears in it, assume the flag caused a linker warning 7168 if test -s conftest.err && $GREP single_module conftest.err; then 7169 cat conftest.err >&5 7170 # Otherwise, if the output was created with a 0 exit code from 7171 # the compiler, it worked. 7172 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7173 lt_cv_apple_cc_single_mod=yes 7174 else 7175 cat conftest.err >&5 7176 fi 7177 rm -rf libconftest.dylib* 7178 rm -f conftest.* 7179 fi 7180fi 7181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7182$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7183 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7185$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7186if ${lt_cv_ld_exported_symbols_list+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188else 7189 lt_cv_ld_exported_symbols_list=no 7190 save_LDFLAGS=$LDFLAGS 7191 echo "_main" > conftest.sym 7192 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7194/* end confdefs.h. */ 7195 7196int 7197main () 7198{ 7199 7200 ; 7201 return 0; 7202} 7203_ACEOF 7204if ac_fn_c_try_link "$LINENO"; then : 7205 lt_cv_ld_exported_symbols_list=yes 7206else 7207 lt_cv_ld_exported_symbols_list=no 7208fi 7209rm -f core conftest.err conftest.$ac_objext \ 7210 conftest$ac_exeext conftest.$ac_ext 7211 LDFLAGS=$save_LDFLAGS 7212 7213fi 7214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7215$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7216 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7218$as_echo_n "checking for -force_load linker flag... " >&6; } 7219if ${lt_cv_ld_force_load+:} false; then : 7220 $as_echo_n "(cached) " >&6 7221else 7222 lt_cv_ld_force_load=no 7223 cat > conftest.c << _LT_EOF 7224int forced_loaded() { return 2;} 7225_LT_EOF 7226 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7227 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7228 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 7229 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 7230 echo "$RANLIB libconftest.a" >&5 7231 $RANLIB libconftest.a 2>&5 7232 cat > conftest.c << _LT_EOF 7233int main() { return 0;} 7234_LT_EOF 7235 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7236 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7237 _lt_result=$? 7238 if test -s conftest.err && $GREP force_load conftest.err; then 7239 cat conftest.err >&5 7240 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7241 lt_cv_ld_force_load=yes 7242 else 7243 cat conftest.err >&5 7244 fi 7245 rm -f conftest.err libconftest.a conftest conftest.c 7246 rm -rf conftest.dSYM 7247 7248fi 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7250$as_echo "$lt_cv_ld_force_load" >&6; } 7251 case $host_os in 7252 rhapsody* | darwin1.[012]) 7253 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7254 darwin1.*) 7255 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7256 darwin*) # darwin 5.x on 7257 # if running on 10.5 or later, the deployment target defaults 7258 # to the OS version, if on x86, and 10.4, the deployment 7259 # target defaults to 10.4. Don't you love it? 7260 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7261 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7262 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7263 10.[012][,.]*) 7264 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7265 10.*) 7266 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7267 esac 7268 ;; 7269 esac 7270 if test yes = "$lt_cv_apple_cc_single_mod"; then 7271 _lt_dar_single_mod='$single_module' 7272 fi 7273 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7274 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7275 else 7276 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7277 fi 7278 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7279 _lt_dsymutil='~$DSYMUTIL $lib || :' 7280 else 7281 _lt_dsymutil= 7282 fi 7283 ;; 7284 esac 7285 7286# func_munge_path_list VARIABLE PATH 7287# ----------------------------------- 7288# VARIABLE is name of variable containing _space_ separated list of 7289# directories to be munged by the contents of PATH, which is string 7290# having a format: 7291# "DIR[:DIR]:" 7292# string "DIR[ DIR]" will be prepended to VARIABLE 7293# ":DIR[:DIR]" 7294# string "DIR[ DIR]" will be appended to VARIABLE 7295# "DIRP[:DIRP]::[DIRA:]DIRA" 7296# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7297# "DIRA[ DIRA]" will be appended to VARIABLE 7298# "DIR[:DIR]" 7299# VARIABLE will be replaced by "DIR[ DIR]" 7300func_munge_path_list () 7301{ 7302 case x$2 in 7303 x) 7304 ;; 7305 *:) 7306 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7307 ;; 7308 x:*) 7309 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7310 ;; 7311 *::*) 7312 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7313 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7314 ;; 7315 *) 7316 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7317 ;; 7318 esac 7319} 7320 7321ac_ext=c 7322ac_cpp='$CPP $CPPFLAGS' 7323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7325ac_compiler_gnu=$ac_cv_c_compiler_gnu 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7327$as_echo_n "checking how to run the C preprocessor... " >&6; } 7328# On Suns, sometimes $CPP names a directory. 7329if test -n "$CPP" && test -d "$CPP"; then 7330 CPP= 7331fi 7332if test -z "$CPP"; then 7333 if ${ac_cv_prog_CPP+:} false; then : 7334 $as_echo_n "(cached) " >&6 7335else 7336 # Double quotes because CPP needs to be expanded 7337 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7338 do 7339 ac_preproc_ok=false 7340for ac_c_preproc_warn_flag in '' yes 7341do 7342 # Use a header file that comes with gcc, so configuring glibc 7343 # with a fresh cross-compiler works. 7344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7345 # <limits.h> exists even on freestanding compilers. 7346 # On the NeXT, cc -E runs the code through the compiler's parser, 7347 # not just through cpp. "Syntax error" is here to catch this case. 7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7349/* end confdefs.h. */ 7350#ifdef __STDC__ 7351# include <limits.h> 7352#else 7353# include <assert.h> 7354#endif 7355 Syntax error 7356_ACEOF 7357if ac_fn_c_try_cpp "$LINENO"; then : 7358 7359else 7360 # Broken: fails on valid input. 7361continue 7362fi 7363rm -f conftest.err conftest.i conftest.$ac_ext 7364 7365 # OK, works on sane cases. Now check whether nonexistent headers 7366 # can be detected and how. 7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7368/* end confdefs.h. */ 7369#include <ac_nonexistent.h> 7370_ACEOF 7371if ac_fn_c_try_cpp "$LINENO"; then : 7372 # Broken: success on invalid input. 7373continue 7374else 7375 # Passes both tests. 7376ac_preproc_ok=: 7377break 7378fi 7379rm -f conftest.err conftest.i conftest.$ac_ext 7380 7381done 7382# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7383rm -f conftest.i conftest.err conftest.$ac_ext 7384if $ac_preproc_ok; then : 7385 break 7386fi 7387 7388 done 7389 ac_cv_prog_CPP=$CPP 7390 7391fi 7392 CPP=$ac_cv_prog_CPP 7393else 7394 ac_cv_prog_CPP=$CPP 7395fi 7396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7397$as_echo "$CPP" >&6; } 7398ac_preproc_ok=false 7399for ac_c_preproc_warn_flag in '' yes 7400do 7401 # Use a header file that comes with gcc, so configuring glibc 7402 # with a fresh cross-compiler works. 7403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7404 # <limits.h> exists even on freestanding compilers. 7405 # On the NeXT, cc -E runs the code through the compiler's parser, 7406 # not just through cpp. "Syntax error" is here to catch this case. 7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7408/* end confdefs.h. */ 7409#ifdef __STDC__ 7410# include <limits.h> 7411#else 7412# include <assert.h> 7413#endif 7414 Syntax error 7415_ACEOF 7416if ac_fn_c_try_cpp "$LINENO"; then : 7417 7418else 7419 # Broken: fails on valid input. 7420continue 7421fi 7422rm -f conftest.err conftest.i conftest.$ac_ext 7423 7424 # OK, works on sane cases. Now check whether nonexistent headers 7425 # can be detected and how. 7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7427/* end confdefs.h. */ 7428#include <ac_nonexistent.h> 7429_ACEOF 7430if ac_fn_c_try_cpp "$LINENO"; then : 7431 # Broken: success on invalid input. 7432continue 7433else 7434 # Passes both tests. 7435ac_preproc_ok=: 7436break 7437fi 7438rm -f conftest.err conftest.i conftest.$ac_ext 7439 7440done 7441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7442rm -f conftest.i conftest.err conftest.$ac_ext 7443if $ac_preproc_ok; then : 7444 7445else 7446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7448as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7449See \`config.log' for more details" "$LINENO" 5; } 7450fi 7451 7452ac_ext=c 7453ac_cpp='$CPP $CPPFLAGS' 7454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7456ac_compiler_gnu=$ac_cv_c_compiler_gnu 7457 7458 7459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7460$as_echo_n "checking for ANSI C header files... " >&6; } 7461if ${ac_cv_header_stdc+:} false; then : 7462 $as_echo_n "(cached) " >&6 7463else 7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7465/* end confdefs.h. */ 7466#include <stdlib.h> 7467#include <stdarg.h> 7468#include <string.h> 7469#include <float.h> 7470 7471int 7472main () 7473{ 7474 7475 ; 7476 return 0; 7477} 7478_ACEOF 7479if ac_fn_c_try_compile "$LINENO"; then : 7480 ac_cv_header_stdc=yes 7481else 7482 ac_cv_header_stdc=no 7483fi 7484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7485 7486if test $ac_cv_header_stdc = yes; then 7487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7489/* end confdefs.h. */ 7490#include <string.h> 7491 7492_ACEOF 7493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7494 $EGREP "memchr" >/dev/null 2>&1; then : 7495 7496else 7497 ac_cv_header_stdc=no 7498fi 7499rm -f conftest* 7500 7501fi 7502 7503if test $ac_cv_header_stdc = yes; then 7504 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7506/* end confdefs.h. */ 7507#include <stdlib.h> 7508 7509_ACEOF 7510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7511 $EGREP "free" >/dev/null 2>&1; then : 7512 7513else 7514 ac_cv_header_stdc=no 7515fi 7516rm -f conftest* 7517 7518fi 7519 7520if test $ac_cv_header_stdc = yes; then 7521 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7522 if test "$cross_compiling" = yes; then : 7523 : 7524else 7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7526/* end confdefs.h. */ 7527#include <ctype.h> 7528#include <stdlib.h> 7529#if ((' ' & 0x0FF) == 0x020) 7530# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7531# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7532#else 7533# define ISLOWER(c) \ 7534 (('a' <= (c) && (c) <= 'i') \ 7535 || ('j' <= (c) && (c) <= 'r') \ 7536 || ('s' <= (c) && (c) <= 'z')) 7537# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7538#endif 7539 7540#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7541int 7542main () 7543{ 7544 int i; 7545 for (i = 0; i < 256; i++) 7546 if (XOR (islower (i), ISLOWER (i)) 7547 || toupper (i) != TOUPPER (i)) 7548 return 2; 7549 return 0; 7550} 7551_ACEOF 7552if ac_fn_c_try_run "$LINENO"; then : 7553 7554else 7555 ac_cv_header_stdc=no 7556fi 7557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7558 conftest.$ac_objext conftest.beam conftest.$ac_ext 7559fi 7560 7561fi 7562fi 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7564$as_echo "$ac_cv_header_stdc" >&6; } 7565if test $ac_cv_header_stdc = yes; then 7566 7567$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7568 7569fi 7570 7571# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7572for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7573 inttypes.h stdint.h unistd.h 7574do : 7575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7576ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7577" 7578if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7579 cat >>confdefs.h <<_ACEOF 7580#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7581_ACEOF 7582 7583fi 7584 7585done 7586 7587 7588for ac_header in dlfcn.h 7589do : 7590 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7591" 7592if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7593 cat >>confdefs.h <<_ACEOF 7594#define HAVE_DLFCN_H 1 7595_ACEOF 7596 7597fi 7598 7599done 7600 7601 7602 7603 7604 7605# Set options 7606 7607 7608 7609 enable_dlopen=no 7610 7611 7612 enable_win32_dll=no 7613 7614 7615 # Check whether --enable-shared was given. 7616if test "${enable_shared+set}" = set; then : 7617 enableval=$enable_shared; p=${PACKAGE-default} 7618 case $enableval in 7619 yes) enable_shared=yes ;; 7620 no) enable_shared=no ;; 7621 *) 7622 enable_shared=no 7623 # Look at the argument we got. We use all the common list separators. 7624 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7625 for pkg in $enableval; do 7626 IFS=$lt_save_ifs 7627 if test "X$pkg" = "X$p"; then 7628 enable_shared=yes 7629 fi 7630 done 7631 IFS=$lt_save_ifs 7632 ;; 7633 esac 7634else 7635 enable_shared=yes 7636fi 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 # Check whether --enable-static was given. 7647if test "${enable_static+set}" = set; then : 7648 enableval=$enable_static; p=${PACKAGE-default} 7649 case $enableval in 7650 yes) enable_static=yes ;; 7651 no) enable_static=no ;; 7652 *) 7653 enable_static=no 7654 # Look at the argument we got. We use all the common list separators. 7655 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7656 for pkg in $enableval; do 7657 IFS=$lt_save_ifs 7658 if test "X$pkg" = "X$p"; then 7659 enable_static=yes 7660 fi 7661 done 7662 IFS=$lt_save_ifs 7663 ;; 7664 esac 7665else 7666 enable_static=yes 7667fi 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678# Check whether --with-pic was given. 7679if test "${with_pic+set}" = set; then : 7680 withval=$with_pic; lt_p=${PACKAGE-default} 7681 case $withval in 7682 yes|no) pic_mode=$withval ;; 7683 *) 7684 pic_mode=default 7685 # Look at the argument we got. We use all the common list separators. 7686 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7687 for lt_pkg in $withval; do 7688 IFS=$lt_save_ifs 7689 if test "X$lt_pkg" = "X$lt_p"; then 7690 pic_mode=yes 7691 fi 7692 done 7693 IFS=$lt_save_ifs 7694 ;; 7695 esac 7696else 7697 pic_mode=default 7698fi 7699 7700 7701 7702 7703 7704 7705 7706 7707 # Check whether --enable-fast-install was given. 7708if test "${enable_fast_install+set}" = set; then : 7709 enableval=$enable_fast_install; p=${PACKAGE-default} 7710 case $enableval in 7711 yes) enable_fast_install=yes ;; 7712 no) enable_fast_install=no ;; 7713 *) 7714 enable_fast_install=no 7715 # Look at the argument we got. We use all the common list separators. 7716 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7717 for pkg in $enableval; do 7718 IFS=$lt_save_ifs 7719 if test "X$pkg" = "X$p"; then 7720 enable_fast_install=yes 7721 fi 7722 done 7723 IFS=$lt_save_ifs 7724 ;; 7725 esac 7726else 7727 enable_fast_install=yes 7728fi 7729 7730 7731 7732 7733 7734 7735 7736 7737 shared_archive_member_spec= 7738case $host,$enable_shared in 7739power*-*-aix[5-9]*,yes) 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7741$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7742 7743# Check whether --with-aix-soname was given. 7744if test "${with_aix_soname+set}" = set; then : 7745 withval=$with_aix_soname; case $withval in 7746 aix|svr4|both) 7747 ;; 7748 *) 7749 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7750 ;; 7751 esac 7752 lt_cv_with_aix_soname=$with_aix_soname 7753else 7754 if ${lt_cv_with_aix_soname+:} false; then : 7755 $as_echo_n "(cached) " >&6 7756else 7757 lt_cv_with_aix_soname=aix 7758fi 7759 7760 with_aix_soname=$lt_cv_with_aix_soname 7761fi 7762 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7764$as_echo "$with_aix_soname" >&6; } 7765 if test aix != "$with_aix_soname"; then 7766 # For the AIX way of multilib, we name the shared archive member 7767 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7768 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7769 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7770 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7771 if test 64 = "${OBJECT_MODE-32}"; then 7772 shared_archive_member_spec=shr_64 7773 else 7774 shared_archive_member_spec=shr 7775 fi 7776 fi 7777 ;; 7778*) 7779 with_aix_soname=aix 7780 ;; 7781esac 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792# This can be used to rebuild libtool when needed 7793LIBTOOL_DEPS=$ltmain 7794 7795# Always use our own libtool. 7796LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827test -z "$LN_S" && LN_S="ln -s" 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842if test -n "${ZSH_VERSION+set}"; then 7843 setopt NO_GLOB_SUBST 7844fi 7845 7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7847$as_echo_n "checking for objdir... " >&6; } 7848if ${lt_cv_objdir+:} false; then : 7849 $as_echo_n "(cached) " >&6 7850else 7851 rm -f .libs 2>/dev/null 7852mkdir .libs 2>/dev/null 7853if test -d .libs; then 7854 lt_cv_objdir=.libs 7855else 7856 # MS-DOS does not allow filenames that begin with a dot. 7857 lt_cv_objdir=_libs 7858fi 7859rmdir .libs 2>/dev/null 7860fi 7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7862$as_echo "$lt_cv_objdir" >&6; } 7863objdir=$lt_cv_objdir 7864 7865 7866 7867 7868 7869cat >>confdefs.h <<_ACEOF 7870#define LT_OBJDIR "$lt_cv_objdir/" 7871_ACEOF 7872 7873 7874 7875 7876case $host_os in 7877aix3*) 7878 # AIX sometimes has problems with the GCC collect2 program. For some 7879 # reason, if we set the COLLECT_NAMES environment variable, the problems 7880 # vanish in a puff of smoke. 7881 if test set != "${COLLECT_NAMES+set}"; then 7882 COLLECT_NAMES= 7883 export COLLECT_NAMES 7884 fi 7885 ;; 7886esac 7887 7888# Global variables: 7889ofile=libtool 7890can_build_shared=yes 7891 7892# All known linkers require a '.a' archive for static linking (except MSVC and 7893# ICC, which need '.lib'). 7894libext=a 7895 7896with_gnu_ld=$lt_cv_prog_gnu_ld 7897 7898old_CC=$CC 7899old_CFLAGS=$CFLAGS 7900 7901# Set sane defaults for various variables 7902test -z "$CC" && CC=cc 7903test -z "$LTCC" && LTCC=$CC 7904test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7905test -z "$LD" && LD=ld 7906test -z "$ac_objext" && ac_objext=o 7907 7908func_cc_basename $compiler 7909cc_basename=$func_cc_basename_result 7910 7911 7912# Only perform the check for file, if the check method requires it 7913test -z "$MAGIC_CMD" && MAGIC_CMD=file 7914case $deplibs_check_method in 7915file_magic*) 7916 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7918$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7919if ${lt_cv_path_MAGIC_CMD+:} false; then : 7920 $as_echo_n "(cached) " >&6 7921else 7922 case $MAGIC_CMD in 7923[\\/*] | ?:[\\/]*) 7924 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7925 ;; 7926*) 7927 lt_save_MAGIC_CMD=$MAGIC_CMD 7928 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7929 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7930 for ac_dir in $ac_dummy; do 7931 IFS=$lt_save_ifs 7932 test -z "$ac_dir" && ac_dir=. 7933 if test -f "$ac_dir/${ac_tool_prefix}file"; then 7934 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 7935 if test -n "$file_magic_test_file"; then 7936 case $deplibs_check_method in 7937 "file_magic "*) 7938 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7939 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7940 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7941 $EGREP "$file_magic_regex" > /dev/null; then 7942 : 7943 else 7944 cat <<_LT_EOF 1>&2 7945 7946*** Warning: the command libtool uses to detect shared libraries, 7947*** $file_magic_cmd, produces output that libtool cannot recognize. 7948*** The result is that libtool may fail to recognize shared libraries 7949*** as such. This will affect the creation of libtool libraries that 7950*** depend on shared libraries, but programs linked with such libtool 7951*** libraries will work regardless of this problem. Nevertheless, you 7952*** may want to report the problem to your system manager and/or to 7953*** bug-libtool@gnu.org 7954 7955_LT_EOF 7956 fi ;; 7957 esac 7958 fi 7959 break 7960 fi 7961 done 7962 IFS=$lt_save_ifs 7963 MAGIC_CMD=$lt_save_MAGIC_CMD 7964 ;; 7965esac 7966fi 7967 7968MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7969if test -n "$MAGIC_CMD"; then 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7971$as_echo "$MAGIC_CMD" >&6; } 7972else 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7974$as_echo "no" >&6; } 7975fi 7976 7977 7978 7979 7980 7981if test -z "$lt_cv_path_MAGIC_CMD"; then 7982 if test -n "$ac_tool_prefix"; then 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7984$as_echo_n "checking for file... " >&6; } 7985if ${lt_cv_path_MAGIC_CMD+:} false; then : 7986 $as_echo_n "(cached) " >&6 7987else 7988 case $MAGIC_CMD in 7989[\\/*] | ?:[\\/]*) 7990 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7991 ;; 7992*) 7993 lt_save_MAGIC_CMD=$MAGIC_CMD 7994 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7995 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7996 for ac_dir in $ac_dummy; do 7997 IFS=$lt_save_ifs 7998 test -z "$ac_dir" && ac_dir=. 7999 if test -f "$ac_dir/file"; then 8000 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8001 if test -n "$file_magic_test_file"; then 8002 case $deplibs_check_method in 8003 "file_magic "*) 8004 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8005 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8006 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8007 $EGREP "$file_magic_regex" > /dev/null; then 8008 : 8009 else 8010 cat <<_LT_EOF 1>&2 8011 8012*** Warning: the command libtool uses to detect shared libraries, 8013*** $file_magic_cmd, produces output that libtool cannot recognize. 8014*** The result is that libtool may fail to recognize shared libraries 8015*** as such. This will affect the creation of libtool libraries that 8016*** depend on shared libraries, but programs linked with such libtool 8017*** libraries will work regardless of this problem. Nevertheless, you 8018*** may want to report the problem to your system manager and/or to 8019*** bug-libtool@gnu.org 8020 8021_LT_EOF 8022 fi ;; 8023 esac 8024 fi 8025 break 8026 fi 8027 done 8028 IFS=$lt_save_ifs 8029 MAGIC_CMD=$lt_save_MAGIC_CMD 8030 ;; 8031esac 8032fi 8033 8034MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8035if test -n "$MAGIC_CMD"; then 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8037$as_echo "$MAGIC_CMD" >&6; } 8038else 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8040$as_echo "no" >&6; } 8041fi 8042 8043 8044 else 8045 MAGIC_CMD=: 8046 fi 8047fi 8048 8049 fi 8050 ;; 8051esac 8052 8053# Use C for the default configuration in the libtool script 8054 8055lt_save_CC=$CC 8056ac_ext=c 8057ac_cpp='$CPP $CPPFLAGS' 8058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8060ac_compiler_gnu=$ac_cv_c_compiler_gnu 8061 8062 8063# Source file extension for C test sources. 8064ac_ext=c 8065 8066# Object file extension for compiled C test sources. 8067objext=o 8068objext=$objext 8069 8070# Code to be used in simple compile tests 8071lt_simple_compile_test_code="int some_variable = 0;" 8072 8073# Code to be used in simple link tests 8074lt_simple_link_test_code='int main(){return(0);}' 8075 8076 8077 8078 8079 8080 8081 8082# If no C compiler was specified, use CC. 8083LTCC=${LTCC-"$CC"} 8084 8085# If no C compiler flags were specified, use CFLAGS. 8086LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8087 8088# Allow CC to be a program name with arguments. 8089compiler=$CC 8090 8091# Save the default compiler, since it gets overwritten when the other 8092# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8093compiler_DEFAULT=$CC 8094 8095# save warnings/boilerplate of simple test code 8096ac_outfile=conftest.$ac_objext 8097echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8098eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8099_lt_compiler_boilerplate=`cat conftest.err` 8100$RM conftest* 8101 8102ac_outfile=conftest.$ac_objext 8103echo "$lt_simple_link_test_code" >conftest.$ac_ext 8104eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8105_lt_linker_boilerplate=`cat conftest.err` 8106$RM -r conftest* 8107 8108 8109if test -n "$compiler"; then 8110 8111lt_prog_compiler_no_builtin_flag= 8112 8113if test yes = "$GCC"; then 8114 case $cc_basename in 8115 nvcc*) 8116 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8117 *) 8118 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8119 esac 8120 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8122$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8123if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8124 $as_echo_n "(cached) " >&6 8125else 8126 lt_cv_prog_compiler_rtti_exceptions=no 8127 ac_outfile=conftest.$ac_objext 8128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8129 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8130 # Insert the option either (1) after the last *FLAGS variable, or 8131 # (2) before a word containing "conftest.", or (3) at the end. 8132 # Note that $ac_compile itself does not contain backslashes and begins 8133 # with a dollar sign (not a hyphen), so the echo should work correctly. 8134 # The option is referenced via a variable to avoid confusing sed. 8135 lt_compile=`echo "$ac_compile" | $SED \ 8136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8138 -e 's:$: $lt_compiler_flag:'` 8139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8140 (eval "$lt_compile" 2>conftest.err) 8141 ac_status=$? 8142 cat conftest.err >&5 8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8144 if (exit $ac_status) && test -s "$ac_outfile"; then 8145 # The compiler can only warn and ignore the option if not recognized 8146 # So say no if there are warnings other than the usual output. 8147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8150 lt_cv_prog_compiler_rtti_exceptions=yes 8151 fi 8152 fi 8153 $RM conftest* 8154 8155fi 8156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8157$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8158 8159if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8160 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8161else 8162 : 8163fi 8164 8165fi 8166 8167 8168 8169 8170 8171 8172 lt_prog_compiler_wl= 8173lt_prog_compiler_pic= 8174lt_prog_compiler_static= 8175 8176 8177 if test yes = "$GCC"; then 8178 lt_prog_compiler_wl='-Wl,' 8179 lt_prog_compiler_static='-static' 8180 8181 case $host_os in 8182 aix*) 8183 # All AIX code is PIC. 8184 if test ia64 = "$host_cpu"; then 8185 # AIX 5 now supports IA64 processor 8186 lt_prog_compiler_static='-Bstatic' 8187 fi 8188 lt_prog_compiler_pic='-fPIC' 8189 ;; 8190 8191 amigaos*) 8192 case $host_cpu in 8193 powerpc) 8194 # see comment about AmigaOS4 .so support 8195 lt_prog_compiler_pic='-fPIC' 8196 ;; 8197 m68k) 8198 # FIXME: we need at least 68020 code to build shared libraries, but 8199 # adding the '-m68020' flag to GCC prevents building anything better, 8200 # like '-m68040'. 8201 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8202 ;; 8203 esac 8204 ;; 8205 8206 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8207 # PIC is the default for these OSes. 8208 ;; 8209 8210 mingw* | cygwin* | pw32* | os2* | cegcc*) 8211 # This hack is so that the source file can tell whether it is being 8212 # built for inclusion in a dll (and should export symbols for example). 8213 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8214 # (--disable-auto-import) libraries 8215 lt_prog_compiler_pic='-DDLL_EXPORT' 8216 case $host_os in 8217 os2*) 8218 lt_prog_compiler_static='$wl-static' 8219 ;; 8220 esac 8221 ;; 8222 8223 darwin* | rhapsody*) 8224 # PIC is the default on this platform 8225 # Common symbols not allowed in MH_DYLIB files 8226 lt_prog_compiler_pic='-fno-common' 8227 ;; 8228 8229 haiku*) 8230 # PIC is the default for Haiku. 8231 # The "-static" flag exists, but is broken. 8232 lt_prog_compiler_static= 8233 ;; 8234 8235 hpux*) 8236 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8237 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8238 # sets the default TLS model and affects inlining. 8239 case $host_cpu in 8240 hppa*64*) 8241 # +Z the default 8242 ;; 8243 *) 8244 lt_prog_compiler_pic='-fPIC' 8245 ;; 8246 esac 8247 ;; 8248 8249 interix[3-9]*) 8250 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8251 # Instead, we relocate shared libraries at runtime. 8252 ;; 8253 8254 msdosdjgpp*) 8255 # Just because we use GCC doesn't mean we suddenly get shared libraries 8256 # on systems that don't support them. 8257 lt_prog_compiler_can_build_shared=no 8258 enable_shared=no 8259 ;; 8260 8261 *nto* | *qnx*) 8262 # QNX uses GNU C++, but need to define -shared option too, otherwise 8263 # it will coredump. 8264 lt_prog_compiler_pic='-fPIC -shared' 8265 ;; 8266 8267 sysv4*MP*) 8268 if test -d /usr/nec; then 8269 lt_prog_compiler_pic=-Kconform_pic 8270 fi 8271 ;; 8272 8273 *) 8274 lt_prog_compiler_pic='-fPIC' 8275 ;; 8276 esac 8277 8278 case $cc_basename in 8279 nvcc*) # Cuda Compiler Driver 2.2 8280 lt_prog_compiler_wl='-Xlinker ' 8281 if test -n "$lt_prog_compiler_pic"; then 8282 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8283 fi 8284 ;; 8285 esac 8286 else 8287 # PORTME Check for flag to pass linker flags through the system compiler. 8288 case $host_os in 8289 aix*) 8290 lt_prog_compiler_wl='-Wl,' 8291 if test ia64 = "$host_cpu"; then 8292 # AIX 5 now supports IA64 processor 8293 lt_prog_compiler_static='-Bstatic' 8294 else 8295 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8296 fi 8297 ;; 8298 8299 darwin* | rhapsody*) 8300 # PIC is the default on this platform 8301 # Common symbols not allowed in MH_DYLIB files 8302 lt_prog_compiler_pic='-fno-common' 8303 case $cc_basename in 8304 nagfor*) 8305 # NAG Fortran compiler 8306 lt_prog_compiler_wl='-Wl,-Wl,,' 8307 lt_prog_compiler_pic='-PIC' 8308 lt_prog_compiler_static='-Bstatic' 8309 ;; 8310 esac 8311 ;; 8312 8313 mingw* | cygwin* | pw32* | os2* | cegcc*) 8314 # This hack is so that the source file can tell whether it is being 8315 # built for inclusion in a dll (and should export symbols for example). 8316 lt_prog_compiler_pic='-DDLL_EXPORT' 8317 case $host_os in 8318 os2*) 8319 lt_prog_compiler_static='$wl-static' 8320 ;; 8321 esac 8322 ;; 8323 8324 hpux9* | hpux10* | hpux11*) 8325 lt_prog_compiler_wl='-Wl,' 8326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8327 # not for PA HP-UX. 8328 case $host_cpu in 8329 hppa*64*|ia64*) 8330 # +Z the default 8331 ;; 8332 *) 8333 lt_prog_compiler_pic='+Z' 8334 ;; 8335 esac 8336 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8337 lt_prog_compiler_static='$wl-a ${wl}archive' 8338 ;; 8339 8340 irix5* | irix6* | nonstopux*) 8341 lt_prog_compiler_wl='-Wl,' 8342 # PIC (with -KPIC) is the default. 8343 lt_prog_compiler_static='-non_shared' 8344 ;; 8345 8346 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8347 case $cc_basename in 8348 # old Intel for x86_64, which still supported -KPIC. 8349 ecc*) 8350 lt_prog_compiler_wl='-Wl,' 8351 lt_prog_compiler_pic='-KPIC' 8352 lt_prog_compiler_static='-static' 8353 ;; 8354 # icc used to be incompatible with GCC. 8355 # ICC 10 doesn't accept -KPIC any more. 8356 icc* | ifort*) 8357 lt_prog_compiler_wl='-Wl,' 8358 lt_prog_compiler_pic='-fPIC' 8359 lt_prog_compiler_static='-static' 8360 ;; 8361 # Lahey Fortran 8.1. 8362 lf95*) 8363 lt_prog_compiler_wl='-Wl,' 8364 lt_prog_compiler_pic='--shared' 8365 lt_prog_compiler_static='--static' 8366 ;; 8367 nagfor*) 8368 # NAG Fortran compiler 8369 lt_prog_compiler_wl='-Wl,-Wl,,' 8370 lt_prog_compiler_pic='-PIC' 8371 lt_prog_compiler_static='-Bstatic' 8372 ;; 8373 tcc*) 8374 # Fabrice Bellard et al's Tiny C Compiler 8375 lt_prog_compiler_wl='-Wl,' 8376 lt_prog_compiler_pic='-fPIC' 8377 lt_prog_compiler_static='-static' 8378 ;; 8379 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8380 # Portland Group compilers (*not* the Pentium gcc compiler, 8381 # which looks to be a dead project) 8382 lt_prog_compiler_wl='-Wl,' 8383 lt_prog_compiler_pic='-fpic' 8384 lt_prog_compiler_static='-Bstatic' 8385 ;; 8386 ccc*) 8387 lt_prog_compiler_wl='-Wl,' 8388 # All Alpha code is PIC. 8389 lt_prog_compiler_static='-non_shared' 8390 ;; 8391 xl* | bgxl* | bgf* | mpixl*) 8392 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8393 lt_prog_compiler_wl='-Wl,' 8394 lt_prog_compiler_pic='-qpic' 8395 lt_prog_compiler_static='-qstaticlink' 8396 ;; 8397 *) 8398 case `$CC -V 2>&1 | sed 5q` in 8399 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8400 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8401 lt_prog_compiler_pic='-KPIC' 8402 lt_prog_compiler_static='-Bstatic' 8403 lt_prog_compiler_wl='' 8404 ;; 8405 *Sun\ F* | *Sun*Fortran*) 8406 lt_prog_compiler_pic='-KPIC' 8407 lt_prog_compiler_static='-Bstatic' 8408 lt_prog_compiler_wl='-Qoption ld ' 8409 ;; 8410 *Sun\ C*) 8411 # Sun C 5.9 8412 lt_prog_compiler_pic='-KPIC' 8413 lt_prog_compiler_static='-Bstatic' 8414 lt_prog_compiler_wl='-Wl,' 8415 ;; 8416 *Intel*\ [CF]*Compiler*) 8417 lt_prog_compiler_wl='-Wl,' 8418 lt_prog_compiler_pic='-fPIC' 8419 lt_prog_compiler_static='-static' 8420 ;; 8421 *Portland\ Group*) 8422 lt_prog_compiler_wl='-Wl,' 8423 lt_prog_compiler_pic='-fpic' 8424 lt_prog_compiler_static='-Bstatic' 8425 ;; 8426 esac 8427 ;; 8428 esac 8429 ;; 8430 8431 newsos6) 8432 lt_prog_compiler_pic='-KPIC' 8433 lt_prog_compiler_static='-Bstatic' 8434 ;; 8435 8436 *nto* | *qnx*) 8437 # QNX uses GNU C++, but need to define -shared option too, otherwise 8438 # it will coredump. 8439 lt_prog_compiler_pic='-fPIC -shared' 8440 ;; 8441 8442 osf3* | osf4* | osf5*) 8443 lt_prog_compiler_wl='-Wl,' 8444 # All OSF/1 code is PIC. 8445 lt_prog_compiler_static='-non_shared' 8446 ;; 8447 8448 rdos*) 8449 lt_prog_compiler_static='-non_shared' 8450 ;; 8451 8452 solaris*) 8453 lt_prog_compiler_pic='-KPIC' 8454 lt_prog_compiler_static='-Bstatic' 8455 case $cc_basename in 8456 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8457 lt_prog_compiler_wl='-Qoption ld ';; 8458 *) 8459 lt_prog_compiler_wl='-Wl,';; 8460 esac 8461 ;; 8462 8463 sunos4*) 8464 lt_prog_compiler_wl='-Qoption ld ' 8465 lt_prog_compiler_pic='-PIC' 8466 lt_prog_compiler_static='-Bstatic' 8467 ;; 8468 8469 sysv4 | sysv4.2uw2* | sysv4.3*) 8470 lt_prog_compiler_wl='-Wl,' 8471 lt_prog_compiler_pic='-KPIC' 8472 lt_prog_compiler_static='-Bstatic' 8473 ;; 8474 8475 sysv4*MP*) 8476 if test -d /usr/nec; then 8477 lt_prog_compiler_pic='-Kconform_pic' 8478 lt_prog_compiler_static='-Bstatic' 8479 fi 8480 ;; 8481 8482 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8483 lt_prog_compiler_wl='-Wl,' 8484 lt_prog_compiler_pic='-KPIC' 8485 lt_prog_compiler_static='-Bstatic' 8486 ;; 8487 8488 unicos*) 8489 lt_prog_compiler_wl='-Wl,' 8490 lt_prog_compiler_can_build_shared=no 8491 ;; 8492 8493 uts4*) 8494 lt_prog_compiler_pic='-pic' 8495 lt_prog_compiler_static='-Bstatic' 8496 ;; 8497 8498 *) 8499 lt_prog_compiler_can_build_shared=no 8500 ;; 8501 esac 8502 fi 8503 8504case $host_os in 8505 # For platforms that do not support PIC, -DPIC is meaningless: 8506 *djgpp*) 8507 lt_prog_compiler_pic= 8508 ;; 8509 *) 8510 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8511 ;; 8512esac 8513 8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8515$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8516if ${lt_cv_prog_compiler_pic+:} false; then : 8517 $as_echo_n "(cached) " >&6 8518else 8519 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8520fi 8521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8522$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8523lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8524 8525# 8526# Check to make sure the PIC flag actually works. 8527# 8528if test -n "$lt_prog_compiler_pic"; then 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8530$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8531if ${lt_cv_prog_compiler_pic_works+:} false; then : 8532 $as_echo_n "(cached) " >&6 8533else 8534 lt_cv_prog_compiler_pic_works=no 8535 ac_outfile=conftest.$ac_objext 8536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8537 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8538 # Insert the option either (1) after the last *FLAGS variable, or 8539 # (2) before a word containing "conftest.", or (3) at the end. 8540 # Note that $ac_compile itself does not contain backslashes and begins 8541 # with a dollar sign (not a hyphen), so the echo should work correctly. 8542 # The option is referenced via a variable to avoid confusing sed. 8543 lt_compile=`echo "$ac_compile" | $SED \ 8544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8546 -e 's:$: $lt_compiler_flag:'` 8547 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8548 (eval "$lt_compile" 2>conftest.err) 8549 ac_status=$? 8550 cat conftest.err >&5 8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8552 if (exit $ac_status) && test -s "$ac_outfile"; then 8553 # The compiler can only warn and ignore the option if not recognized 8554 # So say no if there are warnings other than the usual output. 8555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8558 lt_cv_prog_compiler_pic_works=yes 8559 fi 8560 fi 8561 $RM conftest* 8562 8563fi 8564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8565$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8566 8567if test yes = "$lt_cv_prog_compiler_pic_works"; then 8568 case $lt_prog_compiler_pic in 8569 "" | " "*) ;; 8570 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8571 esac 8572else 8573 lt_prog_compiler_pic= 8574 lt_prog_compiler_can_build_shared=no 8575fi 8576 8577fi 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589# 8590# Check to make sure the static flag actually works. 8591# 8592wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8594$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8595if ${lt_cv_prog_compiler_static_works+:} false; then : 8596 $as_echo_n "(cached) " >&6 8597else 8598 lt_cv_prog_compiler_static_works=no 8599 save_LDFLAGS=$LDFLAGS 8600 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8601 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8602 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8603 # The linker can only warn and ignore the option if not recognized 8604 # So say no if there are warnings 8605 if test -s conftest.err; then 8606 # Append any errors to the config.log. 8607 cat conftest.err 1>&5 8608 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8610 if diff conftest.exp conftest.er2 >/dev/null; then 8611 lt_cv_prog_compiler_static_works=yes 8612 fi 8613 else 8614 lt_cv_prog_compiler_static_works=yes 8615 fi 8616 fi 8617 $RM -r conftest* 8618 LDFLAGS=$save_LDFLAGS 8619 8620fi 8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8622$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8623 8624if test yes = "$lt_cv_prog_compiler_static_works"; then 8625 : 8626else 8627 lt_prog_compiler_static= 8628fi 8629 8630 8631 8632 8633 8634 8635 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8637$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8638if ${lt_cv_prog_compiler_c_o+:} false; then : 8639 $as_echo_n "(cached) " >&6 8640else 8641 lt_cv_prog_compiler_c_o=no 8642 $RM -r conftest 2>/dev/null 8643 mkdir conftest 8644 cd conftest 8645 mkdir out 8646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8647 8648 lt_compiler_flag="-o out/conftest2.$ac_objext" 8649 # Insert the option either (1) after the last *FLAGS variable, or 8650 # (2) before a word containing "conftest.", or (3) at the end. 8651 # Note that $ac_compile itself does not contain backslashes and begins 8652 # with a dollar sign (not a hyphen), so the echo should work correctly. 8653 lt_compile=`echo "$ac_compile" | $SED \ 8654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8656 -e 's:$: $lt_compiler_flag:'` 8657 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8658 (eval "$lt_compile" 2>out/conftest.err) 8659 ac_status=$? 8660 cat out/conftest.err >&5 8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8662 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8663 then 8664 # The compiler can only warn and ignore the option if not recognized 8665 # So say no if there are warnings 8666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8667 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8668 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8669 lt_cv_prog_compiler_c_o=yes 8670 fi 8671 fi 8672 chmod u+w . 2>&5 8673 $RM conftest* 8674 # SGI C++ compiler will create directory out/ii_files/ for 8675 # template instantiation 8676 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8677 $RM out/* && rmdir out 8678 cd .. 8679 $RM -r conftest 8680 $RM conftest* 8681 8682fi 8683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8684$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8685 8686 8687 8688 8689 8690 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8692$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8693if ${lt_cv_prog_compiler_c_o+:} false; then : 8694 $as_echo_n "(cached) " >&6 8695else 8696 lt_cv_prog_compiler_c_o=no 8697 $RM -r conftest 2>/dev/null 8698 mkdir conftest 8699 cd conftest 8700 mkdir out 8701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8702 8703 lt_compiler_flag="-o out/conftest2.$ac_objext" 8704 # Insert the option either (1) after the last *FLAGS variable, or 8705 # (2) before a word containing "conftest.", or (3) at the end. 8706 # Note that $ac_compile itself does not contain backslashes and begins 8707 # with a dollar sign (not a hyphen), so the echo should work correctly. 8708 lt_compile=`echo "$ac_compile" | $SED \ 8709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8711 -e 's:$: $lt_compiler_flag:'` 8712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8713 (eval "$lt_compile" 2>out/conftest.err) 8714 ac_status=$? 8715 cat out/conftest.err >&5 8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8717 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8718 then 8719 # The compiler can only warn and ignore the option if not recognized 8720 # So say no if there are warnings 8721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8724 lt_cv_prog_compiler_c_o=yes 8725 fi 8726 fi 8727 chmod u+w . 2>&5 8728 $RM conftest* 8729 # SGI C++ compiler will create directory out/ii_files/ for 8730 # template instantiation 8731 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8732 $RM out/* && rmdir out 8733 cd .. 8734 $RM -r conftest 8735 $RM conftest* 8736 8737fi 8738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8739$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8740 8741 8742 8743 8744hard_links=nottested 8745if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8746 # do not overwrite the value of need_locks provided by the user 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8748$as_echo_n "checking if we can lock with hard links... " >&6; } 8749 hard_links=yes 8750 $RM conftest* 8751 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8752 touch conftest.a 8753 ln conftest.a conftest.b 2>&5 || hard_links=no 8754 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8756$as_echo "$hard_links" >&6; } 8757 if test no = "$hard_links"; then 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8759$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8760 need_locks=warn 8761 fi 8762else 8763 need_locks=no 8764fi 8765 8766 8767 8768 8769 8770 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8772$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8773 8774 runpath_var= 8775 allow_undefined_flag= 8776 always_export_symbols=no 8777 archive_cmds= 8778 archive_expsym_cmds= 8779 compiler_needs_object=no 8780 enable_shared_with_static_runtimes=no 8781 export_dynamic_flag_spec= 8782 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8783 hardcode_automatic=no 8784 hardcode_direct=no 8785 hardcode_direct_absolute=no 8786 hardcode_libdir_flag_spec= 8787 hardcode_libdir_separator= 8788 hardcode_minus_L=no 8789 hardcode_shlibpath_var=unsupported 8790 inherit_rpath=no 8791 link_all_deplibs=unknown 8792 module_cmds= 8793 module_expsym_cmds= 8794 old_archive_from_new_cmds= 8795 old_archive_from_expsyms_cmds= 8796 thread_safe_flag_spec= 8797 whole_archive_flag_spec= 8798 # include_expsyms should be a list of space-separated symbols to be *always* 8799 # included in the symbol list 8800 include_expsyms= 8801 # exclude_expsyms can be an extended regexp of symbols to exclude 8802 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8803 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8804 # as well as any symbol that contains 'd'. 8805 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8806 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8807 # platforms (ab)use it in PIC code, but their linkers get confused if 8808 # the symbol is explicitly referenced. Since portable code cannot 8809 # rely on this symbol name, it's probably fine to never include it in 8810 # preloaded symbol tables. 8811 # Exclude shared library initialization/finalization symbols. 8812 extract_expsyms_cmds= 8813 8814 case $host_os in 8815 cygwin* | mingw* | pw32* | cegcc*) 8816 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 8817 # When not using gcc, we currently assume that we are using 8818 # Microsoft Visual C++ or Intel C++ Compiler. 8819 if test yes != "$GCC"; then 8820 with_gnu_ld=no 8821 fi 8822 ;; 8823 interix*) 8824 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 8825 with_gnu_ld=yes 8826 ;; 8827 openbsd* | bitrig*) 8828 with_gnu_ld=no 8829 ;; 8830 esac 8831 8832 ld_shlibs=yes 8833 8834 # On some targets, GNU ld is compatible enough with the native linker 8835 # that we're better off using the native interface for both. 8836 lt_use_gnu_ld_interface=no 8837 if test yes = "$with_gnu_ld"; then 8838 case $host_os in 8839 aix*) 8840 # The AIX port of GNU ld has always aspired to compatibility 8841 # with the native linker. However, as the warning in the GNU ld 8842 # block says, versions before 2.19.5* couldn't really create working 8843 # shared libraries, regardless of the interface used. 8844 case `$LD -v 2>&1` in 8845 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8846 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8847 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8848 *) 8849 lt_use_gnu_ld_interface=yes 8850 ;; 8851 esac 8852 ;; 8853 *) 8854 lt_use_gnu_ld_interface=yes 8855 ;; 8856 esac 8857 fi 8858 8859 if test yes = "$lt_use_gnu_ld_interface"; then 8860 # If archive_cmds runs LD, not CC, wlarc should be empty 8861 wlarc='$wl' 8862 8863 # Set some defaults for GNU ld with shared library support. These 8864 # are reset later if shared libraries are not supported. Putting them 8865 # here allows them to be overridden if necessary. 8866 runpath_var=LD_RUN_PATH 8867 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8868 export_dynamic_flag_spec='$wl--export-dynamic' 8869 # ancient GNU ld didn't support --whole-archive et. al. 8870 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8871 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8872 else 8873 whole_archive_flag_spec= 8874 fi 8875 supports_anon_versioning=no 8876 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8877 *GNU\ gold*) supports_anon_versioning=yes ;; 8878 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8879 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8880 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8881 *\ 2.11.*) ;; # other 2.11 versions 8882 *) supports_anon_versioning=yes ;; 8883 esac 8884 8885 # See if GNU ld supports shared libraries. 8886 case $host_os in 8887 aix[3-9]*) 8888 # On AIX/PPC, the GNU linker is very broken 8889 if test ia64 != "$host_cpu"; then 8890 ld_shlibs=no 8891 cat <<_LT_EOF 1>&2 8892 8893*** Warning: the GNU linker, at least up to release 2.19, is reported 8894*** to be unable to reliably create shared libraries on AIX. 8895*** Therefore, libtool is disabling shared libraries support. If you 8896*** really care for shared libraries, you may want to install binutils 8897*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8898*** You will then need to restart the configuration process. 8899 8900_LT_EOF 8901 fi 8902 ;; 8903 8904 amigaos*) 8905 case $host_cpu in 8906 powerpc) 8907 # see comment about AmigaOS4 .so support 8908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8909 archive_expsym_cmds='' 8910 ;; 8911 m68k) 8912 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)' 8913 hardcode_libdir_flag_spec='-L$libdir' 8914 hardcode_minus_L=yes 8915 ;; 8916 esac 8917 ;; 8918 8919 beos*) 8920 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8921 allow_undefined_flag=unsupported 8922 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8923 # support --undefined. This deserves some investigation. FIXME 8924 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8925 else 8926 ld_shlibs=no 8927 fi 8928 ;; 8929 8930 cygwin* | mingw* | pw32* | cegcc*) 8931 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8932 # as there is no search path for DLLs. 8933 hardcode_libdir_flag_spec='-L$libdir' 8934 export_dynamic_flag_spec='$wl--export-all-symbols' 8935 allow_undefined_flag=unsupported 8936 always_export_symbols=no 8937 enable_shared_with_static_runtimes=yes 8938 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' 8939 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8940 8941 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8943 # If the export-symbols file already is a .def file, use it as 8944 # is; otherwise, prepend EXPORTS... 8945 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 8946 cp $export_symbols $output_objdir/$soname.def; 8947 else 8948 echo EXPORTS > $output_objdir/$soname.def; 8949 cat $export_symbols >> $output_objdir/$soname.def; 8950 fi~ 8951 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8952 else 8953 ld_shlibs=no 8954 fi 8955 ;; 8956 8957 haiku*) 8958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8959 link_all_deplibs=yes 8960 ;; 8961 8962 os2*) 8963 hardcode_libdir_flag_spec='-L$libdir' 8964 hardcode_minus_L=yes 8965 allow_undefined_flag=unsupported 8966 shrext_cmds=.dll 8967 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8968 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8969 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8970 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8971 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 8972 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8973 emximp -o $lib $output_objdir/$libname.def' 8974 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8975 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8976 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8977 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8978 prefix_cmds="$SED"~ 8979 if test EXPORTS = "`$SED 1q $export_symbols`"; then 8980 prefix_cmds="$prefix_cmds -e 1d"; 8981 fi~ 8982 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 8983 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 8984 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8985 emximp -o $lib $output_objdir/$libname.def' 8986 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 8987 enable_shared_with_static_runtimes=yes 8988 file_list_spec='@' 8989 ;; 8990 8991 interix[3-9]*) 8992 hardcode_direct=no 8993 hardcode_shlibpath_var=no 8994 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 8995 export_dynamic_flag_spec='$wl-E' 8996 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8997 # Instead, shared libraries are loaded at an image base (0x10000000 by 8998 # default) and relocated if they conflict, which is a slow very memory 8999 # consuming and fragmenting process. To avoid this, we pick a random, 9000 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9001 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9002 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9003 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' 9004 ;; 9005 9006 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9007 tmp_diet=no 9008 if test linux-dietlibc = "$host_os"; then 9009 case $cc_basename in 9010 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9011 esac 9012 fi 9013 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9014 && test no = "$tmp_diet" 9015 then 9016 tmp_addflag=' $pic_flag' 9017 tmp_sharedflag='-shared' 9018 case $cc_basename,$host_cpu in 9019 pgcc*) # Portland Group C compiler 9020 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' 9021 tmp_addflag=' $pic_flag' 9022 ;; 9023 pgf77* | pgf90* | pgf95* | pgfortran*) 9024 # Portland Group f77 and f90 compilers 9025 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' 9026 tmp_addflag=' $pic_flag -Mnomain' ;; 9027 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9028 tmp_addflag=' -i_dynamic' ;; 9029 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9030 tmp_addflag=' -i_dynamic -nofor_main' ;; 9031 ifc* | ifort*) # Intel Fortran compiler 9032 tmp_addflag=' -nofor_main' ;; 9033 lf95*) # Lahey Fortran 8.1 9034 whole_archive_flag_spec= 9035 tmp_sharedflag='--shared' ;; 9036 nagfor*) # NAGFOR 5.3 9037 tmp_sharedflag='-Wl,-shared' ;; 9038 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9039 tmp_sharedflag='-qmkshrobj' 9040 tmp_addflag= ;; 9041 nvcc*) # Cuda Compiler Driver 2.2 9042 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' 9043 compiler_needs_object=yes 9044 ;; 9045 esac 9046 case `$CC -V 2>&1 | sed 5q` in 9047 *Sun\ C*) # Sun C 5.9 9048 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' 9049 compiler_needs_object=yes 9050 tmp_sharedflag='-G' ;; 9051 *Sun\ F*) # Sun Fortran 8.3 9052 tmp_sharedflag='-G' ;; 9053 esac 9054 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9055 9056 if test yes = "$supports_anon_versioning"; then 9057 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9059 echo "local: *; };" >> $output_objdir/$libname.ver~ 9060 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9061 fi 9062 9063 case $cc_basename in 9064 tcc*) 9065 export_dynamic_flag_spec='-rdynamic' 9066 ;; 9067 xlf* | bgf* | bgxlf* | mpixlf*) 9068 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9069 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9070 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9071 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9072 if test yes = "$supports_anon_versioning"; then 9073 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9074 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9075 echo "local: *; };" >> $output_objdir/$libname.ver~ 9076 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9077 fi 9078 ;; 9079 esac 9080 else 9081 ld_shlibs=no 9082 fi 9083 ;; 9084 9085 netbsd*) 9086 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9087 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9088 wlarc= 9089 else 9090 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9091 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9092 fi 9093 ;; 9094 9095 solaris*) 9096 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9097 ld_shlibs=no 9098 cat <<_LT_EOF 1>&2 9099 9100*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9101*** create shared libraries on Solaris systems. Therefore, libtool 9102*** is disabling shared libraries support. We urge you to upgrade GNU 9103*** binutils to release 2.9.1 or newer. Another option is to modify 9104*** your PATH or compiler configuration so that the native linker is 9105*** used, and then restart. 9106 9107_LT_EOF 9108 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9109 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9110 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9111 else 9112 ld_shlibs=no 9113 fi 9114 ;; 9115 9116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9117 case `$LD -v 2>&1` in 9118 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9119 ld_shlibs=no 9120 cat <<_LT_EOF 1>&2 9121 9122*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9123*** reliably create shared libraries on SCO systems. Therefore, libtool 9124*** is disabling shared libraries support. We urge you to upgrade GNU 9125*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9126*** your PATH or compiler configuration so that the native linker is 9127*** used, and then restart. 9128 9129_LT_EOF 9130 ;; 9131 *) 9132 # For security reasons, it is highly recommended that you always 9133 # use absolute paths for naming shared libraries, and exclude the 9134 # DT_RUNPATH tag from executables and libraries. But doing so 9135 # requires that you compile everything twice, which is a pain. 9136 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9137 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9139 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9140 else 9141 ld_shlibs=no 9142 fi 9143 ;; 9144 esac 9145 ;; 9146 9147 sunos4*) 9148 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9149 wlarc= 9150 hardcode_direct=yes 9151 hardcode_shlibpath_var=no 9152 ;; 9153 9154 *) 9155 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9157 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9158 else 9159 ld_shlibs=no 9160 fi 9161 ;; 9162 esac 9163 9164 if test no = "$ld_shlibs"; then 9165 runpath_var= 9166 hardcode_libdir_flag_spec= 9167 export_dynamic_flag_spec= 9168 whole_archive_flag_spec= 9169 fi 9170 else 9171 # PORTME fill in a description of your system's linker (not GNU ld) 9172 case $host_os in 9173 aix3*) 9174 allow_undefined_flag=unsupported 9175 always_export_symbols=yes 9176 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' 9177 # Note: this linker hardcodes the directories in LIBPATH if there 9178 # are no directories specified by -L. 9179 hardcode_minus_L=yes 9180 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9181 # Neither direct hardcoding nor static linking is supported with a 9182 # broken collect2. 9183 hardcode_direct=unsupported 9184 fi 9185 ;; 9186 9187 aix[4-9]*) 9188 if test ia64 = "$host_cpu"; then 9189 # On IA64, the linker does run time linking by default, so we don't 9190 # have to do anything special. 9191 aix_use_runtimelinking=no 9192 exp_sym_flag='-Bexport' 9193 no_entry_flag= 9194 else 9195 # If we're using GNU nm, then we don't want the "-C" option. 9196 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9197 # Without the "-l" option, or with the "-B" option, AIX nm treats 9198 # weak defined symbols like other global defined symbols, whereas 9199 # GNU nm marks them as "W". 9200 # While the 'weak' keyword is ignored in the Export File, we need 9201 # it in the Import File for the 'aix-soname' feature, so we have 9202 # to replace the "-B" option with "-P" for AIX nm. 9203 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9204 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' 9205 else 9206 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' 9207 fi 9208 aix_use_runtimelinking=no 9209 9210 # Test if we are trying to use run time linking or normal 9211 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9212 # have runtime linking enabled, and use it for executables. 9213 # For shared libraries, we enable/disable runtime linking 9214 # depending on the kind of the shared library created - 9215 # when "with_aix_soname,aix_use_runtimelinking" is: 9216 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9217 # "aix,yes" lib.so shared, rtl:yes, for executables 9218 # lib.a static archive 9219 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9220 # lib.a(lib.so.V) shared, rtl:no, for executables 9221 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9222 # lib.a(lib.so.V) shared, rtl:no 9223 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9224 # lib.a static archive 9225 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9226 for ld_flag in $LDFLAGS; do 9227 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9228 aix_use_runtimelinking=yes 9229 break 9230 fi 9231 done 9232 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9233 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9234 # so we don't have lib.a shared libs to link our executables. 9235 # We have to force runtime linking in this case. 9236 aix_use_runtimelinking=yes 9237 LDFLAGS="$LDFLAGS -Wl,-brtl" 9238 fi 9239 ;; 9240 esac 9241 9242 exp_sym_flag='-bexport' 9243 no_entry_flag='-bnoentry' 9244 fi 9245 9246 # When large executables or shared objects are built, AIX ld can 9247 # have problems creating the table of contents. If linking a library 9248 # or program results in "error TOC overflow" add -mminimal-toc to 9249 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9250 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9251 9252 archive_cmds='' 9253 hardcode_direct=yes 9254 hardcode_direct_absolute=yes 9255 hardcode_libdir_separator=':' 9256 link_all_deplibs=yes 9257 file_list_spec='$wl-f,' 9258 case $with_aix_soname,$aix_use_runtimelinking in 9259 aix,*) ;; # traditional, no import file 9260 svr4,* | *,yes) # use import file 9261 # The Import File defines what to hardcode. 9262 hardcode_direct=no 9263 hardcode_direct_absolute=no 9264 ;; 9265 esac 9266 9267 if test yes = "$GCC"; then 9268 case $host_os in aix4.[012]|aix4.[012].*) 9269 # We only want to do this on AIX 4.2 and lower, the check 9270 # below for broken collect2 doesn't work under 4.3+ 9271 collect2name=`$CC -print-prog-name=collect2` 9272 if test -f "$collect2name" && 9273 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9274 then 9275 # We have reworked collect2 9276 : 9277 else 9278 # We have old collect2 9279 hardcode_direct=unsupported 9280 # It fails to find uninstalled libraries when the uninstalled 9281 # path is not listed in the libpath. Setting hardcode_minus_L 9282 # to unsupported forces relinking 9283 hardcode_minus_L=yes 9284 hardcode_libdir_flag_spec='-L$libdir' 9285 hardcode_libdir_separator= 9286 fi 9287 ;; 9288 esac 9289 shared_flag='-shared' 9290 if test yes = "$aix_use_runtimelinking"; then 9291 shared_flag="$shared_flag "'$wl-G' 9292 fi 9293 # Need to ensure runtime linking is disabled for the traditional 9294 # shared library, or the linker may eventually find shared libraries 9295 # /with/ Import File - we do not want to mix them. 9296 shared_flag_aix='-shared' 9297 shared_flag_svr4='-shared $wl-G' 9298 else 9299 # not using gcc 9300 if test ia64 = "$host_cpu"; then 9301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9302 # chokes on -Wl,-G. The following line is correct: 9303 shared_flag='-G' 9304 else 9305 if test yes = "$aix_use_runtimelinking"; then 9306 shared_flag='$wl-G' 9307 else 9308 shared_flag='$wl-bM:SRE' 9309 fi 9310 shared_flag_aix='$wl-bM:SRE' 9311 shared_flag_svr4='$wl-G' 9312 fi 9313 fi 9314 9315 export_dynamic_flag_spec='$wl-bexpall' 9316 # It seems that -bexpall does not export symbols beginning with 9317 # underscore (_), so it is better to generate a list of symbols to export. 9318 always_export_symbols=yes 9319 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9320 # Warning - without using the other runtime loading flags (-brtl), 9321 # -berok will link without error, but may produce a broken library. 9322 allow_undefined_flag='-berok' 9323 # Determine the default libpath from the value encoded in an 9324 # empty executable. 9325 if test set = "${lt_cv_aix_libpath+set}"; then 9326 aix_libpath=$lt_cv_aix_libpath 9327else 9328 if ${lt_cv_aix_libpath_+:} false; then : 9329 $as_echo_n "(cached) " >&6 9330else 9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9332/* end confdefs.h. */ 9333 9334int 9335main () 9336{ 9337 9338 ; 9339 return 0; 9340} 9341_ACEOF 9342if ac_fn_c_try_link "$LINENO"; then : 9343 9344 lt_aix_libpath_sed=' 9345 /Import File Strings/,/^$/ { 9346 /^0/ { 9347 s/^0 *\([^ ]*\) *$/\1/ 9348 p 9349 } 9350 }' 9351 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9352 # Check for a 64-bit object if we didn't find anything. 9353 if test -z "$lt_cv_aix_libpath_"; then 9354 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9355 fi 9356fi 9357rm -f core conftest.err conftest.$ac_objext \ 9358 conftest$ac_exeext conftest.$ac_ext 9359 if test -z "$lt_cv_aix_libpath_"; then 9360 lt_cv_aix_libpath_=/usr/lib:/lib 9361 fi 9362 9363fi 9364 9365 aix_libpath=$lt_cv_aix_libpath_ 9366fi 9367 9368 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9369 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 9370 else 9371 if test ia64 = "$host_cpu"; then 9372 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9373 allow_undefined_flag="-z nodefs" 9374 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" 9375 else 9376 # Determine the default libpath from the value encoded in an 9377 # empty executable. 9378 if test set = "${lt_cv_aix_libpath+set}"; then 9379 aix_libpath=$lt_cv_aix_libpath 9380else 9381 if ${lt_cv_aix_libpath_+:} false; then : 9382 $as_echo_n "(cached) " >&6 9383else 9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9385/* end confdefs.h. */ 9386 9387int 9388main () 9389{ 9390 9391 ; 9392 return 0; 9393} 9394_ACEOF 9395if ac_fn_c_try_link "$LINENO"; then : 9396 9397 lt_aix_libpath_sed=' 9398 /Import File Strings/,/^$/ { 9399 /^0/ { 9400 s/^0 *\([^ ]*\) *$/\1/ 9401 p 9402 } 9403 }' 9404 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9405 # Check for a 64-bit object if we didn't find anything. 9406 if test -z "$lt_cv_aix_libpath_"; then 9407 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9408 fi 9409fi 9410rm -f core conftest.err conftest.$ac_objext \ 9411 conftest$ac_exeext conftest.$ac_ext 9412 if test -z "$lt_cv_aix_libpath_"; then 9413 lt_cv_aix_libpath_=/usr/lib:/lib 9414 fi 9415 9416fi 9417 9418 aix_libpath=$lt_cv_aix_libpath_ 9419fi 9420 9421 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9422 # Warning - without using the other run time loading flags, 9423 # -berok will link without error, but may produce a broken library. 9424 no_undefined_flag=' $wl-bernotok' 9425 allow_undefined_flag=' $wl-berok' 9426 if test yes = "$with_gnu_ld"; then 9427 # We only use this code for GNU lds that support --whole-archive. 9428 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9429 else 9430 # Exported symbols can be pulled into shared objects from archives 9431 whole_archive_flag_spec='$convenience' 9432 fi 9433 archive_cmds_need_lc=yes 9434 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9435 # -brtl affects multiple linker settings, -berok does not and is overridden later 9436 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9437 if test svr4 != "$with_aix_soname"; then 9438 # This is similar to how AIX traditionally builds its shared libraries. 9439 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' 9440 fi 9441 if test aix != "$with_aix_soname"; then 9442 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' 9443 else 9444 # used by -dlpreopen to get the symbols 9445 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9446 fi 9447 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9448 fi 9449 fi 9450 ;; 9451 9452 amigaos*) 9453 case $host_cpu in 9454 powerpc) 9455 # see comment about AmigaOS4 .so support 9456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9457 archive_expsym_cmds='' 9458 ;; 9459 m68k) 9460 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)' 9461 hardcode_libdir_flag_spec='-L$libdir' 9462 hardcode_minus_L=yes 9463 ;; 9464 esac 9465 ;; 9466 9467 bsdi[45]*) 9468 export_dynamic_flag_spec=-rdynamic 9469 ;; 9470 9471 cygwin* | mingw* | pw32* | cegcc*) 9472 # When not using gcc, we currently assume that we are using 9473 # Microsoft Visual C++ or Intel C++ Compiler. 9474 # hardcode_libdir_flag_spec is actually meaningless, as there is 9475 # no search path for DLLs. 9476 case $cc_basename in 9477 cl* | icl*) 9478 # Native MSVC or ICC 9479 hardcode_libdir_flag_spec=' ' 9480 allow_undefined_flag=unsupported 9481 always_export_symbols=yes 9482 file_list_spec='@' 9483 # Tell ltmain to make .lib files, not .a files. 9484 libext=lib 9485 # Tell ltmain to make .dll files, not .so files. 9486 shrext_cmds=.dll 9487 # FIXME: Setting linknames here is a bad hack. 9488 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9489 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9490 cp "$export_symbols" "$output_objdir/$soname.def"; 9491 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9492 else 9493 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9494 fi~ 9495 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9496 linknames=' 9497 # The linker will not automatically build a static lib if we build a DLL. 9498 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9499 enable_shared_with_static_runtimes=yes 9500 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9501 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9502 # Don't use ranlib 9503 old_postinstall_cmds='chmod 644 $oldlib' 9504 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9505 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9506 case $lt_outputfile in 9507 *.exe|*.EXE) ;; 9508 *) 9509 lt_outputfile=$lt_outputfile.exe 9510 lt_tool_outputfile=$lt_tool_outputfile.exe 9511 ;; 9512 esac~ 9513 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9514 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9515 $RM "$lt_outputfile.manifest"; 9516 fi' 9517 ;; 9518 *) 9519 # Assume MSVC and ICC wrapper 9520 hardcode_libdir_flag_spec=' ' 9521 allow_undefined_flag=unsupported 9522 # Tell ltmain to make .lib files, not .a files. 9523 libext=lib 9524 # Tell ltmain to make .dll files, not .so files. 9525 shrext_cmds=.dll 9526 # FIXME: Setting linknames here is a bad hack. 9527 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9528 # The linker will automatically build a .lib file if we build a DLL. 9529 old_archive_from_new_cmds='true' 9530 # FIXME: Should let the user specify the lib program. 9531 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9532 enable_shared_with_static_runtimes=yes 9533 ;; 9534 esac 9535 ;; 9536 9537 darwin* | rhapsody*) 9538 9539 9540 archive_cmds_need_lc=no 9541 hardcode_direct=no 9542 hardcode_automatic=yes 9543 hardcode_shlibpath_var=unsupported 9544 if test yes = "$lt_cv_ld_force_load"; then 9545 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\"`' 9546 9547 else 9548 whole_archive_flag_spec='' 9549 fi 9550 link_all_deplibs=yes 9551 allow_undefined_flag=$_lt_dar_allow_undefined 9552 case $cc_basename in 9553 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9554 *) _lt_dar_can_shared=$GCC ;; 9555 esac 9556 if test yes = "$_lt_dar_can_shared"; then 9557 output_verbose_link_cmd=func_echo_all 9558 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9559 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9560 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" 9561 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" 9562 9563 else 9564 ld_shlibs=no 9565 fi 9566 9567 ;; 9568 9569 dgux*) 9570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9571 hardcode_libdir_flag_spec='-L$libdir' 9572 hardcode_shlibpath_var=no 9573 ;; 9574 9575 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9576 # support. Future versions do this automatically, but an explicit c++rt0.o 9577 # does not break anything, and helps significantly (at the cost of a little 9578 # extra space). 9579 freebsd2.2*) 9580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9581 hardcode_libdir_flag_spec='-R$libdir' 9582 hardcode_direct=yes 9583 hardcode_shlibpath_var=no 9584 ;; 9585 9586 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9587 freebsd2.*) 9588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9589 hardcode_direct=yes 9590 hardcode_minus_L=yes 9591 hardcode_shlibpath_var=no 9592 ;; 9593 9594 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9595 freebsd* | dragonfly*) 9596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9597 hardcode_libdir_flag_spec='-R$libdir' 9598 hardcode_direct=yes 9599 hardcode_shlibpath_var=no 9600 ;; 9601 9602 hpux9*) 9603 if test yes = "$GCC"; then 9604 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' 9605 else 9606 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' 9607 fi 9608 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9609 hardcode_libdir_separator=: 9610 hardcode_direct=yes 9611 9612 # hardcode_minus_L: Not really in the search PATH, 9613 # but as the default location of the library. 9614 hardcode_minus_L=yes 9615 export_dynamic_flag_spec='$wl-E' 9616 ;; 9617 9618 hpux10*) 9619 if test yes,no = "$GCC,$with_gnu_ld"; then 9620 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9621 else 9622 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9623 fi 9624 if test no = "$with_gnu_ld"; then 9625 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9626 hardcode_libdir_separator=: 9627 hardcode_direct=yes 9628 hardcode_direct_absolute=yes 9629 export_dynamic_flag_spec='$wl-E' 9630 # hardcode_minus_L: Not really in the search PATH, 9631 # but as the default location of the library. 9632 hardcode_minus_L=yes 9633 fi 9634 ;; 9635 9636 hpux11*) 9637 if test yes,no = "$GCC,$with_gnu_ld"; then 9638 case $host_cpu in 9639 hppa*64*) 9640 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9641 ;; 9642 ia64*) 9643 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9644 ;; 9645 *) 9646 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9647 ;; 9648 esac 9649 else 9650 case $host_cpu in 9651 hppa*64*) 9652 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9653 ;; 9654 ia64*) 9655 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9656 ;; 9657 *) 9658 9659 # Older versions of the 11.00 compiler do not understand -b yet 9660 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9662$as_echo_n "checking if $CC understands -b... " >&6; } 9663if ${lt_cv_prog_compiler__b+:} false; then : 9664 $as_echo_n "(cached) " >&6 9665else 9666 lt_cv_prog_compiler__b=no 9667 save_LDFLAGS=$LDFLAGS 9668 LDFLAGS="$LDFLAGS -b" 9669 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9670 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9671 # The linker can only warn and ignore the option if not recognized 9672 # So say no if there are warnings 9673 if test -s conftest.err; then 9674 # Append any errors to the config.log. 9675 cat conftest.err 1>&5 9676 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9678 if diff conftest.exp conftest.er2 >/dev/null; then 9679 lt_cv_prog_compiler__b=yes 9680 fi 9681 else 9682 lt_cv_prog_compiler__b=yes 9683 fi 9684 fi 9685 $RM -r conftest* 9686 LDFLAGS=$save_LDFLAGS 9687 9688fi 9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9690$as_echo "$lt_cv_prog_compiler__b" >&6; } 9691 9692if test yes = "$lt_cv_prog_compiler__b"; then 9693 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9694else 9695 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9696fi 9697 9698 ;; 9699 esac 9700 fi 9701 if test no = "$with_gnu_ld"; then 9702 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9703 hardcode_libdir_separator=: 9704 9705 case $host_cpu in 9706 hppa*64*|ia64*) 9707 hardcode_direct=no 9708 hardcode_shlibpath_var=no 9709 ;; 9710 *) 9711 hardcode_direct=yes 9712 hardcode_direct_absolute=yes 9713 export_dynamic_flag_spec='$wl-E' 9714 9715 # hardcode_minus_L: Not really in the search PATH, 9716 # but as the default location of the library. 9717 hardcode_minus_L=yes 9718 ;; 9719 esac 9720 fi 9721 ;; 9722 9723 irix5* | irix6* | nonstopux*) 9724 if test yes = "$GCC"; then 9725 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' 9726 # Try to use the -exported_symbol ld option, if it does not 9727 # work, assume that -exports_file does not work either and 9728 # implicitly export all symbols. 9729 # This should be the same for all languages, so no per-tag cache variable. 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9731$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9732if ${lt_cv_irix_exported_symbol+:} false; then : 9733 $as_echo_n "(cached) " >&6 9734else 9735 save_LDFLAGS=$LDFLAGS 9736 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9738/* end confdefs.h. */ 9739int foo (void) { return 0; } 9740_ACEOF 9741if ac_fn_c_try_link "$LINENO"; then : 9742 lt_cv_irix_exported_symbol=yes 9743else 9744 lt_cv_irix_exported_symbol=no 9745fi 9746rm -f core conftest.err conftest.$ac_objext \ 9747 conftest$ac_exeext conftest.$ac_ext 9748 LDFLAGS=$save_LDFLAGS 9749fi 9750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9751$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9752 if test yes = "$lt_cv_irix_exported_symbol"; then 9753 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' 9754 fi 9755 else 9756 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' 9757 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' 9758 fi 9759 archive_cmds_need_lc='no' 9760 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9761 hardcode_libdir_separator=: 9762 inherit_rpath=yes 9763 link_all_deplibs=yes 9764 ;; 9765 9766 linux*) 9767 case $cc_basename in 9768 tcc*) 9769 # Fabrice Bellard et al's Tiny C Compiler 9770 ld_shlibs=yes 9771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9772 ;; 9773 esac 9774 ;; 9775 9776 netbsd*) 9777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9779 else 9780 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9781 fi 9782 hardcode_libdir_flag_spec='-R$libdir' 9783 hardcode_direct=yes 9784 hardcode_shlibpath_var=no 9785 ;; 9786 9787 newsos6) 9788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9789 hardcode_direct=yes 9790 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9791 hardcode_libdir_separator=: 9792 hardcode_shlibpath_var=no 9793 ;; 9794 9795 *nto* | *qnx*) 9796 ;; 9797 9798 openbsd* | bitrig*) 9799 if test -f /usr/libexec/ld.so; then 9800 hardcode_direct=yes 9801 hardcode_shlibpath_var=no 9802 hardcode_direct_absolute=yes 9803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9805 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9806 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9807 export_dynamic_flag_spec='$wl-E' 9808 else 9809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9810 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9811 fi 9812 else 9813 ld_shlibs=no 9814 fi 9815 ;; 9816 9817 os2*) 9818 hardcode_libdir_flag_spec='-L$libdir' 9819 hardcode_minus_L=yes 9820 allow_undefined_flag=unsupported 9821 shrext_cmds=.dll 9822 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9823 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9824 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9825 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9826 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9827 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9828 emximp -o $lib $output_objdir/$libname.def' 9829 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9830 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9831 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9832 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9833 prefix_cmds="$SED"~ 9834 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9835 prefix_cmds="$prefix_cmds -e 1d"; 9836 fi~ 9837 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9838 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9839 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9840 emximp -o $lib $output_objdir/$libname.def' 9841 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9842 enable_shared_with_static_runtimes=yes 9843 file_list_spec='@' 9844 ;; 9845 9846 osf3*) 9847 if test yes = "$GCC"; then 9848 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9849 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' 9850 else 9851 allow_undefined_flag=' -expect_unresolved \*' 9852 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' 9853 fi 9854 archive_cmds_need_lc='no' 9855 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9856 hardcode_libdir_separator=: 9857 ;; 9858 9859 osf4* | osf5*) # as osf3* with the addition of -msym flag 9860 if test yes = "$GCC"; then 9861 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9862 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' 9863 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9864 else 9865 allow_undefined_flag=' -expect_unresolved \*' 9866 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' 9867 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~ 9868 $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' 9869 9870 # Both c and cxx compiler support -rpath directly 9871 hardcode_libdir_flag_spec='-rpath $libdir' 9872 fi 9873 archive_cmds_need_lc='no' 9874 hardcode_libdir_separator=: 9875 ;; 9876 9877 solaris*) 9878 no_undefined_flag=' -z defs' 9879 if test yes = "$GCC"; then 9880 wlarc='$wl' 9881 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9882 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9883 $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' 9884 else 9885 case `$CC -V 2>&1` in 9886 *"Compilers 5.0"*) 9887 wlarc='' 9888 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9889 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9890 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9891 ;; 9892 *) 9893 wlarc='$wl' 9894 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9895 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9896 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9897 ;; 9898 esac 9899 fi 9900 hardcode_libdir_flag_spec='-R$libdir' 9901 hardcode_shlibpath_var=no 9902 case $host_os in 9903 solaris2.[0-5] | solaris2.[0-5].*) ;; 9904 *) 9905 # The compiler driver will combine and reorder linker options, 9906 # but understands '-z linker_flag'. GCC discards it without '$wl', 9907 # but is careful enough not to reorder. 9908 # Supported since Solaris 2.6 (maybe 2.5.1?) 9909 if test yes = "$GCC"; then 9910 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9911 else 9912 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9913 fi 9914 ;; 9915 esac 9916 link_all_deplibs=yes 9917 ;; 9918 9919 sunos4*) 9920 if test sequent = "$host_vendor"; then 9921 # Use $CC to link under sequent, because it throws in some extra .o 9922 # files that make .init and .fini sections work. 9923 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9924 else 9925 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9926 fi 9927 hardcode_libdir_flag_spec='-L$libdir' 9928 hardcode_direct=yes 9929 hardcode_minus_L=yes 9930 hardcode_shlibpath_var=no 9931 ;; 9932 9933 sysv4) 9934 case $host_vendor in 9935 sni) 9936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9937 hardcode_direct=yes # is this really true??? 9938 ;; 9939 siemens) 9940 ## LD is ld it makes a PLAMLIB 9941 ## CC just makes a GrossModule. 9942 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9943 reload_cmds='$CC -r -o $output$reload_objs' 9944 hardcode_direct=no 9945 ;; 9946 motorola) 9947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9948 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9949 ;; 9950 esac 9951 runpath_var='LD_RUN_PATH' 9952 hardcode_shlibpath_var=no 9953 ;; 9954 9955 sysv4.3*) 9956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9957 hardcode_shlibpath_var=no 9958 export_dynamic_flag_spec='-Bexport' 9959 ;; 9960 9961 sysv4*MP*) 9962 if test -d /usr/nec; then 9963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9964 hardcode_shlibpath_var=no 9965 runpath_var=LD_RUN_PATH 9966 hardcode_runpath_var=yes 9967 ld_shlibs=yes 9968 fi 9969 ;; 9970 9971 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9972 no_undefined_flag='$wl-z,text' 9973 archive_cmds_need_lc=no 9974 hardcode_shlibpath_var=no 9975 runpath_var='LD_RUN_PATH' 9976 9977 if test yes = "$GCC"; then 9978 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9979 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9980 else 9981 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9982 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9983 fi 9984 ;; 9985 9986 sysv5* | sco3.2v5* | sco5v6*) 9987 # Note: We CANNOT use -z defs as we might desire, because we do not 9988 # link with -lc, and that would cause any symbols used from libc to 9989 # always be unresolved, which means just about no library would 9990 # ever link correctly. If we're not using GNU ld we use -z text 9991 # though, which does catch some bad symbols but isn't as heavy-handed 9992 # as -z defs. 9993 no_undefined_flag='$wl-z,text' 9994 allow_undefined_flag='$wl-z,nodefs' 9995 archive_cmds_need_lc=no 9996 hardcode_shlibpath_var=no 9997 hardcode_libdir_flag_spec='$wl-R,$libdir' 9998 hardcode_libdir_separator=':' 9999 link_all_deplibs=yes 10000 export_dynamic_flag_spec='$wl-Bexport' 10001 runpath_var='LD_RUN_PATH' 10002 10003 if test yes = "$GCC"; then 10004 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10005 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10006 else 10007 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10008 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10009 fi 10010 ;; 10011 10012 uts4*) 10013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10014 hardcode_libdir_flag_spec='-L$libdir' 10015 hardcode_shlibpath_var=no 10016 ;; 10017 10018 *) 10019 ld_shlibs=no 10020 ;; 10021 esac 10022 10023 if test sni = "$host_vendor"; then 10024 case $host in 10025 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10026 export_dynamic_flag_spec='$wl-Blargedynsym' 10027 ;; 10028 esac 10029 fi 10030 fi 10031 10032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10033$as_echo "$ld_shlibs" >&6; } 10034test no = "$ld_shlibs" && can_build_shared=no 10035 10036with_gnu_ld=$with_gnu_ld 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052# 10053# Do we need to explicitly link libc? 10054# 10055case "x$archive_cmds_need_lc" in 10056x|xyes) 10057 # Assume -lc should be added 10058 archive_cmds_need_lc=yes 10059 10060 if test yes,yes = "$GCC,$enable_shared"; then 10061 case $archive_cmds in 10062 *'~'*) 10063 # FIXME: we may have to deal with multi-command sequences. 10064 ;; 10065 '$CC '*) 10066 # Test whether the compiler implicitly links with -lc since on some 10067 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10068 # to ld, don't add -lc before -lgcc. 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10070$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10071if ${lt_cv_archive_cmds_need_lc+:} false; then : 10072 $as_echo_n "(cached) " >&6 10073else 10074 $RM conftest* 10075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10076 10077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10078 (eval $ac_compile) 2>&5 10079 ac_status=$? 10080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10081 test $ac_status = 0; } 2>conftest.err; then 10082 soname=conftest 10083 lib=conftest 10084 libobjs=conftest.$ac_objext 10085 deplibs= 10086 wl=$lt_prog_compiler_wl 10087 pic_flag=$lt_prog_compiler_pic 10088 compiler_flags=-v 10089 linker_flags=-v 10090 verstring= 10091 output_objdir=. 10092 libname=conftest 10093 lt_save_allow_undefined_flag=$allow_undefined_flag 10094 allow_undefined_flag= 10095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10096 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10097 ac_status=$? 10098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10099 test $ac_status = 0; } 10100 then 10101 lt_cv_archive_cmds_need_lc=no 10102 else 10103 lt_cv_archive_cmds_need_lc=yes 10104 fi 10105 allow_undefined_flag=$lt_save_allow_undefined_flag 10106 else 10107 cat conftest.err 1>&5 10108 fi 10109 $RM conftest* 10110 10111fi 10112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10113$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10114 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10115 ;; 10116 esac 10117 fi 10118 ;; 10119esac 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10273$as_echo_n "checking dynamic linker characteristics... " >&6; } 10274 10275if test yes = "$GCC"; then 10276 case $host_os in 10277 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10278 *) lt_awk_arg='/^libraries:/' ;; 10279 esac 10280 case $host_os in 10281 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10282 *) lt_sed_strip_eq='s|=/|/|g' ;; 10283 esac 10284 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10285 case $lt_search_path_spec in 10286 *\;*) 10287 # if the path contains ";" then we assume it to be the separator 10288 # otherwise default to the standard path separator (i.e. ":") - it is 10289 # assumed that no part of a normal pathname contains ";" but that should 10290 # okay in the real world where ";" in dirpaths is itself problematic. 10291 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10292 ;; 10293 *) 10294 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10295 ;; 10296 esac 10297 # Ok, now we have the path, separated by spaces, we can step through it 10298 # and add multilib dir if necessary... 10299 lt_tmp_lt_search_path_spec= 10300 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10301 # ...but if some path component already ends with the multilib dir we assume 10302 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10303 case "$lt_multi_os_dir; $lt_search_path_spec " in 10304 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10305 lt_multi_os_dir= 10306 ;; 10307 esac 10308 for lt_sys_path in $lt_search_path_spec; do 10309 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10310 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10311 elif test -n "$lt_multi_os_dir"; then 10312 test -d "$lt_sys_path" && \ 10313 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10314 fi 10315 done 10316 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10317BEGIN {RS = " "; FS = "/|\n";} { 10318 lt_foo = ""; 10319 lt_count = 0; 10320 for (lt_i = NF; lt_i > 0; lt_i--) { 10321 if ($lt_i != "" && $lt_i != ".") { 10322 if ($lt_i == "..") { 10323 lt_count++; 10324 } else { 10325 if (lt_count == 0) { 10326 lt_foo = "/" $lt_i lt_foo; 10327 } else { 10328 lt_count--; 10329 } 10330 } 10331 } 10332 } 10333 if (lt_foo != "") { lt_freq[lt_foo]++; } 10334 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10335}'` 10336 # AWK program above erroneously prepends '/' to C:/dos/paths 10337 # for these hosts. 10338 case $host_os in 10339 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10340 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10341 esac 10342 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10343else 10344 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10345fi 10346library_names_spec= 10347libname_spec='lib$name' 10348soname_spec= 10349shrext_cmds=.so 10350postinstall_cmds= 10351postuninstall_cmds= 10352finish_cmds= 10353finish_eval= 10354shlibpath_var= 10355shlibpath_overrides_runpath=unknown 10356version_type=none 10357dynamic_linker="$host_os ld.so" 10358sys_lib_dlsearch_path_spec="/lib /usr/lib" 10359need_lib_prefix=unknown 10360hardcode_into_libs=no 10361 10362# when you set need_version to no, make sure it does not cause -set_version 10363# flags to be left without arguments 10364need_version=unknown 10365 10366 10367 10368case $host_os in 10369aix3*) 10370 version_type=linux # correct to gnu/linux during the next big refactor 10371 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10372 shlibpath_var=LIBPATH 10373 10374 # AIX 3 has no versioning support, so we append a major version to the name. 10375 soname_spec='$libname$release$shared_ext$major' 10376 ;; 10377 10378aix[4-9]*) 10379 version_type=linux # correct to gnu/linux during the next big refactor 10380 need_lib_prefix=no 10381 need_version=no 10382 hardcode_into_libs=yes 10383 if test ia64 = "$host_cpu"; then 10384 # AIX 5 supports IA64 10385 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10386 shlibpath_var=LD_LIBRARY_PATH 10387 else 10388 # With GCC up to 2.95.x, collect2 would create an import file 10389 # for dependence libraries. The import file would start with 10390 # the line '#! .'. This would cause the generated library to 10391 # depend on '.', always an invalid library. This was fixed in 10392 # development snapshots of GCC prior to 3.0. 10393 case $host_os in 10394 aix4 | aix4.[01] | aix4.[01].*) 10395 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10396 echo ' yes ' 10397 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10398 : 10399 else 10400 can_build_shared=no 10401 fi 10402 ;; 10403 esac 10404 # Using Import Files as archive members, it is possible to support 10405 # filename-based versioning of shared library archives on AIX. While 10406 # this would work for both with and without runtime linking, it will 10407 # prevent static linking of such archives. So we do filename-based 10408 # shared library versioning with .so extension only, which is used 10409 # when both runtime linking and shared linking is enabled. 10410 # Unfortunately, runtime linking may impact performance, so we do 10411 # not want this to be the default eventually. Also, we use the 10412 # versioned .so libs for executables only if there is the -brtl 10413 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10414 # To allow for filename-based versioning support, we need to create 10415 # libNAME.so.V as an archive file, containing: 10416 # *) an Import File, referring to the versioned filename of the 10417 # archive as well as the shared archive member, telling the 10418 # bitwidth (32 or 64) of that shared object, and providing the 10419 # list of exported symbols of that shared object, eventually 10420 # decorated with the 'weak' keyword 10421 # *) the shared object with the F_LOADONLY flag set, to really avoid 10422 # it being seen by the linker. 10423 # At run time we better use the real file rather than another symlink, 10424 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10425 10426 case $with_aix_soname,$aix_use_runtimelinking in 10427 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10428 # soname into executable. Probably we can add versioning support to 10429 # collect2, so additional links can be useful in future. 10430 aix,yes) # traditional libtool 10431 dynamic_linker='AIX unversionable lib.so' 10432 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10433 # instead of lib<name>.a to let people know that these are not 10434 # typical AIX shared libraries. 10435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10436 ;; 10437 aix,no) # traditional AIX only 10438 dynamic_linker='AIX lib.a(lib.so.V)' 10439 # We preserve .a as extension for shared libraries through AIX4.2 10440 # and later when we are not doing run time linking. 10441 library_names_spec='$libname$release.a $libname.a' 10442 soname_spec='$libname$release$shared_ext$major' 10443 ;; 10444 svr4,*) # full svr4 only 10445 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10446 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10447 # We do not specify a path in Import Files, so LIBPATH fires. 10448 shlibpath_overrides_runpath=yes 10449 ;; 10450 *,yes) # both, prefer svr4 10451 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10452 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10453 # unpreferred sharedlib libNAME.a needs extra handling 10454 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"' 10455 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"' 10456 # We do not specify a path in Import Files, so LIBPATH fires. 10457 shlibpath_overrides_runpath=yes 10458 ;; 10459 *,no) # both, prefer aix 10460 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10461 library_names_spec='$libname$release.a $libname.a' 10462 soname_spec='$libname$release$shared_ext$major' 10463 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10464 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)' 10465 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"' 10466 ;; 10467 esac 10468 shlibpath_var=LIBPATH 10469 fi 10470 ;; 10471 10472amigaos*) 10473 case $host_cpu in 10474 powerpc) 10475 # Since July 2007 AmigaOS4 officially supports .so libraries. 10476 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10478 ;; 10479 m68k) 10480 library_names_spec='$libname.ixlibrary $libname.a' 10481 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10482 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' 10483 ;; 10484 esac 10485 ;; 10486 10487beos*) 10488 library_names_spec='$libname$shared_ext' 10489 dynamic_linker="$host_os ld.so" 10490 shlibpath_var=LIBRARY_PATH 10491 ;; 10492 10493bsdi[45]*) 10494 version_type=linux # correct to gnu/linux during the next big refactor 10495 need_version=no 10496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10497 soname_spec='$libname$release$shared_ext$major' 10498 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10499 shlibpath_var=LD_LIBRARY_PATH 10500 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10501 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10502 # the default ld.so.conf also contains /usr/contrib/lib and 10503 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10504 # libtool to hard-code these into programs 10505 ;; 10506 10507cygwin* | mingw* | pw32* | cegcc*) 10508 version_type=windows 10509 shrext_cmds=.dll 10510 need_version=no 10511 need_lib_prefix=no 10512 10513 case $GCC,$cc_basename in 10514 yes,*) 10515 # gcc 10516 library_names_spec='$libname.dll.a' 10517 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10518 postinstall_cmds='base_file=`basename \$file`~ 10519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10520 dldir=$destdir/`dirname \$dlpath`~ 10521 test -d \$dldir || mkdir -p \$dldir~ 10522 $install_prog $dir/$dlname \$dldir/$dlname~ 10523 chmod a+x \$dldir/$dlname~ 10524 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10525 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10526 fi' 10527 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10528 dlpath=$dir/\$dldll~ 10529 $RM \$dlpath' 10530 shlibpath_overrides_runpath=yes 10531 10532 case $host_os in 10533 cygwin*) 10534 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10535 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10536 10537 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10538 ;; 10539 mingw* | cegcc*) 10540 # MinGW DLLs use traditional 'lib' prefix 10541 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10542 ;; 10543 pw32*) 10544 # pw32 DLLs use 'pw' prefix rather than 'lib' 10545 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10546 ;; 10547 esac 10548 dynamic_linker='Win32 ld.exe' 10549 ;; 10550 10551 *,cl* | *,icl*) 10552 # Native MSVC or ICC 10553 libname_spec='$name' 10554 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10555 library_names_spec='$libname.dll.lib' 10556 10557 case $build_os in 10558 mingw*) 10559 sys_lib_search_path_spec= 10560 lt_save_ifs=$IFS 10561 IFS=';' 10562 for lt_path in $LIB 10563 do 10564 IFS=$lt_save_ifs 10565 # Let DOS variable expansion print the short 8.3 style file name. 10566 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10567 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10568 done 10569 IFS=$lt_save_ifs 10570 # Convert to MSYS style. 10571 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10572 ;; 10573 cygwin*) 10574 # Convert to unix form, then to dos form, then back to unix form 10575 # but this time dos style (no spaces!) so that the unix form looks 10576 # like /cygdrive/c/PROGRA~1:/cygdr... 10577 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10578 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10579 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10580 ;; 10581 *) 10582 sys_lib_search_path_spec=$LIB 10583 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10584 # It is most probably a Windows format PATH. 10585 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10586 else 10587 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10588 fi 10589 # FIXME: find the short name or the path components, as spaces are 10590 # common. (e.g. "Program Files" -> "PROGRA~1") 10591 ;; 10592 esac 10593 10594 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10595 postinstall_cmds='base_file=`basename \$file`~ 10596 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10597 dldir=$destdir/`dirname \$dlpath`~ 10598 test -d \$dldir || mkdir -p \$dldir~ 10599 $install_prog $dir/$dlname \$dldir/$dlname' 10600 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10601 dlpath=$dir/\$dldll~ 10602 $RM \$dlpath' 10603 shlibpath_overrides_runpath=yes 10604 dynamic_linker='Win32 link.exe' 10605 ;; 10606 10607 *) 10608 # Assume MSVC and ICC wrapper 10609 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10610 dynamic_linker='Win32 ld.exe' 10611 ;; 10612 esac 10613 # FIXME: first we should search . and the directory the executable is in 10614 shlibpath_var=PATH 10615 ;; 10616 10617darwin* | rhapsody*) 10618 dynamic_linker="$host_os dyld" 10619 version_type=darwin 10620 need_lib_prefix=no 10621 need_version=no 10622 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10623 soname_spec='$libname$release$major$shared_ext' 10624 shlibpath_overrides_runpath=yes 10625 shlibpath_var=DYLD_LIBRARY_PATH 10626 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10627 10628 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10629 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10630 ;; 10631 10632dgux*) 10633 version_type=linux # correct to gnu/linux during the next big refactor 10634 need_lib_prefix=no 10635 need_version=no 10636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10637 soname_spec='$libname$release$shared_ext$major' 10638 shlibpath_var=LD_LIBRARY_PATH 10639 ;; 10640 10641freebsd* | dragonfly*) 10642 # DragonFly does not have aout. When/if they implement a new 10643 # versioning mechanism, adjust this. 10644 if test -x /usr/bin/objformat; then 10645 objformat=`/usr/bin/objformat` 10646 else 10647 case $host_os in 10648 freebsd[23].*) objformat=aout ;; 10649 *) objformat=elf ;; 10650 esac 10651 fi 10652 version_type=freebsd-$objformat 10653 case $version_type in 10654 freebsd-elf*) 10655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10656 soname_spec='$libname$release$shared_ext$major' 10657 need_version=no 10658 need_lib_prefix=no 10659 ;; 10660 freebsd-*) 10661 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10662 need_version=yes 10663 ;; 10664 esac 10665 shlibpath_var=LD_LIBRARY_PATH 10666 case $host_os in 10667 freebsd2.*) 10668 shlibpath_overrides_runpath=yes 10669 ;; 10670 freebsd3.[01]* | freebsdelf3.[01]*) 10671 shlibpath_overrides_runpath=yes 10672 hardcode_into_libs=yes 10673 ;; 10674 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10675 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10676 shlibpath_overrides_runpath=no 10677 hardcode_into_libs=yes 10678 ;; 10679 *) # from 4.6 on, and DragonFly 10680 shlibpath_overrides_runpath=yes 10681 hardcode_into_libs=yes 10682 ;; 10683 esac 10684 ;; 10685 10686haiku*) 10687 version_type=linux # correct to gnu/linux during the next big refactor 10688 need_lib_prefix=no 10689 need_version=no 10690 dynamic_linker="$host_os runtime_loader" 10691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10692 soname_spec='$libname$release$shared_ext$major' 10693 shlibpath_var=LIBRARY_PATH 10694 shlibpath_overrides_runpath=no 10695 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10696 hardcode_into_libs=yes 10697 ;; 10698 10699hpux9* | hpux10* | hpux11*) 10700 # Give a soname corresponding to the major version so that dld.sl refuses to 10701 # link against other versions. 10702 version_type=sunos 10703 need_lib_prefix=no 10704 need_version=no 10705 case $host_cpu in 10706 ia64*) 10707 shrext_cmds='.so' 10708 hardcode_into_libs=yes 10709 dynamic_linker="$host_os dld.so" 10710 shlibpath_var=LD_LIBRARY_PATH 10711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10713 soname_spec='$libname$release$shared_ext$major' 10714 if test 32 = "$HPUX_IA64_MODE"; then 10715 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10716 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10717 else 10718 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10719 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10720 fi 10721 ;; 10722 hppa*64*) 10723 shrext_cmds='.sl' 10724 hardcode_into_libs=yes 10725 dynamic_linker="$host_os dld.sl" 10726 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10729 soname_spec='$libname$release$shared_ext$major' 10730 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10732 ;; 10733 *) 10734 shrext_cmds='.sl' 10735 dynamic_linker="$host_os dld.sl" 10736 shlibpath_var=SHLIB_PATH 10737 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10739 soname_spec='$libname$release$shared_ext$major' 10740 ;; 10741 esac 10742 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10743 postinstall_cmds='chmod 555 $lib' 10744 # or fails outright, so override atomically: 10745 install_override_mode=555 10746 ;; 10747 10748interix[3-9]*) 10749 version_type=linux # correct to gnu/linux during the next big refactor 10750 need_lib_prefix=no 10751 need_version=no 10752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10753 soname_spec='$libname$release$shared_ext$major' 10754 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10755 shlibpath_var=LD_LIBRARY_PATH 10756 shlibpath_overrides_runpath=no 10757 hardcode_into_libs=yes 10758 ;; 10759 10760irix5* | irix6* | nonstopux*) 10761 case $host_os in 10762 nonstopux*) version_type=nonstopux ;; 10763 *) 10764 if test yes = "$lt_cv_prog_gnu_ld"; then 10765 version_type=linux # correct to gnu/linux during the next big refactor 10766 else 10767 version_type=irix 10768 fi ;; 10769 esac 10770 need_lib_prefix=no 10771 need_version=no 10772 soname_spec='$libname$release$shared_ext$major' 10773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10774 case $host_os in 10775 irix5* | nonstopux*) 10776 libsuff= shlibsuff= 10777 ;; 10778 *) 10779 case $LD in # libtool.m4 will add one of these switches to LD 10780 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10781 libsuff= shlibsuff= libmagic=32-bit;; 10782 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10783 libsuff=32 shlibsuff=N32 libmagic=N32;; 10784 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10785 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10786 *) libsuff= shlibsuff= libmagic=never-match;; 10787 esac 10788 ;; 10789 esac 10790 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10791 shlibpath_overrides_runpath=no 10792 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10793 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10794 hardcode_into_libs=yes 10795 ;; 10796 10797# No shared lib support for Linux oldld, aout, or coff. 10798linux*oldld* | linux*aout* | linux*coff*) 10799 dynamic_linker=no 10800 ;; 10801 10802linux*android*) 10803 version_type=none # Android doesn't support versioned libraries. 10804 need_lib_prefix=no 10805 need_version=no 10806 library_names_spec='$libname$release$shared_ext' 10807 soname_spec='$libname$release$shared_ext' 10808 finish_cmds= 10809 shlibpath_var=LD_LIBRARY_PATH 10810 shlibpath_overrides_runpath=yes 10811 10812 # This implies no fast_install, which is unacceptable. 10813 # Some rework will be needed to allow for fast_install 10814 # before this can be enabled. 10815 hardcode_into_libs=yes 10816 10817 dynamic_linker='Android linker' 10818 # Don't embed -rpath directories since the linker doesn't support them. 10819 hardcode_libdir_flag_spec='-L$libdir' 10820 ;; 10821 10822# This must be glibc/ELF. 10823linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10824 version_type=linux # correct to gnu/linux during the next big refactor 10825 need_lib_prefix=no 10826 need_version=no 10827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10828 soname_spec='$libname$release$shared_ext$major' 10829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10830 shlibpath_var=LD_LIBRARY_PATH 10831 shlibpath_overrides_runpath=no 10832 10833 # Some binutils ld are patched to set DT_RUNPATH 10834 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10835 $as_echo_n "(cached) " >&6 10836else 10837 lt_cv_shlibpath_overrides_runpath=no 10838 save_LDFLAGS=$LDFLAGS 10839 save_libdir=$libdir 10840 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10841 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10843/* end confdefs.h. */ 10844 10845int 10846main () 10847{ 10848 10849 ; 10850 return 0; 10851} 10852_ACEOF 10853if ac_fn_c_try_link "$LINENO"; then : 10854 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10855 lt_cv_shlibpath_overrides_runpath=yes 10856fi 10857fi 10858rm -f core conftest.err conftest.$ac_objext \ 10859 conftest$ac_exeext conftest.$ac_ext 10860 LDFLAGS=$save_LDFLAGS 10861 libdir=$save_libdir 10862 10863fi 10864 10865 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10866 10867 # This implies no fast_install, which is unacceptable. 10868 # Some rework will be needed to allow for fast_install 10869 # before this can be enabled. 10870 hardcode_into_libs=yes 10871 10872 # Ideally, we could use ldconfig to report *all* directores which are 10873 # searched for libraries, however this is still not possible. Aside from not 10874 # being certain /sbin/ldconfig is available, command 10875 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10876 # even though it is searched at run-time. Try to do the best guess by 10877 # appending ld.so.conf contents (and includes) to the search path. 10878 if test -f /etc/ld.so.conf; then 10879 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' ' '` 10880 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10881 fi 10882 10883 # We used to test for /lib/ld.so.1 and disable shared libraries on 10884 # powerpc, because MkLinux only supported shared libraries with the 10885 # GNU dynamic linker. Since this was broken with cross compilers, 10886 # most powerpc-linux boxes support dynamic linking these days and 10887 # people can always --disable-shared, the test was removed, and we 10888 # assume the GNU/Linux dynamic linker is in use. 10889 dynamic_linker='GNU/Linux ld.so' 10890 ;; 10891 10892netbsd*) 10893 version_type=sunos 10894 need_lib_prefix=no 10895 need_version=no 10896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10897 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10899 dynamic_linker='NetBSD (a.out) ld.so' 10900 else 10901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10902 soname_spec='$libname$release$shared_ext$major' 10903 dynamic_linker='NetBSD ld.elf_so' 10904 fi 10905 shlibpath_var=LD_LIBRARY_PATH 10906 shlibpath_overrides_runpath=yes 10907 hardcode_into_libs=yes 10908 ;; 10909 10910newsos6) 10911 version_type=linux # correct to gnu/linux during the next big refactor 10912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10913 shlibpath_var=LD_LIBRARY_PATH 10914 shlibpath_overrides_runpath=yes 10915 ;; 10916 10917*nto* | *qnx*) 10918 version_type=qnx 10919 need_lib_prefix=no 10920 need_version=no 10921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10922 soname_spec='$libname$release$shared_ext$major' 10923 shlibpath_var=LD_LIBRARY_PATH 10924 shlibpath_overrides_runpath=no 10925 hardcode_into_libs=yes 10926 dynamic_linker='ldqnx.so' 10927 ;; 10928 10929openbsd* | bitrig*) 10930 version_type=sunos 10931 sys_lib_dlsearch_path_spec=/usr/lib 10932 need_lib_prefix=no 10933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10934 need_version=no 10935 else 10936 need_version=yes 10937 fi 10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10940 shlibpath_var=LD_LIBRARY_PATH 10941 shlibpath_overrides_runpath=yes 10942 ;; 10943 10944os2*) 10945 libname_spec='$name' 10946 version_type=windows 10947 shrext_cmds=.dll 10948 need_version=no 10949 need_lib_prefix=no 10950 # OS/2 can only load a DLL with a base name of 8 characters or less. 10951 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 10952 v=$($ECHO $release$versuffix | tr -d .-); 10953 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 10954 $ECHO $n$v`$shared_ext' 10955 library_names_spec='${libname}_dll.$libext' 10956 dynamic_linker='OS/2 ld.exe' 10957 shlibpath_var=BEGINLIBPATH 10958 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10960 postinstall_cmds='base_file=`basename \$file`~ 10961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 10962 dldir=$destdir/`dirname \$dlpath`~ 10963 test -d \$dldir || mkdir -p \$dldir~ 10964 $install_prog $dir/$dlname \$dldir/$dlname~ 10965 chmod a+x \$dldir/$dlname~ 10966 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10967 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10968 fi' 10969 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 10970 dlpath=$dir/\$dldll~ 10971 $RM \$dlpath' 10972 ;; 10973 10974osf3* | osf4* | osf5*) 10975 version_type=osf 10976 need_lib_prefix=no 10977 need_version=no 10978 soname_spec='$libname$release$shared_ext$major' 10979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10980 shlibpath_var=LD_LIBRARY_PATH 10981 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10983 ;; 10984 10985rdos*) 10986 dynamic_linker=no 10987 ;; 10988 10989solaris*) 10990 version_type=linux # correct to gnu/linux during the next big refactor 10991 need_lib_prefix=no 10992 need_version=no 10993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10994 soname_spec='$libname$release$shared_ext$major' 10995 shlibpath_var=LD_LIBRARY_PATH 10996 shlibpath_overrides_runpath=yes 10997 hardcode_into_libs=yes 10998 # ldd complains unless libraries are executable 10999 postinstall_cmds='chmod +x $lib' 11000 ;; 11001 11002sunos4*) 11003 version_type=sunos 11004 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11005 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11006 shlibpath_var=LD_LIBRARY_PATH 11007 shlibpath_overrides_runpath=yes 11008 if test yes = "$with_gnu_ld"; then 11009 need_lib_prefix=no 11010 fi 11011 need_version=yes 11012 ;; 11013 11014sysv4 | sysv4.3*) 11015 version_type=linux # correct to gnu/linux during the next big refactor 11016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11017 soname_spec='$libname$release$shared_ext$major' 11018 shlibpath_var=LD_LIBRARY_PATH 11019 case $host_vendor in 11020 sni) 11021 shlibpath_overrides_runpath=no 11022 need_lib_prefix=no 11023 runpath_var=LD_RUN_PATH 11024 ;; 11025 siemens) 11026 need_lib_prefix=no 11027 ;; 11028 motorola) 11029 need_lib_prefix=no 11030 need_version=no 11031 shlibpath_overrides_runpath=no 11032 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11033 ;; 11034 esac 11035 ;; 11036 11037sysv4*MP*) 11038 if test -d /usr/nec; then 11039 version_type=linux # correct to gnu/linux during the next big refactor 11040 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11041 soname_spec='$libname$shared_ext.$major' 11042 shlibpath_var=LD_LIBRARY_PATH 11043 fi 11044 ;; 11045 11046sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11047 version_type=sco 11048 need_lib_prefix=no 11049 need_version=no 11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11051 soname_spec='$libname$release$shared_ext$major' 11052 shlibpath_var=LD_LIBRARY_PATH 11053 shlibpath_overrides_runpath=yes 11054 hardcode_into_libs=yes 11055 if test yes = "$with_gnu_ld"; then 11056 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11057 else 11058 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11059 case $host_os in 11060 sco3.2v5*) 11061 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11062 ;; 11063 esac 11064 fi 11065 sys_lib_dlsearch_path_spec='/usr/lib' 11066 ;; 11067 11068tpf*) 11069 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11070 version_type=linux # correct to gnu/linux during the next big refactor 11071 need_lib_prefix=no 11072 need_version=no 11073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11074 shlibpath_var=LD_LIBRARY_PATH 11075 shlibpath_overrides_runpath=no 11076 hardcode_into_libs=yes 11077 ;; 11078 11079uts4*) 11080 version_type=linux # correct to gnu/linux during the next big refactor 11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11082 soname_spec='$libname$release$shared_ext$major' 11083 shlibpath_var=LD_LIBRARY_PATH 11084 ;; 11085 11086*) 11087 dynamic_linker=no 11088 ;; 11089esac 11090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11091$as_echo "$dynamic_linker" >&6; } 11092test no = "$dynamic_linker" && can_build_shared=no 11093 11094variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11095if test yes = "$GCC"; then 11096 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11097fi 11098 11099if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11100 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11101fi 11102 11103if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11104 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11105fi 11106 11107# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11108configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11109 11110# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11111func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11112 11113# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11114configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11213$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11214hardcode_action= 11215if test -n "$hardcode_libdir_flag_spec" || 11216 test -n "$runpath_var" || 11217 test yes = "$hardcode_automatic"; then 11218 11219 # We can hardcode non-existent directories. 11220 if test no != "$hardcode_direct" && 11221 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11222 # have to relink, otherwise we might link with an installed library 11223 # when we should be linking with a yet-to-be-installed one 11224 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11225 test no != "$hardcode_minus_L"; then 11226 # Linking always hardcodes the temporary library directory. 11227 hardcode_action=relink 11228 else 11229 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11230 hardcode_action=immediate 11231 fi 11232else 11233 # We cannot hardcode anything, or else we can only hardcode existing 11234 # directories. 11235 hardcode_action=unsupported 11236fi 11237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11238$as_echo "$hardcode_action" >&6; } 11239 11240if test relink = "$hardcode_action" || 11241 test yes = "$inherit_rpath"; then 11242 # Fast installation is not supported 11243 enable_fast_install=no 11244elif test yes = "$shlibpath_overrides_runpath" || 11245 test no = "$enable_shared"; then 11246 # Fast installation is not necessary 11247 enable_fast_install=needless 11248fi 11249 11250 11251 11252 11253 11254 11255 if test yes != "$enable_dlopen"; then 11256 enable_dlopen=unknown 11257 enable_dlopen_self=unknown 11258 enable_dlopen_self_static=unknown 11259else 11260 lt_cv_dlopen=no 11261 lt_cv_dlopen_libs= 11262 11263 case $host_os in 11264 beos*) 11265 lt_cv_dlopen=load_add_on 11266 lt_cv_dlopen_libs= 11267 lt_cv_dlopen_self=yes 11268 ;; 11269 11270 mingw* | pw32* | cegcc*) 11271 lt_cv_dlopen=LoadLibrary 11272 lt_cv_dlopen_libs= 11273 ;; 11274 11275 cygwin*) 11276 lt_cv_dlopen=dlopen 11277 lt_cv_dlopen_libs= 11278 ;; 11279 11280 darwin*) 11281 # if libdl is installed we need to link against it 11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11283$as_echo_n "checking for dlopen in -ldl... " >&6; } 11284if ${ac_cv_lib_dl_dlopen+:} false; then : 11285 $as_echo_n "(cached) " >&6 11286else 11287 ac_check_lib_save_LIBS=$LIBS 11288LIBS="-ldl $LIBS" 11289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11290/* end confdefs.h. */ 11291 11292/* Override any GCC internal prototype to avoid an error. 11293 Use char because int might match the return type of a GCC 11294 builtin and then its argument prototype would still apply. */ 11295#ifdef __cplusplus 11296extern "C" 11297#endif 11298char dlopen (); 11299int 11300main () 11301{ 11302return dlopen (); 11303 ; 11304 return 0; 11305} 11306_ACEOF 11307if ac_fn_c_try_link "$LINENO"; then : 11308 ac_cv_lib_dl_dlopen=yes 11309else 11310 ac_cv_lib_dl_dlopen=no 11311fi 11312rm -f core conftest.err conftest.$ac_objext \ 11313 conftest$ac_exeext conftest.$ac_ext 11314LIBS=$ac_check_lib_save_LIBS 11315fi 11316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11317$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11318if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11319 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11320else 11321 11322 lt_cv_dlopen=dyld 11323 lt_cv_dlopen_libs= 11324 lt_cv_dlopen_self=yes 11325 11326fi 11327 11328 ;; 11329 11330 tpf*) 11331 # Don't try to run any link tests for TPF. We know it's impossible 11332 # because TPF is a cross-compiler, and we know how we open DSOs. 11333 lt_cv_dlopen=dlopen 11334 lt_cv_dlopen_libs= 11335 lt_cv_dlopen_self=no 11336 ;; 11337 11338 *) 11339 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11340if test "x$ac_cv_func_shl_load" = xyes; then : 11341 lt_cv_dlopen=shl_load 11342else 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11344$as_echo_n "checking for shl_load in -ldld... " >&6; } 11345if ${ac_cv_lib_dld_shl_load+:} false; then : 11346 $as_echo_n "(cached) " >&6 11347else 11348 ac_check_lib_save_LIBS=$LIBS 11349LIBS="-ldld $LIBS" 11350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11351/* end confdefs.h. */ 11352 11353/* Override any GCC internal prototype to avoid an error. 11354 Use char because int might match the return type of a GCC 11355 builtin and then its argument prototype would still apply. */ 11356#ifdef __cplusplus 11357extern "C" 11358#endif 11359char shl_load (); 11360int 11361main () 11362{ 11363return shl_load (); 11364 ; 11365 return 0; 11366} 11367_ACEOF 11368if ac_fn_c_try_link "$LINENO"; then : 11369 ac_cv_lib_dld_shl_load=yes 11370else 11371 ac_cv_lib_dld_shl_load=no 11372fi 11373rm -f core conftest.err conftest.$ac_objext \ 11374 conftest$ac_exeext conftest.$ac_ext 11375LIBS=$ac_check_lib_save_LIBS 11376fi 11377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11378$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11379if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11380 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11381else 11382 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11383if test "x$ac_cv_func_dlopen" = xyes; then : 11384 lt_cv_dlopen=dlopen 11385else 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11387$as_echo_n "checking for dlopen in -ldl... " >&6; } 11388if ${ac_cv_lib_dl_dlopen+:} false; then : 11389 $as_echo_n "(cached) " >&6 11390else 11391 ac_check_lib_save_LIBS=$LIBS 11392LIBS="-ldl $LIBS" 11393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11394/* end confdefs.h. */ 11395 11396/* Override any GCC internal prototype to avoid an error. 11397 Use char because int might match the return type of a GCC 11398 builtin and then its argument prototype would still apply. */ 11399#ifdef __cplusplus 11400extern "C" 11401#endif 11402char dlopen (); 11403int 11404main () 11405{ 11406return dlopen (); 11407 ; 11408 return 0; 11409} 11410_ACEOF 11411if ac_fn_c_try_link "$LINENO"; then : 11412 ac_cv_lib_dl_dlopen=yes 11413else 11414 ac_cv_lib_dl_dlopen=no 11415fi 11416rm -f core conftest.err conftest.$ac_objext \ 11417 conftest$ac_exeext conftest.$ac_ext 11418LIBS=$ac_check_lib_save_LIBS 11419fi 11420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11421$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11422if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11423 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11424else 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11426$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11427if ${ac_cv_lib_svld_dlopen+:} false; then : 11428 $as_echo_n "(cached) " >&6 11429else 11430 ac_check_lib_save_LIBS=$LIBS 11431LIBS="-lsvld $LIBS" 11432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11433/* end confdefs.h. */ 11434 11435/* Override any GCC internal prototype to avoid an error. 11436 Use char because int might match the return type of a GCC 11437 builtin and then its argument prototype would still apply. */ 11438#ifdef __cplusplus 11439extern "C" 11440#endif 11441char dlopen (); 11442int 11443main () 11444{ 11445return dlopen (); 11446 ; 11447 return 0; 11448} 11449_ACEOF 11450if ac_fn_c_try_link "$LINENO"; then : 11451 ac_cv_lib_svld_dlopen=yes 11452else 11453 ac_cv_lib_svld_dlopen=no 11454fi 11455rm -f core conftest.err conftest.$ac_objext \ 11456 conftest$ac_exeext conftest.$ac_ext 11457LIBS=$ac_check_lib_save_LIBS 11458fi 11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11460$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11461if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11462 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11463else 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11465$as_echo_n "checking for dld_link in -ldld... " >&6; } 11466if ${ac_cv_lib_dld_dld_link+:} false; then : 11467 $as_echo_n "(cached) " >&6 11468else 11469 ac_check_lib_save_LIBS=$LIBS 11470LIBS="-ldld $LIBS" 11471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11472/* end confdefs.h. */ 11473 11474/* Override any GCC internal prototype to avoid an error. 11475 Use char because int might match the return type of a GCC 11476 builtin and then its argument prototype would still apply. */ 11477#ifdef __cplusplus 11478extern "C" 11479#endif 11480char dld_link (); 11481int 11482main () 11483{ 11484return dld_link (); 11485 ; 11486 return 0; 11487} 11488_ACEOF 11489if ac_fn_c_try_link "$LINENO"; then : 11490 ac_cv_lib_dld_dld_link=yes 11491else 11492 ac_cv_lib_dld_dld_link=no 11493fi 11494rm -f core conftest.err conftest.$ac_objext \ 11495 conftest$ac_exeext conftest.$ac_ext 11496LIBS=$ac_check_lib_save_LIBS 11497fi 11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11499$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11500if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11501 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11502fi 11503 11504 11505fi 11506 11507 11508fi 11509 11510 11511fi 11512 11513 11514fi 11515 11516 11517fi 11518 11519 ;; 11520 esac 11521 11522 if test no = "$lt_cv_dlopen"; then 11523 enable_dlopen=no 11524 else 11525 enable_dlopen=yes 11526 fi 11527 11528 case $lt_cv_dlopen in 11529 dlopen) 11530 save_CPPFLAGS=$CPPFLAGS 11531 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11532 11533 save_LDFLAGS=$LDFLAGS 11534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11535 11536 save_LIBS=$LIBS 11537 LIBS="$lt_cv_dlopen_libs $LIBS" 11538 11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11540$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11541if ${lt_cv_dlopen_self+:} false; then : 11542 $as_echo_n "(cached) " >&6 11543else 11544 if test yes = "$cross_compiling"; then : 11545 lt_cv_dlopen_self=cross 11546else 11547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11548 lt_status=$lt_dlunknown 11549 cat > conftest.$ac_ext <<_LT_EOF 11550#line $LINENO "configure" 11551#include "confdefs.h" 11552 11553#if HAVE_DLFCN_H 11554#include <dlfcn.h> 11555#endif 11556 11557#include <stdio.h> 11558 11559#ifdef RTLD_GLOBAL 11560# define LT_DLGLOBAL RTLD_GLOBAL 11561#else 11562# ifdef DL_GLOBAL 11563# define LT_DLGLOBAL DL_GLOBAL 11564# else 11565# define LT_DLGLOBAL 0 11566# endif 11567#endif 11568 11569/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11570 find out it does not work in some platform. */ 11571#ifndef LT_DLLAZY_OR_NOW 11572# ifdef RTLD_LAZY 11573# define LT_DLLAZY_OR_NOW RTLD_LAZY 11574# else 11575# ifdef DL_LAZY 11576# define LT_DLLAZY_OR_NOW DL_LAZY 11577# else 11578# ifdef RTLD_NOW 11579# define LT_DLLAZY_OR_NOW RTLD_NOW 11580# else 11581# ifdef DL_NOW 11582# define LT_DLLAZY_OR_NOW DL_NOW 11583# else 11584# define LT_DLLAZY_OR_NOW 0 11585# endif 11586# endif 11587# endif 11588# endif 11589#endif 11590 11591/* When -fvisibility=hidden is used, assume the code has been annotated 11592 correspondingly for the symbols needed. */ 11593#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11594int fnord () __attribute__((visibility("default"))); 11595#endif 11596 11597int fnord () { return 42; } 11598int main () 11599{ 11600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11601 int status = $lt_dlunknown; 11602 11603 if (self) 11604 { 11605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11606 else 11607 { 11608 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11609 else puts (dlerror ()); 11610 } 11611 /* dlclose (self); */ 11612 } 11613 else 11614 puts (dlerror ()); 11615 11616 return status; 11617} 11618_LT_EOF 11619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11620 (eval $ac_link) 2>&5 11621 ac_status=$? 11622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11623 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11624 (./conftest; exit; ) >&5 2>/dev/null 11625 lt_status=$? 11626 case x$lt_status in 11627 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11628 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11629 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11630 esac 11631 else : 11632 # compilation failed 11633 lt_cv_dlopen_self=no 11634 fi 11635fi 11636rm -fr conftest* 11637 11638 11639fi 11640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11641$as_echo "$lt_cv_dlopen_self" >&6; } 11642 11643 if test yes = "$lt_cv_dlopen_self"; then 11644 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11646$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11647if ${lt_cv_dlopen_self_static+:} false; then : 11648 $as_echo_n "(cached) " >&6 11649else 11650 if test yes = "$cross_compiling"; then : 11651 lt_cv_dlopen_self_static=cross 11652else 11653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11654 lt_status=$lt_dlunknown 11655 cat > conftest.$ac_ext <<_LT_EOF 11656#line $LINENO "configure" 11657#include "confdefs.h" 11658 11659#if HAVE_DLFCN_H 11660#include <dlfcn.h> 11661#endif 11662 11663#include <stdio.h> 11664 11665#ifdef RTLD_GLOBAL 11666# define LT_DLGLOBAL RTLD_GLOBAL 11667#else 11668# ifdef DL_GLOBAL 11669# define LT_DLGLOBAL DL_GLOBAL 11670# else 11671# define LT_DLGLOBAL 0 11672# endif 11673#endif 11674 11675/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11676 find out it does not work in some platform. */ 11677#ifndef LT_DLLAZY_OR_NOW 11678# ifdef RTLD_LAZY 11679# define LT_DLLAZY_OR_NOW RTLD_LAZY 11680# else 11681# ifdef DL_LAZY 11682# define LT_DLLAZY_OR_NOW DL_LAZY 11683# else 11684# ifdef RTLD_NOW 11685# define LT_DLLAZY_OR_NOW RTLD_NOW 11686# else 11687# ifdef DL_NOW 11688# define LT_DLLAZY_OR_NOW DL_NOW 11689# else 11690# define LT_DLLAZY_OR_NOW 0 11691# endif 11692# endif 11693# endif 11694# endif 11695#endif 11696 11697/* When -fvisibility=hidden is used, assume the code has been annotated 11698 correspondingly for the symbols needed. */ 11699#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11700int fnord () __attribute__((visibility("default"))); 11701#endif 11702 11703int fnord () { return 42; } 11704int main () 11705{ 11706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11707 int status = $lt_dlunknown; 11708 11709 if (self) 11710 { 11711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11712 else 11713 { 11714 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11715 else puts (dlerror ()); 11716 } 11717 /* dlclose (self); */ 11718 } 11719 else 11720 puts (dlerror ()); 11721 11722 return status; 11723} 11724_LT_EOF 11725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11726 (eval $ac_link) 2>&5 11727 ac_status=$? 11728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11729 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11730 (./conftest; exit; ) >&5 2>/dev/null 11731 lt_status=$? 11732 case x$lt_status in 11733 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11734 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11735 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11736 esac 11737 else : 11738 # compilation failed 11739 lt_cv_dlopen_self_static=no 11740 fi 11741fi 11742rm -fr conftest* 11743 11744 11745fi 11746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11747$as_echo "$lt_cv_dlopen_self_static" >&6; } 11748 fi 11749 11750 CPPFLAGS=$save_CPPFLAGS 11751 LDFLAGS=$save_LDFLAGS 11752 LIBS=$save_LIBS 11753 ;; 11754 esac 11755 11756 case $lt_cv_dlopen_self in 11757 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11758 *) enable_dlopen_self=unknown ;; 11759 esac 11760 11761 case $lt_cv_dlopen_self_static in 11762 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11763 *) enable_dlopen_self_static=unknown ;; 11764 esac 11765fi 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783striplib= 11784old_striplib= 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11786$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11787if test -z "$STRIP"; then 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11789$as_echo "no" >&6; } 11790else 11791 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11792 old_striplib="$STRIP --strip-debug" 11793 striplib="$STRIP --strip-unneeded" 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11795$as_echo "yes" >&6; } 11796 else 11797 case $host_os in 11798 darwin*) 11799 # FIXME - insert some real tests, host_os isn't really good enough 11800 striplib="$STRIP -x" 11801 old_striplib="$STRIP -S" 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11803$as_echo "yes" >&6; } 11804 ;; 11805 freebsd*) 11806 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 11807 old_striplib="$STRIP --strip-debug" 11808 striplib="$STRIP --strip-unneeded" 11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11810$as_echo "yes" >&6; } 11811 else 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11813$as_echo "no" >&6; } 11814 fi 11815 ;; 11816 *) 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11818$as_echo "no" >&6; } 11819 ;; 11820 esac 11821 fi 11822fi 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 # Report what library types will actually be built 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11837$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11839$as_echo "$can_build_shared" >&6; } 11840 11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11842$as_echo_n "checking whether to build shared libraries... " >&6; } 11843 test no = "$can_build_shared" && enable_shared=no 11844 11845 # On AIX, shared libraries and static libraries use the same namespace, and 11846 # are all built from PIC. 11847 case $host_os in 11848 aix3*) 11849 test yes = "$enable_shared" && enable_static=no 11850 if test -n "$RANLIB"; then 11851 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11852 postinstall_cmds='$RANLIB $lib' 11853 fi 11854 ;; 11855 11856 aix[4-9]*) 11857 if test ia64 != "$host_cpu"; then 11858 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11859 yes,aix,yes) ;; # shared object as lib.so file only 11860 yes,svr4,*) ;; # shared object as lib.so archive member only 11861 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11862 esac 11863 fi 11864 ;; 11865 esac 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11867$as_echo "$enable_shared" >&6; } 11868 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11870$as_echo_n "checking whether to build static libraries... " >&6; } 11871 # Make sure either enable_shared or enable_static is yes. 11872 test yes = "$enable_shared" || enable_static=yes 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11874$as_echo "$enable_static" >&6; } 11875 11876 11877 11878 11879fi 11880ac_ext=c 11881ac_cpp='$CPP $CPPFLAGS' 11882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11884ac_compiler_gnu=$ac_cv_c_compiler_gnu 11885 11886CC=$lt_save_CC 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 ac_config_commands="$ac_config_commands libtool" 11903 11904 11905 11906 11907# Only expand once: 11908 11909 11910 11911# Checks for programs. 11912ac_ext=c 11913ac_cpp='$CPP $CPPFLAGS' 11914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11916ac_compiler_gnu=$ac_cv_c_compiler_gnu 11917if test -n "$ac_tool_prefix"; then 11918 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11919set dummy ${ac_tool_prefix}gcc; ac_word=$2 11920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11921$as_echo_n "checking for $ac_word... " >&6; } 11922if ${ac_cv_prog_CC+:} false; then : 11923 $as_echo_n "(cached) " >&6 11924else 11925 if test -n "$CC"; then 11926 ac_cv_prog_CC="$CC" # Let the user override the test. 11927else 11928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11929for as_dir in $PATH 11930do 11931 IFS=$as_save_IFS 11932 test -z "$as_dir" && as_dir=. 11933 for ac_exec_ext in '' $ac_executable_extensions; do 11934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11935 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11937 break 2 11938 fi 11939done 11940 done 11941IFS=$as_save_IFS 11942 11943fi 11944fi 11945CC=$ac_cv_prog_CC 11946if test -n "$CC"; then 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11948$as_echo "$CC" >&6; } 11949else 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11951$as_echo "no" >&6; } 11952fi 11953 11954 11955fi 11956if test -z "$ac_cv_prog_CC"; then 11957 ac_ct_CC=$CC 11958 # Extract the first word of "gcc", so it can be a program name with args. 11959set dummy gcc; ac_word=$2 11960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11961$as_echo_n "checking for $ac_word... " >&6; } 11962if ${ac_cv_prog_ac_ct_CC+:} false; then : 11963 $as_echo_n "(cached) " >&6 11964else 11965 if test -n "$ac_ct_CC"; then 11966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11967else 11968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11969for as_dir in $PATH 11970do 11971 IFS=$as_save_IFS 11972 test -z "$as_dir" && as_dir=. 11973 for ac_exec_ext in '' $ac_executable_extensions; do 11974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11975 ac_cv_prog_ac_ct_CC="gcc" 11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11977 break 2 11978 fi 11979done 11980 done 11981IFS=$as_save_IFS 11982 11983fi 11984fi 11985ac_ct_CC=$ac_cv_prog_ac_ct_CC 11986if test -n "$ac_ct_CC"; then 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11988$as_echo "$ac_ct_CC" >&6; } 11989else 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11991$as_echo "no" >&6; } 11992fi 11993 11994 if test "x$ac_ct_CC" = x; then 11995 CC="" 11996 else 11997 case $cross_compiling:$ac_tool_warned in 11998yes:) 11999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12001ac_tool_warned=yes ;; 12002esac 12003 CC=$ac_ct_CC 12004 fi 12005else 12006 CC="$ac_cv_prog_CC" 12007fi 12008 12009if test -z "$CC"; then 12010 if test -n "$ac_tool_prefix"; then 12011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12012set dummy ${ac_tool_prefix}cc; ac_word=$2 12013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12014$as_echo_n "checking for $ac_word... " >&6; } 12015if ${ac_cv_prog_CC+:} false; then : 12016 $as_echo_n "(cached) " >&6 12017else 12018 if test -n "$CC"; then 12019 ac_cv_prog_CC="$CC" # Let the user override the test. 12020else 12021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12022for as_dir in $PATH 12023do 12024 IFS=$as_save_IFS 12025 test -z "$as_dir" && as_dir=. 12026 for ac_exec_ext in '' $ac_executable_extensions; do 12027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12028 ac_cv_prog_CC="${ac_tool_prefix}cc" 12029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12030 break 2 12031 fi 12032done 12033 done 12034IFS=$as_save_IFS 12035 12036fi 12037fi 12038CC=$ac_cv_prog_CC 12039if test -n "$CC"; then 12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12041$as_echo "$CC" >&6; } 12042else 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12044$as_echo "no" >&6; } 12045fi 12046 12047 12048 fi 12049fi 12050if test -z "$CC"; then 12051 # Extract the first word of "cc", so it can be a program name with args. 12052set dummy cc; ac_word=$2 12053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12054$as_echo_n "checking for $ac_word... " >&6; } 12055if ${ac_cv_prog_CC+:} false; then : 12056 $as_echo_n "(cached) " >&6 12057else 12058 if test -n "$CC"; then 12059 ac_cv_prog_CC="$CC" # Let the user override the test. 12060else 12061 ac_prog_rejected=no 12062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12063for as_dir in $PATH 12064do 12065 IFS=$as_save_IFS 12066 test -z "$as_dir" && as_dir=. 12067 for ac_exec_ext in '' $ac_executable_extensions; do 12068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12070 ac_prog_rejected=yes 12071 continue 12072 fi 12073 ac_cv_prog_CC="cc" 12074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12075 break 2 12076 fi 12077done 12078 done 12079IFS=$as_save_IFS 12080 12081if test $ac_prog_rejected = yes; then 12082 # We found a bogon in the path, so make sure we never use it. 12083 set dummy $ac_cv_prog_CC 12084 shift 12085 if test $# != 0; then 12086 # We chose a different compiler from the bogus one. 12087 # However, it has the same basename, so the bogon will be chosen 12088 # first if we set CC to just the basename; use the full file name. 12089 shift 12090 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12091 fi 12092fi 12093fi 12094fi 12095CC=$ac_cv_prog_CC 12096if test -n "$CC"; then 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12098$as_echo "$CC" >&6; } 12099else 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12101$as_echo "no" >&6; } 12102fi 12103 12104 12105fi 12106if test -z "$CC"; then 12107 if test -n "$ac_tool_prefix"; then 12108 for ac_prog in cl.exe 12109 do 12110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12111set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12113$as_echo_n "checking for $ac_word... " >&6; } 12114if ${ac_cv_prog_CC+:} false; then : 12115 $as_echo_n "(cached) " >&6 12116else 12117 if test -n "$CC"; then 12118 ac_cv_prog_CC="$CC" # Let the user override the test. 12119else 12120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12121for as_dir in $PATH 12122do 12123 IFS=$as_save_IFS 12124 test -z "$as_dir" && as_dir=. 12125 for ac_exec_ext in '' $ac_executable_extensions; do 12126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12129 break 2 12130 fi 12131done 12132 done 12133IFS=$as_save_IFS 12134 12135fi 12136fi 12137CC=$ac_cv_prog_CC 12138if test -n "$CC"; then 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12140$as_echo "$CC" >&6; } 12141else 12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12143$as_echo "no" >&6; } 12144fi 12145 12146 12147 test -n "$CC" && break 12148 done 12149fi 12150if test -z "$CC"; then 12151 ac_ct_CC=$CC 12152 for ac_prog in cl.exe 12153do 12154 # Extract the first word of "$ac_prog", so it can be a program name with args. 12155set dummy $ac_prog; ac_word=$2 12156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12157$as_echo_n "checking for $ac_word... " >&6; } 12158if ${ac_cv_prog_ac_ct_CC+:} false; then : 12159 $as_echo_n "(cached) " >&6 12160else 12161 if test -n "$ac_ct_CC"; then 12162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12163else 12164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12165for as_dir in $PATH 12166do 12167 IFS=$as_save_IFS 12168 test -z "$as_dir" && as_dir=. 12169 for ac_exec_ext in '' $ac_executable_extensions; do 12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12171 ac_cv_prog_ac_ct_CC="$ac_prog" 12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12173 break 2 12174 fi 12175done 12176 done 12177IFS=$as_save_IFS 12178 12179fi 12180fi 12181ac_ct_CC=$ac_cv_prog_ac_ct_CC 12182if test -n "$ac_ct_CC"; then 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12184$as_echo "$ac_ct_CC" >&6; } 12185else 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12187$as_echo "no" >&6; } 12188fi 12189 12190 12191 test -n "$ac_ct_CC" && break 12192done 12193 12194 if test "x$ac_ct_CC" = x; then 12195 CC="" 12196 else 12197 case $cross_compiling:$ac_tool_warned in 12198yes:) 12199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12201ac_tool_warned=yes ;; 12202esac 12203 CC=$ac_ct_CC 12204 fi 12205fi 12206 12207fi 12208 12209 12210test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12212as_fn_error $? "no acceptable C compiler found in \$PATH 12213See \`config.log' for more details" "$LINENO" 5; } 12214 12215# Provide some information about the compiler. 12216$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12217set X $ac_compile 12218ac_compiler=$2 12219for ac_option in --version -v -V -qversion; do 12220 { { ac_try="$ac_compiler $ac_option >&5" 12221case "(($ac_try" in 12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12223 *) ac_try_echo=$ac_try;; 12224esac 12225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12226$as_echo "$ac_try_echo"; } >&5 12227 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12228 ac_status=$? 12229 if test -s conftest.err; then 12230 sed '10a\ 12231... rest of stderr output deleted ... 12232 10q' conftest.err >conftest.er1 12233 cat conftest.er1 >&5 12234 fi 12235 rm -f conftest.er1 conftest.err 12236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12237 test $ac_status = 0; } 12238done 12239 12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12241$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12242if ${ac_cv_c_compiler_gnu+:} false; then : 12243 $as_echo_n "(cached) " >&6 12244else 12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12246/* end confdefs.h. */ 12247 12248int 12249main () 12250{ 12251#ifndef __GNUC__ 12252 choke me 12253#endif 12254 12255 ; 12256 return 0; 12257} 12258_ACEOF 12259if ac_fn_c_try_compile "$LINENO"; then : 12260 ac_compiler_gnu=yes 12261else 12262 ac_compiler_gnu=no 12263fi 12264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12265ac_cv_c_compiler_gnu=$ac_compiler_gnu 12266 12267fi 12268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12269$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12270if test $ac_compiler_gnu = yes; then 12271 GCC=yes 12272else 12273 GCC= 12274fi 12275ac_test_CFLAGS=${CFLAGS+set} 12276ac_save_CFLAGS=$CFLAGS 12277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12278$as_echo_n "checking whether $CC accepts -g... " >&6; } 12279if ${ac_cv_prog_cc_g+:} false; then : 12280 $as_echo_n "(cached) " >&6 12281else 12282 ac_save_c_werror_flag=$ac_c_werror_flag 12283 ac_c_werror_flag=yes 12284 ac_cv_prog_cc_g=no 12285 CFLAGS="-g" 12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12287/* end confdefs.h. */ 12288 12289int 12290main () 12291{ 12292 12293 ; 12294 return 0; 12295} 12296_ACEOF 12297if ac_fn_c_try_compile "$LINENO"; then : 12298 ac_cv_prog_cc_g=yes 12299else 12300 CFLAGS="" 12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12302/* end confdefs.h. */ 12303 12304int 12305main () 12306{ 12307 12308 ; 12309 return 0; 12310} 12311_ACEOF 12312if ac_fn_c_try_compile "$LINENO"; then : 12313 12314else 12315 ac_c_werror_flag=$ac_save_c_werror_flag 12316 CFLAGS="-g" 12317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12318/* end confdefs.h. */ 12319 12320int 12321main () 12322{ 12323 12324 ; 12325 return 0; 12326} 12327_ACEOF 12328if ac_fn_c_try_compile "$LINENO"; then : 12329 ac_cv_prog_cc_g=yes 12330fi 12331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12332fi 12333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12334fi 12335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12336 ac_c_werror_flag=$ac_save_c_werror_flag 12337fi 12338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12339$as_echo "$ac_cv_prog_cc_g" >&6; } 12340if test "$ac_test_CFLAGS" = set; then 12341 CFLAGS=$ac_save_CFLAGS 12342elif test $ac_cv_prog_cc_g = yes; then 12343 if test "$GCC" = yes; then 12344 CFLAGS="-g -O2" 12345 else 12346 CFLAGS="-g" 12347 fi 12348else 12349 if test "$GCC" = yes; then 12350 CFLAGS="-O2" 12351 else 12352 CFLAGS= 12353 fi 12354fi 12355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12356$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12357if ${ac_cv_prog_cc_c89+:} false; then : 12358 $as_echo_n "(cached) " >&6 12359else 12360 ac_cv_prog_cc_c89=no 12361ac_save_CC=$CC 12362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12363/* end confdefs.h. */ 12364#include <stdarg.h> 12365#include <stdio.h> 12366struct stat; 12367/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12368struct buf { int x; }; 12369FILE * (*rcsopen) (struct buf *, struct stat *, int); 12370static char *e (p, i) 12371 char **p; 12372 int i; 12373{ 12374 return p[i]; 12375} 12376static char *f (char * (*g) (char **, int), char **p, ...) 12377{ 12378 char *s; 12379 va_list v; 12380 va_start (v,p); 12381 s = g (p, va_arg (v,int)); 12382 va_end (v); 12383 return s; 12384} 12385 12386/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12387 function prototypes and stuff, but not '\xHH' hex character constants. 12388 These don't provoke an error unfortunately, instead are silently treated 12389 as 'x'. The following induces an error, until -std is added to get 12390 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12391 array size at least. It's necessary to write '\x00'==0 to get something 12392 that's true only with -std. */ 12393int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12394 12395/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12396 inside strings and character constants. */ 12397#define FOO(x) 'x' 12398int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12399 12400int test (int i, double x); 12401struct s1 {int (*f) (int a);}; 12402struct s2 {int (*f) (double a);}; 12403int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12404int argc; 12405char **argv; 12406int 12407main () 12408{ 12409return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12410 ; 12411 return 0; 12412} 12413_ACEOF 12414for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12415 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12416do 12417 CC="$ac_save_CC $ac_arg" 12418 if ac_fn_c_try_compile "$LINENO"; then : 12419 ac_cv_prog_cc_c89=$ac_arg 12420fi 12421rm -f core conftest.err conftest.$ac_objext 12422 test "x$ac_cv_prog_cc_c89" != "xno" && break 12423done 12424rm -f conftest.$ac_ext 12425CC=$ac_save_CC 12426 12427fi 12428# AC_CACHE_VAL 12429case "x$ac_cv_prog_cc_c89" in 12430 x) 12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12432$as_echo "none needed" >&6; } ;; 12433 xno) 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12435$as_echo "unsupported" >&6; } ;; 12436 *) 12437 CC="$CC $ac_cv_prog_cc_c89" 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12439$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12440esac 12441if test "x$ac_cv_prog_cc_c89" != xno; then : 12442 12443fi 12444 12445ac_ext=c 12446ac_cpp='$CPP $CPPFLAGS' 12447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12449ac_compiler_gnu=$ac_cv_c_compiler_gnu 12450 12451ac_ext=c 12452ac_cpp='$CPP $CPPFLAGS' 12453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12455ac_compiler_gnu=$ac_cv_c_compiler_gnu 12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 12457$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 12458if ${am_cv_prog_cc_c_o+:} false; then : 12459 $as_echo_n "(cached) " >&6 12460else 12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12462/* end confdefs.h. */ 12463 12464int 12465main () 12466{ 12467 12468 ; 12469 return 0; 12470} 12471_ACEOF 12472 # Make sure it works both with $CC and with simple cc. 12473 # Following AC_PROG_CC_C_O, we do the test twice because some 12474 # compilers refuse to overwrite an existing .o file with -o, 12475 # though they will create one. 12476 am_cv_prog_cc_c_o=yes 12477 for am_i in 1 2; do 12478 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 12479 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 12480 ac_status=$? 12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12482 (exit $ac_status); } \ 12483 && test -f conftest2.$ac_objext; then 12484 : OK 12485 else 12486 am_cv_prog_cc_c_o=no 12487 break 12488 fi 12489 done 12490 rm -f core conftest* 12491 unset am_i 12492fi 12493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 12494$as_echo "$am_cv_prog_cc_c_o" >&6; } 12495if test "$am_cv_prog_cc_c_o" != yes; then 12496 # Losing compiler, so override with the script. 12497 # FIXME: It is wrong to rewrite CC. 12498 # But if we don't then we get into trouble of one sort or another. 12499 # A longer-term fix would be to have automake use am__CC in this case, 12500 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12501 CC="$am_aux_dir/compile $CC" 12502fi 12503ac_ext=c 12504ac_cpp='$CPP $CPPFLAGS' 12505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12507ac_compiler_gnu=$ac_cv_c_compiler_gnu 12508 12509 12510depcc="$CC" am_compiler_list= 12511 12512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12513$as_echo_n "checking dependency style of $depcc... " >&6; } 12514if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12515 $as_echo_n "(cached) " >&6 12516else 12517 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12518 # We make a subdir and do the tests there. Otherwise we can end up 12519 # making bogus files that we don't know about and never remove. For 12520 # instance it was reported that on HP-UX the gcc test will end up 12521 # making a dummy file named 'D' -- because '-MD' means "put the output 12522 # in D". 12523 rm -rf conftest.dir 12524 mkdir conftest.dir 12525 # Copy depcomp to subdir because otherwise we won't find it if we're 12526 # using a relative directory. 12527 cp "$am_depcomp" conftest.dir 12528 cd conftest.dir 12529 # We will build objects and dependencies in a subdirectory because 12530 # it helps to detect inapplicable dependency modes. For instance 12531 # both Tru64's cc and ICC support -MD to output dependencies as a 12532 # side effect of compilation, but ICC will put the dependencies in 12533 # the current directory while Tru64 will put them in the object 12534 # directory. 12535 mkdir sub 12536 12537 am_cv_CC_dependencies_compiler_type=none 12538 if test "$am_compiler_list" = ""; then 12539 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12540 fi 12541 am__universal=false 12542 case " $depcc " in #( 12543 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12544 esac 12545 12546 for depmode in $am_compiler_list; do 12547 # Setup a source with many dependencies, because some compilers 12548 # like to wrap large dependency lists on column 80 (with \), and 12549 # we should not choose a depcomp mode which is confused by this. 12550 # 12551 # We need to recreate these files for each test, as the compiler may 12552 # overwrite some of them when testing with obscure command lines. 12553 # This happens at least with the AIX C compiler. 12554 : > sub/conftest.c 12555 for i in 1 2 3 4 5 6; do 12556 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12557 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12558 # Solaris 10 /bin/sh. 12559 echo '/* dummy */' > sub/conftst$i.h 12560 done 12561 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12562 12563 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12564 # mode. It turns out that the SunPro C++ compiler does not properly 12565 # handle '-M -o', and we need to detect this. Also, some Intel 12566 # versions had trouble with output in subdirs. 12567 am__obj=sub/conftest.${OBJEXT-o} 12568 am__minus_obj="-o $am__obj" 12569 case $depmode in 12570 gcc) 12571 # This depmode causes a compiler race in universal mode. 12572 test "$am__universal" = false || continue 12573 ;; 12574 nosideeffect) 12575 # After this tag, mechanisms are not by side-effect, so they'll 12576 # only be used when explicitly requested. 12577 if test "x$enable_dependency_tracking" = xyes; then 12578 continue 12579 else 12580 break 12581 fi 12582 ;; 12583 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12584 # This compiler won't grok '-c -o', but also, the minuso test has 12585 # not run yet. These depmodes are late enough in the game, and 12586 # so weak that their functioning should not be impacted. 12587 am__obj=conftest.${OBJEXT-o} 12588 am__minus_obj= 12589 ;; 12590 none) break ;; 12591 esac 12592 if depmode=$depmode \ 12593 source=sub/conftest.c object=$am__obj \ 12594 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12595 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12596 >/dev/null 2>conftest.err && 12597 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12599 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12601 # icc doesn't choke on unknown options, it will just issue warnings 12602 # or remarks (even with -Werror). So we grep stderr for any message 12603 # that says an option was ignored or not supported. 12604 # When given -MP, icc 7.0 and 7.1 complain thusly: 12605 # icc: Command line warning: ignoring option '-M'; no argument required 12606 # The diagnosis changed in icc 8.0: 12607 # icc: Command line remark: option '-MP' not supported 12608 if (grep 'ignoring option' conftest.err || 12609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12610 am_cv_CC_dependencies_compiler_type=$depmode 12611 break 12612 fi 12613 fi 12614 done 12615 12616 cd .. 12617 rm -rf conftest.dir 12618else 12619 am_cv_CC_dependencies_compiler_type=none 12620fi 12621 12622fi 12623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12624$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12625CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12626 12627 if 12628 test "x$enable_dependency_tracking" != xno \ 12629 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12630 am__fastdepCC_TRUE= 12631 am__fastdepCC_FALSE='#' 12632else 12633 am__fastdepCC_TRUE='#' 12634 am__fastdepCC_FALSE= 12635fi 12636 12637 12638 12639 12640ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile mtdev.pc" 12641 12642cat >confcache <<\_ACEOF 12643# This file is a shell script that caches the results of configure 12644# tests run on this system so they can be shared between configure 12645# scripts and configure runs, see configure's option --config-cache. 12646# It is not useful on other systems. If it contains results you don't 12647# want to keep, you may remove or edit it. 12648# 12649# config.status only pays attention to the cache file if you give it 12650# the --recheck option to rerun configure. 12651# 12652# `ac_cv_env_foo' variables (set or unset) will be overridden when 12653# loading this file, other *unset* `ac_cv_foo' will be assigned the 12654# following values. 12655 12656_ACEOF 12657 12658# The following way of writing the cache mishandles newlines in values, 12659# but we know of no workaround that is simple, portable, and efficient. 12660# So, we kill variables containing newlines. 12661# Ultrix sh set writes to stderr and can't be redirected directly, 12662# and sets the high bit in the cache file unless we assign to the vars. 12663( 12664 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12665 eval ac_val=\$$ac_var 12666 case $ac_val in #( 12667 *${as_nl}*) 12668 case $ac_var in #( 12669 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12670$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12671 esac 12672 case $ac_var in #( 12673 _ | IFS | as_nl) ;; #( 12674 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12675 *) { eval $ac_var=; unset $ac_var;} ;; 12676 esac ;; 12677 esac 12678 done 12679 12680 (set) 2>&1 | 12681 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12682 *${as_nl}ac_space=\ *) 12683 # `set' does not quote correctly, so add quotes: double-quote 12684 # substitution turns \\\\ into \\, and sed turns \\ into \. 12685 sed -n \ 12686 "s/'/'\\\\''/g; 12687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12688 ;; #( 12689 *) 12690 # `set' quotes correctly as required by POSIX, so do not add quotes. 12691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12692 ;; 12693 esac | 12694 sort 12695) | 12696 sed ' 12697 /^ac_cv_env_/b end 12698 t clear 12699 :clear 12700 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12701 t end 12702 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12703 :end' >>confcache 12704if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12705 if test -w "$cache_file"; then 12706 if test "x$cache_file" != "x/dev/null"; then 12707 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12708$as_echo "$as_me: updating cache $cache_file" >&6;} 12709 if test ! -f "$cache_file" || test -h "$cache_file"; then 12710 cat confcache >"$cache_file" 12711 else 12712 case $cache_file in #( 12713 */* | ?:*) 12714 mv -f confcache "$cache_file"$$ && 12715 mv -f "$cache_file"$$ "$cache_file" ;; #( 12716 *) 12717 mv -f confcache "$cache_file" ;; 12718 esac 12719 fi 12720 fi 12721 else 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12723$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12724 fi 12725fi 12726rm -f confcache 12727 12728test "x$prefix" = xNONE && prefix=$ac_default_prefix 12729# Let make expand exec_prefix. 12730test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12731 12732DEFS=-DHAVE_CONFIG_H 12733 12734ac_libobjs= 12735ac_ltlibobjs= 12736U= 12737for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12738 # 1. Remove the extension, and $U if already installed. 12739 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12740 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12741 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12742 # will be set to the directory where LIBOBJS objects are built. 12743 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12744 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12745done 12746LIBOBJS=$ac_libobjs 12747 12748LTLIBOBJS=$ac_ltlibobjs 12749 12750 12751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12752$as_echo_n "checking that generated files are newer than configure... " >&6; } 12753 if test -n "$am_sleep_pid"; then 12754 # Hide warnings about reused PIDs. 12755 wait $am_sleep_pid 2>/dev/null 12756 fi 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12758$as_echo "done" >&6; } 12759 if test -n "$EXEEXT"; then 12760 am__EXEEXT_TRUE= 12761 am__EXEEXT_FALSE='#' 12762else 12763 am__EXEEXT_TRUE='#' 12764 am__EXEEXT_FALSE= 12765fi 12766 12767if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12768 as_fn_error $? "conditional \"AMDEP\" was never defined. 12769Usually this means the macro was only invoked conditionally." "$LINENO" 5 12770fi 12771if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12772 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12773Usually this means the macro was only invoked conditionally." "$LINENO" 5 12774fi 12775if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12776 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12777Usually this means the macro was only invoked conditionally." "$LINENO" 5 12778fi 12779 12780: "${CONFIG_STATUS=./config.status}" 12781ac_write_fail=0 12782ac_clean_files_save=$ac_clean_files 12783ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12784{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12785$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12786as_write_fail=0 12787cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12788#! $SHELL 12789# Generated by $as_me. 12790# Run this file to recreate the current configuration. 12791# Compiler output produced by configure, useful for debugging 12792# configure, is in config.log if it exists. 12793 12794debug=false 12795ac_cs_recheck=false 12796ac_cs_silent=false 12797 12798SHELL=\${CONFIG_SHELL-$SHELL} 12799export SHELL 12800_ASEOF 12801cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12802## -------------------- ## 12803## M4sh Initialization. ## 12804## -------------------- ## 12805 12806# Be more Bourne compatible 12807DUALCASE=1; export DUALCASE # for MKS sh 12808if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12809 emulate sh 12810 NULLCMD=: 12811 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12812 # is contrary to our usage. Disable this feature. 12813 alias -g '${1+"$@"}'='"$@"' 12814 setopt NO_GLOB_SUBST 12815else 12816 case `(set -o) 2>/dev/null` in #( 12817 *posix*) : 12818 set -o posix ;; #( 12819 *) : 12820 ;; 12821esac 12822fi 12823 12824 12825as_nl=' 12826' 12827export as_nl 12828# Printing a long string crashes Solaris 7 /usr/bin/printf. 12829as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12830as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12831as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12832# Prefer a ksh shell builtin over an external printf program on Solaris, 12833# but without wasting forks for bash or zsh. 12834if test -z "$BASH_VERSION$ZSH_VERSION" \ 12835 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12836 as_echo='print -r --' 12837 as_echo_n='print -rn --' 12838elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12839 as_echo='printf %s\n' 12840 as_echo_n='printf %s' 12841else 12842 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12843 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12844 as_echo_n='/usr/ucb/echo -n' 12845 else 12846 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12847 as_echo_n_body='eval 12848 arg=$1; 12849 case $arg in #( 12850 *"$as_nl"*) 12851 expr "X$arg" : "X\\(.*\\)$as_nl"; 12852 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12853 esac; 12854 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12855 ' 12856 export as_echo_n_body 12857 as_echo_n='sh -c $as_echo_n_body as_echo' 12858 fi 12859 export as_echo_body 12860 as_echo='sh -c $as_echo_body as_echo' 12861fi 12862 12863# The user is always right. 12864if test "${PATH_SEPARATOR+set}" != set; then 12865 PATH_SEPARATOR=: 12866 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12867 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12868 PATH_SEPARATOR=';' 12869 } 12870fi 12871 12872 12873# IFS 12874# We need space, tab and new line, in precisely that order. Quoting is 12875# there to prevent editors from complaining about space-tab. 12876# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12877# splitting by setting IFS to empty value.) 12878IFS=" "" $as_nl" 12879 12880# Find who we are. Look in the path if we contain no directory separator. 12881as_myself= 12882case $0 in #(( 12883 *[\\/]* ) as_myself=$0 ;; 12884 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12885for as_dir in $PATH 12886do 12887 IFS=$as_save_IFS 12888 test -z "$as_dir" && as_dir=. 12889 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12890 done 12891IFS=$as_save_IFS 12892 12893 ;; 12894esac 12895# We did not find ourselves, most probably we were run as `sh COMMAND' 12896# in which case we are not to be found in the path. 12897if test "x$as_myself" = x; then 12898 as_myself=$0 12899fi 12900if test ! -f "$as_myself"; then 12901 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12902 exit 1 12903fi 12904 12905# Unset variables that we do not need and which cause bugs (e.g. in 12906# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12907# suppresses any "Segmentation fault" message there. '((' could 12908# trigger a bug in pdksh 5.2.14. 12909for as_var in BASH_ENV ENV MAIL MAILPATH 12910do eval test x\${$as_var+set} = xset \ 12911 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12912done 12913PS1='$ ' 12914PS2='> ' 12915PS4='+ ' 12916 12917# NLS nuisances. 12918LC_ALL=C 12919export LC_ALL 12920LANGUAGE=C 12921export LANGUAGE 12922 12923# CDPATH. 12924(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12925 12926 12927# as_fn_error STATUS ERROR [LINENO LOG_FD] 12928# ---------------------------------------- 12929# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12930# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12931# script with STATUS, using 1 if that was 0. 12932as_fn_error () 12933{ 12934 as_status=$1; test $as_status -eq 0 && as_status=1 12935 if test "$4"; then 12936 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12937 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12938 fi 12939 $as_echo "$as_me: error: $2" >&2 12940 as_fn_exit $as_status 12941} # as_fn_error 12942 12943 12944# as_fn_set_status STATUS 12945# ----------------------- 12946# Set $? to STATUS, without forking. 12947as_fn_set_status () 12948{ 12949 return $1 12950} # as_fn_set_status 12951 12952# as_fn_exit STATUS 12953# ----------------- 12954# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12955as_fn_exit () 12956{ 12957 set +e 12958 as_fn_set_status $1 12959 exit $1 12960} # as_fn_exit 12961 12962# as_fn_unset VAR 12963# --------------- 12964# Portably unset VAR. 12965as_fn_unset () 12966{ 12967 { eval $1=; unset $1;} 12968} 12969as_unset=as_fn_unset 12970# as_fn_append VAR VALUE 12971# ---------------------- 12972# Append the text in VALUE to the end of the definition contained in VAR. Take 12973# advantage of any shell optimizations that allow amortized linear growth over 12974# repeated appends, instead of the typical quadratic growth present in naive 12975# implementations. 12976if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12977 eval 'as_fn_append () 12978 { 12979 eval $1+=\$2 12980 }' 12981else 12982 as_fn_append () 12983 { 12984 eval $1=\$$1\$2 12985 } 12986fi # as_fn_append 12987 12988# as_fn_arith ARG... 12989# ------------------ 12990# Perform arithmetic evaluation on the ARGs, and store the result in the 12991# global $as_val. Take advantage of shells that can avoid forks. The arguments 12992# must be portable across $(()) and expr. 12993if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12994 eval 'as_fn_arith () 12995 { 12996 as_val=$(( $* )) 12997 }' 12998else 12999 as_fn_arith () 13000 { 13001 as_val=`expr "$@" || test $? -eq 1` 13002 } 13003fi # as_fn_arith 13004 13005 13006if expr a : '\(a\)' >/dev/null 2>&1 && 13007 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13008 as_expr=expr 13009else 13010 as_expr=false 13011fi 13012 13013if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13014 as_basename=basename 13015else 13016 as_basename=false 13017fi 13018 13019if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13020 as_dirname=dirname 13021else 13022 as_dirname=false 13023fi 13024 13025as_me=`$as_basename -- "$0" || 13026$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13027 X"$0" : 'X\(//\)$' \| \ 13028 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13029$as_echo X/"$0" | 13030 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13031 s//\1/ 13032 q 13033 } 13034 /^X\/\(\/\/\)$/{ 13035 s//\1/ 13036 q 13037 } 13038 /^X\/\(\/\).*/{ 13039 s//\1/ 13040 q 13041 } 13042 s/.*/./; q'` 13043 13044# Avoid depending upon Character Ranges. 13045as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13046as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13047as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13048as_cr_digits='0123456789' 13049as_cr_alnum=$as_cr_Letters$as_cr_digits 13050 13051ECHO_C= ECHO_N= ECHO_T= 13052case `echo -n x` in #((((( 13053-n*) 13054 case `echo 'xy\c'` in 13055 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13056 xy) ECHO_C='\c';; 13057 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13058 ECHO_T=' ';; 13059 esac;; 13060*) 13061 ECHO_N='-n';; 13062esac 13063 13064rm -f conf$$ conf$$.exe conf$$.file 13065if test -d conf$$.dir; then 13066 rm -f conf$$.dir/conf$$.file 13067else 13068 rm -f conf$$.dir 13069 mkdir conf$$.dir 2>/dev/null 13070fi 13071if (echo >conf$$.file) 2>/dev/null; then 13072 if ln -s conf$$.file conf$$ 2>/dev/null; then 13073 as_ln_s='ln -s' 13074 # ... but there are two gotchas: 13075 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13076 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13077 # In both cases, we have to default to `cp -pR'. 13078 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13079 as_ln_s='cp -pR' 13080 elif ln conf$$.file conf$$ 2>/dev/null; then 13081 as_ln_s=ln 13082 else 13083 as_ln_s='cp -pR' 13084 fi 13085else 13086 as_ln_s='cp -pR' 13087fi 13088rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13089rmdir conf$$.dir 2>/dev/null 13090 13091 13092# as_fn_mkdir_p 13093# ------------- 13094# Create "$as_dir" as a directory, including parents if necessary. 13095as_fn_mkdir_p () 13096{ 13097 13098 case $as_dir in #( 13099 -*) as_dir=./$as_dir;; 13100 esac 13101 test -d "$as_dir" || eval $as_mkdir_p || { 13102 as_dirs= 13103 while :; do 13104 case $as_dir in #( 13105 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13106 *) as_qdir=$as_dir;; 13107 esac 13108 as_dirs="'$as_qdir' $as_dirs" 13109 as_dir=`$as_dirname -- "$as_dir" || 13110$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13111 X"$as_dir" : 'X\(//\)[^/]' \| \ 13112 X"$as_dir" : 'X\(//\)$' \| \ 13113 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13114$as_echo X"$as_dir" | 13115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13116 s//\1/ 13117 q 13118 } 13119 /^X\(\/\/\)[^/].*/{ 13120 s//\1/ 13121 q 13122 } 13123 /^X\(\/\/\)$/{ 13124 s//\1/ 13125 q 13126 } 13127 /^X\(\/\).*/{ 13128 s//\1/ 13129 q 13130 } 13131 s/.*/./; q'` 13132 test -d "$as_dir" && break 13133 done 13134 test -z "$as_dirs" || eval "mkdir $as_dirs" 13135 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13136 13137 13138} # as_fn_mkdir_p 13139if mkdir -p . 2>/dev/null; then 13140 as_mkdir_p='mkdir -p "$as_dir"' 13141else 13142 test -d ./-p && rmdir ./-p 13143 as_mkdir_p=false 13144fi 13145 13146 13147# as_fn_executable_p FILE 13148# ----------------------- 13149# Test if FILE is an executable regular file. 13150as_fn_executable_p () 13151{ 13152 test -f "$1" && test -x "$1" 13153} # as_fn_executable_p 13154as_test_x='test -x' 13155as_executable_p=as_fn_executable_p 13156 13157# Sed expression to map a string onto a valid CPP name. 13158as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13159 13160# Sed expression to map a string onto a valid variable name. 13161as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13162 13163 13164exec 6>&1 13165## ----------------------------------- ## 13166## Main body of $CONFIG_STATUS script. ## 13167## ----------------------------------- ## 13168_ASEOF 13169test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13170 13171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13172# Save the log message, to keep $0 and so on meaningful, and to 13173# report actual input values of CONFIG_FILES etc. instead of their 13174# values after options handling. 13175ac_log=" 13176This file was extended by Multitouch Protocol Translation Library $as_me 1.1.6, which was 13177generated by GNU Autoconf 2.69. Invocation command line was 13178 13179 CONFIG_FILES = $CONFIG_FILES 13180 CONFIG_HEADERS = $CONFIG_HEADERS 13181 CONFIG_LINKS = $CONFIG_LINKS 13182 CONFIG_COMMANDS = $CONFIG_COMMANDS 13183 $ $0 $@ 13184 13185on `(hostname || uname -n) 2>/dev/null | sed 1q` 13186" 13187 13188_ACEOF 13189 13190case $ac_config_files in *" 13191"*) set x $ac_config_files; shift; ac_config_files=$*;; 13192esac 13193 13194case $ac_config_headers in *" 13195"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13196esac 13197 13198 13199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13200# Files that config.status was made for. 13201config_files="$ac_config_files" 13202config_headers="$ac_config_headers" 13203config_commands="$ac_config_commands" 13204 13205_ACEOF 13206 13207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13208ac_cs_usage="\ 13209\`$as_me' instantiates files and other configuration actions 13210from templates according to the current configuration. Unless the files 13211and actions are specified as TAGs, all are instantiated by default. 13212 13213Usage: $0 [OPTION]... [TAG]... 13214 13215 -h, --help print this help, then exit 13216 -V, --version print version number and configuration settings, then exit 13217 --config print configuration, then exit 13218 -q, --quiet, --silent 13219 do not print progress messages 13220 -d, --debug don't remove temporary files 13221 --recheck update $as_me by reconfiguring in the same conditions 13222 --file=FILE[:TEMPLATE] 13223 instantiate the configuration file FILE 13224 --header=FILE[:TEMPLATE] 13225 instantiate the configuration header FILE 13226 13227Configuration files: 13228$config_files 13229 13230Configuration headers: 13231$config_headers 13232 13233Configuration commands: 13234$config_commands 13235 13236Report bugs to the package provider." 13237 13238_ACEOF 13239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13240ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13241ac_cs_version="\\ 13242Multitouch Protocol Translation Library config.status 1.1.6 13243configured by $0, generated by GNU Autoconf 2.69, 13244 with options \\"\$ac_cs_config\\" 13245 13246Copyright (C) 2012 Free Software Foundation, Inc. 13247This config.status script is free software; the Free Software Foundation 13248gives unlimited permission to copy, distribute and modify it." 13249 13250ac_pwd='$ac_pwd' 13251srcdir='$srcdir' 13252INSTALL='$INSTALL' 13253MKDIR_P='$MKDIR_P' 13254AWK='$AWK' 13255test -n "\$AWK" || AWK=awk 13256_ACEOF 13257 13258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13259# The default lists apply if the user does not specify any file. 13260ac_need_defaults=: 13261while test $# != 0 13262do 13263 case $1 in 13264 --*=?*) 13265 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13266 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13267 ac_shift=: 13268 ;; 13269 --*=) 13270 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13271 ac_optarg= 13272 ac_shift=: 13273 ;; 13274 *) 13275 ac_option=$1 13276 ac_optarg=$2 13277 ac_shift=shift 13278 ;; 13279 esac 13280 13281 case $ac_option in 13282 # Handling of the options. 13283 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13284 ac_cs_recheck=: ;; 13285 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13286 $as_echo "$ac_cs_version"; exit ;; 13287 --config | --confi | --conf | --con | --co | --c ) 13288 $as_echo "$ac_cs_config"; exit ;; 13289 --debug | --debu | --deb | --de | --d | -d ) 13290 debug=: ;; 13291 --file | --fil | --fi | --f ) 13292 $ac_shift 13293 case $ac_optarg in 13294 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13295 '') as_fn_error $? "missing file argument" ;; 13296 esac 13297 as_fn_append CONFIG_FILES " '$ac_optarg'" 13298 ac_need_defaults=false;; 13299 --header | --heade | --head | --hea ) 13300 $ac_shift 13301 case $ac_optarg in 13302 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13303 esac 13304 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13305 ac_need_defaults=false;; 13306 --he | --h) 13307 # Conflict between --help and --header 13308 as_fn_error $? "ambiguous option: \`$1' 13309Try \`$0 --help' for more information.";; 13310 --help | --hel | -h ) 13311 $as_echo "$ac_cs_usage"; exit ;; 13312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13313 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13314 ac_cs_silent=: ;; 13315 13316 # This is an error. 13317 -*) as_fn_error $? "unrecognized option: \`$1' 13318Try \`$0 --help' for more information." ;; 13319 13320 *) as_fn_append ac_config_targets " $1" 13321 ac_need_defaults=false ;; 13322 13323 esac 13324 shift 13325done 13326 13327ac_configure_extra_args= 13328 13329if $ac_cs_silent; then 13330 exec 6>/dev/null 13331 ac_configure_extra_args="$ac_configure_extra_args --silent" 13332fi 13333 13334_ACEOF 13335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13336if \$ac_cs_recheck; then 13337 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13338 shift 13339 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13340 CONFIG_SHELL='$SHELL' 13341 export CONFIG_SHELL 13342 exec "\$@" 13343fi 13344 13345_ACEOF 13346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13347exec 5>>config.log 13348{ 13349 echo 13350 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13351## Running $as_me. ## 13352_ASBOX 13353 $as_echo "$ac_log" 13354} >&5 13355 13356_ACEOF 13357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13358# 13359# INIT-COMMANDS 13360# 13361AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13362 13363 13364# The HP-UX ksh and POSIX shell print the target directory to stdout 13365# if CDPATH is set. 13366(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13367 13368sed_quote_subst='$sed_quote_subst' 13369double_quote_subst='$double_quote_subst' 13370delay_variable_subst='$delay_variable_subst' 13371macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13372macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13373enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13374enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13375pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13376enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13377shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13378SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13379ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13380PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13381host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13382host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13383host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13384build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13385build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13386build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13387SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13388Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13389GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13390EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13391FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13392LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13393NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13394LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13395max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13396ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13397exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13398lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13399lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13400lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13401lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13402lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13403reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13404reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13405OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13406deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13407file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13408file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13409want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13410DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13411sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13412AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13413lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 13414AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13415archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13416STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13417RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13418old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13419old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13420old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13421lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13422CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13423CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13424compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13425GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13426lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13427lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13428lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13429lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13430lt_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"`' 13431lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13432nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13433lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13434lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13435objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13436MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13437lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13438lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13439lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13440lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13441lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13442need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13443MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13444DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13445NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13446LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13447OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13448OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13449libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13450shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13451extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13452archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13453enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13454export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13455whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13456compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13457old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13458old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13459archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13460archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13461module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13462module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13463with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13464allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13465no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13466hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13467hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13468hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13469hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13470hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13471hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13472hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13473inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13474link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13475always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13476export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13477exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13478include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13479prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13480postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13481file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13482variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13483need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13484need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13485version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13486runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13487shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13488shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13489libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13490library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13491soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13492install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13493postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13494postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13495finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13496finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13497hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13498sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13499configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13500configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13501hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13502enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13503enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13504enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13505old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13506striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13507 13508LTCC='$LTCC' 13509LTCFLAGS='$LTCFLAGS' 13510compiler='$compiler_DEFAULT' 13511 13512# A function that is used when there is no print builtin or printf. 13513func_fallback_echo () 13514{ 13515 eval 'cat <<_LTECHO_EOF 13516\$1 13517_LTECHO_EOF' 13518} 13519 13520# Quote evaled strings. 13521for var in SHELL \ 13522ECHO \ 13523PATH_SEPARATOR \ 13524SED \ 13525GREP \ 13526EGREP \ 13527FGREP \ 13528LD \ 13529NM \ 13530LN_S \ 13531lt_SP2NL \ 13532lt_NL2SP \ 13533reload_flag \ 13534OBJDUMP \ 13535deplibs_check_method \ 13536file_magic_cmd \ 13537file_magic_glob \ 13538want_nocaseglob \ 13539DLLTOOL \ 13540sharedlib_from_linklib_cmd \ 13541AR \ 13542archiver_list_spec \ 13543STRIP \ 13544RANLIB \ 13545CC \ 13546CFLAGS \ 13547compiler \ 13548lt_cv_sys_global_symbol_pipe \ 13549lt_cv_sys_global_symbol_to_cdecl \ 13550lt_cv_sys_global_symbol_to_import \ 13551lt_cv_sys_global_symbol_to_c_name_address \ 13552lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13553lt_cv_nm_interface \ 13554nm_file_list_spec \ 13555lt_cv_truncate_bin \ 13556lt_prog_compiler_no_builtin_flag \ 13557lt_prog_compiler_pic \ 13558lt_prog_compiler_wl \ 13559lt_prog_compiler_static \ 13560lt_cv_prog_compiler_c_o \ 13561need_locks \ 13562MANIFEST_TOOL \ 13563DSYMUTIL \ 13564NMEDIT \ 13565LIPO \ 13566OTOOL \ 13567OTOOL64 \ 13568shrext_cmds \ 13569export_dynamic_flag_spec \ 13570whole_archive_flag_spec \ 13571compiler_needs_object \ 13572with_gnu_ld \ 13573allow_undefined_flag \ 13574no_undefined_flag \ 13575hardcode_libdir_flag_spec \ 13576hardcode_libdir_separator \ 13577exclude_expsyms \ 13578include_expsyms \ 13579file_list_spec \ 13580variables_saved_for_relink \ 13581libname_spec \ 13582library_names_spec \ 13583soname_spec \ 13584install_override_mode \ 13585finish_eval \ 13586old_striplib \ 13587striplib; do 13588 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13589 *[\\\\\\\`\\"\\\$]*) 13590 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13591 ;; 13592 *) 13593 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13594 ;; 13595 esac 13596done 13597 13598# Double-quote double-evaled strings. 13599for var in reload_cmds \ 13600old_postinstall_cmds \ 13601old_postuninstall_cmds \ 13602old_archive_cmds \ 13603extract_expsyms_cmds \ 13604old_archive_from_new_cmds \ 13605old_archive_from_expsyms_cmds \ 13606archive_cmds \ 13607archive_expsym_cmds \ 13608module_cmds \ 13609module_expsym_cmds \ 13610export_symbols_cmds \ 13611prelink_cmds \ 13612postlink_cmds \ 13613postinstall_cmds \ 13614postuninstall_cmds \ 13615finish_cmds \ 13616sys_lib_search_path_spec \ 13617configure_time_dlsearch_path \ 13618configure_time_lt_sys_library_path; do 13619 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13620 *[\\\\\\\`\\"\\\$]*) 13621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13622 ;; 13623 *) 13624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13625 ;; 13626 esac 13627done 13628 13629ac_aux_dir='$ac_aux_dir' 13630 13631# See if we are running on zsh, and set the options that allow our 13632# commands through without removal of \ escapes INIT. 13633if test -n "\${ZSH_VERSION+set}"; then 13634 setopt NO_GLOB_SUBST 13635fi 13636 13637 13638 PACKAGE='$PACKAGE' 13639 VERSION='$VERSION' 13640 RM='$RM' 13641 ofile='$ofile' 13642 13643 13644 13645 13646_ACEOF 13647 13648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13649 13650# Handling of arguments. 13651for ac_config_target in $ac_config_targets 13652do 13653 case $ac_config_target in 13654 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13655 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13656 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13657 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13658 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13659 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 13660 "mtdev.pc") CONFIG_FILES="$CONFIG_FILES mtdev.pc" ;; 13661 13662 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13663 esac 13664done 13665 13666 13667# If the user did not use the arguments to specify the items to instantiate, 13668# then the envvar interface is used. Set only those that are not. 13669# We use the long form for the default assignment because of an extremely 13670# bizarre bug on SunOS 4.1.3. 13671if $ac_need_defaults; then 13672 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13673 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13674 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13675fi 13676 13677# Have a temporary directory for convenience. Make it in the build tree 13678# simply because there is no reason against having it here, and in addition, 13679# creating and moving files from /tmp can sometimes cause problems. 13680# Hook for its removal unless debugging. 13681# Note that there is a small window in which the directory will not be cleaned: 13682# after its creation but before its name has been assigned to `$tmp'. 13683$debug || 13684{ 13685 tmp= ac_tmp= 13686 trap 'exit_status=$? 13687 : "${ac_tmp:=$tmp}" 13688 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13689' 0 13690 trap 'as_fn_exit 1' 1 2 13 15 13691} 13692# Create a (secure) tmp directory for tmp files. 13693 13694{ 13695 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13696 test -d "$tmp" 13697} || 13698{ 13699 tmp=./conf$$-$RANDOM 13700 (umask 077 && mkdir "$tmp") 13701} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13702ac_tmp=$tmp 13703 13704# Set up the scripts for CONFIG_FILES section. 13705# No need to generate them if there are no CONFIG_FILES. 13706# This happens for instance with `./config.status config.h'. 13707if test -n "$CONFIG_FILES"; then 13708 13709 13710ac_cr=`echo X | tr X '\015'` 13711# On cygwin, bash can eat \r inside `` if the user requested igncr. 13712# But we know of no other shell where ac_cr would be empty at this 13713# point, so we can use a bashism as a fallback. 13714if test "x$ac_cr" = x; then 13715 eval ac_cr=\$\'\\r\' 13716fi 13717ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13718if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13719 ac_cs_awk_cr='\\r' 13720else 13721 ac_cs_awk_cr=$ac_cr 13722fi 13723 13724echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13725_ACEOF 13726 13727 13728{ 13729 echo "cat >conf$$subs.awk <<_ACEOF" && 13730 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13731 echo "_ACEOF" 13732} >conf$$subs.sh || 13733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13734ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13735ac_delim='%!_!# ' 13736for ac_last_try in false false false false false :; do 13737 . ./conf$$subs.sh || 13738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13739 13740 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13741 if test $ac_delim_n = $ac_delim_num; then 13742 break 13743 elif $ac_last_try; then 13744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13745 else 13746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13747 fi 13748done 13749rm -f conf$$subs.sh 13750 13751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13752cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13753_ACEOF 13754sed -n ' 13755h 13756s/^/S["/; s/!.*/"]=/ 13757p 13758g 13759s/^[^!]*!// 13760:repl 13761t repl 13762s/'"$ac_delim"'$// 13763t delim 13764:nl 13765h 13766s/\(.\{148\}\)..*/\1/ 13767t more1 13768s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13769p 13770n 13771b repl 13772:more1 13773s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13774p 13775g 13776s/.\{148\}// 13777t nl 13778:delim 13779h 13780s/\(.\{148\}\)..*/\1/ 13781t more2 13782s/["\\]/\\&/g; s/^/"/; s/$/"/ 13783p 13784b 13785:more2 13786s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13787p 13788g 13789s/.\{148\}// 13790t delim 13791' <conf$$subs.awk | sed ' 13792/^[^""]/{ 13793 N 13794 s/\n// 13795} 13796' >>$CONFIG_STATUS || ac_write_fail=1 13797rm -f conf$$subs.awk 13798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13799_ACAWK 13800cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13801 for (key in S) S_is_set[key] = 1 13802 FS = "" 13803 13804} 13805{ 13806 line = $ 0 13807 nfields = split(line, field, "@") 13808 substed = 0 13809 len = length(field[1]) 13810 for (i = 2; i < nfields; i++) { 13811 key = field[i] 13812 keylen = length(key) 13813 if (S_is_set[key]) { 13814 value = S[key] 13815 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13816 len += length(value) + length(field[++i]) 13817 substed = 1 13818 } else 13819 len += 1 + keylen 13820 } 13821 13822 print line 13823} 13824 13825_ACAWK 13826_ACEOF 13827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13828if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13829 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13830else 13831 cat 13832fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13833 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13834_ACEOF 13835 13836# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13837# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13838# trailing colons and then remove the whole line if VPATH becomes empty 13839# (actually we leave an empty line to preserve line numbers). 13840if test "x$srcdir" = x.; then 13841 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13842h 13843s/// 13844s/^/:/ 13845s/[ ]*$/:/ 13846s/:\$(srcdir):/:/g 13847s/:\${srcdir}:/:/g 13848s/:@srcdir@:/:/g 13849s/^:*// 13850s/:*$// 13851x 13852s/\(=[ ]*\).*/\1/ 13853G 13854s/\n// 13855s/^[^=]*=[ ]*$// 13856}' 13857fi 13858 13859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13860fi # test -n "$CONFIG_FILES" 13861 13862# Set up the scripts for CONFIG_HEADERS section. 13863# No need to generate them if there are no CONFIG_HEADERS. 13864# This happens for instance with `./config.status Makefile'. 13865if test -n "$CONFIG_HEADERS"; then 13866cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13867BEGIN { 13868_ACEOF 13869 13870# Transform confdefs.h into an awk script `defines.awk', embedded as 13871# here-document in config.status, that substitutes the proper values into 13872# config.h.in to produce config.h. 13873 13874# Create a delimiter string that does not exist in confdefs.h, to ease 13875# handling of long lines. 13876ac_delim='%!_!# ' 13877for ac_last_try in false false :; do 13878 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13879 if test -z "$ac_tt"; then 13880 break 13881 elif $ac_last_try; then 13882 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13883 else 13884 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13885 fi 13886done 13887 13888# For the awk script, D is an array of macro values keyed by name, 13889# likewise P contains macro parameters if any. Preserve backslash 13890# newline sequences. 13891 13892ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13893sed -n ' 13894s/.\{148\}/&'"$ac_delim"'/g 13895t rset 13896:rset 13897s/^[ ]*#[ ]*define[ ][ ]*/ / 13898t def 13899d 13900:def 13901s/\\$// 13902t bsnl 13903s/["\\]/\\&/g 13904s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13905D["\1"]=" \3"/p 13906s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13907d 13908:bsnl 13909s/["\\]/\\&/g 13910s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13911D["\1"]=" \3\\\\\\n"\\/p 13912t cont 13913s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13914t cont 13915d 13916:cont 13917n 13918s/.\{148\}/&'"$ac_delim"'/g 13919t clear 13920:clear 13921s/\\$// 13922t bsnlc 13923s/["\\]/\\&/g; s/^/"/; s/$/"/p 13924d 13925:bsnlc 13926s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13927b cont 13928' <confdefs.h | sed ' 13929s/'"$ac_delim"'/"\\\ 13930"/g' >>$CONFIG_STATUS || ac_write_fail=1 13931 13932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13933 for (key in D) D_is_set[key] = 1 13934 FS = "" 13935} 13936/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13937 line = \$ 0 13938 split(line, arg, " ") 13939 if (arg[1] == "#") { 13940 defundef = arg[2] 13941 mac1 = arg[3] 13942 } else { 13943 defundef = substr(arg[1], 2) 13944 mac1 = arg[2] 13945 } 13946 split(mac1, mac2, "(") #) 13947 macro = mac2[1] 13948 prefix = substr(line, 1, index(line, defundef) - 1) 13949 if (D_is_set[macro]) { 13950 # Preserve the white space surrounding the "#". 13951 print prefix "define", macro P[macro] D[macro] 13952 next 13953 } else { 13954 # Replace #undef with comments. This is necessary, for example, 13955 # in the case of _POSIX_SOURCE, which is predefined and required 13956 # on some systems where configure will not decide to define it. 13957 if (defundef == "undef") { 13958 print "/*", prefix defundef, macro, "*/" 13959 next 13960 } 13961 } 13962} 13963{ print } 13964_ACAWK 13965_ACEOF 13966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13967 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13968fi # test -n "$CONFIG_HEADERS" 13969 13970 13971eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13972shift 13973for ac_tag 13974do 13975 case $ac_tag in 13976 :[FHLC]) ac_mode=$ac_tag; continue;; 13977 esac 13978 case $ac_mode$ac_tag in 13979 :[FHL]*:*);; 13980 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13981 :[FH]-) ac_tag=-:-;; 13982 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13983 esac 13984 ac_save_IFS=$IFS 13985 IFS=: 13986 set x $ac_tag 13987 IFS=$ac_save_IFS 13988 shift 13989 ac_file=$1 13990 shift 13991 13992 case $ac_mode in 13993 :L) ac_source=$1;; 13994 :[FH]) 13995 ac_file_inputs= 13996 for ac_f 13997 do 13998 case $ac_f in 13999 -) ac_f="$ac_tmp/stdin";; 14000 *) # Look for the file first in the build tree, then in the source tree 14001 # (if the path is not absolute). The absolute path cannot be DOS-style, 14002 # because $ac_f cannot contain `:'. 14003 test -f "$ac_f" || 14004 case $ac_f in 14005 [\\/$]*) false;; 14006 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14007 esac || 14008 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14009 esac 14010 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14011 as_fn_append ac_file_inputs " '$ac_f'" 14012 done 14013 14014 # Let's still pretend it is `configure' which instantiates (i.e., don't 14015 # use $as_me), people would be surprised to read: 14016 # /* config.h. Generated by config.status. */ 14017 configure_input='Generated from '` 14018 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14019 `' by configure.' 14020 if test x"$ac_file" != x-; then 14021 configure_input="$ac_file. $configure_input" 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14023$as_echo "$as_me: creating $ac_file" >&6;} 14024 fi 14025 # Neutralize special characters interpreted by sed in replacement strings. 14026 case $configure_input in #( 14027 *\&* | *\|* | *\\* ) 14028 ac_sed_conf_input=`$as_echo "$configure_input" | 14029 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14030 *) ac_sed_conf_input=$configure_input;; 14031 esac 14032 14033 case $ac_tag in 14034 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14036 esac 14037 ;; 14038 esac 14039 14040 ac_dir=`$as_dirname -- "$ac_file" || 14041$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14042 X"$ac_file" : 'X\(//\)[^/]' \| \ 14043 X"$ac_file" : 'X\(//\)$' \| \ 14044 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14045$as_echo X"$ac_file" | 14046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14047 s//\1/ 14048 q 14049 } 14050 /^X\(\/\/\)[^/].*/{ 14051 s//\1/ 14052 q 14053 } 14054 /^X\(\/\/\)$/{ 14055 s//\1/ 14056 q 14057 } 14058 /^X\(\/\).*/{ 14059 s//\1/ 14060 q 14061 } 14062 s/.*/./; q'` 14063 as_dir="$ac_dir"; as_fn_mkdir_p 14064 ac_builddir=. 14065 14066case "$ac_dir" in 14067.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14068*) 14069 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14070 # A ".." for each directory in $ac_dir_suffix. 14071 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14072 case $ac_top_builddir_sub in 14073 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14074 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14075 esac ;; 14076esac 14077ac_abs_top_builddir=$ac_pwd 14078ac_abs_builddir=$ac_pwd$ac_dir_suffix 14079# for backward compatibility: 14080ac_top_builddir=$ac_top_build_prefix 14081 14082case $srcdir in 14083 .) # We are building in place. 14084 ac_srcdir=. 14085 ac_top_srcdir=$ac_top_builddir_sub 14086 ac_abs_top_srcdir=$ac_pwd ;; 14087 [\\/]* | ?:[\\/]* ) # Absolute name. 14088 ac_srcdir=$srcdir$ac_dir_suffix; 14089 ac_top_srcdir=$srcdir 14090 ac_abs_top_srcdir=$srcdir ;; 14091 *) # Relative name. 14092 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14093 ac_top_srcdir=$ac_top_build_prefix$srcdir 14094 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14095esac 14096ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14097 14098 14099 case $ac_mode in 14100 :F) 14101 # 14102 # CONFIG_FILE 14103 # 14104 14105 case $INSTALL in 14106 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14107 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14108 esac 14109 ac_MKDIR_P=$MKDIR_P 14110 case $MKDIR_P in 14111 [\\/$]* | ?:[\\/]* ) ;; 14112 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14113 esac 14114_ACEOF 14115 14116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14117# If the template does not know about datarootdir, expand it. 14118# FIXME: This hack should be removed a few years after 2.60. 14119ac_datarootdir_hack=; ac_datarootdir_seen= 14120ac_sed_dataroot=' 14121/datarootdir/ { 14122 p 14123 q 14124} 14125/@datadir@/p 14126/@docdir@/p 14127/@infodir@/p 14128/@localedir@/p 14129/@mandir@/p' 14130case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14131*datarootdir*) ac_datarootdir_seen=yes;; 14132*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14134$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14135_ACEOF 14136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14137 ac_datarootdir_hack=' 14138 s&@datadir@&$datadir&g 14139 s&@docdir@&$docdir&g 14140 s&@infodir@&$infodir&g 14141 s&@localedir@&$localedir&g 14142 s&@mandir@&$mandir&g 14143 s&\\\${datarootdir}&$datarootdir&g' ;; 14144esac 14145_ACEOF 14146 14147# Neutralize VPATH when `$srcdir' = `.'. 14148# Shell code in configure.ac might set extrasub. 14149# FIXME: do we really want to maintain this feature? 14150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14151ac_sed_extra="$ac_vpsub 14152$extrasub 14153_ACEOF 14154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14155:t 14156/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14157s|@configure_input@|$ac_sed_conf_input|;t t 14158s&@top_builddir@&$ac_top_builddir_sub&;t t 14159s&@top_build_prefix@&$ac_top_build_prefix&;t t 14160s&@srcdir@&$ac_srcdir&;t t 14161s&@abs_srcdir@&$ac_abs_srcdir&;t t 14162s&@top_srcdir@&$ac_top_srcdir&;t t 14163s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14164s&@builddir@&$ac_builddir&;t t 14165s&@abs_builddir@&$ac_abs_builddir&;t t 14166s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14167s&@INSTALL@&$ac_INSTALL&;t t 14168s&@MKDIR_P@&$ac_MKDIR_P&;t t 14169$ac_datarootdir_hack 14170" 14171eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14172 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14173 14174test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14175 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14176 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14177 "$ac_tmp/out"`; test -z "$ac_out"; } && 14178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14179which seems to be undefined. Please make sure it is defined" >&5 14180$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14181which seems to be undefined. Please make sure it is defined" >&2;} 14182 14183 rm -f "$ac_tmp/stdin" 14184 case $ac_file in 14185 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14186 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14187 esac \ 14188 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14189 ;; 14190 :H) 14191 # 14192 # CONFIG_HEADER 14193 # 14194 if test x"$ac_file" != x-; then 14195 { 14196 $as_echo "/* $configure_input */" \ 14197 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14198 } >"$ac_tmp/config.h" \ 14199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14200 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14201 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14202$as_echo "$as_me: $ac_file is unchanged" >&6;} 14203 else 14204 rm -f "$ac_file" 14205 mv "$ac_tmp/config.h" "$ac_file" \ 14206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14207 fi 14208 else 14209 $as_echo "/* $configure_input */" \ 14210 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14211 || as_fn_error $? "could not create -" "$LINENO" 5 14212 fi 14213# Compute "$ac_file"'s index in $config_headers. 14214_am_arg="$ac_file" 14215_am_stamp_count=1 14216for _am_header in $config_headers :; do 14217 case $_am_header in 14218 $_am_arg | $_am_arg:* ) 14219 break ;; 14220 * ) 14221 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14222 esac 14223done 14224echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14225$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14226 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14227 X"$_am_arg" : 'X\(//\)$' \| \ 14228 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14229$as_echo X"$_am_arg" | 14230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14231 s//\1/ 14232 q 14233 } 14234 /^X\(\/\/\)[^/].*/{ 14235 s//\1/ 14236 q 14237 } 14238 /^X\(\/\/\)$/{ 14239 s//\1/ 14240 q 14241 } 14242 /^X\(\/\).*/{ 14243 s//\1/ 14244 q 14245 } 14246 s/.*/./; q'`/stamp-h$_am_stamp_count 14247 ;; 14248 14249 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14250$as_echo "$as_me: executing $ac_file commands" >&6;} 14251 ;; 14252 esac 14253 14254 14255 case $ac_file$ac_mode in 14256 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14257 # Older Autoconf quotes --file arguments for eval, but not when files 14258 # are listed without --file. Let's play safe and only enable the eval 14259 # if we detect the quoting. 14260 # TODO: see whether this extra hack can be removed once we start 14261 # requiring Autoconf 2.70 or later. 14262 case $CONFIG_FILES in #( 14263 *\'*) : 14264 eval set x "$CONFIG_FILES" ;; #( 14265 *) : 14266 set x $CONFIG_FILES ;; #( 14267 *) : 14268 ;; 14269esac 14270 shift 14271 # Used to flag and report bootstrapping failures. 14272 am_rc=0 14273 for am_mf 14274 do 14275 # Strip MF so we end up with the name of the file. 14276 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14277 # Check whether this is an Automake generated Makefile which includes 14278 # dependency-tracking related rules and includes. 14279 # Grep'ing the whole file directly is not great: AIX grep has a line 14280 # limit of 2048, but all sed's we know have understand at least 4000. 14281 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14282 || continue 14283 am_dirpart=`$as_dirname -- "$am_mf" || 14284$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14285 X"$am_mf" : 'X\(//\)[^/]' \| \ 14286 X"$am_mf" : 'X\(//\)$' \| \ 14287 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14288$as_echo X"$am_mf" | 14289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14290 s//\1/ 14291 q 14292 } 14293 /^X\(\/\/\)[^/].*/{ 14294 s//\1/ 14295 q 14296 } 14297 /^X\(\/\/\)$/{ 14298 s//\1/ 14299 q 14300 } 14301 /^X\(\/\).*/{ 14302 s//\1/ 14303 q 14304 } 14305 s/.*/./; q'` 14306 am_filepart=`$as_basename -- "$am_mf" || 14307$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14308 X"$am_mf" : 'X\(//\)$' \| \ 14309 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14310$as_echo X/"$am_mf" | 14311 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14312 s//\1/ 14313 q 14314 } 14315 /^X\/\(\/\/\)$/{ 14316 s//\1/ 14317 q 14318 } 14319 /^X\/\(\/\).*/{ 14320 s//\1/ 14321 q 14322 } 14323 s/.*/./; q'` 14324 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14325 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14326 | $MAKE -f - am--depfiles" >&5 14327 (cd "$am_dirpart" \ 14328 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14329 | $MAKE -f - am--depfiles) >&5 2>&5 14330 ac_status=$? 14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14332 (exit $ac_status); } || am_rc=$? 14333 done 14334 if test $am_rc -ne 0; then 14335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14337as_fn_error $? "Something went wrong bootstrapping makefile fragments 14338 for automatic dependency tracking. Try re-running configure with the 14339 '--disable-dependency-tracking' option to at least be able to build 14340 the package (albeit without support for automatic dependency tracking). 14341See \`config.log' for more details" "$LINENO" 5; } 14342 fi 14343 { am_dirpart=; unset am_dirpart;} 14344 { am_filepart=; unset am_filepart;} 14345 { am_mf=; unset am_mf;} 14346 { am_rc=; unset am_rc;} 14347 rm -f conftest-deps.mk 14348} 14349 ;; 14350 "libtool":C) 14351 14352 # See if we are running on zsh, and set the options that allow our 14353 # commands through without removal of \ escapes. 14354 if test -n "${ZSH_VERSION+set}"; then 14355 setopt NO_GLOB_SUBST 14356 fi 14357 14358 cfgfile=${ofile}T 14359 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14360 $RM "$cfgfile" 14361 14362 cat <<_LT_EOF >> "$cfgfile" 14363#! $SHELL 14364# Generated automatically by $as_me ($PACKAGE) $VERSION 14365# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14366 14367# Provide generalized library-building support services. 14368# Written by Gordon Matzigkeit, 1996 14369 14370# Copyright (C) 2014 Free Software Foundation, Inc. 14371# This is free software; see the source for copying conditions. There is NO 14372# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14373 14374# GNU Libtool is free software; you can redistribute it and/or modify 14375# it under the terms of the GNU General Public License as published by 14376# the Free Software Foundation; either version 2 of of the License, or 14377# (at your option) any later version. 14378# 14379# As a special exception to the GNU General Public License, if you 14380# distribute this file as part of a program or library that is built 14381# using GNU Libtool, you may include this file under the same 14382# distribution terms that you use for the rest of that program. 14383# 14384# GNU Libtool is distributed in the hope that it will be useful, but 14385# WITHOUT ANY WARRANTY; without even the implied warranty of 14386# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14387# GNU General Public License for more details. 14388# 14389# You should have received a copy of the GNU General Public License 14390# along with this program. If not, see <http://www.gnu.org/licenses/>. 14391 14392 14393# The names of the tagged configurations supported by this script. 14394available_tags='' 14395 14396# Configured defaults for sys_lib_dlsearch_path munging. 14397: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14398 14399# ### BEGIN LIBTOOL CONFIG 14400 14401# Which release of libtool.m4 was used? 14402macro_version=$macro_version 14403macro_revision=$macro_revision 14404 14405# Whether or not to build shared libraries. 14406build_libtool_libs=$enable_shared 14407 14408# Whether or not to build static libraries. 14409build_old_libs=$enable_static 14410 14411# What type of objects to build. 14412pic_mode=$pic_mode 14413 14414# Whether or not to optimize for fast installation. 14415fast_install=$enable_fast_install 14416 14417# Shared archive member basename,for filename based shared library versioning on AIX. 14418shared_archive_member_spec=$shared_archive_member_spec 14419 14420# Shell to use when invoking shell scripts. 14421SHELL=$lt_SHELL 14422 14423# An echo program that protects backslashes. 14424ECHO=$lt_ECHO 14425 14426# The PATH separator for the build system. 14427PATH_SEPARATOR=$lt_PATH_SEPARATOR 14428 14429# The host system. 14430host_alias=$host_alias 14431host=$host 14432host_os=$host_os 14433 14434# The build system. 14435build_alias=$build_alias 14436build=$build 14437build_os=$build_os 14438 14439# A sed program that does not truncate output. 14440SED=$lt_SED 14441 14442# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14443Xsed="\$SED -e 1s/^X//" 14444 14445# A grep program that handles long lines. 14446GREP=$lt_GREP 14447 14448# An ERE matcher. 14449EGREP=$lt_EGREP 14450 14451# A literal string matcher. 14452FGREP=$lt_FGREP 14453 14454# A BSD- or MS-compatible name lister. 14455NM=$lt_NM 14456 14457# Whether we need soft or hard links. 14458LN_S=$lt_LN_S 14459 14460# What is the maximum length of a command? 14461max_cmd_len=$max_cmd_len 14462 14463# Object file suffix (normally "o"). 14464objext=$ac_objext 14465 14466# Executable file suffix (normally ""). 14467exeext=$exeext 14468 14469# whether the shell understands "unset". 14470lt_unset=$lt_unset 14471 14472# turn spaces into newlines. 14473SP2NL=$lt_lt_SP2NL 14474 14475# turn newlines into spaces. 14476NL2SP=$lt_lt_NL2SP 14477 14478# convert \$build file names to \$host format. 14479to_host_file_cmd=$lt_cv_to_host_file_cmd 14480 14481# convert \$build files to toolchain format. 14482to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14483 14484# An object symbol dumper. 14485OBJDUMP=$lt_OBJDUMP 14486 14487# Method to check whether dependent libraries are shared objects. 14488deplibs_check_method=$lt_deplibs_check_method 14489 14490# Command to use when deplibs_check_method = "file_magic". 14491file_magic_cmd=$lt_file_magic_cmd 14492 14493# How to find potential files when deplibs_check_method = "file_magic". 14494file_magic_glob=$lt_file_magic_glob 14495 14496# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14497want_nocaseglob=$lt_want_nocaseglob 14498 14499# DLL creation program. 14500DLLTOOL=$lt_DLLTOOL 14501 14502# Command to associate shared and link libraries. 14503sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14504 14505# The archiver. 14506AR=$lt_AR 14507 14508# Flags to create an archive (by configure). 14509lt_ar_flags=$lt_ar_flags 14510 14511# Flags to create an archive. 14512AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 14513 14514# How to feed a file listing to the archiver. 14515archiver_list_spec=$lt_archiver_list_spec 14516 14517# A symbol stripping program. 14518STRIP=$lt_STRIP 14519 14520# Commands used to install an old-style archive. 14521RANLIB=$lt_RANLIB 14522old_postinstall_cmds=$lt_old_postinstall_cmds 14523old_postuninstall_cmds=$lt_old_postuninstall_cmds 14524 14525# Whether to use a lock for old archive extraction. 14526lock_old_archive_extraction=$lock_old_archive_extraction 14527 14528# A C compiler. 14529LTCC=$lt_CC 14530 14531# LTCC compiler flags. 14532LTCFLAGS=$lt_CFLAGS 14533 14534# Take the output of nm and produce a listing of raw symbols and C names. 14535global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14536 14537# Transform the output of nm in a proper C declaration. 14538global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14539 14540# Transform the output of nm into a list of symbols to manually relocate. 14541global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14542 14543# Transform the output of nm in a C name address pair. 14544global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14545 14546# Transform the output of nm in a C name address pair when lib prefix is needed. 14547global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14548 14549# The name lister interface. 14550nm_interface=$lt_lt_cv_nm_interface 14551 14552# Specify filename containing input files for \$NM. 14553nm_file_list_spec=$lt_nm_file_list_spec 14554 14555# The root where to search for dependent libraries,and where our libraries should be installed. 14556lt_sysroot=$lt_sysroot 14557 14558# Command to truncate a binary pipe. 14559lt_truncate_bin=$lt_lt_cv_truncate_bin 14560 14561# The name of the directory that contains temporary libtool files. 14562objdir=$objdir 14563 14564# Used to examine libraries when file_magic_cmd begins with "file". 14565MAGIC_CMD=$MAGIC_CMD 14566 14567# Must we lock files when doing compilation? 14568need_locks=$lt_need_locks 14569 14570# Manifest tool. 14571MANIFEST_TOOL=$lt_MANIFEST_TOOL 14572 14573# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14574DSYMUTIL=$lt_DSYMUTIL 14575 14576# Tool to change global to local symbols on Mac OS X. 14577NMEDIT=$lt_NMEDIT 14578 14579# Tool to manipulate fat objects and archives on Mac OS X. 14580LIPO=$lt_LIPO 14581 14582# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14583OTOOL=$lt_OTOOL 14584 14585# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14586OTOOL64=$lt_OTOOL64 14587 14588# Old archive suffix (normally "a"). 14589libext=$libext 14590 14591# Shared library suffix (normally ".so"). 14592shrext_cmds=$lt_shrext_cmds 14593 14594# The commands to extract the exported symbol list from a shared archive. 14595extract_expsyms_cmds=$lt_extract_expsyms_cmds 14596 14597# Variables whose values should be saved in libtool wrapper scripts and 14598# restored at link time. 14599variables_saved_for_relink=$lt_variables_saved_for_relink 14600 14601# Do we need the "lib" prefix for modules? 14602need_lib_prefix=$need_lib_prefix 14603 14604# Do we need a version for libraries? 14605need_version=$need_version 14606 14607# Library versioning type. 14608version_type=$version_type 14609 14610# Shared library runtime path variable. 14611runpath_var=$runpath_var 14612 14613# Shared library path variable. 14614shlibpath_var=$shlibpath_var 14615 14616# Is shlibpath searched before the hard-coded library search path? 14617shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14618 14619# Format of library name prefix. 14620libname_spec=$lt_libname_spec 14621 14622# List of archive names. First name is the real one, the rest are links. 14623# The last name is the one that the linker finds with -lNAME 14624library_names_spec=$lt_library_names_spec 14625 14626# The coded name of the library, if different from the real name. 14627soname_spec=$lt_soname_spec 14628 14629# Permission mode override for installation of shared libraries. 14630install_override_mode=$lt_install_override_mode 14631 14632# Command to use after installation of a shared archive. 14633postinstall_cmds=$lt_postinstall_cmds 14634 14635# Command to use after uninstallation of a shared archive. 14636postuninstall_cmds=$lt_postuninstall_cmds 14637 14638# Commands used to finish a libtool library installation in a directory. 14639finish_cmds=$lt_finish_cmds 14640 14641# As "finish_cmds", except a single script fragment to be evaled but 14642# not shown. 14643finish_eval=$lt_finish_eval 14644 14645# Whether we should hardcode library paths into libraries. 14646hardcode_into_libs=$hardcode_into_libs 14647 14648# Compile-time system search path for libraries. 14649sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14650 14651# Detected run-time system search path for libraries. 14652sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 14653 14654# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 14655configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 14656 14657# Whether dlopen is supported. 14658dlopen_support=$enable_dlopen 14659 14660# Whether dlopen of programs is supported. 14661dlopen_self=$enable_dlopen_self 14662 14663# Whether dlopen of statically linked programs is supported. 14664dlopen_self_static=$enable_dlopen_self_static 14665 14666# Commands to strip libraries. 14667old_striplib=$lt_old_striplib 14668striplib=$lt_striplib 14669 14670 14671# The linker used to build libraries. 14672LD=$lt_LD 14673 14674# How to create reloadable object files. 14675reload_flag=$lt_reload_flag 14676reload_cmds=$lt_reload_cmds 14677 14678# Commands used to build an old-style archive. 14679old_archive_cmds=$lt_old_archive_cmds 14680 14681# A language specific compiler. 14682CC=$lt_compiler 14683 14684# Is the compiler the GNU compiler? 14685with_gcc=$GCC 14686 14687# Compiler flag to turn off builtin functions. 14688no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14689 14690# Additional compiler flags for building library objects. 14691pic_flag=$lt_lt_prog_compiler_pic 14692 14693# How to pass a linker flag through the compiler. 14694wl=$lt_lt_prog_compiler_wl 14695 14696# Compiler flag to prevent dynamic linking. 14697link_static_flag=$lt_lt_prog_compiler_static 14698 14699# Does compiler simultaneously support -c and -o options? 14700compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14701 14702# Whether or not to add -lc for building shared libraries. 14703build_libtool_need_lc=$archive_cmds_need_lc 14704 14705# Whether or not to disallow shared libs when runtime libs are static. 14706allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14707 14708# Compiler flag to allow reflexive dlopens. 14709export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14710 14711# Compiler flag to generate shared objects directly from archives. 14712whole_archive_flag_spec=$lt_whole_archive_flag_spec 14713 14714# Whether the compiler copes with passing no objects directly. 14715compiler_needs_object=$lt_compiler_needs_object 14716 14717# Create an old-style archive from a shared archive. 14718old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14719 14720# Create a temporary old-style archive to link instead of a shared archive. 14721old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14722 14723# Commands used to build a shared archive. 14724archive_cmds=$lt_archive_cmds 14725archive_expsym_cmds=$lt_archive_expsym_cmds 14726 14727# Commands used to build a loadable module if different from building 14728# a shared archive. 14729module_cmds=$lt_module_cmds 14730module_expsym_cmds=$lt_module_expsym_cmds 14731 14732# Whether we are building with GNU ld or not. 14733with_gnu_ld=$lt_with_gnu_ld 14734 14735# Flag that allows shared libraries with undefined symbols to be built. 14736allow_undefined_flag=$lt_allow_undefined_flag 14737 14738# Flag that enforces no undefined symbols. 14739no_undefined_flag=$lt_no_undefined_flag 14740 14741# Flag to hardcode \$libdir into a binary during linking. 14742# This must work even if \$libdir does not exist 14743hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14744 14745# Whether we need a single "-rpath" flag with a separated argument. 14746hardcode_libdir_separator=$lt_hardcode_libdir_separator 14747 14748# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14749# DIR into the resulting binary. 14750hardcode_direct=$hardcode_direct 14751 14752# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14753# DIR into the resulting binary and the resulting library dependency is 14754# "absolute",i.e impossible to change by setting \$shlibpath_var if the 14755# library is relocated. 14756hardcode_direct_absolute=$hardcode_direct_absolute 14757 14758# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14759# into the resulting binary. 14760hardcode_minus_L=$hardcode_minus_L 14761 14762# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14763# into the resulting binary. 14764hardcode_shlibpath_var=$hardcode_shlibpath_var 14765 14766# Set to "yes" if building a shared library automatically hardcodes DIR 14767# into the library and all subsequent libraries and executables linked 14768# against it. 14769hardcode_automatic=$hardcode_automatic 14770 14771# Set to yes if linker adds runtime paths of dependent libraries 14772# to runtime path list. 14773inherit_rpath=$inherit_rpath 14774 14775# Whether libtool must link a program against all its dependency libraries. 14776link_all_deplibs=$link_all_deplibs 14777 14778# Set to "yes" if exported symbols are required. 14779always_export_symbols=$always_export_symbols 14780 14781# The commands to list exported symbols. 14782export_symbols_cmds=$lt_export_symbols_cmds 14783 14784# Symbols that should not be listed in the preloaded symbols. 14785exclude_expsyms=$lt_exclude_expsyms 14786 14787# Symbols that must always be exported. 14788include_expsyms=$lt_include_expsyms 14789 14790# Commands necessary for linking programs (against libraries) with templates. 14791prelink_cmds=$lt_prelink_cmds 14792 14793# Commands necessary for finishing linking programs. 14794postlink_cmds=$lt_postlink_cmds 14795 14796# Specify filename containing input files. 14797file_list_spec=$lt_file_list_spec 14798 14799# How to hardcode a shared library path into an executable. 14800hardcode_action=$hardcode_action 14801 14802# ### END LIBTOOL CONFIG 14803 14804_LT_EOF 14805 14806 cat <<'_LT_EOF' >> "$cfgfile" 14807 14808# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 14809 14810# func_munge_path_list VARIABLE PATH 14811# ----------------------------------- 14812# VARIABLE is name of variable containing _space_ separated list of 14813# directories to be munged by the contents of PATH, which is string 14814# having a format: 14815# "DIR[:DIR]:" 14816# string "DIR[ DIR]" will be prepended to VARIABLE 14817# ":DIR[:DIR]" 14818# string "DIR[ DIR]" will be appended to VARIABLE 14819# "DIRP[:DIRP]::[DIRA:]DIRA" 14820# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14821# "DIRA[ DIRA]" will be appended to VARIABLE 14822# "DIR[:DIR]" 14823# VARIABLE will be replaced by "DIR[ DIR]" 14824func_munge_path_list () 14825{ 14826 case x$2 in 14827 x) 14828 ;; 14829 *:) 14830 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14831 ;; 14832 x:*) 14833 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14834 ;; 14835 *::*) 14836 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14837 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14838 ;; 14839 *) 14840 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14841 ;; 14842 esac 14843} 14844 14845 14846# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14847func_cc_basename () 14848{ 14849 for cc_temp in $*""; do 14850 case $cc_temp in 14851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14853 \-*) ;; 14854 *) break;; 14855 esac 14856 done 14857 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14858} 14859 14860 14861# ### END FUNCTIONS SHARED WITH CONFIGURE 14862 14863_LT_EOF 14864 14865 case $host_os in 14866 aix3*) 14867 cat <<\_LT_EOF >> "$cfgfile" 14868# AIX sometimes has problems with the GCC collect2 program. For some 14869# reason, if we set the COLLECT_NAMES environment variable, the problems 14870# vanish in a puff of smoke. 14871if test set != "${COLLECT_NAMES+set}"; then 14872 COLLECT_NAMES= 14873 export COLLECT_NAMES 14874fi 14875_LT_EOF 14876 ;; 14877 esac 14878 14879 14880ltmain=$ac_aux_dir/ltmain.sh 14881 14882 14883 # We use sed instead of cat because bash on DJGPP gets confused if 14884 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14885 # text mode, it properly converts lines to CR/LF. This bash problem 14886 # is reportedly fixed, but why not run on old versions too? 14887 sed '$q' "$ltmain" >> "$cfgfile" \ 14888 || (rm -f "$cfgfile"; exit 1) 14889 14890 mv -f "$cfgfile" "$ofile" || 14891 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14892 chmod +x "$ofile" 14893 14894 ;; 14895 14896 esac 14897done # for ac_tag 14898 14899 14900as_fn_exit 0 14901_ACEOF 14902ac_clean_files=$ac_clean_files_save 14903 14904test $ac_write_fail = 0 || 14905 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14906 14907 14908# configure is writing to config.log, and then calls config.status. 14909# config.status does its own redirection, appending to config.log. 14910# Unfortunately, on DOS this fails, as config.log is still kept open 14911# by configure, so config.status won't be able to write to it; its 14912# output is simply discarded. So we exec the FD to /dev/null, 14913# effectively closing config.log, so it can be properly (re)opened and 14914# appended to by config.status. When coming back to configure, we 14915# need to make the FD available again. 14916if test "$no_create" != yes; then 14917 ac_cs_success=: 14918 ac_config_status_args= 14919 test "$silent" = yes && 14920 ac_config_status_args="$ac_config_status_args --quiet" 14921 exec 5>/dev/null 14922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14923 exec 5>>config.log 14924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14925 # would make configure fail if this is the last instruction. 14926 $ac_cs_success || as_fn_exit 1 14927fi 14928if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14930$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14931fi 14932 14933