1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libmdf 1.0.21. 4# 5# Report bugs to <tech@millistream.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: tech@millistream.com about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libmdf' 592PACKAGE_TARNAME='libmdf' 593PACKAGE_VERSION='1.0.21' 594PACKAGE_STRING='libmdf 1.0.21' 595PACKAGE_BUGREPORT='tech@millistream.com' 596PACKAGE_URL='' 597 598ac_default_prefix=/usr 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638pkgconfigdir 639MDF_VERSION_REVISION 640MDF_VERSION_MINOR 641MDF_VERSION_MAJOR 642GCC_FALSE 643GCC_TRUE 644WIN32_FALSE 645WIN32_TRUE 646WINDRES 647LIBOBJS 648ZLIB_LIBS 649ZLIB_CFLAGS 650OPENSSL_LIBS 651OPENSSL_CFLAGS 652PKG_CONFIG_LIBDIR 653PKG_CONFIG_PATH 654PKG_CONFIG 655test_LIBRT 656CPP 657LT_SYS_LIBRARY_PATH 658OTOOL64 659OTOOL 660LIPO 661NMEDIT 662DSYMUTIL 663MANIFEST_TOOL 664RANLIB 665ac_ct_AR 666AR 667LN_S 668NM 669ac_ct_DUMPBIN 670DUMPBIN 671LD 672FGREP 673EGREP 674GREP 675SED 676am__fastdepCC_FALSE 677am__fastdepCC_TRUE 678CCDEPMODE 679am__nodep 680AMDEPBACKSLASH 681AMDEP_FALSE 682AMDEP_TRUE 683am__quote 684am__include 685DEPDIR 686OBJEXT 687EXEEXT 688ac_ct_CC 689CPPFLAGS 690LDFLAGS 691CFLAGS 692CC 693LIBTOOL 694OBJDUMP 695DLLTOOL 696AS 697MAINT 698MAINTAINER_MODE_FALSE 699MAINTAINER_MODE_TRUE 700AM_BACKSLASH 701AM_DEFAULT_VERBOSITY 702AM_DEFAULT_V 703AM_V 704am__untar 705am__tar 706AMTAR 707am__leading_dot 708SET_MAKE 709AWK 710mkdir_p 711MKDIR_P 712INSTALL_STRIP_PROGRAM 713STRIP 714install_sh 715MAKEINFO 716AUTOHEADER 717AUTOMAKE 718AUTOCONF 719ACLOCAL 720VERSION 721PACKAGE 722CYGPATH_W 723am__isrc 724INSTALL_DATA 725INSTALL_SCRIPT 726INSTALL_PROGRAM 727target_os 728target_vendor 729target_cpu 730target 731host_os 732host_vendor 733host_cpu 734host 735build_os 736build_vendor 737build_cpu 738build 739target_alias 740host_alias 741build_alias 742LIBS 743ECHO_T 744ECHO_N 745ECHO_C 746DEFS 747mandir 748localedir 749libdir 750psdir 751pdfdir 752dvidir 753htmldir 754infodir 755docdir 756oldincludedir 757includedir 758runstatedir 759localstatedir 760sharedstatedir 761sysconfdir 762datadir 763datarootdir 764libexecdir 765sbindir 766bindir 767program_transform_name 768prefix 769exec_prefix 770PACKAGE_URL 771PACKAGE_BUGREPORT 772PACKAGE_STRING 773PACKAGE_VERSION 774PACKAGE_TARNAME 775PACKAGE_NAME 776PATH_SEPARATOR 777SHELL' 778ac_subst_files='' 779ac_user_opts=' 780enable_option_checking 781enable_silent_rules 782enable_maintainer_mode 783enable_shared 784enable_static 785with_pic 786enable_fast_install 787with_aix_soname 788enable_dependency_tracking 789with_gnu_ld 790with_sysroot 791enable_libtool_lock 792with_pkgconfigdir 793' 794 ac_precious_vars='build_alias 795host_alias 796target_alias 797CC 798CFLAGS 799LDFLAGS 800LIBS 801CPPFLAGS 802LT_SYS_LIBRARY_PATH 803CPP 804PKG_CONFIG 805PKG_CONFIG_PATH 806PKG_CONFIG_LIBDIR 807OPENSSL_CFLAGS 808OPENSSL_LIBS 809ZLIB_CFLAGS 810ZLIB_LIBS' 811 812 813# Initialize some variables set by options. 814ac_init_help= 815ac_init_version=false 816ac_unrecognized_opts= 817ac_unrecognized_sep= 818# The variables have the same names as the options, with 819# dashes changed to underlines. 820cache_file=/dev/null 821exec_prefix=NONE 822no_create= 823no_recursion= 824prefix=NONE 825program_prefix=NONE 826program_suffix=NONE 827program_transform_name=s,x,x, 828silent= 829site= 830srcdir= 831verbose= 832x_includes=NONE 833x_libraries=NONE 834 835# Installation directory options. 836# These are left unexpanded so users can "make install exec_prefix=/foo" 837# and all the variables that are supposed to be based on exec_prefix 838# by default will actually change. 839# Use braces instead of parens because sh, perl, etc. also accept them. 840# (The list follows the same order as the GNU Coding Standards.) 841bindir='${exec_prefix}/bin' 842sbindir='${exec_prefix}/sbin' 843libexecdir='${exec_prefix}/libexec' 844datarootdir='${prefix}/share' 845datadir='${datarootdir}' 846sysconfdir='${prefix}/etc' 847sharedstatedir='${prefix}/com' 848localstatedir='${prefix}/var' 849runstatedir='${localstatedir}/run' 850includedir='${prefix}/include' 851oldincludedir='/usr/include' 852docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 853infodir='${datarootdir}/info' 854htmldir='${docdir}' 855dvidir='${docdir}' 856pdfdir='${docdir}' 857psdir='${docdir}' 858libdir='${exec_prefix}/lib' 859localedir='${datarootdir}/locale' 860mandir='${datarootdir}/man' 861 862ac_prev= 863ac_dashdash= 864for ac_option 865do 866 # If the previous option needs an argument, assign it. 867 if test -n "$ac_prev"; then 868 eval $ac_prev=\$ac_option 869 ac_prev= 870 continue 871 fi 872 873 case $ac_option in 874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 875 *=) ac_optarg= ;; 876 *) ac_optarg=yes ;; 877 esac 878 879 # Accept the important Cygnus configure options, so we can diagnose typos. 880 881 case $ac_dashdash$ac_option in 882 --) 883 ac_dashdash=yes ;; 884 885 -bindir | --bindir | --bindi | --bind | --bin | --bi) 886 ac_prev=bindir ;; 887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 888 bindir=$ac_optarg ;; 889 890 -build | --build | --buil | --bui | --bu) 891 ac_prev=build_alias ;; 892 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 893 build_alias=$ac_optarg ;; 894 895 -cache-file | --cache-file | --cache-fil | --cache-fi \ 896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 897 ac_prev=cache_file ;; 898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 900 cache_file=$ac_optarg ;; 901 902 --config-cache | -C) 903 cache_file=config.cache ;; 904 905 -datadir | --datadir | --datadi | --datad) 906 ac_prev=datadir ;; 907 -datadir=* | --datadir=* | --datadi=* | --datad=*) 908 datadir=$ac_optarg ;; 909 910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 911 | --dataroo | --dataro | --datar) 912 ac_prev=datarootdir ;; 913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 915 datarootdir=$ac_optarg ;; 916 917 -disable-* | --disable-*) 918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 919 # Reject names that are not valid shell variable names. 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 921 as_fn_error $? "invalid feature name: $ac_useropt" 922 ac_useropt_orig=$ac_useropt 923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 924 case $ac_user_opts in 925 *" 926"enable_$ac_useropt" 927"*) ;; 928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 929 ac_unrecognized_sep=', ';; 930 esac 931 eval enable_$ac_useropt=no ;; 932 933 -docdir | --docdir | --docdi | --doc | --do) 934 ac_prev=docdir ;; 935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 936 docdir=$ac_optarg ;; 937 938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 939 ac_prev=dvidir ;; 940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 941 dvidir=$ac_optarg ;; 942 943 -enable-* | --enable-*) 944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947 as_fn_error $? "invalid feature name: $ac_useropt" 948 ac_useropt_orig=$ac_useropt 949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 950 case $ac_user_opts in 951 *" 952"enable_$ac_useropt" 953"*) ;; 954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 955 ac_unrecognized_sep=', ';; 956 esac 957 eval enable_$ac_useropt=\$ac_optarg ;; 958 959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 961 | --exec | --exe | --ex) 962 ac_prev=exec_prefix ;; 963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 965 | --exec=* | --exe=* | --ex=*) 966 exec_prefix=$ac_optarg ;; 967 968 -gas | --gas | --ga | --g) 969 # Obsolete; use --with-gas. 970 with_gas=yes ;; 971 972 -help | --help | --hel | --he | -h) 973 ac_init_help=long ;; 974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 975 ac_init_help=recursive ;; 976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 977 ac_init_help=short ;; 978 979 -host | --host | --hos | --ho) 980 ac_prev=host_alias ;; 981 -host=* | --host=* | --hos=* | --ho=*) 982 host_alias=$ac_optarg ;; 983 984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 985 ac_prev=htmldir ;; 986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 987 | --ht=*) 988 htmldir=$ac_optarg ;; 989 990 -includedir | --includedir | --includedi | --included | --include \ 991 | --includ | --inclu | --incl | --inc) 992 ac_prev=includedir ;; 993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 994 | --includ=* | --inclu=* | --incl=* | --inc=*) 995 includedir=$ac_optarg ;; 996 997 -infodir | --infodir | --infodi | --infod | --info | --inf) 998 ac_prev=infodir ;; 999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1000 infodir=$ac_optarg ;; 1001 1002 -libdir | --libdir | --libdi | --libd) 1003 ac_prev=libdir ;; 1004 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1005 libdir=$ac_optarg ;; 1006 1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1008 | --libexe | --libex | --libe) 1009 ac_prev=libexecdir ;; 1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1011 | --libexe=* | --libex=* | --libe=*) 1012 libexecdir=$ac_optarg ;; 1013 1014 -localedir | --localedir | --localedi | --localed | --locale) 1015 ac_prev=localedir ;; 1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1017 localedir=$ac_optarg ;; 1018 1019 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1020 | --localstate | --localstat | --localsta | --localst | --locals) 1021 ac_prev=localstatedir ;; 1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1024 localstatedir=$ac_optarg ;; 1025 1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1027 ac_prev=mandir ;; 1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1029 mandir=$ac_optarg ;; 1030 1031 -nfp | --nfp | --nf) 1032 # Obsolete; use --without-fp. 1033 with_fp=no ;; 1034 1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1036 | --no-cr | --no-c | -n) 1037 no_create=yes ;; 1038 1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1041 no_recursion=yes ;; 1042 1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1045 | --oldin | --oldi | --old | --ol | --o) 1046 ac_prev=oldincludedir ;; 1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1050 oldincludedir=$ac_optarg ;; 1051 1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1053 ac_prev=prefix ;; 1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1055 prefix=$ac_optarg ;; 1056 1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1058 | --program-pre | --program-pr | --program-p) 1059 ac_prev=program_prefix ;; 1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1062 program_prefix=$ac_optarg ;; 1063 1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1065 | --program-suf | --program-su | --program-s) 1066 ac_prev=program_suffix ;; 1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1069 program_suffix=$ac_optarg ;; 1070 1071 -program-transform-name | --program-transform-name \ 1072 | --program-transform-nam | --program-transform-na \ 1073 | --program-transform-n | --program-transform- \ 1074 | --program-transform | --program-transfor \ 1075 | --program-transfo | --program-transf \ 1076 | --program-trans | --program-tran \ 1077 | --progr-tra | --program-tr | --program-t) 1078 ac_prev=program_transform_name ;; 1079 -program-transform-name=* | --program-transform-name=* \ 1080 | --program-transform-nam=* | --program-transform-na=* \ 1081 | --program-transform-n=* | --program-transform-=* \ 1082 | --program-transform=* | --program-transfor=* \ 1083 | --program-transfo=* | --program-transf=* \ 1084 | --program-trans=* | --program-tran=* \ 1085 | --progr-tra=* | --program-tr=* | --program-t=*) 1086 program_transform_name=$ac_optarg ;; 1087 1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1089 ac_prev=pdfdir ;; 1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1091 pdfdir=$ac_optarg ;; 1092 1093 -psdir | --psdir | --psdi | --psd | --ps) 1094 ac_prev=psdir ;; 1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1096 psdir=$ac_optarg ;; 1097 1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1099 | -silent | --silent | --silen | --sile | --sil) 1100 silent=yes ;; 1101 1102 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1103 | --runstate | --runstat | --runsta | --runst | --runs \ 1104 | --run | --ru | --r) 1105 ac_prev=runstatedir ;; 1106 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1107 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1108 | --run=* | --ru=* | --r=*) 1109 runstatedir=$ac_optarg ;; 1110 1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1112 ac_prev=sbindir ;; 1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1114 | --sbi=* | --sb=*) 1115 sbindir=$ac_optarg ;; 1116 1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1119 | --sharedst | --shareds | --shared | --share | --shar \ 1120 | --sha | --sh) 1121 ac_prev=sharedstatedir ;; 1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1125 | --sha=* | --sh=*) 1126 sharedstatedir=$ac_optarg ;; 1127 1128 -site | --site | --sit) 1129 ac_prev=site ;; 1130 -site=* | --site=* | --sit=*) 1131 site=$ac_optarg ;; 1132 1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1134 ac_prev=srcdir ;; 1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1136 srcdir=$ac_optarg ;; 1137 1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1139 | --syscon | --sysco | --sysc | --sys | --sy) 1140 ac_prev=sysconfdir ;; 1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1143 sysconfdir=$ac_optarg ;; 1144 1145 -target | --target | --targe | --targ | --tar | --ta | --t) 1146 ac_prev=target_alias ;; 1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1148 target_alias=$ac_optarg ;; 1149 1150 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1151 verbose=yes ;; 1152 1153 -version | --version | --versio | --versi | --vers | -V) 1154 ac_init_version=: ;; 1155 1156 -with-* | --with-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: $ac_useropt" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"with_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=\$ac_optarg ;; 1171 1172 -without-* | --without-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid package name: $ac_useropt" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181"with_$ac_useropt" 1182"*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval with_$ac_useropt=no ;; 1187 1188 --x) 1189 # Obsolete; use --with-x. 1190 with_x=yes ;; 1191 1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1193 | --x-incl | --x-inc | --x-in | --x-i) 1194 ac_prev=x_includes ;; 1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1197 x_includes=$ac_optarg ;; 1198 1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1201 ac_prev=x_libraries ;; 1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1204 x_libraries=$ac_optarg ;; 1205 1206 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1207Try \`$0 --help' for more information" 1208 ;; 1209 1210 *=*) 1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1212 # Reject names that are not valid shell variable names. 1213 case $ac_envvar in #( 1214 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1216 esac 1217 eval $ac_envvar=\$ac_optarg 1218 export $ac_envvar ;; 1219 1220 *) 1221 # FIXME: should be removed in autoconf 3.0. 1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1226 ;; 1227 1228 esac 1229done 1230 1231if test -n "$ac_prev"; then 1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1233 as_fn_error $? "missing argument to $ac_option" 1234fi 1235 1236if test -n "$ac_unrecognized_opts"; then 1237 case $enable_option_checking in 1238 no) ;; 1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1241 esac 1242fi 1243 1244# Check all directory arguments for consistency. 1245for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1246 datadir sysconfdir sharedstatedir localstatedir includedir \ 1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1248 libdir localedir mandir runstatedir 1249do 1250 eval ac_val=\$$ac_var 1251 # Remove trailing slashes. 1252 case $ac_val in 1253 */ ) 1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1255 eval $ac_var=\$ac_val;; 1256 esac 1257 # Be sure to have absolute directory names. 1258 case $ac_val in 1259 [\\/$]* | ?:[\\/]* ) continue;; 1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1261 esac 1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1263done 1264 1265# There might be people who depend on the old broken behavior: `$host' 1266# used to hold the argument of --host etc. 1267# FIXME: To remove some day. 1268build=$build_alias 1269host=$host_alias 1270target=$target_alias 1271 1272# FIXME: To remove some day. 1273if test "x$host_alias" != x; then 1274 if test "x$build_alias" = x; then 1275 cross_compiling=maybe 1276 elif test "x$build_alias" != "x$host_alias"; then 1277 cross_compiling=yes 1278 fi 1279fi 1280 1281ac_tool_prefix= 1282test -n "$host_alias" && ac_tool_prefix=$host_alias- 1283 1284test "$silent" = yes && exec 6>/dev/null 1285 1286 1287ac_pwd=`pwd` && test -n "$ac_pwd" && 1288ac_ls_di=`ls -di .` && 1289ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1290 as_fn_error $? "working directory cannot be determined" 1291test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1292 as_fn_error $? "pwd does not report name of working directory" 1293 1294 1295# Find the source files, if location was not specified. 1296if test -z "$srcdir"; then 1297 ac_srcdir_defaulted=yes 1298 # Try the directory containing this script, then the parent directory. 1299 ac_confdir=`$as_dirname -- "$as_myself" || 1300$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1301 X"$as_myself" : 'X\(//\)[^/]' \| \ 1302 X"$as_myself" : 'X\(//\)$' \| \ 1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1304$as_echo X"$as_myself" | 1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\/\)[^/].*/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\/\)$/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\).*/{ 1318 s//\1/ 1319 q 1320 } 1321 s/.*/./; q'` 1322 srcdir=$ac_confdir 1323 if test ! -r "$srcdir/$ac_unique_file"; then 1324 srcdir=.. 1325 fi 1326else 1327 ac_srcdir_defaulted=no 1328fi 1329if test ! -r "$srcdir/$ac_unique_file"; then 1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1332fi 1333ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1334ac_abs_confdir=`( 1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1336 pwd)` 1337# When building in place, set srcdir=. 1338if test "$ac_abs_confdir" = "$ac_pwd"; then 1339 srcdir=. 1340fi 1341# Remove unnecessary trailing slashes from srcdir. 1342# Double slashes in file names in object file debugging info 1343# mess up M-x gdb in Emacs. 1344case $srcdir in 1345*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1346esac 1347for ac_var in $ac_precious_vars; do 1348 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1349 eval ac_env_${ac_var}_value=\$${ac_var} 1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1351 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1352done 1353 1354# 1355# Report the --help message. 1356# 1357if test "$ac_init_help" = "long"; then 1358 # Omit some internal or obsolete options to make the list less imposing. 1359 # This message is too long to be a string in the A/UX 3.1 sh. 1360 cat <<_ACEOF 1361\`configure' configures libmdf 1.0.21 to adapt to many kinds of systems. 1362 1363Usage: $0 [OPTION]... [VAR=VALUE]... 1364 1365To assign environment variables (e.g., CC, CFLAGS...), specify them as 1366VAR=VALUE. See below for descriptions of some of the useful variables. 1367 1368Defaults for the options are specified in brackets. 1369 1370Configuration: 1371 -h, --help display this help and exit 1372 --help=short display options specific to this package 1373 --help=recursive display the short help of all the included packages 1374 -V, --version display version information and exit 1375 -q, --quiet, --silent do not print \`checking ...' messages 1376 --cache-file=FILE cache test results in FILE [disabled] 1377 -C, --config-cache alias for \`--cache-file=config.cache' 1378 -n, --no-create do not create output files 1379 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1380 1381Installation directories: 1382 --prefix=PREFIX install architecture-independent files in PREFIX 1383 [$ac_default_prefix] 1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1385 [PREFIX] 1386 1387By default, \`make install' will install all the files in 1388\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1389an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1390for instance \`--prefix=\$HOME'. 1391 1392For better control, use the options below. 1393 1394Fine tuning of the installation directories: 1395 --bindir=DIR user executables [EPREFIX/bin] 1396 --sbindir=DIR system admin executables [EPREFIX/sbin] 1397 --libexecdir=DIR program executables [EPREFIX/libexec] 1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1401 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1402 --libdir=DIR object code libraries [EPREFIX/lib] 1403 --includedir=DIR C header files [PREFIX/include] 1404 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1407 --infodir=DIR info documentation [DATAROOTDIR/info] 1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1409 --mandir=DIR man documentation [DATAROOTDIR/man] 1410 --docdir=DIR documentation root [DATAROOTDIR/doc/libmdf] 1411 --htmldir=DIR html documentation [DOCDIR] 1412 --dvidir=DIR dvi documentation [DOCDIR] 1413 --pdfdir=DIR pdf documentation [DOCDIR] 1414 --psdir=DIR ps documentation [DOCDIR] 1415_ACEOF 1416 1417 cat <<\_ACEOF 1418 1419Program names: 1420 --program-prefix=PREFIX prepend PREFIX to installed program names 1421 --program-suffix=SUFFIX append SUFFIX to installed program names 1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1423 1424System types: 1425 --build=BUILD configure for building on BUILD [guessed] 1426 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1427 --target=TARGET configure for building compilers for TARGET [HOST] 1428_ACEOF 1429fi 1430 1431if test -n "$ac_init_help"; then 1432 case $ac_init_help in 1433 short | recursive ) echo "Configuration of libmdf 1.0.21:";; 1434 esac 1435 cat <<\_ACEOF 1436 1437Optional Features: 1438 --disable-option-checking ignore unrecognized --enable/--with options 1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1441 --enable-silent-rules less verbose build output (undo: "make V=1") 1442 --disable-silent-rules verbose build output (undo: "make V=0") 1443 --enable-maintainer-mode 1444 enable make rules and dependencies not useful (and 1445 sometimes confusing) to the casual installer 1446 --enable-shared[=PKGS] build shared libraries [default=yes] 1447 --enable-static[=PKGS] build static libraries [default=yes] 1448 --enable-fast-install[=PKGS] 1449 optimize for fast installation [default=yes] 1450 --enable-dependency-tracking 1451 do not reject slow dependency extractors 1452 --disable-dependency-tracking 1453 speeds up one-time build 1454 --disable-libtool-lock avoid locking (might break parallel builds) 1455 1456Optional Packages: 1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1459 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1460 both] 1461 --with-aix-soname=aix|svr4|both 1462 shared library versioning (aka "SONAME") variant to 1463 provide on AIX, [default=aix]. 1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1465 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1466 compiler's sysroot if not specified). 1467 --with-pkgconfigdir Use the specified pkgconfig dir (default is 1468 $libdir/pkgconfig) 1469 1470Some influential environment variables: 1471 CC C compiler command 1472 CFLAGS C compiler flags 1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1474 nonstandard directory <lib dir> 1475 LIBS libraries to pass to the linker, e.g. -l<library> 1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1477 you have headers in a nonstandard directory <include dir> 1478 LT_SYS_LIBRARY_PATH 1479 User-defined run-time library search path. 1480 CPP C preprocessor 1481 PKG_CONFIG path to pkg-config utility 1482 PKG_CONFIG_PATH 1483 directories to add to pkg-config's search path 1484 PKG_CONFIG_LIBDIR 1485 path overriding pkg-config's built-in search path 1486 OPENSSL_CFLAGS 1487 C compiler flags for OPENSSL, overriding pkg-config 1488 OPENSSL_LIBS 1489 linker flags for OPENSSL, overriding pkg-config 1490 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 1491 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 1492 1493Use these variables to override the choices made by `configure' or to help 1494it to find libraries and programs with nonstandard names/locations. 1495 1496Report bugs to <tech@millistream.com>. 1497_ACEOF 1498ac_status=$? 1499fi 1500 1501if test "$ac_init_help" = "recursive"; then 1502 # If there are subdirs, report their specific --help. 1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1504 test -d "$ac_dir" || 1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1506 continue 1507 ac_builddir=. 1508 1509case "$ac_dir" in 1510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1511*) 1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1513 # A ".." for each directory in $ac_dir_suffix. 1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1515 case $ac_top_builddir_sub in 1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1518 esac ;; 1519esac 1520ac_abs_top_builddir=$ac_pwd 1521ac_abs_builddir=$ac_pwd$ac_dir_suffix 1522# for backward compatibility: 1523ac_top_builddir=$ac_top_build_prefix 1524 1525case $srcdir in 1526 .) # We are building in place. 1527 ac_srcdir=. 1528 ac_top_srcdir=$ac_top_builddir_sub 1529 ac_abs_top_srcdir=$ac_pwd ;; 1530 [\\/]* | ?:[\\/]* ) # Absolute name. 1531 ac_srcdir=$srcdir$ac_dir_suffix; 1532 ac_top_srcdir=$srcdir 1533 ac_abs_top_srcdir=$srcdir ;; 1534 *) # Relative name. 1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1536 ac_top_srcdir=$ac_top_build_prefix$srcdir 1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1538esac 1539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1540 1541 cd "$ac_dir" || { ac_status=$?; continue; } 1542 # Check for guested configure. 1543 if test -f "$ac_srcdir/configure.gnu"; then 1544 echo && 1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1546 elif test -f "$ac_srcdir/configure"; then 1547 echo && 1548 $SHELL "$ac_srcdir/configure" --help=recursive 1549 else 1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1551 fi || ac_status=$? 1552 cd "$ac_pwd" || { ac_status=$?; break; } 1553 done 1554fi 1555 1556test -n "$ac_init_help" && exit $ac_status 1557if $ac_init_version; then 1558 cat <<\_ACEOF 1559libmdf configure 1.0.21 1560generated by GNU Autoconf 2.69 1561 1562Copyright (C) 2012 Free Software Foundation, Inc. 1563This configure script is free software; the Free Software Foundation 1564gives unlimited permission to copy, distribute and modify it. 1565_ACEOF 1566 exit 1567fi 1568 1569## ------------------------ ## 1570## Autoconf initialization. ## 1571## ------------------------ ## 1572 1573# ac_fn_c_try_compile LINENO 1574# -------------------------- 1575# Try to compile conftest.$ac_ext, and return whether this succeeded. 1576ac_fn_c_try_compile () 1577{ 1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1579 rm -f conftest.$ac_objext 1580 if { { ac_try="$ac_compile" 1581case "(($ac_try" in 1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1583 *) ac_try_echo=$ac_try;; 1584esac 1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1586$as_echo "$ac_try_echo"; } >&5 1587 (eval "$ac_compile") 2>conftest.err 1588 ac_status=$? 1589 if test -s conftest.err; then 1590 grep -v '^ *+' conftest.err >conftest.er1 1591 cat conftest.er1 >&5 1592 mv -f conftest.er1 conftest.err 1593 fi 1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1595 test $ac_status = 0; } && { 1596 test -z "$ac_c_werror_flag" || 1597 test ! -s conftest.err 1598 } && test -s conftest.$ac_objext; then : 1599 ac_retval=0 1600else 1601 $as_echo "$as_me: failed program was:" >&5 1602sed 's/^/| /' conftest.$ac_ext >&5 1603 1604 ac_retval=1 1605fi 1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1607 as_fn_set_status $ac_retval 1608 1609} # ac_fn_c_try_compile 1610 1611# ac_fn_c_try_link LINENO 1612# ----------------------- 1613# Try to link conftest.$ac_ext, and return whether this succeeded. 1614ac_fn_c_try_link () 1615{ 1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1617 rm -f conftest.$ac_objext conftest$ac_exeext 1618 if { { ac_try="$ac_link" 1619case "(($ac_try" in 1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1621 *) ac_try_echo=$ac_try;; 1622esac 1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1624$as_echo "$ac_try_echo"; } >&5 1625 (eval "$ac_link") 2>conftest.err 1626 ac_status=$? 1627 if test -s conftest.err; then 1628 grep -v '^ *+' conftest.err >conftest.er1 1629 cat conftest.er1 >&5 1630 mv -f conftest.er1 conftest.err 1631 fi 1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; } && { 1634 test -z "$ac_c_werror_flag" || 1635 test ! -s conftest.err 1636 } && test -s conftest$ac_exeext && { 1637 test "$cross_compiling" = yes || 1638 test -x conftest$ac_exeext 1639 }; then : 1640 ac_retval=0 1641else 1642 $as_echo "$as_me: failed program was:" >&5 1643sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=1 1646fi 1647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1649 # interfere with the next link command; also delete a directory that is 1650 # left behind by Apple's compiler. We do this before executing the actions. 1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 as_fn_set_status $ac_retval 1654 1655} # ac_fn_c_try_link 1656 1657# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1658# ------------------------------------------------------- 1659# Tests whether HEADER exists and can be compiled using the include files in 1660# INCLUDES, setting the cache variable VAR accordingly. 1661ac_fn_c_check_header_compile () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1665$as_echo_n "checking for $2... " >&6; } 1666if eval \${$3+:} false; then : 1667 $as_echo_n "(cached) " >&6 1668else 1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1670/* end confdefs.h. */ 1671$4 1672#include <$2> 1673_ACEOF 1674if ac_fn_c_try_compile "$LINENO"; then : 1675 eval "$3=yes" 1676else 1677 eval "$3=no" 1678fi 1679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1680fi 1681eval ac_res=\$$3 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1683$as_echo "$ac_res" >&6; } 1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685 1686} # ac_fn_c_check_header_compile 1687 1688# ac_fn_c_try_cpp LINENO 1689# ---------------------- 1690# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1691ac_fn_c_try_cpp () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 if { { ac_try="$ac_cpp conftest.$ac_ext" 1695case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698esac 1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700$as_echo "$ac_try_echo"; } >&5 1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1702 ac_status=$? 1703 if test -s conftest.err; then 1704 grep -v '^ *+' conftest.err >conftest.er1 1705 cat conftest.er1 >&5 1706 mv -f conftest.er1 conftest.err 1707 fi 1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } > conftest.i && { 1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1711 test ! -s conftest.err 1712 }; then : 1713 ac_retval=0 1714else 1715 $as_echo "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=1 1719fi 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 as_fn_set_status $ac_retval 1722 1723} # ac_fn_c_try_cpp 1724 1725# ac_fn_c_try_run LINENO 1726# ---------------------- 1727# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1728# that executables *can* be run. 1729ac_fn_c_try_run () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 if { { ac_try="$ac_link" 1733case "(($ac_try" in 1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1735 *) ac_try_echo=$ac_try;; 1736esac 1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1738$as_echo "$ac_try_echo"; } >&5 1739 (eval "$ac_link") 2>&5 1740 ac_status=$? 1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1743 { { case "(($ac_try" in 1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1745 *) ac_try_echo=$ac_try;; 1746esac 1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1748$as_echo "$ac_try_echo"; } >&5 1749 (eval "$ac_try") 2>&5 1750 ac_status=$? 1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1752 test $ac_status = 0; }; }; then : 1753 ac_retval=0 1754else 1755 $as_echo "$as_me: program exited with status $ac_status" >&5 1756 $as_echo "$as_me: failed program was:" >&5 1757sed 's/^/| /' conftest.$ac_ext >&5 1758 1759 ac_retval=$ac_status 1760fi 1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1763 as_fn_set_status $ac_retval 1764 1765} # ac_fn_c_try_run 1766 1767# ac_fn_c_check_func LINENO FUNC VAR 1768# ---------------------------------- 1769# Tests whether FUNC exists, setting the cache variable VAR accordingly 1770ac_fn_c_check_func () 1771{ 1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1774$as_echo_n "checking for $2... " >&6; } 1775if eval \${$3+:} false; then : 1776 $as_echo_n "(cached) " >&6 1777else 1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1779/* end confdefs.h. */ 1780/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1781 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1782#define $2 innocuous_$2 1783 1784/* System header to define __stub macros and hopefully few prototypes, 1785 which can conflict with char $2 (); below. 1786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1787 <limits.h> exists even on freestanding compilers. */ 1788 1789#ifdef __STDC__ 1790# include <limits.h> 1791#else 1792# include <assert.h> 1793#endif 1794 1795#undef $2 1796 1797/* Override any GCC internal prototype to avoid an error. 1798 Use char because int might match the return type of a GCC 1799 builtin and then its argument prototype would still apply. */ 1800#ifdef __cplusplus 1801extern "C" 1802#endif 1803char $2 (); 1804/* The GNU C library defines this for functions which it implements 1805 to always fail with ENOSYS. Some functions are actually named 1806 something starting with __ and the normal name is an alias. */ 1807#if defined __stub_$2 || defined __stub___$2 1808choke me 1809#endif 1810 1811int 1812main () 1813{ 1814return $2 (); 1815 ; 1816 return 0; 1817} 1818_ACEOF 1819if ac_fn_c_try_link "$LINENO"; then : 1820 eval "$3=yes" 1821else 1822 eval "$3=no" 1823fi 1824rm -f core conftest.err conftest.$ac_objext \ 1825 conftest$ac_exeext conftest.$ac_ext 1826fi 1827eval ac_res=\$$3 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1829$as_echo "$ac_res" >&6; } 1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1831 1832} # ac_fn_c_check_func 1833 1834# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1835# ------------------------------------------------------- 1836# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1837# the include files in INCLUDES and setting the cache variable VAR 1838# accordingly. 1839ac_fn_c_check_header_mongrel () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 if eval \${$3+:} false; then : 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1844$as_echo_n "checking for $2... " >&6; } 1845if eval \${$3+:} false; then : 1846 $as_echo_n "(cached) " >&6 1847fi 1848eval ac_res=\$$3 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1850$as_echo "$ac_res" >&6; } 1851else 1852 # Is the header compilable? 1853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1854$as_echo_n "checking $2 usability... " >&6; } 1855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1856/* end confdefs.h. */ 1857$4 1858#include <$2> 1859_ACEOF 1860if ac_fn_c_try_compile "$LINENO"; then : 1861 ac_header_compiler=yes 1862else 1863 ac_header_compiler=no 1864fi 1865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1867$as_echo "$ac_header_compiler" >&6; } 1868 1869# Is the header present? 1870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1871$as_echo_n "checking $2 presence... " >&6; } 1872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1873/* end confdefs.h. */ 1874#include <$2> 1875_ACEOF 1876if ac_fn_c_try_cpp "$LINENO"; then : 1877 ac_header_preproc=yes 1878else 1879 ac_header_preproc=no 1880fi 1881rm -f conftest.err conftest.i conftest.$ac_ext 1882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1883$as_echo "$ac_header_preproc" >&6; } 1884 1885# So? What about this header? 1886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1887 yes:no: ) 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1889$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1891$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1892 ;; 1893 no:yes:* ) 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1895$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1897$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1899$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1901$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1903$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1904( $as_echo "## ----------------------------------- ## 1905## Report this to tech@millistream.com ## 1906## ----------------------------------- ##" 1907 ) | sed "s/^/$as_me: WARNING: /" >&2 1908 ;; 1909esac 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1911$as_echo_n "checking for $2... " >&6; } 1912if eval \${$3+:} false; then : 1913 $as_echo_n "(cached) " >&6 1914else 1915 eval "$3=\$ac_header_compiler" 1916fi 1917eval ac_res=\$$3 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1919$as_echo "$ac_res" >&6; } 1920fi 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 1923} # ac_fn_c_check_header_mongrel 1924 1925# ac_fn_c_find_uintX_t LINENO BITS VAR 1926# ------------------------------------ 1927# Finds an unsigned integer type with width BITS, setting cache variable VAR 1928# accordingly. 1929ac_fn_c_find_uintX_t () 1930{ 1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1933$as_echo_n "checking for uint$2_t... " >&6; } 1934if eval \${$3+:} false; then : 1935 $as_echo_n "(cached) " >&6 1936else 1937 eval "$3=no" 1938 # Order is important - never check a type that is potentially smaller 1939 # than half of the expected target width. 1940 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1941 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944$ac_includes_default 1945int 1946main () 1947{ 1948static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1949test_array [0] = 0; 1950return test_array [0]; 1951 1952 ; 1953 return 0; 1954} 1955_ACEOF 1956if ac_fn_c_try_compile "$LINENO"; then : 1957 case $ac_type in #( 1958 uint$2_t) : 1959 eval "$3=yes" ;; #( 1960 *) : 1961 eval "$3=\$ac_type" ;; 1962esac 1963fi 1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1965 if eval test \"x\$"$3"\" = x"no"; then : 1966 1967else 1968 break 1969fi 1970 done 1971fi 1972eval ac_res=\$$3 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1974$as_echo "$ac_res" >&6; } 1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1976 1977} # ac_fn_c_find_uintX_t 1978 1979# ac_fn_c_find_intX_t LINENO BITS VAR 1980# ----------------------------------- 1981# Finds a signed integer type with width BITS, setting cache variable VAR 1982# accordingly. 1983ac_fn_c_find_intX_t () 1984{ 1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 1987$as_echo_n "checking for int$2_t... " >&6; } 1988if eval \${$3+:} false; then : 1989 $as_echo_n "(cached) " >&6 1990else 1991 eval "$3=no" 1992 # Order is important - never check a type that is potentially smaller 1993 # than half of the expected target width. 1994 for ac_type in int$2_t 'int' 'long int' \ 1995 'long long int' 'short int' 'signed char'; do 1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997/* end confdefs.h. */ 1998$ac_includes_default 1999 enum { N = $2 / 2 - 1 }; 2000int 2001main () 2002{ 2003static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2004test_array [0] = 0; 2005return test_array [0]; 2006 2007 ; 2008 return 0; 2009} 2010_ACEOF 2011if ac_fn_c_try_compile "$LINENO"; then : 2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2013/* end confdefs.h. */ 2014$ac_includes_default 2015 enum { N = $2 / 2 - 1 }; 2016int 2017main () 2018{ 2019static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2020 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2021test_array [0] = 0; 2022return test_array [0]; 2023 2024 ; 2025 return 0; 2026} 2027_ACEOF 2028if ac_fn_c_try_compile "$LINENO"; then : 2029 2030else 2031 case $ac_type in #( 2032 int$2_t) : 2033 eval "$3=yes" ;; #( 2034 *) : 2035 eval "$3=\$ac_type" ;; 2036esac 2037fi 2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2039fi 2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2041 if eval test \"x\$"$3"\" = x"no"; then : 2042 2043else 2044 break 2045fi 2046 done 2047fi 2048eval ac_res=\$$3 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2050$as_echo "$ac_res" >&6; } 2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2052 2053} # ac_fn_c_find_intX_t 2054 2055# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2056# ------------------------------------------- 2057# Tests whether TYPE exists after having included INCLUDES, setting cache 2058# variable VAR accordingly. 2059ac_fn_c_check_type () 2060{ 2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2063$as_echo_n "checking for $2... " >&6; } 2064if eval \${$3+:} false; then : 2065 $as_echo_n "(cached) " >&6 2066else 2067 eval "$3=no" 2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2069/* end confdefs.h. */ 2070$4 2071int 2072main () 2073{ 2074if (sizeof ($2)) 2075 return 0; 2076 ; 2077 return 0; 2078} 2079_ACEOF 2080if ac_fn_c_try_compile "$LINENO"; then : 2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2082/* end confdefs.h. */ 2083$4 2084int 2085main () 2086{ 2087if (sizeof (($2))) 2088 return 0; 2089 ; 2090 return 0; 2091} 2092_ACEOF 2093if ac_fn_c_try_compile "$LINENO"; then : 2094 2095else 2096 eval "$3=yes" 2097fi 2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2099fi 2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2101fi 2102eval ac_res=\$$3 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2104$as_echo "$ac_res" >&6; } 2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2106 2107} # ac_fn_c_check_type 2108cat >config.log <<_ACEOF 2109This file contains any messages produced by compilers while 2110running configure, to aid debugging if configure makes a mistake. 2111 2112It was created by libmdf $as_me 1.0.21, which was 2113generated by GNU Autoconf 2.69. Invocation command line was 2114 2115 $ $0 $@ 2116 2117_ACEOF 2118exec 5>>config.log 2119{ 2120cat <<_ASUNAME 2121## --------- ## 2122## Platform. ## 2123## --------- ## 2124 2125hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2126uname -m = `(uname -m) 2>/dev/null || echo unknown` 2127uname -r = `(uname -r) 2>/dev/null || echo unknown` 2128uname -s = `(uname -s) 2>/dev/null || echo unknown` 2129uname -v = `(uname -v) 2>/dev/null || echo unknown` 2130 2131/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2132/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2133 2134/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2135/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2136/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2137/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2138/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2139/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2140/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2141 2142_ASUNAME 2143 2144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2145for as_dir in $PATH 2146do 2147 IFS=$as_save_IFS 2148 test -z "$as_dir" && as_dir=. 2149 $as_echo "PATH: $as_dir" 2150 done 2151IFS=$as_save_IFS 2152 2153} >&5 2154 2155cat >&5 <<_ACEOF 2156 2157 2158## ----------- ## 2159## Core tests. ## 2160## ----------- ## 2161 2162_ACEOF 2163 2164 2165# Keep a trace of the command line. 2166# Strip out --no-create and --no-recursion so they do not pile up. 2167# Strip out --silent because we don't want to record it for future runs. 2168# Also quote any args containing shell meta-characters. 2169# Make two passes to allow for proper duplicate-argument suppression. 2170ac_configure_args= 2171ac_configure_args0= 2172ac_configure_args1= 2173ac_must_keep_next=false 2174for ac_pass in 1 2 2175do 2176 for ac_arg 2177 do 2178 case $ac_arg in 2179 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2181 | -silent | --silent | --silen | --sile | --sil) 2182 continue ;; 2183 *\'*) 2184 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2185 esac 2186 case $ac_pass in 2187 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2188 2) 2189 as_fn_append ac_configure_args1 " '$ac_arg'" 2190 if test $ac_must_keep_next = true; then 2191 ac_must_keep_next=false # Got value, back to normal. 2192 else 2193 case $ac_arg in 2194 *=* | --config-cache | -C | -disable-* | --disable-* \ 2195 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2196 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2197 | -with-* | --with-* | -without-* | --without-* | --x) 2198 case "$ac_configure_args0 " in 2199 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2200 esac 2201 ;; 2202 -* ) ac_must_keep_next=true ;; 2203 esac 2204 fi 2205 as_fn_append ac_configure_args " '$ac_arg'" 2206 ;; 2207 esac 2208 done 2209done 2210{ ac_configure_args0=; unset ac_configure_args0;} 2211{ ac_configure_args1=; unset ac_configure_args1;} 2212 2213# When interrupted or exit'd, cleanup temporary files, and complete 2214# config.log. We remove comments because anyway the quotes in there 2215# would cause problems or look ugly. 2216# WARNING: Use '\'' to represent an apostrophe within the trap. 2217# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2218trap 'exit_status=$? 2219 # Save into config.log some information that might help in debugging. 2220 { 2221 echo 2222 2223 $as_echo "## ---------------- ## 2224## Cache variables. ## 2225## ---------------- ##" 2226 echo 2227 # The following way of writing the cache mishandles newlines in values, 2228( 2229 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2230 eval ac_val=\$$ac_var 2231 case $ac_val in #( 2232 *${as_nl}*) 2233 case $ac_var in #( 2234 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2235$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2236 esac 2237 case $ac_var in #( 2238 _ | IFS | as_nl) ;; #( 2239 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2240 *) { eval $ac_var=; unset $ac_var;} ;; 2241 esac ;; 2242 esac 2243 done 2244 (set) 2>&1 | 2245 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2246 *${as_nl}ac_space=\ *) 2247 sed -n \ 2248 "s/'\''/'\''\\\\'\'''\''/g; 2249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2250 ;; #( 2251 *) 2252 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2253 ;; 2254 esac | 2255 sort 2256) 2257 echo 2258 2259 $as_echo "## ----------------- ## 2260## Output variables. ## 2261## ----------------- ##" 2262 echo 2263 for ac_var in $ac_subst_vars 2264 do 2265 eval ac_val=\$$ac_var 2266 case $ac_val in 2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2268 esac 2269 $as_echo "$ac_var='\''$ac_val'\''" 2270 done | sort 2271 echo 2272 2273 if test -n "$ac_subst_files"; then 2274 $as_echo "## ------------------- ## 2275## File substitutions. ## 2276## ------------------- ##" 2277 echo 2278 for ac_var in $ac_subst_files 2279 do 2280 eval ac_val=\$$ac_var 2281 case $ac_val in 2282 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2283 esac 2284 $as_echo "$ac_var='\''$ac_val'\''" 2285 done | sort 2286 echo 2287 fi 2288 2289 if test -s confdefs.h; then 2290 $as_echo "## ----------- ## 2291## confdefs.h. ## 2292## ----------- ##" 2293 echo 2294 cat confdefs.h 2295 echo 2296 fi 2297 test "$ac_signal" != 0 && 2298 $as_echo "$as_me: caught signal $ac_signal" 2299 $as_echo "$as_me: exit $exit_status" 2300 } >&5 2301 rm -f core *.core core.conftest.* && 2302 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2303 exit $exit_status 2304' 0 2305for ac_signal in 1 2 13 15; do 2306 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2307done 2308ac_signal=0 2309 2310# confdefs.h avoids OS command line length limits that DEFS can exceed. 2311rm -f -r conftest* confdefs.h 2312 2313$as_echo "/* confdefs.h */" > confdefs.h 2314 2315# Predefined preprocessor variables. 2316 2317cat >>confdefs.h <<_ACEOF 2318#define PACKAGE_NAME "$PACKAGE_NAME" 2319_ACEOF 2320 2321cat >>confdefs.h <<_ACEOF 2322#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2323_ACEOF 2324 2325cat >>confdefs.h <<_ACEOF 2326#define PACKAGE_VERSION "$PACKAGE_VERSION" 2327_ACEOF 2328 2329cat >>confdefs.h <<_ACEOF 2330#define PACKAGE_STRING "$PACKAGE_STRING" 2331_ACEOF 2332 2333cat >>confdefs.h <<_ACEOF 2334#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2335_ACEOF 2336 2337cat >>confdefs.h <<_ACEOF 2338#define PACKAGE_URL "$PACKAGE_URL" 2339_ACEOF 2340 2341 2342# Let the site file select an alternate cache file if it wants to. 2343# Prefer an explicitly selected file to automatically selected ones. 2344ac_site_file1=NONE 2345ac_site_file2=NONE 2346if test -n "$CONFIG_SITE"; then 2347 # We do not want a PATH search for config.site. 2348 case $CONFIG_SITE in #(( 2349 -*) ac_site_file1=./$CONFIG_SITE;; 2350 */*) ac_site_file1=$CONFIG_SITE;; 2351 *) ac_site_file1=./$CONFIG_SITE;; 2352 esac 2353elif test "x$prefix" != xNONE; then 2354 ac_site_file1=$prefix/share/config.site 2355 ac_site_file2=$prefix/etc/config.site 2356else 2357 ac_site_file1=$ac_default_prefix/share/config.site 2358 ac_site_file2=$ac_default_prefix/etc/config.site 2359fi 2360for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2361do 2362 test "x$ac_site_file" = xNONE && continue 2363 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2365$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2366 sed 's/^/| /' "$ac_site_file" >&5 2367 . "$ac_site_file" \ 2368 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2370as_fn_error $? "failed to load site script $ac_site_file 2371See \`config.log' for more details" "$LINENO" 5; } 2372 fi 2373done 2374 2375if test -r "$cache_file"; then 2376 # Some versions of bash will fail to source /dev/null (special files 2377 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2378 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2380$as_echo "$as_me: loading cache $cache_file" >&6;} 2381 case $cache_file in 2382 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2383 *) . "./$cache_file";; 2384 esac 2385 fi 2386else 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2388$as_echo "$as_me: creating cache $cache_file" >&6;} 2389 >$cache_file 2390fi 2391 2392# Check that the precious variables saved in the cache have kept the same 2393# value. 2394ac_cache_corrupted=false 2395for ac_var in $ac_precious_vars; do 2396 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2397 eval ac_new_set=\$ac_env_${ac_var}_set 2398 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2399 eval ac_new_val=\$ac_env_${ac_var}_value 2400 case $ac_old_set,$ac_new_set in 2401 set,) 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2403$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2404 ac_cache_corrupted=: ;; 2405 ,set) 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2407$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2408 ac_cache_corrupted=: ;; 2409 ,);; 2410 *) 2411 if test "x$ac_old_val" != "x$ac_new_val"; then 2412 # differences in whitespace do not lead to failure. 2413 ac_old_val_w=`echo x $ac_old_val` 2414 ac_new_val_w=`echo x $ac_new_val` 2415 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2417$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2418 ac_cache_corrupted=: 2419 else 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2421$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2422 eval $ac_var=\$ac_old_val 2423 fi 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2425$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2426 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2427$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2428 fi;; 2429 esac 2430 # Pass precious variables to config.status. 2431 if test "$ac_new_set" = set; then 2432 case $ac_new_val in 2433 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2434 *) ac_arg=$ac_var=$ac_new_val ;; 2435 esac 2436 case " $ac_configure_args " in 2437 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2438 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2439 esac 2440 fi 2441done 2442if $ac_cache_corrupted; then 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2446$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2447 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2448fi 2449## -------------------- ## 2450## Main body of script. ## 2451## -------------------- ## 2452 2453ac_ext=c 2454ac_cpp='$CPP $CPPFLAGS' 2455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2457ac_compiler_gnu=$ac_cv_c_compiler_gnu 2458 2459 2460 2461ac_aux_dir= 2462for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2463 if test -f "$ac_dir/install-sh"; then 2464 ac_aux_dir=$ac_dir 2465 ac_install_sh="$ac_aux_dir/install-sh -c" 2466 break 2467 elif test -f "$ac_dir/install.sh"; then 2468 ac_aux_dir=$ac_dir 2469 ac_install_sh="$ac_aux_dir/install.sh -c" 2470 break 2471 elif test -f "$ac_dir/shtool"; then 2472 ac_aux_dir=$ac_dir 2473 ac_install_sh="$ac_aux_dir/shtool install -c" 2474 break 2475 fi 2476done 2477if test -z "$ac_aux_dir"; then 2478 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2479fi 2480 2481# These three variables are undocumented and unsupported, 2482# and are intended to be withdrawn in a future Autoconf release. 2483# They can cause serious problems if a builder's source tree is in a directory 2484# whose full name contains unusual characters. 2485ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2486ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2487ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2488 2489 2490# Make sure we can run config.sub. 2491$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2492 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2493 2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2495$as_echo_n "checking build system type... " >&6; } 2496if ${ac_cv_build+:} false; then : 2497 $as_echo_n "(cached) " >&6 2498else 2499 ac_build_alias=$build_alias 2500test "x$ac_build_alias" = x && 2501 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2502test "x$ac_build_alias" = x && 2503 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2504ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2506 2507fi 2508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2509$as_echo "$ac_cv_build" >&6; } 2510case $ac_cv_build in 2511*-*-*) ;; 2512*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2513esac 2514build=$ac_cv_build 2515ac_save_IFS=$IFS; IFS='-' 2516set x $ac_cv_build 2517shift 2518build_cpu=$1 2519build_vendor=$2 2520shift; shift 2521# Remember, the first character of IFS is used to create $*, 2522# except with old shells: 2523build_os=$* 2524IFS=$ac_save_IFS 2525case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2526 2527 2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2529$as_echo_n "checking host system type... " >&6; } 2530if ${ac_cv_host+:} false; then : 2531 $as_echo_n "(cached) " >&6 2532else 2533 if test "x$host_alias" = x; then 2534 ac_cv_host=$ac_cv_build 2535else 2536 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2537 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2538fi 2539 2540fi 2541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2542$as_echo "$ac_cv_host" >&6; } 2543case $ac_cv_host in 2544*-*-*) ;; 2545*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2546esac 2547host=$ac_cv_host 2548ac_save_IFS=$IFS; IFS='-' 2549set x $ac_cv_host 2550shift 2551host_cpu=$1 2552host_vendor=$2 2553shift; shift 2554# Remember, the first character of IFS is used to create $*, 2555# except with old shells: 2556host_os=$* 2557IFS=$ac_save_IFS 2558case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2559 2560 2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2562$as_echo_n "checking target system type... " >&6; } 2563if ${ac_cv_target+:} false; then : 2564 $as_echo_n "(cached) " >&6 2565else 2566 if test "x$target_alias" = x; then 2567 ac_cv_target=$ac_cv_host 2568else 2569 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2570 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2571fi 2572 2573fi 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2575$as_echo "$ac_cv_target" >&6; } 2576case $ac_cv_target in 2577*-*-*) ;; 2578*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2579esac 2580target=$ac_cv_target 2581ac_save_IFS=$IFS; IFS='-' 2582set x $ac_cv_target 2583shift 2584target_cpu=$1 2585target_vendor=$2 2586shift; shift 2587# Remember, the first character of IFS is used to create $*, 2588# except with old shells: 2589target_os=$* 2590IFS=$ac_save_IFS 2591case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2592 2593 2594# The aliases save the names the user supplied, while $host etc. 2595# will get canonicalized. 2596test -n "$target_alias" && 2597 test "$program_prefix$program_suffix$program_transform_name" = \ 2598 NONENONEs,x,x, && 2599 program_prefix=${target_alias}- 2600 2601 2602ac_config_headers="$ac_config_headers config.h" 2603 2604 2605 2606am__api_version='1.15' 2607 2608# Find a good install program. We prefer a C program (faster), 2609# so one script is as good as another. But avoid the broken or 2610# incompatible versions: 2611# SysV /etc/install, /usr/sbin/install 2612# SunOS /usr/etc/install 2613# IRIX /sbin/install 2614# AIX /bin/install 2615# AmigaOS /C/install, which installs bootblocks on floppy discs 2616# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2617# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2618# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2619# OS/2's system install, which has a completely different semantic 2620# ./install, which can be erroneously created by make from ./install.sh. 2621# Reject install programs that cannot install multiple files. 2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2623$as_echo_n "checking for a BSD-compatible install... " >&6; } 2624if test -z "$INSTALL"; then 2625if ${ac_cv_path_install+:} false; then : 2626 $as_echo_n "(cached) " >&6 2627else 2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH 2630do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 # Account for people who put trailing slashes in PATH elements. 2634case $as_dir/ in #(( 2635 ./ | .// | /[cC]/* | \ 2636 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2637 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2638 /usr/ucb/* ) ;; 2639 *) 2640 # OSF1 and SCO ODT 3.0 have their own names for install. 2641 # Don't use installbsd from OSF since it installs stuff as root 2642 # by default. 2643 for ac_prog in ginstall scoinst install; do 2644 for ac_exec_ext in '' $ac_executable_extensions; do 2645 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2646 if test $ac_prog = install && 2647 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2648 # AIX install. It has an incompatible calling convention. 2649 : 2650 elif test $ac_prog = install && 2651 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2652 # program-specific install script used by HP pwplus--don't use. 2653 : 2654 else 2655 rm -rf conftest.one conftest.two conftest.dir 2656 echo one > conftest.one 2657 echo two > conftest.two 2658 mkdir conftest.dir 2659 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2660 test -s conftest.one && test -s conftest.two && 2661 test -s conftest.dir/conftest.one && 2662 test -s conftest.dir/conftest.two 2663 then 2664 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2665 break 3 2666 fi 2667 fi 2668 fi 2669 done 2670 done 2671 ;; 2672esac 2673 2674 done 2675IFS=$as_save_IFS 2676 2677rm -rf conftest.one conftest.two conftest.dir 2678 2679fi 2680 if test "${ac_cv_path_install+set}" = set; then 2681 INSTALL=$ac_cv_path_install 2682 else 2683 # As a last resort, use the slow shell script. Don't cache a 2684 # value for INSTALL within a source directory, because that will 2685 # break other packages using the cache if that directory is 2686 # removed, or if the value is a relative name. 2687 INSTALL=$ac_install_sh 2688 fi 2689fi 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2691$as_echo "$INSTALL" >&6; } 2692 2693# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2694# It thinks the first close brace ends the variable substitution. 2695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2696 2697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2698 2699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2700 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2702$as_echo_n "checking whether build environment is sane... " >&6; } 2703# Reject unsafe characters in $srcdir or the absolute working directory 2704# name. Accept space and tab only in the latter. 2705am_lf=' 2706' 2707case `pwd` in 2708 *[\\\"\#\$\&\'\`$am_lf]*) 2709 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2710esac 2711case $srcdir in 2712 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2713 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2714esac 2715 2716# Do 'set' in a subshell so we don't clobber the current shell's 2717# arguments. Must try -L first in case configure is actually a 2718# symlink; some systems play weird games with the mod time of symlinks 2719# (eg FreeBSD returns the mod time of the symlink's containing 2720# directory). 2721if ( 2722 am_has_slept=no 2723 for am_try in 1 2; do 2724 echo "timestamp, slept: $am_has_slept" > conftest.file 2725 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2726 if test "$*" = "X"; then 2727 # -L didn't work. 2728 set X `ls -t "$srcdir/configure" conftest.file` 2729 fi 2730 if test "$*" != "X $srcdir/configure conftest.file" \ 2731 && test "$*" != "X conftest.file $srcdir/configure"; then 2732 2733 # If neither matched, then we have a broken ls. This can happen 2734 # if, for instance, CONFIG_SHELL is bash and it inherits a 2735 # broken ls alias from the environment. This has actually 2736 # happened. Such a system could not be considered "sane". 2737 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2738 alias in your environment" "$LINENO" 5 2739 fi 2740 if test "$2" = conftest.file || test $am_try -eq 2; then 2741 break 2742 fi 2743 # Just in case. 2744 sleep 1 2745 am_has_slept=yes 2746 done 2747 test "$2" = conftest.file 2748 ) 2749then 2750 # Ok. 2751 : 2752else 2753 as_fn_error $? "newly created file is older than distributed files! 2754Check your system clock" "$LINENO" 5 2755fi 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2757$as_echo "yes" >&6; } 2758# If we didn't sleep, we still need to ensure time stamps of config.status and 2759# generated files are strictly newer. 2760am_sleep_pid= 2761if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2762 ( sleep 1 ) & 2763 am_sleep_pid=$! 2764fi 2765 2766rm -f conftest.file 2767 2768test "$program_prefix" != NONE && 2769 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2770# Use a double $ so make ignores it. 2771test "$program_suffix" != NONE && 2772 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2773# Double any \ or $. 2774# By default was `s,x,x', remove it if useless. 2775ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2776program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2777 2778# Expand $ac_aux_dir to an absolute path. 2779am_aux_dir=`cd "$ac_aux_dir" && pwd` 2780 2781if test x"${MISSING+set}" != xset; then 2782 case $am_aux_dir in 2783 *\ * | *\ *) 2784 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2785 *) 2786 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2787 esac 2788fi 2789# Use eval to expand $SHELL 2790if eval "$MISSING --is-lightweight"; then 2791 am_missing_run="$MISSING " 2792else 2793 am_missing_run= 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2795$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2796fi 2797 2798if test x"${install_sh+set}" != xset; then 2799 case $am_aux_dir in 2800 *\ * | *\ *) 2801 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2802 *) 2803 install_sh="\${SHELL} $am_aux_dir/install-sh" 2804 esac 2805fi 2806 2807# Installed binaries are usually stripped using 'strip' when the user 2808# run "make install-strip". However 'strip' might not be the right 2809# tool to use in cross-compilation environments, therefore Automake 2810# will honor the 'STRIP' environment variable to overrule this program. 2811if test "$cross_compiling" != no; then 2812 if test -n "$ac_tool_prefix"; then 2813 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2814set dummy ${ac_tool_prefix}strip; ac_word=$2 2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2816$as_echo_n "checking for $ac_word... " >&6; } 2817if ${ac_cv_prog_STRIP+:} false; then : 2818 $as_echo_n "(cached) " >&6 2819else 2820 if test -n "$STRIP"; then 2821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2822else 2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2824for as_dir in $PATH 2825do 2826 IFS=$as_save_IFS 2827 test -z "$as_dir" && as_dir=. 2828 for ac_exec_ext in '' $ac_executable_extensions; do 2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2830 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2832 break 2 2833 fi 2834done 2835 done 2836IFS=$as_save_IFS 2837 2838fi 2839fi 2840STRIP=$ac_cv_prog_STRIP 2841if test -n "$STRIP"; then 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2843$as_echo "$STRIP" >&6; } 2844else 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2846$as_echo "no" >&6; } 2847fi 2848 2849 2850fi 2851if test -z "$ac_cv_prog_STRIP"; then 2852 ac_ct_STRIP=$STRIP 2853 # Extract the first word of "strip", so it can be a program name with args. 2854set dummy strip; ac_word=$2 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2856$as_echo_n "checking for $ac_word... " >&6; } 2857if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2858 $as_echo_n "(cached) " >&6 2859else 2860 if test -n "$ac_ct_STRIP"; then 2861 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2862else 2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2864for as_dir in $PATH 2865do 2866 IFS=$as_save_IFS 2867 test -z "$as_dir" && as_dir=. 2868 for ac_exec_ext in '' $ac_executable_extensions; do 2869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2870 ac_cv_prog_ac_ct_STRIP="strip" 2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2872 break 2 2873 fi 2874done 2875 done 2876IFS=$as_save_IFS 2877 2878fi 2879fi 2880ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2881if test -n "$ac_ct_STRIP"; then 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2883$as_echo "$ac_ct_STRIP" >&6; } 2884else 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2886$as_echo "no" >&6; } 2887fi 2888 2889 if test "x$ac_ct_STRIP" = x; then 2890 STRIP=":" 2891 else 2892 case $cross_compiling:$ac_tool_warned in 2893yes:) 2894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2896ac_tool_warned=yes ;; 2897esac 2898 STRIP=$ac_ct_STRIP 2899 fi 2900else 2901 STRIP="$ac_cv_prog_STRIP" 2902fi 2903 2904fi 2905INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2906 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2908$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2909if test -z "$MKDIR_P"; then 2910 if ${ac_cv_path_mkdir+:} false; then : 2911 $as_echo_n "(cached) " >&6 2912else 2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2914for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2915do 2916 IFS=$as_save_IFS 2917 test -z "$as_dir" && as_dir=. 2918 for ac_prog in mkdir gmkdir; do 2919 for ac_exec_ext in '' $ac_executable_extensions; do 2920 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2921 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2922 'mkdir (GNU coreutils) '* | \ 2923 'mkdir (coreutils) '* | \ 2924 'mkdir (fileutils) '4.1*) 2925 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2926 break 3;; 2927 esac 2928 done 2929 done 2930 done 2931IFS=$as_save_IFS 2932 2933fi 2934 2935 test -d ./--version && rmdir ./--version 2936 if test "${ac_cv_path_mkdir+set}" = set; then 2937 MKDIR_P="$ac_cv_path_mkdir -p" 2938 else 2939 # As a last resort, use the slow shell script. Don't cache a 2940 # value for MKDIR_P within a source directory, because that will 2941 # break other packages using the cache if that directory is 2942 # removed, or if the value is a relative name. 2943 MKDIR_P="$ac_install_sh -d" 2944 fi 2945fi 2946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2947$as_echo "$MKDIR_P" >&6; } 2948 2949for ac_prog in gawk mawk nawk awk 2950do 2951 # Extract the first word of "$ac_prog", so it can be a program name with args. 2952set dummy $ac_prog; ac_word=$2 2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2954$as_echo_n "checking for $ac_word... " >&6; } 2955if ${ac_cv_prog_AWK+:} false; then : 2956 $as_echo_n "(cached) " >&6 2957else 2958 if test -n "$AWK"; then 2959 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2960else 2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2962for as_dir in $PATH 2963do 2964 IFS=$as_save_IFS 2965 test -z "$as_dir" && as_dir=. 2966 for ac_exec_ext in '' $ac_executable_extensions; do 2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2968 ac_cv_prog_AWK="$ac_prog" 2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2970 break 2 2971 fi 2972done 2973 done 2974IFS=$as_save_IFS 2975 2976fi 2977fi 2978AWK=$ac_cv_prog_AWK 2979if test -n "$AWK"; then 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2981$as_echo "$AWK" >&6; } 2982else 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2984$as_echo "no" >&6; } 2985fi 2986 2987 2988 test -n "$AWK" && break 2989done 2990 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2992$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2993set x ${MAKE-make} 2994ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2995if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2996 $as_echo_n "(cached) " >&6 2997else 2998 cat >conftest.make <<\_ACEOF 2999SHELL = /bin/sh 3000all: 3001 @echo '@@@%%%=$(MAKE)=@@@%%%' 3002_ACEOF 3003# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3004case `${MAKE-make} -f conftest.make 2>/dev/null` in 3005 *@@@%%%=?*=@@@%%%*) 3006 eval ac_cv_prog_make_${ac_make}_set=yes;; 3007 *) 3008 eval ac_cv_prog_make_${ac_make}_set=no;; 3009esac 3010rm -f conftest.make 3011fi 3012if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3014$as_echo "yes" >&6; } 3015 SET_MAKE= 3016else 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3018$as_echo "no" >&6; } 3019 SET_MAKE="MAKE=${MAKE-make}" 3020fi 3021 3022rm -rf .tst 2>/dev/null 3023mkdir .tst 2>/dev/null 3024if test -d .tst; then 3025 am__leading_dot=. 3026else 3027 am__leading_dot=_ 3028fi 3029rmdir .tst 2>/dev/null 3030 3031# Check whether --enable-silent-rules was given. 3032if test "${enable_silent_rules+set}" = set; then : 3033 enableval=$enable_silent_rules; 3034fi 3035 3036case $enable_silent_rules in # ((( 3037 yes) AM_DEFAULT_VERBOSITY=0;; 3038 no) AM_DEFAULT_VERBOSITY=1;; 3039 *) AM_DEFAULT_VERBOSITY=1;; 3040esac 3041am_make=${MAKE-make} 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3043$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3044if ${am_cv_make_support_nested_variables+:} false; then : 3045 $as_echo_n "(cached) " >&6 3046else 3047 if $as_echo 'TRUE=$(BAR$(V)) 3048BAR0=false 3049BAR1=true 3050V=1 3051am__doit: 3052 @$(TRUE) 3053.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3054 am_cv_make_support_nested_variables=yes 3055else 3056 am_cv_make_support_nested_variables=no 3057fi 3058fi 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3060$as_echo "$am_cv_make_support_nested_variables" >&6; } 3061if test $am_cv_make_support_nested_variables = yes; then 3062 AM_V='$(V)' 3063 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3064else 3065 AM_V=$AM_DEFAULT_VERBOSITY 3066 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3067fi 3068AM_BACKSLASH='\' 3069 3070if test "`cd $srcdir && pwd`" != "`pwd`"; then 3071 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3072 # is not polluted with repeated "-I." 3073 am__isrc=' -I$(srcdir)' 3074 # test to see if srcdir already configured 3075 if test -f $srcdir/config.status; then 3076 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3077 fi 3078fi 3079 3080# test whether we have cygpath 3081if test -z "$CYGPATH_W"; then 3082 if (cygpath --version) >/dev/null 2>/dev/null; then 3083 CYGPATH_W='cygpath -w' 3084 else 3085 CYGPATH_W=echo 3086 fi 3087fi 3088 3089 3090# Define the identity of the package. 3091 PACKAGE='libmdf' 3092 VERSION='1.0.21' 3093 3094 3095cat >>confdefs.h <<_ACEOF 3096#define PACKAGE "$PACKAGE" 3097_ACEOF 3098 3099 3100cat >>confdefs.h <<_ACEOF 3101#define VERSION "$VERSION" 3102_ACEOF 3103 3104# Some tools Automake needs. 3105 3106ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3107 3108 3109AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3110 3111 3112AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3113 3114 3115AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3116 3117 3118MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3119 3120# For better backward compatibility. To be removed once Automake 1.9.x 3121# dies out for good. For more background, see: 3122# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3123# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3124mkdir_p='$(MKDIR_P)' 3125 3126# We need awk for the "check" target (and possibly the TAP driver). The 3127# system "awk" is bad on some platforms. 3128# Always define AMTAR for backward compatibility. Yes, it's still used 3129# in the wild :-( We should find a proper way to deprecate it ... 3130AMTAR='$${TAR-tar}' 3131 3132 3133# We'll loop over all known methods to create a tar archive until one works. 3134_am_tools='gnutar pax cpio none' 3135 3136am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3137 3138 3139 3140 3141 3142 3143# POSIX will say in a future version that running "rm -f" with no argument 3144# is OK; and we want to be able to make that assumption in our Makefile 3145# recipes. So use an aggressive probe to check that the usage we want is 3146# actually supported "in the wild" to an acceptable degree. 3147# See automake bug#10828. 3148# To make any issue more visible, cause the running configure to be aborted 3149# by default if the 'rm' program in use doesn't match our expectations; the 3150# user can still override this though. 3151if rm -f && rm -fr && rm -rf; then : OK; else 3152 cat >&2 <<'END' 3153Oops! 3154 3155Your 'rm' program seems unable to run without file operands specified 3156on the command line, even when the '-f' option is present. This is contrary 3157to the behaviour of most rm programs out there, and not conforming with 3158the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3159 3160Please tell bug-automake@gnu.org about your system, including the value 3161of your $PATH and any error possibly output before this message. This 3162can help us improve future automake versions. 3163 3164END 3165 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3166 echo 'Configuration will proceed anyway, since you have set the' >&2 3167 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3168 echo >&2 3169 else 3170 cat >&2 <<'END' 3171Aborting the configuration process, to ensure you take notice of the issue. 3172 3173You can download and install GNU coreutils to get an 'rm' implementation 3174that behaves properly: <http://www.gnu.org/software/coreutils/>. 3175 3176If you want to complete the configuration process using your problematic 3177'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3178to "yes", and re-run configure. 3179 3180END 3181 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3182 fi 3183fi 3184 3185 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3187$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3188 # Check whether --enable-maintainer-mode was given. 3189if test "${enable_maintainer_mode+set}" = set; then : 3190 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3191else 3192 USE_MAINTAINER_MODE=no 3193fi 3194 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3196$as_echo "$USE_MAINTAINER_MODE" >&6; } 3197 if test $USE_MAINTAINER_MODE = yes; then 3198 MAINTAINER_MODE_TRUE= 3199 MAINTAINER_MODE_FALSE='#' 3200else 3201 MAINTAINER_MODE_TRUE='#' 3202 MAINTAINER_MODE_FALSE= 3203fi 3204 3205 MAINT=$MAINTAINER_MODE_TRUE 3206 3207 3208case `pwd` in 3209 *\ * | *\ *) 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3211$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3212esac 3213 3214 3215 3216macro_version='2.4.6' 3217macro_revision='2.4.6' 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231ltmain=$ac_aux_dir/ltmain.sh 3232 3233# Backslashify metacharacters that are still active within 3234# double-quoted strings. 3235sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3236 3237# Same as above, but do not quote variable references. 3238double_quote_subst='s/\(["`\\]\)/\\\1/g' 3239 3240# Sed substitution to delay expansion of an escaped shell variable in a 3241# double_quote_subst'ed string. 3242delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3243 3244# Sed substitution to delay expansion of an escaped single quote. 3245delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3246 3247# Sed substitution to avoid accidental globbing in evaled expressions 3248no_glob_subst='s/\*/\\\*/g' 3249 3250ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3251ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3252ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3253 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3255$as_echo_n "checking how to print strings... " >&6; } 3256# Test print first, because it will be a builtin if present. 3257if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3258 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3259 ECHO='print -r --' 3260elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3261 ECHO='printf %s\n' 3262else 3263 # Use this function as a fallback that always works. 3264 func_fallback_echo () 3265 { 3266 eval 'cat <<_LTECHO_EOF 3267$1 3268_LTECHO_EOF' 3269 } 3270 ECHO='func_fallback_echo' 3271fi 3272 3273# func_echo_all arg... 3274# Invoke $ECHO with all args, space-separated. 3275func_echo_all () 3276{ 3277 $ECHO "" 3278} 3279 3280case $ECHO in 3281 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3282$as_echo "printf" >&6; } ;; 3283 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3284$as_echo "print -r" >&6; } ;; 3285 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3286$as_echo "cat" >&6; } ;; 3287esac 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302DEPDIR="${am__leading_dot}deps" 3303 3304ac_config_commands="$ac_config_commands depfiles" 3305 3306 3307am_make=${MAKE-make} 3308cat > confinc << 'END' 3309am__doit: 3310 @echo this is the am__doit target 3311.PHONY: am__doit 3312END 3313# If we don't find an include directive, just comment out the code. 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3315$as_echo_n "checking for style of include used by $am_make... " >&6; } 3316am__include="#" 3317am__quote= 3318_am_result=none 3319# First try GNU make style include. 3320echo "include confinc" > confmf 3321# Ignore all kinds of additional output from 'make'. 3322case `$am_make -s -f confmf 2> /dev/null` in #( 3323*the\ am__doit\ target*) 3324 am__include=include 3325 am__quote= 3326 _am_result=GNU 3327 ;; 3328esac 3329# Now try BSD make style include. 3330if test "$am__include" = "#"; then 3331 echo '.include "confinc"' > confmf 3332 case `$am_make -s -f confmf 2> /dev/null` in #( 3333 *the\ am__doit\ target*) 3334 am__include=.include 3335 am__quote="\"" 3336 _am_result=BSD 3337 ;; 3338 esac 3339fi 3340 3341 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3343$as_echo "$_am_result" >&6; } 3344rm -f confinc confmf 3345 3346# Check whether --enable-dependency-tracking was given. 3347if test "${enable_dependency_tracking+set}" = set; then : 3348 enableval=$enable_dependency_tracking; 3349fi 3350 3351if test "x$enable_dependency_tracking" != xno; then 3352 am_depcomp="$ac_aux_dir/depcomp" 3353 AMDEPBACKSLASH='\' 3354 am__nodep='_no' 3355fi 3356 if test "x$enable_dependency_tracking" != xno; then 3357 AMDEP_TRUE= 3358 AMDEP_FALSE='#' 3359else 3360 AMDEP_TRUE='#' 3361 AMDEP_FALSE= 3362fi 3363 3364 3365ac_ext=c 3366ac_cpp='$CPP $CPPFLAGS' 3367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3369ac_compiler_gnu=$ac_cv_c_compiler_gnu 3370if test -n "$ac_tool_prefix"; then 3371 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3372set dummy ${ac_tool_prefix}gcc; ac_word=$2 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3374$as_echo_n "checking for $ac_word... " >&6; } 3375if ${ac_cv_prog_CC+:} false; then : 3376 $as_echo_n "(cached) " >&6 3377else 3378 if test -n "$CC"; then 3379 ac_cv_prog_CC="$CC" # Let the user override the test. 3380else 3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3382for as_dir in $PATH 3383do 3384 IFS=$as_save_IFS 3385 test -z "$as_dir" && as_dir=. 3386 for ac_exec_ext in '' $ac_executable_extensions; do 3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3388 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3390 break 2 3391 fi 3392done 3393 done 3394IFS=$as_save_IFS 3395 3396fi 3397fi 3398CC=$ac_cv_prog_CC 3399if test -n "$CC"; then 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3401$as_echo "$CC" >&6; } 3402else 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3404$as_echo "no" >&6; } 3405fi 3406 3407 3408fi 3409if test -z "$ac_cv_prog_CC"; then 3410 ac_ct_CC=$CC 3411 # Extract the first word of "gcc", so it can be a program name with args. 3412set dummy gcc; ac_word=$2 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3414$as_echo_n "checking for $ac_word... " >&6; } 3415if ${ac_cv_prog_ac_ct_CC+:} false; then : 3416 $as_echo_n "(cached) " >&6 3417else 3418 if test -n "$ac_ct_CC"; then 3419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3420else 3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3422for as_dir in $PATH 3423do 3424 IFS=$as_save_IFS 3425 test -z "$as_dir" && as_dir=. 3426 for ac_exec_ext in '' $ac_executable_extensions; do 3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3428 ac_cv_prog_ac_ct_CC="gcc" 3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3430 break 2 3431 fi 3432done 3433 done 3434IFS=$as_save_IFS 3435 3436fi 3437fi 3438ac_ct_CC=$ac_cv_prog_ac_ct_CC 3439if test -n "$ac_ct_CC"; then 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3441$as_echo "$ac_ct_CC" >&6; } 3442else 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3444$as_echo "no" >&6; } 3445fi 3446 3447 if test "x$ac_ct_CC" = x; then 3448 CC="" 3449 else 3450 case $cross_compiling:$ac_tool_warned in 3451yes:) 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3454ac_tool_warned=yes ;; 3455esac 3456 CC=$ac_ct_CC 3457 fi 3458else 3459 CC="$ac_cv_prog_CC" 3460fi 3461 3462if test -z "$CC"; then 3463 if test -n "$ac_tool_prefix"; then 3464 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3465set dummy ${ac_tool_prefix}cc; ac_word=$2 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3467$as_echo_n "checking for $ac_word... " >&6; } 3468if ${ac_cv_prog_CC+:} false; then : 3469 $as_echo_n "(cached) " >&6 3470else 3471 if test -n "$CC"; then 3472 ac_cv_prog_CC="$CC" # Let the user override the test. 3473else 3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3475for as_dir in $PATH 3476do 3477 IFS=$as_save_IFS 3478 test -z "$as_dir" && as_dir=. 3479 for ac_exec_ext in '' $ac_executable_extensions; do 3480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3481 ac_cv_prog_CC="${ac_tool_prefix}cc" 3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3483 break 2 3484 fi 3485done 3486 done 3487IFS=$as_save_IFS 3488 3489fi 3490fi 3491CC=$ac_cv_prog_CC 3492if test -n "$CC"; then 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3494$as_echo "$CC" >&6; } 3495else 3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3497$as_echo "no" >&6; } 3498fi 3499 3500 3501 fi 3502fi 3503if test -z "$CC"; then 3504 # Extract the first word of "cc", so it can be a program name with args. 3505set dummy cc; ac_word=$2 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3507$as_echo_n "checking for $ac_word... " >&6; } 3508if ${ac_cv_prog_CC+:} false; then : 3509 $as_echo_n "(cached) " >&6 3510else 3511 if test -n "$CC"; then 3512 ac_cv_prog_CC="$CC" # Let the user override the test. 3513else 3514 ac_prog_rejected=no 3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3516for as_dir in $PATH 3517do 3518 IFS=$as_save_IFS 3519 test -z "$as_dir" && as_dir=. 3520 for ac_exec_ext in '' $ac_executable_extensions; do 3521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3523 ac_prog_rejected=yes 3524 continue 3525 fi 3526 ac_cv_prog_CC="cc" 3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3528 break 2 3529 fi 3530done 3531 done 3532IFS=$as_save_IFS 3533 3534if test $ac_prog_rejected = yes; then 3535 # We found a bogon in the path, so make sure we never use it. 3536 set dummy $ac_cv_prog_CC 3537 shift 3538 if test $# != 0; then 3539 # We chose a different compiler from the bogus one. 3540 # However, it has the same basename, so the bogon will be chosen 3541 # first if we set CC to just the basename; use the full file name. 3542 shift 3543 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3544 fi 3545fi 3546fi 3547fi 3548CC=$ac_cv_prog_CC 3549if test -n "$CC"; then 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3551$as_echo "$CC" >&6; } 3552else 3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3554$as_echo "no" >&6; } 3555fi 3556 3557 3558fi 3559if test -z "$CC"; then 3560 if test -n "$ac_tool_prefix"; then 3561 for ac_prog in cl.exe 3562 do 3563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3564set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3566$as_echo_n "checking for $ac_word... " >&6; } 3567if ${ac_cv_prog_CC+:} false; then : 3568 $as_echo_n "(cached) " >&6 3569else 3570 if test -n "$CC"; then 3571 ac_cv_prog_CC="$CC" # Let the user override the test. 3572else 3573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3574for as_dir in $PATH 3575do 3576 IFS=$as_save_IFS 3577 test -z "$as_dir" && as_dir=. 3578 for ac_exec_ext in '' $ac_executable_extensions; do 3579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3580 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3582 break 2 3583 fi 3584done 3585 done 3586IFS=$as_save_IFS 3587 3588fi 3589fi 3590CC=$ac_cv_prog_CC 3591if test -n "$CC"; then 3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3593$as_echo "$CC" >&6; } 3594else 3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3596$as_echo "no" >&6; } 3597fi 3598 3599 3600 test -n "$CC" && break 3601 done 3602fi 3603if test -z "$CC"; then 3604 ac_ct_CC=$CC 3605 for ac_prog in cl.exe 3606do 3607 # Extract the first word of "$ac_prog", so it can be a program name with args. 3608set dummy $ac_prog; ac_word=$2 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3610$as_echo_n "checking for $ac_word... " >&6; } 3611if ${ac_cv_prog_ac_ct_CC+:} false; then : 3612 $as_echo_n "(cached) " >&6 3613else 3614 if test -n "$ac_ct_CC"; then 3615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3616else 3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3618for as_dir in $PATH 3619do 3620 IFS=$as_save_IFS 3621 test -z "$as_dir" && as_dir=. 3622 for ac_exec_ext in '' $ac_executable_extensions; do 3623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3624 ac_cv_prog_ac_ct_CC="$ac_prog" 3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3626 break 2 3627 fi 3628done 3629 done 3630IFS=$as_save_IFS 3631 3632fi 3633fi 3634ac_ct_CC=$ac_cv_prog_ac_ct_CC 3635if test -n "$ac_ct_CC"; then 3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3637$as_echo "$ac_ct_CC" >&6; } 3638else 3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3640$as_echo "no" >&6; } 3641fi 3642 3643 3644 test -n "$ac_ct_CC" && break 3645done 3646 3647 if test "x$ac_ct_CC" = x; then 3648 CC="" 3649 else 3650 case $cross_compiling:$ac_tool_warned in 3651yes:) 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3654ac_tool_warned=yes ;; 3655esac 3656 CC=$ac_ct_CC 3657 fi 3658fi 3659 3660fi 3661 3662 3663test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3665as_fn_error $? "no acceptable C compiler found in \$PATH 3666See \`config.log' for more details" "$LINENO" 5; } 3667 3668# Provide some information about the compiler. 3669$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3670set X $ac_compile 3671ac_compiler=$2 3672for ac_option in --version -v -V -qversion; do 3673 { { ac_try="$ac_compiler $ac_option >&5" 3674case "(($ac_try" in 3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3676 *) ac_try_echo=$ac_try;; 3677esac 3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3679$as_echo "$ac_try_echo"; } >&5 3680 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3681 ac_status=$? 3682 if test -s conftest.err; then 3683 sed '10a\ 3684... rest of stderr output deleted ... 3685 10q' conftest.err >conftest.er1 3686 cat conftest.er1 >&5 3687 fi 3688 rm -f conftest.er1 conftest.err 3689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3690 test $ac_status = 0; } 3691done 3692 3693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3694/* end confdefs.h. */ 3695 3696int 3697main () 3698{ 3699 3700 ; 3701 return 0; 3702} 3703_ACEOF 3704ac_clean_files_save=$ac_clean_files 3705ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3706# Try to create an executable without -o first, disregard a.out. 3707# It will help us diagnose broken compilers, and finding out an intuition 3708# of exeext. 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3710$as_echo_n "checking whether the C compiler works... " >&6; } 3711ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3712 3713# The possible output files: 3714ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3715 3716ac_rmfiles= 3717for ac_file in $ac_files 3718do 3719 case $ac_file in 3720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3721 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3722 esac 3723done 3724rm -f $ac_rmfiles 3725 3726if { { ac_try="$ac_link_default" 3727case "(($ac_try" in 3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3729 *) ac_try_echo=$ac_try;; 3730esac 3731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3732$as_echo "$ac_try_echo"; } >&5 3733 (eval "$ac_link_default") 2>&5 3734 ac_status=$? 3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3736 test $ac_status = 0; }; then : 3737 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3738# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3739# in a Makefile. We should not override ac_cv_exeext if it was cached, 3740# so that the user can short-circuit this test for compilers unknown to 3741# Autoconf. 3742for ac_file in $ac_files '' 3743do 3744 test -f "$ac_file" || continue 3745 case $ac_file in 3746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3747 ;; 3748 [ab].out ) 3749 # We found the default executable, but exeext='' is most 3750 # certainly right. 3751 break;; 3752 *.* ) 3753 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3754 then :; else 3755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3756 fi 3757 # We set ac_cv_exeext here because the later test for it is not 3758 # safe: cross compilers may not add the suffix if given an `-o' 3759 # argument, so we may need to know it at that point already. 3760 # Even if this section looks crufty: it has the advantage of 3761 # actually working. 3762 break;; 3763 * ) 3764 break;; 3765 esac 3766done 3767test "$ac_cv_exeext" = no && ac_cv_exeext= 3768 3769else 3770 ac_file='' 3771fi 3772if test -z "$ac_file"; then : 3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3774$as_echo "no" >&6; } 3775$as_echo "$as_me: failed program was:" >&5 3776sed 's/^/| /' conftest.$ac_ext >&5 3777 3778{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3780as_fn_error 77 "C compiler cannot create executables 3781See \`config.log' for more details" "$LINENO" 5; } 3782else 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3784$as_echo "yes" >&6; } 3785fi 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3787$as_echo_n "checking for C compiler default output file name... " >&6; } 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3789$as_echo "$ac_file" >&6; } 3790ac_exeext=$ac_cv_exeext 3791 3792rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3793ac_clean_files=$ac_clean_files_save 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3795$as_echo_n "checking for suffix of executables... " >&6; } 3796if { { ac_try="$ac_link" 3797case "(($ac_try" in 3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3799 *) ac_try_echo=$ac_try;; 3800esac 3801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3802$as_echo "$ac_try_echo"; } >&5 3803 (eval "$ac_link") 2>&5 3804 ac_status=$? 3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3806 test $ac_status = 0; }; then : 3807 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3808# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3809# work properly (i.e., refer to `conftest.exe'), while it won't with 3810# `rm'. 3811for ac_file in conftest.exe conftest conftest.*; do 3812 test -f "$ac_file" || continue 3813 case $ac_file in 3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3815 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3816 break;; 3817 * ) break;; 3818 esac 3819done 3820else 3821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3823as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3824See \`config.log' for more details" "$LINENO" 5; } 3825fi 3826rm -f conftest conftest$ac_cv_exeext 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3828$as_echo "$ac_cv_exeext" >&6; } 3829 3830rm -f conftest.$ac_ext 3831EXEEXT=$ac_cv_exeext 3832ac_exeext=$EXEEXT 3833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3834/* end confdefs.h. */ 3835#include <stdio.h> 3836int 3837main () 3838{ 3839FILE *f = fopen ("conftest.out", "w"); 3840 return ferror (f) || fclose (f) != 0; 3841 3842 ; 3843 return 0; 3844} 3845_ACEOF 3846ac_clean_files="$ac_clean_files conftest.out" 3847# Check that the compiler produces executables we can run. If not, either 3848# the compiler is broken, or we cross compile. 3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3850$as_echo_n "checking whether we are cross compiling... " >&6; } 3851if test "$cross_compiling" != yes; then 3852 { { ac_try="$ac_link" 3853case "(($ac_try" in 3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3855 *) ac_try_echo=$ac_try;; 3856esac 3857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3858$as_echo "$ac_try_echo"; } >&5 3859 (eval "$ac_link") 2>&5 3860 ac_status=$? 3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3862 test $ac_status = 0; } 3863 if { ac_try='./conftest$ac_cv_exeext' 3864 { { case "(($ac_try" in 3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3866 *) ac_try_echo=$ac_try;; 3867esac 3868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3869$as_echo "$ac_try_echo"; } >&5 3870 (eval "$ac_try") 2>&5 3871 ac_status=$? 3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3873 test $ac_status = 0; }; }; then 3874 cross_compiling=no 3875 else 3876 if test "$cross_compiling" = maybe; then 3877 cross_compiling=yes 3878 else 3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3881as_fn_error $? "cannot run C compiled programs. 3882If you meant to cross compile, use \`--host'. 3883See \`config.log' for more details" "$LINENO" 5; } 3884 fi 3885 fi 3886fi 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3888$as_echo "$cross_compiling" >&6; } 3889 3890rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3891ac_clean_files=$ac_clean_files_save 3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3893$as_echo_n "checking for suffix of object files... " >&6; } 3894if ${ac_cv_objext+:} false; then : 3895 $as_echo_n "(cached) " >&6 3896else 3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898/* end confdefs.h. */ 3899 3900int 3901main () 3902{ 3903 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908rm -f conftest.o conftest.obj 3909if { { ac_try="$ac_compile" 3910case "(($ac_try" in 3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3912 *) ac_try_echo=$ac_try;; 3913esac 3914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3915$as_echo "$ac_try_echo"; } >&5 3916 (eval "$ac_compile") 2>&5 3917 ac_status=$? 3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3919 test $ac_status = 0; }; then : 3920 for ac_file in conftest.o conftest.obj conftest.*; do 3921 test -f "$ac_file" || continue; 3922 case $ac_file in 3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3924 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3925 break;; 3926 esac 3927done 3928else 3929 $as_echo "$as_me: failed program was:" >&5 3930sed 's/^/| /' conftest.$ac_ext >&5 3931 3932{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3934as_fn_error $? "cannot compute suffix of object files: cannot compile 3935See \`config.log' for more details" "$LINENO" 5; } 3936fi 3937rm -f conftest.$ac_cv_objext conftest.$ac_ext 3938fi 3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3940$as_echo "$ac_cv_objext" >&6; } 3941OBJEXT=$ac_cv_objext 3942ac_objext=$OBJEXT 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3944$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3945if ${ac_cv_c_compiler_gnu+:} false; then : 3946 $as_echo_n "(cached) " >&6 3947else 3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3949/* end confdefs.h. */ 3950 3951int 3952main () 3953{ 3954#ifndef __GNUC__ 3955 choke me 3956#endif 3957 3958 ; 3959 return 0; 3960} 3961_ACEOF 3962if ac_fn_c_try_compile "$LINENO"; then : 3963 ac_compiler_gnu=yes 3964else 3965 ac_compiler_gnu=no 3966fi 3967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3968ac_cv_c_compiler_gnu=$ac_compiler_gnu 3969 3970fi 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3972$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3973if test $ac_compiler_gnu = yes; then 3974 GCC=yes 3975else 3976 GCC= 3977fi 3978ac_test_CFLAGS=${CFLAGS+set} 3979ac_save_CFLAGS=$CFLAGS 3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3981$as_echo_n "checking whether $CC accepts -g... " >&6; } 3982if ${ac_cv_prog_cc_g+:} false; then : 3983 $as_echo_n "(cached) " >&6 3984else 3985 ac_save_c_werror_flag=$ac_c_werror_flag 3986 ac_c_werror_flag=yes 3987 ac_cv_prog_cc_g=no 3988 CFLAGS="-g" 3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3990/* end confdefs.h. */ 3991 3992int 3993main () 3994{ 3995 3996 ; 3997 return 0; 3998} 3999_ACEOF 4000if ac_fn_c_try_compile "$LINENO"; then : 4001 ac_cv_prog_cc_g=yes 4002else 4003 CFLAGS="" 4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4005/* end confdefs.h. */ 4006 4007int 4008main () 4009{ 4010 4011 ; 4012 return 0; 4013} 4014_ACEOF 4015if ac_fn_c_try_compile "$LINENO"; then : 4016 4017else 4018 ac_c_werror_flag=$ac_save_c_werror_flag 4019 CFLAGS="-g" 4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4021/* end confdefs.h. */ 4022 4023int 4024main () 4025{ 4026 4027 ; 4028 return 0; 4029} 4030_ACEOF 4031if ac_fn_c_try_compile "$LINENO"; then : 4032 ac_cv_prog_cc_g=yes 4033fi 4034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4035fi 4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4037fi 4038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4039 ac_c_werror_flag=$ac_save_c_werror_flag 4040fi 4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4042$as_echo "$ac_cv_prog_cc_g" >&6; } 4043if test "$ac_test_CFLAGS" = set; then 4044 CFLAGS=$ac_save_CFLAGS 4045elif test $ac_cv_prog_cc_g = yes; then 4046 if test "$GCC" = yes; then 4047 CFLAGS="-g -O2" 4048 else 4049 CFLAGS="-g" 4050 fi 4051else 4052 if test "$GCC" = yes; then 4053 CFLAGS="-O2" 4054 else 4055 CFLAGS= 4056 fi 4057fi 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4059$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4060if ${ac_cv_prog_cc_c89+:} false; then : 4061 $as_echo_n "(cached) " >&6 4062else 4063 ac_cv_prog_cc_c89=no 4064ac_save_CC=$CC 4065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4066/* end confdefs.h. */ 4067#include <stdarg.h> 4068#include <stdio.h> 4069struct stat; 4070/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4071struct buf { int x; }; 4072FILE * (*rcsopen) (struct buf *, struct stat *, int); 4073static char *e (p, i) 4074 char **p; 4075 int i; 4076{ 4077 return p[i]; 4078} 4079static char *f (char * (*g) (char **, int), char **p, ...) 4080{ 4081 char *s; 4082 va_list v; 4083 va_start (v,p); 4084 s = g (p, va_arg (v,int)); 4085 va_end (v); 4086 return s; 4087} 4088 4089/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4090 function prototypes and stuff, but not '\xHH' hex character constants. 4091 These don't provoke an error unfortunately, instead are silently treated 4092 as 'x'. The following induces an error, until -std is added to get 4093 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4094 array size at least. It's necessary to write '\x00'==0 to get something 4095 that's true only with -std. */ 4096int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4097 4098/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4099 inside strings and character constants. */ 4100#define FOO(x) 'x' 4101int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4102 4103int test (int i, double x); 4104struct s1 {int (*f) (int a);}; 4105struct s2 {int (*f) (double a);}; 4106int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4107int argc; 4108char **argv; 4109int 4110main () 4111{ 4112return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4113 ; 4114 return 0; 4115} 4116_ACEOF 4117for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4118 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4119do 4120 CC="$ac_save_CC $ac_arg" 4121 if ac_fn_c_try_compile "$LINENO"; then : 4122 ac_cv_prog_cc_c89=$ac_arg 4123fi 4124rm -f core conftest.err conftest.$ac_objext 4125 test "x$ac_cv_prog_cc_c89" != "xno" && break 4126done 4127rm -f conftest.$ac_ext 4128CC=$ac_save_CC 4129 4130fi 4131# AC_CACHE_VAL 4132case "x$ac_cv_prog_cc_c89" in 4133 x) 4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4135$as_echo "none needed" >&6; } ;; 4136 xno) 4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4138$as_echo "unsupported" >&6; } ;; 4139 *) 4140 CC="$CC $ac_cv_prog_cc_c89" 4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4142$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4143esac 4144if test "x$ac_cv_prog_cc_c89" != xno; then : 4145 4146fi 4147 4148ac_ext=c 4149ac_cpp='$CPP $CPPFLAGS' 4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4152ac_compiler_gnu=$ac_cv_c_compiler_gnu 4153 4154ac_ext=c 4155ac_cpp='$CPP $CPPFLAGS' 4156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4158ac_compiler_gnu=$ac_cv_c_compiler_gnu 4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4160$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4161if ${am_cv_prog_cc_c_o+:} false; then : 4162 $as_echo_n "(cached) " >&6 4163else 4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4165/* end confdefs.h. */ 4166 4167int 4168main () 4169{ 4170 4171 ; 4172 return 0; 4173} 4174_ACEOF 4175 # Make sure it works both with $CC and with simple cc. 4176 # Following AC_PROG_CC_C_O, we do the test twice because some 4177 # compilers refuse to overwrite an existing .o file with -o, 4178 # though they will create one. 4179 am_cv_prog_cc_c_o=yes 4180 for am_i in 1 2; do 4181 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4182 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4183 ac_status=$? 4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4185 (exit $ac_status); } \ 4186 && test -f conftest2.$ac_objext; then 4187 : OK 4188 else 4189 am_cv_prog_cc_c_o=no 4190 break 4191 fi 4192 done 4193 rm -f core conftest* 4194 unset am_i 4195fi 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4197$as_echo "$am_cv_prog_cc_c_o" >&6; } 4198if test "$am_cv_prog_cc_c_o" != yes; then 4199 # Losing compiler, so override with the script. 4200 # FIXME: It is wrong to rewrite CC. 4201 # But if we don't then we get into trouble of one sort or another. 4202 # A longer-term fix would be to have automake use am__CC in this case, 4203 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4204 CC="$am_aux_dir/compile $CC" 4205fi 4206ac_ext=c 4207ac_cpp='$CPP $CPPFLAGS' 4208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4210ac_compiler_gnu=$ac_cv_c_compiler_gnu 4211 4212 4213depcc="$CC" am_compiler_list= 4214 4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4216$as_echo_n "checking dependency style of $depcc... " >&6; } 4217if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4218 $as_echo_n "(cached) " >&6 4219else 4220 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4221 # We make a subdir and do the tests there. Otherwise we can end up 4222 # making bogus files that we don't know about and never remove. For 4223 # instance it was reported that on HP-UX the gcc test will end up 4224 # making a dummy file named 'D' -- because '-MD' means "put the output 4225 # in D". 4226 rm -rf conftest.dir 4227 mkdir conftest.dir 4228 # Copy depcomp to subdir because otherwise we won't find it if we're 4229 # using a relative directory. 4230 cp "$am_depcomp" conftest.dir 4231 cd conftest.dir 4232 # We will build objects and dependencies in a subdirectory because 4233 # it helps to detect inapplicable dependency modes. For instance 4234 # both Tru64's cc and ICC support -MD to output dependencies as a 4235 # side effect of compilation, but ICC will put the dependencies in 4236 # the current directory while Tru64 will put them in the object 4237 # directory. 4238 mkdir sub 4239 4240 am_cv_CC_dependencies_compiler_type=none 4241 if test "$am_compiler_list" = ""; then 4242 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4243 fi 4244 am__universal=false 4245 case " $depcc " in #( 4246 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4247 esac 4248 4249 for depmode in $am_compiler_list; do 4250 # Setup a source with many dependencies, because some compilers 4251 # like to wrap large dependency lists on column 80 (with \), and 4252 # we should not choose a depcomp mode which is confused by this. 4253 # 4254 # We need to recreate these files for each test, as the compiler may 4255 # overwrite some of them when testing with obscure command lines. 4256 # This happens at least with the AIX C compiler. 4257 : > sub/conftest.c 4258 for i in 1 2 3 4 5 6; do 4259 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4260 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4261 # Solaris 10 /bin/sh. 4262 echo '/* dummy */' > sub/conftst$i.h 4263 done 4264 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4265 4266 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4267 # mode. It turns out that the SunPro C++ compiler does not properly 4268 # handle '-M -o', and we need to detect this. Also, some Intel 4269 # versions had trouble with output in subdirs. 4270 am__obj=sub/conftest.${OBJEXT-o} 4271 am__minus_obj="-o $am__obj" 4272 case $depmode in 4273 gcc) 4274 # This depmode causes a compiler race in universal mode. 4275 test "$am__universal" = false || continue 4276 ;; 4277 nosideeffect) 4278 # After this tag, mechanisms are not by side-effect, so they'll 4279 # only be used when explicitly requested. 4280 if test "x$enable_dependency_tracking" = xyes; then 4281 continue 4282 else 4283 break 4284 fi 4285 ;; 4286 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4287 # This compiler won't grok '-c -o', but also, the minuso test has 4288 # not run yet. These depmodes are late enough in the game, and 4289 # so weak that their functioning should not be impacted. 4290 am__obj=conftest.${OBJEXT-o} 4291 am__minus_obj= 4292 ;; 4293 none) break ;; 4294 esac 4295 if depmode=$depmode \ 4296 source=sub/conftest.c object=$am__obj \ 4297 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4298 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4299 >/dev/null 2>conftest.err && 4300 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4301 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4302 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4303 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4304 # icc doesn't choke on unknown options, it will just issue warnings 4305 # or remarks (even with -Werror). So we grep stderr for any message 4306 # that says an option was ignored or not supported. 4307 # When given -MP, icc 7.0 and 7.1 complain thusly: 4308 # icc: Command line warning: ignoring option '-M'; no argument required 4309 # The diagnosis changed in icc 8.0: 4310 # icc: Command line remark: option '-MP' not supported 4311 if (grep 'ignoring option' conftest.err || 4312 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4313 am_cv_CC_dependencies_compiler_type=$depmode 4314 break 4315 fi 4316 fi 4317 done 4318 4319 cd .. 4320 rm -rf conftest.dir 4321else 4322 am_cv_CC_dependencies_compiler_type=none 4323fi 4324 4325fi 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4327$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4328CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4329 4330 if 4331 test "x$enable_dependency_tracking" != xno \ 4332 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4333 am__fastdepCC_TRUE= 4334 am__fastdepCC_FALSE='#' 4335else 4336 am__fastdepCC_TRUE='#' 4337 am__fastdepCC_FALSE= 4338fi 4339 4340 4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4342$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4343if ${ac_cv_path_SED+:} false; then : 4344 $as_echo_n "(cached) " >&6 4345else 4346 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4347 for ac_i in 1 2 3 4 5 6 7; do 4348 ac_script="$ac_script$as_nl$ac_script" 4349 done 4350 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4351 { ac_script=; unset ac_script;} 4352 if test -z "$SED"; then 4353 ac_path_SED_found=false 4354 # Loop through the user's path and test for each of PROGNAME-LIST 4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4356for as_dir in $PATH 4357do 4358 IFS=$as_save_IFS 4359 test -z "$as_dir" && as_dir=. 4360 for ac_prog in sed gsed; do 4361 for ac_exec_ext in '' $ac_executable_extensions; do 4362 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4363 as_fn_executable_p "$ac_path_SED" || continue 4364# Check for GNU ac_path_SED and select it if it is found. 4365 # Check for GNU $ac_path_SED 4366case `"$ac_path_SED" --version 2>&1` in 4367*GNU*) 4368 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4369*) 4370 ac_count=0 4371 $as_echo_n 0123456789 >"conftest.in" 4372 while : 4373 do 4374 cat "conftest.in" "conftest.in" >"conftest.tmp" 4375 mv "conftest.tmp" "conftest.in" 4376 cp "conftest.in" "conftest.nl" 4377 $as_echo '' >> "conftest.nl" 4378 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4380 as_fn_arith $ac_count + 1 && ac_count=$as_val 4381 if test $ac_count -gt ${ac_path_SED_max-0}; then 4382 # Best one so far, save it but keep looking for a better one 4383 ac_cv_path_SED="$ac_path_SED" 4384 ac_path_SED_max=$ac_count 4385 fi 4386 # 10*(2^10) chars as input seems more than enough 4387 test $ac_count -gt 10 && break 4388 done 4389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4390esac 4391 4392 $ac_path_SED_found && break 3 4393 done 4394 done 4395 done 4396IFS=$as_save_IFS 4397 if test -z "$ac_cv_path_SED"; then 4398 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4399 fi 4400else 4401 ac_cv_path_SED=$SED 4402fi 4403 4404fi 4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4406$as_echo "$ac_cv_path_SED" >&6; } 4407 SED="$ac_cv_path_SED" 4408 rm -f conftest.sed 4409 4410test -z "$SED" && SED=sed 4411Xsed="$SED -e 1s/^X//" 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4424$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4425if ${ac_cv_path_GREP+:} false; then : 4426 $as_echo_n "(cached) " >&6 4427else 4428 if test -z "$GREP"; then 4429 ac_path_GREP_found=false 4430 # Loop through the user's path and test for each of PROGNAME-LIST 4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4432for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4433do 4434 IFS=$as_save_IFS 4435 test -z "$as_dir" && as_dir=. 4436 for ac_prog in grep ggrep; do 4437 for ac_exec_ext in '' $ac_executable_extensions; do 4438 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4439 as_fn_executable_p "$ac_path_GREP" || continue 4440# Check for GNU ac_path_GREP and select it if it is found. 4441 # Check for GNU $ac_path_GREP 4442case `"$ac_path_GREP" --version 2>&1` in 4443*GNU*) 4444 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4445*) 4446 ac_count=0 4447 $as_echo_n 0123456789 >"conftest.in" 4448 while : 4449 do 4450 cat "conftest.in" "conftest.in" >"conftest.tmp" 4451 mv "conftest.tmp" "conftest.in" 4452 cp "conftest.in" "conftest.nl" 4453 $as_echo 'GREP' >> "conftest.nl" 4454 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4456 as_fn_arith $ac_count + 1 && ac_count=$as_val 4457 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4458 # Best one so far, save it but keep looking for a better one 4459 ac_cv_path_GREP="$ac_path_GREP" 4460 ac_path_GREP_max=$ac_count 4461 fi 4462 # 10*(2^10) chars as input seems more than enough 4463 test $ac_count -gt 10 && break 4464 done 4465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4466esac 4467 4468 $ac_path_GREP_found && break 3 4469 done 4470 done 4471 done 4472IFS=$as_save_IFS 4473 if test -z "$ac_cv_path_GREP"; then 4474 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4475 fi 4476else 4477 ac_cv_path_GREP=$GREP 4478fi 4479 4480fi 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4482$as_echo "$ac_cv_path_GREP" >&6; } 4483 GREP="$ac_cv_path_GREP" 4484 4485 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4487$as_echo_n "checking for egrep... " >&6; } 4488if ${ac_cv_path_EGREP+:} false; then : 4489 $as_echo_n "(cached) " >&6 4490else 4491 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4492 then ac_cv_path_EGREP="$GREP -E" 4493 else 4494 if test -z "$EGREP"; then 4495 ac_path_EGREP_found=false 4496 # Loop through the user's path and test for each of PROGNAME-LIST 4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4498for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4499do 4500 IFS=$as_save_IFS 4501 test -z "$as_dir" && as_dir=. 4502 for ac_prog in egrep; do 4503 for ac_exec_ext in '' $ac_executable_extensions; do 4504 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4505 as_fn_executable_p "$ac_path_EGREP" || continue 4506# Check for GNU ac_path_EGREP and select it if it is found. 4507 # Check for GNU $ac_path_EGREP 4508case `"$ac_path_EGREP" --version 2>&1` in 4509*GNU*) 4510 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4511*) 4512 ac_count=0 4513 $as_echo_n 0123456789 >"conftest.in" 4514 while : 4515 do 4516 cat "conftest.in" "conftest.in" >"conftest.tmp" 4517 mv "conftest.tmp" "conftest.in" 4518 cp "conftest.in" "conftest.nl" 4519 $as_echo 'EGREP' >> "conftest.nl" 4520 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4522 as_fn_arith $ac_count + 1 && ac_count=$as_val 4523 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4524 # Best one so far, save it but keep looking for a better one 4525 ac_cv_path_EGREP="$ac_path_EGREP" 4526 ac_path_EGREP_max=$ac_count 4527 fi 4528 # 10*(2^10) chars as input seems more than enough 4529 test $ac_count -gt 10 && break 4530 done 4531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4532esac 4533 4534 $ac_path_EGREP_found && break 3 4535 done 4536 done 4537 done 4538IFS=$as_save_IFS 4539 if test -z "$ac_cv_path_EGREP"; then 4540 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4541 fi 4542else 4543 ac_cv_path_EGREP=$EGREP 4544fi 4545 4546 fi 4547fi 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4549$as_echo "$ac_cv_path_EGREP" >&6; } 4550 EGREP="$ac_cv_path_EGREP" 4551 4552 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4554$as_echo_n "checking for fgrep... " >&6; } 4555if ${ac_cv_path_FGREP+:} false; then : 4556 $as_echo_n "(cached) " >&6 4557else 4558 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4559 then ac_cv_path_FGREP="$GREP -F" 4560 else 4561 if test -z "$FGREP"; then 4562 ac_path_FGREP_found=false 4563 # Loop through the user's path and test for each of PROGNAME-LIST 4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4565for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4566do 4567 IFS=$as_save_IFS 4568 test -z "$as_dir" && as_dir=. 4569 for ac_prog in fgrep; do 4570 for ac_exec_ext in '' $ac_executable_extensions; do 4571 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4572 as_fn_executable_p "$ac_path_FGREP" || continue 4573# Check for GNU ac_path_FGREP and select it if it is found. 4574 # Check for GNU $ac_path_FGREP 4575case `"$ac_path_FGREP" --version 2>&1` in 4576*GNU*) 4577 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4578*) 4579 ac_count=0 4580 $as_echo_n 0123456789 >"conftest.in" 4581 while : 4582 do 4583 cat "conftest.in" "conftest.in" >"conftest.tmp" 4584 mv "conftest.tmp" "conftest.in" 4585 cp "conftest.in" "conftest.nl" 4586 $as_echo 'FGREP' >> "conftest.nl" 4587 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4589 as_fn_arith $ac_count + 1 && ac_count=$as_val 4590 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4591 # Best one so far, save it but keep looking for a better one 4592 ac_cv_path_FGREP="$ac_path_FGREP" 4593 ac_path_FGREP_max=$ac_count 4594 fi 4595 # 10*(2^10) chars as input seems more than enough 4596 test $ac_count -gt 10 && break 4597 done 4598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4599esac 4600 4601 $ac_path_FGREP_found && break 3 4602 done 4603 done 4604 done 4605IFS=$as_save_IFS 4606 if test -z "$ac_cv_path_FGREP"; then 4607 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4608 fi 4609else 4610 ac_cv_path_FGREP=$FGREP 4611fi 4612 4613 fi 4614fi 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4616$as_echo "$ac_cv_path_FGREP" >&6; } 4617 FGREP="$ac_cv_path_FGREP" 4618 4619 4620test -z "$GREP" && GREP=grep 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640# Check whether --with-gnu-ld was given. 4641if test "${with_gnu_ld+set}" = set; then : 4642 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4643else 4644 with_gnu_ld=no 4645fi 4646 4647ac_prog=ld 4648if test yes = "$GCC"; then 4649 # Check if gcc -print-prog-name=ld gives a path. 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4651$as_echo_n "checking for ld used by $CC... " >&6; } 4652 case $host in 4653 *-*-mingw*) 4654 # gcc leaves a trailing carriage return, which upsets mingw 4655 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4656 *) 4657 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4658 esac 4659 case $ac_prog in 4660 # Accept absolute paths. 4661 [\\/]* | ?:[\\/]*) 4662 re_direlt='/[^/][^/]*/\.\./' 4663 # Canonicalize the pathname of ld 4664 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4665 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4666 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4667 done 4668 test -z "$LD" && LD=$ac_prog 4669 ;; 4670 "") 4671 # If it fails, then pretend we aren't using GCC. 4672 ac_prog=ld 4673 ;; 4674 *) 4675 # If it is relative, then search for the first ld in PATH. 4676 with_gnu_ld=unknown 4677 ;; 4678 esac 4679elif test yes = "$with_gnu_ld"; then 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4681$as_echo_n "checking for GNU ld... " >&6; } 4682else 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4684$as_echo_n "checking for non-GNU ld... " >&6; } 4685fi 4686if ${lt_cv_path_LD+:} false; then : 4687 $as_echo_n "(cached) " >&6 4688else 4689 if test -z "$LD"; then 4690 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4691 for ac_dir in $PATH; do 4692 IFS=$lt_save_ifs 4693 test -z "$ac_dir" && ac_dir=. 4694 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4695 lt_cv_path_LD=$ac_dir/$ac_prog 4696 # Check to see if the program is GNU ld. I'd rather use --version, 4697 # but apparently some variants of GNU ld only accept -v. 4698 # Break only if it was the GNU/non-GNU ld that we prefer. 4699 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4700 *GNU* | *'with BFD'*) 4701 test no != "$with_gnu_ld" && break 4702 ;; 4703 *) 4704 test yes != "$with_gnu_ld" && break 4705 ;; 4706 esac 4707 fi 4708 done 4709 IFS=$lt_save_ifs 4710else 4711 lt_cv_path_LD=$LD # Let the user override the test with a path. 4712fi 4713fi 4714 4715LD=$lt_cv_path_LD 4716if test -n "$LD"; then 4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4718$as_echo "$LD" >&6; } 4719else 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4721$as_echo "no" >&6; } 4722fi 4723test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4725$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4726if ${lt_cv_prog_gnu_ld+:} false; then : 4727 $as_echo_n "(cached) " >&6 4728else 4729 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4730case `$LD -v 2>&1 </dev/null` in 4731*GNU* | *'with BFD'*) 4732 lt_cv_prog_gnu_ld=yes 4733 ;; 4734*) 4735 lt_cv_prog_gnu_ld=no 4736 ;; 4737esac 4738fi 4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4740$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4741with_gnu_ld=$lt_cv_prog_gnu_ld 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4752$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4753if ${lt_cv_path_NM+:} false; then : 4754 $as_echo_n "(cached) " >&6 4755else 4756 if test -n "$NM"; then 4757 # Let the user override the test. 4758 lt_cv_path_NM=$NM 4759else 4760 lt_nm_to_check=${ac_tool_prefix}nm 4761 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4762 lt_nm_to_check="$lt_nm_to_check nm" 4763 fi 4764 for lt_tmp_nm in $lt_nm_to_check; do 4765 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4766 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4767 IFS=$lt_save_ifs 4768 test -z "$ac_dir" && ac_dir=. 4769 tmp_nm=$ac_dir/$lt_tmp_nm 4770 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4771 # Check to see if the nm accepts a BSD-compat flag. 4772 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4773 # nm: unknown option "B" ignored 4774 # Tru64's nm complains that /dev/null is an invalid object file 4775 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4776 case $build_os in 4777 mingw*) lt_bad_file=conftest.nm/nofile ;; 4778 *) lt_bad_file=/dev/null ;; 4779 esac 4780 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4781 *$lt_bad_file* | *'Invalid file or object type'*) 4782 lt_cv_path_NM="$tmp_nm -B" 4783 break 2 4784 ;; 4785 *) 4786 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4787 */dev/null*) 4788 lt_cv_path_NM="$tmp_nm -p" 4789 break 2 4790 ;; 4791 *) 4792 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4793 continue # so that we can try to find one that supports BSD flags 4794 ;; 4795 esac 4796 ;; 4797 esac 4798 fi 4799 done 4800 IFS=$lt_save_ifs 4801 done 4802 : ${lt_cv_path_NM=no} 4803fi 4804fi 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4806$as_echo "$lt_cv_path_NM" >&6; } 4807if test no != "$lt_cv_path_NM"; then 4808 NM=$lt_cv_path_NM 4809else 4810 # Didn't find any BSD compatible name lister, look for dumpbin. 4811 if test -n "$DUMPBIN"; then : 4812 # Let the user override the test. 4813 else 4814 if test -n "$ac_tool_prefix"; then 4815 for ac_prog in dumpbin "link -dump" 4816 do 4817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4818set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4820$as_echo_n "checking for $ac_word... " >&6; } 4821if ${ac_cv_prog_DUMPBIN+:} false; then : 4822 $as_echo_n "(cached) " >&6 4823else 4824 if test -n "$DUMPBIN"; then 4825 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4826else 4827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4828for as_dir in $PATH 4829do 4830 IFS=$as_save_IFS 4831 test -z "$as_dir" && as_dir=. 4832 for ac_exec_ext in '' $ac_executable_extensions; do 4833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4834 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4836 break 2 4837 fi 4838done 4839 done 4840IFS=$as_save_IFS 4841 4842fi 4843fi 4844DUMPBIN=$ac_cv_prog_DUMPBIN 4845if test -n "$DUMPBIN"; then 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4847$as_echo "$DUMPBIN" >&6; } 4848else 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4850$as_echo "no" >&6; } 4851fi 4852 4853 4854 test -n "$DUMPBIN" && break 4855 done 4856fi 4857if test -z "$DUMPBIN"; then 4858 ac_ct_DUMPBIN=$DUMPBIN 4859 for ac_prog in dumpbin "link -dump" 4860do 4861 # Extract the first word of "$ac_prog", so it can be a program name with args. 4862set dummy $ac_prog; ac_word=$2 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4864$as_echo_n "checking for $ac_word... " >&6; } 4865if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4866 $as_echo_n "(cached) " >&6 4867else 4868 if test -n "$ac_ct_DUMPBIN"; then 4869 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4870else 4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4872for as_dir in $PATH 4873do 4874 IFS=$as_save_IFS 4875 test -z "$as_dir" && as_dir=. 4876 for ac_exec_ext in '' $ac_executable_extensions; do 4877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4878 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4880 break 2 4881 fi 4882done 4883 done 4884IFS=$as_save_IFS 4885 4886fi 4887fi 4888ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4889if test -n "$ac_ct_DUMPBIN"; then 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4891$as_echo "$ac_ct_DUMPBIN" >&6; } 4892else 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4894$as_echo "no" >&6; } 4895fi 4896 4897 4898 test -n "$ac_ct_DUMPBIN" && break 4899done 4900 4901 if test "x$ac_ct_DUMPBIN" = x; then 4902 DUMPBIN=":" 4903 else 4904 case $cross_compiling:$ac_tool_warned in 4905yes:) 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4908ac_tool_warned=yes ;; 4909esac 4910 DUMPBIN=$ac_ct_DUMPBIN 4911 fi 4912fi 4913 4914 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4915 *COFF*) 4916 DUMPBIN="$DUMPBIN -symbols -headers" 4917 ;; 4918 *) 4919 DUMPBIN=: 4920 ;; 4921 esac 4922 fi 4923 4924 if test : != "$DUMPBIN"; then 4925 NM=$DUMPBIN 4926 fi 4927fi 4928test -z "$NM" && NM=nm 4929 4930 4931 4932 4933 4934 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4936$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4937if ${lt_cv_nm_interface+:} false; then : 4938 $as_echo_n "(cached) " >&6 4939else 4940 lt_cv_nm_interface="BSD nm" 4941 echo "int some_variable = 0;" > conftest.$ac_ext 4942 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4943 (eval "$ac_compile" 2>conftest.err) 4944 cat conftest.err >&5 4945 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4946 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4947 cat conftest.err >&5 4948 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4949 cat conftest.out >&5 4950 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4951 lt_cv_nm_interface="MS dumpbin" 4952 fi 4953 rm -f conftest* 4954fi 4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4956$as_echo "$lt_cv_nm_interface" >&6; } 4957 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4959$as_echo_n "checking whether ln -s works... " >&6; } 4960LN_S=$as_ln_s 4961if test "$LN_S" = "ln -s"; then 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4963$as_echo "yes" >&6; } 4964else 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4966$as_echo "no, using $LN_S" >&6; } 4967fi 4968 4969# find the maximum length of command line arguments 4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4971$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4972if ${lt_cv_sys_max_cmd_len+:} false; then : 4973 $as_echo_n "(cached) " >&6 4974else 4975 i=0 4976 teststring=ABCD 4977 4978 case $build_os in 4979 msdosdjgpp*) 4980 # On DJGPP, this test can blow up pretty badly due to problems in libc 4981 # (any single argument exceeding 2000 bytes causes a buffer overrun 4982 # during glob expansion). Even if it were fixed, the result of this 4983 # check would be larger than it should be. 4984 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4985 ;; 4986 4987 gnu*) 4988 # Under GNU Hurd, this test is not required because there is 4989 # no limit to the length of command line arguments. 4990 # Libtool will interpret -1 as no limit whatsoever 4991 lt_cv_sys_max_cmd_len=-1; 4992 ;; 4993 4994 cygwin* | mingw* | cegcc*) 4995 # On Win9x/ME, this test blows up -- it succeeds, but takes 4996 # about 5 minutes as the teststring grows exponentially. 4997 # Worse, since 9x/ME are not pre-emptively multitasking, 4998 # you end up with a "frozen" computer, even though with patience 4999 # the test eventually succeeds (with a max line length of 256k). 5000 # Instead, let's just punt: use the minimum linelength reported by 5001 # all of the supported platforms: 8192 (on NT/2K/XP). 5002 lt_cv_sys_max_cmd_len=8192; 5003 ;; 5004 5005 mint*) 5006 # On MiNT this can take a long time and run out of memory. 5007 lt_cv_sys_max_cmd_len=8192; 5008 ;; 5009 5010 amigaos*) 5011 # On AmigaOS with pdksh, this test takes hours, literally. 5012 # So we just punt and use a minimum line length of 8192. 5013 lt_cv_sys_max_cmd_len=8192; 5014 ;; 5015 5016 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5017 # This has been around since 386BSD, at least. Likely further. 5018 if test -x /sbin/sysctl; then 5019 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5020 elif test -x /usr/sbin/sysctl; then 5021 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5022 else 5023 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5024 fi 5025 # And add a safety zone 5026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5028 ;; 5029 5030 interix*) 5031 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5032 lt_cv_sys_max_cmd_len=196608 5033 ;; 5034 5035 os2*) 5036 # The test takes a long time on OS/2. 5037 lt_cv_sys_max_cmd_len=8192 5038 ;; 5039 5040 osf*) 5041 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5042 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5043 # nice to cause kernel panics so lets avoid the loop below. 5044 # First set a reasonable default. 5045 lt_cv_sys_max_cmd_len=16384 5046 # 5047 if test -x /sbin/sysconfig; then 5048 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5049 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5050 esac 5051 fi 5052 ;; 5053 sco3.2v5*) 5054 lt_cv_sys_max_cmd_len=102400 5055 ;; 5056 sysv5* | sco5v6* | sysv4.2uw2*) 5057 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5058 if test -n "$kargmax"; then 5059 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5060 else 5061 lt_cv_sys_max_cmd_len=32768 5062 fi 5063 ;; 5064 *) 5065 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5066 if test -n "$lt_cv_sys_max_cmd_len" && \ 5067 test undefined != "$lt_cv_sys_max_cmd_len"; then 5068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5070 else 5071 # Make teststring a little bigger before we do anything with it. 5072 # a 1K string should be a reasonable start. 5073 for i in 1 2 3 4 5 6 7 8; do 5074 teststring=$teststring$teststring 5075 done 5076 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5077 # If test is not a shell built-in, we'll probably end up computing a 5078 # maximum length that is only half of the actual maximum length, but 5079 # we can't tell. 5080 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5081 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5082 test 17 != "$i" # 1/2 MB should be enough 5083 do 5084 i=`expr $i + 1` 5085 teststring=$teststring$teststring 5086 done 5087 # Only check the string length outside the loop. 5088 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5089 teststring= 5090 # Add a significant safety factor because C++ compilers can tack on 5091 # massive amounts of additional arguments before passing them to the 5092 # linker. It appears as though 1/2 is a usable value. 5093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5094 fi 5095 ;; 5096 esac 5097 5098fi 5099 5100if test -n "$lt_cv_sys_max_cmd_len"; then 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5102$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5103else 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5105$as_echo "none" >&6; } 5106fi 5107max_cmd_len=$lt_cv_sys_max_cmd_len 5108 5109 5110 5111 5112 5113 5114: ${CP="cp -f"} 5115: ${MV="mv -f"} 5116: ${RM="rm -f"} 5117 5118if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5119 lt_unset=unset 5120else 5121 lt_unset=false 5122fi 5123 5124 5125 5126 5127 5128# test EBCDIC or ASCII 5129case `echo X|tr X '\101'` in 5130 A) # ASCII based system 5131 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5132 lt_SP2NL='tr \040 \012' 5133 lt_NL2SP='tr \015\012 \040\040' 5134 ;; 5135 *) # EBCDIC based system 5136 lt_SP2NL='tr \100 \n' 5137 lt_NL2SP='tr \r\n \100\100' 5138 ;; 5139esac 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5150$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5151if ${lt_cv_to_host_file_cmd+:} false; then : 5152 $as_echo_n "(cached) " >&6 5153else 5154 case $host in 5155 *-*-mingw* ) 5156 case $build in 5157 *-*-mingw* ) # actually msys 5158 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5159 ;; 5160 *-*-cygwin* ) 5161 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5162 ;; 5163 * ) # otherwise, assume *nix 5164 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5165 ;; 5166 esac 5167 ;; 5168 *-*-cygwin* ) 5169 case $build in 5170 *-*-mingw* ) # actually msys 5171 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5172 ;; 5173 *-*-cygwin* ) 5174 lt_cv_to_host_file_cmd=func_convert_file_noop 5175 ;; 5176 * ) # otherwise, assume *nix 5177 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5178 ;; 5179 esac 5180 ;; 5181 * ) # unhandled hosts (and "normal" native builds) 5182 lt_cv_to_host_file_cmd=func_convert_file_noop 5183 ;; 5184esac 5185 5186fi 5187 5188to_host_file_cmd=$lt_cv_to_host_file_cmd 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5190$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5191 5192 5193 5194 5195 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5197$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5198if ${lt_cv_to_tool_file_cmd+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 #assume ordinary cross tools, or native build. 5202lt_cv_to_tool_file_cmd=func_convert_file_noop 5203case $host in 5204 *-*-mingw* ) 5205 case $build in 5206 *-*-mingw* ) # actually msys 5207 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5208 ;; 5209 esac 5210 ;; 5211esac 5212 5213fi 5214 5215to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5217$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5218 5219 5220 5221 5222 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5224$as_echo_n "checking for $LD option to reload object files... " >&6; } 5225if ${lt_cv_ld_reload_flag+:} false; then : 5226 $as_echo_n "(cached) " >&6 5227else 5228 lt_cv_ld_reload_flag='-r' 5229fi 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5231$as_echo "$lt_cv_ld_reload_flag" >&6; } 5232reload_flag=$lt_cv_ld_reload_flag 5233case $reload_flag in 5234"" | " "*) ;; 5235*) reload_flag=" $reload_flag" ;; 5236esac 5237reload_cmds='$LD$reload_flag -o $output$reload_objs' 5238case $host_os in 5239 cygwin* | mingw* | pw32* | cegcc*) 5240 if test yes != "$GCC"; then 5241 reload_cmds=false 5242 fi 5243 ;; 5244 darwin*) 5245 if test yes = "$GCC"; then 5246 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5247 else 5248 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5249 fi 5250 ;; 5251esac 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261if test -n "$ac_tool_prefix"; then 5262 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5263set dummy ${ac_tool_prefix}objdump; ac_word=$2 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5265$as_echo_n "checking for $ac_word... " >&6; } 5266if ${ac_cv_prog_OBJDUMP+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268else 5269 if test -n "$OBJDUMP"; then 5270 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5271else 5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5273for as_dir in $PATH 5274do 5275 IFS=$as_save_IFS 5276 test -z "$as_dir" && as_dir=. 5277 for ac_exec_ext in '' $ac_executable_extensions; do 5278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5279 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5281 break 2 5282 fi 5283done 5284 done 5285IFS=$as_save_IFS 5286 5287fi 5288fi 5289OBJDUMP=$ac_cv_prog_OBJDUMP 5290if test -n "$OBJDUMP"; then 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5292$as_echo "$OBJDUMP" >&6; } 5293else 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5295$as_echo "no" >&6; } 5296fi 5297 5298 5299fi 5300if test -z "$ac_cv_prog_OBJDUMP"; then 5301 ac_ct_OBJDUMP=$OBJDUMP 5302 # Extract the first word of "objdump", so it can be a program name with args. 5303set dummy objdump; ac_word=$2 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5305$as_echo_n "checking for $ac_word... " >&6; } 5306if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5307 $as_echo_n "(cached) " >&6 5308else 5309 if test -n "$ac_ct_OBJDUMP"; then 5310 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5311else 5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5313for as_dir in $PATH 5314do 5315 IFS=$as_save_IFS 5316 test -z "$as_dir" && as_dir=. 5317 for ac_exec_ext in '' $ac_executable_extensions; do 5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5319 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5321 break 2 5322 fi 5323done 5324 done 5325IFS=$as_save_IFS 5326 5327fi 5328fi 5329ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5330if test -n "$ac_ct_OBJDUMP"; then 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5332$as_echo "$ac_ct_OBJDUMP" >&6; } 5333else 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5335$as_echo "no" >&6; } 5336fi 5337 5338 if test "x$ac_ct_OBJDUMP" = x; then 5339 OBJDUMP="false" 5340 else 5341 case $cross_compiling:$ac_tool_warned in 5342yes:) 5343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5345ac_tool_warned=yes ;; 5346esac 5347 OBJDUMP=$ac_ct_OBJDUMP 5348 fi 5349else 5350 OBJDUMP="$ac_cv_prog_OBJDUMP" 5351fi 5352 5353test -z "$OBJDUMP" && OBJDUMP=objdump 5354 5355 5356 5357 5358 5359 5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5361$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5362if ${lt_cv_deplibs_check_method+:} false; then : 5363 $as_echo_n "(cached) " >&6 5364else 5365 lt_cv_file_magic_cmd='$MAGIC_CMD' 5366lt_cv_file_magic_test_file= 5367lt_cv_deplibs_check_method='unknown' 5368# Need to set the preceding variable on all platforms that support 5369# interlibrary dependencies. 5370# 'none' -- dependencies not supported. 5371# 'unknown' -- same as none, but documents that we really don't know. 5372# 'pass_all' -- all dependencies passed with no checks. 5373# 'test_compile' -- check by making test program. 5374# 'file_magic [[regex]]' -- check by looking for files in library path 5375# that responds to the $file_magic_cmd with a given extended regex. 5376# If you have 'file' or equivalent on your system and you're not sure 5377# whether 'pass_all' will *always* work, you probably want this one. 5378 5379case $host_os in 5380aix[4-9]*) 5381 lt_cv_deplibs_check_method=pass_all 5382 ;; 5383 5384beos*) 5385 lt_cv_deplibs_check_method=pass_all 5386 ;; 5387 5388bsdi[45]*) 5389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5390 lt_cv_file_magic_cmd='/usr/bin/file -L' 5391 lt_cv_file_magic_test_file=/shlib/libc.so 5392 ;; 5393 5394cygwin*) 5395 # func_win32_libid is a shell function defined in ltmain.sh 5396 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5397 lt_cv_file_magic_cmd='func_win32_libid' 5398 ;; 5399 5400mingw* | pw32*) 5401 # Base MSYS/MinGW do not provide the 'file' command needed by 5402 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5403 # unless we find 'file', for example because we are cross-compiling. 5404 if ( file / ) >/dev/null 2>&1; then 5405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5406 lt_cv_file_magic_cmd='func_win32_libid' 5407 else 5408 # Keep this pattern in sync with the one in func_win32_libid. 5409 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5410 lt_cv_file_magic_cmd='$OBJDUMP -f' 5411 fi 5412 ;; 5413 5414cegcc*) 5415 # use the weaker test based on 'objdump'. See mingw*. 5416 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5417 lt_cv_file_magic_cmd='$OBJDUMP -f' 5418 ;; 5419 5420darwin* | rhapsody*) 5421 lt_cv_deplibs_check_method=pass_all 5422 ;; 5423 5424freebsd* | dragonfly*) 5425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5426 case $host_cpu in 5427 i*86 ) 5428 # Not sure whether the presence of OpenBSD here was a mistake. 5429 # Let's accept both of them until this is cleared up. 5430 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5431 lt_cv_file_magic_cmd=/usr/bin/file 5432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5433 ;; 5434 esac 5435 else 5436 lt_cv_deplibs_check_method=pass_all 5437 fi 5438 ;; 5439 5440haiku*) 5441 lt_cv_deplibs_check_method=pass_all 5442 ;; 5443 5444hpux10.20* | hpux11*) 5445 lt_cv_file_magic_cmd=/usr/bin/file 5446 case $host_cpu in 5447 ia64*) 5448 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5449 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5450 ;; 5451 hppa*64*) 5452 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]' 5453 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5454 ;; 5455 *) 5456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5457 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5458 ;; 5459 esac 5460 ;; 5461 5462interix[3-9]*) 5463 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5465 ;; 5466 5467irix5* | irix6* | nonstopux*) 5468 case $LD in 5469 *-32|*"-32 ") libmagic=32-bit;; 5470 *-n32|*"-n32 ") libmagic=N32;; 5471 *-64|*"-64 ") libmagic=64-bit;; 5472 *) libmagic=never-match;; 5473 esac 5474 lt_cv_deplibs_check_method=pass_all 5475 ;; 5476 5477# This must be glibc/ELF. 5478linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5479 lt_cv_deplibs_check_method=pass_all 5480 ;; 5481 5482netbsd* | netbsdelf*-gnu) 5483 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5485 else 5486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5487 fi 5488 ;; 5489 5490newos6*) 5491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5492 lt_cv_file_magic_cmd=/usr/bin/file 5493 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5494 ;; 5495 5496*nto* | *qnx*) 5497 lt_cv_deplibs_check_method=pass_all 5498 ;; 5499 5500openbsd* | bitrig*) 5501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5503 else 5504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5505 fi 5506 ;; 5507 5508osf3* | osf4* | osf5*) 5509 lt_cv_deplibs_check_method=pass_all 5510 ;; 5511 5512rdos*) 5513 lt_cv_deplibs_check_method=pass_all 5514 ;; 5515 5516solaris*) 5517 lt_cv_deplibs_check_method=pass_all 5518 ;; 5519 5520sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5521 lt_cv_deplibs_check_method=pass_all 5522 ;; 5523 5524sysv4 | sysv4.3*) 5525 case $host_vendor in 5526 motorola) 5527 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]' 5528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5529 ;; 5530 ncr) 5531 lt_cv_deplibs_check_method=pass_all 5532 ;; 5533 sequent) 5534 lt_cv_file_magic_cmd='/bin/file' 5535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5536 ;; 5537 sni) 5538 lt_cv_file_magic_cmd='/bin/file' 5539 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5540 lt_cv_file_magic_test_file=/lib/libc.so 5541 ;; 5542 siemens) 5543 lt_cv_deplibs_check_method=pass_all 5544 ;; 5545 pc) 5546 lt_cv_deplibs_check_method=pass_all 5547 ;; 5548 esac 5549 ;; 5550 5551tpf*) 5552 lt_cv_deplibs_check_method=pass_all 5553 ;; 5554os2*) 5555 lt_cv_deplibs_check_method=pass_all 5556 ;; 5557esac 5558 5559fi 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5561$as_echo "$lt_cv_deplibs_check_method" >&6; } 5562 5563file_magic_glob= 5564want_nocaseglob=no 5565if test "$build" = "$host"; then 5566 case $host_os in 5567 mingw* | pw32*) 5568 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5569 want_nocaseglob=yes 5570 else 5571 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5572 fi 5573 ;; 5574 esac 5575fi 5576 5577file_magic_cmd=$lt_cv_file_magic_cmd 5578deplibs_check_method=$lt_cv_deplibs_check_method 5579test -z "$deplibs_check_method" && deplibs_check_method=unknown 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602if test -n "$ac_tool_prefix"; then 5603 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5604set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5606$as_echo_n "checking for $ac_word... " >&6; } 5607if ${ac_cv_prog_DLLTOOL+:} false; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 if test -n "$DLLTOOL"; then 5611 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5612else 5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5614for as_dir in $PATH 5615do 5616 IFS=$as_save_IFS 5617 test -z "$as_dir" && as_dir=. 5618 for ac_exec_ext in '' $ac_executable_extensions; do 5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5620 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5622 break 2 5623 fi 5624done 5625 done 5626IFS=$as_save_IFS 5627 5628fi 5629fi 5630DLLTOOL=$ac_cv_prog_DLLTOOL 5631if test -n "$DLLTOOL"; then 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5633$as_echo "$DLLTOOL" >&6; } 5634else 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5636$as_echo "no" >&6; } 5637fi 5638 5639 5640fi 5641if test -z "$ac_cv_prog_DLLTOOL"; then 5642 ac_ct_DLLTOOL=$DLLTOOL 5643 # Extract the first word of "dlltool", so it can be a program name with args. 5644set dummy dlltool; ac_word=$2 5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5646$as_echo_n "checking for $ac_word... " >&6; } 5647if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5648 $as_echo_n "(cached) " >&6 5649else 5650 if test -n "$ac_ct_DLLTOOL"; then 5651 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5652else 5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5654for as_dir in $PATH 5655do 5656 IFS=$as_save_IFS 5657 test -z "$as_dir" && as_dir=. 5658 for ac_exec_ext in '' $ac_executable_extensions; do 5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5660 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5662 break 2 5663 fi 5664done 5665 done 5666IFS=$as_save_IFS 5667 5668fi 5669fi 5670ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5671if test -n "$ac_ct_DLLTOOL"; then 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5673$as_echo "$ac_ct_DLLTOOL" >&6; } 5674else 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5676$as_echo "no" >&6; } 5677fi 5678 5679 if test "x$ac_ct_DLLTOOL" = x; then 5680 DLLTOOL="false" 5681 else 5682 case $cross_compiling:$ac_tool_warned in 5683yes:) 5684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5686ac_tool_warned=yes ;; 5687esac 5688 DLLTOOL=$ac_ct_DLLTOOL 5689 fi 5690else 5691 DLLTOOL="$ac_cv_prog_DLLTOOL" 5692fi 5693 5694test -z "$DLLTOOL" && DLLTOOL=dlltool 5695 5696 5697 5698 5699 5700 5701 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5703$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5704if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5705 $as_echo_n "(cached) " >&6 5706else 5707 lt_cv_sharedlib_from_linklib_cmd='unknown' 5708 5709case $host_os in 5710cygwin* | mingw* | pw32* | cegcc*) 5711 # two different shell functions defined in ltmain.sh; 5712 # decide which one to use based on capabilities of $DLLTOOL 5713 case `$DLLTOOL --help 2>&1` in 5714 *--identify-strict*) 5715 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5716 ;; 5717 *) 5718 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5719 ;; 5720 esac 5721 ;; 5722*) 5723 # fallback: assume linklib IS sharedlib 5724 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5725 ;; 5726esac 5727 5728fi 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5730$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5731sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5732test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5733 5734 5735 5736 5737 5738 5739 5740 5741if test -n "$ac_tool_prefix"; then 5742 for ac_prog in ar 5743 do 5744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5745set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5747$as_echo_n "checking for $ac_word... " >&6; } 5748if ${ac_cv_prog_AR+:} false; then : 5749 $as_echo_n "(cached) " >&6 5750else 5751 if test -n "$AR"; then 5752 ac_cv_prog_AR="$AR" # Let the user override the test. 5753else 5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5755for as_dir in $PATH 5756do 5757 IFS=$as_save_IFS 5758 test -z "$as_dir" && as_dir=. 5759 for ac_exec_ext in '' $ac_executable_extensions; do 5760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5761 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5763 break 2 5764 fi 5765done 5766 done 5767IFS=$as_save_IFS 5768 5769fi 5770fi 5771AR=$ac_cv_prog_AR 5772if test -n "$AR"; then 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5774$as_echo "$AR" >&6; } 5775else 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5777$as_echo "no" >&6; } 5778fi 5779 5780 5781 test -n "$AR" && break 5782 done 5783fi 5784if test -z "$AR"; then 5785 ac_ct_AR=$AR 5786 for ac_prog in ar 5787do 5788 # Extract the first word of "$ac_prog", so it can be a program name with args. 5789set dummy $ac_prog; ac_word=$2 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5791$as_echo_n "checking for $ac_word... " >&6; } 5792if ${ac_cv_prog_ac_ct_AR+:} false; then : 5793 $as_echo_n "(cached) " >&6 5794else 5795 if test -n "$ac_ct_AR"; then 5796 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5797else 5798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5799for as_dir in $PATH 5800do 5801 IFS=$as_save_IFS 5802 test -z "$as_dir" && as_dir=. 5803 for ac_exec_ext in '' $ac_executable_extensions; do 5804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5805 ac_cv_prog_ac_ct_AR="$ac_prog" 5806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5807 break 2 5808 fi 5809done 5810 done 5811IFS=$as_save_IFS 5812 5813fi 5814fi 5815ac_ct_AR=$ac_cv_prog_ac_ct_AR 5816if test -n "$ac_ct_AR"; then 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5818$as_echo "$ac_ct_AR" >&6; } 5819else 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5821$as_echo "no" >&6; } 5822fi 5823 5824 5825 test -n "$ac_ct_AR" && break 5826done 5827 5828 if test "x$ac_ct_AR" = x; then 5829 AR="false" 5830 else 5831 case $cross_compiling:$ac_tool_warned in 5832yes:) 5833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5835ac_tool_warned=yes ;; 5836esac 5837 AR=$ac_ct_AR 5838 fi 5839fi 5840 5841: ${AR=ar} 5842: ${AR_FLAGS=cru} 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5855$as_echo_n "checking for archiver @FILE support... " >&6; } 5856if ${lt_cv_ar_at_file+:} false; then : 5857 $as_echo_n "(cached) " >&6 5858else 5859 lt_cv_ar_at_file=no 5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5861/* end confdefs.h. */ 5862 5863int 5864main () 5865{ 5866 5867 ; 5868 return 0; 5869} 5870_ACEOF 5871if ac_fn_c_try_compile "$LINENO"; then : 5872 echo conftest.$ac_objext > conftest.lst 5873 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5875 (eval $lt_ar_try) 2>&5 5876 ac_status=$? 5877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5878 test $ac_status = 0; } 5879 if test 0 -eq "$ac_status"; then 5880 # Ensure the archiver fails upon bogus file names. 5881 rm -f conftest.$ac_objext libconftest.a 5882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5883 (eval $lt_ar_try) 2>&5 5884 ac_status=$? 5885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5886 test $ac_status = 0; } 5887 if test 0 -ne "$ac_status"; then 5888 lt_cv_ar_at_file=@ 5889 fi 5890 fi 5891 rm -f conftest.* libconftest.a 5892 5893fi 5894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5895 5896fi 5897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5898$as_echo "$lt_cv_ar_at_file" >&6; } 5899 5900if test no = "$lt_cv_ar_at_file"; then 5901 archiver_list_spec= 5902else 5903 archiver_list_spec=$lt_cv_ar_at_file 5904fi 5905 5906 5907 5908 5909 5910 5911 5912if test -n "$ac_tool_prefix"; then 5913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5914set dummy ${ac_tool_prefix}strip; ac_word=$2 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5916$as_echo_n "checking for $ac_word... " >&6; } 5917if ${ac_cv_prog_STRIP+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919else 5920 if test -n "$STRIP"; then 5921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5922else 5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5924for as_dir in $PATH 5925do 5926 IFS=$as_save_IFS 5927 test -z "$as_dir" && as_dir=. 5928 for ac_exec_ext in '' $ac_executable_extensions; do 5929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5930 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5932 break 2 5933 fi 5934done 5935 done 5936IFS=$as_save_IFS 5937 5938fi 5939fi 5940STRIP=$ac_cv_prog_STRIP 5941if test -n "$STRIP"; then 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5943$as_echo "$STRIP" >&6; } 5944else 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5946$as_echo "no" >&6; } 5947fi 5948 5949 5950fi 5951if test -z "$ac_cv_prog_STRIP"; then 5952 ac_ct_STRIP=$STRIP 5953 # Extract the first word of "strip", so it can be a program name with args. 5954set dummy strip; ac_word=$2 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5956$as_echo_n "checking for $ac_word... " >&6; } 5957if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5958 $as_echo_n "(cached) " >&6 5959else 5960 if test -n "$ac_ct_STRIP"; then 5961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5962else 5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5964for as_dir in $PATH 5965do 5966 IFS=$as_save_IFS 5967 test -z "$as_dir" && as_dir=. 5968 for ac_exec_ext in '' $ac_executable_extensions; do 5969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5970 ac_cv_prog_ac_ct_STRIP="strip" 5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5972 break 2 5973 fi 5974done 5975 done 5976IFS=$as_save_IFS 5977 5978fi 5979fi 5980ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5981if test -n "$ac_ct_STRIP"; then 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5983$as_echo "$ac_ct_STRIP" >&6; } 5984else 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5986$as_echo "no" >&6; } 5987fi 5988 5989 if test "x$ac_ct_STRIP" = x; then 5990 STRIP=":" 5991 else 5992 case $cross_compiling:$ac_tool_warned in 5993yes:) 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5996ac_tool_warned=yes ;; 5997esac 5998 STRIP=$ac_ct_STRIP 5999 fi 6000else 6001 STRIP="$ac_cv_prog_STRIP" 6002fi 6003 6004test -z "$STRIP" && STRIP=: 6005 6006 6007 6008 6009 6010 6011if test -n "$ac_tool_prefix"; then 6012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6013set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6015$as_echo_n "checking for $ac_word... " >&6; } 6016if ${ac_cv_prog_RANLIB+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018else 6019 if test -n "$RANLIB"; then 6020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6021else 6022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6023for as_dir in $PATH 6024do 6025 IFS=$as_save_IFS 6026 test -z "$as_dir" && as_dir=. 6027 for ac_exec_ext in '' $ac_executable_extensions; do 6028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6031 break 2 6032 fi 6033done 6034 done 6035IFS=$as_save_IFS 6036 6037fi 6038fi 6039RANLIB=$ac_cv_prog_RANLIB 6040if test -n "$RANLIB"; then 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6042$as_echo "$RANLIB" >&6; } 6043else 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6045$as_echo "no" >&6; } 6046fi 6047 6048 6049fi 6050if test -z "$ac_cv_prog_RANLIB"; then 6051 ac_ct_RANLIB=$RANLIB 6052 # Extract the first word of "ranlib", so it can be a program name with args. 6053set dummy ranlib; ac_word=$2 6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6055$as_echo_n "checking for $ac_word... " >&6; } 6056if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6057 $as_echo_n "(cached) " >&6 6058else 6059 if test -n "$ac_ct_RANLIB"; then 6060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6061else 6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6063for as_dir in $PATH 6064do 6065 IFS=$as_save_IFS 6066 test -z "$as_dir" && as_dir=. 6067 for ac_exec_ext in '' $ac_executable_extensions; do 6068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6069 ac_cv_prog_ac_ct_RANLIB="ranlib" 6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6071 break 2 6072 fi 6073done 6074 done 6075IFS=$as_save_IFS 6076 6077fi 6078fi 6079ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6080if test -n "$ac_ct_RANLIB"; then 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6082$as_echo "$ac_ct_RANLIB" >&6; } 6083else 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6085$as_echo "no" >&6; } 6086fi 6087 6088 if test "x$ac_ct_RANLIB" = x; then 6089 RANLIB=":" 6090 else 6091 case $cross_compiling:$ac_tool_warned in 6092yes:) 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6095ac_tool_warned=yes ;; 6096esac 6097 RANLIB=$ac_ct_RANLIB 6098 fi 6099else 6100 RANLIB="$ac_cv_prog_RANLIB" 6101fi 6102 6103test -z "$RANLIB" && RANLIB=: 6104 6105 6106 6107 6108 6109 6110# Determine commands to create old-style static archives. 6111old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6112old_postinstall_cmds='chmod 644 $oldlib' 6113old_postuninstall_cmds= 6114 6115if test -n "$RANLIB"; then 6116 case $host_os in 6117 bitrig* | openbsd*) 6118 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6119 ;; 6120 *) 6121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6122 ;; 6123 esac 6124 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6125fi 6126 6127case $host_os in 6128 darwin*) 6129 lock_old_archive_extraction=yes ;; 6130 *) 6131 lock_old_archive_extraction=no ;; 6132esac 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 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172# If no C compiler was specified, use CC. 6173LTCC=${LTCC-"$CC"} 6174 6175# If no C compiler flags were specified, use CFLAGS. 6176LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6177 6178# Allow CC to be a program name with arguments. 6179compiler=$CC 6180 6181 6182# Check for command to grab the raw symbol name followed by C symbol from nm. 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6184$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6185if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6186 $as_echo_n "(cached) " >&6 6187else 6188 6189# These are sane defaults that work on at least a few old systems. 6190# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6191 6192# Character class describing NM global symbol codes. 6193symcode='[BCDEGRST]' 6194 6195# Regexp to match symbols that can be accessed directly from C. 6196sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6197 6198# Define system-specific variables. 6199case $host_os in 6200aix*) 6201 symcode='[BCDT]' 6202 ;; 6203cygwin* | mingw* | pw32* | cegcc*) 6204 symcode='[ABCDGISTW]' 6205 ;; 6206hpux*) 6207 if test ia64 = "$host_cpu"; then 6208 symcode='[ABCDEGRST]' 6209 fi 6210 ;; 6211irix* | nonstopux*) 6212 symcode='[BCDEGRST]' 6213 ;; 6214osf*) 6215 symcode='[BCDEGQRST]' 6216 ;; 6217solaris*) 6218 symcode='[BDRT]' 6219 ;; 6220sco3.2v5*) 6221 symcode='[DT]' 6222 ;; 6223sysv4.2uw2*) 6224 symcode='[DT]' 6225 ;; 6226sysv5* | sco5v6* | unixware* | OpenUNIX*) 6227 symcode='[ABDT]' 6228 ;; 6229sysv4) 6230 symcode='[DFNSTU]' 6231 ;; 6232esac 6233 6234# If we're using GNU nm, then use its standard symbol codes. 6235case `$NM -V 2>&1` in 6236*GNU* | *'with BFD'*) 6237 symcode='[ABCDGIRSTW]' ;; 6238esac 6239 6240if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6241 # Gets list of data symbols to import. 6242 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6243 # Adjust the below global symbol transforms to fixup imported variables. 6244 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6245 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6246 lt_c_name_lib_hook="\ 6247 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6248 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6249else 6250 # Disable hooks by default. 6251 lt_cv_sys_global_symbol_to_import= 6252 lt_cdecl_hook= 6253 lt_c_name_hook= 6254 lt_c_name_lib_hook= 6255fi 6256 6257# Transform an extracted symbol line into a proper C declaration. 6258# Some systems (esp. on ia64) link data and code symbols differently, 6259# so use this general approach. 6260lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6261$lt_cdecl_hook\ 6262" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6263" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6264 6265# Transform an extracted symbol line into symbol name and symbol address 6266lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6267$lt_c_name_hook\ 6268" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6269" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6270 6271# Transform an extracted symbol line into symbol name with lib prefix and 6272# symbol address. 6273lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6274$lt_c_name_lib_hook\ 6275" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6276" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6277" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6278 6279# Handle CRLF in mingw tool chain 6280opt_cr= 6281case $build_os in 6282mingw*) 6283 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6284 ;; 6285esac 6286 6287# Try without a prefix underscore, then with it. 6288for ac_symprfx in "" "_"; do 6289 6290 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6291 symxfrm="\\1 $ac_symprfx\\2 \\2" 6292 6293 # Write the raw and C identifiers. 6294 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6295 # Fake it for dumpbin and say T for any non-static function, 6296 # D for any global variable and I for any imported variable. 6297 # Also find C++ and __fastcall symbols from MSVC++, 6298 # which start with @ or ?. 6299 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6300" {last_section=section; section=\$ 3};"\ 6301" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6302" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6303" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6304" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6305" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6306" \$ 0!~/External *\|/{next};"\ 6307" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6308" {if(hide[section]) next};"\ 6309" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6310" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6311" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6312" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6313" ' prfx=^$ac_symprfx" 6314 else 6315 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6316 fi 6317 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6318 6319 # Check to see that the pipe works correctly. 6320 pipe_works=no 6321 6322 rm -f conftest* 6323 cat > conftest.$ac_ext <<_LT_EOF 6324#ifdef __cplusplus 6325extern "C" { 6326#endif 6327char nm_test_var; 6328void nm_test_func(void); 6329void nm_test_func(void){} 6330#ifdef __cplusplus 6331} 6332#endif 6333int main(){nm_test_var='a';nm_test_func();return(0);} 6334_LT_EOF 6335 6336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6337 (eval $ac_compile) 2>&5 6338 ac_status=$? 6339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6340 test $ac_status = 0; }; then 6341 # Now try to grab the symbols. 6342 nlist=conftest.nm 6343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6344 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6345 ac_status=$? 6346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6347 test $ac_status = 0; } && test -s "$nlist"; then 6348 # Try sorting and uniquifying the output. 6349 if sort "$nlist" | uniq > "$nlist"T; then 6350 mv -f "$nlist"T "$nlist" 6351 else 6352 rm -f "$nlist"T 6353 fi 6354 6355 # Make sure that we snagged all the symbols we need. 6356 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6357 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6358 cat <<_LT_EOF > conftest.$ac_ext 6359/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6360#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6361/* DATA imports from DLLs on WIN32 can't be const, because runtime 6362 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6363# define LT_DLSYM_CONST 6364#elif defined __osf__ 6365/* This system does not cope well with relocations in const data. */ 6366# define LT_DLSYM_CONST 6367#else 6368# define LT_DLSYM_CONST const 6369#endif 6370 6371#ifdef __cplusplus 6372extern "C" { 6373#endif 6374 6375_LT_EOF 6376 # Now generate the symbol file. 6377 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6378 6379 cat <<_LT_EOF >> conftest.$ac_ext 6380 6381/* The mapping between symbol names and symbols. */ 6382LT_DLSYM_CONST struct { 6383 const char *name; 6384 void *address; 6385} 6386lt__PROGRAM__LTX_preloaded_symbols[] = 6387{ 6388 { "@PROGRAM@", (void *) 0 }, 6389_LT_EOF 6390 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6391 cat <<\_LT_EOF >> conftest.$ac_ext 6392 {0, (void *) 0} 6393}; 6394 6395/* This works around a problem in FreeBSD linker */ 6396#ifdef FREEBSD_WORKAROUND 6397static const void *lt_preloaded_setup() { 6398 return lt__PROGRAM__LTX_preloaded_symbols; 6399} 6400#endif 6401 6402#ifdef __cplusplus 6403} 6404#endif 6405_LT_EOF 6406 # Now try linking the two files. 6407 mv conftest.$ac_objext conftstm.$ac_objext 6408 lt_globsym_save_LIBS=$LIBS 6409 lt_globsym_save_CFLAGS=$CFLAGS 6410 LIBS=conftstm.$ac_objext 6411 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6413 (eval $ac_link) 2>&5 6414 ac_status=$? 6415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6416 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6417 pipe_works=yes 6418 fi 6419 LIBS=$lt_globsym_save_LIBS 6420 CFLAGS=$lt_globsym_save_CFLAGS 6421 else 6422 echo "cannot find nm_test_func in $nlist" >&5 6423 fi 6424 else 6425 echo "cannot find nm_test_var in $nlist" >&5 6426 fi 6427 else 6428 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6429 fi 6430 else 6431 echo "$progname: failed program was:" >&5 6432 cat conftest.$ac_ext >&5 6433 fi 6434 rm -rf conftest* conftst* 6435 6436 # Do not use the global_symbol_pipe unless it works. 6437 if test yes = "$pipe_works"; then 6438 break 6439 else 6440 lt_cv_sys_global_symbol_pipe= 6441 fi 6442done 6443 6444fi 6445 6446if test -z "$lt_cv_sys_global_symbol_pipe"; then 6447 lt_cv_sys_global_symbol_to_cdecl= 6448fi 6449if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6451$as_echo "failed" >&6; } 6452else 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6454$as_echo "ok" >&6; } 6455fi 6456 6457# Response file support. 6458if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6459 nm_file_list_spec='@' 6460elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6461 nm_file_list_spec='@' 6462fi 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6501$as_echo_n "checking for sysroot... " >&6; } 6502 6503# Check whether --with-sysroot was given. 6504if test "${with_sysroot+set}" = set; then : 6505 withval=$with_sysroot; 6506else 6507 with_sysroot=no 6508fi 6509 6510 6511lt_sysroot= 6512case $with_sysroot in #( 6513 yes) 6514 if test yes = "$GCC"; then 6515 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6516 fi 6517 ;; #( 6518 /*) 6519 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6520 ;; #( 6521 no|'') 6522 ;; #( 6523 *) 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6525$as_echo "$with_sysroot" >&6; } 6526 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6527 ;; 6528esac 6529 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6531$as_echo "${lt_sysroot:-no}" >&6; } 6532 6533 6534 6535 6536 6537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6538$as_echo_n "checking for a working dd... " >&6; } 6539if ${ac_cv_path_lt_DD+:} false; then : 6540 $as_echo_n "(cached) " >&6 6541else 6542 printf 0123456789abcdef0123456789abcdef >conftest.i 6543cat conftest.i conftest.i >conftest2.i 6544: ${lt_DD:=$DD} 6545if test -z "$lt_DD"; then 6546 ac_path_lt_DD_found=false 6547 # Loop through the user's path and test for each of PROGNAME-LIST 6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6549for as_dir in $PATH 6550do 6551 IFS=$as_save_IFS 6552 test -z "$as_dir" && as_dir=. 6553 for ac_prog in dd; do 6554 for ac_exec_ext in '' $ac_executable_extensions; do 6555 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6556 as_fn_executable_p "$ac_path_lt_DD" || continue 6557if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6558 cmp -s conftest.i conftest.out \ 6559 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6560fi 6561 $ac_path_lt_DD_found && break 3 6562 done 6563 done 6564 done 6565IFS=$as_save_IFS 6566 if test -z "$ac_cv_path_lt_DD"; then 6567 : 6568 fi 6569else 6570 ac_cv_path_lt_DD=$lt_DD 6571fi 6572 6573rm -f conftest.i conftest2.i conftest.out 6574fi 6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6576$as_echo "$ac_cv_path_lt_DD" >&6; } 6577 6578 6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6580$as_echo_n "checking how to truncate binary pipes... " >&6; } 6581if ${lt_cv_truncate_bin+:} false; then : 6582 $as_echo_n "(cached) " >&6 6583else 6584 printf 0123456789abcdef0123456789abcdef >conftest.i 6585cat conftest.i conftest.i >conftest2.i 6586lt_cv_truncate_bin= 6587if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6588 cmp -s conftest.i conftest.out \ 6589 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6590fi 6591rm -f conftest.i conftest2.i conftest.out 6592test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6593fi 6594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6595$as_echo "$lt_cv_truncate_bin" >&6; } 6596 6597 6598 6599 6600 6601 6602 6603# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6604func_cc_basename () 6605{ 6606 for cc_temp in $*""; do 6607 case $cc_temp in 6608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6610 \-*) ;; 6611 *) break;; 6612 esac 6613 done 6614 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6615} 6616 6617# Check whether --enable-libtool-lock was given. 6618if test "${enable_libtool_lock+set}" = set; then : 6619 enableval=$enable_libtool_lock; 6620fi 6621 6622test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6623 6624# Some flags need to be propagated to the compiler or linker for good 6625# libtool support. 6626case $host in 6627ia64-*-hpux*) 6628 # Find out what ABI is being produced by ac_compile, and set mode 6629 # options accordingly. 6630 echo 'int i;' > conftest.$ac_ext 6631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6632 (eval $ac_compile) 2>&5 6633 ac_status=$? 6634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6635 test $ac_status = 0; }; then 6636 case `/usr/bin/file conftest.$ac_objext` in 6637 *ELF-32*) 6638 HPUX_IA64_MODE=32 6639 ;; 6640 *ELF-64*) 6641 HPUX_IA64_MODE=64 6642 ;; 6643 esac 6644 fi 6645 rm -rf conftest* 6646 ;; 6647*-*-irix6*) 6648 # Find out what ABI is being produced by ac_compile, and set linker 6649 # options accordingly. 6650 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6652 (eval $ac_compile) 2>&5 6653 ac_status=$? 6654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6655 test $ac_status = 0; }; then 6656 if test yes = "$lt_cv_prog_gnu_ld"; then 6657 case `/usr/bin/file conftest.$ac_objext` in 6658 *32-bit*) 6659 LD="${LD-ld} -melf32bsmip" 6660 ;; 6661 *N32*) 6662 LD="${LD-ld} -melf32bmipn32" 6663 ;; 6664 *64-bit*) 6665 LD="${LD-ld} -melf64bmip" 6666 ;; 6667 esac 6668 else 6669 case `/usr/bin/file conftest.$ac_objext` in 6670 *32-bit*) 6671 LD="${LD-ld} -32" 6672 ;; 6673 *N32*) 6674 LD="${LD-ld} -n32" 6675 ;; 6676 *64-bit*) 6677 LD="${LD-ld} -64" 6678 ;; 6679 esac 6680 fi 6681 fi 6682 rm -rf conftest* 6683 ;; 6684 6685mips64*-*linux*) 6686 # Find out what ABI is being produced by ac_compile, and set linker 6687 # options accordingly. 6688 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6690 (eval $ac_compile) 2>&5 6691 ac_status=$? 6692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6693 test $ac_status = 0; }; then 6694 emul=elf 6695 case `/usr/bin/file conftest.$ac_objext` in 6696 *32-bit*) 6697 emul="${emul}32" 6698 ;; 6699 *64-bit*) 6700 emul="${emul}64" 6701 ;; 6702 esac 6703 case `/usr/bin/file conftest.$ac_objext` in 6704 *MSB*) 6705 emul="${emul}btsmip" 6706 ;; 6707 *LSB*) 6708 emul="${emul}ltsmip" 6709 ;; 6710 esac 6711 case `/usr/bin/file conftest.$ac_objext` in 6712 *N32*) 6713 emul="${emul}n32" 6714 ;; 6715 esac 6716 LD="${LD-ld} -m $emul" 6717 fi 6718 rm -rf conftest* 6719 ;; 6720 6721x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6722s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6723 # Find out what ABI is being produced by ac_compile, and set linker 6724 # options accordingly. Note that the listed cases only cover the 6725 # situations where additional linker options are needed (such as when 6726 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6727 # vice versa); the common cases where no linker options are needed do 6728 # not appear in the list. 6729 echo 'int i;' > conftest.$ac_ext 6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6731 (eval $ac_compile) 2>&5 6732 ac_status=$? 6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6734 test $ac_status = 0; }; then 6735 case `/usr/bin/file conftest.o` in 6736 *32-bit*) 6737 case $host in 6738 x86_64-*kfreebsd*-gnu) 6739 LD="${LD-ld} -m elf_i386_fbsd" 6740 ;; 6741 x86_64-*linux*) 6742 case `/usr/bin/file conftest.o` in 6743 *x86-64*) 6744 LD="${LD-ld} -m elf32_x86_64" 6745 ;; 6746 *) 6747 LD="${LD-ld} -m elf_i386" 6748 ;; 6749 esac 6750 ;; 6751 powerpc64le-*linux*) 6752 LD="${LD-ld} -m elf32lppclinux" 6753 ;; 6754 powerpc64-*linux*) 6755 LD="${LD-ld} -m elf32ppclinux" 6756 ;; 6757 s390x-*linux*) 6758 LD="${LD-ld} -m elf_s390" 6759 ;; 6760 sparc64-*linux*) 6761 LD="${LD-ld} -m elf32_sparc" 6762 ;; 6763 esac 6764 ;; 6765 *64-bit*) 6766 case $host in 6767 x86_64-*kfreebsd*-gnu) 6768 LD="${LD-ld} -m elf_x86_64_fbsd" 6769 ;; 6770 x86_64-*linux*) 6771 LD="${LD-ld} -m elf_x86_64" 6772 ;; 6773 powerpcle-*linux*) 6774 LD="${LD-ld} -m elf64lppc" 6775 ;; 6776 powerpc-*linux*) 6777 LD="${LD-ld} -m elf64ppc" 6778 ;; 6779 s390*-*linux*|s390*-*tpf*) 6780 LD="${LD-ld} -m elf64_s390" 6781 ;; 6782 sparc*-*linux*) 6783 LD="${LD-ld} -m elf64_sparc" 6784 ;; 6785 esac 6786 ;; 6787 esac 6788 fi 6789 rm -rf conftest* 6790 ;; 6791 6792*-*-sco3.2v5*) 6793 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6794 SAVE_CFLAGS=$CFLAGS 6795 CFLAGS="$CFLAGS -belf" 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6797$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6798if ${lt_cv_cc_needs_belf+:} false; then : 6799 $as_echo_n "(cached) " >&6 6800else 6801 ac_ext=c 6802ac_cpp='$CPP $CPPFLAGS' 6803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6805ac_compiler_gnu=$ac_cv_c_compiler_gnu 6806 6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6808/* end confdefs.h. */ 6809 6810int 6811main () 6812{ 6813 6814 ; 6815 return 0; 6816} 6817_ACEOF 6818if ac_fn_c_try_link "$LINENO"; then : 6819 lt_cv_cc_needs_belf=yes 6820else 6821 lt_cv_cc_needs_belf=no 6822fi 6823rm -f core conftest.err conftest.$ac_objext \ 6824 conftest$ac_exeext conftest.$ac_ext 6825 ac_ext=c 6826ac_cpp='$CPP $CPPFLAGS' 6827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6829ac_compiler_gnu=$ac_cv_c_compiler_gnu 6830 6831fi 6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6833$as_echo "$lt_cv_cc_needs_belf" >&6; } 6834 if test yes != "$lt_cv_cc_needs_belf"; then 6835 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6836 CFLAGS=$SAVE_CFLAGS 6837 fi 6838 ;; 6839*-*solaris*) 6840 # Find out what ABI is being produced by ac_compile, and set linker 6841 # options accordingly. 6842 echo 'int i;' > conftest.$ac_ext 6843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6844 (eval $ac_compile) 2>&5 6845 ac_status=$? 6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6847 test $ac_status = 0; }; then 6848 case `/usr/bin/file conftest.o` in 6849 *64-bit*) 6850 case $lt_cv_prog_gnu_ld in 6851 yes*) 6852 case $host in 6853 i?86-*-solaris*|x86_64-*-solaris*) 6854 LD="${LD-ld} -m elf_x86_64" 6855 ;; 6856 sparc*-*-solaris*) 6857 LD="${LD-ld} -m elf64_sparc" 6858 ;; 6859 esac 6860 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6861 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6862 LD=${LD-ld}_sol2 6863 fi 6864 ;; 6865 *) 6866 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6867 LD="${LD-ld} -64" 6868 fi 6869 ;; 6870 esac 6871 ;; 6872 esac 6873 fi 6874 rm -rf conftest* 6875 ;; 6876esac 6877 6878need_locks=$enable_libtool_lock 6879 6880if test -n "$ac_tool_prefix"; then 6881 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6882set dummy ${ac_tool_prefix}mt; ac_word=$2 6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6884$as_echo_n "checking for $ac_word... " >&6; } 6885if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6886 $as_echo_n "(cached) " >&6 6887else 6888 if test -n "$MANIFEST_TOOL"; then 6889 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6890else 6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6892for as_dir in $PATH 6893do 6894 IFS=$as_save_IFS 6895 test -z "$as_dir" && as_dir=. 6896 for ac_exec_ext in '' $ac_executable_extensions; do 6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6898 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6900 break 2 6901 fi 6902done 6903 done 6904IFS=$as_save_IFS 6905 6906fi 6907fi 6908MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6909if test -n "$MANIFEST_TOOL"; then 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6911$as_echo "$MANIFEST_TOOL" >&6; } 6912else 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6914$as_echo "no" >&6; } 6915fi 6916 6917 6918fi 6919if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6920 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6921 # Extract the first word of "mt", so it can be a program name with args. 6922set dummy mt; ac_word=$2 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6924$as_echo_n "checking for $ac_word... " >&6; } 6925if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6926 $as_echo_n "(cached) " >&6 6927else 6928 if test -n "$ac_ct_MANIFEST_TOOL"; then 6929 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6930else 6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6932for as_dir in $PATH 6933do 6934 IFS=$as_save_IFS 6935 test -z "$as_dir" && as_dir=. 6936 for ac_exec_ext in '' $ac_executable_extensions; do 6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6938 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6940 break 2 6941 fi 6942done 6943 done 6944IFS=$as_save_IFS 6945 6946fi 6947fi 6948ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6949if test -n "$ac_ct_MANIFEST_TOOL"; then 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6951$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6952else 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6954$as_echo "no" >&6; } 6955fi 6956 6957 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6958 MANIFEST_TOOL=":" 6959 else 6960 case $cross_compiling:$ac_tool_warned in 6961yes:) 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6964ac_tool_warned=yes ;; 6965esac 6966 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6967 fi 6968else 6969 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6970fi 6971 6972test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6974$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6975if ${lt_cv_path_mainfest_tool+:} false; then : 6976 $as_echo_n "(cached) " >&6 6977else 6978 lt_cv_path_mainfest_tool=no 6979 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6980 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6981 cat conftest.err >&5 6982 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6983 lt_cv_path_mainfest_tool=yes 6984 fi 6985 rm -f conftest* 6986fi 6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6988$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6989if test yes != "$lt_cv_path_mainfest_tool"; then 6990 MANIFEST_TOOL=: 6991fi 6992 6993 6994 6995 6996 6997 6998 case $host_os in 6999 rhapsody* | darwin*) 7000 if test -n "$ac_tool_prefix"; then 7001 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7002set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7004$as_echo_n "checking for $ac_word... " >&6; } 7005if ${ac_cv_prog_DSYMUTIL+:} false; then : 7006 $as_echo_n "(cached) " >&6 7007else 7008 if test -n "$DSYMUTIL"; then 7009 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7010else 7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7012for as_dir in $PATH 7013do 7014 IFS=$as_save_IFS 7015 test -z "$as_dir" && as_dir=. 7016 for ac_exec_ext in '' $ac_executable_extensions; do 7017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7018 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7020 break 2 7021 fi 7022done 7023 done 7024IFS=$as_save_IFS 7025 7026fi 7027fi 7028DSYMUTIL=$ac_cv_prog_DSYMUTIL 7029if test -n "$DSYMUTIL"; then 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7031$as_echo "$DSYMUTIL" >&6; } 7032else 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7034$as_echo "no" >&6; } 7035fi 7036 7037 7038fi 7039if test -z "$ac_cv_prog_DSYMUTIL"; then 7040 ac_ct_DSYMUTIL=$DSYMUTIL 7041 # Extract the first word of "dsymutil", so it can be a program name with args. 7042set dummy dsymutil; ac_word=$2 7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7044$as_echo_n "checking for $ac_word... " >&6; } 7045if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7046 $as_echo_n "(cached) " >&6 7047else 7048 if test -n "$ac_ct_DSYMUTIL"; then 7049 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7050else 7051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7052for as_dir in $PATH 7053do 7054 IFS=$as_save_IFS 7055 test -z "$as_dir" && as_dir=. 7056 for ac_exec_ext in '' $ac_executable_extensions; do 7057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7058 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7060 break 2 7061 fi 7062done 7063 done 7064IFS=$as_save_IFS 7065 7066fi 7067fi 7068ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7069if test -n "$ac_ct_DSYMUTIL"; then 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7071$as_echo "$ac_ct_DSYMUTIL" >&6; } 7072else 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7074$as_echo "no" >&6; } 7075fi 7076 7077 if test "x$ac_ct_DSYMUTIL" = x; then 7078 DSYMUTIL=":" 7079 else 7080 case $cross_compiling:$ac_tool_warned in 7081yes:) 7082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7084ac_tool_warned=yes ;; 7085esac 7086 DSYMUTIL=$ac_ct_DSYMUTIL 7087 fi 7088else 7089 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7090fi 7091 7092 if test -n "$ac_tool_prefix"; then 7093 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7094set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7096$as_echo_n "checking for $ac_word... " >&6; } 7097if ${ac_cv_prog_NMEDIT+:} false; then : 7098 $as_echo_n "(cached) " >&6 7099else 7100 if test -n "$NMEDIT"; then 7101 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7102else 7103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7104for as_dir in $PATH 7105do 7106 IFS=$as_save_IFS 7107 test -z "$as_dir" && as_dir=. 7108 for ac_exec_ext in '' $ac_executable_extensions; do 7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7110 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7112 break 2 7113 fi 7114done 7115 done 7116IFS=$as_save_IFS 7117 7118fi 7119fi 7120NMEDIT=$ac_cv_prog_NMEDIT 7121if test -n "$NMEDIT"; then 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7123$as_echo "$NMEDIT" >&6; } 7124else 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7126$as_echo "no" >&6; } 7127fi 7128 7129 7130fi 7131if test -z "$ac_cv_prog_NMEDIT"; then 7132 ac_ct_NMEDIT=$NMEDIT 7133 # Extract the first word of "nmedit", so it can be a program name with args. 7134set dummy nmedit; ac_word=$2 7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7136$as_echo_n "checking for $ac_word... " >&6; } 7137if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7138 $as_echo_n "(cached) " >&6 7139else 7140 if test -n "$ac_ct_NMEDIT"; then 7141 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7142else 7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7144for as_dir in $PATH 7145do 7146 IFS=$as_save_IFS 7147 test -z "$as_dir" && as_dir=. 7148 for ac_exec_ext in '' $ac_executable_extensions; do 7149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7150 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7152 break 2 7153 fi 7154done 7155 done 7156IFS=$as_save_IFS 7157 7158fi 7159fi 7160ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7161if test -n "$ac_ct_NMEDIT"; then 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7163$as_echo "$ac_ct_NMEDIT" >&6; } 7164else 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7166$as_echo "no" >&6; } 7167fi 7168 7169 if test "x$ac_ct_NMEDIT" = x; then 7170 NMEDIT=":" 7171 else 7172 case $cross_compiling:$ac_tool_warned in 7173yes:) 7174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7176ac_tool_warned=yes ;; 7177esac 7178 NMEDIT=$ac_ct_NMEDIT 7179 fi 7180else 7181 NMEDIT="$ac_cv_prog_NMEDIT" 7182fi 7183 7184 if test -n "$ac_tool_prefix"; then 7185 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7186set dummy ${ac_tool_prefix}lipo; ac_word=$2 7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7188$as_echo_n "checking for $ac_word... " >&6; } 7189if ${ac_cv_prog_LIPO+:} false; then : 7190 $as_echo_n "(cached) " >&6 7191else 7192 if test -n "$LIPO"; then 7193 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7194else 7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7196for as_dir in $PATH 7197do 7198 IFS=$as_save_IFS 7199 test -z "$as_dir" && as_dir=. 7200 for ac_exec_ext in '' $ac_executable_extensions; do 7201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7202 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7204 break 2 7205 fi 7206done 7207 done 7208IFS=$as_save_IFS 7209 7210fi 7211fi 7212LIPO=$ac_cv_prog_LIPO 7213if test -n "$LIPO"; then 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7215$as_echo "$LIPO" >&6; } 7216else 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7218$as_echo "no" >&6; } 7219fi 7220 7221 7222fi 7223if test -z "$ac_cv_prog_LIPO"; then 7224 ac_ct_LIPO=$LIPO 7225 # Extract the first word of "lipo", so it can be a program name with args. 7226set dummy lipo; ac_word=$2 7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7228$as_echo_n "checking for $ac_word... " >&6; } 7229if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7230 $as_echo_n "(cached) " >&6 7231else 7232 if test -n "$ac_ct_LIPO"; then 7233 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7234else 7235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7236for as_dir in $PATH 7237do 7238 IFS=$as_save_IFS 7239 test -z "$as_dir" && as_dir=. 7240 for ac_exec_ext in '' $ac_executable_extensions; do 7241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7242 ac_cv_prog_ac_ct_LIPO="lipo" 7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7244 break 2 7245 fi 7246done 7247 done 7248IFS=$as_save_IFS 7249 7250fi 7251fi 7252ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7253if test -n "$ac_ct_LIPO"; then 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7255$as_echo "$ac_ct_LIPO" >&6; } 7256else 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7258$as_echo "no" >&6; } 7259fi 7260 7261 if test "x$ac_ct_LIPO" = x; then 7262 LIPO=":" 7263 else 7264 case $cross_compiling:$ac_tool_warned in 7265yes:) 7266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7268ac_tool_warned=yes ;; 7269esac 7270 LIPO=$ac_ct_LIPO 7271 fi 7272else 7273 LIPO="$ac_cv_prog_LIPO" 7274fi 7275 7276 if test -n "$ac_tool_prefix"; then 7277 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7278set dummy ${ac_tool_prefix}otool; ac_word=$2 7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7280$as_echo_n "checking for $ac_word... " >&6; } 7281if ${ac_cv_prog_OTOOL+:} false; then : 7282 $as_echo_n "(cached) " >&6 7283else 7284 if test -n "$OTOOL"; then 7285 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7286else 7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7288for as_dir in $PATH 7289do 7290 IFS=$as_save_IFS 7291 test -z "$as_dir" && as_dir=. 7292 for ac_exec_ext in '' $ac_executable_extensions; do 7293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7294 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7296 break 2 7297 fi 7298done 7299 done 7300IFS=$as_save_IFS 7301 7302fi 7303fi 7304OTOOL=$ac_cv_prog_OTOOL 7305if test -n "$OTOOL"; then 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7307$as_echo "$OTOOL" >&6; } 7308else 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7310$as_echo "no" >&6; } 7311fi 7312 7313 7314fi 7315if test -z "$ac_cv_prog_OTOOL"; then 7316 ac_ct_OTOOL=$OTOOL 7317 # Extract the first word of "otool", so it can be a program name with args. 7318set dummy otool; ac_word=$2 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7320$as_echo_n "checking for $ac_word... " >&6; } 7321if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7322 $as_echo_n "(cached) " >&6 7323else 7324 if test -n "$ac_ct_OTOOL"; then 7325 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7326else 7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7328for as_dir in $PATH 7329do 7330 IFS=$as_save_IFS 7331 test -z "$as_dir" && as_dir=. 7332 for ac_exec_ext in '' $ac_executable_extensions; do 7333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7334 ac_cv_prog_ac_ct_OTOOL="otool" 7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7336 break 2 7337 fi 7338done 7339 done 7340IFS=$as_save_IFS 7341 7342fi 7343fi 7344ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7345if test -n "$ac_ct_OTOOL"; then 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7347$as_echo "$ac_ct_OTOOL" >&6; } 7348else 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7350$as_echo "no" >&6; } 7351fi 7352 7353 if test "x$ac_ct_OTOOL" = x; then 7354 OTOOL=":" 7355 else 7356 case $cross_compiling:$ac_tool_warned in 7357yes:) 7358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7360ac_tool_warned=yes ;; 7361esac 7362 OTOOL=$ac_ct_OTOOL 7363 fi 7364else 7365 OTOOL="$ac_cv_prog_OTOOL" 7366fi 7367 7368 if test -n "$ac_tool_prefix"; then 7369 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7370set dummy ${ac_tool_prefix}otool64; ac_word=$2 7371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7372$as_echo_n "checking for $ac_word... " >&6; } 7373if ${ac_cv_prog_OTOOL64+:} false; then : 7374 $as_echo_n "(cached) " >&6 7375else 7376 if test -n "$OTOOL64"; then 7377 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7378else 7379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7380for as_dir in $PATH 7381do 7382 IFS=$as_save_IFS 7383 test -z "$as_dir" && as_dir=. 7384 for ac_exec_ext in '' $ac_executable_extensions; do 7385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7386 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7388 break 2 7389 fi 7390done 7391 done 7392IFS=$as_save_IFS 7393 7394fi 7395fi 7396OTOOL64=$ac_cv_prog_OTOOL64 7397if test -n "$OTOOL64"; then 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7399$as_echo "$OTOOL64" >&6; } 7400else 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7402$as_echo "no" >&6; } 7403fi 7404 7405 7406fi 7407if test -z "$ac_cv_prog_OTOOL64"; then 7408 ac_ct_OTOOL64=$OTOOL64 7409 # Extract the first word of "otool64", so it can be a program name with args. 7410set dummy otool64; ac_word=$2 7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7412$as_echo_n "checking for $ac_word... " >&6; } 7413if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7414 $as_echo_n "(cached) " >&6 7415else 7416 if test -n "$ac_ct_OTOOL64"; then 7417 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7418else 7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7420for as_dir in $PATH 7421do 7422 IFS=$as_save_IFS 7423 test -z "$as_dir" && as_dir=. 7424 for ac_exec_ext in '' $ac_executable_extensions; do 7425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7426 ac_cv_prog_ac_ct_OTOOL64="otool64" 7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7428 break 2 7429 fi 7430done 7431 done 7432IFS=$as_save_IFS 7433 7434fi 7435fi 7436ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7437if test -n "$ac_ct_OTOOL64"; then 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7439$as_echo "$ac_ct_OTOOL64" >&6; } 7440else 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7442$as_echo "no" >&6; } 7443fi 7444 7445 if test "x$ac_ct_OTOOL64" = x; then 7446 OTOOL64=":" 7447 else 7448 case $cross_compiling:$ac_tool_warned in 7449yes:) 7450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7452ac_tool_warned=yes ;; 7453esac 7454 OTOOL64=$ac_ct_OTOOL64 7455 fi 7456else 7457 OTOOL64="$ac_cv_prog_OTOOL64" 7458fi 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7487$as_echo_n "checking for -single_module linker flag... " >&6; } 7488if ${lt_cv_apple_cc_single_mod+:} false; then : 7489 $as_echo_n "(cached) " >&6 7490else 7491 lt_cv_apple_cc_single_mod=no 7492 if test -z "$LT_MULTI_MODULE"; then 7493 # By default we will add the -single_module flag. You can override 7494 # by either setting the environment variable LT_MULTI_MODULE 7495 # non-empty at configure time, or by adding -multi_module to the 7496 # link flags. 7497 rm -rf libconftest.dylib* 7498 echo "int foo(void){return 1;}" > conftest.c 7499 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7500-dynamiclib -Wl,-single_module conftest.c" >&5 7501 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7502 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7503 _lt_result=$? 7504 # If there is a non-empty error log, and "single_module" 7505 # appears in it, assume the flag caused a linker warning 7506 if test -s conftest.err && $GREP single_module conftest.err; then 7507 cat conftest.err >&5 7508 # Otherwise, if the output was created with a 0 exit code from 7509 # the compiler, it worked. 7510 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7511 lt_cv_apple_cc_single_mod=yes 7512 else 7513 cat conftest.err >&5 7514 fi 7515 rm -rf libconftest.dylib* 7516 rm -f conftest.* 7517 fi 7518fi 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7520$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7521 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7523$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7524if ${lt_cv_ld_exported_symbols_list+:} false; then : 7525 $as_echo_n "(cached) " >&6 7526else 7527 lt_cv_ld_exported_symbols_list=no 7528 save_LDFLAGS=$LDFLAGS 7529 echo "_main" > conftest.sym 7530 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7532/* end confdefs.h. */ 7533 7534int 7535main () 7536{ 7537 7538 ; 7539 return 0; 7540} 7541_ACEOF 7542if ac_fn_c_try_link "$LINENO"; then : 7543 lt_cv_ld_exported_symbols_list=yes 7544else 7545 lt_cv_ld_exported_symbols_list=no 7546fi 7547rm -f core conftest.err conftest.$ac_objext \ 7548 conftest$ac_exeext conftest.$ac_ext 7549 LDFLAGS=$save_LDFLAGS 7550 7551fi 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7553$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7554 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7556$as_echo_n "checking for -force_load linker flag... " >&6; } 7557if ${lt_cv_ld_force_load+:} false; then : 7558 $as_echo_n "(cached) " >&6 7559else 7560 lt_cv_ld_force_load=no 7561 cat > conftest.c << _LT_EOF 7562int forced_loaded() { return 2;} 7563_LT_EOF 7564 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7565 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7566 echo "$AR cru libconftest.a conftest.o" >&5 7567 $AR cru libconftest.a conftest.o 2>&5 7568 echo "$RANLIB libconftest.a" >&5 7569 $RANLIB libconftest.a 2>&5 7570 cat > conftest.c << _LT_EOF 7571int main() { return 0;} 7572_LT_EOF 7573 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7574 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7575 _lt_result=$? 7576 if test -s conftest.err && $GREP force_load conftest.err; then 7577 cat conftest.err >&5 7578 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7579 lt_cv_ld_force_load=yes 7580 else 7581 cat conftest.err >&5 7582 fi 7583 rm -f conftest.err libconftest.a conftest conftest.c 7584 rm -rf conftest.dSYM 7585 7586fi 7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7588$as_echo "$lt_cv_ld_force_load" >&6; } 7589 case $host_os in 7590 rhapsody* | darwin1.[012]) 7591 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7592 darwin1.*) 7593 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7594 darwin*) # darwin 5.x on 7595 # if running on 10.5 or later, the deployment target defaults 7596 # to the OS version, if on x86, and 10.4, the deployment 7597 # target defaults to 10.4. Don't you love it? 7598 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7599 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7600 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7601 10.[012][,.]*) 7602 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7603 10.*) 7604 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7605 esac 7606 ;; 7607 esac 7608 if test yes = "$lt_cv_apple_cc_single_mod"; then 7609 _lt_dar_single_mod='$single_module' 7610 fi 7611 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7612 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7613 else 7614 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7615 fi 7616 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7617 _lt_dsymutil='~$DSYMUTIL $lib || :' 7618 else 7619 _lt_dsymutil= 7620 fi 7621 ;; 7622 esac 7623 7624# func_munge_path_list VARIABLE PATH 7625# ----------------------------------- 7626# VARIABLE is name of variable containing _space_ separated list of 7627# directories to be munged by the contents of PATH, which is string 7628# having a format: 7629# "DIR[:DIR]:" 7630# string "DIR[ DIR]" will be prepended to VARIABLE 7631# ":DIR[:DIR]" 7632# string "DIR[ DIR]" will be appended to VARIABLE 7633# "DIRP[:DIRP]::[DIRA:]DIRA" 7634# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7635# "DIRA[ DIRA]" will be appended to VARIABLE 7636# "DIR[:DIR]" 7637# VARIABLE will be replaced by "DIR[ DIR]" 7638func_munge_path_list () 7639{ 7640 case x$2 in 7641 x) 7642 ;; 7643 *:) 7644 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7645 ;; 7646 x:*) 7647 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7648 ;; 7649 *::*) 7650 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7651 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7652 ;; 7653 *) 7654 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7655 ;; 7656 esac 7657} 7658 7659ac_ext=c 7660ac_cpp='$CPP $CPPFLAGS' 7661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7663ac_compiler_gnu=$ac_cv_c_compiler_gnu 7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7665$as_echo_n "checking how to run the C preprocessor... " >&6; } 7666# On Suns, sometimes $CPP names a directory. 7667if test -n "$CPP" && test -d "$CPP"; then 7668 CPP= 7669fi 7670if test -z "$CPP"; then 7671 if ${ac_cv_prog_CPP+:} false; then : 7672 $as_echo_n "(cached) " >&6 7673else 7674 # Double quotes because CPP needs to be expanded 7675 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7676 do 7677 ac_preproc_ok=false 7678for ac_c_preproc_warn_flag in '' yes 7679do 7680 # Use a header file that comes with gcc, so configuring glibc 7681 # with a fresh cross-compiler works. 7682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7683 # <limits.h> exists even on freestanding compilers. 7684 # On the NeXT, cc -E runs the code through the compiler's parser, 7685 # not just through cpp. "Syntax error" is here to catch this case. 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7687/* end confdefs.h. */ 7688#ifdef __STDC__ 7689# include <limits.h> 7690#else 7691# include <assert.h> 7692#endif 7693 Syntax error 7694_ACEOF 7695if ac_fn_c_try_cpp "$LINENO"; then : 7696 7697else 7698 # Broken: fails on valid input. 7699continue 7700fi 7701rm -f conftest.err conftest.i conftest.$ac_ext 7702 7703 # OK, works on sane cases. Now check whether nonexistent headers 7704 # can be detected and how. 7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7706/* end confdefs.h. */ 7707#include <ac_nonexistent.h> 7708_ACEOF 7709if ac_fn_c_try_cpp "$LINENO"; then : 7710 # Broken: success on invalid input. 7711continue 7712else 7713 # Passes both tests. 7714ac_preproc_ok=: 7715break 7716fi 7717rm -f conftest.err conftest.i conftest.$ac_ext 7718 7719done 7720# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7721rm -f conftest.i conftest.err conftest.$ac_ext 7722if $ac_preproc_ok; then : 7723 break 7724fi 7725 7726 done 7727 ac_cv_prog_CPP=$CPP 7728 7729fi 7730 CPP=$ac_cv_prog_CPP 7731else 7732 ac_cv_prog_CPP=$CPP 7733fi 7734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7735$as_echo "$CPP" >&6; } 7736ac_preproc_ok=false 7737for ac_c_preproc_warn_flag in '' yes 7738do 7739 # Use a header file that comes with gcc, so configuring glibc 7740 # with a fresh cross-compiler works. 7741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7742 # <limits.h> exists even on freestanding compilers. 7743 # On the NeXT, cc -E runs the code through the compiler's parser, 7744 # not just through cpp. "Syntax error" is here to catch this case. 7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7746/* end confdefs.h. */ 7747#ifdef __STDC__ 7748# include <limits.h> 7749#else 7750# include <assert.h> 7751#endif 7752 Syntax error 7753_ACEOF 7754if ac_fn_c_try_cpp "$LINENO"; then : 7755 7756else 7757 # Broken: fails on valid input. 7758continue 7759fi 7760rm -f conftest.err conftest.i conftest.$ac_ext 7761 7762 # OK, works on sane cases. Now check whether nonexistent headers 7763 # can be detected and how. 7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7765/* end confdefs.h. */ 7766#include <ac_nonexistent.h> 7767_ACEOF 7768if ac_fn_c_try_cpp "$LINENO"; then : 7769 # Broken: success on invalid input. 7770continue 7771else 7772 # Passes both tests. 7773ac_preproc_ok=: 7774break 7775fi 7776rm -f conftest.err conftest.i conftest.$ac_ext 7777 7778done 7779# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7780rm -f conftest.i conftest.err conftest.$ac_ext 7781if $ac_preproc_ok; then : 7782 7783else 7784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7786as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7787See \`config.log' for more details" "$LINENO" 5; } 7788fi 7789 7790ac_ext=c 7791ac_cpp='$CPP $CPPFLAGS' 7792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7794ac_compiler_gnu=$ac_cv_c_compiler_gnu 7795 7796 7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7798$as_echo_n "checking for ANSI C header files... " >&6; } 7799if ${ac_cv_header_stdc+:} false; then : 7800 $as_echo_n "(cached) " >&6 7801else 7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7803/* end confdefs.h. */ 7804#include <stdlib.h> 7805#include <stdarg.h> 7806#include <string.h> 7807#include <float.h> 7808 7809int 7810main () 7811{ 7812 7813 ; 7814 return 0; 7815} 7816_ACEOF 7817if ac_fn_c_try_compile "$LINENO"; then : 7818 ac_cv_header_stdc=yes 7819else 7820 ac_cv_header_stdc=no 7821fi 7822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7823 7824if test $ac_cv_header_stdc = yes; then 7825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827/* end confdefs.h. */ 7828#include <string.h> 7829 7830_ACEOF 7831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7832 $EGREP "memchr" >/dev/null 2>&1; then : 7833 7834else 7835 ac_cv_header_stdc=no 7836fi 7837rm -f conftest* 7838 7839fi 7840 7841if test $ac_cv_header_stdc = yes; then 7842 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7844/* end confdefs.h. */ 7845#include <stdlib.h> 7846 7847_ACEOF 7848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7849 $EGREP "free" >/dev/null 2>&1; then : 7850 7851else 7852 ac_cv_header_stdc=no 7853fi 7854rm -f conftest* 7855 7856fi 7857 7858if test $ac_cv_header_stdc = yes; then 7859 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7860 if test "$cross_compiling" = yes; then : 7861 : 7862else 7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7864/* end confdefs.h. */ 7865#include <ctype.h> 7866#include <stdlib.h> 7867#if ((' ' & 0x0FF) == 0x020) 7868# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7869# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7870#else 7871# define ISLOWER(c) \ 7872 (('a' <= (c) && (c) <= 'i') \ 7873 || ('j' <= (c) && (c) <= 'r') \ 7874 || ('s' <= (c) && (c) <= 'z')) 7875# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7876#endif 7877 7878#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7879int 7880main () 7881{ 7882 int i; 7883 for (i = 0; i < 256; i++) 7884 if (XOR (islower (i), ISLOWER (i)) 7885 || toupper (i) != TOUPPER (i)) 7886 return 2; 7887 return 0; 7888} 7889_ACEOF 7890if ac_fn_c_try_run "$LINENO"; then : 7891 7892else 7893 ac_cv_header_stdc=no 7894fi 7895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7896 conftest.$ac_objext conftest.beam conftest.$ac_ext 7897fi 7898 7899fi 7900fi 7901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7902$as_echo "$ac_cv_header_stdc" >&6; } 7903if test $ac_cv_header_stdc = yes; then 7904 7905$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7906 7907fi 7908 7909# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7910for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7911 inttypes.h stdint.h unistd.h 7912do : 7913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7914ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7915" 7916if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7917 cat >>confdefs.h <<_ACEOF 7918#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7919_ACEOF 7920 7921fi 7922 7923done 7924 7925 7926for ac_header in dlfcn.h 7927do : 7928 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7929" 7930if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7931 cat >>confdefs.h <<_ACEOF 7932#define HAVE_DLFCN_H 1 7933_ACEOF 7934 7935fi 7936 7937done 7938 7939 7940 7941 7942 7943# Set options 7944enable_win32_dll=yes 7945 7946case $host in 7947*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 7948 if test -n "$ac_tool_prefix"; then 7949 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7950set dummy ${ac_tool_prefix}as; ac_word=$2 7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7952$as_echo_n "checking for $ac_word... " >&6; } 7953if ${ac_cv_prog_AS+:} false; then : 7954 $as_echo_n "(cached) " >&6 7955else 7956 if test -n "$AS"; then 7957 ac_cv_prog_AS="$AS" # Let the user override the test. 7958else 7959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7960for as_dir in $PATH 7961do 7962 IFS=$as_save_IFS 7963 test -z "$as_dir" && as_dir=. 7964 for ac_exec_ext in '' $ac_executable_extensions; do 7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7966 ac_cv_prog_AS="${ac_tool_prefix}as" 7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7968 break 2 7969 fi 7970done 7971 done 7972IFS=$as_save_IFS 7973 7974fi 7975fi 7976AS=$ac_cv_prog_AS 7977if test -n "$AS"; then 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7979$as_echo "$AS" >&6; } 7980else 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7982$as_echo "no" >&6; } 7983fi 7984 7985 7986fi 7987if test -z "$ac_cv_prog_AS"; then 7988 ac_ct_AS=$AS 7989 # Extract the first word of "as", so it can be a program name with args. 7990set dummy as; ac_word=$2 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7992$as_echo_n "checking for $ac_word... " >&6; } 7993if ${ac_cv_prog_ac_ct_AS+:} false; then : 7994 $as_echo_n "(cached) " >&6 7995else 7996 if test -n "$ac_ct_AS"; then 7997 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7998else 7999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8000for as_dir in $PATH 8001do 8002 IFS=$as_save_IFS 8003 test -z "$as_dir" && as_dir=. 8004 for ac_exec_ext in '' $ac_executable_extensions; do 8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8006 ac_cv_prog_ac_ct_AS="as" 8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8008 break 2 8009 fi 8010done 8011 done 8012IFS=$as_save_IFS 8013 8014fi 8015fi 8016ac_ct_AS=$ac_cv_prog_ac_ct_AS 8017if test -n "$ac_ct_AS"; then 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8019$as_echo "$ac_ct_AS" >&6; } 8020else 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8022$as_echo "no" >&6; } 8023fi 8024 8025 if test "x$ac_ct_AS" = x; then 8026 AS="false" 8027 else 8028 case $cross_compiling:$ac_tool_warned in 8029yes:) 8030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8032ac_tool_warned=yes ;; 8033esac 8034 AS=$ac_ct_AS 8035 fi 8036else 8037 AS="$ac_cv_prog_AS" 8038fi 8039 8040 if test -n "$ac_tool_prefix"; then 8041 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8042set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8044$as_echo_n "checking for $ac_word... " >&6; } 8045if ${ac_cv_prog_DLLTOOL+:} false; then : 8046 $as_echo_n "(cached) " >&6 8047else 8048 if test -n "$DLLTOOL"; then 8049 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8050else 8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8052for as_dir in $PATH 8053do 8054 IFS=$as_save_IFS 8055 test -z "$as_dir" && as_dir=. 8056 for ac_exec_ext in '' $ac_executable_extensions; do 8057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8058 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8060 break 2 8061 fi 8062done 8063 done 8064IFS=$as_save_IFS 8065 8066fi 8067fi 8068DLLTOOL=$ac_cv_prog_DLLTOOL 8069if test -n "$DLLTOOL"; then 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8071$as_echo "$DLLTOOL" >&6; } 8072else 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8074$as_echo "no" >&6; } 8075fi 8076 8077 8078fi 8079if test -z "$ac_cv_prog_DLLTOOL"; then 8080 ac_ct_DLLTOOL=$DLLTOOL 8081 # Extract the first word of "dlltool", so it can be a program name with args. 8082set dummy dlltool; ac_word=$2 8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8084$as_echo_n "checking for $ac_word... " >&6; } 8085if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8086 $as_echo_n "(cached) " >&6 8087else 8088 if test -n "$ac_ct_DLLTOOL"; then 8089 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8090else 8091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8092for as_dir in $PATH 8093do 8094 IFS=$as_save_IFS 8095 test -z "$as_dir" && as_dir=. 8096 for ac_exec_ext in '' $ac_executable_extensions; do 8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8098 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8100 break 2 8101 fi 8102done 8103 done 8104IFS=$as_save_IFS 8105 8106fi 8107fi 8108ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8109if test -n "$ac_ct_DLLTOOL"; then 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8111$as_echo "$ac_ct_DLLTOOL" >&6; } 8112else 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8114$as_echo "no" >&6; } 8115fi 8116 8117 if test "x$ac_ct_DLLTOOL" = x; then 8118 DLLTOOL="false" 8119 else 8120 case $cross_compiling:$ac_tool_warned in 8121yes:) 8122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8124ac_tool_warned=yes ;; 8125esac 8126 DLLTOOL=$ac_ct_DLLTOOL 8127 fi 8128else 8129 DLLTOOL="$ac_cv_prog_DLLTOOL" 8130fi 8131 8132 if test -n "$ac_tool_prefix"; then 8133 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8134set dummy ${ac_tool_prefix}objdump; ac_word=$2 8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8136$as_echo_n "checking for $ac_word... " >&6; } 8137if ${ac_cv_prog_OBJDUMP+:} false; then : 8138 $as_echo_n "(cached) " >&6 8139else 8140 if test -n "$OBJDUMP"; then 8141 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8142else 8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8144for as_dir in $PATH 8145do 8146 IFS=$as_save_IFS 8147 test -z "$as_dir" && as_dir=. 8148 for ac_exec_ext in '' $ac_executable_extensions; do 8149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8150 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8152 break 2 8153 fi 8154done 8155 done 8156IFS=$as_save_IFS 8157 8158fi 8159fi 8160OBJDUMP=$ac_cv_prog_OBJDUMP 8161if test -n "$OBJDUMP"; then 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8163$as_echo "$OBJDUMP" >&6; } 8164else 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8166$as_echo "no" >&6; } 8167fi 8168 8169 8170fi 8171if test -z "$ac_cv_prog_OBJDUMP"; then 8172 ac_ct_OBJDUMP=$OBJDUMP 8173 # Extract the first word of "objdump", so it can be a program name with args. 8174set dummy objdump; ac_word=$2 8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8176$as_echo_n "checking for $ac_word... " >&6; } 8177if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8178 $as_echo_n "(cached) " >&6 8179else 8180 if test -n "$ac_ct_OBJDUMP"; then 8181 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8182else 8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8184for as_dir in $PATH 8185do 8186 IFS=$as_save_IFS 8187 test -z "$as_dir" && as_dir=. 8188 for ac_exec_ext in '' $ac_executable_extensions; do 8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8190 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8192 break 2 8193 fi 8194done 8195 done 8196IFS=$as_save_IFS 8197 8198fi 8199fi 8200ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8201if test -n "$ac_ct_OBJDUMP"; then 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8203$as_echo "$ac_ct_OBJDUMP" >&6; } 8204else 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8206$as_echo "no" >&6; } 8207fi 8208 8209 if test "x$ac_ct_OBJDUMP" = x; then 8210 OBJDUMP="false" 8211 else 8212 case $cross_compiling:$ac_tool_warned in 8213yes:) 8214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8216ac_tool_warned=yes ;; 8217esac 8218 OBJDUMP=$ac_ct_OBJDUMP 8219 fi 8220else 8221 OBJDUMP="$ac_cv_prog_OBJDUMP" 8222fi 8223 8224 ;; 8225esac 8226 8227test -z "$AS" && AS=as 8228 8229 8230 8231 8232 8233test -z "$DLLTOOL" && DLLTOOL=dlltool 8234 8235 8236 8237 8238 8239test -z "$OBJDUMP" && OBJDUMP=objdump 8240 8241 8242 8243 8244 8245 8246 8247 enable_dlopen=no 8248 8249 8250 8251 # Check whether --enable-shared was given. 8252if test "${enable_shared+set}" = set; then : 8253 enableval=$enable_shared; p=${PACKAGE-default} 8254 case $enableval in 8255 yes) enable_shared=yes ;; 8256 no) enable_shared=no ;; 8257 *) 8258 enable_shared=no 8259 # Look at the argument we got. We use all the common list separators. 8260 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8261 for pkg in $enableval; do 8262 IFS=$lt_save_ifs 8263 if test "X$pkg" = "X$p"; then 8264 enable_shared=yes 8265 fi 8266 done 8267 IFS=$lt_save_ifs 8268 ;; 8269 esac 8270else 8271 enable_shared=yes 8272fi 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 # Check whether --enable-static was given. 8283if test "${enable_static+set}" = set; then : 8284 enableval=$enable_static; p=${PACKAGE-default} 8285 case $enableval in 8286 yes) enable_static=yes ;; 8287 no) enable_static=no ;; 8288 *) 8289 enable_static=no 8290 # Look at the argument we got. We use all the common list separators. 8291 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8292 for pkg in $enableval; do 8293 IFS=$lt_save_ifs 8294 if test "X$pkg" = "X$p"; then 8295 enable_static=yes 8296 fi 8297 done 8298 IFS=$lt_save_ifs 8299 ;; 8300 esac 8301else 8302 enable_static=yes 8303fi 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314# Check whether --with-pic was given. 8315if test "${with_pic+set}" = set; then : 8316 withval=$with_pic; lt_p=${PACKAGE-default} 8317 case $withval in 8318 yes|no) pic_mode=$withval ;; 8319 *) 8320 pic_mode=default 8321 # Look at the argument we got. We use all the common list separators. 8322 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8323 for lt_pkg in $withval; do 8324 IFS=$lt_save_ifs 8325 if test "X$lt_pkg" = "X$lt_p"; then 8326 pic_mode=yes 8327 fi 8328 done 8329 IFS=$lt_save_ifs 8330 ;; 8331 esac 8332else 8333 pic_mode=default 8334fi 8335 8336 8337 8338 8339 8340 8341 8342 8343 # Check whether --enable-fast-install was given. 8344if test "${enable_fast_install+set}" = set; then : 8345 enableval=$enable_fast_install; p=${PACKAGE-default} 8346 case $enableval in 8347 yes) enable_fast_install=yes ;; 8348 no) enable_fast_install=no ;; 8349 *) 8350 enable_fast_install=no 8351 # Look at the argument we got. We use all the common list separators. 8352 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8353 for pkg in $enableval; do 8354 IFS=$lt_save_ifs 8355 if test "X$pkg" = "X$p"; then 8356 enable_fast_install=yes 8357 fi 8358 done 8359 IFS=$lt_save_ifs 8360 ;; 8361 esac 8362else 8363 enable_fast_install=yes 8364fi 8365 8366 8367 8368 8369 8370 8371 8372 8373 shared_archive_member_spec= 8374case $host,$enable_shared in 8375power*-*-aix[5-9]*,yes) 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8377$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8378 8379# Check whether --with-aix-soname was given. 8380if test "${with_aix_soname+set}" = set; then : 8381 withval=$with_aix_soname; case $withval in 8382 aix|svr4|both) 8383 ;; 8384 *) 8385 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8386 ;; 8387 esac 8388 lt_cv_with_aix_soname=$with_aix_soname 8389else 8390 if ${lt_cv_with_aix_soname+:} false; then : 8391 $as_echo_n "(cached) " >&6 8392else 8393 lt_cv_with_aix_soname=aix 8394fi 8395 8396 with_aix_soname=$lt_cv_with_aix_soname 8397fi 8398 8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8400$as_echo "$with_aix_soname" >&6; } 8401 if test aix != "$with_aix_soname"; then 8402 # For the AIX way of multilib, we name the shared archive member 8403 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8404 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8405 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8406 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8407 if test 64 = "${OBJECT_MODE-32}"; then 8408 shared_archive_member_spec=shr_64 8409 else 8410 shared_archive_member_spec=shr 8411 fi 8412 fi 8413 ;; 8414*) 8415 with_aix_soname=aix 8416 ;; 8417esac 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428# This can be used to rebuild libtool when needed 8429LIBTOOL_DEPS=$ltmain 8430 8431# Always use our own libtool. 8432LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463test -z "$LN_S" && LN_S="ln -s" 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478if test -n "${ZSH_VERSION+set}"; then 8479 setopt NO_GLOB_SUBST 8480fi 8481 8482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8483$as_echo_n "checking for objdir... " >&6; } 8484if ${lt_cv_objdir+:} false; then : 8485 $as_echo_n "(cached) " >&6 8486else 8487 rm -f .libs 2>/dev/null 8488mkdir .libs 2>/dev/null 8489if test -d .libs; then 8490 lt_cv_objdir=.libs 8491else 8492 # MS-DOS does not allow filenames that begin with a dot. 8493 lt_cv_objdir=_libs 8494fi 8495rmdir .libs 2>/dev/null 8496fi 8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8498$as_echo "$lt_cv_objdir" >&6; } 8499objdir=$lt_cv_objdir 8500 8501 8502 8503 8504 8505cat >>confdefs.h <<_ACEOF 8506#define LT_OBJDIR "$lt_cv_objdir/" 8507_ACEOF 8508 8509 8510 8511 8512case $host_os in 8513aix3*) 8514 # AIX sometimes has problems with the GCC collect2 program. For some 8515 # reason, if we set the COLLECT_NAMES environment variable, the problems 8516 # vanish in a puff of smoke. 8517 if test set != "${COLLECT_NAMES+set}"; then 8518 COLLECT_NAMES= 8519 export COLLECT_NAMES 8520 fi 8521 ;; 8522esac 8523 8524# Global variables: 8525ofile=libtool 8526can_build_shared=yes 8527 8528# All known linkers require a '.a' archive for static linking (except MSVC, 8529# which needs '.lib'). 8530libext=a 8531 8532with_gnu_ld=$lt_cv_prog_gnu_ld 8533 8534old_CC=$CC 8535old_CFLAGS=$CFLAGS 8536 8537# Set sane defaults for various variables 8538test -z "$CC" && CC=cc 8539test -z "$LTCC" && LTCC=$CC 8540test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8541test -z "$LD" && LD=ld 8542test -z "$ac_objext" && ac_objext=o 8543 8544func_cc_basename $compiler 8545cc_basename=$func_cc_basename_result 8546 8547 8548# Only perform the check for file, if the check method requires it 8549test -z "$MAGIC_CMD" && MAGIC_CMD=file 8550case $deplibs_check_method in 8551file_magic*) 8552 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8554$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8555if ${lt_cv_path_MAGIC_CMD+:} false; then : 8556 $as_echo_n "(cached) " >&6 8557else 8558 case $MAGIC_CMD in 8559[\\/*] | ?:[\\/]*) 8560 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8561 ;; 8562*) 8563 lt_save_MAGIC_CMD=$MAGIC_CMD 8564 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8565 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8566 for ac_dir in $ac_dummy; do 8567 IFS=$lt_save_ifs 8568 test -z "$ac_dir" && ac_dir=. 8569 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8570 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8571 if test -n "$file_magic_test_file"; then 8572 case $deplibs_check_method in 8573 "file_magic "*) 8574 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8575 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8576 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8577 $EGREP "$file_magic_regex" > /dev/null; then 8578 : 8579 else 8580 cat <<_LT_EOF 1>&2 8581 8582*** Warning: the command libtool uses to detect shared libraries, 8583*** $file_magic_cmd, produces output that libtool cannot recognize. 8584*** The result is that libtool may fail to recognize shared libraries 8585*** as such. This will affect the creation of libtool libraries that 8586*** depend on shared libraries, but programs linked with such libtool 8587*** libraries will work regardless of this problem. Nevertheless, you 8588*** may want to report the problem to your system manager and/or to 8589*** bug-libtool@gnu.org 8590 8591_LT_EOF 8592 fi ;; 8593 esac 8594 fi 8595 break 8596 fi 8597 done 8598 IFS=$lt_save_ifs 8599 MAGIC_CMD=$lt_save_MAGIC_CMD 8600 ;; 8601esac 8602fi 8603 8604MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8605if test -n "$MAGIC_CMD"; then 8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8607$as_echo "$MAGIC_CMD" >&6; } 8608else 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8610$as_echo "no" >&6; } 8611fi 8612 8613 8614 8615 8616 8617if test -z "$lt_cv_path_MAGIC_CMD"; then 8618 if test -n "$ac_tool_prefix"; then 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8620$as_echo_n "checking for file... " >&6; } 8621if ${lt_cv_path_MAGIC_CMD+:} false; then : 8622 $as_echo_n "(cached) " >&6 8623else 8624 case $MAGIC_CMD in 8625[\\/*] | ?:[\\/]*) 8626 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8627 ;; 8628*) 8629 lt_save_MAGIC_CMD=$MAGIC_CMD 8630 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8631 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8632 for ac_dir in $ac_dummy; do 8633 IFS=$lt_save_ifs 8634 test -z "$ac_dir" && ac_dir=. 8635 if test -f "$ac_dir/file"; then 8636 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8637 if test -n "$file_magic_test_file"; then 8638 case $deplibs_check_method in 8639 "file_magic "*) 8640 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8641 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8642 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8643 $EGREP "$file_magic_regex" > /dev/null; then 8644 : 8645 else 8646 cat <<_LT_EOF 1>&2 8647 8648*** Warning: the command libtool uses to detect shared libraries, 8649*** $file_magic_cmd, produces output that libtool cannot recognize. 8650*** The result is that libtool may fail to recognize shared libraries 8651*** as such. This will affect the creation of libtool libraries that 8652*** depend on shared libraries, but programs linked with such libtool 8653*** libraries will work regardless of this problem. Nevertheless, you 8654*** may want to report the problem to your system manager and/or to 8655*** bug-libtool@gnu.org 8656 8657_LT_EOF 8658 fi ;; 8659 esac 8660 fi 8661 break 8662 fi 8663 done 8664 IFS=$lt_save_ifs 8665 MAGIC_CMD=$lt_save_MAGIC_CMD 8666 ;; 8667esac 8668fi 8669 8670MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8671if test -n "$MAGIC_CMD"; then 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8673$as_echo "$MAGIC_CMD" >&6; } 8674else 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8676$as_echo "no" >&6; } 8677fi 8678 8679 8680 else 8681 MAGIC_CMD=: 8682 fi 8683fi 8684 8685 fi 8686 ;; 8687esac 8688 8689# Use C for the default configuration in the libtool script 8690 8691lt_save_CC=$CC 8692ac_ext=c 8693ac_cpp='$CPP $CPPFLAGS' 8694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8696ac_compiler_gnu=$ac_cv_c_compiler_gnu 8697 8698 8699# Source file extension for C test sources. 8700ac_ext=c 8701 8702# Object file extension for compiled C test sources. 8703objext=o 8704objext=$objext 8705 8706# Code to be used in simple compile tests 8707lt_simple_compile_test_code="int some_variable = 0;" 8708 8709# Code to be used in simple link tests 8710lt_simple_link_test_code='int main(){return(0);}' 8711 8712 8713 8714 8715 8716 8717 8718# If no C compiler was specified, use CC. 8719LTCC=${LTCC-"$CC"} 8720 8721# If no C compiler flags were specified, use CFLAGS. 8722LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8723 8724# Allow CC to be a program name with arguments. 8725compiler=$CC 8726 8727# Save the default compiler, since it gets overwritten when the other 8728# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8729compiler_DEFAULT=$CC 8730 8731# save warnings/boilerplate of simple test code 8732ac_outfile=conftest.$ac_objext 8733echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8734eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8735_lt_compiler_boilerplate=`cat conftest.err` 8736$RM conftest* 8737 8738ac_outfile=conftest.$ac_objext 8739echo "$lt_simple_link_test_code" >conftest.$ac_ext 8740eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8741_lt_linker_boilerplate=`cat conftest.err` 8742$RM -r conftest* 8743 8744 8745## CAVEAT EMPTOR: 8746## There is no encapsulation within the following macros, do not change 8747## the running order or otherwise move them around unless you know exactly 8748## what you are doing... 8749if test -n "$compiler"; then 8750 8751lt_prog_compiler_no_builtin_flag= 8752 8753if test yes = "$GCC"; then 8754 case $cc_basename in 8755 nvcc*) 8756 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8757 *) 8758 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8759 esac 8760 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8762$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8763if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8764 $as_echo_n "(cached) " >&6 8765else 8766 lt_cv_prog_compiler_rtti_exceptions=no 8767 ac_outfile=conftest.$ac_objext 8768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8769 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8770 # Insert the option either (1) after the last *FLAGS variable, or 8771 # (2) before a word containing "conftest.", or (3) at the end. 8772 # Note that $ac_compile itself does not contain backslashes and begins 8773 # with a dollar sign (not a hyphen), so the echo should work correctly. 8774 # The option is referenced via a variable to avoid confusing sed. 8775 lt_compile=`echo "$ac_compile" | $SED \ 8776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8778 -e 's:$: $lt_compiler_flag:'` 8779 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8780 (eval "$lt_compile" 2>conftest.err) 8781 ac_status=$? 8782 cat conftest.err >&5 8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8784 if (exit $ac_status) && test -s "$ac_outfile"; then 8785 # The compiler can only warn and ignore the option if not recognized 8786 # So say no if there are warnings other than the usual output. 8787 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8790 lt_cv_prog_compiler_rtti_exceptions=yes 8791 fi 8792 fi 8793 $RM conftest* 8794 8795fi 8796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8797$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8798 8799if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8800 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8801else 8802 : 8803fi 8804 8805fi 8806 8807 8808 8809 8810 8811 8812 lt_prog_compiler_wl= 8813lt_prog_compiler_pic= 8814lt_prog_compiler_static= 8815 8816 8817 if test yes = "$GCC"; then 8818 lt_prog_compiler_wl='-Wl,' 8819 lt_prog_compiler_static='-static' 8820 8821 case $host_os in 8822 aix*) 8823 # All AIX code is PIC. 8824 if test ia64 = "$host_cpu"; then 8825 # AIX 5 now supports IA64 processor 8826 lt_prog_compiler_static='-Bstatic' 8827 fi 8828 lt_prog_compiler_pic='-fPIC' 8829 ;; 8830 8831 amigaos*) 8832 case $host_cpu in 8833 powerpc) 8834 # see comment about AmigaOS4 .so support 8835 lt_prog_compiler_pic='-fPIC' 8836 ;; 8837 m68k) 8838 # FIXME: we need at least 68020 code to build shared libraries, but 8839 # adding the '-m68020' flag to GCC prevents building anything better, 8840 # like '-m68040'. 8841 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8842 ;; 8843 esac 8844 ;; 8845 8846 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8847 # PIC is the default for these OSes. 8848 ;; 8849 8850 mingw* | cygwin* | pw32* | os2* | cegcc*) 8851 # This hack is so that the source file can tell whether it is being 8852 # built for inclusion in a dll (and should export symbols for example). 8853 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8854 # (--disable-auto-import) libraries 8855 lt_prog_compiler_pic='-DDLL_EXPORT' 8856 case $host_os in 8857 os2*) 8858 lt_prog_compiler_static='$wl-static' 8859 ;; 8860 esac 8861 ;; 8862 8863 darwin* | rhapsody*) 8864 # PIC is the default on this platform 8865 # Common symbols not allowed in MH_DYLIB files 8866 lt_prog_compiler_pic='-fno-common' 8867 ;; 8868 8869 haiku*) 8870 # PIC is the default for Haiku. 8871 # The "-static" flag exists, but is broken. 8872 lt_prog_compiler_static= 8873 ;; 8874 8875 hpux*) 8876 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8877 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8878 # sets the default TLS model and affects inlining. 8879 case $host_cpu in 8880 hppa*64*) 8881 # +Z the default 8882 ;; 8883 *) 8884 lt_prog_compiler_pic='-fPIC' 8885 ;; 8886 esac 8887 ;; 8888 8889 interix[3-9]*) 8890 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8891 # Instead, we relocate shared libraries at runtime. 8892 ;; 8893 8894 msdosdjgpp*) 8895 # Just because we use GCC doesn't mean we suddenly get shared libraries 8896 # on systems that don't support them. 8897 lt_prog_compiler_can_build_shared=no 8898 enable_shared=no 8899 ;; 8900 8901 *nto* | *qnx*) 8902 # QNX uses GNU C++, but need to define -shared option too, otherwise 8903 # it will coredump. 8904 lt_prog_compiler_pic='-fPIC -shared' 8905 ;; 8906 8907 sysv4*MP*) 8908 if test -d /usr/nec; then 8909 lt_prog_compiler_pic=-Kconform_pic 8910 fi 8911 ;; 8912 8913 *) 8914 lt_prog_compiler_pic='-fPIC' 8915 ;; 8916 esac 8917 8918 case $cc_basename in 8919 nvcc*) # Cuda Compiler Driver 2.2 8920 lt_prog_compiler_wl='-Xlinker ' 8921 if test -n "$lt_prog_compiler_pic"; then 8922 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8923 fi 8924 ;; 8925 esac 8926 else 8927 # PORTME Check for flag to pass linker flags through the system compiler. 8928 case $host_os in 8929 aix*) 8930 lt_prog_compiler_wl='-Wl,' 8931 if test ia64 = "$host_cpu"; then 8932 # AIX 5 now supports IA64 processor 8933 lt_prog_compiler_static='-Bstatic' 8934 else 8935 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8936 fi 8937 ;; 8938 8939 darwin* | rhapsody*) 8940 # PIC is the default on this platform 8941 # Common symbols not allowed in MH_DYLIB files 8942 lt_prog_compiler_pic='-fno-common' 8943 case $cc_basename in 8944 nagfor*) 8945 # NAG Fortran compiler 8946 lt_prog_compiler_wl='-Wl,-Wl,,' 8947 lt_prog_compiler_pic='-PIC' 8948 lt_prog_compiler_static='-Bstatic' 8949 ;; 8950 esac 8951 ;; 8952 8953 mingw* | cygwin* | pw32* | os2* | cegcc*) 8954 # This hack is so that the source file can tell whether it is being 8955 # built for inclusion in a dll (and should export symbols for example). 8956 lt_prog_compiler_pic='-DDLL_EXPORT' 8957 case $host_os in 8958 os2*) 8959 lt_prog_compiler_static='$wl-static' 8960 ;; 8961 esac 8962 ;; 8963 8964 hpux9* | hpux10* | hpux11*) 8965 lt_prog_compiler_wl='-Wl,' 8966 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8967 # not for PA HP-UX. 8968 case $host_cpu in 8969 hppa*64*|ia64*) 8970 # +Z the default 8971 ;; 8972 *) 8973 lt_prog_compiler_pic='+Z' 8974 ;; 8975 esac 8976 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8977 lt_prog_compiler_static='$wl-a ${wl}archive' 8978 ;; 8979 8980 irix5* | irix6* | nonstopux*) 8981 lt_prog_compiler_wl='-Wl,' 8982 # PIC (with -KPIC) is the default. 8983 lt_prog_compiler_static='-non_shared' 8984 ;; 8985 8986 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8987 case $cc_basename in 8988 # old Intel for x86_64, which still supported -KPIC. 8989 ecc*) 8990 lt_prog_compiler_wl='-Wl,' 8991 lt_prog_compiler_pic='-KPIC' 8992 lt_prog_compiler_static='-static' 8993 ;; 8994 # icc used to be incompatible with GCC. 8995 # ICC 10 doesn't accept -KPIC any more. 8996 icc* | ifort*) 8997 lt_prog_compiler_wl='-Wl,' 8998 lt_prog_compiler_pic='-fPIC' 8999 lt_prog_compiler_static='-static' 9000 ;; 9001 # Lahey Fortran 8.1. 9002 lf95*) 9003 lt_prog_compiler_wl='-Wl,' 9004 lt_prog_compiler_pic='--shared' 9005 lt_prog_compiler_static='--static' 9006 ;; 9007 nagfor*) 9008 # NAG Fortran compiler 9009 lt_prog_compiler_wl='-Wl,-Wl,,' 9010 lt_prog_compiler_pic='-PIC' 9011 lt_prog_compiler_static='-Bstatic' 9012 ;; 9013 tcc*) 9014 # Fabrice Bellard et al's Tiny C Compiler 9015 lt_prog_compiler_wl='-Wl,' 9016 lt_prog_compiler_pic='-fPIC' 9017 lt_prog_compiler_static='-static' 9018 ;; 9019 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9020 # Portland Group compilers (*not* the Pentium gcc compiler, 9021 # which looks to be a dead project) 9022 lt_prog_compiler_wl='-Wl,' 9023 lt_prog_compiler_pic='-fpic' 9024 lt_prog_compiler_static='-Bstatic' 9025 ;; 9026 ccc*) 9027 lt_prog_compiler_wl='-Wl,' 9028 # All Alpha code is PIC. 9029 lt_prog_compiler_static='-non_shared' 9030 ;; 9031 xl* | bgxl* | bgf* | mpixl*) 9032 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9033 lt_prog_compiler_wl='-Wl,' 9034 lt_prog_compiler_pic='-qpic' 9035 lt_prog_compiler_static='-qstaticlink' 9036 ;; 9037 *) 9038 case `$CC -V 2>&1 | sed 5q` in 9039 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9040 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9041 lt_prog_compiler_pic='-KPIC' 9042 lt_prog_compiler_static='-Bstatic' 9043 lt_prog_compiler_wl='' 9044 ;; 9045 *Sun\ F* | *Sun*Fortran*) 9046 lt_prog_compiler_pic='-KPIC' 9047 lt_prog_compiler_static='-Bstatic' 9048 lt_prog_compiler_wl='-Qoption ld ' 9049 ;; 9050 *Sun\ C*) 9051 # Sun C 5.9 9052 lt_prog_compiler_pic='-KPIC' 9053 lt_prog_compiler_static='-Bstatic' 9054 lt_prog_compiler_wl='-Wl,' 9055 ;; 9056 *Intel*\ [CF]*Compiler*) 9057 lt_prog_compiler_wl='-Wl,' 9058 lt_prog_compiler_pic='-fPIC' 9059 lt_prog_compiler_static='-static' 9060 ;; 9061 *Portland\ Group*) 9062 lt_prog_compiler_wl='-Wl,' 9063 lt_prog_compiler_pic='-fpic' 9064 lt_prog_compiler_static='-Bstatic' 9065 ;; 9066 esac 9067 ;; 9068 esac 9069 ;; 9070 9071 newsos6) 9072 lt_prog_compiler_pic='-KPIC' 9073 lt_prog_compiler_static='-Bstatic' 9074 ;; 9075 9076 *nto* | *qnx*) 9077 # QNX uses GNU C++, but need to define -shared option too, otherwise 9078 # it will coredump. 9079 lt_prog_compiler_pic='-fPIC -shared' 9080 ;; 9081 9082 osf3* | osf4* | osf5*) 9083 lt_prog_compiler_wl='-Wl,' 9084 # All OSF/1 code is PIC. 9085 lt_prog_compiler_static='-non_shared' 9086 ;; 9087 9088 rdos*) 9089 lt_prog_compiler_static='-non_shared' 9090 ;; 9091 9092 solaris*) 9093 lt_prog_compiler_pic='-KPIC' 9094 lt_prog_compiler_static='-Bstatic' 9095 case $cc_basename in 9096 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9097 lt_prog_compiler_wl='-Qoption ld ';; 9098 *) 9099 lt_prog_compiler_wl='-Wl,';; 9100 esac 9101 ;; 9102 9103 sunos4*) 9104 lt_prog_compiler_wl='-Qoption ld ' 9105 lt_prog_compiler_pic='-PIC' 9106 lt_prog_compiler_static='-Bstatic' 9107 ;; 9108 9109 sysv4 | sysv4.2uw2* | sysv4.3*) 9110 lt_prog_compiler_wl='-Wl,' 9111 lt_prog_compiler_pic='-KPIC' 9112 lt_prog_compiler_static='-Bstatic' 9113 ;; 9114 9115 sysv4*MP*) 9116 if test -d /usr/nec; then 9117 lt_prog_compiler_pic='-Kconform_pic' 9118 lt_prog_compiler_static='-Bstatic' 9119 fi 9120 ;; 9121 9122 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9123 lt_prog_compiler_wl='-Wl,' 9124 lt_prog_compiler_pic='-KPIC' 9125 lt_prog_compiler_static='-Bstatic' 9126 ;; 9127 9128 unicos*) 9129 lt_prog_compiler_wl='-Wl,' 9130 lt_prog_compiler_can_build_shared=no 9131 ;; 9132 9133 uts4*) 9134 lt_prog_compiler_pic='-pic' 9135 lt_prog_compiler_static='-Bstatic' 9136 ;; 9137 9138 *) 9139 lt_prog_compiler_can_build_shared=no 9140 ;; 9141 esac 9142 fi 9143 9144case $host_os in 9145 # For platforms that do not support PIC, -DPIC is meaningless: 9146 *djgpp*) 9147 lt_prog_compiler_pic= 9148 ;; 9149 *) 9150 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9151 ;; 9152esac 9153 9154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9155$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9156if ${lt_cv_prog_compiler_pic+:} false; then : 9157 $as_echo_n "(cached) " >&6 9158else 9159 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9160fi 9161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9162$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9163lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9164 9165# 9166# Check to make sure the PIC flag actually works. 9167# 9168if test -n "$lt_prog_compiler_pic"; then 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9170$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9171if ${lt_cv_prog_compiler_pic_works+:} false; then : 9172 $as_echo_n "(cached) " >&6 9173else 9174 lt_cv_prog_compiler_pic_works=no 9175 ac_outfile=conftest.$ac_objext 9176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9177 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9178 # Insert the option either (1) after the last *FLAGS variable, or 9179 # (2) before a word containing "conftest.", or (3) at the end. 9180 # Note that $ac_compile itself does not contain backslashes and begins 9181 # with a dollar sign (not a hyphen), so the echo should work correctly. 9182 # The option is referenced via a variable to avoid confusing sed. 9183 lt_compile=`echo "$ac_compile" | $SED \ 9184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9186 -e 's:$: $lt_compiler_flag:'` 9187 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9188 (eval "$lt_compile" 2>conftest.err) 9189 ac_status=$? 9190 cat conftest.err >&5 9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9192 if (exit $ac_status) && test -s "$ac_outfile"; then 9193 # The compiler can only warn and ignore the option if not recognized 9194 # So say no if there are warnings other than the usual output. 9195 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9196 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9197 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9198 lt_cv_prog_compiler_pic_works=yes 9199 fi 9200 fi 9201 $RM conftest* 9202 9203fi 9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9205$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9206 9207if test yes = "$lt_cv_prog_compiler_pic_works"; then 9208 case $lt_prog_compiler_pic in 9209 "" | " "*) ;; 9210 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9211 esac 9212else 9213 lt_prog_compiler_pic= 9214 lt_prog_compiler_can_build_shared=no 9215fi 9216 9217fi 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229# 9230# Check to make sure the static flag actually works. 9231# 9232wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9234$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9235if ${lt_cv_prog_compiler_static_works+:} false; then : 9236 $as_echo_n "(cached) " >&6 9237else 9238 lt_cv_prog_compiler_static_works=no 9239 save_LDFLAGS=$LDFLAGS 9240 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9241 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9243 # The linker can only warn and ignore the option if not recognized 9244 # So say no if there are warnings 9245 if test -s conftest.err; then 9246 # Append any errors to the config.log. 9247 cat conftest.err 1>&5 9248 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9250 if diff conftest.exp conftest.er2 >/dev/null; then 9251 lt_cv_prog_compiler_static_works=yes 9252 fi 9253 else 9254 lt_cv_prog_compiler_static_works=yes 9255 fi 9256 fi 9257 $RM -r conftest* 9258 LDFLAGS=$save_LDFLAGS 9259 9260fi 9261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9262$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9263 9264if test yes = "$lt_cv_prog_compiler_static_works"; then 9265 : 9266else 9267 lt_prog_compiler_static= 9268fi 9269 9270 9271 9272 9273 9274 9275 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9277$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9278if ${lt_cv_prog_compiler_c_o+:} false; then : 9279 $as_echo_n "(cached) " >&6 9280else 9281 lt_cv_prog_compiler_c_o=no 9282 $RM -r conftest 2>/dev/null 9283 mkdir conftest 9284 cd conftest 9285 mkdir out 9286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9287 9288 lt_compiler_flag="-o out/conftest2.$ac_objext" 9289 # Insert the option either (1) after the last *FLAGS variable, or 9290 # (2) before a word containing "conftest.", or (3) at the end. 9291 # Note that $ac_compile itself does not contain backslashes and begins 9292 # with a dollar sign (not a hyphen), so the echo should work correctly. 9293 lt_compile=`echo "$ac_compile" | $SED \ 9294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9296 -e 's:$: $lt_compiler_flag:'` 9297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9298 (eval "$lt_compile" 2>out/conftest.err) 9299 ac_status=$? 9300 cat out/conftest.err >&5 9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9302 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9303 then 9304 # The compiler can only warn and ignore the option if not recognized 9305 # So say no if there are warnings 9306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9309 lt_cv_prog_compiler_c_o=yes 9310 fi 9311 fi 9312 chmod u+w . 2>&5 9313 $RM conftest* 9314 # SGI C++ compiler will create directory out/ii_files/ for 9315 # template instantiation 9316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9317 $RM out/* && rmdir out 9318 cd .. 9319 $RM -r conftest 9320 $RM conftest* 9321 9322fi 9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9324$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9325 9326 9327 9328 9329 9330 9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9332$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9333if ${lt_cv_prog_compiler_c_o+:} false; then : 9334 $as_echo_n "(cached) " >&6 9335else 9336 lt_cv_prog_compiler_c_o=no 9337 $RM -r conftest 2>/dev/null 9338 mkdir conftest 9339 cd conftest 9340 mkdir out 9341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9342 9343 lt_compiler_flag="-o out/conftest2.$ac_objext" 9344 # Insert the option either (1) after the last *FLAGS variable, or 9345 # (2) before a word containing "conftest.", or (3) at the end. 9346 # Note that $ac_compile itself does not contain backslashes and begins 9347 # with a dollar sign (not a hyphen), so the echo should work correctly. 9348 lt_compile=`echo "$ac_compile" | $SED \ 9349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9351 -e 's:$: $lt_compiler_flag:'` 9352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9353 (eval "$lt_compile" 2>out/conftest.err) 9354 ac_status=$? 9355 cat out/conftest.err >&5 9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9357 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9358 then 9359 # The compiler can only warn and ignore the option if not recognized 9360 # So say no if there are warnings 9361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9364 lt_cv_prog_compiler_c_o=yes 9365 fi 9366 fi 9367 chmod u+w . 2>&5 9368 $RM conftest* 9369 # SGI C++ compiler will create directory out/ii_files/ for 9370 # template instantiation 9371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9372 $RM out/* && rmdir out 9373 cd .. 9374 $RM -r conftest 9375 $RM conftest* 9376 9377fi 9378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9379$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9380 9381 9382 9383 9384hard_links=nottested 9385if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9386 # do not overwrite the value of need_locks provided by the user 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9388$as_echo_n "checking if we can lock with hard links... " >&6; } 9389 hard_links=yes 9390 $RM conftest* 9391 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9392 touch conftest.a 9393 ln conftest.a conftest.b 2>&5 || hard_links=no 9394 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9396$as_echo "$hard_links" >&6; } 9397 if test no = "$hard_links"; then 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9399$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9400 need_locks=warn 9401 fi 9402else 9403 need_locks=no 9404fi 9405 9406 9407 9408 9409 9410 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9412$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9413 9414 runpath_var= 9415 allow_undefined_flag= 9416 always_export_symbols=no 9417 archive_cmds= 9418 archive_expsym_cmds= 9419 compiler_needs_object=no 9420 enable_shared_with_static_runtimes=no 9421 export_dynamic_flag_spec= 9422 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9423 hardcode_automatic=no 9424 hardcode_direct=no 9425 hardcode_direct_absolute=no 9426 hardcode_libdir_flag_spec= 9427 hardcode_libdir_separator= 9428 hardcode_minus_L=no 9429 hardcode_shlibpath_var=unsupported 9430 inherit_rpath=no 9431 link_all_deplibs=unknown 9432 module_cmds= 9433 module_expsym_cmds= 9434 old_archive_from_new_cmds= 9435 old_archive_from_expsyms_cmds= 9436 thread_safe_flag_spec= 9437 whole_archive_flag_spec= 9438 # include_expsyms should be a list of space-separated symbols to be *always* 9439 # included in the symbol list 9440 include_expsyms= 9441 # exclude_expsyms can be an extended regexp of symbols to exclude 9442 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9443 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9444 # as well as any symbol that contains 'd'. 9445 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9446 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9447 # platforms (ab)use it in PIC code, but their linkers get confused if 9448 # the symbol is explicitly referenced. Since portable code cannot 9449 # rely on this symbol name, it's probably fine to never include it in 9450 # preloaded symbol tables. 9451 # Exclude shared library initialization/finalization symbols. 9452 extract_expsyms_cmds= 9453 9454 case $host_os in 9455 cygwin* | mingw* | pw32* | cegcc*) 9456 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9457 # When not using gcc, we currently assume that we are using 9458 # Microsoft Visual C++. 9459 if test yes != "$GCC"; then 9460 with_gnu_ld=no 9461 fi 9462 ;; 9463 interix*) 9464 # we just hope/assume this is gcc and not c89 (= MSVC++) 9465 with_gnu_ld=yes 9466 ;; 9467 openbsd* | bitrig*) 9468 with_gnu_ld=no 9469 ;; 9470 linux* | k*bsd*-gnu | gnu*) 9471 link_all_deplibs=no 9472 ;; 9473 esac 9474 9475 ld_shlibs=yes 9476 9477 # On some targets, GNU ld is compatible enough with the native linker 9478 # that we're better off using the native interface for both. 9479 lt_use_gnu_ld_interface=no 9480 if test yes = "$with_gnu_ld"; then 9481 case $host_os in 9482 aix*) 9483 # The AIX port of GNU ld has always aspired to compatibility 9484 # with the native linker. However, as the warning in the GNU ld 9485 # block says, versions before 2.19.5* couldn't really create working 9486 # shared libraries, regardless of the interface used. 9487 case `$LD -v 2>&1` in 9488 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9489 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9490 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9491 *) 9492 lt_use_gnu_ld_interface=yes 9493 ;; 9494 esac 9495 ;; 9496 *) 9497 lt_use_gnu_ld_interface=yes 9498 ;; 9499 esac 9500 fi 9501 9502 if test yes = "$lt_use_gnu_ld_interface"; then 9503 # If archive_cmds runs LD, not CC, wlarc should be empty 9504 wlarc='$wl' 9505 9506 # Set some defaults for GNU ld with shared library support. These 9507 # are reset later if shared libraries are not supported. Putting them 9508 # here allows them to be overridden if necessary. 9509 runpath_var=LD_RUN_PATH 9510 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9511 export_dynamic_flag_spec='$wl--export-dynamic' 9512 # ancient GNU ld didn't support --whole-archive et. al. 9513 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9514 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9515 else 9516 whole_archive_flag_spec= 9517 fi 9518 supports_anon_versioning=no 9519 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9520 *GNU\ gold*) supports_anon_versioning=yes ;; 9521 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9522 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9523 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9524 *\ 2.11.*) ;; # other 2.11 versions 9525 *) supports_anon_versioning=yes ;; 9526 esac 9527 9528 # See if GNU ld supports shared libraries. 9529 case $host_os in 9530 aix[3-9]*) 9531 # On AIX/PPC, the GNU linker is very broken 9532 if test ia64 != "$host_cpu"; then 9533 ld_shlibs=no 9534 cat <<_LT_EOF 1>&2 9535 9536*** Warning: the GNU linker, at least up to release 2.19, is reported 9537*** to be unable to reliably create shared libraries on AIX. 9538*** Therefore, libtool is disabling shared libraries support. If you 9539*** really care for shared libraries, you may want to install binutils 9540*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9541*** You will then need to restart the configuration process. 9542 9543_LT_EOF 9544 fi 9545 ;; 9546 9547 amigaos*) 9548 case $host_cpu in 9549 powerpc) 9550 # see comment about AmigaOS4 .so support 9551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9552 archive_expsym_cmds='' 9553 ;; 9554 m68k) 9555 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)' 9556 hardcode_libdir_flag_spec='-L$libdir' 9557 hardcode_minus_L=yes 9558 ;; 9559 esac 9560 ;; 9561 9562 beos*) 9563 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9564 allow_undefined_flag=unsupported 9565 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9566 # support --undefined. This deserves some investigation. FIXME 9567 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9568 else 9569 ld_shlibs=no 9570 fi 9571 ;; 9572 9573 cygwin* | mingw* | pw32* | cegcc*) 9574 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9575 # as there is no search path for DLLs. 9576 hardcode_libdir_flag_spec='-L$libdir' 9577 export_dynamic_flag_spec='$wl--export-all-symbols' 9578 allow_undefined_flag=unsupported 9579 always_export_symbols=no 9580 enable_shared_with_static_runtimes=yes 9581 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' 9582 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9583 9584 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9586 # If the export-symbols file already is a .def file, use it as 9587 # is; otherwise, prepend EXPORTS... 9588 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9589 cp $export_symbols $output_objdir/$soname.def; 9590 else 9591 echo EXPORTS > $output_objdir/$soname.def; 9592 cat $export_symbols >> $output_objdir/$soname.def; 9593 fi~ 9594 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9595 else 9596 ld_shlibs=no 9597 fi 9598 ;; 9599 9600 haiku*) 9601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9602 link_all_deplibs=yes 9603 ;; 9604 9605 os2*) 9606 hardcode_libdir_flag_spec='-L$libdir' 9607 hardcode_minus_L=yes 9608 allow_undefined_flag=unsupported 9609 shrext_cmds=.dll 9610 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9611 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9612 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9613 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9614 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9615 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9616 emximp -o $lib $output_objdir/$libname.def' 9617 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9618 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9619 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9620 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9621 prefix_cmds="$SED"~ 9622 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9623 prefix_cmds="$prefix_cmds -e 1d"; 9624 fi~ 9625 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9626 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9627 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9628 emximp -o $lib $output_objdir/$libname.def' 9629 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9630 enable_shared_with_static_runtimes=yes 9631 ;; 9632 9633 interix[3-9]*) 9634 hardcode_direct=no 9635 hardcode_shlibpath_var=no 9636 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9637 export_dynamic_flag_spec='$wl-E' 9638 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9639 # Instead, shared libraries are loaded at an image base (0x10000000 by 9640 # default) and relocated if they conflict, which is a slow very memory 9641 # consuming and fragmenting process. To avoid this, we pick a random, 9642 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9643 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9644 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9645 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' 9646 ;; 9647 9648 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9649 tmp_diet=no 9650 if test linux-dietlibc = "$host_os"; then 9651 case $cc_basename in 9652 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9653 esac 9654 fi 9655 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9656 && test no = "$tmp_diet" 9657 then 9658 tmp_addflag=' $pic_flag' 9659 tmp_sharedflag='-shared' 9660 case $cc_basename,$host_cpu in 9661 pgcc*) # Portland Group C compiler 9662 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' 9663 tmp_addflag=' $pic_flag' 9664 ;; 9665 pgf77* | pgf90* | pgf95* | pgfortran*) 9666 # Portland Group f77 and f90 compilers 9667 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' 9668 tmp_addflag=' $pic_flag -Mnomain' ;; 9669 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9670 tmp_addflag=' -i_dynamic' ;; 9671 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9672 tmp_addflag=' -i_dynamic -nofor_main' ;; 9673 ifc* | ifort*) # Intel Fortran compiler 9674 tmp_addflag=' -nofor_main' ;; 9675 lf95*) # Lahey Fortran 8.1 9676 whole_archive_flag_spec= 9677 tmp_sharedflag='--shared' ;; 9678 nagfor*) # NAGFOR 5.3 9679 tmp_sharedflag='-Wl,-shared' ;; 9680 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9681 tmp_sharedflag='-qmkshrobj' 9682 tmp_addflag= ;; 9683 nvcc*) # Cuda Compiler Driver 2.2 9684 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' 9685 compiler_needs_object=yes 9686 ;; 9687 esac 9688 case `$CC -V 2>&1 | sed 5q` in 9689 *Sun\ C*) # Sun C 5.9 9690 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' 9691 compiler_needs_object=yes 9692 tmp_sharedflag='-G' ;; 9693 *Sun\ F*) # Sun Fortran 8.3 9694 tmp_sharedflag='-G' ;; 9695 esac 9696 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9697 9698 if test yes = "$supports_anon_versioning"; then 9699 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9701 echo "local: *; };" >> $output_objdir/$libname.ver~ 9702 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9703 fi 9704 9705 case $cc_basename in 9706 tcc*) 9707 export_dynamic_flag_spec='-rdynamic' 9708 ;; 9709 xlf* | bgf* | bgxlf* | mpixlf*) 9710 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9711 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9712 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9713 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9714 if test yes = "$supports_anon_versioning"; then 9715 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9716 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9717 echo "local: *; };" >> $output_objdir/$libname.ver~ 9718 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9719 fi 9720 ;; 9721 esac 9722 else 9723 ld_shlibs=no 9724 fi 9725 ;; 9726 9727 netbsd* | netbsdelf*-gnu) 9728 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9729 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9730 wlarc= 9731 else 9732 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9733 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9734 fi 9735 ;; 9736 9737 solaris*) 9738 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9739 ld_shlibs=no 9740 cat <<_LT_EOF 1>&2 9741 9742*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9743*** create shared libraries on Solaris systems. Therefore, libtool 9744*** is disabling shared libraries support. We urge you to upgrade GNU 9745*** binutils to release 2.9.1 or newer. Another option is to modify 9746*** your PATH or compiler configuration so that the native linker is 9747*** used, and then restart. 9748 9749_LT_EOF 9750 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9752 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9753 else 9754 ld_shlibs=no 9755 fi 9756 ;; 9757 9758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9759 case `$LD -v 2>&1` in 9760 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9761 ld_shlibs=no 9762 cat <<_LT_EOF 1>&2 9763 9764*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9765*** reliably create shared libraries on SCO systems. Therefore, libtool 9766*** is disabling shared libraries support. We urge you to upgrade GNU 9767*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9768*** your PATH or compiler configuration so that the native linker is 9769*** used, and then restart. 9770 9771_LT_EOF 9772 ;; 9773 *) 9774 # For security reasons, it is highly recommended that you always 9775 # use absolute paths for naming shared libraries, and exclude the 9776 # DT_RUNPATH tag from executables and libraries. But doing so 9777 # requires that you compile everything twice, which is a pain. 9778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9779 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9782 else 9783 ld_shlibs=no 9784 fi 9785 ;; 9786 esac 9787 ;; 9788 9789 sunos4*) 9790 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9791 wlarc= 9792 hardcode_direct=yes 9793 hardcode_shlibpath_var=no 9794 ;; 9795 9796 *) 9797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9798 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9799 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9800 else 9801 ld_shlibs=no 9802 fi 9803 ;; 9804 esac 9805 9806 if test no = "$ld_shlibs"; then 9807 runpath_var= 9808 hardcode_libdir_flag_spec= 9809 export_dynamic_flag_spec= 9810 whole_archive_flag_spec= 9811 fi 9812 else 9813 # PORTME fill in a description of your system's linker (not GNU ld) 9814 case $host_os in 9815 aix3*) 9816 allow_undefined_flag=unsupported 9817 always_export_symbols=yes 9818 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' 9819 # Note: this linker hardcodes the directories in LIBPATH if there 9820 # are no directories specified by -L. 9821 hardcode_minus_L=yes 9822 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9823 # Neither direct hardcoding nor static linking is supported with a 9824 # broken collect2. 9825 hardcode_direct=unsupported 9826 fi 9827 ;; 9828 9829 aix[4-9]*) 9830 if test ia64 = "$host_cpu"; then 9831 # On IA64, the linker does run time linking by default, so we don't 9832 # have to do anything special. 9833 aix_use_runtimelinking=no 9834 exp_sym_flag='-Bexport' 9835 no_entry_flag= 9836 else 9837 # If we're using GNU nm, then we don't want the "-C" option. 9838 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9839 # Without the "-l" option, or with the "-B" option, AIX nm treats 9840 # weak defined symbols like other global defined symbols, whereas 9841 # GNU nm marks them as "W". 9842 # While the 'weak' keyword is ignored in the Export File, we need 9843 # it in the Import File for the 'aix-soname' feature, so we have 9844 # to replace the "-B" option with "-P" for AIX nm. 9845 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9846 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' 9847 else 9848 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9849 fi 9850 aix_use_runtimelinking=no 9851 9852 # Test if we are trying to use run time linking or normal 9853 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9854 # have runtime linking enabled, and use it for executables. 9855 # For shared libraries, we enable/disable runtime linking 9856 # depending on the kind of the shared library created - 9857 # when "with_aix_soname,aix_use_runtimelinking" is: 9858 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9859 # "aix,yes" lib.so shared, rtl:yes, for executables 9860 # lib.a static archive 9861 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9862 # lib.a(lib.so.V) shared, rtl:no, for executables 9863 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9864 # lib.a(lib.so.V) shared, rtl:no 9865 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9866 # lib.a static archive 9867 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9868 for ld_flag in $LDFLAGS; do 9869 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9870 aix_use_runtimelinking=yes 9871 break 9872 fi 9873 done 9874 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9875 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9876 # so we don't have lib.a shared libs to link our executables. 9877 # We have to force runtime linking in this case. 9878 aix_use_runtimelinking=yes 9879 LDFLAGS="$LDFLAGS -Wl,-brtl" 9880 fi 9881 ;; 9882 esac 9883 9884 exp_sym_flag='-bexport' 9885 no_entry_flag='-bnoentry' 9886 fi 9887 9888 # When large executables or shared objects are built, AIX ld can 9889 # have problems creating the table of contents. If linking a library 9890 # or program results in "error TOC overflow" add -mminimal-toc to 9891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9893 9894 archive_cmds='' 9895 hardcode_direct=yes 9896 hardcode_direct_absolute=yes 9897 hardcode_libdir_separator=':' 9898 link_all_deplibs=yes 9899 file_list_spec='$wl-f,' 9900 case $with_aix_soname,$aix_use_runtimelinking in 9901 aix,*) ;; # traditional, no import file 9902 svr4,* | *,yes) # use import file 9903 # The Import File defines what to hardcode. 9904 hardcode_direct=no 9905 hardcode_direct_absolute=no 9906 ;; 9907 esac 9908 9909 if test yes = "$GCC"; then 9910 case $host_os in aix4.[012]|aix4.[012].*) 9911 # We only want to do this on AIX 4.2 and lower, the check 9912 # below for broken collect2 doesn't work under 4.3+ 9913 collect2name=`$CC -print-prog-name=collect2` 9914 if test -f "$collect2name" && 9915 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9916 then 9917 # We have reworked collect2 9918 : 9919 else 9920 # We have old collect2 9921 hardcode_direct=unsupported 9922 # It fails to find uninstalled libraries when the uninstalled 9923 # path is not listed in the libpath. Setting hardcode_minus_L 9924 # to unsupported forces relinking 9925 hardcode_minus_L=yes 9926 hardcode_libdir_flag_spec='-L$libdir' 9927 hardcode_libdir_separator= 9928 fi 9929 ;; 9930 esac 9931 shared_flag='-shared' 9932 if test yes = "$aix_use_runtimelinking"; then 9933 shared_flag="$shared_flag "'$wl-G' 9934 fi 9935 # Need to ensure runtime linking is disabled for the traditional 9936 # shared library, or the linker may eventually find shared libraries 9937 # /with/ Import File - we do not want to mix them. 9938 shared_flag_aix='-shared' 9939 shared_flag_svr4='-shared $wl-G' 9940 else 9941 # not using gcc 9942 if test ia64 = "$host_cpu"; then 9943 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9944 # chokes on -Wl,-G. The following line is correct: 9945 shared_flag='-G' 9946 else 9947 if test yes = "$aix_use_runtimelinking"; then 9948 shared_flag='$wl-G' 9949 else 9950 shared_flag='$wl-bM:SRE' 9951 fi 9952 shared_flag_aix='$wl-bM:SRE' 9953 shared_flag_svr4='$wl-G' 9954 fi 9955 fi 9956 9957 export_dynamic_flag_spec='$wl-bexpall' 9958 # It seems that -bexpall does not export symbols beginning with 9959 # underscore (_), so it is better to generate a list of symbols to export. 9960 always_export_symbols=yes 9961 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9962 # Warning - without using the other runtime loading flags (-brtl), 9963 # -berok will link without error, but may produce a broken library. 9964 allow_undefined_flag='-berok' 9965 # Determine the default libpath from the value encoded in an 9966 # empty executable. 9967 if test set = "${lt_cv_aix_libpath+set}"; then 9968 aix_libpath=$lt_cv_aix_libpath 9969else 9970 if ${lt_cv_aix_libpath_+:} false; then : 9971 $as_echo_n "(cached) " >&6 9972else 9973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9974/* end confdefs.h. */ 9975 9976int 9977main () 9978{ 9979 9980 ; 9981 return 0; 9982} 9983_ACEOF 9984if ac_fn_c_try_link "$LINENO"; then : 9985 9986 lt_aix_libpath_sed=' 9987 /Import File Strings/,/^$/ { 9988 /^0/ { 9989 s/^0 *\([^ ]*\) *$/\1/ 9990 p 9991 } 9992 }' 9993 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9994 # Check for a 64-bit object if we didn't find anything. 9995 if test -z "$lt_cv_aix_libpath_"; then 9996 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9997 fi 9998fi 9999rm -f core conftest.err conftest.$ac_objext \ 10000 conftest$ac_exeext conftest.$ac_ext 10001 if test -z "$lt_cv_aix_libpath_"; then 10002 lt_cv_aix_libpath_=/usr/lib:/lib 10003 fi 10004 10005fi 10006 10007 aix_libpath=$lt_cv_aix_libpath_ 10008fi 10009 10010 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10011 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 10012 else 10013 if test ia64 = "$host_cpu"; then 10014 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10015 allow_undefined_flag="-z nodefs" 10016 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" 10017 else 10018 # Determine the default libpath from the value encoded in an 10019 # empty executable. 10020 if test set = "${lt_cv_aix_libpath+set}"; then 10021 aix_libpath=$lt_cv_aix_libpath 10022else 10023 if ${lt_cv_aix_libpath_+:} false; then : 10024 $as_echo_n "(cached) " >&6 10025else 10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10027/* end confdefs.h. */ 10028 10029int 10030main () 10031{ 10032 10033 ; 10034 return 0; 10035} 10036_ACEOF 10037if ac_fn_c_try_link "$LINENO"; then : 10038 10039 lt_aix_libpath_sed=' 10040 /Import File Strings/,/^$/ { 10041 /^0/ { 10042 s/^0 *\([^ ]*\) *$/\1/ 10043 p 10044 } 10045 }' 10046 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10047 # Check for a 64-bit object if we didn't find anything. 10048 if test -z "$lt_cv_aix_libpath_"; then 10049 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10050 fi 10051fi 10052rm -f core conftest.err conftest.$ac_objext \ 10053 conftest$ac_exeext conftest.$ac_ext 10054 if test -z "$lt_cv_aix_libpath_"; then 10055 lt_cv_aix_libpath_=/usr/lib:/lib 10056 fi 10057 10058fi 10059 10060 aix_libpath=$lt_cv_aix_libpath_ 10061fi 10062 10063 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10064 # Warning - without using the other run time loading flags, 10065 # -berok will link without error, but may produce a broken library. 10066 no_undefined_flag=' $wl-bernotok' 10067 allow_undefined_flag=' $wl-berok' 10068 if test yes = "$with_gnu_ld"; then 10069 # We only use this code for GNU lds that support --whole-archive. 10070 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10071 else 10072 # Exported symbols can be pulled into shared objects from archives 10073 whole_archive_flag_spec='$convenience' 10074 fi 10075 archive_cmds_need_lc=yes 10076 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10077 # -brtl affects multiple linker settings, -berok does not and is overridden later 10078 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10079 if test svr4 != "$with_aix_soname"; then 10080 # This is similar to how AIX traditionally builds its shared libraries. 10081 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' 10082 fi 10083 if test aix != "$with_aix_soname"; then 10084 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' 10085 else 10086 # used by -dlpreopen to get the symbols 10087 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10088 fi 10089 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10090 fi 10091 fi 10092 ;; 10093 10094 amigaos*) 10095 case $host_cpu in 10096 powerpc) 10097 # see comment about AmigaOS4 .so support 10098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10099 archive_expsym_cmds='' 10100 ;; 10101 m68k) 10102 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)' 10103 hardcode_libdir_flag_spec='-L$libdir' 10104 hardcode_minus_L=yes 10105 ;; 10106 esac 10107 ;; 10108 10109 bsdi[45]*) 10110 export_dynamic_flag_spec=-rdynamic 10111 ;; 10112 10113 cygwin* | mingw* | pw32* | cegcc*) 10114 # When not using gcc, we currently assume that we are using 10115 # Microsoft Visual C++. 10116 # hardcode_libdir_flag_spec is actually meaningless, as there is 10117 # no search path for DLLs. 10118 case $cc_basename in 10119 cl*) 10120 # Native MSVC 10121 hardcode_libdir_flag_spec=' ' 10122 allow_undefined_flag=unsupported 10123 always_export_symbols=yes 10124 file_list_spec='@' 10125 # Tell ltmain to make .lib files, not .a files. 10126 libext=lib 10127 # Tell ltmain to make .dll files, not .so files. 10128 shrext_cmds=.dll 10129 # FIXME: Setting linknames here is a bad hack. 10130 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10131 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10132 cp "$export_symbols" "$output_objdir/$soname.def"; 10133 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10134 else 10135 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10136 fi~ 10137 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10138 linknames=' 10139 # The linker will not automatically build a static lib if we build a DLL. 10140 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10141 enable_shared_with_static_runtimes=yes 10142 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10143 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10144 # Don't use ranlib 10145 old_postinstall_cmds='chmod 644 $oldlib' 10146 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10147 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10148 case $lt_outputfile in 10149 *.exe|*.EXE) ;; 10150 *) 10151 lt_outputfile=$lt_outputfile.exe 10152 lt_tool_outputfile=$lt_tool_outputfile.exe 10153 ;; 10154 esac~ 10155 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10156 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10157 $RM "$lt_outputfile.manifest"; 10158 fi' 10159 ;; 10160 *) 10161 # Assume MSVC wrapper 10162 hardcode_libdir_flag_spec=' ' 10163 allow_undefined_flag=unsupported 10164 # Tell ltmain to make .lib files, not .a files. 10165 libext=lib 10166 # Tell ltmain to make .dll files, not .so files. 10167 shrext_cmds=.dll 10168 # FIXME: Setting linknames here is a bad hack. 10169 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10170 # The linker will automatically build a .lib file if we build a DLL. 10171 old_archive_from_new_cmds='true' 10172 # FIXME: Should let the user specify the lib program. 10173 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10174 enable_shared_with_static_runtimes=yes 10175 ;; 10176 esac 10177 ;; 10178 10179 darwin* | rhapsody*) 10180 10181 10182 archive_cmds_need_lc=no 10183 hardcode_direct=no 10184 hardcode_automatic=yes 10185 hardcode_shlibpath_var=unsupported 10186 if test yes = "$lt_cv_ld_force_load"; then 10187 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\"`' 10188 10189 else 10190 whole_archive_flag_spec='' 10191 fi 10192 link_all_deplibs=yes 10193 allow_undefined_flag=$_lt_dar_allow_undefined 10194 case $cc_basename in 10195 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10196 *) _lt_dar_can_shared=$GCC ;; 10197 esac 10198 if test yes = "$_lt_dar_can_shared"; then 10199 output_verbose_link_cmd=func_echo_all 10200 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10201 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10202 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" 10203 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" 10204 10205 else 10206 ld_shlibs=no 10207 fi 10208 10209 ;; 10210 10211 dgux*) 10212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10213 hardcode_libdir_flag_spec='-L$libdir' 10214 hardcode_shlibpath_var=no 10215 ;; 10216 10217 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10218 # support. Future versions do this automatically, but an explicit c++rt0.o 10219 # does not break anything, and helps significantly (at the cost of a little 10220 # extra space). 10221 freebsd2.2*) 10222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10223 hardcode_libdir_flag_spec='-R$libdir' 10224 hardcode_direct=yes 10225 hardcode_shlibpath_var=no 10226 ;; 10227 10228 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10229 freebsd2.*) 10230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10231 hardcode_direct=yes 10232 hardcode_minus_L=yes 10233 hardcode_shlibpath_var=no 10234 ;; 10235 10236 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10237 freebsd* | dragonfly*) 10238 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10239 hardcode_libdir_flag_spec='-R$libdir' 10240 hardcode_direct=yes 10241 hardcode_shlibpath_var=no 10242 ;; 10243 10244 hpux9*) 10245 if test yes = "$GCC"; then 10246 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' 10247 else 10248 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' 10249 fi 10250 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10251 hardcode_libdir_separator=: 10252 hardcode_direct=yes 10253 10254 # hardcode_minus_L: Not really in the search PATH, 10255 # but as the default location of the library. 10256 hardcode_minus_L=yes 10257 export_dynamic_flag_spec='$wl-E' 10258 ;; 10259 10260 hpux10*) 10261 if test yes,no = "$GCC,$with_gnu_ld"; then 10262 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10263 else 10264 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10265 fi 10266 if test no = "$with_gnu_ld"; then 10267 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10268 hardcode_libdir_separator=: 10269 hardcode_direct=yes 10270 hardcode_direct_absolute=yes 10271 export_dynamic_flag_spec='$wl-E' 10272 # hardcode_minus_L: Not really in the search PATH, 10273 # but as the default location of the library. 10274 hardcode_minus_L=yes 10275 fi 10276 ;; 10277 10278 hpux11*) 10279 if test yes,no = "$GCC,$with_gnu_ld"; then 10280 case $host_cpu in 10281 hppa*64*) 10282 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10283 ;; 10284 ia64*) 10285 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10286 ;; 10287 *) 10288 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10289 ;; 10290 esac 10291 else 10292 case $host_cpu in 10293 hppa*64*) 10294 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10295 ;; 10296 ia64*) 10297 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10298 ;; 10299 *) 10300 10301 # Older versions of the 11.00 compiler do not understand -b yet 10302 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10304$as_echo_n "checking if $CC understands -b... " >&6; } 10305if ${lt_cv_prog_compiler__b+:} false; then : 10306 $as_echo_n "(cached) " >&6 10307else 10308 lt_cv_prog_compiler__b=no 10309 save_LDFLAGS=$LDFLAGS 10310 LDFLAGS="$LDFLAGS -b" 10311 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10312 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10313 # The linker can only warn and ignore the option if not recognized 10314 # So say no if there are warnings 10315 if test -s conftest.err; then 10316 # Append any errors to the config.log. 10317 cat conftest.err 1>&5 10318 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10320 if diff conftest.exp conftest.er2 >/dev/null; then 10321 lt_cv_prog_compiler__b=yes 10322 fi 10323 else 10324 lt_cv_prog_compiler__b=yes 10325 fi 10326 fi 10327 $RM -r conftest* 10328 LDFLAGS=$save_LDFLAGS 10329 10330fi 10331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10332$as_echo "$lt_cv_prog_compiler__b" >&6; } 10333 10334if test yes = "$lt_cv_prog_compiler__b"; then 10335 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10336else 10337 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10338fi 10339 10340 ;; 10341 esac 10342 fi 10343 if test no = "$with_gnu_ld"; then 10344 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10345 hardcode_libdir_separator=: 10346 10347 case $host_cpu in 10348 hppa*64*|ia64*) 10349 hardcode_direct=no 10350 hardcode_shlibpath_var=no 10351 ;; 10352 *) 10353 hardcode_direct=yes 10354 hardcode_direct_absolute=yes 10355 export_dynamic_flag_spec='$wl-E' 10356 10357 # hardcode_minus_L: Not really in the search PATH, 10358 # but as the default location of the library. 10359 hardcode_minus_L=yes 10360 ;; 10361 esac 10362 fi 10363 ;; 10364 10365 irix5* | irix6* | nonstopux*) 10366 if test yes = "$GCC"; then 10367 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' 10368 # Try to use the -exported_symbol ld option, if it does not 10369 # work, assume that -exports_file does not work either and 10370 # implicitly export all symbols. 10371 # This should be the same for all languages, so no per-tag cache variable. 10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10373$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10374if ${lt_cv_irix_exported_symbol+:} false; then : 10375 $as_echo_n "(cached) " >&6 10376else 10377 save_LDFLAGS=$LDFLAGS 10378 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10380/* end confdefs.h. */ 10381int foo (void) { return 0; } 10382_ACEOF 10383if ac_fn_c_try_link "$LINENO"; then : 10384 lt_cv_irix_exported_symbol=yes 10385else 10386 lt_cv_irix_exported_symbol=no 10387fi 10388rm -f core conftest.err conftest.$ac_objext \ 10389 conftest$ac_exeext conftest.$ac_ext 10390 LDFLAGS=$save_LDFLAGS 10391fi 10392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10393$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10394 if test yes = "$lt_cv_irix_exported_symbol"; then 10395 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' 10396 fi 10397 link_all_deplibs=no 10398 else 10399 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' 10400 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' 10401 fi 10402 archive_cmds_need_lc='no' 10403 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10404 hardcode_libdir_separator=: 10405 inherit_rpath=yes 10406 link_all_deplibs=yes 10407 ;; 10408 10409 linux*) 10410 case $cc_basename in 10411 tcc*) 10412 # Fabrice Bellard et al's Tiny C Compiler 10413 ld_shlibs=yes 10414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10415 ;; 10416 esac 10417 ;; 10418 10419 netbsd* | netbsdelf*-gnu) 10420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10422 else 10423 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10424 fi 10425 hardcode_libdir_flag_spec='-R$libdir' 10426 hardcode_direct=yes 10427 hardcode_shlibpath_var=no 10428 ;; 10429 10430 newsos6) 10431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10432 hardcode_direct=yes 10433 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10434 hardcode_libdir_separator=: 10435 hardcode_shlibpath_var=no 10436 ;; 10437 10438 *nto* | *qnx*) 10439 ;; 10440 10441 openbsd* | bitrig*) 10442 if test -f /usr/libexec/ld.so; then 10443 hardcode_direct=yes 10444 hardcode_shlibpath_var=no 10445 hardcode_direct_absolute=yes 10446 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10447 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10448 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10449 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10450 export_dynamic_flag_spec='$wl-E' 10451 else 10452 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10453 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10454 fi 10455 else 10456 ld_shlibs=no 10457 fi 10458 ;; 10459 10460 os2*) 10461 hardcode_libdir_flag_spec='-L$libdir' 10462 hardcode_minus_L=yes 10463 allow_undefined_flag=unsupported 10464 shrext_cmds=.dll 10465 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10466 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10467 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10468 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10469 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10470 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10471 emximp -o $lib $output_objdir/$libname.def' 10472 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10473 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10474 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10475 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10476 prefix_cmds="$SED"~ 10477 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10478 prefix_cmds="$prefix_cmds -e 1d"; 10479 fi~ 10480 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10481 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10482 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10483 emximp -o $lib $output_objdir/$libname.def' 10484 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10485 enable_shared_with_static_runtimes=yes 10486 ;; 10487 10488 osf3*) 10489 if test yes = "$GCC"; then 10490 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10491 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' 10492 else 10493 allow_undefined_flag=' -expect_unresolved \*' 10494 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' 10495 fi 10496 archive_cmds_need_lc='no' 10497 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10498 hardcode_libdir_separator=: 10499 ;; 10500 10501 osf4* | osf5*) # as osf3* with the addition of -msym flag 10502 if test yes = "$GCC"; then 10503 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10504 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' 10505 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10506 else 10507 allow_undefined_flag=' -expect_unresolved \*' 10508 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' 10509 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~ 10510 $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' 10511 10512 # Both c and cxx compiler support -rpath directly 10513 hardcode_libdir_flag_spec='-rpath $libdir' 10514 fi 10515 archive_cmds_need_lc='no' 10516 hardcode_libdir_separator=: 10517 ;; 10518 10519 solaris*) 10520 no_undefined_flag=' -z defs' 10521 if test yes = "$GCC"; then 10522 wlarc='$wl' 10523 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10524 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10525 $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' 10526 else 10527 case `$CC -V 2>&1` in 10528 *"Compilers 5.0"*) 10529 wlarc='' 10530 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10531 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10532 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10533 ;; 10534 *) 10535 wlarc='$wl' 10536 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10537 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10538 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10539 ;; 10540 esac 10541 fi 10542 hardcode_libdir_flag_spec='-R$libdir' 10543 hardcode_shlibpath_var=no 10544 case $host_os in 10545 solaris2.[0-5] | solaris2.[0-5].*) ;; 10546 *) 10547 # The compiler driver will combine and reorder linker options, 10548 # but understands '-z linker_flag'. GCC discards it without '$wl', 10549 # but is careful enough not to reorder. 10550 # Supported since Solaris 2.6 (maybe 2.5.1?) 10551 if test yes = "$GCC"; then 10552 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10553 else 10554 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10555 fi 10556 ;; 10557 esac 10558 link_all_deplibs=yes 10559 ;; 10560 10561 sunos4*) 10562 if test sequent = "$host_vendor"; then 10563 # Use $CC to link under sequent, because it throws in some extra .o 10564 # files that make .init and .fini sections work. 10565 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10566 else 10567 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10568 fi 10569 hardcode_libdir_flag_spec='-L$libdir' 10570 hardcode_direct=yes 10571 hardcode_minus_L=yes 10572 hardcode_shlibpath_var=no 10573 ;; 10574 10575 sysv4) 10576 case $host_vendor in 10577 sni) 10578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10579 hardcode_direct=yes # is this really true??? 10580 ;; 10581 siemens) 10582 ## LD is ld it makes a PLAMLIB 10583 ## CC just makes a GrossModule. 10584 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10585 reload_cmds='$CC -r -o $output$reload_objs' 10586 hardcode_direct=no 10587 ;; 10588 motorola) 10589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10590 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10591 ;; 10592 esac 10593 runpath_var='LD_RUN_PATH' 10594 hardcode_shlibpath_var=no 10595 ;; 10596 10597 sysv4.3*) 10598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10599 hardcode_shlibpath_var=no 10600 export_dynamic_flag_spec='-Bexport' 10601 ;; 10602 10603 sysv4*MP*) 10604 if test -d /usr/nec; then 10605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10606 hardcode_shlibpath_var=no 10607 runpath_var=LD_RUN_PATH 10608 hardcode_runpath_var=yes 10609 ld_shlibs=yes 10610 fi 10611 ;; 10612 10613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10614 no_undefined_flag='$wl-z,text' 10615 archive_cmds_need_lc=no 10616 hardcode_shlibpath_var=no 10617 runpath_var='LD_RUN_PATH' 10618 10619 if test yes = "$GCC"; then 10620 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10621 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10622 else 10623 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10624 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10625 fi 10626 ;; 10627 10628 sysv5* | sco3.2v5* | sco5v6*) 10629 # Note: We CANNOT use -z defs as we might desire, because we do not 10630 # link with -lc, and that would cause any symbols used from libc to 10631 # always be unresolved, which means just about no library would 10632 # ever link correctly. If we're not using GNU ld we use -z text 10633 # though, which does catch some bad symbols but isn't as heavy-handed 10634 # as -z defs. 10635 no_undefined_flag='$wl-z,text' 10636 allow_undefined_flag='$wl-z,nodefs' 10637 archive_cmds_need_lc=no 10638 hardcode_shlibpath_var=no 10639 hardcode_libdir_flag_spec='$wl-R,$libdir' 10640 hardcode_libdir_separator=':' 10641 link_all_deplibs=yes 10642 export_dynamic_flag_spec='$wl-Bexport' 10643 runpath_var='LD_RUN_PATH' 10644 10645 if test yes = "$GCC"; then 10646 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10647 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10648 else 10649 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10650 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10651 fi 10652 ;; 10653 10654 uts4*) 10655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10656 hardcode_libdir_flag_spec='-L$libdir' 10657 hardcode_shlibpath_var=no 10658 ;; 10659 10660 *) 10661 ld_shlibs=no 10662 ;; 10663 esac 10664 10665 if test sni = "$host_vendor"; then 10666 case $host in 10667 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10668 export_dynamic_flag_spec='$wl-Blargedynsym' 10669 ;; 10670 esac 10671 fi 10672 fi 10673 10674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10675$as_echo "$ld_shlibs" >&6; } 10676test no = "$ld_shlibs" && can_build_shared=no 10677 10678with_gnu_ld=$with_gnu_ld 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694# 10695# Do we need to explicitly link libc? 10696# 10697case "x$archive_cmds_need_lc" in 10698x|xyes) 10699 # Assume -lc should be added 10700 archive_cmds_need_lc=yes 10701 10702 if test yes,yes = "$GCC,$enable_shared"; then 10703 case $archive_cmds in 10704 *'~'*) 10705 # FIXME: we may have to deal with multi-command sequences. 10706 ;; 10707 '$CC '*) 10708 # Test whether the compiler implicitly links with -lc since on some 10709 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10710 # to ld, don't add -lc before -lgcc. 10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10712$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10713if ${lt_cv_archive_cmds_need_lc+:} false; then : 10714 $as_echo_n "(cached) " >&6 10715else 10716 $RM conftest* 10717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10718 10719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10720 (eval $ac_compile) 2>&5 10721 ac_status=$? 10722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10723 test $ac_status = 0; } 2>conftest.err; then 10724 soname=conftest 10725 lib=conftest 10726 libobjs=conftest.$ac_objext 10727 deplibs= 10728 wl=$lt_prog_compiler_wl 10729 pic_flag=$lt_prog_compiler_pic 10730 compiler_flags=-v 10731 linker_flags=-v 10732 verstring= 10733 output_objdir=. 10734 libname=conftest 10735 lt_save_allow_undefined_flag=$allow_undefined_flag 10736 allow_undefined_flag= 10737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10738 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10739 ac_status=$? 10740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10741 test $ac_status = 0; } 10742 then 10743 lt_cv_archive_cmds_need_lc=no 10744 else 10745 lt_cv_archive_cmds_need_lc=yes 10746 fi 10747 allow_undefined_flag=$lt_save_allow_undefined_flag 10748 else 10749 cat conftest.err 1>&5 10750 fi 10751 $RM conftest* 10752 10753fi 10754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10755$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10756 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10757 ;; 10758 esac 10759 fi 10760 ;; 10761esac 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10915$as_echo_n "checking dynamic linker characteristics... " >&6; } 10916 10917if test yes = "$GCC"; then 10918 case $host_os in 10919 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10920 *) lt_awk_arg='/^libraries:/' ;; 10921 esac 10922 case $host_os in 10923 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10924 *) lt_sed_strip_eq='s|=/|/|g' ;; 10925 esac 10926 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10927 case $lt_search_path_spec in 10928 *\;*) 10929 # if the path contains ";" then we assume it to be the separator 10930 # otherwise default to the standard path separator (i.e. ":") - it is 10931 # assumed that no part of a normal pathname contains ";" but that should 10932 # okay in the real world where ";" in dirpaths is itself problematic. 10933 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10934 ;; 10935 *) 10936 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10937 ;; 10938 esac 10939 # Ok, now we have the path, separated by spaces, we can step through it 10940 # and add multilib dir if necessary... 10941 lt_tmp_lt_search_path_spec= 10942 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10943 # ...but if some path component already ends with the multilib dir we assume 10944 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10945 case "$lt_multi_os_dir; $lt_search_path_spec " in 10946 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10947 lt_multi_os_dir= 10948 ;; 10949 esac 10950 for lt_sys_path in $lt_search_path_spec; do 10951 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10952 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10953 elif test -n "$lt_multi_os_dir"; then 10954 test -d "$lt_sys_path" && \ 10955 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10956 fi 10957 done 10958 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10959BEGIN {RS = " "; FS = "/|\n";} { 10960 lt_foo = ""; 10961 lt_count = 0; 10962 for (lt_i = NF; lt_i > 0; lt_i--) { 10963 if ($lt_i != "" && $lt_i != ".") { 10964 if ($lt_i == "..") { 10965 lt_count++; 10966 } else { 10967 if (lt_count == 0) { 10968 lt_foo = "/" $lt_i lt_foo; 10969 } else { 10970 lt_count--; 10971 } 10972 } 10973 } 10974 } 10975 if (lt_foo != "") { lt_freq[lt_foo]++; } 10976 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10977}'` 10978 # AWK program above erroneously prepends '/' to C:/dos/paths 10979 # for these hosts. 10980 case $host_os in 10981 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10982 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10983 esac 10984 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10985else 10986 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10987fi 10988library_names_spec= 10989libname_spec='lib$name' 10990soname_spec= 10991shrext_cmds=.so 10992postinstall_cmds= 10993postuninstall_cmds= 10994finish_cmds= 10995finish_eval= 10996shlibpath_var= 10997shlibpath_overrides_runpath=unknown 10998version_type=none 10999dynamic_linker="$host_os ld.so" 11000sys_lib_dlsearch_path_spec="/lib /usr/lib" 11001need_lib_prefix=unknown 11002hardcode_into_libs=no 11003 11004# when you set need_version to no, make sure it does not cause -set_version 11005# flags to be left without arguments 11006need_version=unknown 11007 11008 11009 11010case $host_os in 11011aix3*) 11012 version_type=linux # correct to gnu/linux during the next big refactor 11013 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11014 shlibpath_var=LIBPATH 11015 11016 # AIX 3 has no versioning support, so we append a major version to the name. 11017 soname_spec='$libname$release$shared_ext$major' 11018 ;; 11019 11020aix[4-9]*) 11021 version_type=linux # correct to gnu/linux during the next big refactor 11022 need_lib_prefix=no 11023 need_version=no 11024 hardcode_into_libs=yes 11025 if test ia64 = "$host_cpu"; then 11026 # AIX 5 supports IA64 11027 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11028 shlibpath_var=LD_LIBRARY_PATH 11029 else 11030 # With GCC up to 2.95.x, collect2 would create an import file 11031 # for dependence libraries. The import file would start with 11032 # the line '#! .'. This would cause the generated library to 11033 # depend on '.', always an invalid library. This was fixed in 11034 # development snapshots of GCC prior to 3.0. 11035 case $host_os in 11036 aix4 | aix4.[01] | aix4.[01].*) 11037 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11038 echo ' yes ' 11039 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11040 : 11041 else 11042 can_build_shared=no 11043 fi 11044 ;; 11045 esac 11046 # Using Import Files as archive members, it is possible to support 11047 # filename-based versioning of shared library archives on AIX. While 11048 # this would work for both with and without runtime linking, it will 11049 # prevent static linking of such archives. So we do filename-based 11050 # shared library versioning with .so extension only, which is used 11051 # when both runtime linking and shared linking is enabled. 11052 # Unfortunately, runtime linking may impact performance, so we do 11053 # not want this to be the default eventually. Also, we use the 11054 # versioned .so libs for executables only if there is the -brtl 11055 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11056 # To allow for filename-based versioning support, we need to create 11057 # libNAME.so.V as an archive file, containing: 11058 # *) an Import File, referring to the versioned filename of the 11059 # archive as well as the shared archive member, telling the 11060 # bitwidth (32 or 64) of that shared object, and providing the 11061 # list of exported symbols of that shared object, eventually 11062 # decorated with the 'weak' keyword 11063 # *) the shared object with the F_LOADONLY flag set, to really avoid 11064 # it being seen by the linker. 11065 # At run time we better use the real file rather than another symlink, 11066 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11067 11068 case $with_aix_soname,$aix_use_runtimelinking in 11069 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11070 # soname into executable. Probably we can add versioning support to 11071 # collect2, so additional links can be useful in future. 11072 aix,yes) # traditional libtool 11073 dynamic_linker='AIX unversionable lib.so' 11074 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11075 # instead of lib<name>.a to let people know that these are not 11076 # typical AIX shared libraries. 11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11078 ;; 11079 aix,no) # traditional AIX only 11080 dynamic_linker='AIX lib.a(lib.so.V)' 11081 # We preserve .a as extension for shared libraries through AIX4.2 11082 # and later when we are not doing run time linking. 11083 library_names_spec='$libname$release.a $libname.a' 11084 soname_spec='$libname$release$shared_ext$major' 11085 ;; 11086 svr4,*) # full svr4 only 11087 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11088 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11089 # We do not specify a path in Import Files, so LIBPATH fires. 11090 shlibpath_overrides_runpath=yes 11091 ;; 11092 *,yes) # both, prefer svr4 11093 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11094 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11095 # unpreferred sharedlib libNAME.a needs extra handling 11096 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"' 11097 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"' 11098 # We do not specify a path in Import Files, so LIBPATH fires. 11099 shlibpath_overrides_runpath=yes 11100 ;; 11101 *,no) # both, prefer aix 11102 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11103 library_names_spec='$libname$release.a $libname.a' 11104 soname_spec='$libname$release$shared_ext$major' 11105 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11106 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)' 11107 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"' 11108 ;; 11109 esac 11110 shlibpath_var=LIBPATH 11111 fi 11112 ;; 11113 11114amigaos*) 11115 case $host_cpu in 11116 powerpc) 11117 # Since July 2007 AmigaOS4 officially supports .so libraries. 11118 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11120 ;; 11121 m68k) 11122 library_names_spec='$libname.ixlibrary $libname.a' 11123 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11124 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' 11125 ;; 11126 esac 11127 ;; 11128 11129beos*) 11130 library_names_spec='$libname$shared_ext' 11131 dynamic_linker="$host_os ld.so" 11132 shlibpath_var=LIBRARY_PATH 11133 ;; 11134 11135bsdi[45]*) 11136 version_type=linux # correct to gnu/linux during the next big refactor 11137 need_version=no 11138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11139 soname_spec='$libname$release$shared_ext$major' 11140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11141 shlibpath_var=LD_LIBRARY_PATH 11142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11144 # the default ld.so.conf also contains /usr/contrib/lib and 11145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11146 # libtool to hard-code these into programs 11147 ;; 11148 11149cygwin* | mingw* | pw32* | cegcc*) 11150 version_type=windows 11151 shrext_cmds=.dll 11152 need_version=no 11153 need_lib_prefix=no 11154 11155 case $GCC,$cc_basename in 11156 yes,*) 11157 # gcc 11158 library_names_spec='$libname.dll.a' 11159 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11160 postinstall_cmds='base_file=`basename \$file`~ 11161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11162 dldir=$destdir/`dirname \$dlpath`~ 11163 test -d \$dldir || mkdir -p \$dldir~ 11164 $install_prog $dir/$dlname \$dldir/$dlname~ 11165 chmod a+x \$dldir/$dlname~ 11166 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11167 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11168 fi' 11169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11170 dlpath=$dir/\$dldll~ 11171 $RM \$dlpath' 11172 shlibpath_overrides_runpath=yes 11173 11174 case $host_os in 11175 cygwin*) 11176 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11177 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11178 11179 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11180 ;; 11181 mingw* | cegcc*) 11182 # MinGW DLLs use traditional 'lib' prefix 11183 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11184 ;; 11185 pw32*) 11186 # pw32 DLLs use 'pw' prefix rather than 'lib' 11187 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11188 ;; 11189 esac 11190 dynamic_linker='Win32 ld.exe' 11191 ;; 11192 11193 *,cl*) 11194 # Native MSVC 11195 libname_spec='$name' 11196 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11197 library_names_spec='$libname.dll.lib' 11198 11199 case $build_os in 11200 mingw*) 11201 sys_lib_search_path_spec= 11202 lt_save_ifs=$IFS 11203 IFS=';' 11204 for lt_path in $LIB 11205 do 11206 IFS=$lt_save_ifs 11207 # Let DOS variable expansion print the short 8.3 style file name. 11208 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11209 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11210 done 11211 IFS=$lt_save_ifs 11212 # Convert to MSYS style. 11213 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11214 ;; 11215 cygwin*) 11216 # Convert to unix form, then to dos form, then back to unix form 11217 # but this time dos style (no spaces!) so that the unix form looks 11218 # like /cygdrive/c/PROGRA~1:/cygdr... 11219 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11220 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11221 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11222 ;; 11223 *) 11224 sys_lib_search_path_spec=$LIB 11225 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11226 # It is most probably a Windows format PATH. 11227 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11228 else 11229 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11230 fi 11231 # FIXME: find the short name or the path components, as spaces are 11232 # common. (e.g. "Program Files" -> "PROGRA~1") 11233 ;; 11234 esac 11235 11236 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11237 postinstall_cmds='base_file=`basename \$file`~ 11238 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11239 dldir=$destdir/`dirname \$dlpath`~ 11240 test -d \$dldir || mkdir -p \$dldir~ 11241 $install_prog $dir/$dlname \$dldir/$dlname' 11242 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11243 dlpath=$dir/\$dldll~ 11244 $RM \$dlpath' 11245 shlibpath_overrides_runpath=yes 11246 dynamic_linker='Win32 link.exe' 11247 ;; 11248 11249 *) 11250 # Assume MSVC wrapper 11251 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11252 dynamic_linker='Win32 ld.exe' 11253 ;; 11254 esac 11255 # FIXME: first we should search . and the directory the executable is in 11256 shlibpath_var=PATH 11257 ;; 11258 11259darwin* | rhapsody*) 11260 dynamic_linker="$host_os dyld" 11261 version_type=darwin 11262 need_lib_prefix=no 11263 need_version=no 11264 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11265 soname_spec='$libname$release$major$shared_ext' 11266 shlibpath_overrides_runpath=yes 11267 shlibpath_var=DYLD_LIBRARY_PATH 11268 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11269 11270 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11272 ;; 11273 11274dgux*) 11275 version_type=linux # correct to gnu/linux during the next big refactor 11276 need_lib_prefix=no 11277 need_version=no 11278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11279 soname_spec='$libname$release$shared_ext$major' 11280 shlibpath_var=LD_LIBRARY_PATH 11281 ;; 11282 11283freebsd* | dragonfly*) 11284 # DragonFly does not have aout. When/if they implement a new 11285 # versioning mechanism, adjust this. 11286 if test -x /usr/bin/objformat; then 11287 objformat=`/usr/bin/objformat` 11288 else 11289 case $host_os in 11290 freebsd[23].*) objformat=aout ;; 11291 *) objformat=elf ;; 11292 esac 11293 fi 11294 version_type=freebsd-$objformat 11295 case $version_type in 11296 freebsd-elf*) 11297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11298 soname_spec='$libname$release$shared_ext$major' 11299 need_version=no 11300 need_lib_prefix=no 11301 ;; 11302 freebsd-*) 11303 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11304 need_version=yes 11305 ;; 11306 esac 11307 shlibpath_var=LD_LIBRARY_PATH 11308 case $host_os in 11309 freebsd2.*) 11310 shlibpath_overrides_runpath=yes 11311 ;; 11312 freebsd3.[01]* | freebsdelf3.[01]*) 11313 shlibpath_overrides_runpath=yes 11314 hardcode_into_libs=yes 11315 ;; 11316 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11317 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11318 shlibpath_overrides_runpath=no 11319 hardcode_into_libs=yes 11320 ;; 11321 *) # from 4.6 on, and DragonFly 11322 shlibpath_overrides_runpath=yes 11323 hardcode_into_libs=yes 11324 ;; 11325 esac 11326 ;; 11327 11328haiku*) 11329 version_type=linux # correct to gnu/linux during the next big refactor 11330 need_lib_prefix=no 11331 need_version=no 11332 dynamic_linker="$host_os runtime_loader" 11333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11334 soname_spec='$libname$release$shared_ext$major' 11335 shlibpath_var=LIBRARY_PATH 11336 shlibpath_overrides_runpath=no 11337 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11338 hardcode_into_libs=yes 11339 ;; 11340 11341hpux9* | hpux10* | hpux11*) 11342 # Give a soname corresponding to the major version so that dld.sl refuses to 11343 # link against other versions. 11344 version_type=sunos 11345 need_lib_prefix=no 11346 need_version=no 11347 case $host_cpu in 11348 ia64*) 11349 shrext_cmds='.so' 11350 hardcode_into_libs=yes 11351 dynamic_linker="$host_os dld.so" 11352 shlibpath_var=LD_LIBRARY_PATH 11353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11355 soname_spec='$libname$release$shared_ext$major' 11356 if test 32 = "$HPUX_IA64_MODE"; then 11357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11358 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11359 else 11360 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11361 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11362 fi 11363 ;; 11364 hppa*64*) 11365 shrext_cmds='.sl' 11366 hardcode_into_libs=yes 11367 dynamic_linker="$host_os dld.sl" 11368 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11371 soname_spec='$libname$release$shared_ext$major' 11372 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11374 ;; 11375 *) 11376 shrext_cmds='.sl' 11377 dynamic_linker="$host_os dld.sl" 11378 shlibpath_var=SHLIB_PATH 11379 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11381 soname_spec='$libname$release$shared_ext$major' 11382 ;; 11383 esac 11384 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11385 postinstall_cmds='chmod 555 $lib' 11386 # or fails outright, so override atomically: 11387 install_override_mode=555 11388 ;; 11389 11390interix[3-9]*) 11391 version_type=linux # correct to gnu/linux during the next big refactor 11392 need_lib_prefix=no 11393 need_version=no 11394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11395 soname_spec='$libname$release$shared_ext$major' 11396 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11397 shlibpath_var=LD_LIBRARY_PATH 11398 shlibpath_overrides_runpath=no 11399 hardcode_into_libs=yes 11400 ;; 11401 11402irix5* | irix6* | nonstopux*) 11403 case $host_os in 11404 nonstopux*) version_type=nonstopux ;; 11405 *) 11406 if test yes = "$lt_cv_prog_gnu_ld"; then 11407 version_type=linux # correct to gnu/linux during the next big refactor 11408 else 11409 version_type=irix 11410 fi ;; 11411 esac 11412 need_lib_prefix=no 11413 need_version=no 11414 soname_spec='$libname$release$shared_ext$major' 11415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11416 case $host_os in 11417 irix5* | nonstopux*) 11418 libsuff= shlibsuff= 11419 ;; 11420 *) 11421 case $LD in # libtool.m4 will add one of these switches to LD 11422 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11423 libsuff= shlibsuff= libmagic=32-bit;; 11424 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11425 libsuff=32 shlibsuff=N32 libmagic=N32;; 11426 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11427 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11428 *) libsuff= shlibsuff= libmagic=never-match;; 11429 esac 11430 ;; 11431 esac 11432 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11433 shlibpath_overrides_runpath=no 11434 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11435 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11436 hardcode_into_libs=yes 11437 ;; 11438 11439# No shared lib support for Linux oldld, aout, or coff. 11440linux*oldld* | linux*aout* | linux*coff*) 11441 dynamic_linker=no 11442 ;; 11443 11444linux*android*) 11445 version_type=none # Android doesn't support versioned libraries. 11446 need_lib_prefix=no 11447 need_version=no 11448 library_names_spec='$libname$release$shared_ext' 11449 soname_spec='$libname$release$shared_ext' 11450 finish_cmds= 11451 shlibpath_var=LD_LIBRARY_PATH 11452 shlibpath_overrides_runpath=yes 11453 11454 # This implies no fast_install, which is unacceptable. 11455 # Some rework will be needed to allow for fast_install 11456 # before this can be enabled. 11457 hardcode_into_libs=yes 11458 11459 dynamic_linker='Android linker' 11460 # Don't embed -rpath directories since the linker doesn't support them. 11461 hardcode_libdir_flag_spec='-L$libdir' 11462 ;; 11463 11464# This must be glibc/ELF. 11465linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11466 version_type=linux # correct to gnu/linux during the next big refactor 11467 need_lib_prefix=no 11468 need_version=no 11469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11470 soname_spec='$libname$release$shared_ext$major' 11471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11472 shlibpath_var=LD_LIBRARY_PATH 11473 shlibpath_overrides_runpath=no 11474 11475 # Some binutils ld are patched to set DT_RUNPATH 11476 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11477 $as_echo_n "(cached) " >&6 11478else 11479 lt_cv_shlibpath_overrides_runpath=no 11480 save_LDFLAGS=$LDFLAGS 11481 save_libdir=$libdir 11482 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11483 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11485/* end confdefs.h. */ 11486 11487int 11488main () 11489{ 11490 11491 ; 11492 return 0; 11493} 11494_ACEOF 11495if ac_fn_c_try_link "$LINENO"; then : 11496 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11497 lt_cv_shlibpath_overrides_runpath=yes 11498fi 11499fi 11500rm -f core conftest.err conftest.$ac_objext \ 11501 conftest$ac_exeext conftest.$ac_ext 11502 LDFLAGS=$save_LDFLAGS 11503 libdir=$save_libdir 11504 11505fi 11506 11507 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11508 11509 # This implies no fast_install, which is unacceptable. 11510 # Some rework will be needed to allow for fast_install 11511 # before this can be enabled. 11512 hardcode_into_libs=yes 11513 11514 # Ideally, we could use ldconfig to report *all* directores which are 11515 # searched for libraries, however this is still not possible. Aside from not 11516 # being certain /sbin/ldconfig is available, command 11517 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11518 # even though it is searched at run-time. Try to do the best guess by 11519 # appending ld.so.conf contents (and includes) to the search path. 11520 if test -f /etc/ld.so.conf; then 11521 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' ' '` 11522 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11523 fi 11524 11525 # We used to test for /lib/ld.so.1 and disable shared libraries on 11526 # powerpc, because MkLinux only supported shared libraries with the 11527 # GNU dynamic linker. Since this was broken with cross compilers, 11528 # most powerpc-linux boxes support dynamic linking these days and 11529 # people can always --disable-shared, the test was removed, and we 11530 # assume the GNU/Linux dynamic linker is in use. 11531 dynamic_linker='GNU/Linux ld.so' 11532 ;; 11533 11534netbsdelf*-gnu) 11535 version_type=linux 11536 need_lib_prefix=no 11537 need_version=no 11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11539 soname_spec='${libname}${release}${shared_ext}$major' 11540 shlibpath_var=LD_LIBRARY_PATH 11541 shlibpath_overrides_runpath=no 11542 hardcode_into_libs=yes 11543 dynamic_linker='NetBSD ld.elf_so' 11544 ;; 11545 11546netbsd*) 11547 version_type=sunos 11548 need_lib_prefix=no 11549 need_version=no 11550 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11553 dynamic_linker='NetBSD (a.out) ld.so' 11554 else 11555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11556 soname_spec='$libname$release$shared_ext$major' 11557 dynamic_linker='NetBSD ld.elf_so' 11558 fi 11559 shlibpath_var=LD_LIBRARY_PATH 11560 shlibpath_overrides_runpath=yes 11561 hardcode_into_libs=yes 11562 ;; 11563 11564newsos6) 11565 version_type=linux # correct to gnu/linux during the next big refactor 11566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11567 shlibpath_var=LD_LIBRARY_PATH 11568 shlibpath_overrides_runpath=yes 11569 ;; 11570 11571*nto* | *qnx*) 11572 version_type=qnx 11573 need_lib_prefix=no 11574 need_version=no 11575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11576 soname_spec='$libname$release$shared_ext$major' 11577 shlibpath_var=LD_LIBRARY_PATH 11578 shlibpath_overrides_runpath=no 11579 hardcode_into_libs=yes 11580 dynamic_linker='ldqnx.so' 11581 ;; 11582 11583openbsd* | bitrig*) 11584 version_type=sunos 11585 sys_lib_dlsearch_path_spec=/usr/lib 11586 need_lib_prefix=no 11587 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11588 need_version=no 11589 else 11590 need_version=yes 11591 fi 11592 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11594 shlibpath_var=LD_LIBRARY_PATH 11595 shlibpath_overrides_runpath=yes 11596 ;; 11597 11598os2*) 11599 libname_spec='$name' 11600 version_type=windows 11601 shrext_cmds=.dll 11602 need_version=no 11603 need_lib_prefix=no 11604 # OS/2 can only load a DLL with a base name of 8 characters or less. 11605 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11606 v=$($ECHO $release$versuffix | tr -d .-); 11607 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11608 $ECHO $n$v`$shared_ext' 11609 library_names_spec='${libname}_dll.$libext' 11610 dynamic_linker='OS/2 ld.exe' 11611 shlibpath_var=BEGINLIBPATH 11612 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11614 postinstall_cmds='base_file=`basename \$file`~ 11615 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11616 dldir=$destdir/`dirname \$dlpath`~ 11617 test -d \$dldir || mkdir -p \$dldir~ 11618 $install_prog $dir/$dlname \$dldir/$dlname~ 11619 chmod a+x \$dldir/$dlname~ 11620 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11621 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11622 fi' 11623 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11624 dlpath=$dir/\$dldll~ 11625 $RM \$dlpath' 11626 ;; 11627 11628osf3* | osf4* | osf5*) 11629 version_type=osf 11630 need_lib_prefix=no 11631 need_version=no 11632 soname_spec='$libname$release$shared_ext$major' 11633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11634 shlibpath_var=LD_LIBRARY_PATH 11635 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11637 ;; 11638 11639rdos*) 11640 dynamic_linker=no 11641 ;; 11642 11643solaris*) 11644 version_type=linux # correct to gnu/linux during the next big refactor 11645 need_lib_prefix=no 11646 need_version=no 11647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11648 soname_spec='$libname$release$shared_ext$major' 11649 shlibpath_var=LD_LIBRARY_PATH 11650 shlibpath_overrides_runpath=yes 11651 hardcode_into_libs=yes 11652 # ldd complains unless libraries are executable 11653 postinstall_cmds='chmod +x $lib' 11654 ;; 11655 11656sunos4*) 11657 version_type=sunos 11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11660 shlibpath_var=LD_LIBRARY_PATH 11661 shlibpath_overrides_runpath=yes 11662 if test yes = "$with_gnu_ld"; then 11663 need_lib_prefix=no 11664 fi 11665 need_version=yes 11666 ;; 11667 11668sysv4 | sysv4.3*) 11669 version_type=linux # correct to gnu/linux during the next big refactor 11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11671 soname_spec='$libname$release$shared_ext$major' 11672 shlibpath_var=LD_LIBRARY_PATH 11673 case $host_vendor in 11674 sni) 11675 shlibpath_overrides_runpath=no 11676 need_lib_prefix=no 11677 runpath_var=LD_RUN_PATH 11678 ;; 11679 siemens) 11680 need_lib_prefix=no 11681 ;; 11682 motorola) 11683 need_lib_prefix=no 11684 need_version=no 11685 shlibpath_overrides_runpath=no 11686 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11687 ;; 11688 esac 11689 ;; 11690 11691sysv4*MP*) 11692 if test -d /usr/nec; then 11693 version_type=linux # correct to gnu/linux during the next big refactor 11694 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11695 soname_spec='$libname$shared_ext.$major' 11696 shlibpath_var=LD_LIBRARY_PATH 11697 fi 11698 ;; 11699 11700sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11701 version_type=sco 11702 need_lib_prefix=no 11703 need_version=no 11704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11705 soname_spec='$libname$release$shared_ext$major' 11706 shlibpath_var=LD_LIBRARY_PATH 11707 shlibpath_overrides_runpath=yes 11708 hardcode_into_libs=yes 11709 if test yes = "$with_gnu_ld"; then 11710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11711 else 11712 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11713 case $host_os in 11714 sco3.2v5*) 11715 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11716 ;; 11717 esac 11718 fi 11719 sys_lib_dlsearch_path_spec='/usr/lib' 11720 ;; 11721 11722tpf*) 11723 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11724 version_type=linux # correct to gnu/linux during the next big refactor 11725 need_lib_prefix=no 11726 need_version=no 11727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11728 shlibpath_var=LD_LIBRARY_PATH 11729 shlibpath_overrides_runpath=no 11730 hardcode_into_libs=yes 11731 ;; 11732 11733uts4*) 11734 version_type=linux # correct to gnu/linux during the next big refactor 11735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11736 soname_spec='$libname$release$shared_ext$major' 11737 shlibpath_var=LD_LIBRARY_PATH 11738 ;; 11739 11740*) 11741 dynamic_linker=no 11742 ;; 11743esac 11744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11745$as_echo "$dynamic_linker" >&6; } 11746test no = "$dynamic_linker" && can_build_shared=no 11747 11748variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11749if test yes = "$GCC"; then 11750 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11751fi 11752 11753if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11754 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11755fi 11756 11757if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11758 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11759fi 11760 11761# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11762configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11763 11764# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11765func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11766 11767# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11768configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11867$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11868hardcode_action= 11869if test -n "$hardcode_libdir_flag_spec" || 11870 test -n "$runpath_var" || 11871 test yes = "$hardcode_automatic"; then 11872 11873 # We can hardcode non-existent directories. 11874 if test no != "$hardcode_direct" && 11875 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11876 # have to relink, otherwise we might link with an installed library 11877 # when we should be linking with a yet-to-be-installed one 11878 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11879 test no != "$hardcode_minus_L"; then 11880 # Linking always hardcodes the temporary library directory. 11881 hardcode_action=relink 11882 else 11883 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11884 hardcode_action=immediate 11885 fi 11886else 11887 # We cannot hardcode anything, or else we can only hardcode existing 11888 # directories. 11889 hardcode_action=unsupported 11890fi 11891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11892$as_echo "$hardcode_action" >&6; } 11893 11894if test relink = "$hardcode_action" || 11895 test yes = "$inherit_rpath"; then 11896 # Fast installation is not supported 11897 enable_fast_install=no 11898elif test yes = "$shlibpath_overrides_runpath" || 11899 test no = "$enable_shared"; then 11900 # Fast installation is not necessary 11901 enable_fast_install=needless 11902fi 11903 11904 11905 11906 11907 11908 11909 if test yes != "$enable_dlopen"; then 11910 enable_dlopen=unknown 11911 enable_dlopen_self=unknown 11912 enable_dlopen_self_static=unknown 11913else 11914 lt_cv_dlopen=no 11915 lt_cv_dlopen_libs= 11916 11917 case $host_os in 11918 beos*) 11919 lt_cv_dlopen=load_add_on 11920 lt_cv_dlopen_libs= 11921 lt_cv_dlopen_self=yes 11922 ;; 11923 11924 mingw* | pw32* | cegcc*) 11925 lt_cv_dlopen=LoadLibrary 11926 lt_cv_dlopen_libs= 11927 ;; 11928 11929 cygwin*) 11930 lt_cv_dlopen=dlopen 11931 lt_cv_dlopen_libs= 11932 ;; 11933 11934 darwin*) 11935 # if libdl is installed we need to link against it 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11937$as_echo_n "checking for dlopen in -ldl... " >&6; } 11938if ${ac_cv_lib_dl_dlopen+:} false; then : 11939 $as_echo_n "(cached) " >&6 11940else 11941 ac_check_lib_save_LIBS=$LIBS 11942LIBS="-ldl $LIBS" 11943cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11944/* end confdefs.h. */ 11945 11946/* Override any GCC internal prototype to avoid an error. 11947 Use char because int might match the return type of a GCC 11948 builtin and then its argument prototype would still apply. */ 11949#ifdef __cplusplus 11950extern "C" 11951#endif 11952char dlopen (); 11953int 11954main () 11955{ 11956return dlopen (); 11957 ; 11958 return 0; 11959} 11960_ACEOF 11961if ac_fn_c_try_link "$LINENO"; then : 11962 ac_cv_lib_dl_dlopen=yes 11963else 11964 ac_cv_lib_dl_dlopen=no 11965fi 11966rm -f core conftest.err conftest.$ac_objext \ 11967 conftest$ac_exeext conftest.$ac_ext 11968LIBS=$ac_check_lib_save_LIBS 11969fi 11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11971$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11972if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11973 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11974else 11975 11976 lt_cv_dlopen=dyld 11977 lt_cv_dlopen_libs= 11978 lt_cv_dlopen_self=yes 11979 11980fi 11981 11982 ;; 11983 11984 tpf*) 11985 # Don't try to run any link tests for TPF. We know it's impossible 11986 # because TPF is a cross-compiler, and we know how we open DSOs. 11987 lt_cv_dlopen=dlopen 11988 lt_cv_dlopen_libs= 11989 lt_cv_dlopen_self=no 11990 ;; 11991 11992 *) 11993 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11994if test "x$ac_cv_func_shl_load" = xyes; then : 11995 lt_cv_dlopen=shl_load 11996else 11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11998$as_echo_n "checking for shl_load in -ldld... " >&6; } 11999if ${ac_cv_lib_dld_shl_load+:} false; then : 12000 $as_echo_n "(cached) " >&6 12001else 12002 ac_check_lib_save_LIBS=$LIBS 12003LIBS="-ldld $LIBS" 12004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12005/* end confdefs.h. */ 12006 12007/* Override any GCC internal prototype to avoid an error. 12008 Use char because int might match the return type of a GCC 12009 builtin and then its argument prototype would still apply. */ 12010#ifdef __cplusplus 12011extern "C" 12012#endif 12013char shl_load (); 12014int 12015main () 12016{ 12017return shl_load (); 12018 ; 12019 return 0; 12020} 12021_ACEOF 12022if ac_fn_c_try_link "$LINENO"; then : 12023 ac_cv_lib_dld_shl_load=yes 12024else 12025 ac_cv_lib_dld_shl_load=no 12026fi 12027rm -f core conftest.err conftest.$ac_objext \ 12028 conftest$ac_exeext conftest.$ac_ext 12029LIBS=$ac_check_lib_save_LIBS 12030fi 12031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12032$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12033if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12034 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12035else 12036 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12037if test "x$ac_cv_func_dlopen" = xyes; then : 12038 lt_cv_dlopen=dlopen 12039else 12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12041$as_echo_n "checking for dlopen in -ldl... " >&6; } 12042if ${ac_cv_lib_dl_dlopen+:} false; then : 12043 $as_echo_n "(cached) " >&6 12044else 12045 ac_check_lib_save_LIBS=$LIBS 12046LIBS="-ldl $LIBS" 12047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12048/* end confdefs.h. */ 12049 12050/* Override any GCC internal prototype to avoid an error. 12051 Use char because int might match the return type of a GCC 12052 builtin and then its argument prototype would still apply. */ 12053#ifdef __cplusplus 12054extern "C" 12055#endif 12056char dlopen (); 12057int 12058main () 12059{ 12060return dlopen (); 12061 ; 12062 return 0; 12063} 12064_ACEOF 12065if ac_fn_c_try_link "$LINENO"; then : 12066 ac_cv_lib_dl_dlopen=yes 12067else 12068 ac_cv_lib_dl_dlopen=no 12069fi 12070rm -f core conftest.err conftest.$ac_objext \ 12071 conftest$ac_exeext conftest.$ac_ext 12072LIBS=$ac_check_lib_save_LIBS 12073fi 12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12075$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12076if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12077 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12078else 12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12080$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12081if ${ac_cv_lib_svld_dlopen+:} false; then : 12082 $as_echo_n "(cached) " >&6 12083else 12084 ac_check_lib_save_LIBS=$LIBS 12085LIBS="-lsvld $LIBS" 12086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12087/* end confdefs.h. */ 12088 12089/* Override any GCC internal prototype to avoid an error. 12090 Use char because int might match the return type of a GCC 12091 builtin and then its argument prototype would still apply. */ 12092#ifdef __cplusplus 12093extern "C" 12094#endif 12095char dlopen (); 12096int 12097main () 12098{ 12099return dlopen (); 12100 ; 12101 return 0; 12102} 12103_ACEOF 12104if ac_fn_c_try_link "$LINENO"; then : 12105 ac_cv_lib_svld_dlopen=yes 12106else 12107 ac_cv_lib_svld_dlopen=no 12108fi 12109rm -f core conftest.err conftest.$ac_objext \ 12110 conftest$ac_exeext conftest.$ac_ext 12111LIBS=$ac_check_lib_save_LIBS 12112fi 12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12114$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12115if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12116 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12117else 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12119$as_echo_n "checking for dld_link in -ldld... " >&6; } 12120if ${ac_cv_lib_dld_dld_link+:} false; then : 12121 $as_echo_n "(cached) " >&6 12122else 12123 ac_check_lib_save_LIBS=$LIBS 12124LIBS="-ldld $LIBS" 12125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12126/* end confdefs.h. */ 12127 12128/* Override any GCC internal prototype to avoid an error. 12129 Use char because int might match the return type of a GCC 12130 builtin and then its argument prototype would still apply. */ 12131#ifdef __cplusplus 12132extern "C" 12133#endif 12134char dld_link (); 12135int 12136main () 12137{ 12138return dld_link (); 12139 ; 12140 return 0; 12141} 12142_ACEOF 12143if ac_fn_c_try_link "$LINENO"; then : 12144 ac_cv_lib_dld_dld_link=yes 12145else 12146 ac_cv_lib_dld_dld_link=no 12147fi 12148rm -f core conftest.err conftest.$ac_objext \ 12149 conftest$ac_exeext conftest.$ac_ext 12150LIBS=$ac_check_lib_save_LIBS 12151fi 12152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12153$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12154if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12155 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12156fi 12157 12158 12159fi 12160 12161 12162fi 12163 12164 12165fi 12166 12167 12168fi 12169 12170 12171fi 12172 12173 ;; 12174 esac 12175 12176 if test no = "$lt_cv_dlopen"; then 12177 enable_dlopen=no 12178 else 12179 enable_dlopen=yes 12180 fi 12181 12182 case $lt_cv_dlopen in 12183 dlopen) 12184 save_CPPFLAGS=$CPPFLAGS 12185 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12186 12187 save_LDFLAGS=$LDFLAGS 12188 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12189 12190 save_LIBS=$LIBS 12191 LIBS="$lt_cv_dlopen_libs $LIBS" 12192 12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12194$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12195if ${lt_cv_dlopen_self+:} false; then : 12196 $as_echo_n "(cached) " >&6 12197else 12198 if test yes = "$cross_compiling"; then : 12199 lt_cv_dlopen_self=cross 12200else 12201 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12202 lt_status=$lt_dlunknown 12203 cat > conftest.$ac_ext <<_LT_EOF 12204#line $LINENO "configure" 12205#include "confdefs.h" 12206 12207#if HAVE_DLFCN_H 12208#include <dlfcn.h> 12209#endif 12210 12211#include <stdio.h> 12212 12213#ifdef RTLD_GLOBAL 12214# define LT_DLGLOBAL RTLD_GLOBAL 12215#else 12216# ifdef DL_GLOBAL 12217# define LT_DLGLOBAL DL_GLOBAL 12218# else 12219# define LT_DLGLOBAL 0 12220# endif 12221#endif 12222 12223/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12224 find out it does not work in some platform. */ 12225#ifndef LT_DLLAZY_OR_NOW 12226# ifdef RTLD_LAZY 12227# define LT_DLLAZY_OR_NOW RTLD_LAZY 12228# else 12229# ifdef DL_LAZY 12230# define LT_DLLAZY_OR_NOW DL_LAZY 12231# else 12232# ifdef RTLD_NOW 12233# define LT_DLLAZY_OR_NOW RTLD_NOW 12234# else 12235# ifdef DL_NOW 12236# define LT_DLLAZY_OR_NOW DL_NOW 12237# else 12238# define LT_DLLAZY_OR_NOW 0 12239# endif 12240# endif 12241# endif 12242# endif 12243#endif 12244 12245/* When -fvisibility=hidden is used, assume the code has been annotated 12246 correspondingly for the symbols needed. */ 12247#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12248int fnord () __attribute__((visibility("default"))); 12249#endif 12250 12251int fnord () { return 42; } 12252int main () 12253{ 12254 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12255 int status = $lt_dlunknown; 12256 12257 if (self) 12258 { 12259 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12260 else 12261 { 12262 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12263 else puts (dlerror ()); 12264 } 12265 /* dlclose (self); */ 12266 } 12267 else 12268 puts (dlerror ()); 12269 12270 return status; 12271} 12272_LT_EOF 12273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12274 (eval $ac_link) 2>&5 12275 ac_status=$? 12276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12277 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12278 (./conftest; exit; ) >&5 2>/dev/null 12279 lt_status=$? 12280 case x$lt_status in 12281 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12282 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12283 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12284 esac 12285 else : 12286 # compilation failed 12287 lt_cv_dlopen_self=no 12288 fi 12289fi 12290rm -fr conftest* 12291 12292 12293fi 12294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12295$as_echo "$lt_cv_dlopen_self" >&6; } 12296 12297 if test yes = "$lt_cv_dlopen_self"; then 12298 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12300$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12301if ${lt_cv_dlopen_self_static+:} false; then : 12302 $as_echo_n "(cached) " >&6 12303else 12304 if test yes = "$cross_compiling"; then : 12305 lt_cv_dlopen_self_static=cross 12306else 12307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12308 lt_status=$lt_dlunknown 12309 cat > conftest.$ac_ext <<_LT_EOF 12310#line $LINENO "configure" 12311#include "confdefs.h" 12312 12313#if HAVE_DLFCN_H 12314#include <dlfcn.h> 12315#endif 12316 12317#include <stdio.h> 12318 12319#ifdef RTLD_GLOBAL 12320# define LT_DLGLOBAL RTLD_GLOBAL 12321#else 12322# ifdef DL_GLOBAL 12323# define LT_DLGLOBAL DL_GLOBAL 12324# else 12325# define LT_DLGLOBAL 0 12326# endif 12327#endif 12328 12329/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12330 find out it does not work in some platform. */ 12331#ifndef LT_DLLAZY_OR_NOW 12332# ifdef RTLD_LAZY 12333# define LT_DLLAZY_OR_NOW RTLD_LAZY 12334# else 12335# ifdef DL_LAZY 12336# define LT_DLLAZY_OR_NOW DL_LAZY 12337# else 12338# ifdef RTLD_NOW 12339# define LT_DLLAZY_OR_NOW RTLD_NOW 12340# else 12341# ifdef DL_NOW 12342# define LT_DLLAZY_OR_NOW DL_NOW 12343# else 12344# define LT_DLLAZY_OR_NOW 0 12345# endif 12346# endif 12347# endif 12348# endif 12349#endif 12350 12351/* When -fvisibility=hidden is used, assume the code has been annotated 12352 correspondingly for the symbols needed. */ 12353#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12354int fnord () __attribute__((visibility("default"))); 12355#endif 12356 12357int fnord () { return 42; } 12358int main () 12359{ 12360 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12361 int status = $lt_dlunknown; 12362 12363 if (self) 12364 { 12365 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12366 else 12367 { 12368 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12369 else puts (dlerror ()); 12370 } 12371 /* dlclose (self); */ 12372 } 12373 else 12374 puts (dlerror ()); 12375 12376 return status; 12377} 12378_LT_EOF 12379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12380 (eval $ac_link) 2>&5 12381 ac_status=$? 12382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12383 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12384 (./conftest; exit; ) >&5 2>/dev/null 12385 lt_status=$? 12386 case x$lt_status in 12387 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12388 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12389 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12390 esac 12391 else : 12392 # compilation failed 12393 lt_cv_dlopen_self_static=no 12394 fi 12395fi 12396rm -fr conftest* 12397 12398 12399fi 12400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12401$as_echo "$lt_cv_dlopen_self_static" >&6; } 12402 fi 12403 12404 CPPFLAGS=$save_CPPFLAGS 12405 LDFLAGS=$save_LDFLAGS 12406 LIBS=$save_LIBS 12407 ;; 12408 esac 12409 12410 case $lt_cv_dlopen_self in 12411 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12412 *) enable_dlopen_self=unknown ;; 12413 esac 12414 12415 case $lt_cv_dlopen_self_static in 12416 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12417 *) enable_dlopen_self_static=unknown ;; 12418 esac 12419fi 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437striplib= 12438old_striplib= 12439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12440$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12441if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12442 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12443 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12445$as_echo "yes" >&6; } 12446else 12447# FIXME - insert some real tests, host_os isn't really good enough 12448 case $host_os in 12449 darwin*) 12450 if test -n "$STRIP"; then 12451 striplib="$STRIP -x" 12452 old_striplib="$STRIP -S" 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12454$as_echo "yes" >&6; } 12455 else 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12457$as_echo "no" >&6; } 12458 fi 12459 ;; 12460 *) 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12462$as_echo "no" >&6; } 12463 ;; 12464 esac 12465fi 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 # Report what library types will actually be built 12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12480$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12482$as_echo "$can_build_shared" >&6; } 12483 12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12485$as_echo_n "checking whether to build shared libraries... " >&6; } 12486 test no = "$can_build_shared" && enable_shared=no 12487 12488 # On AIX, shared libraries and static libraries use the same namespace, and 12489 # are all built from PIC. 12490 case $host_os in 12491 aix3*) 12492 test yes = "$enable_shared" && enable_static=no 12493 if test -n "$RANLIB"; then 12494 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12495 postinstall_cmds='$RANLIB $lib' 12496 fi 12497 ;; 12498 12499 aix[4-9]*) 12500 if test ia64 != "$host_cpu"; then 12501 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12502 yes,aix,yes) ;; # shared object as lib.so file only 12503 yes,svr4,*) ;; # shared object as lib.so archive member only 12504 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12505 esac 12506 fi 12507 ;; 12508 esac 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12510$as_echo "$enable_shared" >&6; } 12511 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12513$as_echo_n "checking whether to build static libraries... " >&6; } 12514 # Make sure either enable_shared or enable_static is yes. 12515 test yes = "$enable_shared" || enable_static=yes 12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12517$as_echo "$enable_static" >&6; } 12518 12519 12520 12521 12522fi 12523ac_ext=c 12524ac_cpp='$CPP $CPPFLAGS' 12525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12527ac_compiler_gnu=$ac_cv_c_compiler_gnu 12528 12529CC=$lt_save_CC 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 ac_config_commands="$ac_config_commands libtool" 12546 12547 12548 12549 12550# Only expand once: 12551 12552 12553 12554ac_ext=c 12555ac_cpp='$CPP $CPPFLAGS' 12556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12558ac_compiler_gnu=$ac_cv_c_compiler_gnu 12559if test -n "$ac_tool_prefix"; then 12560 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12561set dummy ${ac_tool_prefix}gcc; ac_word=$2 12562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12563$as_echo_n "checking for $ac_word... " >&6; } 12564if ${ac_cv_prog_CC+:} false; then : 12565 $as_echo_n "(cached) " >&6 12566else 12567 if test -n "$CC"; then 12568 ac_cv_prog_CC="$CC" # Let the user override the test. 12569else 12570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12571for as_dir in $PATH 12572do 12573 IFS=$as_save_IFS 12574 test -z "$as_dir" && as_dir=. 12575 for ac_exec_ext in '' $ac_executable_extensions; do 12576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12577 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12579 break 2 12580 fi 12581done 12582 done 12583IFS=$as_save_IFS 12584 12585fi 12586fi 12587CC=$ac_cv_prog_CC 12588if test -n "$CC"; then 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12590$as_echo "$CC" >&6; } 12591else 12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12593$as_echo "no" >&6; } 12594fi 12595 12596 12597fi 12598if test -z "$ac_cv_prog_CC"; then 12599 ac_ct_CC=$CC 12600 # Extract the first word of "gcc", so it can be a program name with args. 12601set dummy gcc; ac_word=$2 12602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12603$as_echo_n "checking for $ac_word... " >&6; } 12604if ${ac_cv_prog_ac_ct_CC+:} false; then : 12605 $as_echo_n "(cached) " >&6 12606else 12607 if test -n "$ac_ct_CC"; then 12608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12609else 12610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12611for as_dir in $PATH 12612do 12613 IFS=$as_save_IFS 12614 test -z "$as_dir" && as_dir=. 12615 for ac_exec_ext in '' $ac_executable_extensions; do 12616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12617 ac_cv_prog_ac_ct_CC="gcc" 12618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12619 break 2 12620 fi 12621done 12622 done 12623IFS=$as_save_IFS 12624 12625fi 12626fi 12627ac_ct_CC=$ac_cv_prog_ac_ct_CC 12628if test -n "$ac_ct_CC"; then 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12630$as_echo "$ac_ct_CC" >&6; } 12631else 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12633$as_echo "no" >&6; } 12634fi 12635 12636 if test "x$ac_ct_CC" = x; then 12637 CC="" 12638 else 12639 case $cross_compiling:$ac_tool_warned in 12640yes:) 12641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12643ac_tool_warned=yes ;; 12644esac 12645 CC=$ac_ct_CC 12646 fi 12647else 12648 CC="$ac_cv_prog_CC" 12649fi 12650 12651if test -z "$CC"; then 12652 if test -n "$ac_tool_prefix"; then 12653 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12654set dummy ${ac_tool_prefix}cc; ac_word=$2 12655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12656$as_echo_n "checking for $ac_word... " >&6; } 12657if ${ac_cv_prog_CC+:} false; then : 12658 $as_echo_n "(cached) " >&6 12659else 12660 if test -n "$CC"; then 12661 ac_cv_prog_CC="$CC" # Let the user override the test. 12662else 12663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12664for as_dir in $PATH 12665do 12666 IFS=$as_save_IFS 12667 test -z "$as_dir" && as_dir=. 12668 for ac_exec_ext in '' $ac_executable_extensions; do 12669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12670 ac_cv_prog_CC="${ac_tool_prefix}cc" 12671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12672 break 2 12673 fi 12674done 12675 done 12676IFS=$as_save_IFS 12677 12678fi 12679fi 12680CC=$ac_cv_prog_CC 12681if test -n "$CC"; then 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12683$as_echo "$CC" >&6; } 12684else 12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12686$as_echo "no" >&6; } 12687fi 12688 12689 12690 fi 12691fi 12692if test -z "$CC"; then 12693 # Extract the first word of "cc", so it can be a program name with args. 12694set dummy cc; ac_word=$2 12695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12696$as_echo_n "checking for $ac_word... " >&6; } 12697if ${ac_cv_prog_CC+:} false; then : 12698 $as_echo_n "(cached) " >&6 12699else 12700 if test -n "$CC"; then 12701 ac_cv_prog_CC="$CC" # Let the user override the test. 12702else 12703 ac_prog_rejected=no 12704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12705for as_dir in $PATH 12706do 12707 IFS=$as_save_IFS 12708 test -z "$as_dir" && as_dir=. 12709 for ac_exec_ext in '' $ac_executable_extensions; do 12710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12711 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12712 ac_prog_rejected=yes 12713 continue 12714 fi 12715 ac_cv_prog_CC="cc" 12716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12717 break 2 12718 fi 12719done 12720 done 12721IFS=$as_save_IFS 12722 12723if test $ac_prog_rejected = yes; then 12724 # We found a bogon in the path, so make sure we never use it. 12725 set dummy $ac_cv_prog_CC 12726 shift 12727 if test $# != 0; then 12728 # We chose a different compiler from the bogus one. 12729 # However, it has the same basename, so the bogon will be chosen 12730 # first if we set CC to just the basename; use the full file name. 12731 shift 12732 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12733 fi 12734fi 12735fi 12736fi 12737CC=$ac_cv_prog_CC 12738if test -n "$CC"; then 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12740$as_echo "$CC" >&6; } 12741else 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12743$as_echo "no" >&6; } 12744fi 12745 12746 12747fi 12748if test -z "$CC"; then 12749 if test -n "$ac_tool_prefix"; then 12750 for ac_prog in cl.exe 12751 do 12752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12753set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12755$as_echo_n "checking for $ac_word... " >&6; } 12756if ${ac_cv_prog_CC+:} false; then : 12757 $as_echo_n "(cached) " >&6 12758else 12759 if test -n "$CC"; then 12760 ac_cv_prog_CC="$CC" # Let the user override the test. 12761else 12762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12763for as_dir in $PATH 12764do 12765 IFS=$as_save_IFS 12766 test -z "$as_dir" && as_dir=. 12767 for ac_exec_ext in '' $ac_executable_extensions; do 12768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12769 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12771 break 2 12772 fi 12773done 12774 done 12775IFS=$as_save_IFS 12776 12777fi 12778fi 12779CC=$ac_cv_prog_CC 12780if test -n "$CC"; then 12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12782$as_echo "$CC" >&6; } 12783else 12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12785$as_echo "no" >&6; } 12786fi 12787 12788 12789 test -n "$CC" && break 12790 done 12791fi 12792if test -z "$CC"; then 12793 ac_ct_CC=$CC 12794 for ac_prog in cl.exe 12795do 12796 # Extract the first word of "$ac_prog", so it can be a program name with args. 12797set dummy $ac_prog; ac_word=$2 12798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12799$as_echo_n "checking for $ac_word... " >&6; } 12800if ${ac_cv_prog_ac_ct_CC+:} false; then : 12801 $as_echo_n "(cached) " >&6 12802else 12803 if test -n "$ac_ct_CC"; then 12804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12805else 12806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12807for as_dir in $PATH 12808do 12809 IFS=$as_save_IFS 12810 test -z "$as_dir" && as_dir=. 12811 for ac_exec_ext in '' $ac_executable_extensions; do 12812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12813 ac_cv_prog_ac_ct_CC="$ac_prog" 12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12815 break 2 12816 fi 12817done 12818 done 12819IFS=$as_save_IFS 12820 12821fi 12822fi 12823ac_ct_CC=$ac_cv_prog_ac_ct_CC 12824if test -n "$ac_ct_CC"; then 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12826$as_echo "$ac_ct_CC" >&6; } 12827else 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12829$as_echo "no" >&6; } 12830fi 12831 12832 12833 test -n "$ac_ct_CC" && break 12834done 12835 12836 if test "x$ac_ct_CC" = x; then 12837 CC="" 12838 else 12839 case $cross_compiling:$ac_tool_warned in 12840yes:) 12841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12843ac_tool_warned=yes ;; 12844esac 12845 CC=$ac_ct_CC 12846 fi 12847fi 12848 12849fi 12850 12851 12852test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12854as_fn_error $? "no acceptable C compiler found in \$PATH 12855See \`config.log' for more details" "$LINENO" 5; } 12856 12857# Provide some information about the compiler. 12858$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12859set X $ac_compile 12860ac_compiler=$2 12861for ac_option in --version -v -V -qversion; do 12862 { { ac_try="$ac_compiler $ac_option >&5" 12863case "(($ac_try" in 12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12865 *) ac_try_echo=$ac_try;; 12866esac 12867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12868$as_echo "$ac_try_echo"; } >&5 12869 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12870 ac_status=$? 12871 if test -s conftest.err; then 12872 sed '10a\ 12873... rest of stderr output deleted ... 12874 10q' conftest.err >conftest.er1 12875 cat conftest.er1 >&5 12876 fi 12877 rm -f conftest.er1 conftest.err 12878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12879 test $ac_status = 0; } 12880done 12881 12882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12883$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12884if ${ac_cv_c_compiler_gnu+:} false; then : 12885 $as_echo_n "(cached) " >&6 12886else 12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12888/* end confdefs.h. */ 12889 12890int 12891main () 12892{ 12893#ifndef __GNUC__ 12894 choke me 12895#endif 12896 12897 ; 12898 return 0; 12899} 12900_ACEOF 12901if ac_fn_c_try_compile "$LINENO"; then : 12902 ac_compiler_gnu=yes 12903else 12904 ac_compiler_gnu=no 12905fi 12906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12907ac_cv_c_compiler_gnu=$ac_compiler_gnu 12908 12909fi 12910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12911$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12912if test $ac_compiler_gnu = yes; then 12913 GCC=yes 12914else 12915 GCC= 12916fi 12917ac_test_CFLAGS=${CFLAGS+set} 12918ac_save_CFLAGS=$CFLAGS 12919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12920$as_echo_n "checking whether $CC accepts -g... " >&6; } 12921if ${ac_cv_prog_cc_g+:} false; then : 12922 $as_echo_n "(cached) " >&6 12923else 12924 ac_save_c_werror_flag=$ac_c_werror_flag 12925 ac_c_werror_flag=yes 12926 ac_cv_prog_cc_g=no 12927 CFLAGS="-g" 12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12929/* end confdefs.h. */ 12930 12931int 12932main () 12933{ 12934 12935 ; 12936 return 0; 12937} 12938_ACEOF 12939if ac_fn_c_try_compile "$LINENO"; then : 12940 ac_cv_prog_cc_g=yes 12941else 12942 CFLAGS="" 12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12944/* end confdefs.h. */ 12945 12946int 12947main () 12948{ 12949 12950 ; 12951 return 0; 12952} 12953_ACEOF 12954if ac_fn_c_try_compile "$LINENO"; then : 12955 12956else 12957 ac_c_werror_flag=$ac_save_c_werror_flag 12958 CFLAGS="-g" 12959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12960/* end confdefs.h. */ 12961 12962int 12963main () 12964{ 12965 12966 ; 12967 return 0; 12968} 12969_ACEOF 12970if ac_fn_c_try_compile "$LINENO"; then : 12971 ac_cv_prog_cc_g=yes 12972fi 12973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12974fi 12975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12976fi 12977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12978 ac_c_werror_flag=$ac_save_c_werror_flag 12979fi 12980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12981$as_echo "$ac_cv_prog_cc_g" >&6; } 12982if test "$ac_test_CFLAGS" = set; then 12983 CFLAGS=$ac_save_CFLAGS 12984elif test $ac_cv_prog_cc_g = yes; then 12985 if test "$GCC" = yes; then 12986 CFLAGS="-g -O2" 12987 else 12988 CFLAGS="-g" 12989 fi 12990else 12991 if test "$GCC" = yes; then 12992 CFLAGS="-O2" 12993 else 12994 CFLAGS= 12995 fi 12996fi 12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12998$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12999if ${ac_cv_prog_cc_c89+:} false; then : 13000 $as_echo_n "(cached) " >&6 13001else 13002 ac_cv_prog_cc_c89=no 13003ac_save_CC=$CC 13004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13005/* end confdefs.h. */ 13006#include <stdarg.h> 13007#include <stdio.h> 13008struct stat; 13009/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 13010struct buf { int x; }; 13011FILE * (*rcsopen) (struct buf *, struct stat *, int); 13012static char *e (p, i) 13013 char **p; 13014 int i; 13015{ 13016 return p[i]; 13017} 13018static char *f (char * (*g) (char **, int), char **p, ...) 13019{ 13020 char *s; 13021 va_list v; 13022 va_start (v,p); 13023 s = g (p, va_arg (v,int)); 13024 va_end (v); 13025 return s; 13026} 13027 13028/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 13029 function prototypes and stuff, but not '\xHH' hex character constants. 13030 These don't provoke an error unfortunately, instead are silently treated 13031 as 'x'. The following induces an error, until -std is added to get 13032 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 13033 array size at least. It's necessary to write '\x00'==0 to get something 13034 that's true only with -std. */ 13035int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 13036 13037/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 13038 inside strings and character constants. */ 13039#define FOO(x) 'x' 13040int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 13041 13042int test (int i, double x); 13043struct s1 {int (*f) (int a);}; 13044struct s2 {int (*f) (double a);}; 13045int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 13046int argc; 13047char **argv; 13048int 13049main () 13050{ 13051return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 13052 ; 13053 return 0; 13054} 13055_ACEOF 13056for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 13057 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13058do 13059 CC="$ac_save_CC $ac_arg" 13060 if ac_fn_c_try_compile "$LINENO"; then : 13061 ac_cv_prog_cc_c89=$ac_arg 13062fi 13063rm -f core conftest.err conftest.$ac_objext 13064 test "x$ac_cv_prog_cc_c89" != "xno" && break 13065done 13066rm -f conftest.$ac_ext 13067CC=$ac_save_CC 13068 13069fi 13070# AC_CACHE_VAL 13071case "x$ac_cv_prog_cc_c89" in 13072 x) 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13074$as_echo "none needed" >&6; } ;; 13075 xno) 13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13077$as_echo "unsupported" >&6; } ;; 13078 *) 13079 CC="$CC $ac_cv_prog_cc_c89" 13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13081$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 13082esac 13083if test "x$ac_cv_prog_cc_c89" != xno; then : 13084 13085fi 13086 13087ac_ext=c 13088ac_cpp='$CPP $CPPFLAGS' 13089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13091ac_compiler_gnu=$ac_cv_c_compiler_gnu 13092 13093ac_ext=c 13094ac_cpp='$CPP $CPPFLAGS' 13095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13097ac_compiler_gnu=$ac_cv_c_compiler_gnu 13098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13099$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 13100if ${am_cv_prog_cc_c_o+:} false; then : 13101 $as_echo_n "(cached) " >&6 13102else 13103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13104/* end confdefs.h. */ 13105 13106int 13107main () 13108{ 13109 13110 ; 13111 return 0; 13112} 13113_ACEOF 13114 # Make sure it works both with $CC and with simple cc. 13115 # Following AC_PROG_CC_C_O, we do the test twice because some 13116 # compilers refuse to overwrite an existing .o file with -o, 13117 # though they will create one. 13118 am_cv_prog_cc_c_o=yes 13119 for am_i in 1 2; do 13120 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13121 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13122 ac_status=$? 13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13124 (exit $ac_status); } \ 13125 && test -f conftest2.$ac_objext; then 13126 : OK 13127 else 13128 am_cv_prog_cc_c_o=no 13129 break 13130 fi 13131 done 13132 rm -f core conftest* 13133 unset am_i 13134fi 13135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13136$as_echo "$am_cv_prog_cc_c_o" >&6; } 13137if test "$am_cv_prog_cc_c_o" != yes; then 13138 # Losing compiler, so override with the script. 13139 # FIXME: It is wrong to rewrite CC. 13140 # But if we don't then we get into trouble of one sort or another. 13141 # A longer-term fix would be to have automake use am__CC in this case, 13142 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13143 CC="$am_aux_dir/compile $CC" 13144fi 13145ac_ext=c 13146ac_cpp='$CPP $CPPFLAGS' 13147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13149ac_compiler_gnu=$ac_cv_c_compiler_gnu 13150 13151 13152depcc="$CC" am_compiler_list= 13153 13154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13155$as_echo_n "checking dependency style of $depcc... " >&6; } 13156if ${am_cv_CC_dependencies_compiler_type+:} false; then : 13157 $as_echo_n "(cached) " >&6 13158else 13159 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13160 # We make a subdir and do the tests there. Otherwise we can end up 13161 # making bogus files that we don't know about and never remove. For 13162 # instance it was reported that on HP-UX the gcc test will end up 13163 # making a dummy file named 'D' -- because '-MD' means "put the output 13164 # in D". 13165 rm -rf conftest.dir 13166 mkdir conftest.dir 13167 # Copy depcomp to subdir because otherwise we won't find it if we're 13168 # using a relative directory. 13169 cp "$am_depcomp" conftest.dir 13170 cd conftest.dir 13171 # We will build objects and dependencies in a subdirectory because 13172 # it helps to detect inapplicable dependency modes. For instance 13173 # both Tru64's cc and ICC support -MD to output dependencies as a 13174 # side effect of compilation, but ICC will put the dependencies in 13175 # the current directory while Tru64 will put them in the object 13176 # directory. 13177 mkdir sub 13178 13179 am_cv_CC_dependencies_compiler_type=none 13180 if test "$am_compiler_list" = ""; then 13181 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13182 fi 13183 am__universal=false 13184 case " $depcc " in #( 13185 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13186 esac 13187 13188 for depmode in $am_compiler_list; do 13189 # Setup a source with many dependencies, because some compilers 13190 # like to wrap large dependency lists on column 80 (with \), and 13191 # we should not choose a depcomp mode which is confused by this. 13192 # 13193 # We need to recreate these files for each test, as the compiler may 13194 # overwrite some of them when testing with obscure command lines. 13195 # This happens at least with the AIX C compiler. 13196 : > sub/conftest.c 13197 for i in 1 2 3 4 5 6; do 13198 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13199 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13200 # Solaris 10 /bin/sh. 13201 echo '/* dummy */' > sub/conftst$i.h 13202 done 13203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13204 13205 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13206 # mode. It turns out that the SunPro C++ compiler does not properly 13207 # handle '-M -o', and we need to detect this. Also, some Intel 13208 # versions had trouble with output in subdirs. 13209 am__obj=sub/conftest.${OBJEXT-o} 13210 am__minus_obj="-o $am__obj" 13211 case $depmode in 13212 gcc) 13213 # This depmode causes a compiler race in universal mode. 13214 test "$am__universal" = false || continue 13215 ;; 13216 nosideeffect) 13217 # After this tag, mechanisms are not by side-effect, so they'll 13218 # only be used when explicitly requested. 13219 if test "x$enable_dependency_tracking" = xyes; then 13220 continue 13221 else 13222 break 13223 fi 13224 ;; 13225 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13226 # This compiler won't grok '-c -o', but also, the minuso test has 13227 # not run yet. These depmodes are late enough in the game, and 13228 # so weak that their functioning should not be impacted. 13229 am__obj=conftest.${OBJEXT-o} 13230 am__minus_obj= 13231 ;; 13232 none) break ;; 13233 esac 13234 if depmode=$depmode \ 13235 source=sub/conftest.c object=$am__obj \ 13236 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13237 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13238 >/dev/null 2>conftest.err && 13239 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13240 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13241 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13242 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13243 # icc doesn't choke on unknown options, it will just issue warnings 13244 # or remarks (even with -Werror). So we grep stderr for any message 13245 # that says an option was ignored or not supported. 13246 # When given -MP, icc 7.0 and 7.1 complain thusly: 13247 # icc: Command line warning: ignoring option '-M'; no argument required 13248 # The diagnosis changed in icc 8.0: 13249 # icc: Command line remark: option '-MP' not supported 13250 if (grep 'ignoring option' conftest.err || 13251 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13252 am_cv_CC_dependencies_compiler_type=$depmode 13253 break 13254 fi 13255 fi 13256 done 13257 13258 cd .. 13259 rm -rf conftest.dir 13260else 13261 am_cv_CC_dependencies_compiler_type=none 13262fi 13263 13264fi 13265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13266$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13267CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13268 13269 if 13270 test "x$enable_dependency_tracking" != xno \ 13271 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13272 am__fastdepCC_TRUE= 13273 am__fastdepCC_FALSE='#' 13274else 13275 am__fastdepCC_TRUE='#' 13276 am__fastdepCC_FALSE= 13277fi 13278 13279 13280 case $ac_cv_prog_cc_stdc in #( 13281 no) : 13282 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 13283 *) : 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 13285$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 13286if ${ac_cv_prog_cc_c99+:} false; then : 13287 $as_echo_n "(cached) " >&6 13288else 13289 ac_cv_prog_cc_c99=no 13290ac_save_CC=$CC 13291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13292/* end confdefs.h. */ 13293#include <stdarg.h> 13294#include <stdbool.h> 13295#include <stdlib.h> 13296#include <wchar.h> 13297#include <stdio.h> 13298 13299// Check varargs macros. These examples are taken from C99 6.10.3.5. 13300#define debug(...) fprintf (stderr, __VA_ARGS__) 13301#define showlist(...) puts (#__VA_ARGS__) 13302#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 13303static void 13304test_varargs_macros (void) 13305{ 13306 int x = 1234; 13307 int y = 5678; 13308 debug ("Flag"); 13309 debug ("X = %d\n", x); 13310 showlist (The first, second, and third items.); 13311 report (x>y, "x is %d but y is %d", x, y); 13312} 13313 13314// Check long long types. 13315#define BIG64 18446744073709551615ull 13316#define BIG32 4294967295ul 13317#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 13318#if !BIG_OK 13319 your preprocessor is broken; 13320#endif 13321#if BIG_OK 13322#else 13323 your preprocessor is broken; 13324#endif 13325static long long int bignum = -9223372036854775807LL; 13326static unsigned long long int ubignum = BIG64; 13327 13328struct incomplete_array 13329{ 13330 int datasize; 13331 double data[]; 13332}; 13333 13334struct named_init { 13335 int number; 13336 const wchar_t *name; 13337 double average; 13338}; 13339 13340typedef const char *ccp; 13341 13342static inline int 13343test_restrict (ccp restrict text) 13344{ 13345 // See if C++-style comments work. 13346 // Iterate through items via the restricted pointer. 13347 // Also check for declarations in for loops. 13348 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 13349 continue; 13350 return 0; 13351} 13352 13353// Check varargs and va_copy. 13354static void 13355test_varargs (const char *format, ...) 13356{ 13357 va_list args; 13358 va_start (args, format); 13359 va_list args_copy; 13360 va_copy (args_copy, args); 13361 13362 const char *str; 13363 int number; 13364 float fnumber; 13365 13366 while (*format) 13367 { 13368 switch (*format++) 13369 { 13370 case 's': // string 13371 str = va_arg (args_copy, const char *); 13372 break; 13373 case 'd': // int 13374 number = va_arg (args_copy, int); 13375 break; 13376 case 'f': // float 13377 fnumber = va_arg (args_copy, double); 13378 break; 13379 default: 13380 break; 13381 } 13382 } 13383 va_end (args_copy); 13384 va_end (args); 13385} 13386 13387int 13388main () 13389{ 13390 13391 // Check bool. 13392 _Bool success = false; 13393 13394 // Check restrict. 13395 if (test_restrict ("String literal") == 0) 13396 success = true; 13397 char *restrict newvar = "Another string"; 13398 13399 // Check varargs. 13400 test_varargs ("s, d' f .", "string", 65, 34.234); 13401 test_varargs_macros (); 13402 13403 // Check flexible array members. 13404 struct incomplete_array *ia = 13405 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 13406 ia->datasize = 10; 13407 for (int i = 0; i < ia->datasize; ++i) 13408 ia->data[i] = i * 1.234; 13409 13410 // Check named initializers. 13411 struct named_init ni = { 13412 .number = 34, 13413 .name = L"Test wide string", 13414 .average = 543.34343, 13415 }; 13416 13417 ni.number = 58; 13418 13419 int dynamic_array[ni.number]; 13420 dynamic_array[ni.number - 1] = 543; 13421 13422 // work around unused variable warnings 13423 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 13424 || dynamic_array[ni.number - 1] != 543); 13425 13426 ; 13427 return 0; 13428} 13429_ACEOF 13430for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 13431do 13432 CC="$ac_save_CC $ac_arg" 13433 if ac_fn_c_try_compile "$LINENO"; then : 13434 ac_cv_prog_cc_c99=$ac_arg 13435fi 13436rm -f core conftest.err conftest.$ac_objext 13437 test "x$ac_cv_prog_cc_c99" != "xno" && break 13438done 13439rm -f conftest.$ac_ext 13440CC=$ac_save_CC 13441 13442fi 13443# AC_CACHE_VAL 13444case "x$ac_cv_prog_cc_c99" in 13445 x) 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13447$as_echo "none needed" >&6; } ;; 13448 xno) 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13450$as_echo "unsupported" >&6; } ;; 13451 *) 13452 CC="$CC $ac_cv_prog_cc_c99" 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 13454$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 13455esac 13456if test "x$ac_cv_prog_cc_c99" != xno; then : 13457 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 13458else 13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 13460$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 13461if ${ac_cv_prog_cc_c89+:} false; then : 13462 $as_echo_n "(cached) " >&6 13463else 13464 ac_cv_prog_cc_c89=no 13465ac_save_CC=$CC 13466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13467/* end confdefs.h. */ 13468#include <stdarg.h> 13469#include <stdio.h> 13470struct stat; 13471/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 13472struct buf { int x; }; 13473FILE * (*rcsopen) (struct buf *, struct stat *, int); 13474static char *e (p, i) 13475 char **p; 13476 int i; 13477{ 13478 return p[i]; 13479} 13480static char *f (char * (*g) (char **, int), char **p, ...) 13481{ 13482 char *s; 13483 va_list v; 13484 va_start (v,p); 13485 s = g (p, va_arg (v,int)); 13486 va_end (v); 13487 return s; 13488} 13489 13490/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 13491 function prototypes and stuff, but not '\xHH' hex character constants. 13492 These don't provoke an error unfortunately, instead are silently treated 13493 as 'x'. The following induces an error, until -std is added to get 13494 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 13495 array size at least. It's necessary to write '\x00'==0 to get something 13496 that's true only with -std. */ 13497int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 13498 13499/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 13500 inside strings and character constants. */ 13501#define FOO(x) 'x' 13502int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 13503 13504int test (int i, double x); 13505struct s1 {int (*f) (int a);}; 13506struct s2 {int (*f) (double a);}; 13507int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 13508int argc; 13509char **argv; 13510int 13511main () 13512{ 13513return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 13514 ; 13515 return 0; 13516} 13517_ACEOF 13518for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 13519 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13520do 13521 CC="$ac_save_CC $ac_arg" 13522 if ac_fn_c_try_compile "$LINENO"; then : 13523 ac_cv_prog_cc_c89=$ac_arg 13524fi 13525rm -f core conftest.err conftest.$ac_objext 13526 test "x$ac_cv_prog_cc_c89" != "xno" && break 13527done 13528rm -f conftest.$ac_ext 13529CC=$ac_save_CC 13530 13531fi 13532# AC_CACHE_VAL 13533case "x$ac_cv_prog_cc_c89" in 13534 x) 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13536$as_echo "none needed" >&6; } ;; 13537 xno) 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13539$as_echo "unsupported" >&6; } ;; 13540 *) 13541 CC="$CC $ac_cv_prog_cc_c89" 13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13543$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 13544esac 13545if test "x$ac_cv_prog_cc_c89" != xno; then : 13546 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 13547else 13548 ac_cv_prog_cc_stdc=no 13549fi 13550 13551fi 13552 ;; 13553esac 13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 13555$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 13556 if ${ac_cv_prog_cc_stdc+:} false; then : 13557 $as_echo_n "(cached) " >&6 13558fi 13559 13560 case $ac_cv_prog_cc_stdc in #( 13561 no) : 13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13563$as_echo "unsupported" >&6; } ;; #( 13564 '') : 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13566$as_echo "none needed" >&6; } ;; #( 13567 *) : 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 13569$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 13570esac 13571 13572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 13573$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 13574if ${ac_cv_c_restrict+:} false; then : 13575 $as_echo_n "(cached) " >&6 13576else 13577 ac_cv_c_restrict=no 13578 # The order here caters to the fact that C++ does not require restrict. 13579 for ac_kw in __restrict __restrict__ _Restrict restrict; do 13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13581/* end confdefs.h. */ 13582typedef int * int_ptr; 13583 int foo (int_ptr $ac_kw ip) { 13584 return ip[0]; 13585 } 13586int 13587main () 13588{ 13589int s[1]; 13590 int * $ac_kw t = s; 13591 t[0] = 0; 13592 return foo(t) 13593 ; 13594 return 0; 13595} 13596_ACEOF 13597if ac_fn_c_try_compile "$LINENO"; then : 13598 ac_cv_c_restrict=$ac_kw 13599fi 13600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13601 test "$ac_cv_c_restrict" != no && break 13602 done 13603 13604fi 13605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 13606$as_echo "$ac_cv_c_restrict" >&6; } 13607 13608 case $ac_cv_c_restrict in 13609 restrict) ;; 13610 no) $as_echo "#define restrict /**/" >>confdefs.h 13611 ;; 13612 *) cat >>confdefs.h <<_ACEOF 13613#define restrict $ac_cv_c_restrict 13614_ACEOF 13615 ;; 13616 esac 13617 13618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13619$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13620if ${ac_cv_c_const+:} false; then : 13621 $as_echo_n "(cached) " >&6 13622else 13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13624/* end confdefs.h. */ 13625 13626int 13627main () 13628{ 13629 13630#ifndef __cplusplus 13631 /* Ultrix mips cc rejects this sort of thing. */ 13632 typedef int charset[2]; 13633 const charset cs = { 0, 0 }; 13634 /* SunOS 4.1.1 cc rejects this. */ 13635 char const *const *pcpcc; 13636 char **ppc; 13637 /* NEC SVR4.0.2 mips cc rejects this. */ 13638 struct point {int x, y;}; 13639 static struct point const zero = {0,0}; 13640 /* AIX XL C 1.02.0.0 rejects this. 13641 It does not let you subtract one const X* pointer from another in 13642 an arm of an if-expression whose if-part is not a constant 13643 expression */ 13644 const char *g = "string"; 13645 pcpcc = &g + (g ? g-g : 0); 13646 /* HPUX 7.0 cc rejects these. */ 13647 ++pcpcc; 13648 ppc = (char**) pcpcc; 13649 pcpcc = (char const *const *) ppc; 13650 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13651 char tx; 13652 char *t = &tx; 13653 char const *s = 0 ? (char *) 0 : (char const *) 0; 13654 13655 *t++ = 0; 13656 if (s) return 0; 13657 } 13658 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13659 int x[] = {25, 17}; 13660 const int *foo = &x[0]; 13661 ++foo; 13662 } 13663 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13664 typedef const int *iptr; 13665 iptr p = 0; 13666 ++p; 13667 } 13668 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13669 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13670 struct s { int j; const int *ap[3]; } bx; 13671 struct s *b = &bx; b->j = 5; 13672 } 13673 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13674 const int foo = 10; 13675 if (!foo) return 0; 13676 } 13677 return !cs[0] && !zero.x; 13678#endif 13679 13680 ; 13681 return 0; 13682} 13683_ACEOF 13684if ac_fn_c_try_compile "$LINENO"; then : 13685 ac_cv_c_const=yes 13686else 13687 ac_cv_c_const=no 13688fi 13689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13690fi 13691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13692$as_echo "$ac_cv_c_const" >&6; } 13693if test $ac_cv_c_const = no; then 13694 13695$as_echo "#define const /**/" >>confdefs.h 13696 13697fi 13698 13699 13700 13701# unconditionally pull-in librt with old glibc versions 13702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 13703$as_echo_n "checking for library containing clock_gettime... " >&6; } 13704if ${ac_cv_search_clock_gettime+:} false; then : 13705 $as_echo_n "(cached) " >&6 13706else 13707 ac_func_search_save_LIBS=$LIBS 13708cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13709/* end confdefs.h. */ 13710 13711/* Override any GCC internal prototype to avoid an error. 13712 Use char because int might match the return type of a GCC 13713 builtin and then its argument prototype would still apply. */ 13714#ifdef __cplusplus 13715extern "C" 13716#endif 13717char clock_gettime (); 13718int 13719main () 13720{ 13721return clock_gettime (); 13722 ; 13723 return 0; 13724} 13725_ACEOF 13726for ac_lib in '' rt; do 13727 if test -z "$ac_lib"; then 13728 ac_res="none required" 13729 else 13730 ac_res=-l$ac_lib 13731 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13732 fi 13733 if ac_fn_c_try_link "$LINENO"; then : 13734 ac_cv_search_clock_gettime=$ac_res 13735fi 13736rm -f core conftest.err conftest.$ac_objext \ 13737 conftest$ac_exeext 13738 if ${ac_cv_search_clock_gettime+:} false; then : 13739 break 13740fi 13741done 13742if ${ac_cv_search_clock_gettime+:} false; then : 13743 13744else 13745 ac_cv_search_clock_gettime=no 13746fi 13747rm conftest.$ac_ext 13748LIBS=$ac_func_search_save_LIBS 13749fi 13750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 13751$as_echo "$ac_cv_search_clock_gettime" >&6; } 13752ac_res=$ac_cv_search_clock_gettime 13753if test "$ac_res" != no; then : 13754 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13755 13756fi 13757 13758test_LIBRT="$LIBS" 13759 13760LIBS="" 13761 13762 13763 13764 13765 13766 13767 13768 13769if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13770 if test -n "$ac_tool_prefix"; then 13771 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13772set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13774$as_echo_n "checking for $ac_word... " >&6; } 13775if ${ac_cv_path_PKG_CONFIG+:} false; then : 13776 $as_echo_n "(cached) " >&6 13777else 13778 case $PKG_CONFIG in 13779 [\\/]* | ?:[\\/]*) 13780 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13781 ;; 13782 *) 13783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13784for as_dir in $PATH 13785do 13786 IFS=$as_save_IFS 13787 test -z "$as_dir" && as_dir=. 13788 for ac_exec_ext in '' $ac_executable_extensions; do 13789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13790 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13792 break 2 13793 fi 13794done 13795 done 13796IFS=$as_save_IFS 13797 13798 ;; 13799esac 13800fi 13801PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13802if test -n "$PKG_CONFIG"; then 13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13804$as_echo "$PKG_CONFIG" >&6; } 13805else 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13807$as_echo "no" >&6; } 13808fi 13809 13810 13811fi 13812if test -z "$ac_cv_path_PKG_CONFIG"; then 13813 ac_pt_PKG_CONFIG=$PKG_CONFIG 13814 # Extract the first word of "pkg-config", so it can be a program name with args. 13815set dummy pkg-config; ac_word=$2 13816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13817$as_echo_n "checking for $ac_word... " >&6; } 13818if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13819 $as_echo_n "(cached) " >&6 13820else 13821 case $ac_pt_PKG_CONFIG in 13822 [\\/]* | ?:[\\/]*) 13823 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13824 ;; 13825 *) 13826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13827for as_dir in $PATH 13828do 13829 IFS=$as_save_IFS 13830 test -z "$as_dir" && as_dir=. 13831 for ac_exec_ext in '' $ac_executable_extensions; do 13832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13833 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13835 break 2 13836 fi 13837done 13838 done 13839IFS=$as_save_IFS 13840 13841 ;; 13842esac 13843fi 13844ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13845if test -n "$ac_pt_PKG_CONFIG"; then 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13847$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13848else 13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13850$as_echo "no" >&6; } 13851fi 13852 13853 if test "x$ac_pt_PKG_CONFIG" = x; then 13854 PKG_CONFIG="" 13855 else 13856 case $cross_compiling:$ac_tool_warned in 13857yes:) 13858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13860ac_tool_warned=yes ;; 13861esac 13862 PKG_CONFIG=$ac_pt_PKG_CONFIG 13863 fi 13864else 13865 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13866fi 13867 13868fi 13869if test -n "$PKG_CONFIG"; then 13870 _pkg_min_version=0.9.0 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13872$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13873 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13875$as_echo "yes" >&6; } 13876 else 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13878$as_echo "no" >&6; } 13879 PKG_CONFIG="" 13880 fi 13881fi 13882if test -n "$PKG_CONFIG" && \ 13883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5 13884 ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5 13885 ac_status=$? 13886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13887 test $ac_status = 0; }; then 13888 13889pkg_failed=no 13890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 13891$as_echo_n "checking for OPENSSL... " >&6; } 13892 13893if test -n "$OPENSSL_CFLAGS"; then 13894 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 13895 elif test -n "$PKG_CONFIG"; then 13896 if test -n "$PKG_CONFIG" && \ 13897 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5 13898 ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5 13899 ac_status=$? 13900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13901 test $ac_status = 0; }; then 13902 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null` 13903 test "x$?" != "x0" && pkg_failed=yes 13904else 13905 pkg_failed=yes 13906fi 13907 else 13908 pkg_failed=untried 13909fi 13910if test -n "$OPENSSL_LIBS"; then 13911 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 13912 elif test -n "$PKG_CONFIG"; then 13913 if test -n "$PKG_CONFIG" && \ 13914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5 13915 ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5 13916 ac_status=$? 13917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13918 test $ac_status = 0; }; then 13919 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null` 13920 test "x$?" != "x0" && pkg_failed=yes 13921else 13922 pkg_failed=yes 13923fi 13924 else 13925 pkg_failed=untried 13926fi 13927 13928 13929 13930if test $pkg_failed = yes; then 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13932$as_echo "no" >&6; } 13933 13934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13935 _pkg_short_errors_supported=yes 13936else 13937 _pkg_short_errors_supported=no 13938fi 13939 if test $_pkg_short_errors_supported = yes; then 13940 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto" 2>&1` 13941 else 13942 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto" 2>&1` 13943 fi 13944 # Put the nasty error message in config.log where it belongs 13945 echo "$OPENSSL_PKG_ERRORS" >&5 13946 13947 as_fn_error $? "Package requirements (libcrypto) were not met: 13948 13949$OPENSSL_PKG_ERRORS 13950 13951Consider adjusting the PKG_CONFIG_PATH environment variable if you 13952installed software in a non-standard prefix. 13953 13954Alternatively, you may set the environment variables OPENSSL_CFLAGS 13955and OPENSSL_LIBS to avoid the need to call pkg-config. 13956See the pkg-config man page for more details." "$LINENO" 5 13957elif test $pkg_failed = untried; then 13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13959$as_echo "no" >&6; } 13960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13962as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13963is in your PATH or set the PKG_CONFIG environment variable to the full 13964path to pkg-config. 13965 13966Alternatively, you may set the environment variables OPENSSL_CFLAGS 13967and OPENSSL_LIBS to avoid the need to call pkg-config. 13968See the pkg-config man page for more details. 13969 13970To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13971See \`config.log' for more details" "$LINENO" 5; } 13972else 13973 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 13974 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13976$as_echo "yes" >&6; } 13977 13978fi 13979else 13980 if test -n "$PKG_CONFIG" && \ 13981 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 13982 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 13983 ac_status=$? 13984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13985 test $ac_status = 0; }; then 13986 13987pkg_failed=no 13988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 13989$as_echo_n "checking for OPENSSL... " >&6; } 13990 13991if test -n "$OPENSSL_CFLAGS"; then 13992 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 13993 elif test -n "$PKG_CONFIG"; then 13994 if test -n "$PKG_CONFIG" && \ 13995 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 13996 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 13997 ac_status=$? 13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13999 test $ac_status = 0; }; then 14000 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 14001 test "x$?" != "x0" && pkg_failed=yes 14002else 14003 pkg_failed=yes 14004fi 14005 else 14006 pkg_failed=untried 14007fi 14008if test -n "$OPENSSL_LIBS"; then 14009 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 14010 elif test -n "$PKG_CONFIG"; then 14011 if test -n "$PKG_CONFIG" && \ 14012 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 14013 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 14014 ac_status=$? 14015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14016 test $ac_status = 0; }; then 14017 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 14018 test "x$?" != "x0" && pkg_failed=yes 14019else 14020 pkg_failed=yes 14021fi 14022 else 14023 pkg_failed=untried 14024fi 14025 14026 14027 14028if test $pkg_failed = yes; then 14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14030$as_echo "no" >&6; } 14031 14032if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14033 _pkg_short_errors_supported=yes 14034else 14035 _pkg_short_errors_supported=no 14036fi 14037 if test $_pkg_short_errors_supported = yes; then 14038 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 14039 else 14040 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 14041 fi 14042 # Put the nasty error message in config.log where it belongs 14043 echo "$OPENSSL_PKG_ERRORS" >&5 14044 14045 as_fn_error $? "Package requirements (openssl) were not met: 14046 14047$OPENSSL_PKG_ERRORS 14048 14049Consider adjusting the PKG_CONFIG_PATH environment variable if you 14050installed software in a non-standard prefix. 14051 14052Alternatively, you may set the environment variables OPENSSL_CFLAGS 14053and OPENSSL_LIBS to avoid the need to call pkg-config. 14054See the pkg-config man page for more details." "$LINENO" 5 14055elif test $pkg_failed = untried; then 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14057$as_echo "no" >&6; } 14058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14060as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14061is in your PATH or set the PKG_CONFIG environment variable to the full 14062path to pkg-config. 14063 14064Alternatively, you may set the environment variables OPENSSL_CFLAGS 14065and OPENSSL_LIBS to avoid the need to call pkg-config. 14066See the pkg-config man page for more details. 14067 14068To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14069See \`config.log' for more details" "$LINENO" 5; } 14070else 14071 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 14072 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14074$as_echo "yes" >&6; } 14075 14076fi 14077else 14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 14079$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } 14080if ${ac_cv_lib_crypto_RSA_free+:} false; then : 14081 $as_echo_n "(cached) " >&6 14082else 14083 ac_check_lib_save_LIBS=$LIBS 14084LIBS="-lcrypto $LIBS" 14085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14086/* end confdefs.h. */ 14087 14088/* Override any GCC internal prototype to avoid an error. 14089 Use char because int might match the return type of a GCC 14090 builtin and then its argument prototype would still apply. */ 14091#ifdef __cplusplus 14092extern "C" 14093#endif 14094char RSA_free (); 14095int 14096main () 14097{ 14098return RSA_free (); 14099 ; 14100 return 0; 14101} 14102_ACEOF 14103if ac_fn_c_try_link "$LINENO"; then : 14104 ac_cv_lib_crypto_RSA_free=yes 14105else 14106 ac_cv_lib_crypto_RSA_free=no 14107fi 14108rm -f core conftest.err conftest.$ac_objext \ 14109 conftest$ac_exeext conftest.$ac_ext 14110LIBS=$ac_check_lib_save_LIBS 14111fi 14112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 14113$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } 14114if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : 14115 cat >>confdefs.h <<_ACEOF 14116#define HAVE_LIBCRYPTO 1 14117_ACEOF 14118 14119 LIBS="-lcrypto $LIBS" 14120 14121else 14122 as_fn_error $? "could not find libcrypto from OpenSSL/LibreSSL. Run './configure --help' in order to find out how to point to the proper location of libcrypto" "$LINENO" 5 14123fi 14124 14125 14126fi 14127 14128fi 14129tmp_CFLAGS="$CFLAGS" 14130tmp_LDFLAGS="$LDFLAGS" 14131CFLAGS+=" $OPENSSL_CFLAGS" 14132LDFLAGS+=" $OPENSSL_LIBS" 14133 14134if test -n "$PKG_CONFIG" && \ 14135 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 14136 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 14137 ac_status=$? 14138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14139 test $ac_status = 0; }; then 14140 14141pkg_failed=no 14142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 14143$as_echo_n "checking for ZLIB... " >&6; } 14144 14145if test -n "$ZLIB_CFLAGS"; then 14146 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 14147 elif test -n "$PKG_CONFIG"; then 14148 if test -n "$PKG_CONFIG" && \ 14149 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 14150 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 14151 ac_status=$? 14152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14153 test $ac_status = 0; }; then 14154 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` 14155 test "x$?" != "x0" && pkg_failed=yes 14156else 14157 pkg_failed=yes 14158fi 14159 else 14160 pkg_failed=untried 14161fi 14162if test -n "$ZLIB_LIBS"; then 14163 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 14164 elif test -n "$PKG_CONFIG"; then 14165 if test -n "$PKG_CONFIG" && \ 14166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 14167 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 14168 ac_status=$? 14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14170 test $ac_status = 0; }; then 14171 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` 14172 test "x$?" != "x0" && pkg_failed=yes 14173else 14174 pkg_failed=yes 14175fi 14176 else 14177 pkg_failed=untried 14178fi 14179 14180 14181 14182if test $pkg_failed = yes; then 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14184$as_echo "no" >&6; } 14185 14186if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14187 _pkg_short_errors_supported=yes 14188else 14189 _pkg_short_errors_supported=no 14190fi 14191 if test $_pkg_short_errors_supported = yes; then 14192 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` 14193 else 14194 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` 14195 fi 14196 # Put the nasty error message in config.log where it belongs 14197 echo "$ZLIB_PKG_ERRORS" >&5 14198 14199 as_fn_error $? "Package requirements (zlib) were not met: 14200 14201$ZLIB_PKG_ERRORS 14202 14203Consider adjusting the PKG_CONFIG_PATH environment variable if you 14204installed software in a non-standard prefix. 14205 14206Alternatively, you may set the environment variables ZLIB_CFLAGS 14207and ZLIB_LIBS to avoid the need to call pkg-config. 14208See the pkg-config man page for more details." "$LINENO" 5 14209elif test $pkg_failed = untried; then 14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14211$as_echo "no" >&6; } 14212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14214as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14215is in your PATH or set the PKG_CONFIG environment variable to the full 14216path to pkg-config. 14217 14218Alternatively, you may set the environment variables ZLIB_CFLAGS 14219and ZLIB_LIBS to avoid the need to call pkg-config. 14220See the pkg-config man page for more details. 14221 14222To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14223See \`config.log' for more details" "$LINENO" 5; } 14224else 14225 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 14226 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14228$as_echo "yes" >&6; } 14229 14230fi 14231else 14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5 14233$as_echo_n "checking for compress2 in -lz... " >&6; } 14234if ${ac_cv_lib_z_compress2+:} false; then : 14235 $as_echo_n "(cached) " >&6 14236else 14237 ac_check_lib_save_LIBS=$LIBS 14238LIBS="-lz $LIBS" 14239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14240/* end confdefs.h. */ 14241 14242/* Override any GCC internal prototype to avoid an error. 14243 Use char because int might match the return type of a GCC 14244 builtin and then its argument prototype would still apply. */ 14245#ifdef __cplusplus 14246extern "C" 14247#endif 14248char compress2 (); 14249int 14250main () 14251{ 14252return compress2 (); 14253 ; 14254 return 0; 14255} 14256_ACEOF 14257if ac_fn_c_try_link "$LINENO"; then : 14258 ac_cv_lib_z_compress2=yes 14259else 14260 ac_cv_lib_z_compress2=no 14261fi 14262rm -f core conftest.err conftest.$ac_objext \ 14263 conftest$ac_exeext conftest.$ac_ext 14264LIBS=$ac_check_lib_save_LIBS 14265fi 14266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5 14267$as_echo "$ac_cv_lib_z_compress2" >&6; } 14268if test "x$ac_cv_lib_z_compress2" = xyes; then : 14269 cat >>confdefs.h <<_ACEOF 14270#define HAVE_LIBZ 1 14271_ACEOF 14272 14273 LIBS="-lz $LIBS" 14274 14275else 14276 as_fn_error $? "could not find libz (zlib). Run './configure --help' in order to find out how to point to the proper location of libz" "$LINENO" 5 14277fi 14278 14279 14280fi 14281 14282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14283$as_echo_n "checking for ANSI C header files... " >&6; } 14284if ${ac_cv_header_stdc+:} false; then : 14285 $as_echo_n "(cached) " >&6 14286else 14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14288/* end confdefs.h. */ 14289#include <stdlib.h> 14290#include <stdarg.h> 14291#include <string.h> 14292#include <float.h> 14293 14294int 14295main () 14296{ 14297 14298 ; 14299 return 0; 14300} 14301_ACEOF 14302if ac_fn_c_try_compile "$LINENO"; then : 14303 ac_cv_header_stdc=yes 14304else 14305 ac_cv_header_stdc=no 14306fi 14307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14308 14309if test $ac_cv_header_stdc = yes; then 14310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14312/* end confdefs.h. */ 14313#include <string.h> 14314 14315_ACEOF 14316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14317 $EGREP "memchr" >/dev/null 2>&1; then : 14318 14319else 14320 ac_cv_header_stdc=no 14321fi 14322rm -f conftest* 14323 14324fi 14325 14326if test $ac_cv_header_stdc = yes; then 14327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14329/* end confdefs.h. */ 14330#include <stdlib.h> 14331 14332_ACEOF 14333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14334 $EGREP "free" >/dev/null 2>&1; then : 14335 14336else 14337 ac_cv_header_stdc=no 14338fi 14339rm -f conftest* 14340 14341fi 14342 14343if test $ac_cv_header_stdc = yes; then 14344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14345 if test "$cross_compiling" = yes; then : 14346 : 14347else 14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14349/* end confdefs.h. */ 14350#include <ctype.h> 14351#include <stdlib.h> 14352#if ((' ' & 0x0FF) == 0x020) 14353# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14354# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14355#else 14356# define ISLOWER(c) \ 14357 (('a' <= (c) && (c) <= 'i') \ 14358 || ('j' <= (c) && (c) <= 'r') \ 14359 || ('s' <= (c) && (c) <= 'z')) 14360# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14361#endif 14362 14363#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14364int 14365main () 14366{ 14367 int i; 14368 for (i = 0; i < 256; i++) 14369 if (XOR (islower (i), ISLOWER (i)) 14370 || toupper (i) != TOUPPER (i)) 14371 return 2; 14372 return 0; 14373} 14374_ACEOF 14375if ac_fn_c_try_run "$LINENO"; then : 14376 14377else 14378 ac_cv_header_stdc=no 14379fi 14380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14381 conftest.$ac_objext conftest.beam conftest.$ac_ext 14382fi 14383 14384fi 14385fi 14386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14387$as_echo "$ac_cv_header_stdc" >&6; } 14388if test $ac_cv_header_stdc = yes; then 14389 14390$as_echo "#define STDC_HEADERS 1" >>confdefs.h 14391 14392fi 14393 14394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 14395$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 14396if ${ac_cv_header_time+:} false; then : 14397 $as_echo_n "(cached) " >&6 14398else 14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14400/* end confdefs.h. */ 14401#include <sys/types.h> 14402#include <sys/time.h> 14403#include <time.h> 14404 14405int 14406main () 14407{ 14408if ((struct tm *) 0) 14409return 0; 14410 ; 14411 return 0; 14412} 14413_ACEOF 14414if ac_fn_c_try_compile "$LINENO"; then : 14415 ac_cv_header_time=yes 14416else 14417 ac_cv_header_time=no 14418fi 14419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14420fi 14421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 14422$as_echo "$ac_cv_header_time" >&6; } 14423if test $ac_cv_header_time = yes; then 14424 14425$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 14426 14427fi 14428 14429for ac_header in inttypes.h stdint.h stdlib.h netinet/in.h netinet/tcp.h netdb.h sys/socket.h sys/ioctl.h sys/filio.h sys/un.h machine/endian.h sys/endian.h endian.h sys/byteorder.h machine/byte_order.h byteswap.h fcntl.h unistd.h errno.h signal.h time.h 14430do : 14431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14432ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14433if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14434 cat >>confdefs.h <<_ACEOF 14435#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14436_ACEOF 14437 14438fi 14439 14440done 14441 14442for ac_header in openssl/opensslv.h openssl/objects.h openssl/rand.h openssl/bio.h openssl/dh.h openssl/rsa.h openssl/hmac.h openssl/pem.h openssl/aes.h 14443do : 14444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14445ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14446if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14447 cat >>confdefs.h <<_ACEOF 14448#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14449_ACEOF 14450 14451else 14452 as_fn_error $? "could not find the OpenSSL/LibreSSL headers. Run './configure --help' in order to find out how to point to the proper location of the include files" "$LINENO" 5 14453fi 14454 14455done 14456 14457for ac_header in openssl/md5.h openssl/sha.h openssl/ripemd.h openssl/whrlpool.h 14458do : 14459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14460ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14461if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14462 cat >>confdefs.h <<_ACEOF 14463#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14464_ACEOF 14465 14466fi 14467 14468done 14469 14470for ac_func in memmove memset socket select strchr strdup sigaction signal strtoul strtoull strtoq 14471do : 14472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14473ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14474if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14475 cat >>confdefs.h <<_ACEOF 14476#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14477_ACEOF 14478 14479fi 14480done 14481 14482for ac_header in stdlib.h 14483do : 14484 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 14485if test "x$ac_cv_header_stdlib_h" = xyes; then : 14486 cat >>confdefs.h <<_ACEOF 14487#define HAVE_STDLIB_H 1 14488_ACEOF 14489 14490fi 14491 14492done 14493 14494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 14495$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 14496if ${ac_cv_func_realloc_0_nonnull+:} false; then : 14497 $as_echo_n "(cached) " >&6 14498else 14499 if test "$cross_compiling" = yes; then : 14500 ac_cv_func_realloc_0_nonnull=no 14501else 14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14503/* end confdefs.h. */ 14504#if defined STDC_HEADERS || defined HAVE_STDLIB_H 14505# include <stdlib.h> 14506#else 14507char *realloc (); 14508#endif 14509 14510int 14511main () 14512{ 14513return ! realloc (0, 0); 14514 ; 14515 return 0; 14516} 14517_ACEOF 14518if ac_fn_c_try_run "$LINENO"; then : 14519 ac_cv_func_realloc_0_nonnull=yes 14520else 14521 ac_cv_func_realloc_0_nonnull=no 14522fi 14523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14524 conftest.$ac_objext conftest.beam conftest.$ac_ext 14525fi 14526 14527fi 14528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 14529$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 14530if test $ac_cv_func_realloc_0_nonnull = yes; then : 14531 14532$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 14533 14534else 14535 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 14536 14537 case " $LIBOBJS " in 14538 *" realloc.$ac_objext "* ) ;; 14539 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 14540 ;; 14541esac 14542 14543 14544$as_echo "#define realloc rpl_realloc" >>confdefs.h 14545 14546fi 14547 14548 14549for ac_header in stdlib.h 14550do : 14551 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 14552if test "x$ac_cv_header_stdlib_h" = xyes; then : 14553 cat >>confdefs.h <<_ACEOF 14554#define HAVE_STDLIB_H 1 14555_ACEOF 14556 14557fi 14558 14559done 14560 14561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 14562$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 14563if ${ac_cv_func_malloc_0_nonnull+:} false; then : 14564 $as_echo_n "(cached) " >&6 14565else 14566 if test "$cross_compiling" = yes; then : 14567 ac_cv_func_malloc_0_nonnull=no 14568else 14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14570/* end confdefs.h. */ 14571#if defined STDC_HEADERS || defined HAVE_STDLIB_H 14572# include <stdlib.h> 14573#else 14574char *malloc (); 14575#endif 14576 14577int 14578main () 14579{ 14580return ! malloc (0); 14581 ; 14582 return 0; 14583} 14584_ACEOF 14585if ac_fn_c_try_run "$LINENO"; then : 14586 ac_cv_func_malloc_0_nonnull=yes 14587else 14588 ac_cv_func_malloc_0_nonnull=no 14589fi 14590rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14591 conftest.$ac_objext conftest.beam conftest.$ac_ext 14592fi 14593 14594fi 14595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 14596$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 14597if test $ac_cv_func_malloc_0_nonnull = yes; then : 14598 14599$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 14600 14601else 14602 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 14603 14604 case " $LIBOBJS " in 14605 *" malloc.$ac_objext "* ) ;; 14606 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 14607 ;; 14608esac 14609 14610 14611$as_echo "#define malloc rpl_malloc" >>confdefs.h 14612 14613fi 14614 14615 14616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14617$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 14618if ${ac_cv_c_const+:} false; then : 14619 $as_echo_n "(cached) " >&6 14620else 14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14622/* end confdefs.h. */ 14623 14624int 14625main () 14626{ 14627 14628#ifndef __cplusplus 14629 /* Ultrix mips cc rejects this sort of thing. */ 14630 typedef int charset[2]; 14631 const charset cs = { 0, 0 }; 14632 /* SunOS 4.1.1 cc rejects this. */ 14633 char const *const *pcpcc; 14634 char **ppc; 14635 /* NEC SVR4.0.2 mips cc rejects this. */ 14636 struct point {int x, y;}; 14637 static struct point const zero = {0,0}; 14638 /* AIX XL C 1.02.0.0 rejects this. 14639 It does not let you subtract one const X* pointer from another in 14640 an arm of an if-expression whose if-part is not a constant 14641 expression */ 14642 const char *g = "string"; 14643 pcpcc = &g + (g ? g-g : 0); 14644 /* HPUX 7.0 cc rejects these. */ 14645 ++pcpcc; 14646 ppc = (char**) pcpcc; 14647 pcpcc = (char const *const *) ppc; 14648 { /* SCO 3.2v4 cc rejects this sort of thing. */ 14649 char tx; 14650 char *t = &tx; 14651 char const *s = 0 ? (char *) 0 : (char const *) 0; 14652 14653 *t++ = 0; 14654 if (s) return 0; 14655 } 14656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14657 int x[] = {25, 17}; 14658 const int *foo = &x[0]; 14659 ++foo; 14660 } 14661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14662 typedef const int *iptr; 14663 iptr p = 0; 14664 ++p; 14665 } 14666 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 14667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14668 struct s { int j; const int *ap[3]; } bx; 14669 struct s *b = &bx; b->j = 5; 14670 } 14671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14672 const int foo = 10; 14673 if (!foo) return 0; 14674 } 14675 return !cs[0] && !zero.x; 14676#endif 14677 14678 ; 14679 return 0; 14680} 14681_ACEOF 14682if ac_fn_c_try_compile "$LINENO"; then : 14683 ac_cv_c_const=yes 14684else 14685 ac_cv_c_const=no 14686fi 14687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14688fi 14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14690$as_echo "$ac_cv_c_const" >&6; } 14691if test $ac_cv_c_const = no; then 14692 14693$as_echo "#define const /**/" >>confdefs.h 14694 14695fi 14696 14697ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 14698case $ac_cv_c_uint16_t in #( 14699 no|yes) ;; #( 14700 *) 14701 14702 14703cat >>confdefs.h <<_ACEOF 14704#define uint16_t $ac_cv_c_uint16_t 14705_ACEOF 14706;; 14707 esac 14708 14709ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 14710case $ac_cv_c_uint32_t in #( 14711 no|yes) ;; #( 14712 *) 14713 14714$as_echo "#define _UINT32_T 1" >>confdefs.h 14715 14716 14717cat >>confdefs.h <<_ACEOF 14718#define uint32_t $ac_cv_c_uint32_t 14719_ACEOF 14720;; 14721 esac 14722 14723ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 14724case $ac_cv_c_uint64_t in #( 14725 no|yes) ;; #( 14726 *) 14727 14728$as_echo "#define _UINT64_T 1" >>confdefs.h 14729 14730 14731cat >>confdefs.h <<_ACEOF 14732#define uint64_t $ac_cv_c_uint64_t 14733_ACEOF 14734;; 14735 esac 14736 14737ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 14738case $ac_cv_c_int64_t in #( 14739 no|yes) ;; #( 14740 *) 14741 14742cat >>confdefs.h <<_ACEOF 14743#define int64_t $ac_cv_c_int64_t 14744_ACEOF 14745;; 14746esac 14747 14748ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 14749case $ac_cv_c_uint8_t in #( 14750 no|yes) ;; #( 14751 *) 14752 14753$as_echo "#define _UINT8_T 1" >>confdefs.h 14754 14755 14756cat >>confdefs.h <<_ACEOF 14757#define uint8_t $ac_cv_c_uint8_t 14758_ACEOF 14759;; 14760 esac 14761 14762ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14763if test "x$ac_cv_type_size_t" = xyes; then : 14764 14765else 14766 14767cat >>confdefs.h <<_ACEOF 14768#define size_t unsigned int 14769_ACEOF 14770 14771fi 14772 14773ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14774if test "x$ac_cv_type_ssize_t" = xyes; then : 14775 14776else 14777 14778cat >>confdefs.h <<_ACEOF 14779#define ssize_t int 14780_ACEOF 14781 14782fi 14783 14784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 14785$as_echo_n "checking return type of signal handlers... " >&6; } 14786if ${ac_cv_type_signal+:} false; then : 14787 $as_echo_n "(cached) " >&6 14788else 14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14790/* end confdefs.h. */ 14791#include <sys/types.h> 14792#include <signal.h> 14793 14794int 14795main () 14796{ 14797return *(signal (0, 0)) (0) == 1; 14798 ; 14799 return 0; 14800} 14801_ACEOF 14802if ac_fn_c_try_compile "$LINENO"; then : 14803 ac_cv_type_signal=int 14804else 14805 ac_cv_type_signal=void 14806fi 14807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14808fi 14809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 14810$as_echo "$ac_cv_type_signal" >&6; } 14811 14812cat >>confdefs.h <<_ACEOF 14813#define RETSIGTYPE $ac_cv_type_signal 14814_ACEOF 14815 14816 14817 14818CFLAGS="$tmp_CFLAGS" 14819LDFLAGS="$tmp_LDFLAGS" 14820 14821# adds -lsocket on Solaris 14822ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 14823if test "x$ac_cv_func_setsockopt" = xyes; then : 14824 14825else 14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 14827$as_echo_n "checking for setsockopt in -lsocket... " >&6; } 14828if ${ac_cv_lib_socket_setsockopt+:} false; then : 14829 $as_echo_n "(cached) " >&6 14830else 14831 ac_check_lib_save_LIBS=$LIBS 14832LIBS="-lsocket $LIBS" 14833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14834/* end confdefs.h. */ 14835 14836/* Override any GCC internal prototype to avoid an error. 14837 Use char because int might match the return type of a GCC 14838 builtin and then its argument prototype would still apply. */ 14839#ifdef __cplusplus 14840extern "C" 14841#endif 14842char setsockopt (); 14843int 14844main () 14845{ 14846return setsockopt (); 14847 ; 14848 return 0; 14849} 14850_ACEOF 14851if ac_fn_c_try_link "$LINENO"; then : 14852 ac_cv_lib_socket_setsockopt=yes 14853else 14854 ac_cv_lib_socket_setsockopt=no 14855fi 14856rm -f core conftest.err conftest.$ac_objext \ 14857 conftest$ac_exeext conftest.$ac_ext 14858LIBS=$ac_check_lib_save_LIBS 14859fi 14860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 14861$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } 14862if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : 14863 cat >>confdefs.h <<_ACEOF 14864#define HAVE_LIBSOCKET 1 14865_ACEOF 14866 14867 LIBS="-lsocket $LIBS" 14868 14869fi 14870 14871fi 14872 14873 14874case $host_os in 14875 *cygwin*|*mingw* ) 14876 for ac_header in winsock2.h 14877do : 14878 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 14879if test "x$ac_cv_header_winsock2_h" = xyes; then : 14880 cat >>confdefs.h <<_ACEOF 14881#define HAVE_WINSOCK2_H 1 14882_ACEOF 14883 14884fi 14885 14886done 14887 14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 14889$as_echo_n "checking for main in -lws2_32... " >&6; } 14890if ${ac_cv_lib_ws2_32_main+:} false; then : 14891 $as_echo_n "(cached) " >&6 14892else 14893 ac_check_lib_save_LIBS=$LIBS 14894LIBS="-lws2_32 $LIBS" 14895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14896/* end confdefs.h. */ 14897 14898 14899int 14900main () 14901{ 14902return main (); 14903 ; 14904 return 0; 14905} 14906_ACEOF 14907if ac_fn_c_try_link "$LINENO"; then : 14908 ac_cv_lib_ws2_32_main=yes 14909else 14910 ac_cv_lib_ws2_32_main=no 14911fi 14912rm -f core conftest.err conftest.$ac_objext \ 14913 conftest$ac_exeext conftest.$ac_ext 14914LIBS=$ac_check_lib_save_LIBS 14915fi 14916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 14917$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 14918if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 14919 cat >>confdefs.h <<_ACEOF 14920#define HAVE_LIBWS2_32 1 14921_ACEOF 14922 14923 LIBS="-lws2_32 $LIBS" 14924 14925else 14926 as_fn_error $? "Winsock2 is needed for Windows MinGW build." "$LINENO" 5 14927fi 14928 14929 if test -n "$ac_tool_prefix"; then 14930 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 14931set dummy ${ac_tool_prefix}windres; ac_word=$2 14932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14933$as_echo_n "checking for $ac_word... " >&6; } 14934if ${ac_cv_prog_WINDRES+:} false; then : 14935 $as_echo_n "(cached) " >&6 14936else 14937 if test -n "$WINDRES"; then 14938 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 14939else 14940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14941for as_dir in $PATH 14942do 14943 IFS=$as_save_IFS 14944 test -z "$as_dir" && as_dir=. 14945 for ac_exec_ext in '' $ac_executable_extensions; do 14946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14947 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 14948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14949 break 2 14950 fi 14951done 14952 done 14953IFS=$as_save_IFS 14954 14955fi 14956fi 14957WINDRES=$ac_cv_prog_WINDRES 14958if test -n "$WINDRES"; then 14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 14960$as_echo "$WINDRES" >&6; } 14961else 14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14963$as_echo "no" >&6; } 14964fi 14965 14966 14967fi 14968if test -z "$ac_cv_prog_WINDRES"; then 14969 ac_ct_WINDRES=$WINDRES 14970 # Extract the first word of "windres", so it can be a program name with args. 14971set dummy windres; ac_word=$2 14972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14973$as_echo_n "checking for $ac_word... " >&6; } 14974if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 14975 $as_echo_n "(cached) " >&6 14976else 14977 if test -n "$ac_ct_WINDRES"; then 14978 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 14979else 14980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14981for as_dir in $PATH 14982do 14983 IFS=$as_save_IFS 14984 test -z "$as_dir" && as_dir=. 14985 for ac_exec_ext in '' $ac_executable_extensions; do 14986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14987 ac_cv_prog_ac_ct_WINDRES="windres" 14988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14989 break 2 14990 fi 14991done 14992 done 14993IFS=$as_save_IFS 14994 14995fi 14996fi 14997ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 14998if test -n "$ac_ct_WINDRES"; then 14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 15000$as_echo "$ac_ct_WINDRES" >&6; } 15001else 15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15003$as_echo "no" >&6; } 15004fi 15005 15006 if test "x$ac_ct_WINDRES" = x; then 15007 WINDRES="" 15008 else 15009 case $cross_compiling:$ac_tool_warned in 15010yes:) 15011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15013ac_tool_warned=yes ;; 15014esac 15015 WINDRES=$ac_ct_WINDRES 15016 fi 15017else 15018 WINDRES="$ac_cv_prog_WINDRES" 15019fi 15020 15021 win32=true 15022 ;; 15023 15024 * ) 15025 win32=false 15026 ;; 15027esac 15028 15029 if test x$win32 = xtrue; then 15030 WIN32_TRUE= 15031 WIN32_FALSE='#' 15032else 15033 WIN32_TRUE='#' 15034 WIN32_FALSE= 15035fi 15036 15037 if test x$ac_compiler_gnu = xyes; then 15038 GCC_TRUE= 15039 GCC_FALSE='#' 15040else 15041 GCC_TRUE='#' 15042 GCC_FALSE= 15043fi 15044 15045 15046MDF_VERSION_MAJOR=`echo $VERSION | awk -F. '{print $1}'` 15047MDF_VERSION_MINOR=`echo $VERSION | awk -F. '{print $2}'` 15048MDF_VERSION_REVISION=`echo $VERSION | awk -F. '{print $3}'` 15049 15050 15051 15052 15053 15054# Allow the pkg-config directory to be set 15055 15056# Check whether --with-pkgconfigdir was given. 15057if test "${with_pkgconfigdir+set}" = set; then : 15058 withval=$with_pkgconfigdir; pkgconfigdir=${withval} 15059else 15060 pkgconfigdir='${libdir}/pkgconfig' 15061 15062fi 15063 15064 15065 15066{ $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5 15067$as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;} 15068 15069ac_config_files="$ac_config_files libmdf.spec src/version.h" 15070 15071ac_config_files="$ac_config_files Makefile libmdf.pc src/Makefile tests/Makefile" 15072 15073cat >confcache <<\_ACEOF 15074# This file is a shell script that caches the results of configure 15075# tests run on this system so they can be shared between configure 15076# scripts and configure runs, see configure's option --config-cache. 15077# It is not useful on other systems. If it contains results you don't 15078# want to keep, you may remove or edit it. 15079# 15080# config.status only pays attention to the cache file if you give it 15081# the --recheck option to rerun configure. 15082# 15083# `ac_cv_env_foo' variables (set or unset) will be overridden when 15084# loading this file, other *unset* `ac_cv_foo' will be assigned the 15085# following values. 15086 15087_ACEOF 15088 15089# The following way of writing the cache mishandles newlines in values, 15090# but we know of no workaround that is simple, portable, and efficient. 15091# So, we kill variables containing newlines. 15092# Ultrix sh set writes to stderr and can't be redirected directly, 15093# and sets the high bit in the cache file unless we assign to the vars. 15094( 15095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15096 eval ac_val=\$$ac_var 15097 case $ac_val in #( 15098 *${as_nl}*) 15099 case $ac_var in #( 15100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15101$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15102 esac 15103 case $ac_var in #( 15104 _ | IFS | as_nl) ;; #( 15105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15106 *) { eval $ac_var=; unset $ac_var;} ;; 15107 esac ;; 15108 esac 15109 done 15110 15111 (set) 2>&1 | 15112 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15113 *${as_nl}ac_space=\ *) 15114 # `set' does not quote correctly, so add quotes: double-quote 15115 # substitution turns \\\\ into \\, and sed turns \\ into \. 15116 sed -n \ 15117 "s/'/'\\\\''/g; 15118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15119 ;; #( 15120 *) 15121 # `set' quotes correctly as required by POSIX, so do not add quotes. 15122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15123 ;; 15124 esac | 15125 sort 15126) | 15127 sed ' 15128 /^ac_cv_env_/b end 15129 t clear 15130 :clear 15131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15132 t end 15133 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15134 :end' >>confcache 15135if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15136 if test -w "$cache_file"; then 15137 if test "x$cache_file" != "x/dev/null"; then 15138 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15139$as_echo "$as_me: updating cache $cache_file" >&6;} 15140 if test ! -f "$cache_file" || test -h "$cache_file"; then 15141 cat confcache >"$cache_file" 15142 else 15143 case $cache_file in #( 15144 */* | ?:*) 15145 mv -f confcache "$cache_file"$$ && 15146 mv -f "$cache_file"$$ "$cache_file" ;; #( 15147 *) 15148 mv -f confcache "$cache_file" ;; 15149 esac 15150 fi 15151 fi 15152 else 15153 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15154$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15155 fi 15156fi 15157rm -f confcache 15158 15159test "x$prefix" = xNONE && prefix=$ac_default_prefix 15160# Let make expand exec_prefix. 15161test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15162 15163DEFS=-DHAVE_CONFIG_H 15164 15165ac_libobjs= 15166ac_ltlibobjs= 15167U= 15168for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15169 # 1. Remove the extension, and $U if already installed. 15170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15171 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15173 # will be set to the directory where LIBOBJS objects are built. 15174 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15175 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15176done 15177LIBOBJS=$ac_libobjs 15178 15179LTLIBOBJS=$ac_ltlibobjs 15180 15181 15182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15183$as_echo_n "checking that generated files are newer than configure... " >&6; } 15184 if test -n "$am_sleep_pid"; then 15185 # Hide warnings about reused PIDs. 15186 wait $am_sleep_pid 2>/dev/null 15187 fi 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15189$as_echo "done" >&6; } 15190 if test -n "$EXEEXT"; then 15191 am__EXEEXT_TRUE= 15192 am__EXEEXT_FALSE='#' 15193else 15194 am__EXEEXT_TRUE='#' 15195 am__EXEEXT_FALSE= 15196fi 15197 15198if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15199 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 15200Usually this means the macro was only invoked conditionally." "$LINENO" 5 15201fi 15202if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15203 as_fn_error $? "conditional \"AMDEP\" was never defined. 15204Usually this means the macro was only invoked conditionally." "$LINENO" 5 15205fi 15206if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15207 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15208Usually this means the macro was only invoked conditionally." "$LINENO" 5 15209fi 15210if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15211 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15212Usually this means the macro was only invoked conditionally." "$LINENO" 5 15213fi 15214if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then 15215 as_fn_error $? "conditional \"WIN32\" was never defined. 15216Usually this means the macro was only invoked conditionally." "$LINENO" 5 15217fi 15218if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then 15219 as_fn_error $? "conditional \"GCC\" was never defined. 15220Usually this means the macro was only invoked conditionally." "$LINENO" 5 15221fi 15222 15223: "${CONFIG_STATUS=./config.status}" 15224ac_write_fail=0 15225ac_clean_files_save=$ac_clean_files 15226ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15227{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15228$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15229as_write_fail=0 15230cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15231#! $SHELL 15232# Generated by $as_me. 15233# Run this file to recreate the current configuration. 15234# Compiler output produced by configure, useful for debugging 15235# configure, is in config.log if it exists. 15236 15237debug=false 15238ac_cs_recheck=false 15239ac_cs_silent=false 15240 15241SHELL=\${CONFIG_SHELL-$SHELL} 15242export SHELL 15243_ASEOF 15244cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15245## -------------------- ## 15246## M4sh Initialization. ## 15247## -------------------- ## 15248 15249# Be more Bourne compatible 15250DUALCASE=1; export DUALCASE # for MKS sh 15251if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15252 emulate sh 15253 NULLCMD=: 15254 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15255 # is contrary to our usage. Disable this feature. 15256 alias -g '${1+"$@"}'='"$@"' 15257 setopt NO_GLOB_SUBST 15258else 15259 case `(set -o) 2>/dev/null` in #( 15260 *posix*) : 15261 set -o posix ;; #( 15262 *) : 15263 ;; 15264esac 15265fi 15266 15267 15268as_nl=' 15269' 15270export as_nl 15271# Printing a long string crashes Solaris 7 /usr/bin/printf. 15272as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15273as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15274as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15275# Prefer a ksh shell builtin over an external printf program on Solaris, 15276# but without wasting forks for bash or zsh. 15277if test -z "$BASH_VERSION$ZSH_VERSION" \ 15278 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15279 as_echo='print -r --' 15280 as_echo_n='print -rn --' 15281elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15282 as_echo='printf %s\n' 15283 as_echo_n='printf %s' 15284else 15285 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15286 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15287 as_echo_n='/usr/ucb/echo -n' 15288 else 15289 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15290 as_echo_n_body='eval 15291 arg=$1; 15292 case $arg in #( 15293 *"$as_nl"*) 15294 expr "X$arg" : "X\\(.*\\)$as_nl"; 15295 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15296 esac; 15297 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15298 ' 15299 export as_echo_n_body 15300 as_echo_n='sh -c $as_echo_n_body as_echo' 15301 fi 15302 export as_echo_body 15303 as_echo='sh -c $as_echo_body as_echo' 15304fi 15305 15306# The user is always right. 15307if test "${PATH_SEPARATOR+set}" != set; then 15308 PATH_SEPARATOR=: 15309 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15310 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15311 PATH_SEPARATOR=';' 15312 } 15313fi 15314 15315 15316# IFS 15317# We need space, tab and new line, in precisely that order. Quoting is 15318# there to prevent editors from complaining about space-tab. 15319# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15320# splitting by setting IFS to empty value.) 15321IFS=" "" $as_nl" 15322 15323# Find who we are. Look in the path if we contain no directory separator. 15324as_myself= 15325case $0 in #(( 15326 *[\\/]* ) as_myself=$0 ;; 15327 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15328for as_dir in $PATH 15329do 15330 IFS=$as_save_IFS 15331 test -z "$as_dir" && as_dir=. 15332 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15333 done 15334IFS=$as_save_IFS 15335 15336 ;; 15337esac 15338# We did not find ourselves, most probably we were run as `sh COMMAND' 15339# in which case we are not to be found in the path. 15340if test "x$as_myself" = x; then 15341 as_myself=$0 15342fi 15343if test ! -f "$as_myself"; then 15344 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15345 exit 1 15346fi 15347 15348# Unset variables that we do not need and which cause bugs (e.g. in 15349# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15350# suppresses any "Segmentation fault" message there. '((' could 15351# trigger a bug in pdksh 5.2.14. 15352for as_var in BASH_ENV ENV MAIL MAILPATH 15353do eval test x\${$as_var+set} = xset \ 15354 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15355done 15356PS1='$ ' 15357PS2='> ' 15358PS4='+ ' 15359 15360# NLS nuisances. 15361LC_ALL=C 15362export LC_ALL 15363LANGUAGE=C 15364export LANGUAGE 15365 15366# CDPATH. 15367(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15368 15369 15370# as_fn_error STATUS ERROR [LINENO LOG_FD] 15371# ---------------------------------------- 15372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15374# script with STATUS, using 1 if that was 0. 15375as_fn_error () 15376{ 15377 as_status=$1; test $as_status -eq 0 && as_status=1 15378 if test "$4"; then 15379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15381 fi 15382 $as_echo "$as_me: error: $2" >&2 15383 as_fn_exit $as_status 15384} # as_fn_error 15385 15386 15387# as_fn_set_status STATUS 15388# ----------------------- 15389# Set $? to STATUS, without forking. 15390as_fn_set_status () 15391{ 15392 return $1 15393} # as_fn_set_status 15394 15395# as_fn_exit STATUS 15396# ----------------- 15397# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15398as_fn_exit () 15399{ 15400 set +e 15401 as_fn_set_status $1 15402 exit $1 15403} # as_fn_exit 15404 15405# as_fn_unset VAR 15406# --------------- 15407# Portably unset VAR. 15408as_fn_unset () 15409{ 15410 { eval $1=; unset $1;} 15411} 15412as_unset=as_fn_unset 15413# as_fn_append VAR VALUE 15414# ---------------------- 15415# Append the text in VALUE to the end of the definition contained in VAR. Take 15416# advantage of any shell optimizations that allow amortized linear growth over 15417# repeated appends, instead of the typical quadratic growth present in naive 15418# implementations. 15419if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15420 eval 'as_fn_append () 15421 { 15422 eval $1+=\$2 15423 }' 15424else 15425 as_fn_append () 15426 { 15427 eval $1=\$$1\$2 15428 } 15429fi # as_fn_append 15430 15431# as_fn_arith ARG... 15432# ------------------ 15433# Perform arithmetic evaluation on the ARGs, and store the result in the 15434# global $as_val. Take advantage of shells that can avoid forks. The arguments 15435# must be portable across $(()) and expr. 15436if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15437 eval 'as_fn_arith () 15438 { 15439 as_val=$(( $* )) 15440 }' 15441else 15442 as_fn_arith () 15443 { 15444 as_val=`expr "$@" || test $? -eq 1` 15445 } 15446fi # as_fn_arith 15447 15448 15449if expr a : '\(a\)' >/dev/null 2>&1 && 15450 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15451 as_expr=expr 15452else 15453 as_expr=false 15454fi 15455 15456if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15457 as_basename=basename 15458else 15459 as_basename=false 15460fi 15461 15462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15463 as_dirname=dirname 15464else 15465 as_dirname=false 15466fi 15467 15468as_me=`$as_basename -- "$0" || 15469$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15470 X"$0" : 'X\(//\)$' \| \ 15471 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15472$as_echo X/"$0" | 15473 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15474 s//\1/ 15475 q 15476 } 15477 /^X\/\(\/\/\)$/{ 15478 s//\1/ 15479 q 15480 } 15481 /^X\/\(\/\).*/{ 15482 s//\1/ 15483 q 15484 } 15485 s/.*/./; q'` 15486 15487# Avoid depending upon Character Ranges. 15488as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15489as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15490as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15491as_cr_digits='0123456789' 15492as_cr_alnum=$as_cr_Letters$as_cr_digits 15493 15494ECHO_C= ECHO_N= ECHO_T= 15495case `echo -n x` in #((((( 15496-n*) 15497 case `echo 'xy\c'` in 15498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15499 xy) ECHO_C='\c';; 15500 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15501 ECHO_T=' ';; 15502 esac;; 15503*) 15504 ECHO_N='-n';; 15505esac 15506 15507rm -f conf$$ conf$$.exe conf$$.file 15508if test -d conf$$.dir; then 15509 rm -f conf$$.dir/conf$$.file 15510else 15511 rm -f conf$$.dir 15512 mkdir conf$$.dir 2>/dev/null 15513fi 15514if (echo >conf$$.file) 2>/dev/null; then 15515 if ln -s conf$$.file conf$$ 2>/dev/null; then 15516 as_ln_s='ln -s' 15517 # ... but there are two gotchas: 15518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15520 # In both cases, we have to default to `cp -pR'. 15521 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15522 as_ln_s='cp -pR' 15523 elif ln conf$$.file conf$$ 2>/dev/null; then 15524 as_ln_s=ln 15525 else 15526 as_ln_s='cp -pR' 15527 fi 15528else 15529 as_ln_s='cp -pR' 15530fi 15531rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15532rmdir conf$$.dir 2>/dev/null 15533 15534 15535# as_fn_mkdir_p 15536# ------------- 15537# Create "$as_dir" as a directory, including parents if necessary. 15538as_fn_mkdir_p () 15539{ 15540 15541 case $as_dir in #( 15542 -*) as_dir=./$as_dir;; 15543 esac 15544 test -d "$as_dir" || eval $as_mkdir_p || { 15545 as_dirs= 15546 while :; do 15547 case $as_dir in #( 15548 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15549 *) as_qdir=$as_dir;; 15550 esac 15551 as_dirs="'$as_qdir' $as_dirs" 15552 as_dir=`$as_dirname -- "$as_dir" || 15553$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15554 X"$as_dir" : 'X\(//\)[^/]' \| \ 15555 X"$as_dir" : 'X\(//\)$' \| \ 15556 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15557$as_echo X"$as_dir" | 15558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15559 s//\1/ 15560 q 15561 } 15562 /^X\(\/\/\)[^/].*/{ 15563 s//\1/ 15564 q 15565 } 15566 /^X\(\/\/\)$/{ 15567 s//\1/ 15568 q 15569 } 15570 /^X\(\/\).*/{ 15571 s//\1/ 15572 q 15573 } 15574 s/.*/./; q'` 15575 test -d "$as_dir" && break 15576 done 15577 test -z "$as_dirs" || eval "mkdir $as_dirs" 15578 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15579 15580 15581} # as_fn_mkdir_p 15582if mkdir -p . 2>/dev/null; then 15583 as_mkdir_p='mkdir -p "$as_dir"' 15584else 15585 test -d ./-p && rmdir ./-p 15586 as_mkdir_p=false 15587fi 15588 15589 15590# as_fn_executable_p FILE 15591# ----------------------- 15592# Test if FILE is an executable regular file. 15593as_fn_executable_p () 15594{ 15595 test -f "$1" && test -x "$1" 15596} # as_fn_executable_p 15597as_test_x='test -x' 15598as_executable_p=as_fn_executable_p 15599 15600# Sed expression to map a string onto a valid CPP name. 15601as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15602 15603# Sed expression to map a string onto a valid variable name. 15604as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15605 15606 15607exec 6>&1 15608## ----------------------------------- ## 15609## Main body of $CONFIG_STATUS script. ## 15610## ----------------------------------- ## 15611_ASEOF 15612test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15613 15614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15615# Save the log message, to keep $0 and so on meaningful, and to 15616# report actual input values of CONFIG_FILES etc. instead of their 15617# values after options handling. 15618ac_log=" 15619This file was extended by libmdf $as_me 1.0.21, which was 15620generated by GNU Autoconf 2.69. Invocation command line was 15621 15622 CONFIG_FILES = $CONFIG_FILES 15623 CONFIG_HEADERS = $CONFIG_HEADERS 15624 CONFIG_LINKS = $CONFIG_LINKS 15625 CONFIG_COMMANDS = $CONFIG_COMMANDS 15626 $ $0 $@ 15627 15628on `(hostname || uname -n) 2>/dev/null | sed 1q` 15629" 15630 15631_ACEOF 15632 15633case $ac_config_files in *" 15634"*) set x $ac_config_files; shift; ac_config_files=$*;; 15635esac 15636 15637case $ac_config_headers in *" 15638"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15639esac 15640 15641 15642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15643# Files that config.status was made for. 15644config_files="$ac_config_files" 15645config_headers="$ac_config_headers" 15646config_commands="$ac_config_commands" 15647 15648_ACEOF 15649 15650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15651ac_cs_usage="\ 15652\`$as_me' instantiates files and other configuration actions 15653from templates according to the current configuration. Unless the files 15654and actions are specified as TAGs, all are instantiated by default. 15655 15656Usage: $0 [OPTION]... [TAG]... 15657 15658 -h, --help print this help, then exit 15659 -V, --version print version number and configuration settings, then exit 15660 --config print configuration, then exit 15661 -q, --quiet, --silent 15662 do not print progress messages 15663 -d, --debug don't remove temporary files 15664 --recheck update $as_me by reconfiguring in the same conditions 15665 --file=FILE[:TEMPLATE] 15666 instantiate the configuration file FILE 15667 --header=FILE[:TEMPLATE] 15668 instantiate the configuration header FILE 15669 15670Configuration files: 15671$config_files 15672 15673Configuration headers: 15674$config_headers 15675 15676Configuration commands: 15677$config_commands 15678 15679Report bugs to <tech@millistream.com>." 15680 15681_ACEOF 15682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15683ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15684ac_cs_version="\\ 15685libmdf config.status 1.0.21 15686configured by $0, generated by GNU Autoconf 2.69, 15687 with options \\"\$ac_cs_config\\" 15688 15689Copyright (C) 2012 Free Software Foundation, Inc. 15690This config.status script is free software; the Free Software Foundation 15691gives unlimited permission to copy, distribute and modify it." 15692 15693ac_pwd='$ac_pwd' 15694srcdir='$srcdir' 15695INSTALL='$INSTALL' 15696MKDIR_P='$MKDIR_P' 15697AWK='$AWK' 15698test -n "\$AWK" || AWK=awk 15699_ACEOF 15700 15701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15702# The default lists apply if the user does not specify any file. 15703ac_need_defaults=: 15704while test $# != 0 15705do 15706 case $1 in 15707 --*=?*) 15708 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15709 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15710 ac_shift=: 15711 ;; 15712 --*=) 15713 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15714 ac_optarg= 15715 ac_shift=: 15716 ;; 15717 *) 15718 ac_option=$1 15719 ac_optarg=$2 15720 ac_shift=shift 15721 ;; 15722 esac 15723 15724 case $ac_option in 15725 # Handling of the options. 15726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15727 ac_cs_recheck=: ;; 15728 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15729 $as_echo "$ac_cs_version"; exit ;; 15730 --config | --confi | --conf | --con | --co | --c ) 15731 $as_echo "$ac_cs_config"; exit ;; 15732 --debug | --debu | --deb | --de | --d | -d ) 15733 debug=: ;; 15734 --file | --fil | --fi | --f ) 15735 $ac_shift 15736 case $ac_optarg in 15737 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15738 '') as_fn_error $? "missing file argument" ;; 15739 esac 15740 as_fn_append CONFIG_FILES " '$ac_optarg'" 15741 ac_need_defaults=false;; 15742 --header | --heade | --head | --hea ) 15743 $ac_shift 15744 case $ac_optarg in 15745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15746 esac 15747 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15748 ac_need_defaults=false;; 15749 --he | --h) 15750 # Conflict between --help and --header 15751 as_fn_error $? "ambiguous option: \`$1' 15752Try \`$0 --help' for more information.";; 15753 --help | --hel | -h ) 15754 $as_echo "$ac_cs_usage"; exit ;; 15755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15756 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15757 ac_cs_silent=: ;; 15758 15759 # This is an error. 15760 -*) as_fn_error $? "unrecognized option: \`$1' 15761Try \`$0 --help' for more information." ;; 15762 15763 *) as_fn_append ac_config_targets " $1" 15764 ac_need_defaults=false ;; 15765 15766 esac 15767 shift 15768done 15769 15770ac_configure_extra_args= 15771 15772if $ac_cs_silent; then 15773 exec 6>/dev/null 15774 ac_configure_extra_args="$ac_configure_extra_args --silent" 15775fi 15776 15777_ACEOF 15778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15779if \$ac_cs_recheck; then 15780 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15781 shift 15782 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15783 CONFIG_SHELL='$SHELL' 15784 export CONFIG_SHELL 15785 exec "\$@" 15786fi 15787 15788_ACEOF 15789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15790exec 5>>config.log 15791{ 15792 echo 15793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15794## Running $as_me. ## 15795_ASBOX 15796 $as_echo "$ac_log" 15797} >&5 15798 15799_ACEOF 15800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15801# 15802# INIT-COMMANDS 15803# 15804AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15805 15806 15807# The HP-UX ksh and POSIX shell print the target directory to stdout 15808# if CDPATH is set. 15809(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15810 15811sed_quote_subst='$sed_quote_subst' 15812double_quote_subst='$double_quote_subst' 15813delay_variable_subst='$delay_variable_subst' 15814macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15815macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15816AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 15817DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15818OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15819enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15820enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15821pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15822enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15823shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 15824SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15825ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15826PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15827host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15828host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15829host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15830build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15831build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15832build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15833SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15834Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15835GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15836EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15837FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15838LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15839NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15840LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15841max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15842ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15843exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15844lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15845lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15846lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15847lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15848lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15849reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15850reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15851deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15852file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15853file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15854want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15855sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15856AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15857AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15858archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15859STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15860RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15861old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15862old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15863old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15864lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15865CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15866CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15867compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15868GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15869lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15870lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15871lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 15872lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15873lt_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"`' 15874lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 15875nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15876lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15877lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 15878objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15879MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15880lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15881lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15882lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15883lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15884lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15885need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15886MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15887DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15888NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15889LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15890OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15891OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15892libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15893shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15894extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15895archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15896enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15897export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15898whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15899compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15900old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15901old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15902archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15903archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15904module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15905module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15906with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15907allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15908no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15909hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15910hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15911hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15912hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15913hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15914hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15915hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15916inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15917link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15918always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15919export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15920exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15921include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15922prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15923postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15924file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15925variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15926need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15927need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15928version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15929runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15930shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15931shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15932libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15933library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15934soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15935install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15936postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15937postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15938finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15939finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15940hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15941sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15942configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 15943configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 15944hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15945enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15946enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15947enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15948old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15949striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15950 15951LTCC='$LTCC' 15952LTCFLAGS='$LTCFLAGS' 15953compiler='$compiler_DEFAULT' 15954 15955# A function that is used when there is no print builtin or printf. 15956func_fallback_echo () 15957{ 15958 eval 'cat <<_LTECHO_EOF 15959\$1 15960_LTECHO_EOF' 15961} 15962 15963# Quote evaled strings. 15964for var in AS \ 15965DLLTOOL \ 15966OBJDUMP \ 15967SHELL \ 15968ECHO \ 15969PATH_SEPARATOR \ 15970SED \ 15971GREP \ 15972EGREP \ 15973FGREP \ 15974LD \ 15975NM \ 15976LN_S \ 15977lt_SP2NL \ 15978lt_NL2SP \ 15979reload_flag \ 15980deplibs_check_method \ 15981file_magic_cmd \ 15982file_magic_glob \ 15983want_nocaseglob \ 15984sharedlib_from_linklib_cmd \ 15985AR \ 15986AR_FLAGS \ 15987archiver_list_spec \ 15988STRIP \ 15989RANLIB \ 15990CC \ 15991CFLAGS \ 15992compiler \ 15993lt_cv_sys_global_symbol_pipe \ 15994lt_cv_sys_global_symbol_to_cdecl \ 15995lt_cv_sys_global_symbol_to_import \ 15996lt_cv_sys_global_symbol_to_c_name_address \ 15997lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15998lt_cv_nm_interface \ 15999nm_file_list_spec \ 16000lt_cv_truncate_bin \ 16001lt_prog_compiler_no_builtin_flag \ 16002lt_prog_compiler_pic \ 16003lt_prog_compiler_wl \ 16004lt_prog_compiler_static \ 16005lt_cv_prog_compiler_c_o \ 16006need_locks \ 16007MANIFEST_TOOL \ 16008DSYMUTIL \ 16009NMEDIT \ 16010LIPO \ 16011OTOOL \ 16012OTOOL64 \ 16013shrext_cmds \ 16014export_dynamic_flag_spec \ 16015whole_archive_flag_spec \ 16016compiler_needs_object \ 16017with_gnu_ld \ 16018allow_undefined_flag \ 16019no_undefined_flag \ 16020hardcode_libdir_flag_spec \ 16021hardcode_libdir_separator \ 16022exclude_expsyms \ 16023include_expsyms \ 16024file_list_spec \ 16025variables_saved_for_relink \ 16026libname_spec \ 16027library_names_spec \ 16028soname_spec \ 16029install_override_mode \ 16030finish_eval \ 16031old_striplib \ 16032striplib; do 16033 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16034 *[\\\\\\\`\\"\\\$]*) 16035 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16036 ;; 16037 *) 16038 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16039 ;; 16040 esac 16041done 16042 16043# Double-quote double-evaled strings. 16044for var in reload_cmds \ 16045old_postinstall_cmds \ 16046old_postuninstall_cmds \ 16047old_archive_cmds \ 16048extract_expsyms_cmds \ 16049old_archive_from_new_cmds \ 16050old_archive_from_expsyms_cmds \ 16051archive_cmds \ 16052archive_expsym_cmds \ 16053module_cmds \ 16054module_expsym_cmds \ 16055export_symbols_cmds \ 16056prelink_cmds \ 16057postlink_cmds \ 16058postinstall_cmds \ 16059postuninstall_cmds \ 16060finish_cmds \ 16061sys_lib_search_path_spec \ 16062configure_time_dlsearch_path \ 16063configure_time_lt_sys_library_path; do 16064 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16065 *[\\\\\\\`\\"\\\$]*) 16066 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16067 ;; 16068 *) 16069 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16070 ;; 16071 esac 16072done 16073 16074ac_aux_dir='$ac_aux_dir' 16075 16076# See if we are running on zsh, and set the options that allow our 16077# commands through without removal of \ escapes INIT. 16078if test -n "\${ZSH_VERSION+set}"; then 16079 setopt NO_GLOB_SUBST 16080fi 16081 16082 16083 PACKAGE='$PACKAGE' 16084 VERSION='$VERSION' 16085 RM='$RM' 16086 ofile='$ofile' 16087 16088 16089 16090 16091_ACEOF 16092 16093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16094 16095# Handling of arguments. 16096for ac_config_target in $ac_config_targets 16097do 16098 case $ac_config_target in 16099 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16100 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16101 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16102 "libmdf.spec") CONFIG_FILES="$CONFIG_FILES libmdf.spec" ;; 16103 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;; 16104 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16105 "libmdf.pc") CONFIG_FILES="$CONFIG_FILES libmdf.pc" ;; 16106 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16107 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 16108 16109 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16110 esac 16111done 16112 16113 16114# If the user did not use the arguments to specify the items to instantiate, 16115# then the envvar interface is used. Set only those that are not. 16116# We use the long form for the default assignment because of an extremely 16117# bizarre bug on SunOS 4.1.3. 16118if $ac_need_defaults; then 16119 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16120 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16121 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16122fi 16123 16124# Have a temporary directory for convenience. Make it in the build tree 16125# simply because there is no reason against having it here, and in addition, 16126# creating and moving files from /tmp can sometimes cause problems. 16127# Hook for its removal unless debugging. 16128# Note that there is a small window in which the directory will not be cleaned: 16129# after its creation but before its name has been assigned to `$tmp'. 16130$debug || 16131{ 16132 tmp= ac_tmp= 16133 trap 'exit_status=$? 16134 : "${ac_tmp:=$tmp}" 16135 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16136' 0 16137 trap 'as_fn_exit 1' 1 2 13 15 16138} 16139# Create a (secure) tmp directory for tmp files. 16140 16141{ 16142 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16143 test -d "$tmp" 16144} || 16145{ 16146 tmp=./conf$$-$RANDOM 16147 (umask 077 && mkdir "$tmp") 16148} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16149ac_tmp=$tmp 16150 16151# Set up the scripts for CONFIG_FILES section. 16152# No need to generate them if there are no CONFIG_FILES. 16153# This happens for instance with `./config.status config.h'. 16154if test -n "$CONFIG_FILES"; then 16155 16156 16157ac_cr=`echo X | tr X '\015'` 16158# On cygwin, bash can eat \r inside `` if the user requested igncr. 16159# But we know of no other shell where ac_cr would be empty at this 16160# point, so we can use a bashism as a fallback. 16161if test "x$ac_cr" = x; then 16162 eval ac_cr=\$\'\\r\' 16163fi 16164ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16165if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16166 ac_cs_awk_cr='\\r' 16167else 16168 ac_cs_awk_cr=$ac_cr 16169fi 16170 16171echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16172_ACEOF 16173 16174 16175{ 16176 echo "cat >conf$$subs.awk <<_ACEOF" && 16177 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16178 echo "_ACEOF" 16179} >conf$$subs.sh || 16180 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16181ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16182ac_delim='%!_!# ' 16183for ac_last_try in false false false false false :; do 16184 . ./conf$$subs.sh || 16185 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16186 16187 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16188 if test $ac_delim_n = $ac_delim_num; then 16189 break 16190 elif $ac_last_try; then 16191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16192 else 16193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16194 fi 16195done 16196rm -f conf$$subs.sh 16197 16198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16199cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16200_ACEOF 16201sed -n ' 16202h 16203s/^/S["/; s/!.*/"]=/ 16204p 16205g 16206s/^[^!]*!// 16207:repl 16208t repl 16209s/'"$ac_delim"'$// 16210t delim 16211:nl 16212h 16213s/\(.\{148\}\)..*/\1/ 16214t more1 16215s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16216p 16217n 16218b repl 16219:more1 16220s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16221p 16222g 16223s/.\{148\}// 16224t nl 16225:delim 16226h 16227s/\(.\{148\}\)..*/\1/ 16228t more2 16229s/["\\]/\\&/g; s/^/"/; s/$/"/ 16230p 16231b 16232:more2 16233s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16234p 16235g 16236s/.\{148\}// 16237t delim 16238' <conf$$subs.awk | sed ' 16239/^[^""]/{ 16240 N 16241 s/\n// 16242} 16243' >>$CONFIG_STATUS || ac_write_fail=1 16244rm -f conf$$subs.awk 16245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16246_ACAWK 16247cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16248 for (key in S) S_is_set[key] = 1 16249 FS = "" 16250 16251} 16252{ 16253 line = $ 0 16254 nfields = split(line, field, "@") 16255 substed = 0 16256 len = length(field[1]) 16257 for (i = 2; i < nfields; i++) { 16258 key = field[i] 16259 keylen = length(key) 16260 if (S_is_set[key]) { 16261 value = S[key] 16262 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16263 len += length(value) + length(field[++i]) 16264 substed = 1 16265 } else 16266 len += 1 + keylen 16267 } 16268 16269 print line 16270} 16271 16272_ACAWK 16273_ACEOF 16274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16275if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16276 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16277else 16278 cat 16279fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16280 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16281_ACEOF 16282 16283# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16284# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16285# trailing colons and then remove the whole line if VPATH becomes empty 16286# (actually we leave an empty line to preserve line numbers). 16287if test "x$srcdir" = x.; then 16288 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16289h 16290s/// 16291s/^/:/ 16292s/[ ]*$/:/ 16293s/:\$(srcdir):/:/g 16294s/:\${srcdir}:/:/g 16295s/:@srcdir@:/:/g 16296s/^:*// 16297s/:*$// 16298x 16299s/\(=[ ]*\).*/\1/ 16300G 16301s/\n// 16302s/^[^=]*=[ ]*$// 16303}' 16304fi 16305 16306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16307fi # test -n "$CONFIG_FILES" 16308 16309# Set up the scripts for CONFIG_HEADERS section. 16310# No need to generate them if there are no CONFIG_HEADERS. 16311# This happens for instance with `./config.status Makefile'. 16312if test -n "$CONFIG_HEADERS"; then 16313cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16314BEGIN { 16315_ACEOF 16316 16317# Transform confdefs.h into an awk script `defines.awk', embedded as 16318# here-document in config.status, that substitutes the proper values into 16319# config.h.in to produce config.h. 16320 16321# Create a delimiter string that does not exist in confdefs.h, to ease 16322# handling of long lines. 16323ac_delim='%!_!# ' 16324for ac_last_try in false false :; do 16325 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16326 if test -z "$ac_tt"; then 16327 break 16328 elif $ac_last_try; then 16329 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16330 else 16331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16332 fi 16333done 16334 16335# For the awk script, D is an array of macro values keyed by name, 16336# likewise P contains macro parameters if any. Preserve backslash 16337# newline sequences. 16338 16339ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16340sed -n ' 16341s/.\{148\}/&'"$ac_delim"'/g 16342t rset 16343:rset 16344s/^[ ]*#[ ]*define[ ][ ]*/ / 16345t def 16346d 16347:def 16348s/\\$// 16349t bsnl 16350s/["\\]/\\&/g 16351s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16352D["\1"]=" \3"/p 16353s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16354d 16355:bsnl 16356s/["\\]/\\&/g 16357s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16358D["\1"]=" \3\\\\\\n"\\/p 16359t cont 16360s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16361t cont 16362d 16363:cont 16364n 16365s/.\{148\}/&'"$ac_delim"'/g 16366t clear 16367:clear 16368s/\\$// 16369t bsnlc 16370s/["\\]/\\&/g; s/^/"/; s/$/"/p 16371d 16372:bsnlc 16373s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16374b cont 16375' <confdefs.h | sed ' 16376s/'"$ac_delim"'/"\\\ 16377"/g' >>$CONFIG_STATUS || ac_write_fail=1 16378 16379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16380 for (key in D) D_is_set[key] = 1 16381 FS = "" 16382} 16383/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16384 line = \$ 0 16385 split(line, arg, " ") 16386 if (arg[1] == "#") { 16387 defundef = arg[2] 16388 mac1 = arg[3] 16389 } else { 16390 defundef = substr(arg[1], 2) 16391 mac1 = arg[2] 16392 } 16393 split(mac1, mac2, "(") #) 16394 macro = mac2[1] 16395 prefix = substr(line, 1, index(line, defundef) - 1) 16396 if (D_is_set[macro]) { 16397 # Preserve the white space surrounding the "#". 16398 print prefix "define", macro P[macro] D[macro] 16399 next 16400 } else { 16401 # Replace #undef with comments. This is necessary, for example, 16402 # in the case of _POSIX_SOURCE, which is predefined and required 16403 # on some systems where configure will not decide to define it. 16404 if (defundef == "undef") { 16405 print "/*", prefix defundef, macro, "*/" 16406 next 16407 } 16408 } 16409} 16410{ print } 16411_ACAWK 16412_ACEOF 16413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16414 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16415fi # test -n "$CONFIG_HEADERS" 16416 16417 16418eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16419shift 16420for ac_tag 16421do 16422 case $ac_tag in 16423 :[FHLC]) ac_mode=$ac_tag; continue;; 16424 esac 16425 case $ac_mode$ac_tag in 16426 :[FHL]*:*);; 16427 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16428 :[FH]-) ac_tag=-:-;; 16429 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16430 esac 16431 ac_save_IFS=$IFS 16432 IFS=: 16433 set x $ac_tag 16434 IFS=$ac_save_IFS 16435 shift 16436 ac_file=$1 16437 shift 16438 16439 case $ac_mode in 16440 :L) ac_source=$1;; 16441 :[FH]) 16442 ac_file_inputs= 16443 for ac_f 16444 do 16445 case $ac_f in 16446 -) ac_f="$ac_tmp/stdin";; 16447 *) # Look for the file first in the build tree, then in the source tree 16448 # (if the path is not absolute). The absolute path cannot be DOS-style, 16449 # because $ac_f cannot contain `:'. 16450 test -f "$ac_f" || 16451 case $ac_f in 16452 [\\/$]*) false;; 16453 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16454 esac || 16455 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16456 esac 16457 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16458 as_fn_append ac_file_inputs " '$ac_f'" 16459 done 16460 16461 # Let's still pretend it is `configure' which instantiates (i.e., don't 16462 # use $as_me), people would be surprised to read: 16463 # /* config.h. Generated by config.status. */ 16464 configure_input='Generated from '` 16465 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16466 `' by configure.' 16467 if test x"$ac_file" != x-; then 16468 configure_input="$ac_file. $configure_input" 16469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16470$as_echo "$as_me: creating $ac_file" >&6;} 16471 fi 16472 # Neutralize special characters interpreted by sed in replacement strings. 16473 case $configure_input in #( 16474 *\&* | *\|* | *\\* ) 16475 ac_sed_conf_input=`$as_echo "$configure_input" | 16476 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16477 *) ac_sed_conf_input=$configure_input;; 16478 esac 16479 16480 case $ac_tag in 16481 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16483 esac 16484 ;; 16485 esac 16486 16487 ac_dir=`$as_dirname -- "$ac_file" || 16488$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16489 X"$ac_file" : 'X\(//\)[^/]' \| \ 16490 X"$ac_file" : 'X\(//\)$' \| \ 16491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16492$as_echo X"$ac_file" | 16493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16494 s//\1/ 16495 q 16496 } 16497 /^X\(\/\/\)[^/].*/{ 16498 s//\1/ 16499 q 16500 } 16501 /^X\(\/\/\)$/{ 16502 s//\1/ 16503 q 16504 } 16505 /^X\(\/\).*/{ 16506 s//\1/ 16507 q 16508 } 16509 s/.*/./; q'` 16510 as_dir="$ac_dir"; as_fn_mkdir_p 16511 ac_builddir=. 16512 16513case "$ac_dir" in 16514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16515*) 16516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16517 # A ".." for each directory in $ac_dir_suffix. 16518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16519 case $ac_top_builddir_sub in 16520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16522 esac ;; 16523esac 16524ac_abs_top_builddir=$ac_pwd 16525ac_abs_builddir=$ac_pwd$ac_dir_suffix 16526# for backward compatibility: 16527ac_top_builddir=$ac_top_build_prefix 16528 16529case $srcdir in 16530 .) # We are building in place. 16531 ac_srcdir=. 16532 ac_top_srcdir=$ac_top_builddir_sub 16533 ac_abs_top_srcdir=$ac_pwd ;; 16534 [\\/]* | ?:[\\/]* ) # Absolute name. 16535 ac_srcdir=$srcdir$ac_dir_suffix; 16536 ac_top_srcdir=$srcdir 16537 ac_abs_top_srcdir=$srcdir ;; 16538 *) # Relative name. 16539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16540 ac_top_srcdir=$ac_top_build_prefix$srcdir 16541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16542esac 16543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16544 16545 16546 case $ac_mode in 16547 :F) 16548 # 16549 # CONFIG_FILE 16550 # 16551 16552 case $INSTALL in 16553 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16554 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16555 esac 16556 ac_MKDIR_P=$MKDIR_P 16557 case $MKDIR_P in 16558 [\\/$]* | ?:[\\/]* ) ;; 16559 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16560 esac 16561_ACEOF 16562 16563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16564# If the template does not know about datarootdir, expand it. 16565# FIXME: This hack should be removed a few years after 2.60. 16566ac_datarootdir_hack=; ac_datarootdir_seen= 16567ac_sed_dataroot=' 16568/datarootdir/ { 16569 p 16570 q 16571} 16572/@datadir@/p 16573/@docdir@/p 16574/@infodir@/p 16575/@localedir@/p 16576/@mandir@/p' 16577case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16578*datarootdir*) ac_datarootdir_seen=yes;; 16579*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16581$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16582_ACEOF 16583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16584 ac_datarootdir_hack=' 16585 s&@datadir@&$datadir&g 16586 s&@docdir@&$docdir&g 16587 s&@infodir@&$infodir&g 16588 s&@localedir@&$localedir&g 16589 s&@mandir@&$mandir&g 16590 s&\\\${datarootdir}&$datarootdir&g' ;; 16591esac 16592_ACEOF 16593 16594# Neutralize VPATH when `$srcdir' = `.'. 16595# Shell code in configure.ac might set extrasub. 16596# FIXME: do we really want to maintain this feature? 16597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16598ac_sed_extra="$ac_vpsub 16599$extrasub 16600_ACEOF 16601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16602:t 16603/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16604s|@configure_input@|$ac_sed_conf_input|;t t 16605s&@top_builddir@&$ac_top_builddir_sub&;t t 16606s&@top_build_prefix@&$ac_top_build_prefix&;t t 16607s&@srcdir@&$ac_srcdir&;t t 16608s&@abs_srcdir@&$ac_abs_srcdir&;t t 16609s&@top_srcdir@&$ac_top_srcdir&;t t 16610s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16611s&@builddir@&$ac_builddir&;t t 16612s&@abs_builddir@&$ac_abs_builddir&;t t 16613s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16614s&@INSTALL@&$ac_INSTALL&;t t 16615s&@MKDIR_P@&$ac_MKDIR_P&;t t 16616$ac_datarootdir_hack 16617" 16618eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16619 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16620 16621test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16622 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16623 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16624 "$ac_tmp/out"`; test -z "$ac_out"; } && 16625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16626which seems to be undefined. Please make sure it is defined" >&5 16627$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16628which seems to be undefined. Please make sure it is defined" >&2;} 16629 16630 rm -f "$ac_tmp/stdin" 16631 case $ac_file in 16632 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16633 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16634 esac \ 16635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16636 ;; 16637 :H) 16638 # 16639 # CONFIG_HEADER 16640 # 16641 if test x"$ac_file" != x-; then 16642 { 16643 $as_echo "/* $configure_input */" \ 16644 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16645 } >"$ac_tmp/config.h" \ 16646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16647 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16648 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16649$as_echo "$as_me: $ac_file is unchanged" >&6;} 16650 else 16651 rm -f "$ac_file" 16652 mv "$ac_tmp/config.h" "$ac_file" \ 16653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16654 fi 16655 else 16656 $as_echo "/* $configure_input */" \ 16657 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16658 || as_fn_error $? "could not create -" "$LINENO" 5 16659 fi 16660# Compute "$ac_file"'s index in $config_headers. 16661_am_arg="$ac_file" 16662_am_stamp_count=1 16663for _am_header in $config_headers :; do 16664 case $_am_header in 16665 $_am_arg | $_am_arg:* ) 16666 break ;; 16667 * ) 16668 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16669 esac 16670done 16671echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16672$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16673 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16674 X"$_am_arg" : 'X\(//\)$' \| \ 16675 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16676$as_echo X"$_am_arg" | 16677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16678 s//\1/ 16679 q 16680 } 16681 /^X\(\/\/\)[^/].*/{ 16682 s//\1/ 16683 q 16684 } 16685 /^X\(\/\/\)$/{ 16686 s//\1/ 16687 q 16688 } 16689 /^X\(\/\).*/{ 16690 s//\1/ 16691 q 16692 } 16693 s/.*/./; q'`/stamp-h$_am_stamp_count 16694 ;; 16695 16696 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16697$as_echo "$as_me: executing $ac_file commands" >&6;} 16698 ;; 16699 esac 16700 16701 16702 case $ac_file$ac_mode in 16703 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16704 # Older Autoconf quotes --file arguments for eval, but not when files 16705 # are listed without --file. Let's play safe and only enable the eval 16706 # if we detect the quoting. 16707 case $CONFIG_FILES in 16708 *\'*) eval set x "$CONFIG_FILES" ;; 16709 *) set x $CONFIG_FILES ;; 16710 esac 16711 shift 16712 for mf 16713 do 16714 # Strip MF so we end up with the name of the file. 16715 mf=`echo "$mf" | sed -e 's/:.*$//'` 16716 # Check whether this is an Automake generated Makefile or not. 16717 # We used to match only the files named 'Makefile.in', but 16718 # some people rename them; so instead we look at the file content. 16719 # Grep'ing the first line is not enough: some people post-process 16720 # each Makefile.in and add a new line on top of each file to say so. 16721 # Grep'ing the whole file is not good either: AIX grep has a line 16722 # limit of 2048, but all sed's we know have understand at least 4000. 16723 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16724 dirpart=`$as_dirname -- "$mf" || 16725$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16726 X"$mf" : 'X\(//\)[^/]' \| \ 16727 X"$mf" : 'X\(//\)$' \| \ 16728 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16729$as_echo X"$mf" | 16730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16731 s//\1/ 16732 q 16733 } 16734 /^X\(\/\/\)[^/].*/{ 16735 s//\1/ 16736 q 16737 } 16738 /^X\(\/\/\)$/{ 16739 s//\1/ 16740 q 16741 } 16742 /^X\(\/\).*/{ 16743 s//\1/ 16744 q 16745 } 16746 s/.*/./; q'` 16747 else 16748 continue 16749 fi 16750 # Extract the definition of DEPDIR, am__include, and am__quote 16751 # from the Makefile without running 'make'. 16752 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16753 test -z "$DEPDIR" && continue 16754 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16755 test -z "$am__include" && continue 16756 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16757 # Find all dependency output files, they are included files with 16758 # $(DEPDIR) in their names. We invoke sed twice because it is the 16759 # simplest approach to changing $(DEPDIR) to its actual value in the 16760 # expansion. 16761 for file in `sed -n " 16762 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16763 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16764 # Make sure the directory exists. 16765 test -f "$dirpart/$file" && continue 16766 fdir=`$as_dirname -- "$file" || 16767$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16768 X"$file" : 'X\(//\)[^/]' \| \ 16769 X"$file" : 'X\(//\)$' \| \ 16770 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16771$as_echo X"$file" | 16772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16773 s//\1/ 16774 q 16775 } 16776 /^X\(\/\/\)[^/].*/{ 16777 s//\1/ 16778 q 16779 } 16780 /^X\(\/\/\)$/{ 16781 s//\1/ 16782 q 16783 } 16784 /^X\(\/\).*/{ 16785 s//\1/ 16786 q 16787 } 16788 s/.*/./; q'` 16789 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16790 # echo "creating $dirpart/$file" 16791 echo '# dummy' > "$dirpart/$file" 16792 done 16793 done 16794} 16795 ;; 16796 "libtool":C) 16797 16798 # See if we are running on zsh, and set the options that allow our 16799 # commands through without removal of \ escapes. 16800 if test -n "${ZSH_VERSION+set}"; then 16801 setopt NO_GLOB_SUBST 16802 fi 16803 16804 cfgfile=${ofile}T 16805 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16806 $RM "$cfgfile" 16807 16808 cat <<_LT_EOF >> "$cfgfile" 16809#! $SHELL 16810# Generated automatically by $as_me ($PACKAGE) $VERSION 16811# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16812# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16813 16814# Provide generalized library-building support services. 16815# Written by Gordon Matzigkeit, 1996 16816 16817# Copyright (C) 2014 Free Software Foundation, Inc. 16818# This is free software; see the source for copying conditions. There is NO 16819# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16820 16821# GNU Libtool is free software; you can redistribute it and/or modify 16822# it under the terms of the GNU General Public License as published by 16823# the Free Software Foundation; either version 2 of of the License, or 16824# (at your option) any later version. 16825# 16826# As a special exception to the GNU General Public License, if you 16827# distribute this file as part of a program or library that is built 16828# using GNU Libtool, you may include this file under the same 16829# distribution terms that you use for the rest of that program. 16830# 16831# GNU Libtool is distributed in the hope that it will be useful, but 16832# WITHOUT ANY WARRANTY; without even the implied warranty of 16833# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16834# GNU General Public License for more details. 16835# 16836# You should have received a copy of the GNU General Public License 16837# along with this program. If not, see <http://www.gnu.org/licenses/>. 16838 16839 16840# The names of the tagged configurations supported by this script. 16841available_tags='' 16842 16843# Configured defaults for sys_lib_dlsearch_path munging. 16844: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 16845 16846# ### BEGIN LIBTOOL CONFIG 16847 16848# Which release of libtool.m4 was used? 16849macro_version=$macro_version 16850macro_revision=$macro_revision 16851 16852# Assembler program. 16853AS=$lt_AS 16854 16855# DLL creation program. 16856DLLTOOL=$lt_DLLTOOL 16857 16858# Object dumper program. 16859OBJDUMP=$lt_OBJDUMP 16860 16861# Whether or not to build shared libraries. 16862build_libtool_libs=$enable_shared 16863 16864# Whether or not to build static libraries. 16865build_old_libs=$enable_static 16866 16867# What type of objects to build. 16868pic_mode=$pic_mode 16869 16870# Whether or not to optimize for fast installation. 16871fast_install=$enable_fast_install 16872 16873# Shared archive member basename,for filename based shared library versioning on AIX. 16874shared_archive_member_spec=$shared_archive_member_spec 16875 16876# Shell to use when invoking shell scripts. 16877SHELL=$lt_SHELL 16878 16879# An echo program that protects backslashes. 16880ECHO=$lt_ECHO 16881 16882# The PATH separator for the build system. 16883PATH_SEPARATOR=$lt_PATH_SEPARATOR 16884 16885# The host system. 16886host_alias=$host_alias 16887host=$host 16888host_os=$host_os 16889 16890# The build system. 16891build_alias=$build_alias 16892build=$build 16893build_os=$build_os 16894 16895# A sed program that does not truncate output. 16896SED=$lt_SED 16897 16898# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16899Xsed="\$SED -e 1s/^X//" 16900 16901# A grep program that handles long lines. 16902GREP=$lt_GREP 16903 16904# An ERE matcher. 16905EGREP=$lt_EGREP 16906 16907# A literal string matcher. 16908FGREP=$lt_FGREP 16909 16910# A BSD- or MS-compatible name lister. 16911NM=$lt_NM 16912 16913# Whether we need soft or hard links. 16914LN_S=$lt_LN_S 16915 16916# What is the maximum length of a command? 16917max_cmd_len=$max_cmd_len 16918 16919# Object file suffix (normally "o"). 16920objext=$ac_objext 16921 16922# Executable file suffix (normally ""). 16923exeext=$exeext 16924 16925# whether the shell understands "unset". 16926lt_unset=$lt_unset 16927 16928# turn spaces into newlines. 16929SP2NL=$lt_lt_SP2NL 16930 16931# turn newlines into spaces. 16932NL2SP=$lt_lt_NL2SP 16933 16934# convert \$build file names to \$host format. 16935to_host_file_cmd=$lt_cv_to_host_file_cmd 16936 16937# convert \$build files to toolchain format. 16938to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16939 16940# Method to check whether dependent libraries are shared objects. 16941deplibs_check_method=$lt_deplibs_check_method 16942 16943# Command to use when deplibs_check_method = "file_magic". 16944file_magic_cmd=$lt_file_magic_cmd 16945 16946# How to find potential files when deplibs_check_method = "file_magic". 16947file_magic_glob=$lt_file_magic_glob 16948 16949# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16950want_nocaseglob=$lt_want_nocaseglob 16951 16952# Command to associate shared and link libraries. 16953sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16954 16955# The archiver. 16956AR=$lt_AR 16957 16958# Flags to create an archive. 16959AR_FLAGS=$lt_AR_FLAGS 16960 16961# How to feed a file listing to the archiver. 16962archiver_list_spec=$lt_archiver_list_spec 16963 16964# A symbol stripping program. 16965STRIP=$lt_STRIP 16966 16967# Commands used to install an old-style archive. 16968RANLIB=$lt_RANLIB 16969old_postinstall_cmds=$lt_old_postinstall_cmds 16970old_postuninstall_cmds=$lt_old_postuninstall_cmds 16971 16972# Whether to use a lock for old archive extraction. 16973lock_old_archive_extraction=$lock_old_archive_extraction 16974 16975# A C compiler. 16976LTCC=$lt_CC 16977 16978# LTCC compiler flags. 16979LTCFLAGS=$lt_CFLAGS 16980 16981# Take the output of nm and produce a listing of raw symbols and C names. 16982global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16983 16984# Transform the output of nm in a proper C declaration. 16985global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16986 16987# Transform the output of nm into a list of symbols to manually relocate. 16988global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 16989 16990# Transform the output of nm in a C name address pair. 16991global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16992 16993# Transform the output of nm in a C name address pair when lib prefix is needed. 16994global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16995 16996# The name lister interface. 16997nm_interface=$lt_lt_cv_nm_interface 16998 16999# Specify filename containing input files for \$NM. 17000nm_file_list_spec=$lt_nm_file_list_spec 17001 17002# The root where to search for dependent libraries,and where our libraries should be installed. 17003lt_sysroot=$lt_sysroot 17004 17005# Command to truncate a binary pipe. 17006lt_truncate_bin=$lt_lt_cv_truncate_bin 17007 17008# The name of the directory that contains temporary libtool files. 17009objdir=$objdir 17010 17011# Used to examine libraries when file_magic_cmd begins with "file". 17012MAGIC_CMD=$MAGIC_CMD 17013 17014# Must we lock files when doing compilation? 17015need_locks=$lt_need_locks 17016 17017# Manifest tool. 17018MANIFEST_TOOL=$lt_MANIFEST_TOOL 17019 17020# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17021DSYMUTIL=$lt_DSYMUTIL 17022 17023# Tool to change global to local symbols on Mac OS X. 17024NMEDIT=$lt_NMEDIT 17025 17026# Tool to manipulate fat objects and archives on Mac OS X. 17027LIPO=$lt_LIPO 17028 17029# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17030OTOOL=$lt_OTOOL 17031 17032# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17033OTOOL64=$lt_OTOOL64 17034 17035# Old archive suffix (normally "a"). 17036libext=$libext 17037 17038# Shared library suffix (normally ".so"). 17039shrext_cmds=$lt_shrext_cmds 17040 17041# The commands to extract the exported symbol list from a shared archive. 17042extract_expsyms_cmds=$lt_extract_expsyms_cmds 17043 17044# Variables whose values should be saved in libtool wrapper scripts and 17045# restored at link time. 17046variables_saved_for_relink=$lt_variables_saved_for_relink 17047 17048# Do we need the "lib" prefix for modules? 17049need_lib_prefix=$need_lib_prefix 17050 17051# Do we need a version for libraries? 17052need_version=$need_version 17053 17054# Library versioning type. 17055version_type=$version_type 17056 17057# Shared library runtime path variable. 17058runpath_var=$runpath_var 17059 17060# Shared library path variable. 17061shlibpath_var=$shlibpath_var 17062 17063# Is shlibpath searched before the hard-coded library search path? 17064shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17065 17066# Format of library name prefix. 17067libname_spec=$lt_libname_spec 17068 17069# List of archive names. First name is the real one, the rest are links. 17070# The last name is the one that the linker finds with -lNAME 17071library_names_spec=$lt_library_names_spec 17072 17073# The coded name of the library, if different from the real name. 17074soname_spec=$lt_soname_spec 17075 17076# Permission mode override for installation of shared libraries. 17077install_override_mode=$lt_install_override_mode 17078 17079# Command to use after installation of a shared archive. 17080postinstall_cmds=$lt_postinstall_cmds 17081 17082# Command to use after uninstallation of a shared archive. 17083postuninstall_cmds=$lt_postuninstall_cmds 17084 17085# Commands used to finish a libtool library installation in a directory. 17086finish_cmds=$lt_finish_cmds 17087 17088# As "finish_cmds", except a single script fragment to be evaled but 17089# not shown. 17090finish_eval=$lt_finish_eval 17091 17092# Whether we should hardcode library paths into libraries. 17093hardcode_into_libs=$hardcode_into_libs 17094 17095# Compile-time system search path for libraries. 17096sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17097 17098# Detected run-time system search path for libraries. 17099sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 17100 17101# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 17102configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 17103 17104# Whether dlopen is supported. 17105dlopen_support=$enable_dlopen 17106 17107# Whether dlopen of programs is supported. 17108dlopen_self=$enable_dlopen_self 17109 17110# Whether dlopen of statically linked programs is supported. 17111dlopen_self_static=$enable_dlopen_self_static 17112 17113# Commands to strip libraries. 17114old_striplib=$lt_old_striplib 17115striplib=$lt_striplib 17116 17117 17118# The linker used to build libraries. 17119LD=$lt_LD 17120 17121# How to create reloadable object files. 17122reload_flag=$lt_reload_flag 17123reload_cmds=$lt_reload_cmds 17124 17125# Commands used to build an old-style archive. 17126old_archive_cmds=$lt_old_archive_cmds 17127 17128# A language specific compiler. 17129CC=$lt_compiler 17130 17131# Is the compiler the GNU compiler? 17132with_gcc=$GCC 17133 17134# Compiler flag to turn off builtin functions. 17135no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17136 17137# Additional compiler flags for building library objects. 17138pic_flag=$lt_lt_prog_compiler_pic 17139 17140# How to pass a linker flag through the compiler. 17141wl=$lt_lt_prog_compiler_wl 17142 17143# Compiler flag to prevent dynamic linking. 17144link_static_flag=$lt_lt_prog_compiler_static 17145 17146# Does compiler simultaneously support -c and -o options? 17147compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17148 17149# Whether or not to add -lc for building shared libraries. 17150build_libtool_need_lc=$archive_cmds_need_lc 17151 17152# Whether or not to disallow shared libs when runtime libs are static. 17153allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17154 17155# Compiler flag to allow reflexive dlopens. 17156export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17157 17158# Compiler flag to generate shared objects directly from archives. 17159whole_archive_flag_spec=$lt_whole_archive_flag_spec 17160 17161# Whether the compiler copes with passing no objects directly. 17162compiler_needs_object=$lt_compiler_needs_object 17163 17164# Create an old-style archive from a shared archive. 17165old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17166 17167# Create a temporary old-style archive to link instead of a shared archive. 17168old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17169 17170# Commands used to build a shared archive. 17171archive_cmds=$lt_archive_cmds 17172archive_expsym_cmds=$lt_archive_expsym_cmds 17173 17174# Commands used to build a loadable module if different from building 17175# a shared archive. 17176module_cmds=$lt_module_cmds 17177module_expsym_cmds=$lt_module_expsym_cmds 17178 17179# Whether we are building with GNU ld or not. 17180with_gnu_ld=$lt_with_gnu_ld 17181 17182# Flag that allows shared libraries with undefined symbols to be built. 17183allow_undefined_flag=$lt_allow_undefined_flag 17184 17185# Flag that enforces no undefined symbols. 17186no_undefined_flag=$lt_no_undefined_flag 17187 17188# Flag to hardcode \$libdir into a binary during linking. 17189# This must work even if \$libdir does not exist 17190hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17191 17192# Whether we need a single "-rpath" flag with a separated argument. 17193hardcode_libdir_separator=$lt_hardcode_libdir_separator 17194 17195# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17196# DIR into the resulting binary. 17197hardcode_direct=$hardcode_direct 17198 17199# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17200# DIR into the resulting binary and the resulting library dependency is 17201# "absolute",i.e impossible to change by setting \$shlibpath_var if the 17202# library is relocated. 17203hardcode_direct_absolute=$hardcode_direct_absolute 17204 17205# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17206# into the resulting binary. 17207hardcode_minus_L=$hardcode_minus_L 17208 17209# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17210# into the resulting binary. 17211hardcode_shlibpath_var=$hardcode_shlibpath_var 17212 17213# Set to "yes" if building a shared library automatically hardcodes DIR 17214# into the library and all subsequent libraries and executables linked 17215# against it. 17216hardcode_automatic=$hardcode_automatic 17217 17218# Set to yes if linker adds runtime paths of dependent libraries 17219# to runtime path list. 17220inherit_rpath=$inherit_rpath 17221 17222# Whether libtool must link a program against all its dependency libraries. 17223link_all_deplibs=$link_all_deplibs 17224 17225# Set to "yes" if exported symbols are required. 17226always_export_symbols=$always_export_symbols 17227 17228# The commands to list exported symbols. 17229export_symbols_cmds=$lt_export_symbols_cmds 17230 17231# Symbols that should not be listed in the preloaded symbols. 17232exclude_expsyms=$lt_exclude_expsyms 17233 17234# Symbols that must always be exported. 17235include_expsyms=$lt_include_expsyms 17236 17237# Commands necessary for linking programs (against libraries) with templates. 17238prelink_cmds=$lt_prelink_cmds 17239 17240# Commands necessary for finishing linking programs. 17241postlink_cmds=$lt_postlink_cmds 17242 17243# Specify filename containing input files. 17244file_list_spec=$lt_file_list_spec 17245 17246# How to hardcode a shared library path into an executable. 17247hardcode_action=$hardcode_action 17248 17249# ### END LIBTOOL CONFIG 17250 17251_LT_EOF 17252 17253 cat <<'_LT_EOF' >> "$cfgfile" 17254 17255# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 17256 17257# func_munge_path_list VARIABLE PATH 17258# ----------------------------------- 17259# VARIABLE is name of variable containing _space_ separated list of 17260# directories to be munged by the contents of PATH, which is string 17261# having a format: 17262# "DIR[:DIR]:" 17263# string "DIR[ DIR]" will be prepended to VARIABLE 17264# ":DIR[:DIR]" 17265# string "DIR[ DIR]" will be appended to VARIABLE 17266# "DIRP[:DIRP]::[DIRA:]DIRA" 17267# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17268# "DIRA[ DIRA]" will be appended to VARIABLE 17269# "DIR[:DIR]" 17270# VARIABLE will be replaced by "DIR[ DIR]" 17271func_munge_path_list () 17272{ 17273 case x$2 in 17274 x) 17275 ;; 17276 *:) 17277 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17278 ;; 17279 x:*) 17280 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17281 ;; 17282 *::*) 17283 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17284 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17285 ;; 17286 *) 17287 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17288 ;; 17289 esac 17290} 17291 17292 17293# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 17294func_cc_basename () 17295{ 17296 for cc_temp in $*""; do 17297 case $cc_temp in 17298 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17299 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17300 \-*) ;; 17301 *) break;; 17302 esac 17303 done 17304 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17305} 17306 17307 17308# ### END FUNCTIONS SHARED WITH CONFIGURE 17309 17310_LT_EOF 17311 17312 case $host_os in 17313 aix3*) 17314 cat <<\_LT_EOF >> "$cfgfile" 17315# AIX sometimes has problems with the GCC collect2 program. For some 17316# reason, if we set the COLLECT_NAMES environment variable, the problems 17317# vanish in a puff of smoke. 17318if test set != "${COLLECT_NAMES+set}"; then 17319 COLLECT_NAMES= 17320 export COLLECT_NAMES 17321fi 17322_LT_EOF 17323 ;; 17324 esac 17325 17326 17327ltmain=$ac_aux_dir/ltmain.sh 17328 17329 17330 # We use sed instead of cat because bash on DJGPP gets confused if 17331 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17332 # text mode, it properly converts lines to CR/LF. This bash problem 17333 # is reportedly fixed, but why not run on old versions too? 17334 sed '$q' "$ltmain" >> "$cfgfile" \ 17335 || (rm -f "$cfgfile"; exit 1) 17336 17337 mv -f "$cfgfile" "$ofile" || 17338 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17339 chmod +x "$ofile" 17340 17341 ;; 17342 17343 esac 17344done # for ac_tag 17345 17346 17347as_fn_exit 0 17348_ACEOF 17349ac_clean_files=$ac_clean_files_save 17350 17351test $ac_write_fail = 0 || 17352 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17353 17354 17355# configure is writing to config.log, and then calls config.status. 17356# config.status does its own redirection, appending to config.log. 17357# Unfortunately, on DOS this fails, as config.log is still kept open 17358# by configure, so config.status won't be able to write to it; its 17359# output is simply discarded. So we exec the FD to /dev/null, 17360# effectively closing config.log, so it can be properly (re)opened and 17361# appended to by config.status. When coming back to configure, we 17362# need to make the FD available again. 17363if test "$no_create" != yes; then 17364 ac_cs_success=: 17365 ac_config_status_args= 17366 test "$silent" = yes && 17367 ac_config_status_args="$ac_config_status_args --quiet" 17368 exec 5>/dev/null 17369 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17370 exec 5>>config.log 17371 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17372 # would make configure fail if this is the last instruction. 17373 $ac_cs_success || as_fn_exit 1 17374fi 17375if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17377$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17378fi 17379 17380