1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libosip2 5.3.0. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='libosip2' 589PACKAGE_TARNAME='libosip2' 590PACKAGE_VERSION='5.3.0' 591PACKAGE_STRING='libosip2 5.3.0' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="include/osip2/osip.h" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636FSM_LIB 637PARSER_LIB 638EXTRA_LIB 639SIP_FSM_FLAGS 640SIP_PARSER_FLAGS 641SIP_EXTRA_FLAGS 642SIP_CFLAGS 643BUILD_MAXSIZE_FALSE 644BUILD_MAXSIZE_TRUE 645COMPILE_TESTS_FALSE 646COMPILE_TESTS_TRUE 647BUILD_MT_FALSE 648BUILD_MT_TRUE 649PTHREAD_CFLAGS 650PTHREAD_LIBS 651PTHREAD_CC 652ax_pthread_config 653LT_SYS_LIBRARY_PATH 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 673LIBTOOL 674SED 675CPP 676am__fastdepCC_FALSE 677am__fastdepCC_TRUE 678CCDEPMODE 679am__nodep 680AMDEPBACKSLASH 681AMDEP_FALSE 682AMDEP_TRUE 683am__include 684DEPDIR 685OBJEXT 686EXEEXT 687ac_ct_CC 688CPPFLAGS 689LDFLAGS 690CFLAGS 691CC 692host_os 693host_vendor 694host_cpu 695host 696build_os 697build_vendor 698build_cpu 699build 700AM_BACKSLASH 701AM_DEFAULT_VERBOSITY 702AM_DEFAULT_V 703AM_V 704am__untar 705am__tar 706AMTAR 707am__leading_dot 708SET_MAKE 709AWK 710mkdir_p 711MKDIR_P 712INSTALL_STRIP_PROGRAM 713STRIP 714install_sh 715MAKEINFO 716AUTOHEADER 717AUTOMAKE 718AUTOCONF 719ACLOCAL 720VERSION 721PACKAGE 722CYGPATH_W 723am__isrc 724INSTALL_DATA 725INSTALL_SCRIPT 726INSTALL_PROGRAM 727OSIP_VERSION 728LIBOSIP_SO_VERSION 729target_alias 730host_alias 731build_alias 732LIBS 733ECHO_T 734ECHO_N 735ECHO_C 736DEFS 737mandir 738localedir 739libdir 740psdir 741pdfdir 742dvidir 743htmldir 744infodir 745docdir 746oldincludedir 747includedir 748runstatedir 749localstatedir 750sharedstatedir 751sysconfdir 752datadir 753datarootdir 754libexecdir 755sbindir 756bindir 757program_transform_name 758prefix 759exec_prefix 760PACKAGE_URL 761PACKAGE_BUGREPORT 762PACKAGE_STRING 763PACKAGE_VERSION 764PACKAGE_TARNAME 765PACKAGE_NAME 766PATH_SEPARATOR 767SHELL 768am__quote' 769ac_subst_files='' 770ac_user_opts=' 771enable_option_checking 772enable_silent_rules 773enable_dependency_tracking 774enable_shared 775enable_static 776with_pic 777enable_fast_install 778with_aix_soname 779with_gnu_ld 780with_sysroot 781enable_libtool_lock 782enable_mpatrol 783enable_gprof 784enable_trace 785enable_minisize 786enable_pthread 787enable_semaphore 788enable_gperf 789enable_hashtable 790enable_mt 791enable_test 792' 793 ac_precious_vars='build_alias 794host_alias 795target_alias 796CC 797CFLAGS 798LDFLAGS 799LIBS 800CPPFLAGS 801CPP 802LT_SYS_LIBRARY_PATH' 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' 841runstatedir='${localstatedir}/run' 842includedir='${prefix}/include' 843oldincludedir='/usr/include' 844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 845infodir='${datarootdir}/info' 846htmldir='${docdir}' 847dvidir='${docdir}' 848pdfdir='${docdir}' 849psdir='${docdir}' 850libdir='${exec_prefix}/lib' 851localedir='${datarootdir}/locale' 852mandir='${datarootdir}/man' 853 854ac_prev= 855ac_dashdash= 856for ac_option 857do 858 # If the previous option needs an argument, assign it. 859 if test -n "$ac_prev"; then 860 eval $ac_prev=\$ac_option 861 ac_prev= 862 continue 863 fi 864 865 case $ac_option in 866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 867 *=) ac_optarg= ;; 868 *) ac_optarg=yes ;; 869 esac 870 871 # Accept the important Cygnus configure options, so we can diagnose typos. 872 873 case $ac_dashdash$ac_option in 874 --) 875 ac_dashdash=yes ;; 876 877 -bindir | --bindir | --bindi | --bind | --bin | --bi) 878 ac_prev=bindir ;; 879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 880 bindir=$ac_optarg ;; 881 882 -build | --build | --buil | --bui | --bu) 883 ac_prev=build_alias ;; 884 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 885 build_alias=$ac_optarg ;; 886 887 -cache-file | --cache-file | --cache-fil | --cache-fi \ 888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 889 ac_prev=cache_file ;; 890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 892 cache_file=$ac_optarg ;; 893 894 --config-cache | -C) 895 cache_file=config.cache ;; 896 897 -datadir | --datadir | --datadi | --datad) 898 ac_prev=datadir ;; 899 -datadir=* | --datadir=* | --datadi=* | --datad=*) 900 datadir=$ac_optarg ;; 901 902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 903 | --dataroo | --dataro | --datar) 904 ac_prev=datarootdir ;; 905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 907 datarootdir=$ac_optarg ;; 908 909 -disable-* | --disable-*) 910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 911 # Reject names that are not valid shell variable names. 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 913 as_fn_error $? "invalid feature name: $ac_useropt" 914 ac_useropt_orig=$ac_useropt 915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 916 case $ac_user_opts in 917 *" 918"enable_$ac_useropt" 919"*) ;; 920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 921 ac_unrecognized_sep=', ';; 922 esac 923 eval enable_$ac_useropt=no ;; 924 925 -docdir | --docdir | --docdi | --doc | --do) 926 ac_prev=docdir ;; 927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 928 docdir=$ac_optarg ;; 929 930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 931 ac_prev=dvidir ;; 932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 933 dvidir=$ac_optarg ;; 934 935 -enable-* | --enable-*) 936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 937 # Reject names that are not valid shell variable names. 938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 939 as_fn_error $? "invalid feature name: $ac_useropt" 940 ac_useropt_orig=$ac_useropt 941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 942 case $ac_user_opts in 943 *" 944"enable_$ac_useropt" 945"*) ;; 946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 947 ac_unrecognized_sep=', ';; 948 esac 949 eval enable_$ac_useropt=\$ac_optarg ;; 950 951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 953 | --exec | --exe | --ex) 954 ac_prev=exec_prefix ;; 955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 957 | --exec=* | --exe=* | --ex=*) 958 exec_prefix=$ac_optarg ;; 959 960 -gas | --gas | --ga | --g) 961 # Obsolete; use --with-gas. 962 with_gas=yes ;; 963 964 -help | --help | --hel | --he | -h) 965 ac_init_help=long ;; 966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 967 ac_init_help=recursive ;; 968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 969 ac_init_help=short ;; 970 971 -host | --host | --hos | --ho) 972 ac_prev=host_alias ;; 973 -host=* | --host=* | --hos=* | --ho=*) 974 host_alias=$ac_optarg ;; 975 976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 977 ac_prev=htmldir ;; 978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 979 | --ht=*) 980 htmldir=$ac_optarg ;; 981 982 -includedir | --includedir | --includedi | --included | --include \ 983 | --includ | --inclu | --incl | --inc) 984 ac_prev=includedir ;; 985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 986 | --includ=* | --inclu=* | --incl=* | --inc=*) 987 includedir=$ac_optarg ;; 988 989 -infodir | --infodir | --infodi | --infod | --info | --inf) 990 ac_prev=infodir ;; 991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 992 infodir=$ac_optarg ;; 993 994 -libdir | --libdir | --libdi | --libd) 995 ac_prev=libdir ;; 996 -libdir=* | --libdir=* | --libdi=* | --libd=*) 997 libdir=$ac_optarg ;; 998 999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1000 | --libexe | --libex | --libe) 1001 ac_prev=libexecdir ;; 1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1003 | --libexe=* | --libex=* | --libe=*) 1004 libexecdir=$ac_optarg ;; 1005 1006 -localedir | --localedir | --localedi | --localed | --locale) 1007 ac_prev=localedir ;; 1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1009 localedir=$ac_optarg ;; 1010 1011 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1012 | --localstate | --localstat | --localsta | --localst | --locals) 1013 ac_prev=localstatedir ;; 1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1016 localstatedir=$ac_optarg ;; 1017 1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1019 ac_prev=mandir ;; 1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1021 mandir=$ac_optarg ;; 1022 1023 -nfp | --nfp | --nf) 1024 # Obsolete; use --without-fp. 1025 with_fp=no ;; 1026 1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1028 | --no-cr | --no-c | -n) 1029 no_create=yes ;; 1030 1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1033 no_recursion=yes ;; 1034 1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1037 | --oldin | --oldi | --old | --ol | --o) 1038 ac_prev=oldincludedir ;; 1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1042 oldincludedir=$ac_optarg ;; 1043 1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1045 ac_prev=prefix ;; 1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1047 prefix=$ac_optarg ;; 1048 1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1050 | --program-pre | --program-pr | --program-p) 1051 ac_prev=program_prefix ;; 1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1054 program_prefix=$ac_optarg ;; 1055 1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1057 | --program-suf | --program-su | --program-s) 1058 ac_prev=program_suffix ;; 1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1061 program_suffix=$ac_optarg ;; 1062 1063 -program-transform-name | --program-transform-name \ 1064 | --program-transform-nam | --program-transform-na \ 1065 | --program-transform-n | --program-transform- \ 1066 | --program-transform | --program-transfor \ 1067 | --program-transfo | --program-transf \ 1068 | --program-trans | --program-tran \ 1069 | --progr-tra | --program-tr | --program-t) 1070 ac_prev=program_transform_name ;; 1071 -program-transform-name=* | --program-transform-name=* \ 1072 | --program-transform-nam=* | --program-transform-na=* \ 1073 | --program-transform-n=* | --program-transform-=* \ 1074 | --program-transform=* | --program-transfor=* \ 1075 | --program-transfo=* | --program-transf=* \ 1076 | --program-trans=* | --program-tran=* \ 1077 | --progr-tra=* | --program-tr=* | --program-t=*) 1078 program_transform_name=$ac_optarg ;; 1079 1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1081 ac_prev=pdfdir ;; 1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1083 pdfdir=$ac_optarg ;; 1084 1085 -psdir | --psdir | --psdi | --psd | --ps) 1086 ac_prev=psdir ;; 1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1088 psdir=$ac_optarg ;; 1089 1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1091 | -silent | --silent | --silen | --sile | --sil) 1092 silent=yes ;; 1093 1094 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1095 | --runstate | --runstat | --runsta | --runst | --runs \ 1096 | --run | --ru | --r) 1097 ac_prev=runstatedir ;; 1098 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1099 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1100 | --run=* | --ru=* | --r=*) 1101 runstatedir=$ac_optarg ;; 1102 1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1104 ac_prev=sbindir ;; 1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1106 | --sbi=* | --sb=*) 1107 sbindir=$ac_optarg ;; 1108 1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1111 | --sharedst | --shareds | --shared | --share | --shar \ 1112 | --sha | --sh) 1113 ac_prev=sharedstatedir ;; 1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1117 | --sha=* | --sh=*) 1118 sharedstatedir=$ac_optarg ;; 1119 1120 -site | --site | --sit) 1121 ac_prev=site ;; 1122 -site=* | --site=* | --sit=*) 1123 site=$ac_optarg ;; 1124 1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1126 ac_prev=srcdir ;; 1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1128 srcdir=$ac_optarg ;; 1129 1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1131 | --syscon | --sysco | --sysc | --sys | --sy) 1132 ac_prev=sysconfdir ;; 1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1135 sysconfdir=$ac_optarg ;; 1136 1137 -target | --target | --targe | --targ | --tar | --ta | --t) 1138 ac_prev=target_alias ;; 1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1140 target_alias=$ac_optarg ;; 1141 1142 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1143 verbose=yes ;; 1144 1145 -version | --version | --versio | --versi | --vers | -V) 1146 ac_init_version=: ;; 1147 1148 -with-* | --with-*) 1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152 as_fn_error $? "invalid package name: $ac_useropt" 1153 ac_useropt_orig=$ac_useropt 1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1155 case $ac_user_opts in 1156 *" 1157"with_$ac_useropt" 1158"*) ;; 1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1160 ac_unrecognized_sep=', ';; 1161 esac 1162 eval with_$ac_useropt=\$ac_optarg ;; 1163 1164 -without-* | --without-*) 1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1166 # Reject names that are not valid shell variable names. 1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1168 as_fn_error $? "invalid package name: $ac_useropt" 1169 ac_useropt_orig=$ac_useropt 1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1171 case $ac_user_opts in 1172 *" 1173"with_$ac_useropt" 1174"*) ;; 1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1176 ac_unrecognized_sep=', ';; 1177 esac 1178 eval with_$ac_useropt=no ;; 1179 1180 --x) 1181 # Obsolete; use --with-x. 1182 with_x=yes ;; 1183 1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1185 | --x-incl | --x-inc | --x-in | --x-i) 1186 ac_prev=x_includes ;; 1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1189 x_includes=$ac_optarg ;; 1190 1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1193 ac_prev=x_libraries ;; 1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1196 x_libraries=$ac_optarg ;; 1197 1198 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1199Try \`$0 --help' for more information" 1200 ;; 1201 1202 *=*) 1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1204 # Reject names that are not valid shell variable names. 1205 case $ac_envvar in #( 1206 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1208 esac 1209 eval $ac_envvar=\$ac_optarg 1210 export $ac_envvar ;; 1211 1212 *) 1213 # FIXME: should be removed in autoconf 3.0. 1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1218 ;; 1219 1220 esac 1221done 1222 1223if test -n "$ac_prev"; then 1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1225 as_fn_error $? "missing argument to $ac_option" 1226fi 1227 1228if test -n "$ac_unrecognized_opts"; then 1229 case $enable_option_checking in 1230 no) ;; 1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1233 esac 1234fi 1235 1236# Check all directory arguments for consistency. 1237for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1238 datadir sysconfdir sharedstatedir localstatedir includedir \ 1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1240 libdir localedir mandir runstatedir 1241do 1242 eval ac_val=\$$ac_var 1243 # Remove trailing slashes. 1244 case $ac_val in 1245 */ ) 1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1247 eval $ac_var=\$ac_val;; 1248 esac 1249 # Be sure to have absolute directory names. 1250 case $ac_val in 1251 [\\/$]* | ?:[\\/]* ) continue;; 1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1253 esac 1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1255done 1256 1257# There might be people who depend on the old broken behavior: `$host' 1258# used to hold the argument of --host etc. 1259# FIXME: To remove some day. 1260build=$build_alias 1261host=$host_alias 1262target=$target_alias 1263 1264# FIXME: To remove some day. 1265if test "x$host_alias" != x; then 1266 if test "x$build_alias" = x; then 1267 cross_compiling=maybe 1268 elif test "x$build_alias" != "x$host_alias"; then 1269 cross_compiling=yes 1270 fi 1271fi 1272 1273ac_tool_prefix= 1274test -n "$host_alias" && ac_tool_prefix=$host_alias- 1275 1276test "$silent" = yes && exec 6>/dev/null 1277 1278 1279ac_pwd=`pwd` && test -n "$ac_pwd" && 1280ac_ls_di=`ls -di .` && 1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1282 as_fn_error $? "working directory cannot be determined" 1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1284 as_fn_error $? "pwd does not report name of working directory" 1285 1286 1287# Find the source files, if location was not specified. 1288if test -z "$srcdir"; then 1289 ac_srcdir_defaulted=yes 1290 # Try the directory containing this script, then the parent directory. 1291 ac_confdir=`$as_dirname -- "$as_myself" || 1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1293 X"$as_myself" : 'X\(//\)[^/]' \| \ 1294 X"$as_myself" : 'X\(//\)$' \| \ 1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1296$as_echo X"$as_myself" | 1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\/\)[^/].*/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\/\)$/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\).*/{ 1310 s//\1/ 1311 q 1312 } 1313 s/.*/./; q'` 1314 srcdir=$ac_confdir 1315 if test ! -r "$srcdir/$ac_unique_file"; then 1316 srcdir=.. 1317 fi 1318else 1319 ac_srcdir_defaulted=no 1320fi 1321if test ! -r "$srcdir/$ac_unique_file"; then 1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1324fi 1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1326ac_abs_confdir=`( 1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1328 pwd)` 1329# When building in place, set srcdir=. 1330if test "$ac_abs_confdir" = "$ac_pwd"; then 1331 srcdir=. 1332fi 1333# Remove unnecessary trailing slashes from srcdir. 1334# Double slashes in file names in object file debugging info 1335# mess up M-x gdb in Emacs. 1336case $srcdir in 1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1338esac 1339for ac_var in $ac_precious_vars; do 1340 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_env_${ac_var}_value=\$${ac_var} 1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1343 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1344done 1345 1346# 1347# Report the --help message. 1348# 1349if test "$ac_init_help" = "long"; then 1350 # Omit some internal or obsolete options to make the list less imposing. 1351 # This message is too long to be a string in the A/UX 3.1 sh. 1352 cat <<_ACEOF 1353\`configure' configures libosip2 5.3.0 to adapt to many kinds of systems. 1354 1355Usage: $0 [OPTION]... [VAR=VALUE]... 1356 1357To assign environment variables (e.g., CC, CFLAGS...), specify them as 1358VAR=VALUE. See below for descriptions of some of the useful variables. 1359 1360Defaults for the options are specified in brackets. 1361 1362Configuration: 1363 -h, --help display this help and exit 1364 --help=short display options specific to this package 1365 --help=recursive display the short help of all the included packages 1366 -V, --version display version information and exit 1367 -q, --quiet, --silent do not print \`checking ...' messages 1368 --cache-file=FILE cache test results in FILE [disabled] 1369 -C, --config-cache alias for \`--cache-file=config.cache' 1370 -n, --no-create do not create output files 1371 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1372 1373Installation directories: 1374 --prefix=PREFIX install architecture-independent files in PREFIX 1375 [$ac_default_prefix] 1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1377 [PREFIX] 1378 1379By default, \`make install' will install all the files in 1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1381an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1382for instance \`--prefix=\$HOME'. 1383 1384For better control, use the options below. 1385 1386Fine tuning of the installation directories: 1387 --bindir=DIR user executables [EPREFIX/bin] 1388 --sbindir=DIR system admin executables [EPREFIX/sbin] 1389 --libexecdir=DIR program executables [EPREFIX/libexec] 1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1393 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1394 --libdir=DIR object code libraries [EPREFIX/lib] 1395 --includedir=DIR C header files [PREFIX/include] 1396 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1399 --infodir=DIR info documentation [DATAROOTDIR/info] 1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1401 --mandir=DIR man documentation [DATAROOTDIR/man] 1402 --docdir=DIR documentation root [DATAROOTDIR/doc/libosip2] 1403 --htmldir=DIR html documentation [DOCDIR] 1404 --dvidir=DIR dvi documentation [DOCDIR] 1405 --pdfdir=DIR pdf documentation [DOCDIR] 1406 --psdir=DIR ps documentation [DOCDIR] 1407_ACEOF 1408 1409 cat <<\_ACEOF 1410 1411Program names: 1412 --program-prefix=PREFIX prepend PREFIX to installed program names 1413 --program-suffix=SUFFIX append SUFFIX to installed program names 1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1415 1416System types: 1417 --build=BUILD configure for building on BUILD [guessed] 1418 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1419_ACEOF 1420fi 1421 1422if test -n "$ac_init_help"; then 1423 case $ac_init_help in 1424 short | recursive ) echo "Configuration of libosip2 5.3.0:";; 1425 esac 1426 cat <<\_ACEOF 1427 1428Optional Features: 1429 --disable-option-checking ignore unrecognized --enable/--with options 1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1432 --enable-silent-rules less verbose build output (undo: "make V=1") 1433 --disable-silent-rules verbose build output (undo: "make V=0") 1434 --enable-dependency-tracking 1435 do not reject slow dependency extractors 1436 --disable-dependency-tracking 1437 speeds up one-time build 1438 --enable-shared[=PKGS] build shared libraries [default=yes] 1439 --enable-static[=PKGS] build static libraries [default=yes] 1440 --enable-fast-install[=PKGS] 1441 optimize for fast installation [default=yes] 1442 --disable-libtool-lock avoid locking (might break parallel builds) 1443 --enable-mpatrol turn on memory leak detection with patrol 1444 [default=no] 1445 --enable-gprof turn on profiling support [default=no] 1446 --enable-trace turn on trace [default=yes] 1447 --enable-minisize only compile minimal voip related code [default=no] 1448 --enable-pthread=[autodetect|force] 1449 autodetect POSIX threads or force -DHAVE_PTHREAD 1450 [default=autodetect] 1451 --enable-semaphore=[autodetect|semaphore|sysv] 1452 select your prefered semaphore [default=autodetect]. 1453 --enable-gperf enable support for gperf (improve the parser speed) 1454 [default=no] 1455 --enable-hashtable compile with hashtable (libdict) support 1456 [default=no] 1457 --enable-mt compile with multi-thread support [default=yes] 1458 --enable-test enable building test programs [default=no] 1459 1460Optional Packages: 1461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1463 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1464 both] 1465 --with-aix-soname=aix|svr4|both 1466 shared library versioning (aka "SONAME") variant to 1467 provide on AIX, [default=aix]. 1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1469 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1470 compiler's sysroot if not specified). 1471 1472Some influential environment variables: 1473 CC C compiler command 1474 CFLAGS C compiler flags 1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1476 nonstandard directory <lib dir> 1477 LIBS libraries to pass to the linker, e.g. -l<library> 1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1479 you have headers in a nonstandard directory <include dir> 1480 CPP C preprocessor 1481 LT_SYS_LIBRARY_PATH 1482 User-defined run-time library search path. 1483 1484Use these variables to override the choices made by `configure' or to help 1485it to find libraries and programs with nonstandard names/locations. 1486 1487Report bugs to the package provider. 1488_ACEOF 1489ac_status=$? 1490fi 1491 1492if test "$ac_init_help" = "recursive"; then 1493 # If there are subdirs, report their specific --help. 1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1495 test -d "$ac_dir" || 1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1497 continue 1498 ac_builddir=. 1499 1500case "$ac_dir" in 1501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502*) 1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1504 # A ".." for each directory in $ac_dir_suffix. 1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1506 case $ac_top_builddir_sub in 1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1509 esac ;; 1510esac 1511ac_abs_top_builddir=$ac_pwd 1512ac_abs_builddir=$ac_pwd$ac_dir_suffix 1513# for backward compatibility: 1514ac_top_builddir=$ac_top_build_prefix 1515 1516case $srcdir in 1517 .) # We are building in place. 1518 ac_srcdir=. 1519 ac_top_srcdir=$ac_top_builddir_sub 1520 ac_abs_top_srcdir=$ac_pwd ;; 1521 [\\/]* | ?:[\\/]* ) # Absolute name. 1522 ac_srcdir=$srcdir$ac_dir_suffix; 1523 ac_top_srcdir=$srcdir 1524 ac_abs_top_srcdir=$srcdir ;; 1525 *) # Relative name. 1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1527 ac_top_srcdir=$ac_top_build_prefix$srcdir 1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1529esac 1530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1531 1532 cd "$ac_dir" || { ac_status=$?; continue; } 1533 # Check for guested configure. 1534 if test -f "$ac_srcdir/configure.gnu"; then 1535 echo && 1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1537 elif test -f "$ac_srcdir/configure"; then 1538 echo && 1539 $SHELL "$ac_srcdir/configure" --help=recursive 1540 else 1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1542 fi || ac_status=$? 1543 cd "$ac_pwd" || { ac_status=$?; break; } 1544 done 1545fi 1546 1547test -n "$ac_init_help" && exit $ac_status 1548if $ac_init_version; then 1549 cat <<\_ACEOF 1550libosip2 configure 5.3.0 1551generated by GNU Autoconf 2.69 1552 1553Copyright (C) 2012 Free Software Foundation, Inc. 1554This configure script is free software; the Free Software Foundation 1555gives unlimited permission to copy, distribute and modify it. 1556_ACEOF 1557 exit 1558fi 1559 1560## ------------------------ ## 1561## Autoconf initialization. ## 1562## ------------------------ ## 1563 1564# ac_fn_c_try_compile LINENO 1565# -------------------------- 1566# Try to compile conftest.$ac_ext, and return whether this succeeded. 1567ac_fn_c_try_compile () 1568{ 1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1570 rm -f conftest.$ac_objext 1571 if { { ac_try="$ac_compile" 1572case "(($ac_try" in 1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1574 *) ac_try_echo=$ac_try;; 1575esac 1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1577$as_echo "$ac_try_echo"; } >&5 1578 (eval "$ac_compile") 2>conftest.err 1579 ac_status=$? 1580 if test -s conftest.err; then 1581 grep -v '^ *+' conftest.err >conftest.er1 1582 cat conftest.er1 >&5 1583 mv -f conftest.er1 conftest.err 1584 fi 1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1586 test $ac_status = 0; } && { 1587 test -z "$ac_c_werror_flag" || 1588 test ! -s conftest.err 1589 } && test -s conftest.$ac_objext; then : 1590 ac_retval=0 1591else 1592 $as_echo "$as_me: failed program was:" >&5 1593sed 's/^/| /' conftest.$ac_ext >&5 1594 1595 ac_retval=1 1596fi 1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1598 as_fn_set_status $ac_retval 1599 1600} # ac_fn_c_try_compile 1601 1602# ac_fn_c_try_cpp LINENO 1603# ---------------------- 1604# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1605ac_fn_c_try_cpp () 1606{ 1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1608 if { { ac_try="$ac_cpp conftest.$ac_ext" 1609case "(($ac_try" in 1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1611 *) ac_try_echo=$ac_try;; 1612esac 1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1614$as_echo "$ac_try_echo"; } >&5 1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1616 ac_status=$? 1617 if test -s conftest.err; then 1618 grep -v '^ *+' conftest.err >conftest.er1 1619 cat conftest.er1 >&5 1620 mv -f conftest.er1 conftest.err 1621 fi 1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1623 test $ac_status = 0; } > conftest.i && { 1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1625 test ! -s conftest.err 1626 }; then : 1627 ac_retval=0 1628else 1629 $as_echo "$as_me: failed program was:" >&5 1630sed 's/^/| /' conftest.$ac_ext >&5 1631 1632 ac_retval=1 1633fi 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1635 as_fn_set_status $ac_retval 1636 1637} # ac_fn_c_try_cpp 1638 1639# ac_fn_c_try_link LINENO 1640# ----------------------- 1641# Try to link conftest.$ac_ext, and return whether this succeeded. 1642ac_fn_c_try_link () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 rm -f conftest.$ac_objext conftest$ac_exeext 1646 if { { ac_try="$ac_link" 1647case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650esac 1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652$as_echo "$ac_try_echo"; } >&5 1653 (eval "$ac_link") 2>conftest.err 1654 ac_status=$? 1655 if test -s conftest.err; then 1656 grep -v '^ *+' conftest.err >conftest.er1 1657 cat conftest.er1 >&5 1658 mv -f conftest.er1 conftest.err 1659 fi 1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 test $ac_status = 0; } && { 1662 test -z "$ac_c_werror_flag" || 1663 test ! -s conftest.err 1664 } && test -s conftest$ac_exeext && { 1665 test "$cross_compiling" = yes || 1666 test -x conftest$ac_exeext 1667 }; then : 1668 ac_retval=0 1669else 1670 $as_echo "$as_me: failed program was:" >&5 1671sed 's/^/| /' conftest.$ac_ext >&5 1672 1673 ac_retval=1 1674fi 1675 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1676 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1677 # interfere with the next link command; also delete a directory that is 1678 # left behind by Apple's compiler. We do this before executing the actions. 1679 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 as_fn_set_status $ac_retval 1682 1683} # ac_fn_c_try_link 1684 1685# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1686# ------------------------------------------------------- 1687# Tests whether HEADER exists and can be compiled using the include files in 1688# INCLUDES, setting the cache variable VAR accordingly. 1689ac_fn_c_check_header_compile () 1690{ 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1693$as_echo_n "checking for $2... " >&6; } 1694if eval \${$3+:} false; then : 1695 $as_echo_n "(cached) " >&6 1696else 1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1698/* end confdefs.h. */ 1699$4 1700#include <$2> 1701_ACEOF 1702if ac_fn_c_try_compile "$LINENO"; then : 1703 eval "$3=yes" 1704else 1705 eval "$3=no" 1706fi 1707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1708fi 1709eval ac_res=\$$3 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1711$as_echo "$ac_res" >&6; } 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 1714} # ac_fn_c_check_header_compile 1715 1716# ac_fn_c_try_run LINENO 1717# ---------------------- 1718# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1719# that executables *can* be run. 1720ac_fn_c_try_run () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 if { { ac_try="$ac_link" 1724case "(($ac_try" in 1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1726 *) ac_try_echo=$ac_try;; 1727esac 1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1729$as_echo "$ac_try_echo"; } >&5 1730 (eval "$ac_link") 2>&5 1731 ac_status=$? 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1734 { { case "(($ac_try" in 1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1736 *) ac_try_echo=$ac_try;; 1737esac 1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1739$as_echo "$ac_try_echo"; } >&5 1740 (eval "$ac_try") 2>&5 1741 ac_status=$? 1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1743 test $ac_status = 0; }; }; then : 1744 ac_retval=0 1745else 1746 $as_echo "$as_me: program exited with status $ac_status" >&5 1747 $as_echo "$as_me: failed program was:" >&5 1748sed 's/^/| /' conftest.$ac_ext >&5 1749 1750 ac_retval=$ac_status 1751fi 1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1754 as_fn_set_status $ac_retval 1755 1756} # ac_fn_c_try_run 1757 1758# ac_fn_c_check_func LINENO FUNC VAR 1759# ---------------------------------- 1760# Tests whether FUNC exists, setting the cache variable VAR accordingly 1761ac_fn_c_check_func () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1765$as_echo_n "checking for $2... " >&6; } 1766if eval \${$3+:} false; then : 1767 $as_echo_n "(cached) " >&6 1768else 1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1770/* end confdefs.h. */ 1771/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1772 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1773#define $2 innocuous_$2 1774 1775/* System header to define __stub macros and hopefully few prototypes, 1776 which can conflict with char $2 (); below. 1777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1778 <limits.h> exists even on freestanding compilers. */ 1779 1780#ifdef __STDC__ 1781# include <limits.h> 1782#else 1783# include <assert.h> 1784#endif 1785 1786#undef $2 1787 1788/* Override any GCC internal prototype to avoid an error. 1789 Use char because int might match the return type of a GCC 1790 builtin and then its argument prototype would still apply. */ 1791#ifdef __cplusplus 1792extern "C" 1793#endif 1794char $2 (); 1795/* The GNU C library defines this for functions which it implements 1796 to always fail with ENOSYS. Some functions are actually named 1797 something starting with __ and the normal name is an alias. */ 1798#if defined __stub_$2 || defined __stub___$2 1799choke me 1800#endif 1801 1802int 1803main () 1804{ 1805return $2 (); 1806 ; 1807 return 0; 1808} 1809_ACEOF 1810if ac_fn_c_try_link "$LINENO"; then : 1811 eval "$3=yes" 1812else 1813 eval "$3=no" 1814fi 1815rm -f core conftest.err conftest.$ac_objext \ 1816 conftest$ac_exeext conftest.$ac_ext 1817fi 1818eval ac_res=\$$3 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1820$as_echo "$ac_res" >&6; } 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1822 1823} # ac_fn_c_check_func 1824 1825# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1826# ------------------------------------------------------- 1827# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1828# the include files in INCLUDES and setting the cache variable VAR 1829# accordingly. 1830ac_fn_c_check_header_mongrel () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 if eval \${$3+:} false; then : 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1835$as_echo_n "checking for $2... " >&6; } 1836if eval \${$3+:} false; then : 1837 $as_echo_n "(cached) " >&6 1838fi 1839eval ac_res=\$$3 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1841$as_echo "$ac_res" >&6; } 1842else 1843 # Is the header compilable? 1844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1845$as_echo_n "checking $2 usability... " >&6; } 1846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1847/* end confdefs.h. */ 1848$4 1849#include <$2> 1850_ACEOF 1851if ac_fn_c_try_compile "$LINENO"; then : 1852 ac_header_compiler=yes 1853else 1854 ac_header_compiler=no 1855fi 1856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1858$as_echo "$ac_header_compiler" >&6; } 1859 1860# Is the header present? 1861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1862$as_echo_n "checking $2 presence... " >&6; } 1863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1864/* end confdefs.h. */ 1865#include <$2> 1866_ACEOF 1867if ac_fn_c_try_cpp "$LINENO"; then : 1868 ac_header_preproc=yes 1869else 1870 ac_header_preproc=no 1871fi 1872rm -f conftest.err conftest.i conftest.$ac_ext 1873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1874$as_echo "$ac_header_preproc" >&6; } 1875 1876# So? What about this header? 1877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1878 yes:no: ) 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1880$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1882$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1883 ;; 1884 no:yes:* ) 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1886$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1888$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1890$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1892$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1894$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1895 ;; 1896esac 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1898$as_echo_n "checking for $2... " >&6; } 1899if eval \${$3+:} false; then : 1900 $as_echo_n "(cached) " >&6 1901else 1902 eval "$3=\$ac_header_compiler" 1903fi 1904eval ac_res=\$$3 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1906$as_echo "$ac_res" >&6; } 1907fi 1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1909 1910} # ac_fn_c_check_header_mongrel 1911 1912# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1913# ------------------------------------------- 1914# Tests whether TYPE exists after having included INCLUDES, setting cache 1915# variable VAR accordingly. 1916ac_fn_c_check_type () 1917{ 1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1920$as_echo_n "checking for $2... " >&6; } 1921if eval \${$3+:} false; then : 1922 $as_echo_n "(cached) " >&6 1923else 1924 eval "$3=no" 1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1926/* end confdefs.h. */ 1927$4 1928int 1929main () 1930{ 1931if (sizeof ($2)) 1932 return 0; 1933 ; 1934 return 0; 1935} 1936_ACEOF 1937if ac_fn_c_try_compile "$LINENO"; then : 1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1939/* end confdefs.h. */ 1940$4 1941int 1942main () 1943{ 1944if (sizeof (($2))) 1945 return 0; 1946 ; 1947 return 0; 1948} 1949_ACEOF 1950if ac_fn_c_try_compile "$LINENO"; then : 1951 1952else 1953 eval "$3=yes" 1954fi 1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1956fi 1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1958fi 1959eval ac_res=\$$3 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1961$as_echo "$ac_res" >&6; } 1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1963 1964} # ac_fn_c_check_type 1965cat >config.log <<_ACEOF 1966This file contains any messages produced by compilers while 1967running configure, to aid debugging if configure makes a mistake. 1968 1969It was created by libosip2 $as_me 5.3.0, which was 1970generated by GNU Autoconf 2.69. Invocation command line was 1971 1972 $ $0 $@ 1973 1974_ACEOF 1975exec 5>>config.log 1976{ 1977cat <<_ASUNAME 1978## --------- ## 1979## Platform. ## 1980## --------- ## 1981 1982hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1983uname -m = `(uname -m) 2>/dev/null || echo unknown` 1984uname -r = `(uname -r) 2>/dev/null || echo unknown` 1985uname -s = `(uname -s) 2>/dev/null || echo unknown` 1986uname -v = `(uname -v) 2>/dev/null || echo unknown` 1987 1988/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1989/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1990 1991/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1992/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1993/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1994/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1995/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1996/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1997/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1998 1999_ASUNAME 2000 2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2002for as_dir in $PATH 2003do 2004 IFS=$as_save_IFS 2005 test -z "$as_dir" && as_dir=. 2006 $as_echo "PATH: $as_dir" 2007 done 2008IFS=$as_save_IFS 2009 2010} >&5 2011 2012cat >&5 <<_ACEOF 2013 2014 2015## ----------- ## 2016## Core tests. ## 2017## ----------- ## 2018 2019_ACEOF 2020 2021 2022# Keep a trace of the command line. 2023# Strip out --no-create and --no-recursion so they do not pile up. 2024# Strip out --silent because we don't want to record it for future runs. 2025# Also quote any args containing shell meta-characters. 2026# Make two passes to allow for proper duplicate-argument suppression. 2027ac_configure_args= 2028ac_configure_args0= 2029ac_configure_args1= 2030ac_must_keep_next=false 2031for ac_pass in 1 2 2032do 2033 for ac_arg 2034 do 2035 case $ac_arg in 2036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2038 | -silent | --silent | --silen | --sile | --sil) 2039 continue ;; 2040 *\'*) 2041 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2042 esac 2043 case $ac_pass in 2044 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2045 2) 2046 as_fn_append ac_configure_args1 " '$ac_arg'" 2047 if test $ac_must_keep_next = true; then 2048 ac_must_keep_next=false # Got value, back to normal. 2049 else 2050 case $ac_arg in 2051 *=* | --config-cache | -C | -disable-* | --disable-* \ 2052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2054 | -with-* | --with-* | -without-* | --without-* | --x) 2055 case "$ac_configure_args0 " in 2056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2057 esac 2058 ;; 2059 -* ) ac_must_keep_next=true ;; 2060 esac 2061 fi 2062 as_fn_append ac_configure_args " '$ac_arg'" 2063 ;; 2064 esac 2065 done 2066done 2067{ ac_configure_args0=; unset ac_configure_args0;} 2068{ ac_configure_args1=; unset ac_configure_args1;} 2069 2070# When interrupted or exit'd, cleanup temporary files, and complete 2071# config.log. We remove comments because anyway the quotes in there 2072# would cause problems or look ugly. 2073# WARNING: Use '\'' to represent an apostrophe within the trap. 2074# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2075trap 'exit_status=$? 2076 # Save into config.log some information that might help in debugging. 2077 { 2078 echo 2079 2080 $as_echo "## ---------------- ## 2081## Cache variables. ## 2082## ---------------- ##" 2083 echo 2084 # The following way of writing the cache mishandles newlines in values, 2085( 2086 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2087 eval ac_val=\$$ac_var 2088 case $ac_val in #( 2089 *${as_nl}*) 2090 case $ac_var in #( 2091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2092$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2093 esac 2094 case $ac_var in #( 2095 _ | IFS | as_nl) ;; #( 2096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2097 *) { eval $ac_var=; unset $ac_var;} ;; 2098 esac ;; 2099 esac 2100 done 2101 (set) 2>&1 | 2102 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2103 *${as_nl}ac_space=\ *) 2104 sed -n \ 2105 "s/'\''/'\''\\\\'\'''\''/g; 2106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2107 ;; #( 2108 *) 2109 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2110 ;; 2111 esac | 2112 sort 2113) 2114 echo 2115 2116 $as_echo "## ----------------- ## 2117## Output variables. ## 2118## ----------------- ##" 2119 echo 2120 for ac_var in $ac_subst_vars 2121 do 2122 eval ac_val=\$$ac_var 2123 case $ac_val in 2124 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2125 esac 2126 $as_echo "$ac_var='\''$ac_val'\''" 2127 done | sort 2128 echo 2129 2130 if test -n "$ac_subst_files"; then 2131 $as_echo "## ------------------- ## 2132## File substitutions. ## 2133## ------------------- ##" 2134 echo 2135 for ac_var in $ac_subst_files 2136 do 2137 eval ac_val=\$$ac_var 2138 case $ac_val in 2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2140 esac 2141 $as_echo "$ac_var='\''$ac_val'\''" 2142 done | sort 2143 echo 2144 fi 2145 2146 if test -s confdefs.h; then 2147 $as_echo "## ----------- ## 2148## confdefs.h. ## 2149## ----------- ##" 2150 echo 2151 cat confdefs.h 2152 echo 2153 fi 2154 test "$ac_signal" != 0 && 2155 $as_echo "$as_me: caught signal $ac_signal" 2156 $as_echo "$as_me: exit $exit_status" 2157 } >&5 2158 rm -f core *.core core.conftest.* && 2159 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2160 exit $exit_status 2161' 0 2162for ac_signal in 1 2 13 15; do 2163 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2164done 2165ac_signal=0 2166 2167# confdefs.h avoids OS command line length limits that DEFS can exceed. 2168rm -f -r conftest* confdefs.h 2169 2170$as_echo "/* confdefs.h */" > confdefs.h 2171 2172# Predefined preprocessor variables. 2173 2174cat >>confdefs.h <<_ACEOF 2175#define PACKAGE_NAME "$PACKAGE_NAME" 2176_ACEOF 2177 2178cat >>confdefs.h <<_ACEOF 2179#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2180_ACEOF 2181 2182cat >>confdefs.h <<_ACEOF 2183#define PACKAGE_VERSION "$PACKAGE_VERSION" 2184_ACEOF 2185 2186cat >>confdefs.h <<_ACEOF 2187#define PACKAGE_STRING "$PACKAGE_STRING" 2188_ACEOF 2189 2190cat >>confdefs.h <<_ACEOF 2191#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2192_ACEOF 2193 2194cat >>confdefs.h <<_ACEOF 2195#define PACKAGE_URL "$PACKAGE_URL" 2196_ACEOF 2197 2198 2199# Let the site file select an alternate cache file if it wants to. 2200# Prefer an explicitly selected file to automatically selected ones. 2201ac_site_file1=NONE 2202ac_site_file2=NONE 2203if test -n "$CONFIG_SITE"; then 2204 # We do not want a PATH search for config.site. 2205 case $CONFIG_SITE in #(( 2206 -*) ac_site_file1=./$CONFIG_SITE;; 2207 */*) ac_site_file1=$CONFIG_SITE;; 2208 *) ac_site_file1=./$CONFIG_SITE;; 2209 esac 2210elif test "x$prefix" != xNONE; then 2211 ac_site_file1=$prefix/share/config.site 2212 ac_site_file2=$prefix/etc/config.site 2213else 2214 ac_site_file1=$ac_default_prefix/share/config.site 2215 ac_site_file2=$ac_default_prefix/etc/config.site 2216fi 2217for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2218do 2219 test "x$ac_site_file" = xNONE && continue 2220 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2222$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2223 sed 's/^/| /' "$ac_site_file" >&5 2224 . "$ac_site_file" \ 2225 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2227as_fn_error $? "failed to load site script $ac_site_file 2228See \`config.log' for more details" "$LINENO" 5; } 2229 fi 2230done 2231 2232if test -r "$cache_file"; then 2233 # Some versions of bash will fail to source /dev/null (special files 2234 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2235 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2237$as_echo "$as_me: loading cache $cache_file" >&6;} 2238 case $cache_file in 2239 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2240 *) . "./$cache_file";; 2241 esac 2242 fi 2243else 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2245$as_echo "$as_me: creating cache $cache_file" >&6;} 2246 >$cache_file 2247fi 2248 2249# Check that the precious variables saved in the cache have kept the same 2250# value. 2251ac_cache_corrupted=false 2252for ac_var in $ac_precious_vars; do 2253 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2254 eval ac_new_set=\$ac_env_${ac_var}_set 2255 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2256 eval ac_new_val=\$ac_env_${ac_var}_value 2257 case $ac_old_set,$ac_new_set in 2258 set,) 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2260$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2261 ac_cache_corrupted=: ;; 2262 ,set) 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2264$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2265 ac_cache_corrupted=: ;; 2266 ,);; 2267 *) 2268 if test "x$ac_old_val" != "x$ac_new_val"; then 2269 # differences in whitespace do not lead to failure. 2270 ac_old_val_w=`echo x $ac_old_val` 2271 ac_new_val_w=`echo x $ac_new_val` 2272 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2274$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2275 ac_cache_corrupted=: 2276 else 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2278$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2279 eval $ac_var=\$ac_old_val 2280 fi 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2282$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2284$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2285 fi;; 2286 esac 2287 # Pass precious variables to config.status. 2288 if test "$ac_new_set" = set; then 2289 case $ac_new_val in 2290 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2291 *) ac_arg=$ac_var=$ac_new_val ;; 2292 esac 2293 case " $ac_configure_args " in 2294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2295 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2296 esac 2297 fi 2298done 2299if $ac_cache_corrupted; then 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2303$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2304 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2305fi 2306## -------------------- ## 2307## Main body of script. ## 2308## -------------------- ## 2309 2310ac_ext=c 2311ac_cpp='$CPP $CPPFLAGS' 2312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2314ac_compiler_gnu=$ac_cv_c_compiler_gnu 2315 2316 2317 2318 2319{ $as_echo "$as_me:${as_lineno-$LINENO}: libosip2 The GNU Open SIP library." >&5 2320$as_echo "$as_me: libosip2 The GNU Open SIP library." >&6;} 2321{ $as_echo "$as_me:${as_lineno-$LINENO}: Copyright (C) 2001-2021 Aymeric MOIZARD - <amoizard@antisip.com>" >&5 2322$as_echo "$as_me: Copyright (C) 2001-2021 Aymeric MOIZARD - <amoizard@antisip.com>" >&6;} 2323 2324#‘current[:revision[:age]]’. So, passing -version-info 3:12:1 sets current to 3, revision to 12, and age to 1 2325# 1/ increase revision for every source code change [release] 2326# 2/ increase current for every API/ABI change and revert revision to 0 2327# 3/ always set age to 0 (for public release) 2328LIBOSIP_SO_VERSION=15:0:0 2329 2330OSIP_VERSION=$VERSION 2331 2332 2333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Configuring ${PACKAGE} ${VERSION}" >&5 2334$as_echo "Configuring ${PACKAGE} ${VERSION}" >&6; } 2335OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 2336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building Package on ${OS}" >&5 2337$as_echo "Building Package on ${OS}" >&6; } 2338 2339 2340ac_aux_dir= 2341for ac_dir in scripts "$srcdir"/scripts; do 2342 if test -f "$ac_dir/install-sh"; then 2343 ac_aux_dir=$ac_dir 2344 ac_install_sh="$ac_aux_dir/install-sh -c" 2345 break 2346 elif test -f "$ac_dir/install.sh"; then 2347 ac_aux_dir=$ac_dir 2348 ac_install_sh="$ac_aux_dir/install.sh -c" 2349 break 2350 elif test -f "$ac_dir/shtool"; then 2351 ac_aux_dir=$ac_dir 2352 ac_install_sh="$ac_aux_dir/shtool install -c" 2353 break 2354 fi 2355done 2356if test -z "$ac_aux_dir"; then 2357 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5 2358fi 2359 2360# These three variables are undocumented and unsupported, 2361# and are intended to be withdrawn in a future Autoconf release. 2362# They can cause serious problems if a builder's source tree is in a directory 2363# whose full name contains unusual characters. 2364ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2365ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2366ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2367 2368 2369ac_config_headers="$ac_config_headers osip-config.h" 2370 2371am__api_version='1.16' 2372 2373# Find a good install program. We prefer a C program (faster), 2374# so one script is as good as another. But avoid the broken or 2375# incompatible versions: 2376# SysV /etc/install, /usr/sbin/install 2377# SunOS /usr/etc/install 2378# IRIX /sbin/install 2379# AIX /bin/install 2380# AmigaOS /C/install, which installs bootblocks on floppy discs 2381# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2382# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2383# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2384# OS/2's system install, which has a completely different semantic 2385# ./install, which can be erroneously created by make from ./install.sh. 2386# Reject install programs that cannot install multiple files. 2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2388$as_echo_n "checking for a BSD-compatible install... " >&6; } 2389if test -z "$INSTALL"; then 2390if ${ac_cv_path_install+:} false; then : 2391 $as_echo_n "(cached) " >&6 2392else 2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2394for as_dir in $PATH 2395do 2396 IFS=$as_save_IFS 2397 test -z "$as_dir" && as_dir=. 2398 # Account for people who put trailing slashes in PATH elements. 2399case $as_dir/ in #(( 2400 ./ | .// | /[cC]/* | \ 2401 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2402 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2403 /usr/ucb/* ) ;; 2404 *) 2405 # OSF1 and SCO ODT 3.0 have their own names for install. 2406 # Don't use installbsd from OSF since it installs stuff as root 2407 # by default. 2408 for ac_prog in ginstall scoinst install; do 2409 for ac_exec_ext in '' $ac_executable_extensions; do 2410 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2411 if test $ac_prog = install && 2412 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2413 # AIX install. It has an incompatible calling convention. 2414 : 2415 elif test $ac_prog = install && 2416 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2417 # program-specific install script used by HP pwplus--don't use. 2418 : 2419 else 2420 rm -rf conftest.one conftest.two conftest.dir 2421 echo one > conftest.one 2422 echo two > conftest.two 2423 mkdir conftest.dir 2424 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2425 test -s conftest.one && test -s conftest.two && 2426 test -s conftest.dir/conftest.one && 2427 test -s conftest.dir/conftest.two 2428 then 2429 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2430 break 3 2431 fi 2432 fi 2433 fi 2434 done 2435 done 2436 ;; 2437esac 2438 2439 done 2440IFS=$as_save_IFS 2441 2442rm -rf conftest.one conftest.two conftest.dir 2443 2444fi 2445 if test "${ac_cv_path_install+set}" = set; then 2446 INSTALL=$ac_cv_path_install 2447 else 2448 # As a last resort, use the slow shell script. Don't cache a 2449 # value for INSTALL within a source directory, because that will 2450 # break other packages using the cache if that directory is 2451 # removed, or if the value is a relative name. 2452 INSTALL=$ac_install_sh 2453 fi 2454fi 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2456$as_echo "$INSTALL" >&6; } 2457 2458# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2459# It thinks the first close brace ends the variable substitution. 2460test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2461 2462test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2463 2464test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2465 2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2467$as_echo_n "checking whether build environment is sane... " >&6; } 2468# Reject unsafe characters in $srcdir or the absolute working directory 2469# name. Accept space and tab only in the latter. 2470am_lf=' 2471' 2472case `pwd` in 2473 *[\\\"\#\$\&\'\`$am_lf]*) 2474 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2475esac 2476case $srcdir in 2477 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2478 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2479esac 2480 2481# Do 'set' in a subshell so we don't clobber the current shell's 2482# arguments. Must try -L first in case configure is actually a 2483# symlink; some systems play weird games with the mod time of symlinks 2484# (eg FreeBSD returns the mod time of the symlink's containing 2485# directory). 2486if ( 2487 am_has_slept=no 2488 for am_try in 1 2; do 2489 echo "timestamp, slept: $am_has_slept" > conftest.file 2490 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2491 if test "$*" = "X"; then 2492 # -L didn't work. 2493 set X `ls -t "$srcdir/configure" conftest.file` 2494 fi 2495 if test "$*" != "X $srcdir/configure conftest.file" \ 2496 && test "$*" != "X conftest.file $srcdir/configure"; then 2497 2498 # If neither matched, then we have a broken ls. This can happen 2499 # if, for instance, CONFIG_SHELL is bash and it inherits a 2500 # broken ls alias from the environment. This has actually 2501 # happened. Such a system could not be considered "sane". 2502 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2503 alias in your environment" "$LINENO" 5 2504 fi 2505 if test "$2" = conftest.file || test $am_try -eq 2; then 2506 break 2507 fi 2508 # Just in case. 2509 sleep 1 2510 am_has_slept=yes 2511 done 2512 test "$2" = conftest.file 2513 ) 2514then 2515 # Ok. 2516 : 2517else 2518 as_fn_error $? "newly created file is older than distributed files! 2519Check your system clock" "$LINENO" 5 2520fi 2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2522$as_echo "yes" >&6; } 2523# If we didn't sleep, we still need to ensure time stamps of config.status and 2524# generated files are strictly newer. 2525am_sleep_pid= 2526if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2527 ( sleep 1 ) & 2528 am_sleep_pid=$! 2529fi 2530 2531rm -f conftest.file 2532 2533test "$program_prefix" != NONE && 2534 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2535# Use a double $ so make ignores it. 2536test "$program_suffix" != NONE && 2537 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2538# Double any \ or $. 2539# By default was `s,x,x', remove it if useless. 2540ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2541program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2542 2543# Expand $ac_aux_dir to an absolute path. 2544am_aux_dir=`cd "$ac_aux_dir" && pwd` 2545 2546if test x"${MISSING+set}" != xset; then 2547 case $am_aux_dir in 2548 *\ * | *\ *) 2549 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2550 *) 2551 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2552 esac 2553fi 2554# Use eval to expand $SHELL 2555if eval "$MISSING --is-lightweight"; then 2556 am_missing_run="$MISSING " 2557else 2558 am_missing_run= 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2560$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2561fi 2562 2563if test x"${install_sh+set}" != xset; then 2564 case $am_aux_dir in 2565 *\ * | *\ *) 2566 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2567 *) 2568 install_sh="\${SHELL} $am_aux_dir/install-sh" 2569 esac 2570fi 2571 2572# Installed binaries are usually stripped using 'strip' when the user 2573# run "make install-strip". However 'strip' might not be the right 2574# tool to use in cross-compilation environments, therefore Automake 2575# will honor the 'STRIP' environment variable to overrule this program. 2576if test "$cross_compiling" != no; then 2577 if test -n "$ac_tool_prefix"; then 2578 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2579set dummy ${ac_tool_prefix}strip; ac_word=$2 2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2581$as_echo_n "checking for $ac_word... " >&6; } 2582if ${ac_cv_prog_STRIP+:} false; then : 2583 $as_echo_n "(cached) " >&6 2584else 2585 if test -n "$STRIP"; then 2586 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2587else 2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2595 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599done 2600 done 2601IFS=$as_save_IFS 2602 2603fi 2604fi 2605STRIP=$ac_cv_prog_STRIP 2606if test -n "$STRIP"; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2608$as_echo "$STRIP" >&6; } 2609else 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2611$as_echo "no" >&6; } 2612fi 2613 2614 2615fi 2616if test -z "$ac_cv_prog_STRIP"; then 2617 ac_ct_STRIP=$STRIP 2618 # Extract the first word of "strip", so it can be a program name with args. 2619set dummy strip; ac_word=$2 2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2621$as_echo_n "checking for $ac_word... " >&6; } 2622if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624else 2625 if test -n "$ac_ct_STRIP"; then 2626 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2627else 2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH 2630do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2635 ac_cv_prog_ac_ct_STRIP="strip" 2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2637 break 2 2638 fi 2639done 2640 done 2641IFS=$as_save_IFS 2642 2643fi 2644fi 2645ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2646if test -n "$ac_ct_STRIP"; then 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2648$as_echo "$ac_ct_STRIP" >&6; } 2649else 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2651$as_echo "no" >&6; } 2652fi 2653 2654 if test "x$ac_ct_STRIP" = x; then 2655 STRIP=":" 2656 else 2657 case $cross_compiling:$ac_tool_warned in 2658yes:) 2659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2661ac_tool_warned=yes ;; 2662esac 2663 STRIP=$ac_ct_STRIP 2664 fi 2665else 2666 STRIP="$ac_cv_prog_STRIP" 2667fi 2668 2669fi 2670INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2671 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2673$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2674if test -z "$MKDIR_P"; then 2675 if ${ac_cv_path_mkdir+:} false; then : 2676 $as_echo_n "(cached) " >&6 2677else 2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2679for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2680do 2681 IFS=$as_save_IFS 2682 test -z "$as_dir" && as_dir=. 2683 for ac_prog in mkdir gmkdir; do 2684 for ac_exec_ext in '' $ac_executable_extensions; do 2685 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2686 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2687 'mkdir (GNU coreutils) '* | \ 2688 'mkdir (coreutils) '* | \ 2689 'mkdir (fileutils) '4.1*) 2690 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2691 break 3;; 2692 esac 2693 done 2694 done 2695 done 2696IFS=$as_save_IFS 2697 2698fi 2699 2700 test -d ./--version && rmdir ./--version 2701 if test "${ac_cv_path_mkdir+set}" = set; then 2702 MKDIR_P="$ac_cv_path_mkdir -p" 2703 else 2704 # As a last resort, use the slow shell script. Don't cache a 2705 # value for MKDIR_P within a source directory, because that will 2706 # break other packages using the cache if that directory is 2707 # removed, or if the value is a relative name. 2708 MKDIR_P="$ac_install_sh -d" 2709 fi 2710fi 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2712$as_echo "$MKDIR_P" >&6; } 2713 2714for ac_prog in gawk mawk nawk awk 2715do 2716 # Extract the first word of "$ac_prog", so it can be a program name with args. 2717set dummy $ac_prog; ac_word=$2 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2719$as_echo_n "checking for $ac_word... " >&6; } 2720if ${ac_cv_prog_AWK+:} false; then : 2721 $as_echo_n "(cached) " >&6 2722else 2723 if test -n "$AWK"; then 2724 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2725else 2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2727for as_dir in $PATH 2728do 2729 IFS=$as_save_IFS 2730 test -z "$as_dir" && as_dir=. 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2733 ac_cv_prog_AWK="$ac_prog" 2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737done 2738 done 2739IFS=$as_save_IFS 2740 2741fi 2742fi 2743AWK=$ac_cv_prog_AWK 2744if test -n "$AWK"; then 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2746$as_echo "$AWK" >&6; } 2747else 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2749$as_echo "no" >&6; } 2750fi 2751 2752 2753 test -n "$AWK" && break 2754done 2755 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2757$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2758set x ${MAKE-make} 2759ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2760if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2761 $as_echo_n "(cached) " >&6 2762else 2763 cat >conftest.make <<\_ACEOF 2764SHELL = /bin/sh 2765all: 2766 @echo '@@@%%%=$(MAKE)=@@@%%%' 2767_ACEOF 2768# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2769case `${MAKE-make} -f conftest.make 2>/dev/null` in 2770 *@@@%%%=?*=@@@%%%*) 2771 eval ac_cv_prog_make_${ac_make}_set=yes;; 2772 *) 2773 eval ac_cv_prog_make_${ac_make}_set=no;; 2774esac 2775rm -f conftest.make 2776fi 2777if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2779$as_echo "yes" >&6; } 2780 SET_MAKE= 2781else 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2783$as_echo "no" >&6; } 2784 SET_MAKE="MAKE=${MAKE-make}" 2785fi 2786 2787rm -rf .tst 2>/dev/null 2788mkdir .tst 2>/dev/null 2789if test -d .tst; then 2790 am__leading_dot=. 2791else 2792 am__leading_dot=_ 2793fi 2794rmdir .tst 2>/dev/null 2795 2796# Check whether --enable-silent-rules was given. 2797if test "${enable_silent_rules+set}" = set; then : 2798 enableval=$enable_silent_rules; 2799fi 2800 2801case $enable_silent_rules in # ((( 2802 yes) AM_DEFAULT_VERBOSITY=0;; 2803 no) AM_DEFAULT_VERBOSITY=1;; 2804 *) AM_DEFAULT_VERBOSITY=1;; 2805esac 2806am_make=${MAKE-make} 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2808$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2809if ${am_cv_make_support_nested_variables+:} false; then : 2810 $as_echo_n "(cached) " >&6 2811else 2812 if $as_echo 'TRUE=$(BAR$(V)) 2813BAR0=false 2814BAR1=true 2815V=1 2816am__doit: 2817 @$(TRUE) 2818.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2819 am_cv_make_support_nested_variables=yes 2820else 2821 am_cv_make_support_nested_variables=no 2822fi 2823fi 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2825$as_echo "$am_cv_make_support_nested_variables" >&6; } 2826if test $am_cv_make_support_nested_variables = yes; then 2827 AM_V='$(V)' 2828 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2829else 2830 AM_V=$AM_DEFAULT_VERBOSITY 2831 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2832fi 2833AM_BACKSLASH='\' 2834 2835if test "`cd $srcdir && pwd`" != "`pwd`"; then 2836 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2837 # is not polluted with repeated "-I." 2838 am__isrc=' -I$(srcdir)' 2839 # test to see if srcdir already configured 2840 if test -f $srcdir/config.status; then 2841 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2842 fi 2843fi 2844 2845# test whether we have cygpath 2846if test -z "$CYGPATH_W"; then 2847 if (cygpath --version) >/dev/null 2>/dev/null; then 2848 CYGPATH_W='cygpath -w' 2849 else 2850 CYGPATH_W=echo 2851 fi 2852fi 2853 2854 2855# Define the identity of the package. 2856 PACKAGE='libosip2' 2857 VERSION='5.3.0' 2858 2859 2860cat >>confdefs.h <<_ACEOF 2861#define PACKAGE "$PACKAGE" 2862_ACEOF 2863 2864 2865cat >>confdefs.h <<_ACEOF 2866#define VERSION "$VERSION" 2867_ACEOF 2868 2869# Some tools Automake needs. 2870 2871ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2872 2873 2874AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2875 2876 2877AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2878 2879 2880AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2881 2882 2883MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2884 2885# For better backward compatibility. To be removed once Automake 1.9.x 2886# dies out for good. For more background, see: 2887# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2888# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2889mkdir_p='$(MKDIR_P)' 2890 2891# We need awk for the "check" target (and possibly the TAP driver). The 2892# system "awk" is bad on some platforms. 2893# Always define AMTAR for backward compatibility. Yes, it's still used 2894# in the wild :-( We should find a proper way to deprecate it ... 2895AMTAR='$${TAR-tar}' 2896 2897 2898# We'll loop over all known methods to create a tar archive until one works. 2899_am_tools='gnutar pax cpio none' 2900 2901am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2902 2903 2904 2905 2906 2907 2908# POSIX will say in a future version that running "rm -f" with no argument 2909# is OK; and we want to be able to make that assumption in our Makefile 2910# recipes. So use an aggressive probe to check that the usage we want is 2911# actually supported "in the wild" to an acceptable degree. 2912# See automake bug#10828. 2913# To make any issue more visible, cause the running configure to be aborted 2914# by default if the 'rm' program in use doesn't match our expectations; the 2915# user can still override this though. 2916if rm -f && rm -fr && rm -rf; then : OK; else 2917 cat >&2 <<'END' 2918Oops! 2919 2920Your 'rm' program seems unable to run without file operands specified 2921on the command line, even when the '-f' option is present. This is contrary 2922to the behaviour of most rm programs out there, and not conforming with 2923the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2924 2925Please tell bug-automake@gnu.org about your system, including the value 2926of your $PATH and any error possibly output before this message. This 2927can help us improve future automake versions. 2928 2929END 2930 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2931 echo 'Configuration will proceed anyway, since you have set the' >&2 2932 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2933 echo >&2 2934 else 2935 cat >&2 <<'END' 2936Aborting the configuration process, to ensure you take notice of the issue. 2937 2938You can download and install GNU coreutils to get an 'rm' implementation 2939that behaves properly: <https://www.gnu.org/software/coreutils/>. 2940 2941If you want to complete the configuration process using your problematic 2942'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2943to "yes", and re-run configure. 2944 2945END 2946 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2947 fi 2948fi 2949 2950# Check whether --enable-silent-rules was given. 2951if test "${enable_silent_rules+set}" = set; then : 2952 enableval=$enable_silent_rules; 2953fi 2954 2955case $enable_silent_rules in # ((( 2956 yes) AM_DEFAULT_VERBOSITY=0;; 2957 no) AM_DEFAULT_VERBOSITY=1;; 2958 *) AM_DEFAULT_VERBOSITY=0;; 2959esac 2960am_make=${MAKE-make} 2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2962$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2963if ${am_cv_make_support_nested_variables+:} false; then : 2964 $as_echo_n "(cached) " >&6 2965else 2966 if $as_echo 'TRUE=$(BAR$(V)) 2967BAR0=false 2968BAR1=true 2969V=1 2970am__doit: 2971 @$(TRUE) 2972.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2973 am_cv_make_support_nested_variables=yes 2974else 2975 am_cv_make_support_nested_variables=no 2976fi 2977fi 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2979$as_echo "$am_cv_make_support_nested_variables" >&6; } 2980if test $am_cv_make_support_nested_variables = yes; then 2981 AM_V='$(V)' 2982 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2983else 2984 AM_V=$AM_DEFAULT_VERBOSITY 2985 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2986fi 2987AM_BACKSLASH='\' 2988 2989 2990 2991# Make sure we can run config.sub. 2992$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2993 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2994 2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2996$as_echo_n "checking build system type... " >&6; } 2997if ${ac_cv_build+:} false; then : 2998 $as_echo_n "(cached) " >&6 2999else 3000 ac_build_alias=$build_alias 3001test "x$ac_build_alias" = x && 3002 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3003test "x$ac_build_alias" = x && 3004 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3005ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3006 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3007 3008fi 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3010$as_echo "$ac_cv_build" >&6; } 3011case $ac_cv_build in 3012*-*-*) ;; 3013*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3014esac 3015build=$ac_cv_build 3016ac_save_IFS=$IFS; IFS='-' 3017set x $ac_cv_build 3018shift 3019build_cpu=$1 3020build_vendor=$2 3021shift; shift 3022# Remember, the first character of IFS is used to create $*, 3023# except with old shells: 3024build_os=$* 3025IFS=$ac_save_IFS 3026case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3027 3028 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3030$as_echo_n "checking host system type... " >&6; } 3031if ${ac_cv_host+:} false; then : 3032 $as_echo_n "(cached) " >&6 3033else 3034 if test "x$host_alias" = x; then 3035 ac_cv_host=$ac_cv_build 3036else 3037 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3038 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3039fi 3040 3041fi 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3043$as_echo "$ac_cv_host" >&6; } 3044case $ac_cv_host in 3045*-*-*) ;; 3046*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3047esac 3048host=$ac_cv_host 3049ac_save_IFS=$IFS; IFS='-' 3050set x $ac_cv_host 3051shift 3052host_cpu=$1 3053host_vendor=$2 3054shift; shift 3055# Remember, the first character of IFS is used to create $*, 3056# except with old shells: 3057host_os=$* 3058IFS=$ac_save_IFS 3059case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3060 3061 3062 3063 3064ac_ext=c 3065ac_cpp='$CPP $CPPFLAGS' 3066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3068ac_compiler_gnu=$ac_cv_c_compiler_gnu 3069if test -n "$ac_tool_prefix"; then 3070 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3071set dummy ${ac_tool_prefix}gcc; ac_word=$2 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3073$as_echo_n "checking for $ac_word... " >&6; } 3074if ${ac_cv_prog_CC+:} false; then : 3075 $as_echo_n "(cached) " >&6 3076else 3077 if test -n "$CC"; then 3078 ac_cv_prog_CC="$CC" # Let the user override the test. 3079else 3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3081for as_dir in $PATH 3082do 3083 IFS=$as_save_IFS 3084 test -z "$as_dir" && as_dir=. 3085 for ac_exec_ext in '' $ac_executable_extensions; do 3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3087 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3089 break 2 3090 fi 3091done 3092 done 3093IFS=$as_save_IFS 3094 3095fi 3096fi 3097CC=$ac_cv_prog_CC 3098if test -n "$CC"; then 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3100$as_echo "$CC" >&6; } 3101else 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3103$as_echo "no" >&6; } 3104fi 3105 3106 3107fi 3108if test -z "$ac_cv_prog_CC"; then 3109 ac_ct_CC=$CC 3110 # Extract the first word of "gcc", so it can be a program name with args. 3111set dummy gcc; ac_word=$2 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3113$as_echo_n "checking for $ac_word... " >&6; } 3114if ${ac_cv_prog_ac_ct_CC+:} false; then : 3115 $as_echo_n "(cached) " >&6 3116else 3117 if test -n "$ac_ct_CC"; then 3118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3119else 3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3121for as_dir in $PATH 3122do 3123 IFS=$as_save_IFS 3124 test -z "$as_dir" && as_dir=. 3125 for ac_exec_ext in '' $ac_executable_extensions; do 3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3127 ac_cv_prog_ac_ct_CC="gcc" 3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3129 break 2 3130 fi 3131done 3132 done 3133IFS=$as_save_IFS 3134 3135fi 3136fi 3137ac_ct_CC=$ac_cv_prog_ac_ct_CC 3138if test -n "$ac_ct_CC"; then 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3140$as_echo "$ac_ct_CC" >&6; } 3141else 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3143$as_echo "no" >&6; } 3144fi 3145 3146 if test "x$ac_ct_CC" = x; then 3147 CC="" 3148 else 3149 case $cross_compiling:$ac_tool_warned in 3150yes:) 3151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3153ac_tool_warned=yes ;; 3154esac 3155 CC=$ac_ct_CC 3156 fi 3157else 3158 CC="$ac_cv_prog_CC" 3159fi 3160 3161if test -z "$CC"; then 3162 if test -n "$ac_tool_prefix"; then 3163 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3164set dummy ${ac_tool_prefix}cc; ac_word=$2 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3166$as_echo_n "checking for $ac_word... " >&6; } 3167if ${ac_cv_prog_CC+:} false; then : 3168 $as_echo_n "(cached) " >&6 3169else 3170 if test -n "$CC"; then 3171 ac_cv_prog_CC="$CC" # Let the user override the test. 3172else 3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3174for as_dir in $PATH 3175do 3176 IFS=$as_save_IFS 3177 test -z "$as_dir" && as_dir=. 3178 for ac_exec_ext in '' $ac_executable_extensions; do 3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3180 ac_cv_prog_CC="${ac_tool_prefix}cc" 3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3182 break 2 3183 fi 3184done 3185 done 3186IFS=$as_save_IFS 3187 3188fi 3189fi 3190CC=$ac_cv_prog_CC 3191if test -n "$CC"; then 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3193$as_echo "$CC" >&6; } 3194else 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196$as_echo "no" >&6; } 3197fi 3198 3199 3200 fi 3201fi 3202if test -z "$CC"; then 3203 # Extract the first word of "cc", so it can be a program name with args. 3204set dummy cc; ac_word=$2 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3206$as_echo_n "checking for $ac_word... " >&6; } 3207if ${ac_cv_prog_CC+:} false; then : 3208 $as_echo_n "(cached) " >&6 3209else 3210 if test -n "$CC"; then 3211 ac_cv_prog_CC="$CC" # Let the user override the test. 3212else 3213 ac_prog_rejected=no 3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3215for as_dir in $PATH 3216do 3217 IFS=$as_save_IFS 3218 test -z "$as_dir" && as_dir=. 3219 for ac_exec_ext in '' $ac_executable_extensions; do 3220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3222 ac_prog_rejected=yes 3223 continue 3224 fi 3225 ac_cv_prog_CC="cc" 3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3227 break 2 3228 fi 3229done 3230 done 3231IFS=$as_save_IFS 3232 3233if test $ac_prog_rejected = yes; then 3234 # We found a bogon in the path, so make sure we never use it. 3235 set dummy $ac_cv_prog_CC 3236 shift 3237 if test $# != 0; then 3238 # We chose a different compiler from the bogus one. 3239 # However, it has the same basename, so the bogon will be chosen 3240 # first if we set CC to just the basename; use the full file name. 3241 shift 3242 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3243 fi 3244fi 3245fi 3246fi 3247CC=$ac_cv_prog_CC 3248if test -n "$CC"; then 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3250$as_echo "$CC" >&6; } 3251else 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3253$as_echo "no" >&6; } 3254fi 3255 3256 3257fi 3258if test -z "$CC"; then 3259 if test -n "$ac_tool_prefix"; then 3260 for ac_prog in cl.exe 3261 do 3262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3263set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3265$as_echo_n "checking for $ac_word... " >&6; } 3266if ${ac_cv_prog_CC+:} false; then : 3267 $as_echo_n "(cached) " >&6 3268else 3269 if test -n "$CC"; then 3270 ac_cv_prog_CC="$CC" # Let the user override the test. 3271else 3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3273for as_dir in $PATH 3274do 3275 IFS=$as_save_IFS 3276 test -z "$as_dir" && as_dir=. 3277 for ac_exec_ext in '' $ac_executable_extensions; do 3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3281 break 2 3282 fi 3283done 3284 done 3285IFS=$as_save_IFS 3286 3287fi 3288fi 3289CC=$ac_cv_prog_CC 3290if test -n "$CC"; then 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3292$as_echo "$CC" >&6; } 3293else 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3295$as_echo "no" >&6; } 3296fi 3297 3298 3299 test -n "$CC" && break 3300 done 3301fi 3302if test -z "$CC"; then 3303 ac_ct_CC=$CC 3304 for ac_prog in cl.exe 3305do 3306 # Extract the first word of "$ac_prog", so it can be a program name with args. 3307set dummy $ac_prog; ac_word=$2 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3309$as_echo_n "checking for $ac_word... " >&6; } 3310if ${ac_cv_prog_ac_ct_CC+:} false; then : 3311 $as_echo_n "(cached) " >&6 3312else 3313 if test -n "$ac_ct_CC"; then 3314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3315else 3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3317for as_dir in $PATH 3318do 3319 IFS=$as_save_IFS 3320 test -z "$as_dir" && as_dir=. 3321 for ac_exec_ext in '' $ac_executable_extensions; do 3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3323 ac_cv_prog_ac_ct_CC="$ac_prog" 3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3325 break 2 3326 fi 3327done 3328 done 3329IFS=$as_save_IFS 3330 3331fi 3332fi 3333ac_ct_CC=$ac_cv_prog_ac_ct_CC 3334if test -n "$ac_ct_CC"; then 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3336$as_echo "$ac_ct_CC" >&6; } 3337else 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3339$as_echo "no" >&6; } 3340fi 3341 3342 3343 test -n "$ac_ct_CC" && break 3344done 3345 3346 if test "x$ac_ct_CC" = x; then 3347 CC="" 3348 else 3349 case $cross_compiling:$ac_tool_warned in 3350yes:) 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3353ac_tool_warned=yes ;; 3354esac 3355 CC=$ac_ct_CC 3356 fi 3357fi 3358 3359fi 3360 3361 3362test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3364as_fn_error $? "no acceptable C compiler found in \$PATH 3365See \`config.log' for more details" "$LINENO" 5; } 3366 3367# Provide some information about the compiler. 3368$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3369set X $ac_compile 3370ac_compiler=$2 3371for ac_option in --version -v -V -qversion; do 3372 { { ac_try="$ac_compiler $ac_option >&5" 3373case "(($ac_try" in 3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3375 *) ac_try_echo=$ac_try;; 3376esac 3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3378$as_echo "$ac_try_echo"; } >&5 3379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3380 ac_status=$? 3381 if test -s conftest.err; then 3382 sed '10a\ 3383... rest of stderr output deleted ... 3384 10q' conftest.err >conftest.er1 3385 cat conftest.er1 >&5 3386 fi 3387 rm -f conftest.er1 conftest.err 3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3389 test $ac_status = 0; } 3390done 3391 3392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3393/* end confdefs.h. */ 3394 3395int 3396main () 3397{ 3398 3399 ; 3400 return 0; 3401} 3402_ACEOF 3403ac_clean_files_save=$ac_clean_files 3404ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3405# Try to create an executable without -o first, disregard a.out. 3406# It will help us diagnose broken compilers, and finding out an intuition 3407# of exeext. 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3409$as_echo_n "checking whether the C compiler works... " >&6; } 3410ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3411 3412# The possible output files: 3413ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3414 3415ac_rmfiles= 3416for ac_file in $ac_files 3417do 3418 case $ac_file in 3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3420 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3421 esac 3422done 3423rm -f $ac_rmfiles 3424 3425if { { ac_try="$ac_link_default" 3426case "(($ac_try" in 3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3428 *) ac_try_echo=$ac_try;; 3429esac 3430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3431$as_echo "$ac_try_echo"; } >&5 3432 (eval "$ac_link_default") 2>&5 3433 ac_status=$? 3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3435 test $ac_status = 0; }; then : 3436 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3437# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3438# in a Makefile. We should not override ac_cv_exeext if it was cached, 3439# so that the user can short-circuit this test for compilers unknown to 3440# Autoconf. 3441for ac_file in $ac_files '' 3442do 3443 test -f "$ac_file" || continue 3444 case $ac_file in 3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3446 ;; 3447 [ab].out ) 3448 # We found the default executable, but exeext='' is most 3449 # certainly right. 3450 break;; 3451 *.* ) 3452 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3453 then :; else 3454 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3455 fi 3456 # We set ac_cv_exeext here because the later test for it is not 3457 # safe: cross compilers may not add the suffix if given an `-o' 3458 # argument, so we may need to know it at that point already. 3459 # Even if this section looks crufty: it has the advantage of 3460 # actually working. 3461 break;; 3462 * ) 3463 break;; 3464 esac 3465done 3466test "$ac_cv_exeext" = no && ac_cv_exeext= 3467 3468else 3469 ac_file='' 3470fi 3471if test -z "$ac_file"; then : 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3473$as_echo "no" >&6; } 3474$as_echo "$as_me: failed program was:" >&5 3475sed 's/^/| /' conftest.$ac_ext >&5 3476 3477{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3479as_fn_error 77 "C compiler cannot create executables 3480See \`config.log' for more details" "$LINENO" 5; } 3481else 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3483$as_echo "yes" >&6; } 3484fi 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3486$as_echo_n "checking for C compiler default output file name... " >&6; } 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3488$as_echo "$ac_file" >&6; } 3489ac_exeext=$ac_cv_exeext 3490 3491rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3492ac_clean_files=$ac_clean_files_save 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3494$as_echo_n "checking for suffix of executables... " >&6; } 3495if { { ac_try="$ac_link" 3496case "(($ac_try" in 3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3498 *) ac_try_echo=$ac_try;; 3499esac 3500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3501$as_echo "$ac_try_echo"; } >&5 3502 (eval "$ac_link") 2>&5 3503 ac_status=$? 3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3505 test $ac_status = 0; }; then : 3506 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3507# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3508# work properly (i.e., refer to `conftest.exe'), while it won't with 3509# `rm'. 3510for ac_file in conftest.exe conftest conftest.*; do 3511 test -f "$ac_file" || continue 3512 case $ac_file in 3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3514 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3515 break;; 3516 * ) break;; 3517 esac 3518done 3519else 3520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3522as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3523See \`config.log' for more details" "$LINENO" 5; } 3524fi 3525rm -f conftest conftest$ac_cv_exeext 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3527$as_echo "$ac_cv_exeext" >&6; } 3528 3529rm -f conftest.$ac_ext 3530EXEEXT=$ac_cv_exeext 3531ac_exeext=$EXEEXT 3532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3533/* end confdefs.h. */ 3534#include <stdio.h> 3535int 3536main () 3537{ 3538FILE *f = fopen ("conftest.out", "w"); 3539 return ferror (f) || fclose (f) != 0; 3540 3541 ; 3542 return 0; 3543} 3544_ACEOF 3545ac_clean_files="$ac_clean_files conftest.out" 3546# Check that the compiler produces executables we can run. If not, either 3547# the compiler is broken, or we cross compile. 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3549$as_echo_n "checking whether we are cross compiling... " >&6; } 3550if test "$cross_compiling" != yes; then 3551 { { ac_try="$ac_link" 3552case "(($ac_try" in 3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3554 *) ac_try_echo=$ac_try;; 3555esac 3556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3557$as_echo "$ac_try_echo"; } >&5 3558 (eval "$ac_link") 2>&5 3559 ac_status=$? 3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3561 test $ac_status = 0; } 3562 if { ac_try='./conftest$ac_cv_exeext' 3563 { { case "(($ac_try" in 3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3565 *) ac_try_echo=$ac_try;; 3566esac 3567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3568$as_echo "$ac_try_echo"; } >&5 3569 (eval "$ac_try") 2>&5 3570 ac_status=$? 3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3572 test $ac_status = 0; }; }; then 3573 cross_compiling=no 3574 else 3575 if test "$cross_compiling" = maybe; then 3576 cross_compiling=yes 3577 else 3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3580as_fn_error $? "cannot run C compiled programs. 3581If you meant to cross compile, use \`--host'. 3582See \`config.log' for more details" "$LINENO" 5; } 3583 fi 3584 fi 3585fi 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3587$as_echo "$cross_compiling" >&6; } 3588 3589rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3590ac_clean_files=$ac_clean_files_save 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3592$as_echo_n "checking for suffix of object files... " >&6; } 3593if ${ac_cv_objext+:} false; then : 3594 $as_echo_n "(cached) " >&6 3595else 3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3597/* end confdefs.h. */ 3598 3599int 3600main () 3601{ 3602 3603 ; 3604 return 0; 3605} 3606_ACEOF 3607rm -f conftest.o conftest.obj 3608if { { ac_try="$ac_compile" 3609case "(($ac_try" in 3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3611 *) ac_try_echo=$ac_try;; 3612esac 3613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3614$as_echo "$ac_try_echo"; } >&5 3615 (eval "$ac_compile") 2>&5 3616 ac_status=$? 3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3618 test $ac_status = 0; }; then : 3619 for ac_file in conftest.o conftest.obj conftest.*; do 3620 test -f "$ac_file" || continue; 3621 case $ac_file in 3622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3623 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3624 break;; 3625 esac 3626done 3627else 3628 $as_echo "$as_me: failed program was:" >&5 3629sed 's/^/| /' conftest.$ac_ext >&5 3630 3631{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3633as_fn_error $? "cannot compute suffix of object files: cannot compile 3634See \`config.log' for more details" "$LINENO" 5; } 3635fi 3636rm -f conftest.$ac_cv_objext conftest.$ac_ext 3637fi 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3639$as_echo "$ac_cv_objext" >&6; } 3640OBJEXT=$ac_cv_objext 3641ac_objext=$OBJEXT 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3643$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3644if ${ac_cv_c_compiler_gnu+:} false; then : 3645 $as_echo_n "(cached) " >&6 3646else 3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3648/* end confdefs.h. */ 3649 3650int 3651main () 3652{ 3653#ifndef __GNUC__ 3654 choke me 3655#endif 3656 3657 ; 3658 return 0; 3659} 3660_ACEOF 3661if ac_fn_c_try_compile "$LINENO"; then : 3662 ac_compiler_gnu=yes 3663else 3664 ac_compiler_gnu=no 3665fi 3666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3667ac_cv_c_compiler_gnu=$ac_compiler_gnu 3668 3669fi 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3671$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3672if test $ac_compiler_gnu = yes; then 3673 GCC=yes 3674else 3675 GCC= 3676fi 3677ac_test_CFLAGS=${CFLAGS+set} 3678ac_save_CFLAGS=$CFLAGS 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3680$as_echo_n "checking whether $CC accepts -g... " >&6; } 3681if ${ac_cv_prog_cc_g+:} false; then : 3682 $as_echo_n "(cached) " >&6 3683else 3684 ac_save_c_werror_flag=$ac_c_werror_flag 3685 ac_c_werror_flag=yes 3686 ac_cv_prog_cc_g=no 3687 CFLAGS="-g" 3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3689/* end confdefs.h. */ 3690 3691int 3692main () 3693{ 3694 3695 ; 3696 return 0; 3697} 3698_ACEOF 3699if ac_fn_c_try_compile "$LINENO"; then : 3700 ac_cv_prog_cc_g=yes 3701else 3702 CFLAGS="" 3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3704/* end confdefs.h. */ 3705 3706int 3707main () 3708{ 3709 3710 ; 3711 return 0; 3712} 3713_ACEOF 3714if ac_fn_c_try_compile "$LINENO"; then : 3715 3716else 3717 ac_c_werror_flag=$ac_save_c_werror_flag 3718 CFLAGS="-g" 3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3720/* end confdefs.h. */ 3721 3722int 3723main () 3724{ 3725 3726 ; 3727 return 0; 3728} 3729_ACEOF 3730if ac_fn_c_try_compile "$LINENO"; then : 3731 ac_cv_prog_cc_g=yes 3732fi 3733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3734fi 3735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3736fi 3737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3738 ac_c_werror_flag=$ac_save_c_werror_flag 3739fi 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3741$as_echo "$ac_cv_prog_cc_g" >&6; } 3742if test "$ac_test_CFLAGS" = set; then 3743 CFLAGS=$ac_save_CFLAGS 3744elif test $ac_cv_prog_cc_g = yes; then 3745 if test "$GCC" = yes; then 3746 CFLAGS="-g -O2" 3747 else 3748 CFLAGS="-g" 3749 fi 3750else 3751 if test "$GCC" = yes; then 3752 CFLAGS="-O2" 3753 else 3754 CFLAGS= 3755 fi 3756fi 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3758$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3759if ${ac_cv_prog_cc_c89+:} false; then : 3760 $as_echo_n "(cached) " >&6 3761else 3762 ac_cv_prog_cc_c89=no 3763ac_save_CC=$CC 3764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3765/* end confdefs.h. */ 3766#include <stdarg.h> 3767#include <stdio.h> 3768struct stat; 3769/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3770struct buf { int x; }; 3771FILE * (*rcsopen) (struct buf *, struct stat *, int); 3772static char *e (p, i) 3773 char **p; 3774 int i; 3775{ 3776 return p[i]; 3777} 3778static char *f (char * (*g) (char **, int), char **p, ...) 3779{ 3780 char *s; 3781 va_list v; 3782 va_start (v,p); 3783 s = g (p, va_arg (v,int)); 3784 va_end (v); 3785 return s; 3786} 3787 3788/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3789 function prototypes and stuff, but not '\xHH' hex character constants. 3790 These don't provoke an error unfortunately, instead are silently treated 3791 as 'x'. The following induces an error, until -std is added to get 3792 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3793 array size at least. It's necessary to write '\x00'==0 to get something 3794 that's true only with -std. */ 3795int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3796 3797/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3798 inside strings and character constants. */ 3799#define FOO(x) 'x' 3800int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3801 3802int test (int i, double x); 3803struct s1 {int (*f) (int a);}; 3804struct s2 {int (*f) (double a);}; 3805int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3806int argc; 3807char **argv; 3808int 3809main () 3810{ 3811return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3817 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3818do 3819 CC="$ac_save_CC $ac_arg" 3820 if ac_fn_c_try_compile "$LINENO"; then : 3821 ac_cv_prog_cc_c89=$ac_arg 3822fi 3823rm -f core conftest.err conftest.$ac_objext 3824 test "x$ac_cv_prog_cc_c89" != "xno" && break 3825done 3826rm -f conftest.$ac_ext 3827CC=$ac_save_CC 3828 3829fi 3830# AC_CACHE_VAL 3831case "x$ac_cv_prog_cc_c89" in 3832 x) 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3834$as_echo "none needed" >&6; } ;; 3835 xno) 3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3837$as_echo "unsupported" >&6; } ;; 3838 *) 3839 CC="$CC $ac_cv_prog_cc_c89" 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3841$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3842esac 3843if test "x$ac_cv_prog_cc_c89" != xno; then : 3844 3845fi 3846 3847ac_ext=c 3848ac_cpp='$CPP $CPPFLAGS' 3849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3851ac_compiler_gnu=$ac_cv_c_compiler_gnu 3852 3853ac_ext=c 3854ac_cpp='$CPP $CPPFLAGS' 3855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3857ac_compiler_gnu=$ac_cv_c_compiler_gnu 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3859$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3860if ${am_cv_prog_cc_c_o+:} false; then : 3861 $as_echo_n "(cached) " >&6 3862else 3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3864/* end confdefs.h. */ 3865 3866int 3867main () 3868{ 3869 3870 ; 3871 return 0; 3872} 3873_ACEOF 3874 # Make sure it works both with $CC and with simple cc. 3875 # Following AC_PROG_CC_C_O, we do the test twice because some 3876 # compilers refuse to overwrite an existing .o file with -o, 3877 # though they will create one. 3878 am_cv_prog_cc_c_o=yes 3879 for am_i in 1 2; do 3880 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3881 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3882 ac_status=$? 3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3884 (exit $ac_status); } \ 3885 && test -f conftest2.$ac_objext; then 3886 : OK 3887 else 3888 am_cv_prog_cc_c_o=no 3889 break 3890 fi 3891 done 3892 rm -f core conftest* 3893 unset am_i 3894fi 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3896$as_echo "$am_cv_prog_cc_c_o" >&6; } 3897if test "$am_cv_prog_cc_c_o" != yes; then 3898 # Losing compiler, so override with the script. 3899 # FIXME: It is wrong to rewrite CC. 3900 # But if we don't then we get into trouble of one sort or another. 3901 # A longer-term fix would be to have automake use am__CC in this case, 3902 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3903 CC="$am_aux_dir/compile $CC" 3904fi 3905ac_ext=c 3906ac_cpp='$CPP $CPPFLAGS' 3907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3909ac_compiler_gnu=$ac_cv_c_compiler_gnu 3910 3911DEPDIR="${am__leading_dot}deps" 3912 3913ac_config_commands="$ac_config_commands depfiles" 3914 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3916$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3917cat > confinc.mk << 'END' 3918am__doit: 3919 @echo this is the am__doit target >confinc.out 3920.PHONY: am__doit 3921END 3922am__include="#" 3923am__quote= 3924# BSD make does it like this. 3925echo '.include "confinc.mk" # ignored' > confmf.BSD 3926# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3927echo 'include confinc.mk # ignored' > confmf.GNU 3928_am_result=no 3929for s in GNU BSD; do 3930 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3931 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3932 ac_status=$? 3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3934 (exit $ac_status); } 3935 case $?:`cat confinc.out 2>/dev/null` in #( 3936 '0:this is the am__doit target') : 3937 case $s in #( 3938 BSD) : 3939 am__include='.include' am__quote='"' ;; #( 3940 *) : 3941 am__include='include' am__quote='' ;; 3942esac ;; #( 3943 *) : 3944 ;; 3945esac 3946 if test "$am__include" != "#"; then 3947 _am_result="yes ($s style)" 3948 break 3949 fi 3950done 3951rm -f confinc.* confmf.* 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3953$as_echo "${_am_result}" >&6; } 3954 3955# Check whether --enable-dependency-tracking was given. 3956if test "${enable_dependency_tracking+set}" = set; then : 3957 enableval=$enable_dependency_tracking; 3958fi 3959 3960if test "x$enable_dependency_tracking" != xno; then 3961 am_depcomp="$ac_aux_dir/depcomp" 3962 AMDEPBACKSLASH='\' 3963 am__nodep='_no' 3964fi 3965 if test "x$enable_dependency_tracking" != xno; then 3966 AMDEP_TRUE= 3967 AMDEP_FALSE='#' 3968else 3969 AMDEP_TRUE='#' 3970 AMDEP_FALSE= 3971fi 3972 3973 3974 3975depcc="$CC" am_compiler_list= 3976 3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3978$as_echo_n "checking dependency style of $depcc... " >&6; } 3979if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3980 $as_echo_n "(cached) " >&6 3981else 3982 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3983 # We make a subdir and do the tests there. Otherwise we can end up 3984 # making bogus files that we don't know about and never remove. For 3985 # instance it was reported that on HP-UX the gcc test will end up 3986 # making a dummy file named 'D' -- because '-MD' means "put the output 3987 # in D". 3988 rm -rf conftest.dir 3989 mkdir conftest.dir 3990 # Copy depcomp to subdir because otherwise we won't find it if we're 3991 # using a relative directory. 3992 cp "$am_depcomp" conftest.dir 3993 cd conftest.dir 3994 # We will build objects and dependencies in a subdirectory because 3995 # it helps to detect inapplicable dependency modes. For instance 3996 # both Tru64's cc and ICC support -MD to output dependencies as a 3997 # side effect of compilation, but ICC will put the dependencies in 3998 # the current directory while Tru64 will put them in the object 3999 # directory. 4000 mkdir sub 4001 4002 am_cv_CC_dependencies_compiler_type=none 4003 if test "$am_compiler_list" = ""; then 4004 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4005 fi 4006 am__universal=false 4007 case " $depcc " in #( 4008 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4009 esac 4010 4011 for depmode in $am_compiler_list; do 4012 # Setup a source with many dependencies, because some compilers 4013 # like to wrap large dependency lists on column 80 (with \), and 4014 # we should not choose a depcomp mode which is confused by this. 4015 # 4016 # We need to recreate these files for each test, as the compiler may 4017 # overwrite some of them when testing with obscure command lines. 4018 # This happens at least with the AIX C compiler. 4019 : > sub/conftest.c 4020 for i in 1 2 3 4 5 6; do 4021 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4022 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4023 # Solaris 10 /bin/sh. 4024 echo '/* dummy */' > sub/conftst$i.h 4025 done 4026 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4027 4028 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4029 # mode. It turns out that the SunPro C++ compiler does not properly 4030 # handle '-M -o', and we need to detect this. Also, some Intel 4031 # versions had trouble with output in subdirs. 4032 am__obj=sub/conftest.${OBJEXT-o} 4033 am__minus_obj="-o $am__obj" 4034 case $depmode in 4035 gcc) 4036 # This depmode causes a compiler race in universal mode. 4037 test "$am__universal" = false || continue 4038 ;; 4039 nosideeffect) 4040 # After this tag, mechanisms are not by side-effect, so they'll 4041 # only be used when explicitly requested. 4042 if test "x$enable_dependency_tracking" = xyes; then 4043 continue 4044 else 4045 break 4046 fi 4047 ;; 4048 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4049 # This compiler won't grok '-c -o', but also, the minuso test has 4050 # not run yet. These depmodes are late enough in the game, and 4051 # so weak that their functioning should not be impacted. 4052 am__obj=conftest.${OBJEXT-o} 4053 am__minus_obj= 4054 ;; 4055 none) break ;; 4056 esac 4057 if depmode=$depmode \ 4058 source=sub/conftest.c object=$am__obj \ 4059 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4060 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4061 >/dev/null 2>conftest.err && 4062 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4063 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4064 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4065 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4066 # icc doesn't choke on unknown options, it will just issue warnings 4067 # or remarks (even with -Werror). So we grep stderr for any message 4068 # that says an option was ignored or not supported. 4069 # When given -MP, icc 7.0 and 7.1 complain thusly: 4070 # icc: Command line warning: ignoring option '-M'; no argument required 4071 # The diagnosis changed in icc 8.0: 4072 # icc: Command line remark: option '-MP' not supported 4073 if (grep 'ignoring option' conftest.err || 4074 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4075 am_cv_CC_dependencies_compiler_type=$depmode 4076 break 4077 fi 4078 fi 4079 done 4080 4081 cd .. 4082 rm -rf conftest.dir 4083else 4084 am_cv_CC_dependencies_compiler_type=none 4085fi 4086 4087fi 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4089$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4090CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4091 4092 if 4093 test "x$enable_dependency_tracking" != xno \ 4094 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4095 am__fastdepCC_TRUE= 4096 am__fastdepCC_FALSE='#' 4097else 4098 am__fastdepCC_TRUE='#' 4099 am__fastdepCC_FALSE= 4100fi 4101 4102 4103ac_ext=c 4104ac_cpp='$CPP $CPPFLAGS' 4105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4107ac_compiler_gnu=$ac_cv_c_compiler_gnu 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4109$as_echo_n "checking how to run the C preprocessor... " >&6; } 4110# On Suns, sometimes $CPP names a directory. 4111if test -n "$CPP" && test -d "$CPP"; then 4112 CPP= 4113fi 4114if test -z "$CPP"; then 4115 if ${ac_cv_prog_CPP+:} false; then : 4116 $as_echo_n "(cached) " >&6 4117else 4118 # Double quotes because CPP needs to be expanded 4119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4120 do 4121 ac_preproc_ok=false 4122for ac_c_preproc_warn_flag in '' yes 4123do 4124 # Use a header file that comes with gcc, so configuring glibc 4125 # with a fresh cross-compiler works. 4126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4127 # <limits.h> exists even on freestanding compilers. 4128 # On the NeXT, cc -E runs the code through the compiler's parser, 4129 # not just through cpp. "Syntax error" is here to catch this case. 4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4131/* end confdefs.h. */ 4132#ifdef __STDC__ 4133# include <limits.h> 4134#else 4135# include <assert.h> 4136#endif 4137 Syntax error 4138_ACEOF 4139if ac_fn_c_try_cpp "$LINENO"; then : 4140 4141else 4142 # Broken: fails on valid input. 4143continue 4144fi 4145rm -f conftest.err conftest.i conftest.$ac_ext 4146 4147 # OK, works on sane cases. Now check whether nonexistent headers 4148 # can be detected and how. 4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4150/* end confdefs.h. */ 4151#include <ac_nonexistent.h> 4152_ACEOF 4153if ac_fn_c_try_cpp "$LINENO"; then : 4154 # Broken: success on invalid input. 4155continue 4156else 4157 # Passes both tests. 4158ac_preproc_ok=: 4159break 4160fi 4161rm -f conftest.err conftest.i conftest.$ac_ext 4162 4163done 4164# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4165rm -f conftest.i conftest.err conftest.$ac_ext 4166if $ac_preproc_ok; then : 4167 break 4168fi 4169 4170 done 4171 ac_cv_prog_CPP=$CPP 4172 4173fi 4174 CPP=$ac_cv_prog_CPP 4175else 4176 ac_cv_prog_CPP=$CPP 4177fi 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4179$as_echo "$CPP" >&6; } 4180ac_preproc_ok=false 4181for ac_c_preproc_warn_flag in '' yes 4182do 4183 # Use a header file that comes with gcc, so configuring glibc 4184 # with a fresh cross-compiler works. 4185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4186 # <limits.h> exists even on freestanding compilers. 4187 # On the NeXT, cc -E runs the code through the compiler's parser, 4188 # not just through cpp. "Syntax error" is here to catch this case. 4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190/* end confdefs.h. */ 4191#ifdef __STDC__ 4192# include <limits.h> 4193#else 4194# include <assert.h> 4195#endif 4196 Syntax error 4197_ACEOF 4198if ac_fn_c_try_cpp "$LINENO"; then : 4199 4200else 4201 # Broken: fails on valid input. 4202continue 4203fi 4204rm -f conftest.err conftest.i conftest.$ac_ext 4205 4206 # OK, works on sane cases. Now check whether nonexistent headers 4207 # can be detected and how. 4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4209/* end confdefs.h. */ 4210#include <ac_nonexistent.h> 4211_ACEOF 4212if ac_fn_c_try_cpp "$LINENO"; then : 4213 # Broken: success on invalid input. 4214continue 4215else 4216 # Passes both tests. 4217ac_preproc_ok=: 4218break 4219fi 4220rm -f conftest.err conftest.i conftest.$ac_ext 4221 4222done 4223# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4224rm -f conftest.i conftest.err conftest.$ac_ext 4225if $ac_preproc_ok; then : 4226 4227else 4228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4230as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4231See \`config.log' for more details" "$LINENO" 5; } 4232fi 4233 4234ac_ext=c 4235ac_cpp='$CPP $CPPFLAGS' 4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4238ac_compiler_gnu=$ac_cv_c_compiler_gnu 4239 4240 4241 4242 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4244$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4245if ${ac_cv_path_SED+:} false; then : 4246 $as_echo_n "(cached) " >&6 4247else 4248 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4249 for ac_i in 1 2 3 4 5 6 7; do 4250 ac_script="$ac_script$as_nl$ac_script" 4251 done 4252 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4253 { ac_script=; unset ac_script;} 4254 if test -z "$SED"; then 4255 ac_path_SED_found=false 4256 # Loop through the user's path and test for each of PROGNAME-LIST 4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4258for as_dir in $PATH 4259do 4260 IFS=$as_save_IFS 4261 test -z "$as_dir" && as_dir=. 4262 for ac_prog in sed gsed; do 4263 for ac_exec_ext in '' $ac_executable_extensions; do 4264 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4265 as_fn_executable_p "$ac_path_SED" || continue 4266# Check for GNU ac_path_SED and select it if it is found. 4267 # Check for GNU $ac_path_SED 4268case `"$ac_path_SED" --version 2>&1` in 4269*GNU*) 4270 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4271*) 4272 ac_count=0 4273 $as_echo_n 0123456789 >"conftest.in" 4274 while : 4275 do 4276 cat "conftest.in" "conftest.in" >"conftest.tmp" 4277 mv "conftest.tmp" "conftest.in" 4278 cp "conftest.in" "conftest.nl" 4279 $as_echo '' >> "conftest.nl" 4280 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4282 as_fn_arith $ac_count + 1 && ac_count=$as_val 4283 if test $ac_count -gt ${ac_path_SED_max-0}; then 4284 # Best one so far, save it but keep looking for a better one 4285 ac_cv_path_SED="$ac_path_SED" 4286 ac_path_SED_max=$ac_count 4287 fi 4288 # 10*(2^10) chars as input seems more than enough 4289 test $ac_count -gt 10 && break 4290 done 4291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4292esac 4293 4294 $ac_path_SED_found && break 3 4295 done 4296 done 4297 done 4298IFS=$as_save_IFS 4299 if test -z "$ac_cv_path_SED"; then 4300 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4301 fi 4302else 4303 ac_cv_path_SED=$SED 4304fi 4305 4306fi 4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4308$as_echo "$ac_cv_path_SED" >&6; } 4309 SED="$ac_cv_path_SED" 4310 rm -f conftest.sed 4311 4312case `pwd` in 4313 *\ * | *\ *) 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4315$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4316esac 4317 4318 4319 4320macro_version='2.4.6' 4321macro_revision='2.4.6' 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335ltmain=$ac_aux_dir/ltmain.sh 4336 4337# Backslashify metacharacters that are still active within 4338# double-quoted strings. 4339sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4340 4341# Same as above, but do not quote variable references. 4342double_quote_subst='s/\(["`\\]\)/\\\1/g' 4343 4344# Sed substitution to delay expansion of an escaped shell variable in a 4345# double_quote_subst'ed string. 4346delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4347 4348# Sed substitution to delay expansion of an escaped single quote. 4349delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4350 4351# Sed substitution to avoid accidental globbing in evaled expressions 4352no_glob_subst='s/\*/\\\*/g' 4353 4354ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4355ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4356ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4357 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4359$as_echo_n "checking how to print strings... " >&6; } 4360# Test print first, because it will be a builtin if present. 4361if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4362 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4363 ECHO='print -r --' 4364elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4365 ECHO='printf %s\n' 4366else 4367 # Use this function as a fallback that always works. 4368 func_fallback_echo () 4369 { 4370 eval 'cat <<_LTECHO_EOF 4371$1 4372_LTECHO_EOF' 4373 } 4374 ECHO='func_fallback_echo' 4375fi 4376 4377# func_echo_all arg... 4378# Invoke $ECHO with all args, space-separated. 4379func_echo_all () 4380{ 4381 $ECHO "" 4382} 4383 4384case $ECHO in 4385 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4386$as_echo "printf" >&6; } ;; 4387 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4388$as_echo "print -r" >&6; } ;; 4389 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4390$as_echo "cat" >&6; } ;; 4391esac 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4407$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4408if ${ac_cv_path_SED+:} false; then : 4409 $as_echo_n "(cached) " >&6 4410else 4411 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4412 for ac_i in 1 2 3 4 5 6 7; do 4413 ac_script="$ac_script$as_nl$ac_script" 4414 done 4415 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4416 { ac_script=; unset ac_script;} 4417 if test -z "$SED"; then 4418 ac_path_SED_found=false 4419 # Loop through the user's path and test for each of PROGNAME-LIST 4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4421for as_dir in $PATH 4422do 4423 IFS=$as_save_IFS 4424 test -z "$as_dir" && as_dir=. 4425 for ac_prog in sed gsed; do 4426 for ac_exec_ext in '' $ac_executable_extensions; do 4427 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4428 as_fn_executable_p "$ac_path_SED" || continue 4429# Check for GNU ac_path_SED and select it if it is found. 4430 # Check for GNU $ac_path_SED 4431case `"$ac_path_SED" --version 2>&1` in 4432*GNU*) 4433 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4434*) 4435 ac_count=0 4436 $as_echo_n 0123456789 >"conftest.in" 4437 while : 4438 do 4439 cat "conftest.in" "conftest.in" >"conftest.tmp" 4440 mv "conftest.tmp" "conftest.in" 4441 cp "conftest.in" "conftest.nl" 4442 $as_echo '' >> "conftest.nl" 4443 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4445 as_fn_arith $ac_count + 1 && ac_count=$as_val 4446 if test $ac_count -gt ${ac_path_SED_max-0}; then 4447 # Best one so far, save it but keep looking for a better one 4448 ac_cv_path_SED="$ac_path_SED" 4449 ac_path_SED_max=$ac_count 4450 fi 4451 # 10*(2^10) chars as input seems more than enough 4452 test $ac_count -gt 10 && break 4453 done 4454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4455esac 4456 4457 $ac_path_SED_found && break 3 4458 done 4459 done 4460 done 4461IFS=$as_save_IFS 4462 if test -z "$ac_cv_path_SED"; then 4463 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4464 fi 4465else 4466 ac_cv_path_SED=$SED 4467fi 4468 4469fi 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4471$as_echo "$ac_cv_path_SED" >&6; } 4472 SED="$ac_cv_path_SED" 4473 rm -f conftest.sed 4474 4475test -z "$SED" && SED=sed 4476Xsed="$SED -e 1s/^X//" 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4489$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4490if ${ac_cv_path_GREP+:} false; then : 4491 $as_echo_n "(cached) " >&6 4492else 4493 if test -z "$GREP"; then 4494 ac_path_GREP_found=false 4495 # Loop through the user's path and test for each of PROGNAME-LIST 4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4497for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4498do 4499 IFS=$as_save_IFS 4500 test -z "$as_dir" && as_dir=. 4501 for ac_prog in grep ggrep; do 4502 for ac_exec_ext in '' $ac_executable_extensions; do 4503 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4504 as_fn_executable_p "$ac_path_GREP" || continue 4505# Check for GNU ac_path_GREP and select it if it is found. 4506 # Check for GNU $ac_path_GREP 4507case `"$ac_path_GREP" --version 2>&1` in 4508*GNU*) 4509 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4510*) 4511 ac_count=0 4512 $as_echo_n 0123456789 >"conftest.in" 4513 while : 4514 do 4515 cat "conftest.in" "conftest.in" >"conftest.tmp" 4516 mv "conftest.tmp" "conftest.in" 4517 cp "conftest.in" "conftest.nl" 4518 $as_echo 'GREP' >> "conftest.nl" 4519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4521 as_fn_arith $ac_count + 1 && ac_count=$as_val 4522 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4523 # Best one so far, save it but keep looking for a better one 4524 ac_cv_path_GREP="$ac_path_GREP" 4525 ac_path_GREP_max=$ac_count 4526 fi 4527 # 10*(2^10) chars as input seems more than enough 4528 test $ac_count -gt 10 && break 4529 done 4530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4531esac 4532 4533 $ac_path_GREP_found && break 3 4534 done 4535 done 4536 done 4537IFS=$as_save_IFS 4538 if test -z "$ac_cv_path_GREP"; then 4539 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4540 fi 4541else 4542 ac_cv_path_GREP=$GREP 4543fi 4544 4545fi 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4547$as_echo "$ac_cv_path_GREP" >&6; } 4548 GREP="$ac_cv_path_GREP" 4549 4550 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4552$as_echo_n "checking for egrep... " >&6; } 4553if ${ac_cv_path_EGREP+:} false; then : 4554 $as_echo_n "(cached) " >&6 4555else 4556 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4557 then ac_cv_path_EGREP="$GREP -E" 4558 else 4559 if test -z "$EGREP"; then 4560 ac_path_EGREP_found=false 4561 # Loop through the user's path and test for each of PROGNAME-LIST 4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4564do 4565 IFS=$as_save_IFS 4566 test -z "$as_dir" && as_dir=. 4567 for ac_prog in egrep; do 4568 for ac_exec_ext in '' $ac_executable_extensions; do 4569 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4570 as_fn_executable_p "$ac_path_EGREP" || continue 4571# Check for GNU ac_path_EGREP and select it if it is found. 4572 # Check for GNU $ac_path_EGREP 4573case `"$ac_path_EGREP" --version 2>&1` in 4574*GNU*) 4575 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4576*) 4577 ac_count=0 4578 $as_echo_n 0123456789 >"conftest.in" 4579 while : 4580 do 4581 cat "conftest.in" "conftest.in" >"conftest.tmp" 4582 mv "conftest.tmp" "conftest.in" 4583 cp "conftest.in" "conftest.nl" 4584 $as_echo 'EGREP' >> "conftest.nl" 4585 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4587 as_fn_arith $ac_count + 1 && ac_count=$as_val 4588 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4589 # Best one so far, save it but keep looking for a better one 4590 ac_cv_path_EGREP="$ac_path_EGREP" 4591 ac_path_EGREP_max=$ac_count 4592 fi 4593 # 10*(2^10) chars as input seems more than enough 4594 test $ac_count -gt 10 && break 4595 done 4596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4597esac 4598 4599 $ac_path_EGREP_found && break 3 4600 done 4601 done 4602 done 4603IFS=$as_save_IFS 4604 if test -z "$ac_cv_path_EGREP"; then 4605 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4606 fi 4607else 4608 ac_cv_path_EGREP=$EGREP 4609fi 4610 4611 fi 4612fi 4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4614$as_echo "$ac_cv_path_EGREP" >&6; } 4615 EGREP="$ac_cv_path_EGREP" 4616 4617 4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4619$as_echo_n "checking for fgrep... " >&6; } 4620if ${ac_cv_path_FGREP+:} false; then : 4621 $as_echo_n "(cached) " >&6 4622else 4623 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4624 then ac_cv_path_FGREP="$GREP -F" 4625 else 4626 if test -z "$FGREP"; then 4627 ac_path_FGREP_found=false 4628 # Loop through the user's path and test for each of PROGNAME-LIST 4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4630for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4631do 4632 IFS=$as_save_IFS 4633 test -z "$as_dir" && as_dir=. 4634 for ac_prog in fgrep; do 4635 for ac_exec_ext in '' $ac_executable_extensions; do 4636 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4637 as_fn_executable_p "$ac_path_FGREP" || continue 4638# Check for GNU ac_path_FGREP and select it if it is found. 4639 # Check for GNU $ac_path_FGREP 4640case `"$ac_path_FGREP" --version 2>&1` in 4641*GNU*) 4642 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4643*) 4644 ac_count=0 4645 $as_echo_n 0123456789 >"conftest.in" 4646 while : 4647 do 4648 cat "conftest.in" "conftest.in" >"conftest.tmp" 4649 mv "conftest.tmp" "conftest.in" 4650 cp "conftest.in" "conftest.nl" 4651 $as_echo 'FGREP' >> "conftest.nl" 4652 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4654 as_fn_arith $ac_count + 1 && ac_count=$as_val 4655 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4656 # Best one so far, save it but keep looking for a better one 4657 ac_cv_path_FGREP="$ac_path_FGREP" 4658 ac_path_FGREP_max=$ac_count 4659 fi 4660 # 10*(2^10) chars as input seems more than enough 4661 test $ac_count -gt 10 && break 4662 done 4663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4664esac 4665 4666 $ac_path_FGREP_found && break 3 4667 done 4668 done 4669 done 4670IFS=$as_save_IFS 4671 if test -z "$ac_cv_path_FGREP"; then 4672 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4673 fi 4674else 4675 ac_cv_path_FGREP=$FGREP 4676fi 4677 4678 fi 4679fi 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4681$as_echo "$ac_cv_path_FGREP" >&6; } 4682 FGREP="$ac_cv_path_FGREP" 4683 4684 4685test -z "$GREP" && GREP=grep 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705# Check whether --with-gnu-ld was given. 4706if test "${with_gnu_ld+set}" = set; then : 4707 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4708else 4709 with_gnu_ld=no 4710fi 4711 4712ac_prog=ld 4713if test yes = "$GCC"; then 4714 # Check if gcc -print-prog-name=ld gives a path. 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4716$as_echo_n "checking for ld used by $CC... " >&6; } 4717 case $host in 4718 *-*-mingw*) 4719 # gcc leaves a trailing carriage return, which upsets mingw 4720 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4721 *) 4722 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4723 esac 4724 case $ac_prog in 4725 # Accept absolute paths. 4726 [\\/]* | ?:[\\/]*) 4727 re_direlt='/[^/][^/]*/\.\./' 4728 # Canonicalize the pathname of ld 4729 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4730 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4731 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4732 done 4733 test -z "$LD" && LD=$ac_prog 4734 ;; 4735 "") 4736 # If it fails, then pretend we aren't using GCC. 4737 ac_prog=ld 4738 ;; 4739 *) 4740 # If it is relative, then search for the first ld in PATH. 4741 with_gnu_ld=unknown 4742 ;; 4743 esac 4744elif test yes = "$with_gnu_ld"; then 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4746$as_echo_n "checking for GNU ld... " >&6; } 4747else 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4749$as_echo_n "checking for non-GNU ld... " >&6; } 4750fi 4751if ${lt_cv_path_LD+:} false; then : 4752 $as_echo_n "(cached) " >&6 4753else 4754 if test -z "$LD"; then 4755 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4756 for ac_dir in $PATH; do 4757 IFS=$lt_save_ifs 4758 test -z "$ac_dir" && ac_dir=. 4759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4760 lt_cv_path_LD=$ac_dir/$ac_prog 4761 # Check to see if the program is GNU ld. I'd rather use --version, 4762 # but apparently some variants of GNU ld only accept -v. 4763 # Break only if it was the GNU/non-GNU ld that we prefer. 4764 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4765 *GNU* | *'with BFD'*) 4766 test no != "$with_gnu_ld" && break 4767 ;; 4768 *) 4769 test yes != "$with_gnu_ld" && break 4770 ;; 4771 esac 4772 fi 4773 done 4774 IFS=$lt_save_ifs 4775else 4776 lt_cv_path_LD=$LD # Let the user override the test with a path. 4777fi 4778fi 4779 4780LD=$lt_cv_path_LD 4781if test -n "$LD"; then 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4783$as_echo "$LD" >&6; } 4784else 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4786$as_echo "no" >&6; } 4787fi 4788test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4790$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4791if ${lt_cv_prog_gnu_ld+:} false; then : 4792 $as_echo_n "(cached) " >&6 4793else 4794 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4795case `$LD -v 2>&1 </dev/null` in 4796*GNU* | *'with BFD'*) 4797 lt_cv_prog_gnu_ld=yes 4798 ;; 4799*) 4800 lt_cv_prog_gnu_ld=no 4801 ;; 4802esac 4803fi 4804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4805$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4806with_gnu_ld=$lt_cv_prog_gnu_ld 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4817$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4818if ${lt_cv_path_NM+:} false; then : 4819 $as_echo_n "(cached) " >&6 4820else 4821 if test -n "$NM"; then 4822 # Let the user override the test. 4823 lt_cv_path_NM=$NM 4824else 4825 lt_nm_to_check=${ac_tool_prefix}nm 4826 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4827 lt_nm_to_check="$lt_nm_to_check nm" 4828 fi 4829 for lt_tmp_nm in $lt_nm_to_check; do 4830 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4831 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4832 IFS=$lt_save_ifs 4833 test -z "$ac_dir" && ac_dir=. 4834 tmp_nm=$ac_dir/$lt_tmp_nm 4835 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4836 # Check to see if the nm accepts a BSD-compat flag. 4837 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4838 # nm: unknown option "B" ignored 4839 # Tru64's nm complains that /dev/null is an invalid object file 4840 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4841 case $build_os in 4842 mingw*) lt_bad_file=conftest.nm/nofile ;; 4843 *) lt_bad_file=/dev/null ;; 4844 esac 4845 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4846 *$lt_bad_file* | *'Invalid file or object type'*) 4847 lt_cv_path_NM="$tmp_nm -B" 4848 break 2 4849 ;; 4850 *) 4851 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4852 */dev/null*) 4853 lt_cv_path_NM="$tmp_nm -p" 4854 break 2 4855 ;; 4856 *) 4857 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4858 continue # so that we can try to find one that supports BSD flags 4859 ;; 4860 esac 4861 ;; 4862 esac 4863 fi 4864 done 4865 IFS=$lt_save_ifs 4866 done 4867 : ${lt_cv_path_NM=no} 4868fi 4869fi 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4871$as_echo "$lt_cv_path_NM" >&6; } 4872if test no != "$lt_cv_path_NM"; then 4873 NM=$lt_cv_path_NM 4874else 4875 # Didn't find any BSD compatible name lister, look for dumpbin. 4876 if test -n "$DUMPBIN"; then : 4877 # Let the user override the test. 4878 else 4879 if test -n "$ac_tool_prefix"; then 4880 for ac_prog in dumpbin "link -dump" 4881 do 4882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4883set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4885$as_echo_n "checking for $ac_word... " >&6; } 4886if ${ac_cv_prog_DUMPBIN+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888else 4889 if test -n "$DUMPBIN"; then 4890 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4891else 4892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4893for as_dir in $PATH 4894do 4895 IFS=$as_save_IFS 4896 test -z "$as_dir" && as_dir=. 4897 for ac_exec_ext in '' $ac_executable_extensions; do 4898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4899 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4901 break 2 4902 fi 4903done 4904 done 4905IFS=$as_save_IFS 4906 4907fi 4908fi 4909DUMPBIN=$ac_cv_prog_DUMPBIN 4910if test -n "$DUMPBIN"; then 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4912$as_echo "$DUMPBIN" >&6; } 4913else 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4915$as_echo "no" >&6; } 4916fi 4917 4918 4919 test -n "$DUMPBIN" && break 4920 done 4921fi 4922if test -z "$DUMPBIN"; then 4923 ac_ct_DUMPBIN=$DUMPBIN 4924 for ac_prog in dumpbin "link -dump" 4925do 4926 # Extract the first word of "$ac_prog", so it can be a program name with args. 4927set dummy $ac_prog; ac_word=$2 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4929$as_echo_n "checking for $ac_word... " >&6; } 4930if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4931 $as_echo_n "(cached) " >&6 4932else 4933 if test -n "$ac_ct_DUMPBIN"; then 4934 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4935else 4936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4937for as_dir in $PATH 4938do 4939 IFS=$as_save_IFS 4940 test -z "$as_dir" && as_dir=. 4941 for ac_exec_ext in '' $ac_executable_extensions; do 4942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4943 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4945 break 2 4946 fi 4947done 4948 done 4949IFS=$as_save_IFS 4950 4951fi 4952fi 4953ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4954if test -n "$ac_ct_DUMPBIN"; then 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4956$as_echo "$ac_ct_DUMPBIN" >&6; } 4957else 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4959$as_echo "no" >&6; } 4960fi 4961 4962 4963 test -n "$ac_ct_DUMPBIN" && break 4964done 4965 4966 if test "x$ac_ct_DUMPBIN" = x; then 4967 DUMPBIN=":" 4968 else 4969 case $cross_compiling:$ac_tool_warned in 4970yes:) 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4973ac_tool_warned=yes ;; 4974esac 4975 DUMPBIN=$ac_ct_DUMPBIN 4976 fi 4977fi 4978 4979 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4980 *COFF*) 4981 DUMPBIN="$DUMPBIN -symbols -headers" 4982 ;; 4983 *) 4984 DUMPBIN=: 4985 ;; 4986 esac 4987 fi 4988 4989 if test : != "$DUMPBIN"; then 4990 NM=$DUMPBIN 4991 fi 4992fi 4993test -z "$NM" && NM=nm 4994 4995 4996 4997 4998 4999 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5001$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5002if ${lt_cv_nm_interface+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004else 5005 lt_cv_nm_interface="BSD nm" 5006 echo "int some_variable = 0;" > conftest.$ac_ext 5007 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5008 (eval "$ac_compile" 2>conftest.err) 5009 cat conftest.err >&5 5010 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5011 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5012 cat conftest.err >&5 5013 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5014 cat conftest.out >&5 5015 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5016 lt_cv_nm_interface="MS dumpbin" 5017 fi 5018 rm -f conftest* 5019fi 5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5021$as_echo "$lt_cv_nm_interface" >&6; } 5022 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5024$as_echo_n "checking whether ln -s works... " >&6; } 5025LN_S=$as_ln_s 5026if test "$LN_S" = "ln -s"; then 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5028$as_echo "yes" >&6; } 5029else 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5031$as_echo "no, using $LN_S" >&6; } 5032fi 5033 5034# find the maximum length of command line arguments 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5036$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5037if ${lt_cv_sys_max_cmd_len+:} false; then : 5038 $as_echo_n "(cached) " >&6 5039else 5040 i=0 5041 teststring=ABCD 5042 5043 case $build_os in 5044 msdosdjgpp*) 5045 # On DJGPP, this test can blow up pretty badly due to problems in libc 5046 # (any single argument exceeding 2000 bytes causes a buffer overrun 5047 # during glob expansion). Even if it were fixed, the result of this 5048 # check would be larger than it should be. 5049 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5050 ;; 5051 5052 gnu*) 5053 # Under GNU Hurd, this test is not required because there is 5054 # no limit to the length of command line arguments. 5055 # Libtool will interpret -1 as no limit whatsoever 5056 lt_cv_sys_max_cmd_len=-1; 5057 ;; 5058 5059 cygwin* | mingw* | cegcc*) 5060 # On Win9x/ME, this test blows up -- it succeeds, but takes 5061 # about 5 minutes as the teststring grows exponentially. 5062 # Worse, since 9x/ME are not pre-emptively multitasking, 5063 # you end up with a "frozen" computer, even though with patience 5064 # the test eventually succeeds (with a max line length of 256k). 5065 # Instead, let's just punt: use the minimum linelength reported by 5066 # all of the supported platforms: 8192 (on NT/2K/XP). 5067 lt_cv_sys_max_cmd_len=8192; 5068 ;; 5069 5070 mint*) 5071 # On MiNT this can take a long time and run out of memory. 5072 lt_cv_sys_max_cmd_len=8192; 5073 ;; 5074 5075 amigaos*) 5076 # On AmigaOS with pdksh, this test takes hours, literally. 5077 # So we just punt and use a minimum line length of 8192. 5078 lt_cv_sys_max_cmd_len=8192; 5079 ;; 5080 5081 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5082 # This has been around since 386BSD, at least. Likely further. 5083 if test -x /sbin/sysctl; then 5084 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5085 elif test -x /usr/sbin/sysctl; then 5086 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5087 else 5088 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5089 fi 5090 # And add a safety zone 5091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5092 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5093 ;; 5094 5095 interix*) 5096 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5097 lt_cv_sys_max_cmd_len=196608 5098 ;; 5099 5100 os2*) 5101 # The test takes a long time on OS/2. 5102 lt_cv_sys_max_cmd_len=8192 5103 ;; 5104 5105 osf*) 5106 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5107 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5108 # nice to cause kernel panics so lets avoid the loop below. 5109 # First set a reasonable default. 5110 lt_cv_sys_max_cmd_len=16384 5111 # 5112 if test -x /sbin/sysconfig; then 5113 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5114 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5115 esac 5116 fi 5117 ;; 5118 sco3.2v5*) 5119 lt_cv_sys_max_cmd_len=102400 5120 ;; 5121 sysv5* | sco5v6* | sysv4.2uw2*) 5122 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5123 if test -n "$kargmax"; then 5124 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5125 else 5126 lt_cv_sys_max_cmd_len=32768 5127 fi 5128 ;; 5129 *) 5130 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5131 if test -n "$lt_cv_sys_max_cmd_len" && \ 5132 test undefined != "$lt_cv_sys_max_cmd_len"; then 5133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5135 else 5136 # Make teststring a little bigger before we do anything with it. 5137 # a 1K string should be a reasonable start. 5138 for i in 1 2 3 4 5 6 7 8; do 5139 teststring=$teststring$teststring 5140 done 5141 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5142 # If test is not a shell built-in, we'll probably end up computing a 5143 # maximum length that is only half of the actual maximum length, but 5144 # we can't tell. 5145 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5146 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5147 test 17 != "$i" # 1/2 MB should be enough 5148 do 5149 i=`expr $i + 1` 5150 teststring=$teststring$teststring 5151 done 5152 # Only check the string length outside the loop. 5153 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5154 teststring= 5155 # Add a significant safety factor because C++ compilers can tack on 5156 # massive amounts of additional arguments before passing them to the 5157 # linker. It appears as though 1/2 is a usable value. 5158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5159 fi 5160 ;; 5161 esac 5162 5163fi 5164 5165if test -n "$lt_cv_sys_max_cmd_len"; then 5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5167$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5168else 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5170$as_echo "none" >&6; } 5171fi 5172max_cmd_len=$lt_cv_sys_max_cmd_len 5173 5174 5175 5176 5177 5178 5179: ${CP="cp -f"} 5180: ${MV="mv -f"} 5181: ${RM="rm -f"} 5182 5183if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5184 lt_unset=unset 5185else 5186 lt_unset=false 5187fi 5188 5189 5190 5191 5192 5193# test EBCDIC or ASCII 5194case `echo X|tr X '\101'` in 5195 A) # ASCII based system 5196 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5197 lt_SP2NL='tr \040 \012' 5198 lt_NL2SP='tr \015\012 \040\040' 5199 ;; 5200 *) # EBCDIC based system 5201 lt_SP2NL='tr \100 \n' 5202 lt_NL2SP='tr \r\n \100\100' 5203 ;; 5204esac 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5215$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5216if ${lt_cv_to_host_file_cmd+:} false; then : 5217 $as_echo_n "(cached) " >&6 5218else 5219 case $host in 5220 *-*-mingw* ) 5221 case $build in 5222 *-*-mingw* ) # actually msys 5223 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5224 ;; 5225 *-*-cygwin* ) 5226 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5227 ;; 5228 * ) # otherwise, assume *nix 5229 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5230 ;; 5231 esac 5232 ;; 5233 *-*-cygwin* ) 5234 case $build in 5235 *-*-mingw* ) # actually msys 5236 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5237 ;; 5238 *-*-cygwin* ) 5239 lt_cv_to_host_file_cmd=func_convert_file_noop 5240 ;; 5241 * ) # otherwise, assume *nix 5242 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5243 ;; 5244 esac 5245 ;; 5246 * ) # unhandled hosts (and "normal" native builds) 5247 lt_cv_to_host_file_cmd=func_convert_file_noop 5248 ;; 5249esac 5250 5251fi 5252 5253to_host_file_cmd=$lt_cv_to_host_file_cmd 5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5255$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5256 5257 5258 5259 5260 5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5262$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5263if ${lt_cv_to_tool_file_cmd+:} false; then : 5264 $as_echo_n "(cached) " >&6 5265else 5266 #assume ordinary cross tools, or native build. 5267lt_cv_to_tool_file_cmd=func_convert_file_noop 5268case $host in 5269 *-*-mingw* ) 5270 case $build in 5271 *-*-mingw* ) # actually msys 5272 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5273 ;; 5274 esac 5275 ;; 5276esac 5277 5278fi 5279 5280to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5282$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5283 5284 5285 5286 5287 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5289$as_echo_n "checking for $LD option to reload object files... " >&6; } 5290if ${lt_cv_ld_reload_flag+:} false; then : 5291 $as_echo_n "(cached) " >&6 5292else 5293 lt_cv_ld_reload_flag='-r' 5294fi 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5296$as_echo "$lt_cv_ld_reload_flag" >&6; } 5297reload_flag=$lt_cv_ld_reload_flag 5298case $reload_flag in 5299"" | " "*) ;; 5300*) reload_flag=" $reload_flag" ;; 5301esac 5302reload_cmds='$LD$reload_flag -o $output$reload_objs' 5303case $host_os in 5304 cygwin* | mingw* | pw32* | cegcc*) 5305 if test yes != "$GCC"; then 5306 reload_cmds=false 5307 fi 5308 ;; 5309 darwin*) 5310 if test yes = "$GCC"; then 5311 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5312 else 5313 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5314 fi 5315 ;; 5316esac 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326if test -n "$ac_tool_prefix"; then 5327 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5328set dummy ${ac_tool_prefix}objdump; ac_word=$2 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5330$as_echo_n "checking for $ac_word... " >&6; } 5331if ${ac_cv_prog_OBJDUMP+:} false; then : 5332 $as_echo_n "(cached) " >&6 5333else 5334 if test -n "$OBJDUMP"; then 5335 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5336else 5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5338for as_dir in $PATH 5339do 5340 IFS=$as_save_IFS 5341 test -z "$as_dir" && as_dir=. 5342 for ac_exec_ext in '' $ac_executable_extensions; do 5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5344 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5346 break 2 5347 fi 5348done 5349 done 5350IFS=$as_save_IFS 5351 5352fi 5353fi 5354OBJDUMP=$ac_cv_prog_OBJDUMP 5355if test -n "$OBJDUMP"; then 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5357$as_echo "$OBJDUMP" >&6; } 5358else 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5360$as_echo "no" >&6; } 5361fi 5362 5363 5364fi 5365if test -z "$ac_cv_prog_OBJDUMP"; then 5366 ac_ct_OBJDUMP=$OBJDUMP 5367 # Extract the first word of "objdump", so it can be a program name with args. 5368set dummy objdump; ac_word=$2 5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5370$as_echo_n "checking for $ac_word... " >&6; } 5371if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373else 5374 if test -n "$ac_ct_OBJDUMP"; then 5375 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5376else 5377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5378for as_dir in $PATH 5379do 5380 IFS=$as_save_IFS 5381 test -z "$as_dir" && as_dir=. 5382 for ac_exec_ext in '' $ac_executable_extensions; do 5383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5384 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5386 break 2 5387 fi 5388done 5389 done 5390IFS=$as_save_IFS 5391 5392fi 5393fi 5394ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5395if test -n "$ac_ct_OBJDUMP"; then 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5397$as_echo "$ac_ct_OBJDUMP" >&6; } 5398else 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5400$as_echo "no" >&6; } 5401fi 5402 5403 if test "x$ac_ct_OBJDUMP" = x; then 5404 OBJDUMP="false" 5405 else 5406 case $cross_compiling:$ac_tool_warned in 5407yes:) 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5410ac_tool_warned=yes ;; 5411esac 5412 OBJDUMP=$ac_ct_OBJDUMP 5413 fi 5414else 5415 OBJDUMP="$ac_cv_prog_OBJDUMP" 5416fi 5417 5418test -z "$OBJDUMP" && OBJDUMP=objdump 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5429$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5430if ${lt_cv_deplibs_check_method+:} false; then : 5431 $as_echo_n "(cached) " >&6 5432else 5433 lt_cv_file_magic_cmd='$MAGIC_CMD' 5434lt_cv_file_magic_test_file= 5435lt_cv_deplibs_check_method='unknown' 5436# Need to set the preceding variable on all platforms that support 5437# interlibrary dependencies. 5438# 'none' -- dependencies not supported. 5439# 'unknown' -- same as none, but documents that we really don't know. 5440# 'pass_all' -- all dependencies passed with no checks. 5441# 'test_compile' -- check by making test program. 5442# 'file_magic [[regex]]' -- check by looking for files in library path 5443# that responds to the $file_magic_cmd with a given extended regex. 5444# If you have 'file' or equivalent on your system and you're not sure 5445# whether 'pass_all' will *always* work, you probably want this one. 5446 5447case $host_os in 5448aix[4-9]*) 5449 lt_cv_deplibs_check_method=pass_all 5450 ;; 5451 5452beos*) 5453 lt_cv_deplibs_check_method=pass_all 5454 ;; 5455 5456bsdi[45]*) 5457 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5458 lt_cv_file_magic_cmd='/usr/bin/file -L' 5459 lt_cv_file_magic_test_file=/shlib/libc.so 5460 ;; 5461 5462cygwin*) 5463 # func_win32_libid is a shell function defined in ltmain.sh 5464 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5465 lt_cv_file_magic_cmd='func_win32_libid' 5466 ;; 5467 5468mingw* | pw32*) 5469 # Base MSYS/MinGW do not provide the 'file' command needed by 5470 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5471 # unless we find 'file', for example because we are cross-compiling. 5472 if ( file / ) >/dev/null 2>&1; then 5473 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5474 lt_cv_file_magic_cmd='func_win32_libid' 5475 else 5476 # Keep this pattern in sync with the one in func_win32_libid. 5477 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5478 lt_cv_file_magic_cmd='$OBJDUMP -f' 5479 fi 5480 ;; 5481 5482cegcc*) 5483 # use the weaker test based on 'objdump'. See mingw*. 5484 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5485 lt_cv_file_magic_cmd='$OBJDUMP -f' 5486 ;; 5487 5488darwin* | rhapsody*) 5489 lt_cv_deplibs_check_method=pass_all 5490 ;; 5491 5492freebsd* | dragonfly*) 5493 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5494 case $host_cpu in 5495 i*86 ) 5496 # Not sure whether the presence of OpenBSD here was a mistake. 5497 # Let's accept both of them until this is cleared up. 5498 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5499 lt_cv_file_magic_cmd=/usr/bin/file 5500 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5501 ;; 5502 esac 5503 else 5504 lt_cv_deplibs_check_method=pass_all 5505 fi 5506 ;; 5507 5508haiku*) 5509 lt_cv_deplibs_check_method=pass_all 5510 ;; 5511 5512hpux10.20* | hpux11*) 5513 lt_cv_file_magic_cmd=/usr/bin/file 5514 case $host_cpu in 5515 ia64*) 5516 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5517 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5518 ;; 5519 hppa*64*) 5520 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]' 5521 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5522 ;; 5523 *) 5524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5525 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5526 ;; 5527 esac 5528 ;; 5529 5530interix[3-9]*) 5531 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5533 ;; 5534 5535irix5* | irix6* | nonstopux*) 5536 case $LD in 5537 *-32|*"-32 ") libmagic=32-bit;; 5538 *-n32|*"-n32 ") libmagic=N32;; 5539 *-64|*"-64 ") libmagic=64-bit;; 5540 *) libmagic=never-match;; 5541 esac 5542 lt_cv_deplibs_check_method=pass_all 5543 ;; 5544 5545# This must be glibc/ELF. 5546linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5547 lt_cv_deplibs_check_method=pass_all 5548 ;; 5549 5550netbsd* | netbsdelf*-gnu) 5551 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5553 else 5554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5555 fi 5556 ;; 5557 5558newos6*) 5559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5560 lt_cv_file_magic_cmd=/usr/bin/file 5561 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5562 ;; 5563 5564*nto* | *qnx*) 5565 lt_cv_deplibs_check_method=pass_all 5566 ;; 5567 5568openbsd* | bitrig*) 5569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5571 else 5572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5573 fi 5574 ;; 5575 5576osf3* | osf4* | osf5*) 5577 lt_cv_deplibs_check_method=pass_all 5578 ;; 5579 5580rdos*) 5581 lt_cv_deplibs_check_method=pass_all 5582 ;; 5583 5584solaris*) 5585 lt_cv_deplibs_check_method=pass_all 5586 ;; 5587 5588sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5589 lt_cv_deplibs_check_method=pass_all 5590 ;; 5591 5592sysv4 | sysv4.3*) 5593 case $host_vendor in 5594 motorola) 5595 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]' 5596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5597 ;; 5598 ncr) 5599 lt_cv_deplibs_check_method=pass_all 5600 ;; 5601 sequent) 5602 lt_cv_file_magic_cmd='/bin/file' 5603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5604 ;; 5605 sni) 5606 lt_cv_file_magic_cmd='/bin/file' 5607 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5608 lt_cv_file_magic_test_file=/lib/libc.so 5609 ;; 5610 siemens) 5611 lt_cv_deplibs_check_method=pass_all 5612 ;; 5613 pc) 5614 lt_cv_deplibs_check_method=pass_all 5615 ;; 5616 esac 5617 ;; 5618 5619tpf*) 5620 lt_cv_deplibs_check_method=pass_all 5621 ;; 5622os2*) 5623 lt_cv_deplibs_check_method=pass_all 5624 ;; 5625esac 5626 5627fi 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5629$as_echo "$lt_cv_deplibs_check_method" >&6; } 5630 5631file_magic_glob= 5632want_nocaseglob=no 5633if test "$build" = "$host"; then 5634 case $host_os in 5635 mingw* | pw32*) 5636 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5637 want_nocaseglob=yes 5638 else 5639 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5640 fi 5641 ;; 5642 esac 5643fi 5644 5645file_magic_cmd=$lt_cv_file_magic_cmd 5646deplibs_check_method=$lt_cv_deplibs_check_method 5647test -z "$deplibs_check_method" && deplibs_check_method=unknown 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670if test -n "$ac_tool_prefix"; then 5671 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5672set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5674$as_echo_n "checking for $ac_word... " >&6; } 5675if ${ac_cv_prog_DLLTOOL+:} false; then : 5676 $as_echo_n "(cached) " >&6 5677else 5678 if test -n "$DLLTOOL"; then 5679 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5680else 5681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5682for as_dir in $PATH 5683do 5684 IFS=$as_save_IFS 5685 test -z "$as_dir" && as_dir=. 5686 for ac_exec_ext in '' $ac_executable_extensions; do 5687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5688 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5690 break 2 5691 fi 5692done 5693 done 5694IFS=$as_save_IFS 5695 5696fi 5697fi 5698DLLTOOL=$ac_cv_prog_DLLTOOL 5699if test -n "$DLLTOOL"; then 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5701$as_echo "$DLLTOOL" >&6; } 5702else 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5704$as_echo "no" >&6; } 5705fi 5706 5707 5708fi 5709if test -z "$ac_cv_prog_DLLTOOL"; then 5710 ac_ct_DLLTOOL=$DLLTOOL 5711 # Extract the first word of "dlltool", so it can be a program name with args. 5712set dummy dlltool; ac_word=$2 5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5714$as_echo_n "checking for $ac_word... " >&6; } 5715if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5716 $as_echo_n "(cached) " >&6 5717else 5718 if test -n "$ac_ct_DLLTOOL"; then 5719 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5720else 5721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5722for as_dir in $PATH 5723do 5724 IFS=$as_save_IFS 5725 test -z "$as_dir" && as_dir=. 5726 for ac_exec_ext in '' $ac_executable_extensions; do 5727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5728 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5730 break 2 5731 fi 5732done 5733 done 5734IFS=$as_save_IFS 5735 5736fi 5737fi 5738ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5739if test -n "$ac_ct_DLLTOOL"; then 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5741$as_echo "$ac_ct_DLLTOOL" >&6; } 5742else 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5744$as_echo "no" >&6; } 5745fi 5746 5747 if test "x$ac_ct_DLLTOOL" = x; then 5748 DLLTOOL="false" 5749 else 5750 case $cross_compiling:$ac_tool_warned in 5751yes:) 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5754ac_tool_warned=yes ;; 5755esac 5756 DLLTOOL=$ac_ct_DLLTOOL 5757 fi 5758else 5759 DLLTOOL="$ac_cv_prog_DLLTOOL" 5760fi 5761 5762test -z "$DLLTOOL" && DLLTOOL=dlltool 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5774$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5775if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5776 $as_echo_n "(cached) " >&6 5777else 5778 lt_cv_sharedlib_from_linklib_cmd='unknown' 5779 5780case $host_os in 5781cygwin* | mingw* | pw32* | cegcc*) 5782 # two different shell functions defined in ltmain.sh; 5783 # decide which one to use based on capabilities of $DLLTOOL 5784 case `$DLLTOOL --help 2>&1` in 5785 *--identify-strict*) 5786 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5787 ;; 5788 *) 5789 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5790 ;; 5791 esac 5792 ;; 5793*) 5794 # fallback: assume linklib IS sharedlib 5795 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5796 ;; 5797esac 5798 5799fi 5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5801$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5802sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5803test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5804 5805 5806 5807 5808 5809 5810 5811 5812if test -n "$ac_tool_prefix"; then 5813 for ac_prog in ar 5814 do 5815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5816set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5818$as_echo_n "checking for $ac_word... " >&6; } 5819if ${ac_cv_prog_AR+:} false; then : 5820 $as_echo_n "(cached) " >&6 5821else 5822 if test -n "$AR"; then 5823 ac_cv_prog_AR="$AR" # Let the user override the test. 5824else 5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5826for as_dir in $PATH 5827do 5828 IFS=$as_save_IFS 5829 test -z "$as_dir" && as_dir=. 5830 for ac_exec_ext in '' $ac_executable_extensions; do 5831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5832 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5834 break 2 5835 fi 5836done 5837 done 5838IFS=$as_save_IFS 5839 5840fi 5841fi 5842AR=$ac_cv_prog_AR 5843if test -n "$AR"; then 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5845$as_echo "$AR" >&6; } 5846else 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5848$as_echo "no" >&6; } 5849fi 5850 5851 5852 test -n "$AR" && break 5853 done 5854fi 5855if test -z "$AR"; then 5856 ac_ct_AR=$AR 5857 for ac_prog in ar 5858do 5859 # Extract the first word of "$ac_prog", so it can be a program name with args. 5860set dummy $ac_prog; ac_word=$2 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5862$as_echo_n "checking for $ac_word... " >&6; } 5863if ${ac_cv_prog_ac_ct_AR+:} false; then : 5864 $as_echo_n "(cached) " >&6 5865else 5866 if test -n "$ac_ct_AR"; then 5867 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5868else 5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5870for as_dir in $PATH 5871do 5872 IFS=$as_save_IFS 5873 test -z "$as_dir" && as_dir=. 5874 for ac_exec_ext in '' $ac_executable_extensions; do 5875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5876 ac_cv_prog_ac_ct_AR="$ac_prog" 5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5878 break 2 5879 fi 5880done 5881 done 5882IFS=$as_save_IFS 5883 5884fi 5885fi 5886ac_ct_AR=$ac_cv_prog_ac_ct_AR 5887if test -n "$ac_ct_AR"; then 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5889$as_echo "$ac_ct_AR" >&6; } 5890else 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5892$as_echo "no" >&6; } 5893fi 5894 5895 5896 test -n "$ac_ct_AR" && break 5897done 5898 5899 if test "x$ac_ct_AR" = x; then 5900 AR="false" 5901 else 5902 case $cross_compiling:$ac_tool_warned in 5903yes:) 5904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5906ac_tool_warned=yes ;; 5907esac 5908 AR=$ac_ct_AR 5909 fi 5910fi 5911 5912: ${AR=ar} 5913: ${AR_FLAGS=cru} 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5926$as_echo_n "checking for archiver @FILE support... " >&6; } 5927if ${lt_cv_ar_at_file+:} false; then : 5928 $as_echo_n "(cached) " >&6 5929else 5930 lt_cv_ar_at_file=no 5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5932/* end confdefs.h. */ 5933 5934int 5935main () 5936{ 5937 5938 ; 5939 return 0; 5940} 5941_ACEOF 5942if ac_fn_c_try_compile "$LINENO"; then : 5943 echo conftest.$ac_objext > conftest.lst 5944 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5946 (eval $lt_ar_try) 2>&5 5947 ac_status=$? 5948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5949 test $ac_status = 0; } 5950 if test 0 -eq "$ac_status"; then 5951 # Ensure the archiver fails upon bogus file names. 5952 rm -f conftest.$ac_objext libconftest.a 5953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5954 (eval $lt_ar_try) 2>&5 5955 ac_status=$? 5956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5957 test $ac_status = 0; } 5958 if test 0 -ne "$ac_status"; then 5959 lt_cv_ar_at_file=@ 5960 fi 5961 fi 5962 rm -f conftest.* libconftest.a 5963 5964fi 5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5966 5967fi 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5969$as_echo "$lt_cv_ar_at_file" >&6; } 5970 5971if test no = "$lt_cv_ar_at_file"; then 5972 archiver_list_spec= 5973else 5974 archiver_list_spec=$lt_cv_ar_at_file 5975fi 5976 5977 5978 5979 5980 5981 5982 5983if test -n "$ac_tool_prefix"; then 5984 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5985set dummy ${ac_tool_prefix}strip; ac_word=$2 5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5987$as_echo_n "checking for $ac_word... " >&6; } 5988if ${ac_cv_prog_STRIP+:} false; then : 5989 $as_echo_n "(cached) " >&6 5990else 5991 if test -n "$STRIP"; then 5992 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5993else 5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5995for as_dir in $PATH 5996do 5997 IFS=$as_save_IFS 5998 test -z "$as_dir" && as_dir=. 5999 for ac_exec_ext in '' $ac_executable_extensions; do 6000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6001 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6003 break 2 6004 fi 6005done 6006 done 6007IFS=$as_save_IFS 6008 6009fi 6010fi 6011STRIP=$ac_cv_prog_STRIP 6012if test -n "$STRIP"; then 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6014$as_echo "$STRIP" >&6; } 6015else 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6017$as_echo "no" >&6; } 6018fi 6019 6020 6021fi 6022if test -z "$ac_cv_prog_STRIP"; then 6023 ac_ct_STRIP=$STRIP 6024 # Extract the first word of "strip", so it can be a program name with args. 6025set dummy strip; ac_word=$2 6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6027$as_echo_n "checking for $ac_word... " >&6; } 6028if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6029 $as_echo_n "(cached) " >&6 6030else 6031 if test -n "$ac_ct_STRIP"; then 6032 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6033else 6034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6035for as_dir in $PATH 6036do 6037 IFS=$as_save_IFS 6038 test -z "$as_dir" && as_dir=. 6039 for ac_exec_ext in '' $ac_executable_extensions; do 6040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6041 ac_cv_prog_ac_ct_STRIP="strip" 6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6043 break 2 6044 fi 6045done 6046 done 6047IFS=$as_save_IFS 6048 6049fi 6050fi 6051ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6052if test -n "$ac_ct_STRIP"; then 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6054$as_echo "$ac_ct_STRIP" >&6; } 6055else 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6057$as_echo "no" >&6; } 6058fi 6059 6060 if test "x$ac_ct_STRIP" = x; then 6061 STRIP=":" 6062 else 6063 case $cross_compiling:$ac_tool_warned in 6064yes:) 6065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6067ac_tool_warned=yes ;; 6068esac 6069 STRIP=$ac_ct_STRIP 6070 fi 6071else 6072 STRIP="$ac_cv_prog_STRIP" 6073fi 6074 6075test -z "$STRIP" && STRIP=: 6076 6077 6078 6079 6080 6081 6082if test -n "$ac_tool_prefix"; then 6083 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6084set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6086$as_echo_n "checking for $ac_word... " >&6; } 6087if ${ac_cv_prog_RANLIB+:} false; then : 6088 $as_echo_n "(cached) " >&6 6089else 6090 if test -n "$RANLIB"; then 6091 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6092else 6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6094for as_dir in $PATH 6095do 6096 IFS=$as_save_IFS 6097 test -z "$as_dir" && as_dir=. 6098 for ac_exec_ext in '' $ac_executable_extensions; do 6099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6100 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6102 break 2 6103 fi 6104done 6105 done 6106IFS=$as_save_IFS 6107 6108fi 6109fi 6110RANLIB=$ac_cv_prog_RANLIB 6111if test -n "$RANLIB"; then 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6113$as_echo "$RANLIB" >&6; } 6114else 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6116$as_echo "no" >&6; } 6117fi 6118 6119 6120fi 6121if test -z "$ac_cv_prog_RANLIB"; then 6122 ac_ct_RANLIB=$RANLIB 6123 # Extract the first word of "ranlib", so it can be a program name with args. 6124set dummy ranlib; ac_word=$2 6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6126$as_echo_n "checking for $ac_word... " >&6; } 6127if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6128 $as_echo_n "(cached) " >&6 6129else 6130 if test -n "$ac_ct_RANLIB"; then 6131 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6132else 6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6134for as_dir in $PATH 6135do 6136 IFS=$as_save_IFS 6137 test -z "$as_dir" && as_dir=. 6138 for ac_exec_ext in '' $ac_executable_extensions; do 6139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6140 ac_cv_prog_ac_ct_RANLIB="ranlib" 6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6142 break 2 6143 fi 6144done 6145 done 6146IFS=$as_save_IFS 6147 6148fi 6149fi 6150ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6151if test -n "$ac_ct_RANLIB"; then 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6153$as_echo "$ac_ct_RANLIB" >&6; } 6154else 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6156$as_echo "no" >&6; } 6157fi 6158 6159 if test "x$ac_ct_RANLIB" = x; then 6160 RANLIB=":" 6161 else 6162 case $cross_compiling:$ac_tool_warned in 6163yes:) 6164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6166ac_tool_warned=yes ;; 6167esac 6168 RANLIB=$ac_ct_RANLIB 6169 fi 6170else 6171 RANLIB="$ac_cv_prog_RANLIB" 6172fi 6173 6174test -z "$RANLIB" && RANLIB=: 6175 6176 6177 6178 6179 6180 6181# Determine commands to create old-style static archives. 6182old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6183old_postinstall_cmds='chmod 644 $oldlib' 6184old_postuninstall_cmds= 6185 6186if test -n "$RANLIB"; then 6187 case $host_os in 6188 bitrig* | openbsd*) 6189 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6190 ;; 6191 *) 6192 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6193 ;; 6194 esac 6195 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6196fi 6197 6198case $host_os in 6199 darwin*) 6200 lock_old_archive_extraction=yes ;; 6201 *) 6202 lock_old_archive_extraction=no ;; 6203esac 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243# If no C compiler was specified, use CC. 6244LTCC=${LTCC-"$CC"} 6245 6246# If no C compiler flags were specified, use CFLAGS. 6247LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6248 6249# Allow CC to be a program name with arguments. 6250compiler=$CC 6251 6252 6253# Check for command to grab the raw symbol name followed by C symbol from nm. 6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6255$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6256if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6257 $as_echo_n "(cached) " >&6 6258else 6259 6260# These are sane defaults that work on at least a few old systems. 6261# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6262 6263# Character class describing NM global symbol codes. 6264symcode='[BCDEGRST]' 6265 6266# Regexp to match symbols that can be accessed directly from C. 6267sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6268 6269# Define system-specific variables. 6270case $host_os in 6271aix*) 6272 symcode='[BCDT]' 6273 ;; 6274cygwin* | mingw* | pw32* | cegcc*) 6275 symcode='[ABCDGISTW]' 6276 ;; 6277hpux*) 6278 if test ia64 = "$host_cpu"; then 6279 symcode='[ABCDEGRST]' 6280 fi 6281 ;; 6282irix* | nonstopux*) 6283 symcode='[BCDEGRST]' 6284 ;; 6285osf*) 6286 symcode='[BCDEGQRST]' 6287 ;; 6288solaris*) 6289 symcode='[BDRT]' 6290 ;; 6291sco3.2v5*) 6292 symcode='[DT]' 6293 ;; 6294sysv4.2uw2*) 6295 symcode='[DT]' 6296 ;; 6297sysv5* | sco5v6* | unixware* | OpenUNIX*) 6298 symcode='[ABDT]' 6299 ;; 6300sysv4) 6301 symcode='[DFNSTU]' 6302 ;; 6303esac 6304 6305# If we're using GNU nm, then use its standard symbol codes. 6306case `$NM -V 2>&1` in 6307*GNU* | *'with BFD'*) 6308 symcode='[ABCDGIRSTW]' ;; 6309esac 6310 6311if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6312 # Gets list of data symbols to import. 6313 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6314 # Adjust the below global symbol transforms to fixup imported variables. 6315 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6316 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6317 lt_c_name_lib_hook="\ 6318 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6319 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6320else 6321 # Disable hooks by default. 6322 lt_cv_sys_global_symbol_to_import= 6323 lt_cdecl_hook= 6324 lt_c_name_hook= 6325 lt_c_name_lib_hook= 6326fi 6327 6328# Transform an extracted symbol line into a proper C declaration. 6329# Some systems (esp. on ia64) link data and code symbols differently, 6330# so use this general approach. 6331lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6332$lt_cdecl_hook\ 6333" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6334" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6335 6336# Transform an extracted symbol line into symbol name and symbol address 6337lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6338$lt_c_name_hook\ 6339" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6340" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6341 6342# Transform an extracted symbol line into symbol name with lib prefix and 6343# symbol address. 6344lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6345$lt_c_name_lib_hook\ 6346" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6347" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6348" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6349 6350# Handle CRLF in mingw tool chain 6351opt_cr= 6352case $build_os in 6353mingw*) 6354 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6355 ;; 6356esac 6357 6358# Try without a prefix underscore, then with it. 6359for ac_symprfx in "" "_"; do 6360 6361 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6362 symxfrm="\\1 $ac_symprfx\\2 \\2" 6363 6364 # Write the raw and C identifiers. 6365 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6366 # Fake it for dumpbin and say T for any non-static function, 6367 # D for any global variable and I for any imported variable. 6368 # Also find C++ and __fastcall symbols from MSVC++, 6369 # which start with @ or ?. 6370 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6371" {last_section=section; section=\$ 3};"\ 6372" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6373" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6374" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6375" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6376" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6377" \$ 0!~/External *\|/{next};"\ 6378" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6379" {if(hide[section]) next};"\ 6380" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6381" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6382" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6383" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6384" ' prfx=^$ac_symprfx" 6385 else 6386 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6387 fi 6388 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6389 6390 # Check to see that the pipe works correctly. 6391 pipe_works=no 6392 6393 rm -f conftest* 6394 cat > conftest.$ac_ext <<_LT_EOF 6395#ifdef __cplusplus 6396extern "C" { 6397#endif 6398char nm_test_var; 6399void nm_test_func(void); 6400void nm_test_func(void){} 6401#ifdef __cplusplus 6402} 6403#endif 6404int main(){nm_test_var='a';nm_test_func();return(0);} 6405_LT_EOF 6406 6407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6408 (eval $ac_compile) 2>&5 6409 ac_status=$? 6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6411 test $ac_status = 0; }; then 6412 # Now try to grab the symbols. 6413 nlist=conftest.nm 6414 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6415 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6416 # Try sorting and uniquifying the output. 6417 if sort "$nlist" | uniq > "$nlist"T; then 6418 mv -f "$nlist"T "$nlist" 6419 else 6420 rm -f "$nlist"T 6421 fi 6422 6423 # Make sure that we snagged all the symbols we need. 6424 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6425 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6426 cat <<_LT_EOF > conftest.$ac_ext 6427/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6428#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6429/* DATA imports from DLLs on WIN32 can't be const, because runtime 6430 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6431# define LT_DLSYM_CONST 6432#elif defined __osf__ 6433/* This system does not cope well with relocations in const data. */ 6434# define LT_DLSYM_CONST 6435#else 6436# define LT_DLSYM_CONST const 6437#endif 6438 6439#ifdef __cplusplus 6440extern "C" { 6441#endif 6442 6443_LT_EOF 6444 # Now generate the symbol file. 6445 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6446 6447 cat <<_LT_EOF >> conftest.$ac_ext 6448 6449/* The mapping between symbol names and symbols. */ 6450LT_DLSYM_CONST struct { 6451 const char *name; 6452 void *address; 6453} 6454lt__PROGRAM__LTX_preloaded_symbols[] = 6455{ 6456 { "@PROGRAM@", (void *) 0 }, 6457_LT_EOF 6458 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6459 cat <<\_LT_EOF >> conftest.$ac_ext 6460 {0, (void *) 0} 6461}; 6462 6463/* This works around a problem in FreeBSD linker */ 6464#ifdef FREEBSD_WORKAROUND 6465static const void *lt_preloaded_setup() { 6466 return lt__PROGRAM__LTX_preloaded_symbols; 6467} 6468#endif 6469 6470#ifdef __cplusplus 6471} 6472#endif 6473_LT_EOF 6474 # Now try linking the two files. 6475 mv conftest.$ac_objext conftstm.$ac_objext 6476 lt_globsym_save_LIBS=$LIBS 6477 lt_globsym_save_CFLAGS=$CFLAGS 6478 LIBS=conftstm.$ac_objext 6479 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6481 (eval $ac_link) 2>&5 6482 ac_status=$? 6483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6484 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6485 pipe_works=yes 6486 fi 6487 LIBS=$lt_globsym_save_LIBS 6488 CFLAGS=$lt_globsym_save_CFLAGS 6489 else 6490 echo "cannot find nm_test_func in $nlist" >&5 6491 fi 6492 else 6493 echo "cannot find nm_test_var in $nlist" >&5 6494 fi 6495 else 6496 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6497 fi 6498 else 6499 echo "$progname: failed program was:" >&5 6500 cat conftest.$ac_ext >&5 6501 fi 6502 rm -rf conftest* conftst* 6503 6504 # Do not use the global_symbol_pipe unless it works. 6505 if test yes = "$pipe_works"; then 6506 break 6507 else 6508 lt_cv_sys_global_symbol_pipe= 6509 fi 6510done 6511 6512fi 6513 6514if test -z "$lt_cv_sys_global_symbol_pipe"; then 6515 lt_cv_sys_global_symbol_to_cdecl= 6516fi 6517if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6519$as_echo "failed" >&6; } 6520else 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6522$as_echo "ok" >&6; } 6523fi 6524 6525# Response file support. 6526if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6527 nm_file_list_spec='@' 6528elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6529 nm_file_list_spec='@' 6530fi 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6569$as_echo_n "checking for sysroot... " >&6; } 6570 6571# Check whether --with-sysroot was given. 6572if test "${with_sysroot+set}" = set; then : 6573 withval=$with_sysroot; 6574else 6575 with_sysroot=no 6576fi 6577 6578 6579lt_sysroot= 6580case $with_sysroot in #( 6581 yes) 6582 if test yes = "$GCC"; then 6583 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6584 fi 6585 ;; #( 6586 /*) 6587 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6588 ;; #( 6589 no|'') 6590 ;; #( 6591 *) 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6593$as_echo "$with_sysroot" >&6; } 6594 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6595 ;; 6596esac 6597 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6599$as_echo "${lt_sysroot:-no}" >&6; } 6600 6601 6602 6603 6604 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6606$as_echo_n "checking for a working dd... " >&6; } 6607if ${ac_cv_path_lt_DD+:} false; then : 6608 $as_echo_n "(cached) " >&6 6609else 6610 printf 0123456789abcdef0123456789abcdef >conftest.i 6611cat conftest.i conftest.i >conftest2.i 6612: ${lt_DD:=$DD} 6613if test -z "$lt_DD"; then 6614 ac_path_lt_DD_found=false 6615 # Loop through the user's path and test for each of PROGNAME-LIST 6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6617for as_dir in $PATH 6618do 6619 IFS=$as_save_IFS 6620 test -z "$as_dir" && as_dir=. 6621 for ac_prog in dd; do 6622 for ac_exec_ext in '' $ac_executable_extensions; do 6623 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6624 as_fn_executable_p "$ac_path_lt_DD" || continue 6625if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6626 cmp -s conftest.i conftest.out \ 6627 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6628fi 6629 $ac_path_lt_DD_found && break 3 6630 done 6631 done 6632 done 6633IFS=$as_save_IFS 6634 if test -z "$ac_cv_path_lt_DD"; then 6635 : 6636 fi 6637else 6638 ac_cv_path_lt_DD=$lt_DD 6639fi 6640 6641rm -f conftest.i conftest2.i conftest.out 6642fi 6643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6644$as_echo "$ac_cv_path_lt_DD" >&6; } 6645 6646 6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6648$as_echo_n "checking how to truncate binary pipes... " >&6; } 6649if ${lt_cv_truncate_bin+:} false; then : 6650 $as_echo_n "(cached) " >&6 6651else 6652 printf 0123456789abcdef0123456789abcdef >conftest.i 6653cat conftest.i conftest.i >conftest2.i 6654lt_cv_truncate_bin= 6655if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6656 cmp -s conftest.i conftest.out \ 6657 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6658fi 6659rm -f conftest.i conftest2.i conftest.out 6660test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6661fi 6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6663$as_echo "$lt_cv_truncate_bin" >&6; } 6664 6665 6666 6667 6668 6669 6670 6671# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6672func_cc_basename () 6673{ 6674 for cc_temp in $*""; do 6675 case $cc_temp in 6676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6678 \-*) ;; 6679 *) break;; 6680 esac 6681 done 6682 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6683} 6684 6685# Check whether --enable-libtool-lock was given. 6686if test "${enable_libtool_lock+set}" = set; then : 6687 enableval=$enable_libtool_lock; 6688fi 6689 6690test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6691 6692# Some flags need to be propagated to the compiler or linker for good 6693# libtool support. 6694case $host in 6695ia64-*-hpux*) 6696 # Find out what ABI is being produced by ac_compile, and set mode 6697 # options accordingly. 6698 echo 'int i;' > conftest.$ac_ext 6699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6700 (eval $ac_compile) 2>&5 6701 ac_status=$? 6702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6703 test $ac_status = 0; }; then 6704 case `/usr/bin/file conftest.$ac_objext` in 6705 *ELF-32*) 6706 HPUX_IA64_MODE=32 6707 ;; 6708 *ELF-64*) 6709 HPUX_IA64_MODE=64 6710 ;; 6711 esac 6712 fi 6713 rm -rf conftest* 6714 ;; 6715*-*-irix6*) 6716 # Find out what ABI is being produced by ac_compile, and set linker 6717 # options accordingly. 6718 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6720 (eval $ac_compile) 2>&5 6721 ac_status=$? 6722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6723 test $ac_status = 0; }; then 6724 if test yes = "$lt_cv_prog_gnu_ld"; then 6725 case `/usr/bin/file conftest.$ac_objext` in 6726 *32-bit*) 6727 LD="${LD-ld} -melf32bsmip" 6728 ;; 6729 *N32*) 6730 LD="${LD-ld} -melf32bmipn32" 6731 ;; 6732 *64-bit*) 6733 LD="${LD-ld} -melf64bmip" 6734 ;; 6735 esac 6736 else 6737 case `/usr/bin/file conftest.$ac_objext` in 6738 *32-bit*) 6739 LD="${LD-ld} -32" 6740 ;; 6741 *N32*) 6742 LD="${LD-ld} -n32" 6743 ;; 6744 *64-bit*) 6745 LD="${LD-ld} -64" 6746 ;; 6747 esac 6748 fi 6749 fi 6750 rm -rf conftest* 6751 ;; 6752 6753mips64*-*linux*) 6754 # Find out what ABI is being produced by ac_compile, and set linker 6755 # options accordingly. 6756 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6758 (eval $ac_compile) 2>&5 6759 ac_status=$? 6760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6761 test $ac_status = 0; }; then 6762 emul=elf 6763 case `/usr/bin/file conftest.$ac_objext` in 6764 *32-bit*) 6765 emul="${emul}32" 6766 ;; 6767 *64-bit*) 6768 emul="${emul}64" 6769 ;; 6770 esac 6771 case `/usr/bin/file conftest.$ac_objext` in 6772 *MSB*) 6773 emul="${emul}btsmip" 6774 ;; 6775 *LSB*) 6776 emul="${emul}ltsmip" 6777 ;; 6778 esac 6779 case `/usr/bin/file conftest.$ac_objext` in 6780 *N32*) 6781 emul="${emul}n32" 6782 ;; 6783 esac 6784 LD="${LD-ld} -m $emul" 6785 fi 6786 rm -rf conftest* 6787 ;; 6788 6789x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6790s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6791 # Find out what ABI is being produced by ac_compile, and set linker 6792 # options accordingly. Note that the listed cases only cover the 6793 # situations where additional linker options are needed (such as when 6794 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6795 # vice versa); the common cases where no linker options are needed do 6796 # not appear in the list. 6797 echo 'int i;' > conftest.$ac_ext 6798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6799 (eval $ac_compile) 2>&5 6800 ac_status=$? 6801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6802 test $ac_status = 0; }; then 6803 case `/usr/bin/file conftest.o` in 6804 *32-bit*) 6805 case $host in 6806 x86_64-*kfreebsd*-gnu) 6807 LD="${LD-ld} -m elf_i386_fbsd" 6808 ;; 6809 x86_64-*linux*) 6810 case `/usr/bin/file conftest.o` in 6811 *x86-64*) 6812 LD="${LD-ld} -m elf32_x86_64" 6813 ;; 6814 *) 6815 LD="${LD-ld} -m elf_i386" 6816 ;; 6817 esac 6818 ;; 6819 powerpc64le-*linux*) 6820 LD="${LD-ld} -m elf32lppclinux" 6821 ;; 6822 powerpc64-*linux*) 6823 LD="${LD-ld} -m elf32ppclinux" 6824 ;; 6825 s390x-*linux*) 6826 LD="${LD-ld} -m elf_s390" 6827 ;; 6828 sparc64-*linux*) 6829 LD="${LD-ld} -m elf32_sparc" 6830 ;; 6831 esac 6832 ;; 6833 *64-bit*) 6834 case $host in 6835 x86_64-*kfreebsd*-gnu) 6836 LD="${LD-ld} -m elf_x86_64_fbsd" 6837 ;; 6838 x86_64-*linux*) 6839 LD="${LD-ld} -m elf_x86_64" 6840 ;; 6841 powerpcle-*linux*) 6842 LD="${LD-ld} -m elf64lppc" 6843 ;; 6844 powerpc-*linux*) 6845 LD="${LD-ld} -m elf64ppc" 6846 ;; 6847 s390*-*linux*|s390*-*tpf*) 6848 LD="${LD-ld} -m elf64_s390" 6849 ;; 6850 sparc*-*linux*) 6851 LD="${LD-ld} -m elf64_sparc" 6852 ;; 6853 esac 6854 ;; 6855 esac 6856 fi 6857 rm -rf conftest* 6858 ;; 6859 6860*-*-sco3.2v5*) 6861 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6862 SAVE_CFLAGS=$CFLAGS 6863 CFLAGS="$CFLAGS -belf" 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6865$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6866if ${lt_cv_cc_needs_belf+:} false; then : 6867 $as_echo_n "(cached) " >&6 6868else 6869 ac_ext=c 6870ac_cpp='$CPP $CPPFLAGS' 6871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6873ac_compiler_gnu=$ac_cv_c_compiler_gnu 6874 6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6876/* end confdefs.h. */ 6877 6878int 6879main () 6880{ 6881 6882 ; 6883 return 0; 6884} 6885_ACEOF 6886if ac_fn_c_try_link "$LINENO"; then : 6887 lt_cv_cc_needs_belf=yes 6888else 6889 lt_cv_cc_needs_belf=no 6890fi 6891rm -f core conftest.err conftest.$ac_objext \ 6892 conftest$ac_exeext conftest.$ac_ext 6893 ac_ext=c 6894ac_cpp='$CPP $CPPFLAGS' 6895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6897ac_compiler_gnu=$ac_cv_c_compiler_gnu 6898 6899fi 6900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6901$as_echo "$lt_cv_cc_needs_belf" >&6; } 6902 if test yes != "$lt_cv_cc_needs_belf"; then 6903 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6904 CFLAGS=$SAVE_CFLAGS 6905 fi 6906 ;; 6907*-*solaris*) 6908 # Find out what ABI is being produced by ac_compile, and set linker 6909 # options accordingly. 6910 echo 'int i;' > conftest.$ac_ext 6911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6912 (eval $ac_compile) 2>&5 6913 ac_status=$? 6914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6915 test $ac_status = 0; }; then 6916 case `/usr/bin/file conftest.o` in 6917 *64-bit*) 6918 case $lt_cv_prog_gnu_ld in 6919 yes*) 6920 case $host in 6921 i?86-*-solaris*|x86_64-*-solaris*) 6922 LD="${LD-ld} -m elf_x86_64" 6923 ;; 6924 sparc*-*-solaris*) 6925 LD="${LD-ld} -m elf64_sparc" 6926 ;; 6927 esac 6928 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6929 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6930 LD=${LD-ld}_sol2 6931 fi 6932 ;; 6933 *) 6934 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6935 LD="${LD-ld} -64" 6936 fi 6937 ;; 6938 esac 6939 ;; 6940 esac 6941 fi 6942 rm -rf conftest* 6943 ;; 6944esac 6945 6946need_locks=$enable_libtool_lock 6947 6948if test -n "$ac_tool_prefix"; then 6949 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6950set dummy ${ac_tool_prefix}mt; ac_word=$2 6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6952$as_echo_n "checking for $ac_word... " >&6; } 6953if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6954 $as_echo_n "(cached) " >&6 6955else 6956 if test -n "$MANIFEST_TOOL"; then 6957 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6958else 6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6960for as_dir in $PATH 6961do 6962 IFS=$as_save_IFS 6963 test -z "$as_dir" && as_dir=. 6964 for ac_exec_ext in '' $ac_executable_extensions; do 6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6966 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6968 break 2 6969 fi 6970done 6971 done 6972IFS=$as_save_IFS 6973 6974fi 6975fi 6976MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6977if test -n "$MANIFEST_TOOL"; then 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6979$as_echo "$MANIFEST_TOOL" >&6; } 6980else 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6982$as_echo "no" >&6; } 6983fi 6984 6985 6986fi 6987if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6988 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6989 # Extract the first word of "mt", so it can be a program name with args. 6990set dummy mt; ac_word=$2 6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6992$as_echo_n "checking for $ac_word... " >&6; } 6993if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6994 $as_echo_n "(cached) " >&6 6995else 6996 if test -n "$ac_ct_MANIFEST_TOOL"; then 6997 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6998else 6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7000for as_dir in $PATH 7001do 7002 IFS=$as_save_IFS 7003 test -z "$as_dir" && as_dir=. 7004 for ac_exec_ext in '' $ac_executable_extensions; do 7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7006 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7008 break 2 7009 fi 7010done 7011 done 7012IFS=$as_save_IFS 7013 7014fi 7015fi 7016ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7017if test -n "$ac_ct_MANIFEST_TOOL"; then 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7019$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7020else 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7022$as_echo "no" >&6; } 7023fi 7024 7025 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7026 MANIFEST_TOOL=":" 7027 else 7028 case $cross_compiling:$ac_tool_warned in 7029yes:) 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7032ac_tool_warned=yes ;; 7033esac 7034 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7035 fi 7036else 7037 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7038fi 7039 7040test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7042$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7043if ${lt_cv_path_mainfest_tool+:} false; then : 7044 $as_echo_n "(cached) " >&6 7045else 7046 lt_cv_path_mainfest_tool=no 7047 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7048 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7049 cat conftest.err >&5 7050 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7051 lt_cv_path_mainfest_tool=yes 7052 fi 7053 rm -f conftest* 7054fi 7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7056$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7057if test yes != "$lt_cv_path_mainfest_tool"; then 7058 MANIFEST_TOOL=: 7059fi 7060 7061 7062 7063 7064 7065 7066 case $host_os in 7067 rhapsody* | darwin*) 7068 if test -n "$ac_tool_prefix"; then 7069 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7070set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7072$as_echo_n "checking for $ac_word... " >&6; } 7073if ${ac_cv_prog_DSYMUTIL+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075else 7076 if test -n "$DSYMUTIL"; then 7077 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7078else 7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7080for as_dir in $PATH 7081do 7082 IFS=$as_save_IFS 7083 test -z "$as_dir" && as_dir=. 7084 for ac_exec_ext in '' $ac_executable_extensions; do 7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7086 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7088 break 2 7089 fi 7090done 7091 done 7092IFS=$as_save_IFS 7093 7094fi 7095fi 7096DSYMUTIL=$ac_cv_prog_DSYMUTIL 7097if test -n "$DSYMUTIL"; then 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7099$as_echo "$DSYMUTIL" >&6; } 7100else 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7102$as_echo "no" >&6; } 7103fi 7104 7105 7106fi 7107if test -z "$ac_cv_prog_DSYMUTIL"; then 7108 ac_ct_DSYMUTIL=$DSYMUTIL 7109 # Extract the first word of "dsymutil", so it can be a program name with args. 7110set dummy dsymutil; ac_word=$2 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7112$as_echo_n "checking for $ac_word... " >&6; } 7113if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 if test -n "$ac_ct_DSYMUTIL"; then 7117 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7118else 7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7120for as_dir in $PATH 7121do 7122 IFS=$as_save_IFS 7123 test -z "$as_dir" && as_dir=. 7124 for ac_exec_ext in '' $ac_executable_extensions; do 7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7126 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7128 break 2 7129 fi 7130done 7131 done 7132IFS=$as_save_IFS 7133 7134fi 7135fi 7136ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7137if test -n "$ac_ct_DSYMUTIL"; then 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7139$as_echo "$ac_ct_DSYMUTIL" >&6; } 7140else 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7142$as_echo "no" >&6; } 7143fi 7144 7145 if test "x$ac_ct_DSYMUTIL" = x; then 7146 DSYMUTIL=":" 7147 else 7148 case $cross_compiling:$ac_tool_warned in 7149yes:) 7150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7152ac_tool_warned=yes ;; 7153esac 7154 DSYMUTIL=$ac_ct_DSYMUTIL 7155 fi 7156else 7157 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7158fi 7159 7160 if test -n "$ac_tool_prefix"; then 7161 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7162set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7164$as_echo_n "checking for $ac_word... " >&6; } 7165if ${ac_cv_prog_NMEDIT+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167else 7168 if test -n "$NMEDIT"; then 7169 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7170else 7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7172for as_dir in $PATH 7173do 7174 IFS=$as_save_IFS 7175 test -z "$as_dir" && as_dir=. 7176 for ac_exec_ext in '' $ac_executable_extensions; do 7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7178 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7180 break 2 7181 fi 7182done 7183 done 7184IFS=$as_save_IFS 7185 7186fi 7187fi 7188NMEDIT=$ac_cv_prog_NMEDIT 7189if test -n "$NMEDIT"; then 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7191$as_echo "$NMEDIT" >&6; } 7192else 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7194$as_echo "no" >&6; } 7195fi 7196 7197 7198fi 7199if test -z "$ac_cv_prog_NMEDIT"; then 7200 ac_ct_NMEDIT=$NMEDIT 7201 # Extract the first word of "nmedit", so it can be a program name with args. 7202set dummy nmedit; ac_word=$2 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7204$as_echo_n "checking for $ac_word... " >&6; } 7205if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 if test -n "$ac_ct_NMEDIT"; then 7209 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7210else 7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7212for as_dir in $PATH 7213do 7214 IFS=$as_save_IFS 7215 test -z "$as_dir" && as_dir=. 7216 for ac_exec_ext in '' $ac_executable_extensions; do 7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7218 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7220 break 2 7221 fi 7222done 7223 done 7224IFS=$as_save_IFS 7225 7226fi 7227fi 7228ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7229if test -n "$ac_ct_NMEDIT"; then 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7231$as_echo "$ac_ct_NMEDIT" >&6; } 7232else 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7234$as_echo "no" >&6; } 7235fi 7236 7237 if test "x$ac_ct_NMEDIT" = x; then 7238 NMEDIT=":" 7239 else 7240 case $cross_compiling:$ac_tool_warned in 7241yes:) 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7244ac_tool_warned=yes ;; 7245esac 7246 NMEDIT=$ac_ct_NMEDIT 7247 fi 7248else 7249 NMEDIT="$ac_cv_prog_NMEDIT" 7250fi 7251 7252 if test -n "$ac_tool_prefix"; then 7253 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7254set dummy ${ac_tool_prefix}lipo; ac_word=$2 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7256$as_echo_n "checking for $ac_word... " >&6; } 7257if ${ac_cv_prog_LIPO+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259else 7260 if test -n "$LIPO"; then 7261 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7262else 7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264for as_dir in $PATH 7265do 7266 IFS=$as_save_IFS 7267 test -z "$as_dir" && as_dir=. 7268 for ac_exec_ext in '' $ac_executable_extensions; do 7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7270 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7272 break 2 7273 fi 7274done 7275 done 7276IFS=$as_save_IFS 7277 7278fi 7279fi 7280LIPO=$ac_cv_prog_LIPO 7281if test -n "$LIPO"; then 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7283$as_echo "$LIPO" >&6; } 7284else 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7286$as_echo "no" >&6; } 7287fi 7288 7289 7290fi 7291if test -z "$ac_cv_prog_LIPO"; then 7292 ac_ct_LIPO=$LIPO 7293 # Extract the first word of "lipo", so it can be a program name with args. 7294set dummy lipo; ac_word=$2 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7296$as_echo_n "checking for $ac_word... " >&6; } 7297if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7298 $as_echo_n "(cached) " >&6 7299else 7300 if test -n "$ac_ct_LIPO"; then 7301 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7302else 7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7304for as_dir in $PATH 7305do 7306 IFS=$as_save_IFS 7307 test -z "$as_dir" && as_dir=. 7308 for ac_exec_ext in '' $ac_executable_extensions; do 7309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7310 ac_cv_prog_ac_ct_LIPO="lipo" 7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7312 break 2 7313 fi 7314done 7315 done 7316IFS=$as_save_IFS 7317 7318fi 7319fi 7320ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7321if test -n "$ac_ct_LIPO"; then 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7323$as_echo "$ac_ct_LIPO" >&6; } 7324else 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7326$as_echo "no" >&6; } 7327fi 7328 7329 if test "x$ac_ct_LIPO" = x; then 7330 LIPO=":" 7331 else 7332 case $cross_compiling:$ac_tool_warned in 7333yes:) 7334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7336ac_tool_warned=yes ;; 7337esac 7338 LIPO=$ac_ct_LIPO 7339 fi 7340else 7341 LIPO="$ac_cv_prog_LIPO" 7342fi 7343 7344 if test -n "$ac_tool_prefix"; then 7345 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7346set dummy ${ac_tool_prefix}otool; ac_word=$2 7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7348$as_echo_n "checking for $ac_word... " >&6; } 7349if ${ac_cv_prog_OTOOL+:} false; then : 7350 $as_echo_n "(cached) " >&6 7351else 7352 if test -n "$OTOOL"; then 7353 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7354else 7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7356for as_dir in $PATH 7357do 7358 IFS=$as_save_IFS 7359 test -z "$as_dir" && as_dir=. 7360 for ac_exec_ext in '' $ac_executable_extensions; do 7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7362 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7364 break 2 7365 fi 7366done 7367 done 7368IFS=$as_save_IFS 7369 7370fi 7371fi 7372OTOOL=$ac_cv_prog_OTOOL 7373if test -n "$OTOOL"; then 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7375$as_echo "$OTOOL" >&6; } 7376else 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7378$as_echo "no" >&6; } 7379fi 7380 7381 7382fi 7383if test -z "$ac_cv_prog_OTOOL"; then 7384 ac_ct_OTOOL=$OTOOL 7385 # Extract the first word of "otool", so it can be a program name with args. 7386set dummy otool; ac_word=$2 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7388$as_echo_n "checking for $ac_word... " >&6; } 7389if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 if test -n "$ac_ct_OTOOL"; then 7393 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7394else 7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7396for as_dir in $PATH 7397do 7398 IFS=$as_save_IFS 7399 test -z "$as_dir" && as_dir=. 7400 for ac_exec_ext in '' $ac_executable_extensions; do 7401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7402 ac_cv_prog_ac_ct_OTOOL="otool" 7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7404 break 2 7405 fi 7406done 7407 done 7408IFS=$as_save_IFS 7409 7410fi 7411fi 7412ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7413if test -n "$ac_ct_OTOOL"; then 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7415$as_echo "$ac_ct_OTOOL" >&6; } 7416else 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7418$as_echo "no" >&6; } 7419fi 7420 7421 if test "x$ac_ct_OTOOL" = x; then 7422 OTOOL=":" 7423 else 7424 case $cross_compiling:$ac_tool_warned in 7425yes:) 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7428ac_tool_warned=yes ;; 7429esac 7430 OTOOL=$ac_ct_OTOOL 7431 fi 7432else 7433 OTOOL="$ac_cv_prog_OTOOL" 7434fi 7435 7436 if test -n "$ac_tool_prefix"; then 7437 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7438set dummy ${ac_tool_prefix}otool64; ac_word=$2 7439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7440$as_echo_n "checking for $ac_word... " >&6; } 7441if ${ac_cv_prog_OTOOL64+:} false; then : 7442 $as_echo_n "(cached) " >&6 7443else 7444 if test -n "$OTOOL64"; then 7445 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7446else 7447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7448for as_dir in $PATH 7449do 7450 IFS=$as_save_IFS 7451 test -z "$as_dir" && as_dir=. 7452 for ac_exec_ext in '' $ac_executable_extensions; do 7453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7454 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7456 break 2 7457 fi 7458done 7459 done 7460IFS=$as_save_IFS 7461 7462fi 7463fi 7464OTOOL64=$ac_cv_prog_OTOOL64 7465if test -n "$OTOOL64"; then 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7467$as_echo "$OTOOL64" >&6; } 7468else 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7470$as_echo "no" >&6; } 7471fi 7472 7473 7474fi 7475if test -z "$ac_cv_prog_OTOOL64"; then 7476 ac_ct_OTOOL64=$OTOOL64 7477 # Extract the first word of "otool64", so it can be a program name with args. 7478set dummy otool64; ac_word=$2 7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7480$as_echo_n "checking for $ac_word... " >&6; } 7481if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7482 $as_echo_n "(cached) " >&6 7483else 7484 if test -n "$ac_ct_OTOOL64"; then 7485 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7486else 7487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7488for as_dir in $PATH 7489do 7490 IFS=$as_save_IFS 7491 test -z "$as_dir" && as_dir=. 7492 for ac_exec_ext in '' $ac_executable_extensions; do 7493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7494 ac_cv_prog_ac_ct_OTOOL64="otool64" 7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7496 break 2 7497 fi 7498done 7499 done 7500IFS=$as_save_IFS 7501 7502fi 7503fi 7504ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7505if test -n "$ac_ct_OTOOL64"; then 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7507$as_echo "$ac_ct_OTOOL64" >&6; } 7508else 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7510$as_echo "no" >&6; } 7511fi 7512 7513 if test "x$ac_ct_OTOOL64" = x; then 7514 OTOOL64=":" 7515 else 7516 case $cross_compiling:$ac_tool_warned in 7517yes:) 7518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7520ac_tool_warned=yes ;; 7521esac 7522 OTOOL64=$ac_ct_OTOOL64 7523 fi 7524else 7525 OTOOL64="$ac_cv_prog_OTOOL64" 7526fi 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7555$as_echo_n "checking for -single_module linker flag... " >&6; } 7556if ${lt_cv_apple_cc_single_mod+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558else 7559 lt_cv_apple_cc_single_mod=no 7560 if test -z "$LT_MULTI_MODULE"; then 7561 # By default we will add the -single_module flag. You can override 7562 # by either setting the environment variable LT_MULTI_MODULE 7563 # non-empty at configure time, or by adding -multi_module to the 7564 # link flags. 7565 rm -rf libconftest.dylib* 7566 echo "int foo(void){return 1;}" > conftest.c 7567 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7568-dynamiclib -Wl,-single_module conftest.c" >&5 7569 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7570 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7571 _lt_result=$? 7572 # If there is a non-empty error log, and "single_module" 7573 # appears in it, assume the flag caused a linker warning 7574 if test -s conftest.err && $GREP single_module conftest.err; then 7575 cat conftest.err >&5 7576 # Otherwise, if the output was created with a 0 exit code from 7577 # the compiler, it worked. 7578 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7579 lt_cv_apple_cc_single_mod=yes 7580 else 7581 cat conftest.err >&5 7582 fi 7583 rm -rf libconftest.dylib* 7584 rm -f conftest.* 7585 fi 7586fi 7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7588$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7589 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7591$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7592if ${lt_cv_ld_exported_symbols_list+:} false; then : 7593 $as_echo_n "(cached) " >&6 7594else 7595 lt_cv_ld_exported_symbols_list=no 7596 save_LDFLAGS=$LDFLAGS 7597 echo "_main" > conftest.sym 7598 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7600/* end confdefs.h. */ 7601 7602int 7603main () 7604{ 7605 7606 ; 7607 return 0; 7608} 7609_ACEOF 7610if ac_fn_c_try_link "$LINENO"; then : 7611 lt_cv_ld_exported_symbols_list=yes 7612else 7613 lt_cv_ld_exported_symbols_list=no 7614fi 7615rm -f core conftest.err conftest.$ac_objext \ 7616 conftest$ac_exeext conftest.$ac_ext 7617 LDFLAGS=$save_LDFLAGS 7618 7619fi 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7621$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7622 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7624$as_echo_n "checking for -force_load linker flag... " >&6; } 7625if ${lt_cv_ld_force_load+:} false; then : 7626 $as_echo_n "(cached) " >&6 7627else 7628 lt_cv_ld_force_load=no 7629 cat > conftest.c << _LT_EOF 7630int forced_loaded() { return 2;} 7631_LT_EOF 7632 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7633 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7634 echo "$AR cru libconftest.a conftest.o" >&5 7635 $AR cru libconftest.a conftest.o 2>&5 7636 echo "$RANLIB libconftest.a" >&5 7637 $RANLIB libconftest.a 2>&5 7638 cat > conftest.c << _LT_EOF 7639int main() { return 0;} 7640_LT_EOF 7641 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7642 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7643 _lt_result=$? 7644 if test -s conftest.err && $GREP force_load conftest.err; then 7645 cat conftest.err >&5 7646 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7647 lt_cv_ld_force_load=yes 7648 else 7649 cat conftest.err >&5 7650 fi 7651 rm -f conftest.err libconftest.a conftest conftest.c 7652 rm -rf conftest.dSYM 7653 7654fi 7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7656$as_echo "$lt_cv_ld_force_load" >&6; } 7657 case $host_os in 7658 rhapsody* | darwin1.[012]) 7659 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7660 darwin1.*) 7661 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7662 darwin*) # darwin 5.x on 7663 # if running on 10.5 or later, the deployment target defaults 7664 # to the OS version, if on x86, and 10.4, the deployment 7665 # target defaults to 10.4. Don't you love it? 7666 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7667 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7668 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7669 10.[012][,.]*) 7670 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7671 10.*) 7672 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7673 esac 7674 ;; 7675 esac 7676 if test yes = "$lt_cv_apple_cc_single_mod"; then 7677 _lt_dar_single_mod='$single_module' 7678 fi 7679 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7680 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7681 else 7682 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7683 fi 7684 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7685 _lt_dsymutil='~$DSYMUTIL $lib || :' 7686 else 7687 _lt_dsymutil= 7688 fi 7689 ;; 7690 esac 7691 7692# func_munge_path_list VARIABLE PATH 7693# ----------------------------------- 7694# VARIABLE is name of variable containing _space_ separated list of 7695# directories to be munged by the contents of PATH, which is string 7696# having a format: 7697# "DIR[:DIR]:" 7698# string "DIR[ DIR]" will be prepended to VARIABLE 7699# ":DIR[:DIR]" 7700# string "DIR[ DIR]" will be appended to VARIABLE 7701# "DIRP[:DIRP]::[DIRA:]DIRA" 7702# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7703# "DIRA[ DIRA]" will be appended to VARIABLE 7704# "DIR[:DIR]" 7705# VARIABLE will be replaced by "DIR[ DIR]" 7706func_munge_path_list () 7707{ 7708 case x$2 in 7709 x) 7710 ;; 7711 *:) 7712 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7713 ;; 7714 x:*) 7715 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7716 ;; 7717 *::*) 7718 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7719 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7720 ;; 7721 *) 7722 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7723 ;; 7724 esac 7725} 7726 7727 7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7729$as_echo_n "checking for ANSI C header files... " >&6; } 7730if ${ac_cv_header_stdc+:} false; then : 7731 $as_echo_n "(cached) " >&6 7732else 7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7734/* end confdefs.h. */ 7735#include <stdlib.h> 7736#include <stdarg.h> 7737#include <string.h> 7738#include <float.h> 7739 7740int 7741main () 7742{ 7743 7744 ; 7745 return 0; 7746} 7747_ACEOF 7748if ac_fn_c_try_compile "$LINENO"; then : 7749 ac_cv_header_stdc=yes 7750else 7751 ac_cv_header_stdc=no 7752fi 7753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7754 7755if test $ac_cv_header_stdc = yes; then 7756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7758/* end confdefs.h. */ 7759#include <string.h> 7760 7761_ACEOF 7762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7763 $EGREP "memchr" >/dev/null 2>&1; then : 7764 7765else 7766 ac_cv_header_stdc=no 7767fi 7768rm -f conftest* 7769 7770fi 7771 7772if test $ac_cv_header_stdc = yes; then 7773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7775/* end confdefs.h. */ 7776#include <stdlib.h> 7777 7778_ACEOF 7779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7780 $EGREP "free" >/dev/null 2>&1; then : 7781 7782else 7783 ac_cv_header_stdc=no 7784fi 7785rm -f conftest* 7786 7787fi 7788 7789if test $ac_cv_header_stdc = yes; then 7790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7791 if test "$cross_compiling" = yes; then : 7792 : 7793else 7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7795/* end confdefs.h. */ 7796#include <ctype.h> 7797#include <stdlib.h> 7798#if ((' ' & 0x0FF) == 0x020) 7799# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7800# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7801#else 7802# define ISLOWER(c) \ 7803 (('a' <= (c) && (c) <= 'i') \ 7804 || ('j' <= (c) && (c) <= 'r') \ 7805 || ('s' <= (c) && (c) <= 'z')) 7806# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7807#endif 7808 7809#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7810int 7811main () 7812{ 7813 int i; 7814 for (i = 0; i < 256; i++) 7815 if (XOR (islower (i), ISLOWER (i)) 7816 || toupper (i) != TOUPPER (i)) 7817 return 2; 7818 return 0; 7819} 7820_ACEOF 7821if ac_fn_c_try_run "$LINENO"; then : 7822 7823else 7824 ac_cv_header_stdc=no 7825fi 7826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7827 conftest.$ac_objext conftest.beam conftest.$ac_ext 7828fi 7829 7830fi 7831fi 7832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7833$as_echo "$ac_cv_header_stdc" >&6; } 7834if test $ac_cv_header_stdc = yes; then 7835 7836$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7837 7838fi 7839 7840# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7841for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7842 inttypes.h stdint.h unistd.h 7843do : 7844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7845ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7846" 7847if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7848 cat >>confdefs.h <<_ACEOF 7849#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7850_ACEOF 7851 7852fi 7853 7854done 7855 7856 7857for ac_header in dlfcn.h 7858do : 7859 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7860" 7861if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7862 cat >>confdefs.h <<_ACEOF 7863#define HAVE_DLFCN_H 1 7864_ACEOF 7865 7866fi 7867 7868done 7869 7870 7871 7872 7873 7874# Set options 7875 7876 7877 7878 enable_dlopen=no 7879 7880 7881 enable_win32_dll=no 7882 7883 7884 # Check whether --enable-shared was given. 7885if test "${enable_shared+set}" = set; then : 7886 enableval=$enable_shared; p=${PACKAGE-default} 7887 case $enableval in 7888 yes) enable_shared=yes ;; 7889 no) enable_shared=no ;; 7890 *) 7891 enable_shared=no 7892 # Look at the argument we got. We use all the common list separators. 7893 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7894 for pkg in $enableval; do 7895 IFS=$lt_save_ifs 7896 if test "X$pkg" = "X$p"; then 7897 enable_shared=yes 7898 fi 7899 done 7900 IFS=$lt_save_ifs 7901 ;; 7902 esac 7903else 7904 enable_shared=yes 7905fi 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 # Check whether --enable-static was given. 7916if test "${enable_static+set}" = set; then : 7917 enableval=$enable_static; p=${PACKAGE-default} 7918 case $enableval in 7919 yes) enable_static=yes ;; 7920 no) enable_static=no ;; 7921 *) 7922 enable_static=no 7923 # Look at the argument we got. We use all the common list separators. 7924 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7925 for pkg in $enableval; do 7926 IFS=$lt_save_ifs 7927 if test "X$pkg" = "X$p"; then 7928 enable_static=yes 7929 fi 7930 done 7931 IFS=$lt_save_ifs 7932 ;; 7933 esac 7934else 7935 enable_static=yes 7936fi 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947# Check whether --with-pic was given. 7948if test "${with_pic+set}" = set; then : 7949 withval=$with_pic; lt_p=${PACKAGE-default} 7950 case $withval in 7951 yes|no) pic_mode=$withval ;; 7952 *) 7953 pic_mode=default 7954 # Look at the argument we got. We use all the common list separators. 7955 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7956 for lt_pkg in $withval; do 7957 IFS=$lt_save_ifs 7958 if test "X$lt_pkg" = "X$lt_p"; then 7959 pic_mode=yes 7960 fi 7961 done 7962 IFS=$lt_save_ifs 7963 ;; 7964 esac 7965else 7966 pic_mode=default 7967fi 7968 7969 7970 7971 7972 7973 7974 7975 7976 # Check whether --enable-fast-install was given. 7977if test "${enable_fast_install+set}" = set; then : 7978 enableval=$enable_fast_install; p=${PACKAGE-default} 7979 case $enableval in 7980 yes) enable_fast_install=yes ;; 7981 no) enable_fast_install=no ;; 7982 *) 7983 enable_fast_install=no 7984 # Look at the argument we got. We use all the common list separators. 7985 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7986 for pkg in $enableval; do 7987 IFS=$lt_save_ifs 7988 if test "X$pkg" = "X$p"; then 7989 enable_fast_install=yes 7990 fi 7991 done 7992 IFS=$lt_save_ifs 7993 ;; 7994 esac 7995else 7996 enable_fast_install=yes 7997fi 7998 7999 8000 8001 8002 8003 8004 8005 8006 shared_archive_member_spec= 8007case $host,$enable_shared in 8008power*-*-aix[5-9]*,yes) 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8010$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8011 8012# Check whether --with-aix-soname was given. 8013if test "${with_aix_soname+set}" = set; then : 8014 withval=$with_aix_soname; case $withval in 8015 aix|svr4|both) 8016 ;; 8017 *) 8018 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8019 ;; 8020 esac 8021 lt_cv_with_aix_soname=$with_aix_soname 8022else 8023 if ${lt_cv_with_aix_soname+:} false; then : 8024 $as_echo_n "(cached) " >&6 8025else 8026 lt_cv_with_aix_soname=aix 8027fi 8028 8029 with_aix_soname=$lt_cv_with_aix_soname 8030fi 8031 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8033$as_echo "$with_aix_soname" >&6; } 8034 if test aix != "$with_aix_soname"; then 8035 # For the AIX way of multilib, we name the shared archive member 8036 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8037 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8038 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8039 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8040 if test 64 = "${OBJECT_MODE-32}"; then 8041 shared_archive_member_spec=shr_64 8042 else 8043 shared_archive_member_spec=shr 8044 fi 8045 fi 8046 ;; 8047*) 8048 with_aix_soname=aix 8049 ;; 8050esac 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061# This can be used to rebuild libtool when needed 8062LIBTOOL_DEPS=$ltmain 8063 8064# Always use our own libtool. 8065LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096test -z "$LN_S" && LN_S="ln -s" 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111if test -n "${ZSH_VERSION+set}"; then 8112 setopt NO_GLOB_SUBST 8113fi 8114 8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8116$as_echo_n "checking for objdir... " >&6; } 8117if ${lt_cv_objdir+:} false; then : 8118 $as_echo_n "(cached) " >&6 8119else 8120 rm -f .libs 2>/dev/null 8121mkdir .libs 2>/dev/null 8122if test -d .libs; then 8123 lt_cv_objdir=.libs 8124else 8125 # MS-DOS does not allow filenames that begin with a dot. 8126 lt_cv_objdir=_libs 8127fi 8128rmdir .libs 2>/dev/null 8129fi 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8131$as_echo "$lt_cv_objdir" >&6; } 8132objdir=$lt_cv_objdir 8133 8134 8135 8136 8137 8138cat >>confdefs.h <<_ACEOF 8139#define LT_OBJDIR "$lt_cv_objdir/" 8140_ACEOF 8141 8142 8143 8144 8145case $host_os in 8146aix3*) 8147 # AIX sometimes has problems with the GCC collect2 program. For some 8148 # reason, if we set the COLLECT_NAMES environment variable, the problems 8149 # vanish in a puff of smoke. 8150 if test set != "${COLLECT_NAMES+set}"; then 8151 COLLECT_NAMES= 8152 export COLLECT_NAMES 8153 fi 8154 ;; 8155esac 8156 8157# Global variables: 8158ofile=libtool 8159can_build_shared=yes 8160 8161# All known linkers require a '.a' archive for static linking (except MSVC, 8162# which needs '.lib'). 8163libext=a 8164 8165with_gnu_ld=$lt_cv_prog_gnu_ld 8166 8167old_CC=$CC 8168old_CFLAGS=$CFLAGS 8169 8170# Set sane defaults for various variables 8171test -z "$CC" && CC=cc 8172test -z "$LTCC" && LTCC=$CC 8173test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8174test -z "$LD" && LD=ld 8175test -z "$ac_objext" && ac_objext=o 8176 8177func_cc_basename $compiler 8178cc_basename=$func_cc_basename_result 8179 8180 8181# Only perform the check for file, if the check method requires it 8182test -z "$MAGIC_CMD" && MAGIC_CMD=file 8183case $deplibs_check_method in 8184file_magic*) 8185 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8187$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8188if ${lt_cv_path_MAGIC_CMD+:} false; then : 8189 $as_echo_n "(cached) " >&6 8190else 8191 case $MAGIC_CMD in 8192[\\/*] | ?:[\\/]*) 8193 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8194 ;; 8195*) 8196 lt_save_MAGIC_CMD=$MAGIC_CMD 8197 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8199 for ac_dir in $ac_dummy; do 8200 IFS=$lt_save_ifs 8201 test -z "$ac_dir" && ac_dir=. 8202 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8203 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8204 if test -n "$file_magic_test_file"; then 8205 case $deplibs_check_method in 8206 "file_magic "*) 8207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8208 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8210 $EGREP "$file_magic_regex" > /dev/null; then 8211 : 8212 else 8213 cat <<_LT_EOF 1>&2 8214 8215*** Warning: the command libtool uses to detect shared libraries, 8216*** $file_magic_cmd, produces output that libtool cannot recognize. 8217*** The result is that libtool may fail to recognize shared libraries 8218*** as such. This will affect the creation of libtool libraries that 8219*** depend on shared libraries, but programs linked with such libtool 8220*** libraries will work regardless of this problem. Nevertheless, you 8221*** may want to report the problem to your system manager and/or to 8222*** bug-libtool@gnu.org 8223 8224_LT_EOF 8225 fi ;; 8226 esac 8227 fi 8228 break 8229 fi 8230 done 8231 IFS=$lt_save_ifs 8232 MAGIC_CMD=$lt_save_MAGIC_CMD 8233 ;; 8234esac 8235fi 8236 8237MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8238if test -n "$MAGIC_CMD"; then 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8240$as_echo "$MAGIC_CMD" >&6; } 8241else 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8243$as_echo "no" >&6; } 8244fi 8245 8246 8247 8248 8249 8250if test -z "$lt_cv_path_MAGIC_CMD"; then 8251 if test -n "$ac_tool_prefix"; then 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8253$as_echo_n "checking for file... " >&6; } 8254if ${lt_cv_path_MAGIC_CMD+:} false; then : 8255 $as_echo_n "(cached) " >&6 8256else 8257 case $MAGIC_CMD in 8258[\\/*] | ?:[\\/]*) 8259 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8260 ;; 8261*) 8262 lt_save_MAGIC_CMD=$MAGIC_CMD 8263 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8264 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8265 for ac_dir in $ac_dummy; do 8266 IFS=$lt_save_ifs 8267 test -z "$ac_dir" && ac_dir=. 8268 if test -f "$ac_dir/file"; then 8269 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8270 if test -n "$file_magic_test_file"; then 8271 case $deplibs_check_method in 8272 "file_magic "*) 8273 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8274 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8275 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8276 $EGREP "$file_magic_regex" > /dev/null; then 8277 : 8278 else 8279 cat <<_LT_EOF 1>&2 8280 8281*** Warning: the command libtool uses to detect shared libraries, 8282*** $file_magic_cmd, produces output that libtool cannot recognize. 8283*** The result is that libtool may fail to recognize shared libraries 8284*** as such. This will affect the creation of libtool libraries that 8285*** depend on shared libraries, but programs linked with such libtool 8286*** libraries will work regardless of this problem. Nevertheless, you 8287*** may want to report the problem to your system manager and/or to 8288*** bug-libtool@gnu.org 8289 8290_LT_EOF 8291 fi ;; 8292 esac 8293 fi 8294 break 8295 fi 8296 done 8297 IFS=$lt_save_ifs 8298 MAGIC_CMD=$lt_save_MAGIC_CMD 8299 ;; 8300esac 8301fi 8302 8303MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8304if test -n "$MAGIC_CMD"; then 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8306$as_echo "$MAGIC_CMD" >&6; } 8307else 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8309$as_echo "no" >&6; } 8310fi 8311 8312 8313 else 8314 MAGIC_CMD=: 8315 fi 8316fi 8317 8318 fi 8319 ;; 8320esac 8321 8322# Use C for the default configuration in the libtool script 8323 8324lt_save_CC=$CC 8325ac_ext=c 8326ac_cpp='$CPP $CPPFLAGS' 8327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8329ac_compiler_gnu=$ac_cv_c_compiler_gnu 8330 8331 8332# Source file extension for C test sources. 8333ac_ext=c 8334 8335# Object file extension for compiled C test sources. 8336objext=o 8337objext=$objext 8338 8339# Code to be used in simple compile tests 8340lt_simple_compile_test_code="int some_variable = 0;" 8341 8342# Code to be used in simple link tests 8343lt_simple_link_test_code='int main(){return(0);}' 8344 8345 8346 8347 8348 8349 8350 8351# If no C compiler was specified, use CC. 8352LTCC=${LTCC-"$CC"} 8353 8354# If no C compiler flags were specified, use CFLAGS. 8355LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8356 8357# Allow CC to be a program name with arguments. 8358compiler=$CC 8359 8360# Save the default compiler, since it gets overwritten when the other 8361# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8362compiler_DEFAULT=$CC 8363 8364# save warnings/boilerplate of simple test code 8365ac_outfile=conftest.$ac_objext 8366echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8367eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8368_lt_compiler_boilerplate=`cat conftest.err` 8369$RM conftest* 8370 8371ac_outfile=conftest.$ac_objext 8372echo "$lt_simple_link_test_code" >conftest.$ac_ext 8373eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8374_lt_linker_boilerplate=`cat conftest.err` 8375$RM -r conftest* 8376 8377 8378## CAVEAT EMPTOR: 8379## There is no encapsulation within the following macros, do not change 8380## the running order or otherwise move them around unless you know exactly 8381## what you are doing... 8382if test -n "$compiler"; then 8383 8384lt_prog_compiler_no_builtin_flag= 8385 8386if test yes = "$GCC"; then 8387 case $cc_basename in 8388 nvcc*) 8389 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8390 *) 8391 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8392 esac 8393 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8395$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8396if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8397 $as_echo_n "(cached) " >&6 8398else 8399 lt_cv_prog_compiler_rtti_exceptions=no 8400 ac_outfile=conftest.$ac_objext 8401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8402 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8403 # Insert the option either (1) after the last *FLAGS variable, or 8404 # (2) before a word containing "conftest.", or (3) at the end. 8405 # Note that $ac_compile itself does not contain backslashes and begins 8406 # with a dollar sign (not a hyphen), so the echo should work correctly. 8407 # The option is referenced via a variable to avoid confusing sed. 8408 lt_compile=`echo "$ac_compile" | $SED \ 8409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8411 -e 's:$: $lt_compiler_flag:'` 8412 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8413 (eval "$lt_compile" 2>conftest.err) 8414 ac_status=$? 8415 cat conftest.err >&5 8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8417 if (exit $ac_status) && test -s "$ac_outfile"; then 8418 # The compiler can only warn and ignore the option if not recognized 8419 # So say no if there are warnings other than the usual output. 8420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8422 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8423 lt_cv_prog_compiler_rtti_exceptions=yes 8424 fi 8425 fi 8426 $RM conftest* 8427 8428fi 8429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8430$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8431 8432if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8433 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8434else 8435 : 8436fi 8437 8438fi 8439 8440 8441 8442 8443 8444 8445 lt_prog_compiler_wl= 8446lt_prog_compiler_pic= 8447lt_prog_compiler_static= 8448 8449 8450 if test yes = "$GCC"; then 8451 lt_prog_compiler_wl='-Wl,' 8452 lt_prog_compiler_static='-static' 8453 8454 case $host_os in 8455 aix*) 8456 # All AIX code is PIC. 8457 if test ia64 = "$host_cpu"; then 8458 # AIX 5 now supports IA64 processor 8459 lt_prog_compiler_static='-Bstatic' 8460 fi 8461 lt_prog_compiler_pic='-fPIC' 8462 ;; 8463 8464 amigaos*) 8465 case $host_cpu in 8466 powerpc) 8467 # see comment about AmigaOS4 .so support 8468 lt_prog_compiler_pic='-fPIC' 8469 ;; 8470 m68k) 8471 # FIXME: we need at least 68020 code to build shared libraries, but 8472 # adding the '-m68020' flag to GCC prevents building anything better, 8473 # like '-m68040'. 8474 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8475 ;; 8476 esac 8477 ;; 8478 8479 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8480 # PIC is the default for these OSes. 8481 ;; 8482 8483 mingw* | cygwin* | pw32* | os2* | cegcc*) 8484 # This hack is so that the source file can tell whether it is being 8485 # built for inclusion in a dll (and should export symbols for example). 8486 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8487 # (--disable-auto-import) libraries 8488 lt_prog_compiler_pic='-DDLL_EXPORT' 8489 case $host_os in 8490 os2*) 8491 lt_prog_compiler_static='$wl-static' 8492 ;; 8493 esac 8494 ;; 8495 8496 darwin* | rhapsody*) 8497 # PIC is the default on this platform 8498 # Common symbols not allowed in MH_DYLIB files 8499 lt_prog_compiler_pic='-fno-common' 8500 ;; 8501 8502 haiku*) 8503 # PIC is the default for Haiku. 8504 # The "-static" flag exists, but is broken. 8505 lt_prog_compiler_static= 8506 ;; 8507 8508 hpux*) 8509 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8510 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8511 # sets the default TLS model and affects inlining. 8512 case $host_cpu in 8513 hppa*64*) 8514 # +Z the default 8515 ;; 8516 *) 8517 lt_prog_compiler_pic='-fPIC' 8518 ;; 8519 esac 8520 ;; 8521 8522 interix[3-9]*) 8523 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8524 # Instead, we relocate shared libraries at runtime. 8525 ;; 8526 8527 msdosdjgpp*) 8528 # Just because we use GCC doesn't mean we suddenly get shared libraries 8529 # on systems that don't support them. 8530 lt_prog_compiler_can_build_shared=no 8531 enable_shared=no 8532 ;; 8533 8534 *nto* | *qnx*) 8535 # QNX uses GNU C++, but need to define -shared option too, otherwise 8536 # it will coredump. 8537 lt_prog_compiler_pic='-fPIC -shared' 8538 ;; 8539 8540 sysv4*MP*) 8541 if test -d /usr/nec; then 8542 lt_prog_compiler_pic=-Kconform_pic 8543 fi 8544 ;; 8545 8546 *) 8547 lt_prog_compiler_pic='-fPIC' 8548 ;; 8549 esac 8550 8551 case $cc_basename in 8552 nvcc*) # Cuda Compiler Driver 2.2 8553 lt_prog_compiler_wl='-Xlinker ' 8554 if test -n "$lt_prog_compiler_pic"; then 8555 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8556 fi 8557 ;; 8558 esac 8559 else 8560 # PORTME Check for flag to pass linker flags through the system compiler. 8561 case $host_os in 8562 aix*) 8563 lt_prog_compiler_wl='-Wl,' 8564 if test ia64 = "$host_cpu"; then 8565 # AIX 5 now supports IA64 processor 8566 lt_prog_compiler_static='-Bstatic' 8567 else 8568 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8569 fi 8570 ;; 8571 8572 darwin* | rhapsody*) 8573 # PIC is the default on this platform 8574 # Common symbols not allowed in MH_DYLIB files 8575 lt_prog_compiler_pic='-fno-common' 8576 case $cc_basename in 8577 nagfor*) 8578 # NAG Fortran compiler 8579 lt_prog_compiler_wl='-Wl,-Wl,,' 8580 lt_prog_compiler_pic='-PIC' 8581 lt_prog_compiler_static='-Bstatic' 8582 ;; 8583 esac 8584 ;; 8585 8586 mingw* | cygwin* | pw32* | os2* | cegcc*) 8587 # This hack is so that the source file can tell whether it is being 8588 # built for inclusion in a dll (and should export symbols for example). 8589 lt_prog_compiler_pic='-DDLL_EXPORT' 8590 case $host_os in 8591 os2*) 8592 lt_prog_compiler_static='$wl-static' 8593 ;; 8594 esac 8595 ;; 8596 8597 hpux9* | hpux10* | hpux11*) 8598 lt_prog_compiler_wl='-Wl,' 8599 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8600 # not for PA HP-UX. 8601 case $host_cpu in 8602 hppa*64*|ia64*) 8603 # +Z the default 8604 ;; 8605 *) 8606 lt_prog_compiler_pic='+Z' 8607 ;; 8608 esac 8609 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8610 lt_prog_compiler_static='$wl-a ${wl}archive' 8611 ;; 8612 8613 irix5* | irix6* | nonstopux*) 8614 lt_prog_compiler_wl='-Wl,' 8615 # PIC (with -KPIC) is the default. 8616 lt_prog_compiler_static='-non_shared' 8617 ;; 8618 8619 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8620 case $cc_basename in 8621 # old Intel for x86_64, which still supported -KPIC. 8622 ecc*) 8623 lt_prog_compiler_wl='-Wl,' 8624 lt_prog_compiler_pic='-KPIC' 8625 lt_prog_compiler_static='-static' 8626 ;; 8627 # icc used to be incompatible with GCC. 8628 # ICC 10 doesn't accept -KPIC any more. 8629 icc* | ifort*) 8630 lt_prog_compiler_wl='-Wl,' 8631 lt_prog_compiler_pic='-fPIC' 8632 lt_prog_compiler_static='-static' 8633 ;; 8634 # Lahey Fortran 8.1. 8635 lf95*) 8636 lt_prog_compiler_wl='-Wl,' 8637 lt_prog_compiler_pic='--shared' 8638 lt_prog_compiler_static='--static' 8639 ;; 8640 nagfor*) 8641 # NAG Fortran compiler 8642 lt_prog_compiler_wl='-Wl,-Wl,,' 8643 lt_prog_compiler_pic='-PIC' 8644 lt_prog_compiler_static='-Bstatic' 8645 ;; 8646 tcc*) 8647 # Fabrice Bellard et al's Tiny C Compiler 8648 lt_prog_compiler_wl='-Wl,' 8649 lt_prog_compiler_pic='-fPIC' 8650 lt_prog_compiler_static='-static' 8651 ;; 8652 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8653 # Portland Group compilers (*not* the Pentium gcc compiler, 8654 # which looks to be a dead project) 8655 lt_prog_compiler_wl='-Wl,' 8656 lt_prog_compiler_pic='-fpic' 8657 lt_prog_compiler_static='-Bstatic' 8658 ;; 8659 ccc*) 8660 lt_prog_compiler_wl='-Wl,' 8661 # All Alpha code is PIC. 8662 lt_prog_compiler_static='-non_shared' 8663 ;; 8664 xl* | bgxl* | bgf* | mpixl*) 8665 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8666 lt_prog_compiler_wl='-Wl,' 8667 lt_prog_compiler_pic='-qpic' 8668 lt_prog_compiler_static='-qstaticlink' 8669 ;; 8670 *) 8671 case `$CC -V 2>&1 | sed 5q` in 8672 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8673 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8674 lt_prog_compiler_pic='-KPIC' 8675 lt_prog_compiler_static='-Bstatic' 8676 lt_prog_compiler_wl='' 8677 ;; 8678 *Sun\ F* | *Sun*Fortran*) 8679 lt_prog_compiler_pic='-KPIC' 8680 lt_prog_compiler_static='-Bstatic' 8681 lt_prog_compiler_wl='-Qoption ld ' 8682 ;; 8683 *Sun\ C*) 8684 # Sun C 5.9 8685 lt_prog_compiler_pic='-KPIC' 8686 lt_prog_compiler_static='-Bstatic' 8687 lt_prog_compiler_wl='-Wl,' 8688 ;; 8689 *Intel*\ [CF]*Compiler*) 8690 lt_prog_compiler_wl='-Wl,' 8691 lt_prog_compiler_pic='-fPIC' 8692 lt_prog_compiler_static='-static' 8693 ;; 8694 *Portland\ Group*) 8695 lt_prog_compiler_wl='-Wl,' 8696 lt_prog_compiler_pic='-fpic' 8697 lt_prog_compiler_static='-Bstatic' 8698 ;; 8699 esac 8700 ;; 8701 esac 8702 ;; 8703 8704 newsos6) 8705 lt_prog_compiler_pic='-KPIC' 8706 lt_prog_compiler_static='-Bstatic' 8707 ;; 8708 8709 *nto* | *qnx*) 8710 # QNX uses GNU C++, but need to define -shared option too, otherwise 8711 # it will coredump. 8712 lt_prog_compiler_pic='-fPIC -shared' 8713 ;; 8714 8715 osf3* | osf4* | osf5*) 8716 lt_prog_compiler_wl='-Wl,' 8717 # All OSF/1 code is PIC. 8718 lt_prog_compiler_static='-non_shared' 8719 ;; 8720 8721 rdos*) 8722 lt_prog_compiler_static='-non_shared' 8723 ;; 8724 8725 solaris*) 8726 lt_prog_compiler_pic='-KPIC' 8727 lt_prog_compiler_static='-Bstatic' 8728 case $cc_basename in 8729 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8730 lt_prog_compiler_wl='-Qoption ld ';; 8731 *) 8732 lt_prog_compiler_wl='-Wl,';; 8733 esac 8734 ;; 8735 8736 sunos4*) 8737 lt_prog_compiler_wl='-Qoption ld ' 8738 lt_prog_compiler_pic='-PIC' 8739 lt_prog_compiler_static='-Bstatic' 8740 ;; 8741 8742 sysv4 | sysv4.2uw2* | sysv4.3*) 8743 lt_prog_compiler_wl='-Wl,' 8744 lt_prog_compiler_pic='-KPIC' 8745 lt_prog_compiler_static='-Bstatic' 8746 ;; 8747 8748 sysv4*MP*) 8749 if test -d /usr/nec; then 8750 lt_prog_compiler_pic='-Kconform_pic' 8751 lt_prog_compiler_static='-Bstatic' 8752 fi 8753 ;; 8754 8755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8756 lt_prog_compiler_wl='-Wl,' 8757 lt_prog_compiler_pic='-KPIC' 8758 lt_prog_compiler_static='-Bstatic' 8759 ;; 8760 8761 unicos*) 8762 lt_prog_compiler_wl='-Wl,' 8763 lt_prog_compiler_can_build_shared=no 8764 ;; 8765 8766 uts4*) 8767 lt_prog_compiler_pic='-pic' 8768 lt_prog_compiler_static='-Bstatic' 8769 ;; 8770 8771 *) 8772 lt_prog_compiler_can_build_shared=no 8773 ;; 8774 esac 8775 fi 8776 8777case $host_os in 8778 # For platforms that do not support PIC, -DPIC is meaningless: 8779 *djgpp*) 8780 lt_prog_compiler_pic= 8781 ;; 8782 *) 8783 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8784 ;; 8785esac 8786 8787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8788$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8789if ${lt_cv_prog_compiler_pic+:} false; then : 8790 $as_echo_n "(cached) " >&6 8791else 8792 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8793fi 8794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8795$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8796lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8797 8798# 8799# Check to make sure the PIC flag actually works. 8800# 8801if test -n "$lt_prog_compiler_pic"; then 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8803$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8804if ${lt_cv_prog_compiler_pic_works+:} false; then : 8805 $as_echo_n "(cached) " >&6 8806else 8807 lt_cv_prog_compiler_pic_works=no 8808 ac_outfile=conftest.$ac_objext 8809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8810 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8811 # Insert the option either (1) after the last *FLAGS variable, or 8812 # (2) before a word containing "conftest.", or (3) at the end. 8813 # Note that $ac_compile itself does not contain backslashes and begins 8814 # with a dollar sign (not a hyphen), so the echo should work correctly. 8815 # The option is referenced via a variable to avoid confusing sed. 8816 lt_compile=`echo "$ac_compile" | $SED \ 8817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8819 -e 's:$: $lt_compiler_flag:'` 8820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8821 (eval "$lt_compile" 2>conftest.err) 8822 ac_status=$? 8823 cat conftest.err >&5 8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8825 if (exit $ac_status) && test -s "$ac_outfile"; then 8826 # The compiler can only warn and ignore the option if not recognized 8827 # So say no if there are warnings other than the usual output. 8828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8831 lt_cv_prog_compiler_pic_works=yes 8832 fi 8833 fi 8834 $RM conftest* 8835 8836fi 8837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8838$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8839 8840if test yes = "$lt_cv_prog_compiler_pic_works"; then 8841 case $lt_prog_compiler_pic in 8842 "" | " "*) ;; 8843 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8844 esac 8845else 8846 lt_prog_compiler_pic= 8847 lt_prog_compiler_can_build_shared=no 8848fi 8849 8850fi 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862# 8863# Check to make sure the static flag actually works. 8864# 8865wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8867$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8868if ${lt_cv_prog_compiler_static_works+:} false; then : 8869 $as_echo_n "(cached) " >&6 8870else 8871 lt_cv_prog_compiler_static_works=no 8872 save_LDFLAGS=$LDFLAGS 8873 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8874 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8875 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8876 # The linker can only warn and ignore the option if not recognized 8877 # So say no if there are warnings 8878 if test -s conftest.err; then 8879 # Append any errors to the config.log. 8880 cat conftest.err 1>&5 8881 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8883 if diff conftest.exp conftest.er2 >/dev/null; then 8884 lt_cv_prog_compiler_static_works=yes 8885 fi 8886 else 8887 lt_cv_prog_compiler_static_works=yes 8888 fi 8889 fi 8890 $RM -r conftest* 8891 LDFLAGS=$save_LDFLAGS 8892 8893fi 8894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8895$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8896 8897if test yes = "$lt_cv_prog_compiler_static_works"; then 8898 : 8899else 8900 lt_prog_compiler_static= 8901fi 8902 8903 8904 8905 8906 8907 8908 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8910$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8911if ${lt_cv_prog_compiler_c_o+:} false; then : 8912 $as_echo_n "(cached) " >&6 8913else 8914 lt_cv_prog_compiler_c_o=no 8915 $RM -r conftest 2>/dev/null 8916 mkdir conftest 8917 cd conftest 8918 mkdir out 8919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8920 8921 lt_compiler_flag="-o out/conftest2.$ac_objext" 8922 # Insert the option either (1) after the last *FLAGS variable, or 8923 # (2) before a word containing "conftest.", or (3) at the end. 8924 # Note that $ac_compile itself does not contain backslashes and begins 8925 # with a dollar sign (not a hyphen), so the echo should work correctly. 8926 lt_compile=`echo "$ac_compile" | $SED \ 8927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8929 -e 's:$: $lt_compiler_flag:'` 8930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8931 (eval "$lt_compile" 2>out/conftest.err) 8932 ac_status=$? 8933 cat out/conftest.err >&5 8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8935 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8936 then 8937 # The compiler can only warn and ignore the option if not recognized 8938 # So say no if there are warnings 8939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8942 lt_cv_prog_compiler_c_o=yes 8943 fi 8944 fi 8945 chmod u+w . 2>&5 8946 $RM conftest* 8947 # SGI C++ compiler will create directory out/ii_files/ for 8948 # template instantiation 8949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8950 $RM out/* && rmdir out 8951 cd .. 8952 $RM -r conftest 8953 $RM conftest* 8954 8955fi 8956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8957$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8958 8959 8960 8961 8962 8963 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8965$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8966if ${lt_cv_prog_compiler_c_o+:} false; then : 8967 $as_echo_n "(cached) " >&6 8968else 8969 lt_cv_prog_compiler_c_o=no 8970 $RM -r conftest 2>/dev/null 8971 mkdir conftest 8972 cd conftest 8973 mkdir out 8974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8975 8976 lt_compiler_flag="-o out/conftest2.$ac_objext" 8977 # Insert the option either (1) after the last *FLAGS variable, or 8978 # (2) before a word containing "conftest.", or (3) at the end. 8979 # Note that $ac_compile itself does not contain backslashes and begins 8980 # with a dollar sign (not a hyphen), so the echo should work correctly. 8981 lt_compile=`echo "$ac_compile" | $SED \ 8982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8984 -e 's:$: $lt_compiler_flag:'` 8985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8986 (eval "$lt_compile" 2>out/conftest.err) 8987 ac_status=$? 8988 cat out/conftest.err >&5 8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8990 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8991 then 8992 # The compiler can only warn and ignore the option if not recognized 8993 # So say no if there are warnings 8994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8995 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8996 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8997 lt_cv_prog_compiler_c_o=yes 8998 fi 8999 fi 9000 chmod u+w . 2>&5 9001 $RM conftest* 9002 # SGI C++ compiler will create directory out/ii_files/ for 9003 # template instantiation 9004 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9005 $RM out/* && rmdir out 9006 cd .. 9007 $RM -r conftest 9008 $RM conftest* 9009 9010fi 9011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9012$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9013 9014 9015 9016 9017hard_links=nottested 9018if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9019 # do not overwrite the value of need_locks provided by the user 9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9021$as_echo_n "checking if we can lock with hard links... " >&6; } 9022 hard_links=yes 9023 $RM conftest* 9024 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9025 touch conftest.a 9026 ln conftest.a conftest.b 2>&5 || hard_links=no 9027 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9029$as_echo "$hard_links" >&6; } 9030 if test no = "$hard_links"; then 9031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9032$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9033 need_locks=warn 9034 fi 9035else 9036 need_locks=no 9037fi 9038 9039 9040 9041 9042 9043 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9045$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9046 9047 runpath_var= 9048 allow_undefined_flag= 9049 always_export_symbols=no 9050 archive_cmds= 9051 archive_expsym_cmds= 9052 compiler_needs_object=no 9053 enable_shared_with_static_runtimes=no 9054 export_dynamic_flag_spec= 9055 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9056 hardcode_automatic=no 9057 hardcode_direct=no 9058 hardcode_direct_absolute=no 9059 hardcode_libdir_flag_spec= 9060 hardcode_libdir_separator= 9061 hardcode_minus_L=no 9062 hardcode_shlibpath_var=unsupported 9063 inherit_rpath=no 9064 link_all_deplibs=unknown 9065 module_cmds= 9066 module_expsym_cmds= 9067 old_archive_from_new_cmds= 9068 old_archive_from_expsyms_cmds= 9069 thread_safe_flag_spec= 9070 whole_archive_flag_spec= 9071 # include_expsyms should be a list of space-separated symbols to be *always* 9072 # included in the symbol list 9073 include_expsyms= 9074 # exclude_expsyms can be an extended regexp of symbols to exclude 9075 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9076 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9077 # as well as any symbol that contains 'd'. 9078 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9079 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9080 # platforms (ab)use it in PIC code, but their linkers get confused if 9081 # the symbol is explicitly referenced. Since portable code cannot 9082 # rely on this symbol name, it's probably fine to never include it in 9083 # preloaded symbol tables. 9084 # Exclude shared library initialization/finalization symbols. 9085 extract_expsyms_cmds= 9086 9087 case $host_os in 9088 cygwin* | mingw* | pw32* | cegcc*) 9089 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9090 # When not using gcc, we currently assume that we are using 9091 # Microsoft Visual C++. 9092 if test yes != "$GCC"; then 9093 with_gnu_ld=no 9094 fi 9095 ;; 9096 interix*) 9097 # we just hope/assume this is gcc and not c89 (= MSVC++) 9098 with_gnu_ld=yes 9099 ;; 9100 openbsd* | bitrig*) 9101 with_gnu_ld=no 9102 ;; 9103 linux* | k*bsd*-gnu | gnu*) 9104 link_all_deplibs=no 9105 ;; 9106 esac 9107 9108 ld_shlibs=yes 9109 9110 # On some targets, GNU ld is compatible enough with the native linker 9111 # that we're better off using the native interface for both. 9112 lt_use_gnu_ld_interface=no 9113 if test yes = "$with_gnu_ld"; then 9114 case $host_os in 9115 aix*) 9116 # The AIX port of GNU ld has always aspired to compatibility 9117 # with the native linker. However, as the warning in the GNU ld 9118 # block says, versions before 2.19.5* couldn't really create working 9119 # shared libraries, regardless of the interface used. 9120 case `$LD -v 2>&1` in 9121 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9122 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9123 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9124 *) 9125 lt_use_gnu_ld_interface=yes 9126 ;; 9127 esac 9128 ;; 9129 *) 9130 lt_use_gnu_ld_interface=yes 9131 ;; 9132 esac 9133 fi 9134 9135 if test yes = "$lt_use_gnu_ld_interface"; then 9136 # If archive_cmds runs LD, not CC, wlarc should be empty 9137 wlarc='$wl' 9138 9139 # Set some defaults for GNU ld with shared library support. These 9140 # are reset later if shared libraries are not supported. Putting them 9141 # here allows them to be overridden if necessary. 9142 runpath_var=LD_RUN_PATH 9143 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9144 export_dynamic_flag_spec='$wl--export-dynamic' 9145 # ancient GNU ld didn't support --whole-archive et. al. 9146 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9147 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9148 else 9149 whole_archive_flag_spec= 9150 fi 9151 supports_anon_versioning=no 9152 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9153 *GNU\ gold*) supports_anon_versioning=yes ;; 9154 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9155 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9156 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9157 *\ 2.11.*) ;; # other 2.11 versions 9158 *) supports_anon_versioning=yes ;; 9159 esac 9160 9161 # See if GNU ld supports shared libraries. 9162 case $host_os in 9163 aix[3-9]*) 9164 # On AIX/PPC, the GNU linker is very broken 9165 if test ia64 != "$host_cpu"; then 9166 ld_shlibs=no 9167 cat <<_LT_EOF 1>&2 9168 9169*** Warning: the GNU linker, at least up to release 2.19, is reported 9170*** to be unable to reliably create shared libraries on AIX. 9171*** Therefore, libtool is disabling shared libraries support. If you 9172*** really care for shared libraries, you may want to install binutils 9173*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9174*** You will then need to restart the configuration process. 9175 9176_LT_EOF 9177 fi 9178 ;; 9179 9180 amigaos*) 9181 case $host_cpu in 9182 powerpc) 9183 # see comment about AmigaOS4 .so support 9184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9185 archive_expsym_cmds='' 9186 ;; 9187 m68k) 9188 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)' 9189 hardcode_libdir_flag_spec='-L$libdir' 9190 hardcode_minus_L=yes 9191 ;; 9192 esac 9193 ;; 9194 9195 beos*) 9196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9197 allow_undefined_flag=unsupported 9198 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9199 # support --undefined. This deserves some investigation. FIXME 9200 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9201 else 9202 ld_shlibs=no 9203 fi 9204 ;; 9205 9206 cygwin* | mingw* | pw32* | cegcc*) 9207 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9208 # as there is no search path for DLLs. 9209 hardcode_libdir_flag_spec='-L$libdir' 9210 export_dynamic_flag_spec='$wl--export-all-symbols' 9211 allow_undefined_flag=unsupported 9212 always_export_symbols=no 9213 enable_shared_with_static_runtimes=yes 9214 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' 9215 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9216 9217 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9219 # If the export-symbols file already is a .def file, use it as 9220 # is; otherwise, prepend EXPORTS... 9221 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9222 cp $export_symbols $output_objdir/$soname.def; 9223 else 9224 echo EXPORTS > $output_objdir/$soname.def; 9225 cat $export_symbols >> $output_objdir/$soname.def; 9226 fi~ 9227 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9228 else 9229 ld_shlibs=no 9230 fi 9231 ;; 9232 9233 haiku*) 9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9235 link_all_deplibs=yes 9236 ;; 9237 9238 os2*) 9239 hardcode_libdir_flag_spec='-L$libdir' 9240 hardcode_minus_L=yes 9241 allow_undefined_flag=unsupported 9242 shrext_cmds=.dll 9243 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9244 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9245 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9246 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9247 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9248 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9249 emximp -o $lib $output_objdir/$libname.def' 9250 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9251 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9252 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9253 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9254 prefix_cmds="$SED"~ 9255 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9256 prefix_cmds="$prefix_cmds -e 1d"; 9257 fi~ 9258 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9259 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9260 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9261 emximp -o $lib $output_objdir/$libname.def' 9262 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9263 enable_shared_with_static_runtimes=yes 9264 ;; 9265 9266 interix[3-9]*) 9267 hardcode_direct=no 9268 hardcode_shlibpath_var=no 9269 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9270 export_dynamic_flag_spec='$wl-E' 9271 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9272 # Instead, shared libraries are loaded at an image base (0x10000000 by 9273 # default) and relocated if they conflict, which is a slow very memory 9274 # consuming and fragmenting process. To avoid this, we pick a random, 9275 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9276 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9277 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9278 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' 9279 ;; 9280 9281 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9282 tmp_diet=no 9283 if test linux-dietlibc = "$host_os"; then 9284 case $cc_basename in 9285 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9286 esac 9287 fi 9288 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9289 && test no = "$tmp_diet" 9290 then 9291 tmp_addflag=' $pic_flag' 9292 tmp_sharedflag='-shared' 9293 case $cc_basename,$host_cpu in 9294 pgcc*) # Portland Group C compiler 9295 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' 9296 tmp_addflag=' $pic_flag' 9297 ;; 9298 pgf77* | pgf90* | pgf95* | pgfortran*) 9299 # Portland Group f77 and f90 compilers 9300 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' 9301 tmp_addflag=' $pic_flag -Mnomain' ;; 9302 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9303 tmp_addflag=' -i_dynamic' ;; 9304 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9305 tmp_addflag=' -i_dynamic -nofor_main' ;; 9306 ifc* | ifort*) # Intel Fortran compiler 9307 tmp_addflag=' -nofor_main' ;; 9308 lf95*) # Lahey Fortran 8.1 9309 whole_archive_flag_spec= 9310 tmp_sharedflag='--shared' ;; 9311 nagfor*) # NAGFOR 5.3 9312 tmp_sharedflag='-Wl,-shared' ;; 9313 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9314 tmp_sharedflag='-qmkshrobj' 9315 tmp_addflag= ;; 9316 nvcc*) # Cuda Compiler Driver 2.2 9317 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' 9318 compiler_needs_object=yes 9319 ;; 9320 esac 9321 case `$CC -V 2>&1 | sed 5q` in 9322 *Sun\ C*) # Sun C 5.9 9323 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' 9324 compiler_needs_object=yes 9325 tmp_sharedflag='-G' ;; 9326 *Sun\ F*) # Sun Fortran 8.3 9327 tmp_sharedflag='-G' ;; 9328 esac 9329 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9330 9331 if test yes = "$supports_anon_versioning"; then 9332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9334 echo "local: *; };" >> $output_objdir/$libname.ver~ 9335 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9336 fi 9337 9338 case $cc_basename in 9339 tcc*) 9340 export_dynamic_flag_spec='-rdynamic' 9341 ;; 9342 xlf* | bgf* | bgxlf* | mpixlf*) 9343 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9344 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9345 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9346 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9347 if test yes = "$supports_anon_versioning"; then 9348 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9350 echo "local: *; };" >> $output_objdir/$libname.ver~ 9351 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9352 fi 9353 ;; 9354 esac 9355 else 9356 ld_shlibs=no 9357 fi 9358 ;; 9359 9360 netbsd* | netbsdelf*-gnu) 9361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9362 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9363 wlarc= 9364 else 9365 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9366 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9367 fi 9368 ;; 9369 9370 solaris*) 9371 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9372 ld_shlibs=no 9373 cat <<_LT_EOF 1>&2 9374 9375*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9376*** create shared libraries on Solaris systems. Therefore, libtool 9377*** is disabling shared libraries support. We urge you to upgrade GNU 9378*** binutils to release 2.9.1 or newer. Another option is to modify 9379*** your PATH or compiler configuration so that the native linker is 9380*** used, and then restart. 9381 9382_LT_EOF 9383 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9385 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9386 else 9387 ld_shlibs=no 9388 fi 9389 ;; 9390 9391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9392 case `$LD -v 2>&1` in 9393 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9394 ld_shlibs=no 9395 cat <<_LT_EOF 1>&2 9396 9397*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9398*** reliably create shared libraries on SCO systems. Therefore, libtool 9399*** is disabling shared libraries support. We urge you to upgrade GNU 9400*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9401*** your PATH or compiler configuration so that the native linker is 9402*** used, and then restart. 9403 9404_LT_EOF 9405 ;; 9406 *) 9407 # For security reasons, it is highly recommended that you always 9408 # use absolute paths for naming shared libraries, and exclude the 9409 # DT_RUNPATH tag from executables and libraries. But doing so 9410 # requires that you compile everything twice, which is a pain. 9411 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9412 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9414 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9415 else 9416 ld_shlibs=no 9417 fi 9418 ;; 9419 esac 9420 ;; 9421 9422 sunos4*) 9423 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9424 wlarc= 9425 hardcode_direct=yes 9426 hardcode_shlibpath_var=no 9427 ;; 9428 9429 *) 9430 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9431 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9432 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9433 else 9434 ld_shlibs=no 9435 fi 9436 ;; 9437 esac 9438 9439 if test no = "$ld_shlibs"; then 9440 runpath_var= 9441 hardcode_libdir_flag_spec= 9442 export_dynamic_flag_spec= 9443 whole_archive_flag_spec= 9444 fi 9445 else 9446 # PORTME fill in a description of your system's linker (not GNU ld) 9447 case $host_os in 9448 aix3*) 9449 allow_undefined_flag=unsupported 9450 always_export_symbols=yes 9451 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' 9452 # Note: this linker hardcodes the directories in LIBPATH if there 9453 # are no directories specified by -L. 9454 hardcode_minus_L=yes 9455 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9456 # Neither direct hardcoding nor static linking is supported with a 9457 # broken collect2. 9458 hardcode_direct=unsupported 9459 fi 9460 ;; 9461 9462 aix[4-9]*) 9463 if test ia64 = "$host_cpu"; then 9464 # On IA64, the linker does run time linking by default, so we don't 9465 # have to do anything special. 9466 aix_use_runtimelinking=no 9467 exp_sym_flag='-Bexport' 9468 no_entry_flag= 9469 else 9470 # If we're using GNU nm, then we don't want the "-C" option. 9471 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9472 # Without the "-l" option, or with the "-B" option, AIX nm treats 9473 # weak defined symbols like other global defined symbols, whereas 9474 # GNU nm marks them as "W". 9475 # While the 'weak' keyword is ignored in the Export File, we need 9476 # it in the Import File for the 'aix-soname' feature, so we have 9477 # to replace the "-B" option with "-P" for AIX nm. 9478 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9479 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9480 else 9481 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9482 fi 9483 aix_use_runtimelinking=no 9484 9485 # Test if we are trying to use run time linking or normal 9486 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9487 # have runtime linking enabled, and use it for executables. 9488 # For shared libraries, we enable/disable runtime linking 9489 # depending on the kind of the shared library created - 9490 # when "with_aix_soname,aix_use_runtimelinking" is: 9491 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9492 # "aix,yes" lib.so shared, rtl:yes, for executables 9493 # lib.a static archive 9494 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9495 # lib.a(lib.so.V) shared, rtl:no, for executables 9496 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9497 # lib.a(lib.so.V) shared, rtl:no 9498 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9499 # lib.a static archive 9500 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9501 for ld_flag in $LDFLAGS; do 9502 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9503 aix_use_runtimelinking=yes 9504 break 9505 fi 9506 done 9507 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9508 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9509 # so we don't have lib.a shared libs to link our executables. 9510 # We have to force runtime linking in this case. 9511 aix_use_runtimelinking=yes 9512 LDFLAGS="$LDFLAGS -Wl,-brtl" 9513 fi 9514 ;; 9515 esac 9516 9517 exp_sym_flag='-bexport' 9518 no_entry_flag='-bnoentry' 9519 fi 9520 9521 # When large executables or shared objects are built, AIX ld can 9522 # have problems creating the table of contents. If linking a library 9523 # or program results in "error TOC overflow" add -mminimal-toc to 9524 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9525 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9526 9527 archive_cmds='' 9528 hardcode_direct=yes 9529 hardcode_direct_absolute=yes 9530 hardcode_libdir_separator=':' 9531 link_all_deplibs=yes 9532 file_list_spec='$wl-f,' 9533 case $with_aix_soname,$aix_use_runtimelinking in 9534 aix,*) ;; # traditional, no import file 9535 svr4,* | *,yes) # use import file 9536 # The Import File defines what to hardcode. 9537 hardcode_direct=no 9538 hardcode_direct_absolute=no 9539 ;; 9540 esac 9541 9542 if test yes = "$GCC"; then 9543 case $host_os in aix4.[012]|aix4.[012].*) 9544 # We only want to do this on AIX 4.2 and lower, the check 9545 # below for broken collect2 doesn't work under 4.3+ 9546 collect2name=`$CC -print-prog-name=collect2` 9547 if test -f "$collect2name" && 9548 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9549 then 9550 # We have reworked collect2 9551 : 9552 else 9553 # We have old collect2 9554 hardcode_direct=unsupported 9555 # It fails to find uninstalled libraries when the uninstalled 9556 # path is not listed in the libpath. Setting hardcode_minus_L 9557 # to unsupported forces relinking 9558 hardcode_minus_L=yes 9559 hardcode_libdir_flag_spec='-L$libdir' 9560 hardcode_libdir_separator= 9561 fi 9562 ;; 9563 esac 9564 shared_flag='-shared' 9565 if test yes = "$aix_use_runtimelinking"; then 9566 shared_flag="$shared_flag "'$wl-G' 9567 fi 9568 # Need to ensure runtime linking is disabled for the traditional 9569 # shared library, or the linker may eventually find shared libraries 9570 # /with/ Import File - we do not want to mix them. 9571 shared_flag_aix='-shared' 9572 shared_flag_svr4='-shared $wl-G' 9573 else 9574 # not using gcc 9575 if test ia64 = "$host_cpu"; then 9576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9577 # chokes on -Wl,-G. The following line is correct: 9578 shared_flag='-G' 9579 else 9580 if test yes = "$aix_use_runtimelinking"; then 9581 shared_flag='$wl-G' 9582 else 9583 shared_flag='$wl-bM:SRE' 9584 fi 9585 shared_flag_aix='$wl-bM:SRE' 9586 shared_flag_svr4='$wl-G' 9587 fi 9588 fi 9589 9590 export_dynamic_flag_spec='$wl-bexpall' 9591 # It seems that -bexpall does not export symbols beginning with 9592 # underscore (_), so it is better to generate a list of symbols to export. 9593 always_export_symbols=yes 9594 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9595 # Warning - without using the other runtime loading flags (-brtl), 9596 # -berok will link without error, but may produce a broken library. 9597 allow_undefined_flag='-berok' 9598 # Determine the default libpath from the value encoded in an 9599 # empty executable. 9600 if test set = "${lt_cv_aix_libpath+set}"; then 9601 aix_libpath=$lt_cv_aix_libpath 9602else 9603 if ${lt_cv_aix_libpath_+:} false; then : 9604 $as_echo_n "(cached) " >&6 9605else 9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9607/* end confdefs.h. */ 9608 9609int 9610main () 9611{ 9612 9613 ; 9614 return 0; 9615} 9616_ACEOF 9617if ac_fn_c_try_link "$LINENO"; then : 9618 9619 lt_aix_libpath_sed=' 9620 /Import File Strings/,/^$/ { 9621 /^0/ { 9622 s/^0 *\([^ ]*\) *$/\1/ 9623 p 9624 } 9625 }' 9626 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9627 # Check for a 64-bit object if we didn't find anything. 9628 if test -z "$lt_cv_aix_libpath_"; then 9629 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9630 fi 9631fi 9632rm -f core conftest.err conftest.$ac_objext \ 9633 conftest$ac_exeext conftest.$ac_ext 9634 if test -z "$lt_cv_aix_libpath_"; then 9635 lt_cv_aix_libpath_=/usr/lib:/lib 9636 fi 9637 9638fi 9639 9640 aix_libpath=$lt_cv_aix_libpath_ 9641fi 9642 9643 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9644 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9645 else 9646 if test ia64 = "$host_cpu"; then 9647 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9648 allow_undefined_flag="-z nodefs" 9649 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" 9650 else 9651 # Determine the default libpath from the value encoded in an 9652 # empty executable. 9653 if test set = "${lt_cv_aix_libpath+set}"; then 9654 aix_libpath=$lt_cv_aix_libpath 9655else 9656 if ${lt_cv_aix_libpath_+:} false; then : 9657 $as_echo_n "(cached) " >&6 9658else 9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9660/* end confdefs.h. */ 9661 9662int 9663main () 9664{ 9665 9666 ; 9667 return 0; 9668} 9669_ACEOF 9670if ac_fn_c_try_link "$LINENO"; then : 9671 9672 lt_aix_libpath_sed=' 9673 /Import File Strings/,/^$/ { 9674 /^0/ { 9675 s/^0 *\([^ ]*\) *$/\1/ 9676 p 9677 } 9678 }' 9679 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9680 # Check for a 64-bit object if we didn't find anything. 9681 if test -z "$lt_cv_aix_libpath_"; then 9682 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9683 fi 9684fi 9685rm -f core conftest.err conftest.$ac_objext \ 9686 conftest$ac_exeext conftest.$ac_ext 9687 if test -z "$lt_cv_aix_libpath_"; then 9688 lt_cv_aix_libpath_=/usr/lib:/lib 9689 fi 9690 9691fi 9692 9693 aix_libpath=$lt_cv_aix_libpath_ 9694fi 9695 9696 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9697 # Warning - without using the other run time loading flags, 9698 # -berok will link without error, but may produce a broken library. 9699 no_undefined_flag=' $wl-bernotok' 9700 allow_undefined_flag=' $wl-berok' 9701 if test yes = "$with_gnu_ld"; then 9702 # We only use this code for GNU lds that support --whole-archive. 9703 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9704 else 9705 # Exported symbols can be pulled into shared objects from archives 9706 whole_archive_flag_spec='$convenience' 9707 fi 9708 archive_cmds_need_lc=yes 9709 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9710 # -brtl affects multiple linker settings, -berok does not and is overridden later 9711 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9712 if test svr4 != "$with_aix_soname"; then 9713 # This is similar to how AIX traditionally builds its shared libraries. 9714 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9715 fi 9716 if test aix != "$with_aix_soname"; then 9717 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9718 else 9719 # used by -dlpreopen to get the symbols 9720 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9721 fi 9722 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9723 fi 9724 fi 9725 ;; 9726 9727 amigaos*) 9728 case $host_cpu in 9729 powerpc) 9730 # see comment about AmigaOS4 .so support 9731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9732 archive_expsym_cmds='' 9733 ;; 9734 m68k) 9735 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)' 9736 hardcode_libdir_flag_spec='-L$libdir' 9737 hardcode_minus_L=yes 9738 ;; 9739 esac 9740 ;; 9741 9742 bsdi[45]*) 9743 export_dynamic_flag_spec=-rdynamic 9744 ;; 9745 9746 cygwin* | mingw* | pw32* | cegcc*) 9747 # When not using gcc, we currently assume that we are using 9748 # Microsoft Visual C++. 9749 # hardcode_libdir_flag_spec is actually meaningless, as there is 9750 # no search path for DLLs. 9751 case $cc_basename in 9752 cl*) 9753 # Native MSVC 9754 hardcode_libdir_flag_spec=' ' 9755 allow_undefined_flag=unsupported 9756 always_export_symbols=yes 9757 file_list_spec='@' 9758 # Tell ltmain to make .lib files, not .a files. 9759 libext=lib 9760 # Tell ltmain to make .dll files, not .so files. 9761 shrext_cmds=.dll 9762 # FIXME: Setting linknames here is a bad hack. 9763 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9764 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9765 cp "$export_symbols" "$output_objdir/$soname.def"; 9766 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9767 else 9768 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9769 fi~ 9770 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9771 linknames=' 9772 # The linker will not automatically build a static lib if we build a DLL. 9773 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9774 enable_shared_with_static_runtimes=yes 9775 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9776 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9777 # Don't use ranlib 9778 old_postinstall_cmds='chmod 644 $oldlib' 9779 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9780 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9781 case $lt_outputfile in 9782 *.exe|*.EXE) ;; 9783 *) 9784 lt_outputfile=$lt_outputfile.exe 9785 lt_tool_outputfile=$lt_tool_outputfile.exe 9786 ;; 9787 esac~ 9788 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9789 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9790 $RM "$lt_outputfile.manifest"; 9791 fi' 9792 ;; 9793 *) 9794 # Assume MSVC wrapper 9795 hardcode_libdir_flag_spec=' ' 9796 allow_undefined_flag=unsupported 9797 # Tell ltmain to make .lib files, not .a files. 9798 libext=lib 9799 # Tell ltmain to make .dll files, not .so files. 9800 shrext_cmds=.dll 9801 # FIXME: Setting linknames here is a bad hack. 9802 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9803 # The linker will automatically build a .lib file if we build a DLL. 9804 old_archive_from_new_cmds='true' 9805 # FIXME: Should let the user specify the lib program. 9806 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9807 enable_shared_with_static_runtimes=yes 9808 ;; 9809 esac 9810 ;; 9811 9812 darwin* | rhapsody*) 9813 9814 9815 archive_cmds_need_lc=no 9816 hardcode_direct=no 9817 hardcode_automatic=yes 9818 hardcode_shlibpath_var=unsupported 9819 if test yes = "$lt_cv_ld_force_load"; then 9820 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\"`' 9821 9822 else 9823 whole_archive_flag_spec='' 9824 fi 9825 link_all_deplibs=yes 9826 allow_undefined_flag=$_lt_dar_allow_undefined 9827 case $cc_basename in 9828 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9829 *) _lt_dar_can_shared=$GCC ;; 9830 esac 9831 if test yes = "$_lt_dar_can_shared"; then 9832 output_verbose_link_cmd=func_echo_all 9833 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9834 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9835 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" 9836 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" 9837 9838 else 9839 ld_shlibs=no 9840 fi 9841 9842 ;; 9843 9844 dgux*) 9845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9846 hardcode_libdir_flag_spec='-L$libdir' 9847 hardcode_shlibpath_var=no 9848 ;; 9849 9850 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9851 # support. Future versions do this automatically, but an explicit c++rt0.o 9852 # does not break anything, and helps significantly (at the cost of a little 9853 # extra space). 9854 freebsd2.2*) 9855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9856 hardcode_libdir_flag_spec='-R$libdir' 9857 hardcode_direct=yes 9858 hardcode_shlibpath_var=no 9859 ;; 9860 9861 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9862 freebsd2.*) 9863 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9864 hardcode_direct=yes 9865 hardcode_minus_L=yes 9866 hardcode_shlibpath_var=no 9867 ;; 9868 9869 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9870 freebsd* | dragonfly*) 9871 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9872 hardcode_libdir_flag_spec='-R$libdir' 9873 hardcode_direct=yes 9874 hardcode_shlibpath_var=no 9875 ;; 9876 9877 hpux9*) 9878 if test yes = "$GCC"; then 9879 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9880 else 9881 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9882 fi 9883 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9884 hardcode_libdir_separator=: 9885 hardcode_direct=yes 9886 9887 # hardcode_minus_L: Not really in the search PATH, 9888 # but as the default location of the library. 9889 hardcode_minus_L=yes 9890 export_dynamic_flag_spec='$wl-E' 9891 ;; 9892 9893 hpux10*) 9894 if test yes,no = "$GCC,$with_gnu_ld"; then 9895 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9896 else 9897 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9898 fi 9899 if test no = "$with_gnu_ld"; then 9900 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9901 hardcode_libdir_separator=: 9902 hardcode_direct=yes 9903 hardcode_direct_absolute=yes 9904 export_dynamic_flag_spec='$wl-E' 9905 # hardcode_minus_L: Not really in the search PATH, 9906 # but as the default location of the library. 9907 hardcode_minus_L=yes 9908 fi 9909 ;; 9910 9911 hpux11*) 9912 if test yes,no = "$GCC,$with_gnu_ld"; then 9913 case $host_cpu in 9914 hppa*64*) 9915 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9916 ;; 9917 ia64*) 9918 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9919 ;; 9920 *) 9921 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9922 ;; 9923 esac 9924 else 9925 case $host_cpu in 9926 hppa*64*) 9927 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9928 ;; 9929 ia64*) 9930 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9931 ;; 9932 *) 9933 9934 # Older versions of the 11.00 compiler do not understand -b yet 9935 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9937$as_echo_n "checking if $CC understands -b... " >&6; } 9938if ${lt_cv_prog_compiler__b+:} false; then : 9939 $as_echo_n "(cached) " >&6 9940else 9941 lt_cv_prog_compiler__b=no 9942 save_LDFLAGS=$LDFLAGS 9943 LDFLAGS="$LDFLAGS -b" 9944 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9945 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9946 # The linker can only warn and ignore the option if not recognized 9947 # So say no if there are warnings 9948 if test -s conftest.err; then 9949 # Append any errors to the config.log. 9950 cat conftest.err 1>&5 9951 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9953 if diff conftest.exp conftest.er2 >/dev/null; then 9954 lt_cv_prog_compiler__b=yes 9955 fi 9956 else 9957 lt_cv_prog_compiler__b=yes 9958 fi 9959 fi 9960 $RM -r conftest* 9961 LDFLAGS=$save_LDFLAGS 9962 9963fi 9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9965$as_echo "$lt_cv_prog_compiler__b" >&6; } 9966 9967if test yes = "$lt_cv_prog_compiler__b"; then 9968 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9969else 9970 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9971fi 9972 9973 ;; 9974 esac 9975 fi 9976 if test no = "$with_gnu_ld"; then 9977 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9978 hardcode_libdir_separator=: 9979 9980 case $host_cpu in 9981 hppa*64*|ia64*) 9982 hardcode_direct=no 9983 hardcode_shlibpath_var=no 9984 ;; 9985 *) 9986 hardcode_direct=yes 9987 hardcode_direct_absolute=yes 9988 export_dynamic_flag_spec='$wl-E' 9989 9990 # hardcode_minus_L: Not really in the search PATH, 9991 # but as the default location of the library. 9992 hardcode_minus_L=yes 9993 ;; 9994 esac 9995 fi 9996 ;; 9997 9998 irix5* | irix6* | nonstopux*) 9999 if test yes = "$GCC"; then 10000 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' 10001 # Try to use the -exported_symbol ld option, if it does not 10002 # work, assume that -exports_file does not work either and 10003 # implicitly export all symbols. 10004 # This should be the same for all languages, so no per-tag cache variable. 10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10006$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10007if ${lt_cv_irix_exported_symbol+:} false; then : 10008 $as_echo_n "(cached) " >&6 10009else 10010 save_LDFLAGS=$LDFLAGS 10011 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10013/* end confdefs.h. */ 10014int foo (void) { return 0; } 10015_ACEOF 10016if ac_fn_c_try_link "$LINENO"; then : 10017 lt_cv_irix_exported_symbol=yes 10018else 10019 lt_cv_irix_exported_symbol=no 10020fi 10021rm -f core conftest.err conftest.$ac_objext \ 10022 conftest$ac_exeext conftest.$ac_ext 10023 LDFLAGS=$save_LDFLAGS 10024fi 10025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10026$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10027 if test yes = "$lt_cv_irix_exported_symbol"; then 10028 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' 10029 fi 10030 link_all_deplibs=no 10031 else 10032 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' 10033 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' 10034 fi 10035 archive_cmds_need_lc='no' 10036 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10037 hardcode_libdir_separator=: 10038 inherit_rpath=yes 10039 link_all_deplibs=yes 10040 ;; 10041 10042 linux*) 10043 case $cc_basename in 10044 tcc*) 10045 # Fabrice Bellard et al's Tiny C Compiler 10046 ld_shlibs=yes 10047 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10048 ;; 10049 esac 10050 ;; 10051 10052 netbsd* | netbsdelf*-gnu) 10053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10054 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10055 else 10056 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10057 fi 10058 hardcode_libdir_flag_spec='-R$libdir' 10059 hardcode_direct=yes 10060 hardcode_shlibpath_var=no 10061 ;; 10062 10063 newsos6) 10064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10065 hardcode_direct=yes 10066 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10067 hardcode_libdir_separator=: 10068 hardcode_shlibpath_var=no 10069 ;; 10070 10071 *nto* | *qnx*) 10072 ;; 10073 10074 openbsd* | bitrig*) 10075 if test -f /usr/libexec/ld.so; then 10076 hardcode_direct=yes 10077 hardcode_shlibpath_var=no 10078 hardcode_direct_absolute=yes 10079 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10080 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10081 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10082 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10083 export_dynamic_flag_spec='$wl-E' 10084 else 10085 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10086 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10087 fi 10088 else 10089 ld_shlibs=no 10090 fi 10091 ;; 10092 10093 os2*) 10094 hardcode_libdir_flag_spec='-L$libdir' 10095 hardcode_minus_L=yes 10096 allow_undefined_flag=unsupported 10097 shrext_cmds=.dll 10098 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10099 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10100 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10101 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10102 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10103 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10104 emximp -o $lib $output_objdir/$libname.def' 10105 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10106 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10107 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10108 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10109 prefix_cmds="$SED"~ 10110 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10111 prefix_cmds="$prefix_cmds -e 1d"; 10112 fi~ 10113 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10114 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10115 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10116 emximp -o $lib $output_objdir/$libname.def' 10117 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10118 enable_shared_with_static_runtimes=yes 10119 ;; 10120 10121 osf3*) 10122 if test yes = "$GCC"; then 10123 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10124 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' 10125 else 10126 allow_undefined_flag=' -expect_unresolved \*' 10127 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' 10128 fi 10129 archive_cmds_need_lc='no' 10130 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10131 hardcode_libdir_separator=: 10132 ;; 10133 10134 osf4* | osf5*) # as osf3* with the addition of -msym flag 10135 if test yes = "$GCC"; then 10136 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10137 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' 10138 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10139 else 10140 allow_undefined_flag=' -expect_unresolved \*' 10141 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' 10142 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~ 10143 $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' 10144 10145 # Both c and cxx compiler support -rpath directly 10146 hardcode_libdir_flag_spec='-rpath $libdir' 10147 fi 10148 archive_cmds_need_lc='no' 10149 hardcode_libdir_separator=: 10150 ;; 10151 10152 solaris*) 10153 no_undefined_flag=' -z defs' 10154 if test yes = "$GCC"; then 10155 wlarc='$wl' 10156 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10157 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10158 $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' 10159 else 10160 case `$CC -V 2>&1` in 10161 *"Compilers 5.0"*) 10162 wlarc='' 10163 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10164 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10165 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10166 ;; 10167 *) 10168 wlarc='$wl' 10169 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10170 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10171 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10172 ;; 10173 esac 10174 fi 10175 hardcode_libdir_flag_spec='-R$libdir' 10176 hardcode_shlibpath_var=no 10177 case $host_os in 10178 solaris2.[0-5] | solaris2.[0-5].*) ;; 10179 *) 10180 # The compiler driver will combine and reorder linker options, 10181 # but understands '-z linker_flag'. GCC discards it without '$wl', 10182 # but is careful enough not to reorder. 10183 # Supported since Solaris 2.6 (maybe 2.5.1?) 10184 if test yes = "$GCC"; then 10185 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10186 else 10187 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10188 fi 10189 ;; 10190 esac 10191 link_all_deplibs=yes 10192 ;; 10193 10194 sunos4*) 10195 if test sequent = "$host_vendor"; then 10196 # Use $CC to link under sequent, because it throws in some extra .o 10197 # files that make .init and .fini sections work. 10198 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10199 else 10200 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10201 fi 10202 hardcode_libdir_flag_spec='-L$libdir' 10203 hardcode_direct=yes 10204 hardcode_minus_L=yes 10205 hardcode_shlibpath_var=no 10206 ;; 10207 10208 sysv4) 10209 case $host_vendor in 10210 sni) 10211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10212 hardcode_direct=yes # is this really true??? 10213 ;; 10214 siemens) 10215 ## LD is ld it makes a PLAMLIB 10216 ## CC just makes a GrossModule. 10217 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10218 reload_cmds='$CC -r -o $output$reload_objs' 10219 hardcode_direct=no 10220 ;; 10221 motorola) 10222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10223 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10224 ;; 10225 esac 10226 runpath_var='LD_RUN_PATH' 10227 hardcode_shlibpath_var=no 10228 ;; 10229 10230 sysv4.3*) 10231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10232 hardcode_shlibpath_var=no 10233 export_dynamic_flag_spec='-Bexport' 10234 ;; 10235 10236 sysv4*MP*) 10237 if test -d /usr/nec; then 10238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10239 hardcode_shlibpath_var=no 10240 runpath_var=LD_RUN_PATH 10241 hardcode_runpath_var=yes 10242 ld_shlibs=yes 10243 fi 10244 ;; 10245 10246 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10247 no_undefined_flag='$wl-z,text' 10248 archive_cmds_need_lc=no 10249 hardcode_shlibpath_var=no 10250 runpath_var='LD_RUN_PATH' 10251 10252 if test yes = "$GCC"; then 10253 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10254 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10255 else 10256 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10257 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10258 fi 10259 ;; 10260 10261 sysv5* | sco3.2v5* | sco5v6*) 10262 # Note: We CANNOT use -z defs as we might desire, because we do not 10263 # link with -lc, and that would cause any symbols used from libc to 10264 # always be unresolved, which means just about no library would 10265 # ever link correctly. If we're not using GNU ld we use -z text 10266 # though, which does catch some bad symbols but isn't as heavy-handed 10267 # as -z defs. 10268 no_undefined_flag='$wl-z,text' 10269 allow_undefined_flag='$wl-z,nodefs' 10270 archive_cmds_need_lc=no 10271 hardcode_shlibpath_var=no 10272 hardcode_libdir_flag_spec='$wl-R,$libdir' 10273 hardcode_libdir_separator=':' 10274 link_all_deplibs=yes 10275 export_dynamic_flag_spec='$wl-Bexport' 10276 runpath_var='LD_RUN_PATH' 10277 10278 if test yes = "$GCC"; then 10279 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10280 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10281 else 10282 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10283 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10284 fi 10285 ;; 10286 10287 uts4*) 10288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10289 hardcode_libdir_flag_spec='-L$libdir' 10290 hardcode_shlibpath_var=no 10291 ;; 10292 10293 *) 10294 ld_shlibs=no 10295 ;; 10296 esac 10297 10298 if test sni = "$host_vendor"; then 10299 case $host in 10300 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10301 export_dynamic_flag_spec='$wl-Blargedynsym' 10302 ;; 10303 esac 10304 fi 10305 fi 10306 10307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10308$as_echo "$ld_shlibs" >&6; } 10309test no = "$ld_shlibs" && can_build_shared=no 10310 10311with_gnu_ld=$with_gnu_ld 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327# 10328# Do we need to explicitly link libc? 10329# 10330case "x$archive_cmds_need_lc" in 10331x|xyes) 10332 # Assume -lc should be added 10333 archive_cmds_need_lc=yes 10334 10335 if test yes,yes = "$GCC,$enable_shared"; then 10336 case $archive_cmds in 10337 *'~'*) 10338 # FIXME: we may have to deal with multi-command sequences. 10339 ;; 10340 '$CC '*) 10341 # Test whether the compiler implicitly links with -lc since on some 10342 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10343 # to ld, don't add -lc before -lgcc. 10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10345$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10346if ${lt_cv_archive_cmds_need_lc+:} false; then : 10347 $as_echo_n "(cached) " >&6 10348else 10349 $RM conftest* 10350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10351 10352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10353 (eval $ac_compile) 2>&5 10354 ac_status=$? 10355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10356 test $ac_status = 0; } 2>conftest.err; then 10357 soname=conftest 10358 lib=conftest 10359 libobjs=conftest.$ac_objext 10360 deplibs= 10361 wl=$lt_prog_compiler_wl 10362 pic_flag=$lt_prog_compiler_pic 10363 compiler_flags=-v 10364 linker_flags=-v 10365 verstring= 10366 output_objdir=. 10367 libname=conftest 10368 lt_save_allow_undefined_flag=$allow_undefined_flag 10369 allow_undefined_flag= 10370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10371 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10372 ac_status=$? 10373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10374 test $ac_status = 0; } 10375 then 10376 lt_cv_archive_cmds_need_lc=no 10377 else 10378 lt_cv_archive_cmds_need_lc=yes 10379 fi 10380 allow_undefined_flag=$lt_save_allow_undefined_flag 10381 else 10382 cat conftest.err 1>&5 10383 fi 10384 $RM conftest* 10385 10386fi 10387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10388$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10389 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10390 ;; 10391 esac 10392 fi 10393 ;; 10394esac 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10548$as_echo_n "checking dynamic linker characteristics... " >&6; } 10549 10550if test yes = "$GCC"; then 10551 case $host_os in 10552 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10553 *) lt_awk_arg='/^libraries:/' ;; 10554 esac 10555 case $host_os in 10556 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10557 *) lt_sed_strip_eq='s|=/|/|g' ;; 10558 esac 10559 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10560 case $lt_search_path_spec in 10561 *\;*) 10562 # if the path contains ";" then we assume it to be the separator 10563 # otherwise default to the standard path separator (i.e. ":") - it is 10564 # assumed that no part of a normal pathname contains ";" but that should 10565 # okay in the real world where ";" in dirpaths is itself problematic. 10566 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10567 ;; 10568 *) 10569 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10570 ;; 10571 esac 10572 # Ok, now we have the path, separated by spaces, we can step through it 10573 # and add multilib dir if necessary... 10574 lt_tmp_lt_search_path_spec= 10575 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10576 # ...but if some path component already ends with the multilib dir we assume 10577 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10578 case "$lt_multi_os_dir; $lt_search_path_spec " in 10579 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10580 lt_multi_os_dir= 10581 ;; 10582 esac 10583 for lt_sys_path in $lt_search_path_spec; do 10584 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10585 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10586 elif test -n "$lt_multi_os_dir"; then 10587 test -d "$lt_sys_path" && \ 10588 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10589 fi 10590 done 10591 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10592BEGIN {RS = " "; FS = "/|\n";} { 10593 lt_foo = ""; 10594 lt_count = 0; 10595 for (lt_i = NF; lt_i > 0; lt_i--) { 10596 if ($lt_i != "" && $lt_i != ".") { 10597 if ($lt_i == "..") { 10598 lt_count++; 10599 } else { 10600 if (lt_count == 0) { 10601 lt_foo = "/" $lt_i lt_foo; 10602 } else { 10603 lt_count--; 10604 } 10605 } 10606 } 10607 } 10608 if (lt_foo != "") { lt_freq[lt_foo]++; } 10609 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10610}'` 10611 # AWK program above erroneously prepends '/' to C:/dos/paths 10612 # for these hosts. 10613 case $host_os in 10614 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10615 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10616 esac 10617 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10618else 10619 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10620fi 10621library_names_spec= 10622libname_spec='lib$name' 10623soname_spec= 10624shrext_cmds=.so 10625postinstall_cmds= 10626postuninstall_cmds= 10627finish_cmds= 10628finish_eval= 10629shlibpath_var= 10630shlibpath_overrides_runpath=unknown 10631version_type=none 10632dynamic_linker="$host_os ld.so" 10633sys_lib_dlsearch_path_spec="/lib /usr/lib" 10634need_lib_prefix=unknown 10635hardcode_into_libs=no 10636 10637# when you set need_version to no, make sure it does not cause -set_version 10638# flags to be left without arguments 10639need_version=unknown 10640 10641 10642 10643case $host_os in 10644aix3*) 10645 version_type=linux # correct to gnu/linux during the next big refactor 10646 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10647 shlibpath_var=LIBPATH 10648 10649 # AIX 3 has no versioning support, so we append a major version to the name. 10650 soname_spec='$libname$release$shared_ext$major' 10651 ;; 10652 10653aix[4-9]*) 10654 version_type=linux # correct to gnu/linux during the next big refactor 10655 need_lib_prefix=no 10656 need_version=no 10657 hardcode_into_libs=yes 10658 if test ia64 = "$host_cpu"; then 10659 # AIX 5 supports IA64 10660 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10661 shlibpath_var=LD_LIBRARY_PATH 10662 else 10663 # With GCC up to 2.95.x, collect2 would create an import file 10664 # for dependence libraries. The import file would start with 10665 # the line '#! .'. This would cause the generated library to 10666 # depend on '.', always an invalid library. This was fixed in 10667 # development snapshots of GCC prior to 3.0. 10668 case $host_os in 10669 aix4 | aix4.[01] | aix4.[01].*) 10670 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10671 echo ' yes ' 10672 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10673 : 10674 else 10675 can_build_shared=no 10676 fi 10677 ;; 10678 esac 10679 # Using Import Files as archive members, it is possible to support 10680 # filename-based versioning of shared library archives on AIX. While 10681 # this would work for both with and without runtime linking, it will 10682 # prevent static linking of such archives. So we do filename-based 10683 # shared library versioning with .so extension only, which is used 10684 # when both runtime linking and shared linking is enabled. 10685 # Unfortunately, runtime linking may impact performance, so we do 10686 # not want this to be the default eventually. Also, we use the 10687 # versioned .so libs for executables only if there is the -brtl 10688 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10689 # To allow for filename-based versioning support, we need to create 10690 # libNAME.so.V as an archive file, containing: 10691 # *) an Import File, referring to the versioned filename of the 10692 # archive as well as the shared archive member, telling the 10693 # bitwidth (32 or 64) of that shared object, and providing the 10694 # list of exported symbols of that shared object, eventually 10695 # decorated with the 'weak' keyword 10696 # *) the shared object with the F_LOADONLY flag set, to really avoid 10697 # it being seen by the linker. 10698 # At run time we better use the real file rather than another symlink, 10699 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10700 10701 case $with_aix_soname,$aix_use_runtimelinking in 10702 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10703 # soname into executable. Probably we can add versioning support to 10704 # collect2, so additional links can be useful in future. 10705 aix,yes) # traditional libtool 10706 dynamic_linker='AIX unversionable lib.so' 10707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10708 # instead of lib<name>.a to let people know that these are not 10709 # typical AIX shared libraries. 10710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10711 ;; 10712 aix,no) # traditional AIX only 10713 dynamic_linker='AIX lib.a(lib.so.V)' 10714 # We preserve .a as extension for shared libraries through AIX4.2 10715 # and later when we are not doing run time linking. 10716 library_names_spec='$libname$release.a $libname.a' 10717 soname_spec='$libname$release$shared_ext$major' 10718 ;; 10719 svr4,*) # full svr4 only 10720 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10721 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10722 # We do not specify a path in Import Files, so LIBPATH fires. 10723 shlibpath_overrides_runpath=yes 10724 ;; 10725 *,yes) # both, prefer svr4 10726 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10727 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10728 # unpreferred sharedlib libNAME.a needs extra handling 10729 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10730 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10731 # We do not specify a path in Import Files, so LIBPATH fires. 10732 shlibpath_overrides_runpath=yes 10733 ;; 10734 *,no) # both, prefer aix 10735 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10736 library_names_spec='$libname$release.a $libname.a' 10737 soname_spec='$libname$release$shared_ext$major' 10738 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10739 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10740 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10741 ;; 10742 esac 10743 shlibpath_var=LIBPATH 10744 fi 10745 ;; 10746 10747amigaos*) 10748 case $host_cpu in 10749 powerpc) 10750 # Since July 2007 AmigaOS4 officially supports .so libraries. 10751 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10753 ;; 10754 m68k) 10755 library_names_spec='$libname.ixlibrary $libname.a' 10756 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10757 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10758 ;; 10759 esac 10760 ;; 10761 10762beos*) 10763 library_names_spec='$libname$shared_ext' 10764 dynamic_linker="$host_os ld.so" 10765 shlibpath_var=LIBRARY_PATH 10766 ;; 10767 10768bsdi[45]*) 10769 version_type=linux # correct to gnu/linux during the next big refactor 10770 need_version=no 10771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10772 soname_spec='$libname$release$shared_ext$major' 10773 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10774 shlibpath_var=LD_LIBRARY_PATH 10775 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10776 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10777 # the default ld.so.conf also contains /usr/contrib/lib and 10778 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10779 # libtool to hard-code these into programs 10780 ;; 10781 10782cygwin* | mingw* | pw32* | cegcc*) 10783 version_type=windows 10784 shrext_cmds=.dll 10785 need_version=no 10786 need_lib_prefix=no 10787 10788 case $GCC,$cc_basename in 10789 yes,*) 10790 # gcc 10791 library_names_spec='$libname.dll.a' 10792 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10793 postinstall_cmds='base_file=`basename \$file`~ 10794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10795 dldir=$destdir/`dirname \$dlpath`~ 10796 test -d \$dldir || mkdir -p \$dldir~ 10797 $install_prog $dir/$dlname \$dldir/$dlname~ 10798 chmod a+x \$dldir/$dlname~ 10799 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10800 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10801 fi' 10802 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10803 dlpath=$dir/\$dldll~ 10804 $RM \$dlpath' 10805 shlibpath_overrides_runpath=yes 10806 10807 case $host_os in 10808 cygwin*) 10809 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10810 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10811 10812 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10813 ;; 10814 mingw* | cegcc*) 10815 # MinGW DLLs use traditional 'lib' prefix 10816 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10817 ;; 10818 pw32*) 10819 # pw32 DLLs use 'pw' prefix rather than 'lib' 10820 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10821 ;; 10822 esac 10823 dynamic_linker='Win32 ld.exe' 10824 ;; 10825 10826 *,cl*) 10827 # Native MSVC 10828 libname_spec='$name' 10829 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10830 library_names_spec='$libname.dll.lib' 10831 10832 case $build_os in 10833 mingw*) 10834 sys_lib_search_path_spec= 10835 lt_save_ifs=$IFS 10836 IFS=';' 10837 for lt_path in $LIB 10838 do 10839 IFS=$lt_save_ifs 10840 # Let DOS variable expansion print the short 8.3 style file name. 10841 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10842 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10843 done 10844 IFS=$lt_save_ifs 10845 # Convert to MSYS style. 10846 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10847 ;; 10848 cygwin*) 10849 # Convert to unix form, then to dos form, then back to unix form 10850 # but this time dos style (no spaces!) so that the unix form looks 10851 # like /cygdrive/c/PROGRA~1:/cygdr... 10852 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10853 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10854 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10855 ;; 10856 *) 10857 sys_lib_search_path_spec=$LIB 10858 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10859 # It is most probably a Windows format PATH. 10860 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10861 else 10862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10863 fi 10864 # FIXME: find the short name or the path components, as spaces are 10865 # common. (e.g. "Program Files" -> "PROGRA~1") 10866 ;; 10867 esac 10868 10869 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10870 postinstall_cmds='base_file=`basename \$file`~ 10871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10872 dldir=$destdir/`dirname \$dlpath`~ 10873 test -d \$dldir || mkdir -p \$dldir~ 10874 $install_prog $dir/$dlname \$dldir/$dlname' 10875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10876 dlpath=$dir/\$dldll~ 10877 $RM \$dlpath' 10878 shlibpath_overrides_runpath=yes 10879 dynamic_linker='Win32 link.exe' 10880 ;; 10881 10882 *) 10883 # Assume MSVC wrapper 10884 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10885 dynamic_linker='Win32 ld.exe' 10886 ;; 10887 esac 10888 # FIXME: first we should search . and the directory the executable is in 10889 shlibpath_var=PATH 10890 ;; 10891 10892darwin* | rhapsody*) 10893 dynamic_linker="$host_os dyld" 10894 version_type=darwin 10895 need_lib_prefix=no 10896 need_version=no 10897 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10898 soname_spec='$libname$release$major$shared_ext' 10899 shlibpath_overrides_runpath=yes 10900 shlibpath_var=DYLD_LIBRARY_PATH 10901 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10902 10903 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10904 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10905 ;; 10906 10907dgux*) 10908 version_type=linux # correct to gnu/linux during the next big refactor 10909 need_lib_prefix=no 10910 need_version=no 10911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10912 soname_spec='$libname$release$shared_ext$major' 10913 shlibpath_var=LD_LIBRARY_PATH 10914 ;; 10915 10916freebsd* | dragonfly*) 10917 # DragonFly does not have aout. When/if they implement a new 10918 # versioning mechanism, adjust this. 10919 if test -x /usr/bin/objformat; then 10920 objformat=`/usr/bin/objformat` 10921 else 10922 case $host_os in 10923 freebsd[23].*) objformat=aout ;; 10924 *) objformat=elf ;; 10925 esac 10926 fi 10927 version_type=freebsd-$objformat 10928 case $version_type in 10929 freebsd-elf*) 10930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10931 soname_spec='$libname$release$shared_ext$major' 10932 need_version=no 10933 need_lib_prefix=no 10934 ;; 10935 freebsd-*) 10936 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10937 need_version=yes 10938 ;; 10939 esac 10940 shlibpath_var=LD_LIBRARY_PATH 10941 case $host_os in 10942 freebsd2.*) 10943 shlibpath_overrides_runpath=yes 10944 ;; 10945 freebsd3.[01]* | freebsdelf3.[01]*) 10946 shlibpath_overrides_runpath=yes 10947 hardcode_into_libs=yes 10948 ;; 10949 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10950 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10951 shlibpath_overrides_runpath=no 10952 hardcode_into_libs=yes 10953 ;; 10954 *) # from 4.6 on, and DragonFly 10955 shlibpath_overrides_runpath=yes 10956 hardcode_into_libs=yes 10957 ;; 10958 esac 10959 ;; 10960 10961haiku*) 10962 version_type=linux # correct to gnu/linux during the next big refactor 10963 need_lib_prefix=no 10964 need_version=no 10965 dynamic_linker="$host_os runtime_loader" 10966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10967 soname_spec='$libname$release$shared_ext$major' 10968 shlibpath_var=LIBRARY_PATH 10969 shlibpath_overrides_runpath=no 10970 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10971 hardcode_into_libs=yes 10972 ;; 10973 10974hpux9* | hpux10* | hpux11*) 10975 # Give a soname corresponding to the major version so that dld.sl refuses to 10976 # link against other versions. 10977 version_type=sunos 10978 need_lib_prefix=no 10979 need_version=no 10980 case $host_cpu in 10981 ia64*) 10982 shrext_cmds='.so' 10983 hardcode_into_libs=yes 10984 dynamic_linker="$host_os dld.so" 10985 shlibpath_var=LD_LIBRARY_PATH 10986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10988 soname_spec='$libname$release$shared_ext$major' 10989 if test 32 = "$HPUX_IA64_MODE"; then 10990 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10991 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10992 else 10993 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10994 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10995 fi 10996 ;; 10997 hppa*64*) 10998 shrext_cmds='.sl' 10999 hardcode_into_libs=yes 11000 dynamic_linker="$host_os dld.sl" 11001 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11004 soname_spec='$libname$release$shared_ext$major' 11005 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11007 ;; 11008 *) 11009 shrext_cmds='.sl' 11010 dynamic_linker="$host_os dld.sl" 11011 shlibpath_var=SHLIB_PATH 11012 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11014 soname_spec='$libname$release$shared_ext$major' 11015 ;; 11016 esac 11017 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11018 postinstall_cmds='chmod 555 $lib' 11019 # or fails outright, so override atomically: 11020 install_override_mode=555 11021 ;; 11022 11023interix[3-9]*) 11024 version_type=linux # correct to gnu/linux during the next big refactor 11025 need_lib_prefix=no 11026 need_version=no 11027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11028 soname_spec='$libname$release$shared_ext$major' 11029 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11030 shlibpath_var=LD_LIBRARY_PATH 11031 shlibpath_overrides_runpath=no 11032 hardcode_into_libs=yes 11033 ;; 11034 11035irix5* | irix6* | nonstopux*) 11036 case $host_os in 11037 nonstopux*) version_type=nonstopux ;; 11038 *) 11039 if test yes = "$lt_cv_prog_gnu_ld"; then 11040 version_type=linux # correct to gnu/linux during the next big refactor 11041 else 11042 version_type=irix 11043 fi ;; 11044 esac 11045 need_lib_prefix=no 11046 need_version=no 11047 soname_spec='$libname$release$shared_ext$major' 11048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11049 case $host_os in 11050 irix5* | nonstopux*) 11051 libsuff= shlibsuff= 11052 ;; 11053 *) 11054 case $LD in # libtool.m4 will add one of these switches to LD 11055 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11056 libsuff= shlibsuff= libmagic=32-bit;; 11057 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11058 libsuff=32 shlibsuff=N32 libmagic=N32;; 11059 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11060 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11061 *) libsuff= shlibsuff= libmagic=never-match;; 11062 esac 11063 ;; 11064 esac 11065 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11066 shlibpath_overrides_runpath=no 11067 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11068 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11069 hardcode_into_libs=yes 11070 ;; 11071 11072# No shared lib support for Linux oldld, aout, or coff. 11073linux*oldld* | linux*aout* | linux*coff*) 11074 dynamic_linker=no 11075 ;; 11076 11077linux*android*) 11078 version_type=none # Android doesn't support versioned libraries. 11079 need_lib_prefix=no 11080 need_version=no 11081 library_names_spec='$libname$release$shared_ext' 11082 soname_spec='$libname$release$shared_ext' 11083 finish_cmds= 11084 shlibpath_var=LD_LIBRARY_PATH 11085 shlibpath_overrides_runpath=yes 11086 11087 # This implies no fast_install, which is unacceptable. 11088 # Some rework will be needed to allow for fast_install 11089 # before this can be enabled. 11090 hardcode_into_libs=yes 11091 11092 dynamic_linker='Android linker' 11093 # Don't embed -rpath directories since the linker doesn't support them. 11094 hardcode_libdir_flag_spec='-L$libdir' 11095 ;; 11096 11097# This must be glibc/ELF. 11098linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11099 version_type=linux # correct to gnu/linux during the next big refactor 11100 need_lib_prefix=no 11101 need_version=no 11102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11103 soname_spec='$libname$release$shared_ext$major' 11104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11105 shlibpath_var=LD_LIBRARY_PATH 11106 shlibpath_overrides_runpath=no 11107 11108 # Some binutils ld are patched to set DT_RUNPATH 11109 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11110 $as_echo_n "(cached) " >&6 11111else 11112 lt_cv_shlibpath_overrides_runpath=no 11113 save_LDFLAGS=$LDFLAGS 11114 save_libdir=$libdir 11115 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11116 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11118/* end confdefs.h. */ 11119 11120int 11121main () 11122{ 11123 11124 ; 11125 return 0; 11126} 11127_ACEOF 11128if ac_fn_c_try_link "$LINENO"; then : 11129 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11130 lt_cv_shlibpath_overrides_runpath=yes 11131fi 11132fi 11133rm -f core conftest.err conftest.$ac_objext \ 11134 conftest$ac_exeext conftest.$ac_ext 11135 LDFLAGS=$save_LDFLAGS 11136 libdir=$save_libdir 11137 11138fi 11139 11140 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11141 11142 # This implies no fast_install, which is unacceptable. 11143 # Some rework will be needed to allow for fast_install 11144 # before this can be enabled. 11145 hardcode_into_libs=yes 11146 11147 # Ideally, we could use ldconfig to report *all* directores which are 11148 # searched for libraries, however this is still not possible. Aside from not 11149 # being certain /sbin/ldconfig is available, command 11150 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11151 # even though it is searched at run-time. Try to do the best guess by 11152 # appending ld.so.conf contents (and includes) to the search path. 11153 if test -f /etc/ld.so.conf; then 11154 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' ' '` 11155 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11156 fi 11157 11158 # We used to test for /lib/ld.so.1 and disable shared libraries on 11159 # powerpc, because MkLinux only supported shared libraries with the 11160 # GNU dynamic linker. Since this was broken with cross compilers, 11161 # most powerpc-linux boxes support dynamic linking these days and 11162 # people can always --disable-shared, the test was removed, and we 11163 # assume the GNU/Linux dynamic linker is in use. 11164 dynamic_linker='GNU/Linux ld.so' 11165 ;; 11166 11167netbsdelf*-gnu) 11168 version_type=linux 11169 need_lib_prefix=no 11170 need_version=no 11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11172 soname_spec='${libname}${release}${shared_ext}$major' 11173 shlibpath_var=LD_LIBRARY_PATH 11174 shlibpath_overrides_runpath=no 11175 hardcode_into_libs=yes 11176 dynamic_linker='NetBSD ld.elf_so' 11177 ;; 11178 11179netbsd*) 11180 version_type=sunos 11181 need_lib_prefix=no 11182 need_version=no 11183 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11184 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11186 dynamic_linker='NetBSD (a.out) ld.so' 11187 else 11188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11189 soname_spec='$libname$release$shared_ext$major' 11190 dynamic_linker='NetBSD ld.elf_so' 11191 fi 11192 shlibpath_var=LD_LIBRARY_PATH 11193 shlibpath_overrides_runpath=yes 11194 hardcode_into_libs=yes 11195 ;; 11196 11197newsos6) 11198 version_type=linux # correct to gnu/linux during the next big refactor 11199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11200 shlibpath_var=LD_LIBRARY_PATH 11201 shlibpath_overrides_runpath=yes 11202 ;; 11203 11204*nto* | *qnx*) 11205 version_type=qnx 11206 need_lib_prefix=no 11207 need_version=no 11208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11209 soname_spec='$libname$release$shared_ext$major' 11210 shlibpath_var=LD_LIBRARY_PATH 11211 shlibpath_overrides_runpath=no 11212 hardcode_into_libs=yes 11213 dynamic_linker='ldqnx.so' 11214 ;; 11215 11216openbsd* | bitrig*) 11217 version_type=sunos 11218 sys_lib_dlsearch_path_spec=/usr/lib 11219 need_lib_prefix=no 11220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11221 need_version=no 11222 else 11223 need_version=yes 11224 fi 11225 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11227 shlibpath_var=LD_LIBRARY_PATH 11228 shlibpath_overrides_runpath=yes 11229 ;; 11230 11231os2*) 11232 libname_spec='$name' 11233 version_type=windows 11234 shrext_cmds=.dll 11235 need_version=no 11236 need_lib_prefix=no 11237 # OS/2 can only load a DLL with a base name of 8 characters or less. 11238 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11239 v=$($ECHO $release$versuffix | tr -d .-); 11240 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11241 $ECHO $n$v`$shared_ext' 11242 library_names_spec='${libname}_dll.$libext' 11243 dynamic_linker='OS/2 ld.exe' 11244 shlibpath_var=BEGINLIBPATH 11245 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11247 postinstall_cmds='base_file=`basename \$file`~ 11248 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11249 dldir=$destdir/`dirname \$dlpath`~ 11250 test -d \$dldir || mkdir -p \$dldir~ 11251 $install_prog $dir/$dlname \$dldir/$dlname~ 11252 chmod a+x \$dldir/$dlname~ 11253 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11254 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11255 fi' 11256 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11257 dlpath=$dir/\$dldll~ 11258 $RM \$dlpath' 11259 ;; 11260 11261osf3* | osf4* | osf5*) 11262 version_type=osf 11263 need_lib_prefix=no 11264 need_version=no 11265 soname_spec='$libname$release$shared_ext$major' 11266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11267 shlibpath_var=LD_LIBRARY_PATH 11268 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11270 ;; 11271 11272rdos*) 11273 dynamic_linker=no 11274 ;; 11275 11276solaris*) 11277 version_type=linux # correct to gnu/linux during the next big refactor 11278 need_lib_prefix=no 11279 need_version=no 11280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11281 soname_spec='$libname$release$shared_ext$major' 11282 shlibpath_var=LD_LIBRARY_PATH 11283 shlibpath_overrides_runpath=yes 11284 hardcode_into_libs=yes 11285 # ldd complains unless libraries are executable 11286 postinstall_cmds='chmod +x $lib' 11287 ;; 11288 11289sunos4*) 11290 version_type=sunos 11291 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11293 shlibpath_var=LD_LIBRARY_PATH 11294 shlibpath_overrides_runpath=yes 11295 if test yes = "$with_gnu_ld"; then 11296 need_lib_prefix=no 11297 fi 11298 need_version=yes 11299 ;; 11300 11301sysv4 | sysv4.3*) 11302 version_type=linux # correct to gnu/linux during the next big refactor 11303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11304 soname_spec='$libname$release$shared_ext$major' 11305 shlibpath_var=LD_LIBRARY_PATH 11306 case $host_vendor in 11307 sni) 11308 shlibpath_overrides_runpath=no 11309 need_lib_prefix=no 11310 runpath_var=LD_RUN_PATH 11311 ;; 11312 siemens) 11313 need_lib_prefix=no 11314 ;; 11315 motorola) 11316 need_lib_prefix=no 11317 need_version=no 11318 shlibpath_overrides_runpath=no 11319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11320 ;; 11321 esac 11322 ;; 11323 11324sysv4*MP*) 11325 if test -d /usr/nec; then 11326 version_type=linux # correct to gnu/linux during the next big refactor 11327 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11328 soname_spec='$libname$shared_ext.$major' 11329 shlibpath_var=LD_LIBRARY_PATH 11330 fi 11331 ;; 11332 11333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11334 version_type=sco 11335 need_lib_prefix=no 11336 need_version=no 11337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11338 soname_spec='$libname$release$shared_ext$major' 11339 shlibpath_var=LD_LIBRARY_PATH 11340 shlibpath_overrides_runpath=yes 11341 hardcode_into_libs=yes 11342 if test yes = "$with_gnu_ld"; then 11343 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11344 else 11345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11346 case $host_os in 11347 sco3.2v5*) 11348 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11349 ;; 11350 esac 11351 fi 11352 sys_lib_dlsearch_path_spec='/usr/lib' 11353 ;; 11354 11355tpf*) 11356 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11357 version_type=linux # correct to gnu/linux during the next big refactor 11358 need_lib_prefix=no 11359 need_version=no 11360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11361 shlibpath_var=LD_LIBRARY_PATH 11362 shlibpath_overrides_runpath=no 11363 hardcode_into_libs=yes 11364 ;; 11365 11366uts4*) 11367 version_type=linux # correct to gnu/linux during the next big refactor 11368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11369 soname_spec='$libname$release$shared_ext$major' 11370 shlibpath_var=LD_LIBRARY_PATH 11371 ;; 11372 11373*) 11374 dynamic_linker=no 11375 ;; 11376esac 11377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11378$as_echo "$dynamic_linker" >&6; } 11379test no = "$dynamic_linker" && can_build_shared=no 11380 11381variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11382if test yes = "$GCC"; then 11383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11384fi 11385 11386if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11387 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11388fi 11389 11390if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11391 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11392fi 11393 11394# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11395configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11396 11397# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11398func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11399 11400# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11401configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11500$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11501hardcode_action= 11502if test -n "$hardcode_libdir_flag_spec" || 11503 test -n "$runpath_var" || 11504 test yes = "$hardcode_automatic"; then 11505 11506 # We can hardcode non-existent directories. 11507 if test no != "$hardcode_direct" && 11508 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11509 # have to relink, otherwise we might link with an installed library 11510 # when we should be linking with a yet-to-be-installed one 11511 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11512 test no != "$hardcode_minus_L"; then 11513 # Linking always hardcodes the temporary library directory. 11514 hardcode_action=relink 11515 else 11516 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11517 hardcode_action=immediate 11518 fi 11519else 11520 # We cannot hardcode anything, or else we can only hardcode existing 11521 # directories. 11522 hardcode_action=unsupported 11523fi 11524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11525$as_echo "$hardcode_action" >&6; } 11526 11527if test relink = "$hardcode_action" || 11528 test yes = "$inherit_rpath"; then 11529 # Fast installation is not supported 11530 enable_fast_install=no 11531elif test yes = "$shlibpath_overrides_runpath" || 11532 test no = "$enable_shared"; then 11533 # Fast installation is not necessary 11534 enable_fast_install=needless 11535fi 11536 11537 11538 11539 11540 11541 11542 if test yes != "$enable_dlopen"; then 11543 enable_dlopen=unknown 11544 enable_dlopen_self=unknown 11545 enable_dlopen_self_static=unknown 11546else 11547 lt_cv_dlopen=no 11548 lt_cv_dlopen_libs= 11549 11550 case $host_os in 11551 beos*) 11552 lt_cv_dlopen=load_add_on 11553 lt_cv_dlopen_libs= 11554 lt_cv_dlopen_self=yes 11555 ;; 11556 11557 mingw* | pw32* | cegcc*) 11558 lt_cv_dlopen=LoadLibrary 11559 lt_cv_dlopen_libs= 11560 ;; 11561 11562 cygwin*) 11563 lt_cv_dlopen=dlopen 11564 lt_cv_dlopen_libs= 11565 ;; 11566 11567 darwin*) 11568 # if libdl is installed we need to link against it 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11570$as_echo_n "checking for dlopen in -ldl... " >&6; } 11571if ${ac_cv_lib_dl_dlopen+:} false; then : 11572 $as_echo_n "(cached) " >&6 11573else 11574 ac_check_lib_save_LIBS=$LIBS 11575LIBS="-ldl $LIBS" 11576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11577/* end confdefs.h. */ 11578 11579/* Override any GCC internal prototype to avoid an error. 11580 Use char because int might match the return type of a GCC 11581 builtin and then its argument prototype would still apply. */ 11582#ifdef __cplusplus 11583extern "C" 11584#endif 11585char dlopen (); 11586int 11587main () 11588{ 11589return dlopen (); 11590 ; 11591 return 0; 11592} 11593_ACEOF 11594if ac_fn_c_try_link "$LINENO"; then : 11595 ac_cv_lib_dl_dlopen=yes 11596else 11597 ac_cv_lib_dl_dlopen=no 11598fi 11599rm -f core conftest.err conftest.$ac_objext \ 11600 conftest$ac_exeext conftest.$ac_ext 11601LIBS=$ac_check_lib_save_LIBS 11602fi 11603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11604$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11605if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11606 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11607else 11608 11609 lt_cv_dlopen=dyld 11610 lt_cv_dlopen_libs= 11611 lt_cv_dlopen_self=yes 11612 11613fi 11614 11615 ;; 11616 11617 tpf*) 11618 # Don't try to run any link tests for TPF. We know it's impossible 11619 # because TPF is a cross-compiler, and we know how we open DSOs. 11620 lt_cv_dlopen=dlopen 11621 lt_cv_dlopen_libs= 11622 lt_cv_dlopen_self=no 11623 ;; 11624 11625 *) 11626 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11627if test "x$ac_cv_func_shl_load" = xyes; then : 11628 lt_cv_dlopen=shl_load 11629else 11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11631$as_echo_n "checking for shl_load in -ldld... " >&6; } 11632if ${ac_cv_lib_dld_shl_load+:} false; then : 11633 $as_echo_n "(cached) " >&6 11634else 11635 ac_check_lib_save_LIBS=$LIBS 11636LIBS="-ldld $LIBS" 11637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11638/* end confdefs.h. */ 11639 11640/* Override any GCC internal prototype to avoid an error. 11641 Use char because int might match the return type of a GCC 11642 builtin and then its argument prototype would still apply. */ 11643#ifdef __cplusplus 11644extern "C" 11645#endif 11646char shl_load (); 11647int 11648main () 11649{ 11650return shl_load (); 11651 ; 11652 return 0; 11653} 11654_ACEOF 11655if ac_fn_c_try_link "$LINENO"; then : 11656 ac_cv_lib_dld_shl_load=yes 11657else 11658 ac_cv_lib_dld_shl_load=no 11659fi 11660rm -f core conftest.err conftest.$ac_objext \ 11661 conftest$ac_exeext conftest.$ac_ext 11662LIBS=$ac_check_lib_save_LIBS 11663fi 11664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11665$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11666if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11667 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11668else 11669 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11670if test "x$ac_cv_func_dlopen" = xyes; then : 11671 lt_cv_dlopen=dlopen 11672else 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11674$as_echo_n "checking for dlopen in -ldl... " >&6; } 11675if ${ac_cv_lib_dl_dlopen+:} false; then : 11676 $as_echo_n "(cached) " >&6 11677else 11678 ac_check_lib_save_LIBS=$LIBS 11679LIBS="-ldl $LIBS" 11680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11681/* end confdefs.h. */ 11682 11683/* Override any GCC internal prototype to avoid an error. 11684 Use char because int might match the return type of a GCC 11685 builtin and then its argument prototype would still apply. */ 11686#ifdef __cplusplus 11687extern "C" 11688#endif 11689char dlopen (); 11690int 11691main () 11692{ 11693return dlopen (); 11694 ; 11695 return 0; 11696} 11697_ACEOF 11698if ac_fn_c_try_link "$LINENO"; then : 11699 ac_cv_lib_dl_dlopen=yes 11700else 11701 ac_cv_lib_dl_dlopen=no 11702fi 11703rm -f core conftest.err conftest.$ac_objext \ 11704 conftest$ac_exeext conftest.$ac_ext 11705LIBS=$ac_check_lib_save_LIBS 11706fi 11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11708$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11709if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11710 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11711else 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11713$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11714if ${ac_cv_lib_svld_dlopen+:} false; then : 11715 $as_echo_n "(cached) " >&6 11716else 11717 ac_check_lib_save_LIBS=$LIBS 11718LIBS="-lsvld $LIBS" 11719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11720/* end confdefs.h. */ 11721 11722/* Override any GCC internal prototype to avoid an error. 11723 Use char because int might match the return type of a GCC 11724 builtin and then its argument prototype would still apply. */ 11725#ifdef __cplusplus 11726extern "C" 11727#endif 11728char dlopen (); 11729int 11730main () 11731{ 11732return dlopen (); 11733 ; 11734 return 0; 11735} 11736_ACEOF 11737if ac_fn_c_try_link "$LINENO"; then : 11738 ac_cv_lib_svld_dlopen=yes 11739else 11740 ac_cv_lib_svld_dlopen=no 11741fi 11742rm -f core conftest.err conftest.$ac_objext \ 11743 conftest$ac_exeext conftest.$ac_ext 11744LIBS=$ac_check_lib_save_LIBS 11745fi 11746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11747$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11748if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11749 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11750else 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11752$as_echo_n "checking for dld_link in -ldld... " >&6; } 11753if ${ac_cv_lib_dld_dld_link+:} false; then : 11754 $as_echo_n "(cached) " >&6 11755else 11756 ac_check_lib_save_LIBS=$LIBS 11757LIBS="-ldld $LIBS" 11758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11759/* end confdefs.h. */ 11760 11761/* Override any GCC internal prototype to avoid an error. 11762 Use char because int might match the return type of a GCC 11763 builtin and then its argument prototype would still apply. */ 11764#ifdef __cplusplus 11765extern "C" 11766#endif 11767char dld_link (); 11768int 11769main () 11770{ 11771return dld_link (); 11772 ; 11773 return 0; 11774} 11775_ACEOF 11776if ac_fn_c_try_link "$LINENO"; then : 11777 ac_cv_lib_dld_dld_link=yes 11778else 11779 ac_cv_lib_dld_dld_link=no 11780fi 11781rm -f core conftest.err conftest.$ac_objext \ 11782 conftest$ac_exeext conftest.$ac_ext 11783LIBS=$ac_check_lib_save_LIBS 11784fi 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11786$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11787if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11788 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11789fi 11790 11791 11792fi 11793 11794 11795fi 11796 11797 11798fi 11799 11800 11801fi 11802 11803 11804fi 11805 11806 ;; 11807 esac 11808 11809 if test no = "$lt_cv_dlopen"; then 11810 enable_dlopen=no 11811 else 11812 enable_dlopen=yes 11813 fi 11814 11815 case $lt_cv_dlopen in 11816 dlopen) 11817 save_CPPFLAGS=$CPPFLAGS 11818 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11819 11820 save_LDFLAGS=$LDFLAGS 11821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11822 11823 save_LIBS=$LIBS 11824 LIBS="$lt_cv_dlopen_libs $LIBS" 11825 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11827$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11828if ${lt_cv_dlopen_self+:} false; then : 11829 $as_echo_n "(cached) " >&6 11830else 11831 if test yes = "$cross_compiling"; then : 11832 lt_cv_dlopen_self=cross 11833else 11834 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11835 lt_status=$lt_dlunknown 11836 cat > conftest.$ac_ext <<_LT_EOF 11837#line $LINENO "configure" 11838#include "confdefs.h" 11839 11840#if HAVE_DLFCN_H 11841#include <dlfcn.h> 11842#endif 11843 11844#include <stdio.h> 11845 11846#ifdef RTLD_GLOBAL 11847# define LT_DLGLOBAL RTLD_GLOBAL 11848#else 11849# ifdef DL_GLOBAL 11850# define LT_DLGLOBAL DL_GLOBAL 11851# else 11852# define LT_DLGLOBAL 0 11853# endif 11854#endif 11855 11856/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11857 find out it does not work in some platform. */ 11858#ifndef LT_DLLAZY_OR_NOW 11859# ifdef RTLD_LAZY 11860# define LT_DLLAZY_OR_NOW RTLD_LAZY 11861# else 11862# ifdef DL_LAZY 11863# define LT_DLLAZY_OR_NOW DL_LAZY 11864# else 11865# ifdef RTLD_NOW 11866# define LT_DLLAZY_OR_NOW RTLD_NOW 11867# else 11868# ifdef DL_NOW 11869# define LT_DLLAZY_OR_NOW DL_NOW 11870# else 11871# define LT_DLLAZY_OR_NOW 0 11872# endif 11873# endif 11874# endif 11875# endif 11876#endif 11877 11878/* When -fvisibility=hidden is used, assume the code has been annotated 11879 correspondingly for the symbols needed. */ 11880#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11881int fnord () __attribute__((visibility("default"))); 11882#endif 11883 11884int fnord () { return 42; } 11885int main () 11886{ 11887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11888 int status = $lt_dlunknown; 11889 11890 if (self) 11891 { 11892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11893 else 11894 { 11895 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11896 else puts (dlerror ()); 11897 } 11898 /* dlclose (self); */ 11899 } 11900 else 11901 puts (dlerror ()); 11902 11903 return status; 11904} 11905_LT_EOF 11906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11907 (eval $ac_link) 2>&5 11908 ac_status=$? 11909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11910 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11911 (./conftest; exit; ) >&5 2>/dev/null 11912 lt_status=$? 11913 case x$lt_status in 11914 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11915 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11916 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11917 esac 11918 else : 11919 # compilation failed 11920 lt_cv_dlopen_self=no 11921 fi 11922fi 11923rm -fr conftest* 11924 11925 11926fi 11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11928$as_echo "$lt_cv_dlopen_self" >&6; } 11929 11930 if test yes = "$lt_cv_dlopen_self"; then 11931 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11933$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11934if ${lt_cv_dlopen_self_static+:} false; then : 11935 $as_echo_n "(cached) " >&6 11936else 11937 if test yes = "$cross_compiling"; then : 11938 lt_cv_dlopen_self_static=cross 11939else 11940 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11941 lt_status=$lt_dlunknown 11942 cat > conftest.$ac_ext <<_LT_EOF 11943#line $LINENO "configure" 11944#include "confdefs.h" 11945 11946#if HAVE_DLFCN_H 11947#include <dlfcn.h> 11948#endif 11949 11950#include <stdio.h> 11951 11952#ifdef RTLD_GLOBAL 11953# define LT_DLGLOBAL RTLD_GLOBAL 11954#else 11955# ifdef DL_GLOBAL 11956# define LT_DLGLOBAL DL_GLOBAL 11957# else 11958# define LT_DLGLOBAL 0 11959# endif 11960#endif 11961 11962/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11963 find out it does not work in some platform. */ 11964#ifndef LT_DLLAZY_OR_NOW 11965# ifdef RTLD_LAZY 11966# define LT_DLLAZY_OR_NOW RTLD_LAZY 11967# else 11968# ifdef DL_LAZY 11969# define LT_DLLAZY_OR_NOW DL_LAZY 11970# else 11971# ifdef RTLD_NOW 11972# define LT_DLLAZY_OR_NOW RTLD_NOW 11973# else 11974# ifdef DL_NOW 11975# define LT_DLLAZY_OR_NOW DL_NOW 11976# else 11977# define LT_DLLAZY_OR_NOW 0 11978# endif 11979# endif 11980# endif 11981# endif 11982#endif 11983 11984/* When -fvisibility=hidden is used, assume the code has been annotated 11985 correspondingly for the symbols needed. */ 11986#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11987int fnord () __attribute__((visibility("default"))); 11988#endif 11989 11990int fnord () { return 42; } 11991int main () 11992{ 11993 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11994 int status = $lt_dlunknown; 11995 11996 if (self) 11997 { 11998 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11999 else 12000 { 12001 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12002 else puts (dlerror ()); 12003 } 12004 /* dlclose (self); */ 12005 } 12006 else 12007 puts (dlerror ()); 12008 12009 return status; 12010} 12011_LT_EOF 12012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12013 (eval $ac_link) 2>&5 12014 ac_status=$? 12015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12016 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12017 (./conftest; exit; ) >&5 2>/dev/null 12018 lt_status=$? 12019 case x$lt_status in 12020 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12021 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12022 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12023 esac 12024 else : 12025 # compilation failed 12026 lt_cv_dlopen_self_static=no 12027 fi 12028fi 12029rm -fr conftest* 12030 12031 12032fi 12033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12034$as_echo "$lt_cv_dlopen_self_static" >&6; } 12035 fi 12036 12037 CPPFLAGS=$save_CPPFLAGS 12038 LDFLAGS=$save_LDFLAGS 12039 LIBS=$save_LIBS 12040 ;; 12041 esac 12042 12043 case $lt_cv_dlopen_self in 12044 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12045 *) enable_dlopen_self=unknown ;; 12046 esac 12047 12048 case $lt_cv_dlopen_self_static in 12049 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12050 *) enable_dlopen_self_static=unknown ;; 12051 esac 12052fi 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070striplib= 12071old_striplib= 12072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12073$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12074if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12075 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12076 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12078$as_echo "yes" >&6; } 12079else 12080# FIXME - insert some real tests, host_os isn't really good enough 12081 case $host_os in 12082 darwin*) 12083 if test -n "$STRIP"; then 12084 striplib="$STRIP -x" 12085 old_striplib="$STRIP -S" 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12087$as_echo "yes" >&6; } 12088 else 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12090$as_echo "no" >&6; } 12091 fi 12092 ;; 12093 *) 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12095$as_echo "no" >&6; } 12096 ;; 12097 esac 12098fi 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 # Report what library types will actually be built 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12113$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12115$as_echo "$can_build_shared" >&6; } 12116 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12118$as_echo_n "checking whether to build shared libraries... " >&6; } 12119 test no = "$can_build_shared" && enable_shared=no 12120 12121 # On AIX, shared libraries and static libraries use the same namespace, and 12122 # are all built from PIC. 12123 case $host_os in 12124 aix3*) 12125 test yes = "$enable_shared" && enable_static=no 12126 if test -n "$RANLIB"; then 12127 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12128 postinstall_cmds='$RANLIB $lib' 12129 fi 12130 ;; 12131 12132 aix[4-9]*) 12133 if test ia64 != "$host_cpu"; then 12134 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12135 yes,aix,yes) ;; # shared object as lib.so file only 12136 yes,svr4,*) ;; # shared object as lib.so archive member only 12137 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12138 esac 12139 fi 12140 ;; 12141 esac 12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12143$as_echo "$enable_shared" >&6; } 12144 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12146$as_echo_n "checking whether to build static libraries... " >&6; } 12147 # Make sure either enable_shared or enable_static is yes. 12148 test yes = "$enable_shared" || enable_static=yes 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12150$as_echo "$enable_static" >&6; } 12151 12152 12153 12154 12155fi 12156ac_ext=c 12157ac_cpp='$CPP $CPPFLAGS' 12158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12160ac_compiler_gnu=$ac_cv_c_compiler_gnu 12161 12162CC=$lt_save_CC 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 ac_config_commands="$ac_config_commands libtool" 12179 12180 12181 12182 12183# Only expand once: 12184 12185 12186 12187 12188# Check whether --enable-mpatrol was given. 12189if test "${enable_mpatrol+set}" = set; then : 12190 enableval=$enable_mpatrol; enable_mpatrol=$enableval 12191else 12192 enable_mpatrol="no" 12193fi 12194 12195 12196# Check whether --enable-gprof was given. 12197if test "${enable_gprof+set}" = set; then : 12198 enableval=$enable_gprof; enable_gprof=$enableval 12199else 12200 enable_gprof="no" 12201fi 12202 12203 12204# Check whether --enable-trace was given. 12205if test "${enable_trace+set}" = set; then : 12206 enableval=$enable_trace; enable_trace=$enableval 12207else 12208 enable_trace="yes" 12209fi 12210 12211 12212# Check whether --enable-minisize was given. 12213if test "${enable_minisize+set}" = set; then : 12214 enableval=$enable_minisize; enable_minisize=$enableval 12215else 12216 enable_minisize="no" 12217fi 12218 12219 12220# Check whether --enable-pthread was given. 12221if test "${enable_pthread+set}" = set; then : 12222 enableval=$enable_pthread; enable_pthread=$enableval 12223else 12224 enable_pthread="autodetect" 12225fi 12226 12227 12228# Check whether --enable-semaphore was given. 12229if test "${enable_semaphore+set}" = set; then : 12230 enableval=$enable_semaphore; enable_semaphore=$enableval 12231else 12232 enable_semaphore="autodetect" 12233fi 12234 12235 12236# Check whether --enable-gperf was given. 12237if test "${enable_gperf+set}" = set; then : 12238 enableval=$enable_gperf; enable_gperf=$enableval 12239else 12240 enable_gperf="no" 12241fi 12242 12243 12244# Check whether --enable-hashtable was given. 12245if test "${enable_hashtable+set}" = set; then : 12246 enableval=$enable_hashtable; enable_hashtable=$enableval 12247else 12248 enable_hashtable="no" 12249fi 12250 12251 12252# Check whether --enable-mt was given. 12253if test "${enable_mt+set}" = set; then : 12254 enableval=$enable_mt; enable_mt=$enableval 12255else 12256 enable_mt="yes" 12257fi 12258 12259 12260# Check whether --enable-test was given. 12261if test "${enable_test+set}" = set; then : 12262 enableval=$enable_test; enable_test=$enableval 12263else 12264 enable_test="no" 12265fi 12266 12267 12268if test "x$enable_mt" = "xyes"; then 12269 if test "x$enable_pthread" = "xforce"; then 12270 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 12271 12272 else 12273 12274 12275ac_ext=c 12276ac_cpp='$CPP $CPPFLAGS' 12277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12279ac_compiler_gnu=$ac_cv_c_compiler_gnu 12280 12281ax_pthread_ok=no 12282 12283# We used to check for pthread.h first, but this fails if pthread.h 12284# requires special compiler flags (e.g. on True64 or Sequent). 12285# It gets checked for in the link test anyway. 12286 12287# First of all, check if the user has set any of the PTHREAD_LIBS, 12288# etcetera environment variables, and if threads linking works using 12289# them: 12290if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 12291 save_CFLAGS="$CFLAGS" 12292 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 12293 save_LIBS="$LIBS" 12294 LIBS="$PTHREAD_LIBS $LIBS" 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 12296$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12298/* end confdefs.h. */ 12299 12300/* Override any GCC internal prototype to avoid an error. 12301 Use char because int might match the return type of a GCC 12302 builtin and then its argument prototype would still apply. */ 12303#ifdef __cplusplus 12304extern "C" 12305#endif 12306char pthread_join (); 12307int 12308main () 12309{ 12310return pthread_join (); 12311 ; 12312 return 0; 12313} 12314_ACEOF 12315if ac_fn_c_try_link "$LINENO"; then : 12316 ax_pthread_ok=yes 12317fi 12318rm -f core conftest.err conftest.$ac_objext \ 12319 conftest$ac_exeext conftest.$ac_ext 12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 12321$as_echo "$ax_pthread_ok" >&6; } 12322 if test x"$ax_pthread_ok" = xno; then 12323 PTHREAD_LIBS="" 12324 PTHREAD_CFLAGS="" 12325 fi 12326 LIBS="$save_LIBS" 12327 CFLAGS="$save_CFLAGS" 12328fi 12329 12330# We must check for the threads library under a number of different 12331# names; the ordering is very important because some systems 12332# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 12333# libraries is broken (non-POSIX). 12334 12335# Create a list of thread flags to try. Items starting with a "-" are 12336# C compiler flags, and other items are library names, except for "none" 12337# which indicates that we try without any flags at all, and "pthread-config" 12338# which is a program returning the flags for the Pth emulation library. 12339 12340ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 12341 12342# The ordering *is* (sometimes) important. Some notes on the 12343# individual items follow: 12344 12345# pthreads: AIX (must check this before -lpthread) 12346# none: in case threads are in libc; should be tried before -Kthread and 12347# other compiler flags to prevent continual compiler warnings 12348# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 12349# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 12350# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 12351# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 12352# -pthreads: Solaris/gcc 12353# -mthreads: Mingw32/gcc, Lynx/gcc 12354# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 12355# doesn't hurt to check since this sometimes defines pthreads too; 12356# also defines -D_REENTRANT) 12357# ... -mt is also the pthreads flag for HP/aCC 12358# pthread: Linux, etcetera 12359# --thread-safe: KAI C++ 12360# pthread-config: use pthread-config program (for GNU Pth library) 12361 12362case ${host_os} in 12363 solaris*) 12364 12365 # On Solaris (at least, for some versions), libc contains stubbed 12366 # (non-functional) versions of the pthreads routines, so link-based 12367 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 12368 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 12369 # a function called by this macro, so we could check for that, but 12370 # who knows whether they'll stub that too in a future libc.) So, 12371 # we'll just look for -pthreads and -lpthread first: 12372 12373 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 12374 ;; 12375 12376 darwin*) 12377 ax_pthread_flags="-pthread $ax_pthread_flags" 12378 ;; 12379esac 12380 12381# Clang doesn't consider unrecognized options an error unless we specify 12382# -Werror. We throw in some extra Clang-specific options to ensure that 12383# this doesn't happen for GCC, which also accepts -Werror. 12384 12385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 12386$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 12387save_CFLAGS="$CFLAGS" 12388ax_pthread_extra_flags="-Werror" 12389CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 12390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12391/* end confdefs.h. */ 12392int foo(void); 12393int 12394main () 12395{ 12396foo() 12397 ; 12398 return 0; 12399} 12400_ACEOF 12401if ac_fn_c_try_compile "$LINENO"; then : 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12403$as_echo "yes" >&6; } 12404else 12405 ax_pthread_extra_flags= 12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12407$as_echo "no" >&6; } 12408fi 12409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12410CFLAGS="$save_CFLAGS" 12411 12412if test x"$ax_pthread_ok" = xno; then 12413for flag in $ax_pthread_flags; do 12414 12415 case $flag in 12416 none) 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 12418$as_echo_n "checking whether pthreads work without any flags... " >&6; } 12419 ;; 12420 12421 -*) 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 12423$as_echo_n "checking whether pthreads work with $flag... " >&6; } 12424 PTHREAD_CFLAGS="$flag" 12425 ;; 12426 12427 pthread-config) 12428 # Extract the first word of "pthread-config", so it can be a program name with args. 12429set dummy pthread-config; ac_word=$2 12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12431$as_echo_n "checking for $ac_word... " >&6; } 12432if ${ac_cv_prog_ax_pthread_config+:} false; then : 12433 $as_echo_n "(cached) " >&6 12434else 12435 if test -n "$ax_pthread_config"; then 12436 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 12437else 12438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12439for as_dir in $PATH 12440do 12441 IFS=$as_save_IFS 12442 test -z "$as_dir" && as_dir=. 12443 for ac_exec_ext in '' $ac_executable_extensions; do 12444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12445 ac_cv_prog_ax_pthread_config="yes" 12446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12447 break 2 12448 fi 12449done 12450 done 12451IFS=$as_save_IFS 12452 12453 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 12454fi 12455fi 12456ax_pthread_config=$ac_cv_prog_ax_pthread_config 12457if test -n "$ax_pthread_config"; then 12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 12459$as_echo "$ax_pthread_config" >&6; } 12460else 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12462$as_echo "no" >&6; } 12463fi 12464 12465 12466 if test x"$ax_pthread_config" = xno; then continue; fi 12467 PTHREAD_CFLAGS="`pthread-config --cflags`" 12468 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 12469 ;; 12470 12471 *) 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 12473$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 12474 PTHREAD_LIBS="-l$flag" 12475 ;; 12476 esac 12477 12478 save_LIBS="$LIBS" 12479 save_CFLAGS="$CFLAGS" 12480 LIBS="$PTHREAD_LIBS $LIBS" 12481 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 12482 12483 # Check for various functions. We must include pthread.h, 12484 # since some functions may be macros. (On the Sequent, we 12485 # need a special flag -Kthread to make this header compile.) 12486 # We check for pthread_join because it is in -lpthread on IRIX 12487 # while pthread_create is in libc. We check for pthread_attr_init 12488 # due to DEC craziness with -lpthreads. We check for 12489 # pthread_cleanup_push because it is one of the few pthread 12490 # functions on Solaris that doesn't have a non-functional libc stub. 12491 # We try pthread_create on general principles. 12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12493/* end confdefs.h. */ 12494#include <pthread.h> 12495 static void routine(void *a) { a = 0; } 12496 static void *start_routine(void *a) { return a; } 12497int 12498main () 12499{ 12500pthread_t th; pthread_attr_t attr; 12501 pthread_create(&th, 0, start_routine, 0); 12502 pthread_join(th, 0); 12503 pthread_attr_init(&attr); 12504 pthread_cleanup_push(routine, 0); 12505 pthread_cleanup_pop(0) /* ; */ 12506 ; 12507 return 0; 12508} 12509_ACEOF 12510if ac_fn_c_try_link "$LINENO"; then : 12511 ax_pthread_ok=yes 12512fi 12513rm -f core conftest.err conftest.$ac_objext \ 12514 conftest$ac_exeext conftest.$ac_ext 12515 12516 LIBS="$save_LIBS" 12517 CFLAGS="$save_CFLAGS" 12518 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 12520$as_echo "$ax_pthread_ok" >&6; } 12521 if test "x$ax_pthread_ok" = xyes; then 12522 break; 12523 fi 12524 12525 PTHREAD_LIBS="" 12526 PTHREAD_CFLAGS="" 12527done 12528fi 12529 12530# Various other checks: 12531if test "x$ax_pthread_ok" = xyes; then 12532 save_LIBS="$LIBS" 12533 LIBS="$PTHREAD_LIBS $LIBS" 12534 save_CFLAGS="$CFLAGS" 12535 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 12536 12537 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 12539$as_echo_n "checking for joinable pthread attribute... " >&6; } 12540 attr_name=unknown 12541 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12543/* end confdefs.h. */ 12544#include <pthread.h> 12545int 12546main () 12547{ 12548int attr = $attr; return attr /* ; */ 12549 ; 12550 return 0; 12551} 12552_ACEOF 12553if ac_fn_c_try_link "$LINENO"; then : 12554 attr_name=$attr; break 12555fi 12556rm -f core conftest.err conftest.$ac_objext \ 12557 conftest$ac_exeext conftest.$ac_ext 12558 done 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 12560$as_echo "$attr_name" >&6; } 12561 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 12562 12563cat >>confdefs.h <<_ACEOF 12564#define PTHREAD_CREATE_JOINABLE $attr_name 12565_ACEOF 12566 12567 fi 12568 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 12570$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 12571 flag=no 12572 case ${host_os} in 12573 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 12574 osf* | hpux*) flag="-D_REENTRANT";; 12575 solaris*) 12576 if test "$GCC" = "yes"; then 12577 flag="-D_REENTRANT" 12578 else 12579 # TODO: What about Clang on Solaris? 12580 flag="-mt -D_REENTRANT" 12581 fi 12582 ;; 12583 esac 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 12585$as_echo "$flag" >&6; } 12586 if test "x$flag" != xno; then 12587 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 12588 fi 12589 12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 12591$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 12592if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 12593 $as_echo_n "(cached) " >&6 12594else 12595 12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12597/* end confdefs.h. */ 12598#include <pthread.h> 12599int 12600main () 12601{ 12602int i = PTHREAD_PRIO_INHERIT; 12603 ; 12604 return 0; 12605} 12606_ACEOF 12607if ac_fn_c_try_link "$LINENO"; then : 12608 ax_cv_PTHREAD_PRIO_INHERIT=yes 12609else 12610 ax_cv_PTHREAD_PRIO_INHERIT=no 12611fi 12612rm -f core conftest.err conftest.$ac_objext \ 12613 conftest$ac_exeext conftest.$ac_ext 12614 12615fi 12616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 12617$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 12618 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 12619 12620$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 12621 12622fi 12623 12624 LIBS="$save_LIBS" 12625 CFLAGS="$save_CFLAGS" 12626 12627 # More AIX lossage: compile with *_r variant 12628 if test "x$GCC" != xyes; then 12629 case $host_os in 12630 aix*) 12631 case "x/$CC" in #( 12632 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 12633 #handle absolute path differently from PATH based program lookup 12634 case "x$CC" in #( 12635 x/*) : 12636 if as_fn_executable_p ${CC}_r; then : 12637 PTHREAD_CC="${CC}_r" 12638fi ;; #( 12639 *) : 12640 for ac_prog in ${CC}_r 12641do 12642 # Extract the first word of "$ac_prog", so it can be a program name with args. 12643set dummy $ac_prog; ac_word=$2 12644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12645$as_echo_n "checking for $ac_word... " >&6; } 12646if ${ac_cv_prog_PTHREAD_CC+:} false; then : 12647 $as_echo_n "(cached) " >&6 12648else 12649 if test -n "$PTHREAD_CC"; then 12650 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 12651else 12652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12653for as_dir in $PATH 12654do 12655 IFS=$as_save_IFS 12656 test -z "$as_dir" && as_dir=. 12657 for ac_exec_ext in '' $ac_executable_extensions; do 12658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12659 ac_cv_prog_PTHREAD_CC="$ac_prog" 12660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12661 break 2 12662 fi 12663done 12664 done 12665IFS=$as_save_IFS 12666 12667fi 12668fi 12669PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 12670if test -n "$PTHREAD_CC"; then 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 12672$as_echo "$PTHREAD_CC" >&6; } 12673else 12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12675$as_echo "no" >&6; } 12676fi 12677 12678 12679 test -n "$PTHREAD_CC" && break 12680done 12681test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 12682 ;; 12683esac ;; #( 12684 *) : 12685 ;; 12686esac 12687 ;; 12688 esac 12689 fi 12690fi 12691 12692test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 12693 12694 12695 12696 12697 12698# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 12699if test x"$ax_pthread_ok" = xyes; then 12700 12701$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 12702 12703 : 12704else 12705 ax_pthread_ok=no 12706 as_fn_error $? "Could not configure pthreads support -use --enable-mt=no to disable or --enable-pthread=force to define HAVE_PTHREAD" "$LINENO" 5 12707fi 12708ac_ext=c 12709ac_cpp='$CPP $CPPFLAGS' 12710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12712ac_compiler_gnu=$ac_cv_c_compiler_gnu 12713 12714 12715 LIBS="$PTHREAD_LIBS $LIBS" 12716 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 12717 CC="$PTHREAD_CC" 12718 fi 12719else 12720 SIP_FSM_FLAGS="-DOSIP_MONOTHREAD" 12721fi 12722 12723 if test x$enable_mt = xyes; then 12724 BUILD_MT_TRUE= 12725 BUILD_MT_FALSE='#' 12726else 12727 BUILD_MT_TRUE='#' 12728 BUILD_MT_FALSE= 12729fi 12730 12731 12732if test "x$enable_gperf" = "xyes"; then 12733 SIP_PARSER_FLAGS="$SIP_PARSER_FLAGS -DUSE_GPERF" 12734fi 12735 12736 if test "x$enable_test" != "xno"; then 12737 COMPILE_TESTS_TRUE= 12738 COMPILE_TESTS_FALSE='#' 12739else 12740 COMPILE_TESTS_TRUE='#' 12741 COMPILE_TESTS_FALSE= 12742fi 12743 12744 12745if test "x$enable_semaphore" = "xsemaphore"; then 12746 $as_echo "#define HAVE_SEMAPHORE_H 1" >>confdefs.h 12747 12748elif test "x$enable_semaphore" = "xsysv"; then 12749 $as_echo "#define HAVE_SYS_SEM_H 1" >>confdefs.h 12750 12751else 12752 for ac_header in semaphore.h 12753do : 12754 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 12755if test "x$ac_cv_header_semaphore_h" = xyes; then : 12756 cat >>confdefs.h <<_ACEOF 12757#define HAVE_SEMAPHORE_H 1 12758_ACEOF 12759 12760fi 12761 12762done 12763 12764 for ac_header in sys/sem.h 12765do : 12766 ac_fn_c_check_header_mongrel "$LINENO" "sys/sem.h" "ac_cv_header_sys_sem_h" "$ac_includes_default" 12767if test "x$ac_cv_header_sys_sem_h" = xyes; then : 12768 cat >>confdefs.h <<_ACEOF 12769#define HAVE_SYS_SEM_H 1 12770_ACEOF 12771 12772fi 12773 12774done 12775 12776fi 12777 12778if test "x$host_cpu" = "x$build_cpu"; then 12779 case $OS in 12780 linux*) 12781 SIP_EXTRA_FLAGS="$SIP_EXTRA_FLAGS" 12782 ;; 12783 irix*) 12784 ;; 12785 hpux* | hp-ux*) 12786 ;; 12787 aix*) 12788 ;; 12789 osf*) 12790 ;; 12791 sunos*) 12792 ;; 12793 darwin*) 12794 ;; 12795 *) 12796 ;; 12797 esac 12798else 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: Cross compiling osip." >&5 12800$as_echo "$as_me: Cross compiling osip." >&6;} 12801fi 12802 12803case $host_cpu in 12804 arc*) 12805 ;; 12806 *) 12807 ;; 12808esac 12809 12810if test "x$enable_hashtable" = "xyes"; then 12811 for ac_header in dict/dict.h 12812do : 12813 ac_fn_c_check_header_mongrel "$LINENO" "dict/dict.h" "ac_cv_header_dict_dict_h" "$ac_includes_default" 12814if test "x$ac_cv_header_dict_dict_h" = xyes; then : 12815 cat >>confdefs.h <<_ACEOF 12816#define HAVE_DICT_DICT_H 1 12817_ACEOF 12818 12819$as_echo "#define HAVE_DICT_DICT_H /**/" >>confdefs.h 12820 12821else 12822 as_fn_error $? "libdict library not installed. Please install or use --disable-hashtable" "$LINENO" 5 12823fi 12824 12825done 12826 12827 EXTRA_LIB="$EXTRA_LIB -ldict" 12828fi 12829 12830if test "x$enable_trace" = "xyes"; then 12831 SIP_EXTRA_FLAGS="$SIP_EXTRA_FLAGS -DENABLE_TRACE" 12832fi 12833 12834if test "x$enable_mpatrol" = "xyes"; then 12835 SIP_EXTRA_FLAGS="$SIP_EXTRA_FLAGS -DENABLE_MPATROL" 12836 EXTRA_LIB="$EXTRA_LIB -lmpatrolmt -lelf -lpthread" 12837fi 12838 12839if test "x$enable_gprof" = "xyes"; then 12840 SIP_EXTRA_FLAGS="$SIP_EXTRA_FLAGS -pg" 12841 EXTRA_LIB="$EXTRA_LIB -lc_p" 12842fi 12843 12844if test "x$enable_minisize" = "xyes"; then 12845 SIP_EXTRA_FLAGS="$SIP_EXTRA_FLAGS -DMINISIZE" 12846fi 12847 if test x$enable_minisize = xno; then 12848 BUILD_MAXSIZE_TRUE= 12849 BUILD_MAXSIZE_FALSE='#' 12850else 12851 BUILD_MAXSIZE_TRUE='#' 12852 BUILD_MAXSIZE_FALSE= 12853fi 12854 12855 12856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_open in -lposix4" >&5 12857$as_echo_n "checking for sem_open in -lposix4... " >&6; } 12858if ${ac_cv_lib_posix4_sem_open+:} false; then : 12859 $as_echo_n "(cached) " >&6 12860else 12861 ac_check_lib_save_LIBS=$LIBS 12862LIBS="-lposix4 $LIBS" 12863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12864/* end confdefs.h. */ 12865 12866/* Override any GCC internal prototype to avoid an error. 12867 Use char because int might match the return type of a GCC 12868 builtin and then its argument prototype would still apply. */ 12869#ifdef __cplusplus 12870extern "C" 12871#endif 12872char sem_open (); 12873int 12874main () 12875{ 12876return sem_open (); 12877 ; 12878 return 0; 12879} 12880_ACEOF 12881if ac_fn_c_try_link "$LINENO"; then : 12882 ac_cv_lib_posix4_sem_open=yes 12883else 12884 ac_cv_lib_posix4_sem_open=no 12885fi 12886rm -f core conftest.err conftest.$ac_objext \ 12887 conftest$ac_exeext conftest.$ac_ext 12888LIBS=$ac_check_lib_save_LIBS 12889fi 12890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_open" >&5 12891$as_echo "$ac_cv_lib_posix4_sem_open" >&6; } 12892if test "x$ac_cv_lib_posix4_sem_open" = xyes; then : 12893 FSM_LIB="$FSM_LIB -lposix4 -mt" 12894fi 12895 12896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nis_add in -lnsl" >&5 12897$as_echo_n "checking for nis_add in -lnsl... " >&6; } 12898if ${ac_cv_lib_nsl_nis_add+:} false; then : 12899 $as_echo_n "(cached) " >&6 12900else 12901 ac_check_lib_save_LIBS=$LIBS 12902LIBS="-lnsl $LIBS" 12903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12904/* end confdefs.h. */ 12905 12906/* Override any GCC internal prototype to avoid an error. 12907 Use char because int might match the return type of a GCC 12908 builtin and then its argument prototype would still apply. */ 12909#ifdef __cplusplus 12910extern "C" 12911#endif 12912char nis_add (); 12913int 12914main () 12915{ 12916return nis_add (); 12917 ; 12918 return 0; 12919} 12920_ACEOF 12921if ac_fn_c_try_link "$LINENO"; then : 12922 ac_cv_lib_nsl_nis_add=yes 12923else 12924 ac_cv_lib_nsl_nis_add=no 12925fi 12926rm -f core conftest.err conftest.$ac_objext \ 12927 conftest$ac_exeext conftest.$ac_ext 12928LIBS=$ac_check_lib_save_LIBS 12929fi 12930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_nis_add" >&5 12931$as_echo "$ac_cv_lib_nsl_nis_add" >&6; } 12932if test "x$ac_cv_lib_nsl_nis_add" = xyes; then : 12933 FSM_LIB="$FSM_LIB -lnsl" 12934fi 12935 12936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendto in -lsocket" >&5 12937$as_echo_n "checking for sendto in -lsocket... " >&6; } 12938if ${ac_cv_lib_socket_sendto+:} false; then : 12939 $as_echo_n "(cached) " >&6 12940else 12941 ac_check_lib_save_LIBS=$LIBS 12942LIBS="-lsocket $LIBS" 12943cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12944/* end confdefs.h. */ 12945 12946/* Override any GCC internal prototype to avoid an error. 12947 Use char because int might match the return type of a GCC 12948 builtin and then its argument prototype would still apply. */ 12949#ifdef __cplusplus 12950extern "C" 12951#endif 12952char sendto (); 12953int 12954main () 12955{ 12956return sendto (); 12957 ; 12958 return 0; 12959} 12960_ACEOF 12961if ac_fn_c_try_link "$LINENO"; then : 12962 ac_cv_lib_socket_sendto=yes 12963else 12964 ac_cv_lib_socket_sendto=no 12965fi 12966rm -f core conftest.err conftest.$ac_objext \ 12967 conftest$ac_exeext conftest.$ac_ext 12968LIBS=$ac_check_lib_save_LIBS 12969fi 12970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_sendto" >&5 12971$as_echo "$ac_cv_lib_socket_sendto" >&6; } 12972if test "x$ac_cv_lib_socket_sendto" = xyes; then : 12973 FSM_LIB="$FSM_LIB -lsocket" 12974fi 12975 12976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrand48 in -lc" >&5 12977$as_echo_n "checking for lrand48 in -lc... " >&6; } 12978if ${ac_cv_lib_c_lrand48+:} false; then : 12979 $as_echo_n "(cached) " >&6 12980else 12981 ac_check_lib_save_LIBS=$LIBS 12982LIBS="-lc $LIBS" 12983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12984/* end confdefs.h. */ 12985 12986/* Override any GCC internal prototype to avoid an error. 12987 Use char because int might match the return type of a GCC 12988 builtin and then its argument prototype would still apply. */ 12989#ifdef __cplusplus 12990extern "C" 12991#endif 12992char lrand48 (); 12993int 12994main () 12995{ 12996return lrand48 (); 12997 ; 12998 return 0; 12999} 13000_ACEOF 13001if ac_fn_c_try_link "$LINENO"; then : 13002 ac_cv_lib_c_lrand48=yes 13003else 13004 ac_cv_lib_c_lrand48=no 13005fi 13006rm -f core conftest.err conftest.$ac_objext \ 13007 conftest$ac_exeext conftest.$ac_ext 13008LIBS=$ac_check_lib_save_LIBS 13009fi 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_lrand48" >&5 13011$as_echo "$ac_cv_lib_c_lrand48" >&6; } 13012if test "x$ac_cv_lib_c_lrand48" = xyes; then : 13013 13014$as_echo "#define HAVE_LRAND48 /**/" >>confdefs.h 13015 13016fi 13017 13018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 13019$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 13020if ${ac_cv_lib_rt_clock_gettime+:} false; then : 13021 $as_echo_n "(cached) " >&6 13022else 13023 ac_check_lib_save_LIBS=$LIBS 13024LIBS="-lrt $LIBS" 13025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13026/* end confdefs.h. */ 13027 13028/* Override any GCC internal prototype to avoid an error. 13029 Use char because int might match the return type of a GCC 13030 builtin and then its argument prototype would still apply. */ 13031#ifdef __cplusplus 13032extern "C" 13033#endif 13034char clock_gettime (); 13035int 13036main () 13037{ 13038return clock_gettime (); 13039 ; 13040 return 0; 13041} 13042_ACEOF 13043if ac_fn_c_try_link "$LINENO"; then : 13044 ac_cv_lib_rt_clock_gettime=yes 13045else 13046 ac_cv_lib_rt_clock_gettime=no 13047fi 13048rm -f core conftest.err conftest.$ac_objext \ 13049 conftest$ac_exeext conftest.$ac_ext 13050LIBS=$ac_check_lib_save_LIBS 13051fi 13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 13053$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 13054if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 13055 FSM_LIB="$FSM_LIB -lrt" 13056fi 13057 13058 13059for ac_func in localtime 13060do : 13061 ac_fn_c_check_func "$LINENO" "localtime" "ac_cv_func_localtime" 13062if test "x$ac_cv_func_localtime" = xyes; then : 13063 cat >>confdefs.h <<_ACEOF 13064#define HAVE_LOCALTIME 1 13065_ACEOF 13066 13067fi 13068done 13069 13070 13071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wall works" >&5 13072$as_echo_n "checking whether -Wall works... " >&6; } 13073if ${Wall_cv_flag+:} false; then : 13074 $as_echo_n "(cached) " >&6 13075else 13076 13077 saved_CPPFLAGS=$CPPFLAGS 13078 CPPFLAGS="-Wall" 13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13080/* end confdefs.h. */ 13081 13082int 13083main () 13084{ 13085 13086 ; 13087 return 0; 13088} 13089_ACEOF 13090if ac_fn_c_try_compile "$LINENO"; then : 13091 Wall_cv_flag=yes 13092else 13093 Wall_cv_flag=no 13094fi 13095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13096 CPPFLAGS=$saved_CPPFLAGS 13097 13098fi 13099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wall_cv_flag" >&5 13100$as_echo "$Wall_cv_flag" >&6; } 13101 13102if test "x$Wall_cv_flag" = xyes; then 13103 CPPFLAGS="$CPPFLAGS -Wall" 13104fi 13105 13106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wcast-align works" >&5 13107$as_echo_n "checking whether -Wcast-align works... " >&6; } 13108if ${Wcast_align_cv_flag+:} false; then : 13109 $as_echo_n "(cached) " >&6 13110else 13111 13112 saved_CPPFLAGS=$CPPFLAGS 13113 CPPFLAGS="-Wcast-align" 13114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13115/* end confdefs.h. */ 13116 13117int 13118main () 13119{ 13120 13121 ; 13122 return 0; 13123} 13124_ACEOF 13125if ac_fn_c_try_compile "$LINENO"; then : 13126 Wcast_align_cv_flag=yes 13127else 13128 Wcast_align_cv_flag=no 13129fi 13130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13131 CPPFLAGS=$saved_CPPFLAGS 13132 13133fi 13134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wcast_align_cv_flag" >&5 13135$as_echo "$Wcast_align_cv_flag" >&6; } 13136 13137if test "x$Wcast_align_cv_flag" = xyes; then 13138 CPPFLAGS="$CPPFLAGS -Wcast-align" 13139fi 13140 13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wchar-subscripts works" >&5 13142$as_echo_n "checking whether -Wchar-subscripts works... " >&6; } 13143if ${Wchar_subscripts_cv_flag+:} false; then : 13144 $as_echo_n "(cached) " >&6 13145else 13146 13147 saved_CPPFLAGS=$CPPFLAGS 13148 CPPFLAGS="-Wchar-subscripts" 13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13150/* end confdefs.h. */ 13151 13152int 13153main () 13154{ 13155 13156 ; 13157 return 0; 13158} 13159_ACEOF 13160if ac_fn_c_try_compile "$LINENO"; then : 13161 Wchar_subscripts_cv_flag=yes 13162else 13163 Wchar_subscripts_cv_flag=no 13164fi 13165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13166 CPPFLAGS=$saved_CPPFLAGS 13167 13168fi 13169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wchar_subscripts_cv_flag" >&5 13170$as_echo "$Wchar_subscripts_cv_flag" >&6; } 13171 13172if test "x$Wchar_subscripts_cv_flag" = xyes; then 13173 CPPFLAGS="$CPPFLAGS -Wchar-subscripts" 13174fi 13175 13176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wformat works" >&5 13177$as_echo_n "checking whether -Wformat works... " >&6; } 13178if ${Wformat_cv_flag+:} false; then : 13179 $as_echo_n "(cached) " >&6 13180else 13181 13182 saved_CPPFLAGS=$CPPFLAGS 13183 CPPFLAGS="-Wformat" 13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13185/* end confdefs.h. */ 13186 13187int 13188main () 13189{ 13190 13191 ; 13192 return 0; 13193} 13194_ACEOF 13195if ac_fn_c_try_compile "$LINENO"; then : 13196 Wformat_cv_flag=yes 13197else 13198 Wformat_cv_flag=no 13199fi 13200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13201 CPPFLAGS=$saved_CPPFLAGS 13202 13203fi 13204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wformat_cv_flag" >&5 13205$as_echo "$Wformat_cv_flag" >&6; } 13206 13207if test "x$Wformat_cv_flag" = xyes; then 13208 CPPFLAGS="$CPPFLAGS -Wformat" 13209fi 13210 13211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Winline works" >&5 13212$as_echo_n "checking whether -Winline works... " >&6; } 13213if ${Winline_cv_flag+:} false; then : 13214 $as_echo_n "(cached) " >&6 13215else 13216 13217 saved_CPPFLAGS=$CPPFLAGS 13218 CPPFLAGS="-Winline" 13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13220/* end confdefs.h. */ 13221 13222int 13223main () 13224{ 13225 13226 ; 13227 return 0; 13228} 13229_ACEOF 13230if ac_fn_c_try_compile "$LINENO"; then : 13231 Winline_cv_flag=yes 13232else 13233 Winline_cv_flag=no 13234fi 13235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13236 CPPFLAGS=$saved_CPPFLAGS 13237 13238fi 13239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $Winline_cv_flag" >&5 13240$as_echo "$Winline_cv_flag" >&6; } 13241 13242if test "x$Winline_cv_flag" = xyes; then 13243 CPPFLAGS="$CPPFLAGS -Winline" 13244fi 13245 13246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-declarations works" >&5 13247$as_echo_n "checking whether -Wmissing-declarations works... " >&6; } 13248if ${Wmissing_declarations_cv_flag+:} false; then : 13249 $as_echo_n "(cached) " >&6 13250else 13251 13252 saved_CPPFLAGS=$CPPFLAGS 13253 CPPFLAGS="-Wmissing-declarations" 13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13255/* end confdefs.h. */ 13256 13257int 13258main () 13259{ 13260 13261 ; 13262 return 0; 13263} 13264_ACEOF 13265if ac_fn_c_try_compile "$LINENO"; then : 13266 Wmissing_declarations_cv_flag=yes 13267else 13268 Wmissing_declarations_cv_flag=no 13269fi 13270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13271 CPPFLAGS=$saved_CPPFLAGS 13272 13273fi 13274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wmissing_declarations_cv_flag" >&5 13275$as_echo "$Wmissing_declarations_cv_flag" >&6; } 13276 13277if test "x$Wmissing_declarations_cv_flag" = xyes; then 13278 CPPFLAGS="$CPPFLAGS -Wmissing-declarations" 13279fi 13280 13281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wmissing-prototypes works" >&5 13282$as_echo_n "checking whether -Wmissing-prototypes works... " >&6; } 13283if ${Wmissing_prototypes_cv_flag+:} false; then : 13284 $as_echo_n "(cached) " >&6 13285else 13286 13287 saved_CPPFLAGS=$CPPFLAGS 13288 CPPFLAGS="-Wmissing-prototypes" 13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13290/* end confdefs.h. */ 13291 13292int 13293main () 13294{ 13295 13296 ; 13297 return 0; 13298} 13299_ACEOF 13300if ac_fn_c_try_compile "$LINENO"; then : 13301 Wmissing_prototypes_cv_flag=yes 13302else 13303 Wmissing_prototypes_cv_flag=no 13304fi 13305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13306 CPPFLAGS=$saved_CPPFLAGS 13307 13308fi 13309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wmissing_prototypes_cv_flag" >&5 13310$as_echo "$Wmissing_prototypes_cv_flag" >&6; } 13311 13312if test "x$Wmissing_prototypes_cv_flag" = xyes; then 13313 CPPFLAGS="$CPPFLAGS -Wmissing-prototypes" 13314fi 13315 13316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wnested-externs works" >&5 13317$as_echo_n "checking whether -Wnested-externs works... " >&6; } 13318if ${Wnested_externs_cv_flag+:} false; then : 13319 $as_echo_n "(cached) " >&6 13320else 13321 13322 saved_CPPFLAGS=$CPPFLAGS 13323 CPPFLAGS="-Wnested-externs" 13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13325/* end confdefs.h. */ 13326 13327int 13328main () 13329{ 13330 13331 ; 13332 return 0; 13333} 13334_ACEOF 13335if ac_fn_c_try_compile "$LINENO"; then : 13336 Wnested_externs_cv_flag=yes 13337else 13338 Wnested_externs_cv_flag=no 13339fi 13340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13341 CPPFLAGS=$saved_CPPFLAGS 13342 13343fi 13344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wnested_externs_cv_flag" >&5 13345$as_echo "$Wnested_externs_cv_flag" >&6; } 13346 13347if test "x$Wnested_externs_cv_flag" = xyes; then 13348 CPPFLAGS="$CPPFLAGS -Wnested-externs" 13349fi 13350 13351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wpointer-arith works" >&5 13352$as_echo_n "checking whether -Wpointer-arith works... " >&6; } 13353if ${Wpointer_arith_cv_flag+:} false; then : 13354 $as_echo_n "(cached) " >&6 13355else 13356 13357 saved_CPPFLAGS=$CPPFLAGS 13358 CPPFLAGS="-Wpointer-arith" 13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13360/* end confdefs.h. */ 13361 13362int 13363main () 13364{ 13365 13366 ; 13367 return 0; 13368} 13369_ACEOF 13370if ac_fn_c_try_compile "$LINENO"; then : 13371 Wpointer_arith_cv_flag=yes 13372else 13373 Wpointer_arith_cv_flag=no 13374fi 13375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13376 CPPFLAGS=$saved_CPPFLAGS 13377 13378fi 13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $Wpointer_arith_cv_flag" >&5 13380$as_echo "$Wpointer_arith_cv_flag" >&6; } 13381 13382if test "x$Wpointer_arith_cv_flag" = xyes; then 13383 CPPFLAGS="$CPPFLAGS -Wpointer-arith" 13384fi 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13399$as_echo_n "checking for ANSI C header files... " >&6; } 13400if ${ac_cv_header_stdc+:} false; then : 13401 $as_echo_n "(cached) " >&6 13402else 13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13404/* end confdefs.h. */ 13405#include <stdlib.h> 13406#include <stdarg.h> 13407#include <string.h> 13408#include <float.h> 13409 13410int 13411main () 13412{ 13413 13414 ; 13415 return 0; 13416} 13417_ACEOF 13418if ac_fn_c_try_compile "$LINENO"; then : 13419 ac_cv_header_stdc=yes 13420else 13421 ac_cv_header_stdc=no 13422fi 13423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13424 13425if test $ac_cv_header_stdc = yes; then 13426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13428/* end confdefs.h. */ 13429#include <string.h> 13430 13431_ACEOF 13432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13433 $EGREP "memchr" >/dev/null 2>&1; then : 13434 13435else 13436 ac_cv_header_stdc=no 13437fi 13438rm -f conftest* 13439 13440fi 13441 13442if test $ac_cv_header_stdc = yes; then 13443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13445/* end confdefs.h. */ 13446#include <stdlib.h> 13447 13448_ACEOF 13449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13450 $EGREP "free" >/dev/null 2>&1; then : 13451 13452else 13453 ac_cv_header_stdc=no 13454fi 13455rm -f conftest* 13456 13457fi 13458 13459if test $ac_cv_header_stdc = yes; then 13460 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13461 if test "$cross_compiling" = yes; then : 13462 : 13463else 13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13465/* end confdefs.h. */ 13466#include <ctype.h> 13467#include <stdlib.h> 13468#if ((' ' & 0x0FF) == 0x020) 13469# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13470# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13471#else 13472# define ISLOWER(c) \ 13473 (('a' <= (c) && (c) <= 'i') \ 13474 || ('j' <= (c) && (c) <= 'r') \ 13475 || ('s' <= (c) && (c) <= 'z')) 13476# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13477#endif 13478 13479#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13480int 13481main () 13482{ 13483 int i; 13484 for (i = 0; i < 256; i++) 13485 if (XOR (islower (i), ISLOWER (i)) 13486 || toupper (i) != TOUPPER (i)) 13487 return 2; 13488 return 0; 13489} 13490_ACEOF 13491if ac_fn_c_try_run "$LINENO"; then : 13492 13493else 13494 ac_cv_header_stdc=no 13495fi 13496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13497 conftest.$ac_objext conftest.beam conftest.$ac_ext 13498fi 13499 13500fi 13501fi 13502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13503$as_echo "$ac_cv_header_stdc" >&6; } 13504if test $ac_cv_header_stdc = yes; then 13505 13506$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13507 13508fi 13509 13510for ac_header in string.h 13511do : 13512 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 13513if test "x$ac_cv_header_string_h" = xyes; then : 13514 cat >>confdefs.h <<_ACEOF 13515#define HAVE_STRING_H 1 13516_ACEOF 13517 13518fi 13519 13520done 13521 13522for ac_header in strings.h 13523do : 13524 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 13525if test "x$ac_cv_header_strings_h" = xyes; then : 13526 cat >>confdefs.h <<_ACEOF 13527#define HAVE_STRINGS_H 1 13528_ACEOF 13529 13530fi 13531 13532done 13533 13534for ac_header in stdlib.h 13535do : 13536 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 13537if test "x$ac_cv_header_stdlib_h" = xyes; then : 13538 cat >>confdefs.h <<_ACEOF 13539#define HAVE_STDLIB_H 1 13540_ACEOF 13541 13542fi 13543 13544done 13545 13546for ac_header in unistd.h 13547do : 13548 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 13549if test "x$ac_cv_header_unistd_h" = xyes; then : 13550 cat >>confdefs.h <<_ACEOF 13551#define HAVE_UNISTD_H 1 13552_ACEOF 13553 13554fi 13555 13556done 13557 13558for ac_header in sys/types.h 13559do : 13560 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 13561if test "x$ac_cv_header_sys_types_h" = xyes; then : 13562 cat >>confdefs.h <<_ACEOF 13563#define HAVE_SYS_TYPES_H 1 13564_ACEOF 13565 13566fi 13567 13568done 13569 13570 13571for ac_header in sys/unistd.h 13572do : 13573 ac_fn_c_check_header_mongrel "$LINENO" "sys/unistd.h" "ac_cv_header_sys_unistd_h" "$ac_includes_default" 13574if test "x$ac_cv_header_sys_unistd_h" = xyes; then : 13575 cat >>confdefs.h <<_ACEOF 13576#define HAVE_SYS_UNISTD_H 1 13577_ACEOF 13578 13579fi 13580 13581done 13582 13583for ac_header in syslog.h 13584do : 13585 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" 13586if test "x$ac_cv_header_syslog_h" = xyes; then : 13587 cat >>confdefs.h <<_ACEOF 13588#define HAVE_SYSLOG_H 1 13589_ACEOF 13590 13591fi 13592 13593done 13594 13595for ac_header in ctype.h 13596do : 13597 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" 13598if test "x$ac_cv_header_ctype_h" = xyes; then : 13599 cat >>confdefs.h <<_ACEOF 13600#define HAVE_CTYPE_H 1 13601_ACEOF 13602 13603fi 13604 13605done 13606 13607for ac_header in stdio.h 13608do : 13609 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 13610if test "x$ac_cv_header_stdio_h" = xyes; then : 13611 cat >>confdefs.h <<_ACEOF 13612#define HAVE_STDIO_H 1 13613_ACEOF 13614 13615fi 13616 13617done 13618 13619for ac_header in stdarg.h 13620do : 13621 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 13622if test "x$ac_cv_header_stdarg_h" = xyes; then : 13623 cat >>confdefs.h <<_ACEOF 13624#define HAVE_STDARG_H 1 13625_ACEOF 13626 13627fi 13628 13629done 13630 13631for ac_header in varargs.h 13632do : 13633 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default" 13634if test "x$ac_cv_header_varargs_h" = xyes; then : 13635 cat >>confdefs.h <<_ACEOF 13636#define HAVE_VARARGS_H 1 13637_ACEOF 13638 13639fi 13640 13641done 13642 13643for ac_header in fcntl.h 13644do : 13645 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 13646if test "x$ac_cv_header_fcntl_h" = xyes; then : 13647 cat >>confdefs.h <<_ACEOF 13648#define HAVE_FCNTL_H 1 13649_ACEOF 13650 13651fi 13652 13653done 13654 13655for ac_header in time.h 13656do : 13657 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 13658if test "x$ac_cv_header_time_h" = xyes; then : 13659 cat >>confdefs.h <<_ACEOF 13660#define HAVE_TIME_H 1 13661_ACEOF 13662 13663fi 13664 13665done 13666 13667for ac_header in sys/time.h 13668do : 13669 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 13670if test "x$ac_cv_header_sys_time_h" = xyes; then : 13671 cat >>confdefs.h <<_ACEOF 13672#define HAVE_SYS_TIME_H 1 13673_ACEOF 13674 13675fi 13676 13677done 13678 13679for ac_header in sys/select.h 13680do : 13681 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 13682if test "x$ac_cv_header_sys_select_h" = xyes; then : 13683 cat >>confdefs.h <<_ACEOF 13684#define HAVE_SYS_SELECT_H 1 13685_ACEOF 13686 13687fi 13688 13689done 13690 13691for ac_header in assert.h 13692do : 13693 ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" 13694if test "x$ac_cv_header_assert_h" = xyes; then : 13695 cat >>confdefs.h <<_ACEOF 13696#define HAVE_ASSERT_H 1 13697_ACEOF 13698 13699fi 13700 13701done 13702 13703for ac_header in signal.h 13704do : 13705 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 13706if test "x$ac_cv_header_signal_h" = xyes; then : 13707 cat >>confdefs.h <<_ACEOF 13708#define HAVE_SIGNAL_H 1 13709_ACEOF 13710 13711fi 13712 13713done 13714 13715for ac_header in sys/signal.h 13716do : 13717 ac_fn_c_check_header_mongrel "$LINENO" "sys/signal.h" "ac_cv_header_sys_signal_h" "$ac_includes_default" 13718if test "x$ac_cv_header_sys_signal_h" = xyes; then : 13719 cat >>confdefs.h <<_ACEOF 13720#define HAVE_SYS_SIGNAL_H 1 13721_ACEOF 13722 13723fi 13724 13725done 13726 13727for ac_header in malloc.h 13728do : 13729 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 13730if test "x$ac_cv_header_malloc_h" = xyes; then : 13731 cat >>confdefs.h <<_ACEOF 13732#define HAVE_MALLOC_H 1 13733_ACEOF 13734 13735fi 13736 13737done 13738 13739 13740ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" " 13741 #if TIME_WITH_SYS_TIME 13742 # include <sys/time.h> 13743 # include <time.h> 13744 #else 13745 # if HAVE_SYS_TIME_H 13746 # include <sys/time.h> 13747 # else 13748 # include <time.h> 13749 # endif 13750 #endif 13751 13752" 13753if test "x$ac_cv_type_struct_timeval" = xyes; then : 13754 13755cat >>confdefs.h <<_ACEOF 13756#define HAVE_STRUCT_TIMEVAL 1 13757_ACEOF 13758 13759 13760fi 13761 13762 13763ac_config_files="$ac_config_files libosip2.pc Makefile scripts/Makefile src/Makefile src/osipparser2/Makefile src/osip2/Makefile src/test/Makefile include/Makefile include/osip2/Makefile include/osipparser2/Makefile include/osipparser2/headers/Makefile help/Makefile help/man/Makefile help/doxygen/Makefile platform/Makefile platform/rpm/Makefile platform/vsnet/Makefile include/osip2/doxygen.dox" 13764 13765cat >confcache <<\_ACEOF 13766# This file is a shell script that caches the results of configure 13767# tests run on this system so they can be shared between configure 13768# scripts and configure runs, see configure's option --config-cache. 13769# It is not useful on other systems. If it contains results you don't 13770# want to keep, you may remove or edit it. 13771# 13772# config.status only pays attention to the cache file if you give it 13773# the --recheck option to rerun configure. 13774# 13775# `ac_cv_env_foo' variables (set or unset) will be overridden when 13776# loading this file, other *unset* `ac_cv_foo' will be assigned the 13777# following values. 13778 13779_ACEOF 13780 13781# The following way of writing the cache mishandles newlines in values, 13782# but we know of no workaround that is simple, portable, and efficient. 13783# So, we kill variables containing newlines. 13784# Ultrix sh set writes to stderr and can't be redirected directly, 13785# and sets the high bit in the cache file unless we assign to the vars. 13786( 13787 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13788 eval ac_val=\$$ac_var 13789 case $ac_val in #( 13790 *${as_nl}*) 13791 case $ac_var in #( 13792 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13793$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13794 esac 13795 case $ac_var in #( 13796 _ | IFS | as_nl) ;; #( 13797 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13798 *) { eval $ac_var=; unset $ac_var;} ;; 13799 esac ;; 13800 esac 13801 done 13802 13803 (set) 2>&1 | 13804 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13805 *${as_nl}ac_space=\ *) 13806 # `set' does not quote correctly, so add quotes: double-quote 13807 # substitution turns \\\\ into \\, and sed turns \\ into \. 13808 sed -n \ 13809 "s/'/'\\\\''/g; 13810 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13811 ;; #( 13812 *) 13813 # `set' quotes correctly as required by POSIX, so do not add quotes. 13814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13815 ;; 13816 esac | 13817 sort 13818) | 13819 sed ' 13820 /^ac_cv_env_/b end 13821 t clear 13822 :clear 13823 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13824 t end 13825 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13826 :end' >>confcache 13827if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13828 if test -w "$cache_file"; then 13829 if test "x$cache_file" != "x/dev/null"; then 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13831$as_echo "$as_me: updating cache $cache_file" >&6;} 13832 if test ! -f "$cache_file" || test -h "$cache_file"; then 13833 cat confcache >"$cache_file" 13834 else 13835 case $cache_file in #( 13836 */* | ?:*) 13837 mv -f confcache "$cache_file"$$ && 13838 mv -f "$cache_file"$$ "$cache_file" ;; #( 13839 *) 13840 mv -f confcache "$cache_file" ;; 13841 esac 13842 fi 13843 fi 13844 else 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13846$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13847 fi 13848fi 13849rm -f confcache 13850 13851test "x$prefix" = xNONE && prefix=$ac_default_prefix 13852# Let make expand exec_prefix. 13853test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13854 13855DEFS=-DHAVE_CONFIG_H 13856 13857ac_libobjs= 13858ac_ltlibobjs= 13859U= 13860for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13861 # 1. Remove the extension, and $U if already installed. 13862 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13863 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13864 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13865 # will be set to the directory where LIBOBJS objects are built. 13866 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13867 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13868done 13869LIBOBJS=$ac_libobjs 13870 13871LTLIBOBJS=$ac_ltlibobjs 13872 13873 13874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13875$as_echo_n "checking that generated files are newer than configure... " >&6; } 13876 if test -n "$am_sleep_pid"; then 13877 # Hide warnings about reused PIDs. 13878 wait $am_sleep_pid 2>/dev/null 13879 fi 13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13881$as_echo "done" >&6; } 13882 if test -n "$EXEEXT"; then 13883 am__EXEEXT_TRUE= 13884 am__EXEEXT_FALSE='#' 13885else 13886 am__EXEEXT_TRUE='#' 13887 am__EXEEXT_FALSE= 13888fi 13889 13890if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13891 as_fn_error $? "conditional \"AMDEP\" was never defined. 13892Usually this means the macro was only invoked conditionally." "$LINENO" 5 13893fi 13894if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13895 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13896Usually this means the macro was only invoked conditionally." "$LINENO" 5 13897fi 13898if test -z "${BUILD_MT_TRUE}" && test -z "${BUILD_MT_FALSE}"; then 13899 as_fn_error $? "conditional \"BUILD_MT\" was never defined. 13900Usually this means the macro was only invoked conditionally." "$LINENO" 5 13901fi 13902if test -z "${COMPILE_TESTS_TRUE}" && test -z "${COMPILE_TESTS_FALSE}"; then 13903 as_fn_error $? "conditional \"COMPILE_TESTS\" was never defined. 13904Usually this means the macro was only invoked conditionally." "$LINENO" 5 13905fi 13906if test -z "${BUILD_MAXSIZE_TRUE}" && test -z "${BUILD_MAXSIZE_FALSE}"; then 13907 as_fn_error $? "conditional \"BUILD_MAXSIZE\" was never defined. 13908Usually this means the macro was only invoked conditionally." "$LINENO" 5 13909fi 13910 13911: "${CONFIG_STATUS=./config.status}" 13912ac_write_fail=0 13913ac_clean_files_save=$ac_clean_files 13914ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13915{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13916$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13917as_write_fail=0 13918cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13919#! $SHELL 13920# Generated by $as_me. 13921# Run this file to recreate the current configuration. 13922# Compiler output produced by configure, useful for debugging 13923# configure, is in config.log if it exists. 13924 13925debug=false 13926ac_cs_recheck=false 13927ac_cs_silent=false 13928 13929SHELL=\${CONFIG_SHELL-$SHELL} 13930export SHELL 13931_ASEOF 13932cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13933## -------------------- ## 13934## M4sh Initialization. ## 13935## -------------------- ## 13936 13937# Be more Bourne compatible 13938DUALCASE=1; export DUALCASE # for MKS sh 13939if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13940 emulate sh 13941 NULLCMD=: 13942 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13943 # is contrary to our usage. Disable this feature. 13944 alias -g '${1+"$@"}'='"$@"' 13945 setopt NO_GLOB_SUBST 13946else 13947 case `(set -o) 2>/dev/null` in #( 13948 *posix*) : 13949 set -o posix ;; #( 13950 *) : 13951 ;; 13952esac 13953fi 13954 13955 13956as_nl=' 13957' 13958export as_nl 13959# Printing a long string crashes Solaris 7 /usr/bin/printf. 13960as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13961as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13962as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13963# Prefer a ksh shell builtin over an external printf program on Solaris, 13964# but without wasting forks for bash or zsh. 13965if test -z "$BASH_VERSION$ZSH_VERSION" \ 13966 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13967 as_echo='print -r --' 13968 as_echo_n='print -rn --' 13969elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13970 as_echo='printf %s\n' 13971 as_echo_n='printf %s' 13972else 13973 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13974 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13975 as_echo_n='/usr/ucb/echo -n' 13976 else 13977 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13978 as_echo_n_body='eval 13979 arg=$1; 13980 case $arg in #( 13981 *"$as_nl"*) 13982 expr "X$arg" : "X\\(.*\\)$as_nl"; 13983 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13984 esac; 13985 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13986 ' 13987 export as_echo_n_body 13988 as_echo_n='sh -c $as_echo_n_body as_echo' 13989 fi 13990 export as_echo_body 13991 as_echo='sh -c $as_echo_body as_echo' 13992fi 13993 13994# The user is always right. 13995if test "${PATH_SEPARATOR+set}" != set; then 13996 PATH_SEPARATOR=: 13997 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13998 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13999 PATH_SEPARATOR=';' 14000 } 14001fi 14002 14003 14004# IFS 14005# We need space, tab and new line, in precisely that order. Quoting is 14006# there to prevent editors from complaining about space-tab. 14007# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14008# splitting by setting IFS to empty value.) 14009IFS=" "" $as_nl" 14010 14011# Find who we are. Look in the path if we contain no directory separator. 14012as_myself= 14013case $0 in #(( 14014 *[\\/]* ) as_myself=$0 ;; 14015 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14016for as_dir in $PATH 14017do 14018 IFS=$as_save_IFS 14019 test -z "$as_dir" && as_dir=. 14020 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14021 done 14022IFS=$as_save_IFS 14023 14024 ;; 14025esac 14026# We did not find ourselves, most probably we were run as `sh COMMAND' 14027# in which case we are not to be found in the path. 14028if test "x$as_myself" = x; then 14029 as_myself=$0 14030fi 14031if test ! -f "$as_myself"; then 14032 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14033 exit 1 14034fi 14035 14036# Unset variables that we do not need and which cause bugs (e.g. in 14037# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14038# suppresses any "Segmentation fault" message there. '((' could 14039# trigger a bug in pdksh 5.2.14. 14040for as_var in BASH_ENV ENV MAIL MAILPATH 14041do eval test x\${$as_var+set} = xset \ 14042 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14043done 14044PS1='$ ' 14045PS2='> ' 14046PS4='+ ' 14047 14048# NLS nuisances. 14049LC_ALL=C 14050export LC_ALL 14051LANGUAGE=C 14052export LANGUAGE 14053 14054# CDPATH. 14055(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14056 14057 14058# as_fn_error STATUS ERROR [LINENO LOG_FD] 14059# ---------------------------------------- 14060# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14061# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14062# script with STATUS, using 1 if that was 0. 14063as_fn_error () 14064{ 14065 as_status=$1; test $as_status -eq 0 && as_status=1 14066 if test "$4"; then 14067 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14068 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14069 fi 14070 $as_echo "$as_me: error: $2" >&2 14071 as_fn_exit $as_status 14072} # as_fn_error 14073 14074 14075# as_fn_set_status STATUS 14076# ----------------------- 14077# Set $? to STATUS, without forking. 14078as_fn_set_status () 14079{ 14080 return $1 14081} # as_fn_set_status 14082 14083# as_fn_exit STATUS 14084# ----------------- 14085# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14086as_fn_exit () 14087{ 14088 set +e 14089 as_fn_set_status $1 14090 exit $1 14091} # as_fn_exit 14092 14093# as_fn_unset VAR 14094# --------------- 14095# Portably unset VAR. 14096as_fn_unset () 14097{ 14098 { eval $1=; unset $1;} 14099} 14100as_unset=as_fn_unset 14101# as_fn_append VAR VALUE 14102# ---------------------- 14103# Append the text in VALUE to the end of the definition contained in VAR. Take 14104# advantage of any shell optimizations that allow amortized linear growth over 14105# repeated appends, instead of the typical quadratic growth present in naive 14106# implementations. 14107if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14108 eval 'as_fn_append () 14109 { 14110 eval $1+=\$2 14111 }' 14112else 14113 as_fn_append () 14114 { 14115 eval $1=\$$1\$2 14116 } 14117fi # as_fn_append 14118 14119# as_fn_arith ARG... 14120# ------------------ 14121# Perform arithmetic evaluation on the ARGs, and store the result in the 14122# global $as_val. Take advantage of shells that can avoid forks. The arguments 14123# must be portable across $(()) and expr. 14124if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14125 eval 'as_fn_arith () 14126 { 14127 as_val=$(( $* )) 14128 }' 14129else 14130 as_fn_arith () 14131 { 14132 as_val=`expr "$@" || test $? -eq 1` 14133 } 14134fi # as_fn_arith 14135 14136 14137if expr a : '\(a\)' >/dev/null 2>&1 && 14138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14139 as_expr=expr 14140else 14141 as_expr=false 14142fi 14143 14144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14145 as_basename=basename 14146else 14147 as_basename=false 14148fi 14149 14150if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14151 as_dirname=dirname 14152else 14153 as_dirname=false 14154fi 14155 14156as_me=`$as_basename -- "$0" || 14157$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14158 X"$0" : 'X\(//\)$' \| \ 14159 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14160$as_echo X/"$0" | 14161 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14162 s//\1/ 14163 q 14164 } 14165 /^X\/\(\/\/\)$/{ 14166 s//\1/ 14167 q 14168 } 14169 /^X\/\(\/\).*/{ 14170 s//\1/ 14171 q 14172 } 14173 s/.*/./; q'` 14174 14175# Avoid depending upon Character Ranges. 14176as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14177as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14178as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14179as_cr_digits='0123456789' 14180as_cr_alnum=$as_cr_Letters$as_cr_digits 14181 14182ECHO_C= ECHO_N= ECHO_T= 14183case `echo -n x` in #((((( 14184-n*) 14185 case `echo 'xy\c'` in 14186 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14187 xy) ECHO_C='\c';; 14188 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14189 ECHO_T=' ';; 14190 esac;; 14191*) 14192 ECHO_N='-n';; 14193esac 14194 14195rm -f conf$$ conf$$.exe conf$$.file 14196if test -d conf$$.dir; then 14197 rm -f conf$$.dir/conf$$.file 14198else 14199 rm -f conf$$.dir 14200 mkdir conf$$.dir 2>/dev/null 14201fi 14202if (echo >conf$$.file) 2>/dev/null; then 14203 if ln -s conf$$.file conf$$ 2>/dev/null; then 14204 as_ln_s='ln -s' 14205 # ... but there are two gotchas: 14206 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14207 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14208 # In both cases, we have to default to `cp -pR'. 14209 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14210 as_ln_s='cp -pR' 14211 elif ln conf$$.file conf$$ 2>/dev/null; then 14212 as_ln_s=ln 14213 else 14214 as_ln_s='cp -pR' 14215 fi 14216else 14217 as_ln_s='cp -pR' 14218fi 14219rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14220rmdir conf$$.dir 2>/dev/null 14221 14222 14223# as_fn_mkdir_p 14224# ------------- 14225# Create "$as_dir" as a directory, including parents if necessary. 14226as_fn_mkdir_p () 14227{ 14228 14229 case $as_dir in #( 14230 -*) as_dir=./$as_dir;; 14231 esac 14232 test -d "$as_dir" || eval $as_mkdir_p || { 14233 as_dirs= 14234 while :; do 14235 case $as_dir in #( 14236 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14237 *) as_qdir=$as_dir;; 14238 esac 14239 as_dirs="'$as_qdir' $as_dirs" 14240 as_dir=`$as_dirname -- "$as_dir" || 14241$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14242 X"$as_dir" : 'X\(//\)[^/]' \| \ 14243 X"$as_dir" : 'X\(//\)$' \| \ 14244 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14245$as_echo X"$as_dir" | 14246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14247 s//\1/ 14248 q 14249 } 14250 /^X\(\/\/\)[^/].*/{ 14251 s//\1/ 14252 q 14253 } 14254 /^X\(\/\/\)$/{ 14255 s//\1/ 14256 q 14257 } 14258 /^X\(\/\).*/{ 14259 s//\1/ 14260 q 14261 } 14262 s/.*/./; q'` 14263 test -d "$as_dir" && break 14264 done 14265 test -z "$as_dirs" || eval "mkdir $as_dirs" 14266 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14267 14268 14269} # as_fn_mkdir_p 14270if mkdir -p . 2>/dev/null; then 14271 as_mkdir_p='mkdir -p "$as_dir"' 14272else 14273 test -d ./-p && rmdir ./-p 14274 as_mkdir_p=false 14275fi 14276 14277 14278# as_fn_executable_p FILE 14279# ----------------------- 14280# Test if FILE is an executable regular file. 14281as_fn_executable_p () 14282{ 14283 test -f "$1" && test -x "$1" 14284} # as_fn_executable_p 14285as_test_x='test -x' 14286as_executable_p=as_fn_executable_p 14287 14288# Sed expression to map a string onto a valid CPP name. 14289as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14290 14291# Sed expression to map a string onto a valid variable name. 14292as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14293 14294 14295exec 6>&1 14296## ----------------------------------- ## 14297## Main body of $CONFIG_STATUS script. ## 14298## ----------------------------------- ## 14299_ASEOF 14300test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14301 14302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14303# Save the log message, to keep $0 and so on meaningful, and to 14304# report actual input values of CONFIG_FILES etc. instead of their 14305# values after options handling. 14306ac_log=" 14307This file was extended by libosip2 $as_me 5.3.0, which was 14308generated by GNU Autoconf 2.69. Invocation command line was 14309 14310 CONFIG_FILES = $CONFIG_FILES 14311 CONFIG_HEADERS = $CONFIG_HEADERS 14312 CONFIG_LINKS = $CONFIG_LINKS 14313 CONFIG_COMMANDS = $CONFIG_COMMANDS 14314 $ $0 $@ 14315 14316on `(hostname || uname -n) 2>/dev/null | sed 1q` 14317" 14318 14319_ACEOF 14320 14321case $ac_config_files in *" 14322"*) set x $ac_config_files; shift; ac_config_files=$*;; 14323esac 14324 14325case $ac_config_headers in *" 14326"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14327esac 14328 14329 14330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14331# Files that config.status was made for. 14332config_files="$ac_config_files" 14333config_headers="$ac_config_headers" 14334config_commands="$ac_config_commands" 14335 14336_ACEOF 14337 14338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14339ac_cs_usage="\ 14340\`$as_me' instantiates files and other configuration actions 14341from templates according to the current configuration. Unless the files 14342and actions are specified as TAGs, all are instantiated by default. 14343 14344Usage: $0 [OPTION]... [TAG]... 14345 14346 -h, --help print this help, then exit 14347 -V, --version print version number and configuration settings, then exit 14348 --config print configuration, then exit 14349 -q, --quiet, --silent 14350 do not print progress messages 14351 -d, --debug don't remove temporary files 14352 --recheck update $as_me by reconfiguring in the same conditions 14353 --file=FILE[:TEMPLATE] 14354 instantiate the configuration file FILE 14355 --header=FILE[:TEMPLATE] 14356 instantiate the configuration header FILE 14357 14358Configuration files: 14359$config_files 14360 14361Configuration headers: 14362$config_headers 14363 14364Configuration commands: 14365$config_commands 14366 14367Report bugs to the package provider." 14368 14369_ACEOF 14370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14371ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14372ac_cs_version="\\ 14373libosip2 config.status 5.3.0 14374configured by $0, generated by GNU Autoconf 2.69, 14375 with options \\"\$ac_cs_config\\" 14376 14377Copyright (C) 2012 Free Software Foundation, Inc. 14378This config.status script is free software; the Free Software Foundation 14379gives unlimited permission to copy, distribute and modify it." 14380 14381ac_pwd='$ac_pwd' 14382srcdir='$srcdir' 14383INSTALL='$INSTALL' 14384MKDIR_P='$MKDIR_P' 14385AWK='$AWK' 14386test -n "\$AWK" || AWK=awk 14387_ACEOF 14388 14389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14390# The default lists apply if the user does not specify any file. 14391ac_need_defaults=: 14392while test $# != 0 14393do 14394 case $1 in 14395 --*=?*) 14396 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14397 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14398 ac_shift=: 14399 ;; 14400 --*=) 14401 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14402 ac_optarg= 14403 ac_shift=: 14404 ;; 14405 *) 14406 ac_option=$1 14407 ac_optarg=$2 14408 ac_shift=shift 14409 ;; 14410 esac 14411 14412 case $ac_option in 14413 # Handling of the options. 14414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14415 ac_cs_recheck=: ;; 14416 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14417 $as_echo "$ac_cs_version"; exit ;; 14418 --config | --confi | --conf | --con | --co | --c ) 14419 $as_echo "$ac_cs_config"; exit ;; 14420 --debug | --debu | --deb | --de | --d | -d ) 14421 debug=: ;; 14422 --file | --fil | --fi | --f ) 14423 $ac_shift 14424 case $ac_optarg in 14425 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14426 '') as_fn_error $? "missing file argument" ;; 14427 esac 14428 as_fn_append CONFIG_FILES " '$ac_optarg'" 14429 ac_need_defaults=false;; 14430 --header | --heade | --head | --hea ) 14431 $ac_shift 14432 case $ac_optarg in 14433 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14434 esac 14435 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14436 ac_need_defaults=false;; 14437 --he | --h) 14438 # Conflict between --help and --header 14439 as_fn_error $? "ambiguous option: \`$1' 14440Try \`$0 --help' for more information.";; 14441 --help | --hel | -h ) 14442 $as_echo "$ac_cs_usage"; exit ;; 14443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14444 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14445 ac_cs_silent=: ;; 14446 14447 # This is an error. 14448 -*) as_fn_error $? "unrecognized option: \`$1' 14449Try \`$0 --help' for more information." ;; 14450 14451 *) as_fn_append ac_config_targets " $1" 14452 ac_need_defaults=false ;; 14453 14454 esac 14455 shift 14456done 14457 14458ac_configure_extra_args= 14459 14460if $ac_cs_silent; then 14461 exec 6>/dev/null 14462 ac_configure_extra_args="$ac_configure_extra_args --silent" 14463fi 14464 14465_ACEOF 14466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14467if \$ac_cs_recheck; then 14468 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14469 shift 14470 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14471 CONFIG_SHELL='$SHELL' 14472 export CONFIG_SHELL 14473 exec "\$@" 14474fi 14475 14476_ACEOF 14477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14478exec 5>>config.log 14479{ 14480 echo 14481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14482## Running $as_me. ## 14483_ASBOX 14484 $as_echo "$ac_log" 14485} >&5 14486 14487_ACEOF 14488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14489# 14490# INIT-COMMANDS 14491# 14492AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14493 14494 14495# The HP-UX ksh and POSIX shell print the target directory to stdout 14496# if CDPATH is set. 14497(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14498 14499sed_quote_subst='$sed_quote_subst' 14500double_quote_subst='$double_quote_subst' 14501delay_variable_subst='$delay_variable_subst' 14502macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14503macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14504enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14505enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14506pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14507enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14508shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14509SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14510ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14511PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14512host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14513host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14514host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14515build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14516build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14517build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14518SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14519Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14520GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14521EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14522FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14523LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14524NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14525LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14526max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14527ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14528exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14529lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14530lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14531lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14532lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14533lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14534reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14535reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14536OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14537deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14538file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14539file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14540want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14541DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14542sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14543AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14544AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14545archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14546STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14547RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14548old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14549old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14550old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14551lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14552CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14553CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14554compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14555GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14556lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14557lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14558lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14559lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14560lt_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"`' 14561lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14562nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14563lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14564lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14565objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14566MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14567lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14568lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14569lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14570lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14571lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14572need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14573MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14574DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14575NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14576LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14577OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14578OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14579libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14580shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14581extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14582archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14583enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14584export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14585whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14586compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14587old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14588old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14589archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14590archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14591module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14592module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14593with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14594allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14595no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14596hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14597hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14598hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14599hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14600hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14601hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14602hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14603inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14604link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14605always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14606export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14607exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14608include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14609prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14610postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14611file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14612variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14613need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14614need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14615version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14616runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14617shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14618shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14619libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14620library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14621soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14622install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14623postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14624postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14625finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14626finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14627hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14628sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14629configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14630configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14631hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14632enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14633enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14634enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14635old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14636striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14637 14638LTCC='$LTCC' 14639LTCFLAGS='$LTCFLAGS' 14640compiler='$compiler_DEFAULT' 14641 14642# A function that is used when there is no print builtin or printf. 14643func_fallback_echo () 14644{ 14645 eval 'cat <<_LTECHO_EOF 14646\$1 14647_LTECHO_EOF' 14648} 14649 14650# Quote evaled strings. 14651for var in SHELL \ 14652ECHO \ 14653PATH_SEPARATOR \ 14654SED \ 14655GREP \ 14656EGREP \ 14657FGREP \ 14658LD \ 14659NM \ 14660LN_S \ 14661lt_SP2NL \ 14662lt_NL2SP \ 14663reload_flag \ 14664OBJDUMP \ 14665deplibs_check_method \ 14666file_magic_cmd \ 14667file_magic_glob \ 14668want_nocaseglob \ 14669DLLTOOL \ 14670sharedlib_from_linklib_cmd \ 14671AR \ 14672AR_FLAGS \ 14673archiver_list_spec \ 14674STRIP \ 14675RANLIB \ 14676CC \ 14677CFLAGS \ 14678compiler \ 14679lt_cv_sys_global_symbol_pipe \ 14680lt_cv_sys_global_symbol_to_cdecl \ 14681lt_cv_sys_global_symbol_to_import \ 14682lt_cv_sys_global_symbol_to_c_name_address \ 14683lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14684lt_cv_nm_interface \ 14685nm_file_list_spec \ 14686lt_cv_truncate_bin \ 14687lt_prog_compiler_no_builtin_flag \ 14688lt_prog_compiler_pic \ 14689lt_prog_compiler_wl \ 14690lt_prog_compiler_static \ 14691lt_cv_prog_compiler_c_o \ 14692need_locks \ 14693MANIFEST_TOOL \ 14694DSYMUTIL \ 14695NMEDIT \ 14696LIPO \ 14697OTOOL \ 14698OTOOL64 \ 14699shrext_cmds \ 14700export_dynamic_flag_spec \ 14701whole_archive_flag_spec \ 14702compiler_needs_object \ 14703with_gnu_ld \ 14704allow_undefined_flag \ 14705no_undefined_flag \ 14706hardcode_libdir_flag_spec \ 14707hardcode_libdir_separator \ 14708exclude_expsyms \ 14709include_expsyms \ 14710file_list_spec \ 14711variables_saved_for_relink \ 14712libname_spec \ 14713library_names_spec \ 14714soname_spec \ 14715install_override_mode \ 14716finish_eval \ 14717old_striplib \ 14718striplib; do 14719 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14720 *[\\\\\\\`\\"\\\$]*) 14721 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14722 ;; 14723 *) 14724 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14725 ;; 14726 esac 14727done 14728 14729# Double-quote double-evaled strings. 14730for var in reload_cmds \ 14731old_postinstall_cmds \ 14732old_postuninstall_cmds \ 14733old_archive_cmds \ 14734extract_expsyms_cmds \ 14735old_archive_from_new_cmds \ 14736old_archive_from_expsyms_cmds \ 14737archive_cmds \ 14738archive_expsym_cmds \ 14739module_cmds \ 14740module_expsym_cmds \ 14741export_symbols_cmds \ 14742prelink_cmds \ 14743postlink_cmds \ 14744postinstall_cmds \ 14745postuninstall_cmds \ 14746finish_cmds \ 14747sys_lib_search_path_spec \ 14748configure_time_dlsearch_path \ 14749configure_time_lt_sys_library_path; do 14750 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14751 *[\\\\\\\`\\"\\\$]*) 14752 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14753 ;; 14754 *) 14755 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14756 ;; 14757 esac 14758done 14759 14760ac_aux_dir='$ac_aux_dir' 14761 14762# See if we are running on zsh, and set the options that allow our 14763# commands through without removal of \ escapes INIT. 14764if test -n "\${ZSH_VERSION+set}"; then 14765 setopt NO_GLOB_SUBST 14766fi 14767 14768 14769 PACKAGE='$PACKAGE' 14770 VERSION='$VERSION' 14771 RM='$RM' 14772 ofile='$ofile' 14773 14774 14775 14776 14777_ACEOF 14778 14779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14780 14781# Handling of arguments. 14782for ac_config_target in $ac_config_targets 14783do 14784 case $ac_config_target in 14785 "osip-config.h") CONFIG_HEADERS="$CONFIG_HEADERS osip-config.h" ;; 14786 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14787 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14788 "libosip2.pc") CONFIG_FILES="$CONFIG_FILES libosip2.pc" ;; 14789 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14790 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 14791 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14792 "src/osipparser2/Makefile") CONFIG_FILES="$CONFIG_FILES src/osipparser2/Makefile" ;; 14793 "src/osip2/Makefile") CONFIG_FILES="$CONFIG_FILES src/osip2/Makefile" ;; 14794 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;; 14795 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 14796 "include/osip2/Makefile") CONFIG_FILES="$CONFIG_FILES include/osip2/Makefile" ;; 14797 "include/osipparser2/Makefile") CONFIG_FILES="$CONFIG_FILES include/osipparser2/Makefile" ;; 14798 "include/osipparser2/headers/Makefile") CONFIG_FILES="$CONFIG_FILES include/osipparser2/headers/Makefile" ;; 14799 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; 14800 "help/man/Makefile") CONFIG_FILES="$CONFIG_FILES help/man/Makefile" ;; 14801 "help/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES help/doxygen/Makefile" ;; 14802 "platform/Makefile") CONFIG_FILES="$CONFIG_FILES platform/Makefile" ;; 14803 "platform/rpm/Makefile") CONFIG_FILES="$CONFIG_FILES platform/rpm/Makefile" ;; 14804 "platform/vsnet/Makefile") CONFIG_FILES="$CONFIG_FILES platform/vsnet/Makefile" ;; 14805 "include/osip2/doxygen.dox") CONFIG_FILES="$CONFIG_FILES include/osip2/doxygen.dox" ;; 14806 14807 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14808 esac 14809done 14810 14811 14812# If the user did not use the arguments to specify the items to instantiate, 14813# then the envvar interface is used. Set only those that are not. 14814# We use the long form for the default assignment because of an extremely 14815# bizarre bug on SunOS 4.1.3. 14816if $ac_need_defaults; then 14817 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14818 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14819 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14820fi 14821 14822# Have a temporary directory for convenience. Make it in the build tree 14823# simply because there is no reason against having it here, and in addition, 14824# creating and moving files from /tmp can sometimes cause problems. 14825# Hook for its removal unless debugging. 14826# Note that there is a small window in which the directory will not be cleaned: 14827# after its creation but before its name has been assigned to `$tmp'. 14828$debug || 14829{ 14830 tmp= ac_tmp= 14831 trap 'exit_status=$? 14832 : "${ac_tmp:=$tmp}" 14833 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14834' 0 14835 trap 'as_fn_exit 1' 1 2 13 15 14836} 14837# Create a (secure) tmp directory for tmp files. 14838 14839{ 14840 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14841 test -d "$tmp" 14842} || 14843{ 14844 tmp=./conf$$-$RANDOM 14845 (umask 077 && mkdir "$tmp") 14846} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14847ac_tmp=$tmp 14848 14849# Set up the scripts for CONFIG_FILES section. 14850# No need to generate them if there are no CONFIG_FILES. 14851# This happens for instance with `./config.status config.h'. 14852if test -n "$CONFIG_FILES"; then 14853 14854 14855ac_cr=`echo X | tr X '\015'` 14856# On cygwin, bash can eat \r inside `` if the user requested igncr. 14857# But we know of no other shell where ac_cr would be empty at this 14858# point, so we can use a bashism as a fallback. 14859if test "x$ac_cr" = x; then 14860 eval ac_cr=\$\'\\r\' 14861fi 14862ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14863if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14864 ac_cs_awk_cr='\\r' 14865else 14866 ac_cs_awk_cr=$ac_cr 14867fi 14868 14869echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14870_ACEOF 14871 14872 14873{ 14874 echo "cat >conf$$subs.awk <<_ACEOF" && 14875 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14876 echo "_ACEOF" 14877} >conf$$subs.sh || 14878 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14879ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14880ac_delim='%!_!# ' 14881for ac_last_try in false false false false false :; do 14882 . ./conf$$subs.sh || 14883 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14884 14885 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14886 if test $ac_delim_n = $ac_delim_num; then 14887 break 14888 elif $ac_last_try; then 14889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14890 else 14891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14892 fi 14893done 14894rm -f conf$$subs.sh 14895 14896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14897cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14898_ACEOF 14899sed -n ' 14900h 14901s/^/S["/; s/!.*/"]=/ 14902p 14903g 14904s/^[^!]*!// 14905:repl 14906t repl 14907s/'"$ac_delim"'$// 14908t delim 14909:nl 14910h 14911s/\(.\{148\}\)..*/\1/ 14912t more1 14913s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14914p 14915n 14916b repl 14917:more1 14918s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14919p 14920g 14921s/.\{148\}// 14922t nl 14923:delim 14924h 14925s/\(.\{148\}\)..*/\1/ 14926t more2 14927s/["\\]/\\&/g; s/^/"/; s/$/"/ 14928p 14929b 14930:more2 14931s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14932p 14933g 14934s/.\{148\}// 14935t delim 14936' <conf$$subs.awk | sed ' 14937/^[^""]/{ 14938 N 14939 s/\n// 14940} 14941' >>$CONFIG_STATUS || ac_write_fail=1 14942rm -f conf$$subs.awk 14943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14944_ACAWK 14945cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14946 for (key in S) S_is_set[key] = 1 14947 FS = "" 14948 14949} 14950{ 14951 line = $ 0 14952 nfields = split(line, field, "@") 14953 substed = 0 14954 len = length(field[1]) 14955 for (i = 2; i < nfields; i++) { 14956 key = field[i] 14957 keylen = length(key) 14958 if (S_is_set[key]) { 14959 value = S[key] 14960 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14961 len += length(value) + length(field[++i]) 14962 substed = 1 14963 } else 14964 len += 1 + keylen 14965 } 14966 14967 print line 14968} 14969 14970_ACAWK 14971_ACEOF 14972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14973if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14974 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14975else 14976 cat 14977fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14978 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14979_ACEOF 14980 14981# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14982# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14983# trailing colons and then remove the whole line if VPATH becomes empty 14984# (actually we leave an empty line to preserve line numbers). 14985if test "x$srcdir" = x.; then 14986 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14987h 14988s/// 14989s/^/:/ 14990s/[ ]*$/:/ 14991s/:\$(srcdir):/:/g 14992s/:\${srcdir}:/:/g 14993s/:@srcdir@:/:/g 14994s/^:*// 14995s/:*$// 14996x 14997s/\(=[ ]*\).*/\1/ 14998G 14999s/\n// 15000s/^[^=]*=[ ]*$// 15001}' 15002fi 15003 15004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15005fi # test -n "$CONFIG_FILES" 15006 15007# Set up the scripts for CONFIG_HEADERS section. 15008# No need to generate them if there are no CONFIG_HEADERS. 15009# This happens for instance with `./config.status Makefile'. 15010if test -n "$CONFIG_HEADERS"; then 15011cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15012BEGIN { 15013_ACEOF 15014 15015# Transform confdefs.h into an awk script `defines.awk', embedded as 15016# here-document in config.status, that substitutes the proper values into 15017# config.h.in to produce config.h. 15018 15019# Create a delimiter string that does not exist in confdefs.h, to ease 15020# handling of long lines. 15021ac_delim='%!_!# ' 15022for ac_last_try in false false :; do 15023 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15024 if test -z "$ac_tt"; then 15025 break 15026 elif $ac_last_try; then 15027 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15028 else 15029 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15030 fi 15031done 15032 15033# For the awk script, D is an array of macro values keyed by name, 15034# likewise P contains macro parameters if any. Preserve backslash 15035# newline sequences. 15036 15037ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15038sed -n ' 15039s/.\{148\}/&'"$ac_delim"'/g 15040t rset 15041:rset 15042s/^[ ]*#[ ]*define[ ][ ]*/ / 15043t def 15044d 15045:def 15046s/\\$// 15047t bsnl 15048s/["\\]/\\&/g 15049s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15050D["\1"]=" \3"/p 15051s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15052d 15053:bsnl 15054s/["\\]/\\&/g 15055s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15056D["\1"]=" \3\\\\\\n"\\/p 15057t cont 15058s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15059t cont 15060d 15061:cont 15062n 15063s/.\{148\}/&'"$ac_delim"'/g 15064t clear 15065:clear 15066s/\\$// 15067t bsnlc 15068s/["\\]/\\&/g; s/^/"/; s/$/"/p 15069d 15070:bsnlc 15071s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15072b cont 15073' <confdefs.h | sed ' 15074s/'"$ac_delim"'/"\\\ 15075"/g' >>$CONFIG_STATUS || ac_write_fail=1 15076 15077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15078 for (key in D) D_is_set[key] = 1 15079 FS = "" 15080} 15081/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15082 line = \$ 0 15083 split(line, arg, " ") 15084 if (arg[1] == "#") { 15085 defundef = arg[2] 15086 mac1 = arg[3] 15087 } else { 15088 defundef = substr(arg[1], 2) 15089 mac1 = arg[2] 15090 } 15091 split(mac1, mac2, "(") #) 15092 macro = mac2[1] 15093 prefix = substr(line, 1, index(line, defundef) - 1) 15094 if (D_is_set[macro]) { 15095 # Preserve the white space surrounding the "#". 15096 print prefix "define", macro P[macro] D[macro] 15097 next 15098 } else { 15099 # Replace #undef with comments. This is necessary, for example, 15100 # in the case of _POSIX_SOURCE, which is predefined and required 15101 # on some systems where configure will not decide to define it. 15102 if (defundef == "undef") { 15103 print "/*", prefix defundef, macro, "*/" 15104 next 15105 } 15106 } 15107} 15108{ print } 15109_ACAWK 15110_ACEOF 15111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15112 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15113fi # test -n "$CONFIG_HEADERS" 15114 15115 15116eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15117shift 15118for ac_tag 15119do 15120 case $ac_tag in 15121 :[FHLC]) ac_mode=$ac_tag; continue;; 15122 esac 15123 case $ac_mode$ac_tag in 15124 :[FHL]*:*);; 15125 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15126 :[FH]-) ac_tag=-:-;; 15127 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15128 esac 15129 ac_save_IFS=$IFS 15130 IFS=: 15131 set x $ac_tag 15132 IFS=$ac_save_IFS 15133 shift 15134 ac_file=$1 15135 shift 15136 15137 case $ac_mode in 15138 :L) ac_source=$1;; 15139 :[FH]) 15140 ac_file_inputs= 15141 for ac_f 15142 do 15143 case $ac_f in 15144 -) ac_f="$ac_tmp/stdin";; 15145 *) # Look for the file first in the build tree, then in the source tree 15146 # (if the path is not absolute). The absolute path cannot be DOS-style, 15147 # because $ac_f cannot contain `:'. 15148 test -f "$ac_f" || 15149 case $ac_f in 15150 [\\/$]*) false;; 15151 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15152 esac || 15153 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15154 esac 15155 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15156 as_fn_append ac_file_inputs " '$ac_f'" 15157 done 15158 15159 # Let's still pretend it is `configure' which instantiates (i.e., don't 15160 # use $as_me), people would be surprised to read: 15161 # /* config.h. Generated by config.status. */ 15162 configure_input='Generated from '` 15163 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15164 `' by configure.' 15165 if test x"$ac_file" != x-; then 15166 configure_input="$ac_file. $configure_input" 15167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15168$as_echo "$as_me: creating $ac_file" >&6;} 15169 fi 15170 # Neutralize special characters interpreted by sed in replacement strings. 15171 case $configure_input in #( 15172 *\&* | *\|* | *\\* ) 15173 ac_sed_conf_input=`$as_echo "$configure_input" | 15174 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15175 *) ac_sed_conf_input=$configure_input;; 15176 esac 15177 15178 case $ac_tag in 15179 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15181 esac 15182 ;; 15183 esac 15184 15185 ac_dir=`$as_dirname -- "$ac_file" || 15186$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15187 X"$ac_file" : 'X\(//\)[^/]' \| \ 15188 X"$ac_file" : 'X\(//\)$' \| \ 15189 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15190$as_echo X"$ac_file" | 15191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15192 s//\1/ 15193 q 15194 } 15195 /^X\(\/\/\)[^/].*/{ 15196 s//\1/ 15197 q 15198 } 15199 /^X\(\/\/\)$/{ 15200 s//\1/ 15201 q 15202 } 15203 /^X\(\/\).*/{ 15204 s//\1/ 15205 q 15206 } 15207 s/.*/./; q'` 15208 as_dir="$ac_dir"; as_fn_mkdir_p 15209 ac_builddir=. 15210 15211case "$ac_dir" in 15212.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15213*) 15214 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15215 # A ".." for each directory in $ac_dir_suffix. 15216 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15217 case $ac_top_builddir_sub in 15218 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15219 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15220 esac ;; 15221esac 15222ac_abs_top_builddir=$ac_pwd 15223ac_abs_builddir=$ac_pwd$ac_dir_suffix 15224# for backward compatibility: 15225ac_top_builddir=$ac_top_build_prefix 15226 15227case $srcdir in 15228 .) # We are building in place. 15229 ac_srcdir=. 15230 ac_top_srcdir=$ac_top_builddir_sub 15231 ac_abs_top_srcdir=$ac_pwd ;; 15232 [\\/]* | ?:[\\/]* ) # Absolute name. 15233 ac_srcdir=$srcdir$ac_dir_suffix; 15234 ac_top_srcdir=$srcdir 15235 ac_abs_top_srcdir=$srcdir ;; 15236 *) # Relative name. 15237 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15238 ac_top_srcdir=$ac_top_build_prefix$srcdir 15239 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15240esac 15241ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15242 15243 15244 case $ac_mode in 15245 :F) 15246 # 15247 # CONFIG_FILE 15248 # 15249 15250 case $INSTALL in 15251 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15252 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15253 esac 15254 ac_MKDIR_P=$MKDIR_P 15255 case $MKDIR_P in 15256 [\\/$]* | ?:[\\/]* ) ;; 15257 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15258 esac 15259_ACEOF 15260 15261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15262# If the template does not know about datarootdir, expand it. 15263# FIXME: This hack should be removed a few years after 2.60. 15264ac_datarootdir_hack=; ac_datarootdir_seen= 15265ac_sed_dataroot=' 15266/datarootdir/ { 15267 p 15268 q 15269} 15270/@datadir@/p 15271/@docdir@/p 15272/@infodir@/p 15273/@localedir@/p 15274/@mandir@/p' 15275case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15276*datarootdir*) ac_datarootdir_seen=yes;; 15277*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15279$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15280_ACEOF 15281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15282 ac_datarootdir_hack=' 15283 s&@datadir@&$datadir&g 15284 s&@docdir@&$docdir&g 15285 s&@infodir@&$infodir&g 15286 s&@localedir@&$localedir&g 15287 s&@mandir@&$mandir&g 15288 s&\\\${datarootdir}&$datarootdir&g' ;; 15289esac 15290_ACEOF 15291 15292# Neutralize VPATH when `$srcdir' = `.'. 15293# Shell code in configure.ac might set extrasub. 15294# FIXME: do we really want to maintain this feature? 15295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15296ac_sed_extra="$ac_vpsub 15297$extrasub 15298_ACEOF 15299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15300:t 15301/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15302s|@configure_input@|$ac_sed_conf_input|;t t 15303s&@top_builddir@&$ac_top_builddir_sub&;t t 15304s&@top_build_prefix@&$ac_top_build_prefix&;t t 15305s&@srcdir@&$ac_srcdir&;t t 15306s&@abs_srcdir@&$ac_abs_srcdir&;t t 15307s&@top_srcdir@&$ac_top_srcdir&;t t 15308s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15309s&@builddir@&$ac_builddir&;t t 15310s&@abs_builddir@&$ac_abs_builddir&;t t 15311s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15312s&@INSTALL@&$ac_INSTALL&;t t 15313s&@MKDIR_P@&$ac_MKDIR_P&;t t 15314$ac_datarootdir_hack 15315" 15316eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15317 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15318 15319test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15320 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15321 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15322 "$ac_tmp/out"`; test -z "$ac_out"; } && 15323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15324which seems to be undefined. Please make sure it is defined" >&5 15325$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15326which seems to be undefined. Please make sure it is defined" >&2;} 15327 15328 rm -f "$ac_tmp/stdin" 15329 case $ac_file in 15330 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15331 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15332 esac \ 15333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15334 ;; 15335 :H) 15336 # 15337 # CONFIG_HEADER 15338 # 15339 if test x"$ac_file" != x-; then 15340 { 15341 $as_echo "/* $configure_input */" \ 15342 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15343 } >"$ac_tmp/config.h" \ 15344 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15345 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15346 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15347$as_echo "$as_me: $ac_file is unchanged" >&6;} 15348 else 15349 rm -f "$ac_file" 15350 mv "$ac_tmp/config.h" "$ac_file" \ 15351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15352 fi 15353 else 15354 $as_echo "/* $configure_input */" \ 15355 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15356 || as_fn_error $? "could not create -" "$LINENO" 5 15357 fi 15358# Compute "$ac_file"'s index in $config_headers. 15359_am_arg="$ac_file" 15360_am_stamp_count=1 15361for _am_header in $config_headers :; do 15362 case $_am_header in 15363 $_am_arg | $_am_arg:* ) 15364 break ;; 15365 * ) 15366 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15367 esac 15368done 15369echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15370$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15371 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15372 X"$_am_arg" : 'X\(//\)$' \| \ 15373 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15374$as_echo X"$_am_arg" | 15375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15376 s//\1/ 15377 q 15378 } 15379 /^X\(\/\/\)[^/].*/{ 15380 s//\1/ 15381 q 15382 } 15383 /^X\(\/\/\)$/{ 15384 s//\1/ 15385 q 15386 } 15387 /^X\(\/\).*/{ 15388 s//\1/ 15389 q 15390 } 15391 s/.*/./; q'`/stamp-h$_am_stamp_count 15392 ;; 15393 15394 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15395$as_echo "$as_me: executing $ac_file commands" >&6;} 15396 ;; 15397 esac 15398 15399 15400 case $ac_file$ac_mode in 15401 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15402 # Older Autoconf quotes --file arguments for eval, but not when files 15403 # are listed without --file. Let's play safe and only enable the eval 15404 # if we detect the quoting. 15405 # TODO: see whether this extra hack can be removed once we start 15406 # requiring Autoconf 2.70 or later. 15407 case $CONFIG_FILES in #( 15408 *\'*) : 15409 eval set x "$CONFIG_FILES" ;; #( 15410 *) : 15411 set x $CONFIG_FILES ;; #( 15412 *) : 15413 ;; 15414esac 15415 shift 15416 # Used to flag and report bootstrapping failures. 15417 am_rc=0 15418 for am_mf 15419 do 15420 # Strip MF so we end up with the name of the file. 15421 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15422 # Check whether this is an Automake generated Makefile which includes 15423 # dependency-tracking related rules and includes. 15424 # Grep'ing the whole file directly is not great: AIX grep has a line 15425 # limit of 2048, but all sed's we know have understand at least 4000. 15426 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15427 || continue 15428 am_dirpart=`$as_dirname -- "$am_mf" || 15429$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15430 X"$am_mf" : 'X\(//\)[^/]' \| \ 15431 X"$am_mf" : 'X\(//\)$' \| \ 15432 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15433$as_echo X"$am_mf" | 15434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15435 s//\1/ 15436 q 15437 } 15438 /^X\(\/\/\)[^/].*/{ 15439 s//\1/ 15440 q 15441 } 15442 /^X\(\/\/\)$/{ 15443 s//\1/ 15444 q 15445 } 15446 /^X\(\/\).*/{ 15447 s//\1/ 15448 q 15449 } 15450 s/.*/./; q'` 15451 am_filepart=`$as_basename -- "$am_mf" || 15452$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15453 X"$am_mf" : 'X\(//\)$' \| \ 15454 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15455$as_echo X/"$am_mf" | 15456 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15457 s//\1/ 15458 q 15459 } 15460 /^X\/\(\/\/\)$/{ 15461 s//\1/ 15462 q 15463 } 15464 /^X\/\(\/\).*/{ 15465 s//\1/ 15466 q 15467 } 15468 s/.*/./; q'` 15469 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15470 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15471 | $MAKE -f - am--depfiles" >&5 15472 (cd "$am_dirpart" \ 15473 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15474 | $MAKE -f - am--depfiles) >&5 2>&5 15475 ac_status=$? 15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15477 (exit $ac_status); } || am_rc=$? 15478 done 15479 if test $am_rc -ne 0; then 15480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15482as_fn_error $? "Something went wrong bootstrapping makefile fragments 15483 for automatic dependency tracking. Try re-running configure with the 15484 '--disable-dependency-tracking' option to at least be able to build 15485 the package (albeit without support for automatic dependency tracking). 15486See \`config.log' for more details" "$LINENO" 5; } 15487 fi 15488 { am_dirpart=; unset am_dirpart;} 15489 { am_filepart=; unset am_filepart;} 15490 { am_mf=; unset am_mf;} 15491 { am_rc=; unset am_rc;} 15492 rm -f conftest-deps.mk 15493} 15494 ;; 15495 "libtool":C) 15496 15497 # See if we are running on zsh, and set the options that allow our 15498 # commands through without removal of \ escapes. 15499 if test -n "${ZSH_VERSION+set}"; then 15500 setopt NO_GLOB_SUBST 15501 fi 15502 15503 cfgfile=${ofile}T 15504 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15505 $RM "$cfgfile" 15506 15507 cat <<_LT_EOF >> "$cfgfile" 15508#! $SHELL 15509# Generated automatically by $as_me ($PACKAGE) $VERSION 15510# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15511 15512# Provide generalized library-building support services. 15513# Written by Gordon Matzigkeit, 1996 15514 15515# Copyright (C) 2014 Free Software Foundation, Inc. 15516# This is free software; see the source for copying conditions. There is NO 15517# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15518 15519# GNU Libtool is free software; you can redistribute it and/or modify 15520# it under the terms of the GNU General Public License as published by 15521# the Free Software Foundation; either version 2 of of the License, or 15522# (at your option) any later version. 15523# 15524# As a special exception to the GNU General Public License, if you 15525# distribute this file as part of a program or library that is built 15526# using GNU Libtool, you may include this file under the same 15527# distribution terms that you use for the rest of that program. 15528# 15529# GNU Libtool is distributed in the hope that it will be useful, but 15530# WITHOUT ANY WARRANTY; without even the implied warranty of 15531# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15532# GNU General Public License for more details. 15533# 15534# You should have received a copy of the GNU General Public License 15535# along with this program. If not, see <http://www.gnu.org/licenses/>. 15536 15537 15538# The names of the tagged configurations supported by this script. 15539available_tags='' 15540 15541# Configured defaults for sys_lib_dlsearch_path munging. 15542: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15543 15544# ### BEGIN LIBTOOL CONFIG 15545 15546# Which release of libtool.m4 was used? 15547macro_version=$macro_version 15548macro_revision=$macro_revision 15549 15550# Whether or not to build shared libraries. 15551build_libtool_libs=$enable_shared 15552 15553# Whether or not to build static libraries. 15554build_old_libs=$enable_static 15555 15556# What type of objects to build. 15557pic_mode=$pic_mode 15558 15559# Whether or not to optimize for fast installation. 15560fast_install=$enable_fast_install 15561 15562# Shared archive member basename,for filename based shared library versioning on AIX. 15563shared_archive_member_spec=$shared_archive_member_spec 15564 15565# Shell to use when invoking shell scripts. 15566SHELL=$lt_SHELL 15567 15568# An echo program that protects backslashes. 15569ECHO=$lt_ECHO 15570 15571# The PATH separator for the build system. 15572PATH_SEPARATOR=$lt_PATH_SEPARATOR 15573 15574# The host system. 15575host_alias=$host_alias 15576host=$host 15577host_os=$host_os 15578 15579# The build system. 15580build_alias=$build_alias 15581build=$build 15582build_os=$build_os 15583 15584# A sed program that does not truncate output. 15585SED=$lt_SED 15586 15587# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15588Xsed="\$SED -e 1s/^X//" 15589 15590# A grep program that handles long lines. 15591GREP=$lt_GREP 15592 15593# An ERE matcher. 15594EGREP=$lt_EGREP 15595 15596# A literal string matcher. 15597FGREP=$lt_FGREP 15598 15599# A BSD- or MS-compatible name lister. 15600NM=$lt_NM 15601 15602# Whether we need soft or hard links. 15603LN_S=$lt_LN_S 15604 15605# What is the maximum length of a command? 15606max_cmd_len=$max_cmd_len 15607 15608# Object file suffix (normally "o"). 15609objext=$ac_objext 15610 15611# Executable file suffix (normally ""). 15612exeext=$exeext 15613 15614# whether the shell understands "unset". 15615lt_unset=$lt_unset 15616 15617# turn spaces into newlines. 15618SP2NL=$lt_lt_SP2NL 15619 15620# turn newlines into spaces. 15621NL2SP=$lt_lt_NL2SP 15622 15623# convert \$build file names to \$host format. 15624to_host_file_cmd=$lt_cv_to_host_file_cmd 15625 15626# convert \$build files to toolchain format. 15627to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15628 15629# An object symbol dumper. 15630OBJDUMP=$lt_OBJDUMP 15631 15632# Method to check whether dependent libraries are shared objects. 15633deplibs_check_method=$lt_deplibs_check_method 15634 15635# Command to use when deplibs_check_method = "file_magic". 15636file_magic_cmd=$lt_file_magic_cmd 15637 15638# How to find potential files when deplibs_check_method = "file_magic". 15639file_magic_glob=$lt_file_magic_glob 15640 15641# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15642want_nocaseglob=$lt_want_nocaseglob 15643 15644# DLL creation program. 15645DLLTOOL=$lt_DLLTOOL 15646 15647# Command to associate shared and link libraries. 15648sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15649 15650# The archiver. 15651AR=$lt_AR 15652 15653# Flags to create an archive. 15654AR_FLAGS=$lt_AR_FLAGS 15655 15656# How to feed a file listing to the archiver. 15657archiver_list_spec=$lt_archiver_list_spec 15658 15659# A symbol stripping program. 15660STRIP=$lt_STRIP 15661 15662# Commands used to install an old-style archive. 15663RANLIB=$lt_RANLIB 15664old_postinstall_cmds=$lt_old_postinstall_cmds 15665old_postuninstall_cmds=$lt_old_postuninstall_cmds 15666 15667# Whether to use a lock for old archive extraction. 15668lock_old_archive_extraction=$lock_old_archive_extraction 15669 15670# A C compiler. 15671LTCC=$lt_CC 15672 15673# LTCC compiler flags. 15674LTCFLAGS=$lt_CFLAGS 15675 15676# Take the output of nm and produce a listing of raw symbols and C names. 15677global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15678 15679# Transform the output of nm in a proper C declaration. 15680global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15681 15682# Transform the output of nm into a list of symbols to manually relocate. 15683global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15684 15685# Transform the output of nm in a C name address pair. 15686global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15687 15688# Transform the output of nm in a C name address pair when lib prefix is needed. 15689global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15690 15691# The name lister interface. 15692nm_interface=$lt_lt_cv_nm_interface 15693 15694# Specify filename containing input files for \$NM. 15695nm_file_list_spec=$lt_nm_file_list_spec 15696 15697# The root where to search for dependent libraries,and where our libraries should be installed. 15698lt_sysroot=$lt_sysroot 15699 15700# Command to truncate a binary pipe. 15701lt_truncate_bin=$lt_lt_cv_truncate_bin 15702 15703# The name of the directory that contains temporary libtool files. 15704objdir=$objdir 15705 15706# Used to examine libraries when file_magic_cmd begins with "file". 15707MAGIC_CMD=$MAGIC_CMD 15708 15709# Must we lock files when doing compilation? 15710need_locks=$lt_need_locks 15711 15712# Manifest tool. 15713MANIFEST_TOOL=$lt_MANIFEST_TOOL 15714 15715# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15716DSYMUTIL=$lt_DSYMUTIL 15717 15718# Tool to change global to local symbols on Mac OS X. 15719NMEDIT=$lt_NMEDIT 15720 15721# Tool to manipulate fat objects and archives on Mac OS X. 15722LIPO=$lt_LIPO 15723 15724# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15725OTOOL=$lt_OTOOL 15726 15727# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15728OTOOL64=$lt_OTOOL64 15729 15730# Old archive suffix (normally "a"). 15731libext=$libext 15732 15733# Shared library suffix (normally ".so"). 15734shrext_cmds=$lt_shrext_cmds 15735 15736# The commands to extract the exported symbol list from a shared archive. 15737extract_expsyms_cmds=$lt_extract_expsyms_cmds 15738 15739# Variables whose values should be saved in libtool wrapper scripts and 15740# restored at link time. 15741variables_saved_for_relink=$lt_variables_saved_for_relink 15742 15743# Do we need the "lib" prefix for modules? 15744need_lib_prefix=$need_lib_prefix 15745 15746# Do we need a version for libraries? 15747need_version=$need_version 15748 15749# Library versioning type. 15750version_type=$version_type 15751 15752# Shared library runtime path variable. 15753runpath_var=$runpath_var 15754 15755# Shared library path variable. 15756shlibpath_var=$shlibpath_var 15757 15758# Is shlibpath searched before the hard-coded library search path? 15759shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15760 15761# Format of library name prefix. 15762libname_spec=$lt_libname_spec 15763 15764# List of archive names. First name is the real one, the rest are links. 15765# The last name is the one that the linker finds with -lNAME 15766library_names_spec=$lt_library_names_spec 15767 15768# The coded name of the library, if different from the real name. 15769soname_spec=$lt_soname_spec 15770 15771# Permission mode override for installation of shared libraries. 15772install_override_mode=$lt_install_override_mode 15773 15774# Command to use after installation of a shared archive. 15775postinstall_cmds=$lt_postinstall_cmds 15776 15777# Command to use after uninstallation of a shared archive. 15778postuninstall_cmds=$lt_postuninstall_cmds 15779 15780# Commands used to finish a libtool library installation in a directory. 15781finish_cmds=$lt_finish_cmds 15782 15783# As "finish_cmds", except a single script fragment to be evaled but 15784# not shown. 15785finish_eval=$lt_finish_eval 15786 15787# Whether we should hardcode library paths into libraries. 15788hardcode_into_libs=$hardcode_into_libs 15789 15790# Compile-time system search path for libraries. 15791sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15792 15793# Detected run-time system search path for libraries. 15794sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15795 15796# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15797configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15798 15799# Whether dlopen is supported. 15800dlopen_support=$enable_dlopen 15801 15802# Whether dlopen of programs is supported. 15803dlopen_self=$enable_dlopen_self 15804 15805# Whether dlopen of statically linked programs is supported. 15806dlopen_self_static=$enable_dlopen_self_static 15807 15808# Commands to strip libraries. 15809old_striplib=$lt_old_striplib 15810striplib=$lt_striplib 15811 15812 15813# The linker used to build libraries. 15814LD=$lt_LD 15815 15816# How to create reloadable object files. 15817reload_flag=$lt_reload_flag 15818reload_cmds=$lt_reload_cmds 15819 15820# Commands used to build an old-style archive. 15821old_archive_cmds=$lt_old_archive_cmds 15822 15823# A language specific compiler. 15824CC=$lt_compiler 15825 15826# Is the compiler the GNU compiler? 15827with_gcc=$GCC 15828 15829# Compiler flag to turn off builtin functions. 15830no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15831 15832# Additional compiler flags for building library objects. 15833pic_flag=$lt_lt_prog_compiler_pic 15834 15835# How to pass a linker flag through the compiler. 15836wl=$lt_lt_prog_compiler_wl 15837 15838# Compiler flag to prevent dynamic linking. 15839link_static_flag=$lt_lt_prog_compiler_static 15840 15841# Does compiler simultaneously support -c and -o options? 15842compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15843 15844# Whether or not to add -lc for building shared libraries. 15845build_libtool_need_lc=$archive_cmds_need_lc 15846 15847# Whether or not to disallow shared libs when runtime libs are static. 15848allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15849 15850# Compiler flag to allow reflexive dlopens. 15851export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15852 15853# Compiler flag to generate shared objects directly from archives. 15854whole_archive_flag_spec=$lt_whole_archive_flag_spec 15855 15856# Whether the compiler copes with passing no objects directly. 15857compiler_needs_object=$lt_compiler_needs_object 15858 15859# Create an old-style archive from a shared archive. 15860old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15861 15862# Create a temporary old-style archive to link instead of a shared archive. 15863old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15864 15865# Commands used to build a shared archive. 15866archive_cmds=$lt_archive_cmds 15867archive_expsym_cmds=$lt_archive_expsym_cmds 15868 15869# Commands used to build a loadable module if different from building 15870# a shared archive. 15871module_cmds=$lt_module_cmds 15872module_expsym_cmds=$lt_module_expsym_cmds 15873 15874# Whether we are building with GNU ld or not. 15875with_gnu_ld=$lt_with_gnu_ld 15876 15877# Flag that allows shared libraries with undefined symbols to be built. 15878allow_undefined_flag=$lt_allow_undefined_flag 15879 15880# Flag that enforces no undefined symbols. 15881no_undefined_flag=$lt_no_undefined_flag 15882 15883# Flag to hardcode \$libdir into a binary during linking. 15884# This must work even if \$libdir does not exist 15885hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15886 15887# Whether we need a single "-rpath" flag with a separated argument. 15888hardcode_libdir_separator=$lt_hardcode_libdir_separator 15889 15890# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15891# DIR into the resulting binary. 15892hardcode_direct=$hardcode_direct 15893 15894# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15895# DIR into the resulting binary and the resulting library dependency is 15896# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15897# library is relocated. 15898hardcode_direct_absolute=$hardcode_direct_absolute 15899 15900# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15901# into the resulting binary. 15902hardcode_minus_L=$hardcode_minus_L 15903 15904# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15905# into the resulting binary. 15906hardcode_shlibpath_var=$hardcode_shlibpath_var 15907 15908# Set to "yes" if building a shared library automatically hardcodes DIR 15909# into the library and all subsequent libraries and executables linked 15910# against it. 15911hardcode_automatic=$hardcode_automatic 15912 15913# Set to yes if linker adds runtime paths of dependent libraries 15914# to runtime path list. 15915inherit_rpath=$inherit_rpath 15916 15917# Whether libtool must link a program against all its dependency libraries. 15918link_all_deplibs=$link_all_deplibs 15919 15920# Set to "yes" if exported symbols are required. 15921always_export_symbols=$always_export_symbols 15922 15923# The commands to list exported symbols. 15924export_symbols_cmds=$lt_export_symbols_cmds 15925 15926# Symbols that should not be listed in the preloaded symbols. 15927exclude_expsyms=$lt_exclude_expsyms 15928 15929# Symbols that must always be exported. 15930include_expsyms=$lt_include_expsyms 15931 15932# Commands necessary for linking programs (against libraries) with templates. 15933prelink_cmds=$lt_prelink_cmds 15934 15935# Commands necessary for finishing linking programs. 15936postlink_cmds=$lt_postlink_cmds 15937 15938# Specify filename containing input files. 15939file_list_spec=$lt_file_list_spec 15940 15941# How to hardcode a shared library path into an executable. 15942hardcode_action=$hardcode_action 15943 15944# ### END LIBTOOL CONFIG 15945 15946_LT_EOF 15947 15948 cat <<'_LT_EOF' >> "$cfgfile" 15949 15950# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15951 15952# func_munge_path_list VARIABLE PATH 15953# ----------------------------------- 15954# VARIABLE is name of variable containing _space_ separated list of 15955# directories to be munged by the contents of PATH, which is string 15956# having a format: 15957# "DIR[:DIR]:" 15958# string "DIR[ DIR]" will be prepended to VARIABLE 15959# ":DIR[:DIR]" 15960# string "DIR[ DIR]" will be appended to VARIABLE 15961# "DIRP[:DIRP]::[DIRA:]DIRA" 15962# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15963# "DIRA[ DIRA]" will be appended to VARIABLE 15964# "DIR[:DIR]" 15965# VARIABLE will be replaced by "DIR[ DIR]" 15966func_munge_path_list () 15967{ 15968 case x$2 in 15969 x) 15970 ;; 15971 *:) 15972 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15973 ;; 15974 x:*) 15975 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15976 ;; 15977 *::*) 15978 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15979 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15980 ;; 15981 *) 15982 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15983 ;; 15984 esac 15985} 15986 15987 15988# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15989func_cc_basename () 15990{ 15991 for cc_temp in $*""; do 15992 case $cc_temp in 15993 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15994 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15995 \-*) ;; 15996 *) break;; 15997 esac 15998 done 15999 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16000} 16001 16002 16003# ### END FUNCTIONS SHARED WITH CONFIGURE 16004 16005_LT_EOF 16006 16007 case $host_os in 16008 aix3*) 16009 cat <<\_LT_EOF >> "$cfgfile" 16010# AIX sometimes has problems with the GCC collect2 program. For some 16011# reason, if we set the COLLECT_NAMES environment variable, the problems 16012# vanish in a puff of smoke. 16013if test set != "${COLLECT_NAMES+set}"; then 16014 COLLECT_NAMES= 16015 export COLLECT_NAMES 16016fi 16017_LT_EOF 16018 ;; 16019 esac 16020 16021 16022ltmain=$ac_aux_dir/ltmain.sh 16023 16024 16025 # We use sed instead of cat because bash on DJGPP gets confused if 16026 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16027 # text mode, it properly converts lines to CR/LF. This bash problem 16028 # is reportedly fixed, but why not run on old versions too? 16029 sed '$q' "$ltmain" >> "$cfgfile" \ 16030 || (rm -f "$cfgfile"; exit 1) 16031 16032 mv -f "$cfgfile" "$ofile" || 16033 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16034 chmod +x "$ofile" 16035 16036 ;; 16037 16038 esac 16039done # for ac_tag 16040 16041 16042as_fn_exit 0 16043_ACEOF 16044ac_clean_files=$ac_clean_files_save 16045 16046test $ac_write_fail = 0 || 16047 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16048 16049 16050# configure is writing to config.log, and then calls config.status. 16051# config.status does its own redirection, appending to config.log. 16052# Unfortunately, on DOS this fails, as config.log is still kept open 16053# by configure, so config.status won't be able to write to it; its 16054# output is simply discarded. So we exec the FD to /dev/null, 16055# effectively closing config.log, so it can be properly (re)opened and 16056# appended to by config.status. When coming back to configure, we 16057# need to make the FD available again. 16058if test "$no_create" != yes; then 16059 ac_cs_success=: 16060 ac_config_status_args= 16061 test "$silent" = yes && 16062 ac_config_status_args="$ac_config_status_args --quiet" 16063 exec 5>/dev/null 16064 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16065 exec 5>>config.log 16066 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16067 # would make configure fail if this is the last instruction. 16068 $ac_cs_success || as_fn_exit 1 16069fi 16070if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16072$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16073fi 16074 16075 16076