1#! /bin/sh 2# From configure.ac Id: configure.ac,v 1.10 2012/07/09 20:21:01 simon Exp . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for ipa_sdb 1.1.1. 5# 6# Report bugs to <simon@comsys.ntu-kpi.kiev.ua>. 7# 8# 9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37as_nl=' 38' 39export as_nl 40# Printing a long string crashes Solaris 7 /usr/bin/printf. 41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44# Prefer a ksh shell builtin over an external printf program on Solaris, 45# but without wasting forks for bash or zsh. 46if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# IFS 86# We need space, tab and new line, in precisely that order. Quoting is 87# there to prevent editors from complaining about space-tab. 88# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89# splitting by setting IFS to empty value.) 90IFS=" "" $as_nl" 91 92# Find who we are. Look in the path if we contain no directory separator. 93as_myself= 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138# Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143# neutralization value for shells without unset; and this also 144# works around shells that cannot unset nonexistent variables. 145# Preserve -v and -x to the replacement shell. 146BASH_ENV=/dev/null 147ENV=/dev/null 148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154esac 155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156# Admittedly, this is quite paranoid, since all the known shells bail 157# out after a failed `exec'. 158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177esac 178fi 179" 180 as_required="as_fn_return () { (exit \$1); } 181as_fn_success () { as_fn_return 0; } 182as_fn_failure () { as_fn_return 1; } 183as_fn_ret_success () { return 0; } 184as_fn_ret_failure () { return 1; } 185 186exitcode=0 187as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193else 194 exitcode=1; echo positional parameters were not saved. 195fi 196test x\$exitcode = x0 || exit 1 197test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 210test \$(( 1 + 1 )) = 2 || exit 1" 211 if (eval "$as_required") 2>/dev/null; then : 212 as_have_required=yes 213else 214 as_have_required=no 215fi 216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 217 218else 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220as_found=false 221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 222do 223 IFS=$as_save_IFS 224 test -z "$as_dir" && as_dir=. 225 as_found=: 226 case $as_dir in #( 227 /*) 228 for as_base in sh bash ksh sh5; do 229 # Try only shells that exist, to save several forks. 230 as_shell=$as_dir/$as_base 231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 233 CONFIG_SHELL=$as_shell as_have_required=yes 234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 235 break 2 236fi 237fi 238 done;; 239 esac 240 as_found=false 241done 242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi; } 246IFS=$as_save_IFS 247 248 249 if test "x$CONFIG_SHELL" != x; then : 250 export CONFIG_SHELL 251 # We cannot yet assume a decent shell, so we have to provide a 252# neutralization value for shells without unset; and this also 253# works around shells that cannot unset nonexistent variables. 254# Preserve -v and -x to the replacement shell. 255BASH_ENV=/dev/null 256ENV=/dev/null 257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 258case $- in # (((( 259 *v*x* | *x*v* ) as_opts=-vx ;; 260 *v* ) as_opts=-v ;; 261 *x* ) as_opts=-x ;; 262 * ) as_opts= ;; 263esac 264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 265# Admittedly, this is quite paranoid, since all the known shells bail 266# out after a failed `exec'. 267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 268exit 255 269fi 270 271 if test x$as_have_required = xno; then : 272 $as_echo "$0: This script requires a shell more modern than all" 273 $as_echo "$0: the shells that I found on your system." 274 if test x${ZSH_VERSION+set} = xset ; then 275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 $as_echo "$0: Please tell bug-autoconf@gnu.org and 279$0: simon@comsys.ntu-kpi.kiev.ua about your system, 280$0: including any error possibly output before this 281$0: message. Then install a modern shell, or manually run 282$0: the script under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='ipa_sdb' 593PACKAGE_TARNAME='ipa_sdb' 594PACKAGE_VERSION='1.1.1' 595PACKAGE_STRING='ipa_sdb 1.1.1' 596PACKAGE_BUGREPORT='simon@comsys.ntu-kpi.kiev.ua' 597PACKAGE_URL='' 598 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_c_werror_flag= 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640with_mandir_ru 641SDB_DUMP_LIBS 642SDB_DUMP_LDFLAGS 643SDB_DUMP_CPPFLAGS 644SDB_DUMP_CFLAGS 645SDB_ST_LIBS 646SDB_ST_LDFLAGS 647SDB_ST_CPPFLAGS 648SDB_ST_CFLAGS 649SDB_DB_LIBS 650SDB_DB_LDFLAGS 651SDB_DB_CPPFLAGS 652SDB_DB_CFLAGS 653CPP 654OTOOL64 655OTOOL 656LIPO 657NMEDIT 658DSYMUTIL 659MANIFEST_TOOL 660RANLIB 661ac_ct_AR 662AR 663DLLTOOL 664OBJDUMP 665LN_S 666NM 667ac_ct_DUMPBIN 668DUMPBIN 669LD 670FGREP 671EGREP 672GREP 673SED 674host_os 675host_vendor 676host_cpu 677host 678build_os 679build_vendor 680build_cpu 681build 682LIBTOOL 683am__fastdepCC_FALSE 684am__fastdepCC_TRUE 685CCDEPMODE 686am__nodep 687AMDEPBACKSLASH 688AMDEP_FALSE 689AMDEP_TRUE 690am__quote 691am__include 692DEPDIR 693OBJEXT 694EXEEXT 695ac_ct_CC 696CPPFLAGS 697LDFLAGS 698CFLAGS 699CC 700am__untar 701am__tar 702AMTAR 703am__leading_dot 704SET_MAKE 705AWK 706mkdir_p 707MKDIR_P 708INSTALL_STRIP_PROGRAM 709STRIP 710install_sh 711MAKEINFO 712AUTOHEADER 713AUTOMAKE 714AUTOCONF 715ACLOCAL 716VERSION 717PACKAGE 718CYGPATH_W 719am__isrc 720INSTALL_DATA 721INSTALL_SCRIPT 722INSTALL_PROGRAM 723target_alias 724host_alias 725build_alias 726LIBS 727ECHO_T 728ECHO_N 729ECHO_C 730DEFS 731mandir 732localedir 733libdir 734psdir 735pdfdir 736dvidir 737htmldir 738infodir 739docdir 740oldincludedir 741includedir 742localstatedir 743sharedstatedir 744sysconfdir 745datadir 746datarootdir 747libexecdir 748sbindir 749bindir 750program_transform_name 751prefix 752exec_prefix 753PACKAGE_URL 754PACKAGE_BUGREPORT 755PACKAGE_STRING 756PACKAGE_VERSION 757PACKAGE_TARNAME 758PACKAGE_NAME 759PATH_SEPARATOR 760SHELL' 761ac_subst_files='' 762ac_user_opts=' 763enable_option_checking 764enable_dependency_tracking 765enable_static 766enable_shared 767with_pic 768enable_fast_install 769with_gnu_ld 770with_sysroot 771enable_libtool_lock 772enable_gcc_warns 773enable_gcc_more_warns 774with_db_pthread 775with_st_pthread 776with_mandir_ru 777enable_autorules 778enable_rules 779enable_limits 780enable_thresholds 781' 782 ac_precious_vars='build_alias 783host_alias 784target_alias 785CC 786CFLAGS 787LDFLAGS 788LIBS 789CPPFLAGS 790CPP 791SDB_DB_CFLAGS 792SDB_DB_CPPFLAGS 793SDB_DB_LDFLAGS 794SDB_DB_LIBS 795SDB_ST_CFLAGS 796SDB_ST_CPPFLAGS 797SDB_ST_LDFLAGS 798SDB_ST_LIBS 799SDB_DUMP_CFLAGS 800SDB_DUMP_CPPFLAGS 801SDB_DUMP_LDFLAGS 802SDB_DUMP_LIBS' 803 804 805# Initialize some variables set by options. 806ac_init_help= 807ac_init_version=false 808ac_unrecognized_opts= 809ac_unrecognized_sep= 810# The variables have the same names as the options, with 811# dashes changed to underlines. 812cache_file=/dev/null 813exec_prefix=NONE 814no_create= 815no_recursion= 816prefix=NONE 817program_prefix=NONE 818program_suffix=NONE 819program_transform_name=s,x,x, 820silent= 821site= 822srcdir= 823verbose= 824x_includes=NONE 825x_libraries=NONE 826 827# Installation directory options. 828# These are left unexpanded so users can "make install exec_prefix=/foo" 829# and all the variables that are supposed to be based on exec_prefix 830# by default will actually change. 831# Use braces instead of parens because sh, perl, etc. also accept them. 832# (The list follows the same order as the GNU Coding Standards.) 833bindir='${exec_prefix}/bin' 834sbindir='${exec_prefix}/sbin' 835libexecdir='${exec_prefix}/libexec' 836datarootdir='${prefix}/share' 837datadir='${datarootdir}' 838sysconfdir='${prefix}/etc' 839sharedstatedir='${prefix}/com' 840localstatedir='${prefix}/var' 841includedir='${prefix}/include' 842oldincludedir='/usr/include' 843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 844infodir='${datarootdir}/info' 845htmldir='${docdir}' 846dvidir='${docdir}' 847pdfdir='${docdir}' 848psdir='${docdir}' 849libdir='${exec_prefix}/lib' 850localedir='${datarootdir}/locale' 851mandir='${datarootdir}/man' 852 853ac_prev= 854ac_dashdash= 855for ac_option 856do 857 # If the previous option needs an argument, assign it. 858 if test -n "$ac_prev"; then 859 eval $ac_prev=\$ac_option 860 ac_prev= 861 continue 862 fi 863 864 case $ac_option in 865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 866 *=) ac_optarg= ;; 867 *) ac_optarg=yes ;; 868 esac 869 870 # Accept the important Cygnus configure options, so we can diagnose typos. 871 872 case $ac_dashdash$ac_option in 873 --) 874 ac_dashdash=yes ;; 875 876 -bindir | --bindir | --bindi | --bind | --bin | --bi) 877 ac_prev=bindir ;; 878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 879 bindir=$ac_optarg ;; 880 881 -build | --build | --buil | --bui | --bu) 882 ac_prev=build_alias ;; 883 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 884 build_alias=$ac_optarg ;; 885 886 -cache-file | --cache-file | --cache-fil | --cache-fi \ 887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 888 ac_prev=cache_file ;; 889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 891 cache_file=$ac_optarg ;; 892 893 --config-cache | -C) 894 cache_file=config.cache ;; 895 896 -datadir | --datadir | --datadi | --datad) 897 ac_prev=datadir ;; 898 -datadir=* | --datadir=* | --datadi=* | --datad=*) 899 datadir=$ac_optarg ;; 900 901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 902 | --dataroo | --dataro | --datar) 903 ac_prev=datarootdir ;; 904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 906 datarootdir=$ac_optarg ;; 907 908 -disable-* | --disable-*) 909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 910 # Reject names that are not valid shell variable names. 911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 912 as_fn_error $? "invalid feature name: $ac_useropt" 913 ac_useropt_orig=$ac_useropt 914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 915 case $ac_user_opts in 916 *" 917"enable_$ac_useropt" 918"*) ;; 919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 920 ac_unrecognized_sep=', ';; 921 esac 922 eval enable_$ac_useropt=no ;; 923 924 -docdir | --docdir | --docdi | --doc | --do) 925 ac_prev=docdir ;; 926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 927 docdir=$ac_optarg ;; 928 929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 930 ac_prev=dvidir ;; 931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 932 dvidir=$ac_optarg ;; 933 934 -enable-* | --enable-*) 935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 936 # Reject names that are not valid shell variable names. 937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 938 as_fn_error $? "invalid feature name: $ac_useropt" 939 ac_useropt_orig=$ac_useropt 940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 941 case $ac_user_opts in 942 *" 943"enable_$ac_useropt" 944"*) ;; 945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 946 ac_unrecognized_sep=', ';; 947 esac 948 eval enable_$ac_useropt=\$ac_optarg ;; 949 950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 952 | --exec | --exe | --ex) 953 ac_prev=exec_prefix ;; 954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 956 | --exec=* | --exe=* | --ex=*) 957 exec_prefix=$ac_optarg ;; 958 959 -gas | --gas | --ga | --g) 960 # Obsolete; use --with-gas. 961 with_gas=yes ;; 962 963 -help | --help | --hel | --he | -h) 964 ac_init_help=long ;; 965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 966 ac_init_help=recursive ;; 967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 968 ac_init_help=short ;; 969 970 -host | --host | --hos | --ho) 971 ac_prev=host_alias ;; 972 -host=* | --host=* | --hos=* | --ho=*) 973 host_alias=$ac_optarg ;; 974 975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 976 ac_prev=htmldir ;; 977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 978 | --ht=*) 979 htmldir=$ac_optarg ;; 980 981 -includedir | --includedir | --includedi | --included | --include \ 982 | --includ | --inclu | --incl | --inc) 983 ac_prev=includedir ;; 984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 985 | --includ=* | --inclu=* | --incl=* | --inc=*) 986 includedir=$ac_optarg ;; 987 988 -infodir | --infodir | --infodi | --infod | --info | --inf) 989 ac_prev=infodir ;; 990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 991 infodir=$ac_optarg ;; 992 993 -libdir | --libdir | --libdi | --libd) 994 ac_prev=libdir ;; 995 -libdir=* | --libdir=* | --libdi=* | --libd=*) 996 libdir=$ac_optarg ;; 997 998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 999 | --libexe | --libex | --libe) 1000 ac_prev=libexecdir ;; 1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1002 | --libexe=* | --libex=* | --libe=*) 1003 libexecdir=$ac_optarg ;; 1004 1005 -localedir | --localedir | --localedi | --localed | --locale) 1006 ac_prev=localedir ;; 1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1008 localedir=$ac_optarg ;; 1009 1010 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1011 | --localstate | --localstat | --localsta | --localst | --locals) 1012 ac_prev=localstatedir ;; 1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1015 localstatedir=$ac_optarg ;; 1016 1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1018 ac_prev=mandir ;; 1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1020 mandir=$ac_optarg ;; 1021 1022 -nfp | --nfp | --nf) 1023 # Obsolete; use --without-fp. 1024 with_fp=no ;; 1025 1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1027 | --no-cr | --no-c | -n) 1028 no_create=yes ;; 1029 1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1032 no_recursion=yes ;; 1033 1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1036 | --oldin | --oldi | --old | --ol | --o) 1037 ac_prev=oldincludedir ;; 1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1041 oldincludedir=$ac_optarg ;; 1042 1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1044 ac_prev=prefix ;; 1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1046 prefix=$ac_optarg ;; 1047 1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1049 | --program-pre | --program-pr | --program-p) 1050 ac_prev=program_prefix ;; 1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1053 program_prefix=$ac_optarg ;; 1054 1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1056 | --program-suf | --program-su | --program-s) 1057 ac_prev=program_suffix ;; 1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1060 program_suffix=$ac_optarg ;; 1061 1062 -program-transform-name | --program-transform-name \ 1063 | --program-transform-nam | --program-transform-na \ 1064 | --program-transform-n | --program-transform- \ 1065 | --program-transform | --program-transfor \ 1066 | --program-transfo | --program-transf \ 1067 | --program-trans | --program-tran \ 1068 | --progr-tra | --program-tr | --program-t) 1069 ac_prev=program_transform_name ;; 1070 -program-transform-name=* | --program-transform-name=* \ 1071 | --program-transform-nam=* | --program-transform-na=* \ 1072 | --program-transform-n=* | --program-transform-=* \ 1073 | --program-transform=* | --program-transfor=* \ 1074 | --program-transfo=* | --program-transf=* \ 1075 | --program-trans=* | --program-tran=* \ 1076 | --progr-tra=* | --program-tr=* | --program-t=*) 1077 program_transform_name=$ac_optarg ;; 1078 1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1080 ac_prev=pdfdir ;; 1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1082 pdfdir=$ac_optarg ;; 1083 1084 -psdir | --psdir | --psdi | --psd | --ps) 1085 ac_prev=psdir ;; 1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1087 psdir=$ac_optarg ;; 1088 1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1090 | -silent | --silent | --silen | --sile | --sil) 1091 silent=yes ;; 1092 1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1094 ac_prev=sbindir ;; 1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1096 | --sbi=* | --sb=*) 1097 sbindir=$ac_optarg ;; 1098 1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1101 | --sharedst | --shareds | --shared | --share | --shar \ 1102 | --sha | --sh) 1103 ac_prev=sharedstatedir ;; 1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1107 | --sha=* | --sh=*) 1108 sharedstatedir=$ac_optarg ;; 1109 1110 -site | --site | --sit) 1111 ac_prev=site ;; 1112 -site=* | --site=* | --sit=*) 1113 site=$ac_optarg ;; 1114 1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1116 ac_prev=srcdir ;; 1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1118 srcdir=$ac_optarg ;; 1119 1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1121 | --syscon | --sysco | --sysc | --sys | --sy) 1122 ac_prev=sysconfdir ;; 1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1125 sysconfdir=$ac_optarg ;; 1126 1127 -target | --target | --targe | --targ | --tar | --ta | --t) 1128 ac_prev=target_alias ;; 1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1130 target_alias=$ac_optarg ;; 1131 1132 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1133 verbose=yes ;; 1134 1135 -version | --version | --versio | --versi | --vers | -V) 1136 ac_init_version=: ;; 1137 1138 -with-* | --with-*) 1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1140 # Reject names that are not valid shell variable names. 1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1142 as_fn_error $? "invalid package name: $ac_useropt" 1143 ac_useropt_orig=$ac_useropt 1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1145 case $ac_user_opts in 1146 *" 1147"with_$ac_useropt" 1148"*) ;; 1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1150 ac_unrecognized_sep=', ';; 1151 esac 1152 eval with_$ac_useropt=\$ac_optarg ;; 1153 1154 -without-* | --without-*) 1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1156 # Reject names that are not valid shell variable names. 1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1158 as_fn_error $? "invalid package name: $ac_useropt" 1159 ac_useropt_orig=$ac_useropt 1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1161 case $ac_user_opts in 1162 *" 1163"with_$ac_useropt" 1164"*) ;; 1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1166 ac_unrecognized_sep=', ';; 1167 esac 1168 eval with_$ac_useropt=no ;; 1169 1170 --x) 1171 # Obsolete; use --with-x. 1172 with_x=yes ;; 1173 1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1175 | --x-incl | --x-inc | --x-in | --x-i) 1176 ac_prev=x_includes ;; 1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1179 x_includes=$ac_optarg ;; 1180 1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1183 ac_prev=x_libraries ;; 1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1186 x_libraries=$ac_optarg ;; 1187 1188 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1189Try \`$0 --help' for more information" 1190 ;; 1191 1192 *=*) 1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1194 # Reject names that are not valid shell variable names. 1195 case $ac_envvar in #( 1196 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1198 esac 1199 eval $ac_envvar=\$ac_optarg 1200 export $ac_envvar ;; 1201 1202 *) 1203 # FIXME: should be removed in autoconf 3.0. 1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1208 ;; 1209 1210 esac 1211done 1212 1213if test -n "$ac_prev"; then 1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1215 as_fn_error $? "missing argument to $ac_option" 1216fi 1217 1218if test -n "$ac_unrecognized_opts"; then 1219 case $enable_option_checking in 1220 no) ;; 1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1223 esac 1224fi 1225 1226# Check all directory arguments for consistency. 1227for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1228 datadir sysconfdir sharedstatedir localstatedir includedir \ 1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1230 libdir localedir mandir 1231do 1232 eval ac_val=\$$ac_var 1233 # Remove trailing slashes. 1234 case $ac_val in 1235 */ ) 1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1237 eval $ac_var=\$ac_val;; 1238 esac 1239 # Be sure to have absolute directory names. 1240 case $ac_val in 1241 [\\/$]* | ?:[\\/]* ) continue;; 1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1243 esac 1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1245done 1246 1247# There might be people who depend on the old broken behavior: `$host' 1248# used to hold the argument of --host etc. 1249# FIXME: To remove some day. 1250build=$build_alias 1251host=$host_alias 1252target=$target_alias 1253 1254# FIXME: To remove some day. 1255if test "x$host_alias" != x; then 1256 if test "x$build_alias" = x; then 1257 cross_compiling=maybe 1258 elif test "x$build_alias" != "x$host_alias"; then 1259 cross_compiling=yes 1260 fi 1261fi 1262 1263ac_tool_prefix= 1264test -n "$host_alias" && ac_tool_prefix=$host_alias- 1265 1266test "$silent" = yes && exec 6>/dev/null 1267 1268 1269ac_pwd=`pwd` && test -n "$ac_pwd" && 1270ac_ls_di=`ls -di .` && 1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1272 as_fn_error $? "working directory cannot be determined" 1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1274 as_fn_error $? "pwd does not report name of working directory" 1275 1276 1277# Find the source files, if location was not specified. 1278if test -z "$srcdir"; then 1279 ac_srcdir_defaulted=yes 1280 # Try the directory containing this script, then the parent directory. 1281 ac_confdir=`$as_dirname -- "$as_myself" || 1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1283 X"$as_myself" : 'X\(//\)[^/]' \| \ 1284 X"$as_myself" : 'X\(//\)$' \| \ 1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1286$as_echo X"$as_myself" | 1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\/\)[^/].*/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\).*/{ 1300 s//\1/ 1301 q 1302 } 1303 s/.*/./; q'` 1304 srcdir=$ac_confdir 1305 if test ! -r "$srcdir/$ac_unique_file"; then 1306 srcdir=.. 1307 fi 1308else 1309 ac_srcdir_defaulted=no 1310fi 1311if test ! -r "$srcdir/$ac_unique_file"; then 1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1314fi 1315ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1316ac_abs_confdir=`( 1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1318 pwd)` 1319# When building in place, set srcdir=. 1320if test "$ac_abs_confdir" = "$ac_pwd"; then 1321 srcdir=. 1322fi 1323# Remove unnecessary trailing slashes from srcdir. 1324# Double slashes in file names in object file debugging info 1325# mess up M-x gdb in Emacs. 1326case $srcdir in 1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1328esac 1329for ac_var in $ac_precious_vars; do 1330 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1331 eval ac_env_${ac_var}_value=\$${ac_var} 1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1334done 1335 1336# 1337# Report the --help message. 1338# 1339if test "$ac_init_help" = "long"; then 1340 # Omit some internal or obsolete options to make the list less imposing. 1341 # This message is too long to be a string in the A/UX 3.1 sh. 1342 cat <<_ACEOF 1343\`configure' configures ipa_sdb 1.1.1 to adapt to many kinds of systems. 1344 1345Usage: $0 [OPTION]... [VAR=VALUE]... 1346 1347To assign environment variables (e.g., CC, CFLAGS...), specify them as 1348VAR=VALUE. See below for descriptions of some of the useful variables. 1349 1350Defaults for the options are specified in brackets. 1351 1352Configuration: 1353 -h, --help display this help and exit 1354 --help=short display options specific to this package 1355 --help=recursive display the short help of all the included packages 1356 -V, --version display version information and exit 1357 -q, --quiet, --silent do not print \`checking ...' messages 1358 --cache-file=FILE cache test results in FILE [disabled] 1359 -C, --config-cache alias for \`--cache-file=config.cache' 1360 -n, --no-create do not create output files 1361 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1362 1363Installation directories: 1364 --prefix=PREFIX install architecture-independent files in PREFIX 1365 [$ac_default_prefix] 1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1367 [PREFIX] 1368 1369By default, \`make install' will install all the files in 1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1371an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1372for instance \`--prefix=\$HOME'. 1373 1374For better control, use the options below. 1375 1376Fine tuning of the installation directories: 1377 --bindir=DIR user executables [EPREFIX/bin] 1378 --sbindir=DIR system admin executables [EPREFIX/sbin] 1379 --libexecdir=DIR program executables [EPREFIX/libexec] 1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1383 --libdir=DIR object code libraries [EPREFIX/lib] 1384 --includedir=DIR C header files [PREFIX/include] 1385 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1388 --infodir=DIR info documentation [DATAROOTDIR/info] 1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1390 --mandir=DIR man documentation [DATAROOTDIR/man] 1391 --docdir=DIR documentation root [DATAROOTDIR/doc/ipa_sdb] 1392 --htmldir=DIR html documentation [DOCDIR] 1393 --dvidir=DIR dvi documentation [DOCDIR] 1394 --pdfdir=DIR pdf documentation [DOCDIR] 1395 --psdir=DIR ps documentation [DOCDIR] 1396_ACEOF 1397 1398 cat <<\_ACEOF 1399 1400Program names: 1401 --program-prefix=PREFIX prepend PREFIX to installed program names 1402 --program-suffix=SUFFIX append SUFFIX to installed program names 1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1404 1405System types: 1406 --build=BUILD configure for building on BUILD [guessed] 1407 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1408_ACEOF 1409fi 1410 1411if test -n "$ac_init_help"; then 1412 case $ac_init_help in 1413 short | recursive ) echo "Configuration of ipa_sdb 1.1.1:";; 1414 esac 1415 cat <<\_ACEOF 1416 1417Optional Features: 1418 --disable-option-checking ignore unrecognized --enable/--with options 1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1421 --enable-dependency-tracking 1422 do not reject slow dependency extractors 1423 --disable-dependency-tracking 1424 speeds up one-time build 1425 --enable-static[=PKGS] build static libraries [default=no] 1426 --enable-shared[=PKGS] build shared libraries [default=yes] 1427 --enable-fast-install[=PKGS] 1428 optimize for fast installation [default=yes] 1429 --disable-libtool-lock avoid locking (might break parallel builds) 1430 --disable-gcc-warns do not use -W flags for GCC compiler 1431 --enable-gcc-more-warns add more -W flags for GCC compiler 1432 --disable-autorules remove dynamic rules support 1433 --disable-rules remove static rules support 1434 --disable-limits remove limits support 1435 --disable-thresholds remove thresholds support 1436 1437Optional Packages: 1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1440 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1441 both] 1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1443 --with-sysroot=DIR Search for dependent libraries within DIR 1444 (or the compiler's sysroot if not specified). 1445 --with-db-pthread build thread-safe ipa_db_sdb module 1446 --with-st-pthread build thread-safe ipa_st_sdb module 1447 --with-mandir-ru=DIR subdirectory for Russian manual pages [[ru.KOI8-R]] 1448 1449Some influential environment variables: 1450 CC C compiler command 1451 CFLAGS C compiler flags 1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1453 nonstandard directory <lib dir> 1454 LIBS libraries to pass to the linker, e.g. -l<library> 1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1456 you have headers in a nonstandard directory <include dir> 1457 CPP C preprocessor 1458 SDB_DB_CFLAGS 1459 CFLAGS for ipa_db_sdb 1460 SDB_DB_CPPFLAGS 1461 CPPFLAGS for ipa_db_sdb 1462 SDB_DB_LDFLAGS 1463 LDFLAGS for ipa_db_sdb 1464 SDB_DB_LIBS LIBS for ipa_db_sdb 1465 SDB_ST_CFLAGS 1466 CFLAGS for ipa_st_sdb 1467 SDB_ST_CPPFLAGS 1468 CPPFLAGS for ipa_st_sdb 1469 SDB_ST_LDFLAGS 1470 LDFLAGS for ipa_st_sdb 1471 SDB_ST_LIBS LIBS for ipa_st_sdb 1472 SDB_DUMP_CFLAGS 1473 CFLAGS for ipa_sdb_dump 1474 SDB_DUMP_CPPFLAGS 1475 CPPFLAGS for ipa_sdb_dump 1476 SDB_DUMP_LDFLAGS 1477 LDFLAGS for ipa_sdb_dump 1478 SDB_DUMP_LIBS 1479 LIBS for ipa_sdb_dump 1480 1481Use these variables to override the choices made by `configure' or to help 1482it to find libraries and programs with nonstandard names/locations. 1483 1484Report bugs to <simon@comsys.ntu-kpi.kiev.ua>. 1485_ACEOF 1486ac_status=$? 1487fi 1488 1489if test "$ac_init_help" = "recursive"; then 1490 # If there are subdirs, report their specific --help. 1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1492 test -d "$ac_dir" || 1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1494 continue 1495 ac_builddir=. 1496 1497case "$ac_dir" in 1498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499*) 1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1501 # A ".." for each directory in $ac_dir_suffix. 1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1503 case $ac_top_builddir_sub in 1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1506 esac ;; 1507esac 1508ac_abs_top_builddir=$ac_pwd 1509ac_abs_builddir=$ac_pwd$ac_dir_suffix 1510# for backward compatibility: 1511ac_top_builddir=$ac_top_build_prefix 1512 1513case $srcdir in 1514 .) # We are building in place. 1515 ac_srcdir=. 1516 ac_top_srcdir=$ac_top_builddir_sub 1517 ac_abs_top_srcdir=$ac_pwd ;; 1518 [\\/]* | ?:[\\/]* ) # Absolute name. 1519 ac_srcdir=$srcdir$ac_dir_suffix; 1520 ac_top_srcdir=$srcdir 1521 ac_abs_top_srcdir=$srcdir ;; 1522 *) # Relative name. 1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1524 ac_top_srcdir=$ac_top_build_prefix$srcdir 1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1526esac 1527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1528 1529 cd "$ac_dir" || { ac_status=$?; continue; } 1530 # Check for guested configure. 1531 if test -f "$ac_srcdir/configure.gnu"; then 1532 echo && 1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1534 elif test -f "$ac_srcdir/configure"; then 1535 echo && 1536 $SHELL "$ac_srcdir/configure" --help=recursive 1537 else 1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1539 fi || ac_status=$? 1540 cd "$ac_pwd" || { ac_status=$?; break; } 1541 done 1542fi 1543 1544test -n "$ac_init_help" && exit $ac_status 1545if $ac_init_version; then 1546 cat <<\_ACEOF 1547ipa_sdb configure 1.1.1 1548generated by GNU Autoconf 2.69 1549 1550Copyright (C) 2012 Free Software Foundation, Inc. 1551This configure script is free software; the Free Software Foundation 1552gives unlimited permission to copy, distribute and modify it. 1553_ACEOF 1554 exit 1555fi 1556 1557## ------------------------ ## 1558## Autoconf initialization. ## 1559## ------------------------ ## 1560 1561# ac_fn_c_try_compile LINENO 1562# -------------------------- 1563# Try to compile conftest.$ac_ext, and return whether this succeeded. 1564ac_fn_c_try_compile () 1565{ 1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1567 rm -f conftest.$ac_objext 1568 if { { ac_try="$ac_compile" 1569case "(($ac_try" in 1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1571 *) ac_try_echo=$ac_try;; 1572esac 1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1574$as_echo "$ac_try_echo"; } >&5 1575 (eval "$ac_compile") 2>conftest.err 1576 ac_status=$? 1577 if test -s conftest.err; then 1578 grep -v '^ *+' conftest.err >conftest.er1 1579 cat conftest.er1 >&5 1580 mv -f conftest.er1 conftest.err 1581 fi 1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1583 test $ac_status = 0; } && { 1584 test -z "$ac_c_werror_flag" || 1585 test ! -s conftest.err 1586 } && test -s conftest.$ac_objext; then : 1587 ac_retval=0 1588else 1589 $as_echo "$as_me: failed program was:" >&5 1590sed 's/^/| /' conftest.$ac_ext >&5 1591 1592 ac_retval=1 1593fi 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 as_fn_set_status $ac_retval 1596 1597} # ac_fn_c_try_compile 1598 1599# ac_fn_c_try_link LINENO 1600# ----------------------- 1601# Try to link conftest.$ac_ext, and return whether this succeeded. 1602ac_fn_c_try_link () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 rm -f conftest.$ac_objext conftest$ac_exeext 1606 if { { ac_try="$ac_link" 1607case "(($ac_try" in 1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *) ac_try_echo=$ac_try;; 1610esac 1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612$as_echo "$ac_try_echo"; } >&5 1613 (eval "$ac_link") 2>conftest.err 1614 ac_status=$? 1615 if test -s conftest.err; then 1616 grep -v '^ *+' conftest.err >conftest.er1 1617 cat conftest.er1 >&5 1618 mv -f conftest.er1 conftest.err 1619 fi 1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; } && { 1622 test -z "$ac_c_werror_flag" || 1623 test ! -s conftest.err 1624 } && test -s conftest$ac_exeext && { 1625 test "$cross_compiling" = yes || 1626 test -x conftest$ac_exeext 1627 }; then : 1628 ac_retval=0 1629else 1630 $as_echo "$as_me: failed program was:" >&5 1631sed 's/^/| /' conftest.$ac_ext >&5 1632 1633 ac_retval=1 1634fi 1635 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1636 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1637 # interfere with the next link command; also delete a directory that is 1638 # left behind by Apple's compiler. We do this before executing the actions. 1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 as_fn_set_status $ac_retval 1642 1643} # ac_fn_c_try_link 1644 1645# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1646# ------------------------------------------------------- 1647# Tests whether HEADER exists and can be compiled using the include files in 1648# INCLUDES, setting the cache variable VAR accordingly. 1649ac_fn_c_check_header_compile () 1650{ 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1653$as_echo_n "checking for $2... " >&6; } 1654if eval \${$3+:} false; then : 1655 $as_echo_n "(cached) " >&6 1656else 1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1658/* end confdefs.h. */ 1659$4 1660#include <$2> 1661_ACEOF 1662if ac_fn_c_try_compile "$LINENO"; then : 1663 eval "$3=yes" 1664else 1665 eval "$3=no" 1666fi 1667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1668fi 1669eval ac_res=\$$3 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1671$as_echo "$ac_res" >&6; } 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 1674} # ac_fn_c_check_header_compile 1675 1676# ac_fn_c_try_cpp LINENO 1677# ---------------------- 1678# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1679ac_fn_c_try_cpp () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 if { { ac_try="$ac_cpp conftest.$ac_ext" 1683case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686esac 1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688$as_echo "$ac_try_echo"; } >&5 1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1690 ac_status=$? 1691 if test -s conftest.err; then 1692 grep -v '^ *+' conftest.err >conftest.er1 1693 cat conftest.er1 >&5 1694 mv -f conftest.er1 conftest.err 1695 fi 1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } > conftest.i && { 1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1699 test ! -s conftest.err 1700 }; then : 1701 ac_retval=0 1702else 1703 $as_echo "$as_me: failed program was:" >&5 1704sed 's/^/| /' conftest.$ac_ext >&5 1705 1706 ac_retval=1 1707fi 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 as_fn_set_status $ac_retval 1710 1711} # ac_fn_c_try_cpp 1712 1713# ac_fn_c_try_run LINENO 1714# ---------------------- 1715# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1716# that executables *can* be run. 1717ac_fn_c_try_run () 1718{ 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 if { { ac_try="$ac_link" 1721case "(($ac_try" in 1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1723 *) ac_try_echo=$ac_try;; 1724esac 1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1726$as_echo "$ac_try_echo"; } >&5 1727 (eval "$ac_link") 2>&5 1728 ac_status=$? 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1731 { { case "(($ac_try" in 1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1733 *) ac_try_echo=$ac_try;; 1734esac 1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1736$as_echo "$ac_try_echo"; } >&5 1737 (eval "$ac_try") 2>&5 1738 ac_status=$? 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; }; }; then : 1741 ac_retval=0 1742else 1743 $as_echo "$as_me: program exited with status $ac_status" >&5 1744 $as_echo "$as_me: failed program was:" >&5 1745sed 's/^/| /' conftest.$ac_ext >&5 1746 1747 ac_retval=$ac_status 1748fi 1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 as_fn_set_status $ac_retval 1752 1753} # ac_fn_c_try_run 1754 1755# ac_fn_c_check_func LINENO FUNC VAR 1756# ---------------------------------- 1757# Tests whether FUNC exists, setting the cache variable VAR accordingly 1758ac_fn_c_check_func () 1759{ 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1762$as_echo_n "checking for $2... " >&6; } 1763if eval \${$3+:} false; then : 1764 $as_echo_n "(cached) " >&6 1765else 1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767/* end confdefs.h. */ 1768/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1770#define $2 innocuous_$2 1771 1772/* System header to define __stub macros and hopefully few prototypes, 1773 which can conflict with char $2 (); below. 1774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1775 <limits.h> exists even on freestanding compilers. */ 1776 1777#ifdef __STDC__ 1778# include <limits.h> 1779#else 1780# include <assert.h> 1781#endif 1782 1783#undef $2 1784 1785/* Override any GCC internal prototype to avoid an error. 1786 Use char because int might match the return type of a GCC 1787 builtin and then its argument prototype would still apply. */ 1788#ifdef __cplusplus 1789extern "C" 1790#endif 1791char $2 (); 1792/* The GNU C library defines this for functions which it implements 1793 to always fail with ENOSYS. Some functions are actually named 1794 something starting with __ and the normal name is an alias. */ 1795#if defined __stub_$2 || defined __stub___$2 1796choke me 1797#endif 1798 1799int 1800main () 1801{ 1802return $2 (); 1803 ; 1804 return 0; 1805} 1806_ACEOF 1807if ac_fn_c_try_link "$LINENO"; then : 1808 eval "$3=yes" 1809else 1810 eval "$3=no" 1811fi 1812rm -f core conftest.err conftest.$ac_objext \ 1813 conftest$ac_exeext conftest.$ac_ext 1814fi 1815eval ac_res=\$$3 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1817$as_echo "$ac_res" >&6; } 1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1819 1820} # ac_fn_c_check_func 1821 1822# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1823# ------------------------------------------- 1824# Tests whether TYPE exists after having included INCLUDES, setting cache 1825# variable VAR accordingly. 1826ac_fn_c_check_type () 1827{ 1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1830$as_echo_n "checking for $2... " >&6; } 1831if eval \${$3+:} false; then : 1832 $as_echo_n "(cached) " >&6 1833else 1834 eval "$3=no" 1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836/* end confdefs.h. */ 1837$4 1838int 1839main () 1840{ 1841if (sizeof ($2)) 1842 return 0; 1843 ; 1844 return 0; 1845} 1846_ACEOF 1847if ac_fn_c_try_compile "$LINENO"; then : 1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1849/* end confdefs.h. */ 1850$4 1851int 1852main () 1853{ 1854if (sizeof (($2))) 1855 return 0; 1856 ; 1857 return 0; 1858} 1859_ACEOF 1860if ac_fn_c_try_compile "$LINENO"; then : 1861 1862else 1863 eval "$3=yes" 1864fi 1865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1866fi 1867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1868fi 1869eval ac_res=\$$3 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1871$as_echo "$ac_res" >&6; } 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 1874} # ac_fn_c_check_type 1875 1876# ac_fn_c_find_uintX_t LINENO BITS VAR 1877# ------------------------------------ 1878# Finds an unsigned integer type with width BITS, setting cache variable VAR 1879# accordingly. 1880ac_fn_c_find_uintX_t () 1881{ 1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1884$as_echo_n "checking for uint$2_t... " >&6; } 1885if eval \${$3+:} false; then : 1886 $as_echo_n "(cached) " >&6 1887else 1888 eval "$3=no" 1889 # Order is important - never check a type that is potentially smaller 1890 # than half of the expected target width. 1891 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1892 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1894/* end confdefs.h. */ 1895$ac_includes_default 1896int 1897main () 1898{ 1899static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1900test_array [0] = 0; 1901return test_array [0]; 1902 1903 ; 1904 return 0; 1905} 1906_ACEOF 1907if ac_fn_c_try_compile "$LINENO"; then : 1908 case $ac_type in #( 1909 uint$2_t) : 1910 eval "$3=yes" ;; #( 1911 *) : 1912 eval "$3=\$ac_type" ;; 1913esac 1914fi 1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1916 if eval test \"x\$"$3"\" = x"no"; then : 1917 1918else 1919 break 1920fi 1921 done 1922fi 1923eval ac_res=\$$3 1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1925$as_echo "$ac_res" >&6; } 1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1927 1928} # ac_fn_c_find_uintX_t 1929 1930# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1931# -------------------------------------------- 1932# Tries to find the compile-time value of EXPR in a program that includes 1933# INCLUDES, setting VAR accordingly. Returns whether the value could be 1934# computed 1935ac_fn_c_compute_int () 1936{ 1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1938 if test "$cross_compiling" = yes; then 1939 # Depending upon the size, compute the lo and hi bounds. 1940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942$4 1943int 1944main () 1945{ 1946static int test_array [1 - 2 * !(($2) >= 0)]; 1947test_array [0] = 0; 1948return test_array [0]; 1949 1950 ; 1951 return 0; 1952} 1953_ACEOF 1954if ac_fn_c_try_compile "$LINENO"; then : 1955 ac_lo=0 ac_mid=0 1956 while :; do 1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1958/* end confdefs.h. */ 1959$4 1960int 1961main () 1962{ 1963static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1964test_array [0] = 0; 1965return test_array [0]; 1966 1967 ; 1968 return 0; 1969} 1970_ACEOF 1971if ac_fn_c_try_compile "$LINENO"; then : 1972 ac_hi=$ac_mid; break 1973else 1974 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1975 if test $ac_lo -le $ac_mid; then 1976 ac_lo= ac_hi= 1977 break 1978 fi 1979 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1980fi 1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1982 done 1983else 1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1985/* end confdefs.h. */ 1986$4 1987int 1988main () 1989{ 1990static int test_array [1 - 2 * !(($2) < 0)]; 1991test_array [0] = 0; 1992return test_array [0]; 1993 1994 ; 1995 return 0; 1996} 1997_ACEOF 1998if ac_fn_c_try_compile "$LINENO"; then : 1999 ac_hi=-1 ac_mid=-1 2000 while :; do 2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002/* end confdefs.h. */ 2003$4 2004int 2005main () 2006{ 2007static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2008test_array [0] = 0; 2009return test_array [0]; 2010 2011 ; 2012 return 0; 2013} 2014_ACEOF 2015if ac_fn_c_try_compile "$LINENO"; then : 2016 ac_lo=$ac_mid; break 2017else 2018 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2019 if test $ac_mid -le $ac_hi; then 2020 ac_lo= ac_hi= 2021 break 2022 fi 2023 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2024fi 2025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2026 done 2027else 2028 ac_lo= ac_hi= 2029fi 2030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2031fi 2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2033# Binary search between lo and hi bounds. 2034while test "x$ac_lo" != "x$ac_hi"; do 2035 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2037/* end confdefs.h. */ 2038$4 2039int 2040main () 2041{ 2042static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2043test_array [0] = 0; 2044return test_array [0]; 2045 2046 ; 2047 return 0; 2048} 2049_ACEOF 2050if ac_fn_c_try_compile "$LINENO"; then : 2051 ac_hi=$ac_mid 2052else 2053 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2054fi 2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2056done 2057case $ac_lo in #(( 2058?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2059'') ac_retval=1 ;; 2060esac 2061 else 2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2063/* end confdefs.h. */ 2064$4 2065static long int longval () { return $2; } 2066static unsigned long int ulongval () { return $2; } 2067#include <stdio.h> 2068#include <stdlib.h> 2069int 2070main () 2071{ 2072 2073 FILE *f = fopen ("conftest.val", "w"); 2074 if (! f) 2075 return 1; 2076 if (($2) < 0) 2077 { 2078 long int i = longval (); 2079 if (i != ($2)) 2080 return 1; 2081 fprintf (f, "%ld", i); 2082 } 2083 else 2084 { 2085 unsigned long int i = ulongval (); 2086 if (i != ($2)) 2087 return 1; 2088 fprintf (f, "%lu", i); 2089 } 2090 /* Do not output a trailing newline, as this causes \r\n confusion 2091 on some platforms. */ 2092 return ferror (f) || fclose (f) != 0; 2093 2094 ; 2095 return 0; 2096} 2097_ACEOF 2098if ac_fn_c_try_run "$LINENO"; then : 2099 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2100else 2101 ac_retval=1 2102fi 2103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2104 conftest.$ac_objext conftest.beam conftest.$ac_ext 2105rm -f conftest.val 2106 2107 fi 2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2109 as_fn_set_status $ac_retval 2110 2111} # ac_fn_c_compute_int 2112 2113# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2114# --------------------------------------------- 2115# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2116# accordingly. 2117ac_fn_c_check_decl () 2118{ 2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2120 as_decl_name=`echo $2|sed 's/ *(.*//'` 2121 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2123$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2124if eval \${$3+:} false; then : 2125 $as_echo_n "(cached) " >&6 2126else 2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2128/* end confdefs.h. */ 2129$4 2130int 2131main () 2132{ 2133#ifndef $as_decl_name 2134#ifdef __cplusplus 2135 (void) $as_decl_use; 2136#else 2137 (void) $as_decl_name; 2138#endif 2139#endif 2140 2141 ; 2142 return 0; 2143} 2144_ACEOF 2145if ac_fn_c_try_compile "$LINENO"; then : 2146 eval "$3=yes" 2147else 2148 eval "$3=no" 2149fi 2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2151fi 2152eval ac_res=\$$3 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2154$as_echo "$ac_res" >&6; } 2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2156 2157} # ac_fn_c_check_decl 2158cat >config.log <<_ACEOF 2159This file contains any messages produced by compilers while 2160running configure, to aid debugging if configure makes a mistake. 2161 2162It was created by ipa_sdb $as_me 1.1.1, which was 2163generated by GNU Autoconf 2.69. Invocation command line was 2164 2165 $ $0 $@ 2166 2167_ACEOF 2168exec 5>>config.log 2169{ 2170cat <<_ASUNAME 2171## --------- ## 2172## Platform. ## 2173## --------- ## 2174 2175hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2176uname -m = `(uname -m) 2>/dev/null || echo unknown` 2177uname -r = `(uname -r) 2>/dev/null || echo unknown` 2178uname -s = `(uname -s) 2>/dev/null || echo unknown` 2179uname -v = `(uname -v) 2>/dev/null || echo unknown` 2180 2181/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2182/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2183 2184/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2185/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2186/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2187/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2188/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2189/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2190/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2191 2192_ASUNAME 2193 2194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2195for as_dir in $PATH 2196do 2197 IFS=$as_save_IFS 2198 test -z "$as_dir" && as_dir=. 2199 $as_echo "PATH: $as_dir" 2200 done 2201IFS=$as_save_IFS 2202 2203} >&5 2204 2205cat >&5 <<_ACEOF 2206 2207 2208## ----------- ## 2209## Core tests. ## 2210## ----------- ## 2211 2212_ACEOF 2213 2214 2215# Keep a trace of the command line. 2216# Strip out --no-create and --no-recursion so they do not pile up. 2217# Strip out --silent because we don't want to record it for future runs. 2218# Also quote any args containing shell meta-characters. 2219# Make two passes to allow for proper duplicate-argument suppression. 2220ac_configure_args= 2221ac_configure_args0= 2222ac_configure_args1= 2223ac_must_keep_next=false 2224for ac_pass in 1 2 2225do 2226 for ac_arg 2227 do 2228 case $ac_arg in 2229 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2231 | -silent | --silent | --silen | --sile | --sil) 2232 continue ;; 2233 *\'*) 2234 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2235 esac 2236 case $ac_pass in 2237 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2238 2) 2239 as_fn_append ac_configure_args1 " '$ac_arg'" 2240 if test $ac_must_keep_next = true; then 2241 ac_must_keep_next=false # Got value, back to normal. 2242 else 2243 case $ac_arg in 2244 *=* | --config-cache | -C | -disable-* | --disable-* \ 2245 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2246 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2247 | -with-* | --with-* | -without-* | --without-* | --x) 2248 case "$ac_configure_args0 " in 2249 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2250 esac 2251 ;; 2252 -* ) ac_must_keep_next=true ;; 2253 esac 2254 fi 2255 as_fn_append ac_configure_args " '$ac_arg'" 2256 ;; 2257 esac 2258 done 2259done 2260{ ac_configure_args0=; unset ac_configure_args0;} 2261{ ac_configure_args1=; unset ac_configure_args1;} 2262 2263# When interrupted or exit'd, cleanup temporary files, and complete 2264# config.log. We remove comments because anyway the quotes in there 2265# would cause problems or look ugly. 2266# WARNING: Use '\'' to represent an apostrophe within the trap. 2267# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2268trap 'exit_status=$? 2269 # Save into config.log some information that might help in debugging. 2270 { 2271 echo 2272 2273 $as_echo "## ---------------- ## 2274## Cache variables. ## 2275## ---------------- ##" 2276 echo 2277 # The following way of writing the cache mishandles newlines in values, 2278( 2279 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2280 eval ac_val=\$$ac_var 2281 case $ac_val in #( 2282 *${as_nl}*) 2283 case $ac_var in #( 2284 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2285$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2286 esac 2287 case $ac_var in #( 2288 _ | IFS | as_nl) ;; #( 2289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2290 *) { eval $ac_var=; unset $ac_var;} ;; 2291 esac ;; 2292 esac 2293 done 2294 (set) 2>&1 | 2295 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2296 *${as_nl}ac_space=\ *) 2297 sed -n \ 2298 "s/'\''/'\''\\\\'\'''\''/g; 2299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2300 ;; #( 2301 *) 2302 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2303 ;; 2304 esac | 2305 sort 2306) 2307 echo 2308 2309 $as_echo "## ----------------- ## 2310## Output variables. ## 2311## ----------------- ##" 2312 echo 2313 for ac_var in $ac_subst_vars 2314 do 2315 eval ac_val=\$$ac_var 2316 case $ac_val in 2317 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2318 esac 2319 $as_echo "$ac_var='\''$ac_val'\''" 2320 done | sort 2321 echo 2322 2323 if test -n "$ac_subst_files"; then 2324 $as_echo "## ------------------- ## 2325## File substitutions. ## 2326## ------------------- ##" 2327 echo 2328 for ac_var in $ac_subst_files 2329 do 2330 eval ac_val=\$$ac_var 2331 case $ac_val in 2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2333 esac 2334 $as_echo "$ac_var='\''$ac_val'\''" 2335 done | sort 2336 echo 2337 fi 2338 2339 if test -s confdefs.h; then 2340 $as_echo "## ----------- ## 2341## confdefs.h. ## 2342## ----------- ##" 2343 echo 2344 cat confdefs.h 2345 echo 2346 fi 2347 test "$ac_signal" != 0 && 2348 $as_echo "$as_me: caught signal $ac_signal" 2349 $as_echo "$as_me: exit $exit_status" 2350 } >&5 2351 rm -f core *.core core.conftest.* && 2352 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2353 exit $exit_status 2354' 0 2355for ac_signal in 1 2 13 15; do 2356 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2357done 2358ac_signal=0 2359 2360# confdefs.h avoids OS command line length limits that DEFS can exceed. 2361rm -f -r conftest* confdefs.h 2362 2363$as_echo "/* confdefs.h */" > confdefs.h 2364 2365# Predefined preprocessor variables. 2366 2367cat >>confdefs.h <<_ACEOF 2368#define PACKAGE_NAME "$PACKAGE_NAME" 2369_ACEOF 2370 2371cat >>confdefs.h <<_ACEOF 2372#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2373_ACEOF 2374 2375cat >>confdefs.h <<_ACEOF 2376#define PACKAGE_VERSION "$PACKAGE_VERSION" 2377_ACEOF 2378 2379cat >>confdefs.h <<_ACEOF 2380#define PACKAGE_STRING "$PACKAGE_STRING" 2381_ACEOF 2382 2383cat >>confdefs.h <<_ACEOF 2384#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2385_ACEOF 2386 2387cat >>confdefs.h <<_ACEOF 2388#define PACKAGE_URL "$PACKAGE_URL" 2389_ACEOF 2390 2391 2392# Let the site file select an alternate cache file if it wants to. 2393# Prefer an explicitly selected file to automatically selected ones. 2394ac_site_file1=NONE 2395ac_site_file2=NONE 2396if test -n "$CONFIG_SITE"; then 2397 # We do not want a PATH search for config.site. 2398 case $CONFIG_SITE in #(( 2399 -*) ac_site_file1=./$CONFIG_SITE;; 2400 */*) ac_site_file1=$CONFIG_SITE;; 2401 *) ac_site_file1=./$CONFIG_SITE;; 2402 esac 2403elif test "x$prefix" != xNONE; then 2404 ac_site_file1=$prefix/share/config.site 2405 ac_site_file2=$prefix/etc/config.site 2406else 2407 ac_site_file1=$ac_default_prefix/share/config.site 2408 ac_site_file2=$ac_default_prefix/etc/config.site 2409fi 2410for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2411do 2412 test "x$ac_site_file" = xNONE && continue 2413 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2415$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2416 sed 's/^/| /' "$ac_site_file" >&5 2417 . "$ac_site_file" \ 2418 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2420as_fn_error $? "failed to load site script $ac_site_file 2421See \`config.log' for more details" "$LINENO" 5; } 2422 fi 2423done 2424 2425if test -r "$cache_file"; then 2426 # Some versions of bash will fail to source /dev/null (special files 2427 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2428 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2430$as_echo "$as_me: loading cache $cache_file" >&6;} 2431 case $cache_file in 2432 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2433 *) . "./$cache_file";; 2434 esac 2435 fi 2436else 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2438$as_echo "$as_me: creating cache $cache_file" >&6;} 2439 >$cache_file 2440fi 2441 2442# Check that the precious variables saved in the cache have kept the same 2443# value. 2444ac_cache_corrupted=false 2445for ac_var in $ac_precious_vars; do 2446 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2447 eval ac_new_set=\$ac_env_${ac_var}_set 2448 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2449 eval ac_new_val=\$ac_env_${ac_var}_value 2450 case $ac_old_set,$ac_new_set in 2451 set,) 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2453$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2454 ac_cache_corrupted=: ;; 2455 ,set) 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2457$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2458 ac_cache_corrupted=: ;; 2459 ,);; 2460 *) 2461 if test "x$ac_old_val" != "x$ac_new_val"; then 2462 # differences in whitespace do not lead to failure. 2463 ac_old_val_w=`echo x $ac_old_val` 2464 ac_new_val_w=`echo x $ac_new_val` 2465 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2467$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2468 ac_cache_corrupted=: 2469 else 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2471$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2472 eval $ac_var=\$ac_old_val 2473 fi 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2475$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2477$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2478 fi;; 2479 esac 2480 # Pass precious variables to config.status. 2481 if test "$ac_new_set" = set; then 2482 case $ac_new_val in 2483 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2484 *) ac_arg=$ac_var=$ac_new_val ;; 2485 esac 2486 case " $ac_configure_args " in 2487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2488 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2489 esac 2490 fi 2491done 2492if $ac_cache_corrupted; then 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2496$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2497 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2498fi 2499## -------------------- ## 2500## Main body of script. ## 2501## -------------------- ## 2502 2503ac_ext=c 2504ac_cpp='$CPP $CPPFLAGS' 2505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2507ac_compiler_gnu=$ac_cv_c_compiler_gnu 2508 2509 2510am__api_version='1.12' 2511 2512ac_aux_dir= 2513for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2514 if test -f "$ac_dir/install-sh"; then 2515 ac_aux_dir=$ac_dir 2516 ac_install_sh="$ac_aux_dir/install-sh -c" 2517 break 2518 elif test -f "$ac_dir/install.sh"; then 2519 ac_aux_dir=$ac_dir 2520 ac_install_sh="$ac_aux_dir/install.sh -c" 2521 break 2522 elif test -f "$ac_dir/shtool"; then 2523 ac_aux_dir=$ac_dir 2524 ac_install_sh="$ac_aux_dir/shtool install -c" 2525 break 2526 fi 2527done 2528if test -z "$ac_aux_dir"; then 2529 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2530fi 2531 2532# These three variables are undocumented and unsupported, 2533# and are intended to be withdrawn in a future Autoconf release. 2534# They can cause serious problems if a builder's source tree is in a directory 2535# whose full name contains unusual characters. 2536ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2537ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2538ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2539 2540 2541# Find a good install program. We prefer a C program (faster), 2542# so one script is as good as another. But avoid the broken or 2543# incompatible versions: 2544# SysV /etc/install, /usr/sbin/install 2545# SunOS /usr/etc/install 2546# IRIX /sbin/install 2547# AIX /bin/install 2548# AmigaOS /C/install, which installs bootblocks on floppy discs 2549# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2550# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2551# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2552# OS/2's system install, which has a completely different semantic 2553# ./install, which can be erroneously created by make from ./install.sh. 2554# Reject install programs that cannot install multiple files. 2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2556$as_echo_n "checking for a BSD-compatible install... " >&6; } 2557if test -z "$INSTALL"; then 2558if ${ac_cv_path_install+:} false; then : 2559 $as_echo_n "(cached) " >&6 2560else 2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2562for as_dir in $PATH 2563do 2564 IFS=$as_save_IFS 2565 test -z "$as_dir" && as_dir=. 2566 # Account for people who put trailing slashes in PATH elements. 2567case $as_dir/ in #(( 2568 ./ | .// | /[cC]/* | \ 2569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2570 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2571 /usr/ucb/* ) ;; 2572 *) 2573 # OSF1 and SCO ODT 3.0 have their own names for install. 2574 # Don't use installbsd from OSF since it installs stuff as root 2575 # by default. 2576 for ac_prog in ginstall scoinst install; do 2577 for ac_exec_ext in '' $ac_executable_extensions; do 2578 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2579 if test $ac_prog = install && 2580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2581 # AIX install. It has an incompatible calling convention. 2582 : 2583 elif test $ac_prog = install && 2584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2585 # program-specific install script used by HP pwplus--don't use. 2586 : 2587 else 2588 rm -rf conftest.one conftest.two conftest.dir 2589 echo one > conftest.one 2590 echo two > conftest.two 2591 mkdir conftest.dir 2592 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2593 test -s conftest.one && test -s conftest.two && 2594 test -s conftest.dir/conftest.one && 2595 test -s conftest.dir/conftest.two 2596 then 2597 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2598 break 3 2599 fi 2600 fi 2601 fi 2602 done 2603 done 2604 ;; 2605esac 2606 2607 done 2608IFS=$as_save_IFS 2609 2610rm -rf conftest.one conftest.two conftest.dir 2611 2612fi 2613 if test "${ac_cv_path_install+set}" = set; then 2614 INSTALL=$ac_cv_path_install 2615 else 2616 # As a last resort, use the slow shell script. Don't cache a 2617 # value for INSTALL within a source directory, because that will 2618 # break other packages using the cache if that directory is 2619 # removed, or if the value is a relative name. 2620 INSTALL=$ac_install_sh 2621 fi 2622fi 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2624$as_echo "$INSTALL" >&6; } 2625 2626# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2627# It thinks the first close brace ends the variable substitution. 2628test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2629 2630test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2631 2632test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2633 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2635$as_echo_n "checking whether build environment is sane... " >&6; } 2636# Reject unsafe characters in $srcdir or the absolute working directory 2637# name. Accept space and tab only in the latter. 2638am_lf=' 2639' 2640case `pwd` in 2641 *[\\\"\#\$\&\'\`$am_lf]*) 2642 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2643esac 2644case $srcdir in 2645 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2646 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2647esac 2648 2649# Do 'set' in a subshell so we don't clobber the current shell's 2650# arguments. Must try -L first in case configure is actually a 2651# symlink; some systems play weird games with the mod time of symlinks 2652# (eg FreeBSD returns the mod time of the symlink's containing 2653# directory). 2654if ( 2655 am_has_slept=no 2656 for am_try in 1 2; do 2657 echo "timestamp, slept: $am_has_slept" > conftest.file 2658 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2659 if test "$*" = "X"; then 2660 # -L didn't work. 2661 set X `ls -t "$srcdir/configure" conftest.file` 2662 fi 2663 if test "$*" != "X $srcdir/configure conftest.file" \ 2664 && test "$*" != "X conftest.file $srcdir/configure"; then 2665 2666 # If neither matched, then we have a broken ls. This can happen 2667 # if, for instance, CONFIG_SHELL is bash and it inherits a 2668 # broken ls alias from the environment. This has actually 2669 # happened. Such a system could not be considered "sane". 2670 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2671 alias in your environment" "$LINENO" 5 2672 fi 2673 if test "$2" = conftest.file || test $am_try -eq 2; then 2674 break 2675 fi 2676 # Just in case. 2677 sleep 1 2678 am_has_slept=yes 2679 done 2680 test "$2" = conftest.file 2681 ) 2682then 2683 # Ok. 2684 : 2685else 2686 as_fn_error $? "newly created file is older than distributed files! 2687Check your system clock" "$LINENO" 5 2688fi 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2690$as_echo "yes" >&6; } 2691# If we didn't sleep, we still need to ensure time stamps of config.status and 2692# generated files are strictly newer. 2693am_sleep_pid= 2694if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2695 ( sleep 1 ) & 2696 am_sleep_pid=$! 2697fi 2698 2699rm -f conftest.file 2700 2701test "$program_prefix" != NONE && 2702 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2703# Use a double $ so make ignores it. 2704test "$program_suffix" != NONE && 2705 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2706# Double any \ or $. 2707# By default was `s,x,x', remove it if useless. 2708ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2709program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2710 2711# expand $ac_aux_dir to an absolute path 2712am_aux_dir=`cd $ac_aux_dir && pwd` 2713 2714if test x"${MISSING+set}" != xset; then 2715 case $am_aux_dir in 2716 *\ * | *\ *) 2717 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2718 *) 2719 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2720 esac 2721fi 2722# Use eval to expand $SHELL 2723if eval "$MISSING --run true"; then 2724 am_missing_run="$MISSING --run " 2725else 2726 am_missing_run= 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2728$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2729fi 2730 2731if test x"${install_sh}" != xset; then 2732 case $am_aux_dir in 2733 *\ * | *\ *) 2734 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2735 *) 2736 install_sh="\${SHELL} $am_aux_dir/install-sh" 2737 esac 2738fi 2739 2740# Installed binaries are usually stripped using 'strip' when the user 2741# run "make install-strip". However 'strip' might not be the right 2742# tool to use in cross-compilation environments, therefore Automake 2743# will honor the 'STRIP' environment variable to overrule this program. 2744if test "$cross_compiling" != no; then 2745 if test -n "$ac_tool_prefix"; then 2746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2747set dummy ${ac_tool_prefix}strip; ac_word=$2 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2749$as_echo_n "checking for $ac_word... " >&6; } 2750if ${ac_cv_prog_STRIP+:} false; then : 2751 $as_echo_n "(cached) " >&6 2752else 2753 if test -n "$STRIP"; then 2754 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2755else 2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2757for as_dir in $PATH 2758do 2759 IFS=$as_save_IFS 2760 test -z "$as_dir" && as_dir=. 2761 for ac_exec_ext in '' $ac_executable_extensions; do 2762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2763 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2765 break 2 2766 fi 2767done 2768 done 2769IFS=$as_save_IFS 2770 2771fi 2772fi 2773STRIP=$ac_cv_prog_STRIP 2774if test -n "$STRIP"; then 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2776$as_echo "$STRIP" >&6; } 2777else 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2779$as_echo "no" >&6; } 2780fi 2781 2782 2783fi 2784if test -z "$ac_cv_prog_STRIP"; then 2785 ac_ct_STRIP=$STRIP 2786 # Extract the first word of "strip", so it can be a program name with args. 2787set dummy strip; ac_word=$2 2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2789$as_echo_n "checking for $ac_word... " >&6; } 2790if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2791 $as_echo_n "(cached) " >&6 2792else 2793 if test -n "$ac_ct_STRIP"; then 2794 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2795else 2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2797for as_dir in $PATH 2798do 2799 IFS=$as_save_IFS 2800 test -z "$as_dir" && as_dir=. 2801 for ac_exec_ext in '' $ac_executable_extensions; do 2802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2803 ac_cv_prog_ac_ct_STRIP="strip" 2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2805 break 2 2806 fi 2807done 2808 done 2809IFS=$as_save_IFS 2810 2811fi 2812fi 2813ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2814if test -n "$ac_ct_STRIP"; then 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2816$as_echo "$ac_ct_STRIP" >&6; } 2817else 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2819$as_echo "no" >&6; } 2820fi 2821 2822 if test "x$ac_ct_STRIP" = x; then 2823 STRIP=":" 2824 else 2825 case $cross_compiling:$ac_tool_warned in 2826yes:) 2827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2829ac_tool_warned=yes ;; 2830esac 2831 STRIP=$ac_ct_STRIP 2832 fi 2833else 2834 STRIP="$ac_cv_prog_STRIP" 2835fi 2836 2837fi 2838INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2839 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2841$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2842if test -z "$MKDIR_P"; then 2843 if ${ac_cv_path_mkdir+:} false; then : 2844 $as_echo_n "(cached) " >&6 2845else 2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2847for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2848do 2849 IFS=$as_save_IFS 2850 test -z "$as_dir" && as_dir=. 2851 for ac_prog in mkdir gmkdir; do 2852 for ac_exec_ext in '' $ac_executable_extensions; do 2853 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2854 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2855 'mkdir (GNU coreutils) '* | \ 2856 'mkdir (coreutils) '* | \ 2857 'mkdir (fileutils) '4.1*) 2858 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2859 break 3;; 2860 esac 2861 done 2862 done 2863 done 2864IFS=$as_save_IFS 2865 2866fi 2867 2868 test -d ./--version && rmdir ./--version 2869 if test "${ac_cv_path_mkdir+set}" = set; then 2870 MKDIR_P="$ac_cv_path_mkdir -p" 2871 else 2872 # As a last resort, use the slow shell script. Don't cache a 2873 # value for MKDIR_P within a source directory, because that will 2874 # break other packages using the cache if that directory is 2875 # removed, or if the value is a relative name. 2876 MKDIR_P="$ac_install_sh -d" 2877 fi 2878fi 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2880$as_echo "$MKDIR_P" >&6; } 2881 2882for ac_prog in gawk mawk nawk awk 2883do 2884 # Extract the first word of "$ac_prog", so it can be a program name with args. 2885set dummy $ac_prog; ac_word=$2 2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2887$as_echo_n "checking for $ac_word... " >&6; } 2888if ${ac_cv_prog_AWK+:} false; then : 2889 $as_echo_n "(cached) " >&6 2890else 2891 if test -n "$AWK"; then 2892 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2893else 2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2895for as_dir in $PATH 2896do 2897 IFS=$as_save_IFS 2898 test -z "$as_dir" && as_dir=. 2899 for ac_exec_ext in '' $ac_executable_extensions; do 2900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2901 ac_cv_prog_AWK="$ac_prog" 2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2903 break 2 2904 fi 2905done 2906 done 2907IFS=$as_save_IFS 2908 2909fi 2910fi 2911AWK=$ac_cv_prog_AWK 2912if test -n "$AWK"; then 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2914$as_echo "$AWK" >&6; } 2915else 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2917$as_echo "no" >&6; } 2918fi 2919 2920 2921 test -n "$AWK" && break 2922done 2923 2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2925$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2926set x ${MAKE-make} 2927ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2928if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2929 $as_echo_n "(cached) " >&6 2930else 2931 cat >conftest.make <<\_ACEOF 2932SHELL = /bin/sh 2933all: 2934 @echo '@@@%%%=$(MAKE)=@@@%%%' 2935_ACEOF 2936# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2937case `${MAKE-make} -f conftest.make 2>/dev/null` in 2938 *@@@%%%=?*=@@@%%%*) 2939 eval ac_cv_prog_make_${ac_make}_set=yes;; 2940 *) 2941 eval ac_cv_prog_make_${ac_make}_set=no;; 2942esac 2943rm -f conftest.make 2944fi 2945if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2947$as_echo "yes" >&6; } 2948 SET_MAKE= 2949else 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2951$as_echo "no" >&6; } 2952 SET_MAKE="MAKE=${MAKE-make}" 2953fi 2954 2955rm -rf .tst 2>/dev/null 2956mkdir .tst 2>/dev/null 2957if test -d .tst; then 2958 am__leading_dot=. 2959else 2960 am__leading_dot=_ 2961fi 2962rmdir .tst 2>/dev/null 2963 2964if test "`cd $srcdir && pwd`" != "`pwd`"; then 2965 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2966 # is not polluted with repeated "-I." 2967 am__isrc=' -I$(srcdir)' 2968 # test to see if srcdir already configured 2969 if test -f $srcdir/config.status; then 2970 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2971 fi 2972fi 2973 2974# test whether we have cygpath 2975if test -z "$CYGPATH_W"; then 2976 if (cygpath --version) >/dev/null 2>/dev/null; then 2977 CYGPATH_W='cygpath -w' 2978 else 2979 CYGPATH_W=echo 2980 fi 2981fi 2982 2983 2984# Define the identity of the package. 2985 PACKAGE='ipa_sdb' 2986 VERSION='1.1.1' 2987 2988 2989cat >>confdefs.h <<_ACEOF 2990#define PACKAGE "$PACKAGE" 2991_ACEOF 2992 2993 2994cat >>confdefs.h <<_ACEOF 2995#define VERSION "$VERSION" 2996_ACEOF 2997 2998# Some tools Automake needs. 2999 3000ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3001 3002 3003AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3004 3005 3006AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3007 3008 3009AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3010 3011 3012MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3013 3014# For better backward compatibility. To be removed once Automake 1.9.x 3015# dies out for good. For more background, see: 3016# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3017# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3018mkdir_p='$(MKDIR_P)' 3019 3020# We need awk for the "check" target. The system "awk" is bad on 3021# some platforms. 3022# Always define AMTAR for backward compatibility. Yes, it's still used 3023# in the wild :-( We should find a proper way to deprecate it ... 3024AMTAR='$${TAR-tar}' 3025 3026am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3027 3028 3029 3030 3031 3032 3033 3034ac_config_headers="$ac_config_headers src/config.h src/sdb_config.h" 3035 3036ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile man/ru.KOI8-R/Makefile" 3037 3038 3039 3040# Checks for programs. 3041ac_ext=c 3042ac_cpp='$CPP $CPPFLAGS' 3043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3045ac_compiler_gnu=$ac_cv_c_compiler_gnu 3046if test -n "$ac_tool_prefix"; then 3047 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3048set dummy ${ac_tool_prefix}gcc; ac_word=$2 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3050$as_echo_n "checking for $ac_word... " >&6; } 3051if ${ac_cv_prog_CC+:} false; then : 3052 $as_echo_n "(cached) " >&6 3053else 3054 if test -n "$CC"; then 3055 ac_cv_prog_CC="$CC" # Let the user override the test. 3056else 3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3058for as_dir in $PATH 3059do 3060 IFS=$as_save_IFS 3061 test -z "$as_dir" && as_dir=. 3062 for ac_exec_ext in '' $ac_executable_extensions; do 3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3064 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3066 break 2 3067 fi 3068done 3069 done 3070IFS=$as_save_IFS 3071 3072fi 3073fi 3074CC=$ac_cv_prog_CC 3075if test -n "$CC"; then 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3077$as_echo "$CC" >&6; } 3078else 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3080$as_echo "no" >&6; } 3081fi 3082 3083 3084fi 3085if test -z "$ac_cv_prog_CC"; then 3086 ac_ct_CC=$CC 3087 # Extract the first word of "gcc", so it can be a program name with args. 3088set dummy gcc; ac_word=$2 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3090$as_echo_n "checking for $ac_word... " >&6; } 3091if ${ac_cv_prog_ac_ct_CC+:} false; then : 3092 $as_echo_n "(cached) " >&6 3093else 3094 if test -n "$ac_ct_CC"; then 3095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3096else 3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3098for as_dir in $PATH 3099do 3100 IFS=$as_save_IFS 3101 test -z "$as_dir" && as_dir=. 3102 for ac_exec_ext in '' $ac_executable_extensions; do 3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3104 ac_cv_prog_ac_ct_CC="gcc" 3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3106 break 2 3107 fi 3108done 3109 done 3110IFS=$as_save_IFS 3111 3112fi 3113fi 3114ac_ct_CC=$ac_cv_prog_ac_ct_CC 3115if test -n "$ac_ct_CC"; then 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3117$as_echo "$ac_ct_CC" >&6; } 3118else 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3120$as_echo "no" >&6; } 3121fi 3122 3123 if test "x$ac_ct_CC" = x; then 3124 CC="" 3125 else 3126 case $cross_compiling:$ac_tool_warned in 3127yes:) 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3130ac_tool_warned=yes ;; 3131esac 3132 CC=$ac_ct_CC 3133 fi 3134else 3135 CC="$ac_cv_prog_CC" 3136fi 3137 3138if test -z "$CC"; then 3139 if test -n "$ac_tool_prefix"; then 3140 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3141set dummy ${ac_tool_prefix}cc; ac_word=$2 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3143$as_echo_n "checking for $ac_word... " >&6; } 3144if ${ac_cv_prog_CC+:} false; then : 3145 $as_echo_n "(cached) " >&6 3146else 3147 if test -n "$CC"; then 3148 ac_cv_prog_CC="$CC" # Let the user override the test. 3149else 3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3151for as_dir in $PATH 3152do 3153 IFS=$as_save_IFS 3154 test -z "$as_dir" && as_dir=. 3155 for ac_exec_ext in '' $ac_executable_extensions; do 3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3157 ac_cv_prog_CC="${ac_tool_prefix}cc" 3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3159 break 2 3160 fi 3161done 3162 done 3163IFS=$as_save_IFS 3164 3165fi 3166fi 3167CC=$ac_cv_prog_CC 3168if test -n "$CC"; then 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3170$as_echo "$CC" >&6; } 3171else 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3173$as_echo "no" >&6; } 3174fi 3175 3176 3177 fi 3178fi 3179if test -z "$CC"; then 3180 # Extract the first word of "cc", so it can be a program name with args. 3181set dummy cc; ac_word=$2 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3183$as_echo_n "checking for $ac_word... " >&6; } 3184if ${ac_cv_prog_CC+:} false; then : 3185 $as_echo_n "(cached) " >&6 3186else 3187 if test -n "$CC"; then 3188 ac_cv_prog_CC="$CC" # Let the user override the test. 3189else 3190 ac_prog_rejected=no 3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3192for as_dir in $PATH 3193do 3194 IFS=$as_save_IFS 3195 test -z "$as_dir" && as_dir=. 3196 for ac_exec_ext in '' $ac_executable_extensions; do 3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3198 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3199 ac_prog_rejected=yes 3200 continue 3201 fi 3202 ac_cv_prog_CC="cc" 3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3204 break 2 3205 fi 3206done 3207 done 3208IFS=$as_save_IFS 3209 3210if test $ac_prog_rejected = yes; then 3211 # We found a bogon in the path, so make sure we never use it. 3212 set dummy $ac_cv_prog_CC 3213 shift 3214 if test $# != 0; then 3215 # We chose a different compiler from the bogus one. 3216 # However, it has the same basename, so the bogon will be chosen 3217 # first if we set CC to just the basename; use the full file name. 3218 shift 3219 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3220 fi 3221fi 3222fi 3223fi 3224CC=$ac_cv_prog_CC 3225if test -n "$CC"; then 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3227$as_echo "$CC" >&6; } 3228else 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3230$as_echo "no" >&6; } 3231fi 3232 3233 3234fi 3235if test -z "$CC"; then 3236 if test -n "$ac_tool_prefix"; then 3237 for ac_prog in cl.exe 3238 do 3239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3240set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3242$as_echo_n "checking for $ac_word... " >&6; } 3243if ${ac_cv_prog_CC+:} false; then : 3244 $as_echo_n "(cached) " >&6 3245else 3246 if test -n "$CC"; then 3247 ac_cv_prog_CC="$CC" # Let the user override the test. 3248else 3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3250for as_dir in $PATH 3251do 3252 IFS=$as_save_IFS 3253 test -z "$as_dir" && as_dir=. 3254 for ac_exec_ext in '' $ac_executable_extensions; do 3255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3256 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3258 break 2 3259 fi 3260done 3261 done 3262IFS=$as_save_IFS 3263 3264fi 3265fi 3266CC=$ac_cv_prog_CC 3267if test -n "$CC"; then 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3269$as_echo "$CC" >&6; } 3270else 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3272$as_echo "no" >&6; } 3273fi 3274 3275 3276 test -n "$CC" && break 3277 done 3278fi 3279if test -z "$CC"; then 3280 ac_ct_CC=$CC 3281 for ac_prog in cl.exe 3282do 3283 # Extract the first word of "$ac_prog", so it can be a program name with args. 3284set dummy $ac_prog; ac_word=$2 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3286$as_echo_n "checking for $ac_word... " >&6; } 3287if ${ac_cv_prog_ac_ct_CC+:} false; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 if test -n "$ac_ct_CC"; then 3291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3292else 3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3294for as_dir in $PATH 3295do 3296 IFS=$as_save_IFS 3297 test -z "$as_dir" && as_dir=. 3298 for ac_exec_ext in '' $ac_executable_extensions; do 3299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3300 ac_cv_prog_ac_ct_CC="$ac_prog" 3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3302 break 2 3303 fi 3304done 3305 done 3306IFS=$as_save_IFS 3307 3308fi 3309fi 3310ac_ct_CC=$ac_cv_prog_ac_ct_CC 3311if test -n "$ac_ct_CC"; then 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3313$as_echo "$ac_ct_CC" >&6; } 3314else 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3316$as_echo "no" >&6; } 3317fi 3318 3319 3320 test -n "$ac_ct_CC" && break 3321done 3322 3323 if test "x$ac_ct_CC" = x; then 3324 CC="" 3325 else 3326 case $cross_compiling:$ac_tool_warned in 3327yes:) 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3330ac_tool_warned=yes ;; 3331esac 3332 CC=$ac_ct_CC 3333 fi 3334fi 3335 3336fi 3337 3338 3339test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3341as_fn_error $? "no acceptable C compiler found in \$PATH 3342See \`config.log' for more details" "$LINENO" 5; } 3343 3344# Provide some information about the compiler. 3345$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3346set X $ac_compile 3347ac_compiler=$2 3348for ac_option in --version -v -V -qversion; do 3349 { { ac_try="$ac_compiler $ac_option >&5" 3350case "(($ac_try" in 3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3352 *) ac_try_echo=$ac_try;; 3353esac 3354eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3355$as_echo "$ac_try_echo"; } >&5 3356 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3357 ac_status=$? 3358 if test -s conftest.err; then 3359 sed '10a\ 3360... rest of stderr output deleted ... 3361 10q' conftest.err >conftest.er1 3362 cat conftest.er1 >&5 3363 fi 3364 rm -f conftest.er1 conftest.err 3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3366 test $ac_status = 0; } 3367done 3368 3369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3370/* end confdefs.h. */ 3371 3372int 3373main () 3374{ 3375 3376 ; 3377 return 0; 3378} 3379_ACEOF 3380ac_clean_files_save=$ac_clean_files 3381ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3382# Try to create an executable without -o first, disregard a.out. 3383# It will help us diagnose broken compilers, and finding out an intuition 3384# of exeext. 3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3386$as_echo_n "checking whether the C compiler works... " >&6; } 3387ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3388 3389# The possible output files: 3390ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3391 3392ac_rmfiles= 3393for ac_file in $ac_files 3394do 3395 case $ac_file in 3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3397 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3398 esac 3399done 3400rm -f $ac_rmfiles 3401 3402if { { ac_try="$ac_link_default" 3403case "(($ac_try" in 3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3405 *) ac_try_echo=$ac_try;; 3406esac 3407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3408$as_echo "$ac_try_echo"; } >&5 3409 (eval "$ac_link_default") 2>&5 3410 ac_status=$? 3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3412 test $ac_status = 0; }; then : 3413 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3414# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3415# in a Makefile. We should not override ac_cv_exeext if it was cached, 3416# so that the user can short-circuit this test for compilers unknown to 3417# Autoconf. 3418for ac_file in $ac_files '' 3419do 3420 test -f "$ac_file" || continue 3421 case $ac_file in 3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3423 ;; 3424 [ab].out ) 3425 # We found the default executable, but exeext='' is most 3426 # certainly right. 3427 break;; 3428 *.* ) 3429 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3430 then :; else 3431 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3432 fi 3433 # We set ac_cv_exeext here because the later test for it is not 3434 # safe: cross compilers may not add the suffix if given an `-o' 3435 # argument, so we may need to know it at that point already. 3436 # Even if this section looks crufty: it has the advantage of 3437 # actually working. 3438 break;; 3439 * ) 3440 break;; 3441 esac 3442done 3443test "$ac_cv_exeext" = no && ac_cv_exeext= 3444 3445else 3446 ac_file='' 3447fi 3448if test -z "$ac_file"; then : 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3450$as_echo "no" >&6; } 3451$as_echo "$as_me: failed program was:" >&5 3452sed 's/^/| /' conftest.$ac_ext >&5 3453 3454{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3456as_fn_error 77 "C compiler cannot create executables 3457See \`config.log' for more details" "$LINENO" 5; } 3458else 3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3460$as_echo "yes" >&6; } 3461fi 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3463$as_echo_n "checking for C compiler default output file name... " >&6; } 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3465$as_echo "$ac_file" >&6; } 3466ac_exeext=$ac_cv_exeext 3467 3468rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3469ac_clean_files=$ac_clean_files_save 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3471$as_echo_n "checking for suffix of executables... " >&6; } 3472if { { ac_try="$ac_link" 3473case "(($ac_try" in 3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3475 *) ac_try_echo=$ac_try;; 3476esac 3477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3478$as_echo "$ac_try_echo"; } >&5 3479 (eval "$ac_link") 2>&5 3480 ac_status=$? 3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3482 test $ac_status = 0; }; then : 3483 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3484# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3485# work properly (i.e., refer to `conftest.exe'), while it won't with 3486# `rm'. 3487for ac_file in conftest.exe conftest conftest.*; do 3488 test -f "$ac_file" || continue 3489 case $ac_file in 3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3491 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3492 break;; 3493 * ) break;; 3494 esac 3495done 3496else 3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3499as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3500See \`config.log' for more details" "$LINENO" 5; } 3501fi 3502rm -f conftest conftest$ac_cv_exeext 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3504$as_echo "$ac_cv_exeext" >&6; } 3505 3506rm -f conftest.$ac_ext 3507EXEEXT=$ac_cv_exeext 3508ac_exeext=$EXEEXT 3509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3510/* end confdefs.h. */ 3511#include <stdio.h> 3512int 3513main () 3514{ 3515FILE *f = fopen ("conftest.out", "w"); 3516 return ferror (f) || fclose (f) != 0; 3517 3518 ; 3519 return 0; 3520} 3521_ACEOF 3522ac_clean_files="$ac_clean_files conftest.out" 3523# Check that the compiler produces executables we can run. If not, either 3524# the compiler is broken, or we cross compile. 3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3526$as_echo_n "checking whether we are cross compiling... " >&6; } 3527if test "$cross_compiling" != yes; then 3528 { { ac_try="$ac_link" 3529case "(($ac_try" in 3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3531 *) ac_try_echo=$ac_try;; 3532esac 3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3534$as_echo "$ac_try_echo"; } >&5 3535 (eval "$ac_link") 2>&5 3536 ac_status=$? 3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3538 test $ac_status = 0; } 3539 if { ac_try='./conftest$ac_cv_exeext' 3540 { { case "(($ac_try" in 3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3542 *) ac_try_echo=$ac_try;; 3543esac 3544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3545$as_echo "$ac_try_echo"; } >&5 3546 (eval "$ac_try") 2>&5 3547 ac_status=$? 3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3549 test $ac_status = 0; }; }; then 3550 cross_compiling=no 3551 else 3552 if test "$cross_compiling" = maybe; then 3553 cross_compiling=yes 3554 else 3555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3557as_fn_error $? "cannot run C compiled programs. 3558If you meant to cross compile, use \`--host'. 3559See \`config.log' for more details" "$LINENO" 5; } 3560 fi 3561 fi 3562fi 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3564$as_echo "$cross_compiling" >&6; } 3565 3566rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3567ac_clean_files=$ac_clean_files_save 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3569$as_echo_n "checking for suffix of object files... " >&6; } 3570if ${ac_cv_objext+:} false; then : 3571 $as_echo_n "(cached) " >&6 3572else 3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3574/* end confdefs.h. */ 3575 3576int 3577main () 3578{ 3579 3580 ; 3581 return 0; 3582} 3583_ACEOF 3584rm -f conftest.o conftest.obj 3585if { { ac_try="$ac_compile" 3586case "(($ac_try" in 3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3588 *) ac_try_echo=$ac_try;; 3589esac 3590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3591$as_echo "$ac_try_echo"; } >&5 3592 (eval "$ac_compile") 2>&5 3593 ac_status=$? 3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3595 test $ac_status = 0; }; then : 3596 for ac_file in conftest.o conftest.obj conftest.*; do 3597 test -f "$ac_file" || continue; 3598 case $ac_file in 3599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3601 break;; 3602 esac 3603done 3604else 3605 $as_echo "$as_me: failed program was:" >&5 3606sed 's/^/| /' conftest.$ac_ext >&5 3607 3608{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3610as_fn_error $? "cannot compute suffix of object files: cannot compile 3611See \`config.log' for more details" "$LINENO" 5; } 3612fi 3613rm -f conftest.$ac_cv_objext conftest.$ac_ext 3614fi 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3616$as_echo "$ac_cv_objext" >&6; } 3617OBJEXT=$ac_cv_objext 3618ac_objext=$OBJEXT 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3620$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3621if ${ac_cv_c_compiler_gnu+:} false; then : 3622 $as_echo_n "(cached) " >&6 3623else 3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3625/* end confdefs.h. */ 3626 3627int 3628main () 3629{ 3630#ifndef __GNUC__ 3631 choke me 3632#endif 3633 3634 ; 3635 return 0; 3636} 3637_ACEOF 3638if ac_fn_c_try_compile "$LINENO"; then : 3639 ac_compiler_gnu=yes 3640else 3641 ac_compiler_gnu=no 3642fi 3643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3644ac_cv_c_compiler_gnu=$ac_compiler_gnu 3645 3646fi 3647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3648$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3649if test $ac_compiler_gnu = yes; then 3650 GCC=yes 3651else 3652 GCC= 3653fi 3654ac_test_CFLAGS=${CFLAGS+set} 3655ac_save_CFLAGS=$CFLAGS 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3657$as_echo_n "checking whether $CC accepts -g... " >&6; } 3658if ${ac_cv_prog_cc_g+:} false; then : 3659 $as_echo_n "(cached) " >&6 3660else 3661 ac_save_c_werror_flag=$ac_c_werror_flag 3662 ac_c_werror_flag=yes 3663 ac_cv_prog_cc_g=no 3664 CFLAGS="-g" 3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3666/* end confdefs.h. */ 3667 3668int 3669main () 3670{ 3671 3672 ; 3673 return 0; 3674} 3675_ACEOF 3676if ac_fn_c_try_compile "$LINENO"; then : 3677 ac_cv_prog_cc_g=yes 3678else 3679 CFLAGS="" 3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3681/* end confdefs.h. */ 3682 3683int 3684main () 3685{ 3686 3687 ; 3688 return 0; 3689} 3690_ACEOF 3691if ac_fn_c_try_compile "$LINENO"; then : 3692 3693else 3694 ac_c_werror_flag=$ac_save_c_werror_flag 3695 CFLAGS="-g" 3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3697/* end confdefs.h. */ 3698 3699int 3700main () 3701{ 3702 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707if ac_fn_c_try_compile "$LINENO"; then : 3708 ac_cv_prog_cc_g=yes 3709fi 3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3711fi 3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3713fi 3714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3715 ac_c_werror_flag=$ac_save_c_werror_flag 3716fi 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3718$as_echo "$ac_cv_prog_cc_g" >&6; } 3719if test "$ac_test_CFLAGS" = set; then 3720 CFLAGS=$ac_save_CFLAGS 3721elif test $ac_cv_prog_cc_g = yes; then 3722 if test "$GCC" = yes; then 3723 CFLAGS="-g -O2" 3724 else 3725 CFLAGS="-g" 3726 fi 3727else 3728 if test "$GCC" = yes; then 3729 CFLAGS="-O2" 3730 else 3731 CFLAGS= 3732 fi 3733fi 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3735$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3736if ${ac_cv_prog_cc_c89+:} false; then : 3737 $as_echo_n "(cached) " >&6 3738else 3739 ac_cv_prog_cc_c89=no 3740ac_save_CC=$CC 3741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3742/* end confdefs.h. */ 3743#include <stdarg.h> 3744#include <stdio.h> 3745struct stat; 3746/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3747struct buf { int x; }; 3748FILE * (*rcsopen) (struct buf *, struct stat *, int); 3749static char *e (p, i) 3750 char **p; 3751 int i; 3752{ 3753 return p[i]; 3754} 3755static char *f (char * (*g) (char **, int), char **p, ...) 3756{ 3757 char *s; 3758 va_list v; 3759 va_start (v,p); 3760 s = g (p, va_arg (v,int)); 3761 va_end (v); 3762 return s; 3763} 3764 3765/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3766 function prototypes and stuff, but not '\xHH' hex character constants. 3767 These don't provoke an error unfortunately, instead are silently treated 3768 as 'x'. The following induces an error, until -std is added to get 3769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3770 array size at least. It's necessary to write '\x00'==0 to get something 3771 that's true only with -std. */ 3772int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3773 3774/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3775 inside strings and character constants. */ 3776#define FOO(x) 'x' 3777int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3778 3779int test (int i, double x); 3780struct s1 {int (*f) (int a);}; 3781struct s2 {int (*f) (double a);}; 3782int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3783int argc; 3784char **argv; 3785int 3786main () 3787{ 3788return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3789 ; 3790 return 0; 3791} 3792_ACEOF 3793for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3794 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3795do 3796 CC="$ac_save_CC $ac_arg" 3797 if ac_fn_c_try_compile "$LINENO"; then : 3798 ac_cv_prog_cc_c89=$ac_arg 3799fi 3800rm -f core conftest.err conftest.$ac_objext 3801 test "x$ac_cv_prog_cc_c89" != "xno" && break 3802done 3803rm -f conftest.$ac_ext 3804CC=$ac_save_CC 3805 3806fi 3807# AC_CACHE_VAL 3808case "x$ac_cv_prog_cc_c89" in 3809 x) 3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3811$as_echo "none needed" >&6; } ;; 3812 xno) 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3814$as_echo "unsupported" >&6; } ;; 3815 *) 3816 CC="$CC $ac_cv_prog_cc_c89" 3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3818$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3819esac 3820if test "x$ac_cv_prog_cc_c89" != xno; then : 3821 3822fi 3823 3824ac_ext=c 3825ac_cpp='$CPP $CPPFLAGS' 3826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3828ac_compiler_gnu=$ac_cv_c_compiler_gnu 3829DEPDIR="${am__leading_dot}deps" 3830 3831ac_config_commands="$ac_config_commands depfiles" 3832 3833 3834am_make=${MAKE-make} 3835cat > confinc << 'END' 3836am__doit: 3837 @echo this is the am__doit target 3838.PHONY: am__doit 3839END 3840# If we don't find an include directive, just comment out the code. 3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3842$as_echo_n "checking for style of include used by $am_make... " >&6; } 3843am__include="#" 3844am__quote= 3845_am_result=none 3846# First try GNU make style include. 3847echo "include confinc" > confmf 3848# Ignore all kinds of additional output from 'make'. 3849case `$am_make -s -f confmf 2> /dev/null` in #( 3850*the\ am__doit\ target*) 3851 am__include=include 3852 am__quote= 3853 _am_result=GNU 3854 ;; 3855esac 3856# Now try BSD make style include. 3857if test "$am__include" = "#"; then 3858 echo '.include "confinc"' > confmf 3859 case `$am_make -s -f confmf 2> /dev/null` in #( 3860 *the\ am__doit\ target*) 3861 am__include=.include 3862 am__quote="\"" 3863 _am_result=BSD 3864 ;; 3865 esac 3866fi 3867 3868 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3870$as_echo "$_am_result" >&6; } 3871rm -f confinc confmf 3872 3873# Check whether --enable-dependency-tracking was given. 3874if test "${enable_dependency_tracking+set}" = set; then : 3875 enableval=$enable_dependency_tracking; 3876fi 3877 3878if test "x$enable_dependency_tracking" != xno; then 3879 am_depcomp="$ac_aux_dir/depcomp" 3880 AMDEPBACKSLASH='\' 3881 am__nodep='_no' 3882fi 3883 if test "x$enable_dependency_tracking" != xno; then 3884 AMDEP_TRUE= 3885 AMDEP_FALSE='#' 3886else 3887 AMDEP_TRUE='#' 3888 AMDEP_FALSE= 3889fi 3890 3891 3892 3893depcc="$CC" am_compiler_list= 3894 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3896$as_echo_n "checking dependency style of $depcc... " >&6; } 3897if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3898 $as_echo_n "(cached) " >&6 3899else 3900 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3901 # We make a subdir and do the tests there. Otherwise we can end up 3902 # making bogus files that we don't know about and never remove. For 3903 # instance it was reported that on HP-UX the gcc test will end up 3904 # making a dummy file named 'D' -- because '-MD' means "put the output 3905 # in D". 3906 rm -rf conftest.dir 3907 mkdir conftest.dir 3908 # Copy depcomp to subdir because otherwise we won't find it if we're 3909 # using a relative directory. 3910 cp "$am_depcomp" conftest.dir 3911 cd conftest.dir 3912 # We will build objects and dependencies in a subdirectory because 3913 # it helps to detect inapplicable dependency modes. For instance 3914 # both Tru64's cc and ICC support -MD to output dependencies as a 3915 # side effect of compilation, but ICC will put the dependencies in 3916 # the current directory while Tru64 will put them in the object 3917 # directory. 3918 mkdir sub 3919 3920 am_cv_CC_dependencies_compiler_type=none 3921 if test "$am_compiler_list" = ""; then 3922 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3923 fi 3924 am__universal=false 3925 case " $depcc " in #( 3926 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3927 esac 3928 3929 for depmode in $am_compiler_list; do 3930 # Setup a source with many dependencies, because some compilers 3931 # like to wrap large dependency lists on column 80 (with \), and 3932 # we should not choose a depcomp mode which is confused by this. 3933 # 3934 # We need to recreate these files for each test, as the compiler may 3935 # overwrite some of them when testing with obscure command lines. 3936 # This happens at least with the AIX C compiler. 3937 : > sub/conftest.c 3938 for i in 1 2 3 4 5 6; do 3939 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3940 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3941 # Solaris 10 /bin/sh. 3942 echo '/* dummy */' > sub/conftst$i.h 3943 done 3944 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3945 3946 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3947 # mode. It turns out that the SunPro C++ compiler does not properly 3948 # handle '-M -o', and we need to detect this. Also, some Intel 3949 # versions had trouble with output in subdirs. 3950 am__obj=sub/conftest.${OBJEXT-o} 3951 am__minus_obj="-o $am__obj" 3952 case $depmode in 3953 gcc) 3954 # This depmode causes a compiler race in universal mode. 3955 test "$am__universal" = false || continue 3956 ;; 3957 nosideeffect) 3958 # After this tag, mechanisms are not by side-effect, so they'll 3959 # only be used when explicitly requested. 3960 if test "x$enable_dependency_tracking" = xyes; then 3961 continue 3962 else 3963 break 3964 fi 3965 ;; 3966 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3967 # This compiler won't grok '-c -o', but also, the minuso test has 3968 # not run yet. These depmodes are late enough in the game, and 3969 # so weak that their functioning should not be impacted. 3970 am__obj=conftest.${OBJEXT-o} 3971 am__minus_obj= 3972 ;; 3973 none) break ;; 3974 esac 3975 if depmode=$depmode \ 3976 source=sub/conftest.c object=$am__obj \ 3977 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3978 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3979 >/dev/null 2>conftest.err && 3980 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3981 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3982 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3983 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3984 # icc doesn't choke on unknown options, it will just issue warnings 3985 # or remarks (even with -Werror). So we grep stderr for any message 3986 # that says an option was ignored or not supported. 3987 # When given -MP, icc 7.0 and 7.1 complain thusly: 3988 # icc: Command line warning: ignoring option '-M'; no argument required 3989 # The diagnosis changed in icc 8.0: 3990 # icc: Command line remark: option '-MP' not supported 3991 if (grep 'ignoring option' conftest.err || 3992 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3993 am_cv_CC_dependencies_compiler_type=$depmode 3994 break 3995 fi 3996 fi 3997 done 3998 3999 cd .. 4000 rm -rf conftest.dir 4001else 4002 am_cv_CC_dependencies_compiler_type=none 4003fi 4004 4005fi 4006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4007$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4008CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4009 4010 if 4011 test "x$enable_dependency_tracking" != xno \ 4012 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4013 am__fastdepCC_TRUE= 4014 am__fastdepCC_FALSE='#' 4015else 4016 am__fastdepCC_TRUE='#' 4017 am__fastdepCC_FALSE= 4018fi 4019 4020 4021if test "x$CC" != xcc; then 4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4023$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4024else 4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4026$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4027fi 4028set dummy $CC; ac_cc=`$as_echo "$2" | 4029 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4030if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 4031 $as_echo_n "(cached) " >&6 4032else 4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034/* end confdefs.h. */ 4035 4036int 4037main () 4038{ 4039 4040 ; 4041 return 0; 4042} 4043_ACEOF 4044# Make sure it works both with $CC and with simple cc. 4045# We do the test twice because some compilers refuse to overwrite an 4046# existing .o file with -o, though they will create one. 4047ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4048rm -f conftest2.* 4049if { { case "(($ac_try" in 4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4051 *) ac_try_echo=$ac_try;; 4052esac 4053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4054$as_echo "$ac_try_echo"; } >&5 4055 (eval "$ac_try") 2>&5 4056 ac_status=$? 4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4058 test $ac_status = 0; } && 4059 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4061 *) ac_try_echo=$ac_try;; 4062esac 4063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4064$as_echo "$ac_try_echo"; } >&5 4065 (eval "$ac_try") 2>&5 4066 ac_status=$? 4067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4068 test $ac_status = 0; }; 4069then 4070 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4071 if test "x$CC" != xcc; then 4072 # Test first that cc exists at all. 4073 if { ac_try='cc -c conftest.$ac_ext >&5' 4074 { { case "(($ac_try" in 4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4076 *) ac_try_echo=$ac_try;; 4077esac 4078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4079$as_echo "$ac_try_echo"; } >&5 4080 (eval "$ac_try") 2>&5 4081 ac_status=$? 4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4083 test $ac_status = 0; }; }; then 4084 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4085 rm -f conftest2.* 4086 if { { case "(($ac_try" in 4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4088 *) ac_try_echo=$ac_try;; 4089esac 4090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4091$as_echo "$ac_try_echo"; } >&5 4092 (eval "$ac_try") 2>&5 4093 ac_status=$? 4094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4095 test $ac_status = 0; } && 4096 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4098 *) ac_try_echo=$ac_try;; 4099esac 4100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4101$as_echo "$ac_try_echo"; } >&5 4102 (eval "$ac_try") 2>&5 4103 ac_status=$? 4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4105 test $ac_status = 0; }; 4106 then 4107 # cc works too. 4108 : 4109 else 4110 # cc exists but doesn't like -o. 4111 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4112 fi 4113 fi 4114 fi 4115else 4116 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4117fi 4118rm -f core conftest* 4119 4120fi 4121if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4123$as_echo "yes" >&6; } 4124else 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4126$as_echo "no" >&6; } 4127 4128$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4129 4130fi 4131 4132# FIXME: we rely on the cache variable name because 4133# there is no other way. 4134set dummy $CC 4135am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4136eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4137if test "$am_t" != yes; then 4138 # Losing compiler, so override with the script. 4139 # FIXME: It is wrong to rewrite CC. 4140 # But if we don't then we get into trouble of one sort or another. 4141 # A longer-term fix would be to have automake use am__CC in this case, 4142 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4143 CC="$am_aux_dir/compile $CC" 4144fi 4145 4146 4147ac_ext=c 4148ac_cpp='$CPP $CPPFLAGS' 4149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4151ac_compiler_gnu=$ac_cv_c_compiler_gnu 4152 4153case `pwd` in 4154 *\ * | *\ *) 4155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4156$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4157esac 4158 4159 4160 4161macro_version='2.4.2' 4162macro_revision='1.3337' 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176ltmain="$ac_aux_dir/ltmain.sh" 4177 4178# Make sure we can run config.sub. 4179$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4180 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4181 4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4183$as_echo_n "checking build system type... " >&6; } 4184if ${ac_cv_build+:} false; then : 4185 $as_echo_n "(cached) " >&6 4186else 4187 ac_build_alias=$build_alias 4188test "x$ac_build_alias" = x && 4189 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4190test "x$ac_build_alias" = x && 4191 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4192ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4193 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4194 4195fi 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4197$as_echo "$ac_cv_build" >&6; } 4198case $ac_cv_build in 4199*-*-*) ;; 4200*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4201esac 4202build=$ac_cv_build 4203ac_save_IFS=$IFS; IFS='-' 4204set x $ac_cv_build 4205shift 4206build_cpu=$1 4207build_vendor=$2 4208shift; shift 4209# Remember, the first character of IFS is used to create $*, 4210# except with old shells: 4211build_os=$* 4212IFS=$ac_save_IFS 4213case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4214 4215 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4217$as_echo_n "checking host system type... " >&6; } 4218if ${ac_cv_host+:} false; then : 4219 $as_echo_n "(cached) " >&6 4220else 4221 if test "x$host_alias" = x; then 4222 ac_cv_host=$ac_cv_build 4223else 4224 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4225 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4226fi 4227 4228fi 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4230$as_echo "$ac_cv_host" >&6; } 4231case $ac_cv_host in 4232*-*-*) ;; 4233*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4234esac 4235host=$ac_cv_host 4236ac_save_IFS=$IFS; IFS='-' 4237set x $ac_cv_host 4238shift 4239host_cpu=$1 4240host_vendor=$2 4241shift; shift 4242# Remember, the first character of IFS is used to create $*, 4243# except with old shells: 4244host_os=$* 4245IFS=$ac_save_IFS 4246case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4247 4248 4249# Backslashify metacharacters that are still active within 4250# double-quoted strings. 4251sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4252 4253# Same as above, but do not quote variable references. 4254double_quote_subst='s/\(["`\\]\)/\\\1/g' 4255 4256# Sed substitution to delay expansion of an escaped shell variable in a 4257# double_quote_subst'ed string. 4258delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4259 4260# Sed substitution to delay expansion of an escaped single quote. 4261delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4262 4263# Sed substitution to avoid accidental globbing in evaled expressions 4264no_glob_subst='s/\*/\\\*/g' 4265 4266ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4267ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4268ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4269 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4271$as_echo_n "checking how to print strings... " >&6; } 4272# Test print first, because it will be a builtin if present. 4273if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4274 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4275 ECHO='print -r --' 4276elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4277 ECHO='printf %s\n' 4278else 4279 # Use this function as a fallback that always works. 4280 func_fallback_echo () 4281 { 4282 eval 'cat <<_LTECHO_EOF 4283$1 4284_LTECHO_EOF' 4285 } 4286 ECHO='func_fallback_echo' 4287fi 4288 4289# func_echo_all arg... 4290# Invoke $ECHO with all args, space-separated. 4291func_echo_all () 4292{ 4293 $ECHO "" 4294} 4295 4296case "$ECHO" in 4297 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4298$as_echo "printf" >&6; } ;; 4299 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4300$as_echo "print -r" >&6; } ;; 4301 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4302$as_echo "cat" >&6; } ;; 4303esac 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4319$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4320if ${ac_cv_path_SED+:} false; then : 4321 $as_echo_n "(cached) " >&6 4322else 4323 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4324 for ac_i in 1 2 3 4 5 6 7; do 4325 ac_script="$ac_script$as_nl$ac_script" 4326 done 4327 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4328 { ac_script=; unset ac_script;} 4329 if test -z "$SED"; then 4330 ac_path_SED_found=false 4331 # Loop through the user's path and test for each of PROGNAME-LIST 4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4333for as_dir in $PATH 4334do 4335 IFS=$as_save_IFS 4336 test -z "$as_dir" && as_dir=. 4337 for ac_prog in sed gsed; do 4338 for ac_exec_ext in '' $ac_executable_extensions; do 4339 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4340 as_fn_executable_p "$ac_path_SED" || continue 4341# Check for GNU ac_path_SED and select it if it is found. 4342 # Check for GNU $ac_path_SED 4343case `"$ac_path_SED" --version 2>&1` in 4344*GNU*) 4345 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4346*) 4347 ac_count=0 4348 $as_echo_n 0123456789 >"conftest.in" 4349 while : 4350 do 4351 cat "conftest.in" "conftest.in" >"conftest.tmp" 4352 mv "conftest.tmp" "conftest.in" 4353 cp "conftest.in" "conftest.nl" 4354 $as_echo '' >> "conftest.nl" 4355 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4357 as_fn_arith $ac_count + 1 && ac_count=$as_val 4358 if test $ac_count -gt ${ac_path_SED_max-0}; then 4359 # Best one so far, save it but keep looking for a better one 4360 ac_cv_path_SED="$ac_path_SED" 4361 ac_path_SED_max=$ac_count 4362 fi 4363 # 10*(2^10) chars as input seems more than enough 4364 test $ac_count -gt 10 && break 4365 done 4366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4367esac 4368 4369 $ac_path_SED_found && break 3 4370 done 4371 done 4372 done 4373IFS=$as_save_IFS 4374 if test -z "$ac_cv_path_SED"; then 4375 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4376 fi 4377else 4378 ac_cv_path_SED=$SED 4379fi 4380 4381fi 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4383$as_echo "$ac_cv_path_SED" >&6; } 4384 SED="$ac_cv_path_SED" 4385 rm -f conftest.sed 4386 4387test -z "$SED" && SED=sed 4388Xsed="$SED -e 1s/^X//" 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4401$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4402if ${ac_cv_path_GREP+:} false; then : 4403 $as_echo_n "(cached) " >&6 4404else 4405 if test -z "$GREP"; then 4406 ac_path_GREP_found=false 4407 # Loop through the user's path and test for each of PROGNAME-LIST 4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4409for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4410do 4411 IFS=$as_save_IFS 4412 test -z "$as_dir" && as_dir=. 4413 for ac_prog in grep ggrep; do 4414 for ac_exec_ext in '' $ac_executable_extensions; do 4415 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4416 as_fn_executable_p "$ac_path_GREP" || continue 4417# Check for GNU ac_path_GREP and select it if it is found. 4418 # Check for GNU $ac_path_GREP 4419case `"$ac_path_GREP" --version 2>&1` in 4420*GNU*) 4421 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4422*) 4423 ac_count=0 4424 $as_echo_n 0123456789 >"conftest.in" 4425 while : 4426 do 4427 cat "conftest.in" "conftest.in" >"conftest.tmp" 4428 mv "conftest.tmp" "conftest.in" 4429 cp "conftest.in" "conftest.nl" 4430 $as_echo 'GREP' >> "conftest.nl" 4431 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4432 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4433 as_fn_arith $ac_count + 1 && ac_count=$as_val 4434 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4435 # Best one so far, save it but keep looking for a better one 4436 ac_cv_path_GREP="$ac_path_GREP" 4437 ac_path_GREP_max=$ac_count 4438 fi 4439 # 10*(2^10) chars as input seems more than enough 4440 test $ac_count -gt 10 && break 4441 done 4442 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4443esac 4444 4445 $ac_path_GREP_found && break 3 4446 done 4447 done 4448 done 4449IFS=$as_save_IFS 4450 if test -z "$ac_cv_path_GREP"; then 4451 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4452 fi 4453else 4454 ac_cv_path_GREP=$GREP 4455fi 4456 4457fi 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4459$as_echo "$ac_cv_path_GREP" >&6; } 4460 GREP="$ac_cv_path_GREP" 4461 4462 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4464$as_echo_n "checking for egrep... " >&6; } 4465if ${ac_cv_path_EGREP+:} false; then : 4466 $as_echo_n "(cached) " >&6 4467else 4468 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4469 then ac_cv_path_EGREP="$GREP -E" 4470 else 4471 if test -z "$EGREP"; then 4472 ac_path_EGREP_found=false 4473 # Loop through the user's path and test for each of PROGNAME-LIST 4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4475for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4476do 4477 IFS=$as_save_IFS 4478 test -z "$as_dir" && as_dir=. 4479 for ac_prog in egrep; do 4480 for ac_exec_ext in '' $ac_executable_extensions; do 4481 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4482 as_fn_executable_p "$ac_path_EGREP" || continue 4483# Check for GNU ac_path_EGREP and select it if it is found. 4484 # Check for GNU $ac_path_EGREP 4485case `"$ac_path_EGREP" --version 2>&1` in 4486*GNU*) 4487 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4488*) 4489 ac_count=0 4490 $as_echo_n 0123456789 >"conftest.in" 4491 while : 4492 do 4493 cat "conftest.in" "conftest.in" >"conftest.tmp" 4494 mv "conftest.tmp" "conftest.in" 4495 cp "conftest.in" "conftest.nl" 4496 $as_echo 'EGREP' >> "conftest.nl" 4497 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4499 as_fn_arith $ac_count + 1 && ac_count=$as_val 4500 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4501 # Best one so far, save it but keep looking for a better one 4502 ac_cv_path_EGREP="$ac_path_EGREP" 4503 ac_path_EGREP_max=$ac_count 4504 fi 4505 # 10*(2^10) chars as input seems more than enough 4506 test $ac_count -gt 10 && break 4507 done 4508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4509esac 4510 4511 $ac_path_EGREP_found && break 3 4512 done 4513 done 4514 done 4515IFS=$as_save_IFS 4516 if test -z "$ac_cv_path_EGREP"; then 4517 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4518 fi 4519else 4520 ac_cv_path_EGREP=$EGREP 4521fi 4522 4523 fi 4524fi 4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4526$as_echo "$ac_cv_path_EGREP" >&6; } 4527 EGREP="$ac_cv_path_EGREP" 4528 4529 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4531$as_echo_n "checking for fgrep... " >&6; } 4532if ${ac_cv_path_FGREP+:} false; then : 4533 $as_echo_n "(cached) " >&6 4534else 4535 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4536 then ac_cv_path_FGREP="$GREP -F" 4537 else 4538 if test -z "$FGREP"; then 4539 ac_path_FGREP_found=false 4540 # Loop through the user's path and test for each of PROGNAME-LIST 4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4542for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4543do 4544 IFS=$as_save_IFS 4545 test -z "$as_dir" && as_dir=. 4546 for ac_prog in fgrep; do 4547 for ac_exec_ext in '' $ac_executable_extensions; do 4548 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4549 as_fn_executable_p "$ac_path_FGREP" || continue 4550# Check for GNU ac_path_FGREP and select it if it is found. 4551 # Check for GNU $ac_path_FGREP 4552case `"$ac_path_FGREP" --version 2>&1` in 4553*GNU*) 4554 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4555*) 4556 ac_count=0 4557 $as_echo_n 0123456789 >"conftest.in" 4558 while : 4559 do 4560 cat "conftest.in" "conftest.in" >"conftest.tmp" 4561 mv "conftest.tmp" "conftest.in" 4562 cp "conftest.in" "conftest.nl" 4563 $as_echo 'FGREP' >> "conftest.nl" 4564 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4566 as_fn_arith $ac_count + 1 && ac_count=$as_val 4567 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4568 # Best one so far, save it but keep looking for a better one 4569 ac_cv_path_FGREP="$ac_path_FGREP" 4570 ac_path_FGREP_max=$ac_count 4571 fi 4572 # 10*(2^10) chars as input seems more than enough 4573 test $ac_count -gt 10 && break 4574 done 4575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4576esac 4577 4578 $ac_path_FGREP_found && break 3 4579 done 4580 done 4581 done 4582IFS=$as_save_IFS 4583 if test -z "$ac_cv_path_FGREP"; then 4584 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4585 fi 4586else 4587 ac_cv_path_FGREP=$FGREP 4588fi 4589 4590 fi 4591fi 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4593$as_echo "$ac_cv_path_FGREP" >&6; } 4594 FGREP="$ac_cv_path_FGREP" 4595 4596 4597test -z "$GREP" && GREP=grep 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617# Check whether --with-gnu-ld was given. 4618if test "${with_gnu_ld+set}" = set; then : 4619 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4620else 4621 with_gnu_ld=no 4622fi 4623 4624ac_prog=ld 4625if test "$GCC" = yes; then 4626 # Check if gcc -print-prog-name=ld gives a path. 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4628$as_echo_n "checking for ld used by $CC... " >&6; } 4629 case $host in 4630 *-*-mingw*) 4631 # gcc leaves a trailing carriage return which upsets mingw 4632 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4633 *) 4634 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4635 esac 4636 case $ac_prog in 4637 # Accept absolute paths. 4638 [\\/]* | ?:[\\/]*) 4639 re_direlt='/[^/][^/]*/\.\./' 4640 # Canonicalize the pathname of ld 4641 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4642 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4643 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4644 done 4645 test -z "$LD" && LD="$ac_prog" 4646 ;; 4647 "") 4648 # If it fails, then pretend we aren't using GCC. 4649 ac_prog=ld 4650 ;; 4651 *) 4652 # If it is relative, then search for the first ld in PATH. 4653 with_gnu_ld=unknown 4654 ;; 4655 esac 4656elif test "$with_gnu_ld" = yes; then 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4658$as_echo_n "checking for GNU ld... " >&6; } 4659else 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4661$as_echo_n "checking for non-GNU ld... " >&6; } 4662fi 4663if ${lt_cv_path_LD+:} false; then : 4664 $as_echo_n "(cached) " >&6 4665else 4666 if test -z "$LD"; then 4667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4668 for ac_dir in $PATH; do 4669 IFS="$lt_save_ifs" 4670 test -z "$ac_dir" && ac_dir=. 4671 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4672 lt_cv_path_LD="$ac_dir/$ac_prog" 4673 # Check to see if the program is GNU ld. I'd rather use --version, 4674 # but apparently some variants of GNU ld only accept -v. 4675 # Break only if it was the GNU/non-GNU ld that we prefer. 4676 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4677 *GNU* | *'with BFD'*) 4678 test "$with_gnu_ld" != no && break 4679 ;; 4680 *) 4681 test "$with_gnu_ld" != yes && break 4682 ;; 4683 esac 4684 fi 4685 done 4686 IFS="$lt_save_ifs" 4687else 4688 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4689fi 4690fi 4691 4692LD="$lt_cv_path_LD" 4693if test -n "$LD"; then 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4695$as_echo "$LD" >&6; } 4696else 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4698$as_echo "no" >&6; } 4699fi 4700test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4702$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4703if ${lt_cv_prog_gnu_ld+:} false; then : 4704 $as_echo_n "(cached) " >&6 4705else 4706 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4707case `$LD -v 2>&1 </dev/null` in 4708*GNU* | *'with BFD'*) 4709 lt_cv_prog_gnu_ld=yes 4710 ;; 4711*) 4712 lt_cv_prog_gnu_ld=no 4713 ;; 4714esac 4715fi 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4717$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4718with_gnu_ld=$lt_cv_prog_gnu_ld 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4729$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4730if ${lt_cv_path_NM+:} false; then : 4731 $as_echo_n "(cached) " >&6 4732else 4733 if test -n "$NM"; then 4734 # Let the user override the test. 4735 lt_cv_path_NM="$NM" 4736else 4737 lt_nm_to_check="${ac_tool_prefix}nm" 4738 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4739 lt_nm_to_check="$lt_nm_to_check nm" 4740 fi 4741 for lt_tmp_nm in $lt_nm_to_check; do 4742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4743 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4744 IFS="$lt_save_ifs" 4745 test -z "$ac_dir" && ac_dir=. 4746 tmp_nm="$ac_dir/$lt_tmp_nm" 4747 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4748 # Check to see if the nm accepts a BSD-compat flag. 4749 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4750 # nm: unknown option "B" ignored 4751 # Tru64's nm complains that /dev/null is an invalid object file 4752 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4753 */dev/null* | *'Invalid file or object type'*) 4754 lt_cv_path_NM="$tmp_nm -B" 4755 break 4756 ;; 4757 *) 4758 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4759 */dev/null*) 4760 lt_cv_path_NM="$tmp_nm -p" 4761 break 4762 ;; 4763 *) 4764 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4765 continue # so that we can try to find one that supports BSD flags 4766 ;; 4767 esac 4768 ;; 4769 esac 4770 fi 4771 done 4772 IFS="$lt_save_ifs" 4773 done 4774 : ${lt_cv_path_NM=no} 4775fi 4776fi 4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4778$as_echo "$lt_cv_path_NM" >&6; } 4779if test "$lt_cv_path_NM" != "no"; then 4780 NM="$lt_cv_path_NM" 4781else 4782 # Didn't find any BSD compatible name lister, look for dumpbin. 4783 if test -n "$DUMPBIN"; then : 4784 # Let the user override the test. 4785 else 4786 if test -n "$ac_tool_prefix"; then 4787 for ac_prog in dumpbin "link -dump" 4788 do 4789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4790set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4792$as_echo_n "checking for $ac_word... " >&6; } 4793if ${ac_cv_prog_DUMPBIN+:} false; then : 4794 $as_echo_n "(cached) " >&6 4795else 4796 if test -n "$DUMPBIN"; then 4797 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4798else 4799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4800for as_dir in $PATH 4801do 4802 IFS=$as_save_IFS 4803 test -z "$as_dir" && as_dir=. 4804 for ac_exec_ext in '' $ac_executable_extensions; do 4805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4806 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4808 break 2 4809 fi 4810done 4811 done 4812IFS=$as_save_IFS 4813 4814fi 4815fi 4816DUMPBIN=$ac_cv_prog_DUMPBIN 4817if test -n "$DUMPBIN"; then 4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4819$as_echo "$DUMPBIN" >&6; } 4820else 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4822$as_echo "no" >&6; } 4823fi 4824 4825 4826 test -n "$DUMPBIN" && break 4827 done 4828fi 4829if test -z "$DUMPBIN"; then 4830 ac_ct_DUMPBIN=$DUMPBIN 4831 for ac_prog in dumpbin "link -dump" 4832do 4833 # Extract the first word of "$ac_prog", so it can be a program name with args. 4834set dummy $ac_prog; ac_word=$2 4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4836$as_echo_n "checking for $ac_word... " >&6; } 4837if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4838 $as_echo_n "(cached) " >&6 4839else 4840 if test -n "$ac_ct_DUMPBIN"; then 4841 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4842else 4843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4844for as_dir in $PATH 4845do 4846 IFS=$as_save_IFS 4847 test -z "$as_dir" && as_dir=. 4848 for ac_exec_ext in '' $ac_executable_extensions; do 4849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4850 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4852 break 2 4853 fi 4854done 4855 done 4856IFS=$as_save_IFS 4857 4858fi 4859fi 4860ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4861if test -n "$ac_ct_DUMPBIN"; then 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4863$as_echo "$ac_ct_DUMPBIN" >&6; } 4864else 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4866$as_echo "no" >&6; } 4867fi 4868 4869 4870 test -n "$ac_ct_DUMPBIN" && break 4871done 4872 4873 if test "x$ac_ct_DUMPBIN" = x; then 4874 DUMPBIN=":" 4875 else 4876 case $cross_compiling:$ac_tool_warned in 4877yes:) 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4880ac_tool_warned=yes ;; 4881esac 4882 DUMPBIN=$ac_ct_DUMPBIN 4883 fi 4884fi 4885 4886 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4887 *COFF*) 4888 DUMPBIN="$DUMPBIN -symbols" 4889 ;; 4890 *) 4891 DUMPBIN=: 4892 ;; 4893 esac 4894 fi 4895 4896 if test "$DUMPBIN" != ":"; then 4897 NM="$DUMPBIN" 4898 fi 4899fi 4900test -z "$NM" && NM=nm 4901 4902 4903 4904 4905 4906 4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4908$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4909if ${lt_cv_nm_interface+:} false; then : 4910 $as_echo_n "(cached) " >&6 4911else 4912 lt_cv_nm_interface="BSD nm" 4913 echo "int some_variable = 0;" > conftest.$ac_ext 4914 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4915 (eval "$ac_compile" 2>conftest.err) 4916 cat conftest.err >&5 4917 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4918 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4919 cat conftest.err >&5 4920 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4921 cat conftest.out >&5 4922 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4923 lt_cv_nm_interface="MS dumpbin" 4924 fi 4925 rm -f conftest* 4926fi 4927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4928$as_echo "$lt_cv_nm_interface" >&6; } 4929 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4931$as_echo_n "checking whether ln -s works... " >&6; } 4932LN_S=$as_ln_s 4933if test "$LN_S" = "ln -s"; then 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4935$as_echo "yes" >&6; } 4936else 4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4938$as_echo "no, using $LN_S" >&6; } 4939fi 4940 4941# find the maximum length of command line arguments 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4943$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4944if ${lt_cv_sys_max_cmd_len+:} false; then : 4945 $as_echo_n "(cached) " >&6 4946else 4947 i=0 4948 teststring="ABCD" 4949 4950 case $build_os in 4951 msdosdjgpp*) 4952 # On DJGPP, this test can blow up pretty badly due to problems in libc 4953 # (any single argument exceeding 2000 bytes causes a buffer overrun 4954 # during glob expansion). Even if it were fixed, the result of this 4955 # check would be larger than it should be. 4956 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4957 ;; 4958 4959 gnu*) 4960 # Under GNU Hurd, this test is not required because there is 4961 # no limit to the length of command line arguments. 4962 # Libtool will interpret -1 as no limit whatsoever 4963 lt_cv_sys_max_cmd_len=-1; 4964 ;; 4965 4966 cygwin* | mingw* | cegcc*) 4967 # On Win9x/ME, this test blows up -- it succeeds, but takes 4968 # about 5 minutes as the teststring grows exponentially. 4969 # Worse, since 9x/ME are not pre-emptively multitasking, 4970 # you end up with a "frozen" computer, even though with patience 4971 # the test eventually succeeds (with a max line length of 256k). 4972 # Instead, let's just punt: use the minimum linelength reported by 4973 # all of the supported platforms: 8192 (on NT/2K/XP). 4974 lt_cv_sys_max_cmd_len=8192; 4975 ;; 4976 4977 mint*) 4978 # On MiNT this can take a long time and run out of memory. 4979 lt_cv_sys_max_cmd_len=8192; 4980 ;; 4981 4982 amigaos*) 4983 # On AmigaOS with pdksh, this test takes hours, literally. 4984 # So we just punt and use a minimum line length of 8192. 4985 lt_cv_sys_max_cmd_len=8192; 4986 ;; 4987 4988 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4989 # This has been around since 386BSD, at least. Likely further. 4990 if test -x /sbin/sysctl; then 4991 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4992 elif test -x /usr/sbin/sysctl; then 4993 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4994 else 4995 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4996 fi 4997 # And add a safety zone 4998 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5000 ;; 5001 5002 interix*) 5003 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5004 lt_cv_sys_max_cmd_len=196608 5005 ;; 5006 5007 os2*) 5008 # The test takes a long time on OS/2. 5009 lt_cv_sys_max_cmd_len=8192 5010 ;; 5011 5012 osf*) 5013 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5014 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5015 # nice to cause kernel panics so lets avoid the loop below. 5016 # First set a reasonable default. 5017 lt_cv_sys_max_cmd_len=16384 5018 # 5019 if test -x /sbin/sysconfig; then 5020 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5021 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5022 esac 5023 fi 5024 ;; 5025 sco3.2v5*) 5026 lt_cv_sys_max_cmd_len=102400 5027 ;; 5028 sysv5* | sco5v6* | sysv4.2uw2*) 5029 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5030 if test -n "$kargmax"; then 5031 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5032 else 5033 lt_cv_sys_max_cmd_len=32768 5034 fi 5035 ;; 5036 *) 5037 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5038 if test -n "$lt_cv_sys_max_cmd_len"; then 5039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5041 else 5042 # Make teststring a little bigger before we do anything with it. 5043 # a 1K string should be a reasonable start. 5044 for i in 1 2 3 4 5 6 7 8 ; do 5045 teststring=$teststring$teststring 5046 done 5047 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5048 # If test is not a shell built-in, we'll probably end up computing a 5049 # maximum length that is only half of the actual maximum length, but 5050 # we can't tell. 5051 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5052 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5053 test $i != 17 # 1/2 MB should be enough 5054 do 5055 i=`expr $i + 1` 5056 teststring=$teststring$teststring 5057 done 5058 # Only check the string length outside the loop. 5059 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5060 teststring= 5061 # Add a significant safety factor because C++ compilers can tack on 5062 # massive amounts of additional arguments before passing them to the 5063 # linker. It appears as though 1/2 is a usable value. 5064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5065 fi 5066 ;; 5067 esac 5068 5069fi 5070 5071if test -n $lt_cv_sys_max_cmd_len ; then 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5073$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5074else 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5076$as_echo "none" >&6; } 5077fi 5078max_cmd_len=$lt_cv_sys_max_cmd_len 5079 5080 5081 5082 5083 5084 5085: ${CP="cp -f"} 5086: ${MV="mv -f"} 5087: ${RM="rm -f"} 5088 5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5090$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5091# Try some XSI features 5092xsi_shell=no 5093( _lt_dummy="a/b/c" 5094 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5095 = c,a/b,b/c, \ 5096 && eval 'test $(( 1 + 1 )) -eq 2 \ 5097 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5098 && xsi_shell=yes 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5100$as_echo "$xsi_shell" >&6; } 5101 5102 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5104$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5105lt_shell_append=no 5106( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5107 >/dev/null 2>&1 \ 5108 && lt_shell_append=yes 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5110$as_echo "$lt_shell_append" >&6; } 5111 5112 5113if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5114 lt_unset=unset 5115else 5116 lt_unset=false 5117fi 5118 5119 5120 5121 5122 5123# test EBCDIC or ASCII 5124case `echo X|tr X '\101'` in 5125 A) # ASCII based system 5126 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5127 lt_SP2NL='tr \040 \012' 5128 lt_NL2SP='tr \015\012 \040\040' 5129 ;; 5130 *) # EBCDIC based system 5131 lt_SP2NL='tr \100 \n' 5132 lt_NL2SP='tr \r\n \100\100' 5133 ;; 5134esac 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5145$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5146if ${lt_cv_to_host_file_cmd+:} false; then : 5147 $as_echo_n "(cached) " >&6 5148else 5149 case $host in 5150 *-*-mingw* ) 5151 case $build in 5152 *-*-mingw* ) # actually msys 5153 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5154 ;; 5155 *-*-cygwin* ) 5156 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5157 ;; 5158 * ) # otherwise, assume *nix 5159 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5160 ;; 5161 esac 5162 ;; 5163 *-*-cygwin* ) 5164 case $build in 5165 *-*-mingw* ) # actually msys 5166 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5167 ;; 5168 *-*-cygwin* ) 5169 lt_cv_to_host_file_cmd=func_convert_file_noop 5170 ;; 5171 * ) # otherwise, assume *nix 5172 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5173 ;; 5174 esac 5175 ;; 5176 * ) # unhandled hosts (and "normal" native builds) 5177 lt_cv_to_host_file_cmd=func_convert_file_noop 5178 ;; 5179esac 5180 5181fi 5182 5183to_host_file_cmd=$lt_cv_to_host_file_cmd 5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5185$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5186 5187 5188 5189 5190 5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5192$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5193if ${lt_cv_to_tool_file_cmd+:} false; then : 5194 $as_echo_n "(cached) " >&6 5195else 5196 #assume ordinary cross tools, or native build. 5197lt_cv_to_tool_file_cmd=func_convert_file_noop 5198case $host in 5199 *-*-mingw* ) 5200 case $build in 5201 *-*-mingw* ) # actually msys 5202 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5203 ;; 5204 esac 5205 ;; 5206esac 5207 5208fi 5209 5210to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5212$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5213 5214 5215 5216 5217 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5219$as_echo_n "checking for $LD option to reload object files... " >&6; } 5220if ${lt_cv_ld_reload_flag+:} false; then : 5221 $as_echo_n "(cached) " >&6 5222else 5223 lt_cv_ld_reload_flag='-r' 5224fi 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5226$as_echo "$lt_cv_ld_reload_flag" >&6; } 5227reload_flag=$lt_cv_ld_reload_flag 5228case $reload_flag in 5229"" | " "*) ;; 5230*) reload_flag=" $reload_flag" ;; 5231esac 5232reload_cmds='$LD$reload_flag -o $output$reload_objs' 5233case $host_os in 5234 cygwin* | mingw* | pw32* | cegcc*) 5235 if test "$GCC" != yes; then 5236 reload_cmds=false 5237 fi 5238 ;; 5239 darwin*) 5240 if test "$GCC" = yes; then 5241 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5242 else 5243 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5244 fi 5245 ;; 5246esac 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256if test -n "$ac_tool_prefix"; then 5257 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5258set dummy ${ac_tool_prefix}objdump; ac_word=$2 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5260$as_echo_n "checking for $ac_word... " >&6; } 5261if ${ac_cv_prog_OBJDUMP+:} false; then : 5262 $as_echo_n "(cached) " >&6 5263else 5264 if test -n "$OBJDUMP"; then 5265 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5266else 5267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5268for as_dir in $PATH 5269do 5270 IFS=$as_save_IFS 5271 test -z "$as_dir" && as_dir=. 5272 for ac_exec_ext in '' $ac_executable_extensions; do 5273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5274 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5276 break 2 5277 fi 5278done 5279 done 5280IFS=$as_save_IFS 5281 5282fi 5283fi 5284OBJDUMP=$ac_cv_prog_OBJDUMP 5285if test -n "$OBJDUMP"; then 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5287$as_echo "$OBJDUMP" >&6; } 5288else 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5290$as_echo "no" >&6; } 5291fi 5292 5293 5294fi 5295if test -z "$ac_cv_prog_OBJDUMP"; then 5296 ac_ct_OBJDUMP=$OBJDUMP 5297 # Extract the first word of "objdump", so it can be a program name with args. 5298set dummy objdump; ac_word=$2 5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5300$as_echo_n "checking for $ac_word... " >&6; } 5301if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 if test -n "$ac_ct_OBJDUMP"; then 5305 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5306else 5307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5308for as_dir in $PATH 5309do 5310 IFS=$as_save_IFS 5311 test -z "$as_dir" && as_dir=. 5312 for ac_exec_ext in '' $ac_executable_extensions; do 5313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5314 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5316 break 2 5317 fi 5318done 5319 done 5320IFS=$as_save_IFS 5321 5322fi 5323fi 5324ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5325if test -n "$ac_ct_OBJDUMP"; then 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5327$as_echo "$ac_ct_OBJDUMP" >&6; } 5328else 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5330$as_echo "no" >&6; } 5331fi 5332 5333 if test "x$ac_ct_OBJDUMP" = x; then 5334 OBJDUMP="false" 5335 else 5336 case $cross_compiling:$ac_tool_warned in 5337yes:) 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5340ac_tool_warned=yes ;; 5341esac 5342 OBJDUMP=$ac_ct_OBJDUMP 5343 fi 5344else 5345 OBJDUMP="$ac_cv_prog_OBJDUMP" 5346fi 5347 5348test -z "$OBJDUMP" && OBJDUMP=objdump 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5359$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5360if ${lt_cv_deplibs_check_method+:} false; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 lt_cv_file_magic_cmd='$MAGIC_CMD' 5364lt_cv_file_magic_test_file= 5365lt_cv_deplibs_check_method='unknown' 5366# Need to set the preceding variable on all platforms that support 5367# interlibrary dependencies. 5368# 'none' -- dependencies not supported. 5369# `unknown' -- same as none, but documents that we really don't know. 5370# 'pass_all' -- all dependencies passed with no checks. 5371# 'test_compile' -- check by making test program. 5372# 'file_magic [[regex]]' -- check by looking for files in library path 5373# which responds to the $file_magic_cmd with a given extended regex. 5374# If you have `file' or equivalent on your system and you're not sure 5375# whether `pass_all' will *always* work, you probably want this one. 5376 5377case $host_os in 5378aix[4-9]*) 5379 lt_cv_deplibs_check_method=pass_all 5380 ;; 5381 5382beos*) 5383 lt_cv_deplibs_check_method=pass_all 5384 ;; 5385 5386bsdi[45]*) 5387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5388 lt_cv_file_magic_cmd='/usr/bin/file -L' 5389 lt_cv_file_magic_test_file=/shlib/libc.so 5390 ;; 5391 5392cygwin*) 5393 # func_win32_libid is a shell function defined in ltmain.sh 5394 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5395 lt_cv_file_magic_cmd='func_win32_libid' 5396 ;; 5397 5398mingw* | pw32*) 5399 # Base MSYS/MinGW do not provide the 'file' command needed by 5400 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5401 # unless we find 'file', for example because we are cross-compiling. 5402 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5403 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5404 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5405 lt_cv_file_magic_cmd='func_win32_libid' 5406 else 5407 # Keep this pattern in sync with the one in func_win32_libid. 5408 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5409 lt_cv_file_magic_cmd='$OBJDUMP -f' 5410 fi 5411 ;; 5412 5413cegcc*) 5414 # use the weaker test based on 'objdump'. See mingw*. 5415 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5416 lt_cv_file_magic_cmd='$OBJDUMP -f' 5417 ;; 5418 5419darwin* | rhapsody*) 5420 lt_cv_deplibs_check_method=pass_all 5421 ;; 5422 5423freebsd* | dragonfly*) 5424 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5425 case $host_cpu in 5426 i*86 ) 5427 # Not sure whether the presence of OpenBSD here was a mistake. 5428 # Let's accept both of them until this is cleared up. 5429 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5430 lt_cv_file_magic_cmd=/usr/bin/file 5431 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5432 ;; 5433 esac 5434 else 5435 lt_cv_deplibs_check_method=pass_all 5436 fi 5437 ;; 5438 5439gnu*) 5440 lt_cv_deplibs_check_method=pass_all 5441 ;; 5442 5443haiku*) 5444 lt_cv_deplibs_check_method=pass_all 5445 ;; 5446 5447hpux10.20* | hpux11*) 5448 lt_cv_file_magic_cmd=/usr/bin/file 5449 case $host_cpu in 5450 ia64*) 5451 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5452 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5453 ;; 5454 hppa*64*) 5455 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]' 5456 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5457 ;; 5458 *) 5459 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5460 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5461 ;; 5462 esac 5463 ;; 5464 5465interix[3-9]*) 5466 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5468 ;; 5469 5470irix5* | irix6* | nonstopux*) 5471 case $LD in 5472 *-32|*"-32 ") libmagic=32-bit;; 5473 *-n32|*"-n32 ") libmagic=N32;; 5474 *-64|*"-64 ") libmagic=64-bit;; 5475 *) libmagic=never-match;; 5476 esac 5477 lt_cv_deplibs_check_method=pass_all 5478 ;; 5479 5480# This must be glibc/ELF. 5481linux* | k*bsd*-gnu | kopensolaris*-gnu) 5482 lt_cv_deplibs_check_method=pass_all 5483 ;; 5484 5485netbsd*) 5486 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5488 else 5489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5490 fi 5491 ;; 5492 5493newos6*) 5494 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5495 lt_cv_file_magic_cmd=/usr/bin/file 5496 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5497 ;; 5498 5499*nto* | *qnx*) 5500 lt_cv_deplibs_check_method=pass_all 5501 ;; 5502 5503openbsd*) 5504 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5506 else 5507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5508 fi 5509 ;; 5510 5511osf3* | osf4* | osf5*) 5512 lt_cv_deplibs_check_method=pass_all 5513 ;; 5514 5515rdos*) 5516 lt_cv_deplibs_check_method=pass_all 5517 ;; 5518 5519solaris*) 5520 lt_cv_deplibs_check_method=pass_all 5521 ;; 5522 5523sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5524 lt_cv_deplibs_check_method=pass_all 5525 ;; 5526 5527sysv4 | sysv4.3*) 5528 case $host_vendor in 5529 motorola) 5530 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]' 5531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5532 ;; 5533 ncr) 5534 lt_cv_deplibs_check_method=pass_all 5535 ;; 5536 sequent) 5537 lt_cv_file_magic_cmd='/bin/file' 5538 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5539 ;; 5540 sni) 5541 lt_cv_file_magic_cmd='/bin/file' 5542 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5543 lt_cv_file_magic_test_file=/lib/libc.so 5544 ;; 5545 siemens) 5546 lt_cv_deplibs_check_method=pass_all 5547 ;; 5548 pc) 5549 lt_cv_deplibs_check_method=pass_all 5550 ;; 5551 esac 5552 ;; 5553 5554tpf*) 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 5703 5704 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5706$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5707if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5708 $as_echo_n "(cached) " >&6 5709else 5710 lt_cv_sharedlib_from_linklib_cmd='unknown' 5711 5712case $host_os in 5713cygwin* | mingw* | pw32* | cegcc*) 5714 # two different shell functions defined in ltmain.sh 5715 # decide which to use based on capabilities of $DLLTOOL 5716 case `$DLLTOOL --help 2>&1` in 5717 *--identify-strict*) 5718 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5719 ;; 5720 *) 5721 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5722 ;; 5723 esac 5724 ;; 5725*) 5726 # fallback: assume linklib IS sharedlib 5727 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5728 ;; 5729esac 5730 5731fi 5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5733$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5734sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5735test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5736 5737 5738 5739 5740 5741 5742 5743 5744if test -n "$ac_tool_prefix"; then 5745 for ac_prog in ar 5746 do 5747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5748set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5750$as_echo_n "checking for $ac_word... " >&6; } 5751if ${ac_cv_prog_AR+:} false; then : 5752 $as_echo_n "(cached) " >&6 5753else 5754 if test -n "$AR"; then 5755 ac_cv_prog_AR="$AR" # Let the user override the test. 5756else 5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5758for as_dir in $PATH 5759do 5760 IFS=$as_save_IFS 5761 test -z "$as_dir" && as_dir=. 5762 for ac_exec_ext in '' $ac_executable_extensions; do 5763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5764 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5766 break 2 5767 fi 5768done 5769 done 5770IFS=$as_save_IFS 5771 5772fi 5773fi 5774AR=$ac_cv_prog_AR 5775if test -n "$AR"; then 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5777$as_echo "$AR" >&6; } 5778else 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5780$as_echo "no" >&6; } 5781fi 5782 5783 5784 test -n "$AR" && break 5785 done 5786fi 5787if test -z "$AR"; then 5788 ac_ct_AR=$AR 5789 for ac_prog in ar 5790do 5791 # Extract the first word of "$ac_prog", so it can be a program name with args. 5792set dummy $ac_prog; ac_word=$2 5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5794$as_echo_n "checking for $ac_word... " >&6; } 5795if ${ac_cv_prog_ac_ct_AR+:} false; then : 5796 $as_echo_n "(cached) " >&6 5797else 5798 if test -n "$ac_ct_AR"; then 5799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5800else 5801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5802for as_dir in $PATH 5803do 5804 IFS=$as_save_IFS 5805 test -z "$as_dir" && as_dir=. 5806 for ac_exec_ext in '' $ac_executable_extensions; do 5807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5808 ac_cv_prog_ac_ct_AR="$ac_prog" 5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5810 break 2 5811 fi 5812done 5813 done 5814IFS=$as_save_IFS 5815 5816fi 5817fi 5818ac_ct_AR=$ac_cv_prog_ac_ct_AR 5819if test -n "$ac_ct_AR"; then 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5821$as_echo "$ac_ct_AR" >&6; } 5822else 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5824$as_echo "no" >&6; } 5825fi 5826 5827 5828 test -n "$ac_ct_AR" && break 5829done 5830 5831 if test "x$ac_ct_AR" = x; then 5832 AR="false" 5833 else 5834 case $cross_compiling:$ac_tool_warned in 5835yes:) 5836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5838ac_tool_warned=yes ;; 5839esac 5840 AR=$ac_ct_AR 5841 fi 5842fi 5843 5844: ${AR=ar} 5845: ${AR_FLAGS=cru} 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5858$as_echo_n "checking for archiver @FILE support... " >&6; } 5859if ${lt_cv_ar_at_file+:} false; then : 5860 $as_echo_n "(cached) " >&6 5861else 5862 lt_cv_ar_at_file=no 5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5864/* end confdefs.h. */ 5865 5866int 5867main () 5868{ 5869 5870 ; 5871 return 0; 5872} 5873_ACEOF 5874if ac_fn_c_try_compile "$LINENO"; then : 5875 echo conftest.$ac_objext > conftest.lst 5876 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5878 (eval $lt_ar_try) 2>&5 5879 ac_status=$? 5880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5881 test $ac_status = 0; } 5882 if test "$ac_status" -eq 0; then 5883 # Ensure the archiver fails upon bogus file names. 5884 rm -f conftest.$ac_objext libconftest.a 5885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5886 (eval $lt_ar_try) 2>&5 5887 ac_status=$? 5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5889 test $ac_status = 0; } 5890 if test "$ac_status" -ne 0; then 5891 lt_cv_ar_at_file=@ 5892 fi 5893 fi 5894 rm -f conftest.* libconftest.a 5895 5896fi 5897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5898 5899fi 5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5901$as_echo "$lt_cv_ar_at_file" >&6; } 5902 5903if test "x$lt_cv_ar_at_file" = xno; then 5904 archiver_list_spec= 5905else 5906 archiver_list_spec=$lt_cv_ar_at_file 5907fi 5908 5909 5910 5911 5912 5913 5914 5915if test -n "$ac_tool_prefix"; then 5916 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5917set dummy ${ac_tool_prefix}strip; ac_word=$2 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5919$as_echo_n "checking for $ac_word... " >&6; } 5920if ${ac_cv_prog_STRIP+:} false; then : 5921 $as_echo_n "(cached) " >&6 5922else 5923 if test -n "$STRIP"; then 5924 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5925else 5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5927for as_dir in $PATH 5928do 5929 IFS=$as_save_IFS 5930 test -z "$as_dir" && as_dir=. 5931 for ac_exec_ext in '' $ac_executable_extensions; do 5932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5933 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5935 break 2 5936 fi 5937done 5938 done 5939IFS=$as_save_IFS 5940 5941fi 5942fi 5943STRIP=$ac_cv_prog_STRIP 5944if test -n "$STRIP"; then 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5946$as_echo "$STRIP" >&6; } 5947else 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5949$as_echo "no" >&6; } 5950fi 5951 5952 5953fi 5954if test -z "$ac_cv_prog_STRIP"; then 5955 ac_ct_STRIP=$STRIP 5956 # Extract the first word of "strip", so it can be a program name with args. 5957set dummy strip; ac_word=$2 5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5959$as_echo_n "checking for $ac_word... " >&6; } 5960if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5961 $as_echo_n "(cached) " >&6 5962else 5963 if test -n "$ac_ct_STRIP"; then 5964 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5965else 5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5967for as_dir in $PATH 5968do 5969 IFS=$as_save_IFS 5970 test -z "$as_dir" && as_dir=. 5971 for ac_exec_ext in '' $ac_executable_extensions; do 5972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5973 ac_cv_prog_ac_ct_STRIP="strip" 5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5975 break 2 5976 fi 5977done 5978 done 5979IFS=$as_save_IFS 5980 5981fi 5982fi 5983ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5984if test -n "$ac_ct_STRIP"; then 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5986$as_echo "$ac_ct_STRIP" >&6; } 5987else 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5989$as_echo "no" >&6; } 5990fi 5991 5992 if test "x$ac_ct_STRIP" = x; then 5993 STRIP=":" 5994 else 5995 case $cross_compiling:$ac_tool_warned in 5996yes:) 5997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5999ac_tool_warned=yes ;; 6000esac 6001 STRIP=$ac_ct_STRIP 6002 fi 6003else 6004 STRIP="$ac_cv_prog_STRIP" 6005fi 6006 6007test -z "$STRIP" && STRIP=: 6008 6009 6010 6011 6012 6013 6014if test -n "$ac_tool_prefix"; then 6015 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6016set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6018$as_echo_n "checking for $ac_word... " >&6; } 6019if ${ac_cv_prog_RANLIB+:} false; then : 6020 $as_echo_n "(cached) " >&6 6021else 6022 if test -n "$RANLIB"; then 6023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6024else 6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6026for as_dir in $PATH 6027do 6028 IFS=$as_save_IFS 6029 test -z "$as_dir" && as_dir=. 6030 for ac_exec_ext in '' $ac_executable_extensions; do 6031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6032 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6034 break 2 6035 fi 6036done 6037 done 6038IFS=$as_save_IFS 6039 6040fi 6041fi 6042RANLIB=$ac_cv_prog_RANLIB 6043if test -n "$RANLIB"; then 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6045$as_echo "$RANLIB" >&6; } 6046else 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6048$as_echo "no" >&6; } 6049fi 6050 6051 6052fi 6053if test -z "$ac_cv_prog_RANLIB"; then 6054 ac_ct_RANLIB=$RANLIB 6055 # Extract the first word of "ranlib", so it can be a program name with args. 6056set dummy ranlib; ac_word=$2 6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6058$as_echo_n "checking for $ac_word... " >&6; } 6059if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6060 $as_echo_n "(cached) " >&6 6061else 6062 if test -n "$ac_ct_RANLIB"; then 6063 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6064else 6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6066for as_dir in $PATH 6067do 6068 IFS=$as_save_IFS 6069 test -z "$as_dir" && as_dir=. 6070 for ac_exec_ext in '' $ac_executable_extensions; do 6071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6072 ac_cv_prog_ac_ct_RANLIB="ranlib" 6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6074 break 2 6075 fi 6076done 6077 done 6078IFS=$as_save_IFS 6079 6080fi 6081fi 6082ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6083if test -n "$ac_ct_RANLIB"; then 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6085$as_echo "$ac_ct_RANLIB" >&6; } 6086else 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6088$as_echo "no" >&6; } 6089fi 6090 6091 if test "x$ac_ct_RANLIB" = x; then 6092 RANLIB=":" 6093 else 6094 case $cross_compiling:$ac_tool_warned in 6095yes:) 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6098ac_tool_warned=yes ;; 6099esac 6100 RANLIB=$ac_ct_RANLIB 6101 fi 6102else 6103 RANLIB="$ac_cv_prog_RANLIB" 6104fi 6105 6106test -z "$RANLIB" && RANLIB=: 6107 6108 6109 6110 6111 6112 6113# Determine commands to create old-style static archives. 6114old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6115old_postinstall_cmds='chmod 644 $oldlib' 6116old_postuninstall_cmds= 6117 6118if test -n "$RANLIB"; then 6119 case $host_os in 6120 openbsd*) 6121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6122 ;; 6123 *) 6124 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6125 ;; 6126 esac 6127 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6128fi 6129 6130case $host_os in 6131 darwin*) 6132 lock_old_archive_extraction=yes ;; 6133 *) 6134 lock_old_archive_extraction=no ;; 6135esac 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 6173 6174 6175# If no C compiler was specified, use CC. 6176LTCC=${LTCC-"$CC"} 6177 6178# If no C compiler flags were specified, use CFLAGS. 6179LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6180 6181# Allow CC to be a program name with arguments. 6182compiler=$CC 6183 6184 6185# Check for command to grab the raw symbol name followed by C symbol from nm. 6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6187$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6188if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6189 $as_echo_n "(cached) " >&6 6190else 6191 6192# These are sane defaults that work on at least a few old systems. 6193# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6194 6195# Character class describing NM global symbol codes. 6196symcode='[BCDEGRST]' 6197 6198# Regexp to match symbols that can be accessed directly from C. 6199sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6200 6201# Define system-specific variables. 6202case $host_os in 6203aix*) 6204 symcode='[BCDT]' 6205 ;; 6206cygwin* | mingw* | pw32* | cegcc*) 6207 symcode='[ABCDGISTW]' 6208 ;; 6209hpux*) 6210 if test "$host_cpu" = ia64; then 6211 symcode='[ABCDEGRST]' 6212 fi 6213 ;; 6214irix* | nonstopux*) 6215 symcode='[BCDEGRST]' 6216 ;; 6217osf*) 6218 symcode='[BCDEGQRST]' 6219 ;; 6220solaris*) 6221 symcode='[BDRT]' 6222 ;; 6223sco3.2v5*) 6224 symcode='[DT]' 6225 ;; 6226sysv4.2uw2*) 6227 symcode='[DT]' 6228 ;; 6229sysv5* | sco5v6* | unixware* | OpenUNIX*) 6230 symcode='[ABDT]' 6231 ;; 6232sysv4) 6233 symcode='[DFNSTU]' 6234 ;; 6235esac 6236 6237# If we're using GNU nm, then use its standard symbol codes. 6238case `$NM -V 2>&1` in 6239*GNU* | *'with BFD'*) 6240 symcode='[ABCDGIRSTW]' ;; 6241esac 6242 6243# Transform an extracted symbol line into a proper C declaration. 6244# Some systems (esp. on ia64) link data and code symbols differently, 6245# so use this general approach. 6246lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6247 6248# Transform an extracted symbol line into symbol name and symbol address 6249lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6250lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6251 6252# Handle CRLF in mingw tool chain 6253opt_cr= 6254case $build_os in 6255mingw*) 6256 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6257 ;; 6258esac 6259 6260# Try without a prefix underscore, then with it. 6261for ac_symprfx in "" "_"; do 6262 6263 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6264 symxfrm="\\1 $ac_symprfx\\2 \\2" 6265 6266 # Write the raw and C identifiers. 6267 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6268 # Fake it for dumpbin and say T for any non-static function 6269 # and D for any global variable. 6270 # Also find C++ and __fastcall symbols from MSVC++, 6271 # which start with @ or ?. 6272 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6273" {last_section=section; section=\$ 3};"\ 6274" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6275" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6276" \$ 0!~/External *\|/{next};"\ 6277" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6278" {if(hide[section]) next};"\ 6279" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6280" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6281" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6282" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6283" ' prfx=^$ac_symprfx" 6284 else 6285 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6286 fi 6287 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6288 6289 # Check to see that the pipe works correctly. 6290 pipe_works=no 6291 6292 rm -f conftest* 6293 cat > conftest.$ac_ext <<_LT_EOF 6294#ifdef __cplusplus 6295extern "C" { 6296#endif 6297char nm_test_var; 6298void nm_test_func(void); 6299void nm_test_func(void){} 6300#ifdef __cplusplus 6301} 6302#endif 6303int main(){nm_test_var='a';nm_test_func();return(0);} 6304_LT_EOF 6305 6306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6307 (eval $ac_compile) 2>&5 6308 ac_status=$? 6309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6310 test $ac_status = 0; }; then 6311 # Now try to grab the symbols. 6312 nlist=conftest.nm 6313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6314 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6315 ac_status=$? 6316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6317 test $ac_status = 0; } && test -s "$nlist"; then 6318 # Try sorting and uniquifying the output. 6319 if sort "$nlist" | uniq > "$nlist"T; then 6320 mv -f "$nlist"T "$nlist" 6321 else 6322 rm -f "$nlist"T 6323 fi 6324 6325 # Make sure that we snagged all the symbols we need. 6326 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6327 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6328 cat <<_LT_EOF > conftest.$ac_ext 6329/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6330#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6331/* DATA imports from DLLs on WIN32 con't be const, because runtime 6332 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6333# define LT_DLSYM_CONST 6334#elif defined(__osf__) 6335/* This system does not cope well with relocations in const data. */ 6336# define LT_DLSYM_CONST 6337#else 6338# define LT_DLSYM_CONST const 6339#endif 6340 6341#ifdef __cplusplus 6342extern "C" { 6343#endif 6344 6345_LT_EOF 6346 # Now generate the symbol file. 6347 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6348 6349 cat <<_LT_EOF >> conftest.$ac_ext 6350 6351/* The mapping between symbol names and symbols. */ 6352LT_DLSYM_CONST struct { 6353 const char *name; 6354 void *address; 6355} 6356lt__PROGRAM__LTX_preloaded_symbols[] = 6357{ 6358 { "@PROGRAM@", (void *) 0 }, 6359_LT_EOF 6360 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6361 cat <<\_LT_EOF >> conftest.$ac_ext 6362 {0, (void *) 0} 6363}; 6364 6365/* This works around a problem in FreeBSD linker */ 6366#ifdef FREEBSD_WORKAROUND 6367static const void *lt_preloaded_setup() { 6368 return lt__PROGRAM__LTX_preloaded_symbols; 6369} 6370#endif 6371 6372#ifdef __cplusplus 6373} 6374#endif 6375_LT_EOF 6376 # Now try linking the two files. 6377 mv conftest.$ac_objext conftstm.$ac_objext 6378 lt_globsym_save_LIBS=$LIBS 6379 lt_globsym_save_CFLAGS=$CFLAGS 6380 LIBS="conftstm.$ac_objext" 6381 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6383 (eval $ac_link) 2>&5 6384 ac_status=$? 6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6386 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6387 pipe_works=yes 6388 fi 6389 LIBS=$lt_globsym_save_LIBS 6390 CFLAGS=$lt_globsym_save_CFLAGS 6391 else 6392 echo "cannot find nm_test_func in $nlist" >&5 6393 fi 6394 else 6395 echo "cannot find nm_test_var in $nlist" >&5 6396 fi 6397 else 6398 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6399 fi 6400 else 6401 echo "$progname: failed program was:" >&5 6402 cat conftest.$ac_ext >&5 6403 fi 6404 rm -rf conftest* conftst* 6405 6406 # Do not use the global_symbol_pipe unless it works. 6407 if test "$pipe_works" = yes; then 6408 break 6409 else 6410 lt_cv_sys_global_symbol_pipe= 6411 fi 6412done 6413 6414fi 6415 6416if test -z "$lt_cv_sys_global_symbol_pipe"; then 6417 lt_cv_sys_global_symbol_to_cdecl= 6418fi 6419if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6421$as_echo "failed" >&6; } 6422else 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6424$as_echo "ok" >&6; } 6425fi 6426 6427# Response file support. 6428if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6429 nm_file_list_spec='@' 6430elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6431 nm_file_list_spec='@' 6432fi 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6461$as_echo_n "checking for sysroot... " >&6; } 6462 6463# Check whether --with-sysroot was given. 6464if test "${with_sysroot+set}" = set; then : 6465 withval=$with_sysroot; 6466else 6467 with_sysroot=no 6468fi 6469 6470 6471lt_sysroot= 6472case ${with_sysroot} in #( 6473 yes) 6474 if test "$GCC" = yes; then 6475 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6476 fi 6477 ;; #( 6478 /*) 6479 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6480 ;; #( 6481 no|'') 6482 ;; #( 6483 *) 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6485$as_echo "${with_sysroot}" >&6; } 6486 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6487 ;; 6488esac 6489 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6491$as_echo "${lt_sysroot:-no}" >&6; } 6492 6493 6494 6495 6496 6497# Check whether --enable-libtool-lock was given. 6498if test "${enable_libtool_lock+set}" = set; then : 6499 enableval=$enable_libtool_lock; 6500fi 6501 6502test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6503 6504# Some flags need to be propagated to the compiler or linker for good 6505# libtool support. 6506case $host in 6507ia64-*-hpux*) 6508 # Find out which ABI we are using. 6509 echo 'int i;' > conftest.$ac_ext 6510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6511 (eval $ac_compile) 2>&5 6512 ac_status=$? 6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6514 test $ac_status = 0; }; then 6515 case `/usr/bin/file conftest.$ac_objext` in 6516 *ELF-32*) 6517 HPUX_IA64_MODE="32" 6518 ;; 6519 *ELF-64*) 6520 HPUX_IA64_MODE="64" 6521 ;; 6522 esac 6523 fi 6524 rm -rf conftest* 6525 ;; 6526*-*-irix6*) 6527 # Find out which ABI we are using. 6528 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6530 (eval $ac_compile) 2>&5 6531 ac_status=$? 6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6533 test $ac_status = 0; }; then 6534 if test "$lt_cv_prog_gnu_ld" = yes; then 6535 case `/usr/bin/file conftest.$ac_objext` in 6536 *32-bit*) 6537 LD="${LD-ld} -melf32bsmip" 6538 ;; 6539 *N32*) 6540 LD="${LD-ld} -melf32bmipn32" 6541 ;; 6542 *64-bit*) 6543 LD="${LD-ld} -melf64bmip" 6544 ;; 6545 esac 6546 else 6547 case `/usr/bin/file conftest.$ac_objext` in 6548 *32-bit*) 6549 LD="${LD-ld} -32" 6550 ;; 6551 *N32*) 6552 LD="${LD-ld} -n32" 6553 ;; 6554 *64-bit*) 6555 LD="${LD-ld} -64" 6556 ;; 6557 esac 6558 fi 6559 fi 6560 rm -rf conftest* 6561 ;; 6562 6563x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6564s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6565 # Find out which ABI we are using. 6566 echo 'int i;' > conftest.$ac_ext 6567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6568 (eval $ac_compile) 2>&5 6569 ac_status=$? 6570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6571 test $ac_status = 0; }; then 6572 case `/usr/bin/file conftest.o` in 6573 *32-bit*) 6574 case $host in 6575 x86_64-*kfreebsd*-gnu) 6576 LD="${LD-ld} -m elf_i386_fbsd" 6577 ;; 6578 x86_64-*linux*) 6579 LD="${LD-ld} -m elf_i386" 6580 ;; 6581 ppc64-*linux*|powerpc64-*linux*) 6582 LD="${LD-ld} -m elf32ppclinux" 6583 ;; 6584 s390x-*linux*) 6585 LD="${LD-ld} -m elf_s390" 6586 ;; 6587 sparc64-*linux*) 6588 LD="${LD-ld} -m elf32_sparc" 6589 ;; 6590 esac 6591 ;; 6592 *64-bit*) 6593 case $host in 6594 x86_64-*kfreebsd*-gnu) 6595 LD="${LD-ld} -m elf_x86_64_fbsd" 6596 ;; 6597 x86_64-*linux*) 6598 LD="${LD-ld} -m elf_x86_64" 6599 ;; 6600 ppc*-*linux*|powerpc*-*linux*) 6601 LD="${LD-ld} -m elf64ppc" 6602 ;; 6603 s390*-*linux*|s390*-*tpf*) 6604 LD="${LD-ld} -m elf64_s390" 6605 ;; 6606 sparc*-*linux*) 6607 LD="${LD-ld} -m elf64_sparc" 6608 ;; 6609 esac 6610 ;; 6611 esac 6612 fi 6613 rm -rf conftest* 6614 ;; 6615 6616*-*-sco3.2v5*) 6617 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6618 SAVE_CFLAGS="$CFLAGS" 6619 CFLAGS="$CFLAGS -belf" 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6621$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6622if ${lt_cv_cc_needs_belf+:} false; then : 6623 $as_echo_n "(cached) " >&6 6624else 6625 ac_ext=c 6626ac_cpp='$CPP $CPPFLAGS' 6627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6629ac_compiler_gnu=$ac_cv_c_compiler_gnu 6630 6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6632/* end confdefs.h. */ 6633 6634int 6635main () 6636{ 6637 6638 ; 6639 return 0; 6640} 6641_ACEOF 6642if ac_fn_c_try_link "$LINENO"; then : 6643 lt_cv_cc_needs_belf=yes 6644else 6645 lt_cv_cc_needs_belf=no 6646fi 6647rm -f core conftest.err conftest.$ac_objext \ 6648 conftest$ac_exeext conftest.$ac_ext 6649 ac_ext=c 6650ac_cpp='$CPP $CPPFLAGS' 6651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6653ac_compiler_gnu=$ac_cv_c_compiler_gnu 6654 6655fi 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6657$as_echo "$lt_cv_cc_needs_belf" >&6; } 6658 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6659 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6660 CFLAGS="$SAVE_CFLAGS" 6661 fi 6662 ;; 6663*-*solaris*) 6664 # Find out which ABI we are using. 6665 echo 'int i;' > conftest.$ac_ext 6666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6667 (eval $ac_compile) 2>&5 6668 ac_status=$? 6669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6670 test $ac_status = 0; }; then 6671 case `/usr/bin/file conftest.o` in 6672 *64-bit*) 6673 case $lt_cv_prog_gnu_ld in 6674 yes*) 6675 case $host in 6676 i?86-*-solaris*) 6677 LD="${LD-ld} -m elf_x86_64" 6678 ;; 6679 sparc*-*-solaris*) 6680 LD="${LD-ld} -m elf64_sparc" 6681 ;; 6682 esac 6683 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6684 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6685 LD="${LD-ld}_sol2" 6686 fi 6687 ;; 6688 *) 6689 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6690 LD="${LD-ld} -64" 6691 fi 6692 ;; 6693 esac 6694 ;; 6695 esac 6696 fi 6697 rm -rf conftest* 6698 ;; 6699esac 6700 6701need_locks="$enable_libtool_lock" 6702 6703if test -n "$ac_tool_prefix"; then 6704 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6705set dummy ${ac_tool_prefix}mt; ac_word=$2 6706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6707$as_echo_n "checking for $ac_word... " >&6; } 6708if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6709 $as_echo_n "(cached) " >&6 6710else 6711 if test -n "$MANIFEST_TOOL"; then 6712 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6713else 6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6715for as_dir in $PATH 6716do 6717 IFS=$as_save_IFS 6718 test -z "$as_dir" && as_dir=. 6719 for ac_exec_ext in '' $ac_executable_extensions; do 6720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6721 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6723 break 2 6724 fi 6725done 6726 done 6727IFS=$as_save_IFS 6728 6729fi 6730fi 6731MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6732if test -n "$MANIFEST_TOOL"; then 6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6734$as_echo "$MANIFEST_TOOL" >&6; } 6735else 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6737$as_echo "no" >&6; } 6738fi 6739 6740 6741fi 6742if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6743 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6744 # Extract the first word of "mt", so it can be a program name with args. 6745set dummy mt; ac_word=$2 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6747$as_echo_n "checking for $ac_word... " >&6; } 6748if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6749 $as_echo_n "(cached) " >&6 6750else 6751 if test -n "$ac_ct_MANIFEST_TOOL"; then 6752 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6753else 6754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6755for as_dir in $PATH 6756do 6757 IFS=$as_save_IFS 6758 test -z "$as_dir" && as_dir=. 6759 for ac_exec_ext in '' $ac_executable_extensions; do 6760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6761 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6763 break 2 6764 fi 6765done 6766 done 6767IFS=$as_save_IFS 6768 6769fi 6770fi 6771ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6772if test -n "$ac_ct_MANIFEST_TOOL"; then 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6774$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6775else 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6777$as_echo "no" >&6; } 6778fi 6779 6780 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6781 MANIFEST_TOOL=":" 6782 else 6783 case $cross_compiling:$ac_tool_warned in 6784yes:) 6785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6787ac_tool_warned=yes ;; 6788esac 6789 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6790 fi 6791else 6792 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6793fi 6794 6795test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6797$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6798if ${lt_cv_path_mainfest_tool+:} false; then : 6799 $as_echo_n "(cached) " >&6 6800else 6801 lt_cv_path_mainfest_tool=no 6802 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6803 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6804 cat conftest.err >&5 6805 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6806 lt_cv_path_mainfest_tool=yes 6807 fi 6808 rm -f conftest* 6809fi 6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6811$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6812if test "x$lt_cv_path_mainfest_tool" != xyes; then 6813 MANIFEST_TOOL=: 6814fi 6815 6816 6817 6818 6819 6820 6821 case $host_os in 6822 rhapsody* | darwin*) 6823 if test -n "$ac_tool_prefix"; then 6824 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6825set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6827$as_echo_n "checking for $ac_word... " >&6; } 6828if ${ac_cv_prog_DSYMUTIL+:} false; then : 6829 $as_echo_n "(cached) " >&6 6830else 6831 if test -n "$DSYMUTIL"; then 6832 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6833else 6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6835for as_dir in $PATH 6836do 6837 IFS=$as_save_IFS 6838 test -z "$as_dir" && as_dir=. 6839 for ac_exec_ext in '' $ac_executable_extensions; do 6840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6841 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6843 break 2 6844 fi 6845done 6846 done 6847IFS=$as_save_IFS 6848 6849fi 6850fi 6851DSYMUTIL=$ac_cv_prog_DSYMUTIL 6852if test -n "$DSYMUTIL"; then 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6854$as_echo "$DSYMUTIL" >&6; } 6855else 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6857$as_echo "no" >&6; } 6858fi 6859 6860 6861fi 6862if test -z "$ac_cv_prog_DSYMUTIL"; then 6863 ac_ct_DSYMUTIL=$DSYMUTIL 6864 # Extract the first word of "dsymutil", so it can be a program name with args. 6865set dummy dsymutil; ac_word=$2 6866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6867$as_echo_n "checking for $ac_word... " >&6; } 6868if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6869 $as_echo_n "(cached) " >&6 6870else 6871 if test -n "$ac_ct_DSYMUTIL"; then 6872 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6873else 6874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6875for as_dir in $PATH 6876do 6877 IFS=$as_save_IFS 6878 test -z "$as_dir" && as_dir=. 6879 for ac_exec_ext in '' $ac_executable_extensions; do 6880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6881 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6883 break 2 6884 fi 6885done 6886 done 6887IFS=$as_save_IFS 6888 6889fi 6890fi 6891ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6892if test -n "$ac_ct_DSYMUTIL"; then 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6894$as_echo "$ac_ct_DSYMUTIL" >&6; } 6895else 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6897$as_echo "no" >&6; } 6898fi 6899 6900 if test "x$ac_ct_DSYMUTIL" = x; then 6901 DSYMUTIL=":" 6902 else 6903 case $cross_compiling:$ac_tool_warned in 6904yes:) 6905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6907ac_tool_warned=yes ;; 6908esac 6909 DSYMUTIL=$ac_ct_DSYMUTIL 6910 fi 6911else 6912 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6913fi 6914 6915 if test -n "$ac_tool_prefix"; then 6916 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6917set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6919$as_echo_n "checking for $ac_word... " >&6; } 6920if ${ac_cv_prog_NMEDIT+:} false; then : 6921 $as_echo_n "(cached) " >&6 6922else 6923 if test -n "$NMEDIT"; then 6924 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6925else 6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6927for as_dir in $PATH 6928do 6929 IFS=$as_save_IFS 6930 test -z "$as_dir" && as_dir=. 6931 for ac_exec_ext in '' $ac_executable_extensions; do 6932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6933 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6935 break 2 6936 fi 6937done 6938 done 6939IFS=$as_save_IFS 6940 6941fi 6942fi 6943NMEDIT=$ac_cv_prog_NMEDIT 6944if test -n "$NMEDIT"; then 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6946$as_echo "$NMEDIT" >&6; } 6947else 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6949$as_echo "no" >&6; } 6950fi 6951 6952 6953fi 6954if test -z "$ac_cv_prog_NMEDIT"; then 6955 ac_ct_NMEDIT=$NMEDIT 6956 # Extract the first word of "nmedit", so it can be a program name with args. 6957set dummy nmedit; ac_word=$2 6958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6959$as_echo_n "checking for $ac_word... " >&6; } 6960if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6961 $as_echo_n "(cached) " >&6 6962else 6963 if test -n "$ac_ct_NMEDIT"; then 6964 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6965else 6966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6967for as_dir in $PATH 6968do 6969 IFS=$as_save_IFS 6970 test -z "$as_dir" && as_dir=. 6971 for ac_exec_ext in '' $ac_executable_extensions; do 6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6973 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6975 break 2 6976 fi 6977done 6978 done 6979IFS=$as_save_IFS 6980 6981fi 6982fi 6983ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6984if test -n "$ac_ct_NMEDIT"; then 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6986$as_echo "$ac_ct_NMEDIT" >&6; } 6987else 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6989$as_echo "no" >&6; } 6990fi 6991 6992 if test "x$ac_ct_NMEDIT" = x; then 6993 NMEDIT=":" 6994 else 6995 case $cross_compiling:$ac_tool_warned in 6996yes:) 6997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6999ac_tool_warned=yes ;; 7000esac 7001 NMEDIT=$ac_ct_NMEDIT 7002 fi 7003else 7004 NMEDIT="$ac_cv_prog_NMEDIT" 7005fi 7006 7007 if test -n "$ac_tool_prefix"; then 7008 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7009set dummy ${ac_tool_prefix}lipo; ac_word=$2 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7011$as_echo_n "checking for $ac_word... " >&6; } 7012if ${ac_cv_prog_LIPO+:} false; then : 7013 $as_echo_n "(cached) " >&6 7014else 7015 if test -n "$LIPO"; then 7016 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7017else 7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7019for as_dir in $PATH 7020do 7021 IFS=$as_save_IFS 7022 test -z "$as_dir" && as_dir=. 7023 for ac_exec_ext in '' $ac_executable_extensions; do 7024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7025 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7027 break 2 7028 fi 7029done 7030 done 7031IFS=$as_save_IFS 7032 7033fi 7034fi 7035LIPO=$ac_cv_prog_LIPO 7036if test -n "$LIPO"; then 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7038$as_echo "$LIPO" >&6; } 7039else 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7041$as_echo "no" >&6; } 7042fi 7043 7044 7045fi 7046if test -z "$ac_cv_prog_LIPO"; then 7047 ac_ct_LIPO=$LIPO 7048 # Extract the first word of "lipo", so it can be a program name with args. 7049set dummy lipo; ac_word=$2 7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7051$as_echo_n "checking for $ac_word... " >&6; } 7052if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7053 $as_echo_n "(cached) " >&6 7054else 7055 if test -n "$ac_ct_LIPO"; then 7056 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7057else 7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7059for as_dir in $PATH 7060do 7061 IFS=$as_save_IFS 7062 test -z "$as_dir" && as_dir=. 7063 for ac_exec_ext in '' $ac_executable_extensions; do 7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7065 ac_cv_prog_ac_ct_LIPO="lipo" 7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7067 break 2 7068 fi 7069done 7070 done 7071IFS=$as_save_IFS 7072 7073fi 7074fi 7075ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7076if test -n "$ac_ct_LIPO"; then 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7078$as_echo "$ac_ct_LIPO" >&6; } 7079else 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7081$as_echo "no" >&6; } 7082fi 7083 7084 if test "x$ac_ct_LIPO" = x; then 7085 LIPO=":" 7086 else 7087 case $cross_compiling:$ac_tool_warned in 7088yes:) 7089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7091ac_tool_warned=yes ;; 7092esac 7093 LIPO=$ac_ct_LIPO 7094 fi 7095else 7096 LIPO="$ac_cv_prog_LIPO" 7097fi 7098 7099 if test -n "$ac_tool_prefix"; then 7100 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7101set dummy ${ac_tool_prefix}otool; ac_word=$2 7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7103$as_echo_n "checking for $ac_word... " >&6; } 7104if ${ac_cv_prog_OTOOL+:} false; then : 7105 $as_echo_n "(cached) " >&6 7106else 7107 if test -n "$OTOOL"; then 7108 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7109else 7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7111for as_dir in $PATH 7112do 7113 IFS=$as_save_IFS 7114 test -z "$as_dir" && as_dir=. 7115 for ac_exec_ext in '' $ac_executable_extensions; do 7116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7117 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7119 break 2 7120 fi 7121done 7122 done 7123IFS=$as_save_IFS 7124 7125fi 7126fi 7127OTOOL=$ac_cv_prog_OTOOL 7128if test -n "$OTOOL"; then 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7130$as_echo "$OTOOL" >&6; } 7131else 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7133$as_echo "no" >&6; } 7134fi 7135 7136 7137fi 7138if test -z "$ac_cv_prog_OTOOL"; then 7139 ac_ct_OTOOL=$OTOOL 7140 # Extract the first word of "otool", so it can be a program name with args. 7141set dummy otool; ac_word=$2 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7143$as_echo_n "checking for $ac_word... " >&6; } 7144if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7145 $as_echo_n "(cached) " >&6 7146else 7147 if test -n "$ac_ct_OTOOL"; then 7148 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7149else 7150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7151for as_dir in $PATH 7152do 7153 IFS=$as_save_IFS 7154 test -z "$as_dir" && as_dir=. 7155 for ac_exec_ext in '' $ac_executable_extensions; do 7156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7157 ac_cv_prog_ac_ct_OTOOL="otool" 7158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7159 break 2 7160 fi 7161done 7162 done 7163IFS=$as_save_IFS 7164 7165fi 7166fi 7167ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7168if test -n "$ac_ct_OTOOL"; then 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7170$as_echo "$ac_ct_OTOOL" >&6; } 7171else 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7173$as_echo "no" >&6; } 7174fi 7175 7176 if test "x$ac_ct_OTOOL" = x; then 7177 OTOOL=":" 7178 else 7179 case $cross_compiling:$ac_tool_warned in 7180yes:) 7181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7183ac_tool_warned=yes ;; 7184esac 7185 OTOOL=$ac_ct_OTOOL 7186 fi 7187else 7188 OTOOL="$ac_cv_prog_OTOOL" 7189fi 7190 7191 if test -n "$ac_tool_prefix"; then 7192 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7193set dummy ${ac_tool_prefix}otool64; ac_word=$2 7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7195$as_echo_n "checking for $ac_word... " >&6; } 7196if ${ac_cv_prog_OTOOL64+:} false; then : 7197 $as_echo_n "(cached) " >&6 7198else 7199 if test -n "$OTOOL64"; then 7200 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7201else 7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7203for as_dir in $PATH 7204do 7205 IFS=$as_save_IFS 7206 test -z "$as_dir" && as_dir=. 7207 for ac_exec_ext in '' $ac_executable_extensions; do 7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7209 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7211 break 2 7212 fi 7213done 7214 done 7215IFS=$as_save_IFS 7216 7217fi 7218fi 7219OTOOL64=$ac_cv_prog_OTOOL64 7220if test -n "$OTOOL64"; then 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7222$as_echo "$OTOOL64" >&6; } 7223else 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7225$as_echo "no" >&6; } 7226fi 7227 7228 7229fi 7230if test -z "$ac_cv_prog_OTOOL64"; then 7231 ac_ct_OTOOL64=$OTOOL64 7232 # Extract the first word of "otool64", so it can be a program name with args. 7233set dummy otool64; ac_word=$2 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7235$as_echo_n "checking for $ac_word... " >&6; } 7236if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7237 $as_echo_n "(cached) " >&6 7238else 7239 if test -n "$ac_ct_OTOOL64"; then 7240 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7241else 7242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7243for as_dir in $PATH 7244do 7245 IFS=$as_save_IFS 7246 test -z "$as_dir" && as_dir=. 7247 for ac_exec_ext in '' $ac_executable_extensions; do 7248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7249 ac_cv_prog_ac_ct_OTOOL64="otool64" 7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7251 break 2 7252 fi 7253done 7254 done 7255IFS=$as_save_IFS 7256 7257fi 7258fi 7259ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7260if test -n "$ac_ct_OTOOL64"; then 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7262$as_echo "$ac_ct_OTOOL64" >&6; } 7263else 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7265$as_echo "no" >&6; } 7266fi 7267 7268 if test "x$ac_ct_OTOOL64" = x; then 7269 OTOOL64=":" 7270 else 7271 case $cross_compiling:$ac_tool_warned in 7272yes:) 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7275ac_tool_warned=yes ;; 7276esac 7277 OTOOL64=$ac_ct_OTOOL64 7278 fi 7279else 7280 OTOOL64="$ac_cv_prog_OTOOL64" 7281fi 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7310$as_echo_n "checking for -single_module linker flag... " >&6; } 7311if ${lt_cv_apple_cc_single_mod+:} false; then : 7312 $as_echo_n "(cached) " >&6 7313else 7314 lt_cv_apple_cc_single_mod=no 7315 if test -z "${LT_MULTI_MODULE}"; then 7316 # By default we will add the -single_module flag. You can override 7317 # by either setting the environment variable LT_MULTI_MODULE 7318 # non-empty at configure time, or by adding -multi_module to the 7319 # link flags. 7320 rm -rf libconftest.dylib* 7321 echo "int foo(void){return 1;}" > conftest.c 7322 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7323-dynamiclib -Wl,-single_module conftest.c" >&5 7324 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7325 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7326 _lt_result=$? 7327 # If there is a non-empty error log, and "single_module" 7328 # appears in it, assume the flag caused a linker warning 7329 if test -s conftest.err && $GREP single_module conftest.err; then 7330 cat conftest.err >&5 7331 # Otherwise, if the output was created with a 0 exit code from 7332 # the compiler, it worked. 7333 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7334 lt_cv_apple_cc_single_mod=yes 7335 else 7336 cat conftest.err >&5 7337 fi 7338 rm -rf libconftest.dylib* 7339 rm -f conftest.* 7340 fi 7341fi 7342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7343$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7344 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7346$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7347if ${lt_cv_ld_exported_symbols_list+:} false; then : 7348 $as_echo_n "(cached) " >&6 7349else 7350 lt_cv_ld_exported_symbols_list=no 7351 save_LDFLAGS=$LDFLAGS 7352 echo "_main" > conftest.sym 7353 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7355/* end confdefs.h. */ 7356 7357int 7358main () 7359{ 7360 7361 ; 7362 return 0; 7363} 7364_ACEOF 7365if ac_fn_c_try_link "$LINENO"; then : 7366 lt_cv_ld_exported_symbols_list=yes 7367else 7368 lt_cv_ld_exported_symbols_list=no 7369fi 7370rm -f core conftest.err conftest.$ac_objext \ 7371 conftest$ac_exeext conftest.$ac_ext 7372 LDFLAGS="$save_LDFLAGS" 7373 7374fi 7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7376$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7377 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7379$as_echo_n "checking for -force_load linker flag... " >&6; } 7380if ${lt_cv_ld_force_load+:} false; then : 7381 $as_echo_n "(cached) " >&6 7382else 7383 lt_cv_ld_force_load=no 7384 cat > conftest.c << _LT_EOF 7385int forced_loaded() { return 2;} 7386_LT_EOF 7387 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7388 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7389 echo "$AR cru libconftest.a conftest.o" >&5 7390 $AR cru libconftest.a conftest.o 2>&5 7391 echo "$RANLIB libconftest.a" >&5 7392 $RANLIB libconftest.a 2>&5 7393 cat > conftest.c << _LT_EOF 7394int main() { return 0;} 7395_LT_EOF 7396 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7397 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7398 _lt_result=$? 7399 if test -s conftest.err && $GREP force_load conftest.err; then 7400 cat conftest.err >&5 7401 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7402 lt_cv_ld_force_load=yes 7403 else 7404 cat conftest.err >&5 7405 fi 7406 rm -f conftest.err libconftest.a conftest conftest.c 7407 rm -rf conftest.dSYM 7408 7409fi 7410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7411$as_echo "$lt_cv_ld_force_load" >&6; } 7412 case $host_os in 7413 rhapsody* | darwin1.[012]) 7414 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7415 darwin1.*) 7416 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7417 darwin*) # darwin 5.x on 7418 # if running on 10.5 or later, the deployment target defaults 7419 # to the OS version, if on x86, and 10.4, the deployment 7420 # target defaults to 10.4. Don't you love it? 7421 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7422 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7423 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7424 10.[012]*) 7425 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7426 10.*) 7427 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7428 esac 7429 ;; 7430 esac 7431 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7432 _lt_dar_single_mod='$single_module' 7433 fi 7434 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7435 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7436 else 7437 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7438 fi 7439 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7440 _lt_dsymutil='~$DSYMUTIL $lib || :' 7441 else 7442 _lt_dsymutil= 7443 fi 7444 ;; 7445 esac 7446 7447ac_ext=c 7448ac_cpp='$CPP $CPPFLAGS' 7449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7451ac_compiler_gnu=$ac_cv_c_compiler_gnu 7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7453$as_echo_n "checking how to run the C preprocessor... " >&6; } 7454# On Suns, sometimes $CPP names a directory. 7455if test -n "$CPP" && test -d "$CPP"; then 7456 CPP= 7457fi 7458if test -z "$CPP"; then 7459 if ${ac_cv_prog_CPP+:} false; then : 7460 $as_echo_n "(cached) " >&6 7461else 7462 # Double quotes because CPP needs to be expanded 7463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7464 do 7465 ac_preproc_ok=false 7466for ac_c_preproc_warn_flag in '' yes 7467do 7468 # Use a header file that comes with gcc, so configuring glibc 7469 # with a fresh cross-compiler works. 7470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7471 # <limits.h> exists even on freestanding compilers. 7472 # On the NeXT, cc -E runs the code through the compiler's parser, 7473 # not just through cpp. "Syntax error" is here to catch this case. 7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7475/* end confdefs.h. */ 7476#ifdef __STDC__ 7477# include <limits.h> 7478#else 7479# include <assert.h> 7480#endif 7481 Syntax error 7482_ACEOF 7483if ac_fn_c_try_cpp "$LINENO"; then : 7484 7485else 7486 # Broken: fails on valid input. 7487continue 7488fi 7489rm -f conftest.err conftest.i conftest.$ac_ext 7490 7491 # OK, works on sane cases. Now check whether nonexistent headers 7492 # can be detected and how. 7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7494/* end confdefs.h. */ 7495#include <ac_nonexistent.h> 7496_ACEOF 7497if ac_fn_c_try_cpp "$LINENO"; then : 7498 # Broken: success on invalid input. 7499continue 7500else 7501 # Passes both tests. 7502ac_preproc_ok=: 7503break 7504fi 7505rm -f conftest.err conftest.i conftest.$ac_ext 7506 7507done 7508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7509rm -f conftest.i conftest.err conftest.$ac_ext 7510if $ac_preproc_ok; then : 7511 break 7512fi 7513 7514 done 7515 ac_cv_prog_CPP=$CPP 7516 7517fi 7518 CPP=$ac_cv_prog_CPP 7519else 7520 ac_cv_prog_CPP=$CPP 7521fi 7522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7523$as_echo "$CPP" >&6; } 7524ac_preproc_ok=false 7525for ac_c_preproc_warn_flag in '' yes 7526do 7527 # Use a header file that comes with gcc, so configuring glibc 7528 # with a fresh cross-compiler works. 7529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7530 # <limits.h> exists even on freestanding compilers. 7531 # On the NeXT, cc -E runs the code through the compiler's parser, 7532 # not just through cpp. "Syntax error" is here to catch this case. 7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7534/* end confdefs.h. */ 7535#ifdef __STDC__ 7536# include <limits.h> 7537#else 7538# include <assert.h> 7539#endif 7540 Syntax error 7541_ACEOF 7542if ac_fn_c_try_cpp "$LINENO"; then : 7543 7544else 7545 # Broken: fails on valid input. 7546continue 7547fi 7548rm -f conftest.err conftest.i conftest.$ac_ext 7549 7550 # OK, works on sane cases. Now check whether nonexistent headers 7551 # can be detected and how. 7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7553/* end confdefs.h. */ 7554#include <ac_nonexistent.h> 7555_ACEOF 7556if ac_fn_c_try_cpp "$LINENO"; then : 7557 # Broken: success on invalid input. 7558continue 7559else 7560 # Passes both tests. 7561ac_preproc_ok=: 7562break 7563fi 7564rm -f conftest.err conftest.i conftest.$ac_ext 7565 7566done 7567# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7568rm -f conftest.i conftest.err conftest.$ac_ext 7569if $ac_preproc_ok; then : 7570 7571else 7572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7574as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7575See \`config.log' for more details" "$LINENO" 5; } 7576fi 7577 7578ac_ext=c 7579ac_cpp='$CPP $CPPFLAGS' 7580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7582ac_compiler_gnu=$ac_cv_c_compiler_gnu 7583 7584 7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7586$as_echo_n "checking for ANSI C header files... " >&6; } 7587if ${ac_cv_header_stdc+:} false; then : 7588 $as_echo_n "(cached) " >&6 7589else 7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7591/* end confdefs.h. */ 7592#include <stdlib.h> 7593#include <stdarg.h> 7594#include <string.h> 7595#include <float.h> 7596 7597int 7598main () 7599{ 7600 7601 ; 7602 return 0; 7603} 7604_ACEOF 7605if ac_fn_c_try_compile "$LINENO"; then : 7606 ac_cv_header_stdc=yes 7607else 7608 ac_cv_header_stdc=no 7609fi 7610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7611 7612if test $ac_cv_header_stdc = yes; then 7613 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7615/* end confdefs.h. */ 7616#include <string.h> 7617 7618_ACEOF 7619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7620 $EGREP "memchr" >/dev/null 2>&1; then : 7621 7622else 7623 ac_cv_header_stdc=no 7624fi 7625rm -f conftest* 7626 7627fi 7628 7629if test $ac_cv_header_stdc = yes; then 7630 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7632/* end confdefs.h. */ 7633#include <stdlib.h> 7634 7635_ACEOF 7636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7637 $EGREP "free" >/dev/null 2>&1; then : 7638 7639else 7640 ac_cv_header_stdc=no 7641fi 7642rm -f conftest* 7643 7644fi 7645 7646if test $ac_cv_header_stdc = yes; then 7647 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7648 if test "$cross_compiling" = yes; then : 7649 : 7650else 7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7652/* end confdefs.h. */ 7653#include <ctype.h> 7654#include <stdlib.h> 7655#if ((' ' & 0x0FF) == 0x020) 7656# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7657# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7658#else 7659# define ISLOWER(c) \ 7660 (('a' <= (c) && (c) <= 'i') \ 7661 || ('j' <= (c) && (c) <= 'r') \ 7662 || ('s' <= (c) && (c) <= 'z')) 7663# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7664#endif 7665 7666#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7667int 7668main () 7669{ 7670 int i; 7671 for (i = 0; i < 256; i++) 7672 if (XOR (islower (i), ISLOWER (i)) 7673 || toupper (i) != TOUPPER (i)) 7674 return 2; 7675 return 0; 7676} 7677_ACEOF 7678if ac_fn_c_try_run "$LINENO"; then : 7679 7680else 7681 ac_cv_header_stdc=no 7682fi 7683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7684 conftest.$ac_objext conftest.beam conftest.$ac_ext 7685fi 7686 7687fi 7688fi 7689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7690$as_echo "$ac_cv_header_stdc" >&6; } 7691if test $ac_cv_header_stdc = yes; then 7692 7693$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7694 7695fi 7696 7697# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7698for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7699 inttypes.h stdint.h unistd.h 7700do : 7701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7702ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7703" 7704if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7705 cat >>confdefs.h <<_ACEOF 7706#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7707_ACEOF 7708 7709fi 7710 7711done 7712 7713 7714for ac_header in dlfcn.h 7715do : 7716 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7717" 7718if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7719 cat >>confdefs.h <<_ACEOF 7720#define HAVE_DLFCN_H 1 7721_ACEOF 7722 7723fi 7724 7725done 7726 7727 7728 7729 7730 7731# Set options 7732# Check whether --enable-static was given. 7733if test "${enable_static+set}" = set; then : 7734 enableval=$enable_static; p=${PACKAGE-default} 7735 case $enableval in 7736 yes) enable_static=yes ;; 7737 no) enable_static=no ;; 7738 *) 7739 enable_static=no 7740 # Look at the argument we got. We use all the common list separators. 7741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7742 for pkg in $enableval; do 7743 IFS="$lt_save_ifs" 7744 if test "X$pkg" = "X$p"; then 7745 enable_static=yes 7746 fi 7747 done 7748 IFS="$lt_save_ifs" 7749 ;; 7750 esac 7751else 7752 enable_static=no 7753fi 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 enable_dlopen=no 7765 7766 7767 enable_win32_dll=no 7768 7769 7770 # Check whether --enable-shared was given. 7771if test "${enable_shared+set}" = set; then : 7772 enableval=$enable_shared; p=${PACKAGE-default} 7773 case $enableval in 7774 yes) enable_shared=yes ;; 7775 no) enable_shared=no ;; 7776 *) 7777 enable_shared=no 7778 # Look at the argument we got. We use all the common list separators. 7779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7780 for pkg in $enableval; do 7781 IFS="$lt_save_ifs" 7782 if test "X$pkg" = "X$p"; then 7783 enable_shared=yes 7784 fi 7785 done 7786 IFS="$lt_save_ifs" 7787 ;; 7788 esac 7789else 7790 enable_shared=yes 7791fi 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803# Check whether --with-pic was given. 7804if test "${with_pic+set}" = set; then : 7805 withval=$with_pic; lt_p=${PACKAGE-default} 7806 case $withval in 7807 yes|no) pic_mode=$withval ;; 7808 *) 7809 pic_mode=default 7810 # Look at the argument we got. We use all the common list separators. 7811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7812 for lt_pkg in $withval; do 7813 IFS="$lt_save_ifs" 7814 if test "X$lt_pkg" = "X$lt_p"; then 7815 pic_mode=yes 7816 fi 7817 done 7818 IFS="$lt_save_ifs" 7819 ;; 7820 esac 7821else 7822 pic_mode=default 7823fi 7824 7825 7826test -z "$pic_mode" && pic_mode=default 7827 7828 7829 7830 7831 7832 7833 7834 # Check whether --enable-fast-install was given. 7835if test "${enable_fast_install+set}" = set; then : 7836 enableval=$enable_fast_install; p=${PACKAGE-default} 7837 case $enableval in 7838 yes) enable_fast_install=yes ;; 7839 no) enable_fast_install=no ;; 7840 *) 7841 enable_fast_install=no 7842 # Look at the argument we got. We use all the common list separators. 7843 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7844 for pkg in $enableval; do 7845 IFS="$lt_save_ifs" 7846 if test "X$pkg" = "X$p"; then 7847 enable_fast_install=yes 7848 fi 7849 done 7850 IFS="$lt_save_ifs" 7851 ;; 7852 esac 7853else 7854 enable_fast_install=yes 7855fi 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867# This can be used to rebuild libtool when needed 7868LIBTOOL_DEPS="$ltmain" 7869 7870# Always use our own libtool. 7871LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902test -z "$LN_S" && LN_S="ln -s" 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917if test -n "${ZSH_VERSION+set}" ; then 7918 setopt NO_GLOB_SUBST 7919fi 7920 7921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7922$as_echo_n "checking for objdir... " >&6; } 7923if ${lt_cv_objdir+:} false; then : 7924 $as_echo_n "(cached) " >&6 7925else 7926 rm -f .libs 2>/dev/null 7927mkdir .libs 2>/dev/null 7928if test -d .libs; then 7929 lt_cv_objdir=.libs 7930else 7931 # MS-DOS does not allow filenames that begin with a dot. 7932 lt_cv_objdir=_libs 7933fi 7934rmdir .libs 2>/dev/null 7935fi 7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7937$as_echo "$lt_cv_objdir" >&6; } 7938objdir=$lt_cv_objdir 7939 7940 7941 7942 7943 7944cat >>confdefs.h <<_ACEOF 7945#define LT_OBJDIR "$lt_cv_objdir/" 7946_ACEOF 7947 7948 7949 7950 7951case $host_os in 7952aix3*) 7953 # AIX sometimes has problems with the GCC collect2 program. For some 7954 # reason, if we set the COLLECT_NAMES environment variable, the problems 7955 # vanish in a puff of smoke. 7956 if test "X${COLLECT_NAMES+set}" != Xset; then 7957 COLLECT_NAMES= 7958 export COLLECT_NAMES 7959 fi 7960 ;; 7961esac 7962 7963# Global variables: 7964ofile=libtool 7965can_build_shared=yes 7966 7967# All known linkers require a `.a' archive for static linking (except MSVC, 7968# which needs '.lib'). 7969libext=a 7970 7971with_gnu_ld="$lt_cv_prog_gnu_ld" 7972 7973old_CC="$CC" 7974old_CFLAGS="$CFLAGS" 7975 7976# Set sane defaults for various variables 7977test -z "$CC" && CC=cc 7978test -z "$LTCC" && LTCC=$CC 7979test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7980test -z "$LD" && LD=ld 7981test -z "$ac_objext" && ac_objext=o 7982 7983for cc_temp in $compiler""; do 7984 case $cc_temp in 7985 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7986 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7987 \-*) ;; 7988 *) break;; 7989 esac 7990done 7991cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7992 7993 7994# Only perform the check for file, if the check method requires it 7995test -z "$MAGIC_CMD" && MAGIC_CMD=file 7996case $deplibs_check_method in 7997file_magic*) 7998 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8000$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8001if ${lt_cv_path_MAGIC_CMD+:} false; then : 8002 $as_echo_n "(cached) " >&6 8003else 8004 case $MAGIC_CMD in 8005[\\/*] | ?:[\\/]*) 8006 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8007 ;; 8008*) 8009 lt_save_MAGIC_CMD="$MAGIC_CMD" 8010 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8011 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8012 for ac_dir in $ac_dummy; do 8013 IFS="$lt_save_ifs" 8014 test -z "$ac_dir" && ac_dir=. 8015 if test -f $ac_dir/${ac_tool_prefix}file; then 8016 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8017 if test -n "$file_magic_test_file"; then 8018 case $deplibs_check_method in 8019 "file_magic "*) 8020 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8022 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8023 $EGREP "$file_magic_regex" > /dev/null; then 8024 : 8025 else 8026 cat <<_LT_EOF 1>&2 8027 8028*** Warning: the command libtool uses to detect shared libraries, 8029*** $file_magic_cmd, produces output that libtool cannot recognize. 8030*** The result is that libtool may fail to recognize shared libraries 8031*** as such. This will affect the creation of libtool libraries that 8032*** depend on shared libraries, but programs linked with such libtool 8033*** libraries will work regardless of this problem. Nevertheless, you 8034*** may want to report the problem to your system manager and/or to 8035*** bug-libtool@gnu.org 8036 8037_LT_EOF 8038 fi ;; 8039 esac 8040 fi 8041 break 8042 fi 8043 done 8044 IFS="$lt_save_ifs" 8045 MAGIC_CMD="$lt_save_MAGIC_CMD" 8046 ;; 8047esac 8048fi 8049 8050MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8051if test -n "$MAGIC_CMD"; then 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8053$as_echo "$MAGIC_CMD" >&6; } 8054else 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8056$as_echo "no" >&6; } 8057fi 8058 8059 8060 8061 8062 8063if test -z "$lt_cv_path_MAGIC_CMD"; then 8064 if test -n "$ac_tool_prefix"; then 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8066$as_echo_n "checking for file... " >&6; } 8067if ${lt_cv_path_MAGIC_CMD+:} false; then : 8068 $as_echo_n "(cached) " >&6 8069else 8070 case $MAGIC_CMD in 8071[\\/*] | ?:[\\/]*) 8072 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8073 ;; 8074*) 8075 lt_save_MAGIC_CMD="$MAGIC_CMD" 8076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8077 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8078 for ac_dir in $ac_dummy; do 8079 IFS="$lt_save_ifs" 8080 test -z "$ac_dir" && ac_dir=. 8081 if test -f $ac_dir/file; then 8082 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8083 if test -n "$file_magic_test_file"; then 8084 case $deplibs_check_method in 8085 "file_magic "*) 8086 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8088 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8089 $EGREP "$file_magic_regex" > /dev/null; then 8090 : 8091 else 8092 cat <<_LT_EOF 1>&2 8093 8094*** Warning: the command libtool uses to detect shared libraries, 8095*** $file_magic_cmd, produces output that libtool cannot recognize. 8096*** The result is that libtool may fail to recognize shared libraries 8097*** as such. This will affect the creation of libtool libraries that 8098*** depend on shared libraries, but programs linked with such libtool 8099*** libraries will work regardless of this problem. Nevertheless, you 8100*** may want to report the problem to your system manager and/or to 8101*** bug-libtool@gnu.org 8102 8103_LT_EOF 8104 fi ;; 8105 esac 8106 fi 8107 break 8108 fi 8109 done 8110 IFS="$lt_save_ifs" 8111 MAGIC_CMD="$lt_save_MAGIC_CMD" 8112 ;; 8113esac 8114fi 8115 8116MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8117if test -n "$MAGIC_CMD"; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8119$as_echo "$MAGIC_CMD" >&6; } 8120else 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8122$as_echo "no" >&6; } 8123fi 8124 8125 8126 else 8127 MAGIC_CMD=: 8128 fi 8129fi 8130 8131 fi 8132 ;; 8133esac 8134 8135# Use C for the default configuration in the libtool script 8136 8137lt_save_CC="$CC" 8138ac_ext=c 8139ac_cpp='$CPP $CPPFLAGS' 8140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8142ac_compiler_gnu=$ac_cv_c_compiler_gnu 8143 8144 8145# Source file extension for C test sources. 8146ac_ext=c 8147 8148# Object file extension for compiled C test sources. 8149objext=o 8150objext=$objext 8151 8152# Code to be used in simple compile tests 8153lt_simple_compile_test_code="int some_variable = 0;" 8154 8155# Code to be used in simple link tests 8156lt_simple_link_test_code='int main(){return(0);}' 8157 8158 8159 8160 8161 8162 8163 8164# If no C compiler was specified, use CC. 8165LTCC=${LTCC-"$CC"} 8166 8167# If no C compiler flags were specified, use CFLAGS. 8168LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8169 8170# Allow CC to be a program name with arguments. 8171compiler=$CC 8172 8173# Save the default compiler, since it gets overwritten when the other 8174# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8175compiler_DEFAULT=$CC 8176 8177# save warnings/boilerplate of simple test code 8178ac_outfile=conftest.$ac_objext 8179echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8180eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8181_lt_compiler_boilerplate=`cat conftest.err` 8182$RM conftest* 8183 8184ac_outfile=conftest.$ac_objext 8185echo "$lt_simple_link_test_code" >conftest.$ac_ext 8186eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8187_lt_linker_boilerplate=`cat conftest.err` 8188$RM -r conftest* 8189 8190 8191if test -n "$compiler"; then 8192 8193lt_prog_compiler_no_builtin_flag= 8194 8195if test "$GCC" = yes; then 8196 case $cc_basename in 8197 nvcc*) 8198 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8199 *) 8200 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8201 esac 8202 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8204$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8205if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8206 $as_echo_n "(cached) " >&6 8207else 8208 lt_cv_prog_compiler_rtti_exceptions=no 8209 ac_outfile=conftest.$ac_objext 8210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8211 lt_compiler_flag="-fno-rtti -fno-exceptions" 8212 # Insert the option either (1) after the last *FLAGS variable, or 8213 # (2) before a word containing "conftest.", or (3) at the end. 8214 # Note that $ac_compile itself does not contain backslashes and begins 8215 # with a dollar sign (not a hyphen), so the echo should work correctly. 8216 # The option is referenced via a variable to avoid confusing sed. 8217 lt_compile=`echo "$ac_compile" | $SED \ 8218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8220 -e 's:$: $lt_compiler_flag:'` 8221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8222 (eval "$lt_compile" 2>conftest.err) 8223 ac_status=$? 8224 cat conftest.err >&5 8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8226 if (exit $ac_status) && test -s "$ac_outfile"; then 8227 # The compiler can only warn and ignore the option if not recognized 8228 # So say no if there are warnings other than the usual output. 8229 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8231 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8232 lt_cv_prog_compiler_rtti_exceptions=yes 8233 fi 8234 fi 8235 $RM conftest* 8236 8237fi 8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8239$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8240 8241if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8242 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8243else 8244 : 8245fi 8246 8247fi 8248 8249 8250 8251 8252 8253 8254 lt_prog_compiler_wl= 8255lt_prog_compiler_pic= 8256lt_prog_compiler_static= 8257 8258 8259 if test "$GCC" = yes; then 8260 lt_prog_compiler_wl='-Wl,' 8261 lt_prog_compiler_static='-static' 8262 8263 case $host_os in 8264 aix*) 8265 # All AIX code is PIC. 8266 if test "$host_cpu" = ia64; then 8267 # AIX 5 now supports IA64 processor 8268 lt_prog_compiler_static='-Bstatic' 8269 fi 8270 ;; 8271 8272 amigaos*) 8273 case $host_cpu in 8274 powerpc) 8275 # see comment about AmigaOS4 .so support 8276 lt_prog_compiler_pic='-fPIC' 8277 ;; 8278 m68k) 8279 # FIXME: we need at least 68020 code to build shared libraries, but 8280 # adding the `-m68020' flag to GCC prevents building anything better, 8281 # like `-m68040'. 8282 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8283 ;; 8284 esac 8285 ;; 8286 8287 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8288 # PIC is the default for these OSes. 8289 ;; 8290 8291 mingw* | cygwin* | pw32* | os2* | cegcc*) 8292 # This hack is so that the source file can tell whether it is being 8293 # built for inclusion in a dll (and should export symbols for example). 8294 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8295 # (--disable-auto-import) libraries 8296 lt_prog_compiler_pic='-DDLL_EXPORT' 8297 ;; 8298 8299 darwin* | rhapsody*) 8300 # PIC is the default on this platform 8301 # Common symbols not allowed in MH_DYLIB files 8302 lt_prog_compiler_pic='-fno-common' 8303 ;; 8304 8305 haiku*) 8306 # PIC is the default for Haiku. 8307 # The "-static" flag exists, but is broken. 8308 lt_prog_compiler_static= 8309 ;; 8310 8311 hpux*) 8312 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8313 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8314 # sets the default TLS model and affects inlining. 8315 case $host_cpu in 8316 hppa*64*) 8317 # +Z the default 8318 ;; 8319 *) 8320 lt_prog_compiler_pic='-fPIC' 8321 ;; 8322 esac 8323 ;; 8324 8325 interix[3-9]*) 8326 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8327 # Instead, we relocate shared libraries at runtime. 8328 ;; 8329 8330 msdosdjgpp*) 8331 # Just because we use GCC doesn't mean we suddenly get shared libraries 8332 # on systems that don't support them. 8333 lt_prog_compiler_can_build_shared=no 8334 enable_shared=no 8335 ;; 8336 8337 *nto* | *qnx*) 8338 # QNX uses GNU C++, but need to define -shared option too, otherwise 8339 # it will coredump. 8340 lt_prog_compiler_pic='-fPIC -shared' 8341 ;; 8342 8343 sysv4*MP*) 8344 if test -d /usr/nec; then 8345 lt_prog_compiler_pic=-Kconform_pic 8346 fi 8347 ;; 8348 8349 *) 8350 lt_prog_compiler_pic='-fPIC' 8351 ;; 8352 esac 8353 8354 case $cc_basename in 8355 nvcc*) # Cuda Compiler Driver 2.2 8356 lt_prog_compiler_wl='-Xlinker ' 8357 if test -n "$lt_prog_compiler_pic"; then 8358 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8359 fi 8360 ;; 8361 esac 8362 else 8363 # PORTME Check for flag to pass linker flags through the system compiler. 8364 case $host_os in 8365 aix*) 8366 lt_prog_compiler_wl='-Wl,' 8367 if test "$host_cpu" = ia64; then 8368 # AIX 5 now supports IA64 processor 8369 lt_prog_compiler_static='-Bstatic' 8370 else 8371 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8372 fi 8373 ;; 8374 8375 mingw* | cygwin* | pw32* | os2* | cegcc*) 8376 # This hack is so that the source file can tell whether it is being 8377 # built for inclusion in a dll (and should export symbols for example). 8378 lt_prog_compiler_pic='-DDLL_EXPORT' 8379 ;; 8380 8381 hpux9* | hpux10* | hpux11*) 8382 lt_prog_compiler_wl='-Wl,' 8383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8384 # not for PA HP-UX. 8385 case $host_cpu in 8386 hppa*64*|ia64*) 8387 # +Z the default 8388 ;; 8389 *) 8390 lt_prog_compiler_pic='+Z' 8391 ;; 8392 esac 8393 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8394 lt_prog_compiler_static='${wl}-a ${wl}archive' 8395 ;; 8396 8397 irix5* | irix6* | nonstopux*) 8398 lt_prog_compiler_wl='-Wl,' 8399 # PIC (with -KPIC) is the default. 8400 lt_prog_compiler_static='-non_shared' 8401 ;; 8402 8403 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8404 case $cc_basename in 8405 # old Intel for x86_64 which still supported -KPIC. 8406 ecc*) 8407 lt_prog_compiler_wl='-Wl,' 8408 lt_prog_compiler_pic='-KPIC' 8409 lt_prog_compiler_static='-static' 8410 ;; 8411 # icc used to be incompatible with GCC. 8412 # ICC 10 doesn't accept -KPIC any more. 8413 icc* | ifort*) 8414 lt_prog_compiler_wl='-Wl,' 8415 lt_prog_compiler_pic='-fPIC' 8416 lt_prog_compiler_static='-static' 8417 ;; 8418 # Lahey Fortran 8.1. 8419 lf95*) 8420 lt_prog_compiler_wl='-Wl,' 8421 lt_prog_compiler_pic='--shared' 8422 lt_prog_compiler_static='--static' 8423 ;; 8424 nagfor*) 8425 # NAG Fortran compiler 8426 lt_prog_compiler_wl='-Wl,-Wl,,' 8427 lt_prog_compiler_pic='-PIC' 8428 lt_prog_compiler_static='-Bstatic' 8429 ;; 8430 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8431 # Portland Group compilers (*not* the Pentium gcc compiler, 8432 # which looks to be a dead project) 8433 lt_prog_compiler_wl='-Wl,' 8434 lt_prog_compiler_pic='-fpic' 8435 lt_prog_compiler_static='-Bstatic' 8436 ;; 8437 ccc*) 8438 lt_prog_compiler_wl='-Wl,' 8439 # All Alpha code is PIC. 8440 lt_prog_compiler_static='-non_shared' 8441 ;; 8442 xl* | bgxl* | bgf* | mpixl*) 8443 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8444 lt_prog_compiler_wl='-Wl,' 8445 lt_prog_compiler_pic='-qpic' 8446 lt_prog_compiler_static='-qstaticlink' 8447 ;; 8448 *) 8449 case `$CC -V 2>&1 | sed 5q` in 8450 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8451 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8452 lt_prog_compiler_pic='-KPIC' 8453 lt_prog_compiler_static='-Bstatic' 8454 lt_prog_compiler_wl='' 8455 ;; 8456 *Sun\ F* | *Sun*Fortran*) 8457 lt_prog_compiler_pic='-KPIC' 8458 lt_prog_compiler_static='-Bstatic' 8459 lt_prog_compiler_wl='-Qoption ld ' 8460 ;; 8461 *Sun\ C*) 8462 # Sun C 5.9 8463 lt_prog_compiler_pic='-KPIC' 8464 lt_prog_compiler_static='-Bstatic' 8465 lt_prog_compiler_wl='-Wl,' 8466 ;; 8467 *Intel*\ [CF]*Compiler*) 8468 lt_prog_compiler_wl='-Wl,' 8469 lt_prog_compiler_pic='-fPIC' 8470 lt_prog_compiler_static='-static' 8471 ;; 8472 *Portland\ Group*) 8473 lt_prog_compiler_wl='-Wl,' 8474 lt_prog_compiler_pic='-fpic' 8475 lt_prog_compiler_static='-Bstatic' 8476 ;; 8477 esac 8478 ;; 8479 esac 8480 ;; 8481 8482 newsos6) 8483 lt_prog_compiler_pic='-KPIC' 8484 lt_prog_compiler_static='-Bstatic' 8485 ;; 8486 8487 *nto* | *qnx*) 8488 # QNX uses GNU C++, but need to define -shared option too, otherwise 8489 # it will coredump. 8490 lt_prog_compiler_pic='-fPIC -shared' 8491 ;; 8492 8493 osf3* | osf4* | osf5*) 8494 lt_prog_compiler_wl='-Wl,' 8495 # All OSF/1 code is PIC. 8496 lt_prog_compiler_static='-non_shared' 8497 ;; 8498 8499 rdos*) 8500 lt_prog_compiler_static='-non_shared' 8501 ;; 8502 8503 solaris*) 8504 lt_prog_compiler_pic='-KPIC' 8505 lt_prog_compiler_static='-Bstatic' 8506 case $cc_basename in 8507 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8508 lt_prog_compiler_wl='-Qoption ld ';; 8509 *) 8510 lt_prog_compiler_wl='-Wl,';; 8511 esac 8512 ;; 8513 8514 sunos4*) 8515 lt_prog_compiler_wl='-Qoption ld ' 8516 lt_prog_compiler_pic='-PIC' 8517 lt_prog_compiler_static='-Bstatic' 8518 ;; 8519 8520 sysv4 | sysv4.2uw2* | sysv4.3*) 8521 lt_prog_compiler_wl='-Wl,' 8522 lt_prog_compiler_pic='-KPIC' 8523 lt_prog_compiler_static='-Bstatic' 8524 ;; 8525 8526 sysv4*MP*) 8527 if test -d /usr/nec ;then 8528 lt_prog_compiler_pic='-Kconform_pic' 8529 lt_prog_compiler_static='-Bstatic' 8530 fi 8531 ;; 8532 8533 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8534 lt_prog_compiler_wl='-Wl,' 8535 lt_prog_compiler_pic='-KPIC' 8536 lt_prog_compiler_static='-Bstatic' 8537 ;; 8538 8539 unicos*) 8540 lt_prog_compiler_wl='-Wl,' 8541 lt_prog_compiler_can_build_shared=no 8542 ;; 8543 8544 uts4*) 8545 lt_prog_compiler_pic='-pic' 8546 lt_prog_compiler_static='-Bstatic' 8547 ;; 8548 8549 *) 8550 lt_prog_compiler_can_build_shared=no 8551 ;; 8552 esac 8553 fi 8554 8555case $host_os in 8556 # For platforms which do not support PIC, -DPIC is meaningless: 8557 *djgpp*) 8558 lt_prog_compiler_pic= 8559 ;; 8560 *) 8561 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8562 ;; 8563esac 8564 8565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8566$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8567if ${lt_cv_prog_compiler_pic+:} false; then : 8568 $as_echo_n "(cached) " >&6 8569else 8570 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8571fi 8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8573$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8574lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8575 8576# 8577# Check to make sure the PIC flag actually works. 8578# 8579if test -n "$lt_prog_compiler_pic"; then 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8581$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8582if ${lt_cv_prog_compiler_pic_works+:} false; then : 8583 $as_echo_n "(cached) " >&6 8584else 8585 lt_cv_prog_compiler_pic_works=no 8586 ac_outfile=conftest.$ac_objext 8587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8588 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8589 # Insert the option either (1) after the last *FLAGS variable, or 8590 # (2) before a word containing "conftest.", or (3) at the end. 8591 # Note that $ac_compile itself does not contain backslashes and begins 8592 # with a dollar sign (not a hyphen), so the echo should work correctly. 8593 # The option is referenced via a variable to avoid confusing sed. 8594 lt_compile=`echo "$ac_compile" | $SED \ 8595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8597 -e 's:$: $lt_compiler_flag:'` 8598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8599 (eval "$lt_compile" 2>conftest.err) 8600 ac_status=$? 8601 cat conftest.err >&5 8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8603 if (exit $ac_status) && test -s "$ac_outfile"; then 8604 # The compiler can only warn and ignore the option if not recognized 8605 # So say no if there are warnings other than the usual output. 8606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8608 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8609 lt_cv_prog_compiler_pic_works=yes 8610 fi 8611 fi 8612 $RM conftest* 8613 8614fi 8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8616$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8617 8618if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8619 case $lt_prog_compiler_pic in 8620 "" | " "*) ;; 8621 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8622 esac 8623else 8624 lt_prog_compiler_pic= 8625 lt_prog_compiler_can_build_shared=no 8626fi 8627 8628fi 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640# 8641# Check to make sure the static flag actually works. 8642# 8643wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8645$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8646if ${lt_cv_prog_compiler_static_works+:} false; then : 8647 $as_echo_n "(cached) " >&6 8648else 8649 lt_cv_prog_compiler_static_works=no 8650 save_LDFLAGS="$LDFLAGS" 8651 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8652 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8653 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8654 # The linker can only warn and ignore the option if not recognized 8655 # So say no if there are warnings 8656 if test -s conftest.err; then 8657 # Append any errors to the config.log. 8658 cat conftest.err 1>&5 8659 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8661 if diff conftest.exp conftest.er2 >/dev/null; then 8662 lt_cv_prog_compiler_static_works=yes 8663 fi 8664 else 8665 lt_cv_prog_compiler_static_works=yes 8666 fi 8667 fi 8668 $RM -r conftest* 8669 LDFLAGS="$save_LDFLAGS" 8670 8671fi 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8673$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8674 8675if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8676 : 8677else 8678 lt_prog_compiler_static= 8679fi 8680 8681 8682 8683 8684 8685 8686 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8688$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8689if ${lt_cv_prog_compiler_c_o+:} false; then : 8690 $as_echo_n "(cached) " >&6 8691else 8692 lt_cv_prog_compiler_c_o=no 8693 $RM -r conftest 2>/dev/null 8694 mkdir conftest 8695 cd conftest 8696 mkdir out 8697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8698 8699 lt_compiler_flag="-o out/conftest2.$ac_objext" 8700 # Insert the option either (1) after the last *FLAGS variable, or 8701 # (2) before a word containing "conftest.", or (3) at the end. 8702 # Note that $ac_compile itself does not contain backslashes and begins 8703 # with a dollar sign (not a hyphen), so the echo should work correctly. 8704 lt_compile=`echo "$ac_compile" | $SED \ 8705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8707 -e 's:$: $lt_compiler_flag:'` 8708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8709 (eval "$lt_compile" 2>out/conftest.err) 8710 ac_status=$? 8711 cat out/conftest.err >&5 8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8713 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8714 then 8715 # The compiler can only warn and ignore the option if not recognized 8716 # So say no if there are warnings 8717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8720 lt_cv_prog_compiler_c_o=yes 8721 fi 8722 fi 8723 chmod u+w . 2>&5 8724 $RM conftest* 8725 # SGI C++ compiler will create directory out/ii_files/ for 8726 # template instantiation 8727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8728 $RM out/* && rmdir out 8729 cd .. 8730 $RM -r conftest 8731 $RM conftest* 8732 8733fi 8734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8735$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8736 8737 8738 8739 8740 8741 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8743$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8744if ${lt_cv_prog_compiler_c_o+:} false; then : 8745 $as_echo_n "(cached) " >&6 8746else 8747 lt_cv_prog_compiler_c_o=no 8748 $RM -r conftest 2>/dev/null 8749 mkdir conftest 8750 cd conftest 8751 mkdir out 8752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8753 8754 lt_compiler_flag="-o out/conftest2.$ac_objext" 8755 # Insert the option either (1) after the last *FLAGS variable, or 8756 # (2) before a word containing "conftest.", or (3) at the end. 8757 # Note that $ac_compile itself does not contain backslashes and begins 8758 # with a dollar sign (not a hyphen), so the echo should work correctly. 8759 lt_compile=`echo "$ac_compile" | $SED \ 8760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8762 -e 's:$: $lt_compiler_flag:'` 8763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8764 (eval "$lt_compile" 2>out/conftest.err) 8765 ac_status=$? 8766 cat out/conftest.err >&5 8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8768 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8769 then 8770 # The compiler can only warn and ignore the option if not recognized 8771 # So say no if there are warnings 8772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8775 lt_cv_prog_compiler_c_o=yes 8776 fi 8777 fi 8778 chmod u+w . 2>&5 8779 $RM conftest* 8780 # SGI C++ compiler will create directory out/ii_files/ for 8781 # template instantiation 8782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8783 $RM out/* && rmdir out 8784 cd .. 8785 $RM -r conftest 8786 $RM conftest* 8787 8788fi 8789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8790$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8791 8792 8793 8794 8795hard_links="nottested" 8796if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8797 # do not overwrite the value of need_locks provided by the user 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8799$as_echo_n "checking if we can lock with hard links... " >&6; } 8800 hard_links=yes 8801 $RM conftest* 8802 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8803 touch conftest.a 8804 ln conftest.a conftest.b 2>&5 || hard_links=no 8805 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8807$as_echo "$hard_links" >&6; } 8808 if test "$hard_links" = no; then 8809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8810$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8811 need_locks=warn 8812 fi 8813else 8814 need_locks=no 8815fi 8816 8817 8818 8819 8820 8821 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8823$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8824 8825 runpath_var= 8826 allow_undefined_flag= 8827 always_export_symbols=no 8828 archive_cmds= 8829 archive_expsym_cmds= 8830 compiler_needs_object=no 8831 enable_shared_with_static_runtimes=no 8832 export_dynamic_flag_spec= 8833 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8834 hardcode_automatic=no 8835 hardcode_direct=no 8836 hardcode_direct_absolute=no 8837 hardcode_libdir_flag_spec= 8838 hardcode_libdir_separator= 8839 hardcode_minus_L=no 8840 hardcode_shlibpath_var=unsupported 8841 inherit_rpath=no 8842 link_all_deplibs=unknown 8843 module_cmds= 8844 module_expsym_cmds= 8845 old_archive_from_new_cmds= 8846 old_archive_from_expsyms_cmds= 8847 thread_safe_flag_spec= 8848 whole_archive_flag_spec= 8849 # include_expsyms should be a list of space-separated symbols to be *always* 8850 # included in the symbol list 8851 include_expsyms= 8852 # exclude_expsyms can be an extended regexp of symbols to exclude 8853 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8854 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8855 # as well as any symbol that contains `d'. 8856 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8857 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8858 # platforms (ab)use it in PIC code, but their linkers get confused if 8859 # the symbol is explicitly referenced. Since portable code cannot 8860 # rely on this symbol name, it's probably fine to never include it in 8861 # preloaded symbol tables. 8862 # Exclude shared library initialization/finalization symbols. 8863 extract_expsyms_cmds= 8864 8865 case $host_os in 8866 cygwin* | mingw* | pw32* | cegcc*) 8867 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8868 # When not using gcc, we currently assume that we are using 8869 # Microsoft Visual C++. 8870 if test "$GCC" != yes; then 8871 with_gnu_ld=no 8872 fi 8873 ;; 8874 interix*) 8875 # we just hope/assume this is gcc and not c89 (= MSVC++) 8876 with_gnu_ld=yes 8877 ;; 8878 openbsd*) 8879 with_gnu_ld=no 8880 ;; 8881 esac 8882 8883 ld_shlibs=yes 8884 8885 # On some targets, GNU ld is compatible enough with the native linker 8886 # that we're better off using the native interface for both. 8887 lt_use_gnu_ld_interface=no 8888 if test "$with_gnu_ld" = yes; then 8889 case $host_os in 8890 aix*) 8891 # The AIX port of GNU ld has always aspired to compatibility 8892 # with the native linker. However, as the warning in the GNU ld 8893 # block says, versions before 2.19.5* couldn't really create working 8894 # shared libraries, regardless of the interface used. 8895 case `$LD -v 2>&1` in 8896 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8897 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8898 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8899 *) 8900 lt_use_gnu_ld_interface=yes 8901 ;; 8902 esac 8903 ;; 8904 *) 8905 lt_use_gnu_ld_interface=yes 8906 ;; 8907 esac 8908 fi 8909 8910 if test "$lt_use_gnu_ld_interface" = yes; then 8911 # If archive_cmds runs LD, not CC, wlarc should be empty 8912 wlarc='${wl}' 8913 8914 # Set some defaults for GNU ld with shared library support. These 8915 # are reset later if shared libraries are not supported. Putting them 8916 # here allows them to be overridden if necessary. 8917 runpath_var=LD_RUN_PATH 8918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8919 export_dynamic_flag_spec='${wl}--export-dynamic' 8920 # ancient GNU ld didn't support --whole-archive et. al. 8921 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8922 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8923 else 8924 whole_archive_flag_spec= 8925 fi 8926 supports_anon_versioning=no 8927 case `$LD -v 2>&1` in 8928 *GNU\ gold*) supports_anon_versioning=yes ;; 8929 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8930 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8931 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8932 *\ 2.11.*) ;; # other 2.11 versions 8933 *) supports_anon_versioning=yes ;; 8934 esac 8935 8936 # See if GNU ld supports shared libraries. 8937 case $host_os in 8938 aix[3-9]*) 8939 # On AIX/PPC, the GNU linker is very broken 8940 if test "$host_cpu" != ia64; then 8941 ld_shlibs=no 8942 cat <<_LT_EOF 1>&2 8943 8944*** Warning: the GNU linker, at least up to release 2.19, is reported 8945*** to be unable to reliably create shared libraries on AIX. 8946*** Therefore, libtool is disabling shared libraries support. If you 8947*** really care for shared libraries, you may want to install binutils 8948*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8949*** You will then need to restart the configuration process. 8950 8951_LT_EOF 8952 fi 8953 ;; 8954 8955 amigaos*) 8956 case $host_cpu in 8957 powerpc) 8958 # see comment about AmigaOS4 .so support 8959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8960 archive_expsym_cmds='' 8961 ;; 8962 m68k) 8963 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)' 8964 hardcode_libdir_flag_spec='-L$libdir' 8965 hardcode_minus_L=yes 8966 ;; 8967 esac 8968 ;; 8969 8970 beos*) 8971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8972 allow_undefined_flag=unsupported 8973 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8974 # support --undefined. This deserves some investigation. FIXME 8975 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8976 else 8977 ld_shlibs=no 8978 fi 8979 ;; 8980 8981 cygwin* | mingw* | pw32* | cegcc*) 8982 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8983 # as there is no search path for DLLs. 8984 hardcode_libdir_flag_spec='-L$libdir' 8985 export_dynamic_flag_spec='${wl}--export-all-symbols' 8986 allow_undefined_flag=unsupported 8987 always_export_symbols=no 8988 enable_shared_with_static_runtimes=yes 8989 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' 8990 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8991 8992 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8994 # If the export-symbols file already is a .def file (1st line 8995 # is EXPORTS), use it as is; otherwise, prepend... 8996 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8997 cp $export_symbols $output_objdir/$soname.def; 8998 else 8999 echo EXPORTS > $output_objdir/$soname.def; 9000 cat $export_symbols >> $output_objdir/$soname.def; 9001 fi~ 9002 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9003 else 9004 ld_shlibs=no 9005 fi 9006 ;; 9007 9008 haiku*) 9009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9010 link_all_deplibs=yes 9011 ;; 9012 9013 interix[3-9]*) 9014 hardcode_direct=no 9015 hardcode_shlibpath_var=no 9016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9017 export_dynamic_flag_spec='${wl}-E' 9018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9019 # Instead, shared libraries are loaded at an image base (0x10000000 by 9020 # default) and relocated if they conflict, which is a slow very memory 9021 # consuming and fragmenting process. To avoid this, we pick a random, 9022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9023 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9024 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9025 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' 9026 ;; 9027 9028 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9029 tmp_diet=no 9030 if test "$host_os" = linux-dietlibc; then 9031 case $cc_basename in 9032 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9033 esac 9034 fi 9035 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9036 && test "$tmp_diet" = no 9037 then 9038 tmp_addflag=' $pic_flag' 9039 tmp_sharedflag='-shared' 9040 case $cc_basename,$host_cpu in 9041 pgcc*) # Portland Group C compiler 9042 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9043 tmp_addflag=' $pic_flag' 9044 ;; 9045 pgf77* | pgf90* | pgf95* | pgfortran*) 9046 # Portland Group f77 and f90 compilers 9047 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' 9048 tmp_addflag=' $pic_flag -Mnomain' ;; 9049 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9050 tmp_addflag=' -i_dynamic' ;; 9051 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9052 tmp_addflag=' -i_dynamic -nofor_main' ;; 9053 ifc* | ifort*) # Intel Fortran compiler 9054 tmp_addflag=' -nofor_main' ;; 9055 lf95*) # Lahey Fortran 8.1 9056 whole_archive_flag_spec= 9057 tmp_sharedflag='--shared' ;; 9058 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9059 tmp_sharedflag='-qmkshrobj' 9060 tmp_addflag= ;; 9061 nvcc*) # Cuda Compiler Driver 2.2 9062 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' 9063 compiler_needs_object=yes 9064 ;; 9065 esac 9066 case `$CC -V 2>&1 | sed 5q` in 9067 *Sun\ C*) # Sun C 5.9 9068 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' 9069 compiler_needs_object=yes 9070 tmp_sharedflag='-G' ;; 9071 *Sun\ F*) # Sun Fortran 8.3 9072 tmp_sharedflag='-G' ;; 9073 esac 9074 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9075 9076 if test "x$supports_anon_versioning" = xyes; then 9077 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9079 echo "local: *; };" >> $output_objdir/$libname.ver~ 9080 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9081 fi 9082 9083 case $cc_basename in 9084 xlf* | bgf* | bgxlf* | mpixlf*) 9085 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9086 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9087 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9088 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9089 if test "x$supports_anon_versioning" = xyes; then 9090 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9092 echo "local: *; };" >> $output_objdir/$libname.ver~ 9093 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9094 fi 9095 ;; 9096 esac 9097 else 9098 ld_shlibs=no 9099 fi 9100 ;; 9101 9102 netbsd*) 9103 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9104 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9105 wlarc= 9106 else 9107 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9108 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9109 fi 9110 ;; 9111 9112 solaris*) 9113 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9114 ld_shlibs=no 9115 cat <<_LT_EOF 1>&2 9116 9117*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9118*** create shared libraries on Solaris systems. Therefore, libtool 9119*** is disabling shared libraries support. We urge you to upgrade GNU 9120*** binutils to release 2.9.1 or newer. Another option is to modify 9121*** your PATH or compiler configuration so that the native linker is 9122*** used, and then restart. 9123 9124_LT_EOF 9125 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9126 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9127 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9128 else 9129 ld_shlibs=no 9130 fi 9131 ;; 9132 9133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9134 case `$LD -v 2>&1` in 9135 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9136 ld_shlibs=no 9137 cat <<_LT_EOF 1>&2 9138 9139*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9140*** reliably create shared libraries on SCO systems. Therefore, libtool 9141*** is disabling shared libraries support. We urge you to upgrade GNU 9142*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9143*** your PATH or compiler configuration so that the native linker is 9144*** used, and then restart. 9145 9146_LT_EOF 9147 ;; 9148 *) 9149 # For security reasons, it is highly recommended that you always 9150 # use absolute paths for naming shared libraries, and exclude the 9151 # DT_RUNPATH tag from executables and libraries. But doing so 9152 # requires that you compile everything twice, which is a pain. 9153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9156 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9157 else 9158 ld_shlibs=no 9159 fi 9160 ;; 9161 esac 9162 ;; 9163 9164 sunos4*) 9165 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9166 wlarc= 9167 hardcode_direct=yes 9168 hardcode_shlibpath_var=no 9169 ;; 9170 9171 *) 9172 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9174 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9175 else 9176 ld_shlibs=no 9177 fi 9178 ;; 9179 esac 9180 9181 if test "$ld_shlibs" = no; then 9182 runpath_var= 9183 hardcode_libdir_flag_spec= 9184 export_dynamic_flag_spec= 9185 whole_archive_flag_spec= 9186 fi 9187 else 9188 # PORTME fill in a description of your system's linker (not GNU ld) 9189 case $host_os in 9190 aix3*) 9191 allow_undefined_flag=unsupported 9192 always_export_symbols=yes 9193 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' 9194 # Note: this linker hardcodes the directories in LIBPATH if there 9195 # are no directories specified by -L. 9196 hardcode_minus_L=yes 9197 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9198 # Neither direct hardcoding nor static linking is supported with a 9199 # broken collect2. 9200 hardcode_direct=unsupported 9201 fi 9202 ;; 9203 9204 aix[4-9]*) 9205 if test "$host_cpu" = ia64; then 9206 # On IA64, the linker does run time linking by default, so we don't 9207 # have to do anything special. 9208 aix_use_runtimelinking=no 9209 exp_sym_flag='-Bexport' 9210 no_entry_flag="" 9211 else 9212 # If we're using GNU nm, then we don't want the "-C" option. 9213 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9214 # Also, AIX nm treats weak defined symbols like other global 9215 # defined symbols, whereas GNU nm marks them as "W". 9216 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9217 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9218 else 9219 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9220 fi 9221 aix_use_runtimelinking=no 9222 9223 # Test if we are trying to use run time linking or normal 9224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9225 # need to do runtime linking. 9226 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9227 for ld_flag in $LDFLAGS; do 9228 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9229 aix_use_runtimelinking=yes 9230 break 9231 fi 9232 done 9233 ;; 9234 esac 9235 9236 exp_sym_flag='-bexport' 9237 no_entry_flag='-bnoentry' 9238 fi 9239 9240 # When large executables or shared objects are built, AIX ld can 9241 # have problems creating the table of contents. If linking a library 9242 # or program results in "error TOC overflow" add -mminimal-toc to 9243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9245 9246 archive_cmds='' 9247 hardcode_direct=yes 9248 hardcode_direct_absolute=yes 9249 hardcode_libdir_separator=':' 9250 link_all_deplibs=yes 9251 file_list_spec='${wl}-f,' 9252 9253 if test "$GCC" = yes; then 9254 case $host_os in aix4.[012]|aix4.[012].*) 9255 # We only want to do this on AIX 4.2 and lower, the check 9256 # below for broken collect2 doesn't work under 4.3+ 9257 collect2name=`${CC} -print-prog-name=collect2` 9258 if test -f "$collect2name" && 9259 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9260 then 9261 # We have reworked collect2 9262 : 9263 else 9264 # We have old collect2 9265 hardcode_direct=unsupported 9266 # It fails to find uninstalled libraries when the uninstalled 9267 # path is not listed in the libpath. Setting hardcode_minus_L 9268 # to unsupported forces relinking 9269 hardcode_minus_L=yes 9270 hardcode_libdir_flag_spec='-L$libdir' 9271 hardcode_libdir_separator= 9272 fi 9273 ;; 9274 esac 9275 shared_flag='-shared' 9276 if test "$aix_use_runtimelinking" = yes; then 9277 shared_flag="$shared_flag "'${wl}-G' 9278 fi 9279 else 9280 # not using gcc 9281 if test "$host_cpu" = ia64; then 9282 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9283 # chokes on -Wl,-G. The following line is correct: 9284 shared_flag='-G' 9285 else 9286 if test "$aix_use_runtimelinking" = yes; then 9287 shared_flag='${wl}-G' 9288 else 9289 shared_flag='${wl}-bM:SRE' 9290 fi 9291 fi 9292 fi 9293 9294 export_dynamic_flag_spec='${wl}-bexpall' 9295 # It seems that -bexpall does not export symbols beginning with 9296 # underscore (_), so it is better to generate a list of symbols to export. 9297 always_export_symbols=yes 9298 if test "$aix_use_runtimelinking" = yes; then 9299 # Warning - without using the other runtime loading flags (-brtl), 9300 # -berok will link without error, but may produce a broken library. 9301 allow_undefined_flag='-berok' 9302 # Determine the default libpath from the value encoded in an 9303 # empty executable. 9304 if test "${lt_cv_aix_libpath+set}" = set; then 9305 aix_libpath=$lt_cv_aix_libpath 9306else 9307 if ${lt_cv_aix_libpath_+:} false; then : 9308 $as_echo_n "(cached) " >&6 9309else 9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311/* end confdefs.h. */ 9312 9313int 9314main () 9315{ 9316 9317 ; 9318 return 0; 9319} 9320_ACEOF 9321if ac_fn_c_try_link "$LINENO"; then : 9322 9323 lt_aix_libpath_sed=' 9324 /Import File Strings/,/^$/ { 9325 /^0/ { 9326 s/^0 *\([^ ]*\) *$/\1/ 9327 p 9328 } 9329 }' 9330 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9331 # Check for a 64-bit object if we didn't find anything. 9332 if test -z "$lt_cv_aix_libpath_"; then 9333 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9334 fi 9335fi 9336rm -f core conftest.err conftest.$ac_objext \ 9337 conftest$ac_exeext conftest.$ac_ext 9338 if test -z "$lt_cv_aix_libpath_"; then 9339 lt_cv_aix_libpath_="/usr/lib:/lib" 9340 fi 9341 9342fi 9343 9344 aix_libpath=$lt_cv_aix_libpath_ 9345fi 9346 9347 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9348 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9349 else 9350 if test "$host_cpu" = ia64; then 9351 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9352 allow_undefined_flag="-z nodefs" 9353 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" 9354 else 9355 # Determine the default libpath from the value encoded in an 9356 # empty executable. 9357 if test "${lt_cv_aix_libpath+set}" = set; then 9358 aix_libpath=$lt_cv_aix_libpath 9359else 9360 if ${lt_cv_aix_libpath_+:} false; then : 9361 $as_echo_n "(cached) " >&6 9362else 9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9364/* end confdefs.h. */ 9365 9366int 9367main () 9368{ 9369 9370 ; 9371 return 0; 9372} 9373_ACEOF 9374if ac_fn_c_try_link "$LINENO"; then : 9375 9376 lt_aix_libpath_sed=' 9377 /Import File Strings/,/^$/ { 9378 /^0/ { 9379 s/^0 *\([^ ]*\) *$/\1/ 9380 p 9381 } 9382 }' 9383 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9384 # Check for a 64-bit object if we didn't find anything. 9385 if test -z "$lt_cv_aix_libpath_"; then 9386 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9387 fi 9388fi 9389rm -f core conftest.err conftest.$ac_objext \ 9390 conftest$ac_exeext conftest.$ac_ext 9391 if test -z "$lt_cv_aix_libpath_"; then 9392 lt_cv_aix_libpath_="/usr/lib:/lib" 9393 fi 9394 9395fi 9396 9397 aix_libpath=$lt_cv_aix_libpath_ 9398fi 9399 9400 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9401 # Warning - without using the other run time loading flags, 9402 # -berok will link without error, but may produce a broken library. 9403 no_undefined_flag=' ${wl}-bernotok' 9404 allow_undefined_flag=' ${wl}-berok' 9405 if test "$with_gnu_ld" = yes; then 9406 # We only use this code for GNU lds that support --whole-archive. 9407 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9408 else 9409 # Exported symbols can be pulled into shared objects from archives 9410 whole_archive_flag_spec='$convenience' 9411 fi 9412 archive_cmds_need_lc=yes 9413 # This is similar to how AIX traditionally builds its shared libraries. 9414 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9415 fi 9416 fi 9417 ;; 9418 9419 amigaos*) 9420 case $host_cpu in 9421 powerpc) 9422 # see comment about AmigaOS4 .so support 9423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9424 archive_expsym_cmds='' 9425 ;; 9426 m68k) 9427 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)' 9428 hardcode_libdir_flag_spec='-L$libdir' 9429 hardcode_minus_L=yes 9430 ;; 9431 esac 9432 ;; 9433 9434 bsdi[45]*) 9435 export_dynamic_flag_spec=-rdynamic 9436 ;; 9437 9438 cygwin* | mingw* | pw32* | cegcc*) 9439 # When not using gcc, we currently assume that we are using 9440 # Microsoft Visual C++. 9441 # hardcode_libdir_flag_spec is actually meaningless, as there is 9442 # no search path for DLLs. 9443 case $cc_basename in 9444 cl*) 9445 # Native MSVC 9446 hardcode_libdir_flag_spec=' ' 9447 allow_undefined_flag=unsupported 9448 always_export_symbols=yes 9449 file_list_spec='@' 9450 # Tell ltmain to make .lib files, not .a files. 9451 libext=lib 9452 # Tell ltmain to make .dll files, not .so files. 9453 shrext_cmds=".dll" 9454 # FIXME: Setting linknames here is a bad hack. 9455 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9456 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9457 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9458 else 9459 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9460 fi~ 9461 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9462 linknames=' 9463 # The linker will not automatically build a static lib if we build a DLL. 9464 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9465 enable_shared_with_static_runtimes=yes 9466 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9467 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9468 # Don't use ranlib 9469 old_postinstall_cmds='chmod 644 $oldlib' 9470 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9471 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9472 case $lt_outputfile in 9473 *.exe|*.EXE) ;; 9474 *) 9475 lt_outputfile="$lt_outputfile.exe" 9476 lt_tool_outputfile="$lt_tool_outputfile.exe" 9477 ;; 9478 esac~ 9479 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9480 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9481 $RM "$lt_outputfile.manifest"; 9482 fi' 9483 ;; 9484 *) 9485 # Assume MSVC wrapper 9486 hardcode_libdir_flag_spec=' ' 9487 allow_undefined_flag=unsupported 9488 # Tell ltmain to make .lib files, not .a files. 9489 libext=lib 9490 # Tell ltmain to make .dll files, not .so files. 9491 shrext_cmds=".dll" 9492 # FIXME: Setting linknames here is a bad hack. 9493 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9494 # The linker will automatically build a .lib file if we build a DLL. 9495 old_archive_from_new_cmds='true' 9496 # FIXME: Should let the user specify the lib program. 9497 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9498 enable_shared_with_static_runtimes=yes 9499 ;; 9500 esac 9501 ;; 9502 9503 darwin* | rhapsody*) 9504 9505 9506 archive_cmds_need_lc=no 9507 hardcode_direct=no 9508 hardcode_automatic=yes 9509 hardcode_shlibpath_var=unsupported 9510 if test "$lt_cv_ld_force_load" = "yes"; then 9511 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\"`' 9512 9513 else 9514 whole_archive_flag_spec='' 9515 fi 9516 link_all_deplibs=yes 9517 allow_undefined_flag="$_lt_dar_allow_undefined" 9518 case $cc_basename in 9519 ifort*) _lt_dar_can_shared=yes ;; 9520 *) _lt_dar_can_shared=$GCC ;; 9521 esac 9522 if test "$_lt_dar_can_shared" = "yes"; then 9523 output_verbose_link_cmd=func_echo_all 9524 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9525 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9526 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}" 9527 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}" 9528 9529 else 9530 ld_shlibs=no 9531 fi 9532 9533 ;; 9534 9535 dgux*) 9536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9537 hardcode_libdir_flag_spec='-L$libdir' 9538 hardcode_shlibpath_var=no 9539 ;; 9540 9541 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9542 # support. Future versions do this automatically, but an explicit c++rt0.o 9543 # does not break anything, and helps significantly (at the cost of a little 9544 # extra space). 9545 freebsd2.2*) 9546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9547 hardcode_libdir_flag_spec='-R$libdir' 9548 hardcode_direct=yes 9549 hardcode_shlibpath_var=no 9550 ;; 9551 9552 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9553 freebsd2.*) 9554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9555 hardcode_direct=yes 9556 hardcode_minus_L=yes 9557 hardcode_shlibpath_var=no 9558 ;; 9559 9560 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9561 freebsd* | dragonfly*) 9562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9563 hardcode_libdir_flag_spec='-R$libdir' 9564 hardcode_direct=yes 9565 hardcode_shlibpath_var=no 9566 ;; 9567 9568 hpux9*) 9569 if test "$GCC" = yes; then 9570 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9571 else 9572 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9573 fi 9574 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9575 hardcode_libdir_separator=: 9576 hardcode_direct=yes 9577 9578 # hardcode_minus_L: Not really in the search PATH, 9579 # but as the default location of the library. 9580 hardcode_minus_L=yes 9581 export_dynamic_flag_spec='${wl}-E' 9582 ;; 9583 9584 hpux10*) 9585 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9586 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9587 else 9588 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9589 fi 9590 if test "$with_gnu_ld" = no; then 9591 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9592 hardcode_libdir_separator=: 9593 hardcode_direct=yes 9594 hardcode_direct_absolute=yes 9595 export_dynamic_flag_spec='${wl}-E' 9596 # hardcode_minus_L: Not really in the search PATH, 9597 # but as the default location of the library. 9598 hardcode_minus_L=yes 9599 fi 9600 ;; 9601 9602 hpux11*) 9603 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9604 case $host_cpu in 9605 hppa*64*) 9606 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9607 ;; 9608 ia64*) 9609 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9610 ;; 9611 *) 9612 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9613 ;; 9614 esac 9615 else 9616 case $host_cpu in 9617 hppa*64*) 9618 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9619 ;; 9620 ia64*) 9621 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9622 ;; 9623 *) 9624 9625 # Older versions of the 11.00 compiler do not understand -b yet 9626 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9628$as_echo_n "checking if $CC understands -b... " >&6; } 9629if ${lt_cv_prog_compiler__b+:} false; then : 9630 $as_echo_n "(cached) " >&6 9631else 9632 lt_cv_prog_compiler__b=no 9633 save_LDFLAGS="$LDFLAGS" 9634 LDFLAGS="$LDFLAGS -b" 9635 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9636 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9637 # The linker can only warn and ignore the option if not recognized 9638 # So say no if there are warnings 9639 if test -s conftest.err; then 9640 # Append any errors to the config.log. 9641 cat conftest.err 1>&5 9642 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9644 if diff conftest.exp conftest.er2 >/dev/null; then 9645 lt_cv_prog_compiler__b=yes 9646 fi 9647 else 9648 lt_cv_prog_compiler__b=yes 9649 fi 9650 fi 9651 $RM -r conftest* 9652 LDFLAGS="$save_LDFLAGS" 9653 9654fi 9655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9656$as_echo "$lt_cv_prog_compiler__b" >&6; } 9657 9658if test x"$lt_cv_prog_compiler__b" = xyes; then 9659 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9660else 9661 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9662fi 9663 9664 ;; 9665 esac 9666 fi 9667 if test "$with_gnu_ld" = no; then 9668 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9669 hardcode_libdir_separator=: 9670 9671 case $host_cpu in 9672 hppa*64*|ia64*) 9673 hardcode_direct=no 9674 hardcode_shlibpath_var=no 9675 ;; 9676 *) 9677 hardcode_direct=yes 9678 hardcode_direct_absolute=yes 9679 export_dynamic_flag_spec='${wl}-E' 9680 9681 # hardcode_minus_L: Not really in the search PATH, 9682 # but as the default location of the library. 9683 hardcode_minus_L=yes 9684 ;; 9685 esac 9686 fi 9687 ;; 9688 9689 irix5* | irix6* | nonstopux*) 9690 if test "$GCC" = yes; then 9691 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' 9692 # Try to use the -exported_symbol ld option, if it does not 9693 # work, assume that -exports_file does not work either and 9694 # implicitly export all symbols. 9695 # This should be the same for all languages, so no per-tag cache variable. 9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9697$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9698if ${lt_cv_irix_exported_symbol+:} false; then : 9699 $as_echo_n "(cached) " >&6 9700else 9701 save_LDFLAGS="$LDFLAGS" 9702 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9704/* end confdefs.h. */ 9705int foo (void) { return 0; } 9706_ACEOF 9707if ac_fn_c_try_link "$LINENO"; then : 9708 lt_cv_irix_exported_symbol=yes 9709else 9710 lt_cv_irix_exported_symbol=no 9711fi 9712rm -f core conftest.err conftest.$ac_objext \ 9713 conftest$ac_exeext conftest.$ac_ext 9714 LDFLAGS="$save_LDFLAGS" 9715fi 9716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9717$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9718 if test "$lt_cv_irix_exported_symbol" = yes; then 9719 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' 9720 fi 9721 else 9722 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' 9723 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' 9724 fi 9725 archive_cmds_need_lc='no' 9726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9727 hardcode_libdir_separator=: 9728 inherit_rpath=yes 9729 link_all_deplibs=yes 9730 ;; 9731 9732 netbsd*) 9733 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9735 else 9736 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9737 fi 9738 hardcode_libdir_flag_spec='-R$libdir' 9739 hardcode_direct=yes 9740 hardcode_shlibpath_var=no 9741 ;; 9742 9743 newsos6) 9744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9745 hardcode_direct=yes 9746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9747 hardcode_libdir_separator=: 9748 hardcode_shlibpath_var=no 9749 ;; 9750 9751 *nto* | *qnx*) 9752 ;; 9753 9754 openbsd*) 9755 if test -f /usr/libexec/ld.so; then 9756 hardcode_direct=yes 9757 hardcode_shlibpath_var=no 9758 hardcode_direct_absolute=yes 9759 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9761 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9762 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9763 export_dynamic_flag_spec='${wl}-E' 9764 else 9765 case $host_os in 9766 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9768 hardcode_libdir_flag_spec='-R$libdir' 9769 ;; 9770 *) 9771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9772 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9773 ;; 9774 esac 9775 fi 9776 else 9777 ld_shlibs=no 9778 fi 9779 ;; 9780 9781 os2*) 9782 hardcode_libdir_flag_spec='-L$libdir' 9783 hardcode_minus_L=yes 9784 allow_undefined_flag=unsupported 9785 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9786 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9787 ;; 9788 9789 osf3*) 9790 if test "$GCC" = yes; then 9791 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9792 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' 9793 else 9794 allow_undefined_flag=' -expect_unresolved \*' 9795 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' 9796 fi 9797 archive_cmds_need_lc='no' 9798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9799 hardcode_libdir_separator=: 9800 ;; 9801 9802 osf4* | osf5*) # as osf3* with the addition of -msym flag 9803 if test "$GCC" = yes; then 9804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9805 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' 9806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9807 else 9808 allow_undefined_flag=' -expect_unresolved \*' 9809 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' 9810 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~ 9811 $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' 9812 9813 # Both c and cxx compiler support -rpath directly 9814 hardcode_libdir_flag_spec='-rpath $libdir' 9815 fi 9816 archive_cmds_need_lc='no' 9817 hardcode_libdir_separator=: 9818 ;; 9819 9820 solaris*) 9821 no_undefined_flag=' -z defs' 9822 if test "$GCC" = yes; then 9823 wlarc='${wl}' 9824 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9825 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9826 $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' 9827 else 9828 case `$CC -V 2>&1` in 9829 *"Compilers 5.0"*) 9830 wlarc='' 9831 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9832 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9833 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9834 ;; 9835 *) 9836 wlarc='${wl}' 9837 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9839 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9840 ;; 9841 esac 9842 fi 9843 hardcode_libdir_flag_spec='-R$libdir' 9844 hardcode_shlibpath_var=no 9845 case $host_os in 9846 solaris2.[0-5] | solaris2.[0-5].*) ;; 9847 *) 9848 # The compiler driver will combine and reorder linker options, 9849 # but understands `-z linker_flag'. GCC discards it without `$wl', 9850 # but is careful enough not to reorder. 9851 # Supported since Solaris 2.6 (maybe 2.5.1?) 9852 if test "$GCC" = yes; then 9853 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9854 else 9855 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9856 fi 9857 ;; 9858 esac 9859 link_all_deplibs=yes 9860 ;; 9861 9862 sunos4*) 9863 if test "x$host_vendor" = xsequent; then 9864 # Use $CC to link under sequent, because it throws in some extra .o 9865 # files that make .init and .fini sections work. 9866 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9867 else 9868 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9869 fi 9870 hardcode_libdir_flag_spec='-L$libdir' 9871 hardcode_direct=yes 9872 hardcode_minus_L=yes 9873 hardcode_shlibpath_var=no 9874 ;; 9875 9876 sysv4) 9877 case $host_vendor in 9878 sni) 9879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9880 hardcode_direct=yes # is this really true??? 9881 ;; 9882 siemens) 9883 ## LD is ld it makes a PLAMLIB 9884 ## CC just makes a GrossModule. 9885 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9886 reload_cmds='$CC -r -o $output$reload_objs' 9887 hardcode_direct=no 9888 ;; 9889 motorola) 9890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9891 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9892 ;; 9893 esac 9894 runpath_var='LD_RUN_PATH' 9895 hardcode_shlibpath_var=no 9896 ;; 9897 9898 sysv4.3*) 9899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9900 hardcode_shlibpath_var=no 9901 export_dynamic_flag_spec='-Bexport' 9902 ;; 9903 9904 sysv4*MP*) 9905 if test -d /usr/nec; then 9906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9907 hardcode_shlibpath_var=no 9908 runpath_var=LD_RUN_PATH 9909 hardcode_runpath_var=yes 9910 ld_shlibs=yes 9911 fi 9912 ;; 9913 9914 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9915 no_undefined_flag='${wl}-z,text' 9916 archive_cmds_need_lc=no 9917 hardcode_shlibpath_var=no 9918 runpath_var='LD_RUN_PATH' 9919 9920 if test "$GCC" = yes; then 9921 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9922 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9923 else 9924 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9925 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9926 fi 9927 ;; 9928 9929 sysv5* | sco3.2v5* | sco5v6*) 9930 # Note: We can NOT use -z defs as we might desire, because we do not 9931 # link with -lc, and that would cause any symbols used from libc to 9932 # always be unresolved, which means just about no library would 9933 # ever link correctly. If we're not using GNU ld we use -z text 9934 # though, which does catch some bad symbols but isn't as heavy-handed 9935 # as -z defs. 9936 no_undefined_flag='${wl}-z,text' 9937 allow_undefined_flag='${wl}-z,nodefs' 9938 archive_cmds_need_lc=no 9939 hardcode_shlibpath_var=no 9940 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9941 hardcode_libdir_separator=':' 9942 link_all_deplibs=yes 9943 export_dynamic_flag_spec='${wl}-Bexport' 9944 runpath_var='LD_RUN_PATH' 9945 9946 if test "$GCC" = yes; then 9947 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9948 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9949 else 9950 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9951 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9952 fi 9953 ;; 9954 9955 uts4*) 9956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9957 hardcode_libdir_flag_spec='-L$libdir' 9958 hardcode_shlibpath_var=no 9959 ;; 9960 9961 *) 9962 ld_shlibs=no 9963 ;; 9964 esac 9965 9966 if test x$host_vendor = xsni; then 9967 case $host in 9968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9969 export_dynamic_flag_spec='${wl}-Blargedynsym' 9970 ;; 9971 esac 9972 fi 9973 fi 9974 9975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9976$as_echo "$ld_shlibs" >&6; } 9977test "$ld_shlibs" = no && can_build_shared=no 9978 9979with_gnu_ld=$with_gnu_ld 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995# 9996# Do we need to explicitly link libc? 9997# 9998case "x$archive_cmds_need_lc" in 9999x|xyes) 10000 # Assume -lc should be added 10001 archive_cmds_need_lc=yes 10002 10003 if test "$enable_shared" = yes && test "$GCC" = yes; then 10004 case $archive_cmds in 10005 *'~'*) 10006 # FIXME: we may have to deal with multi-command sequences. 10007 ;; 10008 '$CC '*) 10009 # Test whether the compiler implicitly links with -lc since on some 10010 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10011 # to ld, don't add -lc before -lgcc. 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10013$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10014if ${lt_cv_archive_cmds_need_lc+:} false; then : 10015 $as_echo_n "(cached) " >&6 10016else 10017 $RM conftest* 10018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10019 10020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10021 (eval $ac_compile) 2>&5 10022 ac_status=$? 10023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10024 test $ac_status = 0; } 2>conftest.err; then 10025 soname=conftest 10026 lib=conftest 10027 libobjs=conftest.$ac_objext 10028 deplibs= 10029 wl=$lt_prog_compiler_wl 10030 pic_flag=$lt_prog_compiler_pic 10031 compiler_flags=-v 10032 linker_flags=-v 10033 verstring= 10034 output_objdir=. 10035 libname=conftest 10036 lt_save_allow_undefined_flag=$allow_undefined_flag 10037 allow_undefined_flag= 10038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10039 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10040 ac_status=$? 10041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10042 test $ac_status = 0; } 10043 then 10044 lt_cv_archive_cmds_need_lc=no 10045 else 10046 lt_cv_archive_cmds_need_lc=yes 10047 fi 10048 allow_undefined_flag=$lt_save_allow_undefined_flag 10049 else 10050 cat conftest.err 1>&5 10051 fi 10052 $RM conftest* 10053 10054fi 10055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10056$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10057 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10058 ;; 10059 esac 10060 fi 10061 ;; 10062esac 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10216$as_echo_n "checking dynamic linker characteristics... " >&6; } 10217 10218if test "$GCC" = yes; then 10219 case $host_os in 10220 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10221 *) lt_awk_arg="/^libraries:/" ;; 10222 esac 10223 case $host_os in 10224 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10225 *) lt_sed_strip_eq="s,=/,/,g" ;; 10226 esac 10227 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10228 case $lt_search_path_spec in 10229 *\;*) 10230 # if the path contains ";" then we assume it to be the separator 10231 # otherwise default to the standard path separator (i.e. ":") - it is 10232 # assumed that no part of a normal pathname contains ";" but that should 10233 # okay in the real world where ";" in dirpaths is itself problematic. 10234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10235 ;; 10236 *) 10237 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10238 ;; 10239 esac 10240 # Ok, now we have the path, separated by spaces, we can step through it 10241 # and add multilib dir if necessary. 10242 lt_tmp_lt_search_path_spec= 10243 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10244 for lt_sys_path in $lt_search_path_spec; do 10245 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10246 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10247 else 10248 test -d "$lt_sys_path" && \ 10249 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10250 fi 10251 done 10252 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10253BEGIN {RS=" "; FS="/|\n";} { 10254 lt_foo=""; 10255 lt_count=0; 10256 for (lt_i = NF; lt_i > 0; lt_i--) { 10257 if ($lt_i != "" && $lt_i != ".") { 10258 if ($lt_i == "..") { 10259 lt_count++; 10260 } else { 10261 if (lt_count == 0) { 10262 lt_foo="/" $lt_i lt_foo; 10263 } else { 10264 lt_count--; 10265 } 10266 } 10267 } 10268 } 10269 if (lt_foo != "") { lt_freq[lt_foo]++; } 10270 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10271}'` 10272 # AWK program above erroneously prepends '/' to C:/dos/paths 10273 # for these hosts. 10274 case $host_os in 10275 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10276 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10277 esac 10278 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10279else 10280 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10281fi 10282library_names_spec= 10283libname_spec='lib$name' 10284soname_spec= 10285shrext_cmds=".so" 10286postinstall_cmds= 10287postuninstall_cmds= 10288finish_cmds= 10289finish_eval= 10290shlibpath_var= 10291shlibpath_overrides_runpath=unknown 10292version_type=none 10293dynamic_linker="$host_os ld.so" 10294sys_lib_dlsearch_path_spec="/lib /usr/lib" 10295need_lib_prefix=unknown 10296hardcode_into_libs=no 10297 10298# when you set need_version to no, make sure it does not cause -set_version 10299# flags to be left without arguments 10300need_version=unknown 10301 10302case $host_os in 10303aix3*) 10304 version_type=linux # correct to gnu/linux during the next big refactor 10305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10306 shlibpath_var=LIBPATH 10307 10308 # AIX 3 has no versioning support, so we append a major version to the name. 10309 soname_spec='${libname}${release}${shared_ext}$major' 10310 ;; 10311 10312aix[4-9]*) 10313 version_type=linux # correct to gnu/linux during the next big refactor 10314 need_lib_prefix=no 10315 need_version=no 10316 hardcode_into_libs=yes 10317 if test "$host_cpu" = ia64; then 10318 # AIX 5 supports IA64 10319 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10320 shlibpath_var=LD_LIBRARY_PATH 10321 else 10322 # With GCC up to 2.95.x, collect2 would create an import file 10323 # for dependence libraries. The import file would start with 10324 # the line `#! .'. This would cause the generated library to 10325 # depend on `.', always an invalid library. This was fixed in 10326 # development snapshots of GCC prior to 3.0. 10327 case $host_os in 10328 aix4 | aix4.[01] | aix4.[01].*) 10329 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10330 echo ' yes ' 10331 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10332 : 10333 else 10334 can_build_shared=no 10335 fi 10336 ;; 10337 esac 10338 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10339 # soname into executable. Probably we can add versioning support to 10340 # collect2, so additional links can be useful in future. 10341 if test "$aix_use_runtimelinking" = yes; then 10342 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10343 # instead of lib<name>.a to let people know that these are not 10344 # typical AIX shared libraries. 10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10346 else 10347 # We preserve .a as extension for shared libraries through AIX4.2 10348 # and later when we are not doing run time linking. 10349 library_names_spec='${libname}${release}.a $libname.a' 10350 soname_spec='${libname}${release}${shared_ext}$major' 10351 fi 10352 shlibpath_var=LIBPATH 10353 fi 10354 ;; 10355 10356amigaos*) 10357 case $host_cpu in 10358 powerpc) 10359 # Since July 2007 AmigaOS4 officially supports .so libraries. 10360 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10362 ;; 10363 m68k) 10364 library_names_spec='$libname.ixlibrary $libname.a' 10365 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10366 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10367 ;; 10368 esac 10369 ;; 10370 10371beos*) 10372 library_names_spec='${libname}${shared_ext}' 10373 dynamic_linker="$host_os ld.so" 10374 shlibpath_var=LIBRARY_PATH 10375 ;; 10376 10377bsdi[45]*) 10378 version_type=linux # correct to gnu/linux during the next big refactor 10379 need_version=no 10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10381 soname_spec='${libname}${release}${shared_ext}$major' 10382 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10383 shlibpath_var=LD_LIBRARY_PATH 10384 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10385 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10386 # the default ld.so.conf also contains /usr/contrib/lib and 10387 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10388 # libtool to hard-code these into programs 10389 ;; 10390 10391cygwin* | mingw* | pw32* | cegcc*) 10392 version_type=windows 10393 shrext_cmds=".dll" 10394 need_version=no 10395 need_lib_prefix=no 10396 10397 case $GCC,$cc_basename in 10398 yes,*) 10399 # gcc 10400 library_names_spec='$libname.dll.a' 10401 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10402 postinstall_cmds='base_file=`basename \${file}`~ 10403 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10404 dldir=$destdir/`dirname \$dlpath`~ 10405 test -d \$dldir || mkdir -p \$dldir~ 10406 $install_prog $dir/$dlname \$dldir/$dlname~ 10407 chmod a+x \$dldir/$dlname~ 10408 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10409 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10410 fi' 10411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10412 dlpath=$dir/\$dldll~ 10413 $RM \$dlpath' 10414 shlibpath_overrides_runpath=yes 10415 10416 case $host_os in 10417 cygwin*) 10418 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10419 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10420 10421 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10422 ;; 10423 mingw* | cegcc*) 10424 # MinGW DLLs use traditional 'lib' prefix 10425 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10426 ;; 10427 pw32*) 10428 # pw32 DLLs use 'pw' prefix rather than 'lib' 10429 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10430 ;; 10431 esac 10432 dynamic_linker='Win32 ld.exe' 10433 ;; 10434 10435 *,cl*) 10436 # Native MSVC 10437 libname_spec='$name' 10438 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10439 library_names_spec='${libname}.dll.lib' 10440 10441 case $build_os in 10442 mingw*) 10443 sys_lib_search_path_spec= 10444 lt_save_ifs=$IFS 10445 IFS=';' 10446 for lt_path in $LIB 10447 do 10448 IFS=$lt_save_ifs 10449 # Let DOS variable expansion print the short 8.3 style file name. 10450 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10451 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10452 done 10453 IFS=$lt_save_ifs 10454 # Convert to MSYS style. 10455 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10456 ;; 10457 cygwin*) 10458 # Convert to unix form, then to dos form, then back to unix form 10459 # but this time dos style (no spaces!) so that the unix form looks 10460 # like /cygdrive/c/PROGRA~1:/cygdr... 10461 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10462 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10463 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10464 ;; 10465 *) 10466 sys_lib_search_path_spec="$LIB" 10467 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10468 # It is most probably a Windows format PATH. 10469 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10470 else 10471 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10472 fi 10473 # FIXME: find the short name or the path components, as spaces are 10474 # common. (e.g. "Program Files" -> "PROGRA~1") 10475 ;; 10476 esac 10477 10478 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10479 postinstall_cmds='base_file=`basename \${file}`~ 10480 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10481 dldir=$destdir/`dirname \$dlpath`~ 10482 test -d \$dldir || mkdir -p \$dldir~ 10483 $install_prog $dir/$dlname \$dldir/$dlname' 10484 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10485 dlpath=$dir/\$dldll~ 10486 $RM \$dlpath' 10487 shlibpath_overrides_runpath=yes 10488 dynamic_linker='Win32 link.exe' 10489 ;; 10490 10491 *) 10492 # Assume MSVC wrapper 10493 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10494 dynamic_linker='Win32 ld.exe' 10495 ;; 10496 esac 10497 # FIXME: first we should search . and the directory the executable is in 10498 shlibpath_var=PATH 10499 ;; 10500 10501darwin* | rhapsody*) 10502 dynamic_linker="$host_os dyld" 10503 version_type=darwin 10504 need_lib_prefix=no 10505 need_version=no 10506 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10507 soname_spec='${libname}${release}${major}$shared_ext' 10508 shlibpath_overrides_runpath=yes 10509 shlibpath_var=DYLD_LIBRARY_PATH 10510 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10511 10512 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10513 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10514 ;; 10515 10516dgux*) 10517 version_type=linux # correct to gnu/linux during the next big refactor 10518 need_lib_prefix=no 10519 need_version=no 10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10521 soname_spec='${libname}${release}${shared_ext}$major' 10522 shlibpath_var=LD_LIBRARY_PATH 10523 ;; 10524 10525freebsd* | dragonfly*) 10526 # DragonFly does not have aout. When/if they implement a new 10527 # versioning mechanism, adjust this. 10528 if test -x /usr/bin/objformat; then 10529 objformat=`/usr/bin/objformat` 10530 else 10531 case $host_os in 10532 freebsd[23].*) objformat=aout ;; 10533 *) objformat=elf ;; 10534 esac 10535 fi 10536 version_type=freebsd-$objformat 10537 case $version_type in 10538 freebsd-elf*) 10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10540 need_version=no 10541 need_lib_prefix=no 10542 ;; 10543 freebsd-*) 10544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10545 need_version=yes 10546 ;; 10547 esac 10548 shlibpath_var=LD_LIBRARY_PATH 10549 case $host_os in 10550 freebsd2.*) 10551 shlibpath_overrides_runpath=yes 10552 ;; 10553 freebsd3.[01]* | freebsdelf3.[01]*) 10554 shlibpath_overrides_runpath=yes 10555 hardcode_into_libs=yes 10556 ;; 10557 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10558 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10559 shlibpath_overrides_runpath=no 10560 hardcode_into_libs=yes 10561 ;; 10562 *) # from 4.6 on, and DragonFly 10563 shlibpath_overrides_runpath=yes 10564 hardcode_into_libs=yes 10565 ;; 10566 esac 10567 ;; 10568 10569gnu*) 10570 version_type=linux # correct to gnu/linux during the next big refactor 10571 need_lib_prefix=no 10572 need_version=no 10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10574 soname_spec='${libname}${release}${shared_ext}$major' 10575 shlibpath_var=LD_LIBRARY_PATH 10576 shlibpath_overrides_runpath=no 10577 hardcode_into_libs=yes 10578 ;; 10579 10580haiku*) 10581 version_type=linux # correct to gnu/linux during the next big refactor 10582 need_lib_prefix=no 10583 need_version=no 10584 dynamic_linker="$host_os runtime_loader" 10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10586 soname_spec='${libname}${release}${shared_ext}$major' 10587 shlibpath_var=LIBRARY_PATH 10588 shlibpath_overrides_runpath=yes 10589 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10590 hardcode_into_libs=yes 10591 ;; 10592 10593hpux9* | hpux10* | hpux11*) 10594 # Give a soname corresponding to the major version so that dld.sl refuses to 10595 # link against other versions. 10596 version_type=sunos 10597 need_lib_prefix=no 10598 need_version=no 10599 case $host_cpu in 10600 ia64*) 10601 shrext_cmds='.so' 10602 hardcode_into_libs=yes 10603 dynamic_linker="$host_os dld.so" 10604 shlibpath_var=LD_LIBRARY_PATH 10605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10607 soname_spec='${libname}${release}${shared_ext}$major' 10608 if test "X$HPUX_IA64_MODE" = X32; then 10609 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10610 else 10611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10612 fi 10613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10614 ;; 10615 hppa*64*) 10616 shrext_cmds='.sl' 10617 hardcode_into_libs=yes 10618 dynamic_linker="$host_os dld.sl" 10619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10622 soname_spec='${libname}${release}${shared_ext}$major' 10623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10625 ;; 10626 *) 10627 shrext_cmds='.sl' 10628 dynamic_linker="$host_os dld.sl" 10629 shlibpath_var=SHLIB_PATH 10630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10632 soname_spec='${libname}${release}${shared_ext}$major' 10633 ;; 10634 esac 10635 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10636 postinstall_cmds='chmod 555 $lib' 10637 # or fails outright, so override atomically: 10638 install_override_mode=555 10639 ;; 10640 10641interix[3-9]*) 10642 version_type=linux # correct to gnu/linux during the next big refactor 10643 need_lib_prefix=no 10644 need_version=no 10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10646 soname_spec='${libname}${release}${shared_ext}$major' 10647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10648 shlibpath_var=LD_LIBRARY_PATH 10649 shlibpath_overrides_runpath=no 10650 hardcode_into_libs=yes 10651 ;; 10652 10653irix5* | irix6* | nonstopux*) 10654 case $host_os in 10655 nonstopux*) version_type=nonstopux ;; 10656 *) 10657 if test "$lt_cv_prog_gnu_ld" = yes; then 10658 version_type=linux # correct to gnu/linux during the next big refactor 10659 else 10660 version_type=irix 10661 fi ;; 10662 esac 10663 need_lib_prefix=no 10664 need_version=no 10665 soname_spec='${libname}${release}${shared_ext}$major' 10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10667 case $host_os in 10668 irix5* | nonstopux*) 10669 libsuff= shlibsuff= 10670 ;; 10671 *) 10672 case $LD in # libtool.m4 will add one of these switches to LD 10673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10674 libsuff= shlibsuff= libmagic=32-bit;; 10675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10676 libsuff=32 shlibsuff=N32 libmagic=N32;; 10677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10678 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10679 *) libsuff= shlibsuff= libmagic=never-match;; 10680 esac 10681 ;; 10682 esac 10683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10684 shlibpath_overrides_runpath=no 10685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10687 hardcode_into_libs=yes 10688 ;; 10689 10690# No shared lib support for Linux oldld, aout, or coff. 10691linux*oldld* | linux*aout* | linux*coff*) 10692 dynamic_linker=no 10693 ;; 10694 10695# This must be glibc/ELF. 10696linux* | k*bsd*-gnu | kopensolaris*-gnu) 10697 version_type=linux # correct to gnu/linux during the next big refactor 10698 need_lib_prefix=no 10699 need_version=no 10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10701 soname_spec='${libname}${release}${shared_ext}$major' 10702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10703 shlibpath_var=LD_LIBRARY_PATH 10704 shlibpath_overrides_runpath=no 10705 10706 # Some binutils ld are patched to set DT_RUNPATH 10707 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10708 $as_echo_n "(cached) " >&6 10709else 10710 lt_cv_shlibpath_overrides_runpath=no 10711 save_LDFLAGS=$LDFLAGS 10712 save_libdir=$libdir 10713 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10714 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10716/* end confdefs.h. */ 10717 10718int 10719main () 10720{ 10721 10722 ; 10723 return 0; 10724} 10725_ACEOF 10726if ac_fn_c_try_link "$LINENO"; then : 10727 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10728 lt_cv_shlibpath_overrides_runpath=yes 10729fi 10730fi 10731rm -f core conftest.err conftest.$ac_objext \ 10732 conftest$ac_exeext conftest.$ac_ext 10733 LDFLAGS=$save_LDFLAGS 10734 libdir=$save_libdir 10735 10736fi 10737 10738 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10739 10740 # This implies no fast_install, which is unacceptable. 10741 # Some rework will be needed to allow for fast_install 10742 # before this can be enabled. 10743 hardcode_into_libs=yes 10744 10745 # Append ld.so.conf contents to the search path 10746 if test -f /etc/ld.so.conf; then 10747 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' ' '` 10748 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10749 fi 10750 10751 # We used to test for /lib/ld.so.1 and disable shared libraries on 10752 # powerpc, because MkLinux only supported shared libraries with the 10753 # GNU dynamic linker. Since this was broken with cross compilers, 10754 # most powerpc-linux boxes support dynamic linking these days and 10755 # people can always --disable-shared, the test was removed, and we 10756 # assume the GNU/Linux dynamic linker is in use. 10757 dynamic_linker='GNU/Linux ld.so' 10758 ;; 10759 10760netbsd*) 10761 version_type=sunos 10762 need_lib_prefix=no 10763 need_version=no 10764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10767 dynamic_linker='NetBSD (a.out) ld.so' 10768 else 10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10770 soname_spec='${libname}${release}${shared_ext}$major' 10771 dynamic_linker='NetBSD ld.elf_so' 10772 fi 10773 shlibpath_var=LD_LIBRARY_PATH 10774 shlibpath_overrides_runpath=yes 10775 hardcode_into_libs=yes 10776 ;; 10777 10778newsos6) 10779 version_type=linux # correct to gnu/linux during the next big refactor 10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10781 shlibpath_var=LD_LIBRARY_PATH 10782 shlibpath_overrides_runpath=yes 10783 ;; 10784 10785*nto* | *qnx*) 10786 version_type=qnx 10787 need_lib_prefix=no 10788 need_version=no 10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10790 soname_spec='${libname}${release}${shared_ext}$major' 10791 shlibpath_var=LD_LIBRARY_PATH 10792 shlibpath_overrides_runpath=no 10793 hardcode_into_libs=yes 10794 dynamic_linker='ldqnx.so' 10795 ;; 10796 10797openbsd*) 10798 version_type=sunos 10799 sys_lib_dlsearch_path_spec="/usr/lib" 10800 need_lib_prefix=no 10801 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10802 case $host_os in 10803 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10804 *) need_version=no ;; 10805 esac 10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10808 shlibpath_var=LD_LIBRARY_PATH 10809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10810 case $host_os in 10811 openbsd2.[89] | openbsd2.[89].*) 10812 shlibpath_overrides_runpath=no 10813 ;; 10814 *) 10815 shlibpath_overrides_runpath=yes 10816 ;; 10817 esac 10818 else 10819 shlibpath_overrides_runpath=yes 10820 fi 10821 ;; 10822 10823os2*) 10824 libname_spec='$name' 10825 shrext_cmds=".dll" 10826 need_lib_prefix=no 10827 library_names_spec='$libname${shared_ext} $libname.a' 10828 dynamic_linker='OS/2 ld.exe' 10829 shlibpath_var=LIBPATH 10830 ;; 10831 10832osf3* | osf4* | osf5*) 10833 version_type=osf 10834 need_lib_prefix=no 10835 need_version=no 10836 soname_spec='${libname}${release}${shared_ext}$major' 10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10838 shlibpath_var=LD_LIBRARY_PATH 10839 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10840 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10841 ;; 10842 10843rdos*) 10844 dynamic_linker=no 10845 ;; 10846 10847solaris*) 10848 version_type=linux # correct to gnu/linux during the next big refactor 10849 need_lib_prefix=no 10850 need_version=no 10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10852 soname_spec='${libname}${release}${shared_ext}$major' 10853 shlibpath_var=LD_LIBRARY_PATH 10854 shlibpath_overrides_runpath=yes 10855 hardcode_into_libs=yes 10856 # ldd complains unless libraries are executable 10857 postinstall_cmds='chmod +x $lib' 10858 ;; 10859 10860sunos4*) 10861 version_type=sunos 10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10864 shlibpath_var=LD_LIBRARY_PATH 10865 shlibpath_overrides_runpath=yes 10866 if test "$with_gnu_ld" = yes; then 10867 need_lib_prefix=no 10868 fi 10869 need_version=yes 10870 ;; 10871 10872sysv4 | sysv4.3*) 10873 version_type=linux # correct to gnu/linux during the next big refactor 10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10875 soname_spec='${libname}${release}${shared_ext}$major' 10876 shlibpath_var=LD_LIBRARY_PATH 10877 case $host_vendor in 10878 sni) 10879 shlibpath_overrides_runpath=no 10880 need_lib_prefix=no 10881 runpath_var=LD_RUN_PATH 10882 ;; 10883 siemens) 10884 need_lib_prefix=no 10885 ;; 10886 motorola) 10887 need_lib_prefix=no 10888 need_version=no 10889 shlibpath_overrides_runpath=no 10890 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10891 ;; 10892 esac 10893 ;; 10894 10895sysv4*MP*) 10896 if test -d /usr/nec ;then 10897 version_type=linux # correct to gnu/linux during the next big refactor 10898 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10899 soname_spec='$libname${shared_ext}.$major' 10900 shlibpath_var=LD_LIBRARY_PATH 10901 fi 10902 ;; 10903 10904sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10905 version_type=freebsd-elf 10906 need_lib_prefix=no 10907 need_version=no 10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10909 soname_spec='${libname}${release}${shared_ext}$major' 10910 shlibpath_var=LD_LIBRARY_PATH 10911 shlibpath_overrides_runpath=yes 10912 hardcode_into_libs=yes 10913 if test "$with_gnu_ld" = yes; then 10914 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10915 else 10916 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10917 case $host_os in 10918 sco3.2v5*) 10919 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10920 ;; 10921 esac 10922 fi 10923 sys_lib_dlsearch_path_spec='/usr/lib' 10924 ;; 10925 10926tpf*) 10927 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10928 version_type=linux # correct to gnu/linux during the next big refactor 10929 need_lib_prefix=no 10930 need_version=no 10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10932 shlibpath_var=LD_LIBRARY_PATH 10933 shlibpath_overrides_runpath=no 10934 hardcode_into_libs=yes 10935 ;; 10936 10937uts4*) 10938 version_type=linux # correct to gnu/linux during the next big refactor 10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10940 soname_spec='${libname}${release}${shared_ext}$major' 10941 shlibpath_var=LD_LIBRARY_PATH 10942 ;; 10943 10944*) 10945 dynamic_linker=no 10946 ;; 10947esac 10948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10949$as_echo "$dynamic_linker" >&6; } 10950test "$dynamic_linker" = no && can_build_shared=no 10951 10952variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10953if test "$GCC" = yes; then 10954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10955fi 10956 10957if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10958 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10959fi 10960if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10961 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10962fi 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11056$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11057hardcode_action= 11058if test -n "$hardcode_libdir_flag_spec" || 11059 test -n "$runpath_var" || 11060 test "X$hardcode_automatic" = "Xyes" ; then 11061 11062 # We can hardcode non-existent directories. 11063 if test "$hardcode_direct" != no && 11064 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11065 # have to relink, otherwise we might link with an installed library 11066 # when we should be linking with a yet-to-be-installed one 11067 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11068 test "$hardcode_minus_L" != no; then 11069 # Linking always hardcodes the temporary library directory. 11070 hardcode_action=relink 11071 else 11072 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11073 hardcode_action=immediate 11074 fi 11075else 11076 # We cannot hardcode anything, or else we can only hardcode existing 11077 # directories. 11078 hardcode_action=unsupported 11079fi 11080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11081$as_echo "$hardcode_action" >&6; } 11082 11083if test "$hardcode_action" = relink || 11084 test "$inherit_rpath" = yes; then 11085 # Fast installation is not supported 11086 enable_fast_install=no 11087elif test "$shlibpath_overrides_runpath" = yes || 11088 test "$enable_shared" = no; then 11089 # Fast installation is not necessary 11090 enable_fast_install=needless 11091fi 11092 11093 11094 11095 11096 11097 11098 if test "x$enable_dlopen" != xyes; then 11099 enable_dlopen=unknown 11100 enable_dlopen_self=unknown 11101 enable_dlopen_self_static=unknown 11102else 11103 lt_cv_dlopen=no 11104 lt_cv_dlopen_libs= 11105 11106 case $host_os in 11107 beos*) 11108 lt_cv_dlopen="load_add_on" 11109 lt_cv_dlopen_libs= 11110 lt_cv_dlopen_self=yes 11111 ;; 11112 11113 mingw* | pw32* | cegcc*) 11114 lt_cv_dlopen="LoadLibrary" 11115 lt_cv_dlopen_libs= 11116 ;; 11117 11118 cygwin*) 11119 lt_cv_dlopen="dlopen" 11120 lt_cv_dlopen_libs= 11121 ;; 11122 11123 darwin*) 11124 # if libdl is installed we need to link against it 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11126$as_echo_n "checking for dlopen in -ldl... " >&6; } 11127if ${ac_cv_lib_dl_dlopen+:} false; then : 11128 $as_echo_n "(cached) " >&6 11129else 11130 ac_check_lib_save_LIBS=$LIBS 11131LIBS="-ldl $LIBS" 11132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11133/* end confdefs.h. */ 11134 11135/* Override any GCC internal prototype to avoid an error. 11136 Use char because int might match the return type of a GCC 11137 builtin and then its argument prototype would still apply. */ 11138#ifdef __cplusplus 11139extern "C" 11140#endif 11141char dlopen (); 11142int 11143main () 11144{ 11145return dlopen (); 11146 ; 11147 return 0; 11148} 11149_ACEOF 11150if ac_fn_c_try_link "$LINENO"; then : 11151 ac_cv_lib_dl_dlopen=yes 11152else 11153 ac_cv_lib_dl_dlopen=no 11154fi 11155rm -f core conftest.err conftest.$ac_objext \ 11156 conftest$ac_exeext conftest.$ac_ext 11157LIBS=$ac_check_lib_save_LIBS 11158fi 11159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11160$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11161if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11163else 11164 11165 lt_cv_dlopen="dyld" 11166 lt_cv_dlopen_libs= 11167 lt_cv_dlopen_self=yes 11168 11169fi 11170 11171 ;; 11172 11173 *) 11174 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11175if test "x$ac_cv_func_shl_load" = xyes; then : 11176 lt_cv_dlopen="shl_load" 11177else 11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11179$as_echo_n "checking for shl_load in -ldld... " >&6; } 11180if ${ac_cv_lib_dld_shl_load+:} false; then : 11181 $as_echo_n "(cached) " >&6 11182else 11183 ac_check_lib_save_LIBS=$LIBS 11184LIBS="-ldld $LIBS" 11185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11186/* end confdefs.h. */ 11187 11188/* Override any GCC internal prototype to avoid an error. 11189 Use char because int might match the return type of a GCC 11190 builtin and then its argument prototype would still apply. */ 11191#ifdef __cplusplus 11192extern "C" 11193#endif 11194char shl_load (); 11195int 11196main () 11197{ 11198return shl_load (); 11199 ; 11200 return 0; 11201} 11202_ACEOF 11203if ac_fn_c_try_link "$LINENO"; then : 11204 ac_cv_lib_dld_shl_load=yes 11205else 11206 ac_cv_lib_dld_shl_load=no 11207fi 11208rm -f core conftest.err conftest.$ac_objext \ 11209 conftest$ac_exeext conftest.$ac_ext 11210LIBS=$ac_check_lib_save_LIBS 11211fi 11212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11213$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11214if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11215 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11216else 11217 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11218if test "x$ac_cv_func_dlopen" = xyes; then : 11219 lt_cv_dlopen="dlopen" 11220else 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11222$as_echo_n "checking for dlopen in -ldl... " >&6; } 11223if ${ac_cv_lib_dl_dlopen+:} false; then : 11224 $as_echo_n "(cached) " >&6 11225else 11226 ac_check_lib_save_LIBS=$LIBS 11227LIBS="-ldl $LIBS" 11228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11229/* end confdefs.h. */ 11230 11231/* Override any GCC internal prototype to avoid an error. 11232 Use char because int might match the return type of a GCC 11233 builtin and then its argument prototype would still apply. */ 11234#ifdef __cplusplus 11235extern "C" 11236#endif 11237char dlopen (); 11238int 11239main () 11240{ 11241return dlopen (); 11242 ; 11243 return 0; 11244} 11245_ACEOF 11246if ac_fn_c_try_link "$LINENO"; then : 11247 ac_cv_lib_dl_dlopen=yes 11248else 11249 ac_cv_lib_dl_dlopen=no 11250fi 11251rm -f core conftest.err conftest.$ac_objext \ 11252 conftest$ac_exeext conftest.$ac_ext 11253LIBS=$ac_check_lib_save_LIBS 11254fi 11255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11256$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11257if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11259else 11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11261$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11262if ${ac_cv_lib_svld_dlopen+:} false; then : 11263 $as_echo_n "(cached) " >&6 11264else 11265 ac_check_lib_save_LIBS=$LIBS 11266LIBS="-lsvld $LIBS" 11267cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11268/* end confdefs.h. */ 11269 11270/* Override any GCC internal prototype to avoid an error. 11271 Use char because int might match the return type of a GCC 11272 builtin and then its argument prototype would still apply. */ 11273#ifdef __cplusplus 11274extern "C" 11275#endif 11276char dlopen (); 11277int 11278main () 11279{ 11280return dlopen (); 11281 ; 11282 return 0; 11283} 11284_ACEOF 11285if ac_fn_c_try_link "$LINENO"; then : 11286 ac_cv_lib_svld_dlopen=yes 11287else 11288 ac_cv_lib_svld_dlopen=no 11289fi 11290rm -f core conftest.err conftest.$ac_objext \ 11291 conftest$ac_exeext conftest.$ac_ext 11292LIBS=$ac_check_lib_save_LIBS 11293fi 11294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11295$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11296if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11297 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11298else 11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11300$as_echo_n "checking for dld_link in -ldld... " >&6; } 11301if ${ac_cv_lib_dld_dld_link+:} false; then : 11302 $as_echo_n "(cached) " >&6 11303else 11304 ac_check_lib_save_LIBS=$LIBS 11305LIBS="-ldld $LIBS" 11306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11307/* end confdefs.h. */ 11308 11309/* Override any GCC internal prototype to avoid an error. 11310 Use char because int might match the return type of a GCC 11311 builtin and then its argument prototype would still apply. */ 11312#ifdef __cplusplus 11313extern "C" 11314#endif 11315char dld_link (); 11316int 11317main () 11318{ 11319return dld_link (); 11320 ; 11321 return 0; 11322} 11323_ACEOF 11324if ac_fn_c_try_link "$LINENO"; then : 11325 ac_cv_lib_dld_dld_link=yes 11326else 11327 ac_cv_lib_dld_dld_link=no 11328fi 11329rm -f core conftest.err conftest.$ac_objext \ 11330 conftest$ac_exeext conftest.$ac_ext 11331LIBS=$ac_check_lib_save_LIBS 11332fi 11333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11334$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11335if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11336 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11337fi 11338 11339 11340fi 11341 11342 11343fi 11344 11345 11346fi 11347 11348 11349fi 11350 11351 11352fi 11353 11354 ;; 11355 esac 11356 11357 if test "x$lt_cv_dlopen" != xno; then 11358 enable_dlopen=yes 11359 else 11360 enable_dlopen=no 11361 fi 11362 11363 case $lt_cv_dlopen in 11364 dlopen) 11365 save_CPPFLAGS="$CPPFLAGS" 11366 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11367 11368 save_LDFLAGS="$LDFLAGS" 11369 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11370 11371 save_LIBS="$LIBS" 11372 LIBS="$lt_cv_dlopen_libs $LIBS" 11373 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11375$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11376if ${lt_cv_dlopen_self+:} false; then : 11377 $as_echo_n "(cached) " >&6 11378else 11379 if test "$cross_compiling" = yes; then : 11380 lt_cv_dlopen_self=cross 11381else 11382 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11383 lt_status=$lt_dlunknown 11384 cat > conftest.$ac_ext <<_LT_EOF 11385#line $LINENO "configure" 11386#include "confdefs.h" 11387 11388#if HAVE_DLFCN_H 11389#include <dlfcn.h> 11390#endif 11391 11392#include <stdio.h> 11393 11394#ifdef RTLD_GLOBAL 11395# define LT_DLGLOBAL RTLD_GLOBAL 11396#else 11397# ifdef DL_GLOBAL 11398# define LT_DLGLOBAL DL_GLOBAL 11399# else 11400# define LT_DLGLOBAL 0 11401# endif 11402#endif 11403 11404/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11405 find out it does not work in some platform. */ 11406#ifndef LT_DLLAZY_OR_NOW 11407# ifdef RTLD_LAZY 11408# define LT_DLLAZY_OR_NOW RTLD_LAZY 11409# else 11410# ifdef DL_LAZY 11411# define LT_DLLAZY_OR_NOW DL_LAZY 11412# else 11413# ifdef RTLD_NOW 11414# define LT_DLLAZY_OR_NOW RTLD_NOW 11415# else 11416# ifdef DL_NOW 11417# define LT_DLLAZY_OR_NOW DL_NOW 11418# else 11419# define LT_DLLAZY_OR_NOW 0 11420# endif 11421# endif 11422# endif 11423# endif 11424#endif 11425 11426/* When -fvisbility=hidden is used, assume the code has been annotated 11427 correspondingly for the symbols needed. */ 11428#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11429int fnord () __attribute__((visibility("default"))); 11430#endif 11431 11432int fnord () { return 42; } 11433int main () 11434{ 11435 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11436 int status = $lt_dlunknown; 11437 11438 if (self) 11439 { 11440 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11441 else 11442 { 11443 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11444 else puts (dlerror ()); 11445 } 11446 /* dlclose (self); */ 11447 } 11448 else 11449 puts (dlerror ()); 11450 11451 return status; 11452} 11453_LT_EOF 11454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11455 (eval $ac_link) 2>&5 11456 ac_status=$? 11457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11458 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11459 (./conftest; exit; ) >&5 2>/dev/null 11460 lt_status=$? 11461 case x$lt_status in 11462 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11463 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11464 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11465 esac 11466 else : 11467 # compilation failed 11468 lt_cv_dlopen_self=no 11469 fi 11470fi 11471rm -fr conftest* 11472 11473 11474fi 11475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11476$as_echo "$lt_cv_dlopen_self" >&6; } 11477 11478 if test "x$lt_cv_dlopen_self" = xyes; then 11479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11481$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11482if ${lt_cv_dlopen_self_static+:} false; then : 11483 $as_echo_n "(cached) " >&6 11484else 11485 if test "$cross_compiling" = yes; then : 11486 lt_cv_dlopen_self_static=cross 11487else 11488 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11489 lt_status=$lt_dlunknown 11490 cat > conftest.$ac_ext <<_LT_EOF 11491#line $LINENO "configure" 11492#include "confdefs.h" 11493 11494#if HAVE_DLFCN_H 11495#include <dlfcn.h> 11496#endif 11497 11498#include <stdio.h> 11499 11500#ifdef RTLD_GLOBAL 11501# define LT_DLGLOBAL RTLD_GLOBAL 11502#else 11503# ifdef DL_GLOBAL 11504# define LT_DLGLOBAL DL_GLOBAL 11505# else 11506# define LT_DLGLOBAL 0 11507# endif 11508#endif 11509 11510/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11511 find out it does not work in some platform. */ 11512#ifndef LT_DLLAZY_OR_NOW 11513# ifdef RTLD_LAZY 11514# define LT_DLLAZY_OR_NOW RTLD_LAZY 11515# else 11516# ifdef DL_LAZY 11517# define LT_DLLAZY_OR_NOW DL_LAZY 11518# else 11519# ifdef RTLD_NOW 11520# define LT_DLLAZY_OR_NOW RTLD_NOW 11521# else 11522# ifdef DL_NOW 11523# define LT_DLLAZY_OR_NOW DL_NOW 11524# else 11525# define LT_DLLAZY_OR_NOW 0 11526# endif 11527# endif 11528# endif 11529# endif 11530#endif 11531 11532/* When -fvisbility=hidden is used, assume the code has been annotated 11533 correspondingly for the symbols needed. */ 11534#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11535int fnord () __attribute__((visibility("default"))); 11536#endif 11537 11538int fnord () { return 42; } 11539int main () 11540{ 11541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11542 int status = $lt_dlunknown; 11543 11544 if (self) 11545 { 11546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11547 else 11548 { 11549 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11550 else puts (dlerror ()); 11551 } 11552 /* dlclose (self); */ 11553 } 11554 else 11555 puts (dlerror ()); 11556 11557 return status; 11558} 11559_LT_EOF 11560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11561 (eval $ac_link) 2>&5 11562 ac_status=$? 11563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11564 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11565 (./conftest; exit; ) >&5 2>/dev/null 11566 lt_status=$? 11567 case x$lt_status in 11568 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11569 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11570 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11571 esac 11572 else : 11573 # compilation failed 11574 lt_cv_dlopen_self_static=no 11575 fi 11576fi 11577rm -fr conftest* 11578 11579 11580fi 11581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11582$as_echo "$lt_cv_dlopen_self_static" >&6; } 11583 fi 11584 11585 CPPFLAGS="$save_CPPFLAGS" 11586 LDFLAGS="$save_LDFLAGS" 11587 LIBS="$save_LIBS" 11588 ;; 11589 esac 11590 11591 case $lt_cv_dlopen_self in 11592 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11593 *) enable_dlopen_self=unknown ;; 11594 esac 11595 11596 case $lt_cv_dlopen_self_static in 11597 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11598 *) enable_dlopen_self_static=unknown ;; 11599 esac 11600fi 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618striplib= 11619old_striplib= 11620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11621$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11622if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11623 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11624 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11626$as_echo "yes" >&6; } 11627else 11628# FIXME - insert some real tests, host_os isn't really good enough 11629 case $host_os in 11630 darwin*) 11631 if test -n "$STRIP" ; then 11632 striplib="$STRIP -x" 11633 old_striplib="$STRIP -S" 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11635$as_echo "yes" >&6; } 11636 else 11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11638$as_echo "no" >&6; } 11639 fi 11640 ;; 11641 *) 11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11643$as_echo "no" >&6; } 11644 ;; 11645 esac 11646fi 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 # Report which library types will actually be built 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11661$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11663$as_echo "$can_build_shared" >&6; } 11664 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11666$as_echo_n "checking whether to build shared libraries... " >&6; } 11667 test "$can_build_shared" = "no" && enable_shared=no 11668 11669 # On AIX, shared libraries and static libraries use the same namespace, and 11670 # are all built from PIC. 11671 case $host_os in 11672 aix3*) 11673 test "$enable_shared" = yes && enable_static=no 11674 if test -n "$RANLIB"; then 11675 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11676 postinstall_cmds='$RANLIB $lib' 11677 fi 11678 ;; 11679 11680 aix[4-9]*) 11681 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11682 test "$enable_shared" = yes && enable_static=no 11683 fi 11684 ;; 11685 esac 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11687$as_echo "$enable_shared" >&6; } 11688 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11690$as_echo_n "checking whether to build static libraries... " >&6; } 11691 # Make sure either enable_shared or enable_static is yes. 11692 test "$enable_shared" = yes || enable_static=yes 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11694$as_echo "$enable_static" >&6; } 11695 11696 11697 11698 11699fi 11700ac_ext=c 11701ac_cpp='$CPP $CPPFLAGS' 11702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11704ac_compiler_gnu=$ac_cv_c_compiler_gnu 11705 11706CC="$lt_save_CC" 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 ac_config_commands="$ac_config_commands libtool" 11723 11724 11725 11726 11727# Only expand once: 11728 11729 11730 11731# Configure options. 11732# Check whether --enable-gcc-warns was given. 11733if test "${enable_gcc_warns+set}" = set; then : 11734 enableval=$enable_gcc_warns; 11735else 11736 enable_gcc_warns=yes 11737fi 11738 11739 11740# Check whether --enable-gcc-more-warns was given. 11741if test "${enable_gcc_more_warns+set}" = set; then : 11742 enableval=$enable_gcc_more_warns; 11743else 11744 enable_gcc_more_warns=no 11745fi 11746 11747 11748 11749# Check whether --with-db-pthread was given. 11750if test "${with_db_pthread+set}" = set; then : 11751 withval=$with_db_pthread; case ${withval} in 11752 yes) 11753$as_echo "#define WITH_DB_PTHREAD 1" >>confdefs.h 11754 ;; 11755 esac 11756fi 11757 11758 11759 11760# Check whether --with-st-pthread was given. 11761if test "${with_st_pthread+set}" = set; then : 11762 withval=$with_st_pthread; case ${withval} in 11763 yes) 11764$as_echo "#define WITH_ST_PTHREAD 1" >>confdefs.h 11765 ;; 11766 esac 11767fi 11768 11769 11770 11771# Check whether --with-mandir-ru was given. 11772if test "${with_mandir_ru+set}" = set; then : 11773 withval=$with_mandir_ru; 11774else 11775 with_mandir_ru=ru.KOI8-R 11776fi 11777 11778 11779# Check whether --enable-autorules was given. 11780if test "${enable_autorules+set}" = set; then : 11781 enableval=$enable_autorules; 11782else 11783 enable_autorules=yes 11784fi 11785 11786 11787# Check whether --enable-rules was given. 11788if test "${enable_rules+set}" = set; then : 11789 enableval=$enable_rules; 11790else 11791 enable_rules=yes 11792fi 11793 11794 11795# Check whether --enable-limits was given. 11796if test "${enable_limits+set}" = set; then : 11797 enableval=$enable_limits; 11798else 11799 enable_limits=yes 11800fi 11801 11802 11803# Check whether --enable-thresholds was given. 11804if test "${enable_thresholds+set}" = set; then : 11805 enableval=$enable_thresholds; 11806else 11807 enable_thresholds=yes 11808fi 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826case ${enale_rules} in 11827no) 11828 case ${enable_autorules} in 11829 no) as_fn_error $? "do not remove support for static and dynamic rules" "$LINENO" 5 ;; 11830 esac ;; 11831esac 11832 11833case ${enable_rules} in 11834yes) 11835$as_echo "#define WITH_RULES 1" >>confdefs.h 11836 ;; 11837esac 11838 11839case ${enable_autorules} in 11840yes) 11841$as_echo "#define WITH_AUTORULES 1" >>confdefs.h 11842 ;; 11843esac 11844 11845case ${enable_limits} in 11846yes) 11847$as_echo "#define WITH_LIMITS 1" >>confdefs.h 11848 ;; 11849esac 11850 11851case ${enable_thresholds} in 11852yes) 11853$as_echo "#define WITH_THRESHOLDS 1" >>confdefs.h 11854 ;; 11855esac 11856 11857# Checks for libraries. 11858 11859# Checks for header files. 11860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 11861$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 11862if ${ac_cv_header_stdbool_h+:} false; then : 11863 $as_echo_n "(cached) " >&6 11864else 11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11866/* end confdefs.h. */ 11867 11868 #include <stdbool.h> 11869 #ifndef bool 11870 "error: bool is not defined" 11871 #endif 11872 #ifndef false 11873 "error: false is not defined" 11874 #endif 11875 #if false 11876 "error: false is not 0" 11877 #endif 11878 #ifndef true 11879 "error: true is not defined" 11880 #endif 11881 #if true != 1 11882 "error: true is not 1" 11883 #endif 11884 #ifndef __bool_true_false_are_defined 11885 "error: __bool_true_false_are_defined is not defined" 11886 #endif 11887 11888 struct s { _Bool s: 1; _Bool t; } s; 11889 11890 char a[true == 1 ? 1 : -1]; 11891 char b[false == 0 ? 1 : -1]; 11892 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 11893 char d[(bool) 0.5 == true ? 1 : -1]; 11894 /* See body of main program for 'e'. */ 11895 char f[(_Bool) 0.0 == false ? 1 : -1]; 11896 char g[true]; 11897 char h[sizeof (_Bool)]; 11898 char i[sizeof s.t]; 11899 enum { j = false, k = true, l = false * true, m = true * 256 }; 11900 /* The following fails for 11901 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 11902 _Bool n[m]; 11903 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 11904 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 11905 /* Catch a bug in an HP-UX C compiler. See 11906 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 11907 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 11908 */ 11909 _Bool q = true; 11910 _Bool *pq = &q; 11911 11912int 11913main () 11914{ 11915 11916 bool e = &s; 11917 *pq |= q; 11918 *pq |= ! q; 11919 /* Refer to every declared value, to avoid compiler optimizations. */ 11920 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 11921 + !m + !n + !o + !p + !q + !pq); 11922 11923 ; 11924 return 0; 11925} 11926_ACEOF 11927if ac_fn_c_try_compile "$LINENO"; then : 11928 ac_cv_header_stdbool_h=yes 11929else 11930 ac_cv_header_stdbool_h=no 11931fi 11932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11933fi 11934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 11935$as_echo "$ac_cv_header_stdbool_h" >&6; } 11936 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 11937if test "x$ac_cv_type__Bool" = xyes; then : 11938 11939cat >>confdefs.h <<_ACEOF 11940#define HAVE__BOOL 1 11941_ACEOF 11942 11943 11944fi 11945 11946 11947if test $ac_cv_header_stdbool_h = yes; then 11948 11949$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 11950 11951fi 11952 11953 11954# Checks for typedefs, structures, and compiler characteristics. 11955ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 11956case $ac_cv_c_uint8_t in #( 11957 no|yes) ;; #( 11958 *) 11959 11960$as_echo "#define _UINT8_T 1" >>confdefs.h 11961 11962 11963cat >>confdefs.h <<_ACEOF 11964#define uint8_t $ac_cv_c_uint8_t 11965_ACEOF 11966;; 11967 esac 11968 11969ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 11970case $ac_cv_c_uint16_t in #( 11971 no|yes) ;; #( 11972 *) 11973 11974 11975cat >>confdefs.h <<_ACEOF 11976#define uint16_t $ac_cv_c_uint16_t 11977_ACEOF 11978;; 11979 esac 11980 11981ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 11982case $ac_cv_c_uint32_t in #( 11983 no|yes) ;; #( 11984 *) 11985 11986$as_echo "#define _UINT32_T 1" >>confdefs.h 11987 11988 11989cat >>confdefs.h <<_ACEOF 11990#define uint32_t $ac_cv_c_uint32_t 11991_ACEOF 11992;; 11993 esac 11994 11995ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 11996case $ac_cv_c_uint64_t in #( 11997 no|yes) ;; #( 11998 *) 11999 12000$as_echo "#define _UINT64_T 1" >>confdefs.h 12001 12002 12003cat >>confdefs.h <<_ACEOF 12004#define uint64_t $ac_cv_c_uint64_t 12005_ACEOF 12006;; 12007 esac 12008 12009 12010# The cast to long int works around a bug in the HP C Compiler 12011# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12012# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12013# This bug is HP SR number 8606223364. 12014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 12015$as_echo_n "checking size of long... " >&6; } 12016if ${ac_cv_sizeof_long+:} false; then : 12017 $as_echo_n "(cached) " >&6 12018else 12019 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 12020 12021else 12022 if test "$ac_cv_type_long" = yes; then 12023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12025as_fn_error 77 "cannot compute sizeof (long) 12026See \`config.log' for more details" "$LINENO" 5; } 12027 else 12028 ac_cv_sizeof_long=0 12029 fi 12030fi 12031 12032fi 12033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 12034$as_echo "$ac_cv_sizeof_long" >&6; } 12035 12036 12037 12038cat >>confdefs.h <<_ACEOF 12039#define SIZEOF_LONG $ac_cv_sizeof_long 12040_ACEOF 12041 12042 12043 12044 12045ac_c_werror_flag=yes 12046 12047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking attribute \"format\"" >&5 12048$as_echo_n "checking attribute \"format\"... " >&6; } 12049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12050/* end confdefs.h. */ 12051 12052#include <stdarg.h> 12053#include <stdio.h> 12054 12055void bar(const char *, ...) __attribute__ ((format (printf, 1, 2))); 12056 12057void 12058bar(const char *format, ...) 12059{ 12060 va_list ap; 12061 va_start(ap, format); 12062 vprintf(format, ap); 12063 va_end(ap); 12064} 12065 12066_ACEOF 12067if ac_fn_c_try_compile "$LINENO"; then : 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12069$as_echo "yes" >&6; }; 12070$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h 12071 12072else 12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12074$as_echo "no" >&6; } 12075fi 12076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12077 12078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking attribute \"noreturn\"" >&5 12079$as_echo_n "checking attribute \"noreturn\"... " >&6; } 12080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12081/* end confdefs.h. */ 12082 12083#include <stdlib.h> 12084 12085void bar(void) __attribute__ ((noreturn)); 12086 12087void 12088bar(void) 12089{ 12090 exit(0); 12091} 12092 12093_ACEOF 12094if ac_fn_c_try_compile "$LINENO"; then : 12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12096$as_echo "yes" >&6; }; 12097$as_echo "#define ATTR_NORETURN __attribute__ ((noreturn))" >>confdefs.h 12098 12099else 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12101$as_echo "no" >&6; }; 12102$as_echo "#define ATTR_NORETURN /**/" >>confdefs.h 12103 12104fi 12105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12106 12107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking attribute \"packed\"" >&5 12108$as_echo_n "checking attribute \"packed\"... " >&6; } 12109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12110/* end confdefs.h. */ 12111 12112struct bar { 12113 int x; 12114} __attribute__ ((packed)); 12115 12116_ACEOF 12117if ac_fn_c_try_compile "$LINENO"; then : 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12119$as_echo "yes" >&6; }; my_cv_attr_packed=yes; 12120$as_echo "#define ATTR_PACKED __attribute__ ((packed))" >>confdefs.h 12121 12122else 12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12124$as_echo "no" >&6; }; my_cv_attr_packed=no 12125fi 12126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12127 12128case ${my_cv_attr_packed} in 12129no) 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pragma pack" >&5 12131$as_echo_n "checking pragma pack... " >&6; } 12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12133/* end confdefs.h. */ 12134 12135#pragma pack(push, 1) 12136struct bar { 12137 int x; 12138}; 12139#pragma pack(pop) 12140 12141_ACEOF 12142if ac_fn_c_try_compile "$LINENO"; then : 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12144$as_echo "yes" >&6; }; 12145$as_echo "#define USE_PRAGMA_PACK_PUSH_POP 1" >>confdefs.h 12146 12147else 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12149$as_echo "no" >&6; } 12150fi 12151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; 12152esac 12153 12154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking attribute \"unused\"" >&5 12155$as_echo_n "checking attribute \"unused\"... " >&6; } 12156cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12157/* end confdefs.h. */ 12158 12159int x __attribute__((unused)); 12160 12161int 12162bar(int y __attribute__((unused))) 12163{ 12164 return (0); 12165} 12166 12167_ACEOF 12168if ac_fn_c_try_compile "$LINENO"; then : 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12170$as_echo "yes" >&6; }; 12171$as_echo "#define ATTR_UNUSED __attribute__ ((unused))" >>confdefs.h 12172 12173else 12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12175$as_echo "no" >&6; }; 12176$as_echo "#define ATTR_UNUSED /**/" >>confdefs.h 12177 12178fi 12179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12180 12181ac_c_werror_flag= 12182 12183# Some systems incorrectly place macro variables in <stdint.h> and 12184# <inttypes.h>, so it is better to include both of them. 12185 12186ac_fn_c_check_decl "$LINENO" "PRIu64" "ac_cv_have_decl_PRIu64" " 12187#ifdef HAVE_STDINT_H 12188# include <stdint.h> 12189#endif 12190#ifdef HAVE_INTTYPES_H 12191# include <inttypes.h> 12192#endif 12193 12194" 12195if test "x$ac_cv_have_decl_PRIu64" = xyes; then : 12196 ac_have_decl=1 12197else 12198 ac_have_decl=0 12199fi 12200 12201cat >>confdefs.h <<_ACEOF 12202#define HAVE_DECL_PRIU64 $ac_have_decl 12203_ACEOF 12204if test $ac_have_decl = 1; then : 12205 have_PRIu64=yes 12206else 12207 have_PRIu64=no 12208fi 12209 12210 12211 12212 12213case ${have_PRIu64} in 12214no) 12215 case ${ac_cv_sizeof_long} in 12216 4) 12217 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf accepts uint64_t for %llu" >&5 12219$as_echo_n "checking whether printf accepts uint64_t for %llu... " >&6; } 12220 if test "$cross_compiling" = yes; then : 12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12222$as_echo "no" >&6; }; my_cv_printf_uint64_llu=no 12223else 12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12225/* end confdefs.h. */ 12226 12227#include <stdio.h> 12228#include <string.h> 12229 12230#ifdef HAVE_STDINT_H 12231# include <stdint.h> 12232#endif 12233#ifdef HAVE_INTTYPES_H 12234# include <inttypes.h> 12235#endif 12236 12237#ifndef UINT64_MAX 12238# ifdef UINT64_C 12239# define UINT64_MAX UINT64_C(0xffffffffffffffff) 12240# else 12241# define UINT64_MAX 0xffffffffffffffffULL 12242# endif 12243#endif 12244 12245int 12246main(void) 12247{ 12248 char buf[21]; 12249 12250 if (snprintf(buf, sizeof(buf), "%llu", UINT64_MAX) != 20) 12251 return (1); 12252 return (strcmp(buf, "18446744073709551615") == 0 ? 0 : 1); 12253} 12254 12255_ACEOF 12256if ac_fn_c_try_run "$LINENO"; then : 12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12258$as_echo "yes" >&6; }; my_cv_printf_uint64_llu=yes 12259else 12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12261$as_echo "no" >&6; }; my_cv_printf_uint64_llu=no 12262fi 12263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12264 conftest.$ac_objext conftest.beam conftest.$ac_ext 12265fi 12266 12267 case ${my_cv_printf_uint64_llu} in 12268 yes) 12269 12270$as_echo "#define PRIu64 \"llu\"" >>confdefs.h 12271 ;; 12272 no) 12273 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf accepts uint64_t for %qu" >&5 12275$as_echo_n "checking whether printf accepts uint64_t for %qu... " >&6; } 12276 if test "$cross_compiling" = yes; then : 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12278$as_echo "no" >&6; }; my_cv_printf_uint64_qu=no 12279else 12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12281/* end confdefs.h. */ 12282 12283#include <stdio.h> 12284#include <string.h> 12285 12286#ifdef HAVE_STDINT_H 12287# include <stdint.h> 12288#endif 12289#ifdef HAVE_INTTYPES_H 12290# include <inttypes.h> 12291#endif 12292 12293#ifndef UINT64_MAX 12294# ifdef UINT64_C 12295# define UINT64_MAX UINT64_C(0xffffffffffffffff) 12296# else 12297# define UINT64_MAX 0xffffffffffffffffULL 12298# endif 12299#endif 12300 12301int 12302main(void) 12303{ 12304 char buf[21]; 12305 12306 if (snprintf(buf, sizeof(buf), "%qu", UINT64_MAX) != 20) 12307 return (1); 12308 return (strcmp(buf, "18446744073709551615") == 0 ? 0 : 1); 12309} 12310 12311_ACEOF 12312if ac_fn_c_try_run "$LINENO"; then : 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12314$as_echo "yes" >&6; }; my_cv_printf_uint64_qu=yes 12315else 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12317$as_echo "no" >&6; }; my_cv_printf_uint64_qu=no 12318fi 12319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12320 conftest.$ac_objext conftest.beam conftest.$ac_ext 12321fi 12322 12323 case ${my_cv_printf_uint64_qu} in 12324 yes) 12325$as_echo "#define PRIu64 \"qu\"" >>confdefs.h 12326 ;; 12327 no) as_fn_error $? "could not find good printf conversion specifier for uint64_t" "$LINENO" 5 ;; 12328 esac ;; 12329 esac ;; 12330 *) 12331 12332$as_echo "#define PRIu64 \"lu\"" >>confdefs.h 12333 ;; 12334 esac ;; 12335esac 12336 12337ac_fn_c_check_decl "$LINENO" "SCNu64" "ac_cv_have_decl_SCNu64" " 12338#ifdef HAVE_STDINT_H 12339# include <stdint.h> 12340#endif 12341#ifdef HAVE_INTTYPES_H 12342# include <inttypes.h> 12343#endif 12344 12345" 12346if test "x$ac_cv_have_decl_SCNu64" = xyes; then : 12347 ac_have_decl=1 12348else 12349 ac_have_decl=0 12350fi 12351 12352cat >>confdefs.h <<_ACEOF 12353#define HAVE_DECL_SCNU64 $ac_have_decl 12354_ACEOF 12355if test $ac_have_decl = 1; then : 12356 have_SCNu64=yes 12357else 12358 have_SCNu64=no 12359fi 12360 12361 12362 12363 12364case ${have_SCNu64} in 12365no) 12366 case ${ac_cv_sizeof_long} in 12367 4) 12368 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether scanf accepts uint64_t for %llu" >&5 12370$as_echo_n "checking whether scanf accepts uint64_t for %llu... " >&6; } 12371 if test "$cross_compiling" = yes; then : 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12373$as_echo "no" >&6; }; my_cv_scanf_uint64_llu=no 12374else 12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12376/* end confdefs.h. */ 12377 12378#include <stdio.h> 12379 12380#ifdef HAVE_STDINT_H 12381# include <stdint.h> 12382#endif 12383#ifdef HAVE_INTTYPES_H 12384# include <inttypes.h> 12385#endif 12386 12387#ifndef UINT64_MAX 12388# ifdef UINT64_C 12389# define UINT64_MAX UINT64_C(0xffffffffffffffff) 12390# else 12391# define UINT64_MAX 0xffffffffffffffffULL 12392# endif 12393#endif 12394 12395int 12396main(void) 12397{ 12398 uint64_t a; 12399 12400 if (sscanf("18446744073709551615", "%llu", &a) != 1) 12401 return (1); 12402 return (a == UINT64_MAX ? 0 : 1); 12403} 12404 12405_ACEOF 12406if ac_fn_c_try_run "$LINENO"; then : 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12408$as_echo "yes" >&6; }; my_cv_scanf_uint64_llu=yes 12409else 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12411$as_echo "no" >&6; }; my_cv_scanf_uint64_llu=no 12412fi 12413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12414 conftest.$ac_objext conftest.beam conftest.$ac_ext 12415fi 12416 12417 case ${my_cv_scanf_uint64_llu} in 12418 yes) 12419 12420$as_echo "#define SCNu64 \"llu\"" >>confdefs.h 12421 ;; 12422 no) 12423 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether scanf accepts uint64_t for %qu" >&5 12425$as_echo_n "checking whether scanf accepts uint64_t for %qu... " >&6; } 12426 if test "$cross_compiling" = yes; then : 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12428$as_echo "no" >&6; }; my_cv_scanf_uint64_qu=no 12429else 12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12431/* end confdefs.h. */ 12432 12433#include <stdio.h> 12434 12435#ifdef HAVE_STDINT_H 12436# include <stdint.h> 12437#endif 12438#ifdef HAVE_INTTYPES_H 12439# include <inttypes.h> 12440#endif 12441 12442#ifndef UINT64_MAX 12443# ifdef UINT64_C 12444# define UINT64_MAX UINT64_C(0xffffffffffffffff) 12445# else 12446# define UINT64_MAX 0xffffffffffffffffULL 12447# endif 12448#endif 12449 12450int 12451main(void) 12452{ 12453 uint64_t a; 12454 12455 if (sscanf("18446744073709551615", "%qu", &a) != 1) 12456 return (1); 12457 return (a == UINT64_MAX ? 0 : 1); 12458} 12459 12460_ACEOF 12461if ac_fn_c_try_run "$LINENO"; then : 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12463$as_echo "yes" >&6; }; my_cv_scanf_uint64_qu=yes 12464else 12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12466$as_echo "no" >&6; }; my_cv_scanf_uint64_qu=no 12467fi 12468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12469 conftest.$ac_objext conftest.beam conftest.$ac_ext 12470fi 12471 12472 case ${my_cv_scanf_uint64_qu} in 12473 yes) 12474$as_echo "#define SCNu64 \"qu\"" >>confdefs.h 12475 ;; 12476 no) as_fn_error $? "could not find good scanf conversion specifier for uint64_t" "$LINENO" 5 ;; 12477 esac ;; 12478 esac ;; 12479 *) 12480 12481$as_echo "#define SCNu64 \"lu\"" >>confdefs.h 12482 ;; 12483 esac ;; 12484esac 12485 12486# Checks for library functions. 12487 12488# Finish configuration. 12489if test "${GCC}" = "yes" -a "${enable_gcc_warns}" = "yes"; then 12490 CFLAGS="${CFLAGS} -Wall -Wformat -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wshadow -Wstrict-prototypes -Wswitch -Wunused" 12491 case ${enable_gcc_more_warns} in 12492 yes) CFLAGS="${CFLAGS} -W -Wcast-align -Wcast-qual -Wredundant-decls -Wwrite-strings" ;; 12493 esac 12494fi 12495 12496 12497 12498 12499 12500 12501cat >confcache <<\_ACEOF 12502# This file is a shell script that caches the results of configure 12503# tests run on this system so they can be shared between configure 12504# scripts and configure runs, see configure's option --config-cache. 12505# It is not useful on other systems. If it contains results you don't 12506# want to keep, you may remove or edit it. 12507# 12508# config.status only pays attention to the cache file if you give it 12509# the --recheck option to rerun configure. 12510# 12511# `ac_cv_env_foo' variables (set or unset) will be overridden when 12512# loading this file, other *unset* `ac_cv_foo' will be assigned the 12513# following values. 12514 12515_ACEOF 12516 12517# The following way of writing the cache mishandles newlines in values, 12518# but we know of no workaround that is simple, portable, and efficient. 12519# So, we kill variables containing newlines. 12520# Ultrix sh set writes to stderr and can't be redirected directly, 12521# and sets the high bit in the cache file unless we assign to the vars. 12522( 12523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12524 eval ac_val=\$$ac_var 12525 case $ac_val in #( 12526 *${as_nl}*) 12527 case $ac_var in #( 12528 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12529$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12530 esac 12531 case $ac_var in #( 12532 _ | IFS | as_nl) ;; #( 12533 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12534 *) { eval $ac_var=; unset $ac_var;} ;; 12535 esac ;; 12536 esac 12537 done 12538 12539 (set) 2>&1 | 12540 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12541 *${as_nl}ac_space=\ *) 12542 # `set' does not quote correctly, so add quotes: double-quote 12543 # substitution turns \\\\ into \\, and sed turns \\ into \. 12544 sed -n \ 12545 "s/'/'\\\\''/g; 12546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12547 ;; #( 12548 *) 12549 # `set' quotes correctly as required by POSIX, so do not add quotes. 12550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12551 ;; 12552 esac | 12553 sort 12554) | 12555 sed ' 12556 /^ac_cv_env_/b end 12557 t clear 12558 :clear 12559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12560 t end 12561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12562 :end' >>confcache 12563if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12564 if test -w "$cache_file"; then 12565 if test "x$cache_file" != "x/dev/null"; then 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12567$as_echo "$as_me: updating cache $cache_file" >&6;} 12568 if test ! -f "$cache_file" || test -h "$cache_file"; then 12569 cat confcache >"$cache_file" 12570 else 12571 case $cache_file in #( 12572 */* | ?:*) 12573 mv -f confcache "$cache_file"$$ && 12574 mv -f "$cache_file"$$ "$cache_file" ;; #( 12575 *) 12576 mv -f confcache "$cache_file" ;; 12577 esac 12578 fi 12579 fi 12580 else 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12582$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12583 fi 12584fi 12585rm -f confcache 12586 12587test "x$prefix" = xNONE && prefix=$ac_default_prefix 12588# Let make expand exec_prefix. 12589test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12590 12591DEFS=-DHAVE_CONFIG_H 12592 12593ac_libobjs= 12594ac_ltlibobjs= 12595U= 12596for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12597 # 1. Remove the extension, and $U if already installed. 12598 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12599 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12600 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12601 # will be set to the directory where LIBOBJS objects are built. 12602 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12603 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12604done 12605LIBOBJS=$ac_libobjs 12606 12607LTLIBOBJS=$ac_ltlibobjs 12608 12609 12610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12611$as_echo_n "checking that generated files are newer than configure... " >&6; } 12612 if test -n "$am_sleep_pid"; then 12613 # Hide warnings about reused PIDs. 12614 wait $am_sleep_pid 2>/dev/null 12615 fi 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12617$as_echo "done" >&6; } 12618 if test -n "$EXEEXT"; then 12619 am__EXEEXT_TRUE= 12620 am__EXEEXT_FALSE='#' 12621else 12622 am__EXEEXT_TRUE='#' 12623 am__EXEEXT_FALSE= 12624fi 12625 12626if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12627 as_fn_error $? "conditional \"AMDEP\" was never defined. 12628Usually this means the macro was only invoked conditionally." "$LINENO" 5 12629fi 12630if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12631 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12632Usually this means the macro was only invoked conditionally." "$LINENO" 5 12633fi 12634 12635: "${CONFIG_STATUS=./config.status}" 12636ac_write_fail=0 12637ac_clean_files_save=$ac_clean_files 12638ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12639{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12640$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12641as_write_fail=0 12642cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12643#! $SHELL 12644# Generated by $as_me. 12645# Run this file to recreate the current configuration. 12646# Compiler output produced by configure, useful for debugging 12647# configure, is in config.log if it exists. 12648 12649debug=false 12650ac_cs_recheck=false 12651ac_cs_silent=false 12652 12653SHELL=\${CONFIG_SHELL-$SHELL} 12654export SHELL 12655_ASEOF 12656cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12657## -------------------- ## 12658## M4sh Initialization. ## 12659## -------------------- ## 12660 12661# Be more Bourne compatible 12662DUALCASE=1; export DUALCASE # for MKS sh 12663if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12664 emulate sh 12665 NULLCMD=: 12666 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12667 # is contrary to our usage. Disable this feature. 12668 alias -g '${1+"$@"}'='"$@"' 12669 setopt NO_GLOB_SUBST 12670else 12671 case `(set -o) 2>/dev/null` in #( 12672 *posix*) : 12673 set -o posix ;; #( 12674 *) : 12675 ;; 12676esac 12677fi 12678 12679 12680as_nl=' 12681' 12682export as_nl 12683# Printing a long string crashes Solaris 7 /usr/bin/printf. 12684as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12685as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12686as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12687# Prefer a ksh shell builtin over an external printf program on Solaris, 12688# but without wasting forks for bash or zsh. 12689if test -z "$BASH_VERSION$ZSH_VERSION" \ 12690 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12691 as_echo='print -r --' 12692 as_echo_n='print -rn --' 12693elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12694 as_echo='printf %s\n' 12695 as_echo_n='printf %s' 12696else 12697 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12698 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12699 as_echo_n='/usr/ucb/echo -n' 12700 else 12701 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12702 as_echo_n_body='eval 12703 arg=$1; 12704 case $arg in #( 12705 *"$as_nl"*) 12706 expr "X$arg" : "X\\(.*\\)$as_nl"; 12707 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12708 esac; 12709 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12710 ' 12711 export as_echo_n_body 12712 as_echo_n='sh -c $as_echo_n_body as_echo' 12713 fi 12714 export as_echo_body 12715 as_echo='sh -c $as_echo_body as_echo' 12716fi 12717 12718# The user is always right. 12719if test "${PATH_SEPARATOR+set}" != set; then 12720 PATH_SEPARATOR=: 12721 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12722 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12723 PATH_SEPARATOR=';' 12724 } 12725fi 12726 12727 12728# IFS 12729# We need space, tab and new line, in precisely that order. Quoting is 12730# there to prevent editors from complaining about space-tab. 12731# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12732# splitting by setting IFS to empty value.) 12733IFS=" "" $as_nl" 12734 12735# Find who we are. Look in the path if we contain no directory separator. 12736as_myself= 12737case $0 in #(( 12738 *[\\/]* ) as_myself=$0 ;; 12739 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12740for as_dir in $PATH 12741do 12742 IFS=$as_save_IFS 12743 test -z "$as_dir" && as_dir=. 12744 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12745 done 12746IFS=$as_save_IFS 12747 12748 ;; 12749esac 12750# We did not find ourselves, most probably we were run as `sh COMMAND' 12751# in which case we are not to be found in the path. 12752if test "x$as_myself" = x; then 12753 as_myself=$0 12754fi 12755if test ! -f "$as_myself"; then 12756 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12757 exit 1 12758fi 12759 12760# Unset variables that we do not need and which cause bugs (e.g. in 12761# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12762# suppresses any "Segmentation fault" message there. '((' could 12763# trigger a bug in pdksh 5.2.14. 12764for as_var in BASH_ENV ENV MAIL MAILPATH 12765do eval test x\${$as_var+set} = xset \ 12766 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12767done 12768PS1='$ ' 12769PS2='> ' 12770PS4='+ ' 12771 12772# NLS nuisances. 12773LC_ALL=C 12774export LC_ALL 12775LANGUAGE=C 12776export LANGUAGE 12777 12778# CDPATH. 12779(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12780 12781 12782# as_fn_error STATUS ERROR [LINENO LOG_FD] 12783# ---------------------------------------- 12784# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12785# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12786# script with STATUS, using 1 if that was 0. 12787as_fn_error () 12788{ 12789 as_status=$1; test $as_status -eq 0 && as_status=1 12790 if test "$4"; then 12791 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12792 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12793 fi 12794 $as_echo "$as_me: error: $2" >&2 12795 as_fn_exit $as_status 12796} # as_fn_error 12797 12798 12799# as_fn_set_status STATUS 12800# ----------------------- 12801# Set $? to STATUS, without forking. 12802as_fn_set_status () 12803{ 12804 return $1 12805} # as_fn_set_status 12806 12807# as_fn_exit STATUS 12808# ----------------- 12809# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12810as_fn_exit () 12811{ 12812 set +e 12813 as_fn_set_status $1 12814 exit $1 12815} # as_fn_exit 12816 12817# as_fn_unset VAR 12818# --------------- 12819# Portably unset VAR. 12820as_fn_unset () 12821{ 12822 { eval $1=; unset $1;} 12823} 12824as_unset=as_fn_unset 12825# as_fn_append VAR VALUE 12826# ---------------------- 12827# Append the text in VALUE to the end of the definition contained in VAR. Take 12828# advantage of any shell optimizations that allow amortized linear growth over 12829# repeated appends, instead of the typical quadratic growth present in naive 12830# implementations. 12831if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12832 eval 'as_fn_append () 12833 { 12834 eval $1+=\$2 12835 }' 12836else 12837 as_fn_append () 12838 { 12839 eval $1=\$$1\$2 12840 } 12841fi # as_fn_append 12842 12843# as_fn_arith ARG... 12844# ------------------ 12845# Perform arithmetic evaluation on the ARGs, and store the result in the 12846# global $as_val. Take advantage of shells that can avoid forks. The arguments 12847# must be portable across $(()) and expr. 12848if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12849 eval 'as_fn_arith () 12850 { 12851 as_val=$(( $* )) 12852 }' 12853else 12854 as_fn_arith () 12855 { 12856 as_val=`expr "$@" || test $? -eq 1` 12857 } 12858fi # as_fn_arith 12859 12860 12861if expr a : '\(a\)' >/dev/null 2>&1 && 12862 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12863 as_expr=expr 12864else 12865 as_expr=false 12866fi 12867 12868if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12869 as_basename=basename 12870else 12871 as_basename=false 12872fi 12873 12874if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12875 as_dirname=dirname 12876else 12877 as_dirname=false 12878fi 12879 12880as_me=`$as_basename -- "$0" || 12881$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12882 X"$0" : 'X\(//\)$' \| \ 12883 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12884$as_echo X/"$0" | 12885 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12886 s//\1/ 12887 q 12888 } 12889 /^X\/\(\/\/\)$/{ 12890 s//\1/ 12891 q 12892 } 12893 /^X\/\(\/\).*/{ 12894 s//\1/ 12895 q 12896 } 12897 s/.*/./; q'` 12898 12899# Avoid depending upon Character Ranges. 12900as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12901as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12902as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12903as_cr_digits='0123456789' 12904as_cr_alnum=$as_cr_Letters$as_cr_digits 12905 12906ECHO_C= ECHO_N= ECHO_T= 12907case `echo -n x` in #((((( 12908-n*) 12909 case `echo 'xy\c'` in 12910 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12911 xy) ECHO_C='\c';; 12912 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12913 ECHO_T=' ';; 12914 esac;; 12915*) 12916 ECHO_N='-n';; 12917esac 12918 12919rm -f conf$$ conf$$.exe conf$$.file 12920if test -d conf$$.dir; then 12921 rm -f conf$$.dir/conf$$.file 12922else 12923 rm -f conf$$.dir 12924 mkdir conf$$.dir 2>/dev/null 12925fi 12926if (echo >conf$$.file) 2>/dev/null; then 12927 if ln -s conf$$.file conf$$ 2>/dev/null; then 12928 as_ln_s='ln -s' 12929 # ... but there are two gotchas: 12930 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12931 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12932 # In both cases, we have to default to `cp -pR'. 12933 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12934 as_ln_s='cp -pR' 12935 elif ln conf$$.file conf$$ 2>/dev/null; then 12936 as_ln_s=ln 12937 else 12938 as_ln_s='cp -pR' 12939 fi 12940else 12941 as_ln_s='cp -pR' 12942fi 12943rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12944rmdir conf$$.dir 2>/dev/null 12945 12946 12947# as_fn_mkdir_p 12948# ------------- 12949# Create "$as_dir" as a directory, including parents if necessary. 12950as_fn_mkdir_p () 12951{ 12952 12953 case $as_dir in #( 12954 -*) as_dir=./$as_dir;; 12955 esac 12956 test -d "$as_dir" || eval $as_mkdir_p || { 12957 as_dirs= 12958 while :; do 12959 case $as_dir in #( 12960 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12961 *) as_qdir=$as_dir;; 12962 esac 12963 as_dirs="'$as_qdir' $as_dirs" 12964 as_dir=`$as_dirname -- "$as_dir" || 12965$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12966 X"$as_dir" : 'X\(//\)[^/]' \| \ 12967 X"$as_dir" : 'X\(//\)$' \| \ 12968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12969$as_echo X"$as_dir" | 12970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12971 s//\1/ 12972 q 12973 } 12974 /^X\(\/\/\)[^/].*/{ 12975 s//\1/ 12976 q 12977 } 12978 /^X\(\/\/\)$/{ 12979 s//\1/ 12980 q 12981 } 12982 /^X\(\/\).*/{ 12983 s//\1/ 12984 q 12985 } 12986 s/.*/./; q'` 12987 test -d "$as_dir" && break 12988 done 12989 test -z "$as_dirs" || eval "mkdir $as_dirs" 12990 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12991 12992 12993} # as_fn_mkdir_p 12994if mkdir -p . 2>/dev/null; then 12995 as_mkdir_p='mkdir -p "$as_dir"' 12996else 12997 test -d ./-p && rmdir ./-p 12998 as_mkdir_p=false 12999fi 13000 13001 13002# as_fn_executable_p FILE 13003# ----------------------- 13004# Test if FILE is an executable regular file. 13005as_fn_executable_p () 13006{ 13007 test -f "$1" && test -x "$1" 13008} # as_fn_executable_p 13009as_test_x='test -x' 13010as_executable_p=as_fn_executable_p 13011 13012# Sed expression to map a string onto a valid CPP name. 13013as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13014 13015# Sed expression to map a string onto a valid variable name. 13016as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13017 13018 13019exec 6>&1 13020## ----------------------------------- ## 13021## Main body of $CONFIG_STATUS script. ## 13022## ----------------------------------- ## 13023_ASEOF 13024test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13025 13026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13027# Save the log message, to keep $0 and so on meaningful, and to 13028# report actual input values of CONFIG_FILES etc. instead of their 13029# values after options handling. 13030ac_log=" 13031This file was extended by ipa_sdb $as_me 1.1.1, which was 13032generated by GNU Autoconf 2.69. Invocation command line was 13033 13034 CONFIG_FILES = $CONFIG_FILES 13035 CONFIG_HEADERS = $CONFIG_HEADERS 13036 CONFIG_LINKS = $CONFIG_LINKS 13037 CONFIG_COMMANDS = $CONFIG_COMMANDS 13038 $ $0 $@ 13039 13040on `(hostname || uname -n) 2>/dev/null | sed 1q` 13041" 13042 13043_ACEOF 13044 13045case $ac_config_files in *" 13046"*) set x $ac_config_files; shift; ac_config_files=$*;; 13047esac 13048 13049case $ac_config_headers in *" 13050"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13051esac 13052 13053 13054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13055# Files that config.status was made for. 13056config_files="$ac_config_files" 13057config_headers="$ac_config_headers" 13058config_commands="$ac_config_commands" 13059 13060_ACEOF 13061 13062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13063ac_cs_usage="\ 13064\`$as_me' instantiates files and other configuration actions 13065from templates according to the current configuration. Unless the files 13066and actions are specified as TAGs, all are instantiated by default. 13067 13068Usage: $0 [OPTION]... [TAG]... 13069 13070 -h, --help print this help, then exit 13071 -V, --version print version number and configuration settings, then exit 13072 --config print configuration, then exit 13073 -q, --quiet, --silent 13074 do not print progress messages 13075 -d, --debug don't remove temporary files 13076 --recheck update $as_me by reconfiguring in the same conditions 13077 --file=FILE[:TEMPLATE] 13078 instantiate the configuration file FILE 13079 --header=FILE[:TEMPLATE] 13080 instantiate the configuration header FILE 13081 13082Configuration files: 13083$config_files 13084 13085Configuration headers: 13086$config_headers 13087 13088Configuration commands: 13089$config_commands 13090 13091Report bugs to <simon@comsys.ntu-kpi.kiev.ua>." 13092 13093_ACEOF 13094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13095ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13096ac_cs_version="\\ 13097ipa_sdb config.status 1.1.1 13098configured by $0, generated by GNU Autoconf 2.69, 13099 with options \\"\$ac_cs_config\\" 13100 13101Copyright (C) 2012 Free Software Foundation, Inc. 13102This config.status script is free software; the Free Software Foundation 13103gives unlimited permission to copy, distribute and modify it." 13104 13105ac_pwd='$ac_pwd' 13106srcdir='$srcdir' 13107INSTALL='$INSTALL' 13108MKDIR_P='$MKDIR_P' 13109AWK='$AWK' 13110test -n "\$AWK" || AWK=awk 13111_ACEOF 13112 13113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13114# The default lists apply if the user does not specify any file. 13115ac_need_defaults=: 13116while test $# != 0 13117do 13118 case $1 in 13119 --*=?*) 13120 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13121 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13122 ac_shift=: 13123 ;; 13124 --*=) 13125 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13126 ac_optarg= 13127 ac_shift=: 13128 ;; 13129 *) 13130 ac_option=$1 13131 ac_optarg=$2 13132 ac_shift=shift 13133 ;; 13134 esac 13135 13136 case $ac_option in 13137 # Handling of the options. 13138 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13139 ac_cs_recheck=: ;; 13140 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13141 $as_echo "$ac_cs_version"; exit ;; 13142 --config | --confi | --conf | --con | --co | --c ) 13143 $as_echo "$ac_cs_config"; exit ;; 13144 --debug | --debu | --deb | --de | --d | -d ) 13145 debug=: ;; 13146 --file | --fil | --fi | --f ) 13147 $ac_shift 13148 case $ac_optarg in 13149 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13150 '') as_fn_error $? "missing file argument" ;; 13151 esac 13152 as_fn_append CONFIG_FILES " '$ac_optarg'" 13153 ac_need_defaults=false;; 13154 --header | --heade | --head | --hea ) 13155 $ac_shift 13156 case $ac_optarg in 13157 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13158 esac 13159 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13160 ac_need_defaults=false;; 13161 --he | --h) 13162 # Conflict between --help and --header 13163 as_fn_error $? "ambiguous option: \`$1' 13164Try \`$0 --help' for more information.";; 13165 --help | --hel | -h ) 13166 $as_echo "$ac_cs_usage"; exit ;; 13167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13168 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13169 ac_cs_silent=: ;; 13170 13171 # This is an error. 13172 -*) as_fn_error $? "unrecognized option: \`$1' 13173Try \`$0 --help' for more information." ;; 13174 13175 *) as_fn_append ac_config_targets " $1" 13176 ac_need_defaults=false ;; 13177 13178 esac 13179 shift 13180done 13181 13182ac_configure_extra_args= 13183 13184if $ac_cs_silent; then 13185 exec 6>/dev/null 13186 ac_configure_extra_args="$ac_configure_extra_args --silent" 13187fi 13188 13189_ACEOF 13190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13191if \$ac_cs_recheck; then 13192 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13193 shift 13194 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13195 CONFIG_SHELL='$SHELL' 13196 export CONFIG_SHELL 13197 exec "\$@" 13198fi 13199 13200_ACEOF 13201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13202exec 5>>config.log 13203{ 13204 echo 13205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13206## Running $as_me. ## 13207_ASBOX 13208 $as_echo "$ac_log" 13209} >&5 13210 13211_ACEOF 13212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13213# 13214# INIT-COMMANDS 13215# 13216AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13217 13218 13219# The HP-UX ksh and POSIX shell print the target directory to stdout 13220# if CDPATH is set. 13221(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13222 13223sed_quote_subst='$sed_quote_subst' 13224double_quote_subst='$double_quote_subst' 13225delay_variable_subst='$delay_variable_subst' 13226macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13227macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13228enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13229enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13230pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13231enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13232SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13233ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13234PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13235host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13236host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13237host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13238build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13239build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13240build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13241SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13242Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13243GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13244EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13245FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13246LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13247NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13248LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13249max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13250ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13251exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13252lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13253lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13254lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13255lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13256lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13257reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13258reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13259OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13260deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13261file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13262file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13263want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13264DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13265sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13266AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13267AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13268archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13269STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13270RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13271old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13272old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13273old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13274lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13275CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13276CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13277compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13278GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13279lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13280lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13281lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13282lt_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"`' 13283nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13284lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13285objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13286MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13287lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13288lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13289lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13290lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13291lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13292need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13293MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13294DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13295NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13296LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13297OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13298OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13299libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13300shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13301extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13302archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13303enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13304export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13305whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13306compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13307old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13308old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13309archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13310archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13311module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13312module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13313with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13314allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13315no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13316hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13317hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13318hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13319hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13320hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13321hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13322hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13323inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13324link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13325always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13326export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13327exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13328include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13329prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13330postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13331file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13332variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13333need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13334need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13335version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13336runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13337shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13338shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13339libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13340library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13341soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13342install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13343postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13344postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13345finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13346finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13347hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13348sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13349sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13350hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13351enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13352enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13353enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13354old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13355striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13356 13357LTCC='$LTCC' 13358LTCFLAGS='$LTCFLAGS' 13359compiler='$compiler_DEFAULT' 13360 13361# A function that is used when there is no print builtin or printf. 13362func_fallback_echo () 13363{ 13364 eval 'cat <<_LTECHO_EOF 13365\$1 13366_LTECHO_EOF' 13367} 13368 13369# Quote evaled strings. 13370for var in SHELL \ 13371ECHO \ 13372PATH_SEPARATOR \ 13373SED \ 13374GREP \ 13375EGREP \ 13376FGREP \ 13377LD \ 13378NM \ 13379LN_S \ 13380lt_SP2NL \ 13381lt_NL2SP \ 13382reload_flag \ 13383OBJDUMP \ 13384deplibs_check_method \ 13385file_magic_cmd \ 13386file_magic_glob \ 13387want_nocaseglob \ 13388DLLTOOL \ 13389sharedlib_from_linklib_cmd \ 13390AR \ 13391AR_FLAGS \ 13392archiver_list_spec \ 13393STRIP \ 13394RANLIB \ 13395CC \ 13396CFLAGS \ 13397compiler \ 13398lt_cv_sys_global_symbol_pipe \ 13399lt_cv_sys_global_symbol_to_cdecl \ 13400lt_cv_sys_global_symbol_to_c_name_address \ 13401lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13402nm_file_list_spec \ 13403lt_prog_compiler_no_builtin_flag \ 13404lt_prog_compiler_pic \ 13405lt_prog_compiler_wl \ 13406lt_prog_compiler_static \ 13407lt_cv_prog_compiler_c_o \ 13408need_locks \ 13409MANIFEST_TOOL \ 13410DSYMUTIL \ 13411NMEDIT \ 13412LIPO \ 13413OTOOL \ 13414OTOOL64 \ 13415shrext_cmds \ 13416export_dynamic_flag_spec \ 13417whole_archive_flag_spec \ 13418compiler_needs_object \ 13419with_gnu_ld \ 13420allow_undefined_flag \ 13421no_undefined_flag \ 13422hardcode_libdir_flag_spec \ 13423hardcode_libdir_separator \ 13424exclude_expsyms \ 13425include_expsyms \ 13426file_list_spec \ 13427variables_saved_for_relink \ 13428libname_spec \ 13429library_names_spec \ 13430soname_spec \ 13431install_override_mode \ 13432finish_eval \ 13433old_striplib \ 13434striplib; do 13435 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13436 *[\\\\\\\`\\"\\\$]*) 13437 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13438 ;; 13439 *) 13440 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13441 ;; 13442 esac 13443done 13444 13445# Double-quote double-evaled strings. 13446for var in reload_cmds \ 13447old_postinstall_cmds \ 13448old_postuninstall_cmds \ 13449old_archive_cmds \ 13450extract_expsyms_cmds \ 13451old_archive_from_new_cmds \ 13452old_archive_from_expsyms_cmds \ 13453archive_cmds \ 13454archive_expsym_cmds \ 13455module_cmds \ 13456module_expsym_cmds \ 13457export_symbols_cmds \ 13458prelink_cmds \ 13459postlink_cmds \ 13460postinstall_cmds \ 13461postuninstall_cmds \ 13462finish_cmds \ 13463sys_lib_search_path_spec \ 13464sys_lib_dlsearch_path_spec; do 13465 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13466 *[\\\\\\\`\\"\\\$]*) 13467 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13468 ;; 13469 *) 13470 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13471 ;; 13472 esac 13473done 13474 13475ac_aux_dir='$ac_aux_dir' 13476xsi_shell='$xsi_shell' 13477lt_shell_append='$lt_shell_append' 13478 13479# See if we are running on zsh, and set the options which allow our 13480# commands through without removal of \ escapes INIT. 13481if test -n "\${ZSH_VERSION+set}" ; then 13482 setopt NO_GLOB_SUBST 13483fi 13484 13485 13486 PACKAGE='$PACKAGE' 13487 VERSION='$VERSION' 13488 TIMESTAMP='$TIMESTAMP' 13489 RM='$RM' 13490 ofile='$ofile' 13491 13492 13493 13494 13495_ACEOF 13496 13497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13498 13499# Handling of arguments. 13500for ac_config_target in $ac_config_targets 13501do 13502 case $ac_config_target in 13503 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 13504 "src/sdb_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/sdb_config.h" ;; 13505 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13506 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13507 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13508 "man/ru.KOI8-R/Makefile") CONFIG_FILES="$CONFIG_FILES man/ru.KOI8-R/Makefile" ;; 13509 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13510 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13511 13512 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13513 esac 13514done 13515 13516 13517# If the user did not use the arguments to specify the items to instantiate, 13518# then the envvar interface is used. Set only those that are not. 13519# We use the long form for the default assignment because of an extremely 13520# bizarre bug on SunOS 4.1.3. 13521if $ac_need_defaults; then 13522 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13523 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13524 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13525fi 13526 13527# Have a temporary directory for convenience. Make it in the build tree 13528# simply because there is no reason against having it here, and in addition, 13529# creating and moving files from /tmp can sometimes cause problems. 13530# Hook for its removal unless debugging. 13531# Note that there is a small window in which the directory will not be cleaned: 13532# after its creation but before its name has been assigned to `$tmp'. 13533$debug || 13534{ 13535 tmp= ac_tmp= 13536 trap 'exit_status=$? 13537 : "${ac_tmp:=$tmp}" 13538 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13539' 0 13540 trap 'as_fn_exit 1' 1 2 13 15 13541} 13542# Create a (secure) tmp directory for tmp files. 13543 13544{ 13545 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13546 test -d "$tmp" 13547} || 13548{ 13549 tmp=./conf$$-$RANDOM 13550 (umask 077 && mkdir "$tmp") 13551} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13552ac_tmp=$tmp 13553 13554# Set up the scripts for CONFIG_FILES section. 13555# No need to generate them if there are no CONFIG_FILES. 13556# This happens for instance with `./config.status config.h'. 13557if test -n "$CONFIG_FILES"; then 13558 13559 13560ac_cr=`echo X | tr X '\015'` 13561# On cygwin, bash can eat \r inside `` if the user requested igncr. 13562# But we know of no other shell where ac_cr would be empty at this 13563# point, so we can use a bashism as a fallback. 13564if test "x$ac_cr" = x; then 13565 eval ac_cr=\$\'\\r\' 13566fi 13567ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13568if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13569 ac_cs_awk_cr='\\r' 13570else 13571 ac_cs_awk_cr=$ac_cr 13572fi 13573 13574echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13575_ACEOF 13576 13577 13578{ 13579 echo "cat >conf$$subs.awk <<_ACEOF" && 13580 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13581 echo "_ACEOF" 13582} >conf$$subs.sh || 13583 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13584ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13585ac_delim='%!_!# ' 13586for ac_last_try in false false false false false :; do 13587 . ./conf$$subs.sh || 13588 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13589 13590 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13591 if test $ac_delim_n = $ac_delim_num; then 13592 break 13593 elif $ac_last_try; then 13594 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13595 else 13596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13597 fi 13598done 13599rm -f conf$$subs.sh 13600 13601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13602cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13603_ACEOF 13604sed -n ' 13605h 13606s/^/S["/; s/!.*/"]=/ 13607p 13608g 13609s/^[^!]*!// 13610:repl 13611t repl 13612s/'"$ac_delim"'$// 13613t delim 13614:nl 13615h 13616s/\(.\{148\}\)..*/\1/ 13617t more1 13618s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13619p 13620n 13621b repl 13622:more1 13623s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13624p 13625g 13626s/.\{148\}// 13627t nl 13628:delim 13629h 13630s/\(.\{148\}\)..*/\1/ 13631t more2 13632s/["\\]/\\&/g; s/^/"/; s/$/"/ 13633p 13634b 13635:more2 13636s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13637p 13638g 13639s/.\{148\}// 13640t delim 13641' <conf$$subs.awk | sed ' 13642/^[^""]/{ 13643 N 13644 s/\n// 13645} 13646' >>$CONFIG_STATUS || ac_write_fail=1 13647rm -f conf$$subs.awk 13648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13649_ACAWK 13650cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13651 for (key in S) S_is_set[key] = 1 13652 FS = "" 13653 13654} 13655{ 13656 line = $ 0 13657 nfields = split(line, field, "@") 13658 substed = 0 13659 len = length(field[1]) 13660 for (i = 2; i < nfields; i++) { 13661 key = field[i] 13662 keylen = length(key) 13663 if (S_is_set[key]) { 13664 value = S[key] 13665 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13666 len += length(value) + length(field[++i]) 13667 substed = 1 13668 } else 13669 len += 1 + keylen 13670 } 13671 13672 print line 13673} 13674 13675_ACAWK 13676_ACEOF 13677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13678if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13679 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13680else 13681 cat 13682fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13683 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13684_ACEOF 13685 13686# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13687# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13688# trailing colons and then remove the whole line if VPATH becomes empty 13689# (actually we leave an empty line to preserve line numbers). 13690if test "x$srcdir" = x.; then 13691 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13692h 13693s/// 13694s/^/:/ 13695s/[ ]*$/:/ 13696s/:\$(srcdir):/:/g 13697s/:\${srcdir}:/:/g 13698s/:@srcdir@:/:/g 13699s/^:*// 13700s/:*$// 13701x 13702s/\(=[ ]*\).*/\1/ 13703G 13704s/\n// 13705s/^[^=]*=[ ]*$// 13706}' 13707fi 13708 13709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13710fi # test -n "$CONFIG_FILES" 13711 13712# Set up the scripts for CONFIG_HEADERS section. 13713# No need to generate them if there are no CONFIG_HEADERS. 13714# This happens for instance with `./config.status Makefile'. 13715if test -n "$CONFIG_HEADERS"; then 13716cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13717BEGIN { 13718_ACEOF 13719 13720# Transform confdefs.h into an awk script `defines.awk', embedded as 13721# here-document in config.status, that substitutes the proper values into 13722# config.h.in to produce config.h. 13723 13724# Create a delimiter string that does not exist in confdefs.h, to ease 13725# handling of long lines. 13726ac_delim='%!_!# ' 13727for ac_last_try in false false :; do 13728 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13729 if test -z "$ac_tt"; then 13730 break 13731 elif $ac_last_try; then 13732 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13733 else 13734 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13735 fi 13736done 13737 13738# For the awk script, D is an array of macro values keyed by name, 13739# likewise P contains macro parameters if any. Preserve backslash 13740# newline sequences. 13741 13742ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13743sed -n ' 13744s/.\{148\}/&'"$ac_delim"'/g 13745t rset 13746:rset 13747s/^[ ]*#[ ]*define[ ][ ]*/ / 13748t def 13749d 13750:def 13751s/\\$// 13752t bsnl 13753s/["\\]/\\&/g 13754s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13755D["\1"]=" \3"/p 13756s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13757d 13758:bsnl 13759s/["\\]/\\&/g 13760s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13761D["\1"]=" \3\\\\\\n"\\/p 13762t cont 13763s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13764t cont 13765d 13766:cont 13767n 13768s/.\{148\}/&'"$ac_delim"'/g 13769t clear 13770:clear 13771s/\\$// 13772t bsnlc 13773s/["\\]/\\&/g; s/^/"/; s/$/"/p 13774d 13775:bsnlc 13776s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13777b cont 13778' <confdefs.h | sed ' 13779s/'"$ac_delim"'/"\\\ 13780"/g' >>$CONFIG_STATUS || ac_write_fail=1 13781 13782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13783 for (key in D) D_is_set[key] = 1 13784 FS = "" 13785} 13786/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13787 line = \$ 0 13788 split(line, arg, " ") 13789 if (arg[1] == "#") { 13790 defundef = arg[2] 13791 mac1 = arg[3] 13792 } else { 13793 defundef = substr(arg[1], 2) 13794 mac1 = arg[2] 13795 } 13796 split(mac1, mac2, "(") #) 13797 macro = mac2[1] 13798 prefix = substr(line, 1, index(line, defundef) - 1) 13799 if (D_is_set[macro]) { 13800 # Preserve the white space surrounding the "#". 13801 print prefix "define", macro P[macro] D[macro] 13802 next 13803 } else { 13804 # Replace #undef with comments. This is necessary, for example, 13805 # in the case of _POSIX_SOURCE, which is predefined and required 13806 # on some systems where configure will not decide to define it. 13807 if (defundef == "undef") { 13808 print "/*", prefix defundef, macro, "*/" 13809 next 13810 } 13811 } 13812} 13813{ print } 13814_ACAWK 13815_ACEOF 13816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13817 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13818fi # test -n "$CONFIG_HEADERS" 13819 13820 13821eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13822shift 13823for ac_tag 13824do 13825 case $ac_tag in 13826 :[FHLC]) ac_mode=$ac_tag; continue;; 13827 esac 13828 case $ac_mode$ac_tag in 13829 :[FHL]*:*);; 13830 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13831 :[FH]-) ac_tag=-:-;; 13832 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13833 esac 13834 ac_save_IFS=$IFS 13835 IFS=: 13836 set x $ac_tag 13837 IFS=$ac_save_IFS 13838 shift 13839 ac_file=$1 13840 shift 13841 13842 case $ac_mode in 13843 :L) ac_source=$1;; 13844 :[FH]) 13845 ac_file_inputs= 13846 for ac_f 13847 do 13848 case $ac_f in 13849 -) ac_f="$ac_tmp/stdin";; 13850 *) # Look for the file first in the build tree, then in the source tree 13851 # (if the path is not absolute). The absolute path cannot be DOS-style, 13852 # because $ac_f cannot contain `:'. 13853 test -f "$ac_f" || 13854 case $ac_f in 13855 [\\/$]*) false;; 13856 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13857 esac || 13858 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13859 esac 13860 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13861 as_fn_append ac_file_inputs " '$ac_f'" 13862 done 13863 13864 # Let's still pretend it is `configure' which instantiates (i.e., don't 13865 # use $as_me), people would be surprised to read: 13866 # /* config.h. Generated by config.status. */ 13867 configure_input='Generated from '` 13868 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13869 `' by configure.' 13870 if test x"$ac_file" != x-; then 13871 configure_input="$ac_file. $configure_input" 13872 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13873$as_echo "$as_me: creating $ac_file" >&6;} 13874 fi 13875 # Neutralize special characters interpreted by sed in replacement strings. 13876 case $configure_input in #( 13877 *\&* | *\|* | *\\* ) 13878 ac_sed_conf_input=`$as_echo "$configure_input" | 13879 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13880 *) ac_sed_conf_input=$configure_input;; 13881 esac 13882 13883 case $ac_tag in 13884 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13885 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13886 esac 13887 ;; 13888 esac 13889 13890 ac_dir=`$as_dirname -- "$ac_file" || 13891$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13892 X"$ac_file" : 'X\(//\)[^/]' \| \ 13893 X"$ac_file" : 'X\(//\)$' \| \ 13894 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13895$as_echo X"$ac_file" | 13896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13897 s//\1/ 13898 q 13899 } 13900 /^X\(\/\/\)[^/].*/{ 13901 s//\1/ 13902 q 13903 } 13904 /^X\(\/\/\)$/{ 13905 s//\1/ 13906 q 13907 } 13908 /^X\(\/\).*/{ 13909 s//\1/ 13910 q 13911 } 13912 s/.*/./; q'` 13913 as_dir="$ac_dir"; as_fn_mkdir_p 13914 ac_builddir=. 13915 13916case "$ac_dir" in 13917.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13918*) 13919 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13920 # A ".." for each directory in $ac_dir_suffix. 13921 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13922 case $ac_top_builddir_sub in 13923 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13924 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13925 esac ;; 13926esac 13927ac_abs_top_builddir=$ac_pwd 13928ac_abs_builddir=$ac_pwd$ac_dir_suffix 13929# for backward compatibility: 13930ac_top_builddir=$ac_top_build_prefix 13931 13932case $srcdir in 13933 .) # We are building in place. 13934 ac_srcdir=. 13935 ac_top_srcdir=$ac_top_builddir_sub 13936 ac_abs_top_srcdir=$ac_pwd ;; 13937 [\\/]* | ?:[\\/]* ) # Absolute name. 13938 ac_srcdir=$srcdir$ac_dir_suffix; 13939 ac_top_srcdir=$srcdir 13940 ac_abs_top_srcdir=$srcdir ;; 13941 *) # Relative name. 13942 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13943 ac_top_srcdir=$ac_top_build_prefix$srcdir 13944 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13945esac 13946ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13947 13948 13949 case $ac_mode in 13950 :F) 13951 # 13952 # CONFIG_FILE 13953 # 13954 13955 case $INSTALL in 13956 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13957 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13958 esac 13959 ac_MKDIR_P=$MKDIR_P 13960 case $MKDIR_P in 13961 [\\/$]* | ?:[\\/]* ) ;; 13962 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13963 esac 13964_ACEOF 13965 13966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13967# If the template does not know about datarootdir, expand it. 13968# FIXME: This hack should be removed a few years after 2.60. 13969ac_datarootdir_hack=; ac_datarootdir_seen= 13970ac_sed_dataroot=' 13971/datarootdir/ { 13972 p 13973 q 13974} 13975/@datadir@/p 13976/@docdir@/p 13977/@infodir@/p 13978/@localedir@/p 13979/@mandir@/p' 13980case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13981*datarootdir*) ac_datarootdir_seen=yes;; 13982*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13984$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13985_ACEOF 13986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13987 ac_datarootdir_hack=' 13988 s&@datadir@&$datadir&g 13989 s&@docdir@&$docdir&g 13990 s&@infodir@&$infodir&g 13991 s&@localedir@&$localedir&g 13992 s&@mandir@&$mandir&g 13993 s&\\\${datarootdir}&$datarootdir&g' ;; 13994esac 13995_ACEOF 13996 13997# Neutralize VPATH when `$srcdir' = `.'. 13998# Shell code in configure.ac might set extrasub. 13999# FIXME: do we really want to maintain this feature? 14000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14001ac_sed_extra="$ac_vpsub 14002$extrasub 14003_ACEOF 14004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14005:t 14006/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14007s|@configure_input@|$ac_sed_conf_input|;t t 14008s&@top_builddir@&$ac_top_builddir_sub&;t t 14009s&@top_build_prefix@&$ac_top_build_prefix&;t t 14010s&@srcdir@&$ac_srcdir&;t t 14011s&@abs_srcdir@&$ac_abs_srcdir&;t t 14012s&@top_srcdir@&$ac_top_srcdir&;t t 14013s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14014s&@builddir@&$ac_builddir&;t t 14015s&@abs_builddir@&$ac_abs_builddir&;t t 14016s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14017s&@INSTALL@&$ac_INSTALL&;t t 14018s&@MKDIR_P@&$ac_MKDIR_P&;t t 14019$ac_datarootdir_hack 14020" 14021eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14022 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14023 14024test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14025 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14026 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14027 "$ac_tmp/out"`; test -z "$ac_out"; } && 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14029which seems to be undefined. Please make sure it is defined" >&5 14030$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14031which seems to be undefined. Please make sure it is defined" >&2;} 14032 14033 rm -f "$ac_tmp/stdin" 14034 case $ac_file in 14035 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14036 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14037 esac \ 14038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14039 ;; 14040 :H) 14041 # 14042 # CONFIG_HEADER 14043 # 14044 if test x"$ac_file" != x-; then 14045 { 14046 $as_echo "/* $configure_input */" \ 14047 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14048 } >"$ac_tmp/config.h" \ 14049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14050 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14052$as_echo "$as_me: $ac_file is unchanged" >&6;} 14053 else 14054 rm -f "$ac_file" 14055 mv "$ac_tmp/config.h" "$ac_file" \ 14056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14057 fi 14058 else 14059 $as_echo "/* $configure_input */" \ 14060 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14061 || as_fn_error $? "could not create -" "$LINENO" 5 14062 fi 14063# Compute "$ac_file"'s index in $config_headers. 14064_am_arg="$ac_file" 14065_am_stamp_count=1 14066for _am_header in $config_headers :; do 14067 case $_am_header in 14068 $_am_arg | $_am_arg:* ) 14069 break ;; 14070 * ) 14071 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14072 esac 14073done 14074echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14075$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14076 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14077 X"$_am_arg" : 'X\(//\)$' \| \ 14078 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14079$as_echo X"$_am_arg" | 14080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14081 s//\1/ 14082 q 14083 } 14084 /^X\(\/\/\)[^/].*/{ 14085 s//\1/ 14086 q 14087 } 14088 /^X\(\/\/\)$/{ 14089 s//\1/ 14090 q 14091 } 14092 /^X\(\/\).*/{ 14093 s//\1/ 14094 q 14095 } 14096 s/.*/./; q'`/stamp-h$_am_stamp_count 14097 ;; 14098 14099 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14100$as_echo "$as_me: executing $ac_file commands" >&6;} 14101 ;; 14102 esac 14103 14104 14105 case $ac_file$ac_mode in 14106 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14107 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14108 # are listed without --file. Let's play safe and only enable the eval 14109 # if we detect the quoting. 14110 case $CONFIG_FILES in 14111 *\'*) eval set x "$CONFIG_FILES" ;; 14112 *) set x $CONFIG_FILES ;; 14113 esac 14114 shift 14115 for mf 14116 do 14117 # Strip MF so we end up with the name of the file. 14118 mf=`echo "$mf" | sed -e 's/:.*$//'` 14119 # Check whether this is an Automake generated Makefile or not. 14120 # We used to match only the files named 'Makefile.in', but 14121 # some people rename them; so instead we look at the file content. 14122 # Grep'ing the first line is not enough: some people post-process 14123 # each Makefile.in and add a new line on top of each file to say so. 14124 # Grep'ing the whole file is not good either: AIX grep has a line 14125 # limit of 2048, but all sed's we know have understand at least 4000. 14126 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14127 dirpart=`$as_dirname -- "$mf" || 14128$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14129 X"$mf" : 'X\(//\)[^/]' \| \ 14130 X"$mf" : 'X\(//\)$' \| \ 14131 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14132$as_echo X"$mf" | 14133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14134 s//\1/ 14135 q 14136 } 14137 /^X\(\/\/\)[^/].*/{ 14138 s//\1/ 14139 q 14140 } 14141 /^X\(\/\/\)$/{ 14142 s//\1/ 14143 q 14144 } 14145 /^X\(\/\).*/{ 14146 s//\1/ 14147 q 14148 } 14149 s/.*/./; q'` 14150 else 14151 continue 14152 fi 14153 # Extract the definition of DEPDIR, am__include, and am__quote 14154 # from the Makefile without running 'make'. 14155 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14156 test -z "$DEPDIR" && continue 14157 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14158 test -z "am__include" && continue 14159 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14160 # Find all dependency output files, they are included files with 14161 # $(DEPDIR) in their names. We invoke sed twice because it is the 14162 # simplest approach to changing $(DEPDIR) to its actual value in the 14163 # expansion. 14164 for file in `sed -n " 14165 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14166 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 14167 # Make sure the directory exists. 14168 test -f "$dirpart/$file" && continue 14169 fdir=`$as_dirname -- "$file" || 14170$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14171 X"$file" : 'X\(//\)[^/]' \| \ 14172 X"$file" : 'X\(//\)$' \| \ 14173 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14174$as_echo X"$file" | 14175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14176 s//\1/ 14177 q 14178 } 14179 /^X\(\/\/\)[^/].*/{ 14180 s//\1/ 14181 q 14182 } 14183 /^X\(\/\/\)$/{ 14184 s//\1/ 14185 q 14186 } 14187 /^X\(\/\).*/{ 14188 s//\1/ 14189 q 14190 } 14191 s/.*/./; q'` 14192 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14193 # echo "creating $dirpart/$file" 14194 echo '# dummy' > "$dirpart/$file" 14195 done 14196 done 14197} 14198 ;; 14199 "libtool":C) 14200 14201 # See if we are running on zsh, and set the options which allow our 14202 # commands through without removal of \ escapes. 14203 if test -n "${ZSH_VERSION+set}" ; then 14204 setopt NO_GLOB_SUBST 14205 fi 14206 14207 cfgfile="${ofile}T" 14208 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14209 $RM "$cfgfile" 14210 14211 cat <<_LT_EOF >> "$cfgfile" 14212#! $SHELL 14213 14214# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14215# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14216# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14217# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14218# 14219# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14220# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 14221# Foundation, Inc. 14222# Written by Gordon Matzigkeit, 1996 14223# 14224# This file is part of GNU Libtool. 14225# 14226# GNU Libtool is free software; you can redistribute it and/or 14227# modify it under the terms of the GNU General Public License as 14228# published by the Free Software Foundation; either version 2 of 14229# the License, or (at your option) any later version. 14230# 14231# As a special exception to the GNU General Public License, 14232# if you distribute this file as part of a program or library that 14233# is built using GNU Libtool, you may include this file under the 14234# same distribution terms that you use for the rest of that program. 14235# 14236# GNU Libtool is distributed in the hope that it will be useful, 14237# but WITHOUT ANY WARRANTY; without even the implied warranty of 14238# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14239# GNU General Public License for more details. 14240# 14241# You should have received a copy of the GNU General Public License 14242# along with GNU Libtool; see the file COPYING. If not, a copy 14243# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14244# obtained by writing to the Free Software Foundation, Inc., 14245# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14246 14247 14248# The names of the tagged configurations supported by this script. 14249available_tags="" 14250 14251# ### BEGIN LIBTOOL CONFIG 14252 14253# Which release of libtool.m4 was used? 14254macro_version=$macro_version 14255macro_revision=$macro_revision 14256 14257# Whether or not to build static libraries. 14258build_old_libs=$enable_static 14259 14260# Whether or not to build shared libraries. 14261build_libtool_libs=$enable_shared 14262 14263# What type of objects to build. 14264pic_mode=$pic_mode 14265 14266# Whether or not to optimize for fast installation. 14267fast_install=$enable_fast_install 14268 14269# Shell to use when invoking shell scripts. 14270SHELL=$lt_SHELL 14271 14272# An echo program that protects backslashes. 14273ECHO=$lt_ECHO 14274 14275# The PATH separator for the build system. 14276PATH_SEPARATOR=$lt_PATH_SEPARATOR 14277 14278# The host system. 14279host_alias=$host_alias 14280host=$host 14281host_os=$host_os 14282 14283# The build system. 14284build_alias=$build_alias 14285build=$build 14286build_os=$build_os 14287 14288# A sed program that does not truncate output. 14289SED=$lt_SED 14290 14291# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14292Xsed="\$SED -e 1s/^X//" 14293 14294# A grep program that handles long lines. 14295GREP=$lt_GREP 14296 14297# An ERE matcher. 14298EGREP=$lt_EGREP 14299 14300# A literal string matcher. 14301FGREP=$lt_FGREP 14302 14303# A BSD- or MS-compatible name lister. 14304NM=$lt_NM 14305 14306# Whether we need soft or hard links. 14307LN_S=$lt_LN_S 14308 14309# What is the maximum length of a command? 14310max_cmd_len=$max_cmd_len 14311 14312# Object file suffix (normally "o"). 14313objext=$ac_objext 14314 14315# Executable file suffix (normally ""). 14316exeext=$exeext 14317 14318# whether the shell understands "unset". 14319lt_unset=$lt_unset 14320 14321# turn spaces into newlines. 14322SP2NL=$lt_lt_SP2NL 14323 14324# turn newlines into spaces. 14325NL2SP=$lt_lt_NL2SP 14326 14327# convert \$build file names to \$host format. 14328to_host_file_cmd=$lt_cv_to_host_file_cmd 14329 14330# convert \$build files to toolchain format. 14331to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14332 14333# An object symbol dumper. 14334OBJDUMP=$lt_OBJDUMP 14335 14336# Method to check whether dependent libraries are shared objects. 14337deplibs_check_method=$lt_deplibs_check_method 14338 14339# Command to use when deplibs_check_method = "file_magic". 14340file_magic_cmd=$lt_file_magic_cmd 14341 14342# How to find potential files when deplibs_check_method = "file_magic". 14343file_magic_glob=$lt_file_magic_glob 14344 14345# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14346want_nocaseglob=$lt_want_nocaseglob 14347 14348# DLL creation program. 14349DLLTOOL=$lt_DLLTOOL 14350 14351# Command to associate shared and link libraries. 14352sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14353 14354# The archiver. 14355AR=$lt_AR 14356 14357# Flags to create an archive. 14358AR_FLAGS=$lt_AR_FLAGS 14359 14360# How to feed a file listing to the archiver. 14361archiver_list_spec=$lt_archiver_list_spec 14362 14363# A symbol stripping program. 14364STRIP=$lt_STRIP 14365 14366# Commands used to install an old-style archive. 14367RANLIB=$lt_RANLIB 14368old_postinstall_cmds=$lt_old_postinstall_cmds 14369old_postuninstall_cmds=$lt_old_postuninstall_cmds 14370 14371# Whether to use a lock for old archive extraction. 14372lock_old_archive_extraction=$lock_old_archive_extraction 14373 14374# A C compiler. 14375LTCC=$lt_CC 14376 14377# LTCC compiler flags. 14378LTCFLAGS=$lt_CFLAGS 14379 14380# Take the output of nm and produce a listing of raw symbols and C names. 14381global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14382 14383# Transform the output of nm in a proper C declaration. 14384global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14385 14386# Transform the output of nm in a C name address pair. 14387global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14388 14389# Transform the output of nm in a C name address pair when lib prefix is needed. 14390global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14391 14392# Specify filename containing input files for \$NM. 14393nm_file_list_spec=$lt_nm_file_list_spec 14394 14395# The root where to search for dependent libraries,and in which our libraries should be installed. 14396lt_sysroot=$lt_sysroot 14397 14398# The name of the directory that contains temporary libtool files. 14399objdir=$objdir 14400 14401# Used to examine libraries when file_magic_cmd begins with "file". 14402MAGIC_CMD=$MAGIC_CMD 14403 14404# Must we lock files when doing compilation? 14405need_locks=$lt_need_locks 14406 14407# Manifest tool. 14408MANIFEST_TOOL=$lt_MANIFEST_TOOL 14409 14410# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14411DSYMUTIL=$lt_DSYMUTIL 14412 14413# Tool to change global to local symbols on Mac OS X. 14414NMEDIT=$lt_NMEDIT 14415 14416# Tool to manipulate fat objects and archives on Mac OS X. 14417LIPO=$lt_LIPO 14418 14419# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14420OTOOL=$lt_OTOOL 14421 14422# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14423OTOOL64=$lt_OTOOL64 14424 14425# Old archive suffix (normally "a"). 14426libext=$libext 14427 14428# Shared library suffix (normally ".so"). 14429shrext_cmds=$lt_shrext_cmds 14430 14431# The commands to extract the exported symbol list from a shared archive. 14432extract_expsyms_cmds=$lt_extract_expsyms_cmds 14433 14434# Variables whose values should be saved in libtool wrapper scripts and 14435# restored at link time. 14436variables_saved_for_relink=$lt_variables_saved_for_relink 14437 14438# Do we need the "lib" prefix for modules? 14439need_lib_prefix=$need_lib_prefix 14440 14441# Do we need a version for libraries? 14442need_version=$need_version 14443 14444# Library versioning type. 14445version_type=$version_type 14446 14447# Shared library runtime path variable. 14448runpath_var=$runpath_var 14449 14450# Shared library path variable. 14451shlibpath_var=$shlibpath_var 14452 14453# Is shlibpath searched before the hard-coded library search path? 14454shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14455 14456# Format of library name prefix. 14457libname_spec=$lt_libname_spec 14458 14459# List of archive names. First name is the real one, the rest are links. 14460# The last name is the one that the linker finds with -lNAME 14461library_names_spec=$lt_library_names_spec 14462 14463# The coded name of the library, if different from the real name. 14464soname_spec=$lt_soname_spec 14465 14466# Permission mode override for installation of shared libraries. 14467install_override_mode=$lt_install_override_mode 14468 14469# Command to use after installation of a shared archive. 14470postinstall_cmds=$lt_postinstall_cmds 14471 14472# Command to use after uninstallation of a shared archive. 14473postuninstall_cmds=$lt_postuninstall_cmds 14474 14475# Commands used to finish a libtool library installation in a directory. 14476finish_cmds=$lt_finish_cmds 14477 14478# As "finish_cmds", except a single script fragment to be evaled but 14479# not shown. 14480finish_eval=$lt_finish_eval 14481 14482# Whether we should hardcode library paths into libraries. 14483hardcode_into_libs=$hardcode_into_libs 14484 14485# Compile-time system search path for libraries. 14486sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14487 14488# Run-time system search path for libraries. 14489sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14490 14491# Whether dlopen is supported. 14492dlopen_support=$enable_dlopen 14493 14494# Whether dlopen of programs is supported. 14495dlopen_self=$enable_dlopen_self 14496 14497# Whether dlopen of statically linked programs is supported. 14498dlopen_self_static=$enable_dlopen_self_static 14499 14500# Commands to strip libraries. 14501old_striplib=$lt_old_striplib 14502striplib=$lt_striplib 14503 14504 14505# The linker used to build libraries. 14506LD=$lt_LD 14507 14508# How to create reloadable object files. 14509reload_flag=$lt_reload_flag 14510reload_cmds=$lt_reload_cmds 14511 14512# Commands used to build an old-style archive. 14513old_archive_cmds=$lt_old_archive_cmds 14514 14515# A language specific compiler. 14516CC=$lt_compiler 14517 14518# Is the compiler the GNU compiler? 14519with_gcc=$GCC 14520 14521# Compiler flag to turn off builtin functions. 14522no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14523 14524# Additional compiler flags for building library objects. 14525pic_flag=$lt_lt_prog_compiler_pic 14526 14527# How to pass a linker flag through the compiler. 14528wl=$lt_lt_prog_compiler_wl 14529 14530# Compiler flag to prevent dynamic linking. 14531link_static_flag=$lt_lt_prog_compiler_static 14532 14533# Does compiler simultaneously support -c and -o options? 14534compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14535 14536# Whether or not to add -lc for building shared libraries. 14537build_libtool_need_lc=$archive_cmds_need_lc 14538 14539# Whether or not to disallow shared libs when runtime libs are static. 14540allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14541 14542# Compiler flag to allow reflexive dlopens. 14543export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14544 14545# Compiler flag to generate shared objects directly from archives. 14546whole_archive_flag_spec=$lt_whole_archive_flag_spec 14547 14548# Whether the compiler copes with passing no objects directly. 14549compiler_needs_object=$lt_compiler_needs_object 14550 14551# Create an old-style archive from a shared archive. 14552old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14553 14554# Create a temporary old-style archive to link instead of a shared archive. 14555old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14556 14557# Commands used to build a shared archive. 14558archive_cmds=$lt_archive_cmds 14559archive_expsym_cmds=$lt_archive_expsym_cmds 14560 14561# Commands used to build a loadable module if different from building 14562# a shared archive. 14563module_cmds=$lt_module_cmds 14564module_expsym_cmds=$lt_module_expsym_cmds 14565 14566# Whether we are building with GNU ld or not. 14567with_gnu_ld=$lt_with_gnu_ld 14568 14569# Flag that allows shared libraries with undefined symbols to be built. 14570allow_undefined_flag=$lt_allow_undefined_flag 14571 14572# Flag that enforces no undefined symbols. 14573no_undefined_flag=$lt_no_undefined_flag 14574 14575# Flag to hardcode \$libdir into a binary during linking. 14576# This must work even if \$libdir does not exist 14577hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14578 14579# Whether we need a single "-rpath" flag with a separated argument. 14580hardcode_libdir_separator=$lt_hardcode_libdir_separator 14581 14582# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14583# DIR into the resulting binary. 14584hardcode_direct=$hardcode_direct 14585 14586# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14587# DIR into the resulting binary and the resulting library dependency is 14588# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14589# library is relocated. 14590hardcode_direct_absolute=$hardcode_direct_absolute 14591 14592# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14593# into the resulting binary. 14594hardcode_minus_L=$hardcode_minus_L 14595 14596# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14597# into the resulting binary. 14598hardcode_shlibpath_var=$hardcode_shlibpath_var 14599 14600# Set to "yes" if building a shared library automatically hardcodes DIR 14601# into the library and all subsequent libraries and executables linked 14602# against it. 14603hardcode_automatic=$hardcode_automatic 14604 14605# Set to yes if linker adds runtime paths of dependent libraries 14606# to runtime path list. 14607inherit_rpath=$inherit_rpath 14608 14609# Whether libtool must link a program against all its dependency libraries. 14610link_all_deplibs=$link_all_deplibs 14611 14612# Set to "yes" if exported symbols are required. 14613always_export_symbols=$always_export_symbols 14614 14615# The commands to list exported symbols. 14616export_symbols_cmds=$lt_export_symbols_cmds 14617 14618# Symbols that should not be listed in the preloaded symbols. 14619exclude_expsyms=$lt_exclude_expsyms 14620 14621# Symbols that must always be exported. 14622include_expsyms=$lt_include_expsyms 14623 14624# Commands necessary for linking programs (against libraries) with templates. 14625prelink_cmds=$lt_prelink_cmds 14626 14627# Commands necessary for finishing linking programs. 14628postlink_cmds=$lt_postlink_cmds 14629 14630# Specify filename containing input files. 14631file_list_spec=$lt_file_list_spec 14632 14633# How to hardcode a shared library path into an executable. 14634hardcode_action=$hardcode_action 14635 14636# ### END LIBTOOL CONFIG 14637 14638_LT_EOF 14639 14640 case $host_os in 14641 aix3*) 14642 cat <<\_LT_EOF >> "$cfgfile" 14643# AIX sometimes has problems with the GCC collect2 program. For some 14644# reason, if we set the COLLECT_NAMES environment variable, the problems 14645# vanish in a puff of smoke. 14646if test "X${COLLECT_NAMES+set}" != Xset; then 14647 COLLECT_NAMES= 14648 export COLLECT_NAMES 14649fi 14650_LT_EOF 14651 ;; 14652 esac 14653 14654 14655ltmain="$ac_aux_dir/ltmain.sh" 14656 14657 14658 # We use sed instead of cat because bash on DJGPP gets confused if 14659 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14660 # text mode, it properly converts lines to CR/LF. This bash problem 14661 # is reportedly fixed, but why not run on old versions too? 14662 sed '$q' "$ltmain" >> "$cfgfile" \ 14663 || (rm -f "$cfgfile"; exit 1) 14664 14665 if test x"$xsi_shell" = xyes; then 14666 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 14667func_dirname ()\ 14668{\ 14669\ case ${1} in\ 14670\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14671\ * ) func_dirname_result="${3}" ;;\ 14672\ esac\ 14673} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 14674 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14675 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14676test 0 -eq $? || _lt_function_replace_fail=: 14677 14678 14679 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 14680func_basename ()\ 14681{\ 14682\ func_basename_result="${1##*/}"\ 14683} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14684 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14685 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14686test 0 -eq $? || _lt_function_replace_fail=: 14687 14688 14689 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 14690func_dirname_and_basename ()\ 14691{\ 14692\ case ${1} in\ 14693\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14694\ * ) func_dirname_result="${3}" ;;\ 14695\ esac\ 14696\ func_basename_result="${1##*/}"\ 14697} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14698 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14700test 0 -eq $? || _lt_function_replace_fail=: 14701 14702 14703 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 14704func_stripname ()\ 14705{\ 14706\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 14707\ # positional parameters, so assign one to ordinary parameter first.\ 14708\ func_stripname_result=${3}\ 14709\ func_stripname_result=${func_stripname_result#"${1}"}\ 14710\ func_stripname_result=${func_stripname_result%"${2}"}\ 14711} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 14712 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14714test 0 -eq $? || _lt_function_replace_fail=: 14715 14716 14717 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 14718func_split_long_opt ()\ 14719{\ 14720\ func_split_long_opt_name=${1%%=*}\ 14721\ func_split_long_opt_arg=${1#*=}\ 14722} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14723 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14724 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14725test 0 -eq $? || _lt_function_replace_fail=: 14726 14727 14728 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 14729func_split_short_opt ()\ 14730{\ 14731\ func_split_short_opt_arg=${1#??}\ 14732\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 14733} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14734 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14735 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14736test 0 -eq $? || _lt_function_replace_fail=: 14737 14738 14739 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 14740func_lo2o ()\ 14741{\ 14742\ case ${1} in\ 14743\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 14744\ *) func_lo2o_result=${1} ;;\ 14745\ esac\ 14746} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 14747 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14748 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14749test 0 -eq $? || _lt_function_replace_fail=: 14750 14751 14752 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 14753func_xform ()\ 14754{\ 14755 func_xform_result=${1%.*}.lo\ 14756} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 14757 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14759test 0 -eq $? || _lt_function_replace_fail=: 14760 14761 14762 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 14763func_arith ()\ 14764{\ 14765 func_arith_result=$(( $* ))\ 14766} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 14767 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14769test 0 -eq $? || _lt_function_replace_fail=: 14770 14771 14772 sed -e '/^func_len ()$/,/^} # func_len /c\ 14773func_len ()\ 14774{\ 14775 func_len_result=${#1}\ 14776} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 14777 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14779test 0 -eq $? || _lt_function_replace_fail=: 14780 14781fi 14782 14783if test x"$lt_shell_append" = xyes; then 14784 sed -e '/^func_append ()$/,/^} # func_append /c\ 14785func_append ()\ 14786{\ 14787 eval "${1}+=\\${2}"\ 14788} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 14789 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14791test 0 -eq $? || _lt_function_replace_fail=: 14792 14793 14794 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 14795func_append_quoted ()\ 14796{\ 14797\ func_quote_for_eval "${2}"\ 14798\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 14799} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 14800 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14801 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14802test 0 -eq $? || _lt_function_replace_fail=: 14803 14804 14805 # Save a `func_append' function call where possible by direct use of '+=' 14806 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 14807 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14809 test 0 -eq $? || _lt_function_replace_fail=: 14810else 14811 # Save a `func_append' function call even when '+=' is not available 14812 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 14813 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14814 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14815 test 0 -eq $? || _lt_function_replace_fail=: 14816fi 14817 14818if test x"$_lt_function_replace_fail" = x":"; then 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 14820$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 14821fi 14822 14823 14824 mv -f "$cfgfile" "$ofile" || 14825 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14826 chmod +x "$ofile" 14827 14828 ;; 14829 14830 esac 14831done # for ac_tag 14832 14833 14834as_fn_exit 0 14835_ACEOF 14836ac_clean_files=$ac_clean_files_save 14837 14838test $ac_write_fail = 0 || 14839 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14840 14841 14842# configure is writing to config.log, and then calls config.status. 14843# config.status does its own redirection, appending to config.log. 14844# Unfortunately, on DOS this fails, as config.log is still kept open 14845# by configure, so config.status won't be able to write to it; its 14846# output is simply discarded. So we exec the FD to /dev/null, 14847# effectively closing config.log, so it can be properly (re)opened and 14848# appended to by config.status. When coming back to configure, we 14849# need to make the FD available again. 14850if test "$no_create" != yes; then 14851 ac_cs_success=: 14852 ac_config_status_args= 14853 test "$silent" = yes && 14854 ac_config_status_args="$ac_config_status_args --quiet" 14855 exec 5>/dev/null 14856 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14857 exec 5>>config.log 14858 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14859 # would make configure fail if this is the last instruction. 14860 $ac_cs_success || as_fn_exit 1 14861fi 14862if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14864$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14865fi 14866 14867