1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME= 589PACKAGE_TARNAME= 590PACKAGE_VERSION= 591PACKAGE_STRING= 592PACKAGE_BUGREPORT= 593PACKAGE_URL= 594 595ac_unique_file="configure.in" 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_header_list= 633ac_subst_vars='am__EXEEXT_FALSE 634am__EXEEXT_TRUE 635LTLIBOBJS 636LIBOBJS 637USE_EXPAT_FALSE 638USE_EXPAT_TRUE 639EXPAT_LIBS 640EXPAT_CFLAGS 641HAVE_LATEX_FALSE 642HAVE_LATEX_TRUE 643HAVE_LATEX 644LATEX 645HAVE_DOT 646DOT 647DOC_FALSE 648DOC_TRUE 649DOXYGEN 650WITH_MMAP_FALSE 651WITH_MMAP_TRUE 652GETHOSTNAME_LIB 653ALLOCA 654TEST_FALSE 655TEST_TRUE 656WITH_ROLLINGFILE_FALSE 657WITH_ROLLINGFILE_TRUE 658WIN32_FALSE 659WIN32_TRUE 660LDFLAGS_NOUNDEFINED 661CXXCPP 662OTOOL64 663OTOOL 664LIPO 665NMEDIT 666DSYMUTIL 667MANIFEST_TOOL 668RANLIB 669ac_ct_AR 670AR 671DLLTOOL 672OBJDUMP 673NM 674ac_ct_DUMPBIN 675DUMPBIN 676LD 677FGREP 678EGREP 679GREP 680SED 681LIBTOOL 682LN_S 683LEXLIB 684LEX_OUTPUT_ROOT 685LEX 686am__fastdepCXX_FALSE 687am__fastdepCXX_TRUE 688CXXDEPMODE 689ac_ct_CXX 690CXXFLAGS 691CXX 692CPP 693am__fastdepCC_FALSE 694am__fastdepCC_TRUE 695CCDEPMODE 696am__nodep 697AMDEPBACKSLASH 698AMDEP_FALSE 699AMDEP_TRUE 700am__quote 701am__include 702DEPDIR 703OBJEXT 704EXEEXT 705ac_ct_CC 706CPPFLAGS 707LDFLAGS 708CFLAGS 709CC 710YFLAGS 711YACC 712host_os 713host_vendor 714host_cpu 715host 716build_os 717build_vendor 718build_cpu 719build 720AM_BACKSLASH 721AM_DEFAULT_VERBOSITY 722AM_DEFAULT_V 723AM_V 724am__untar 725am__tar 726AMTAR 727am__leading_dot 728SET_MAKE 729AWK 730mkdir_p 731MKDIR_P 732INSTALL_STRIP_PROGRAM 733STRIP 734install_sh 735MAKEINFO 736AUTOHEADER 737AUTOMAKE 738AUTOCONF 739ACLOCAL 740VERSION 741PACKAGE 742CYGPATH_W 743am__isrc 744INSTALL_DATA 745INSTALL_SCRIPT 746INSTALL_PROGRAM 747LT_VERSION 748LOG4C_MICRO_VERSION 749LOG4C_MINOR_VERSION 750LOG4C_MAJOR_VERSION 751target_alias 752host_alias 753build_alias 754LIBS 755ECHO_T 756ECHO_N 757ECHO_C 758DEFS 759mandir 760localedir 761libdir 762psdir 763pdfdir 764dvidir 765htmldir 766infodir 767docdir 768oldincludedir 769includedir 770localstatedir 771sharedstatedir 772sysconfdir 773datadir 774datarootdir 775libexecdir 776sbindir 777bindir 778program_transform_name 779prefix 780exec_prefix 781PACKAGE_URL 782PACKAGE_BUGREPORT 783PACKAGE_STRING 784PACKAGE_VERSION 785PACKAGE_TARNAME 786PACKAGE_NAME 787PATH_SEPARATOR 788SHELL' 789ac_subst_files='' 790ac_user_opts=' 791enable_option_checking 792enable_silent_rules 793enable_dependency_tracking 794enable_shared 795enable_static 796with_pic 797enable_fast_install 798with_gnu_ld 799with_sysroot 800enable_libtool_lock 801enable_debug 802enable_reread 803enable_test 804enable_doc 805enable_constructors 806with_expat 807with_expat_prefix 808enable_expattest 809' 810 ac_precious_vars='build_alias 811host_alias 812target_alias 813YACC 814YFLAGS 815CC 816CFLAGS 817LDFLAGS 818LIBS 819CPPFLAGS 820CPP 821CXX 822CXXFLAGS 823CCC 824CXXCPP' 825 826 827# Initialize some variables set by options. 828ac_init_help= 829ac_init_version=false 830ac_unrecognized_opts= 831ac_unrecognized_sep= 832# The variables have the same names as the options, with 833# dashes changed to underlines. 834cache_file=/dev/null 835exec_prefix=NONE 836no_create= 837no_recursion= 838prefix=NONE 839program_prefix=NONE 840program_suffix=NONE 841program_transform_name=s,x,x, 842silent= 843site= 844srcdir= 845verbose= 846x_includes=NONE 847x_libraries=NONE 848 849# Installation directory options. 850# These are left unexpanded so users can "make install exec_prefix=/foo" 851# and all the variables that are supposed to be based on exec_prefix 852# by default will actually change. 853# Use braces instead of parens because sh, perl, etc. also accept them. 854# (The list follows the same order as the GNU Coding Standards.) 855bindir='${exec_prefix}/bin' 856sbindir='${exec_prefix}/sbin' 857libexecdir='${exec_prefix}/libexec' 858datarootdir='${prefix}/share' 859datadir='${datarootdir}' 860sysconfdir='${prefix}/etc' 861sharedstatedir='${prefix}/com' 862localstatedir='${prefix}/var' 863includedir='${prefix}/include' 864oldincludedir='/usr/include' 865docdir='${datarootdir}/doc/${PACKAGE}' 866infodir='${datarootdir}/info' 867htmldir='${docdir}' 868dvidir='${docdir}' 869pdfdir='${docdir}' 870psdir='${docdir}' 871libdir='${exec_prefix}/lib' 872localedir='${datarootdir}/locale' 873mandir='${datarootdir}/man' 874 875ac_prev= 876ac_dashdash= 877for ac_option 878do 879 # If the previous option needs an argument, assign it. 880 if test -n "$ac_prev"; then 881 eval $ac_prev=\$ac_option 882 ac_prev= 883 continue 884 fi 885 886 case $ac_option in 887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 888 *=) ac_optarg= ;; 889 *) ac_optarg=yes ;; 890 esac 891 892 # Accept the important Cygnus configure options, so we can diagnose typos. 893 894 case $ac_dashdash$ac_option in 895 --) 896 ac_dashdash=yes ;; 897 898 -bindir | --bindir | --bindi | --bind | --bin | --bi) 899 ac_prev=bindir ;; 900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 901 bindir=$ac_optarg ;; 902 903 -build | --build | --buil | --bui | --bu) 904 ac_prev=build_alias ;; 905 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 906 build_alias=$ac_optarg ;; 907 908 -cache-file | --cache-file | --cache-fil | --cache-fi \ 909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 910 ac_prev=cache_file ;; 911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 913 cache_file=$ac_optarg ;; 914 915 --config-cache | -C) 916 cache_file=config.cache ;; 917 918 -datadir | --datadir | --datadi | --datad) 919 ac_prev=datadir ;; 920 -datadir=* | --datadir=* | --datadi=* | --datad=*) 921 datadir=$ac_optarg ;; 922 923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 924 | --dataroo | --dataro | --datar) 925 ac_prev=datarootdir ;; 926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 928 datarootdir=$ac_optarg ;; 929 930 -disable-* | --disable-*) 931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 932 # Reject names that are not valid shell variable names. 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 934 as_fn_error $? "invalid feature name: $ac_useropt" 935 ac_useropt_orig=$ac_useropt 936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 937 case $ac_user_opts in 938 *" 939"enable_$ac_useropt" 940"*) ;; 941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 942 ac_unrecognized_sep=', ';; 943 esac 944 eval enable_$ac_useropt=no ;; 945 946 -docdir | --docdir | --docdi | --doc | --do) 947 ac_prev=docdir ;; 948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 949 docdir=$ac_optarg ;; 950 951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 952 ac_prev=dvidir ;; 953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 954 dvidir=$ac_optarg ;; 955 956 -enable-* | --enable-*) 957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 958 # Reject names that are not valid shell variable names. 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 960 as_fn_error $? "invalid feature name: $ac_useropt" 961 ac_useropt_orig=$ac_useropt 962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 963 case $ac_user_opts in 964 *" 965"enable_$ac_useropt" 966"*) ;; 967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 968 ac_unrecognized_sep=', ';; 969 esac 970 eval enable_$ac_useropt=\$ac_optarg ;; 971 972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 974 | --exec | --exe | --ex) 975 ac_prev=exec_prefix ;; 976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 978 | --exec=* | --exe=* | --ex=*) 979 exec_prefix=$ac_optarg ;; 980 981 -gas | --gas | --ga | --g) 982 # Obsolete; use --with-gas. 983 with_gas=yes ;; 984 985 -help | --help | --hel | --he | -h) 986 ac_init_help=long ;; 987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 988 ac_init_help=recursive ;; 989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 990 ac_init_help=short ;; 991 992 -host | --host | --hos | --ho) 993 ac_prev=host_alias ;; 994 -host=* | --host=* | --hos=* | --ho=*) 995 host_alias=$ac_optarg ;; 996 997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 998 ac_prev=htmldir ;; 999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1000 | --ht=*) 1001 htmldir=$ac_optarg ;; 1002 1003 -includedir | --includedir | --includedi | --included | --include \ 1004 | --includ | --inclu | --incl | --inc) 1005 ac_prev=includedir ;; 1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1007 | --includ=* | --inclu=* | --incl=* | --inc=*) 1008 includedir=$ac_optarg ;; 1009 1010 -infodir | --infodir | --infodi | --infod | --info | --inf) 1011 ac_prev=infodir ;; 1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1013 infodir=$ac_optarg ;; 1014 1015 -libdir | --libdir | --libdi | --libd) 1016 ac_prev=libdir ;; 1017 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1018 libdir=$ac_optarg ;; 1019 1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1021 | --libexe | --libex | --libe) 1022 ac_prev=libexecdir ;; 1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1024 | --libexe=* | --libex=* | --libe=*) 1025 libexecdir=$ac_optarg ;; 1026 1027 -localedir | --localedir | --localedi | --localed | --locale) 1028 ac_prev=localedir ;; 1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1030 localedir=$ac_optarg ;; 1031 1032 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1033 | --localstate | --localstat | --localsta | --localst | --locals) 1034 ac_prev=localstatedir ;; 1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1037 localstatedir=$ac_optarg ;; 1038 1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1040 ac_prev=mandir ;; 1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1042 mandir=$ac_optarg ;; 1043 1044 -nfp | --nfp | --nf) 1045 # Obsolete; use --without-fp. 1046 with_fp=no ;; 1047 1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1049 | --no-cr | --no-c | -n) 1050 no_create=yes ;; 1051 1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1054 no_recursion=yes ;; 1055 1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1058 | --oldin | --oldi | --old | --ol | --o) 1059 ac_prev=oldincludedir ;; 1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1063 oldincludedir=$ac_optarg ;; 1064 1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1066 ac_prev=prefix ;; 1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1068 prefix=$ac_optarg ;; 1069 1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1071 | --program-pre | --program-pr | --program-p) 1072 ac_prev=program_prefix ;; 1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1075 program_prefix=$ac_optarg ;; 1076 1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1078 | --program-suf | --program-su | --program-s) 1079 ac_prev=program_suffix ;; 1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1082 program_suffix=$ac_optarg ;; 1083 1084 -program-transform-name | --program-transform-name \ 1085 | --program-transform-nam | --program-transform-na \ 1086 | --program-transform-n | --program-transform- \ 1087 | --program-transform | --program-transfor \ 1088 | --program-transfo | --program-transf \ 1089 | --program-trans | --program-tran \ 1090 | --progr-tra | --program-tr | --program-t) 1091 ac_prev=program_transform_name ;; 1092 -program-transform-name=* | --program-transform-name=* \ 1093 | --program-transform-nam=* | --program-transform-na=* \ 1094 | --program-transform-n=* | --program-transform-=* \ 1095 | --program-transform=* | --program-transfor=* \ 1096 | --program-transfo=* | --program-transf=* \ 1097 | --program-trans=* | --program-tran=* \ 1098 | --progr-tra=* | --program-tr=* | --program-t=*) 1099 program_transform_name=$ac_optarg ;; 1100 1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1102 ac_prev=pdfdir ;; 1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1104 pdfdir=$ac_optarg ;; 1105 1106 -psdir | --psdir | --psdi | --psd | --ps) 1107 ac_prev=psdir ;; 1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1109 psdir=$ac_optarg ;; 1110 1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1112 | -silent | --silent | --silen | --sile | --sil) 1113 silent=yes ;; 1114 1115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1116 ac_prev=sbindir ;; 1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1118 | --sbi=* | --sb=*) 1119 sbindir=$ac_optarg ;; 1120 1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1123 | --sharedst | --shareds | --shared | --share | --shar \ 1124 | --sha | --sh) 1125 ac_prev=sharedstatedir ;; 1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1129 | --sha=* | --sh=*) 1130 sharedstatedir=$ac_optarg ;; 1131 1132 -site | --site | --sit) 1133 ac_prev=site ;; 1134 -site=* | --site=* | --sit=*) 1135 site=$ac_optarg ;; 1136 1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1138 ac_prev=srcdir ;; 1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1140 srcdir=$ac_optarg ;; 1141 1142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1143 | --syscon | --sysco | --sysc | --sys | --sy) 1144 ac_prev=sysconfdir ;; 1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1147 sysconfdir=$ac_optarg ;; 1148 1149 -target | --target | --targe | --targ | --tar | --ta | --t) 1150 ac_prev=target_alias ;; 1151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1152 target_alias=$ac_optarg ;; 1153 1154 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1155 verbose=yes ;; 1156 1157 -version | --version | --versio | --versi | --vers | -V) 1158 ac_init_version=: ;; 1159 1160 -with-* | --with-*) 1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1162 # Reject names that are not valid shell variable names. 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1164 as_fn_error $? "invalid package name: $ac_useropt" 1165 ac_useropt_orig=$ac_useropt 1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1167 case $ac_user_opts in 1168 *" 1169"with_$ac_useropt" 1170"*) ;; 1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1172 ac_unrecognized_sep=', ';; 1173 esac 1174 eval with_$ac_useropt=\$ac_optarg ;; 1175 1176 -without-* | --without-*) 1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1178 # Reject names that are not valid shell variable names. 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1180 as_fn_error $? "invalid package name: $ac_useropt" 1181 ac_useropt_orig=$ac_useropt 1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1183 case $ac_user_opts in 1184 *" 1185"with_$ac_useropt" 1186"*) ;; 1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1188 ac_unrecognized_sep=', ';; 1189 esac 1190 eval with_$ac_useropt=no ;; 1191 1192 --x) 1193 # Obsolete; use --with-x. 1194 with_x=yes ;; 1195 1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1197 | --x-incl | --x-inc | --x-in | --x-i) 1198 ac_prev=x_includes ;; 1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1201 x_includes=$ac_optarg ;; 1202 1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1205 ac_prev=x_libraries ;; 1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1208 x_libraries=$ac_optarg ;; 1209 1210 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1211Try \`$0 --help' for more information" 1212 ;; 1213 1214 *=*) 1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1216 # Reject names that are not valid shell variable names. 1217 case $ac_envvar in #( 1218 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1219 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1220 esac 1221 eval $ac_envvar=\$ac_optarg 1222 export $ac_envvar ;; 1223 1224 *) 1225 # FIXME: should be removed in autoconf 3.0. 1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1229 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1230 ;; 1231 1232 esac 1233done 1234 1235if test -n "$ac_prev"; then 1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1237 as_fn_error $? "missing argument to $ac_option" 1238fi 1239 1240if test -n "$ac_unrecognized_opts"; then 1241 case $enable_option_checking in 1242 no) ;; 1243 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1245 esac 1246fi 1247 1248# Check all directory arguments for consistency. 1249for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1250 datadir sysconfdir sharedstatedir localstatedir includedir \ 1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1252 libdir localedir mandir 1253do 1254 eval ac_val=\$$ac_var 1255 # Remove trailing slashes. 1256 case $ac_val in 1257 */ ) 1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1259 eval $ac_var=\$ac_val;; 1260 esac 1261 # Be sure to have absolute directory names. 1262 case $ac_val in 1263 [\\/$]* | ?:[\\/]* ) continue;; 1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1265 esac 1266 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1267done 1268 1269# There might be people who depend on the old broken behavior: `$host' 1270# used to hold the argument of --host etc. 1271# FIXME: To remove some day. 1272build=$build_alias 1273host=$host_alias 1274target=$target_alias 1275 1276# FIXME: To remove some day. 1277if test "x$host_alias" != x; then 1278 if test "x$build_alias" = x; then 1279 cross_compiling=maybe 1280 elif test "x$build_alias" != "x$host_alias"; then 1281 cross_compiling=yes 1282 fi 1283fi 1284 1285ac_tool_prefix= 1286test -n "$host_alias" && ac_tool_prefix=$host_alias- 1287 1288test "$silent" = yes && exec 6>/dev/null 1289 1290 1291ac_pwd=`pwd` && test -n "$ac_pwd" && 1292ac_ls_di=`ls -di .` && 1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1294 as_fn_error $? "working directory cannot be determined" 1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1296 as_fn_error $? "pwd does not report name of working directory" 1297 1298 1299# Find the source files, if location was not specified. 1300if test -z "$srcdir"; then 1301 ac_srcdir_defaulted=yes 1302 # Try the directory containing this script, then the parent directory. 1303 ac_confdir=`$as_dirname -- "$as_myself" || 1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1305 X"$as_myself" : 'X\(//\)[^/]' \| \ 1306 X"$as_myself" : 'X\(//\)$' \| \ 1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1308$as_echo X"$as_myself" | 1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\/\)[^/].*/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\/\)$/{ 1318 s//\1/ 1319 q 1320 } 1321 /^X\(\/\).*/{ 1322 s//\1/ 1323 q 1324 } 1325 s/.*/./; q'` 1326 srcdir=$ac_confdir 1327 if test ! -r "$srcdir/$ac_unique_file"; then 1328 srcdir=.. 1329 fi 1330else 1331 ac_srcdir_defaulted=no 1332fi 1333if test ! -r "$srcdir/$ac_unique_file"; then 1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1335 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1336fi 1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1338ac_abs_confdir=`( 1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1340 pwd)` 1341# When building in place, set srcdir=. 1342if test "$ac_abs_confdir" = "$ac_pwd"; then 1343 srcdir=. 1344fi 1345# Remove unnecessary trailing slashes from srcdir. 1346# Double slashes in file names in object file debugging info 1347# mess up M-x gdb in Emacs. 1348case $srcdir in 1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1350esac 1351for ac_var in $ac_precious_vars; do 1352 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1353 eval ac_env_${ac_var}_value=\$${ac_var} 1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1355 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1356done 1357 1358# 1359# Report the --help message. 1360# 1361if test "$ac_init_help" = "long"; then 1362 # Omit some internal or obsolete options to make the list less imposing. 1363 # This message is too long to be a string in the A/UX 3.1 sh. 1364 cat <<_ACEOF 1365\`configure' configures this package to adapt to many kinds of systems. 1366 1367Usage: $0 [OPTION]... [VAR=VALUE]... 1368 1369To assign environment variables (e.g., CC, CFLAGS...), specify them as 1370VAR=VALUE. See below for descriptions of some of the useful variables. 1371 1372Defaults for the options are specified in brackets. 1373 1374Configuration: 1375 -h, --help display this help and exit 1376 --help=short display options specific to this package 1377 --help=recursive display the short help of all the included packages 1378 -V, --version display version information and exit 1379 -q, --quiet, --silent do not print \`checking ...' messages 1380 --cache-file=FILE cache test results in FILE [disabled] 1381 -C, --config-cache alias for \`--cache-file=config.cache' 1382 -n, --no-create do not create output files 1383 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1384 1385Installation directories: 1386 --prefix=PREFIX install architecture-independent files in PREFIX 1387 [$ac_default_prefix] 1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1389 [PREFIX] 1390 1391By default, \`make install' will install all the files in 1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1393an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1394for instance \`--prefix=\$HOME'. 1395 1396For better control, use the options below. 1397 1398Fine tuning of the installation directories: 1399 --bindir=DIR user executables [EPREFIX/bin] 1400 --sbindir=DIR system admin executables [EPREFIX/sbin] 1401 --libexecdir=DIR program executables [EPREFIX/libexec] 1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1405 --libdir=DIR object code libraries [EPREFIX/lib] 1406 --includedir=DIR C header files [PREFIX/include] 1407 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1410 --infodir=DIR info documentation [DATAROOTDIR/info] 1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1412 --mandir=DIR man documentation [DATAROOTDIR/man] 1413 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1414 --htmldir=DIR html documentation [DOCDIR] 1415 --dvidir=DIR dvi documentation [DOCDIR] 1416 --pdfdir=DIR pdf documentation [DOCDIR] 1417 --psdir=DIR ps documentation [DOCDIR] 1418_ACEOF 1419 1420 cat <<\_ACEOF 1421 1422Program names: 1423 --program-prefix=PREFIX prepend PREFIX to installed program names 1424 --program-suffix=SUFFIX append SUFFIX to installed program names 1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1426 1427System types: 1428 --build=BUILD configure for building on BUILD [guessed] 1429 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1430_ACEOF 1431fi 1432 1433if test -n "$ac_init_help"; then 1434 1435 cat <<\_ACEOF 1436 1437Optional Features: 1438 --disable-option-checking ignore unrecognized --enable/--with options 1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1441 --enable-silent-rules less verbose build output (undo: "make V=1") 1442 --disable-silent-rules verbose build output (undo: "make V=0") 1443 --enable-dependency-tracking 1444 do not reject slow dependency extractors 1445 --disable-dependency-tracking 1446 speeds up one-time build 1447 --enable-shared[=PKGS] build shared libraries [default=yes] 1448 --enable-static[=PKGS] build static libraries [default=yes] 1449 --enable-fast-install[=PKGS] 1450 optimize for fast installation [default=yes] 1451 --disable-libtool-lock avoid locking (might break parallel builds) 1452 --enable-debug LOG4C: turn on debugging (default=no) 1453 --enable-reread LOG4C: turn on re-read of log4crc file(default=no)i 1454 --enable-test LOG4C: compile test programs (default=no) 1455 --enable-doc LOG4C: create documentation with 1456 doxygen--html/man/pdf (default=no) 1457 --enable-constructors LOG4C: build with initialization constructors 1458 [default=no] 1459 --disable-expattest LOG4C: Do not try to compile and run a test EXPAT 1460 program. (default is no). If without-expat is set to 1461 yes this option has no effect. 1462 1463Optional Packages: 1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1466 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1467 both] 1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1469 --with-sysroot=DIR Search for dependent libraries within DIR 1470 (or the compiler's sysroot if not specified). 1471 --without-expat LOG4C: build without expat (default=no). Set this 1472 option to yes if you do not want Log4C to use expat 1473 for parsing the configuration file. If without-expat 1474 is set to yes then none of the other options related 1475 to expat have any effect and Log4C uses some bundled 1476 yacc/lex code for parsing it's configuration file. 1477 --with-expat-prefix=PFX LOG4C: Prefix where EXPAT is installed (defaults to 1478 just looking in the standard library locations). If 1479 --without-expat is set to yes then this option has 1480 no effect) 1481 1482Some influential environment variables: 1483 YACC The `Yet Another Compiler Compiler' implementation to use. 1484 Defaults to the first program found out of: `bison -y', `byacc', 1485 `yacc'. 1486 YFLAGS The list of arguments that will be passed by default to $YACC. 1487 This script will default YFLAGS to the empty string to avoid a 1488 default value of `-d' given by some make applications. 1489 CC C compiler command 1490 CFLAGS C compiler flags 1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1492 nonstandard directory <lib dir> 1493 LIBS libraries to pass to the linker, e.g. -l<library> 1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1495 you have headers in a nonstandard directory <include dir> 1496 CPP C preprocessor 1497 CXX C++ compiler command 1498 CXXFLAGS C++ compiler flags 1499 CXXCPP C++ preprocessor 1500 1501Use these variables to override the choices made by `configure' or to help 1502it to find libraries and programs with nonstandard names/locations. 1503 1504Report bugs to the package provider. 1505_ACEOF 1506ac_status=$? 1507fi 1508 1509if test "$ac_init_help" = "recursive"; then 1510 # If there are subdirs, report their specific --help. 1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1512 test -d "$ac_dir" || 1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1514 continue 1515 ac_builddir=. 1516 1517case "$ac_dir" in 1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519*) 1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1521 # A ".." for each directory in $ac_dir_suffix. 1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1523 case $ac_top_builddir_sub in 1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1526 esac ;; 1527esac 1528ac_abs_top_builddir=$ac_pwd 1529ac_abs_builddir=$ac_pwd$ac_dir_suffix 1530# for backward compatibility: 1531ac_top_builddir=$ac_top_build_prefix 1532 1533case $srcdir in 1534 .) # We are building in place. 1535 ac_srcdir=. 1536 ac_top_srcdir=$ac_top_builddir_sub 1537 ac_abs_top_srcdir=$ac_pwd ;; 1538 [\\/]* | ?:[\\/]* ) # Absolute name. 1539 ac_srcdir=$srcdir$ac_dir_suffix; 1540 ac_top_srcdir=$srcdir 1541 ac_abs_top_srcdir=$srcdir ;; 1542 *) # Relative name. 1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1544 ac_top_srcdir=$ac_top_build_prefix$srcdir 1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1546esac 1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1548 1549 cd "$ac_dir" || { ac_status=$?; continue; } 1550 # Check for guested configure. 1551 if test -f "$ac_srcdir/configure.gnu"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1554 elif test -f "$ac_srcdir/configure"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure" --help=recursive 1557 else 1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1559 fi || ac_status=$? 1560 cd "$ac_pwd" || { ac_status=$?; break; } 1561 done 1562fi 1563 1564test -n "$ac_init_help" && exit $ac_status 1565if $ac_init_version; then 1566 cat <<\_ACEOF 1567configure 1568generated by GNU Autoconf 2.69 1569 1570Copyright (C) 2012 Free Software Foundation, Inc. 1571This configure script is free software; the Free Software Foundation 1572gives unlimited permission to copy, distribute and modify it. 1573_ACEOF 1574 exit 1575fi 1576 1577## ------------------------ ## 1578## Autoconf initialization. ## 1579## ------------------------ ## 1580 1581# ac_fn_c_try_compile LINENO 1582# -------------------------- 1583# Try to compile conftest.$ac_ext, and return whether this succeeded. 1584ac_fn_c_try_compile () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 rm -f conftest.$ac_objext 1588 if { { ac_try="$ac_compile" 1589case "(($ac_try" in 1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1591 *) ac_try_echo=$ac_try;; 1592esac 1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1594$as_echo "$ac_try_echo"; } >&5 1595 (eval "$ac_compile") 2>conftest.err 1596 ac_status=$? 1597 if test -s conftest.err; then 1598 grep -v '^ *+' conftest.err >conftest.er1 1599 cat conftest.er1 >&5 1600 mv -f conftest.er1 conftest.err 1601 fi 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } && { 1604 test -z "$ac_c_werror_flag" || 1605 test ! -s conftest.err 1606 } && test -s conftest.$ac_objext; then : 1607 ac_retval=0 1608else 1609 $as_echo "$as_me: failed program was:" >&5 1610sed 's/^/| /' conftest.$ac_ext >&5 1611 1612 ac_retval=1 1613fi 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615 as_fn_set_status $ac_retval 1616 1617} # ac_fn_c_try_compile 1618 1619# ac_fn_c_try_cpp LINENO 1620# ---------------------- 1621# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1622ac_fn_c_try_cpp () 1623{ 1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1625 if { { ac_try="$ac_cpp conftest.$ac_ext" 1626case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629esac 1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631$as_echo "$ac_try_echo"; } >&5 1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1633 ac_status=$? 1634 if test -s conftest.err; then 1635 grep -v '^ *+' conftest.err >conftest.er1 1636 cat conftest.er1 >&5 1637 mv -f conftest.er1 conftest.err 1638 fi 1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1640 test $ac_status = 0; } > conftest.i && { 1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1642 test ! -s conftest.err 1643 }; then : 1644 ac_retval=0 1645else 1646 $as_echo "$as_me: failed program was:" >&5 1647sed 's/^/| /' conftest.$ac_ext >&5 1648 1649 ac_retval=1 1650fi 1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1652 as_fn_set_status $ac_retval 1653 1654} # ac_fn_c_try_cpp 1655 1656# ac_fn_cxx_try_compile LINENO 1657# ---------------------------- 1658# Try to compile conftest.$ac_ext, and return whether this succeeded. 1659ac_fn_cxx_try_compile () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 rm -f conftest.$ac_objext 1663 if { { ac_try="$ac_compile" 1664case "(($ac_try" in 1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1666 *) ac_try_echo=$ac_try;; 1667esac 1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1669$as_echo "$ac_try_echo"; } >&5 1670 (eval "$ac_compile") 2>conftest.err 1671 ac_status=$? 1672 if test -s conftest.err; then 1673 grep -v '^ *+' conftest.err >conftest.er1 1674 cat conftest.er1 >&5 1675 mv -f conftest.er1 conftest.err 1676 fi 1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1678 test $ac_status = 0; } && { 1679 test -z "$ac_cxx_werror_flag" || 1680 test ! -s conftest.err 1681 } && test -s conftest.$ac_objext; then : 1682 ac_retval=0 1683else 1684 $as_echo "$as_me: failed program was:" >&5 1685sed 's/^/| /' conftest.$ac_ext >&5 1686 1687 ac_retval=1 1688fi 1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1690 as_fn_set_status $ac_retval 1691 1692} # ac_fn_cxx_try_compile 1693 1694# ac_fn_c_try_link LINENO 1695# ----------------------- 1696# Try to link conftest.$ac_ext, and return whether this succeeded. 1697ac_fn_c_try_link () 1698{ 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 rm -f conftest.$ac_objext conftest$ac_exeext 1701 if { { ac_try="$ac_link" 1702case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707$as_echo "$ac_try_echo"; } >&5 1708 (eval "$ac_link") 2>conftest.err 1709 ac_status=$? 1710 if test -s conftest.err; then 1711 grep -v '^ *+' conftest.err >conftest.er1 1712 cat conftest.er1 >&5 1713 mv -f conftest.er1 conftest.err 1714 fi 1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1716 test $ac_status = 0; } && { 1717 test -z "$ac_c_werror_flag" || 1718 test ! -s conftest.err 1719 } && test -s conftest$ac_exeext && { 1720 test "$cross_compiling" = yes || 1721 test -x conftest$ac_exeext 1722 }; then : 1723 ac_retval=0 1724else 1725 $as_echo "$as_me: failed program was:" >&5 1726sed 's/^/| /' conftest.$ac_ext >&5 1727 1728 ac_retval=1 1729fi 1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1732 # interfere with the next link command; also delete a directory that is 1733 # left behind by Apple's compiler. We do this before executing the actions. 1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 as_fn_set_status $ac_retval 1737 1738} # ac_fn_c_try_link 1739 1740# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1741# ------------------------------------------------------- 1742# Tests whether HEADER exists and can be compiled using the include files in 1743# INCLUDES, setting the cache variable VAR accordingly. 1744ac_fn_c_check_header_compile () 1745{ 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1748$as_echo_n "checking for $2... " >&6; } 1749if eval \${$3+:} false; then : 1750 $as_echo_n "(cached) " >&6 1751else 1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1753/* end confdefs.h. */ 1754$4 1755#include <$2> 1756_ACEOF 1757if ac_fn_c_try_compile "$LINENO"; then : 1758 eval "$3=yes" 1759else 1760 eval "$3=no" 1761fi 1762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1763fi 1764eval ac_res=\$$3 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1766$as_echo "$ac_res" >&6; } 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1768 1769} # ac_fn_c_check_header_compile 1770 1771# ac_fn_c_try_run LINENO 1772# ---------------------- 1773# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1774# that executables *can* be run. 1775ac_fn_c_try_run () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 if { { ac_try="$ac_link" 1779case "(($ac_try" in 1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1781 *) ac_try_echo=$ac_try;; 1782esac 1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1784$as_echo "$ac_try_echo"; } >&5 1785 (eval "$ac_link") 2>&5 1786 ac_status=$? 1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1789 { { case "(($ac_try" in 1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1791 *) ac_try_echo=$ac_try;; 1792esac 1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1794$as_echo "$ac_try_echo"; } >&5 1795 (eval "$ac_try") 2>&5 1796 ac_status=$? 1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1798 test $ac_status = 0; }; }; then : 1799 ac_retval=0 1800else 1801 $as_echo "$as_me: program exited with status $ac_status" >&5 1802 $as_echo "$as_me: failed program was:" >&5 1803sed 's/^/| /' conftest.$ac_ext >&5 1804 1805 ac_retval=$ac_status 1806fi 1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1809 as_fn_set_status $ac_retval 1810 1811} # ac_fn_c_try_run 1812 1813# ac_fn_c_check_func LINENO FUNC VAR 1814# ---------------------------------- 1815# Tests whether FUNC exists, setting the cache variable VAR accordingly 1816ac_fn_c_check_func () 1817{ 1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1820$as_echo_n "checking for $2... " >&6; } 1821if eval \${$3+:} false; then : 1822 $as_echo_n "(cached) " >&6 1823else 1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1825/* end confdefs.h. */ 1826/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1828#define $2 innocuous_$2 1829 1830/* System header to define __stub macros and hopefully few prototypes, 1831 which can conflict with char $2 (); below. 1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1833 <limits.h> exists even on freestanding compilers. */ 1834 1835#ifdef __STDC__ 1836# include <limits.h> 1837#else 1838# include <assert.h> 1839#endif 1840 1841#undef $2 1842 1843/* Override any GCC internal prototype to avoid an error. 1844 Use char because int might match the return type of a GCC 1845 builtin and then its argument prototype would still apply. */ 1846#ifdef __cplusplus 1847extern "C" 1848#endif 1849char $2 (); 1850/* The GNU C library defines this for functions which it implements 1851 to always fail with ENOSYS. Some functions are actually named 1852 something starting with __ and the normal name is an alias. */ 1853#if defined __stub_$2 || defined __stub___$2 1854choke me 1855#endif 1856 1857int 1858main () 1859{ 1860return $2 (); 1861 ; 1862 return 0; 1863} 1864_ACEOF 1865if ac_fn_c_try_link "$LINENO"; then : 1866 eval "$3=yes" 1867else 1868 eval "$3=no" 1869fi 1870rm -f core conftest.err conftest.$ac_objext \ 1871 conftest$ac_exeext conftest.$ac_ext 1872fi 1873eval ac_res=\$$3 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1875$as_echo "$ac_res" >&6; } 1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1877 1878} # ac_fn_c_check_func 1879 1880# ac_fn_cxx_try_cpp LINENO 1881# ------------------------ 1882# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1883ac_fn_cxx_try_cpp () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 if { { ac_try="$ac_cpp conftest.$ac_ext" 1887case "(($ac_try" in 1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1889 *) ac_try_echo=$ac_try;; 1890esac 1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1892$as_echo "$ac_try_echo"; } >&5 1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1894 ac_status=$? 1895 if test -s conftest.err; then 1896 grep -v '^ *+' conftest.err >conftest.er1 1897 cat conftest.er1 >&5 1898 mv -f conftest.er1 conftest.err 1899 fi 1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1901 test $ac_status = 0; } > conftest.i && { 1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1903 test ! -s conftest.err 1904 }; then : 1905 ac_retval=0 1906else 1907 $as_echo "$as_me: failed program was:" >&5 1908sed 's/^/| /' conftest.$ac_ext >&5 1909 1910 ac_retval=1 1911fi 1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1913 as_fn_set_status $ac_retval 1914 1915} # ac_fn_cxx_try_cpp 1916 1917# ac_fn_cxx_try_link LINENO 1918# ------------------------- 1919# Try to link conftest.$ac_ext, and return whether this succeeded. 1920ac_fn_cxx_try_link () 1921{ 1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1923 rm -f conftest.$ac_objext conftest$ac_exeext 1924 if { { ac_try="$ac_link" 1925case "(($ac_try" in 1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1927 *) ac_try_echo=$ac_try;; 1928esac 1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1930$as_echo "$ac_try_echo"; } >&5 1931 (eval "$ac_link") 2>conftest.err 1932 ac_status=$? 1933 if test -s conftest.err; then 1934 grep -v '^ *+' conftest.err >conftest.er1 1935 cat conftest.er1 >&5 1936 mv -f conftest.er1 conftest.err 1937 fi 1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1939 test $ac_status = 0; } && { 1940 test -z "$ac_cxx_werror_flag" || 1941 test ! -s conftest.err 1942 } && test -s conftest$ac_exeext && { 1943 test "$cross_compiling" = yes || 1944 test -x conftest$ac_exeext 1945 }; then : 1946 ac_retval=0 1947else 1948 $as_echo "$as_me: failed program was:" >&5 1949sed 's/^/| /' conftest.$ac_ext >&5 1950 1951 ac_retval=1 1952fi 1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1955 # interfere with the next link command; also delete a directory that is 1956 # left behind by Apple's compiler. We do this before executing the actions. 1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1959 as_fn_set_status $ac_retval 1960 1961} # ac_fn_cxx_try_link 1962 1963# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1964# ------------------------------------------------------- 1965# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1966# the include files in INCLUDES and setting the cache variable VAR 1967# accordingly. 1968ac_fn_c_check_header_mongrel () 1969{ 1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1971 if eval \${$3+:} false; then : 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1973$as_echo_n "checking for $2... " >&6; } 1974if eval \${$3+:} false; then : 1975 $as_echo_n "(cached) " >&6 1976fi 1977eval ac_res=\$$3 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1979$as_echo "$ac_res" >&6; } 1980else 1981 # Is the header compilable? 1982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1983$as_echo_n "checking $2 usability... " >&6; } 1984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1985/* end confdefs.h. */ 1986$4 1987#include <$2> 1988_ACEOF 1989if ac_fn_c_try_compile "$LINENO"; then : 1990 ac_header_compiler=yes 1991else 1992 ac_header_compiler=no 1993fi 1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1996$as_echo "$ac_header_compiler" >&6; } 1997 1998# Is the header present? 1999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2000$as_echo_n "checking $2 presence... " >&6; } 2001cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002/* end confdefs.h. */ 2003#include <$2> 2004_ACEOF 2005if ac_fn_c_try_cpp "$LINENO"; then : 2006 ac_header_preproc=yes 2007else 2008 ac_header_preproc=no 2009fi 2010rm -f conftest.err conftest.i conftest.$ac_ext 2011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2012$as_echo "$ac_header_preproc" >&6; } 2013 2014# So? What about this header? 2015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2016 yes:no: ) 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2018$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2020$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2021 ;; 2022 no:yes:* ) 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2024$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2026$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2028$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2030$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2032$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2033 ;; 2034esac 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2036$as_echo_n "checking for $2... " >&6; } 2037if eval \${$3+:} false; then : 2038 $as_echo_n "(cached) " >&6 2039else 2040 eval "$3=\$ac_header_compiler" 2041fi 2042eval ac_res=\$$3 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2044$as_echo "$ac_res" >&6; } 2045fi 2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2047 2048} # ac_fn_c_check_header_mongrel 2049 2050# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2051# --------------------------------------------- 2052# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2053# accordingly. 2054ac_fn_c_check_decl () 2055{ 2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2057 as_decl_name=`echo $2|sed 's/ *(.*//'` 2058 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2060$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2061if eval \${$3+:} false; then : 2062 $as_echo_n "(cached) " >&6 2063else 2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2065/* end confdefs.h. */ 2066$4 2067int 2068main () 2069{ 2070#ifndef $as_decl_name 2071#ifdef __cplusplus 2072 (void) $as_decl_use; 2073#else 2074 (void) $as_decl_name; 2075#endif 2076#endif 2077 2078 ; 2079 return 0; 2080} 2081_ACEOF 2082if ac_fn_c_try_compile "$LINENO"; then : 2083 eval "$3=yes" 2084else 2085 eval "$3=no" 2086fi 2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2088fi 2089eval ac_res=\$$3 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2091$as_echo "$ac_res" >&6; } 2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2093 2094} # ac_fn_c_check_decl 2095 2096# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2097# ------------------------------------------- 2098# Tests whether TYPE exists after having included INCLUDES, setting cache 2099# variable VAR accordingly. 2100ac_fn_c_check_type () 2101{ 2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2104$as_echo_n "checking for $2... " >&6; } 2105if eval \${$3+:} false; then : 2106 $as_echo_n "(cached) " >&6 2107else 2108 eval "$3=no" 2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110/* end confdefs.h. */ 2111$4 2112int 2113main () 2114{ 2115if (sizeof ($2)) 2116 return 0; 2117 ; 2118 return 0; 2119} 2120_ACEOF 2121if ac_fn_c_try_compile "$LINENO"; then : 2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2123/* end confdefs.h. */ 2124$4 2125int 2126main () 2127{ 2128if (sizeof (($2))) 2129 return 0; 2130 ; 2131 return 0; 2132} 2133_ACEOF 2134if ac_fn_c_try_compile "$LINENO"; then : 2135 2136else 2137 eval "$3=yes" 2138fi 2139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2140fi 2141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2142fi 2143eval ac_res=\$$3 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2145$as_echo "$ac_res" >&6; } 2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2147 2148} # ac_fn_c_check_type 2149cat >config.log <<_ACEOF 2150This file contains any messages produced by compilers while 2151running configure, to aid debugging if configure makes a mistake. 2152 2153It was created by $as_me, which was 2154generated by GNU Autoconf 2.69. Invocation command line was 2155 2156 $ $0 $@ 2157 2158_ACEOF 2159exec 5>>config.log 2160{ 2161cat <<_ASUNAME 2162## --------- ## 2163## Platform. ## 2164## --------- ## 2165 2166hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2167uname -m = `(uname -m) 2>/dev/null || echo unknown` 2168uname -r = `(uname -r) 2>/dev/null || echo unknown` 2169uname -s = `(uname -s) 2>/dev/null || echo unknown` 2170uname -v = `(uname -v) 2>/dev/null || echo unknown` 2171 2172/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2173/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2174 2175/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2176/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2177/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2178/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2179/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2180/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2181/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2182 2183_ASUNAME 2184 2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2186for as_dir in $PATH 2187do 2188 IFS=$as_save_IFS 2189 test -z "$as_dir" && as_dir=. 2190 $as_echo "PATH: $as_dir" 2191 done 2192IFS=$as_save_IFS 2193 2194} >&5 2195 2196cat >&5 <<_ACEOF 2197 2198 2199## ----------- ## 2200## Core tests. ## 2201## ----------- ## 2202 2203_ACEOF 2204 2205 2206# Keep a trace of the command line. 2207# Strip out --no-create and --no-recursion so they do not pile up. 2208# Strip out --silent because we don't want to record it for future runs. 2209# Also quote any args containing shell meta-characters. 2210# Make two passes to allow for proper duplicate-argument suppression. 2211ac_configure_args= 2212ac_configure_args0= 2213ac_configure_args1= 2214ac_must_keep_next=false 2215for ac_pass in 1 2 2216do 2217 for ac_arg 2218 do 2219 case $ac_arg in 2220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2222 | -silent | --silent | --silen | --sile | --sil) 2223 continue ;; 2224 *\'*) 2225 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2226 esac 2227 case $ac_pass in 2228 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2229 2) 2230 as_fn_append ac_configure_args1 " '$ac_arg'" 2231 if test $ac_must_keep_next = true; then 2232 ac_must_keep_next=false # Got value, back to normal. 2233 else 2234 case $ac_arg in 2235 *=* | --config-cache | -C | -disable-* | --disable-* \ 2236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2238 | -with-* | --with-* | -without-* | --without-* | --x) 2239 case "$ac_configure_args0 " in 2240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2241 esac 2242 ;; 2243 -* ) ac_must_keep_next=true ;; 2244 esac 2245 fi 2246 as_fn_append ac_configure_args " '$ac_arg'" 2247 ;; 2248 esac 2249 done 2250done 2251{ ac_configure_args0=; unset ac_configure_args0;} 2252{ ac_configure_args1=; unset ac_configure_args1;} 2253 2254# When interrupted or exit'd, cleanup temporary files, and complete 2255# config.log. We remove comments because anyway the quotes in there 2256# would cause problems or look ugly. 2257# WARNING: Use '\'' to represent an apostrophe within the trap. 2258# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2259trap 'exit_status=$? 2260 # Save into config.log some information that might help in debugging. 2261 { 2262 echo 2263 2264 $as_echo "## ---------------- ## 2265## Cache variables. ## 2266## ---------------- ##" 2267 echo 2268 # The following way of writing the cache mishandles newlines in values, 2269( 2270 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2271 eval ac_val=\$$ac_var 2272 case $ac_val in #( 2273 *${as_nl}*) 2274 case $ac_var in #( 2275 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2276$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2277 esac 2278 case $ac_var in #( 2279 _ | IFS | as_nl) ;; #( 2280 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2281 *) { eval $ac_var=; unset $ac_var;} ;; 2282 esac ;; 2283 esac 2284 done 2285 (set) 2>&1 | 2286 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2287 *${as_nl}ac_space=\ *) 2288 sed -n \ 2289 "s/'\''/'\''\\\\'\'''\''/g; 2290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2291 ;; #( 2292 *) 2293 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2294 ;; 2295 esac | 2296 sort 2297) 2298 echo 2299 2300 $as_echo "## ----------------- ## 2301## Output variables. ## 2302## ----------------- ##" 2303 echo 2304 for ac_var in $ac_subst_vars 2305 do 2306 eval ac_val=\$$ac_var 2307 case $ac_val in 2308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2309 esac 2310 $as_echo "$ac_var='\''$ac_val'\''" 2311 done | sort 2312 echo 2313 2314 if test -n "$ac_subst_files"; then 2315 $as_echo "## ------------------- ## 2316## File substitutions. ## 2317## ------------------- ##" 2318 echo 2319 for ac_var in $ac_subst_files 2320 do 2321 eval ac_val=\$$ac_var 2322 case $ac_val in 2323 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2324 esac 2325 $as_echo "$ac_var='\''$ac_val'\''" 2326 done | sort 2327 echo 2328 fi 2329 2330 if test -s confdefs.h; then 2331 $as_echo "## ----------- ## 2332## confdefs.h. ## 2333## ----------- ##" 2334 echo 2335 cat confdefs.h 2336 echo 2337 fi 2338 test "$ac_signal" != 0 && 2339 $as_echo "$as_me: caught signal $ac_signal" 2340 $as_echo "$as_me: exit $exit_status" 2341 } >&5 2342 rm -f core *.core core.conftest.* && 2343 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2344 exit $exit_status 2345' 0 2346for ac_signal in 1 2 13 15; do 2347 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2348done 2349ac_signal=0 2350 2351# confdefs.h avoids OS command line length limits that DEFS can exceed. 2352rm -f -r conftest* confdefs.h 2353 2354$as_echo "/* confdefs.h */" > confdefs.h 2355 2356# Predefined preprocessor variables. 2357 2358cat >>confdefs.h <<_ACEOF 2359#define PACKAGE_NAME "$PACKAGE_NAME" 2360_ACEOF 2361 2362cat >>confdefs.h <<_ACEOF 2363#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2364_ACEOF 2365 2366cat >>confdefs.h <<_ACEOF 2367#define PACKAGE_VERSION "$PACKAGE_VERSION" 2368_ACEOF 2369 2370cat >>confdefs.h <<_ACEOF 2371#define PACKAGE_STRING "$PACKAGE_STRING" 2372_ACEOF 2373 2374cat >>confdefs.h <<_ACEOF 2375#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2376_ACEOF 2377 2378cat >>confdefs.h <<_ACEOF 2379#define PACKAGE_URL "$PACKAGE_URL" 2380_ACEOF 2381 2382 2383# Let the site file select an alternate cache file if it wants to. 2384# Prefer an explicitly selected file to automatically selected ones. 2385ac_site_file1=NONE 2386ac_site_file2=NONE 2387if test -n "$CONFIG_SITE"; then 2388 # We do not want a PATH search for config.site. 2389 case $CONFIG_SITE in #(( 2390 -*) ac_site_file1=./$CONFIG_SITE;; 2391 */*) ac_site_file1=$CONFIG_SITE;; 2392 *) ac_site_file1=./$CONFIG_SITE;; 2393 esac 2394elif test "x$prefix" != xNONE; then 2395 ac_site_file1=$prefix/share/config.site 2396 ac_site_file2=$prefix/etc/config.site 2397else 2398 ac_site_file1=$ac_default_prefix/share/config.site 2399 ac_site_file2=$ac_default_prefix/etc/config.site 2400fi 2401for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2402do 2403 test "x$ac_site_file" = xNONE && continue 2404 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2406$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2407 sed 's/^/| /' "$ac_site_file" >&5 2408 . "$ac_site_file" \ 2409 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2411as_fn_error $? "failed to load site script $ac_site_file 2412See \`config.log' for more details" "$LINENO" 5; } 2413 fi 2414done 2415 2416if test -r "$cache_file"; then 2417 # Some versions of bash will fail to source /dev/null (special files 2418 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2419 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2421$as_echo "$as_me: loading cache $cache_file" >&6;} 2422 case $cache_file in 2423 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2424 *) . "./$cache_file";; 2425 esac 2426 fi 2427else 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2429$as_echo "$as_me: creating cache $cache_file" >&6;} 2430 >$cache_file 2431fi 2432 2433as_fn_append ac_header_list " stdlib.h" 2434as_fn_append ac_header_list " unistd.h" 2435as_fn_append ac_header_list " sys/param.h" 2436as_fn_append ac_header_list " utime.h" 2437# Check that the precious variables saved in the cache have kept the same 2438# value. 2439ac_cache_corrupted=false 2440for ac_var in $ac_precious_vars; do 2441 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2442 eval ac_new_set=\$ac_env_${ac_var}_set 2443 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2444 eval ac_new_val=\$ac_env_${ac_var}_value 2445 case $ac_old_set,$ac_new_set in 2446 set,) 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2448$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2449 ac_cache_corrupted=: ;; 2450 ,set) 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2452$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2453 ac_cache_corrupted=: ;; 2454 ,);; 2455 *) 2456 if test "x$ac_old_val" != "x$ac_new_val"; then 2457 # differences in whitespace do not lead to failure. 2458 ac_old_val_w=`echo x $ac_old_val` 2459 ac_new_val_w=`echo x $ac_new_val` 2460 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2462$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2463 ac_cache_corrupted=: 2464 else 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2466$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2467 eval $ac_var=\$ac_old_val 2468 fi 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2470$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2472$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2473 fi;; 2474 esac 2475 # Pass precious variables to config.status. 2476 if test "$ac_new_set" = set; then 2477 case $ac_new_val in 2478 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2479 *) ac_arg=$ac_var=$ac_new_val ;; 2480 esac 2481 case " $ac_configure_args " in 2482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2483 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2484 esac 2485 fi 2486done 2487if $ac_cache_corrupted; then 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2491$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2492 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2493fi 2494## -------------------- ## 2495## Main body of script. ## 2496## -------------------- ## 2497 2498ac_ext=c 2499ac_cpp='$CPP $CPPFLAGS' 2500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2502ac_compiler_gnu=$ac_cv_c_compiler_gnu 2503 2504 2505 2506ac_aux_dir= 2507for ac_dir in config "$srcdir"/config; do 2508 if test -f "$ac_dir/install-sh"; then 2509 ac_aux_dir=$ac_dir 2510 ac_install_sh="$ac_aux_dir/install-sh -c" 2511 break 2512 elif test -f "$ac_dir/install.sh"; then 2513 ac_aux_dir=$ac_dir 2514 ac_install_sh="$ac_aux_dir/install.sh -c" 2515 break 2516 elif test -f "$ac_dir/shtool"; then 2517 ac_aux_dir=$ac_dir 2518 ac_install_sh="$ac_aux_dir/shtool install -c" 2519 break 2520 fi 2521done 2522if test -z "$ac_aux_dir"; then 2523 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2524fi 2525 2526# These three variables are undocumented and unsupported, 2527# and are intended to be withdrawn in a future Autoconf release. 2528# They can cause serious problems if a builder's source tree is in a directory 2529# whose full name contains unusual characters. 2530ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2531ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2532ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2533 2534 2535 2536ac_config_headers="$ac_config_headers src/config.h" 2537 2538 2539LOG4C_MAJOR_VERSION=1 2540LOG4C_MINOR_VERSION=2 2541LOG4C_MICRO_VERSION=4 2542VERSION=$LOG4C_MAJOR_VERSION.$LOG4C_MINOR_VERSION.$LOG4C_MICRO_VERSION${SNAPSHOT:+.$SNAPSHOT} 2543 2544# +1 : ? : +1 == new interface that does not break old one 2545# +1 : ? : 0 == new interface that breaks old one 2546# ? : ? : 0 == no new interfaces, but breaks apps 2547# ? :+1 : ? == just some internal changes, nothing breaks but might work 2548# better 2549# CURRENT : REVISION : AGE 2550LT_VERSION=6:1:3 2551 2552 2553 2554 2555 2556 2557am__api_version='1.13' 2558 2559# Find a good install program. We prefer a C program (faster), 2560# so one script is as good as another. But avoid the broken or 2561# incompatible versions: 2562# SysV /etc/install, /usr/sbin/install 2563# SunOS /usr/etc/install 2564# IRIX /sbin/install 2565# AIX /bin/install 2566# AmigaOS /C/install, which installs bootblocks on floppy discs 2567# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2568# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2569# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2570# OS/2's system install, which has a completely different semantic 2571# ./install, which can be erroneously created by make from ./install.sh. 2572# Reject install programs that cannot install multiple files. 2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2574$as_echo_n "checking for a BSD-compatible install... " >&6; } 2575if test -z "$INSTALL"; then 2576if ${ac_cv_path_install+:} false; then : 2577 $as_echo_n "(cached) " >&6 2578else 2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2580for as_dir in $PATH 2581do 2582 IFS=$as_save_IFS 2583 test -z "$as_dir" && as_dir=. 2584 # Account for people who put trailing slashes in PATH elements. 2585case $as_dir/ in #(( 2586 ./ | .// | /[cC]/* | \ 2587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2588 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2589 /usr/ucb/* ) ;; 2590 *) 2591 # OSF1 and SCO ODT 3.0 have their own names for install. 2592 # Don't use installbsd from OSF since it installs stuff as root 2593 # by default. 2594 for ac_prog in ginstall scoinst install; do 2595 for ac_exec_ext in '' $ac_executable_extensions; do 2596 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2597 if test $ac_prog = install && 2598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2599 # AIX install. It has an incompatible calling convention. 2600 : 2601 elif test $ac_prog = install && 2602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2603 # program-specific install script used by HP pwplus--don't use. 2604 : 2605 else 2606 rm -rf conftest.one conftest.two conftest.dir 2607 echo one > conftest.one 2608 echo two > conftest.two 2609 mkdir conftest.dir 2610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2611 test -s conftest.one && test -s conftest.two && 2612 test -s conftest.dir/conftest.one && 2613 test -s conftest.dir/conftest.two 2614 then 2615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2616 break 3 2617 fi 2618 fi 2619 fi 2620 done 2621 done 2622 ;; 2623esac 2624 2625 done 2626IFS=$as_save_IFS 2627 2628rm -rf conftest.one conftest.two conftest.dir 2629 2630fi 2631 if test "${ac_cv_path_install+set}" = set; then 2632 INSTALL=$ac_cv_path_install 2633 else 2634 # As a last resort, use the slow shell script. Don't cache a 2635 # value for INSTALL within a source directory, because that will 2636 # break other packages using the cache if that directory is 2637 # removed, or if the value is a relative name. 2638 INSTALL=$ac_install_sh 2639 fi 2640fi 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2642$as_echo "$INSTALL" >&6; } 2643 2644# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2645# It thinks the first close brace ends the variable substitution. 2646test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2647 2648test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2649 2650test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2651 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2653$as_echo_n "checking whether build environment is sane... " >&6; } 2654# Reject unsafe characters in $srcdir or the absolute working directory 2655# name. Accept space and tab only in the latter. 2656am_lf=' 2657' 2658case `pwd` in 2659 *[\\\"\#\$\&\'\`$am_lf]*) 2660 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2661esac 2662case $srcdir in 2663 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2664 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2665esac 2666 2667# Do 'set' in a subshell so we don't clobber the current shell's 2668# arguments. Must try -L first in case configure is actually a 2669# symlink; some systems play weird games with the mod time of symlinks 2670# (eg FreeBSD returns the mod time of the symlink's containing 2671# directory). 2672if ( 2673 am_has_slept=no 2674 for am_try in 1 2; do 2675 echo "timestamp, slept: $am_has_slept" > conftest.file 2676 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2677 if test "$*" = "X"; then 2678 # -L didn't work. 2679 set X `ls -t "$srcdir/configure" conftest.file` 2680 fi 2681 if test "$*" != "X $srcdir/configure conftest.file" \ 2682 && test "$*" != "X conftest.file $srcdir/configure"; then 2683 2684 # If neither matched, then we have a broken ls. This can happen 2685 # if, for instance, CONFIG_SHELL is bash and it inherits a 2686 # broken ls alias from the environment. This has actually 2687 # happened. Such a system could not be considered "sane". 2688 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2689 alias in your environment" "$LINENO" 5 2690 fi 2691 if test "$2" = conftest.file || test $am_try -eq 2; then 2692 break 2693 fi 2694 # Just in case. 2695 sleep 1 2696 am_has_slept=yes 2697 done 2698 test "$2" = conftest.file 2699 ) 2700then 2701 # Ok. 2702 : 2703else 2704 as_fn_error $? "newly created file is older than distributed files! 2705Check your system clock" "$LINENO" 5 2706fi 2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2708$as_echo "yes" >&6; } 2709# If we didn't sleep, we still need to ensure time stamps of config.status and 2710# generated files are strictly newer. 2711am_sleep_pid= 2712if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2713 ( sleep 1 ) & 2714 am_sleep_pid=$! 2715fi 2716 2717rm -f conftest.file 2718 2719test "$program_prefix" != NONE && 2720 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2721# Use a double $ so make ignores it. 2722test "$program_suffix" != NONE && 2723 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2724# Double any \ or $. 2725# By default was `s,x,x', remove it if useless. 2726ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2727program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2728 2729# expand $ac_aux_dir to an absolute path 2730am_aux_dir=`cd $ac_aux_dir && pwd` 2731 2732if test x"${MISSING+set}" != xset; then 2733 case $am_aux_dir in 2734 *\ * | *\ *) 2735 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2736 *) 2737 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2738 esac 2739fi 2740# Use eval to expand $SHELL 2741if eval "$MISSING --is-lightweight"; then 2742 am_missing_run="$MISSING " 2743else 2744 am_missing_run= 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2746$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2747fi 2748 2749if test x"${install_sh}" != xset; then 2750 case $am_aux_dir in 2751 *\ * | *\ *) 2752 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2753 *) 2754 install_sh="\${SHELL} $am_aux_dir/install-sh" 2755 esac 2756fi 2757 2758# Installed binaries are usually stripped using 'strip' when the user 2759# run "make install-strip". However 'strip' might not be the right 2760# tool to use in cross-compilation environments, therefore Automake 2761# will honor the 'STRIP' environment variable to overrule this program. 2762if test "$cross_compiling" != no; then 2763 if test -n "$ac_tool_prefix"; then 2764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2765set dummy ${ac_tool_prefix}strip; ac_word=$2 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2767$as_echo_n "checking for $ac_word... " >&6; } 2768if ${ac_cv_prog_STRIP+:} false; then : 2769 $as_echo_n "(cached) " >&6 2770else 2771 if test -n "$STRIP"; then 2772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2773else 2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2775for as_dir in $PATH 2776do 2777 IFS=$as_save_IFS 2778 test -z "$as_dir" && as_dir=. 2779 for ac_exec_ext in '' $ac_executable_extensions; do 2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2781 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2783 break 2 2784 fi 2785done 2786 done 2787IFS=$as_save_IFS 2788 2789fi 2790fi 2791STRIP=$ac_cv_prog_STRIP 2792if test -n "$STRIP"; then 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2794$as_echo "$STRIP" >&6; } 2795else 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2797$as_echo "no" >&6; } 2798fi 2799 2800 2801fi 2802if test -z "$ac_cv_prog_STRIP"; then 2803 ac_ct_STRIP=$STRIP 2804 # Extract the first word of "strip", so it can be a program name with args. 2805set dummy strip; ac_word=$2 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2807$as_echo_n "checking for $ac_word... " >&6; } 2808if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2809 $as_echo_n "(cached) " >&6 2810else 2811 if test -n "$ac_ct_STRIP"; then 2812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2813else 2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2815for as_dir in $PATH 2816do 2817 IFS=$as_save_IFS 2818 test -z "$as_dir" && as_dir=. 2819 for ac_exec_ext in '' $ac_executable_extensions; do 2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2821 ac_cv_prog_ac_ct_STRIP="strip" 2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2823 break 2 2824 fi 2825done 2826 done 2827IFS=$as_save_IFS 2828 2829fi 2830fi 2831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2832if test -n "$ac_ct_STRIP"; then 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2834$as_echo "$ac_ct_STRIP" >&6; } 2835else 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2837$as_echo "no" >&6; } 2838fi 2839 2840 if test "x$ac_ct_STRIP" = x; then 2841 STRIP=":" 2842 else 2843 case $cross_compiling:$ac_tool_warned in 2844yes:) 2845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2847ac_tool_warned=yes ;; 2848esac 2849 STRIP=$ac_ct_STRIP 2850 fi 2851else 2852 STRIP="$ac_cv_prog_STRIP" 2853fi 2854 2855fi 2856INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2857 2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2859$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2860if test -z "$MKDIR_P"; then 2861 if ${ac_cv_path_mkdir+:} false; then : 2862 $as_echo_n "(cached) " >&6 2863else 2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2865for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2866do 2867 IFS=$as_save_IFS 2868 test -z "$as_dir" && as_dir=. 2869 for ac_prog in mkdir gmkdir; do 2870 for ac_exec_ext in '' $ac_executable_extensions; do 2871 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2873 'mkdir (GNU coreutils) '* | \ 2874 'mkdir (coreutils) '* | \ 2875 'mkdir (fileutils) '4.1*) 2876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2877 break 3;; 2878 esac 2879 done 2880 done 2881 done 2882IFS=$as_save_IFS 2883 2884fi 2885 2886 test -d ./--version && rmdir ./--version 2887 if test "${ac_cv_path_mkdir+set}" = set; then 2888 MKDIR_P="$ac_cv_path_mkdir -p" 2889 else 2890 # As a last resort, use the slow shell script. Don't cache a 2891 # value for MKDIR_P within a source directory, because that will 2892 # break other packages using the cache if that directory is 2893 # removed, or if the value is a relative name. 2894 MKDIR_P="$ac_install_sh -d" 2895 fi 2896fi 2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2898$as_echo "$MKDIR_P" >&6; } 2899 2900for ac_prog in gawk mawk nawk awk 2901do 2902 # Extract the first word of "$ac_prog", so it can be a program name with args. 2903set dummy $ac_prog; ac_word=$2 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2905$as_echo_n "checking for $ac_word... " >&6; } 2906if ${ac_cv_prog_AWK+:} false; then : 2907 $as_echo_n "(cached) " >&6 2908else 2909 if test -n "$AWK"; then 2910 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2911else 2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2913for as_dir in $PATH 2914do 2915 IFS=$as_save_IFS 2916 test -z "$as_dir" && as_dir=. 2917 for ac_exec_ext in '' $ac_executable_extensions; do 2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2919 ac_cv_prog_AWK="$ac_prog" 2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2921 break 2 2922 fi 2923done 2924 done 2925IFS=$as_save_IFS 2926 2927fi 2928fi 2929AWK=$ac_cv_prog_AWK 2930if test -n "$AWK"; then 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2932$as_echo "$AWK" >&6; } 2933else 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2935$as_echo "no" >&6; } 2936fi 2937 2938 2939 test -n "$AWK" && break 2940done 2941 2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2943$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2944set x ${MAKE-make} 2945ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2946if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2947 $as_echo_n "(cached) " >&6 2948else 2949 cat >conftest.make <<\_ACEOF 2950SHELL = /bin/sh 2951all: 2952 @echo '@@@%%%=$(MAKE)=@@@%%%' 2953_ACEOF 2954# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2955case `${MAKE-make} -f conftest.make 2>/dev/null` in 2956 *@@@%%%=?*=@@@%%%*) 2957 eval ac_cv_prog_make_${ac_make}_set=yes;; 2958 *) 2959 eval ac_cv_prog_make_${ac_make}_set=no;; 2960esac 2961rm -f conftest.make 2962fi 2963if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2965$as_echo "yes" >&6; } 2966 SET_MAKE= 2967else 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2969$as_echo "no" >&6; } 2970 SET_MAKE="MAKE=${MAKE-make}" 2971fi 2972 2973rm -rf .tst 2>/dev/null 2974mkdir .tst 2>/dev/null 2975if test -d .tst; then 2976 am__leading_dot=. 2977else 2978 am__leading_dot=_ 2979fi 2980rmdir .tst 2>/dev/null 2981 2982# Check whether --enable-silent-rules was given. 2983if test "${enable_silent_rules+set}" = set; then : 2984 enableval=$enable_silent_rules; 2985fi 2986 2987case $enable_silent_rules in # ((( 2988 yes) AM_DEFAULT_VERBOSITY=0;; 2989 no) AM_DEFAULT_VERBOSITY=1;; 2990 *) AM_DEFAULT_VERBOSITY=1;; 2991esac 2992am_make=${MAKE-make} 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2994$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2995if ${am_cv_make_support_nested_variables+:} false; then : 2996 $as_echo_n "(cached) " >&6 2997else 2998 if $as_echo 'TRUE=$(BAR$(V)) 2999BAR0=false 3000BAR1=true 3001V=1 3002am__doit: 3003 @$(TRUE) 3004.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3005 am_cv_make_support_nested_variables=yes 3006else 3007 am_cv_make_support_nested_variables=no 3008fi 3009fi 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3011$as_echo "$am_cv_make_support_nested_variables" >&6; } 3012if test $am_cv_make_support_nested_variables = yes; then 3013 AM_V='$(V)' 3014 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3015else 3016 AM_V=$AM_DEFAULT_VERBOSITY 3017 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3018fi 3019AM_BACKSLASH='\' 3020 3021if test "`cd $srcdir && pwd`" != "`pwd`"; then 3022 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3023 # is not polluted with repeated "-I." 3024 am__isrc=' -I$(srcdir)' 3025 # test to see if srcdir already configured 3026 if test -f $srcdir/config.status; then 3027 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3028 fi 3029fi 3030 3031# test whether we have cygpath 3032if test -z "$CYGPATH_W"; then 3033 if (cygpath --version) >/dev/null 2>/dev/null; then 3034 CYGPATH_W='cygpath -w' 3035 else 3036 CYGPATH_W=echo 3037 fi 3038fi 3039 3040 3041# Define the identity of the package. 3042 3043 PACKAGE="log4c" 3044 VERSION=$VERSION 3045 3046 3047cat >>confdefs.h <<_ACEOF 3048#define PACKAGE "$PACKAGE" 3049_ACEOF 3050 3051 3052cat >>confdefs.h <<_ACEOF 3053#define VERSION "$VERSION" 3054_ACEOF 3055 3056# Some tools Automake needs. 3057 3058ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3059 3060 3061AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3062 3063 3064AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3065 3066 3067AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3068 3069 3070MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3071 3072# For better backward compatibility. To be removed once Automake 1.9.x 3073# dies out for good. For more background, see: 3074# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3075# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3076mkdir_p='$(MKDIR_P)' 3077 3078# We need awk for the "check" target. The system "awk" is bad on 3079# some platforms. 3080# Always define AMTAR for backward compatibility. Yes, it's still used 3081# in the wild :-( We should find a proper way to deprecate it ... 3082AMTAR='$${TAR-tar}' 3083 3084 3085# We'll loop over all known methods to create a tar archive until one works. 3086_am_tools='gnutar pax cpio none' 3087 3088am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3089 3090 3091 3092 3093 3094 3095 3096# Make sure we can run config.sub. 3097$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3098 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3099 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3101$as_echo_n "checking build system type... " >&6; } 3102if ${ac_cv_build+:} false; then : 3103 $as_echo_n "(cached) " >&6 3104else 3105 ac_build_alias=$build_alias 3106test "x$ac_build_alias" = x && 3107 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3108test "x$ac_build_alias" = x && 3109 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3110ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3111 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3112 3113fi 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3115$as_echo "$ac_cv_build" >&6; } 3116case $ac_cv_build in 3117*-*-*) ;; 3118*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3119esac 3120build=$ac_cv_build 3121ac_save_IFS=$IFS; IFS='-' 3122set x $ac_cv_build 3123shift 3124build_cpu=$1 3125build_vendor=$2 3126shift; shift 3127# Remember, the first character of IFS is used to create $*, 3128# except with old shells: 3129build_os=$* 3130IFS=$ac_save_IFS 3131case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3132 3133 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3135$as_echo_n "checking host system type... " >&6; } 3136if ${ac_cv_host+:} false; then : 3137 $as_echo_n "(cached) " >&6 3138else 3139 if test "x$host_alias" = x; then 3140 ac_cv_host=$ac_cv_build 3141else 3142 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3143 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3144fi 3145 3146fi 3147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3148$as_echo "$ac_cv_host" >&6; } 3149case $ac_cv_host in 3150*-*-*) ;; 3151*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3152esac 3153host=$ac_cv_host 3154ac_save_IFS=$IFS; IFS='-' 3155set x $ac_cv_host 3156shift 3157host_cpu=$1 3158host_vendor=$2 3159shift; shift 3160# Remember, the first character of IFS is used to create $*, 3161# except with old shells: 3162host_os=$* 3163IFS=$ac_save_IFS 3164case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3165 3166 3167 3168# Need this to get pthread etc. 3169 3170$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3171 3172 3173##################### 3174# Checks for programs 3175#. 3176for ac_prog in 'bison -y' byacc 3177do 3178 # Extract the first word of "$ac_prog", so it can be a program name with args. 3179set dummy $ac_prog; ac_word=$2 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3181$as_echo_n "checking for $ac_word... " >&6; } 3182if ${ac_cv_prog_YACC+:} false; then : 3183 $as_echo_n "(cached) " >&6 3184else 3185 if test -n "$YACC"; then 3186 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3187else 3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3189for as_dir in $PATH 3190do 3191 IFS=$as_save_IFS 3192 test -z "$as_dir" && as_dir=. 3193 for ac_exec_ext in '' $ac_executable_extensions; do 3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3195 ac_cv_prog_YACC="$ac_prog" 3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3197 break 2 3198 fi 3199done 3200 done 3201IFS=$as_save_IFS 3202 3203fi 3204fi 3205YACC=$ac_cv_prog_YACC 3206if test -n "$YACC"; then 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 3208$as_echo "$YACC" >&6; } 3209else 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3211$as_echo "no" >&6; } 3212fi 3213 3214 3215 test -n "$YACC" && break 3216done 3217test -n "$YACC" || YACC="yacc" 3218 3219ac_ext=c 3220ac_cpp='$CPP $CPPFLAGS' 3221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3223ac_compiler_gnu=$ac_cv_c_compiler_gnu 3224if test -n "$ac_tool_prefix"; then 3225 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3226set dummy ${ac_tool_prefix}gcc; ac_word=$2 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3228$as_echo_n "checking for $ac_word... " >&6; } 3229if ${ac_cv_prog_CC+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 if test -n "$CC"; then 3233 ac_cv_prog_CC="$CC" # Let the user override the test. 3234else 3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3236for as_dir in $PATH 3237do 3238 IFS=$as_save_IFS 3239 test -z "$as_dir" && as_dir=. 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3242 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3244 break 2 3245 fi 3246done 3247 done 3248IFS=$as_save_IFS 3249 3250fi 3251fi 3252CC=$ac_cv_prog_CC 3253if test -n "$CC"; then 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3255$as_echo "$CC" >&6; } 3256else 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3258$as_echo "no" >&6; } 3259fi 3260 3261 3262fi 3263if test -z "$ac_cv_prog_CC"; then 3264 ac_ct_CC=$CC 3265 # Extract the first word of "gcc", so it can be a program name with args. 3266set dummy gcc; ac_word=$2 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3268$as_echo_n "checking for $ac_word... " >&6; } 3269if ${ac_cv_prog_ac_ct_CC+:} false; then : 3270 $as_echo_n "(cached) " >&6 3271else 3272 if test -n "$ac_ct_CC"; then 3273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3274else 3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3276for as_dir in $PATH 3277do 3278 IFS=$as_save_IFS 3279 test -z "$as_dir" && as_dir=. 3280 for ac_exec_ext in '' $ac_executable_extensions; do 3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3282 ac_cv_prog_ac_ct_CC="gcc" 3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3284 break 2 3285 fi 3286done 3287 done 3288IFS=$as_save_IFS 3289 3290fi 3291fi 3292ac_ct_CC=$ac_cv_prog_ac_ct_CC 3293if test -n "$ac_ct_CC"; then 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3295$as_echo "$ac_ct_CC" >&6; } 3296else 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3298$as_echo "no" >&6; } 3299fi 3300 3301 if test "x$ac_ct_CC" = x; then 3302 CC="" 3303 else 3304 case $cross_compiling:$ac_tool_warned in 3305yes:) 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3308ac_tool_warned=yes ;; 3309esac 3310 CC=$ac_ct_CC 3311 fi 3312else 3313 CC="$ac_cv_prog_CC" 3314fi 3315 3316if test -z "$CC"; then 3317 if test -n "$ac_tool_prefix"; then 3318 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3319set dummy ${ac_tool_prefix}cc; ac_word=$2 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3321$as_echo_n "checking for $ac_word... " >&6; } 3322if ${ac_cv_prog_CC+:} false; then : 3323 $as_echo_n "(cached) " >&6 3324else 3325 if test -n "$CC"; then 3326 ac_cv_prog_CC="$CC" # Let the user override the test. 3327else 3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3329for as_dir in $PATH 3330do 3331 IFS=$as_save_IFS 3332 test -z "$as_dir" && as_dir=. 3333 for ac_exec_ext in '' $ac_executable_extensions; do 3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3335 ac_cv_prog_CC="${ac_tool_prefix}cc" 3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3337 break 2 3338 fi 3339done 3340 done 3341IFS=$as_save_IFS 3342 3343fi 3344fi 3345CC=$ac_cv_prog_CC 3346if test -n "$CC"; then 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3348$as_echo "$CC" >&6; } 3349else 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3351$as_echo "no" >&6; } 3352fi 3353 3354 3355 fi 3356fi 3357if test -z "$CC"; then 3358 # Extract the first word of "cc", so it can be a program name with args. 3359set dummy cc; ac_word=$2 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3361$as_echo_n "checking for $ac_word... " >&6; } 3362if ${ac_cv_prog_CC+:} false; then : 3363 $as_echo_n "(cached) " >&6 3364else 3365 if test -n "$CC"; then 3366 ac_cv_prog_CC="$CC" # Let the user override the test. 3367else 3368 ac_prog_rejected=no 3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3370for as_dir in $PATH 3371do 3372 IFS=$as_save_IFS 3373 test -z "$as_dir" && as_dir=. 3374 for ac_exec_ext in '' $ac_executable_extensions; do 3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3377 ac_prog_rejected=yes 3378 continue 3379 fi 3380 ac_cv_prog_CC="cc" 3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3382 break 2 3383 fi 3384done 3385 done 3386IFS=$as_save_IFS 3387 3388if test $ac_prog_rejected = yes; then 3389 # We found a bogon in the path, so make sure we never use it. 3390 set dummy $ac_cv_prog_CC 3391 shift 3392 if test $# != 0; then 3393 # We chose a different compiler from the bogus one. 3394 # However, it has the same basename, so the bogon will be chosen 3395 # first if we set CC to just the basename; use the full file name. 3396 shift 3397 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3398 fi 3399fi 3400fi 3401fi 3402CC=$ac_cv_prog_CC 3403if test -n "$CC"; then 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3405$as_echo "$CC" >&6; } 3406else 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3408$as_echo "no" >&6; } 3409fi 3410 3411 3412fi 3413if test -z "$CC"; then 3414 if test -n "$ac_tool_prefix"; then 3415 for ac_prog in cl.exe 3416 do 3417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3418set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3420$as_echo_n "checking for $ac_word... " >&6; } 3421if ${ac_cv_prog_CC+:} false; then : 3422 $as_echo_n "(cached) " >&6 3423else 3424 if test -n "$CC"; then 3425 ac_cv_prog_CC="$CC" # Let the user override the test. 3426else 3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3428for as_dir in $PATH 3429do 3430 IFS=$as_save_IFS 3431 test -z "$as_dir" && as_dir=. 3432 for ac_exec_ext in '' $ac_executable_extensions; do 3433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3434 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3436 break 2 3437 fi 3438done 3439 done 3440IFS=$as_save_IFS 3441 3442fi 3443fi 3444CC=$ac_cv_prog_CC 3445if test -n "$CC"; then 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3447$as_echo "$CC" >&6; } 3448else 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3450$as_echo "no" >&6; } 3451fi 3452 3453 3454 test -n "$CC" && break 3455 done 3456fi 3457if test -z "$CC"; then 3458 ac_ct_CC=$CC 3459 for ac_prog in cl.exe 3460do 3461 # Extract the first word of "$ac_prog", so it can be a program name with args. 3462set dummy $ac_prog; ac_word=$2 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3464$as_echo_n "checking for $ac_word... " >&6; } 3465if ${ac_cv_prog_ac_ct_CC+:} false; then : 3466 $as_echo_n "(cached) " >&6 3467else 3468 if test -n "$ac_ct_CC"; then 3469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3470else 3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3472for as_dir in $PATH 3473do 3474 IFS=$as_save_IFS 3475 test -z "$as_dir" && as_dir=. 3476 for ac_exec_ext in '' $ac_executable_extensions; do 3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3478 ac_cv_prog_ac_ct_CC="$ac_prog" 3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3480 break 2 3481 fi 3482done 3483 done 3484IFS=$as_save_IFS 3485 3486fi 3487fi 3488ac_ct_CC=$ac_cv_prog_ac_ct_CC 3489if test -n "$ac_ct_CC"; then 3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3491$as_echo "$ac_ct_CC" >&6; } 3492else 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3494$as_echo "no" >&6; } 3495fi 3496 3497 3498 test -n "$ac_ct_CC" && break 3499done 3500 3501 if test "x$ac_ct_CC" = x; then 3502 CC="" 3503 else 3504 case $cross_compiling:$ac_tool_warned in 3505yes:) 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3508ac_tool_warned=yes ;; 3509esac 3510 CC=$ac_ct_CC 3511 fi 3512fi 3513 3514fi 3515 3516 3517test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3519as_fn_error $? "no acceptable C compiler found in \$PATH 3520See \`config.log' for more details" "$LINENO" 5; } 3521 3522# Provide some information about the compiler. 3523$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3524set X $ac_compile 3525ac_compiler=$2 3526for ac_option in --version -v -V -qversion; do 3527 { { ac_try="$ac_compiler $ac_option >&5" 3528case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531esac 3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3533$as_echo "$ac_try_echo"; } >&5 3534 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3535 ac_status=$? 3536 if test -s conftest.err; then 3537 sed '10a\ 3538... rest of stderr output deleted ... 3539 10q' conftest.err >conftest.er1 3540 cat conftest.er1 >&5 3541 fi 3542 rm -f conftest.er1 conftest.err 3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3544 test $ac_status = 0; } 3545done 3546 3547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548/* end confdefs.h. */ 3549 3550int 3551main () 3552{ 3553 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558ac_clean_files_save=$ac_clean_files 3559ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3560# Try to create an executable without -o first, disregard a.out. 3561# It will help us diagnose broken compilers, and finding out an intuition 3562# of exeext. 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3564$as_echo_n "checking whether the C compiler works... " >&6; } 3565ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3566 3567# The possible output files: 3568ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3569 3570ac_rmfiles= 3571for ac_file in $ac_files 3572do 3573 case $ac_file in 3574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3575 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3576 esac 3577done 3578rm -f $ac_rmfiles 3579 3580if { { ac_try="$ac_link_default" 3581case "(($ac_try" in 3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3583 *) ac_try_echo=$ac_try;; 3584esac 3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3586$as_echo "$ac_try_echo"; } >&5 3587 (eval "$ac_link_default") 2>&5 3588 ac_status=$? 3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3590 test $ac_status = 0; }; then : 3591 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3592# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3593# in a Makefile. We should not override ac_cv_exeext if it was cached, 3594# so that the user can short-circuit this test for compilers unknown to 3595# Autoconf. 3596for ac_file in $ac_files '' 3597do 3598 test -f "$ac_file" || continue 3599 case $ac_file in 3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3601 ;; 3602 [ab].out ) 3603 # We found the default executable, but exeext='' is most 3604 # certainly right. 3605 break;; 3606 *.* ) 3607 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3608 then :; else 3609 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3610 fi 3611 # We set ac_cv_exeext here because the later test for it is not 3612 # safe: cross compilers may not add the suffix if given an `-o' 3613 # argument, so we may need to know it at that point already. 3614 # Even if this section looks crufty: it has the advantage of 3615 # actually working. 3616 break;; 3617 * ) 3618 break;; 3619 esac 3620done 3621test "$ac_cv_exeext" = no && ac_cv_exeext= 3622 3623else 3624 ac_file='' 3625fi 3626if test -z "$ac_file"; then : 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3628$as_echo "no" >&6; } 3629$as_echo "$as_me: failed program was:" >&5 3630sed 's/^/| /' conftest.$ac_ext >&5 3631 3632{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3634as_fn_error 77 "C compiler cannot create executables 3635See \`config.log' for more details" "$LINENO" 5; } 3636else 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3638$as_echo "yes" >&6; } 3639fi 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3641$as_echo_n "checking for C compiler default output file name... " >&6; } 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3643$as_echo "$ac_file" >&6; } 3644ac_exeext=$ac_cv_exeext 3645 3646rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3647ac_clean_files=$ac_clean_files_save 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3649$as_echo_n "checking for suffix of executables... " >&6; } 3650if { { ac_try="$ac_link" 3651case "(($ac_try" in 3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3653 *) ac_try_echo=$ac_try;; 3654esac 3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3656$as_echo "$ac_try_echo"; } >&5 3657 (eval "$ac_link") 2>&5 3658 ac_status=$? 3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3660 test $ac_status = 0; }; then : 3661 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3662# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3663# work properly (i.e., refer to `conftest.exe'), while it won't with 3664# `rm'. 3665for ac_file in conftest.exe conftest conftest.*; do 3666 test -f "$ac_file" || continue 3667 case $ac_file in 3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3669 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3670 break;; 3671 * ) break;; 3672 esac 3673done 3674else 3675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3677as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3678See \`config.log' for more details" "$LINENO" 5; } 3679fi 3680rm -f conftest conftest$ac_cv_exeext 3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3682$as_echo "$ac_cv_exeext" >&6; } 3683 3684rm -f conftest.$ac_ext 3685EXEEXT=$ac_cv_exeext 3686ac_exeext=$EXEEXT 3687cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3688/* end confdefs.h. */ 3689#include <stdio.h> 3690int 3691main () 3692{ 3693FILE *f = fopen ("conftest.out", "w"); 3694 return ferror (f) || fclose (f) != 0; 3695 3696 ; 3697 return 0; 3698} 3699_ACEOF 3700ac_clean_files="$ac_clean_files conftest.out" 3701# Check that the compiler produces executables we can run. If not, either 3702# the compiler is broken, or we cross compile. 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3704$as_echo_n "checking whether we are cross compiling... " >&6; } 3705if test "$cross_compiling" != yes; then 3706 { { ac_try="$ac_link" 3707case "(($ac_try" in 3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3709 *) ac_try_echo=$ac_try;; 3710esac 3711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3712$as_echo "$ac_try_echo"; } >&5 3713 (eval "$ac_link") 2>&5 3714 ac_status=$? 3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3716 test $ac_status = 0; } 3717 if { ac_try='./conftest$ac_cv_exeext' 3718 { { case "(($ac_try" in 3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3720 *) ac_try_echo=$ac_try;; 3721esac 3722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3723$as_echo "$ac_try_echo"; } >&5 3724 (eval "$ac_try") 2>&5 3725 ac_status=$? 3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3727 test $ac_status = 0; }; }; then 3728 cross_compiling=no 3729 else 3730 if test "$cross_compiling" = maybe; then 3731 cross_compiling=yes 3732 else 3733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3735as_fn_error $? "cannot run C compiled programs. 3736If you meant to cross compile, use \`--host'. 3737See \`config.log' for more details" "$LINENO" 5; } 3738 fi 3739 fi 3740fi 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3742$as_echo "$cross_compiling" >&6; } 3743 3744rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3745ac_clean_files=$ac_clean_files_save 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3747$as_echo_n "checking for suffix of object files... " >&6; } 3748if ${ac_cv_objext+:} false; then : 3749 $as_echo_n "(cached) " >&6 3750else 3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3752/* end confdefs.h. */ 3753 3754int 3755main () 3756{ 3757 3758 ; 3759 return 0; 3760} 3761_ACEOF 3762rm -f conftest.o conftest.obj 3763if { { ac_try="$ac_compile" 3764case "(($ac_try" in 3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3766 *) ac_try_echo=$ac_try;; 3767esac 3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3769$as_echo "$ac_try_echo"; } >&5 3770 (eval "$ac_compile") 2>&5 3771 ac_status=$? 3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3773 test $ac_status = 0; }; then : 3774 for ac_file in conftest.o conftest.obj conftest.*; do 3775 test -f "$ac_file" || continue; 3776 case $ac_file in 3777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3778 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3779 break;; 3780 esac 3781done 3782else 3783 $as_echo "$as_me: failed program was:" >&5 3784sed 's/^/| /' conftest.$ac_ext >&5 3785 3786{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3788as_fn_error $? "cannot compute suffix of object files: cannot compile 3789See \`config.log' for more details" "$LINENO" 5; } 3790fi 3791rm -f conftest.$ac_cv_objext conftest.$ac_ext 3792fi 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3794$as_echo "$ac_cv_objext" >&6; } 3795OBJEXT=$ac_cv_objext 3796ac_objext=$OBJEXT 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3798$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3799if ${ac_cv_c_compiler_gnu+:} false; then : 3800 $as_echo_n "(cached) " >&6 3801else 3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804 3805int 3806main () 3807{ 3808#ifndef __GNUC__ 3809 choke me 3810#endif 3811 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816if ac_fn_c_try_compile "$LINENO"; then : 3817 ac_compiler_gnu=yes 3818else 3819 ac_compiler_gnu=no 3820fi 3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3822ac_cv_c_compiler_gnu=$ac_compiler_gnu 3823 3824fi 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3826$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3827if test $ac_compiler_gnu = yes; then 3828 GCC=yes 3829else 3830 GCC= 3831fi 3832ac_test_CFLAGS=${CFLAGS+set} 3833ac_save_CFLAGS=$CFLAGS 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3835$as_echo_n "checking whether $CC accepts -g... " >&6; } 3836if ${ac_cv_prog_cc_g+:} false; then : 3837 $as_echo_n "(cached) " >&6 3838else 3839 ac_save_c_werror_flag=$ac_c_werror_flag 3840 ac_c_werror_flag=yes 3841 ac_cv_prog_cc_g=no 3842 CFLAGS="-g" 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845 3846int 3847main () 3848{ 3849 3850 ; 3851 return 0; 3852} 3853_ACEOF 3854if ac_fn_c_try_compile "$LINENO"; then : 3855 ac_cv_prog_cc_g=yes 3856else 3857 CFLAGS="" 3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3859/* end confdefs.h. */ 3860 3861int 3862main () 3863{ 3864 3865 ; 3866 return 0; 3867} 3868_ACEOF 3869if ac_fn_c_try_compile "$LINENO"; then : 3870 3871else 3872 ac_c_werror_flag=$ac_save_c_werror_flag 3873 CFLAGS="-g" 3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3875/* end confdefs.h. */ 3876 3877int 3878main () 3879{ 3880 3881 ; 3882 return 0; 3883} 3884_ACEOF 3885if ac_fn_c_try_compile "$LINENO"; then : 3886 ac_cv_prog_cc_g=yes 3887fi 3888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3889fi 3890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3891fi 3892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3893 ac_c_werror_flag=$ac_save_c_werror_flag 3894fi 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3896$as_echo "$ac_cv_prog_cc_g" >&6; } 3897if test "$ac_test_CFLAGS" = set; then 3898 CFLAGS=$ac_save_CFLAGS 3899elif test $ac_cv_prog_cc_g = yes; then 3900 if test "$GCC" = yes; then 3901 CFLAGS="-g -O2" 3902 else 3903 CFLAGS="-g" 3904 fi 3905else 3906 if test "$GCC" = yes; then 3907 CFLAGS="-O2" 3908 else 3909 CFLAGS= 3910 fi 3911fi 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3913$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3914if ${ac_cv_prog_cc_c89+:} false; then : 3915 $as_echo_n "(cached) " >&6 3916else 3917 ac_cv_prog_cc_c89=no 3918ac_save_CC=$CC 3919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3920/* end confdefs.h. */ 3921#include <stdarg.h> 3922#include <stdio.h> 3923struct stat; 3924/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3925struct buf { int x; }; 3926FILE * (*rcsopen) (struct buf *, struct stat *, int); 3927static char *e (p, i) 3928 char **p; 3929 int i; 3930{ 3931 return p[i]; 3932} 3933static char *f (char * (*g) (char **, int), char **p, ...) 3934{ 3935 char *s; 3936 va_list v; 3937 va_start (v,p); 3938 s = g (p, va_arg (v,int)); 3939 va_end (v); 3940 return s; 3941} 3942 3943/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3944 function prototypes and stuff, but not '\xHH' hex character constants. 3945 These don't provoke an error unfortunately, instead are silently treated 3946 as 'x'. The following induces an error, until -std is added to get 3947 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3948 array size at least. It's necessary to write '\x00'==0 to get something 3949 that's true only with -std. */ 3950int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3951 3952/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3953 inside strings and character constants. */ 3954#define FOO(x) 'x' 3955int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3956 3957int test (int i, double x); 3958struct s1 {int (*f) (int a);}; 3959struct s2 {int (*f) (double a);}; 3960int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3961int argc; 3962char **argv; 3963int 3964main () 3965{ 3966return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3967 ; 3968 return 0; 3969} 3970_ACEOF 3971for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3972 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3973do 3974 CC="$ac_save_CC $ac_arg" 3975 if ac_fn_c_try_compile "$LINENO"; then : 3976 ac_cv_prog_cc_c89=$ac_arg 3977fi 3978rm -f core conftest.err conftest.$ac_objext 3979 test "x$ac_cv_prog_cc_c89" != "xno" && break 3980done 3981rm -f conftest.$ac_ext 3982CC=$ac_save_CC 3983 3984fi 3985# AC_CACHE_VAL 3986case "x$ac_cv_prog_cc_c89" in 3987 x) 3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3989$as_echo "none needed" >&6; } ;; 3990 xno) 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3992$as_echo "unsupported" >&6; } ;; 3993 *) 3994 CC="$CC $ac_cv_prog_cc_c89" 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3996$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3997esac 3998if test "x$ac_cv_prog_cc_c89" != xno; then : 3999 4000fi 4001 4002ac_ext=c 4003ac_cpp='$CPP $CPPFLAGS' 4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4006ac_compiler_gnu=$ac_cv_c_compiler_gnu 4007DEPDIR="${am__leading_dot}deps" 4008 4009ac_config_commands="$ac_config_commands depfiles" 4010 4011 4012am_make=${MAKE-make} 4013cat > confinc << 'END' 4014am__doit: 4015 @echo this is the am__doit target 4016.PHONY: am__doit 4017END 4018# If we don't find an include directive, just comment out the code. 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4020$as_echo_n "checking for style of include used by $am_make... " >&6; } 4021am__include="#" 4022am__quote= 4023_am_result=none 4024# First try GNU make style include. 4025echo "include confinc" > confmf 4026# Ignore all kinds of additional output from 'make'. 4027case `$am_make -s -f confmf 2> /dev/null` in #( 4028*the\ am__doit\ target*) 4029 am__include=include 4030 am__quote= 4031 _am_result=GNU 4032 ;; 4033esac 4034# Now try BSD make style include. 4035if test "$am__include" = "#"; then 4036 echo '.include "confinc"' > confmf 4037 case `$am_make -s -f confmf 2> /dev/null` in #( 4038 *the\ am__doit\ target*) 4039 am__include=.include 4040 am__quote="\"" 4041 _am_result=BSD 4042 ;; 4043 esac 4044fi 4045 4046 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4048$as_echo "$_am_result" >&6; } 4049rm -f confinc confmf 4050 4051# Check whether --enable-dependency-tracking was given. 4052if test "${enable_dependency_tracking+set}" = set; then : 4053 enableval=$enable_dependency_tracking; 4054fi 4055 4056if test "x$enable_dependency_tracking" != xno; then 4057 am_depcomp="$ac_aux_dir/depcomp" 4058 AMDEPBACKSLASH='\' 4059 am__nodep='_no' 4060fi 4061 if test "x$enable_dependency_tracking" != xno; then 4062 AMDEP_TRUE= 4063 AMDEP_FALSE='#' 4064else 4065 AMDEP_TRUE='#' 4066 AMDEP_FALSE= 4067fi 4068 4069 4070 4071depcc="$CC" am_compiler_list= 4072 4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4074$as_echo_n "checking dependency style of $depcc... " >&6; } 4075if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4076 $as_echo_n "(cached) " >&6 4077else 4078 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4079 # We make a subdir and do the tests there. Otherwise we can end up 4080 # making bogus files that we don't know about and never remove. For 4081 # instance it was reported that on HP-UX the gcc test will end up 4082 # making a dummy file named 'D' -- because '-MD' means "put the output 4083 # in D". 4084 rm -rf conftest.dir 4085 mkdir conftest.dir 4086 # Copy depcomp to subdir because otherwise we won't find it if we're 4087 # using a relative directory. 4088 cp "$am_depcomp" conftest.dir 4089 cd conftest.dir 4090 # We will build objects and dependencies in a subdirectory because 4091 # it helps to detect inapplicable dependency modes. For instance 4092 # both Tru64's cc and ICC support -MD to output dependencies as a 4093 # side effect of compilation, but ICC will put the dependencies in 4094 # the current directory while Tru64 will put them in the object 4095 # directory. 4096 mkdir sub 4097 4098 am_cv_CC_dependencies_compiler_type=none 4099 if test "$am_compiler_list" = ""; then 4100 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4101 fi 4102 am__universal=false 4103 case " $depcc " in #( 4104 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4105 esac 4106 4107 for depmode in $am_compiler_list; do 4108 # Setup a source with many dependencies, because some compilers 4109 # like to wrap large dependency lists on column 80 (with \), and 4110 # we should not choose a depcomp mode which is confused by this. 4111 # 4112 # We need to recreate these files for each test, as the compiler may 4113 # overwrite some of them when testing with obscure command lines. 4114 # This happens at least with the AIX C compiler. 4115 : > sub/conftest.c 4116 for i in 1 2 3 4 5 6; do 4117 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4118 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4119 # Solaris 10 /bin/sh. 4120 echo '/* dummy */' > sub/conftst$i.h 4121 done 4122 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4123 4124 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4125 # mode. It turns out that the SunPro C++ compiler does not properly 4126 # handle '-M -o', and we need to detect this. Also, some Intel 4127 # versions had trouble with output in subdirs. 4128 am__obj=sub/conftest.${OBJEXT-o} 4129 am__minus_obj="-o $am__obj" 4130 case $depmode in 4131 gcc) 4132 # This depmode causes a compiler race in universal mode. 4133 test "$am__universal" = false || continue 4134 ;; 4135 nosideeffect) 4136 # After this tag, mechanisms are not by side-effect, so they'll 4137 # only be used when explicitly requested. 4138 if test "x$enable_dependency_tracking" = xyes; then 4139 continue 4140 else 4141 break 4142 fi 4143 ;; 4144 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4145 # This compiler won't grok '-c -o', but also, the minuso test has 4146 # not run yet. These depmodes are late enough in the game, and 4147 # so weak that their functioning should not be impacted. 4148 am__obj=conftest.${OBJEXT-o} 4149 am__minus_obj= 4150 ;; 4151 none) break ;; 4152 esac 4153 if depmode=$depmode \ 4154 source=sub/conftest.c object=$am__obj \ 4155 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4156 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4157 >/dev/null 2>conftest.err && 4158 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4159 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4160 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4161 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4162 # icc doesn't choke on unknown options, it will just issue warnings 4163 # or remarks (even with -Werror). So we grep stderr for any message 4164 # that says an option was ignored or not supported. 4165 # When given -MP, icc 7.0 and 7.1 complain thusly: 4166 # icc: Command line warning: ignoring option '-M'; no argument required 4167 # The diagnosis changed in icc 8.0: 4168 # icc: Command line remark: option '-MP' not supported 4169 if (grep 'ignoring option' conftest.err || 4170 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4171 am_cv_CC_dependencies_compiler_type=$depmode 4172 break 4173 fi 4174 fi 4175 done 4176 4177 cd .. 4178 rm -rf conftest.dir 4179else 4180 am_cv_CC_dependencies_compiler_type=none 4181fi 4182 4183fi 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4185$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4186CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4187 4188 if 4189 test "x$enable_dependency_tracking" != xno \ 4190 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4191 am__fastdepCC_TRUE= 4192 am__fastdepCC_FALSE='#' 4193else 4194 am__fastdepCC_TRUE='#' 4195 am__fastdepCC_FALSE= 4196fi 4197 4198 4199ac_ext=c 4200ac_cpp='$CPP $CPPFLAGS' 4201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4203ac_compiler_gnu=$ac_cv_c_compiler_gnu 4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4205$as_echo_n "checking how to run the C preprocessor... " >&6; } 4206# On Suns, sometimes $CPP names a directory. 4207if test -n "$CPP" && test -d "$CPP"; then 4208 CPP= 4209fi 4210if test -z "$CPP"; then 4211 if ${ac_cv_prog_CPP+:} false; then : 4212 $as_echo_n "(cached) " >&6 4213else 4214 # Double quotes because CPP needs to be expanded 4215 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4216 do 4217 ac_preproc_ok=false 4218for ac_c_preproc_warn_flag in '' yes 4219do 4220 # Use a header file that comes with gcc, so configuring glibc 4221 # with a fresh cross-compiler works. 4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4223 # <limits.h> exists even on freestanding compilers. 4224 # On the NeXT, cc -E runs the code through the compiler's parser, 4225 # not just through cpp. "Syntax error" is here to catch this case. 4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227/* end confdefs.h. */ 4228#ifdef __STDC__ 4229# include <limits.h> 4230#else 4231# include <assert.h> 4232#endif 4233 Syntax error 4234_ACEOF 4235if ac_fn_c_try_cpp "$LINENO"; then : 4236 4237else 4238 # Broken: fails on valid input. 4239continue 4240fi 4241rm -f conftest.err conftest.i conftest.$ac_ext 4242 4243 # OK, works on sane cases. Now check whether nonexistent headers 4244 # can be detected and how. 4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4246/* end confdefs.h. */ 4247#include <ac_nonexistent.h> 4248_ACEOF 4249if ac_fn_c_try_cpp "$LINENO"; then : 4250 # Broken: success on invalid input. 4251continue 4252else 4253 # Passes both tests. 4254ac_preproc_ok=: 4255break 4256fi 4257rm -f conftest.err conftest.i conftest.$ac_ext 4258 4259done 4260# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4261rm -f conftest.i conftest.err conftest.$ac_ext 4262if $ac_preproc_ok; then : 4263 break 4264fi 4265 4266 done 4267 ac_cv_prog_CPP=$CPP 4268 4269fi 4270 CPP=$ac_cv_prog_CPP 4271else 4272 ac_cv_prog_CPP=$CPP 4273fi 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4275$as_echo "$CPP" >&6; } 4276ac_preproc_ok=false 4277for ac_c_preproc_warn_flag in '' yes 4278do 4279 # Use a header file that comes with gcc, so configuring glibc 4280 # with a fresh cross-compiler works. 4281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4282 # <limits.h> exists even on freestanding compilers. 4283 # On the NeXT, cc -E runs the code through the compiler's parser, 4284 # not just through cpp. "Syntax error" is here to catch this case. 4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286/* end confdefs.h. */ 4287#ifdef __STDC__ 4288# include <limits.h> 4289#else 4290# include <assert.h> 4291#endif 4292 Syntax error 4293_ACEOF 4294if ac_fn_c_try_cpp "$LINENO"; then : 4295 4296else 4297 # Broken: fails on valid input. 4298continue 4299fi 4300rm -f conftest.err conftest.i conftest.$ac_ext 4301 4302 # OK, works on sane cases. Now check whether nonexistent headers 4303 # can be detected and how. 4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4305/* end confdefs.h. */ 4306#include <ac_nonexistent.h> 4307_ACEOF 4308if ac_fn_c_try_cpp "$LINENO"; then : 4309 # Broken: success on invalid input. 4310continue 4311else 4312 # Passes both tests. 4313ac_preproc_ok=: 4314break 4315fi 4316rm -f conftest.err conftest.i conftest.$ac_ext 4317 4318done 4319# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4320rm -f conftest.i conftest.err conftest.$ac_ext 4321if $ac_preproc_ok; then : 4322 4323else 4324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4326as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4327See \`config.log' for more details" "$LINENO" 5; } 4328fi 4329 4330ac_ext=c 4331ac_cpp='$CPP $CPPFLAGS' 4332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4334ac_compiler_gnu=$ac_cv_c_compiler_gnu 4335 4336ac_ext=cpp 4337ac_cpp='$CXXCPP $CPPFLAGS' 4338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4341if test -z "$CXX"; then 4342 if test -n "$CCC"; then 4343 CXX=$CCC 4344 else 4345 if test -n "$ac_tool_prefix"; then 4346 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4347 do 4348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4349set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4351$as_echo_n "checking for $ac_word... " >&6; } 4352if ${ac_cv_prog_CXX+:} false; then : 4353 $as_echo_n "(cached) " >&6 4354else 4355 if test -n "$CXX"; then 4356 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4357else 4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4359for as_dir in $PATH 4360do 4361 IFS=$as_save_IFS 4362 test -z "$as_dir" && as_dir=. 4363 for ac_exec_ext in '' $ac_executable_extensions; do 4364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4365 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4367 break 2 4368 fi 4369done 4370 done 4371IFS=$as_save_IFS 4372 4373fi 4374fi 4375CXX=$ac_cv_prog_CXX 4376if test -n "$CXX"; then 4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4378$as_echo "$CXX" >&6; } 4379else 4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4381$as_echo "no" >&6; } 4382fi 4383 4384 4385 test -n "$CXX" && break 4386 done 4387fi 4388if test -z "$CXX"; then 4389 ac_ct_CXX=$CXX 4390 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4391do 4392 # Extract the first word of "$ac_prog", so it can be a program name with args. 4393set dummy $ac_prog; ac_word=$2 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4395$as_echo_n "checking for $ac_word... " >&6; } 4396if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4397 $as_echo_n "(cached) " >&6 4398else 4399 if test -n "$ac_ct_CXX"; then 4400 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4401else 4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4403for as_dir in $PATH 4404do 4405 IFS=$as_save_IFS 4406 test -z "$as_dir" && as_dir=. 4407 for ac_exec_ext in '' $ac_executable_extensions; do 4408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4409 ac_cv_prog_ac_ct_CXX="$ac_prog" 4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4411 break 2 4412 fi 4413done 4414 done 4415IFS=$as_save_IFS 4416 4417fi 4418fi 4419ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4420if test -n "$ac_ct_CXX"; then 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4422$as_echo "$ac_ct_CXX" >&6; } 4423else 4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4425$as_echo "no" >&6; } 4426fi 4427 4428 4429 test -n "$ac_ct_CXX" && break 4430done 4431 4432 if test "x$ac_ct_CXX" = x; then 4433 CXX="g++" 4434 else 4435 case $cross_compiling:$ac_tool_warned in 4436yes:) 4437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4439ac_tool_warned=yes ;; 4440esac 4441 CXX=$ac_ct_CXX 4442 fi 4443fi 4444 4445 fi 4446fi 4447# Provide some information about the compiler. 4448$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4449set X $ac_compile 4450ac_compiler=$2 4451for ac_option in --version -v -V -qversion; do 4452 { { ac_try="$ac_compiler $ac_option >&5" 4453case "(($ac_try" in 4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4455 *) ac_try_echo=$ac_try;; 4456esac 4457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4458$as_echo "$ac_try_echo"; } >&5 4459 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4460 ac_status=$? 4461 if test -s conftest.err; then 4462 sed '10a\ 4463... rest of stderr output deleted ... 4464 10q' conftest.err >conftest.er1 4465 cat conftest.er1 >&5 4466 fi 4467 rm -f conftest.er1 conftest.err 4468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4469 test $ac_status = 0; } 4470done 4471 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4473$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4474if ${ac_cv_cxx_compiler_gnu+:} false; then : 4475 $as_echo_n "(cached) " >&6 4476else 4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4478/* end confdefs.h. */ 4479 4480int 4481main () 4482{ 4483#ifndef __GNUC__ 4484 choke me 4485#endif 4486 4487 ; 4488 return 0; 4489} 4490_ACEOF 4491if ac_fn_cxx_try_compile "$LINENO"; then : 4492 ac_compiler_gnu=yes 4493else 4494 ac_compiler_gnu=no 4495fi 4496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4497ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4498 4499fi 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4501$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4502if test $ac_compiler_gnu = yes; then 4503 GXX=yes 4504else 4505 GXX= 4506fi 4507ac_test_CXXFLAGS=${CXXFLAGS+set} 4508ac_save_CXXFLAGS=$CXXFLAGS 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4510$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4511if ${ac_cv_prog_cxx_g+:} false; then : 4512 $as_echo_n "(cached) " >&6 4513else 4514 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4515 ac_cxx_werror_flag=yes 4516 ac_cv_prog_cxx_g=no 4517 CXXFLAGS="-g" 4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4519/* end confdefs.h. */ 4520 4521int 4522main () 4523{ 4524 4525 ; 4526 return 0; 4527} 4528_ACEOF 4529if ac_fn_cxx_try_compile "$LINENO"; then : 4530 ac_cv_prog_cxx_g=yes 4531else 4532 CXXFLAGS="" 4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4534/* end confdefs.h. */ 4535 4536int 4537main () 4538{ 4539 4540 ; 4541 return 0; 4542} 4543_ACEOF 4544if ac_fn_cxx_try_compile "$LINENO"; then : 4545 4546else 4547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4548 CXXFLAGS="-g" 4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4550/* end confdefs.h. */ 4551 4552int 4553main () 4554{ 4555 4556 ; 4557 return 0; 4558} 4559_ACEOF 4560if ac_fn_cxx_try_compile "$LINENO"; then : 4561 ac_cv_prog_cxx_g=yes 4562fi 4563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4564fi 4565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4566fi 4567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4568 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4569fi 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4571$as_echo "$ac_cv_prog_cxx_g" >&6; } 4572if test "$ac_test_CXXFLAGS" = set; then 4573 CXXFLAGS=$ac_save_CXXFLAGS 4574elif test $ac_cv_prog_cxx_g = yes; then 4575 if test "$GXX" = yes; then 4576 CXXFLAGS="-g -O2" 4577 else 4578 CXXFLAGS="-g" 4579 fi 4580else 4581 if test "$GXX" = yes; then 4582 CXXFLAGS="-O2" 4583 else 4584 CXXFLAGS= 4585 fi 4586fi 4587ac_ext=c 4588ac_cpp='$CPP $CPPFLAGS' 4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4591ac_compiler_gnu=$ac_cv_c_compiler_gnu 4592 4593depcc="$CXX" am_compiler_list= 4594 4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4596$as_echo_n "checking dependency style of $depcc... " >&6; } 4597if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4598 $as_echo_n "(cached) " >&6 4599else 4600 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4601 # We make a subdir and do the tests there. Otherwise we can end up 4602 # making bogus files that we don't know about and never remove. For 4603 # instance it was reported that on HP-UX the gcc test will end up 4604 # making a dummy file named 'D' -- because '-MD' means "put the output 4605 # in D". 4606 rm -rf conftest.dir 4607 mkdir conftest.dir 4608 # Copy depcomp to subdir because otherwise we won't find it if we're 4609 # using a relative directory. 4610 cp "$am_depcomp" conftest.dir 4611 cd conftest.dir 4612 # We will build objects and dependencies in a subdirectory because 4613 # it helps to detect inapplicable dependency modes. For instance 4614 # both Tru64's cc and ICC support -MD to output dependencies as a 4615 # side effect of compilation, but ICC will put the dependencies in 4616 # the current directory while Tru64 will put them in the object 4617 # directory. 4618 mkdir sub 4619 4620 am_cv_CXX_dependencies_compiler_type=none 4621 if test "$am_compiler_list" = ""; then 4622 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4623 fi 4624 am__universal=false 4625 case " $depcc " in #( 4626 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4627 esac 4628 4629 for depmode in $am_compiler_list; do 4630 # Setup a source with many dependencies, because some compilers 4631 # like to wrap large dependency lists on column 80 (with \), and 4632 # we should not choose a depcomp mode which is confused by this. 4633 # 4634 # We need to recreate these files for each test, as the compiler may 4635 # overwrite some of them when testing with obscure command lines. 4636 # This happens at least with the AIX C compiler. 4637 : > sub/conftest.c 4638 for i in 1 2 3 4 5 6; do 4639 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4640 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4641 # Solaris 10 /bin/sh. 4642 echo '/* dummy */' > sub/conftst$i.h 4643 done 4644 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4645 4646 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4647 # mode. It turns out that the SunPro C++ compiler does not properly 4648 # handle '-M -o', and we need to detect this. Also, some Intel 4649 # versions had trouble with output in subdirs. 4650 am__obj=sub/conftest.${OBJEXT-o} 4651 am__minus_obj="-o $am__obj" 4652 case $depmode in 4653 gcc) 4654 # This depmode causes a compiler race in universal mode. 4655 test "$am__universal" = false || continue 4656 ;; 4657 nosideeffect) 4658 # After this tag, mechanisms are not by side-effect, so they'll 4659 # only be used when explicitly requested. 4660 if test "x$enable_dependency_tracking" = xyes; then 4661 continue 4662 else 4663 break 4664 fi 4665 ;; 4666 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4667 # This compiler won't grok '-c -o', but also, the minuso test has 4668 # not run yet. These depmodes are late enough in the game, and 4669 # so weak that their functioning should not be impacted. 4670 am__obj=conftest.${OBJEXT-o} 4671 am__minus_obj= 4672 ;; 4673 none) break ;; 4674 esac 4675 if depmode=$depmode \ 4676 source=sub/conftest.c object=$am__obj \ 4677 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4678 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4679 >/dev/null 2>conftest.err && 4680 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4681 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4682 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4683 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4684 # icc doesn't choke on unknown options, it will just issue warnings 4685 # or remarks (even with -Werror). So we grep stderr for any message 4686 # that says an option was ignored or not supported. 4687 # When given -MP, icc 7.0 and 7.1 complain thusly: 4688 # icc: Command line warning: ignoring option '-M'; no argument required 4689 # The diagnosis changed in icc 8.0: 4690 # icc: Command line remark: option '-MP' not supported 4691 if (grep 'ignoring option' conftest.err || 4692 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4693 am_cv_CXX_dependencies_compiler_type=$depmode 4694 break 4695 fi 4696 fi 4697 done 4698 4699 cd .. 4700 rm -rf conftest.dir 4701else 4702 am_cv_CXX_dependencies_compiler_type=none 4703fi 4704 4705fi 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4707$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4708CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4709 4710 if 4711 test "x$enable_dependency_tracking" != xno \ 4712 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4713 am__fastdepCXX_TRUE= 4714 am__fastdepCXX_FALSE='#' 4715else 4716 am__fastdepCXX_TRUE='#' 4717 am__fastdepCXX_FALSE= 4718fi 4719 4720 4721 4722for ac_prog in flex lex 4723do 4724 # Extract the first word of "$ac_prog", so it can be a program name with args. 4725set dummy $ac_prog; ac_word=$2 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4727$as_echo_n "checking for $ac_word... " >&6; } 4728if ${ac_cv_prog_LEX+:} false; then : 4729 $as_echo_n "(cached) " >&6 4730else 4731 if test -n "$LEX"; then 4732 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4733else 4734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4735for as_dir in $PATH 4736do 4737 IFS=$as_save_IFS 4738 test -z "$as_dir" && as_dir=. 4739 for ac_exec_ext in '' $ac_executable_extensions; do 4740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4741 ac_cv_prog_LEX="$ac_prog" 4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4743 break 2 4744 fi 4745done 4746 done 4747IFS=$as_save_IFS 4748 4749fi 4750fi 4751LEX=$ac_cv_prog_LEX 4752if test -n "$LEX"; then 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 4754$as_echo "$LEX" >&6; } 4755else 4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4757$as_echo "no" >&6; } 4758fi 4759 4760 4761 test -n "$LEX" && break 4762done 4763test -n "$LEX" || LEX=":" 4764 4765if test "x$LEX" != "x:"; then 4766 cat >conftest.l <<_ACEOF 4767%% 4768a { ECHO; } 4769b { REJECT; } 4770c { yymore (); } 4771d { yyless (1); } 4772e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 4773 yyless ((input () != 0)); } 4774f { unput (yytext[0]); } 4775. { BEGIN INITIAL; } 4776%% 4777#ifdef YYTEXT_POINTER 4778extern char *yytext; 4779#endif 4780int 4781main (void) 4782{ 4783 return ! yylex () + ! yywrap (); 4784} 4785_ACEOF 4786{ { ac_try="$LEX conftest.l" 4787case "(($ac_try" in 4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4789 *) ac_try_echo=$ac_try;; 4790esac 4791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4792$as_echo "$ac_try_echo"; } >&5 4793 (eval "$LEX conftest.l") 2>&5 4794 ac_status=$? 4795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4796 test $ac_status = 0; } 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 4798$as_echo_n "checking lex output file root... " >&6; } 4799if ${ac_cv_prog_lex_root+:} false; then : 4800 $as_echo_n "(cached) " >&6 4801else 4802 4803if test -f lex.yy.c; then 4804 ac_cv_prog_lex_root=lex.yy 4805elif test -f lexyy.c; then 4806 ac_cv_prog_lex_root=lexyy 4807else 4808 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 4809fi 4810fi 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 4812$as_echo "$ac_cv_prog_lex_root" >&6; } 4813LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4814 4815if test -z "${LEXLIB+set}"; then 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 4817$as_echo_n "checking lex library... " >&6; } 4818if ${ac_cv_lib_lex+:} false; then : 4819 $as_echo_n "(cached) " >&6 4820else 4821 4822 ac_save_LIBS=$LIBS 4823 ac_cv_lib_lex='none needed' 4824 for ac_lib in '' -lfl -ll; do 4825 LIBS="$ac_lib $ac_save_LIBS" 4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4827/* end confdefs.h. */ 4828`cat $LEX_OUTPUT_ROOT.c` 4829_ACEOF 4830if ac_fn_c_try_link "$LINENO"; then : 4831 ac_cv_lib_lex=$ac_lib 4832fi 4833rm -f core conftest.err conftest.$ac_objext \ 4834 conftest$ac_exeext conftest.$ac_ext 4835 test "$ac_cv_lib_lex" != 'none needed' && break 4836 done 4837 LIBS=$ac_save_LIBS 4838 4839fi 4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 4841$as_echo "$ac_cv_lib_lex" >&6; } 4842 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 4843fi 4844 4845 4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 4847$as_echo_n "checking whether yytext is a pointer... " >&6; } 4848if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 4849 $as_echo_n "(cached) " >&6 4850else 4851 # POSIX says lex can declare yytext either as a pointer or an array; the 4852# default is implementation-dependent. Figure out which it is, since 4853# not all implementations provide the %pointer and %array declarations. 4854ac_cv_prog_lex_yytext_pointer=no 4855ac_save_LIBS=$LIBS 4856LIBS="$LEXLIB $ac_save_LIBS" 4857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4858/* end confdefs.h. */ 4859 4860 #define YYTEXT_POINTER 1 4861`cat $LEX_OUTPUT_ROOT.c` 4862_ACEOF 4863if ac_fn_c_try_link "$LINENO"; then : 4864 ac_cv_prog_lex_yytext_pointer=yes 4865fi 4866rm -f core conftest.err conftest.$ac_objext \ 4867 conftest$ac_exeext conftest.$ac_ext 4868LIBS=$ac_save_LIBS 4869 4870fi 4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 4872$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 4873if test $ac_cv_prog_lex_yytext_pointer = yes; then 4874 4875$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 4876 4877fi 4878rm -f conftest.l $LEX_OUTPUT_ROOT.c 4879 4880fi 4881if test "$LEX" = :; then 4882 LEX=${am_missing_run}flex 4883fi 4884for ac_prog in gawk mawk nawk awk 4885do 4886 # Extract the first word of "$ac_prog", so it can be a program name with args. 4887set dummy $ac_prog; ac_word=$2 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4889$as_echo_n "checking for $ac_word... " >&6; } 4890if ${ac_cv_prog_AWK+:} false; then : 4891 $as_echo_n "(cached) " >&6 4892else 4893 if test -n "$AWK"; then 4894 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4895else 4896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4897for as_dir in $PATH 4898do 4899 IFS=$as_save_IFS 4900 test -z "$as_dir" && as_dir=. 4901 for ac_exec_ext in '' $ac_executable_extensions; do 4902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4903 ac_cv_prog_AWK="$ac_prog" 4904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4905 break 2 4906 fi 4907done 4908 done 4909IFS=$as_save_IFS 4910 4911fi 4912fi 4913AWK=$ac_cv_prog_AWK 4914if test -n "$AWK"; then 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4916$as_echo "$AWK" >&6; } 4917else 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4919$as_echo "no" >&6; } 4920fi 4921 4922 4923 test -n "$AWK" && break 4924done 4925 4926 4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4928$as_echo_n "checking whether ln -s works... " >&6; } 4929LN_S=$as_ln_s 4930if test "$LN_S" = "ln -s"; then 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4932$as_echo "yes" >&6; } 4933else 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4935$as_echo "no, using $LN_S" >&6; } 4936fi 4937 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4939$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4940set x ${MAKE-make} 4941ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4942if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 cat >conftest.make <<\_ACEOF 4946SHELL = /bin/sh 4947all: 4948 @echo '@@@%%%=$(MAKE)=@@@%%%' 4949_ACEOF 4950# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4951case `${MAKE-make} -f conftest.make 2>/dev/null` in 4952 *@@@%%%=?*=@@@%%%*) 4953 eval ac_cv_prog_make_${ac_make}_set=yes;; 4954 *) 4955 eval ac_cv_prog_make_${ac_make}_set=no;; 4956esac 4957rm -f conftest.make 4958fi 4959if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4961$as_echo "yes" >&6; } 4962 SET_MAKE= 4963else 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4965$as_echo "no" >&6; } 4966 SET_MAKE="MAKE=${MAKE-make}" 4967fi 4968 4969case `pwd` in 4970 *\ * | *\ *) 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4972$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4973esac 4974 4975 4976 4977macro_version='2.4.2' 4978macro_revision='1.3337' 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992ltmain="$ac_aux_dir/ltmain.sh" 4993 4994# Backslashify metacharacters that are still active within 4995# double-quoted strings. 4996sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4997 4998# Same as above, but do not quote variable references. 4999double_quote_subst='s/\(["`\\]\)/\\\1/g' 5000 5001# Sed substitution to delay expansion of an escaped shell variable in a 5002# double_quote_subst'ed string. 5003delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5004 5005# Sed substitution to delay expansion of an escaped single quote. 5006delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5007 5008# Sed substitution to avoid accidental globbing in evaled expressions 5009no_glob_subst='s/\*/\\\*/g' 5010 5011ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5012ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5013ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5014 5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5016$as_echo_n "checking how to print strings... " >&6; } 5017# Test print first, because it will be a builtin if present. 5018if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5019 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5020 ECHO='print -r --' 5021elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5022 ECHO='printf %s\n' 5023else 5024 # Use this function as a fallback that always works. 5025 func_fallback_echo () 5026 { 5027 eval 'cat <<_LTECHO_EOF 5028$1 5029_LTECHO_EOF' 5030 } 5031 ECHO='func_fallback_echo' 5032fi 5033 5034# func_echo_all arg... 5035# Invoke $ECHO with all args, space-separated. 5036func_echo_all () 5037{ 5038 $ECHO "" 5039} 5040 5041case "$ECHO" in 5042 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5043$as_echo "printf" >&6; } ;; 5044 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5045$as_echo "print -r" >&6; } ;; 5046 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5047$as_echo "cat" >&6; } ;; 5048esac 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5064$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5065if ${ac_cv_path_SED+:} false; then : 5066 $as_echo_n "(cached) " >&6 5067else 5068 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5069 for ac_i in 1 2 3 4 5 6 7; do 5070 ac_script="$ac_script$as_nl$ac_script" 5071 done 5072 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5073 { ac_script=; unset ac_script;} 5074 if test -z "$SED"; then 5075 ac_path_SED_found=false 5076 # Loop through the user's path and test for each of PROGNAME-LIST 5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5078for as_dir in $PATH 5079do 5080 IFS=$as_save_IFS 5081 test -z "$as_dir" && as_dir=. 5082 for ac_prog in sed gsed; do 5083 for ac_exec_ext in '' $ac_executable_extensions; do 5084 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5085 as_fn_executable_p "$ac_path_SED" || continue 5086# Check for GNU ac_path_SED and select it if it is found. 5087 # Check for GNU $ac_path_SED 5088case `"$ac_path_SED" --version 2>&1` in 5089*GNU*) 5090 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5091*) 5092 ac_count=0 5093 $as_echo_n 0123456789 >"conftest.in" 5094 while : 5095 do 5096 cat "conftest.in" "conftest.in" >"conftest.tmp" 5097 mv "conftest.tmp" "conftest.in" 5098 cp "conftest.in" "conftest.nl" 5099 $as_echo '' >> "conftest.nl" 5100 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5102 as_fn_arith $ac_count + 1 && ac_count=$as_val 5103 if test $ac_count -gt ${ac_path_SED_max-0}; then 5104 # Best one so far, save it but keep looking for a better one 5105 ac_cv_path_SED="$ac_path_SED" 5106 ac_path_SED_max=$ac_count 5107 fi 5108 # 10*(2^10) chars as input seems more than enough 5109 test $ac_count -gt 10 && break 5110 done 5111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5112esac 5113 5114 $ac_path_SED_found && break 3 5115 done 5116 done 5117 done 5118IFS=$as_save_IFS 5119 if test -z "$ac_cv_path_SED"; then 5120 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5121 fi 5122else 5123 ac_cv_path_SED=$SED 5124fi 5125 5126fi 5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5128$as_echo "$ac_cv_path_SED" >&6; } 5129 SED="$ac_cv_path_SED" 5130 rm -f conftest.sed 5131 5132test -z "$SED" && SED=sed 5133Xsed="$SED -e 1s/^X//" 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5146$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5147if ${ac_cv_path_GREP+:} false; then : 5148 $as_echo_n "(cached) " >&6 5149else 5150 if test -z "$GREP"; then 5151 ac_path_GREP_found=false 5152 # Loop through the user's path and test for each of PROGNAME-LIST 5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5154for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5155do 5156 IFS=$as_save_IFS 5157 test -z "$as_dir" && as_dir=. 5158 for ac_prog in grep ggrep; do 5159 for ac_exec_ext in '' $ac_executable_extensions; do 5160 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5161 as_fn_executable_p "$ac_path_GREP" || continue 5162# Check for GNU ac_path_GREP and select it if it is found. 5163 # Check for GNU $ac_path_GREP 5164case `"$ac_path_GREP" --version 2>&1` in 5165*GNU*) 5166 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5167*) 5168 ac_count=0 5169 $as_echo_n 0123456789 >"conftest.in" 5170 while : 5171 do 5172 cat "conftest.in" "conftest.in" >"conftest.tmp" 5173 mv "conftest.tmp" "conftest.in" 5174 cp "conftest.in" "conftest.nl" 5175 $as_echo 'GREP' >> "conftest.nl" 5176 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5178 as_fn_arith $ac_count + 1 && ac_count=$as_val 5179 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5180 # Best one so far, save it but keep looking for a better one 5181 ac_cv_path_GREP="$ac_path_GREP" 5182 ac_path_GREP_max=$ac_count 5183 fi 5184 # 10*(2^10) chars as input seems more than enough 5185 test $ac_count -gt 10 && break 5186 done 5187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5188esac 5189 5190 $ac_path_GREP_found && break 3 5191 done 5192 done 5193 done 5194IFS=$as_save_IFS 5195 if test -z "$ac_cv_path_GREP"; then 5196 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5197 fi 5198else 5199 ac_cv_path_GREP=$GREP 5200fi 5201 5202fi 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5204$as_echo "$ac_cv_path_GREP" >&6; } 5205 GREP="$ac_cv_path_GREP" 5206 5207 5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5209$as_echo_n "checking for egrep... " >&6; } 5210if ${ac_cv_path_EGREP+:} false; then : 5211 $as_echo_n "(cached) " >&6 5212else 5213 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5214 then ac_cv_path_EGREP="$GREP -E" 5215 else 5216 if test -z "$EGREP"; then 5217 ac_path_EGREP_found=false 5218 # Loop through the user's path and test for each of PROGNAME-LIST 5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5220for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5221do 5222 IFS=$as_save_IFS 5223 test -z "$as_dir" && as_dir=. 5224 for ac_prog in egrep; do 5225 for ac_exec_ext in '' $ac_executable_extensions; do 5226 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5227 as_fn_executable_p "$ac_path_EGREP" || continue 5228# Check for GNU ac_path_EGREP and select it if it is found. 5229 # Check for GNU $ac_path_EGREP 5230case `"$ac_path_EGREP" --version 2>&1` in 5231*GNU*) 5232 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5233*) 5234 ac_count=0 5235 $as_echo_n 0123456789 >"conftest.in" 5236 while : 5237 do 5238 cat "conftest.in" "conftest.in" >"conftest.tmp" 5239 mv "conftest.tmp" "conftest.in" 5240 cp "conftest.in" "conftest.nl" 5241 $as_echo 'EGREP' >> "conftest.nl" 5242 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5244 as_fn_arith $ac_count + 1 && ac_count=$as_val 5245 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5246 # Best one so far, save it but keep looking for a better one 5247 ac_cv_path_EGREP="$ac_path_EGREP" 5248 ac_path_EGREP_max=$ac_count 5249 fi 5250 # 10*(2^10) chars as input seems more than enough 5251 test $ac_count -gt 10 && break 5252 done 5253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5254esac 5255 5256 $ac_path_EGREP_found && break 3 5257 done 5258 done 5259 done 5260IFS=$as_save_IFS 5261 if test -z "$ac_cv_path_EGREP"; then 5262 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5263 fi 5264else 5265 ac_cv_path_EGREP=$EGREP 5266fi 5267 5268 fi 5269fi 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5271$as_echo "$ac_cv_path_EGREP" >&6; } 5272 EGREP="$ac_cv_path_EGREP" 5273 5274 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5276$as_echo_n "checking for fgrep... " >&6; } 5277if ${ac_cv_path_FGREP+:} false; then : 5278 $as_echo_n "(cached) " >&6 5279else 5280 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5281 then ac_cv_path_FGREP="$GREP -F" 5282 else 5283 if test -z "$FGREP"; then 5284 ac_path_FGREP_found=false 5285 # Loop through the user's path and test for each of PROGNAME-LIST 5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5288do 5289 IFS=$as_save_IFS 5290 test -z "$as_dir" && as_dir=. 5291 for ac_prog in fgrep; do 5292 for ac_exec_ext in '' $ac_executable_extensions; do 5293 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5294 as_fn_executable_p "$ac_path_FGREP" || continue 5295# Check for GNU ac_path_FGREP and select it if it is found. 5296 # Check for GNU $ac_path_FGREP 5297case `"$ac_path_FGREP" --version 2>&1` in 5298*GNU*) 5299 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5300*) 5301 ac_count=0 5302 $as_echo_n 0123456789 >"conftest.in" 5303 while : 5304 do 5305 cat "conftest.in" "conftest.in" >"conftest.tmp" 5306 mv "conftest.tmp" "conftest.in" 5307 cp "conftest.in" "conftest.nl" 5308 $as_echo 'FGREP' >> "conftest.nl" 5309 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5311 as_fn_arith $ac_count + 1 && ac_count=$as_val 5312 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5313 # Best one so far, save it but keep looking for a better one 5314 ac_cv_path_FGREP="$ac_path_FGREP" 5315 ac_path_FGREP_max=$ac_count 5316 fi 5317 # 10*(2^10) chars as input seems more than enough 5318 test $ac_count -gt 10 && break 5319 done 5320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5321esac 5322 5323 $ac_path_FGREP_found && break 3 5324 done 5325 done 5326 done 5327IFS=$as_save_IFS 5328 if test -z "$ac_cv_path_FGREP"; then 5329 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5330 fi 5331else 5332 ac_cv_path_FGREP=$FGREP 5333fi 5334 5335 fi 5336fi 5337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5338$as_echo "$ac_cv_path_FGREP" >&6; } 5339 FGREP="$ac_cv_path_FGREP" 5340 5341 5342test -z "$GREP" && GREP=grep 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362# Check whether --with-gnu-ld was given. 5363if test "${with_gnu_ld+set}" = set; then : 5364 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5365else 5366 with_gnu_ld=no 5367fi 5368 5369ac_prog=ld 5370if test "$GCC" = yes; then 5371 # Check if gcc -print-prog-name=ld gives a path. 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5373$as_echo_n "checking for ld used by $CC... " >&6; } 5374 case $host in 5375 *-*-mingw*) 5376 # gcc leaves a trailing carriage return which upsets mingw 5377 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5378 *) 5379 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5380 esac 5381 case $ac_prog in 5382 # Accept absolute paths. 5383 [\\/]* | ?:[\\/]*) 5384 re_direlt='/[^/][^/]*/\.\./' 5385 # Canonicalize the pathname of ld 5386 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5387 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5388 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5389 done 5390 test -z "$LD" && LD="$ac_prog" 5391 ;; 5392 "") 5393 # If it fails, then pretend we aren't using GCC. 5394 ac_prog=ld 5395 ;; 5396 *) 5397 # If it is relative, then search for the first ld in PATH. 5398 with_gnu_ld=unknown 5399 ;; 5400 esac 5401elif test "$with_gnu_ld" = yes; then 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5403$as_echo_n "checking for GNU ld... " >&6; } 5404else 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5406$as_echo_n "checking for non-GNU ld... " >&6; } 5407fi 5408if ${lt_cv_path_LD+:} false; then : 5409 $as_echo_n "(cached) " >&6 5410else 5411 if test -z "$LD"; then 5412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5413 for ac_dir in $PATH; do 5414 IFS="$lt_save_ifs" 5415 test -z "$ac_dir" && ac_dir=. 5416 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5417 lt_cv_path_LD="$ac_dir/$ac_prog" 5418 # Check to see if the program is GNU ld. I'd rather use --version, 5419 # but apparently some variants of GNU ld only accept -v. 5420 # Break only if it was the GNU/non-GNU ld that we prefer. 5421 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5422 *GNU* | *'with BFD'*) 5423 test "$with_gnu_ld" != no && break 5424 ;; 5425 *) 5426 test "$with_gnu_ld" != yes && break 5427 ;; 5428 esac 5429 fi 5430 done 5431 IFS="$lt_save_ifs" 5432else 5433 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5434fi 5435fi 5436 5437LD="$lt_cv_path_LD" 5438if test -n "$LD"; then 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5440$as_echo "$LD" >&6; } 5441else 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5443$as_echo "no" >&6; } 5444fi 5445test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5447$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5448if ${lt_cv_prog_gnu_ld+:} false; then : 5449 $as_echo_n "(cached) " >&6 5450else 5451 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5452case `$LD -v 2>&1 </dev/null` in 5453*GNU* | *'with BFD'*) 5454 lt_cv_prog_gnu_ld=yes 5455 ;; 5456*) 5457 lt_cv_prog_gnu_ld=no 5458 ;; 5459esac 5460fi 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5462$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5463with_gnu_ld=$lt_cv_prog_gnu_ld 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5474$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5475if ${lt_cv_path_NM+:} false; then : 5476 $as_echo_n "(cached) " >&6 5477else 5478 if test -n "$NM"; then 5479 # Let the user override the test. 5480 lt_cv_path_NM="$NM" 5481else 5482 lt_nm_to_check="${ac_tool_prefix}nm" 5483 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5484 lt_nm_to_check="$lt_nm_to_check nm" 5485 fi 5486 for lt_tmp_nm in $lt_nm_to_check; do 5487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5488 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5489 IFS="$lt_save_ifs" 5490 test -z "$ac_dir" && ac_dir=. 5491 tmp_nm="$ac_dir/$lt_tmp_nm" 5492 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5493 # Check to see if the nm accepts a BSD-compat flag. 5494 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5495 # nm: unknown option "B" ignored 5496 # Tru64's nm complains that /dev/null is an invalid object file 5497 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5498 */dev/null* | *'Invalid file or object type'*) 5499 lt_cv_path_NM="$tmp_nm -B" 5500 break 5501 ;; 5502 *) 5503 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5504 */dev/null*) 5505 lt_cv_path_NM="$tmp_nm -p" 5506 break 5507 ;; 5508 *) 5509 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5510 continue # so that we can try to find one that supports BSD flags 5511 ;; 5512 esac 5513 ;; 5514 esac 5515 fi 5516 done 5517 IFS="$lt_save_ifs" 5518 done 5519 : ${lt_cv_path_NM=no} 5520fi 5521fi 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5523$as_echo "$lt_cv_path_NM" >&6; } 5524if test "$lt_cv_path_NM" != "no"; then 5525 NM="$lt_cv_path_NM" 5526else 5527 # Didn't find any BSD compatible name lister, look for dumpbin. 5528 if test -n "$DUMPBIN"; then : 5529 # Let the user override the test. 5530 else 5531 if test -n "$ac_tool_prefix"; then 5532 for ac_prog in dumpbin "link -dump" 5533 do 5534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5535set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5537$as_echo_n "checking for $ac_word... " >&6; } 5538if ${ac_cv_prog_DUMPBIN+:} false; then : 5539 $as_echo_n "(cached) " >&6 5540else 5541 if test -n "$DUMPBIN"; then 5542 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5543else 5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5545for as_dir in $PATH 5546do 5547 IFS=$as_save_IFS 5548 test -z "$as_dir" && as_dir=. 5549 for ac_exec_ext in '' $ac_executable_extensions; do 5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5551 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5553 break 2 5554 fi 5555done 5556 done 5557IFS=$as_save_IFS 5558 5559fi 5560fi 5561DUMPBIN=$ac_cv_prog_DUMPBIN 5562if test -n "$DUMPBIN"; then 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5564$as_echo "$DUMPBIN" >&6; } 5565else 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5567$as_echo "no" >&6; } 5568fi 5569 5570 5571 test -n "$DUMPBIN" && break 5572 done 5573fi 5574if test -z "$DUMPBIN"; then 5575 ac_ct_DUMPBIN=$DUMPBIN 5576 for ac_prog in dumpbin "link -dump" 5577do 5578 # Extract the first word of "$ac_prog", so it can be a program name with args. 5579set dummy $ac_prog; ac_word=$2 5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5581$as_echo_n "checking for $ac_word... " >&6; } 5582if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5583 $as_echo_n "(cached) " >&6 5584else 5585 if test -n "$ac_ct_DUMPBIN"; then 5586 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5587else 5588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5589for as_dir in $PATH 5590do 5591 IFS=$as_save_IFS 5592 test -z "$as_dir" && as_dir=. 5593 for ac_exec_ext in '' $ac_executable_extensions; do 5594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5595 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5597 break 2 5598 fi 5599done 5600 done 5601IFS=$as_save_IFS 5602 5603fi 5604fi 5605ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5606if test -n "$ac_ct_DUMPBIN"; then 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5608$as_echo "$ac_ct_DUMPBIN" >&6; } 5609else 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5611$as_echo "no" >&6; } 5612fi 5613 5614 5615 test -n "$ac_ct_DUMPBIN" && break 5616done 5617 5618 if test "x$ac_ct_DUMPBIN" = x; then 5619 DUMPBIN=":" 5620 else 5621 case $cross_compiling:$ac_tool_warned in 5622yes:) 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5625ac_tool_warned=yes ;; 5626esac 5627 DUMPBIN=$ac_ct_DUMPBIN 5628 fi 5629fi 5630 5631 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5632 *COFF*) 5633 DUMPBIN="$DUMPBIN -symbols" 5634 ;; 5635 *) 5636 DUMPBIN=: 5637 ;; 5638 esac 5639 fi 5640 5641 if test "$DUMPBIN" != ":"; then 5642 NM="$DUMPBIN" 5643 fi 5644fi 5645test -z "$NM" && NM=nm 5646 5647 5648 5649 5650 5651 5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5653$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5654if ${lt_cv_nm_interface+:} false; then : 5655 $as_echo_n "(cached) " >&6 5656else 5657 lt_cv_nm_interface="BSD nm" 5658 echo "int some_variable = 0;" > conftest.$ac_ext 5659 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5660 (eval "$ac_compile" 2>conftest.err) 5661 cat conftest.err >&5 5662 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5663 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5664 cat conftest.err >&5 5665 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5666 cat conftest.out >&5 5667 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5668 lt_cv_nm_interface="MS dumpbin" 5669 fi 5670 rm -f conftest* 5671fi 5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5673$as_echo "$lt_cv_nm_interface" >&6; } 5674 5675# find the maximum length of command line arguments 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5677$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5678if ${lt_cv_sys_max_cmd_len+:} false; then : 5679 $as_echo_n "(cached) " >&6 5680else 5681 i=0 5682 teststring="ABCD" 5683 5684 case $build_os in 5685 msdosdjgpp*) 5686 # On DJGPP, this test can blow up pretty badly due to problems in libc 5687 # (any single argument exceeding 2000 bytes causes a buffer overrun 5688 # during glob expansion). Even if it were fixed, the result of this 5689 # check would be larger than it should be. 5690 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5691 ;; 5692 5693 gnu*) 5694 # Under GNU Hurd, this test is not required because there is 5695 # no limit to the length of command line arguments. 5696 # Libtool will interpret -1 as no limit whatsoever 5697 lt_cv_sys_max_cmd_len=-1; 5698 ;; 5699 5700 cygwin* | mingw* | cegcc*) 5701 # On Win9x/ME, this test blows up -- it succeeds, but takes 5702 # about 5 minutes as the teststring grows exponentially. 5703 # Worse, since 9x/ME are not pre-emptively multitasking, 5704 # you end up with a "frozen" computer, even though with patience 5705 # the test eventually succeeds (with a max line length of 256k). 5706 # Instead, let's just punt: use the minimum linelength reported by 5707 # all of the supported platforms: 8192 (on NT/2K/XP). 5708 lt_cv_sys_max_cmd_len=8192; 5709 ;; 5710 5711 mint*) 5712 # On MiNT this can take a long time and run out of memory. 5713 lt_cv_sys_max_cmd_len=8192; 5714 ;; 5715 5716 amigaos*) 5717 # On AmigaOS with pdksh, this test takes hours, literally. 5718 # So we just punt and use a minimum line length of 8192. 5719 lt_cv_sys_max_cmd_len=8192; 5720 ;; 5721 5722 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5723 # This has been around since 386BSD, at least. Likely further. 5724 if test -x /sbin/sysctl; then 5725 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5726 elif test -x /usr/sbin/sysctl; then 5727 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5728 else 5729 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5730 fi 5731 # And add a safety zone 5732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5734 ;; 5735 5736 interix*) 5737 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5738 lt_cv_sys_max_cmd_len=196608 5739 ;; 5740 5741 os2*) 5742 # The test takes a long time on OS/2. 5743 lt_cv_sys_max_cmd_len=8192 5744 ;; 5745 5746 osf*) 5747 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5748 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5749 # nice to cause kernel panics so lets avoid the loop below. 5750 # First set a reasonable default. 5751 lt_cv_sys_max_cmd_len=16384 5752 # 5753 if test -x /sbin/sysconfig; then 5754 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5755 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5756 esac 5757 fi 5758 ;; 5759 sco3.2v5*) 5760 lt_cv_sys_max_cmd_len=102400 5761 ;; 5762 sysv5* | sco5v6* | sysv4.2uw2*) 5763 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5764 if test -n "$kargmax"; then 5765 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5766 else 5767 lt_cv_sys_max_cmd_len=32768 5768 fi 5769 ;; 5770 *) 5771 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5772 if test -n "$lt_cv_sys_max_cmd_len"; then 5773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5775 else 5776 # Make teststring a little bigger before we do anything with it. 5777 # a 1K string should be a reasonable start. 5778 for i in 1 2 3 4 5 6 7 8 ; do 5779 teststring=$teststring$teststring 5780 done 5781 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5782 # If test is not a shell built-in, we'll probably end up computing a 5783 # maximum length that is only half of the actual maximum length, but 5784 # we can't tell. 5785 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5786 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5787 test $i != 17 # 1/2 MB should be enough 5788 do 5789 i=`expr $i + 1` 5790 teststring=$teststring$teststring 5791 done 5792 # Only check the string length outside the loop. 5793 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5794 teststring= 5795 # Add a significant safety factor because C++ compilers can tack on 5796 # massive amounts of additional arguments before passing them to the 5797 # linker. It appears as though 1/2 is a usable value. 5798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5799 fi 5800 ;; 5801 esac 5802 5803fi 5804 5805if test -n $lt_cv_sys_max_cmd_len ; then 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5807$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5808else 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5810$as_echo "none" >&6; } 5811fi 5812max_cmd_len=$lt_cv_sys_max_cmd_len 5813 5814 5815 5816 5817 5818 5819: ${CP="cp -f"} 5820: ${MV="mv -f"} 5821: ${RM="rm -f"} 5822 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5824$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5825# Try some XSI features 5826xsi_shell=no 5827( _lt_dummy="a/b/c" 5828 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5829 = c,a/b,b/c, \ 5830 && eval 'test $(( 1 + 1 )) -eq 2 \ 5831 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5832 && xsi_shell=yes 5833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5834$as_echo "$xsi_shell" >&6; } 5835 5836 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5838$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5839lt_shell_append=no 5840( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5841 >/dev/null 2>&1 \ 5842 && lt_shell_append=yes 5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5844$as_echo "$lt_shell_append" >&6; } 5845 5846 5847if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5848 lt_unset=unset 5849else 5850 lt_unset=false 5851fi 5852 5853 5854 5855 5856 5857# test EBCDIC or ASCII 5858case `echo X|tr X '\101'` in 5859 A) # ASCII based system 5860 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5861 lt_SP2NL='tr \040 \012' 5862 lt_NL2SP='tr \015\012 \040\040' 5863 ;; 5864 *) # EBCDIC based system 5865 lt_SP2NL='tr \100 \n' 5866 lt_NL2SP='tr \r\n \100\100' 5867 ;; 5868esac 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5879$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5880if ${lt_cv_to_host_file_cmd+:} false; then : 5881 $as_echo_n "(cached) " >&6 5882else 5883 case $host in 5884 *-*-mingw* ) 5885 case $build in 5886 *-*-mingw* ) # actually msys 5887 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5888 ;; 5889 *-*-cygwin* ) 5890 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5891 ;; 5892 * ) # otherwise, assume *nix 5893 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5894 ;; 5895 esac 5896 ;; 5897 *-*-cygwin* ) 5898 case $build in 5899 *-*-mingw* ) # actually msys 5900 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5901 ;; 5902 *-*-cygwin* ) 5903 lt_cv_to_host_file_cmd=func_convert_file_noop 5904 ;; 5905 * ) # otherwise, assume *nix 5906 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5907 ;; 5908 esac 5909 ;; 5910 * ) # unhandled hosts (and "normal" native builds) 5911 lt_cv_to_host_file_cmd=func_convert_file_noop 5912 ;; 5913esac 5914 5915fi 5916 5917to_host_file_cmd=$lt_cv_to_host_file_cmd 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5919$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5920 5921 5922 5923 5924 5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5926$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5927if ${lt_cv_to_tool_file_cmd+:} false; then : 5928 $as_echo_n "(cached) " >&6 5929else 5930 #assume ordinary cross tools, or native build. 5931lt_cv_to_tool_file_cmd=func_convert_file_noop 5932case $host in 5933 *-*-mingw* ) 5934 case $build in 5935 *-*-mingw* ) # actually msys 5936 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5937 ;; 5938 esac 5939 ;; 5940esac 5941 5942fi 5943 5944to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5946$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5947 5948 5949 5950 5951 5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5953$as_echo_n "checking for $LD option to reload object files... " >&6; } 5954if ${lt_cv_ld_reload_flag+:} false; then : 5955 $as_echo_n "(cached) " >&6 5956else 5957 lt_cv_ld_reload_flag='-r' 5958fi 5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5960$as_echo "$lt_cv_ld_reload_flag" >&6; } 5961reload_flag=$lt_cv_ld_reload_flag 5962case $reload_flag in 5963"" | " "*) ;; 5964*) reload_flag=" $reload_flag" ;; 5965esac 5966reload_cmds='$LD$reload_flag -o $output$reload_objs' 5967case $host_os in 5968 cygwin* | mingw* | pw32* | cegcc*) 5969 if test "$GCC" != yes; then 5970 reload_cmds=false 5971 fi 5972 ;; 5973 darwin*) 5974 if test "$GCC" = yes; then 5975 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5976 else 5977 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5978 fi 5979 ;; 5980esac 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990if test -n "$ac_tool_prefix"; then 5991 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5992set dummy ${ac_tool_prefix}objdump; ac_word=$2 5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5994$as_echo_n "checking for $ac_word... " >&6; } 5995if ${ac_cv_prog_OBJDUMP+:} false; then : 5996 $as_echo_n "(cached) " >&6 5997else 5998 if test -n "$OBJDUMP"; then 5999 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6000else 6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6002for as_dir in $PATH 6003do 6004 IFS=$as_save_IFS 6005 test -z "$as_dir" && as_dir=. 6006 for ac_exec_ext in '' $ac_executable_extensions; do 6007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6008 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6010 break 2 6011 fi 6012done 6013 done 6014IFS=$as_save_IFS 6015 6016fi 6017fi 6018OBJDUMP=$ac_cv_prog_OBJDUMP 6019if test -n "$OBJDUMP"; then 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6021$as_echo "$OBJDUMP" >&6; } 6022else 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6024$as_echo "no" >&6; } 6025fi 6026 6027 6028fi 6029if test -z "$ac_cv_prog_OBJDUMP"; then 6030 ac_ct_OBJDUMP=$OBJDUMP 6031 # Extract the first word of "objdump", so it can be a program name with args. 6032set dummy objdump; ac_word=$2 6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6034$as_echo_n "checking for $ac_word... " >&6; } 6035if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6036 $as_echo_n "(cached) " >&6 6037else 6038 if test -n "$ac_ct_OBJDUMP"; then 6039 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6040else 6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6042for as_dir in $PATH 6043do 6044 IFS=$as_save_IFS 6045 test -z "$as_dir" && as_dir=. 6046 for ac_exec_ext in '' $ac_executable_extensions; do 6047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6048 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6050 break 2 6051 fi 6052done 6053 done 6054IFS=$as_save_IFS 6055 6056fi 6057fi 6058ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6059if test -n "$ac_ct_OBJDUMP"; then 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6061$as_echo "$ac_ct_OBJDUMP" >&6; } 6062else 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6064$as_echo "no" >&6; } 6065fi 6066 6067 if test "x$ac_ct_OBJDUMP" = x; then 6068 OBJDUMP="false" 6069 else 6070 case $cross_compiling:$ac_tool_warned in 6071yes:) 6072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6074ac_tool_warned=yes ;; 6075esac 6076 OBJDUMP=$ac_ct_OBJDUMP 6077 fi 6078else 6079 OBJDUMP="$ac_cv_prog_OBJDUMP" 6080fi 6081 6082test -z "$OBJDUMP" && OBJDUMP=objdump 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6093$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6094if ${lt_cv_deplibs_check_method+:} false; then : 6095 $as_echo_n "(cached) " >&6 6096else 6097 lt_cv_file_magic_cmd='$MAGIC_CMD' 6098lt_cv_file_magic_test_file= 6099lt_cv_deplibs_check_method='unknown' 6100# Need to set the preceding variable on all platforms that support 6101# interlibrary dependencies. 6102# 'none' -- dependencies not supported. 6103# `unknown' -- same as none, but documents that we really don't know. 6104# 'pass_all' -- all dependencies passed with no checks. 6105# 'test_compile' -- check by making test program. 6106# 'file_magic [[regex]]' -- check by looking for files in library path 6107# which responds to the $file_magic_cmd with a given extended regex. 6108# If you have `file' or equivalent on your system and you're not sure 6109# whether `pass_all' will *always* work, you probably want this one. 6110 6111case $host_os in 6112aix[4-9]*) 6113 lt_cv_deplibs_check_method=pass_all 6114 ;; 6115 6116beos*) 6117 lt_cv_deplibs_check_method=pass_all 6118 ;; 6119 6120bsdi[45]*) 6121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6122 lt_cv_file_magic_cmd='/usr/bin/file -L' 6123 lt_cv_file_magic_test_file=/shlib/libc.so 6124 ;; 6125 6126cygwin*) 6127 # func_win32_libid is a shell function defined in ltmain.sh 6128 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6129 lt_cv_file_magic_cmd='func_win32_libid' 6130 ;; 6131 6132mingw* | pw32*) 6133 # Base MSYS/MinGW do not provide the 'file' command needed by 6134 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6135 # unless we find 'file', for example because we are cross-compiling. 6136 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6137 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6138 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6139 lt_cv_file_magic_cmd='func_win32_libid' 6140 else 6141 # Keep this pattern in sync with the one in func_win32_libid. 6142 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6143 lt_cv_file_magic_cmd='$OBJDUMP -f' 6144 fi 6145 ;; 6146 6147cegcc*) 6148 # use the weaker test based on 'objdump'. See mingw*. 6149 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6150 lt_cv_file_magic_cmd='$OBJDUMP -f' 6151 ;; 6152 6153darwin* | rhapsody*) 6154 lt_cv_deplibs_check_method=pass_all 6155 ;; 6156 6157freebsd* | dragonfly*) 6158 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6159 case $host_cpu in 6160 i*86 ) 6161 # Not sure whether the presence of OpenBSD here was a mistake. 6162 # Let's accept both of them until this is cleared up. 6163 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6164 lt_cv_file_magic_cmd=/usr/bin/file 6165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6166 ;; 6167 esac 6168 else 6169 lt_cv_deplibs_check_method=pass_all 6170 fi 6171 ;; 6172 6173gnu*) 6174 lt_cv_deplibs_check_method=pass_all 6175 ;; 6176 6177haiku*) 6178 lt_cv_deplibs_check_method=pass_all 6179 ;; 6180 6181hpux10.20* | hpux11*) 6182 lt_cv_file_magic_cmd=/usr/bin/file 6183 case $host_cpu in 6184 ia64*) 6185 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6186 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6187 ;; 6188 hppa*64*) 6189 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]' 6190 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6191 ;; 6192 *) 6193 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6194 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6195 ;; 6196 esac 6197 ;; 6198 6199interix[3-9]*) 6200 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6202 ;; 6203 6204irix5* | irix6* | nonstopux*) 6205 case $LD in 6206 *-32|*"-32 ") libmagic=32-bit;; 6207 *-n32|*"-n32 ") libmagic=N32;; 6208 *-64|*"-64 ") libmagic=64-bit;; 6209 *) libmagic=never-match;; 6210 esac 6211 lt_cv_deplibs_check_method=pass_all 6212 ;; 6213 6214# This must be glibc/ELF. 6215linux* | k*bsd*-gnu | kopensolaris*-gnu) 6216 lt_cv_deplibs_check_method=pass_all 6217 ;; 6218 6219netbsd*) 6220 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6222 else 6223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6224 fi 6225 ;; 6226 6227newos6*) 6228 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6229 lt_cv_file_magic_cmd=/usr/bin/file 6230 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6231 ;; 6232 6233*nto* | *qnx*) 6234 lt_cv_deplibs_check_method=pass_all 6235 ;; 6236 6237openbsd*) 6238 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6240 else 6241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6242 fi 6243 ;; 6244 6245osf3* | osf4* | osf5*) 6246 lt_cv_deplibs_check_method=pass_all 6247 ;; 6248 6249rdos*) 6250 lt_cv_deplibs_check_method=pass_all 6251 ;; 6252 6253solaris*) 6254 lt_cv_deplibs_check_method=pass_all 6255 ;; 6256 6257sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6258 lt_cv_deplibs_check_method=pass_all 6259 ;; 6260 6261sysv4 | sysv4.3*) 6262 case $host_vendor in 6263 motorola) 6264 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]' 6265 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6266 ;; 6267 ncr) 6268 lt_cv_deplibs_check_method=pass_all 6269 ;; 6270 sequent) 6271 lt_cv_file_magic_cmd='/bin/file' 6272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6273 ;; 6274 sni) 6275 lt_cv_file_magic_cmd='/bin/file' 6276 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6277 lt_cv_file_magic_test_file=/lib/libc.so 6278 ;; 6279 siemens) 6280 lt_cv_deplibs_check_method=pass_all 6281 ;; 6282 pc) 6283 lt_cv_deplibs_check_method=pass_all 6284 ;; 6285 esac 6286 ;; 6287 6288tpf*) 6289 lt_cv_deplibs_check_method=pass_all 6290 ;; 6291esac 6292 6293fi 6294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6295$as_echo "$lt_cv_deplibs_check_method" >&6; } 6296 6297file_magic_glob= 6298want_nocaseglob=no 6299if test "$build" = "$host"; then 6300 case $host_os in 6301 mingw* | pw32*) 6302 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6303 want_nocaseglob=yes 6304 else 6305 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6306 fi 6307 ;; 6308 esac 6309fi 6310 6311file_magic_cmd=$lt_cv_file_magic_cmd 6312deplibs_check_method=$lt_cv_deplibs_check_method 6313test -z "$deplibs_check_method" && deplibs_check_method=unknown 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336if test -n "$ac_tool_prefix"; then 6337 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6338set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340$as_echo_n "checking for $ac_word... " >&6; } 6341if ${ac_cv_prog_DLLTOOL+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 if test -n "$DLLTOOL"; then 6345 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6346else 6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348for as_dir in $PATH 6349do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6354 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358done 6359 done 6360IFS=$as_save_IFS 6361 6362fi 6363fi 6364DLLTOOL=$ac_cv_prog_DLLTOOL 6365if test -n "$DLLTOOL"; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6367$as_echo "$DLLTOOL" >&6; } 6368else 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6370$as_echo "no" >&6; } 6371fi 6372 6373 6374fi 6375if test -z "$ac_cv_prog_DLLTOOL"; then 6376 ac_ct_DLLTOOL=$DLLTOOL 6377 # Extract the first word of "dlltool", so it can be a program name with args. 6378set dummy dlltool; ac_word=$2 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6380$as_echo_n "checking for $ac_word... " >&6; } 6381if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 if test -n "$ac_ct_DLLTOOL"; then 6385 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6386else 6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6388for as_dir in $PATH 6389do 6390 IFS=$as_save_IFS 6391 test -z "$as_dir" && as_dir=. 6392 for ac_exec_ext in '' $ac_executable_extensions; do 6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6394 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6396 break 2 6397 fi 6398done 6399 done 6400IFS=$as_save_IFS 6401 6402fi 6403fi 6404ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6405if test -n "$ac_ct_DLLTOOL"; then 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6407$as_echo "$ac_ct_DLLTOOL" >&6; } 6408else 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6410$as_echo "no" >&6; } 6411fi 6412 6413 if test "x$ac_ct_DLLTOOL" = x; then 6414 DLLTOOL="false" 6415 else 6416 case $cross_compiling:$ac_tool_warned in 6417yes:) 6418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6420ac_tool_warned=yes ;; 6421esac 6422 DLLTOOL=$ac_ct_DLLTOOL 6423 fi 6424else 6425 DLLTOOL="$ac_cv_prog_DLLTOOL" 6426fi 6427 6428test -z "$DLLTOOL" && DLLTOOL=dlltool 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6440$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6441if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6442 $as_echo_n "(cached) " >&6 6443else 6444 lt_cv_sharedlib_from_linklib_cmd='unknown' 6445 6446case $host_os in 6447cygwin* | mingw* | pw32* | cegcc*) 6448 # two different shell functions defined in ltmain.sh 6449 # decide which to use based on capabilities of $DLLTOOL 6450 case `$DLLTOOL --help 2>&1` in 6451 *--identify-strict*) 6452 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6453 ;; 6454 *) 6455 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6456 ;; 6457 esac 6458 ;; 6459*) 6460 # fallback: assume linklib IS sharedlib 6461 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6462 ;; 6463esac 6464 6465fi 6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6467$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6468sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6469test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6470 6471 6472 6473 6474 6475 6476 6477if test -n "$ac_tool_prefix"; then 6478 for ac_prog in ar 6479 do 6480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6481set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6483$as_echo_n "checking for $ac_word... " >&6; } 6484if ${ac_cv_prog_AR+:} false; then : 6485 $as_echo_n "(cached) " >&6 6486else 6487 if test -n "$AR"; then 6488 ac_cv_prog_AR="$AR" # Let the user override the test. 6489else 6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6491for as_dir in $PATH 6492do 6493 IFS=$as_save_IFS 6494 test -z "$as_dir" && as_dir=. 6495 for ac_exec_ext in '' $ac_executable_extensions; do 6496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6497 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6499 break 2 6500 fi 6501done 6502 done 6503IFS=$as_save_IFS 6504 6505fi 6506fi 6507AR=$ac_cv_prog_AR 6508if test -n "$AR"; then 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6510$as_echo "$AR" >&6; } 6511else 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6513$as_echo "no" >&6; } 6514fi 6515 6516 6517 test -n "$AR" && break 6518 done 6519fi 6520if test -z "$AR"; then 6521 ac_ct_AR=$AR 6522 for ac_prog in ar 6523do 6524 # Extract the first word of "$ac_prog", so it can be a program name with args. 6525set dummy $ac_prog; ac_word=$2 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6527$as_echo_n "checking for $ac_word... " >&6; } 6528if ${ac_cv_prog_ac_ct_AR+:} false; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 if test -n "$ac_ct_AR"; then 6532 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6533else 6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6535for as_dir in $PATH 6536do 6537 IFS=$as_save_IFS 6538 test -z "$as_dir" && as_dir=. 6539 for ac_exec_ext in '' $ac_executable_extensions; do 6540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6541 ac_cv_prog_ac_ct_AR="$ac_prog" 6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6543 break 2 6544 fi 6545done 6546 done 6547IFS=$as_save_IFS 6548 6549fi 6550fi 6551ac_ct_AR=$ac_cv_prog_ac_ct_AR 6552if test -n "$ac_ct_AR"; then 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6554$as_echo "$ac_ct_AR" >&6; } 6555else 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6557$as_echo "no" >&6; } 6558fi 6559 6560 6561 test -n "$ac_ct_AR" && break 6562done 6563 6564 if test "x$ac_ct_AR" = x; then 6565 AR="false" 6566 else 6567 case $cross_compiling:$ac_tool_warned in 6568yes:) 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6571ac_tool_warned=yes ;; 6572esac 6573 AR=$ac_ct_AR 6574 fi 6575fi 6576 6577: ${AR=ar} 6578: ${AR_FLAGS=cru} 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6591$as_echo_n "checking for archiver @FILE support... " >&6; } 6592if ${lt_cv_ar_at_file+:} false; then : 6593 $as_echo_n "(cached) " >&6 6594else 6595 lt_cv_ar_at_file=no 6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6597/* end confdefs.h. */ 6598 6599int 6600main () 6601{ 6602 6603 ; 6604 return 0; 6605} 6606_ACEOF 6607if ac_fn_c_try_compile "$LINENO"; then : 6608 echo conftest.$ac_objext > conftest.lst 6609 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6611 (eval $lt_ar_try) 2>&5 6612 ac_status=$? 6613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6614 test $ac_status = 0; } 6615 if test "$ac_status" -eq 0; then 6616 # Ensure the archiver fails upon bogus file names. 6617 rm -f conftest.$ac_objext libconftest.a 6618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6619 (eval $lt_ar_try) 2>&5 6620 ac_status=$? 6621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6622 test $ac_status = 0; } 6623 if test "$ac_status" -ne 0; then 6624 lt_cv_ar_at_file=@ 6625 fi 6626 fi 6627 rm -f conftest.* libconftest.a 6628 6629fi 6630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6631 6632fi 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6634$as_echo "$lt_cv_ar_at_file" >&6; } 6635 6636if test "x$lt_cv_ar_at_file" = xno; then 6637 archiver_list_spec= 6638else 6639 archiver_list_spec=$lt_cv_ar_at_file 6640fi 6641 6642 6643 6644 6645 6646 6647 6648if test -n "$ac_tool_prefix"; then 6649 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6650set dummy ${ac_tool_prefix}strip; ac_word=$2 6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6652$as_echo_n "checking for $ac_word... " >&6; } 6653if ${ac_cv_prog_STRIP+:} false; then : 6654 $as_echo_n "(cached) " >&6 6655else 6656 if test -n "$STRIP"; then 6657 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6658else 6659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6660for as_dir in $PATH 6661do 6662 IFS=$as_save_IFS 6663 test -z "$as_dir" && as_dir=. 6664 for ac_exec_ext in '' $ac_executable_extensions; do 6665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6666 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6668 break 2 6669 fi 6670done 6671 done 6672IFS=$as_save_IFS 6673 6674fi 6675fi 6676STRIP=$ac_cv_prog_STRIP 6677if test -n "$STRIP"; then 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6679$as_echo "$STRIP" >&6; } 6680else 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6682$as_echo "no" >&6; } 6683fi 6684 6685 6686fi 6687if test -z "$ac_cv_prog_STRIP"; then 6688 ac_ct_STRIP=$STRIP 6689 # Extract the first word of "strip", so it can be a program name with args. 6690set dummy strip; ac_word=$2 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6692$as_echo_n "checking for $ac_word... " >&6; } 6693if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6694 $as_echo_n "(cached) " >&6 6695else 6696 if test -n "$ac_ct_STRIP"; then 6697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6698else 6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6700for as_dir in $PATH 6701do 6702 IFS=$as_save_IFS 6703 test -z "$as_dir" && as_dir=. 6704 for ac_exec_ext in '' $ac_executable_extensions; do 6705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6706 ac_cv_prog_ac_ct_STRIP="strip" 6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6708 break 2 6709 fi 6710done 6711 done 6712IFS=$as_save_IFS 6713 6714fi 6715fi 6716ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6717if test -n "$ac_ct_STRIP"; then 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6719$as_echo "$ac_ct_STRIP" >&6; } 6720else 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6722$as_echo "no" >&6; } 6723fi 6724 6725 if test "x$ac_ct_STRIP" = x; then 6726 STRIP=":" 6727 else 6728 case $cross_compiling:$ac_tool_warned in 6729yes:) 6730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6732ac_tool_warned=yes ;; 6733esac 6734 STRIP=$ac_ct_STRIP 6735 fi 6736else 6737 STRIP="$ac_cv_prog_STRIP" 6738fi 6739 6740test -z "$STRIP" && STRIP=: 6741 6742 6743 6744 6745 6746 6747if test -n "$ac_tool_prefix"; then 6748 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6749set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6751$as_echo_n "checking for $ac_word... " >&6; } 6752if ${ac_cv_prog_RANLIB+:} false; then : 6753 $as_echo_n "(cached) " >&6 6754else 6755 if test -n "$RANLIB"; then 6756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6757else 6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6759for as_dir in $PATH 6760do 6761 IFS=$as_save_IFS 6762 test -z "$as_dir" && as_dir=. 6763 for ac_exec_ext in '' $ac_executable_extensions; do 6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6765 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6767 break 2 6768 fi 6769done 6770 done 6771IFS=$as_save_IFS 6772 6773fi 6774fi 6775RANLIB=$ac_cv_prog_RANLIB 6776if test -n "$RANLIB"; then 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6778$as_echo "$RANLIB" >&6; } 6779else 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6781$as_echo "no" >&6; } 6782fi 6783 6784 6785fi 6786if test -z "$ac_cv_prog_RANLIB"; then 6787 ac_ct_RANLIB=$RANLIB 6788 # Extract the first word of "ranlib", so it can be a program name with args. 6789set dummy ranlib; ac_word=$2 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6791$as_echo_n "checking for $ac_word... " >&6; } 6792if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6793 $as_echo_n "(cached) " >&6 6794else 6795 if test -n "$ac_ct_RANLIB"; then 6796 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6797else 6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6799for as_dir in $PATH 6800do 6801 IFS=$as_save_IFS 6802 test -z "$as_dir" && as_dir=. 6803 for ac_exec_ext in '' $ac_executable_extensions; do 6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6805 ac_cv_prog_ac_ct_RANLIB="ranlib" 6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6807 break 2 6808 fi 6809done 6810 done 6811IFS=$as_save_IFS 6812 6813fi 6814fi 6815ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6816if test -n "$ac_ct_RANLIB"; then 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6818$as_echo "$ac_ct_RANLIB" >&6; } 6819else 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6821$as_echo "no" >&6; } 6822fi 6823 6824 if test "x$ac_ct_RANLIB" = x; then 6825 RANLIB=":" 6826 else 6827 case $cross_compiling:$ac_tool_warned in 6828yes:) 6829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6831ac_tool_warned=yes ;; 6832esac 6833 RANLIB=$ac_ct_RANLIB 6834 fi 6835else 6836 RANLIB="$ac_cv_prog_RANLIB" 6837fi 6838 6839test -z "$RANLIB" && RANLIB=: 6840 6841 6842 6843 6844 6845 6846# Determine commands to create old-style static archives. 6847old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6848old_postinstall_cmds='chmod 644 $oldlib' 6849old_postuninstall_cmds= 6850 6851if test -n "$RANLIB"; then 6852 case $host_os in 6853 openbsd*) 6854 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6855 ;; 6856 *) 6857 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6858 ;; 6859 esac 6860 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6861fi 6862 6863case $host_os in 6864 darwin*) 6865 lock_old_archive_extraction=yes ;; 6866 *) 6867 lock_old_archive_extraction=no ;; 6868esac 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908# If no C compiler was specified, use CC. 6909LTCC=${LTCC-"$CC"} 6910 6911# If no C compiler flags were specified, use CFLAGS. 6912LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6913 6914# Allow CC to be a program name with arguments. 6915compiler=$CC 6916 6917 6918# Check for command to grab the raw symbol name followed by C symbol from nm. 6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6920$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6921if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6922 $as_echo_n "(cached) " >&6 6923else 6924 6925# These are sane defaults that work on at least a few old systems. 6926# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6927 6928# Character class describing NM global symbol codes. 6929symcode='[BCDEGRST]' 6930 6931# Regexp to match symbols that can be accessed directly from C. 6932sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6933 6934# Define system-specific variables. 6935case $host_os in 6936aix*) 6937 symcode='[BCDT]' 6938 ;; 6939cygwin* | mingw* | pw32* | cegcc*) 6940 symcode='[ABCDGISTW]' 6941 ;; 6942hpux*) 6943 if test "$host_cpu" = ia64; then 6944 symcode='[ABCDEGRST]' 6945 fi 6946 ;; 6947irix* | nonstopux*) 6948 symcode='[BCDEGRST]' 6949 ;; 6950osf*) 6951 symcode='[BCDEGQRST]' 6952 ;; 6953solaris*) 6954 symcode='[BDRT]' 6955 ;; 6956sco3.2v5*) 6957 symcode='[DT]' 6958 ;; 6959sysv4.2uw2*) 6960 symcode='[DT]' 6961 ;; 6962sysv5* | sco5v6* | unixware* | OpenUNIX*) 6963 symcode='[ABDT]' 6964 ;; 6965sysv4) 6966 symcode='[DFNSTU]' 6967 ;; 6968esac 6969 6970# If we're using GNU nm, then use its standard symbol codes. 6971case `$NM -V 2>&1` in 6972*GNU* | *'with BFD'*) 6973 symcode='[ABCDGIRSTW]' ;; 6974esac 6975 6976# Transform an extracted symbol line into a proper C declaration. 6977# Some systems (esp. on ia64) link data and code symbols differently, 6978# so use this general approach. 6979lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6980 6981# Transform an extracted symbol line into symbol name and symbol address 6982lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6983lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6984 6985# Handle CRLF in mingw tool chain 6986opt_cr= 6987case $build_os in 6988mingw*) 6989 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6990 ;; 6991esac 6992 6993# Try without a prefix underscore, then with it. 6994for ac_symprfx in "" "_"; do 6995 6996 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6997 symxfrm="\\1 $ac_symprfx\\2 \\2" 6998 6999 # Write the raw and C identifiers. 7000 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7001 # Fake it for dumpbin and say T for any non-static function 7002 # and D for any global variable. 7003 # Also find C++ and __fastcall symbols from MSVC++, 7004 # which start with @ or ?. 7005 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7006" {last_section=section; section=\$ 3};"\ 7007" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7008" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7009" \$ 0!~/External *\|/{next};"\ 7010" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7011" {if(hide[section]) next};"\ 7012" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7013" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7014" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7015" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7016" ' prfx=^$ac_symprfx" 7017 else 7018 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7019 fi 7020 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7021 7022 # Check to see that the pipe works correctly. 7023 pipe_works=no 7024 7025 rm -f conftest* 7026 cat > conftest.$ac_ext <<_LT_EOF 7027#ifdef __cplusplus 7028extern "C" { 7029#endif 7030char nm_test_var; 7031void nm_test_func(void); 7032void nm_test_func(void){} 7033#ifdef __cplusplus 7034} 7035#endif 7036int main(){nm_test_var='a';nm_test_func();return(0);} 7037_LT_EOF 7038 7039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7040 (eval $ac_compile) 2>&5 7041 ac_status=$? 7042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7043 test $ac_status = 0; }; then 7044 # Now try to grab the symbols. 7045 nlist=conftest.nm 7046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7047 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7048 ac_status=$? 7049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7050 test $ac_status = 0; } && test -s "$nlist"; then 7051 # Try sorting and uniquifying the output. 7052 if sort "$nlist" | uniq > "$nlist"T; then 7053 mv -f "$nlist"T "$nlist" 7054 else 7055 rm -f "$nlist"T 7056 fi 7057 7058 # Make sure that we snagged all the symbols we need. 7059 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7060 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7061 cat <<_LT_EOF > conftest.$ac_ext 7062/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7063#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7064/* DATA imports from DLLs on WIN32 con't be const, because runtime 7065 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7066# define LT_DLSYM_CONST 7067#elif defined(__osf__) 7068/* This system does not cope well with relocations in const data. */ 7069# define LT_DLSYM_CONST 7070#else 7071# define LT_DLSYM_CONST const 7072#endif 7073 7074#ifdef __cplusplus 7075extern "C" { 7076#endif 7077 7078_LT_EOF 7079 # Now generate the symbol file. 7080 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7081 7082 cat <<_LT_EOF >> conftest.$ac_ext 7083 7084/* The mapping between symbol names and symbols. */ 7085LT_DLSYM_CONST struct { 7086 const char *name; 7087 void *address; 7088} 7089lt__PROGRAM__LTX_preloaded_symbols[] = 7090{ 7091 { "@PROGRAM@", (void *) 0 }, 7092_LT_EOF 7093 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7094 cat <<\_LT_EOF >> conftest.$ac_ext 7095 {0, (void *) 0} 7096}; 7097 7098/* This works around a problem in FreeBSD linker */ 7099#ifdef FREEBSD_WORKAROUND 7100static const void *lt_preloaded_setup() { 7101 return lt__PROGRAM__LTX_preloaded_symbols; 7102} 7103#endif 7104 7105#ifdef __cplusplus 7106} 7107#endif 7108_LT_EOF 7109 # Now try linking the two files. 7110 mv conftest.$ac_objext conftstm.$ac_objext 7111 lt_globsym_save_LIBS=$LIBS 7112 lt_globsym_save_CFLAGS=$CFLAGS 7113 LIBS="conftstm.$ac_objext" 7114 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7116 (eval $ac_link) 2>&5 7117 ac_status=$? 7118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7119 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7120 pipe_works=yes 7121 fi 7122 LIBS=$lt_globsym_save_LIBS 7123 CFLAGS=$lt_globsym_save_CFLAGS 7124 else 7125 echo "cannot find nm_test_func in $nlist" >&5 7126 fi 7127 else 7128 echo "cannot find nm_test_var in $nlist" >&5 7129 fi 7130 else 7131 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7132 fi 7133 else 7134 echo "$progname: failed program was:" >&5 7135 cat conftest.$ac_ext >&5 7136 fi 7137 rm -rf conftest* conftst* 7138 7139 # Do not use the global_symbol_pipe unless it works. 7140 if test "$pipe_works" = yes; then 7141 break 7142 else 7143 lt_cv_sys_global_symbol_pipe= 7144 fi 7145done 7146 7147fi 7148 7149if test -z "$lt_cv_sys_global_symbol_pipe"; then 7150 lt_cv_sys_global_symbol_to_cdecl= 7151fi 7152if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7154$as_echo "failed" >&6; } 7155else 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7157$as_echo "ok" >&6; } 7158fi 7159 7160# Response file support. 7161if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7162 nm_file_list_spec='@' 7163elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7164 nm_file_list_spec='@' 7165fi 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7194$as_echo_n "checking for sysroot... " >&6; } 7195 7196# Check whether --with-sysroot was given. 7197if test "${with_sysroot+set}" = set; then : 7198 withval=$with_sysroot; 7199else 7200 with_sysroot=no 7201fi 7202 7203 7204lt_sysroot= 7205case ${with_sysroot} in #( 7206 yes) 7207 if test "$GCC" = yes; then 7208 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7209 fi 7210 ;; #( 7211 /*) 7212 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7213 ;; #( 7214 no|'') 7215 ;; #( 7216 *) 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7218$as_echo "${with_sysroot}" >&6; } 7219 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7220 ;; 7221esac 7222 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7224$as_echo "${lt_sysroot:-no}" >&6; } 7225 7226 7227 7228 7229 7230# Check whether --enable-libtool-lock was given. 7231if test "${enable_libtool_lock+set}" = set; then : 7232 enableval=$enable_libtool_lock; 7233fi 7234 7235test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7236 7237# Some flags need to be propagated to the compiler or linker for good 7238# libtool support. 7239case $host in 7240ia64-*-hpux*) 7241 # Find out which ABI we are using. 7242 echo 'int i;' > conftest.$ac_ext 7243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7244 (eval $ac_compile) 2>&5 7245 ac_status=$? 7246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7247 test $ac_status = 0; }; then 7248 case `/usr/bin/file conftest.$ac_objext` in 7249 *ELF-32*) 7250 HPUX_IA64_MODE="32" 7251 ;; 7252 *ELF-64*) 7253 HPUX_IA64_MODE="64" 7254 ;; 7255 esac 7256 fi 7257 rm -rf conftest* 7258 ;; 7259*-*-irix6*) 7260 # Find out which ABI we are using. 7261 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7263 (eval $ac_compile) 2>&5 7264 ac_status=$? 7265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7266 test $ac_status = 0; }; then 7267 if test "$lt_cv_prog_gnu_ld" = yes; then 7268 case `/usr/bin/file conftest.$ac_objext` in 7269 *32-bit*) 7270 LD="${LD-ld} -melf32bsmip" 7271 ;; 7272 *N32*) 7273 LD="${LD-ld} -melf32bmipn32" 7274 ;; 7275 *64-bit*) 7276 LD="${LD-ld} -melf64bmip" 7277 ;; 7278 esac 7279 else 7280 case `/usr/bin/file conftest.$ac_objext` in 7281 *32-bit*) 7282 LD="${LD-ld} -32" 7283 ;; 7284 *N32*) 7285 LD="${LD-ld} -n32" 7286 ;; 7287 *64-bit*) 7288 LD="${LD-ld} -64" 7289 ;; 7290 esac 7291 fi 7292 fi 7293 rm -rf conftest* 7294 ;; 7295 7296x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7297s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7298 # Find out which ABI we are using. 7299 echo 'int i;' > conftest.$ac_ext 7300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7301 (eval $ac_compile) 2>&5 7302 ac_status=$? 7303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7304 test $ac_status = 0; }; then 7305 case `/usr/bin/file conftest.o` in 7306 *32-bit*) 7307 case $host in 7308 x86_64-*kfreebsd*-gnu) 7309 LD="${LD-ld} -m elf_i386_fbsd" 7310 ;; 7311 x86_64-*linux*) 7312 LD="${LD-ld} -m elf_i386" 7313 ;; 7314 ppc64-*linux*|powerpc64-*linux*) 7315 LD="${LD-ld} -m elf32ppclinux" 7316 ;; 7317 s390x-*linux*) 7318 LD="${LD-ld} -m elf_s390" 7319 ;; 7320 sparc64-*linux*) 7321 LD="${LD-ld} -m elf32_sparc" 7322 ;; 7323 esac 7324 ;; 7325 *64-bit*) 7326 case $host in 7327 x86_64-*kfreebsd*-gnu) 7328 LD="${LD-ld} -m elf_x86_64_fbsd" 7329 ;; 7330 x86_64-*linux*) 7331 LD="${LD-ld} -m elf_x86_64" 7332 ;; 7333 ppc*-*linux*|powerpc*-*linux*) 7334 LD="${LD-ld} -m elf64ppc" 7335 ;; 7336 s390*-*linux*|s390*-*tpf*) 7337 LD="${LD-ld} -m elf64_s390" 7338 ;; 7339 sparc*-*linux*) 7340 LD="${LD-ld} -m elf64_sparc" 7341 ;; 7342 esac 7343 ;; 7344 esac 7345 fi 7346 rm -rf conftest* 7347 ;; 7348 7349*-*-sco3.2v5*) 7350 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7351 SAVE_CFLAGS="$CFLAGS" 7352 CFLAGS="$CFLAGS -belf" 7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7354$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7355if ${lt_cv_cc_needs_belf+:} false; then : 7356 $as_echo_n "(cached) " >&6 7357else 7358 ac_ext=c 7359ac_cpp='$CPP $CPPFLAGS' 7360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7362ac_compiler_gnu=$ac_cv_c_compiler_gnu 7363 7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7365/* end confdefs.h. */ 7366 7367int 7368main () 7369{ 7370 7371 ; 7372 return 0; 7373} 7374_ACEOF 7375if ac_fn_c_try_link "$LINENO"; then : 7376 lt_cv_cc_needs_belf=yes 7377else 7378 lt_cv_cc_needs_belf=no 7379fi 7380rm -f core conftest.err conftest.$ac_objext \ 7381 conftest$ac_exeext conftest.$ac_ext 7382 ac_ext=c 7383ac_cpp='$CPP $CPPFLAGS' 7384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7386ac_compiler_gnu=$ac_cv_c_compiler_gnu 7387 7388fi 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7390$as_echo "$lt_cv_cc_needs_belf" >&6; } 7391 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7392 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7393 CFLAGS="$SAVE_CFLAGS" 7394 fi 7395 ;; 7396*-*solaris*) 7397 # Find out which ABI we are using. 7398 echo 'int i;' > conftest.$ac_ext 7399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7400 (eval $ac_compile) 2>&5 7401 ac_status=$? 7402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7403 test $ac_status = 0; }; then 7404 case `/usr/bin/file conftest.o` in 7405 *64-bit*) 7406 case $lt_cv_prog_gnu_ld in 7407 yes*) 7408 case $host in 7409 i?86-*-solaris*) 7410 LD="${LD-ld} -m elf_x86_64" 7411 ;; 7412 sparc*-*-solaris*) 7413 LD="${LD-ld} -m elf64_sparc" 7414 ;; 7415 esac 7416 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7417 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7418 LD="${LD-ld}_sol2" 7419 fi 7420 ;; 7421 *) 7422 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7423 LD="${LD-ld} -64" 7424 fi 7425 ;; 7426 esac 7427 ;; 7428 esac 7429 fi 7430 rm -rf conftest* 7431 ;; 7432esac 7433 7434need_locks="$enable_libtool_lock" 7435 7436if test -n "$ac_tool_prefix"; then 7437 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7438set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then : 7442 $as_echo_n "(cached) " >&6 7443else 7444 if test -n "$MANIFEST_TOOL"; then 7445 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt" 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 7464MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7465if test -n "$MANIFEST_TOOL"; then 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7467$as_echo "$MANIFEST_TOOL" >&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_MANIFEST_TOOL"; then 7476 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7477 # Extract the first word of "mt", so it can be a program name with args. 7478set dummy mt; 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_MANIFEST_TOOL+:} false; then : 7482 $as_echo_n "(cached) " >&6 7483else 7484 if test -n "$ac_ct_MANIFEST_TOOL"; then 7485 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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_MANIFEST_TOOL="mt" 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_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7505if test -n "$ac_ct_MANIFEST_TOOL"; then 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7507$as_echo "$ac_ct_MANIFEST_TOOL" >&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_MANIFEST_TOOL" = x; then 7514 MANIFEST_TOOL=":" 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 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7523 fi 7524else 7525 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7526fi 7527 7528test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7530$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7531if ${lt_cv_path_mainfest_tool+:} false; then : 7532 $as_echo_n "(cached) " >&6 7533else 7534 lt_cv_path_mainfest_tool=no 7535 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7536 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7537 cat conftest.err >&5 7538 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7539 lt_cv_path_mainfest_tool=yes 7540 fi 7541 rm -f conftest* 7542fi 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7544$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7545if test "x$lt_cv_path_mainfest_tool" != xyes; then 7546 MANIFEST_TOOL=: 7547fi 7548 7549 7550 7551 7552 7553 7554 case $host_os in 7555 rhapsody* | darwin*) 7556 if test -n "$ac_tool_prefix"; then 7557 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7558set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7560$as_echo_n "checking for $ac_word... " >&6; } 7561if ${ac_cv_prog_DSYMUTIL+:} false; then : 7562 $as_echo_n "(cached) " >&6 7563else 7564 if test -n "$DSYMUTIL"; then 7565 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7566else 7567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7568for as_dir in $PATH 7569do 7570 IFS=$as_save_IFS 7571 test -z "$as_dir" && as_dir=. 7572 for ac_exec_ext in '' $ac_executable_extensions; do 7573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7574 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7576 break 2 7577 fi 7578done 7579 done 7580IFS=$as_save_IFS 7581 7582fi 7583fi 7584DSYMUTIL=$ac_cv_prog_DSYMUTIL 7585if test -n "$DSYMUTIL"; then 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7587$as_echo "$DSYMUTIL" >&6; } 7588else 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7590$as_echo "no" >&6; } 7591fi 7592 7593 7594fi 7595if test -z "$ac_cv_prog_DSYMUTIL"; then 7596 ac_ct_DSYMUTIL=$DSYMUTIL 7597 # Extract the first word of "dsymutil", so it can be a program name with args. 7598set dummy dsymutil; ac_word=$2 7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7600$as_echo_n "checking for $ac_word... " >&6; } 7601if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603else 7604 if test -n "$ac_ct_DSYMUTIL"; then 7605 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7606else 7607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7608for as_dir in $PATH 7609do 7610 IFS=$as_save_IFS 7611 test -z "$as_dir" && as_dir=. 7612 for ac_exec_ext in '' $ac_executable_extensions; do 7613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7614 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7616 break 2 7617 fi 7618done 7619 done 7620IFS=$as_save_IFS 7621 7622fi 7623fi 7624ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7625if test -n "$ac_ct_DSYMUTIL"; then 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7627$as_echo "$ac_ct_DSYMUTIL" >&6; } 7628else 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7630$as_echo "no" >&6; } 7631fi 7632 7633 if test "x$ac_ct_DSYMUTIL" = x; then 7634 DSYMUTIL=":" 7635 else 7636 case $cross_compiling:$ac_tool_warned in 7637yes:) 7638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7640ac_tool_warned=yes ;; 7641esac 7642 DSYMUTIL=$ac_ct_DSYMUTIL 7643 fi 7644else 7645 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7646fi 7647 7648 if test -n "$ac_tool_prefix"; then 7649 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7650set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7652$as_echo_n "checking for $ac_word... " >&6; } 7653if ${ac_cv_prog_NMEDIT+:} false; then : 7654 $as_echo_n "(cached) " >&6 7655else 7656 if test -n "$NMEDIT"; then 7657 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7658else 7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7660for as_dir in $PATH 7661do 7662 IFS=$as_save_IFS 7663 test -z "$as_dir" && as_dir=. 7664 for ac_exec_ext in '' $ac_executable_extensions; do 7665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7666 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7668 break 2 7669 fi 7670done 7671 done 7672IFS=$as_save_IFS 7673 7674fi 7675fi 7676NMEDIT=$ac_cv_prog_NMEDIT 7677if test -n "$NMEDIT"; then 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7679$as_echo "$NMEDIT" >&6; } 7680else 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7682$as_echo "no" >&6; } 7683fi 7684 7685 7686fi 7687if test -z "$ac_cv_prog_NMEDIT"; then 7688 ac_ct_NMEDIT=$NMEDIT 7689 # Extract the first word of "nmedit", so it can be a program name with args. 7690set dummy nmedit; ac_word=$2 7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7692$as_echo_n "checking for $ac_word... " >&6; } 7693if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7694 $as_echo_n "(cached) " >&6 7695else 7696 if test -n "$ac_ct_NMEDIT"; then 7697 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7698else 7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7700for as_dir in $PATH 7701do 7702 IFS=$as_save_IFS 7703 test -z "$as_dir" && as_dir=. 7704 for ac_exec_ext in '' $ac_executable_extensions; do 7705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7706 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7708 break 2 7709 fi 7710done 7711 done 7712IFS=$as_save_IFS 7713 7714fi 7715fi 7716ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7717if test -n "$ac_ct_NMEDIT"; then 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7719$as_echo "$ac_ct_NMEDIT" >&6; } 7720else 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7722$as_echo "no" >&6; } 7723fi 7724 7725 if test "x$ac_ct_NMEDIT" = x; then 7726 NMEDIT=":" 7727 else 7728 case $cross_compiling:$ac_tool_warned in 7729yes:) 7730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7732ac_tool_warned=yes ;; 7733esac 7734 NMEDIT=$ac_ct_NMEDIT 7735 fi 7736else 7737 NMEDIT="$ac_cv_prog_NMEDIT" 7738fi 7739 7740 if test -n "$ac_tool_prefix"; then 7741 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7742set dummy ${ac_tool_prefix}lipo; ac_word=$2 7743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7744$as_echo_n "checking for $ac_word... " >&6; } 7745if ${ac_cv_prog_LIPO+:} false; then : 7746 $as_echo_n "(cached) " >&6 7747else 7748 if test -n "$LIPO"; then 7749 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7750else 7751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7752for as_dir in $PATH 7753do 7754 IFS=$as_save_IFS 7755 test -z "$as_dir" && as_dir=. 7756 for ac_exec_ext in '' $ac_executable_extensions; do 7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7758 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7760 break 2 7761 fi 7762done 7763 done 7764IFS=$as_save_IFS 7765 7766fi 7767fi 7768LIPO=$ac_cv_prog_LIPO 7769if test -n "$LIPO"; then 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7771$as_echo "$LIPO" >&6; } 7772else 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7774$as_echo "no" >&6; } 7775fi 7776 7777 7778fi 7779if test -z "$ac_cv_prog_LIPO"; then 7780 ac_ct_LIPO=$LIPO 7781 # Extract the first word of "lipo", so it can be a program name with args. 7782set dummy lipo; ac_word=$2 7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7784$as_echo_n "checking for $ac_word... " >&6; } 7785if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7786 $as_echo_n "(cached) " >&6 7787else 7788 if test -n "$ac_ct_LIPO"; then 7789 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7790else 7791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7792for as_dir in $PATH 7793do 7794 IFS=$as_save_IFS 7795 test -z "$as_dir" && as_dir=. 7796 for ac_exec_ext in '' $ac_executable_extensions; do 7797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7798 ac_cv_prog_ac_ct_LIPO="lipo" 7799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7800 break 2 7801 fi 7802done 7803 done 7804IFS=$as_save_IFS 7805 7806fi 7807fi 7808ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7809if test -n "$ac_ct_LIPO"; then 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7811$as_echo "$ac_ct_LIPO" >&6; } 7812else 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7814$as_echo "no" >&6; } 7815fi 7816 7817 if test "x$ac_ct_LIPO" = x; then 7818 LIPO=":" 7819 else 7820 case $cross_compiling:$ac_tool_warned in 7821yes:) 7822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7824ac_tool_warned=yes ;; 7825esac 7826 LIPO=$ac_ct_LIPO 7827 fi 7828else 7829 LIPO="$ac_cv_prog_LIPO" 7830fi 7831 7832 if test -n "$ac_tool_prefix"; then 7833 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7834set dummy ${ac_tool_prefix}otool; ac_word=$2 7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7836$as_echo_n "checking for $ac_word... " >&6; } 7837if ${ac_cv_prog_OTOOL+:} false; then : 7838 $as_echo_n "(cached) " >&6 7839else 7840 if test -n "$OTOOL"; then 7841 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7842else 7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7844for as_dir in $PATH 7845do 7846 IFS=$as_save_IFS 7847 test -z "$as_dir" && as_dir=. 7848 for ac_exec_ext in '' $ac_executable_extensions; do 7849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7850 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7852 break 2 7853 fi 7854done 7855 done 7856IFS=$as_save_IFS 7857 7858fi 7859fi 7860OTOOL=$ac_cv_prog_OTOOL 7861if test -n "$OTOOL"; then 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7863$as_echo "$OTOOL" >&6; } 7864else 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7866$as_echo "no" >&6; } 7867fi 7868 7869 7870fi 7871if test -z "$ac_cv_prog_OTOOL"; then 7872 ac_ct_OTOOL=$OTOOL 7873 # Extract the first word of "otool", so it can be a program name with args. 7874set dummy otool; ac_word=$2 7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7876$as_echo_n "checking for $ac_word... " >&6; } 7877if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7878 $as_echo_n "(cached) " >&6 7879else 7880 if test -n "$ac_ct_OTOOL"; then 7881 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7882else 7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7884for as_dir in $PATH 7885do 7886 IFS=$as_save_IFS 7887 test -z "$as_dir" && as_dir=. 7888 for ac_exec_ext in '' $ac_executable_extensions; do 7889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7890 ac_cv_prog_ac_ct_OTOOL="otool" 7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7892 break 2 7893 fi 7894done 7895 done 7896IFS=$as_save_IFS 7897 7898fi 7899fi 7900ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7901if test -n "$ac_ct_OTOOL"; then 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7903$as_echo "$ac_ct_OTOOL" >&6; } 7904else 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7906$as_echo "no" >&6; } 7907fi 7908 7909 if test "x$ac_ct_OTOOL" = x; then 7910 OTOOL=":" 7911 else 7912 case $cross_compiling:$ac_tool_warned in 7913yes:) 7914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7916ac_tool_warned=yes ;; 7917esac 7918 OTOOL=$ac_ct_OTOOL 7919 fi 7920else 7921 OTOOL="$ac_cv_prog_OTOOL" 7922fi 7923 7924 if test -n "$ac_tool_prefix"; then 7925 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7926set dummy ${ac_tool_prefix}otool64; ac_word=$2 7927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7928$as_echo_n "checking for $ac_word... " >&6; } 7929if ${ac_cv_prog_OTOOL64+:} false; then : 7930 $as_echo_n "(cached) " >&6 7931else 7932 if test -n "$OTOOL64"; then 7933 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7934else 7935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7936for as_dir in $PATH 7937do 7938 IFS=$as_save_IFS 7939 test -z "$as_dir" && as_dir=. 7940 for ac_exec_ext in '' $ac_executable_extensions; do 7941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7942 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7944 break 2 7945 fi 7946done 7947 done 7948IFS=$as_save_IFS 7949 7950fi 7951fi 7952OTOOL64=$ac_cv_prog_OTOOL64 7953if test -n "$OTOOL64"; then 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7955$as_echo "$OTOOL64" >&6; } 7956else 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7958$as_echo "no" >&6; } 7959fi 7960 7961 7962fi 7963if test -z "$ac_cv_prog_OTOOL64"; then 7964 ac_ct_OTOOL64=$OTOOL64 7965 # Extract the first word of "otool64", so it can be a program name with args. 7966set dummy otool64; ac_word=$2 7967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7968$as_echo_n "checking for $ac_word... " >&6; } 7969if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7970 $as_echo_n "(cached) " >&6 7971else 7972 if test -n "$ac_ct_OTOOL64"; then 7973 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7974else 7975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7976for as_dir in $PATH 7977do 7978 IFS=$as_save_IFS 7979 test -z "$as_dir" && as_dir=. 7980 for ac_exec_ext in '' $ac_executable_extensions; do 7981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7982 ac_cv_prog_ac_ct_OTOOL64="otool64" 7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7984 break 2 7985 fi 7986done 7987 done 7988IFS=$as_save_IFS 7989 7990fi 7991fi 7992ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7993if test -n "$ac_ct_OTOOL64"; then 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7995$as_echo "$ac_ct_OTOOL64" >&6; } 7996else 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7998$as_echo "no" >&6; } 7999fi 8000 8001 if test "x$ac_ct_OTOOL64" = x; then 8002 OTOOL64=":" 8003 else 8004 case $cross_compiling:$ac_tool_warned in 8005yes:) 8006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8008ac_tool_warned=yes ;; 8009esac 8010 OTOOL64=$ac_ct_OTOOL64 8011 fi 8012else 8013 OTOOL64="$ac_cv_prog_OTOOL64" 8014fi 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8043$as_echo_n "checking for -single_module linker flag... " >&6; } 8044if ${lt_cv_apple_cc_single_mod+:} false; then : 8045 $as_echo_n "(cached) " >&6 8046else 8047 lt_cv_apple_cc_single_mod=no 8048 if test -z "${LT_MULTI_MODULE}"; then 8049 # By default we will add the -single_module flag. You can override 8050 # by either setting the environment variable LT_MULTI_MODULE 8051 # non-empty at configure time, or by adding -multi_module to the 8052 # link flags. 8053 rm -rf libconftest.dylib* 8054 echo "int foo(void){return 1;}" > conftest.c 8055 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8056-dynamiclib -Wl,-single_module conftest.c" >&5 8057 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8058 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8059 _lt_result=$? 8060 # If there is a non-empty error log, and "single_module" 8061 # appears in it, assume the flag caused a linker warning 8062 if test -s conftest.err && $GREP single_module conftest.err; then 8063 cat conftest.err >&5 8064 # Otherwise, if the output was created with a 0 exit code from 8065 # the compiler, it worked. 8066 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8067 lt_cv_apple_cc_single_mod=yes 8068 else 8069 cat conftest.err >&5 8070 fi 8071 rm -rf libconftest.dylib* 8072 rm -f conftest.* 8073 fi 8074fi 8075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8076$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8077 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8079$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8080if ${lt_cv_ld_exported_symbols_list+:} false; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 lt_cv_ld_exported_symbols_list=no 8084 save_LDFLAGS=$LDFLAGS 8085 echo "_main" > conftest.sym 8086 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8088/* end confdefs.h. */ 8089 8090int 8091main () 8092{ 8093 8094 ; 8095 return 0; 8096} 8097_ACEOF 8098if ac_fn_c_try_link "$LINENO"; then : 8099 lt_cv_ld_exported_symbols_list=yes 8100else 8101 lt_cv_ld_exported_symbols_list=no 8102fi 8103rm -f core conftest.err conftest.$ac_objext \ 8104 conftest$ac_exeext conftest.$ac_ext 8105 LDFLAGS="$save_LDFLAGS" 8106 8107fi 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8109$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8110 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8112$as_echo_n "checking for -force_load linker flag... " >&6; } 8113if ${lt_cv_ld_force_load+:} false; then : 8114 $as_echo_n "(cached) " >&6 8115else 8116 lt_cv_ld_force_load=no 8117 cat > conftest.c << _LT_EOF 8118int forced_loaded() { return 2;} 8119_LT_EOF 8120 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8121 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8122 echo "$AR cru libconftest.a conftest.o" >&5 8123 $AR cru libconftest.a conftest.o 2>&5 8124 echo "$RANLIB libconftest.a" >&5 8125 $RANLIB libconftest.a 2>&5 8126 cat > conftest.c << _LT_EOF 8127int main() { return 0;} 8128_LT_EOF 8129 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8130 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8131 _lt_result=$? 8132 if test -s conftest.err && $GREP force_load conftest.err; then 8133 cat conftest.err >&5 8134 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8135 lt_cv_ld_force_load=yes 8136 else 8137 cat conftest.err >&5 8138 fi 8139 rm -f conftest.err libconftest.a conftest conftest.c 8140 rm -rf conftest.dSYM 8141 8142fi 8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8144$as_echo "$lt_cv_ld_force_load" >&6; } 8145 case $host_os in 8146 rhapsody* | darwin1.[012]) 8147 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8148 darwin1.*) 8149 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8150 darwin*) # darwin 5.x on 8151 # if running on 10.5 or later, the deployment target defaults 8152 # to the OS version, if on x86, and 10.4, the deployment 8153 # target defaults to 10.4. Don't you love it? 8154 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8155 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8156 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8157 10.[012]*) 8158 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8159 10.*) 8160 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8161 esac 8162 ;; 8163 esac 8164 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8165 _lt_dar_single_mod='$single_module' 8166 fi 8167 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8168 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8169 else 8170 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8171 fi 8172 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8173 _lt_dsymutil='~$DSYMUTIL $lib || :' 8174 else 8175 _lt_dsymutil= 8176 fi 8177 ;; 8178 esac 8179 8180 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8182$as_echo_n "checking for ANSI C header files... " >&6; } 8183if ${ac_cv_header_stdc+:} false; then : 8184 $as_echo_n "(cached) " >&6 8185else 8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8187/* end confdefs.h. */ 8188#include <stdlib.h> 8189#include <stdarg.h> 8190#include <string.h> 8191#include <float.h> 8192 8193int 8194main () 8195{ 8196 8197 ; 8198 return 0; 8199} 8200_ACEOF 8201if ac_fn_c_try_compile "$LINENO"; then : 8202 ac_cv_header_stdc=yes 8203else 8204 ac_cv_header_stdc=no 8205fi 8206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8207 8208if test $ac_cv_header_stdc = yes; then 8209 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8211/* end confdefs.h. */ 8212#include <string.h> 8213 8214_ACEOF 8215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8216 $EGREP "memchr" >/dev/null 2>&1; then : 8217 8218else 8219 ac_cv_header_stdc=no 8220fi 8221rm -f conftest* 8222 8223fi 8224 8225if test $ac_cv_header_stdc = yes; then 8226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8228/* end confdefs.h. */ 8229#include <stdlib.h> 8230 8231_ACEOF 8232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8233 $EGREP "free" >/dev/null 2>&1; then : 8234 8235else 8236 ac_cv_header_stdc=no 8237fi 8238rm -f conftest* 8239 8240fi 8241 8242if test $ac_cv_header_stdc = yes; then 8243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8244 if test "$cross_compiling" = yes; then : 8245 : 8246else 8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8248/* end confdefs.h. */ 8249#include <ctype.h> 8250#include <stdlib.h> 8251#if ((' ' & 0x0FF) == 0x020) 8252# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8253# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8254#else 8255# define ISLOWER(c) \ 8256 (('a' <= (c) && (c) <= 'i') \ 8257 || ('j' <= (c) && (c) <= 'r') \ 8258 || ('s' <= (c) && (c) <= 'z')) 8259# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8260#endif 8261 8262#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8263int 8264main () 8265{ 8266 int i; 8267 for (i = 0; i < 256; i++) 8268 if (XOR (islower (i), ISLOWER (i)) 8269 || toupper (i) != TOUPPER (i)) 8270 return 2; 8271 return 0; 8272} 8273_ACEOF 8274if ac_fn_c_try_run "$LINENO"; then : 8275 8276else 8277 ac_cv_header_stdc=no 8278fi 8279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8280 conftest.$ac_objext conftest.beam conftest.$ac_ext 8281fi 8282 8283fi 8284fi 8285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8286$as_echo "$ac_cv_header_stdc" >&6; } 8287if test $ac_cv_header_stdc = yes; then 8288 8289$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8290 8291fi 8292 8293# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8294for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8295 inttypes.h stdint.h unistd.h 8296do : 8297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8298ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8299" 8300if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8301 cat >>confdefs.h <<_ACEOF 8302#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8303_ACEOF 8304 8305fi 8306 8307done 8308 8309 8310for ac_header in dlfcn.h 8311do : 8312 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8313" 8314if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8315 cat >>confdefs.h <<_ACEOF 8316#define HAVE_DLFCN_H 1 8317_ACEOF 8318 8319fi 8320 8321done 8322 8323 8324 8325 8326func_stripname_cnf () 8327{ 8328 case ${2} in 8329 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 8330 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 8331 esac 8332} # func_stripname_cnf 8333 8334 8335 8336 8337 8338# Set options 8339 8340 8341 8342 enable_dlopen=no 8343 8344 8345 enable_win32_dll=no 8346 8347 8348 # Check whether --enable-shared was given. 8349if test "${enable_shared+set}" = set; then : 8350 enableval=$enable_shared; p=${PACKAGE-default} 8351 case $enableval in 8352 yes) enable_shared=yes ;; 8353 no) enable_shared=no ;; 8354 *) 8355 enable_shared=no 8356 # Look at the argument we got. We use all the common list separators. 8357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8358 for pkg in $enableval; do 8359 IFS="$lt_save_ifs" 8360 if test "X$pkg" = "X$p"; then 8361 enable_shared=yes 8362 fi 8363 done 8364 IFS="$lt_save_ifs" 8365 ;; 8366 esac 8367else 8368 enable_shared=yes 8369fi 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 # Check whether --enable-static was given. 8380if test "${enable_static+set}" = set; then : 8381 enableval=$enable_static; p=${PACKAGE-default} 8382 case $enableval in 8383 yes) enable_static=yes ;; 8384 no) enable_static=no ;; 8385 *) 8386 enable_static=no 8387 # Look at the argument we got. We use all the common list separators. 8388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8389 for pkg in $enableval; do 8390 IFS="$lt_save_ifs" 8391 if test "X$pkg" = "X$p"; then 8392 enable_static=yes 8393 fi 8394 done 8395 IFS="$lt_save_ifs" 8396 ;; 8397 esac 8398else 8399 enable_static=yes 8400fi 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411# Check whether --with-pic was given. 8412if test "${with_pic+set}" = set; then : 8413 withval=$with_pic; lt_p=${PACKAGE-default} 8414 case $withval in 8415 yes|no) pic_mode=$withval ;; 8416 *) 8417 pic_mode=default 8418 # Look at the argument we got. We use all the common list separators. 8419 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8420 for lt_pkg in $withval; do 8421 IFS="$lt_save_ifs" 8422 if test "X$lt_pkg" = "X$lt_p"; then 8423 pic_mode=yes 8424 fi 8425 done 8426 IFS="$lt_save_ifs" 8427 ;; 8428 esac 8429else 8430 pic_mode=default 8431fi 8432 8433 8434test -z "$pic_mode" && pic_mode=default 8435 8436 8437 8438 8439 8440 8441 8442 # Check whether --enable-fast-install was given. 8443if test "${enable_fast_install+set}" = set; then : 8444 enableval=$enable_fast_install; p=${PACKAGE-default} 8445 case $enableval in 8446 yes) enable_fast_install=yes ;; 8447 no) enable_fast_install=no ;; 8448 *) 8449 enable_fast_install=no 8450 # Look at the argument we got. We use all the common list separators. 8451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8452 for pkg in $enableval; do 8453 IFS="$lt_save_ifs" 8454 if test "X$pkg" = "X$p"; then 8455 enable_fast_install=yes 8456 fi 8457 done 8458 IFS="$lt_save_ifs" 8459 ;; 8460 esac 8461else 8462 enable_fast_install=yes 8463fi 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475# This can be used to rebuild libtool when needed 8476LIBTOOL_DEPS="$ltmain" 8477 8478# Always use our own libtool. 8479LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510test -z "$LN_S" && LN_S="ln -s" 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525if test -n "${ZSH_VERSION+set}" ; then 8526 setopt NO_GLOB_SUBST 8527fi 8528 8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8530$as_echo_n "checking for objdir... " >&6; } 8531if ${lt_cv_objdir+:} false; then : 8532 $as_echo_n "(cached) " >&6 8533else 8534 rm -f .libs 2>/dev/null 8535mkdir .libs 2>/dev/null 8536if test -d .libs; then 8537 lt_cv_objdir=.libs 8538else 8539 # MS-DOS does not allow filenames that begin with a dot. 8540 lt_cv_objdir=_libs 8541fi 8542rmdir .libs 2>/dev/null 8543fi 8544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8545$as_echo "$lt_cv_objdir" >&6; } 8546objdir=$lt_cv_objdir 8547 8548 8549 8550 8551 8552cat >>confdefs.h <<_ACEOF 8553#define LT_OBJDIR "$lt_cv_objdir/" 8554_ACEOF 8555 8556 8557 8558 8559case $host_os in 8560aix3*) 8561 # AIX sometimes has problems with the GCC collect2 program. For some 8562 # reason, if we set the COLLECT_NAMES environment variable, the problems 8563 # vanish in a puff of smoke. 8564 if test "X${COLLECT_NAMES+set}" != Xset; then 8565 COLLECT_NAMES= 8566 export COLLECT_NAMES 8567 fi 8568 ;; 8569esac 8570 8571# Global variables: 8572ofile=libtool 8573can_build_shared=yes 8574 8575# All known linkers require a `.a' archive for static linking (except MSVC, 8576# which needs '.lib'). 8577libext=a 8578 8579with_gnu_ld="$lt_cv_prog_gnu_ld" 8580 8581old_CC="$CC" 8582old_CFLAGS="$CFLAGS" 8583 8584# Set sane defaults for various variables 8585test -z "$CC" && CC=cc 8586test -z "$LTCC" && LTCC=$CC 8587test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8588test -z "$LD" && LD=ld 8589test -z "$ac_objext" && ac_objext=o 8590 8591for cc_temp in $compiler""; do 8592 case $cc_temp in 8593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8595 \-*) ;; 8596 *) break;; 8597 esac 8598done 8599cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8600 8601 8602# Only perform the check for file, if the check method requires it 8603test -z "$MAGIC_CMD" && MAGIC_CMD=file 8604case $deplibs_check_method in 8605file_magic*) 8606 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8608$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8609if ${lt_cv_path_MAGIC_CMD+:} false; then : 8610 $as_echo_n "(cached) " >&6 8611else 8612 case $MAGIC_CMD in 8613[\\/*] | ?:[\\/]*) 8614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8615 ;; 8616*) 8617 lt_save_MAGIC_CMD="$MAGIC_CMD" 8618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8619 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8620 for ac_dir in $ac_dummy; do 8621 IFS="$lt_save_ifs" 8622 test -z "$ac_dir" && ac_dir=. 8623 if test -f $ac_dir/${ac_tool_prefix}file; then 8624 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8625 if test -n "$file_magic_test_file"; then 8626 case $deplibs_check_method in 8627 "file_magic "*) 8628 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8631 $EGREP "$file_magic_regex" > /dev/null; then 8632 : 8633 else 8634 cat <<_LT_EOF 1>&2 8635 8636*** Warning: the command libtool uses to detect shared libraries, 8637*** $file_magic_cmd, produces output that libtool cannot recognize. 8638*** The result is that libtool may fail to recognize shared libraries 8639*** as such. This will affect the creation of libtool libraries that 8640*** depend on shared libraries, but programs linked with such libtool 8641*** libraries will work regardless of this problem. Nevertheless, you 8642*** may want to report the problem to your system manager and/or to 8643*** bug-libtool@gnu.org 8644 8645_LT_EOF 8646 fi ;; 8647 esac 8648 fi 8649 break 8650 fi 8651 done 8652 IFS="$lt_save_ifs" 8653 MAGIC_CMD="$lt_save_MAGIC_CMD" 8654 ;; 8655esac 8656fi 8657 8658MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8659if test -n "$MAGIC_CMD"; then 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8661$as_echo "$MAGIC_CMD" >&6; } 8662else 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8664$as_echo "no" >&6; } 8665fi 8666 8667 8668 8669 8670 8671if test -z "$lt_cv_path_MAGIC_CMD"; then 8672 if test -n "$ac_tool_prefix"; then 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8674$as_echo_n "checking for file... " >&6; } 8675if ${lt_cv_path_MAGIC_CMD+:} false; then : 8676 $as_echo_n "(cached) " >&6 8677else 8678 case $MAGIC_CMD in 8679[\\/*] | ?:[\\/]*) 8680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8681 ;; 8682*) 8683 lt_save_MAGIC_CMD="$MAGIC_CMD" 8684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8686 for ac_dir in $ac_dummy; do 8687 IFS="$lt_save_ifs" 8688 test -z "$ac_dir" && ac_dir=. 8689 if test -f $ac_dir/file; then 8690 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8691 if test -n "$file_magic_test_file"; then 8692 case $deplibs_check_method in 8693 "file_magic "*) 8694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8697 $EGREP "$file_magic_regex" > /dev/null; then 8698 : 8699 else 8700 cat <<_LT_EOF 1>&2 8701 8702*** Warning: the command libtool uses to detect shared libraries, 8703*** $file_magic_cmd, produces output that libtool cannot recognize. 8704*** The result is that libtool may fail to recognize shared libraries 8705*** as such. This will affect the creation of libtool libraries that 8706*** depend on shared libraries, but programs linked with such libtool 8707*** libraries will work regardless of this problem. Nevertheless, you 8708*** may want to report the problem to your system manager and/or to 8709*** bug-libtool@gnu.org 8710 8711_LT_EOF 8712 fi ;; 8713 esac 8714 fi 8715 break 8716 fi 8717 done 8718 IFS="$lt_save_ifs" 8719 MAGIC_CMD="$lt_save_MAGIC_CMD" 8720 ;; 8721esac 8722fi 8723 8724MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8725if test -n "$MAGIC_CMD"; then 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8727$as_echo "$MAGIC_CMD" >&6; } 8728else 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8730$as_echo "no" >&6; } 8731fi 8732 8733 8734 else 8735 MAGIC_CMD=: 8736 fi 8737fi 8738 8739 fi 8740 ;; 8741esac 8742 8743# Use C for the default configuration in the libtool script 8744 8745lt_save_CC="$CC" 8746ac_ext=c 8747ac_cpp='$CPP $CPPFLAGS' 8748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8750ac_compiler_gnu=$ac_cv_c_compiler_gnu 8751 8752 8753# Source file extension for C test sources. 8754ac_ext=c 8755 8756# Object file extension for compiled C test sources. 8757objext=o 8758objext=$objext 8759 8760# Code to be used in simple compile tests 8761lt_simple_compile_test_code="int some_variable = 0;" 8762 8763# Code to be used in simple link tests 8764lt_simple_link_test_code='int main(){return(0);}' 8765 8766 8767 8768 8769 8770 8771 8772# If no C compiler was specified, use CC. 8773LTCC=${LTCC-"$CC"} 8774 8775# If no C compiler flags were specified, use CFLAGS. 8776LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8777 8778# Allow CC to be a program name with arguments. 8779compiler=$CC 8780 8781# Save the default compiler, since it gets overwritten when the other 8782# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8783compiler_DEFAULT=$CC 8784 8785# save warnings/boilerplate of simple test code 8786ac_outfile=conftest.$ac_objext 8787echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8788eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8789_lt_compiler_boilerplate=`cat conftest.err` 8790$RM conftest* 8791 8792ac_outfile=conftest.$ac_objext 8793echo "$lt_simple_link_test_code" >conftest.$ac_ext 8794eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8795_lt_linker_boilerplate=`cat conftest.err` 8796$RM -r conftest* 8797 8798 8799## CAVEAT EMPTOR: 8800## There is no encapsulation within the following macros, do not change 8801## the running order or otherwise move them around unless you know exactly 8802## what you are doing... 8803if test -n "$compiler"; then 8804 8805lt_prog_compiler_no_builtin_flag= 8806 8807if test "$GCC" = yes; then 8808 case $cc_basename in 8809 nvcc*) 8810 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8811 *) 8812 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8813 esac 8814 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8816$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8817if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8818 $as_echo_n "(cached) " >&6 8819else 8820 lt_cv_prog_compiler_rtti_exceptions=no 8821 ac_outfile=conftest.$ac_objext 8822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8823 lt_compiler_flag="-fno-rtti -fno-exceptions" 8824 # Insert the option either (1) after the last *FLAGS variable, or 8825 # (2) before a word containing "conftest.", or (3) at the end. 8826 # Note that $ac_compile itself does not contain backslashes and begins 8827 # with a dollar sign (not a hyphen), so the echo should work correctly. 8828 # The option is referenced via a variable to avoid confusing sed. 8829 lt_compile=`echo "$ac_compile" | $SED \ 8830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8832 -e 's:$: $lt_compiler_flag:'` 8833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8834 (eval "$lt_compile" 2>conftest.err) 8835 ac_status=$? 8836 cat conftest.err >&5 8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8838 if (exit $ac_status) && test -s "$ac_outfile"; then 8839 # The compiler can only warn and ignore the option if not recognized 8840 # So say no if there are warnings other than the usual output. 8841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8844 lt_cv_prog_compiler_rtti_exceptions=yes 8845 fi 8846 fi 8847 $RM conftest* 8848 8849fi 8850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8851$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8852 8853if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8854 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8855else 8856 : 8857fi 8858 8859fi 8860 8861 8862 8863 8864 8865 8866 lt_prog_compiler_wl= 8867lt_prog_compiler_pic= 8868lt_prog_compiler_static= 8869 8870 8871 if test "$GCC" = yes; then 8872 lt_prog_compiler_wl='-Wl,' 8873 lt_prog_compiler_static='-static' 8874 8875 case $host_os in 8876 aix*) 8877 # All AIX code is PIC. 8878 if test "$host_cpu" = ia64; then 8879 # AIX 5 now supports IA64 processor 8880 lt_prog_compiler_static='-Bstatic' 8881 fi 8882 ;; 8883 8884 amigaos*) 8885 case $host_cpu in 8886 powerpc) 8887 # see comment about AmigaOS4 .so support 8888 lt_prog_compiler_pic='-fPIC' 8889 ;; 8890 m68k) 8891 # FIXME: we need at least 68020 code to build shared libraries, but 8892 # adding the `-m68020' flag to GCC prevents building anything better, 8893 # like `-m68040'. 8894 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8895 ;; 8896 esac 8897 ;; 8898 8899 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8900 # PIC is the default for these OSes. 8901 ;; 8902 8903 mingw* | cygwin* | pw32* | os2* | cegcc*) 8904 # This hack is so that the source file can tell whether it is being 8905 # built for inclusion in a dll (and should export symbols for example). 8906 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8907 # (--disable-auto-import) libraries 8908 lt_prog_compiler_pic='-DDLL_EXPORT' 8909 ;; 8910 8911 darwin* | rhapsody*) 8912 # PIC is the default on this platform 8913 # Common symbols not allowed in MH_DYLIB files 8914 lt_prog_compiler_pic='-fno-common' 8915 ;; 8916 8917 haiku*) 8918 # PIC is the default for Haiku. 8919 # The "-static" flag exists, but is broken. 8920 lt_prog_compiler_static= 8921 ;; 8922 8923 hpux*) 8924 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8925 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8926 # sets the default TLS model and affects inlining. 8927 case $host_cpu in 8928 hppa*64*) 8929 # +Z the default 8930 ;; 8931 *) 8932 lt_prog_compiler_pic='-fPIC' 8933 ;; 8934 esac 8935 ;; 8936 8937 interix[3-9]*) 8938 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8939 # Instead, we relocate shared libraries at runtime. 8940 ;; 8941 8942 msdosdjgpp*) 8943 # Just because we use GCC doesn't mean we suddenly get shared libraries 8944 # on systems that don't support them. 8945 lt_prog_compiler_can_build_shared=no 8946 enable_shared=no 8947 ;; 8948 8949 *nto* | *qnx*) 8950 # QNX uses GNU C++, but need to define -shared option too, otherwise 8951 # it will coredump. 8952 lt_prog_compiler_pic='-fPIC -shared' 8953 ;; 8954 8955 sysv4*MP*) 8956 if test -d /usr/nec; then 8957 lt_prog_compiler_pic=-Kconform_pic 8958 fi 8959 ;; 8960 8961 *) 8962 lt_prog_compiler_pic='-fPIC' 8963 ;; 8964 esac 8965 8966 case $cc_basename in 8967 nvcc*) # Cuda Compiler Driver 2.2 8968 lt_prog_compiler_wl='-Xlinker ' 8969 if test -n "$lt_prog_compiler_pic"; then 8970 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8971 fi 8972 ;; 8973 esac 8974 else 8975 # PORTME Check for flag to pass linker flags through the system compiler. 8976 case $host_os in 8977 aix*) 8978 lt_prog_compiler_wl='-Wl,' 8979 if test "$host_cpu" = ia64; then 8980 # AIX 5 now supports IA64 processor 8981 lt_prog_compiler_static='-Bstatic' 8982 else 8983 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8984 fi 8985 ;; 8986 8987 mingw* | cygwin* | pw32* | os2* | cegcc*) 8988 # This hack is so that the source file can tell whether it is being 8989 # built for inclusion in a dll (and should export symbols for example). 8990 lt_prog_compiler_pic='-DDLL_EXPORT' 8991 ;; 8992 8993 hpux9* | hpux10* | hpux11*) 8994 lt_prog_compiler_wl='-Wl,' 8995 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8996 # not for PA HP-UX. 8997 case $host_cpu in 8998 hppa*64*|ia64*) 8999 # +Z the default 9000 ;; 9001 *) 9002 lt_prog_compiler_pic='+Z' 9003 ;; 9004 esac 9005 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9006 lt_prog_compiler_static='${wl}-a ${wl}archive' 9007 ;; 9008 9009 irix5* | irix6* | nonstopux*) 9010 lt_prog_compiler_wl='-Wl,' 9011 # PIC (with -KPIC) is the default. 9012 lt_prog_compiler_static='-non_shared' 9013 ;; 9014 9015 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9016 case $cc_basename in 9017 # old Intel for x86_64 which still supported -KPIC. 9018 ecc*) 9019 lt_prog_compiler_wl='-Wl,' 9020 lt_prog_compiler_pic='-KPIC' 9021 lt_prog_compiler_static='-static' 9022 ;; 9023 # icc used to be incompatible with GCC. 9024 # ICC 10 doesn't accept -KPIC any more. 9025 icc* | ifort*) 9026 lt_prog_compiler_wl='-Wl,' 9027 lt_prog_compiler_pic='-fPIC' 9028 lt_prog_compiler_static='-static' 9029 ;; 9030 # Lahey Fortran 8.1. 9031 lf95*) 9032 lt_prog_compiler_wl='-Wl,' 9033 lt_prog_compiler_pic='--shared' 9034 lt_prog_compiler_static='--static' 9035 ;; 9036 nagfor*) 9037 # NAG Fortran compiler 9038 lt_prog_compiler_wl='-Wl,-Wl,,' 9039 lt_prog_compiler_pic='-PIC' 9040 lt_prog_compiler_static='-Bstatic' 9041 ;; 9042 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9043 # Portland Group compilers (*not* the Pentium gcc compiler, 9044 # which looks to be a dead project) 9045 lt_prog_compiler_wl='-Wl,' 9046 lt_prog_compiler_pic='-fpic' 9047 lt_prog_compiler_static='-Bstatic' 9048 ;; 9049 ccc*) 9050 lt_prog_compiler_wl='-Wl,' 9051 # All Alpha code is PIC. 9052 lt_prog_compiler_static='-non_shared' 9053 ;; 9054 xl* | bgxl* | bgf* | mpixl*) 9055 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9056 lt_prog_compiler_wl='-Wl,' 9057 lt_prog_compiler_pic='-qpic' 9058 lt_prog_compiler_static='-qstaticlink' 9059 ;; 9060 *) 9061 case `$CC -V 2>&1 | sed 5q` in 9062 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9063 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9064 lt_prog_compiler_pic='-KPIC' 9065 lt_prog_compiler_static='-Bstatic' 9066 lt_prog_compiler_wl='' 9067 ;; 9068 *Sun\ F* | *Sun*Fortran*) 9069 lt_prog_compiler_pic='-KPIC' 9070 lt_prog_compiler_static='-Bstatic' 9071 lt_prog_compiler_wl='-Qoption ld ' 9072 ;; 9073 *Sun\ C*) 9074 # Sun C 5.9 9075 lt_prog_compiler_pic='-KPIC' 9076 lt_prog_compiler_static='-Bstatic' 9077 lt_prog_compiler_wl='-Wl,' 9078 ;; 9079 *Intel*\ [CF]*Compiler*) 9080 lt_prog_compiler_wl='-Wl,' 9081 lt_prog_compiler_pic='-fPIC' 9082 lt_prog_compiler_static='-static' 9083 ;; 9084 *Portland\ Group*) 9085 lt_prog_compiler_wl='-Wl,' 9086 lt_prog_compiler_pic='-fpic' 9087 lt_prog_compiler_static='-Bstatic' 9088 ;; 9089 esac 9090 ;; 9091 esac 9092 ;; 9093 9094 newsos6) 9095 lt_prog_compiler_pic='-KPIC' 9096 lt_prog_compiler_static='-Bstatic' 9097 ;; 9098 9099 *nto* | *qnx*) 9100 # QNX uses GNU C++, but need to define -shared option too, otherwise 9101 # it will coredump. 9102 lt_prog_compiler_pic='-fPIC -shared' 9103 ;; 9104 9105 osf3* | osf4* | osf5*) 9106 lt_prog_compiler_wl='-Wl,' 9107 # All OSF/1 code is PIC. 9108 lt_prog_compiler_static='-non_shared' 9109 ;; 9110 9111 rdos*) 9112 lt_prog_compiler_static='-non_shared' 9113 ;; 9114 9115 solaris*) 9116 lt_prog_compiler_pic='-KPIC' 9117 lt_prog_compiler_static='-Bstatic' 9118 case $cc_basename in 9119 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9120 lt_prog_compiler_wl='-Qoption ld ';; 9121 *) 9122 lt_prog_compiler_wl='-Wl,';; 9123 esac 9124 ;; 9125 9126 sunos4*) 9127 lt_prog_compiler_wl='-Qoption ld ' 9128 lt_prog_compiler_pic='-PIC' 9129 lt_prog_compiler_static='-Bstatic' 9130 ;; 9131 9132 sysv4 | sysv4.2uw2* | sysv4.3*) 9133 lt_prog_compiler_wl='-Wl,' 9134 lt_prog_compiler_pic='-KPIC' 9135 lt_prog_compiler_static='-Bstatic' 9136 ;; 9137 9138 sysv4*MP*) 9139 if test -d /usr/nec ;then 9140 lt_prog_compiler_pic='-Kconform_pic' 9141 lt_prog_compiler_static='-Bstatic' 9142 fi 9143 ;; 9144 9145 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9146 lt_prog_compiler_wl='-Wl,' 9147 lt_prog_compiler_pic='-KPIC' 9148 lt_prog_compiler_static='-Bstatic' 9149 ;; 9150 9151 unicos*) 9152 lt_prog_compiler_wl='-Wl,' 9153 lt_prog_compiler_can_build_shared=no 9154 ;; 9155 9156 uts4*) 9157 lt_prog_compiler_pic='-pic' 9158 lt_prog_compiler_static='-Bstatic' 9159 ;; 9160 9161 *) 9162 lt_prog_compiler_can_build_shared=no 9163 ;; 9164 esac 9165 fi 9166 9167case $host_os in 9168 # For platforms which do not support PIC, -DPIC is meaningless: 9169 *djgpp*) 9170 lt_prog_compiler_pic= 9171 ;; 9172 *) 9173 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9174 ;; 9175esac 9176 9177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9178$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9179if ${lt_cv_prog_compiler_pic+:} false; then : 9180 $as_echo_n "(cached) " >&6 9181else 9182 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9183fi 9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9185$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9186lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9187 9188# 9189# Check to make sure the PIC flag actually works. 9190# 9191if test -n "$lt_prog_compiler_pic"; then 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9193$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9194if ${lt_cv_prog_compiler_pic_works+:} false; then : 9195 $as_echo_n "(cached) " >&6 9196else 9197 lt_cv_prog_compiler_pic_works=no 9198 ac_outfile=conftest.$ac_objext 9199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9200 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9201 # Insert the option either (1) after the last *FLAGS variable, or 9202 # (2) before a word containing "conftest.", or (3) at the end. 9203 # Note that $ac_compile itself does not contain backslashes and begins 9204 # with a dollar sign (not a hyphen), so the echo should work correctly. 9205 # The option is referenced via a variable to avoid confusing sed. 9206 lt_compile=`echo "$ac_compile" | $SED \ 9207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9209 -e 's:$: $lt_compiler_flag:'` 9210 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9211 (eval "$lt_compile" 2>conftest.err) 9212 ac_status=$? 9213 cat conftest.err >&5 9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9215 if (exit $ac_status) && test -s "$ac_outfile"; then 9216 # The compiler can only warn and ignore the option if not recognized 9217 # So say no if there are warnings other than the usual output. 9218 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9221 lt_cv_prog_compiler_pic_works=yes 9222 fi 9223 fi 9224 $RM conftest* 9225 9226fi 9227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9228$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9229 9230if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9231 case $lt_prog_compiler_pic in 9232 "" | " "*) ;; 9233 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9234 esac 9235else 9236 lt_prog_compiler_pic= 9237 lt_prog_compiler_can_build_shared=no 9238fi 9239 9240fi 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252# 9253# Check to make sure the static flag actually works. 9254# 9255wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9257$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9258if ${lt_cv_prog_compiler_static_works+:} false; then : 9259 $as_echo_n "(cached) " >&6 9260else 9261 lt_cv_prog_compiler_static_works=no 9262 save_LDFLAGS="$LDFLAGS" 9263 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9264 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9265 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9266 # The linker can only warn and ignore the option if not recognized 9267 # So say no if there are warnings 9268 if test -s conftest.err; then 9269 # Append any errors to the config.log. 9270 cat conftest.err 1>&5 9271 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9273 if diff conftest.exp conftest.er2 >/dev/null; then 9274 lt_cv_prog_compiler_static_works=yes 9275 fi 9276 else 9277 lt_cv_prog_compiler_static_works=yes 9278 fi 9279 fi 9280 $RM -r conftest* 9281 LDFLAGS="$save_LDFLAGS" 9282 9283fi 9284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9285$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9286 9287if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9288 : 9289else 9290 lt_prog_compiler_static= 9291fi 9292 9293 9294 9295 9296 9297 9298 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9300$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9301if ${lt_cv_prog_compiler_c_o+:} false; then : 9302 $as_echo_n "(cached) " >&6 9303else 9304 lt_cv_prog_compiler_c_o=no 9305 $RM -r conftest 2>/dev/null 9306 mkdir conftest 9307 cd conftest 9308 mkdir out 9309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9310 9311 lt_compiler_flag="-o out/conftest2.$ac_objext" 9312 # Insert the option either (1) after the last *FLAGS variable, or 9313 # (2) before a word containing "conftest.", or (3) at the end. 9314 # Note that $ac_compile itself does not contain backslashes and begins 9315 # with a dollar sign (not a hyphen), so the echo should work correctly. 9316 lt_compile=`echo "$ac_compile" | $SED \ 9317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9319 -e 's:$: $lt_compiler_flag:'` 9320 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9321 (eval "$lt_compile" 2>out/conftest.err) 9322 ac_status=$? 9323 cat out/conftest.err >&5 9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9325 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9326 then 9327 # The compiler can only warn and ignore the option if not recognized 9328 # So say no if there are warnings 9329 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9330 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9331 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9332 lt_cv_prog_compiler_c_o=yes 9333 fi 9334 fi 9335 chmod u+w . 2>&5 9336 $RM conftest* 9337 # SGI C++ compiler will create directory out/ii_files/ for 9338 # template instantiation 9339 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9340 $RM out/* && rmdir out 9341 cd .. 9342 $RM -r conftest 9343 $RM conftest* 9344 9345fi 9346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9347$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9348 9349 9350 9351 9352 9353 9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9355$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9356if ${lt_cv_prog_compiler_c_o+:} false; then : 9357 $as_echo_n "(cached) " >&6 9358else 9359 lt_cv_prog_compiler_c_o=no 9360 $RM -r conftest 2>/dev/null 9361 mkdir conftest 9362 cd conftest 9363 mkdir out 9364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9365 9366 lt_compiler_flag="-o out/conftest2.$ac_objext" 9367 # Insert the option either (1) after the last *FLAGS variable, or 9368 # (2) before a word containing "conftest.", or (3) at the end. 9369 # Note that $ac_compile itself does not contain backslashes and begins 9370 # with a dollar sign (not a hyphen), so the echo should work correctly. 9371 lt_compile=`echo "$ac_compile" | $SED \ 9372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9374 -e 's:$: $lt_compiler_flag:'` 9375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9376 (eval "$lt_compile" 2>out/conftest.err) 9377 ac_status=$? 9378 cat out/conftest.err >&5 9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9380 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9381 then 9382 # The compiler can only warn and ignore the option if not recognized 9383 # So say no if there are warnings 9384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9385 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9386 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9387 lt_cv_prog_compiler_c_o=yes 9388 fi 9389 fi 9390 chmod u+w . 2>&5 9391 $RM conftest* 9392 # SGI C++ compiler will create directory out/ii_files/ for 9393 # template instantiation 9394 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9395 $RM out/* && rmdir out 9396 cd .. 9397 $RM -r conftest 9398 $RM conftest* 9399 9400fi 9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9402$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9403 9404 9405 9406 9407hard_links="nottested" 9408if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9409 # do not overwrite the value of need_locks provided by the user 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9411$as_echo_n "checking if we can lock with hard links... " >&6; } 9412 hard_links=yes 9413 $RM conftest* 9414 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9415 touch conftest.a 9416 ln conftest.a conftest.b 2>&5 || hard_links=no 9417 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9419$as_echo "$hard_links" >&6; } 9420 if test "$hard_links" = no; then 9421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9422$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9423 need_locks=warn 9424 fi 9425else 9426 need_locks=no 9427fi 9428 9429 9430 9431 9432 9433 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9435$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9436 9437 runpath_var= 9438 allow_undefined_flag= 9439 always_export_symbols=no 9440 archive_cmds= 9441 archive_expsym_cmds= 9442 compiler_needs_object=no 9443 enable_shared_with_static_runtimes=no 9444 export_dynamic_flag_spec= 9445 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9446 hardcode_automatic=no 9447 hardcode_direct=no 9448 hardcode_direct_absolute=no 9449 hardcode_libdir_flag_spec= 9450 hardcode_libdir_separator= 9451 hardcode_minus_L=no 9452 hardcode_shlibpath_var=unsupported 9453 inherit_rpath=no 9454 link_all_deplibs=unknown 9455 module_cmds= 9456 module_expsym_cmds= 9457 old_archive_from_new_cmds= 9458 old_archive_from_expsyms_cmds= 9459 thread_safe_flag_spec= 9460 whole_archive_flag_spec= 9461 # include_expsyms should be a list of space-separated symbols to be *always* 9462 # included in the symbol list 9463 include_expsyms= 9464 # exclude_expsyms can be an extended regexp of symbols to exclude 9465 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9466 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9467 # as well as any symbol that contains `d'. 9468 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9469 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9470 # platforms (ab)use it in PIC code, but their linkers get confused if 9471 # the symbol is explicitly referenced. Since portable code cannot 9472 # rely on this symbol name, it's probably fine to never include it in 9473 # preloaded symbol tables. 9474 # Exclude shared library initialization/finalization symbols. 9475 extract_expsyms_cmds= 9476 9477 case $host_os in 9478 cygwin* | mingw* | pw32* | cegcc*) 9479 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9480 # When not using gcc, we currently assume that we are using 9481 # Microsoft Visual C++. 9482 if test "$GCC" != yes; then 9483 with_gnu_ld=no 9484 fi 9485 ;; 9486 interix*) 9487 # we just hope/assume this is gcc and not c89 (= MSVC++) 9488 with_gnu_ld=yes 9489 ;; 9490 openbsd*) 9491 with_gnu_ld=no 9492 ;; 9493 esac 9494 9495 ld_shlibs=yes 9496 9497 # On some targets, GNU ld is compatible enough with the native linker 9498 # that we're better off using the native interface for both. 9499 lt_use_gnu_ld_interface=no 9500 if test "$with_gnu_ld" = yes; then 9501 case $host_os in 9502 aix*) 9503 # The AIX port of GNU ld has always aspired to compatibility 9504 # with the native linker. However, as the warning in the GNU ld 9505 # block says, versions before 2.19.5* couldn't really create working 9506 # shared libraries, regardless of the interface used. 9507 case `$LD -v 2>&1` in 9508 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9509 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9510 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9511 *) 9512 lt_use_gnu_ld_interface=yes 9513 ;; 9514 esac 9515 ;; 9516 *) 9517 lt_use_gnu_ld_interface=yes 9518 ;; 9519 esac 9520 fi 9521 9522 if test "$lt_use_gnu_ld_interface" = yes; then 9523 # If archive_cmds runs LD, not CC, wlarc should be empty 9524 wlarc='${wl}' 9525 9526 # Set some defaults for GNU ld with shared library support. These 9527 # are reset later if shared libraries are not supported. Putting them 9528 # here allows them to be overridden if necessary. 9529 runpath_var=LD_RUN_PATH 9530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9531 export_dynamic_flag_spec='${wl}--export-dynamic' 9532 # ancient GNU ld didn't support --whole-archive et. al. 9533 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9534 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9535 else 9536 whole_archive_flag_spec= 9537 fi 9538 supports_anon_versioning=no 9539 case `$LD -v 2>&1` in 9540 *GNU\ gold*) supports_anon_versioning=yes ;; 9541 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9542 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9543 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9544 *\ 2.11.*) ;; # other 2.11 versions 9545 *) supports_anon_versioning=yes ;; 9546 esac 9547 9548 # See if GNU ld supports shared libraries. 9549 case $host_os in 9550 aix[3-9]*) 9551 # On AIX/PPC, the GNU linker is very broken 9552 if test "$host_cpu" != ia64; then 9553 ld_shlibs=no 9554 cat <<_LT_EOF 1>&2 9555 9556*** Warning: the GNU linker, at least up to release 2.19, is reported 9557*** to be unable to reliably create shared libraries on AIX. 9558*** Therefore, libtool is disabling shared libraries support. If you 9559*** really care for shared libraries, you may want to install binutils 9560*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9561*** You will then need to restart the configuration process. 9562 9563_LT_EOF 9564 fi 9565 ;; 9566 9567 amigaos*) 9568 case $host_cpu in 9569 powerpc) 9570 # see comment about AmigaOS4 .so support 9571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9572 archive_expsym_cmds='' 9573 ;; 9574 m68k) 9575 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)' 9576 hardcode_libdir_flag_spec='-L$libdir' 9577 hardcode_minus_L=yes 9578 ;; 9579 esac 9580 ;; 9581 9582 beos*) 9583 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9584 allow_undefined_flag=unsupported 9585 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9586 # support --undefined. This deserves some investigation. FIXME 9587 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9588 else 9589 ld_shlibs=no 9590 fi 9591 ;; 9592 9593 cygwin* | mingw* | pw32* | cegcc*) 9594 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9595 # as there is no search path for DLLs. 9596 hardcode_libdir_flag_spec='-L$libdir' 9597 export_dynamic_flag_spec='${wl}--export-all-symbols' 9598 allow_undefined_flag=unsupported 9599 always_export_symbols=no 9600 enable_shared_with_static_runtimes=yes 9601 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' 9602 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9603 9604 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9606 # If the export-symbols file already is a .def file (1st line 9607 # is EXPORTS), use it as is; otherwise, prepend... 9608 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9609 cp $export_symbols $output_objdir/$soname.def; 9610 else 9611 echo EXPORTS > $output_objdir/$soname.def; 9612 cat $export_symbols >> $output_objdir/$soname.def; 9613 fi~ 9614 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9615 else 9616 ld_shlibs=no 9617 fi 9618 ;; 9619 9620 haiku*) 9621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9622 link_all_deplibs=yes 9623 ;; 9624 9625 interix[3-9]*) 9626 hardcode_direct=no 9627 hardcode_shlibpath_var=no 9628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9629 export_dynamic_flag_spec='${wl}-E' 9630 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9631 # Instead, shared libraries are loaded at an image base (0x10000000 by 9632 # default) and relocated if they conflict, which is a slow very memory 9633 # consuming and fragmenting process. To avoid this, we pick a random, 9634 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9635 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9636 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9637 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' 9638 ;; 9639 9640 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9641 tmp_diet=no 9642 if test "$host_os" = linux-dietlibc; then 9643 case $cc_basename in 9644 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9645 esac 9646 fi 9647 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9648 && test "$tmp_diet" = no 9649 then 9650 tmp_addflag=' $pic_flag' 9651 tmp_sharedflag='-shared' 9652 case $cc_basename,$host_cpu in 9653 pgcc*) # Portland Group C compiler 9654 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' 9655 tmp_addflag=' $pic_flag' 9656 ;; 9657 pgf77* | pgf90* | pgf95* | pgfortran*) 9658 # Portland Group f77 and f90 compilers 9659 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' 9660 tmp_addflag=' $pic_flag -Mnomain' ;; 9661 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9662 tmp_addflag=' -i_dynamic' ;; 9663 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9664 tmp_addflag=' -i_dynamic -nofor_main' ;; 9665 ifc* | ifort*) # Intel Fortran compiler 9666 tmp_addflag=' -nofor_main' ;; 9667 lf95*) # Lahey Fortran 8.1 9668 whole_archive_flag_spec= 9669 tmp_sharedflag='--shared' ;; 9670 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9671 tmp_sharedflag='-qmkshrobj' 9672 tmp_addflag= ;; 9673 nvcc*) # Cuda Compiler Driver 2.2 9674 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' 9675 compiler_needs_object=yes 9676 ;; 9677 esac 9678 case `$CC -V 2>&1 | sed 5q` in 9679 *Sun\ C*) # Sun C 5.9 9680 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' 9681 compiler_needs_object=yes 9682 tmp_sharedflag='-G' ;; 9683 *Sun\ F*) # Sun Fortran 8.3 9684 tmp_sharedflag='-G' ;; 9685 esac 9686 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9687 9688 if test "x$supports_anon_versioning" = xyes; then 9689 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9690 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9691 echo "local: *; };" >> $output_objdir/$libname.ver~ 9692 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9693 fi 9694 9695 case $cc_basename in 9696 xlf* | bgf* | bgxlf* | mpixlf*) 9697 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9698 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9700 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9701 if test "x$supports_anon_versioning" = xyes; then 9702 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9703 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9704 echo "local: *; };" >> $output_objdir/$libname.ver~ 9705 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9706 fi 9707 ;; 9708 esac 9709 else 9710 ld_shlibs=no 9711 fi 9712 ;; 9713 9714 netbsd*) 9715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9716 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9717 wlarc= 9718 else 9719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9720 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9721 fi 9722 ;; 9723 9724 solaris*) 9725 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9726 ld_shlibs=no 9727 cat <<_LT_EOF 1>&2 9728 9729*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9730*** create shared libraries on Solaris systems. Therefore, libtool 9731*** is disabling shared libraries support. We urge you to upgrade GNU 9732*** binutils to release 2.9.1 or newer. Another option is to modify 9733*** your PATH or compiler configuration so that the native linker is 9734*** used, and then restart. 9735 9736_LT_EOF 9737 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9738 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9739 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9740 else 9741 ld_shlibs=no 9742 fi 9743 ;; 9744 9745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9746 case `$LD -v 2>&1` in 9747 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9748 ld_shlibs=no 9749 cat <<_LT_EOF 1>&2 9750 9751*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9752*** reliably create shared libraries on SCO systems. Therefore, libtool 9753*** is disabling shared libraries support. We urge you to upgrade GNU 9754*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9755*** your PATH or compiler configuration so that the native linker is 9756*** used, and then restart. 9757 9758_LT_EOF 9759 ;; 9760 *) 9761 # For security reasons, it is highly recommended that you always 9762 # use absolute paths for naming shared libraries, and exclude the 9763 # DT_RUNPATH tag from executables and libraries. But doing so 9764 # requires that you compile everything twice, which is a pain. 9765 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9769 else 9770 ld_shlibs=no 9771 fi 9772 ;; 9773 esac 9774 ;; 9775 9776 sunos4*) 9777 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9778 wlarc= 9779 hardcode_direct=yes 9780 hardcode_shlibpath_var=no 9781 ;; 9782 9783 *) 9784 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9786 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9787 else 9788 ld_shlibs=no 9789 fi 9790 ;; 9791 esac 9792 9793 if test "$ld_shlibs" = no; then 9794 runpath_var= 9795 hardcode_libdir_flag_spec= 9796 export_dynamic_flag_spec= 9797 whole_archive_flag_spec= 9798 fi 9799 else 9800 # PORTME fill in a description of your system's linker (not GNU ld) 9801 case $host_os in 9802 aix3*) 9803 allow_undefined_flag=unsupported 9804 always_export_symbols=yes 9805 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' 9806 # Note: this linker hardcodes the directories in LIBPATH if there 9807 # are no directories specified by -L. 9808 hardcode_minus_L=yes 9809 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9810 # Neither direct hardcoding nor static linking is supported with a 9811 # broken collect2. 9812 hardcode_direct=unsupported 9813 fi 9814 ;; 9815 9816 aix[4-9]*) 9817 if test "$host_cpu" = ia64; then 9818 # On IA64, the linker does run time linking by default, so we don't 9819 # have to do anything special. 9820 aix_use_runtimelinking=no 9821 exp_sym_flag='-Bexport' 9822 no_entry_flag="" 9823 else 9824 # If we're using GNU nm, then we don't want the "-C" option. 9825 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9826 # Also, AIX nm treats weak defined symbols like other global 9827 # defined symbols, whereas GNU nm marks them as "W". 9828 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9829 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9830 else 9831 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9832 fi 9833 aix_use_runtimelinking=no 9834 9835 # Test if we are trying to use run time linking or normal 9836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9837 # need to do runtime linking. 9838 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9839 for ld_flag in $LDFLAGS; do 9840 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9841 aix_use_runtimelinking=yes 9842 break 9843 fi 9844 done 9845 ;; 9846 esac 9847 9848 exp_sym_flag='-bexport' 9849 no_entry_flag='-bnoentry' 9850 fi 9851 9852 # When large executables or shared objects are built, AIX ld can 9853 # have problems creating the table of contents. If linking a library 9854 # or program results in "error TOC overflow" add -mminimal-toc to 9855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9857 9858 archive_cmds='' 9859 hardcode_direct=yes 9860 hardcode_direct_absolute=yes 9861 hardcode_libdir_separator=':' 9862 link_all_deplibs=yes 9863 file_list_spec='${wl}-f,' 9864 9865 if test "$GCC" = yes; then 9866 case $host_os in aix4.[012]|aix4.[012].*) 9867 # We only want to do this on AIX 4.2 and lower, the check 9868 # below for broken collect2 doesn't work under 4.3+ 9869 collect2name=`${CC} -print-prog-name=collect2` 9870 if test -f "$collect2name" && 9871 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9872 then 9873 # We have reworked collect2 9874 : 9875 else 9876 # We have old collect2 9877 hardcode_direct=unsupported 9878 # It fails to find uninstalled libraries when the uninstalled 9879 # path is not listed in the libpath. Setting hardcode_minus_L 9880 # to unsupported forces relinking 9881 hardcode_minus_L=yes 9882 hardcode_libdir_flag_spec='-L$libdir' 9883 hardcode_libdir_separator= 9884 fi 9885 ;; 9886 esac 9887 shared_flag='-shared' 9888 if test "$aix_use_runtimelinking" = yes; then 9889 shared_flag="$shared_flag "'${wl}-G' 9890 fi 9891 else 9892 # not using gcc 9893 if test "$host_cpu" = ia64; then 9894 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9895 # chokes on -Wl,-G. The following line is correct: 9896 shared_flag='-G' 9897 else 9898 if test "$aix_use_runtimelinking" = yes; then 9899 shared_flag='${wl}-G' 9900 else 9901 shared_flag='${wl}-bM:SRE' 9902 fi 9903 fi 9904 fi 9905 9906 export_dynamic_flag_spec='${wl}-bexpall' 9907 # It seems that -bexpall does not export symbols beginning with 9908 # underscore (_), so it is better to generate a list of symbols to export. 9909 always_export_symbols=yes 9910 if test "$aix_use_runtimelinking" = yes; then 9911 # Warning - without using the other runtime loading flags (-brtl), 9912 # -berok will link without error, but may produce a broken library. 9913 allow_undefined_flag='-berok' 9914 # Determine the default libpath from the value encoded in an 9915 # empty executable. 9916 if test "${lt_cv_aix_libpath+set}" = set; then 9917 aix_libpath=$lt_cv_aix_libpath 9918else 9919 if ${lt_cv_aix_libpath_+:} false; then : 9920 $as_echo_n "(cached) " >&6 9921else 9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9923/* end confdefs.h. */ 9924 9925int 9926main () 9927{ 9928 9929 ; 9930 return 0; 9931} 9932_ACEOF 9933if ac_fn_c_try_link "$LINENO"; then : 9934 9935 lt_aix_libpath_sed=' 9936 /Import File Strings/,/^$/ { 9937 /^0/ { 9938 s/^0 *\([^ ]*\) *$/\1/ 9939 p 9940 } 9941 }' 9942 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9943 # Check for a 64-bit object if we didn't find anything. 9944 if test -z "$lt_cv_aix_libpath_"; then 9945 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9946 fi 9947fi 9948rm -f core conftest.err conftest.$ac_objext \ 9949 conftest$ac_exeext conftest.$ac_ext 9950 if test -z "$lt_cv_aix_libpath_"; then 9951 lt_cv_aix_libpath_="/usr/lib:/lib" 9952 fi 9953 9954fi 9955 9956 aix_libpath=$lt_cv_aix_libpath_ 9957fi 9958 9959 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9960 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9961 else 9962 if test "$host_cpu" = ia64; then 9963 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9964 allow_undefined_flag="-z nodefs" 9965 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" 9966 else 9967 # Determine the default libpath from the value encoded in an 9968 # empty executable. 9969 if test "${lt_cv_aix_libpath+set}" = set; then 9970 aix_libpath=$lt_cv_aix_libpath 9971else 9972 if ${lt_cv_aix_libpath_+:} false; then : 9973 $as_echo_n "(cached) " >&6 9974else 9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9976/* end confdefs.h. */ 9977 9978int 9979main () 9980{ 9981 9982 ; 9983 return 0; 9984} 9985_ACEOF 9986if ac_fn_c_try_link "$LINENO"; then : 9987 9988 lt_aix_libpath_sed=' 9989 /Import File Strings/,/^$/ { 9990 /^0/ { 9991 s/^0 *\([^ ]*\) *$/\1/ 9992 p 9993 } 9994 }' 9995 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9996 # Check for a 64-bit object if we didn't find anything. 9997 if test -z "$lt_cv_aix_libpath_"; then 9998 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9999 fi 10000fi 10001rm -f core conftest.err conftest.$ac_objext \ 10002 conftest$ac_exeext conftest.$ac_ext 10003 if test -z "$lt_cv_aix_libpath_"; then 10004 lt_cv_aix_libpath_="/usr/lib:/lib" 10005 fi 10006 10007fi 10008 10009 aix_libpath=$lt_cv_aix_libpath_ 10010fi 10011 10012 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10013 # Warning - without using the other run time loading flags, 10014 # -berok will link without error, but may produce a broken library. 10015 no_undefined_flag=' ${wl}-bernotok' 10016 allow_undefined_flag=' ${wl}-berok' 10017 if test "$with_gnu_ld" = yes; then 10018 # We only use this code for GNU lds that support --whole-archive. 10019 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10020 else 10021 # Exported symbols can be pulled into shared objects from archives 10022 whole_archive_flag_spec='$convenience' 10023 fi 10024 archive_cmds_need_lc=yes 10025 # This is similar to how AIX traditionally builds its shared libraries. 10026 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10027 fi 10028 fi 10029 ;; 10030 10031 amigaos*) 10032 case $host_cpu in 10033 powerpc) 10034 # see comment about AmigaOS4 .so support 10035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10036 archive_expsym_cmds='' 10037 ;; 10038 m68k) 10039 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)' 10040 hardcode_libdir_flag_spec='-L$libdir' 10041 hardcode_minus_L=yes 10042 ;; 10043 esac 10044 ;; 10045 10046 bsdi[45]*) 10047 export_dynamic_flag_spec=-rdynamic 10048 ;; 10049 10050 cygwin* | mingw* | pw32* | cegcc*) 10051 # When not using gcc, we currently assume that we are using 10052 # Microsoft Visual C++. 10053 # hardcode_libdir_flag_spec is actually meaningless, as there is 10054 # no search path for DLLs. 10055 case $cc_basename in 10056 cl*) 10057 # Native MSVC 10058 hardcode_libdir_flag_spec=' ' 10059 allow_undefined_flag=unsupported 10060 always_export_symbols=yes 10061 file_list_spec='@' 10062 # Tell ltmain to make .lib files, not .a files. 10063 libext=lib 10064 # Tell ltmain to make .dll files, not .so files. 10065 shrext_cmds=".dll" 10066 # FIXME: Setting linknames here is a bad hack. 10067 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10068 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10069 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10070 else 10071 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10072 fi~ 10073 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10074 linknames=' 10075 # The linker will not automatically build a static lib if we build a DLL. 10076 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10077 enable_shared_with_static_runtimes=yes 10078 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10079 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10080 # Don't use ranlib 10081 old_postinstall_cmds='chmod 644 $oldlib' 10082 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10083 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10084 case $lt_outputfile in 10085 *.exe|*.EXE) ;; 10086 *) 10087 lt_outputfile="$lt_outputfile.exe" 10088 lt_tool_outputfile="$lt_tool_outputfile.exe" 10089 ;; 10090 esac~ 10091 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10092 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10093 $RM "$lt_outputfile.manifest"; 10094 fi' 10095 ;; 10096 *) 10097 # Assume MSVC wrapper 10098 hardcode_libdir_flag_spec=' ' 10099 allow_undefined_flag=unsupported 10100 # Tell ltmain to make .lib files, not .a files. 10101 libext=lib 10102 # Tell ltmain to make .dll files, not .so files. 10103 shrext_cmds=".dll" 10104 # FIXME: Setting linknames here is a bad hack. 10105 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10106 # The linker will automatically build a .lib file if we build a DLL. 10107 old_archive_from_new_cmds='true' 10108 # FIXME: Should let the user specify the lib program. 10109 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10110 enable_shared_with_static_runtimes=yes 10111 ;; 10112 esac 10113 ;; 10114 10115 darwin* | rhapsody*) 10116 10117 10118 archive_cmds_need_lc=no 10119 hardcode_direct=no 10120 hardcode_automatic=yes 10121 hardcode_shlibpath_var=unsupported 10122 if test "$lt_cv_ld_force_load" = "yes"; then 10123 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\"`' 10124 10125 else 10126 whole_archive_flag_spec='' 10127 fi 10128 link_all_deplibs=yes 10129 allow_undefined_flag="$_lt_dar_allow_undefined" 10130 case $cc_basename in 10131 ifort*) _lt_dar_can_shared=yes ;; 10132 *) _lt_dar_can_shared=$GCC ;; 10133 esac 10134 if test "$_lt_dar_can_shared" = "yes"; then 10135 output_verbose_link_cmd=func_echo_all 10136 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10137 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10138 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}" 10139 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}" 10140 10141 else 10142 ld_shlibs=no 10143 fi 10144 10145 ;; 10146 10147 dgux*) 10148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10149 hardcode_libdir_flag_spec='-L$libdir' 10150 hardcode_shlibpath_var=no 10151 ;; 10152 10153 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10154 # support. Future versions do this automatically, but an explicit c++rt0.o 10155 # does not break anything, and helps significantly (at the cost of a little 10156 # extra space). 10157 freebsd2.2*) 10158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10159 hardcode_libdir_flag_spec='-R$libdir' 10160 hardcode_direct=yes 10161 hardcode_shlibpath_var=no 10162 ;; 10163 10164 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10165 freebsd2.*) 10166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10167 hardcode_direct=yes 10168 hardcode_minus_L=yes 10169 hardcode_shlibpath_var=no 10170 ;; 10171 10172 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10173 freebsd* | dragonfly*) 10174 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10175 hardcode_libdir_flag_spec='-R$libdir' 10176 hardcode_direct=yes 10177 hardcode_shlibpath_var=no 10178 ;; 10179 10180 hpux9*) 10181 if test "$GCC" = yes; then 10182 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10183 else 10184 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10185 fi 10186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10187 hardcode_libdir_separator=: 10188 hardcode_direct=yes 10189 10190 # hardcode_minus_L: Not really in the search PATH, 10191 # but as the default location of the library. 10192 hardcode_minus_L=yes 10193 export_dynamic_flag_spec='${wl}-E' 10194 ;; 10195 10196 hpux10*) 10197 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10198 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10199 else 10200 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10201 fi 10202 if test "$with_gnu_ld" = no; then 10203 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10204 hardcode_libdir_separator=: 10205 hardcode_direct=yes 10206 hardcode_direct_absolute=yes 10207 export_dynamic_flag_spec='${wl}-E' 10208 # hardcode_minus_L: Not really in the search PATH, 10209 # but as the default location of the library. 10210 hardcode_minus_L=yes 10211 fi 10212 ;; 10213 10214 hpux11*) 10215 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10216 case $host_cpu in 10217 hppa*64*) 10218 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10219 ;; 10220 ia64*) 10221 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10222 ;; 10223 *) 10224 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10225 ;; 10226 esac 10227 else 10228 case $host_cpu in 10229 hppa*64*) 10230 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10231 ;; 10232 ia64*) 10233 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10234 ;; 10235 *) 10236 10237 # Older versions of the 11.00 compiler do not understand -b yet 10238 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10240$as_echo_n "checking if $CC understands -b... " >&6; } 10241if ${lt_cv_prog_compiler__b+:} false; then : 10242 $as_echo_n "(cached) " >&6 10243else 10244 lt_cv_prog_compiler__b=no 10245 save_LDFLAGS="$LDFLAGS" 10246 LDFLAGS="$LDFLAGS -b" 10247 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10248 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10249 # The linker can only warn and ignore the option if not recognized 10250 # So say no if there are warnings 10251 if test -s conftest.err; then 10252 # Append any errors to the config.log. 10253 cat conftest.err 1>&5 10254 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10256 if diff conftest.exp conftest.er2 >/dev/null; then 10257 lt_cv_prog_compiler__b=yes 10258 fi 10259 else 10260 lt_cv_prog_compiler__b=yes 10261 fi 10262 fi 10263 $RM -r conftest* 10264 LDFLAGS="$save_LDFLAGS" 10265 10266fi 10267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10268$as_echo "$lt_cv_prog_compiler__b" >&6; } 10269 10270if test x"$lt_cv_prog_compiler__b" = xyes; then 10271 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10272else 10273 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10274fi 10275 10276 ;; 10277 esac 10278 fi 10279 if test "$with_gnu_ld" = no; then 10280 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10281 hardcode_libdir_separator=: 10282 10283 case $host_cpu in 10284 hppa*64*|ia64*) 10285 hardcode_direct=no 10286 hardcode_shlibpath_var=no 10287 ;; 10288 *) 10289 hardcode_direct=yes 10290 hardcode_direct_absolute=yes 10291 export_dynamic_flag_spec='${wl}-E' 10292 10293 # hardcode_minus_L: Not really in the search PATH, 10294 # but as the default location of the library. 10295 hardcode_minus_L=yes 10296 ;; 10297 esac 10298 fi 10299 ;; 10300 10301 irix5* | irix6* | nonstopux*) 10302 if test "$GCC" = yes; then 10303 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' 10304 # Try to use the -exported_symbol ld option, if it does not 10305 # work, assume that -exports_file does not work either and 10306 # implicitly export all symbols. 10307 # This should be the same for all languages, so no per-tag cache variable. 10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10309$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10310if ${lt_cv_irix_exported_symbol+:} false; then : 10311 $as_echo_n "(cached) " >&6 10312else 10313 save_LDFLAGS="$LDFLAGS" 10314 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10316/* end confdefs.h. */ 10317int foo (void) { return 0; } 10318_ACEOF 10319if ac_fn_c_try_link "$LINENO"; then : 10320 lt_cv_irix_exported_symbol=yes 10321else 10322 lt_cv_irix_exported_symbol=no 10323fi 10324rm -f core conftest.err conftest.$ac_objext \ 10325 conftest$ac_exeext conftest.$ac_ext 10326 LDFLAGS="$save_LDFLAGS" 10327fi 10328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10329$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10330 if test "$lt_cv_irix_exported_symbol" = yes; then 10331 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' 10332 fi 10333 else 10334 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' 10335 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' 10336 fi 10337 archive_cmds_need_lc='no' 10338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10339 hardcode_libdir_separator=: 10340 inherit_rpath=yes 10341 link_all_deplibs=yes 10342 ;; 10343 10344 netbsd*) 10345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10347 else 10348 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10349 fi 10350 hardcode_libdir_flag_spec='-R$libdir' 10351 hardcode_direct=yes 10352 hardcode_shlibpath_var=no 10353 ;; 10354 10355 newsos6) 10356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10357 hardcode_direct=yes 10358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10359 hardcode_libdir_separator=: 10360 hardcode_shlibpath_var=no 10361 ;; 10362 10363 *nto* | *qnx*) 10364 ;; 10365 10366 openbsd*) 10367 if test -f /usr/libexec/ld.so; then 10368 hardcode_direct=yes 10369 hardcode_shlibpath_var=no 10370 hardcode_direct_absolute=yes 10371 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10373 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10374 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10375 export_dynamic_flag_spec='${wl}-E' 10376 else 10377 case $host_os in 10378 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10380 hardcode_libdir_flag_spec='-R$libdir' 10381 ;; 10382 *) 10383 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10384 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10385 ;; 10386 esac 10387 fi 10388 else 10389 ld_shlibs=no 10390 fi 10391 ;; 10392 10393 os2*) 10394 hardcode_libdir_flag_spec='-L$libdir' 10395 hardcode_minus_L=yes 10396 allow_undefined_flag=unsupported 10397 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10398 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10399 ;; 10400 10401 osf3*) 10402 if test "$GCC" = yes; then 10403 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10404 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' 10405 else 10406 allow_undefined_flag=' -expect_unresolved \*' 10407 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' 10408 fi 10409 archive_cmds_need_lc='no' 10410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10411 hardcode_libdir_separator=: 10412 ;; 10413 10414 osf4* | osf5*) # as osf3* with the addition of -msym flag 10415 if test "$GCC" = yes; then 10416 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10417 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' 10418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10419 else 10420 allow_undefined_flag=' -expect_unresolved \*' 10421 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' 10422 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~ 10423 $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' 10424 10425 # Both c and cxx compiler support -rpath directly 10426 hardcode_libdir_flag_spec='-rpath $libdir' 10427 fi 10428 archive_cmds_need_lc='no' 10429 hardcode_libdir_separator=: 10430 ;; 10431 10432 solaris*) 10433 no_undefined_flag=' -z defs' 10434 if test "$GCC" = yes; then 10435 wlarc='${wl}' 10436 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10437 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10438 $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' 10439 else 10440 case `$CC -V 2>&1` in 10441 *"Compilers 5.0"*) 10442 wlarc='' 10443 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10444 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10445 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10446 ;; 10447 *) 10448 wlarc='${wl}' 10449 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10450 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10451 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10452 ;; 10453 esac 10454 fi 10455 hardcode_libdir_flag_spec='-R$libdir' 10456 hardcode_shlibpath_var=no 10457 case $host_os in 10458 solaris2.[0-5] | solaris2.[0-5].*) ;; 10459 *) 10460 # The compiler driver will combine and reorder linker options, 10461 # but understands `-z linker_flag'. GCC discards it without `$wl', 10462 # but is careful enough not to reorder. 10463 # Supported since Solaris 2.6 (maybe 2.5.1?) 10464 if test "$GCC" = yes; then 10465 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10466 else 10467 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10468 fi 10469 ;; 10470 esac 10471 link_all_deplibs=yes 10472 ;; 10473 10474 sunos4*) 10475 if test "x$host_vendor" = xsequent; then 10476 # Use $CC to link under sequent, because it throws in some extra .o 10477 # files that make .init and .fini sections work. 10478 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10479 else 10480 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10481 fi 10482 hardcode_libdir_flag_spec='-L$libdir' 10483 hardcode_direct=yes 10484 hardcode_minus_L=yes 10485 hardcode_shlibpath_var=no 10486 ;; 10487 10488 sysv4) 10489 case $host_vendor in 10490 sni) 10491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10492 hardcode_direct=yes # is this really true??? 10493 ;; 10494 siemens) 10495 ## LD is ld it makes a PLAMLIB 10496 ## CC just makes a GrossModule. 10497 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10498 reload_cmds='$CC -r -o $output$reload_objs' 10499 hardcode_direct=no 10500 ;; 10501 motorola) 10502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10503 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10504 ;; 10505 esac 10506 runpath_var='LD_RUN_PATH' 10507 hardcode_shlibpath_var=no 10508 ;; 10509 10510 sysv4.3*) 10511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10512 hardcode_shlibpath_var=no 10513 export_dynamic_flag_spec='-Bexport' 10514 ;; 10515 10516 sysv4*MP*) 10517 if test -d /usr/nec; then 10518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10519 hardcode_shlibpath_var=no 10520 runpath_var=LD_RUN_PATH 10521 hardcode_runpath_var=yes 10522 ld_shlibs=yes 10523 fi 10524 ;; 10525 10526 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10527 no_undefined_flag='${wl}-z,text' 10528 archive_cmds_need_lc=no 10529 hardcode_shlibpath_var=no 10530 runpath_var='LD_RUN_PATH' 10531 10532 if test "$GCC" = yes; then 10533 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10534 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10535 else 10536 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10537 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10538 fi 10539 ;; 10540 10541 sysv5* | sco3.2v5* | sco5v6*) 10542 # Note: We can NOT use -z defs as we might desire, because we do not 10543 # link with -lc, and that would cause any symbols used from libc to 10544 # always be unresolved, which means just about no library would 10545 # ever link correctly. If we're not using GNU ld we use -z text 10546 # though, which does catch some bad symbols but isn't as heavy-handed 10547 # as -z defs. 10548 no_undefined_flag='${wl}-z,text' 10549 allow_undefined_flag='${wl}-z,nodefs' 10550 archive_cmds_need_lc=no 10551 hardcode_shlibpath_var=no 10552 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10553 hardcode_libdir_separator=':' 10554 link_all_deplibs=yes 10555 export_dynamic_flag_spec='${wl}-Bexport' 10556 runpath_var='LD_RUN_PATH' 10557 10558 if test "$GCC" = yes; then 10559 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10560 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10561 else 10562 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10563 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10564 fi 10565 ;; 10566 10567 uts4*) 10568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10569 hardcode_libdir_flag_spec='-L$libdir' 10570 hardcode_shlibpath_var=no 10571 ;; 10572 10573 *) 10574 ld_shlibs=no 10575 ;; 10576 esac 10577 10578 if test x$host_vendor = xsni; then 10579 case $host in 10580 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10581 export_dynamic_flag_spec='${wl}-Blargedynsym' 10582 ;; 10583 esac 10584 fi 10585 fi 10586 10587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10588$as_echo "$ld_shlibs" >&6; } 10589test "$ld_shlibs" = no && can_build_shared=no 10590 10591with_gnu_ld=$with_gnu_ld 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607# 10608# Do we need to explicitly link libc? 10609# 10610case "x$archive_cmds_need_lc" in 10611x|xyes) 10612 # Assume -lc should be added 10613 archive_cmds_need_lc=yes 10614 10615 if test "$enable_shared" = yes && test "$GCC" = yes; then 10616 case $archive_cmds in 10617 *'~'*) 10618 # FIXME: we may have to deal with multi-command sequences. 10619 ;; 10620 '$CC '*) 10621 # Test whether the compiler implicitly links with -lc since on some 10622 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10623 # to ld, don't add -lc before -lgcc. 10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10625$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10626if ${lt_cv_archive_cmds_need_lc+:} false; then : 10627 $as_echo_n "(cached) " >&6 10628else 10629 $RM conftest* 10630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10631 10632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10633 (eval $ac_compile) 2>&5 10634 ac_status=$? 10635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10636 test $ac_status = 0; } 2>conftest.err; then 10637 soname=conftest 10638 lib=conftest 10639 libobjs=conftest.$ac_objext 10640 deplibs= 10641 wl=$lt_prog_compiler_wl 10642 pic_flag=$lt_prog_compiler_pic 10643 compiler_flags=-v 10644 linker_flags=-v 10645 verstring= 10646 output_objdir=. 10647 libname=conftest 10648 lt_save_allow_undefined_flag=$allow_undefined_flag 10649 allow_undefined_flag= 10650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10651 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10652 ac_status=$? 10653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10654 test $ac_status = 0; } 10655 then 10656 lt_cv_archive_cmds_need_lc=no 10657 else 10658 lt_cv_archive_cmds_need_lc=yes 10659 fi 10660 allow_undefined_flag=$lt_save_allow_undefined_flag 10661 else 10662 cat conftest.err 1>&5 10663 fi 10664 $RM conftest* 10665 10666fi 10667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10668$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10669 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10670 ;; 10671 esac 10672 fi 10673 ;; 10674esac 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10828$as_echo_n "checking dynamic linker characteristics... " >&6; } 10829 10830if test "$GCC" = yes; then 10831 case $host_os in 10832 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10833 *) lt_awk_arg="/^libraries:/" ;; 10834 esac 10835 case $host_os in 10836 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10837 *) lt_sed_strip_eq="s,=/,/,g" ;; 10838 esac 10839 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10840 case $lt_search_path_spec in 10841 *\;*) 10842 # if the path contains ";" then we assume it to be the separator 10843 # otherwise default to the standard path separator (i.e. ":") - it is 10844 # assumed that no part of a normal pathname contains ";" but that should 10845 # okay in the real world where ";" in dirpaths is itself problematic. 10846 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10847 ;; 10848 *) 10849 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10850 ;; 10851 esac 10852 # Ok, now we have the path, separated by spaces, we can step through it 10853 # and add multilib dir if necessary. 10854 lt_tmp_lt_search_path_spec= 10855 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10856 for lt_sys_path in $lt_search_path_spec; do 10857 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10858 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10859 else 10860 test -d "$lt_sys_path" && \ 10861 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10862 fi 10863 done 10864 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10865BEGIN {RS=" "; FS="/|\n";} { 10866 lt_foo=""; 10867 lt_count=0; 10868 for (lt_i = NF; lt_i > 0; lt_i--) { 10869 if ($lt_i != "" && $lt_i != ".") { 10870 if ($lt_i == "..") { 10871 lt_count++; 10872 } else { 10873 if (lt_count == 0) { 10874 lt_foo="/" $lt_i lt_foo; 10875 } else { 10876 lt_count--; 10877 } 10878 } 10879 } 10880 } 10881 if (lt_foo != "") { lt_freq[lt_foo]++; } 10882 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10883}'` 10884 # AWK program above erroneously prepends '/' to C:/dos/paths 10885 # for these hosts. 10886 case $host_os in 10887 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10888 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10889 esac 10890 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10891else 10892 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10893fi 10894library_names_spec= 10895libname_spec='lib$name' 10896soname_spec= 10897shrext_cmds=".so" 10898postinstall_cmds= 10899postuninstall_cmds= 10900finish_cmds= 10901finish_eval= 10902shlibpath_var= 10903shlibpath_overrides_runpath=unknown 10904version_type=none 10905dynamic_linker="$host_os ld.so" 10906sys_lib_dlsearch_path_spec="/lib /usr/lib" 10907need_lib_prefix=unknown 10908hardcode_into_libs=no 10909 10910# when you set need_version to no, make sure it does not cause -set_version 10911# flags to be left without arguments 10912need_version=unknown 10913 10914case $host_os in 10915aix3*) 10916 version_type=linux # correct to gnu/linux during the next big refactor 10917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10918 shlibpath_var=LIBPATH 10919 10920 # AIX 3 has no versioning support, so we append a major version to the name. 10921 soname_spec='${libname}${release}${shared_ext}$major' 10922 ;; 10923 10924aix[4-9]*) 10925 version_type=linux # correct to gnu/linux during the next big refactor 10926 need_lib_prefix=no 10927 need_version=no 10928 hardcode_into_libs=yes 10929 if test "$host_cpu" = ia64; then 10930 # AIX 5 supports IA64 10931 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10932 shlibpath_var=LD_LIBRARY_PATH 10933 else 10934 # With GCC up to 2.95.x, collect2 would create an import file 10935 # for dependence libraries. The import file would start with 10936 # the line `#! .'. This would cause the generated library to 10937 # depend on `.', always an invalid library. This was fixed in 10938 # development snapshots of GCC prior to 3.0. 10939 case $host_os in 10940 aix4 | aix4.[01] | aix4.[01].*) 10941 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10942 echo ' yes ' 10943 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10944 : 10945 else 10946 can_build_shared=no 10947 fi 10948 ;; 10949 esac 10950 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10951 # soname into executable. Probably we can add versioning support to 10952 # collect2, so additional links can be useful in future. 10953 if test "$aix_use_runtimelinking" = yes; then 10954 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10955 # instead of lib<name>.a to let people know that these are not 10956 # typical AIX shared libraries. 10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10958 else 10959 # We preserve .a as extension for shared libraries through AIX4.2 10960 # and later when we are not doing run time linking. 10961 library_names_spec='${libname}${release}.a $libname.a' 10962 soname_spec='${libname}${release}${shared_ext}$major' 10963 fi 10964 shlibpath_var=LIBPATH 10965 fi 10966 ;; 10967 10968amigaos*) 10969 case $host_cpu in 10970 powerpc) 10971 # Since July 2007 AmigaOS4 officially supports .so libraries. 10972 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10974 ;; 10975 m68k) 10976 library_names_spec='$libname.ixlibrary $libname.a' 10977 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10978 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10979 ;; 10980 esac 10981 ;; 10982 10983beos*) 10984 library_names_spec='${libname}${shared_ext}' 10985 dynamic_linker="$host_os ld.so" 10986 shlibpath_var=LIBRARY_PATH 10987 ;; 10988 10989bsdi[45]*) 10990 version_type=linux # correct to gnu/linux during the next big refactor 10991 need_version=no 10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10993 soname_spec='${libname}${release}${shared_ext}$major' 10994 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10995 shlibpath_var=LD_LIBRARY_PATH 10996 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10997 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10998 # the default ld.so.conf also contains /usr/contrib/lib and 10999 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11000 # libtool to hard-code these into programs 11001 ;; 11002 11003cygwin* | mingw* | pw32* | cegcc*) 11004 version_type=windows 11005 shrext_cmds=".dll" 11006 need_version=no 11007 need_lib_prefix=no 11008 11009 case $GCC,$cc_basename in 11010 yes,*) 11011 # gcc 11012 library_names_spec='$libname.dll.a' 11013 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11014 postinstall_cmds='base_file=`basename \${file}`~ 11015 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11016 dldir=$destdir/`dirname \$dlpath`~ 11017 test -d \$dldir || mkdir -p \$dldir~ 11018 $install_prog $dir/$dlname \$dldir/$dlname~ 11019 chmod a+x \$dldir/$dlname~ 11020 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11021 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11022 fi' 11023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11024 dlpath=$dir/\$dldll~ 11025 $RM \$dlpath' 11026 shlibpath_overrides_runpath=yes 11027 11028 case $host_os in 11029 cygwin*) 11030 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11032 11033 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11034 ;; 11035 mingw* | cegcc*) 11036 # MinGW DLLs use traditional 'lib' prefix 11037 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11038 ;; 11039 pw32*) 11040 # pw32 DLLs use 'pw' prefix rather than 'lib' 11041 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11042 ;; 11043 esac 11044 dynamic_linker='Win32 ld.exe' 11045 ;; 11046 11047 *,cl*) 11048 # Native MSVC 11049 libname_spec='$name' 11050 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11051 library_names_spec='${libname}.dll.lib' 11052 11053 case $build_os in 11054 mingw*) 11055 sys_lib_search_path_spec= 11056 lt_save_ifs=$IFS 11057 IFS=';' 11058 for lt_path in $LIB 11059 do 11060 IFS=$lt_save_ifs 11061 # Let DOS variable expansion print the short 8.3 style file name. 11062 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11063 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11064 done 11065 IFS=$lt_save_ifs 11066 # Convert to MSYS style. 11067 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11068 ;; 11069 cygwin*) 11070 # Convert to unix form, then to dos form, then back to unix form 11071 # but this time dos style (no spaces!) so that the unix form looks 11072 # like /cygdrive/c/PROGRA~1:/cygdr... 11073 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11074 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11075 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11076 ;; 11077 *) 11078 sys_lib_search_path_spec="$LIB" 11079 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11080 # It is most probably a Windows format PATH. 11081 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11082 else 11083 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11084 fi 11085 # FIXME: find the short name or the path components, as spaces are 11086 # common. (e.g. "Program Files" -> "PROGRA~1") 11087 ;; 11088 esac 11089 11090 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11091 postinstall_cmds='base_file=`basename \${file}`~ 11092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11093 dldir=$destdir/`dirname \$dlpath`~ 11094 test -d \$dldir || mkdir -p \$dldir~ 11095 $install_prog $dir/$dlname \$dldir/$dlname' 11096 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11097 dlpath=$dir/\$dldll~ 11098 $RM \$dlpath' 11099 shlibpath_overrides_runpath=yes 11100 dynamic_linker='Win32 link.exe' 11101 ;; 11102 11103 *) 11104 # Assume MSVC wrapper 11105 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11106 dynamic_linker='Win32 ld.exe' 11107 ;; 11108 esac 11109 # FIXME: first we should search . and the directory the executable is in 11110 shlibpath_var=PATH 11111 ;; 11112 11113darwin* | rhapsody*) 11114 dynamic_linker="$host_os dyld" 11115 version_type=darwin 11116 need_lib_prefix=no 11117 need_version=no 11118 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11119 soname_spec='${libname}${release}${major}$shared_ext' 11120 shlibpath_overrides_runpath=yes 11121 shlibpath_var=DYLD_LIBRARY_PATH 11122 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11123 11124 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11125 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11126 ;; 11127 11128dgux*) 11129 version_type=linux # correct to gnu/linux during the next big refactor 11130 need_lib_prefix=no 11131 need_version=no 11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11133 soname_spec='${libname}${release}${shared_ext}$major' 11134 shlibpath_var=LD_LIBRARY_PATH 11135 ;; 11136 11137freebsd* | dragonfly*) 11138 # DragonFly does not have aout. When/if they implement a new 11139 # versioning mechanism, adjust this. 11140 if test -x /usr/bin/objformat; then 11141 objformat=`/usr/bin/objformat` 11142 else 11143 case $host_os in 11144 freebsd[23].*) objformat=aout ;; 11145 *) objformat=elf ;; 11146 esac 11147 fi 11148 version_type=freebsd-$objformat 11149 case $version_type in 11150 freebsd-elf*) 11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11152 need_version=no 11153 need_lib_prefix=no 11154 ;; 11155 freebsd-*) 11156 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11157 need_version=yes 11158 ;; 11159 esac 11160 shlibpath_var=LD_LIBRARY_PATH 11161 case $host_os in 11162 freebsd2.*) 11163 shlibpath_overrides_runpath=yes 11164 ;; 11165 freebsd3.[01]* | freebsdelf3.[01]*) 11166 shlibpath_overrides_runpath=yes 11167 hardcode_into_libs=yes 11168 ;; 11169 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11170 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11171 shlibpath_overrides_runpath=no 11172 hardcode_into_libs=yes 11173 ;; 11174 *) # from 4.6 on, and DragonFly 11175 shlibpath_overrides_runpath=yes 11176 hardcode_into_libs=yes 11177 ;; 11178 esac 11179 ;; 11180 11181gnu*) 11182 version_type=linux # correct to gnu/linux during the next big refactor 11183 need_lib_prefix=no 11184 need_version=no 11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11186 soname_spec='${libname}${release}${shared_ext}$major' 11187 shlibpath_var=LD_LIBRARY_PATH 11188 shlibpath_overrides_runpath=no 11189 hardcode_into_libs=yes 11190 ;; 11191 11192haiku*) 11193 version_type=linux # correct to gnu/linux during the next big refactor 11194 need_lib_prefix=no 11195 need_version=no 11196 dynamic_linker="$host_os runtime_loader" 11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11198 soname_spec='${libname}${release}${shared_ext}$major' 11199 shlibpath_var=LIBRARY_PATH 11200 shlibpath_overrides_runpath=yes 11201 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11202 hardcode_into_libs=yes 11203 ;; 11204 11205hpux9* | hpux10* | hpux11*) 11206 # Give a soname corresponding to the major version so that dld.sl refuses to 11207 # link against other versions. 11208 version_type=sunos 11209 need_lib_prefix=no 11210 need_version=no 11211 case $host_cpu in 11212 ia64*) 11213 shrext_cmds='.so' 11214 hardcode_into_libs=yes 11215 dynamic_linker="$host_os dld.so" 11216 shlibpath_var=LD_LIBRARY_PATH 11217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11219 soname_spec='${libname}${release}${shared_ext}$major' 11220 if test "X$HPUX_IA64_MODE" = X32; then 11221 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11222 else 11223 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11224 fi 11225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11226 ;; 11227 hppa*64*) 11228 shrext_cmds='.sl' 11229 hardcode_into_libs=yes 11230 dynamic_linker="$host_os dld.sl" 11231 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11234 soname_spec='${libname}${release}${shared_ext}$major' 11235 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11237 ;; 11238 *) 11239 shrext_cmds='.sl' 11240 dynamic_linker="$host_os dld.sl" 11241 shlibpath_var=SHLIB_PATH 11242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11244 soname_spec='${libname}${release}${shared_ext}$major' 11245 ;; 11246 esac 11247 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11248 postinstall_cmds='chmod 555 $lib' 11249 # or fails outright, so override atomically: 11250 install_override_mode=555 11251 ;; 11252 11253interix[3-9]*) 11254 version_type=linux # correct to gnu/linux during the next big refactor 11255 need_lib_prefix=no 11256 need_version=no 11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11258 soname_spec='${libname}${release}${shared_ext}$major' 11259 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11260 shlibpath_var=LD_LIBRARY_PATH 11261 shlibpath_overrides_runpath=no 11262 hardcode_into_libs=yes 11263 ;; 11264 11265irix5* | irix6* | nonstopux*) 11266 case $host_os in 11267 nonstopux*) version_type=nonstopux ;; 11268 *) 11269 if test "$lt_cv_prog_gnu_ld" = yes; then 11270 version_type=linux # correct to gnu/linux during the next big refactor 11271 else 11272 version_type=irix 11273 fi ;; 11274 esac 11275 need_lib_prefix=no 11276 need_version=no 11277 soname_spec='${libname}${release}${shared_ext}$major' 11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11279 case $host_os in 11280 irix5* | nonstopux*) 11281 libsuff= shlibsuff= 11282 ;; 11283 *) 11284 case $LD in # libtool.m4 will add one of these switches to LD 11285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11286 libsuff= shlibsuff= libmagic=32-bit;; 11287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11288 libsuff=32 shlibsuff=N32 libmagic=N32;; 11289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11290 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11291 *) libsuff= shlibsuff= libmagic=never-match;; 11292 esac 11293 ;; 11294 esac 11295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11296 shlibpath_overrides_runpath=no 11297 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11298 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11299 hardcode_into_libs=yes 11300 ;; 11301 11302# No shared lib support for Linux oldld, aout, or coff. 11303linux*oldld* | linux*aout* | linux*coff*) 11304 dynamic_linker=no 11305 ;; 11306 11307# This must be glibc/ELF. 11308linux* | k*bsd*-gnu | kopensolaris*-gnu) 11309 version_type=linux # correct to gnu/linux during the next big refactor 11310 need_lib_prefix=no 11311 need_version=no 11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11313 soname_spec='${libname}${release}${shared_ext}$major' 11314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11315 shlibpath_var=LD_LIBRARY_PATH 11316 shlibpath_overrides_runpath=no 11317 11318 # Some binutils ld are patched to set DT_RUNPATH 11319 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11320 $as_echo_n "(cached) " >&6 11321else 11322 lt_cv_shlibpath_overrides_runpath=no 11323 save_LDFLAGS=$LDFLAGS 11324 save_libdir=$libdir 11325 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11326 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11328/* end confdefs.h. */ 11329 11330int 11331main () 11332{ 11333 11334 ; 11335 return 0; 11336} 11337_ACEOF 11338if ac_fn_c_try_link "$LINENO"; then : 11339 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11340 lt_cv_shlibpath_overrides_runpath=yes 11341fi 11342fi 11343rm -f core conftest.err conftest.$ac_objext \ 11344 conftest$ac_exeext conftest.$ac_ext 11345 LDFLAGS=$save_LDFLAGS 11346 libdir=$save_libdir 11347 11348fi 11349 11350 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11351 11352 # This implies no fast_install, which is unacceptable. 11353 # Some rework will be needed to allow for fast_install 11354 # before this can be enabled. 11355 hardcode_into_libs=yes 11356 11357 # Add ABI-specific directories to the system library path. 11358 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11359 11360 # Append ld.so.conf contents to the search path 11361 if test -f /etc/ld.so.conf; then 11362 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' ' '` 11363 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11364 11365 fi 11366 11367 # We used to test for /lib/ld.so.1 and disable shared libraries on 11368 # powerpc, because MkLinux only supported shared libraries with the 11369 # GNU dynamic linker. Since this was broken with cross compilers, 11370 # most powerpc-linux boxes support dynamic linking these days and 11371 # people can always --disable-shared, the test was removed, and we 11372 # assume the GNU/Linux dynamic linker is in use. 11373 dynamic_linker='GNU/Linux ld.so' 11374 ;; 11375 11376netbsd*) 11377 version_type=sunos 11378 need_lib_prefix=no 11379 need_version=no 11380 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11383 dynamic_linker='NetBSD (a.out) ld.so' 11384 else 11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11386 soname_spec='${libname}${release}${shared_ext}$major' 11387 dynamic_linker='NetBSD ld.elf_so' 11388 fi 11389 shlibpath_var=LD_LIBRARY_PATH 11390 shlibpath_overrides_runpath=yes 11391 hardcode_into_libs=yes 11392 ;; 11393 11394newsos6) 11395 version_type=linux # correct to gnu/linux during the next big refactor 11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11397 shlibpath_var=LD_LIBRARY_PATH 11398 shlibpath_overrides_runpath=yes 11399 ;; 11400 11401*nto* | *qnx*) 11402 version_type=qnx 11403 need_lib_prefix=no 11404 need_version=no 11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11406 soname_spec='${libname}${release}${shared_ext}$major' 11407 shlibpath_var=LD_LIBRARY_PATH 11408 shlibpath_overrides_runpath=no 11409 hardcode_into_libs=yes 11410 dynamic_linker='ldqnx.so' 11411 ;; 11412 11413openbsd*) 11414 version_type=sunos 11415 sys_lib_dlsearch_path_spec="/usr/lib" 11416 need_lib_prefix=no 11417 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11418 case $host_os in 11419 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11420 *) need_version=no ;; 11421 esac 11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11424 shlibpath_var=LD_LIBRARY_PATH 11425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11426 case $host_os in 11427 openbsd2.[89] | openbsd2.[89].*) 11428 shlibpath_overrides_runpath=no 11429 ;; 11430 *) 11431 shlibpath_overrides_runpath=yes 11432 ;; 11433 esac 11434 else 11435 shlibpath_overrides_runpath=yes 11436 fi 11437 ;; 11438 11439os2*) 11440 libname_spec='$name' 11441 shrext_cmds=".dll" 11442 need_lib_prefix=no 11443 library_names_spec='$libname${shared_ext} $libname.a' 11444 dynamic_linker='OS/2 ld.exe' 11445 shlibpath_var=LIBPATH 11446 ;; 11447 11448osf3* | osf4* | osf5*) 11449 version_type=osf 11450 need_lib_prefix=no 11451 need_version=no 11452 soname_spec='${libname}${release}${shared_ext}$major' 11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11454 shlibpath_var=LD_LIBRARY_PATH 11455 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11456 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11457 ;; 11458 11459rdos*) 11460 dynamic_linker=no 11461 ;; 11462 11463solaris*) 11464 version_type=linux # correct to gnu/linux during the next big refactor 11465 need_lib_prefix=no 11466 need_version=no 11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11468 soname_spec='${libname}${release}${shared_ext}$major' 11469 shlibpath_var=LD_LIBRARY_PATH 11470 shlibpath_overrides_runpath=yes 11471 hardcode_into_libs=yes 11472 # ldd complains unless libraries are executable 11473 postinstall_cmds='chmod +x $lib' 11474 ;; 11475 11476sunos4*) 11477 version_type=sunos 11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11479 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11480 shlibpath_var=LD_LIBRARY_PATH 11481 shlibpath_overrides_runpath=yes 11482 if test "$with_gnu_ld" = yes; then 11483 need_lib_prefix=no 11484 fi 11485 need_version=yes 11486 ;; 11487 11488sysv4 | sysv4.3*) 11489 version_type=linux # correct to gnu/linux during the next big refactor 11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11491 soname_spec='${libname}${release}${shared_ext}$major' 11492 shlibpath_var=LD_LIBRARY_PATH 11493 case $host_vendor in 11494 sni) 11495 shlibpath_overrides_runpath=no 11496 need_lib_prefix=no 11497 runpath_var=LD_RUN_PATH 11498 ;; 11499 siemens) 11500 need_lib_prefix=no 11501 ;; 11502 motorola) 11503 need_lib_prefix=no 11504 need_version=no 11505 shlibpath_overrides_runpath=no 11506 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11507 ;; 11508 esac 11509 ;; 11510 11511sysv4*MP*) 11512 if test -d /usr/nec ;then 11513 version_type=linux # correct to gnu/linux during the next big refactor 11514 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11515 soname_spec='$libname${shared_ext}.$major' 11516 shlibpath_var=LD_LIBRARY_PATH 11517 fi 11518 ;; 11519 11520sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11521 version_type=freebsd-elf 11522 need_lib_prefix=no 11523 need_version=no 11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11525 soname_spec='${libname}${release}${shared_ext}$major' 11526 shlibpath_var=LD_LIBRARY_PATH 11527 shlibpath_overrides_runpath=yes 11528 hardcode_into_libs=yes 11529 if test "$with_gnu_ld" = yes; then 11530 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11531 else 11532 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11533 case $host_os in 11534 sco3.2v5*) 11535 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11536 ;; 11537 esac 11538 fi 11539 sys_lib_dlsearch_path_spec='/usr/lib' 11540 ;; 11541 11542tpf*) 11543 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11544 version_type=linux # correct to gnu/linux during the next big refactor 11545 need_lib_prefix=no 11546 need_version=no 11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11548 shlibpath_var=LD_LIBRARY_PATH 11549 shlibpath_overrides_runpath=no 11550 hardcode_into_libs=yes 11551 ;; 11552 11553uts4*) 11554 version_type=linux # correct to gnu/linux during the next big refactor 11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11556 soname_spec='${libname}${release}${shared_ext}$major' 11557 shlibpath_var=LD_LIBRARY_PATH 11558 ;; 11559 11560*) 11561 dynamic_linker=no 11562 ;; 11563esac 11564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11565$as_echo "$dynamic_linker" >&6; } 11566test "$dynamic_linker" = no && can_build_shared=no 11567 11568variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11569if test "$GCC" = yes; then 11570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11571fi 11572 11573if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11574 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11575fi 11576if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11577 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11578fi 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11672$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11673hardcode_action= 11674if test -n "$hardcode_libdir_flag_spec" || 11675 test -n "$runpath_var" || 11676 test "X$hardcode_automatic" = "Xyes" ; then 11677 11678 # We can hardcode non-existent directories. 11679 if test "$hardcode_direct" != no && 11680 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11681 # have to relink, otherwise we might link with an installed library 11682 # when we should be linking with a yet-to-be-installed one 11683 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11684 test "$hardcode_minus_L" != no; then 11685 # Linking always hardcodes the temporary library directory. 11686 hardcode_action=relink 11687 else 11688 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11689 hardcode_action=immediate 11690 fi 11691else 11692 # We cannot hardcode anything, or else we can only hardcode existing 11693 # directories. 11694 hardcode_action=unsupported 11695fi 11696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11697$as_echo "$hardcode_action" >&6; } 11698 11699if test "$hardcode_action" = relink || 11700 test "$inherit_rpath" = yes; then 11701 # Fast installation is not supported 11702 enable_fast_install=no 11703elif test "$shlibpath_overrides_runpath" = yes || 11704 test "$enable_shared" = no; then 11705 # Fast installation is not necessary 11706 enable_fast_install=needless 11707fi 11708 11709 11710 11711 11712 11713 11714 if test "x$enable_dlopen" != xyes; then 11715 enable_dlopen=unknown 11716 enable_dlopen_self=unknown 11717 enable_dlopen_self_static=unknown 11718else 11719 lt_cv_dlopen=no 11720 lt_cv_dlopen_libs= 11721 11722 case $host_os in 11723 beos*) 11724 lt_cv_dlopen="load_add_on" 11725 lt_cv_dlopen_libs= 11726 lt_cv_dlopen_self=yes 11727 ;; 11728 11729 mingw* | pw32* | cegcc*) 11730 lt_cv_dlopen="LoadLibrary" 11731 lt_cv_dlopen_libs= 11732 ;; 11733 11734 cygwin*) 11735 lt_cv_dlopen="dlopen" 11736 lt_cv_dlopen_libs= 11737 ;; 11738 11739 darwin*) 11740 # if libdl is installed we need to link against it 11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11742$as_echo_n "checking for dlopen in -ldl... " >&6; } 11743if ${ac_cv_lib_dl_dlopen+:} false; then : 11744 $as_echo_n "(cached) " >&6 11745else 11746 ac_check_lib_save_LIBS=$LIBS 11747LIBS="-ldl $LIBS" 11748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11749/* end confdefs.h. */ 11750 11751/* Override any GCC internal prototype to avoid an error. 11752 Use char because int might match the return type of a GCC 11753 builtin and then its argument prototype would still apply. */ 11754#ifdef __cplusplus 11755extern "C" 11756#endif 11757char dlopen (); 11758int 11759main () 11760{ 11761return dlopen (); 11762 ; 11763 return 0; 11764} 11765_ACEOF 11766if ac_fn_c_try_link "$LINENO"; then : 11767 ac_cv_lib_dl_dlopen=yes 11768else 11769 ac_cv_lib_dl_dlopen=no 11770fi 11771rm -f core conftest.err conftest.$ac_objext \ 11772 conftest$ac_exeext conftest.$ac_ext 11773LIBS=$ac_check_lib_save_LIBS 11774fi 11775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11776$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11777if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11779else 11780 11781 lt_cv_dlopen="dyld" 11782 lt_cv_dlopen_libs= 11783 lt_cv_dlopen_self=yes 11784 11785fi 11786 11787 ;; 11788 11789 *) 11790 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11791if test "x$ac_cv_func_shl_load" = xyes; then : 11792 lt_cv_dlopen="shl_load" 11793else 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11795$as_echo_n "checking for shl_load in -ldld... " >&6; } 11796if ${ac_cv_lib_dld_shl_load+:} false; then : 11797 $as_echo_n "(cached) " >&6 11798else 11799 ac_check_lib_save_LIBS=$LIBS 11800LIBS="-ldld $LIBS" 11801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11802/* end confdefs.h. */ 11803 11804/* Override any GCC internal prototype to avoid an error. 11805 Use char because int might match the return type of a GCC 11806 builtin and then its argument prototype would still apply. */ 11807#ifdef __cplusplus 11808extern "C" 11809#endif 11810char shl_load (); 11811int 11812main () 11813{ 11814return shl_load (); 11815 ; 11816 return 0; 11817} 11818_ACEOF 11819if ac_fn_c_try_link "$LINENO"; then : 11820 ac_cv_lib_dld_shl_load=yes 11821else 11822 ac_cv_lib_dld_shl_load=no 11823fi 11824rm -f core conftest.err conftest.$ac_objext \ 11825 conftest$ac_exeext conftest.$ac_ext 11826LIBS=$ac_check_lib_save_LIBS 11827fi 11828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11829$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11830if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11831 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11832else 11833 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11834if test "x$ac_cv_func_dlopen" = xyes; then : 11835 lt_cv_dlopen="dlopen" 11836else 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11838$as_echo_n "checking for dlopen in -ldl... " >&6; } 11839if ${ac_cv_lib_dl_dlopen+:} false; then : 11840 $as_echo_n "(cached) " >&6 11841else 11842 ac_check_lib_save_LIBS=$LIBS 11843LIBS="-ldl $LIBS" 11844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11845/* end confdefs.h. */ 11846 11847/* Override any GCC internal prototype to avoid an error. 11848 Use char because int might match the return type of a GCC 11849 builtin and then its argument prototype would still apply. */ 11850#ifdef __cplusplus 11851extern "C" 11852#endif 11853char dlopen (); 11854int 11855main () 11856{ 11857return dlopen (); 11858 ; 11859 return 0; 11860} 11861_ACEOF 11862if ac_fn_c_try_link "$LINENO"; then : 11863 ac_cv_lib_dl_dlopen=yes 11864else 11865 ac_cv_lib_dl_dlopen=no 11866fi 11867rm -f core conftest.err conftest.$ac_objext \ 11868 conftest$ac_exeext conftest.$ac_ext 11869LIBS=$ac_check_lib_save_LIBS 11870fi 11871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11872$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11873if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11874 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11875else 11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11877$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11878if ${ac_cv_lib_svld_dlopen+:} false; then : 11879 $as_echo_n "(cached) " >&6 11880else 11881 ac_check_lib_save_LIBS=$LIBS 11882LIBS="-lsvld $LIBS" 11883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11884/* end confdefs.h. */ 11885 11886/* Override any GCC internal prototype to avoid an error. 11887 Use char because int might match the return type of a GCC 11888 builtin and then its argument prototype would still apply. */ 11889#ifdef __cplusplus 11890extern "C" 11891#endif 11892char dlopen (); 11893int 11894main () 11895{ 11896return dlopen (); 11897 ; 11898 return 0; 11899} 11900_ACEOF 11901if ac_fn_c_try_link "$LINENO"; then : 11902 ac_cv_lib_svld_dlopen=yes 11903else 11904 ac_cv_lib_svld_dlopen=no 11905fi 11906rm -f core conftest.err conftest.$ac_objext \ 11907 conftest$ac_exeext conftest.$ac_ext 11908LIBS=$ac_check_lib_save_LIBS 11909fi 11910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11911$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11912if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11914else 11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11916$as_echo_n "checking for dld_link in -ldld... " >&6; } 11917if ${ac_cv_lib_dld_dld_link+:} false; then : 11918 $as_echo_n "(cached) " >&6 11919else 11920 ac_check_lib_save_LIBS=$LIBS 11921LIBS="-ldld $LIBS" 11922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11923/* end confdefs.h. */ 11924 11925/* Override any GCC internal prototype to avoid an error. 11926 Use char because int might match the return type of a GCC 11927 builtin and then its argument prototype would still apply. */ 11928#ifdef __cplusplus 11929extern "C" 11930#endif 11931char dld_link (); 11932int 11933main () 11934{ 11935return dld_link (); 11936 ; 11937 return 0; 11938} 11939_ACEOF 11940if ac_fn_c_try_link "$LINENO"; then : 11941 ac_cv_lib_dld_dld_link=yes 11942else 11943 ac_cv_lib_dld_dld_link=no 11944fi 11945rm -f core conftest.err conftest.$ac_objext \ 11946 conftest$ac_exeext conftest.$ac_ext 11947LIBS=$ac_check_lib_save_LIBS 11948fi 11949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11950$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11951if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11952 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11953fi 11954 11955 11956fi 11957 11958 11959fi 11960 11961 11962fi 11963 11964 11965fi 11966 11967 11968fi 11969 11970 ;; 11971 esac 11972 11973 if test "x$lt_cv_dlopen" != xno; then 11974 enable_dlopen=yes 11975 else 11976 enable_dlopen=no 11977 fi 11978 11979 case $lt_cv_dlopen in 11980 dlopen) 11981 save_CPPFLAGS="$CPPFLAGS" 11982 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11983 11984 save_LDFLAGS="$LDFLAGS" 11985 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11986 11987 save_LIBS="$LIBS" 11988 LIBS="$lt_cv_dlopen_libs $LIBS" 11989 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11991$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11992if ${lt_cv_dlopen_self+:} false; then : 11993 $as_echo_n "(cached) " >&6 11994else 11995 if test "$cross_compiling" = yes; then : 11996 lt_cv_dlopen_self=cross 11997else 11998 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11999 lt_status=$lt_dlunknown 12000 cat > conftest.$ac_ext <<_LT_EOF 12001#line $LINENO "configure" 12002#include "confdefs.h" 12003 12004#if HAVE_DLFCN_H 12005#include <dlfcn.h> 12006#endif 12007 12008#include <stdio.h> 12009 12010#ifdef RTLD_GLOBAL 12011# define LT_DLGLOBAL RTLD_GLOBAL 12012#else 12013# ifdef DL_GLOBAL 12014# define LT_DLGLOBAL DL_GLOBAL 12015# else 12016# define LT_DLGLOBAL 0 12017# endif 12018#endif 12019 12020/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12021 find out it does not work in some platform. */ 12022#ifndef LT_DLLAZY_OR_NOW 12023# ifdef RTLD_LAZY 12024# define LT_DLLAZY_OR_NOW RTLD_LAZY 12025# else 12026# ifdef DL_LAZY 12027# define LT_DLLAZY_OR_NOW DL_LAZY 12028# else 12029# ifdef RTLD_NOW 12030# define LT_DLLAZY_OR_NOW RTLD_NOW 12031# else 12032# ifdef DL_NOW 12033# define LT_DLLAZY_OR_NOW DL_NOW 12034# else 12035# define LT_DLLAZY_OR_NOW 0 12036# endif 12037# endif 12038# endif 12039# endif 12040#endif 12041 12042/* When -fvisbility=hidden is used, assume the code has been annotated 12043 correspondingly for the symbols needed. */ 12044#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12045int fnord () __attribute__((visibility("default"))); 12046#endif 12047 12048int fnord () { return 42; } 12049int main () 12050{ 12051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12052 int status = $lt_dlunknown; 12053 12054 if (self) 12055 { 12056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12057 else 12058 { 12059 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12060 else puts (dlerror ()); 12061 } 12062 /* dlclose (self); */ 12063 } 12064 else 12065 puts (dlerror ()); 12066 12067 return status; 12068} 12069_LT_EOF 12070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12071 (eval $ac_link) 2>&5 12072 ac_status=$? 12073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12074 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12075 (./conftest; exit; ) >&5 2>/dev/null 12076 lt_status=$? 12077 case x$lt_status in 12078 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12079 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12080 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12081 esac 12082 else : 12083 # compilation failed 12084 lt_cv_dlopen_self=no 12085 fi 12086fi 12087rm -fr conftest* 12088 12089 12090fi 12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12092$as_echo "$lt_cv_dlopen_self" >&6; } 12093 12094 if test "x$lt_cv_dlopen_self" = xyes; then 12095 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12097$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12098if ${lt_cv_dlopen_self_static+:} false; then : 12099 $as_echo_n "(cached) " >&6 12100else 12101 if test "$cross_compiling" = yes; then : 12102 lt_cv_dlopen_self_static=cross 12103else 12104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12105 lt_status=$lt_dlunknown 12106 cat > conftest.$ac_ext <<_LT_EOF 12107#line $LINENO "configure" 12108#include "confdefs.h" 12109 12110#if HAVE_DLFCN_H 12111#include <dlfcn.h> 12112#endif 12113 12114#include <stdio.h> 12115 12116#ifdef RTLD_GLOBAL 12117# define LT_DLGLOBAL RTLD_GLOBAL 12118#else 12119# ifdef DL_GLOBAL 12120# define LT_DLGLOBAL DL_GLOBAL 12121# else 12122# define LT_DLGLOBAL 0 12123# endif 12124#endif 12125 12126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12127 find out it does not work in some platform. */ 12128#ifndef LT_DLLAZY_OR_NOW 12129# ifdef RTLD_LAZY 12130# define LT_DLLAZY_OR_NOW RTLD_LAZY 12131# else 12132# ifdef DL_LAZY 12133# define LT_DLLAZY_OR_NOW DL_LAZY 12134# else 12135# ifdef RTLD_NOW 12136# define LT_DLLAZY_OR_NOW RTLD_NOW 12137# else 12138# ifdef DL_NOW 12139# define LT_DLLAZY_OR_NOW DL_NOW 12140# else 12141# define LT_DLLAZY_OR_NOW 0 12142# endif 12143# endif 12144# endif 12145# endif 12146#endif 12147 12148/* When -fvisbility=hidden is used, assume the code has been annotated 12149 correspondingly for the symbols needed. */ 12150#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12151int fnord () __attribute__((visibility("default"))); 12152#endif 12153 12154int fnord () { return 42; } 12155int main () 12156{ 12157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12158 int status = $lt_dlunknown; 12159 12160 if (self) 12161 { 12162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12163 else 12164 { 12165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12166 else puts (dlerror ()); 12167 } 12168 /* dlclose (self); */ 12169 } 12170 else 12171 puts (dlerror ()); 12172 12173 return status; 12174} 12175_LT_EOF 12176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12177 (eval $ac_link) 2>&5 12178 ac_status=$? 12179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12180 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12181 (./conftest; exit; ) >&5 2>/dev/null 12182 lt_status=$? 12183 case x$lt_status in 12184 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12185 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12186 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12187 esac 12188 else : 12189 # compilation failed 12190 lt_cv_dlopen_self_static=no 12191 fi 12192fi 12193rm -fr conftest* 12194 12195 12196fi 12197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12198$as_echo "$lt_cv_dlopen_self_static" >&6; } 12199 fi 12200 12201 CPPFLAGS="$save_CPPFLAGS" 12202 LDFLAGS="$save_LDFLAGS" 12203 LIBS="$save_LIBS" 12204 ;; 12205 esac 12206 12207 case $lt_cv_dlopen_self in 12208 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12209 *) enable_dlopen_self=unknown ;; 12210 esac 12211 12212 case $lt_cv_dlopen_self_static in 12213 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12214 *) enable_dlopen_self_static=unknown ;; 12215 esac 12216fi 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234striplib= 12235old_striplib= 12236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12237$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12238if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12239 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12240 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12242$as_echo "yes" >&6; } 12243else 12244# FIXME - insert some real tests, host_os isn't really good enough 12245 case $host_os in 12246 darwin*) 12247 if test -n "$STRIP" ; then 12248 striplib="$STRIP -x" 12249 old_striplib="$STRIP -S" 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12251$as_echo "yes" >&6; } 12252 else 12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12254$as_echo "no" >&6; } 12255 fi 12256 ;; 12257 *) 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12259$as_echo "no" >&6; } 12260 ;; 12261 esac 12262fi 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 # Report which library types will actually be built 12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12277$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12279$as_echo "$can_build_shared" >&6; } 12280 12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12282$as_echo_n "checking whether to build shared libraries... " >&6; } 12283 test "$can_build_shared" = "no" && enable_shared=no 12284 12285 # On AIX, shared libraries and static libraries use the same namespace, and 12286 # are all built from PIC. 12287 case $host_os in 12288 aix3*) 12289 test "$enable_shared" = yes && enable_static=no 12290 if test -n "$RANLIB"; then 12291 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12292 postinstall_cmds='$RANLIB $lib' 12293 fi 12294 ;; 12295 12296 aix[4-9]*) 12297 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12298 test "$enable_shared" = yes && enable_static=no 12299 fi 12300 ;; 12301 esac 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12303$as_echo "$enable_shared" >&6; } 12304 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12306$as_echo_n "checking whether to build static libraries... " >&6; } 12307 # Make sure either enable_shared or enable_static is yes. 12308 test "$enable_shared" = yes || enable_static=yes 12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12310$as_echo "$enable_static" >&6; } 12311 12312 12313 12314 12315fi 12316ac_ext=c 12317ac_cpp='$CPP $CPPFLAGS' 12318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12320ac_compiler_gnu=$ac_cv_c_compiler_gnu 12321 12322CC="$lt_save_CC" 12323 12324 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12325 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12326 (test "X$CXX" != "Xg++"))) ; then 12327 ac_ext=cpp 12328ac_cpp='$CXXCPP $CPPFLAGS' 12329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12333$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12334if test -z "$CXXCPP"; then 12335 if ${ac_cv_prog_CXXCPP+:} false; then : 12336 $as_echo_n "(cached) " >&6 12337else 12338 # Double quotes because CXXCPP needs to be expanded 12339 for CXXCPP in "$CXX -E" "/lib/cpp" 12340 do 12341 ac_preproc_ok=false 12342for ac_cxx_preproc_warn_flag in '' yes 12343do 12344 # Use a header file that comes with gcc, so configuring glibc 12345 # with a fresh cross-compiler works. 12346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12347 # <limits.h> exists even on freestanding compilers. 12348 # On the NeXT, cc -E runs the code through the compiler's parser, 12349 # not just through cpp. "Syntax error" is here to catch this case. 12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12351/* end confdefs.h. */ 12352#ifdef __STDC__ 12353# include <limits.h> 12354#else 12355# include <assert.h> 12356#endif 12357 Syntax error 12358_ACEOF 12359if ac_fn_cxx_try_cpp "$LINENO"; then : 12360 12361else 12362 # Broken: fails on valid input. 12363continue 12364fi 12365rm -f conftest.err conftest.i conftest.$ac_ext 12366 12367 # OK, works on sane cases. Now check whether nonexistent headers 12368 # can be detected and how. 12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12370/* end confdefs.h. */ 12371#include <ac_nonexistent.h> 12372_ACEOF 12373if ac_fn_cxx_try_cpp "$LINENO"; then : 12374 # Broken: success on invalid input. 12375continue 12376else 12377 # Passes both tests. 12378ac_preproc_ok=: 12379break 12380fi 12381rm -f conftest.err conftest.i conftest.$ac_ext 12382 12383done 12384# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12385rm -f conftest.i conftest.err conftest.$ac_ext 12386if $ac_preproc_ok; then : 12387 break 12388fi 12389 12390 done 12391 ac_cv_prog_CXXCPP=$CXXCPP 12392 12393fi 12394 CXXCPP=$ac_cv_prog_CXXCPP 12395else 12396 ac_cv_prog_CXXCPP=$CXXCPP 12397fi 12398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12399$as_echo "$CXXCPP" >&6; } 12400ac_preproc_ok=false 12401for ac_cxx_preproc_warn_flag in '' yes 12402do 12403 # Use a header file that comes with gcc, so configuring glibc 12404 # with a fresh cross-compiler works. 12405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12406 # <limits.h> exists even on freestanding compilers. 12407 # On the NeXT, cc -E runs the code through the compiler's parser, 12408 # not just through cpp. "Syntax error" is here to catch this case. 12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12410/* end confdefs.h. */ 12411#ifdef __STDC__ 12412# include <limits.h> 12413#else 12414# include <assert.h> 12415#endif 12416 Syntax error 12417_ACEOF 12418if ac_fn_cxx_try_cpp "$LINENO"; then : 12419 12420else 12421 # Broken: fails on valid input. 12422continue 12423fi 12424rm -f conftest.err conftest.i conftest.$ac_ext 12425 12426 # OK, works on sane cases. Now check whether nonexistent headers 12427 # can be detected and how. 12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12429/* end confdefs.h. */ 12430#include <ac_nonexistent.h> 12431_ACEOF 12432if ac_fn_cxx_try_cpp "$LINENO"; then : 12433 # Broken: success on invalid input. 12434continue 12435else 12436 # Passes both tests. 12437ac_preproc_ok=: 12438break 12439fi 12440rm -f conftest.err conftest.i conftest.$ac_ext 12441 12442done 12443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12444rm -f conftest.i conftest.err conftest.$ac_ext 12445if $ac_preproc_ok; then : 12446 12447else 12448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12450as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12451See \`config.log' for more details" "$LINENO" 5; } 12452fi 12453 12454ac_ext=c 12455ac_cpp='$CPP $CPPFLAGS' 12456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12458ac_compiler_gnu=$ac_cv_c_compiler_gnu 12459 12460else 12461 _lt_caught_CXX_error=yes 12462fi 12463 12464ac_ext=cpp 12465ac_cpp='$CXXCPP $CPPFLAGS' 12466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12469 12470archive_cmds_need_lc_CXX=no 12471allow_undefined_flag_CXX= 12472always_export_symbols_CXX=no 12473archive_expsym_cmds_CXX= 12474compiler_needs_object_CXX=no 12475export_dynamic_flag_spec_CXX= 12476hardcode_direct_CXX=no 12477hardcode_direct_absolute_CXX=no 12478hardcode_libdir_flag_spec_CXX= 12479hardcode_libdir_separator_CXX= 12480hardcode_minus_L_CXX=no 12481hardcode_shlibpath_var_CXX=unsupported 12482hardcode_automatic_CXX=no 12483inherit_rpath_CXX=no 12484module_cmds_CXX= 12485module_expsym_cmds_CXX= 12486link_all_deplibs_CXX=unknown 12487old_archive_cmds_CXX=$old_archive_cmds 12488reload_flag_CXX=$reload_flag 12489reload_cmds_CXX=$reload_cmds 12490no_undefined_flag_CXX= 12491whole_archive_flag_spec_CXX= 12492enable_shared_with_static_runtimes_CXX=no 12493 12494# Source file extension for C++ test sources. 12495ac_ext=cpp 12496 12497# Object file extension for compiled C++ test sources. 12498objext=o 12499objext_CXX=$objext 12500 12501# No sense in running all these tests if we already determined that 12502# the CXX compiler isn't working. Some variables (like enable_shared) 12503# are currently assumed to apply to all compilers on this platform, 12504# and will be corrupted by setting them based on a non-working compiler. 12505if test "$_lt_caught_CXX_error" != yes; then 12506 # Code to be used in simple compile tests 12507 lt_simple_compile_test_code="int some_variable = 0;" 12508 12509 # Code to be used in simple link tests 12510 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12511 12512 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12513 12514 12515 12516 12517 12518 12519# If no C compiler was specified, use CC. 12520LTCC=${LTCC-"$CC"} 12521 12522# If no C compiler flags were specified, use CFLAGS. 12523LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12524 12525# Allow CC to be a program name with arguments. 12526compiler=$CC 12527 12528 12529 # save warnings/boilerplate of simple test code 12530 ac_outfile=conftest.$ac_objext 12531echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12532eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12533_lt_compiler_boilerplate=`cat conftest.err` 12534$RM conftest* 12535 12536 ac_outfile=conftest.$ac_objext 12537echo "$lt_simple_link_test_code" >conftest.$ac_ext 12538eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12539_lt_linker_boilerplate=`cat conftest.err` 12540$RM -r conftest* 12541 12542 12543 # Allow CC to be a program name with arguments. 12544 lt_save_CC=$CC 12545 lt_save_CFLAGS=$CFLAGS 12546 lt_save_LD=$LD 12547 lt_save_GCC=$GCC 12548 GCC=$GXX 12549 lt_save_with_gnu_ld=$with_gnu_ld 12550 lt_save_path_LD=$lt_cv_path_LD 12551 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12552 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12553 else 12554 $as_unset lt_cv_prog_gnu_ld 12555 fi 12556 if test -n "${lt_cv_path_LDCXX+set}"; then 12557 lt_cv_path_LD=$lt_cv_path_LDCXX 12558 else 12559 $as_unset lt_cv_path_LD 12560 fi 12561 test -z "${LDCXX+set}" || LD=$LDCXX 12562 CC=${CXX-"c++"} 12563 CFLAGS=$CXXFLAGS 12564 compiler=$CC 12565 compiler_CXX=$CC 12566 for cc_temp in $compiler""; do 12567 case $cc_temp in 12568 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12569 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12570 \-*) ;; 12571 *) break;; 12572 esac 12573done 12574cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12575 12576 12577 if test -n "$compiler"; then 12578 # We don't want -fno-exception when compiling C++ code, so set the 12579 # no_builtin_flag separately 12580 if test "$GXX" = yes; then 12581 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12582 else 12583 lt_prog_compiler_no_builtin_flag_CXX= 12584 fi 12585 12586 if test "$GXX" = yes; then 12587 # Set up default GNU C++ configuration 12588 12589 12590 12591# Check whether --with-gnu-ld was given. 12592if test "${with_gnu_ld+set}" = set; then : 12593 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12594else 12595 with_gnu_ld=no 12596fi 12597 12598ac_prog=ld 12599if test "$GCC" = yes; then 12600 # Check if gcc -print-prog-name=ld gives a path. 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12602$as_echo_n "checking for ld used by $CC... " >&6; } 12603 case $host in 12604 *-*-mingw*) 12605 # gcc leaves a trailing carriage return which upsets mingw 12606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12607 *) 12608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12609 esac 12610 case $ac_prog in 12611 # Accept absolute paths. 12612 [\\/]* | ?:[\\/]*) 12613 re_direlt='/[^/][^/]*/\.\./' 12614 # Canonicalize the pathname of ld 12615 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12616 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12617 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12618 done 12619 test -z "$LD" && LD="$ac_prog" 12620 ;; 12621 "") 12622 # If it fails, then pretend we aren't using GCC. 12623 ac_prog=ld 12624 ;; 12625 *) 12626 # If it is relative, then search for the first ld in PATH. 12627 with_gnu_ld=unknown 12628 ;; 12629 esac 12630elif test "$with_gnu_ld" = yes; then 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12632$as_echo_n "checking for GNU ld... " >&6; } 12633else 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12635$as_echo_n "checking for non-GNU ld... " >&6; } 12636fi 12637if ${lt_cv_path_LD+:} false; then : 12638 $as_echo_n "(cached) " >&6 12639else 12640 if test -z "$LD"; then 12641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12642 for ac_dir in $PATH; do 12643 IFS="$lt_save_ifs" 12644 test -z "$ac_dir" && ac_dir=. 12645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12646 lt_cv_path_LD="$ac_dir/$ac_prog" 12647 # Check to see if the program is GNU ld. I'd rather use --version, 12648 # but apparently some variants of GNU ld only accept -v. 12649 # Break only if it was the GNU/non-GNU ld that we prefer. 12650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12651 *GNU* | *'with BFD'*) 12652 test "$with_gnu_ld" != no && break 12653 ;; 12654 *) 12655 test "$with_gnu_ld" != yes && break 12656 ;; 12657 esac 12658 fi 12659 done 12660 IFS="$lt_save_ifs" 12661else 12662 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12663fi 12664fi 12665 12666LD="$lt_cv_path_LD" 12667if test -n "$LD"; then 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12669$as_echo "$LD" >&6; } 12670else 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12672$as_echo "no" >&6; } 12673fi 12674test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12676$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12677if ${lt_cv_prog_gnu_ld+:} false; then : 12678 $as_echo_n "(cached) " >&6 12679else 12680 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12681case `$LD -v 2>&1 </dev/null` in 12682*GNU* | *'with BFD'*) 12683 lt_cv_prog_gnu_ld=yes 12684 ;; 12685*) 12686 lt_cv_prog_gnu_ld=no 12687 ;; 12688esac 12689fi 12690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12691$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12692with_gnu_ld=$lt_cv_prog_gnu_ld 12693 12694 12695 12696 12697 12698 12699 12700 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12701 # archiving commands below assume that GNU ld is being used. 12702 if test "$with_gnu_ld" = yes; then 12703 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12704 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12705 12706 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12707 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12708 12709 # If archive_cmds runs LD, not CC, wlarc should be empty 12710 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12711 # investigate it a little bit more. (MM) 12712 wlarc='${wl}' 12713 12714 # ancient GNU ld didn't support --whole-archive et. al. 12715 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12716 $GREP 'no-whole-archive' > /dev/null; then 12717 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12718 else 12719 whole_archive_flag_spec_CXX= 12720 fi 12721 else 12722 with_gnu_ld=no 12723 wlarc= 12724 12725 # A generic and very simple default shared library creation 12726 # command for GNU C++ for the case where it uses the native 12727 # linker, instead of GNU ld. If possible, this setting should 12728 # overridden to take advantage of the native linker features on 12729 # the platform it is being used on. 12730 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12731 fi 12732 12733 # Commands to make compiler produce verbose output that lists 12734 # what "hidden" libraries, object files and flags are used when 12735 # linking a shared library. 12736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12737 12738 else 12739 GXX=no 12740 with_gnu_ld=no 12741 wlarc= 12742 fi 12743 12744 # PORTME: fill in a description of your system's C++ link characteristics 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12746$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12747 ld_shlibs_CXX=yes 12748 case $host_os in 12749 aix3*) 12750 # FIXME: insert proper C++ library support 12751 ld_shlibs_CXX=no 12752 ;; 12753 aix[4-9]*) 12754 if test "$host_cpu" = ia64; then 12755 # On IA64, the linker does run time linking by default, so we don't 12756 # have to do anything special. 12757 aix_use_runtimelinking=no 12758 exp_sym_flag='-Bexport' 12759 no_entry_flag="" 12760 else 12761 aix_use_runtimelinking=no 12762 12763 # Test if we are trying to use run time linking or normal 12764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12765 # need to do runtime linking. 12766 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12767 for ld_flag in $LDFLAGS; do 12768 case $ld_flag in 12769 *-brtl*) 12770 aix_use_runtimelinking=yes 12771 break 12772 ;; 12773 esac 12774 done 12775 ;; 12776 esac 12777 12778 exp_sym_flag='-bexport' 12779 no_entry_flag='-bnoentry' 12780 fi 12781 12782 # When large executables or shared objects are built, AIX ld can 12783 # have problems creating the table of contents. If linking a library 12784 # or program results in "error TOC overflow" add -mminimal-toc to 12785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12787 12788 archive_cmds_CXX='' 12789 hardcode_direct_CXX=yes 12790 hardcode_direct_absolute_CXX=yes 12791 hardcode_libdir_separator_CXX=':' 12792 link_all_deplibs_CXX=yes 12793 file_list_spec_CXX='${wl}-f,' 12794 12795 if test "$GXX" = yes; then 12796 case $host_os in aix4.[012]|aix4.[012].*) 12797 # We only want to do this on AIX 4.2 and lower, the check 12798 # below for broken collect2 doesn't work under 4.3+ 12799 collect2name=`${CC} -print-prog-name=collect2` 12800 if test -f "$collect2name" && 12801 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12802 then 12803 # We have reworked collect2 12804 : 12805 else 12806 # We have old collect2 12807 hardcode_direct_CXX=unsupported 12808 # It fails to find uninstalled libraries when the uninstalled 12809 # path is not listed in the libpath. Setting hardcode_minus_L 12810 # to unsupported forces relinking 12811 hardcode_minus_L_CXX=yes 12812 hardcode_libdir_flag_spec_CXX='-L$libdir' 12813 hardcode_libdir_separator_CXX= 12814 fi 12815 esac 12816 shared_flag='-shared' 12817 if test "$aix_use_runtimelinking" = yes; then 12818 shared_flag="$shared_flag "'${wl}-G' 12819 fi 12820 else 12821 # not using gcc 12822 if test "$host_cpu" = ia64; then 12823 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12824 # chokes on -Wl,-G. The following line is correct: 12825 shared_flag='-G' 12826 else 12827 if test "$aix_use_runtimelinking" = yes; then 12828 shared_flag='${wl}-G' 12829 else 12830 shared_flag='${wl}-bM:SRE' 12831 fi 12832 fi 12833 fi 12834 12835 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12836 # It seems that -bexpall does not export symbols beginning with 12837 # underscore (_), so it is better to generate a list of symbols to 12838 # export. 12839 always_export_symbols_CXX=yes 12840 if test "$aix_use_runtimelinking" = yes; then 12841 # Warning - without using the other runtime loading flags (-brtl), 12842 # -berok will link without error, but may produce a broken library. 12843 allow_undefined_flag_CXX='-berok' 12844 # Determine the default libpath from the value encoded in an empty 12845 # executable. 12846 if test "${lt_cv_aix_libpath+set}" = set; then 12847 aix_libpath=$lt_cv_aix_libpath 12848else 12849 if ${lt_cv_aix_libpath__CXX+:} false; then : 12850 $as_echo_n "(cached) " >&6 12851else 12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12853/* end confdefs.h. */ 12854 12855int 12856main () 12857{ 12858 12859 ; 12860 return 0; 12861} 12862_ACEOF 12863if ac_fn_cxx_try_link "$LINENO"; then : 12864 12865 lt_aix_libpath_sed=' 12866 /Import File Strings/,/^$/ { 12867 /^0/ { 12868 s/^0 *\([^ ]*\) *$/\1/ 12869 p 12870 } 12871 }' 12872 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12873 # Check for a 64-bit object if we didn't find anything. 12874 if test -z "$lt_cv_aix_libpath__CXX"; then 12875 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12876 fi 12877fi 12878rm -f core conftest.err conftest.$ac_objext \ 12879 conftest$ac_exeext conftest.$ac_ext 12880 if test -z "$lt_cv_aix_libpath__CXX"; then 12881 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12882 fi 12883 12884fi 12885 12886 aix_libpath=$lt_cv_aix_libpath__CXX 12887fi 12888 12889 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12890 12891 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12892 else 12893 if test "$host_cpu" = ia64; then 12894 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12895 allow_undefined_flag_CXX="-z nodefs" 12896 archive_expsym_cmds_CXX="\$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" 12897 else 12898 # Determine the default libpath from the value encoded in an 12899 # empty executable. 12900 if test "${lt_cv_aix_libpath+set}" = set; then 12901 aix_libpath=$lt_cv_aix_libpath 12902else 12903 if ${lt_cv_aix_libpath__CXX+:} false; then : 12904 $as_echo_n "(cached) " >&6 12905else 12906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12907/* end confdefs.h. */ 12908 12909int 12910main () 12911{ 12912 12913 ; 12914 return 0; 12915} 12916_ACEOF 12917if ac_fn_cxx_try_link "$LINENO"; then : 12918 12919 lt_aix_libpath_sed=' 12920 /Import File Strings/,/^$/ { 12921 /^0/ { 12922 s/^0 *\([^ ]*\) *$/\1/ 12923 p 12924 } 12925 }' 12926 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12927 # Check for a 64-bit object if we didn't find anything. 12928 if test -z "$lt_cv_aix_libpath__CXX"; then 12929 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12930 fi 12931fi 12932rm -f core conftest.err conftest.$ac_objext \ 12933 conftest$ac_exeext conftest.$ac_ext 12934 if test -z "$lt_cv_aix_libpath__CXX"; then 12935 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12936 fi 12937 12938fi 12939 12940 aix_libpath=$lt_cv_aix_libpath__CXX 12941fi 12942 12943 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12944 # Warning - without using the other run time loading flags, 12945 # -berok will link without error, but may produce a broken library. 12946 no_undefined_flag_CXX=' ${wl}-bernotok' 12947 allow_undefined_flag_CXX=' ${wl}-berok' 12948 if test "$with_gnu_ld" = yes; then 12949 # We only use this code for GNU lds that support --whole-archive. 12950 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12951 else 12952 # Exported symbols can be pulled into shared objects from archives 12953 whole_archive_flag_spec_CXX='$convenience' 12954 fi 12955 archive_cmds_need_lc_CXX=yes 12956 # This is similar to how AIX traditionally builds its shared 12957 # libraries. 12958 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12959 fi 12960 fi 12961 ;; 12962 12963 beos*) 12964 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12965 allow_undefined_flag_CXX=unsupported 12966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12967 # support --undefined. This deserves some investigation. FIXME 12968 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12969 else 12970 ld_shlibs_CXX=no 12971 fi 12972 ;; 12973 12974 chorus*) 12975 case $cc_basename in 12976 *) 12977 # FIXME: insert proper C++ library support 12978 ld_shlibs_CXX=no 12979 ;; 12980 esac 12981 ;; 12982 12983 cygwin* | mingw* | pw32* | cegcc*) 12984 case $GXX,$cc_basename in 12985 ,cl* | no,cl*) 12986 # Native MSVC 12987 # hardcode_libdir_flag_spec is actually meaningless, as there is 12988 # no search path for DLLs. 12989 hardcode_libdir_flag_spec_CXX=' ' 12990 allow_undefined_flag_CXX=unsupported 12991 always_export_symbols_CXX=yes 12992 file_list_spec_CXX='@' 12993 # Tell ltmain to make .lib files, not .a files. 12994 libext=lib 12995 # Tell ltmain to make .dll files, not .so files. 12996 shrext_cmds=".dll" 12997 # FIXME: Setting linknames here is a bad hack. 12998 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12999 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13000 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13001 else 13002 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13003 fi~ 13004 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13005 linknames=' 13006 # The linker will not automatically build a static lib if we build a DLL. 13007 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13008 enable_shared_with_static_runtimes_CXX=yes 13009 # Don't use ranlib 13010 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13011 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13012 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13013 case $lt_outputfile in 13014 *.exe|*.EXE) ;; 13015 *) 13016 lt_outputfile="$lt_outputfile.exe" 13017 lt_tool_outputfile="$lt_tool_outputfile.exe" 13018 ;; 13019 esac~ 13020 func_to_tool_file "$lt_outputfile"~ 13021 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13022 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13023 $RM "$lt_outputfile.manifest"; 13024 fi' 13025 ;; 13026 *) 13027 # g++ 13028 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13029 # as there is no search path for DLLs. 13030 hardcode_libdir_flag_spec_CXX='-L$libdir' 13031 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13032 allow_undefined_flag_CXX=unsupported 13033 always_export_symbols_CXX=no 13034 enable_shared_with_static_runtimes_CXX=yes 13035 13036 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13037 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13038 # If the export-symbols file already is a .def file (1st line 13039 # is EXPORTS), use it as is; otherwise, prepend... 13040 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13041 cp $export_symbols $output_objdir/$soname.def; 13042 else 13043 echo EXPORTS > $output_objdir/$soname.def; 13044 cat $export_symbols >> $output_objdir/$soname.def; 13045 fi~ 13046 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13047 else 13048 ld_shlibs_CXX=no 13049 fi 13050 ;; 13051 esac 13052 ;; 13053 darwin* | rhapsody*) 13054 13055 13056 archive_cmds_need_lc_CXX=no 13057 hardcode_direct_CXX=no 13058 hardcode_automatic_CXX=yes 13059 hardcode_shlibpath_var_CXX=unsupported 13060 if test "$lt_cv_ld_force_load" = "yes"; then 13061 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13062 13063 else 13064 whole_archive_flag_spec_CXX='' 13065 fi 13066 link_all_deplibs_CXX=yes 13067 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13068 case $cc_basename in 13069 ifort*) _lt_dar_can_shared=yes ;; 13070 *) _lt_dar_can_shared=$GCC ;; 13071 esac 13072 if test "$_lt_dar_can_shared" = "yes"; then 13073 output_verbose_link_cmd=func_echo_all 13074 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13075 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13076 archive_expsym_cmds_CXX="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}" 13077 module_expsym_cmds_CXX="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}" 13078 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13079 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 13080 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 13081 fi 13082 13083 else 13084 ld_shlibs_CXX=no 13085 fi 13086 13087 ;; 13088 13089 dgux*) 13090 case $cc_basename in 13091 ec++*) 13092 # FIXME: insert proper C++ library support 13093 ld_shlibs_CXX=no 13094 ;; 13095 ghcx*) 13096 # Green Hills C++ Compiler 13097 # FIXME: insert proper C++ library support 13098 ld_shlibs_CXX=no 13099 ;; 13100 *) 13101 # FIXME: insert proper C++ library support 13102 ld_shlibs_CXX=no 13103 ;; 13104 esac 13105 ;; 13106 13107 freebsd2.*) 13108 # C++ shared libraries reported to be fairly broken before 13109 # switch to ELF 13110 ld_shlibs_CXX=no 13111 ;; 13112 13113 freebsd-elf*) 13114 archive_cmds_need_lc_CXX=no 13115 ;; 13116 13117 freebsd* | dragonfly*) 13118 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13119 # conventions 13120 ld_shlibs_CXX=yes 13121 ;; 13122 13123 gnu*) 13124 ;; 13125 13126 haiku*) 13127 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13128 link_all_deplibs_CXX=yes 13129 ;; 13130 13131 hpux9*) 13132 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13133 hardcode_libdir_separator_CXX=: 13134 export_dynamic_flag_spec_CXX='${wl}-E' 13135 hardcode_direct_CXX=yes 13136 hardcode_minus_L_CXX=yes # Not in the search PATH, 13137 # but as the default 13138 # location of the library. 13139 13140 case $cc_basename in 13141 CC*) 13142 # FIXME: insert proper C++ library support 13143 ld_shlibs_CXX=no 13144 ;; 13145 aCC*) 13146 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13147 # Commands to make compiler produce verbose output that lists 13148 # what "hidden" libraries, object files and flags are used when 13149 # linking a shared library. 13150 # 13151 # There doesn't appear to be a way to prevent this compiler from 13152 # explicitly linking system object files so we need to strip them 13153 # from the output so that they don't get included in the library 13154 # dependencies. 13155 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13156 ;; 13157 *) 13158 if test "$GXX" = yes; then 13159 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13160 else 13161 # FIXME: insert proper C++ library support 13162 ld_shlibs_CXX=no 13163 fi 13164 ;; 13165 esac 13166 ;; 13167 13168 hpux10*|hpux11*) 13169 if test $with_gnu_ld = no; then 13170 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13171 hardcode_libdir_separator_CXX=: 13172 13173 case $host_cpu in 13174 hppa*64*|ia64*) 13175 ;; 13176 *) 13177 export_dynamic_flag_spec_CXX='${wl}-E' 13178 ;; 13179 esac 13180 fi 13181 case $host_cpu in 13182 hppa*64*|ia64*) 13183 hardcode_direct_CXX=no 13184 hardcode_shlibpath_var_CXX=no 13185 ;; 13186 *) 13187 hardcode_direct_CXX=yes 13188 hardcode_direct_absolute_CXX=yes 13189 hardcode_minus_L_CXX=yes # Not in the search PATH, 13190 # but as the default 13191 # location of the library. 13192 ;; 13193 esac 13194 13195 case $cc_basename in 13196 CC*) 13197 # FIXME: insert proper C++ library support 13198 ld_shlibs_CXX=no 13199 ;; 13200 aCC*) 13201 case $host_cpu in 13202 hppa*64*) 13203 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13204 ;; 13205 ia64*) 13206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13207 ;; 13208 *) 13209 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13210 ;; 13211 esac 13212 # Commands to make compiler produce verbose output that lists 13213 # what "hidden" libraries, object files and flags are used when 13214 # linking a shared library. 13215 # 13216 # There doesn't appear to be a way to prevent this compiler from 13217 # explicitly linking system object files so we need to strip them 13218 # from the output so that they don't get included in the library 13219 # dependencies. 13220 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13221 ;; 13222 *) 13223 if test "$GXX" = yes; then 13224 if test $with_gnu_ld = no; then 13225 case $host_cpu in 13226 hppa*64*) 13227 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13228 ;; 13229 ia64*) 13230 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13231 ;; 13232 *) 13233 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13234 ;; 13235 esac 13236 fi 13237 else 13238 # FIXME: insert proper C++ library support 13239 ld_shlibs_CXX=no 13240 fi 13241 ;; 13242 esac 13243 ;; 13244 13245 interix[3-9]*) 13246 hardcode_direct_CXX=no 13247 hardcode_shlibpath_var_CXX=no 13248 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13249 export_dynamic_flag_spec_CXX='${wl}-E' 13250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13251 # Instead, shared libraries are loaded at an image base (0x10000000 by 13252 # default) and relocated if they conflict, which is a slow very memory 13253 # consuming and fragmenting process. To avoid this, we pick a random, 13254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13255 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13256 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13257 archive_expsym_cmds_CXX='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' 13258 ;; 13259 irix5* | irix6*) 13260 case $cc_basename in 13261 CC*) 13262 # SGI C++ 13263 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13264 13265 # Archives containing C++ object files must be created using 13266 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13267 # necessary to make sure instantiated templates are included 13268 # in the archive. 13269 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13270 ;; 13271 *) 13272 if test "$GXX" = yes; then 13273 if test "$with_gnu_ld" = no; then 13274 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 13275 else 13276 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 13277 fi 13278 fi 13279 link_all_deplibs_CXX=yes 13280 ;; 13281 esac 13282 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13283 hardcode_libdir_separator_CXX=: 13284 inherit_rpath_CXX=yes 13285 ;; 13286 13287 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13288 case $cc_basename in 13289 KCC*) 13290 # Kuck and Associates, Inc. (KAI) C++ Compiler 13291 13292 # KCC will only create a shared library if the output file 13293 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13294 # to its proper name (with version) after linking. 13295 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13296 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13297 # Commands to make compiler produce verbose output that lists 13298 # what "hidden" libraries, object files and flags are used when 13299 # linking a shared library. 13300 # 13301 # There doesn't appear to be a way to prevent this compiler from 13302 # explicitly linking system object files so we need to strip them 13303 # from the output so that they don't get included in the library 13304 # dependencies. 13305 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13306 13307 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13309 13310 # Archives containing C++ object files must be created using 13311 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13312 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13313 ;; 13314 icpc* | ecpc* ) 13315 # Intel C++ 13316 with_gnu_ld=yes 13317 # version 8.0 and above of icpc choke on multiply defined symbols 13318 # if we add $predep_objects and $postdep_objects, however 7.1 and 13319 # earlier do not add the objects themselves. 13320 case `$CC -V 2>&1` in 13321 *"Version 7."*) 13322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13323 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13324 ;; 13325 *) # Version 8.0 or newer 13326 tmp_idyn= 13327 case $host_cpu in 13328 ia64*) tmp_idyn=' -i_dynamic';; 13329 esac 13330 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13331 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13332 ;; 13333 esac 13334 archive_cmds_need_lc_CXX=no 13335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13337 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13338 ;; 13339 pgCC* | pgcpp*) 13340 # Portland Group C++ compiler 13341 case `$CC -V` in 13342 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13343 prelink_cmds_CXX='tpldir=Template.dir~ 13344 rm -rf $tpldir~ 13345 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13346 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13347 old_archive_cmds_CXX='tpldir=Template.dir~ 13348 rm -rf $tpldir~ 13349 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13350 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13351 $RANLIB $oldlib' 13352 archive_cmds_CXX='tpldir=Template.dir~ 13353 rm -rf $tpldir~ 13354 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13355 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13356 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13357 rm -rf $tpldir~ 13358 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13359 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13360 ;; 13361 *) # Version 6 and above use weak symbols 13362 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13363 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13364 ;; 13365 esac 13366 13367 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13368 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13369 whole_archive_flag_spec_CXX='${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' 13370 ;; 13371 cxx*) 13372 # Compaq C++ 13373 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13374 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 13375 13376 runpath_var=LD_RUN_PATH 13377 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13378 hardcode_libdir_separator_CXX=: 13379 13380 # Commands to make compiler produce verbose output that lists 13381 # what "hidden" libraries, object files and flags are used when 13382 # linking a shared library. 13383 # 13384 # There doesn't appear to be a way to prevent this compiler from 13385 # explicitly linking system object files so we need to strip them 13386 # from the output so that they don't get included in the library 13387 # dependencies. 13388 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 13389 ;; 13390 xl* | mpixl* | bgxl*) 13391 # IBM XL 8.0 on PPC, with GNU ld 13392 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13393 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13394 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13395 if test "x$supports_anon_versioning" = xyes; then 13396 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13397 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13398 echo "local: *; };" >> $output_objdir/$libname.ver~ 13399 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13400 fi 13401 ;; 13402 *) 13403 case `$CC -V 2>&1 | sed 5q` in 13404 *Sun\ C*) 13405 # Sun C++ 5.9 13406 no_undefined_flag_CXX=' -zdefs' 13407 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13408 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13409 hardcode_libdir_flag_spec_CXX='-R$libdir' 13410 whole_archive_flag_spec_CXX='${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' 13411 compiler_needs_object_CXX=yes 13412 13413 # Not sure whether something based on 13414 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13415 # would be better. 13416 output_verbose_link_cmd='func_echo_all' 13417 13418 # Archives containing C++ object files must be created using 13419 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13420 # necessary to make sure instantiated templates are included 13421 # in the archive. 13422 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13423 ;; 13424 esac 13425 ;; 13426 esac 13427 ;; 13428 13429 lynxos*) 13430 # FIXME: insert proper C++ library support 13431 ld_shlibs_CXX=no 13432 ;; 13433 13434 m88k*) 13435 # FIXME: insert proper C++ library support 13436 ld_shlibs_CXX=no 13437 ;; 13438 13439 mvs*) 13440 case $cc_basename in 13441 cxx*) 13442 # FIXME: insert proper C++ library support 13443 ld_shlibs_CXX=no 13444 ;; 13445 *) 13446 # FIXME: insert proper C++ library support 13447 ld_shlibs_CXX=no 13448 ;; 13449 esac 13450 ;; 13451 13452 netbsd*) 13453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13454 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13455 wlarc= 13456 hardcode_libdir_flag_spec_CXX='-R$libdir' 13457 hardcode_direct_CXX=yes 13458 hardcode_shlibpath_var_CXX=no 13459 fi 13460 # Workaround some broken pre-1.5 toolchains 13461 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13462 ;; 13463 13464 *nto* | *qnx*) 13465 ld_shlibs_CXX=yes 13466 ;; 13467 13468 openbsd2*) 13469 # C++ shared libraries are fairly broken 13470 ld_shlibs_CXX=no 13471 ;; 13472 13473 openbsd*) 13474 if test -f /usr/libexec/ld.so; then 13475 hardcode_direct_CXX=yes 13476 hardcode_shlibpath_var_CXX=no 13477 hardcode_direct_absolute_CXX=yes 13478 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13480 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13481 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13482 export_dynamic_flag_spec_CXX='${wl}-E' 13483 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13484 fi 13485 output_verbose_link_cmd=func_echo_all 13486 else 13487 ld_shlibs_CXX=no 13488 fi 13489 ;; 13490 13491 osf3* | osf4* | osf5*) 13492 case $cc_basename in 13493 KCC*) 13494 # Kuck and Associates, Inc. (KAI) C++ Compiler 13495 13496 # KCC will only create a shared library if the output file 13497 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13498 # to its proper name (with version) after linking. 13499 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13500 13501 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13502 hardcode_libdir_separator_CXX=: 13503 13504 # Archives containing C++ object files must be created using 13505 # the KAI C++ compiler. 13506 case $host in 13507 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13508 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13509 esac 13510 ;; 13511 RCC*) 13512 # Rational C++ 2.4.1 13513 # FIXME: insert proper C++ library support 13514 ld_shlibs_CXX=no 13515 ;; 13516 cxx*) 13517 case $host in 13518 osf3*) 13519 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13520 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13522 ;; 13523 *) 13524 allow_undefined_flag_CXX=' -expect_unresolved \*' 13525 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13526 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13527 echo "-hidden">> $lib.exp~ 13528 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 13529 $RM $lib.exp' 13530 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13531 ;; 13532 esac 13533 13534 hardcode_libdir_separator_CXX=: 13535 13536 # Commands to make compiler produce verbose output that lists 13537 # what "hidden" libraries, object files and flags are used when 13538 # linking a shared library. 13539 # 13540 # There doesn't appear to be a way to prevent this compiler from 13541 # explicitly linking system object files so we need to strip them 13542 # from the output so that they don't get included in the library 13543 # dependencies. 13544 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13545 ;; 13546 *) 13547 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13548 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13549 case $host in 13550 osf3*) 13551 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 13552 ;; 13553 *) 13554 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 13555 ;; 13556 esac 13557 13558 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13559 hardcode_libdir_separator_CXX=: 13560 13561 # Commands to make compiler produce verbose output that lists 13562 # what "hidden" libraries, object files and flags are used when 13563 # linking a shared library. 13564 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13565 13566 else 13567 # FIXME: insert proper C++ library support 13568 ld_shlibs_CXX=no 13569 fi 13570 ;; 13571 esac 13572 ;; 13573 13574 psos*) 13575 # FIXME: insert proper C++ library support 13576 ld_shlibs_CXX=no 13577 ;; 13578 13579 sunos4*) 13580 case $cc_basename in 13581 CC*) 13582 # Sun C++ 4.x 13583 # FIXME: insert proper C++ library support 13584 ld_shlibs_CXX=no 13585 ;; 13586 lcc*) 13587 # Lucid 13588 # FIXME: insert proper C++ library support 13589 ld_shlibs_CXX=no 13590 ;; 13591 *) 13592 # FIXME: insert proper C++ library support 13593 ld_shlibs_CXX=no 13594 ;; 13595 esac 13596 ;; 13597 13598 solaris*) 13599 case $cc_basename in 13600 CC* | sunCC*) 13601 # Sun C++ 4.2, 5.x and Centerline C++ 13602 archive_cmds_need_lc_CXX=yes 13603 no_undefined_flag_CXX=' -zdefs' 13604 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13605 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13606 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13607 13608 hardcode_libdir_flag_spec_CXX='-R$libdir' 13609 hardcode_shlibpath_var_CXX=no 13610 case $host_os in 13611 solaris2.[0-5] | solaris2.[0-5].*) ;; 13612 *) 13613 # The compiler driver will combine and reorder linker options, 13614 # but understands `-z linker_flag'. 13615 # Supported since Solaris 2.6 (maybe 2.5.1?) 13616 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13617 ;; 13618 esac 13619 link_all_deplibs_CXX=yes 13620 13621 output_verbose_link_cmd='func_echo_all' 13622 13623 # Archives containing C++ object files must be created using 13624 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13625 # necessary to make sure instantiated templates are included 13626 # in the archive. 13627 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13628 ;; 13629 gcx*) 13630 # Green Hills C++ Compiler 13631 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13632 13633 # The C++ compiler must be used to create the archive. 13634 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13635 ;; 13636 *) 13637 # GNU C++ compiler with Solaris linker 13638 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13639 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13640 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13641 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13642 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13643 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13644 13645 # Commands to make compiler produce verbose output that lists 13646 # what "hidden" libraries, object files and flags are used when 13647 # linking a shared library. 13648 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13649 else 13650 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13651 # platform. 13652 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13653 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13654 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13655 13656 # Commands to make compiler produce verbose output that lists 13657 # what "hidden" libraries, object files and flags are used when 13658 # linking a shared library. 13659 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13660 fi 13661 13662 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13663 case $host_os in 13664 solaris2.[0-5] | solaris2.[0-5].*) ;; 13665 *) 13666 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13667 ;; 13668 esac 13669 fi 13670 ;; 13671 esac 13672 ;; 13673 13674 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13675 no_undefined_flag_CXX='${wl}-z,text' 13676 archive_cmds_need_lc_CXX=no 13677 hardcode_shlibpath_var_CXX=no 13678 runpath_var='LD_RUN_PATH' 13679 13680 case $cc_basename in 13681 CC*) 13682 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13683 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13684 ;; 13685 *) 13686 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13687 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13688 ;; 13689 esac 13690 ;; 13691 13692 sysv5* | sco3.2v5* | sco5v6*) 13693 # Note: We can NOT use -z defs as we might desire, because we do not 13694 # link with -lc, and that would cause any symbols used from libc to 13695 # always be unresolved, which means just about no library would 13696 # ever link correctly. If we're not using GNU ld we use -z text 13697 # though, which does catch some bad symbols but isn't as heavy-handed 13698 # as -z defs. 13699 no_undefined_flag_CXX='${wl}-z,text' 13700 allow_undefined_flag_CXX='${wl}-z,nodefs' 13701 archive_cmds_need_lc_CXX=no 13702 hardcode_shlibpath_var_CXX=no 13703 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13704 hardcode_libdir_separator_CXX=':' 13705 link_all_deplibs_CXX=yes 13706 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13707 runpath_var='LD_RUN_PATH' 13708 13709 case $cc_basename in 13710 CC*) 13711 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13712 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13713 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13714 '"$old_archive_cmds_CXX" 13715 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13716 '"$reload_cmds_CXX" 13717 ;; 13718 *) 13719 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13720 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13721 ;; 13722 esac 13723 ;; 13724 13725 tandem*) 13726 case $cc_basename in 13727 NCC*) 13728 # NonStop-UX NCC 3.20 13729 # FIXME: insert proper C++ library support 13730 ld_shlibs_CXX=no 13731 ;; 13732 *) 13733 # FIXME: insert proper C++ library support 13734 ld_shlibs_CXX=no 13735 ;; 13736 esac 13737 ;; 13738 13739 vxworks*) 13740 # FIXME: insert proper C++ library support 13741 ld_shlibs_CXX=no 13742 ;; 13743 13744 *) 13745 # FIXME: insert proper C++ library support 13746 ld_shlibs_CXX=no 13747 ;; 13748 esac 13749 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13751$as_echo "$ld_shlibs_CXX" >&6; } 13752 test "$ld_shlibs_CXX" = no && can_build_shared=no 13753 13754 GCC_CXX="$GXX" 13755 LD_CXX="$LD" 13756 13757 ## CAVEAT EMPTOR: 13758 ## There is no encapsulation within the following macros, do not change 13759 ## the running order or otherwise move them around unless you know exactly 13760 ## what you are doing... 13761 # Dependencies to place before and after the object being linked: 13762predep_objects_CXX= 13763postdep_objects_CXX= 13764predeps_CXX= 13765postdeps_CXX= 13766compiler_lib_search_path_CXX= 13767 13768cat > conftest.$ac_ext <<_LT_EOF 13769class Foo 13770{ 13771public: 13772 Foo (void) { a = 0; } 13773private: 13774 int a; 13775}; 13776_LT_EOF 13777 13778 13779_lt_libdeps_save_CFLAGS=$CFLAGS 13780case "$CC $CFLAGS " in #( 13781*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13782*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13783*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13784esac 13785 13786if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13787 (eval $ac_compile) 2>&5 13788 ac_status=$? 13789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13790 test $ac_status = 0; }; then 13791 # Parse the compiler output and extract the necessary 13792 # objects, libraries and library flags. 13793 13794 # Sentinel used to keep track of whether or not we are before 13795 # the conftest object file. 13796 pre_test_object_deps_done=no 13797 13798 for p in `eval "$output_verbose_link_cmd"`; do 13799 case ${prev}${p} in 13800 13801 -L* | -R* | -l*) 13802 # Some compilers place space between "-{L,R}" and the path. 13803 # Remove the space. 13804 if test $p = "-L" || 13805 test $p = "-R"; then 13806 prev=$p 13807 continue 13808 fi 13809 13810 # Expand the sysroot to ease extracting the directories later. 13811 if test -z "$prev"; then 13812 case $p in 13813 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13814 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13815 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13816 esac 13817 fi 13818 case $p in 13819 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13820 esac 13821 if test "$pre_test_object_deps_done" = no; then 13822 case ${prev} in 13823 -L | -R) 13824 # Internal compiler library paths should come after those 13825 # provided the user. The postdeps already come after the 13826 # user supplied libs so there is no need to process them. 13827 if test -z "$compiler_lib_search_path_CXX"; then 13828 compiler_lib_search_path_CXX="${prev}${p}" 13829 else 13830 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13831 fi 13832 ;; 13833 # The "-l" case would never come before the object being 13834 # linked, so don't bother handling this case. 13835 esac 13836 else 13837 if test -z "$postdeps_CXX"; then 13838 postdeps_CXX="${prev}${p}" 13839 else 13840 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13841 fi 13842 fi 13843 prev= 13844 ;; 13845 13846 *.lto.$objext) ;; # Ignore GCC LTO objects 13847 *.$objext) 13848 # This assumes that the test object file only shows up 13849 # once in the compiler output. 13850 if test "$p" = "conftest.$objext"; then 13851 pre_test_object_deps_done=yes 13852 continue 13853 fi 13854 13855 if test "$pre_test_object_deps_done" = no; then 13856 if test -z "$predep_objects_CXX"; then 13857 predep_objects_CXX="$p" 13858 else 13859 predep_objects_CXX="$predep_objects_CXX $p" 13860 fi 13861 else 13862 if test -z "$postdep_objects_CXX"; then 13863 postdep_objects_CXX="$p" 13864 else 13865 postdep_objects_CXX="$postdep_objects_CXX $p" 13866 fi 13867 fi 13868 ;; 13869 13870 *) ;; # Ignore the rest. 13871 13872 esac 13873 done 13874 13875 # Clean up. 13876 rm -f a.out a.exe 13877else 13878 echo "libtool.m4: error: problem compiling CXX test program" 13879fi 13880 13881$RM -f confest.$objext 13882CFLAGS=$_lt_libdeps_save_CFLAGS 13883 13884# PORTME: override above test on systems where it is broken 13885case $host_os in 13886interix[3-9]*) 13887 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13888 # hack all around it, let's just trust "g++" to DTRT. 13889 predep_objects_CXX= 13890 postdep_objects_CXX= 13891 postdeps_CXX= 13892 ;; 13893 13894linux*) 13895 case `$CC -V 2>&1 | sed 5q` in 13896 *Sun\ C*) 13897 # Sun C++ 5.9 13898 13899 # The more standards-conforming stlport4 library is 13900 # incompatible with the Cstd library. Avoid specifying 13901 # it if it's in CXXFLAGS. Ignore libCrun as 13902 # -library=stlport4 depends on it. 13903 case " $CXX $CXXFLAGS " in 13904 *" -library=stlport4 "*) 13905 solaris_use_stlport4=yes 13906 ;; 13907 esac 13908 13909 if test "$solaris_use_stlport4" != yes; then 13910 postdeps_CXX='-library=Cstd -library=Crun' 13911 fi 13912 ;; 13913 esac 13914 ;; 13915 13916solaris*) 13917 case $cc_basename in 13918 CC* | sunCC*) 13919 # The more standards-conforming stlport4 library is 13920 # incompatible with the Cstd library. Avoid specifying 13921 # it if it's in CXXFLAGS. Ignore libCrun as 13922 # -library=stlport4 depends on it. 13923 case " $CXX $CXXFLAGS " in 13924 *" -library=stlport4 "*) 13925 solaris_use_stlport4=yes 13926 ;; 13927 esac 13928 13929 # Adding this requires a known-good setup of shared libraries for 13930 # Sun compiler versions before 5.6, else PIC objects from an old 13931 # archive will be linked into the output, leading to subtle bugs. 13932 if test "$solaris_use_stlport4" != yes; then 13933 postdeps_CXX='-library=Cstd -library=Crun' 13934 fi 13935 ;; 13936 esac 13937 ;; 13938esac 13939 13940 13941case " $postdeps_CXX " in 13942*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13943esac 13944 compiler_lib_search_dirs_CXX= 13945if test -n "${compiler_lib_search_path_CXX}"; then 13946 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13947fi 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 lt_prog_compiler_wl_CXX= 13980lt_prog_compiler_pic_CXX= 13981lt_prog_compiler_static_CXX= 13982 13983 13984 # C++ specific cases for pic, static, wl, etc. 13985 if test "$GXX" = yes; then 13986 lt_prog_compiler_wl_CXX='-Wl,' 13987 lt_prog_compiler_static_CXX='-static' 13988 13989 case $host_os in 13990 aix*) 13991 # All AIX code is PIC. 13992 if test "$host_cpu" = ia64; then 13993 # AIX 5 now supports IA64 processor 13994 lt_prog_compiler_static_CXX='-Bstatic' 13995 fi 13996 ;; 13997 13998 amigaos*) 13999 case $host_cpu in 14000 powerpc) 14001 # see comment about AmigaOS4 .so support 14002 lt_prog_compiler_pic_CXX='-fPIC' 14003 ;; 14004 m68k) 14005 # FIXME: we need at least 68020 code to build shared libraries, but 14006 # adding the `-m68020' flag to GCC prevents building anything better, 14007 # like `-m68040'. 14008 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14009 ;; 14010 esac 14011 ;; 14012 14013 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14014 # PIC is the default for these OSes. 14015 ;; 14016 mingw* | cygwin* | os2* | pw32* | cegcc*) 14017 # This hack is so that the source file can tell whether it is being 14018 # built for inclusion in a dll (and should export symbols for example). 14019 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14020 # (--disable-auto-import) libraries 14021 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14022 ;; 14023 darwin* | rhapsody*) 14024 # PIC is the default on this platform 14025 # Common symbols not allowed in MH_DYLIB files 14026 lt_prog_compiler_pic_CXX='-fno-common' 14027 ;; 14028 *djgpp*) 14029 # DJGPP does not support shared libraries at all 14030 lt_prog_compiler_pic_CXX= 14031 ;; 14032 haiku*) 14033 # PIC is the default for Haiku. 14034 # The "-static" flag exists, but is broken. 14035 lt_prog_compiler_static_CXX= 14036 ;; 14037 interix[3-9]*) 14038 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14039 # Instead, we relocate shared libraries at runtime. 14040 ;; 14041 sysv4*MP*) 14042 if test -d /usr/nec; then 14043 lt_prog_compiler_pic_CXX=-Kconform_pic 14044 fi 14045 ;; 14046 hpux*) 14047 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14048 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14049 # sets the default TLS model and affects inlining. 14050 case $host_cpu in 14051 hppa*64*) 14052 ;; 14053 *) 14054 lt_prog_compiler_pic_CXX='-fPIC' 14055 ;; 14056 esac 14057 ;; 14058 *qnx* | *nto*) 14059 # QNX uses GNU C++, but need to define -shared option too, otherwise 14060 # it will coredump. 14061 lt_prog_compiler_pic_CXX='-fPIC -shared' 14062 ;; 14063 *) 14064 lt_prog_compiler_pic_CXX='-fPIC' 14065 ;; 14066 esac 14067 else 14068 case $host_os in 14069 aix[4-9]*) 14070 # All AIX code is PIC. 14071 if test "$host_cpu" = ia64; then 14072 # AIX 5 now supports IA64 processor 14073 lt_prog_compiler_static_CXX='-Bstatic' 14074 else 14075 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14076 fi 14077 ;; 14078 chorus*) 14079 case $cc_basename in 14080 cxch68*) 14081 # Green Hills C++ Compiler 14082 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14083 ;; 14084 esac 14085 ;; 14086 mingw* | cygwin* | os2* | pw32* | cegcc*) 14087 # This hack is so that the source file can tell whether it is being 14088 # built for inclusion in a dll (and should export symbols for example). 14089 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14090 ;; 14091 dgux*) 14092 case $cc_basename in 14093 ec++*) 14094 lt_prog_compiler_pic_CXX='-KPIC' 14095 ;; 14096 ghcx*) 14097 # Green Hills C++ Compiler 14098 lt_prog_compiler_pic_CXX='-pic' 14099 ;; 14100 *) 14101 ;; 14102 esac 14103 ;; 14104 freebsd* | dragonfly*) 14105 # FreeBSD uses GNU C++ 14106 ;; 14107 hpux9* | hpux10* | hpux11*) 14108 case $cc_basename in 14109 CC*) 14110 lt_prog_compiler_wl_CXX='-Wl,' 14111 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14112 if test "$host_cpu" != ia64; then 14113 lt_prog_compiler_pic_CXX='+Z' 14114 fi 14115 ;; 14116 aCC*) 14117 lt_prog_compiler_wl_CXX='-Wl,' 14118 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14119 case $host_cpu in 14120 hppa*64*|ia64*) 14121 # +Z the default 14122 ;; 14123 *) 14124 lt_prog_compiler_pic_CXX='+Z' 14125 ;; 14126 esac 14127 ;; 14128 *) 14129 ;; 14130 esac 14131 ;; 14132 interix*) 14133 # This is c89, which is MS Visual C++ (no shared libs) 14134 # Anyone wants to do a port? 14135 ;; 14136 irix5* | irix6* | nonstopux*) 14137 case $cc_basename in 14138 CC*) 14139 lt_prog_compiler_wl_CXX='-Wl,' 14140 lt_prog_compiler_static_CXX='-non_shared' 14141 # CC pic flag -KPIC is the default. 14142 ;; 14143 *) 14144 ;; 14145 esac 14146 ;; 14147 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14148 case $cc_basename in 14149 KCC*) 14150 # KAI C++ Compiler 14151 lt_prog_compiler_wl_CXX='--backend -Wl,' 14152 lt_prog_compiler_pic_CXX='-fPIC' 14153 ;; 14154 ecpc* ) 14155 # old Intel C++ for x86_64 which still supported -KPIC. 14156 lt_prog_compiler_wl_CXX='-Wl,' 14157 lt_prog_compiler_pic_CXX='-KPIC' 14158 lt_prog_compiler_static_CXX='-static' 14159 ;; 14160 icpc* ) 14161 # Intel C++, used to be incompatible with GCC. 14162 # ICC 10 doesn't accept -KPIC any more. 14163 lt_prog_compiler_wl_CXX='-Wl,' 14164 lt_prog_compiler_pic_CXX='-fPIC' 14165 lt_prog_compiler_static_CXX='-static' 14166 ;; 14167 pgCC* | pgcpp*) 14168 # Portland Group C++ compiler 14169 lt_prog_compiler_wl_CXX='-Wl,' 14170 lt_prog_compiler_pic_CXX='-fpic' 14171 lt_prog_compiler_static_CXX='-Bstatic' 14172 ;; 14173 cxx*) 14174 # Compaq C++ 14175 # Make sure the PIC flag is empty. It appears that all Alpha 14176 # Linux and Compaq Tru64 Unix objects are PIC. 14177 lt_prog_compiler_pic_CXX= 14178 lt_prog_compiler_static_CXX='-non_shared' 14179 ;; 14180 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14181 # IBM XL 8.0, 9.0 on PPC and BlueGene 14182 lt_prog_compiler_wl_CXX='-Wl,' 14183 lt_prog_compiler_pic_CXX='-qpic' 14184 lt_prog_compiler_static_CXX='-qstaticlink' 14185 ;; 14186 *) 14187 case `$CC -V 2>&1 | sed 5q` in 14188 *Sun\ C*) 14189 # Sun C++ 5.9 14190 lt_prog_compiler_pic_CXX='-KPIC' 14191 lt_prog_compiler_static_CXX='-Bstatic' 14192 lt_prog_compiler_wl_CXX='-Qoption ld ' 14193 ;; 14194 esac 14195 ;; 14196 esac 14197 ;; 14198 lynxos*) 14199 ;; 14200 m88k*) 14201 ;; 14202 mvs*) 14203 case $cc_basename in 14204 cxx*) 14205 lt_prog_compiler_pic_CXX='-W c,exportall' 14206 ;; 14207 *) 14208 ;; 14209 esac 14210 ;; 14211 netbsd*) 14212 ;; 14213 *qnx* | *nto*) 14214 # QNX uses GNU C++, but need to define -shared option too, otherwise 14215 # it will coredump. 14216 lt_prog_compiler_pic_CXX='-fPIC -shared' 14217 ;; 14218 osf3* | osf4* | osf5*) 14219 case $cc_basename in 14220 KCC*) 14221 lt_prog_compiler_wl_CXX='--backend -Wl,' 14222 ;; 14223 RCC*) 14224 # Rational C++ 2.4.1 14225 lt_prog_compiler_pic_CXX='-pic' 14226 ;; 14227 cxx*) 14228 # Digital/Compaq C++ 14229 lt_prog_compiler_wl_CXX='-Wl,' 14230 # Make sure the PIC flag is empty. It appears that all Alpha 14231 # Linux and Compaq Tru64 Unix objects are PIC. 14232 lt_prog_compiler_pic_CXX= 14233 lt_prog_compiler_static_CXX='-non_shared' 14234 ;; 14235 *) 14236 ;; 14237 esac 14238 ;; 14239 psos*) 14240 ;; 14241 solaris*) 14242 case $cc_basename in 14243 CC* | sunCC*) 14244 # Sun C++ 4.2, 5.x and Centerline C++ 14245 lt_prog_compiler_pic_CXX='-KPIC' 14246 lt_prog_compiler_static_CXX='-Bstatic' 14247 lt_prog_compiler_wl_CXX='-Qoption ld ' 14248 ;; 14249 gcx*) 14250 # Green Hills C++ Compiler 14251 lt_prog_compiler_pic_CXX='-PIC' 14252 ;; 14253 *) 14254 ;; 14255 esac 14256 ;; 14257 sunos4*) 14258 case $cc_basename in 14259 CC*) 14260 # Sun C++ 4.x 14261 lt_prog_compiler_pic_CXX='-pic' 14262 lt_prog_compiler_static_CXX='-Bstatic' 14263 ;; 14264 lcc*) 14265 # Lucid 14266 lt_prog_compiler_pic_CXX='-pic' 14267 ;; 14268 *) 14269 ;; 14270 esac 14271 ;; 14272 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14273 case $cc_basename in 14274 CC*) 14275 lt_prog_compiler_wl_CXX='-Wl,' 14276 lt_prog_compiler_pic_CXX='-KPIC' 14277 lt_prog_compiler_static_CXX='-Bstatic' 14278 ;; 14279 esac 14280 ;; 14281 tandem*) 14282 case $cc_basename in 14283 NCC*) 14284 # NonStop-UX NCC 3.20 14285 lt_prog_compiler_pic_CXX='-KPIC' 14286 ;; 14287 *) 14288 ;; 14289 esac 14290 ;; 14291 vxworks*) 14292 ;; 14293 *) 14294 lt_prog_compiler_can_build_shared_CXX=no 14295 ;; 14296 esac 14297 fi 14298 14299case $host_os in 14300 # For platforms which do not support PIC, -DPIC is meaningless: 14301 *djgpp*) 14302 lt_prog_compiler_pic_CXX= 14303 ;; 14304 *) 14305 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14306 ;; 14307esac 14308 14309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14310$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14311if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14312 $as_echo_n "(cached) " >&6 14313else 14314 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14315fi 14316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14317$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14318lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14319 14320# 14321# Check to make sure the PIC flag actually works. 14322# 14323if test -n "$lt_prog_compiler_pic_CXX"; then 14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14325$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14326if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14327 $as_echo_n "(cached) " >&6 14328else 14329 lt_cv_prog_compiler_pic_works_CXX=no 14330 ac_outfile=conftest.$ac_objext 14331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14332 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14333 # Insert the option either (1) after the last *FLAGS variable, or 14334 # (2) before a word containing "conftest.", or (3) at the end. 14335 # Note that $ac_compile itself does not contain backslashes and begins 14336 # with a dollar sign (not a hyphen), so the echo should work correctly. 14337 # The option is referenced via a variable to avoid confusing sed. 14338 lt_compile=`echo "$ac_compile" | $SED \ 14339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14341 -e 's:$: $lt_compiler_flag:'` 14342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14343 (eval "$lt_compile" 2>conftest.err) 14344 ac_status=$? 14345 cat conftest.err >&5 14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14347 if (exit $ac_status) && test -s "$ac_outfile"; then 14348 # The compiler can only warn and ignore the option if not recognized 14349 # So say no if there are warnings other than the usual output. 14350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14353 lt_cv_prog_compiler_pic_works_CXX=yes 14354 fi 14355 fi 14356 $RM conftest* 14357 14358fi 14359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14360$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14361 14362if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14363 case $lt_prog_compiler_pic_CXX in 14364 "" | " "*) ;; 14365 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14366 esac 14367else 14368 lt_prog_compiler_pic_CXX= 14369 lt_prog_compiler_can_build_shared_CXX=no 14370fi 14371 14372fi 14373 14374 14375 14376 14377 14378# 14379# Check to make sure the static flag actually works. 14380# 14381wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14383$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14384if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14385 $as_echo_n "(cached) " >&6 14386else 14387 lt_cv_prog_compiler_static_works_CXX=no 14388 save_LDFLAGS="$LDFLAGS" 14389 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14390 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14392 # The linker can only warn and ignore the option if not recognized 14393 # So say no if there are warnings 14394 if test -s conftest.err; then 14395 # Append any errors to the config.log. 14396 cat conftest.err 1>&5 14397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14399 if diff conftest.exp conftest.er2 >/dev/null; then 14400 lt_cv_prog_compiler_static_works_CXX=yes 14401 fi 14402 else 14403 lt_cv_prog_compiler_static_works_CXX=yes 14404 fi 14405 fi 14406 $RM -r conftest* 14407 LDFLAGS="$save_LDFLAGS" 14408 14409fi 14410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14411$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14412 14413if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14414 : 14415else 14416 lt_prog_compiler_static_CXX= 14417fi 14418 14419 14420 14421 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14423$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14424if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14425 $as_echo_n "(cached) " >&6 14426else 14427 lt_cv_prog_compiler_c_o_CXX=no 14428 $RM -r conftest 2>/dev/null 14429 mkdir conftest 14430 cd conftest 14431 mkdir out 14432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14433 14434 lt_compiler_flag="-o out/conftest2.$ac_objext" 14435 # Insert the option either (1) after the last *FLAGS variable, or 14436 # (2) before a word containing "conftest.", or (3) at the end. 14437 # Note that $ac_compile itself does not contain backslashes and begins 14438 # with a dollar sign (not a hyphen), so the echo should work correctly. 14439 lt_compile=`echo "$ac_compile" | $SED \ 14440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14442 -e 's:$: $lt_compiler_flag:'` 14443 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14444 (eval "$lt_compile" 2>out/conftest.err) 14445 ac_status=$? 14446 cat out/conftest.err >&5 14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14448 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14449 then 14450 # The compiler can only warn and ignore the option if not recognized 14451 # So say no if there are warnings 14452 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14453 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14454 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14455 lt_cv_prog_compiler_c_o_CXX=yes 14456 fi 14457 fi 14458 chmod u+w . 2>&5 14459 $RM conftest* 14460 # SGI C++ compiler will create directory out/ii_files/ for 14461 # template instantiation 14462 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14463 $RM out/* && rmdir out 14464 cd .. 14465 $RM -r conftest 14466 $RM conftest* 14467 14468fi 14469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14470$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14471 14472 14473 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14475$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14476if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14477 $as_echo_n "(cached) " >&6 14478else 14479 lt_cv_prog_compiler_c_o_CXX=no 14480 $RM -r conftest 2>/dev/null 14481 mkdir conftest 14482 cd conftest 14483 mkdir out 14484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14485 14486 lt_compiler_flag="-o out/conftest2.$ac_objext" 14487 # Insert the option either (1) after the last *FLAGS variable, or 14488 # (2) before a word containing "conftest.", or (3) at the end. 14489 # Note that $ac_compile itself does not contain backslashes and begins 14490 # with a dollar sign (not a hyphen), so the echo should work correctly. 14491 lt_compile=`echo "$ac_compile" | $SED \ 14492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14494 -e 's:$: $lt_compiler_flag:'` 14495 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14496 (eval "$lt_compile" 2>out/conftest.err) 14497 ac_status=$? 14498 cat out/conftest.err >&5 14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14500 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14501 then 14502 # The compiler can only warn and ignore the option if not recognized 14503 # So say no if there are warnings 14504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14507 lt_cv_prog_compiler_c_o_CXX=yes 14508 fi 14509 fi 14510 chmod u+w . 2>&5 14511 $RM conftest* 14512 # SGI C++ compiler will create directory out/ii_files/ for 14513 # template instantiation 14514 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14515 $RM out/* && rmdir out 14516 cd .. 14517 $RM -r conftest 14518 $RM conftest* 14519 14520fi 14521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14522$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14523 14524 14525 14526 14527hard_links="nottested" 14528if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14529 # do not overwrite the value of need_locks provided by the user 14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14531$as_echo_n "checking if we can lock with hard links... " >&6; } 14532 hard_links=yes 14533 $RM conftest* 14534 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14535 touch conftest.a 14536 ln conftest.a conftest.b 2>&5 || hard_links=no 14537 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14539$as_echo "$hard_links" >&6; } 14540 if test "$hard_links" = no; then 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14542$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14543 need_locks=warn 14544 fi 14545else 14546 need_locks=no 14547fi 14548 14549 14550 14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14552$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14553 14554 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14555 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14556 case $host_os in 14557 aix[4-9]*) 14558 # If we're using GNU nm, then we don't want the "-C" option. 14559 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14560 # Also, AIX nm treats weak defined symbols like other global defined 14561 # symbols, whereas GNU nm marks them as "W". 14562 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14563 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14564 else 14565 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14566 fi 14567 ;; 14568 pw32*) 14569 export_symbols_cmds_CXX="$ltdll_cmds" 14570 ;; 14571 cygwin* | mingw* | cegcc*) 14572 case $cc_basename in 14573 cl*) 14574 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14575 ;; 14576 *) 14577 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14578 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14579 ;; 14580 esac 14581 ;; 14582 *) 14583 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14584 ;; 14585 esac 14586 14587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14588$as_echo "$ld_shlibs_CXX" >&6; } 14589test "$ld_shlibs_CXX" = no && can_build_shared=no 14590 14591with_gnu_ld_CXX=$with_gnu_ld 14592 14593 14594 14595 14596 14597 14598# 14599# Do we need to explicitly link libc? 14600# 14601case "x$archive_cmds_need_lc_CXX" in 14602x|xyes) 14603 # Assume -lc should be added 14604 archive_cmds_need_lc_CXX=yes 14605 14606 if test "$enable_shared" = yes && test "$GCC" = yes; then 14607 case $archive_cmds_CXX in 14608 *'~'*) 14609 # FIXME: we may have to deal with multi-command sequences. 14610 ;; 14611 '$CC '*) 14612 # Test whether the compiler implicitly links with -lc since on some 14613 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14614 # to ld, don't add -lc before -lgcc. 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14616$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14617if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14618 $as_echo_n "(cached) " >&6 14619else 14620 $RM conftest* 14621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14622 14623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14624 (eval $ac_compile) 2>&5 14625 ac_status=$? 14626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14627 test $ac_status = 0; } 2>conftest.err; then 14628 soname=conftest 14629 lib=conftest 14630 libobjs=conftest.$ac_objext 14631 deplibs= 14632 wl=$lt_prog_compiler_wl_CXX 14633 pic_flag=$lt_prog_compiler_pic_CXX 14634 compiler_flags=-v 14635 linker_flags=-v 14636 verstring= 14637 output_objdir=. 14638 libname=conftest 14639 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14640 allow_undefined_flag_CXX= 14641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14642 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14643 ac_status=$? 14644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14645 test $ac_status = 0; } 14646 then 14647 lt_cv_archive_cmds_need_lc_CXX=no 14648 else 14649 lt_cv_archive_cmds_need_lc_CXX=yes 14650 fi 14651 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14652 else 14653 cat conftest.err 1>&5 14654 fi 14655 $RM conftest* 14656 14657fi 14658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14659$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14660 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14661 ;; 14662 esac 14663 fi 14664 ;; 14665esac 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14729$as_echo_n "checking dynamic linker characteristics... " >&6; } 14730 14731library_names_spec= 14732libname_spec='lib$name' 14733soname_spec= 14734shrext_cmds=".so" 14735postinstall_cmds= 14736postuninstall_cmds= 14737finish_cmds= 14738finish_eval= 14739shlibpath_var= 14740shlibpath_overrides_runpath=unknown 14741version_type=none 14742dynamic_linker="$host_os ld.so" 14743sys_lib_dlsearch_path_spec="/lib /usr/lib" 14744need_lib_prefix=unknown 14745hardcode_into_libs=no 14746 14747# when you set need_version to no, make sure it does not cause -set_version 14748# flags to be left without arguments 14749need_version=unknown 14750 14751case $host_os in 14752aix3*) 14753 version_type=linux # correct to gnu/linux during the next big refactor 14754 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14755 shlibpath_var=LIBPATH 14756 14757 # AIX 3 has no versioning support, so we append a major version to the name. 14758 soname_spec='${libname}${release}${shared_ext}$major' 14759 ;; 14760 14761aix[4-9]*) 14762 version_type=linux # correct to gnu/linux during the next big refactor 14763 need_lib_prefix=no 14764 need_version=no 14765 hardcode_into_libs=yes 14766 if test "$host_cpu" = ia64; then 14767 # AIX 5 supports IA64 14768 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14769 shlibpath_var=LD_LIBRARY_PATH 14770 else 14771 # With GCC up to 2.95.x, collect2 would create an import file 14772 # for dependence libraries. The import file would start with 14773 # the line `#! .'. This would cause the generated library to 14774 # depend on `.', always an invalid library. This was fixed in 14775 # development snapshots of GCC prior to 3.0. 14776 case $host_os in 14777 aix4 | aix4.[01] | aix4.[01].*) 14778 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14779 echo ' yes ' 14780 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14781 : 14782 else 14783 can_build_shared=no 14784 fi 14785 ;; 14786 esac 14787 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14788 # soname into executable. Probably we can add versioning support to 14789 # collect2, so additional links can be useful in future. 14790 if test "$aix_use_runtimelinking" = yes; then 14791 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14792 # instead of lib<name>.a to let people know that these are not 14793 # typical AIX shared libraries. 14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14795 else 14796 # We preserve .a as extension for shared libraries through AIX4.2 14797 # and later when we are not doing run time linking. 14798 library_names_spec='${libname}${release}.a $libname.a' 14799 soname_spec='${libname}${release}${shared_ext}$major' 14800 fi 14801 shlibpath_var=LIBPATH 14802 fi 14803 ;; 14804 14805amigaos*) 14806 case $host_cpu in 14807 powerpc) 14808 # Since July 2007 AmigaOS4 officially supports .so libraries. 14809 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14811 ;; 14812 m68k) 14813 library_names_spec='$libname.ixlibrary $libname.a' 14814 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14815 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14816 ;; 14817 esac 14818 ;; 14819 14820beos*) 14821 library_names_spec='${libname}${shared_ext}' 14822 dynamic_linker="$host_os ld.so" 14823 shlibpath_var=LIBRARY_PATH 14824 ;; 14825 14826bsdi[45]*) 14827 version_type=linux # correct to gnu/linux during the next big refactor 14828 need_version=no 14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14830 soname_spec='${libname}${release}${shared_ext}$major' 14831 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14832 shlibpath_var=LD_LIBRARY_PATH 14833 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14834 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14835 # the default ld.so.conf also contains /usr/contrib/lib and 14836 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14837 # libtool to hard-code these into programs 14838 ;; 14839 14840cygwin* | mingw* | pw32* | cegcc*) 14841 version_type=windows 14842 shrext_cmds=".dll" 14843 need_version=no 14844 need_lib_prefix=no 14845 14846 case $GCC,$cc_basename in 14847 yes,*) 14848 # gcc 14849 library_names_spec='$libname.dll.a' 14850 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14851 postinstall_cmds='base_file=`basename \${file}`~ 14852 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14853 dldir=$destdir/`dirname \$dlpath`~ 14854 test -d \$dldir || mkdir -p \$dldir~ 14855 $install_prog $dir/$dlname \$dldir/$dlname~ 14856 chmod a+x \$dldir/$dlname~ 14857 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14858 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14859 fi' 14860 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14861 dlpath=$dir/\$dldll~ 14862 $RM \$dlpath' 14863 shlibpath_overrides_runpath=yes 14864 14865 case $host_os in 14866 cygwin*) 14867 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14868 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14869 14870 ;; 14871 mingw* | cegcc*) 14872 # MinGW DLLs use traditional 'lib' prefix 14873 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14874 ;; 14875 pw32*) 14876 # pw32 DLLs use 'pw' prefix rather than 'lib' 14877 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14878 ;; 14879 esac 14880 dynamic_linker='Win32 ld.exe' 14881 ;; 14882 14883 *,cl*) 14884 # Native MSVC 14885 libname_spec='$name' 14886 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14887 library_names_spec='${libname}.dll.lib' 14888 14889 case $build_os in 14890 mingw*) 14891 sys_lib_search_path_spec= 14892 lt_save_ifs=$IFS 14893 IFS=';' 14894 for lt_path in $LIB 14895 do 14896 IFS=$lt_save_ifs 14897 # Let DOS variable expansion print the short 8.3 style file name. 14898 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14899 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14900 done 14901 IFS=$lt_save_ifs 14902 # Convert to MSYS style. 14903 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14904 ;; 14905 cygwin*) 14906 # Convert to unix form, then to dos form, then back to unix form 14907 # but this time dos style (no spaces!) so that the unix form looks 14908 # like /cygdrive/c/PROGRA~1:/cygdr... 14909 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14910 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14911 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14912 ;; 14913 *) 14914 sys_lib_search_path_spec="$LIB" 14915 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14916 # It is most probably a Windows format PATH. 14917 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14918 else 14919 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14920 fi 14921 # FIXME: find the short name or the path components, as spaces are 14922 # common. (e.g. "Program Files" -> "PROGRA~1") 14923 ;; 14924 esac 14925 14926 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14927 postinstall_cmds='base_file=`basename \${file}`~ 14928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14929 dldir=$destdir/`dirname \$dlpath`~ 14930 test -d \$dldir || mkdir -p \$dldir~ 14931 $install_prog $dir/$dlname \$dldir/$dlname' 14932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14933 dlpath=$dir/\$dldll~ 14934 $RM \$dlpath' 14935 shlibpath_overrides_runpath=yes 14936 dynamic_linker='Win32 link.exe' 14937 ;; 14938 14939 *) 14940 # Assume MSVC wrapper 14941 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14942 dynamic_linker='Win32 ld.exe' 14943 ;; 14944 esac 14945 # FIXME: first we should search . and the directory the executable is in 14946 shlibpath_var=PATH 14947 ;; 14948 14949darwin* | rhapsody*) 14950 dynamic_linker="$host_os dyld" 14951 version_type=darwin 14952 need_lib_prefix=no 14953 need_version=no 14954 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14955 soname_spec='${libname}${release}${major}$shared_ext' 14956 shlibpath_overrides_runpath=yes 14957 shlibpath_var=DYLD_LIBRARY_PATH 14958 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14959 14960 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14961 ;; 14962 14963dgux*) 14964 version_type=linux # correct to gnu/linux during the next big refactor 14965 need_lib_prefix=no 14966 need_version=no 14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14968 soname_spec='${libname}${release}${shared_ext}$major' 14969 shlibpath_var=LD_LIBRARY_PATH 14970 ;; 14971 14972freebsd* | dragonfly*) 14973 # DragonFly does not have aout. When/if they implement a new 14974 # versioning mechanism, adjust this. 14975 if test -x /usr/bin/objformat; then 14976 objformat=`/usr/bin/objformat` 14977 else 14978 case $host_os in 14979 freebsd[23].*) objformat=aout ;; 14980 *) objformat=elf ;; 14981 esac 14982 fi 14983 version_type=freebsd-$objformat 14984 case $version_type in 14985 freebsd-elf*) 14986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14987 need_version=no 14988 need_lib_prefix=no 14989 ;; 14990 freebsd-*) 14991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14992 need_version=yes 14993 ;; 14994 esac 14995 shlibpath_var=LD_LIBRARY_PATH 14996 case $host_os in 14997 freebsd2.*) 14998 shlibpath_overrides_runpath=yes 14999 ;; 15000 freebsd3.[01]* | freebsdelf3.[01]*) 15001 shlibpath_overrides_runpath=yes 15002 hardcode_into_libs=yes 15003 ;; 15004 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15005 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15006 shlibpath_overrides_runpath=no 15007 hardcode_into_libs=yes 15008 ;; 15009 *) # from 4.6 on, and DragonFly 15010 shlibpath_overrides_runpath=yes 15011 hardcode_into_libs=yes 15012 ;; 15013 esac 15014 ;; 15015 15016gnu*) 15017 version_type=linux # correct to gnu/linux during the next big refactor 15018 need_lib_prefix=no 15019 need_version=no 15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15021 soname_spec='${libname}${release}${shared_ext}$major' 15022 shlibpath_var=LD_LIBRARY_PATH 15023 shlibpath_overrides_runpath=no 15024 hardcode_into_libs=yes 15025 ;; 15026 15027haiku*) 15028 version_type=linux # correct to gnu/linux during the next big refactor 15029 need_lib_prefix=no 15030 need_version=no 15031 dynamic_linker="$host_os runtime_loader" 15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15033 soname_spec='${libname}${release}${shared_ext}$major' 15034 shlibpath_var=LIBRARY_PATH 15035 shlibpath_overrides_runpath=yes 15036 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15037 hardcode_into_libs=yes 15038 ;; 15039 15040hpux9* | hpux10* | hpux11*) 15041 # Give a soname corresponding to the major version so that dld.sl refuses to 15042 # link against other versions. 15043 version_type=sunos 15044 need_lib_prefix=no 15045 need_version=no 15046 case $host_cpu in 15047 ia64*) 15048 shrext_cmds='.so' 15049 hardcode_into_libs=yes 15050 dynamic_linker="$host_os dld.so" 15051 shlibpath_var=LD_LIBRARY_PATH 15052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15054 soname_spec='${libname}${release}${shared_ext}$major' 15055 if test "X$HPUX_IA64_MODE" = X32; then 15056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15057 else 15058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15059 fi 15060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15061 ;; 15062 hppa*64*) 15063 shrext_cmds='.sl' 15064 hardcode_into_libs=yes 15065 dynamic_linker="$host_os dld.sl" 15066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15069 soname_spec='${libname}${release}${shared_ext}$major' 15070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15072 ;; 15073 *) 15074 shrext_cmds='.sl' 15075 dynamic_linker="$host_os dld.sl" 15076 shlibpath_var=SHLIB_PATH 15077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15079 soname_spec='${libname}${release}${shared_ext}$major' 15080 ;; 15081 esac 15082 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15083 postinstall_cmds='chmod 555 $lib' 15084 # or fails outright, so override atomically: 15085 install_override_mode=555 15086 ;; 15087 15088interix[3-9]*) 15089 version_type=linux # correct to gnu/linux during the next big refactor 15090 need_lib_prefix=no 15091 need_version=no 15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15093 soname_spec='${libname}${release}${shared_ext}$major' 15094 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15095 shlibpath_var=LD_LIBRARY_PATH 15096 shlibpath_overrides_runpath=no 15097 hardcode_into_libs=yes 15098 ;; 15099 15100irix5* | irix6* | nonstopux*) 15101 case $host_os in 15102 nonstopux*) version_type=nonstopux ;; 15103 *) 15104 if test "$lt_cv_prog_gnu_ld" = yes; then 15105 version_type=linux # correct to gnu/linux during the next big refactor 15106 else 15107 version_type=irix 15108 fi ;; 15109 esac 15110 need_lib_prefix=no 15111 need_version=no 15112 soname_spec='${libname}${release}${shared_ext}$major' 15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15114 case $host_os in 15115 irix5* | nonstopux*) 15116 libsuff= shlibsuff= 15117 ;; 15118 *) 15119 case $LD in # libtool.m4 will add one of these switches to LD 15120 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15121 libsuff= shlibsuff= libmagic=32-bit;; 15122 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15123 libsuff=32 shlibsuff=N32 libmagic=N32;; 15124 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15125 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15126 *) libsuff= shlibsuff= libmagic=never-match;; 15127 esac 15128 ;; 15129 esac 15130 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15131 shlibpath_overrides_runpath=no 15132 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15133 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15134 hardcode_into_libs=yes 15135 ;; 15136 15137# No shared lib support for Linux oldld, aout, or coff. 15138linux*oldld* | linux*aout* | linux*coff*) 15139 dynamic_linker=no 15140 ;; 15141 15142# This must be glibc/ELF. 15143linux* | k*bsd*-gnu | kopensolaris*-gnu) 15144 version_type=linux # correct to gnu/linux during the next big refactor 15145 need_lib_prefix=no 15146 need_version=no 15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15148 soname_spec='${libname}${release}${shared_ext}$major' 15149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15150 shlibpath_var=LD_LIBRARY_PATH 15151 shlibpath_overrides_runpath=no 15152 15153 # Some binutils ld are patched to set DT_RUNPATH 15154 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15155 $as_echo_n "(cached) " >&6 15156else 15157 lt_cv_shlibpath_overrides_runpath=no 15158 save_LDFLAGS=$LDFLAGS 15159 save_libdir=$libdir 15160 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15161 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15163/* end confdefs.h. */ 15164 15165int 15166main () 15167{ 15168 15169 ; 15170 return 0; 15171} 15172_ACEOF 15173if ac_fn_cxx_try_link "$LINENO"; then : 15174 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15175 lt_cv_shlibpath_overrides_runpath=yes 15176fi 15177fi 15178rm -f core conftest.err conftest.$ac_objext \ 15179 conftest$ac_exeext conftest.$ac_ext 15180 LDFLAGS=$save_LDFLAGS 15181 libdir=$save_libdir 15182 15183fi 15184 15185 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15186 15187 # This implies no fast_install, which is unacceptable. 15188 # Some rework will be needed to allow for fast_install 15189 # before this can be enabled. 15190 hardcode_into_libs=yes 15191 15192 # Add ABI-specific directories to the system library path. 15193 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 15194 15195 # Append ld.so.conf contents to the search path 15196 if test -f /etc/ld.so.conf; then 15197 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' ' '` 15198 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 15199 15200 fi 15201 15202 # We used to test for /lib/ld.so.1 and disable shared libraries on 15203 # powerpc, because MkLinux only supported shared libraries with the 15204 # GNU dynamic linker. Since this was broken with cross compilers, 15205 # most powerpc-linux boxes support dynamic linking these days and 15206 # people can always --disable-shared, the test was removed, and we 15207 # assume the GNU/Linux dynamic linker is in use. 15208 dynamic_linker='GNU/Linux ld.so' 15209 ;; 15210 15211netbsd*) 15212 version_type=sunos 15213 need_lib_prefix=no 15214 need_version=no 15215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15218 dynamic_linker='NetBSD (a.out) ld.so' 15219 else 15220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15221 soname_spec='${libname}${release}${shared_ext}$major' 15222 dynamic_linker='NetBSD ld.elf_so' 15223 fi 15224 shlibpath_var=LD_LIBRARY_PATH 15225 shlibpath_overrides_runpath=yes 15226 hardcode_into_libs=yes 15227 ;; 15228 15229newsos6) 15230 version_type=linux # correct to gnu/linux during the next big refactor 15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15232 shlibpath_var=LD_LIBRARY_PATH 15233 shlibpath_overrides_runpath=yes 15234 ;; 15235 15236*nto* | *qnx*) 15237 version_type=qnx 15238 need_lib_prefix=no 15239 need_version=no 15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15241 soname_spec='${libname}${release}${shared_ext}$major' 15242 shlibpath_var=LD_LIBRARY_PATH 15243 shlibpath_overrides_runpath=no 15244 hardcode_into_libs=yes 15245 dynamic_linker='ldqnx.so' 15246 ;; 15247 15248openbsd*) 15249 version_type=sunos 15250 sys_lib_dlsearch_path_spec="/usr/lib" 15251 need_lib_prefix=no 15252 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15253 case $host_os in 15254 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15255 *) need_version=no ;; 15256 esac 15257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15259 shlibpath_var=LD_LIBRARY_PATH 15260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15261 case $host_os in 15262 openbsd2.[89] | openbsd2.[89].*) 15263 shlibpath_overrides_runpath=no 15264 ;; 15265 *) 15266 shlibpath_overrides_runpath=yes 15267 ;; 15268 esac 15269 else 15270 shlibpath_overrides_runpath=yes 15271 fi 15272 ;; 15273 15274os2*) 15275 libname_spec='$name' 15276 shrext_cmds=".dll" 15277 need_lib_prefix=no 15278 library_names_spec='$libname${shared_ext} $libname.a' 15279 dynamic_linker='OS/2 ld.exe' 15280 shlibpath_var=LIBPATH 15281 ;; 15282 15283osf3* | osf4* | osf5*) 15284 version_type=osf 15285 need_lib_prefix=no 15286 need_version=no 15287 soname_spec='${libname}${release}${shared_ext}$major' 15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15289 shlibpath_var=LD_LIBRARY_PATH 15290 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15291 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15292 ;; 15293 15294rdos*) 15295 dynamic_linker=no 15296 ;; 15297 15298solaris*) 15299 version_type=linux # correct to gnu/linux during the next big refactor 15300 need_lib_prefix=no 15301 need_version=no 15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15303 soname_spec='${libname}${release}${shared_ext}$major' 15304 shlibpath_var=LD_LIBRARY_PATH 15305 shlibpath_overrides_runpath=yes 15306 hardcode_into_libs=yes 15307 # ldd complains unless libraries are executable 15308 postinstall_cmds='chmod +x $lib' 15309 ;; 15310 15311sunos4*) 15312 version_type=sunos 15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15315 shlibpath_var=LD_LIBRARY_PATH 15316 shlibpath_overrides_runpath=yes 15317 if test "$with_gnu_ld" = yes; then 15318 need_lib_prefix=no 15319 fi 15320 need_version=yes 15321 ;; 15322 15323sysv4 | sysv4.3*) 15324 version_type=linux # correct to gnu/linux during the next big refactor 15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15326 soname_spec='${libname}${release}${shared_ext}$major' 15327 shlibpath_var=LD_LIBRARY_PATH 15328 case $host_vendor in 15329 sni) 15330 shlibpath_overrides_runpath=no 15331 need_lib_prefix=no 15332 runpath_var=LD_RUN_PATH 15333 ;; 15334 siemens) 15335 need_lib_prefix=no 15336 ;; 15337 motorola) 15338 need_lib_prefix=no 15339 need_version=no 15340 shlibpath_overrides_runpath=no 15341 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15342 ;; 15343 esac 15344 ;; 15345 15346sysv4*MP*) 15347 if test -d /usr/nec ;then 15348 version_type=linux # correct to gnu/linux during the next big refactor 15349 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15350 soname_spec='$libname${shared_ext}.$major' 15351 shlibpath_var=LD_LIBRARY_PATH 15352 fi 15353 ;; 15354 15355sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15356 version_type=freebsd-elf 15357 need_lib_prefix=no 15358 need_version=no 15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15360 soname_spec='${libname}${release}${shared_ext}$major' 15361 shlibpath_var=LD_LIBRARY_PATH 15362 shlibpath_overrides_runpath=yes 15363 hardcode_into_libs=yes 15364 if test "$with_gnu_ld" = yes; then 15365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15366 else 15367 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15368 case $host_os in 15369 sco3.2v5*) 15370 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15371 ;; 15372 esac 15373 fi 15374 sys_lib_dlsearch_path_spec='/usr/lib' 15375 ;; 15376 15377tpf*) 15378 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15379 version_type=linux # correct to gnu/linux during the next big refactor 15380 need_lib_prefix=no 15381 need_version=no 15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15383 shlibpath_var=LD_LIBRARY_PATH 15384 shlibpath_overrides_runpath=no 15385 hardcode_into_libs=yes 15386 ;; 15387 15388uts4*) 15389 version_type=linux # correct to gnu/linux during the next big refactor 15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15391 soname_spec='${libname}${release}${shared_ext}$major' 15392 shlibpath_var=LD_LIBRARY_PATH 15393 ;; 15394 15395*) 15396 dynamic_linker=no 15397 ;; 15398esac 15399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15400$as_echo "$dynamic_linker" >&6; } 15401test "$dynamic_linker" = no && can_build_shared=no 15402 15403variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15404if test "$GCC" = yes; then 15405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15406fi 15407 15408if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15409 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15410fi 15411if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15412 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15413fi 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15453$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15454hardcode_action_CXX= 15455if test -n "$hardcode_libdir_flag_spec_CXX" || 15456 test -n "$runpath_var_CXX" || 15457 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15458 15459 # We can hardcode non-existent directories. 15460 if test "$hardcode_direct_CXX" != no && 15461 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15462 # have to relink, otherwise we might link with an installed library 15463 # when we should be linking with a yet-to-be-installed one 15464 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15465 test "$hardcode_minus_L_CXX" != no; then 15466 # Linking always hardcodes the temporary library directory. 15467 hardcode_action_CXX=relink 15468 else 15469 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15470 hardcode_action_CXX=immediate 15471 fi 15472else 15473 # We cannot hardcode anything, or else we can only hardcode existing 15474 # directories. 15475 hardcode_action_CXX=unsupported 15476fi 15477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15478$as_echo "$hardcode_action_CXX" >&6; } 15479 15480if test "$hardcode_action_CXX" = relink || 15481 test "$inherit_rpath_CXX" = yes; then 15482 # Fast installation is not supported 15483 enable_fast_install=no 15484elif test "$shlibpath_overrides_runpath" = yes || 15485 test "$enable_shared" = no; then 15486 # Fast installation is not necessary 15487 enable_fast_install=needless 15488fi 15489 15490 15491 15492 15493 15494 15495 15496 fi # test -n "$compiler" 15497 15498 CC=$lt_save_CC 15499 CFLAGS=$lt_save_CFLAGS 15500 LDCXX=$LD 15501 LD=$lt_save_LD 15502 GCC=$lt_save_GCC 15503 with_gnu_ld=$lt_save_with_gnu_ld 15504 lt_cv_path_LDCXX=$lt_cv_path_LD 15505 lt_cv_path_LD=$lt_save_path_LD 15506 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15507 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15508fi # test "$_lt_caught_CXX_error" != yes 15509 15510ac_ext=c 15511ac_cpp='$CPP $CPPFLAGS' 15512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15514ac_compiler_gnu=$ac_cv_c_compiler_gnu 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 ac_config_commands="$ac_config_commands libtool" 15531 15532 15533 15534 15535# Only expand once: 15536 15537 15538 15539# platform idioms 15540case "$host" in 15541 *-hp-hpux*) 15542 CFLAGS="-g" 15543 ;; 15544 *-mingw*) 15545 LDFLAGS_NOUNDEFINED="-no-undefined" 15546 l4c_have_win=yes 15547 ;; 15548 *) 15549 ;; 15550esac 15551 15552 if test "x$l4c_have_win" = "xyes"; then 15553 WIN32_TRUE= 15554 WIN32_FALSE='#' 15555else 15556 WIN32_TRUE='#' 15557 WIN32_FALSE= 15558fi 15559 15560 15561if test "x$GCC" = "xyes"; then 15562 case " $CFLAGS " in 15563 *\ \ -Wall\ \ *) ;; 15564 *) CFLAGS="$CFLAGS -Wall" ;; 15565 esac 15566fi 15567 15568########################## 15569# Enable debug if required 15570# 15571# Check whether --enable-debug was given. 15572if test "${enable_debug+set}" = set; then : 15573 enableval=$enable_debug; 15574fi 15575 15576if test x$enable_debug = xyes; then 15577 CFLAGS="$CFLAGS -D__SD_DEBUG__ -D__LOG4C_DEBUG__" 15578fi 15579 15580######################## 15581# Enable reread if flagged 15582# 15583# Check whether --enable-reread was given. 15584if test "${enable_reread+set}" = set; then : 15585 enableval=$enable_reread; if test x$enable_reread = xyes; then 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabled automatic reread of log4crc file" >&5 15587$as_echo "$as_me: Enabled automatic reread of log4crc file" >&6;} 15588 15589$as_echo "#define __ENABLE_REREAD__ /**/" >>confdefs.h 15590 15591 fi 15592 15593fi 15594 15595 15596#################################################################### 15597# Test for pthread and enable rollingfile code which depends on that 15598# if we find it 15599# 15600ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 15601if test "x$ac_cv_header_pthread_h" = xyes; then : 15602 15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 15604$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } 15605if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : 15606 $as_echo_n "(cached) " >&6 15607else 15608 ac_check_lib_save_LIBS=$LIBS 15609LIBS="-lpthread $LIBS" 15610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15611/* end confdefs.h. */ 15612 15613/* Override any GCC internal prototype to avoid an error. 15614 Use char because int might match the return type of a GCC 15615 builtin and then its argument prototype would still apply. */ 15616#ifdef __cplusplus 15617extern "C" 15618#endif 15619char pthread_mutex_init (); 15620int 15621main () 15622{ 15623return pthread_mutex_init (); 15624 ; 15625 return 0; 15626} 15627_ACEOF 15628if ac_fn_c_try_link "$LINENO"; then : 15629 ac_cv_lib_pthread_pthread_mutex_init=yes 15630else 15631 ac_cv_lib_pthread_pthread_mutex_init=no 15632fi 15633rm -f core conftest.err conftest.$ac_objext \ 15634 conftest$ac_exeext conftest.$ac_ext 15635LIBS=$ac_check_lib_save_LIBS 15636fi 15637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 15638$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 15639if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : 15640 15641 LIBS="$LIBS -lpthread" 15642 15643$as_echo "#define WITH_ROLLINGFILE /**/" >>confdefs.h 15644 15645 { $as_echo "$as_me:${as_lineno-$LINENO}: Compile with rollingfile code" >&5 15646$as_echo "$as_me: Compile with rollingfile code" >&6;} 15647 with_rollingfile=true 15648else 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: No pthread--not compiling rollingfile code" >&5 15650$as_echo "$as_me: No pthread--not compiling rollingfile code" >&6;} 15651 15652fi 15653 15654 15655fi 15656 15657 15658 if test "x$with_rollingfile" = "xtrue"; then 15659 WITH_ROLLINGFILE_TRUE= 15660 WITH_ROLLINGFILE_FALSE='#' 15661else 15662 WITH_ROLLINGFILE_TRUE='#' 15663 WITH_ROLLINGFILE_FALSE= 15664fi 15665 15666 15667##################################### 15668# Enable test compilation if required 15669# 15670# Check whether --enable-test was given. 15671if test "${enable_test+set}" = set; then : 15672 enableval=$enable_test; 15673fi 15674 15675 if test x$enable_test = xyes; then 15676 TEST_TRUE= 15677 TEST_FALSE='#' 15678else 15679 TEST_TRUE='#' 15680 TEST_FALSE= 15681fi 15682 15683 15684##################################### 15685# Checks for libraries. 15686# 15687 15688##################################### 15689# Checks for header files. 15690# 15691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 15692$as_echo_n "checking for ANSI C header files... " >&6; } 15693if ${ac_cv_header_stdc+:} false; then : 15694 $as_echo_n "(cached) " >&6 15695else 15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15697/* end confdefs.h. */ 15698#include <stdlib.h> 15699#include <stdarg.h> 15700#include <string.h> 15701#include <float.h> 15702 15703int 15704main () 15705{ 15706 15707 ; 15708 return 0; 15709} 15710_ACEOF 15711if ac_fn_c_try_compile "$LINENO"; then : 15712 ac_cv_header_stdc=yes 15713else 15714 ac_cv_header_stdc=no 15715fi 15716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15717 15718if test $ac_cv_header_stdc = yes; then 15719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15721/* end confdefs.h. */ 15722#include <string.h> 15723 15724_ACEOF 15725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15726 $EGREP "memchr" >/dev/null 2>&1; then : 15727 15728else 15729 ac_cv_header_stdc=no 15730fi 15731rm -f conftest* 15732 15733fi 15734 15735if test $ac_cv_header_stdc = yes; then 15736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15738/* end confdefs.h. */ 15739#include <stdlib.h> 15740 15741_ACEOF 15742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15743 $EGREP "free" >/dev/null 2>&1; then : 15744 15745else 15746 ac_cv_header_stdc=no 15747fi 15748rm -f conftest* 15749 15750fi 15751 15752if test $ac_cv_header_stdc = yes; then 15753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15754 if test "$cross_compiling" = yes; then : 15755 : 15756else 15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15758/* end confdefs.h. */ 15759#include <ctype.h> 15760#include <stdlib.h> 15761#if ((' ' & 0x0FF) == 0x020) 15762# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15763# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15764#else 15765# define ISLOWER(c) \ 15766 (('a' <= (c) && (c) <= 'i') \ 15767 || ('j' <= (c) && (c) <= 'r') \ 15768 || ('s' <= (c) && (c) <= 'z')) 15769# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15770#endif 15771 15772#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15773int 15774main () 15775{ 15776 int i; 15777 for (i = 0; i < 256; i++) 15778 if (XOR (islower (i), ISLOWER (i)) 15779 || toupper (i) != TOUPPER (i)) 15780 return 2; 15781 return 0; 15782} 15783_ACEOF 15784if ac_fn_c_try_run "$LINENO"; then : 15785 15786else 15787 ac_cv_header_stdc=no 15788fi 15789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15790 conftest.$ac_objext conftest.beam conftest.$ac_ext 15791fi 15792 15793fi 15794fi 15795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 15796$as_echo "$ac_cv_header_stdc" >&6; } 15797if test $ac_cv_header_stdc = yes; then 15798 15799$as_echo "#define STDC_HEADERS 1" >>confdefs.h 15800 15801fi 15802 15803for ac_header in alloc.h fcntl.h inttypes.h langinfo.h limits.h malloc.h stddef.h stdint.h \ 15804stdlib.h string.h sys/time.h syslog.h unistd.h stdarg.h varargs.h getopt.h \ 15805pthread.h 15806do : 15807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15808ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15809if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15810 cat >>confdefs.h <<_ACEOF 15811#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15812_ACEOF 15813 15814fi 15815 15816done 15817 15818for ac_func in sleep gmtime_r localtime_r 15819do : 15820 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15821ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15822if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15823 cat >>confdefs.h <<_ACEOF 15824#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15825_ACEOF 15826 15827fi 15828done 15829 15830ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h> 15831" 15832if test "x$ac_cv_have_decl_sleep" = xyes; then : 15833 ac_have_decl=1 15834else 15835 ac_have_decl=0 15836fi 15837 15838cat >>confdefs.h <<_ACEOF 15839#define HAVE_DECL_SLEEP $ac_have_decl 15840_ACEOF 15841 15842ac_fn_c_check_decl "$LINENO" "gmtime_r" "ac_cv_have_decl_gmtime_r" "#include <time.h> 15843" 15844if test "x$ac_cv_have_decl_gmtime_r" = xyes; then : 15845 ac_have_decl=1 15846else 15847 ac_have_decl=0 15848fi 15849 15850cat >>confdefs.h <<_ACEOF 15851#define HAVE_DECL_GMTIME_R $ac_have_decl 15852_ACEOF 15853ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h> 15854" 15855if test "x$ac_cv_have_decl_localtime_r" = xyes; then : 15856 ac_have_decl=1 15857else 15858 ac_have_decl=0 15859fi 15860 15861cat >>confdefs.h <<_ACEOF 15862#define HAVE_DECL_LOCALTIME_R $ac_have_decl 15863_ACEOF 15864 15865 15866# Checks for typedefs, structures, and compiler characteristics. 15867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 15868$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 15869if ${ac_cv_c_const+:} false; then : 15870 $as_echo_n "(cached) " >&6 15871else 15872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15873/* end confdefs.h. */ 15874 15875int 15876main () 15877{ 15878 15879#ifndef __cplusplus 15880 /* Ultrix mips cc rejects this sort of thing. */ 15881 typedef int charset[2]; 15882 const charset cs = { 0, 0 }; 15883 /* SunOS 4.1.1 cc rejects this. */ 15884 char const *const *pcpcc; 15885 char **ppc; 15886 /* NEC SVR4.0.2 mips cc rejects this. */ 15887 struct point {int x, y;}; 15888 static struct point const zero = {0,0}; 15889 /* AIX XL C 1.02.0.0 rejects this. 15890 It does not let you subtract one const X* pointer from another in 15891 an arm of an if-expression whose if-part is not a constant 15892 expression */ 15893 const char *g = "string"; 15894 pcpcc = &g + (g ? g-g : 0); 15895 /* HPUX 7.0 cc rejects these. */ 15896 ++pcpcc; 15897 ppc = (char**) pcpcc; 15898 pcpcc = (char const *const *) ppc; 15899 { /* SCO 3.2v4 cc rejects this sort of thing. */ 15900 char tx; 15901 char *t = &tx; 15902 char const *s = 0 ? (char *) 0 : (char const *) 0; 15903 15904 *t++ = 0; 15905 if (s) return 0; 15906 } 15907 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15908 int x[] = {25, 17}; 15909 const int *foo = &x[0]; 15910 ++foo; 15911 } 15912 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15913 typedef const int *iptr; 15914 iptr p = 0; 15915 ++p; 15916 } 15917 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 15918 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15919 struct s { int j; const int *ap[3]; } bx; 15920 struct s *b = &bx; b->j = 5; 15921 } 15922 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15923 const int foo = 10; 15924 if (!foo) return 0; 15925 } 15926 return !cs[0] && !zero.x; 15927#endif 15928 15929 ; 15930 return 0; 15931} 15932_ACEOF 15933if ac_fn_c_try_compile "$LINENO"; then : 15934 ac_cv_c_const=yes 15935else 15936 ac_cv_c_const=no 15937fi 15938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15939fi 15940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 15941$as_echo "$ac_cv_c_const" >&6; } 15942if test $ac_cv_c_const = no; then 15943 15944$as_echo "#define const /**/" >>confdefs.h 15945 15946fi 15947 15948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 15949$as_echo_n "checking for inline... " >&6; } 15950if ${ac_cv_c_inline+:} false; then : 15951 $as_echo_n "(cached) " >&6 15952else 15953 ac_cv_c_inline=no 15954for ac_kw in inline __inline__ __inline; do 15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15956/* end confdefs.h. */ 15957#ifndef __cplusplus 15958typedef int foo_t; 15959static $ac_kw foo_t static_foo () {return 0; } 15960$ac_kw foo_t foo () {return 0; } 15961#endif 15962 15963_ACEOF 15964if ac_fn_c_try_compile "$LINENO"; then : 15965 ac_cv_c_inline=$ac_kw 15966fi 15967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15968 test "$ac_cv_c_inline" != no && break 15969done 15970 15971fi 15972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 15973$as_echo "$ac_cv_c_inline" >&6; } 15974 15975case $ac_cv_c_inline in 15976 inline | yes) ;; 15977 *) 15978 case $ac_cv_c_inline in 15979 no) ac_val=;; 15980 *) ac_val=$ac_cv_c_inline;; 15981 esac 15982 cat >>confdefs.h <<_ACEOF 15983#ifndef __cplusplus 15984#define inline $ac_val 15985#endif 15986_ACEOF 15987 ;; 15988esac 15989 15990ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15991if test "x$ac_cv_type_size_t" = xyes; then : 15992 15993else 15994 15995cat >>confdefs.h <<_ACEOF 15996#define size_t unsigned int 15997_ACEOF 15998 15999fi 16000 16001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 16002$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 16003if ${ac_cv_header_time+:} false; then : 16004 $as_echo_n "(cached) " >&6 16005else 16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16007/* end confdefs.h. */ 16008#include <sys/types.h> 16009#include <sys/time.h> 16010#include <time.h> 16011 16012int 16013main () 16014{ 16015if ((struct tm *) 0) 16016return 0; 16017 ; 16018 return 0; 16019} 16020_ACEOF 16021if ac_fn_c_try_compile "$LINENO"; then : 16022 ac_cv_header_time=yes 16023else 16024 ac_cv_header_time=no 16025fi 16026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16027fi 16028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 16029$as_echo "$ac_cv_header_time" >&6; } 16030if test $ac_cv_header_time = yes; then 16031 16032$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 16033 16034fi 16035 16036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 16037$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 16038if ${ac_cv_struct_tm+:} false; then : 16039 $as_echo_n "(cached) " >&6 16040else 16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16042/* end confdefs.h. */ 16043#include <sys/types.h> 16044#include <time.h> 16045 16046int 16047main () 16048{ 16049struct tm tm; 16050 int *p = &tm.tm_sec; 16051 return !p; 16052 ; 16053 return 0; 16054} 16055_ACEOF 16056if ac_fn_c_try_compile "$LINENO"; then : 16057 ac_cv_struct_tm=time.h 16058else 16059 ac_cv_struct_tm=sys/time.h 16060fi 16061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16062fi 16063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 16064$as_echo "$ac_cv_struct_tm" >&6; } 16065if test $ac_cv_struct_tm = sys/time.h; then 16066 16067$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 16068 16069fi 16070 16071 16072# Checks for library functions. 16073# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16074# for constant arguments. Useless! 16075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16076$as_echo_n "checking for working alloca.h... " >&6; } 16077if ${ac_cv_working_alloca_h+:} false; then : 16078 $as_echo_n "(cached) " >&6 16079else 16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16081/* end confdefs.h. */ 16082#include <alloca.h> 16083int 16084main () 16085{ 16086char *p = (char *) alloca (2 * sizeof (int)); 16087 if (p) return 0; 16088 ; 16089 return 0; 16090} 16091_ACEOF 16092if ac_fn_c_try_link "$LINENO"; then : 16093 ac_cv_working_alloca_h=yes 16094else 16095 ac_cv_working_alloca_h=no 16096fi 16097rm -f core conftest.err conftest.$ac_objext \ 16098 conftest$ac_exeext conftest.$ac_ext 16099fi 16100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16101$as_echo "$ac_cv_working_alloca_h" >&6; } 16102if test $ac_cv_working_alloca_h = yes; then 16103 16104$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16105 16106fi 16107 16108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16109$as_echo_n "checking for alloca... " >&6; } 16110if ${ac_cv_func_alloca_works+:} false; then : 16111 $as_echo_n "(cached) " >&6 16112else 16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16114/* end confdefs.h. */ 16115#ifdef __GNUC__ 16116# define alloca __builtin_alloca 16117#else 16118# ifdef _MSC_VER 16119# include <malloc.h> 16120# define alloca _alloca 16121# else 16122# ifdef HAVE_ALLOCA_H 16123# include <alloca.h> 16124# else 16125# ifdef _AIX 16126 #pragma alloca 16127# else 16128# ifndef alloca /* predefined by HP cc +Olibcalls */ 16129void *alloca (size_t); 16130# endif 16131# endif 16132# endif 16133# endif 16134#endif 16135 16136int 16137main () 16138{ 16139char *p = (char *) alloca (1); 16140 if (p) return 0; 16141 ; 16142 return 0; 16143} 16144_ACEOF 16145if ac_fn_c_try_link "$LINENO"; then : 16146 ac_cv_func_alloca_works=yes 16147else 16148 ac_cv_func_alloca_works=no 16149fi 16150rm -f core conftest.err conftest.$ac_objext \ 16151 conftest$ac_exeext conftest.$ac_ext 16152fi 16153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16154$as_echo "$ac_cv_func_alloca_works" >&6; } 16155 16156if test $ac_cv_func_alloca_works = yes; then 16157 16158$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16159 16160else 16161 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16162# that cause trouble. Some versions do not even contain alloca or 16163# contain a buggy version. If you still want to use their alloca, 16164# use ar to extract alloca.o from them instead of compiling alloca.c. 16165 16166ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16167 16168$as_echo "#define C_ALLOCA 1" >>confdefs.h 16169 16170 16171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16172$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16173if ${ac_cv_os_cray+:} false; then : 16174 $as_echo_n "(cached) " >&6 16175else 16176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16177/* end confdefs.h. */ 16178#if defined CRAY && ! defined CRAY2 16179webecray 16180#else 16181wenotbecray 16182#endif 16183 16184_ACEOF 16185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16186 $EGREP "webecray" >/dev/null 2>&1; then : 16187 ac_cv_os_cray=yes 16188else 16189 ac_cv_os_cray=no 16190fi 16191rm -f conftest* 16192 16193fi 16194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16195$as_echo "$ac_cv_os_cray" >&6; } 16196if test $ac_cv_os_cray = yes; then 16197 for ac_func in _getb67 GETB67 getb67; do 16198 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16199ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16200if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16201 16202cat >>confdefs.h <<_ACEOF 16203#define CRAY_STACKSEG_END $ac_func 16204_ACEOF 16205 16206 break 16207fi 16208 16209 done 16210fi 16211 16212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16213$as_echo_n "checking stack direction for C alloca... " >&6; } 16214if ${ac_cv_c_stack_direction+:} false; then : 16215 $as_echo_n "(cached) " >&6 16216else 16217 if test "$cross_compiling" = yes; then : 16218 ac_cv_c_stack_direction=0 16219else 16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16221/* end confdefs.h. */ 16222$ac_includes_default 16223int 16224find_stack_direction (int *addr, int depth) 16225{ 16226 int dir, dummy = 0; 16227 if (! addr) 16228 addr = &dummy; 16229 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 16230 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 16231 return dir + dummy; 16232} 16233 16234int 16235main (int argc, char **argv) 16236{ 16237 return find_stack_direction (0, argc + !argv + 20) < 0; 16238} 16239_ACEOF 16240if ac_fn_c_try_run "$LINENO"; then : 16241 ac_cv_c_stack_direction=1 16242else 16243 ac_cv_c_stack_direction=-1 16244fi 16245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16246 conftest.$ac_objext conftest.beam conftest.$ac_ext 16247fi 16248 16249fi 16250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 16251$as_echo "$ac_cv_c_stack_direction" >&6; } 16252cat >>confdefs.h <<_ACEOF 16253#define STACK_DIRECTION $ac_cv_c_stack_direction 16254_ACEOF 16255 16256 16257fi 16258 16259 16260 16261 16262 for ac_header in $ac_header_list 16263do : 16264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16265ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 16266" 16267if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16268 cat >>confdefs.h <<_ACEOF 16269#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16270_ACEOF 16271 16272fi 16273 16274done 16275 16276 16277 16278 16279 16280 16281 16282 16283for ac_func in getpagesize 16284do : 16285 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 16286if test "x$ac_cv_func_getpagesize" = xyes; then : 16287 cat >>confdefs.h <<_ACEOF 16288#define HAVE_GETPAGESIZE 1 16289_ACEOF 16290 16291fi 16292done 16293 16294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 16295$as_echo_n "checking for working mmap... " >&6; } 16296if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 16297 $as_echo_n "(cached) " >&6 16298else 16299 if test "$cross_compiling" = yes; then : 16300 ac_cv_func_mmap_fixed_mapped=no 16301else 16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16303/* end confdefs.h. */ 16304$ac_includes_default 16305/* malloc might have been renamed as rpl_malloc. */ 16306#undef malloc 16307 16308/* Thanks to Mike Haertel and Jim Avera for this test. 16309 Here is a matrix of mmap possibilities: 16310 mmap private not fixed 16311 mmap private fixed at somewhere currently unmapped 16312 mmap private fixed at somewhere already mapped 16313 mmap shared not fixed 16314 mmap shared fixed at somewhere currently unmapped 16315 mmap shared fixed at somewhere already mapped 16316 For private mappings, we should verify that changes cannot be read() 16317 back from the file, nor mmap's back from the file at a different 16318 address. (There have been systems where private was not correctly 16319 implemented like the infamous i386 svr4.0, and systems where the 16320 VM page cache was not coherent with the file system buffer cache 16321 like early versions of FreeBSD and possibly contemporary NetBSD.) 16322 For shared mappings, we should conversely verify that changes get 16323 propagated back to all the places they're supposed to be. 16324 16325 Grep wants private fixed already mapped. 16326 The main things grep needs to know about mmap are: 16327 * does it exist and is it safe to write into the mmap'd area 16328 * how to use it (BSD variants) */ 16329 16330#include <fcntl.h> 16331#include <sys/mman.h> 16332 16333#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 16334char *malloc (); 16335#endif 16336 16337/* This mess was copied from the GNU getpagesize.h. */ 16338#ifndef HAVE_GETPAGESIZE 16339# ifdef _SC_PAGESIZE 16340# define getpagesize() sysconf(_SC_PAGESIZE) 16341# else /* no _SC_PAGESIZE */ 16342# ifdef HAVE_SYS_PARAM_H 16343# include <sys/param.h> 16344# ifdef EXEC_PAGESIZE 16345# define getpagesize() EXEC_PAGESIZE 16346# else /* no EXEC_PAGESIZE */ 16347# ifdef NBPG 16348# define getpagesize() NBPG * CLSIZE 16349# ifndef CLSIZE 16350# define CLSIZE 1 16351# endif /* no CLSIZE */ 16352# else /* no NBPG */ 16353# ifdef NBPC 16354# define getpagesize() NBPC 16355# else /* no NBPC */ 16356# ifdef PAGESIZE 16357# define getpagesize() PAGESIZE 16358# endif /* PAGESIZE */ 16359# endif /* no NBPC */ 16360# endif /* no NBPG */ 16361# endif /* no EXEC_PAGESIZE */ 16362# else /* no HAVE_SYS_PARAM_H */ 16363# define getpagesize() 8192 /* punt totally */ 16364# endif /* no HAVE_SYS_PARAM_H */ 16365# endif /* no _SC_PAGESIZE */ 16366 16367#endif /* no HAVE_GETPAGESIZE */ 16368 16369int 16370main () 16371{ 16372 char *data, *data2, *data3; 16373 const char *cdata2; 16374 int i, pagesize; 16375 int fd, fd2; 16376 16377 pagesize = getpagesize (); 16378 16379 /* First, make a file with some known garbage in it. */ 16380 data = (char *) malloc (pagesize); 16381 if (!data) 16382 return 1; 16383 for (i = 0; i < pagesize; ++i) 16384 *(data + i) = rand (); 16385 umask (0); 16386 fd = creat ("conftest.mmap", 0600); 16387 if (fd < 0) 16388 return 2; 16389 if (write (fd, data, pagesize) != pagesize) 16390 return 3; 16391 close (fd); 16392 16393 /* Next, check that the tail of a page is zero-filled. File must have 16394 non-zero length, otherwise we risk SIGBUS for entire page. */ 16395 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 16396 if (fd2 < 0) 16397 return 4; 16398 cdata2 = ""; 16399 if (write (fd2, cdata2, 1) != 1) 16400 return 5; 16401 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 16402 if (data2 == MAP_FAILED) 16403 return 6; 16404 for (i = 0; i < pagesize; ++i) 16405 if (*(data2 + i)) 16406 return 7; 16407 close (fd2); 16408 if (munmap (data2, pagesize)) 16409 return 8; 16410 16411 /* Next, try to mmap the file at a fixed address which already has 16412 something else allocated at it. If we can, also make sure that 16413 we see the same garbage. */ 16414 fd = open ("conftest.mmap", O_RDWR); 16415 if (fd < 0) 16416 return 9; 16417 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 16418 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 16419 return 10; 16420 for (i = 0; i < pagesize; ++i) 16421 if (*(data + i) != *(data2 + i)) 16422 return 11; 16423 16424 /* Finally, make sure that changes to the mapped area do not 16425 percolate back to the file as seen by read(). (This is a bug on 16426 some variants of i386 svr4.0.) */ 16427 for (i = 0; i < pagesize; ++i) 16428 *(data2 + i) = *(data2 + i) + 1; 16429 data3 = (char *) malloc (pagesize); 16430 if (!data3) 16431 return 12; 16432 if (read (fd, data3, pagesize) != pagesize) 16433 return 13; 16434 for (i = 0; i < pagesize; ++i) 16435 if (*(data + i) != *(data3 + i)) 16436 return 14; 16437 close (fd); 16438 return 0; 16439} 16440_ACEOF 16441if ac_fn_c_try_run "$LINENO"; then : 16442 ac_cv_func_mmap_fixed_mapped=yes 16443else 16444 ac_cv_func_mmap_fixed_mapped=no 16445fi 16446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16447 conftest.$ac_objext conftest.beam conftest.$ac_ext 16448fi 16449 16450fi 16451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 16452$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 16453if test $ac_cv_func_mmap_fixed_mapped = yes; then 16454 16455$as_echo "#define HAVE_MMAP 1" >>confdefs.h 16456 16457fi 16458rm -f conftest.mmap conftest.txt 16459 16460 16461 16462 16463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5 16464$as_echo_n "checking whether utime accepts a null argument... " >&6; } 16465if ${ac_cv_func_utime_null+:} false; then : 16466 $as_echo_n "(cached) " >&6 16467else 16468 rm -f conftest.data; >conftest.data 16469# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. 16470if test "$cross_compiling" = yes; then : 16471 ac_cv_func_utime_null='guessing yes' 16472else 16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16474/* end confdefs.h. */ 16475$ac_includes_default 16476 #ifdef HAVE_UTIME_H 16477 # include <utime.h> 16478 #endif 16479int 16480main () 16481{ 16482struct stat s, t; 16483 return ! (stat ("conftest.data", &s) == 0 16484 && utime ("conftest.data", 0) == 0 16485 && stat ("conftest.data", &t) == 0 16486 && t.st_mtime >= s.st_mtime 16487 && t.st_mtime - s.st_mtime < 120); 16488 ; 16489 return 0; 16490} 16491_ACEOF 16492if ac_fn_c_try_run "$LINENO"; then : 16493 ac_cv_func_utime_null=yes 16494else 16495 ac_cv_func_utime_null=no 16496fi 16497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16498 conftest.$ac_objext conftest.beam conftest.$ac_ext 16499fi 16500 16501fi 16502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5 16503$as_echo "$ac_cv_func_utime_null" >&6; } 16504if test "x$ac_cv_func_utime_null" != xno; then 16505 ac_cv_func_utime_null=yes 16506 16507$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h 16508 16509fi 16510rm -f conftest.data 16511 16512for ac_func in vprintf 16513do : 16514 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 16515if test "x$ac_cv_func_vprintf" = xyes; then : 16516 cat >>confdefs.h <<_ACEOF 16517#define HAVE_VPRINTF 1 16518_ACEOF 16519 16520ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 16521if test "x$ac_cv_func__doprnt" = xyes; then : 16522 16523$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 16524 16525fi 16526 16527fi 16528done 16529 16530 16531for ac_func in gettimeofday memset munmap nl_langinfo strdup strerror strncasecmp strrchr strstr utime sbrk 16532do : 16533 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16534ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16535if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16536 cat >>confdefs.h <<_ACEOF 16537#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16538_ACEOF 16539 16540fi 16541done 16542 16543 16544 GETHOSTNAME_LIB= 16545 for ac_func in gethostname 16546do : 16547 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 16548if test "x$ac_cv_func_gethostname" = xyes; then : 16549 cat >>confdefs.h <<_ACEOF 16550#define HAVE_GETHOSTNAME 1 16551_ACEOF 16552 16553else 16554 16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in winsock.h and -lws2_32" >&5 16556$as_echo_n "checking for gethostname in winsock.h and -lws2_32... " >&6; } 16557if ${l4_cv_w32_gethostname+:} false; then : 16558 $as_echo_n "(cached) " >&6 16559else 16560 l4_cv_w32_gethostname=no 16561 ac_save_LIBS="$LIBS" 16562 LIBS="$LIBS -lws2_32" 16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16564/* end confdefs.h. */ 16565 16566#ifdef _WIN32 16567#include <winsock.h> 16568#endif 16569#include <unistd.h> 16570#include <stddef.h> 16571 16572int 16573main () 16574{ 16575gethostname(NULL, 0); 16576 ; 16577 return 0; 16578} 16579_ACEOF 16580if ac_fn_c_try_link "$LINENO"; then : 16581 l4_cv_w32_gethostname=yes 16582fi 16583rm -f core conftest.err conftest.$ac_objext \ 16584 conftest$ac_exeext conftest.$ac_ext 16585 LIBS="$ac_save_LIBS" 16586 16587fi 16588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $l4_cv_w32_gethostname" >&5 16589$as_echo "$l4_cv_w32_gethostname" >&6; } 16590 if test "x$l4_cv_w32_gethostname" = "xyes"; then 16591 GETHOSTNAME_LIB="-lws2_32" 16592 fi 16593 16594fi 16595done 16596 16597 16598 16599 16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 16601$as_echo_n "checking for va_copy... " >&6; } 16602if ${l4_cv_va_copy+:} false; then : 16603 $as_echo_n "(cached) " >&6 16604else 16605 l4_cv_va_copy=no 16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16607/* end confdefs.h. */ 16608#include <stdarg.h> 16609int 16610main () 16611{ 16612va_list ap1, ap2; va_copy(ap1, ap2); 16613 ; 16614 return 0; 16615} 16616_ACEOF 16617if ac_fn_c_try_link "$LINENO"; then : 16618 l4_cv_va_copy=yes 16619fi 16620rm -f core conftest.err conftest.$ac_objext \ 16621 conftest$ac_exeext conftest.$ac_ext 16622fi 16623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $l4_cv_va_copy" >&5 16624$as_echo "$l4_cv_va_copy" >&6; } 16625 16626 if test "x$l4_cv_va_copy" != "xyes"; then 16627 16628$as_echo "#define va_copy __va_copy" >>confdefs.h 16629 16630 fi 16631 16632# enable mmap appender only when mmap() function found 16633 if test "x$ac_cv_func_mmap_fixed_mapped" = "xyes"; then 16634 WITH_MMAP_TRUE= 16635 WITH_MMAP_FALSE='#' 16636else 16637 WITH_MMAP_TRUE='#' 16638 WITH_MMAP_FALSE= 16639fi 16640 16641 16642############### 16643# Documentation 16644# 16645# Check whether --enable-doc was given. 16646if test "${enable_doc+set}" = set; then : 16647 enableval=$enable_doc; 16648fi 16649 16650 16651# Checks for doxygen 16652# Extract the first word of "doxygen", so it can be a program name with args. 16653set dummy doxygen; ac_word=$2 16654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16655$as_echo_n "checking for $ac_word... " >&6; } 16656if ${ac_cv_path_DOXYGEN+:} false; then : 16657 $as_echo_n "(cached) " >&6 16658else 16659 case $DOXYGEN in 16660 [\\/]* | ?:[\\/]*) 16661 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 16662 ;; 16663 *) 16664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16665for as_dir in $PATH 16666do 16667 IFS=$as_save_IFS 16668 test -z "$as_dir" && as_dir=. 16669 for ac_exec_ext in '' $ac_executable_extensions; do 16670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16671 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 16672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16673 break 2 16674 fi 16675done 16676 done 16677IFS=$as_save_IFS 16678 16679 ;; 16680esac 16681fi 16682DOXYGEN=$ac_cv_path_DOXYGEN 16683if test -n "$DOXYGEN"; then 16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 16685$as_echo "$DOXYGEN" >&6; } 16686else 16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16688$as_echo "no" >&6; } 16689fi 16690 16691 16692if test x$DOXYGEN = x; then 16693 enable_doc=no 16694fi 16695 if test x$enable_doc = xyes; then 16696 DOC_TRUE= 16697 DOC_FALSE='#' 16698else 16699 DOC_TRUE='#' 16700 DOC_FALSE= 16701fi 16702 16703 16704# 16705# Checks for the graphviz tool 'dot' used to generate graphs 16706# of the class dependencies. Probably not useful 16707# for c programs. If we don't find dot in the path 16708# then set HAVE_DOT to NO in Doxyfile.in 16709# 16710HAVE_DOT=YES 16711# Extract the first word of "dot", so it can be a program name with args. 16712set dummy dot; ac_word=$2 16713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16714$as_echo_n "checking for $ac_word... " >&6; } 16715if ${ac_cv_path_DOT+:} false; then : 16716 $as_echo_n "(cached) " >&6 16717else 16718 case $DOT in 16719 [\\/]* | ?:[\\/]*) 16720 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 16721 ;; 16722 *) 16723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16724for as_dir in $PATH 16725do 16726 IFS=$as_save_IFS 16727 test -z "$as_dir" && as_dir=. 16728 for ac_exec_ext in '' $ac_executable_extensions; do 16729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16730 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 16731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16732 break 2 16733 fi 16734done 16735 done 16736IFS=$as_save_IFS 16737 16738 ;; 16739esac 16740fi 16741DOT=$ac_cv_path_DOT 16742if test -n "$DOT"; then 16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 16744$as_echo "$DOT" >&6; } 16745else 16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16747$as_echo "no" >&6; } 16748fi 16749 16750 16751if test x$DOT = x; then 16752 HAVE_DOT=NO 16753fi 16754 16755 16756# Similar for latex 16757HAVE_LATEX=YES 16758# Extract the first word of "latex", so it can be a program name with args. 16759set dummy latex; ac_word=$2 16760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16761$as_echo_n "checking for $ac_word... " >&6; } 16762if ${ac_cv_path_LATEX+:} false; then : 16763 $as_echo_n "(cached) " >&6 16764else 16765 case $LATEX in 16766 [\\/]* | ?:[\\/]*) 16767 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path. 16768 ;; 16769 *) 16770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16771for as_dir in $PATH 16772do 16773 IFS=$as_save_IFS 16774 test -z "$as_dir" && as_dir=. 16775 for ac_exec_ext in '' $ac_executable_extensions; do 16776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16777 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext" 16778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16779 break 2 16780 fi 16781done 16782 done 16783IFS=$as_save_IFS 16784 16785 ;; 16786esac 16787fi 16788LATEX=$ac_cv_path_LATEX 16789if test -n "$LATEX"; then 16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5 16791$as_echo "$LATEX" >&6; } 16792else 16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16794$as_echo "no" >&6; } 16795fi 16796 16797 16798if test x$LATEX = x; then 16799 HAVE_LATEX=NO 16800fi 16801# This variable is used to turn LATEX on and off in the Doxyfile 16802 16803# This variable is used in doc/Makefile.am to set the target to make 16804# the doc with latex or not 16805 if test x$HAVE_LATEX = xYES; then 16806 HAVE_LATEX_TRUE= 16807 HAVE_LATEX_FALSE='#' 16808else 16809 HAVE_LATEX_TRUE='#' 16810 HAVE_LATEX_FALSE= 16811fi 16812 16813# 16814# Documentation 16815############### 16816 16817# Check whether --enable-constructors was given. 16818if test "${enable_constructors+set}" = set; then : 16819 enableval=$enable_constructors; 16820fi 16821 16822if test "x$enable_constructors" = "xyes"; then 16823 16824$as_echo "#define WITH_CONSTRUCTORS 1" >>confdefs.h 16825 16826 { $as_echo "$as_me:${as_lineno-$LINENO}: using constructors to initialize log4c" >&5 16827$as_echo "$as_me: using constructors to initialize log4c" >&6;} 16828fi 16829 16830# 16831################### 16832################### 16833# Test for libexpat 16834# 16835 16836 16837# Check whether --with-expat was given. 16838if test "${with_expat+set}" = set; then : 16839 withval=$with_expat; with_expat=no 16840else 16841 with_expat=yes 16842fi 16843 16844if test x$with_expat = xyes ; then 16845 use_expat=yes 16846 16847 16848# Check whether --with-expat-prefix was given. 16849if test "${with_expat_prefix+set}" = set; then : 16850 withval=$with_expat_prefix; 16851fi 16852 16853 16854# Check whether --enable-expattest was given. 16855if test "${enable_expattest+set}" = set; then : 16856 enableval=$enable_expattest; 16857else 16858 enable_expattest=yes 16859fi 16860 16861 16862 if test x$with_expat_prefix != x ; then 16863 EXPAT_CFLAGS="-I$with_expat_prefix/include" 16864 EXPAT_LIBS="-L$with_expat_prefix/lib" 16865 fi 16866 16867 min_expat_version=1.95.1 16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT - version >= $min_expat_version" >&5 16869$as_echo_n "checking for EXPAT - version >= $min_expat_version... " >&6; } 16870 16871 16872 EXPAT_CFLAGS="$EXPAT_CFLAGS" 16873 EXPAT_LIBS="$EXPAT_LIBS -lexpat" 16874 16875 if test "x$enable_expattest" = "xyes" ; then 16876 ac_save_CFLAGS="$CFLAGS" 16877 ac_save_LIBS="$LIBS" 16878 CFLAGS="$CFLAGS $EXPAT_CFLAGS" 16879 LIBS="$EXPAT_LIBS $LIBS" 16880 rm -f conf.expattest 16881 if test "$cross_compiling" = yes; then : 16882 echo $ac_n "cross compiling; assumed OK... $ac_c" 16883else 16884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16885/* end confdefs.h. */ 16886 16887#include <expat.h> 16888#include <stdio.h> 16889#include <stdlib.h> 16890#include <string.h> 16891 16892int 16893main () 16894{ 16895 int expat_major, expat_minor, expat_micro; 16896 int major, minor, micro; 16897 char *tmp_expat_version; 16898 char *tmp_version; 16899 16900 system ("touch conf.expattest"); 16901 16902 /* HP/UX 9 (%@#!) writes to sscanf strings */ 16903 tmp_expat_version = strdup(XML_ExpatVersion()); 16904 if (sscanf(tmp_expat_version, "expat_%d.%d.%d", &expat_major, &expat_minor, &expat_micro) != 3) { 16905 printf("%s, bad expat version string\n", XML_ExpatVersion()); 16906 exit(1); 16907 } 16908 16909 /* HP/UX 9 (%@#!) writes to sscanf strings */ 16910 tmp_version = strdup("$min_expat_version"); 16911 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 16912 printf("%s, bad version string\n", "$min_expat_version"); 16913 exit(1); 16914 } 16915 16916 if ((expat_major > major) || 16917 ((expat_major == major) && (expat_minor > minor)) || 16918 ((expat_major == major) && (expat_minor == minor) && (expat_micro >= micro))) 16919 { 16920 return 0; 16921 } 16922 else 16923 { 16924 printf("\n*** An old version of EXPAT (%d.%d.%d) was found.\n", 16925 expat_major, expat_minor, expat_micro); 16926 printf("*** You need a version of EXPAT newer than %d.%d.%d. The latest version of\n", 16927 major, minor, micro); 16928 printf("***\n"); 16929 printf("*** If you have already installed a sufficiently new version, this error\n"); 16930 printf("*** probably means that the wrong copy of the expat-config shell script is\n"); 16931 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 16932 printf("*** of EXPAT, but you can also set the EXPAT_CONFIG environment to point to the\n"); 16933 printf("*** correct copy of expat-config. (In this case, you will have to\n"); 16934 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 16935 printf("*** so that the correct libraries are found at run-time))\n"); 16936 } 16937 return 1; 16938} 16939 16940_ACEOF 16941if ac_fn_c_try_run "$LINENO"; then : 16942 16943else 16944 no_expat=yes 16945fi 16946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16947 conftest.$ac_objext conftest.beam conftest.$ac_ext 16948fi 16949 16950 CFLAGS="$ac_save_CFLAGS" 16951 LIBS="$ac_save_LIBS" 16952 fi 16953 16954 if test "x$no_expat" = x ; then 16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16956$as_echo "yes" >&6; } 16957 use_expat=yes 16958 : 16959 else 16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16961$as_echo "no" >&6; } 16962 use_expat=no 16963 if test -f conf.expattest ; then 16964 : 16965 else 16966 echo "*** Could not run EXPAT test program, checking why..." 16967 CFLAGS="$CFLAGS $EXPAT_CFLAGS" 16968 LIBS="$LIBS $EXPAT_LIBS" 16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16970/* end confdefs.h. */ 16971 16972#include <expat.h> 16973#include <stdio.h> 16974 16975int 16976main () 16977{ 16978 return (XML_ExpatVersion()); 16979 ; 16980 return 0; 16981} 16982_ACEOF 16983if ac_fn_c_try_link "$LINENO"; then : 16984 echo "*** The test program compiled, but did not run. This usually means" 16985 echo "*** that the run-time linker is not finding EXPAT or finding the wrong" 16986 echo "*** version of EXPAT. If it is not finding EXPAT you can specify" 16987 echo "*** an install location using --with-expat-prefix option to" 16988 echo "*** configure. You can also set the " 16989 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 16990 echo "*** to the installed location Also, make sure you have run ldconfig if that" 16991 echo "*** is required on your system" 16992 echo "***" 16993 echo "*** If you have an old version installed, it is best to remove it, although" 16994 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 16995 echo "***" 16996 echo "*** Log4C will still run without EXPAT--it uses some bundled" 16997 echo "*** lex/yacc code to parse the configuration file" 16998else 16999 echo "*** The test program failed to compile or link. See the file config.log for the" 17000 echo "*** exact error that occured. This usually means EXPAT was incorrectly installed" 17001 echo "*** or that you have moved EXPAT since it was installed. In the latter case, you" 17002 echo "*** may want to edit the expat-config script: '$EXPAT_CONFIG'" 17003 echo "*** Log4C will still run without EXPAT--it uses some bundled" 17004 echo "*** lex/yacc code to parse the configuration file" 17005fi 17006rm -f core conftest.err conftest.$ac_objext \ 17007 conftest$ac_exeext conftest.$ac_ext 17008 CFLAGS="$ac_save_CFLAGS" 17009 LIBS="$ac_save_LIBS" 17010 fi 17011 EXPAT_CFLAGS="" 17012 EXPAT_LIBS="" 17013 : 17014 fi 17015 17016 17017 rm -f conf.expattest 17018 17019fi 17020 if test "x$use_expat" = "xyes" ; then 17021 USE_EXPAT_TRUE= 17022 USE_EXPAT_FALSE='#' 17023else 17024 USE_EXPAT_TRUE='#' 17025 USE_EXPAT_FALSE= 17026fi 17027 17028# 17029################### 17030 17031ac_config_files="$ac_config_files Makefile log4c-config log4c.pc log4crc.sample log4c.spec config/Makefile doc/Makefile doc/Doxyfile doc/main.doc src/Makefile src/log4c/Makefile src/log4c/version.h src/sd/Makefile tests/Makefile tests/log4c/Makefile examples/Makefile examples/log4crc examples/helloworld/Makefile examples/helloworld1/Makefile" 17032 17033ac_config_commands="$ac_config_commands default" 17034 17035cat >confcache <<\_ACEOF 17036# This file is a shell script that caches the results of configure 17037# tests run on this system so they can be shared between configure 17038# scripts and configure runs, see configure's option --config-cache. 17039# It is not useful on other systems. If it contains results you don't 17040# want to keep, you may remove or edit it. 17041# 17042# config.status only pays attention to the cache file if you give it 17043# the --recheck option to rerun configure. 17044# 17045# `ac_cv_env_foo' variables (set or unset) will be overridden when 17046# loading this file, other *unset* `ac_cv_foo' will be assigned the 17047# following values. 17048 17049_ACEOF 17050 17051# The following way of writing the cache mishandles newlines in values, 17052# but we know of no workaround that is simple, portable, and efficient. 17053# So, we kill variables containing newlines. 17054# Ultrix sh set writes to stderr and can't be redirected directly, 17055# and sets the high bit in the cache file unless we assign to the vars. 17056( 17057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17058 eval ac_val=\$$ac_var 17059 case $ac_val in #( 17060 *${as_nl}*) 17061 case $ac_var in #( 17062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17063$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17064 esac 17065 case $ac_var in #( 17066 _ | IFS | as_nl) ;; #( 17067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17068 *) { eval $ac_var=; unset $ac_var;} ;; 17069 esac ;; 17070 esac 17071 done 17072 17073 (set) 2>&1 | 17074 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17075 *${as_nl}ac_space=\ *) 17076 # `set' does not quote correctly, so add quotes: double-quote 17077 # substitution turns \\\\ into \\, and sed turns \\ into \. 17078 sed -n \ 17079 "s/'/'\\\\''/g; 17080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17081 ;; #( 17082 *) 17083 # `set' quotes correctly as required by POSIX, so do not add quotes. 17084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17085 ;; 17086 esac | 17087 sort 17088) | 17089 sed ' 17090 /^ac_cv_env_/b end 17091 t clear 17092 :clear 17093 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17094 t end 17095 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17096 :end' >>confcache 17097if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17098 if test -w "$cache_file"; then 17099 if test "x$cache_file" != "x/dev/null"; then 17100 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17101$as_echo "$as_me: updating cache $cache_file" >&6;} 17102 if test ! -f "$cache_file" || test -h "$cache_file"; then 17103 cat confcache >"$cache_file" 17104 else 17105 case $cache_file in #( 17106 */* | ?:*) 17107 mv -f confcache "$cache_file"$$ && 17108 mv -f "$cache_file"$$ "$cache_file" ;; #( 17109 *) 17110 mv -f confcache "$cache_file" ;; 17111 esac 17112 fi 17113 fi 17114 else 17115 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17116$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17117 fi 17118fi 17119rm -f confcache 17120 17121test "x$prefix" = xNONE && prefix=$ac_default_prefix 17122# Let make expand exec_prefix. 17123test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17124 17125DEFS=-DHAVE_CONFIG_H 17126 17127ac_libobjs= 17128ac_ltlibobjs= 17129for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17130 # 1. Remove the extension, and $U if already installed. 17131 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17132 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17133 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17134 # will be set to the directory where LIBOBJS objects are built. 17135 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17136 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17137done 17138LIBOBJS=$ac_libobjs 17139 17140LTLIBOBJS=$ac_ltlibobjs 17141 17142 17143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17144$as_echo_n "checking that generated files are newer than configure... " >&6; } 17145 if test -n "$am_sleep_pid"; then 17146 # Hide warnings about reused PIDs. 17147 wait $am_sleep_pid 2>/dev/null 17148 fi 17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17150$as_echo "done" >&6; } 17151 if test -n "$EXEEXT"; then 17152 am__EXEEXT_TRUE= 17153 am__EXEEXT_FALSE='#' 17154else 17155 am__EXEEXT_TRUE='#' 17156 am__EXEEXT_FALSE= 17157fi 17158 17159if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17160 as_fn_error $? "conditional \"AMDEP\" was never defined. 17161Usually this means the macro was only invoked conditionally." "$LINENO" 5 17162fi 17163if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17164 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17165Usually this means the macro was only invoked conditionally." "$LINENO" 5 17166fi 17167if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17168 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17169Usually this means the macro was only invoked conditionally." "$LINENO" 5 17170fi 17171if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then 17172 as_fn_error $? "conditional \"WIN32\" was never defined. 17173Usually this means the macro was only invoked conditionally." "$LINENO" 5 17174fi 17175if test -z "${WITH_ROLLINGFILE_TRUE}" && test -z "${WITH_ROLLINGFILE_FALSE}"; then 17176 as_fn_error $? "conditional \"WITH_ROLLINGFILE\" was never defined. 17177Usually this means the macro was only invoked conditionally." "$LINENO" 5 17178fi 17179if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then 17180 as_fn_error $? "conditional \"TEST\" was never defined. 17181Usually this means the macro was only invoked conditionally." "$LINENO" 5 17182fi 17183if test -z "${WITH_MMAP_TRUE}" && test -z "${WITH_MMAP_FALSE}"; then 17184 as_fn_error $? "conditional \"WITH_MMAP\" was never defined. 17185Usually this means the macro was only invoked conditionally." "$LINENO" 5 17186fi 17187if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then 17188 as_fn_error $? "conditional \"DOC\" was never defined. 17189Usually this means the macro was only invoked conditionally." "$LINENO" 5 17190fi 17191if test -z "${HAVE_LATEX_TRUE}" && test -z "${HAVE_LATEX_FALSE}"; then 17192 as_fn_error $? "conditional \"HAVE_LATEX\" was never defined. 17193Usually this means the macro was only invoked conditionally." "$LINENO" 5 17194fi 17195if test -z "${USE_EXPAT_TRUE}" && test -z "${USE_EXPAT_FALSE}"; then 17196 as_fn_error $? "conditional \"USE_EXPAT\" was never defined. 17197Usually this means the macro was only invoked conditionally." "$LINENO" 5 17198fi 17199 17200: "${CONFIG_STATUS=./config.status}" 17201ac_write_fail=0 17202ac_clean_files_save=$ac_clean_files 17203ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17204{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17205$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17206as_write_fail=0 17207cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17208#! $SHELL 17209# Generated by $as_me. 17210# Run this file to recreate the current configuration. 17211# Compiler output produced by configure, useful for debugging 17212# configure, is in config.log if it exists. 17213 17214debug=false 17215ac_cs_recheck=false 17216ac_cs_silent=false 17217 17218SHELL=\${CONFIG_SHELL-$SHELL} 17219export SHELL 17220_ASEOF 17221cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17222## -------------------- ## 17223## M4sh Initialization. ## 17224## -------------------- ## 17225 17226# Be more Bourne compatible 17227DUALCASE=1; export DUALCASE # for MKS sh 17228if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17229 emulate sh 17230 NULLCMD=: 17231 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17232 # is contrary to our usage. Disable this feature. 17233 alias -g '${1+"$@"}'='"$@"' 17234 setopt NO_GLOB_SUBST 17235else 17236 case `(set -o) 2>/dev/null` in #( 17237 *posix*) : 17238 set -o posix ;; #( 17239 *) : 17240 ;; 17241esac 17242fi 17243 17244 17245as_nl=' 17246' 17247export as_nl 17248# Printing a long string crashes Solaris 7 /usr/bin/printf. 17249as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17250as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17251as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17252# Prefer a ksh shell builtin over an external printf program on Solaris, 17253# but without wasting forks for bash or zsh. 17254if test -z "$BASH_VERSION$ZSH_VERSION" \ 17255 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17256 as_echo='print -r --' 17257 as_echo_n='print -rn --' 17258elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17259 as_echo='printf %s\n' 17260 as_echo_n='printf %s' 17261else 17262 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17263 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17264 as_echo_n='/usr/ucb/echo -n' 17265 else 17266 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17267 as_echo_n_body='eval 17268 arg=$1; 17269 case $arg in #( 17270 *"$as_nl"*) 17271 expr "X$arg" : "X\\(.*\\)$as_nl"; 17272 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17273 esac; 17274 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17275 ' 17276 export as_echo_n_body 17277 as_echo_n='sh -c $as_echo_n_body as_echo' 17278 fi 17279 export as_echo_body 17280 as_echo='sh -c $as_echo_body as_echo' 17281fi 17282 17283# The user is always right. 17284if test "${PATH_SEPARATOR+set}" != set; then 17285 PATH_SEPARATOR=: 17286 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17287 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17288 PATH_SEPARATOR=';' 17289 } 17290fi 17291 17292 17293# IFS 17294# We need space, tab and new line, in precisely that order. Quoting is 17295# there to prevent editors from complaining about space-tab. 17296# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17297# splitting by setting IFS to empty value.) 17298IFS=" "" $as_nl" 17299 17300# Find who we are. Look in the path if we contain no directory separator. 17301as_myself= 17302case $0 in #(( 17303 *[\\/]* ) as_myself=$0 ;; 17304 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17305for as_dir in $PATH 17306do 17307 IFS=$as_save_IFS 17308 test -z "$as_dir" && as_dir=. 17309 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17310 done 17311IFS=$as_save_IFS 17312 17313 ;; 17314esac 17315# We did not find ourselves, most probably we were run as `sh COMMAND' 17316# in which case we are not to be found in the path. 17317if test "x$as_myself" = x; then 17318 as_myself=$0 17319fi 17320if test ! -f "$as_myself"; then 17321 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17322 exit 1 17323fi 17324 17325# Unset variables that we do not need and which cause bugs (e.g. in 17326# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17327# suppresses any "Segmentation fault" message there. '((' could 17328# trigger a bug in pdksh 5.2.14. 17329for as_var in BASH_ENV ENV MAIL MAILPATH 17330do eval test x\${$as_var+set} = xset \ 17331 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17332done 17333PS1='$ ' 17334PS2='> ' 17335PS4='+ ' 17336 17337# NLS nuisances. 17338LC_ALL=C 17339export LC_ALL 17340LANGUAGE=C 17341export LANGUAGE 17342 17343# CDPATH. 17344(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17345 17346 17347# as_fn_error STATUS ERROR [LINENO LOG_FD] 17348# ---------------------------------------- 17349# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17350# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17351# script with STATUS, using 1 if that was 0. 17352as_fn_error () 17353{ 17354 as_status=$1; test $as_status -eq 0 && as_status=1 17355 if test "$4"; then 17356 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17357 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17358 fi 17359 $as_echo "$as_me: error: $2" >&2 17360 as_fn_exit $as_status 17361} # as_fn_error 17362 17363 17364# as_fn_set_status STATUS 17365# ----------------------- 17366# Set $? to STATUS, without forking. 17367as_fn_set_status () 17368{ 17369 return $1 17370} # as_fn_set_status 17371 17372# as_fn_exit STATUS 17373# ----------------- 17374# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17375as_fn_exit () 17376{ 17377 set +e 17378 as_fn_set_status $1 17379 exit $1 17380} # as_fn_exit 17381 17382# as_fn_unset VAR 17383# --------------- 17384# Portably unset VAR. 17385as_fn_unset () 17386{ 17387 { eval $1=; unset $1;} 17388} 17389as_unset=as_fn_unset 17390# as_fn_append VAR VALUE 17391# ---------------------- 17392# Append the text in VALUE to the end of the definition contained in VAR. Take 17393# advantage of any shell optimizations that allow amortized linear growth over 17394# repeated appends, instead of the typical quadratic growth present in naive 17395# implementations. 17396if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17397 eval 'as_fn_append () 17398 { 17399 eval $1+=\$2 17400 }' 17401else 17402 as_fn_append () 17403 { 17404 eval $1=\$$1\$2 17405 } 17406fi # as_fn_append 17407 17408# as_fn_arith ARG... 17409# ------------------ 17410# Perform arithmetic evaluation on the ARGs, and store the result in the 17411# global $as_val. Take advantage of shells that can avoid forks. The arguments 17412# must be portable across $(()) and expr. 17413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17414 eval 'as_fn_arith () 17415 { 17416 as_val=$(( $* )) 17417 }' 17418else 17419 as_fn_arith () 17420 { 17421 as_val=`expr "$@" || test $? -eq 1` 17422 } 17423fi # as_fn_arith 17424 17425 17426if expr a : '\(a\)' >/dev/null 2>&1 && 17427 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17428 as_expr=expr 17429else 17430 as_expr=false 17431fi 17432 17433if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17434 as_basename=basename 17435else 17436 as_basename=false 17437fi 17438 17439if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17440 as_dirname=dirname 17441else 17442 as_dirname=false 17443fi 17444 17445as_me=`$as_basename -- "$0" || 17446$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17447 X"$0" : 'X\(//\)$' \| \ 17448 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17449$as_echo X/"$0" | 17450 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17451 s//\1/ 17452 q 17453 } 17454 /^X\/\(\/\/\)$/{ 17455 s//\1/ 17456 q 17457 } 17458 /^X\/\(\/\).*/{ 17459 s//\1/ 17460 q 17461 } 17462 s/.*/./; q'` 17463 17464# Avoid depending upon Character Ranges. 17465as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17466as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17467as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17468as_cr_digits='0123456789' 17469as_cr_alnum=$as_cr_Letters$as_cr_digits 17470 17471ECHO_C= ECHO_N= ECHO_T= 17472case `echo -n x` in #((((( 17473-n*) 17474 case `echo 'xy\c'` in 17475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17476 xy) ECHO_C='\c';; 17477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17478 ECHO_T=' ';; 17479 esac;; 17480*) 17481 ECHO_N='-n';; 17482esac 17483 17484rm -f conf$$ conf$$.exe conf$$.file 17485if test -d conf$$.dir; then 17486 rm -f conf$$.dir/conf$$.file 17487else 17488 rm -f conf$$.dir 17489 mkdir conf$$.dir 2>/dev/null 17490fi 17491if (echo >conf$$.file) 2>/dev/null; then 17492 if ln -s conf$$.file conf$$ 2>/dev/null; then 17493 as_ln_s='ln -s' 17494 # ... but there are two gotchas: 17495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17497 # In both cases, we have to default to `cp -pR'. 17498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17499 as_ln_s='cp -pR' 17500 elif ln conf$$.file conf$$ 2>/dev/null; then 17501 as_ln_s=ln 17502 else 17503 as_ln_s='cp -pR' 17504 fi 17505else 17506 as_ln_s='cp -pR' 17507fi 17508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17509rmdir conf$$.dir 2>/dev/null 17510 17511 17512# as_fn_mkdir_p 17513# ------------- 17514# Create "$as_dir" as a directory, including parents if necessary. 17515as_fn_mkdir_p () 17516{ 17517 17518 case $as_dir in #( 17519 -*) as_dir=./$as_dir;; 17520 esac 17521 test -d "$as_dir" || eval $as_mkdir_p || { 17522 as_dirs= 17523 while :; do 17524 case $as_dir in #( 17525 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17526 *) as_qdir=$as_dir;; 17527 esac 17528 as_dirs="'$as_qdir' $as_dirs" 17529 as_dir=`$as_dirname -- "$as_dir" || 17530$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17531 X"$as_dir" : 'X\(//\)[^/]' \| \ 17532 X"$as_dir" : 'X\(//\)$' \| \ 17533 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17534$as_echo X"$as_dir" | 17535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17536 s//\1/ 17537 q 17538 } 17539 /^X\(\/\/\)[^/].*/{ 17540 s//\1/ 17541 q 17542 } 17543 /^X\(\/\/\)$/{ 17544 s//\1/ 17545 q 17546 } 17547 /^X\(\/\).*/{ 17548 s//\1/ 17549 q 17550 } 17551 s/.*/./; q'` 17552 test -d "$as_dir" && break 17553 done 17554 test -z "$as_dirs" || eval "mkdir $as_dirs" 17555 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17556 17557 17558} # as_fn_mkdir_p 17559if mkdir -p . 2>/dev/null; then 17560 as_mkdir_p='mkdir -p "$as_dir"' 17561else 17562 test -d ./-p && rmdir ./-p 17563 as_mkdir_p=false 17564fi 17565 17566 17567# as_fn_executable_p FILE 17568# ----------------------- 17569# Test if FILE is an executable regular file. 17570as_fn_executable_p () 17571{ 17572 test -f "$1" && test -x "$1" 17573} # as_fn_executable_p 17574as_test_x='test -x' 17575as_executable_p=as_fn_executable_p 17576 17577# Sed expression to map a string onto a valid CPP name. 17578as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17579 17580# Sed expression to map a string onto a valid variable name. 17581as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17582 17583 17584exec 6>&1 17585## ----------------------------------- ## 17586## Main body of $CONFIG_STATUS script. ## 17587## ----------------------------------- ## 17588_ASEOF 17589test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17590 17591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17592# Save the log message, to keep $0 and so on meaningful, and to 17593# report actual input values of CONFIG_FILES etc. instead of their 17594# values after options handling. 17595ac_log=" 17596This file was extended by $as_me, which was 17597generated by GNU Autoconf 2.69. Invocation command line was 17598 17599 CONFIG_FILES = $CONFIG_FILES 17600 CONFIG_HEADERS = $CONFIG_HEADERS 17601 CONFIG_LINKS = $CONFIG_LINKS 17602 CONFIG_COMMANDS = $CONFIG_COMMANDS 17603 $ $0 $@ 17604 17605on `(hostname || uname -n) 2>/dev/null | sed 1q` 17606" 17607 17608_ACEOF 17609 17610case $ac_config_files in *" 17611"*) set x $ac_config_files; shift; ac_config_files=$*;; 17612esac 17613 17614case $ac_config_headers in *" 17615"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17616esac 17617 17618 17619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17620# Files that config.status was made for. 17621config_files="$ac_config_files" 17622config_headers="$ac_config_headers" 17623config_commands="$ac_config_commands" 17624 17625_ACEOF 17626 17627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17628ac_cs_usage="\ 17629\`$as_me' instantiates files and other configuration actions 17630from templates according to the current configuration. Unless the files 17631and actions are specified as TAGs, all are instantiated by default. 17632 17633Usage: $0 [OPTION]... [TAG]... 17634 17635 -h, --help print this help, then exit 17636 -V, --version print version number and configuration settings, then exit 17637 --config print configuration, then exit 17638 -q, --quiet, --silent 17639 do not print progress messages 17640 -d, --debug don't remove temporary files 17641 --recheck update $as_me by reconfiguring in the same conditions 17642 --file=FILE[:TEMPLATE] 17643 instantiate the configuration file FILE 17644 --header=FILE[:TEMPLATE] 17645 instantiate the configuration header FILE 17646 17647Configuration files: 17648$config_files 17649 17650Configuration headers: 17651$config_headers 17652 17653Configuration commands: 17654$config_commands 17655 17656Report bugs to the package provider." 17657 17658_ACEOF 17659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17660ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17661ac_cs_version="\\ 17662config.status 17663configured by $0, generated by GNU Autoconf 2.69, 17664 with options \\"\$ac_cs_config\\" 17665 17666Copyright (C) 2012 Free Software Foundation, Inc. 17667This config.status script is free software; the Free Software Foundation 17668gives unlimited permission to copy, distribute and modify it." 17669 17670ac_pwd='$ac_pwd' 17671srcdir='$srcdir' 17672INSTALL='$INSTALL' 17673MKDIR_P='$MKDIR_P' 17674AWK='$AWK' 17675test -n "\$AWK" || AWK=awk 17676_ACEOF 17677 17678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17679# The default lists apply if the user does not specify any file. 17680ac_need_defaults=: 17681while test $# != 0 17682do 17683 case $1 in 17684 --*=?*) 17685 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17686 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17687 ac_shift=: 17688 ;; 17689 --*=) 17690 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17691 ac_optarg= 17692 ac_shift=: 17693 ;; 17694 *) 17695 ac_option=$1 17696 ac_optarg=$2 17697 ac_shift=shift 17698 ;; 17699 esac 17700 17701 case $ac_option in 17702 # Handling of the options. 17703 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17704 ac_cs_recheck=: ;; 17705 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17706 $as_echo "$ac_cs_version"; exit ;; 17707 --config | --confi | --conf | --con | --co | --c ) 17708 $as_echo "$ac_cs_config"; exit ;; 17709 --debug | --debu | --deb | --de | --d | -d ) 17710 debug=: ;; 17711 --file | --fil | --fi | --f ) 17712 $ac_shift 17713 case $ac_optarg in 17714 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17715 '') as_fn_error $? "missing file argument" ;; 17716 esac 17717 as_fn_append CONFIG_FILES " '$ac_optarg'" 17718 ac_need_defaults=false;; 17719 --header | --heade | --head | --hea ) 17720 $ac_shift 17721 case $ac_optarg in 17722 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17723 esac 17724 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17725 ac_need_defaults=false;; 17726 --he | --h) 17727 # Conflict between --help and --header 17728 as_fn_error $? "ambiguous option: \`$1' 17729Try \`$0 --help' for more information.";; 17730 --help | --hel | -h ) 17731 $as_echo "$ac_cs_usage"; exit ;; 17732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17733 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17734 ac_cs_silent=: ;; 17735 17736 # This is an error. 17737 -*) as_fn_error $? "unrecognized option: \`$1' 17738Try \`$0 --help' for more information." ;; 17739 17740 *) as_fn_append ac_config_targets " $1" 17741 ac_need_defaults=false ;; 17742 17743 esac 17744 shift 17745done 17746 17747ac_configure_extra_args= 17748 17749if $ac_cs_silent; then 17750 exec 6>/dev/null 17751 ac_configure_extra_args="$ac_configure_extra_args --silent" 17752fi 17753 17754_ACEOF 17755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17756if \$ac_cs_recheck; then 17757 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17758 shift 17759 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17760 CONFIG_SHELL='$SHELL' 17761 export CONFIG_SHELL 17762 exec "\$@" 17763fi 17764 17765_ACEOF 17766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17767exec 5>>config.log 17768{ 17769 echo 17770 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17771## Running $as_me. ## 17772_ASBOX 17773 $as_echo "$ac_log" 17774} >&5 17775 17776_ACEOF 17777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17778# 17779# INIT-COMMANDS 17780# 17781AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17782 17783 17784# The HP-UX ksh and POSIX shell print the target directory to stdout 17785# if CDPATH is set. 17786(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17787 17788sed_quote_subst='$sed_quote_subst' 17789double_quote_subst='$double_quote_subst' 17790delay_variable_subst='$delay_variable_subst' 17791macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17792macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17793enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17794enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17795pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17796enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17797SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17798ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17799PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17800host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17801host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17802host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17803build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17804build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17805build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17806SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17807Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17808GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17809EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17810FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17811LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17812NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17813LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17814max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17815ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17816exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17817lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17818lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17819lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17820lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17821lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17822reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17823reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17824OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17825deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17826file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17827file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17828want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17829DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17830sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17831AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17832AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17833archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17834STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17835RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17836old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17837old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17838old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17839lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17840CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17841CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17842compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17843GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17844lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17845lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17846lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17847lt_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"`' 17848nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17849lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17850objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17851MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17852lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17853lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17854lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17855lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17856lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17857need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17858MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17859DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17860NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17861LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17862OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17863OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17864libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17865shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17866extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17867archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17868enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17869export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17870whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17871compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17872old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17873old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17874archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17875archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17876module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17877module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17878with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17879allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17880no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17881hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17882hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17883hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17884hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17885hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17886hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17887hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17888inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17889link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17890always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17891export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17892exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17893include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17894prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17895postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17896file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17897variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17898need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17899need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17900version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17901runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17902shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17903shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17904libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17905library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17906soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17907install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17908postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17909postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17910finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17911finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17912hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17913sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17914sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17915hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17916enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17917enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17918enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17919old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17920striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17921compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17922predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17923postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17924predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17925postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17926compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17927LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17928reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17929reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17930old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17931compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17932GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17933lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17934lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17935lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17936lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17937lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17938archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17939enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17940export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17941whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17942compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17943old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17944old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17945archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17946archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17947module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17948module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17949with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17950allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17951no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17952hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17953hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17954hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17955hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17956hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17957hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17958hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17959inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17960link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17961always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17962export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17963exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17964include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17965prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17966postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17967file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17968hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17969compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17970predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17971postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17972predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17973postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17974compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17975 17976LTCC='$LTCC' 17977LTCFLAGS='$LTCFLAGS' 17978compiler='$compiler_DEFAULT' 17979 17980# A function that is used when there is no print builtin or printf. 17981func_fallback_echo () 17982{ 17983 eval 'cat <<_LTECHO_EOF 17984\$1 17985_LTECHO_EOF' 17986} 17987 17988# Quote evaled strings. 17989for var in SHELL \ 17990ECHO \ 17991PATH_SEPARATOR \ 17992SED \ 17993GREP \ 17994EGREP \ 17995FGREP \ 17996LD \ 17997NM \ 17998LN_S \ 17999lt_SP2NL \ 18000lt_NL2SP \ 18001reload_flag \ 18002OBJDUMP \ 18003deplibs_check_method \ 18004file_magic_cmd \ 18005file_magic_glob \ 18006want_nocaseglob \ 18007DLLTOOL \ 18008sharedlib_from_linklib_cmd \ 18009AR \ 18010AR_FLAGS \ 18011archiver_list_spec \ 18012STRIP \ 18013RANLIB \ 18014CC \ 18015CFLAGS \ 18016compiler \ 18017lt_cv_sys_global_symbol_pipe \ 18018lt_cv_sys_global_symbol_to_cdecl \ 18019lt_cv_sys_global_symbol_to_c_name_address \ 18020lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18021nm_file_list_spec \ 18022lt_prog_compiler_no_builtin_flag \ 18023lt_prog_compiler_pic \ 18024lt_prog_compiler_wl \ 18025lt_prog_compiler_static \ 18026lt_cv_prog_compiler_c_o \ 18027need_locks \ 18028MANIFEST_TOOL \ 18029DSYMUTIL \ 18030NMEDIT \ 18031LIPO \ 18032OTOOL \ 18033OTOOL64 \ 18034shrext_cmds \ 18035export_dynamic_flag_spec \ 18036whole_archive_flag_spec \ 18037compiler_needs_object \ 18038with_gnu_ld \ 18039allow_undefined_flag \ 18040no_undefined_flag \ 18041hardcode_libdir_flag_spec \ 18042hardcode_libdir_separator \ 18043exclude_expsyms \ 18044include_expsyms \ 18045file_list_spec \ 18046variables_saved_for_relink \ 18047libname_spec \ 18048library_names_spec \ 18049soname_spec \ 18050install_override_mode \ 18051finish_eval \ 18052old_striplib \ 18053striplib \ 18054compiler_lib_search_dirs \ 18055predep_objects \ 18056postdep_objects \ 18057predeps \ 18058postdeps \ 18059compiler_lib_search_path \ 18060LD_CXX \ 18061reload_flag_CXX \ 18062compiler_CXX \ 18063lt_prog_compiler_no_builtin_flag_CXX \ 18064lt_prog_compiler_pic_CXX \ 18065lt_prog_compiler_wl_CXX \ 18066lt_prog_compiler_static_CXX \ 18067lt_cv_prog_compiler_c_o_CXX \ 18068export_dynamic_flag_spec_CXX \ 18069whole_archive_flag_spec_CXX \ 18070compiler_needs_object_CXX \ 18071with_gnu_ld_CXX \ 18072allow_undefined_flag_CXX \ 18073no_undefined_flag_CXX \ 18074hardcode_libdir_flag_spec_CXX \ 18075hardcode_libdir_separator_CXX \ 18076exclude_expsyms_CXX \ 18077include_expsyms_CXX \ 18078file_list_spec_CXX \ 18079compiler_lib_search_dirs_CXX \ 18080predep_objects_CXX \ 18081postdep_objects_CXX \ 18082predeps_CXX \ 18083postdeps_CXX \ 18084compiler_lib_search_path_CXX; do 18085 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18086 *[\\\\\\\`\\"\\\$]*) 18087 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18088 ;; 18089 *) 18090 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18091 ;; 18092 esac 18093done 18094 18095# Double-quote double-evaled strings. 18096for var in reload_cmds \ 18097old_postinstall_cmds \ 18098old_postuninstall_cmds \ 18099old_archive_cmds \ 18100extract_expsyms_cmds \ 18101old_archive_from_new_cmds \ 18102old_archive_from_expsyms_cmds \ 18103archive_cmds \ 18104archive_expsym_cmds \ 18105module_cmds \ 18106module_expsym_cmds \ 18107export_symbols_cmds \ 18108prelink_cmds \ 18109postlink_cmds \ 18110postinstall_cmds \ 18111postuninstall_cmds \ 18112finish_cmds \ 18113sys_lib_search_path_spec \ 18114sys_lib_dlsearch_path_spec \ 18115reload_cmds_CXX \ 18116old_archive_cmds_CXX \ 18117old_archive_from_new_cmds_CXX \ 18118old_archive_from_expsyms_cmds_CXX \ 18119archive_cmds_CXX \ 18120archive_expsym_cmds_CXX \ 18121module_cmds_CXX \ 18122module_expsym_cmds_CXX \ 18123export_symbols_cmds_CXX \ 18124prelink_cmds_CXX \ 18125postlink_cmds_CXX; do 18126 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18127 *[\\\\\\\`\\"\\\$]*) 18128 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18129 ;; 18130 *) 18131 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18132 ;; 18133 esac 18134done 18135 18136ac_aux_dir='$ac_aux_dir' 18137xsi_shell='$xsi_shell' 18138lt_shell_append='$lt_shell_append' 18139 18140# See if we are running on zsh, and set the options which allow our 18141# commands through without removal of \ escapes INIT. 18142if test -n "\${ZSH_VERSION+set}" ; then 18143 setopt NO_GLOB_SUBST 18144fi 18145 18146 18147 PACKAGE='$PACKAGE' 18148 VERSION='$VERSION' 18149 TIMESTAMP='$TIMESTAMP' 18150 RM='$RM' 18151 ofile='$ofile' 18152 18153 18154 18155 18156 18157 18158 18159_ACEOF 18160 18161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18162 18163# Handling of arguments. 18164for ac_config_target in $ac_config_targets 18165do 18166 case $ac_config_target in 18167 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 18168 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18169 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18170 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18171 "log4c-config") CONFIG_FILES="$CONFIG_FILES log4c-config" ;; 18172 "log4c.pc") CONFIG_FILES="$CONFIG_FILES log4c.pc" ;; 18173 "log4crc.sample") CONFIG_FILES="$CONFIG_FILES log4crc.sample" ;; 18174 "log4c.spec") CONFIG_FILES="$CONFIG_FILES log4c.spec" ;; 18175 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 18176 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 18177 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; 18178 "doc/main.doc") CONFIG_FILES="$CONFIG_FILES doc/main.doc" ;; 18179 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18180 "src/log4c/Makefile") CONFIG_FILES="$CONFIG_FILES src/log4c/Makefile" ;; 18181 "src/log4c/version.h") CONFIG_FILES="$CONFIG_FILES src/log4c/version.h" ;; 18182 "src/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/sd/Makefile" ;; 18183 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 18184 "tests/log4c/Makefile") CONFIG_FILES="$CONFIG_FILES tests/log4c/Makefile" ;; 18185 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 18186 "examples/log4crc") CONFIG_FILES="$CONFIG_FILES examples/log4crc" ;; 18187 "examples/helloworld/Makefile") CONFIG_FILES="$CONFIG_FILES examples/helloworld/Makefile" ;; 18188 "examples/helloworld1/Makefile") CONFIG_FILES="$CONFIG_FILES examples/helloworld1/Makefile" ;; 18189 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 18190 18191 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18192 esac 18193done 18194 18195 18196# If the user did not use the arguments to specify the items to instantiate, 18197# then the envvar interface is used. Set only those that are not. 18198# We use the long form for the default assignment because of an extremely 18199# bizarre bug on SunOS 4.1.3. 18200if $ac_need_defaults; then 18201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18202 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18203 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18204fi 18205 18206# Have a temporary directory for convenience. Make it in the build tree 18207# simply because there is no reason against having it here, and in addition, 18208# creating and moving files from /tmp can sometimes cause problems. 18209# Hook for its removal unless debugging. 18210# Note that there is a small window in which the directory will not be cleaned: 18211# after its creation but before its name has been assigned to `$tmp'. 18212$debug || 18213{ 18214 tmp= ac_tmp= 18215 trap 'exit_status=$? 18216 : "${ac_tmp:=$tmp}" 18217 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18218' 0 18219 trap 'as_fn_exit 1' 1 2 13 15 18220} 18221# Create a (secure) tmp directory for tmp files. 18222 18223{ 18224 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18225 test -d "$tmp" 18226} || 18227{ 18228 tmp=./conf$$-$RANDOM 18229 (umask 077 && mkdir "$tmp") 18230} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18231ac_tmp=$tmp 18232 18233# Set up the scripts for CONFIG_FILES section. 18234# No need to generate them if there are no CONFIG_FILES. 18235# This happens for instance with `./config.status config.h'. 18236if test -n "$CONFIG_FILES"; then 18237 18238 18239ac_cr=`echo X | tr X '\015'` 18240# On cygwin, bash can eat \r inside `` if the user requested igncr. 18241# But we know of no other shell where ac_cr would be empty at this 18242# point, so we can use a bashism as a fallback. 18243if test "x$ac_cr" = x; then 18244 eval ac_cr=\$\'\\r\' 18245fi 18246ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18247if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18248 ac_cs_awk_cr='\\r' 18249else 18250 ac_cs_awk_cr=$ac_cr 18251fi 18252 18253echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18254_ACEOF 18255 18256 18257{ 18258 echo "cat >conf$$subs.awk <<_ACEOF" && 18259 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18260 echo "_ACEOF" 18261} >conf$$subs.sh || 18262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18263ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18264ac_delim='%!_!# ' 18265for ac_last_try in false false false false false :; do 18266 . ./conf$$subs.sh || 18267 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18268 18269 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18270 if test $ac_delim_n = $ac_delim_num; then 18271 break 18272 elif $ac_last_try; then 18273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18274 else 18275 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18276 fi 18277done 18278rm -f conf$$subs.sh 18279 18280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18281cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18282_ACEOF 18283sed -n ' 18284h 18285s/^/S["/; s/!.*/"]=/ 18286p 18287g 18288s/^[^!]*!// 18289:repl 18290t repl 18291s/'"$ac_delim"'$// 18292t delim 18293:nl 18294h 18295s/\(.\{148\}\)..*/\1/ 18296t more1 18297s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18298p 18299n 18300b repl 18301:more1 18302s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18303p 18304g 18305s/.\{148\}// 18306t nl 18307:delim 18308h 18309s/\(.\{148\}\)..*/\1/ 18310t more2 18311s/["\\]/\\&/g; s/^/"/; s/$/"/ 18312p 18313b 18314:more2 18315s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18316p 18317g 18318s/.\{148\}// 18319t delim 18320' <conf$$subs.awk | sed ' 18321/^[^""]/{ 18322 N 18323 s/\n// 18324} 18325' >>$CONFIG_STATUS || ac_write_fail=1 18326rm -f conf$$subs.awk 18327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18328_ACAWK 18329cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18330 for (key in S) S_is_set[key] = 1 18331 FS = "" 18332 18333} 18334{ 18335 line = $ 0 18336 nfields = split(line, field, "@") 18337 substed = 0 18338 len = length(field[1]) 18339 for (i = 2; i < nfields; i++) { 18340 key = field[i] 18341 keylen = length(key) 18342 if (S_is_set[key]) { 18343 value = S[key] 18344 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18345 len += length(value) + length(field[++i]) 18346 substed = 1 18347 } else 18348 len += 1 + keylen 18349 } 18350 18351 print line 18352} 18353 18354_ACAWK 18355_ACEOF 18356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18357if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18358 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18359else 18360 cat 18361fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18362 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18363_ACEOF 18364 18365# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18366# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18367# trailing colons and then remove the whole line if VPATH becomes empty 18368# (actually we leave an empty line to preserve line numbers). 18369if test "x$srcdir" = x.; then 18370 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18371h 18372s/// 18373s/^/:/ 18374s/[ ]*$/:/ 18375s/:\$(srcdir):/:/g 18376s/:\${srcdir}:/:/g 18377s/:@srcdir@:/:/g 18378s/^:*// 18379s/:*$// 18380x 18381s/\(=[ ]*\).*/\1/ 18382G 18383s/\n// 18384s/^[^=]*=[ ]*$// 18385}' 18386fi 18387 18388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18389fi # test -n "$CONFIG_FILES" 18390 18391# Set up the scripts for CONFIG_HEADERS section. 18392# No need to generate them if there are no CONFIG_HEADERS. 18393# This happens for instance with `./config.status Makefile'. 18394if test -n "$CONFIG_HEADERS"; then 18395cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18396BEGIN { 18397_ACEOF 18398 18399# Transform confdefs.h into an awk script `defines.awk', embedded as 18400# here-document in config.status, that substitutes the proper values into 18401# config.h.in to produce config.h. 18402 18403# Create a delimiter string that does not exist in confdefs.h, to ease 18404# handling of long lines. 18405ac_delim='%!_!# ' 18406for ac_last_try in false false :; do 18407 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18408 if test -z "$ac_tt"; then 18409 break 18410 elif $ac_last_try; then 18411 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18412 else 18413 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18414 fi 18415done 18416 18417# For the awk script, D is an array of macro values keyed by name, 18418# likewise P contains macro parameters if any. Preserve backslash 18419# newline sequences. 18420 18421ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18422sed -n ' 18423s/.\{148\}/&'"$ac_delim"'/g 18424t rset 18425:rset 18426s/^[ ]*#[ ]*define[ ][ ]*/ / 18427t def 18428d 18429:def 18430s/\\$// 18431t bsnl 18432s/["\\]/\\&/g 18433s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18434D["\1"]=" \3"/p 18435s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18436d 18437:bsnl 18438s/["\\]/\\&/g 18439s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18440D["\1"]=" \3\\\\\\n"\\/p 18441t cont 18442s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18443t cont 18444d 18445:cont 18446n 18447s/.\{148\}/&'"$ac_delim"'/g 18448t clear 18449:clear 18450s/\\$// 18451t bsnlc 18452s/["\\]/\\&/g; s/^/"/; s/$/"/p 18453d 18454:bsnlc 18455s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18456b cont 18457' <confdefs.h | sed ' 18458s/'"$ac_delim"'/"\\\ 18459"/g' >>$CONFIG_STATUS || ac_write_fail=1 18460 18461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18462 for (key in D) D_is_set[key] = 1 18463 FS = "" 18464} 18465/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18466 line = \$ 0 18467 split(line, arg, " ") 18468 if (arg[1] == "#") { 18469 defundef = arg[2] 18470 mac1 = arg[3] 18471 } else { 18472 defundef = substr(arg[1], 2) 18473 mac1 = arg[2] 18474 } 18475 split(mac1, mac2, "(") #) 18476 macro = mac2[1] 18477 prefix = substr(line, 1, index(line, defundef) - 1) 18478 if (D_is_set[macro]) { 18479 # Preserve the white space surrounding the "#". 18480 print prefix "define", macro P[macro] D[macro] 18481 next 18482 } else { 18483 # Replace #undef with comments. This is necessary, for example, 18484 # in the case of _POSIX_SOURCE, which is predefined and required 18485 # on some systems where configure will not decide to define it. 18486 if (defundef == "undef") { 18487 print "/*", prefix defundef, macro, "*/" 18488 next 18489 } 18490 } 18491} 18492{ print } 18493_ACAWK 18494_ACEOF 18495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18496 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18497fi # test -n "$CONFIG_HEADERS" 18498 18499 18500eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18501shift 18502for ac_tag 18503do 18504 case $ac_tag in 18505 :[FHLC]) ac_mode=$ac_tag; continue;; 18506 esac 18507 case $ac_mode$ac_tag in 18508 :[FHL]*:*);; 18509 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18510 :[FH]-) ac_tag=-:-;; 18511 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18512 esac 18513 ac_save_IFS=$IFS 18514 IFS=: 18515 set x $ac_tag 18516 IFS=$ac_save_IFS 18517 shift 18518 ac_file=$1 18519 shift 18520 18521 case $ac_mode in 18522 :L) ac_source=$1;; 18523 :[FH]) 18524 ac_file_inputs= 18525 for ac_f 18526 do 18527 case $ac_f in 18528 -) ac_f="$ac_tmp/stdin";; 18529 *) # Look for the file first in the build tree, then in the source tree 18530 # (if the path is not absolute). The absolute path cannot be DOS-style, 18531 # because $ac_f cannot contain `:'. 18532 test -f "$ac_f" || 18533 case $ac_f in 18534 [\\/$]*) false;; 18535 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18536 esac || 18537 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18538 esac 18539 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18540 as_fn_append ac_file_inputs " '$ac_f'" 18541 done 18542 18543 # Let's still pretend it is `configure' which instantiates (i.e., don't 18544 # use $as_me), people would be surprised to read: 18545 # /* config.h. Generated by config.status. */ 18546 configure_input='Generated from '` 18547 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18548 `' by configure.' 18549 if test x"$ac_file" != x-; then 18550 configure_input="$ac_file. $configure_input" 18551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18552$as_echo "$as_me: creating $ac_file" >&6;} 18553 fi 18554 # Neutralize special characters interpreted by sed in replacement strings. 18555 case $configure_input in #( 18556 *\&* | *\|* | *\\* ) 18557 ac_sed_conf_input=`$as_echo "$configure_input" | 18558 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18559 *) ac_sed_conf_input=$configure_input;; 18560 esac 18561 18562 case $ac_tag in 18563 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18565 esac 18566 ;; 18567 esac 18568 18569 ac_dir=`$as_dirname -- "$ac_file" || 18570$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18571 X"$ac_file" : 'X\(//\)[^/]' \| \ 18572 X"$ac_file" : 'X\(//\)$' \| \ 18573 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18574$as_echo X"$ac_file" | 18575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18576 s//\1/ 18577 q 18578 } 18579 /^X\(\/\/\)[^/].*/{ 18580 s//\1/ 18581 q 18582 } 18583 /^X\(\/\/\)$/{ 18584 s//\1/ 18585 q 18586 } 18587 /^X\(\/\).*/{ 18588 s//\1/ 18589 q 18590 } 18591 s/.*/./; q'` 18592 as_dir="$ac_dir"; as_fn_mkdir_p 18593 ac_builddir=. 18594 18595case "$ac_dir" in 18596.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18597*) 18598 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18599 # A ".." for each directory in $ac_dir_suffix. 18600 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18601 case $ac_top_builddir_sub in 18602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18604 esac ;; 18605esac 18606ac_abs_top_builddir=$ac_pwd 18607ac_abs_builddir=$ac_pwd$ac_dir_suffix 18608# for backward compatibility: 18609ac_top_builddir=$ac_top_build_prefix 18610 18611case $srcdir in 18612 .) # We are building in place. 18613 ac_srcdir=. 18614 ac_top_srcdir=$ac_top_builddir_sub 18615 ac_abs_top_srcdir=$ac_pwd ;; 18616 [\\/]* | ?:[\\/]* ) # Absolute name. 18617 ac_srcdir=$srcdir$ac_dir_suffix; 18618 ac_top_srcdir=$srcdir 18619 ac_abs_top_srcdir=$srcdir ;; 18620 *) # Relative name. 18621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18622 ac_top_srcdir=$ac_top_build_prefix$srcdir 18623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18624esac 18625ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18626 18627 18628 case $ac_mode in 18629 :F) 18630 # 18631 # CONFIG_FILE 18632 # 18633 18634 case $INSTALL in 18635 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18636 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18637 esac 18638 ac_MKDIR_P=$MKDIR_P 18639 case $MKDIR_P in 18640 [\\/$]* | ?:[\\/]* ) ;; 18641 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18642 esac 18643_ACEOF 18644 18645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18646# If the template does not know about datarootdir, expand it. 18647# FIXME: This hack should be removed a few years after 2.60. 18648ac_datarootdir_hack=; ac_datarootdir_seen= 18649ac_sed_dataroot=' 18650/datarootdir/ { 18651 p 18652 q 18653} 18654/@datadir@/p 18655/@docdir@/p 18656/@infodir@/p 18657/@localedir@/p 18658/@mandir@/p' 18659case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18660*datarootdir*) ac_datarootdir_seen=yes;; 18661*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18663$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18664_ACEOF 18665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18666 ac_datarootdir_hack=' 18667 s&@datadir@&$datadir&g 18668 s&@docdir@&$docdir&g 18669 s&@infodir@&$infodir&g 18670 s&@localedir@&$localedir&g 18671 s&@mandir@&$mandir&g 18672 s&\\\${datarootdir}&$datarootdir&g' ;; 18673esac 18674_ACEOF 18675 18676# Neutralize VPATH when `$srcdir' = `.'. 18677# Shell code in configure.ac might set extrasub. 18678# FIXME: do we really want to maintain this feature? 18679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18680ac_sed_extra="$ac_vpsub 18681$extrasub 18682_ACEOF 18683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18684:t 18685/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18686s|@configure_input@|$ac_sed_conf_input|;t t 18687s&@top_builddir@&$ac_top_builddir_sub&;t t 18688s&@top_build_prefix@&$ac_top_build_prefix&;t t 18689s&@srcdir@&$ac_srcdir&;t t 18690s&@abs_srcdir@&$ac_abs_srcdir&;t t 18691s&@top_srcdir@&$ac_top_srcdir&;t t 18692s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18693s&@builddir@&$ac_builddir&;t t 18694s&@abs_builddir@&$ac_abs_builddir&;t t 18695s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18696s&@INSTALL@&$ac_INSTALL&;t t 18697s&@MKDIR_P@&$ac_MKDIR_P&;t t 18698$ac_datarootdir_hack 18699" 18700eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18701 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18702 18703test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18704 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18705 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18706 "$ac_tmp/out"`; test -z "$ac_out"; } && 18707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18708which seems to be undefined. Please make sure it is defined" >&5 18709$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18710which seems to be undefined. Please make sure it is defined" >&2;} 18711 18712 rm -f "$ac_tmp/stdin" 18713 case $ac_file in 18714 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18715 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18716 esac \ 18717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18718 ;; 18719 :H) 18720 # 18721 # CONFIG_HEADER 18722 # 18723 if test x"$ac_file" != x-; then 18724 { 18725 $as_echo "/* $configure_input */" \ 18726 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18727 } >"$ac_tmp/config.h" \ 18728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18729 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18730 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18731$as_echo "$as_me: $ac_file is unchanged" >&6;} 18732 else 18733 rm -f "$ac_file" 18734 mv "$ac_tmp/config.h" "$ac_file" \ 18735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18736 fi 18737 else 18738 $as_echo "/* $configure_input */" \ 18739 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18740 || as_fn_error $? "could not create -" "$LINENO" 5 18741 fi 18742# Compute "$ac_file"'s index in $config_headers. 18743_am_arg="$ac_file" 18744_am_stamp_count=1 18745for _am_header in $config_headers :; do 18746 case $_am_header in 18747 $_am_arg | $_am_arg:* ) 18748 break ;; 18749 * ) 18750 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18751 esac 18752done 18753echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18754$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18755 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18756 X"$_am_arg" : 'X\(//\)$' \| \ 18757 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18758$as_echo X"$_am_arg" | 18759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18760 s//\1/ 18761 q 18762 } 18763 /^X\(\/\/\)[^/].*/{ 18764 s//\1/ 18765 q 18766 } 18767 /^X\(\/\/\)$/{ 18768 s//\1/ 18769 q 18770 } 18771 /^X\(\/\).*/{ 18772 s//\1/ 18773 q 18774 } 18775 s/.*/./; q'`/stamp-h$_am_stamp_count 18776 ;; 18777 18778 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18779$as_echo "$as_me: executing $ac_file commands" >&6;} 18780 ;; 18781 esac 18782 18783 18784 case $ac_file$ac_mode in 18785 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18786 # Older Autoconf quotes --file arguments for eval, but not when files 18787 # are listed without --file. Let's play safe and only enable the eval 18788 # if we detect the quoting. 18789 case $CONFIG_FILES in 18790 *\'*) eval set x "$CONFIG_FILES" ;; 18791 *) set x $CONFIG_FILES ;; 18792 esac 18793 shift 18794 for mf 18795 do 18796 # Strip MF so we end up with the name of the file. 18797 mf=`echo "$mf" | sed -e 's/:.*$//'` 18798 # Check whether this is an Automake generated Makefile or not. 18799 # We used to match only the files named 'Makefile.in', but 18800 # some people rename them; so instead we look at the file content. 18801 # Grep'ing the first line is not enough: some people post-process 18802 # each Makefile.in and add a new line on top of each file to say so. 18803 # Grep'ing the whole file is not good either: AIX grep has a line 18804 # limit of 2048, but all sed's we know have understand at least 4000. 18805 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18806 dirpart=`$as_dirname -- "$mf" || 18807$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18808 X"$mf" : 'X\(//\)[^/]' \| \ 18809 X"$mf" : 'X\(//\)$' \| \ 18810 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18811$as_echo X"$mf" | 18812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18813 s//\1/ 18814 q 18815 } 18816 /^X\(\/\/\)[^/].*/{ 18817 s//\1/ 18818 q 18819 } 18820 /^X\(\/\/\)$/{ 18821 s//\1/ 18822 q 18823 } 18824 /^X\(\/\).*/{ 18825 s//\1/ 18826 q 18827 } 18828 s/.*/./; q'` 18829 else 18830 continue 18831 fi 18832 # Extract the definition of DEPDIR, am__include, and am__quote 18833 # from the Makefile without running 'make'. 18834 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18835 test -z "$DEPDIR" && continue 18836 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18837 test -z "$am__include" && continue 18838 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18839 # Find all dependency output files, they are included files with 18840 # $(DEPDIR) in their names. We invoke sed twice because it is the 18841 # simplest approach to changing $(DEPDIR) to its actual value in the 18842 # expansion. 18843 for file in `sed -n " 18844 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18845 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18846 # Make sure the directory exists. 18847 test -f "$dirpart/$file" && continue 18848 fdir=`$as_dirname -- "$file" || 18849$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18850 X"$file" : 'X\(//\)[^/]' \| \ 18851 X"$file" : 'X\(//\)$' \| \ 18852 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18853$as_echo X"$file" | 18854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18855 s//\1/ 18856 q 18857 } 18858 /^X\(\/\/\)[^/].*/{ 18859 s//\1/ 18860 q 18861 } 18862 /^X\(\/\/\)$/{ 18863 s//\1/ 18864 q 18865 } 18866 /^X\(\/\).*/{ 18867 s//\1/ 18868 q 18869 } 18870 s/.*/./; q'` 18871 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18872 # echo "creating $dirpart/$file" 18873 echo '# dummy' > "$dirpart/$file" 18874 done 18875 done 18876} 18877 ;; 18878 "libtool":C) 18879 18880 # See if we are running on zsh, and set the options which allow our 18881 # commands through without removal of \ escapes. 18882 if test -n "${ZSH_VERSION+set}" ; then 18883 setopt NO_GLOB_SUBST 18884 fi 18885 18886 cfgfile="${ofile}T" 18887 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18888 $RM "$cfgfile" 18889 18890 cat <<_LT_EOF >> "$cfgfile" 18891#! $SHELL 18892 18893# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18894# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18895# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18896# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18897# 18898# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18899# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 18900# Foundation, Inc. 18901# Written by Gordon Matzigkeit, 1996 18902# 18903# This file is part of GNU Libtool. 18904# 18905# GNU Libtool is free software; you can redistribute it and/or 18906# modify it under the terms of the GNU General Public License as 18907# published by the Free Software Foundation; either version 2 of 18908# the License, or (at your option) any later version. 18909# 18910# As a special exception to the GNU General Public License, 18911# if you distribute this file as part of a program or library that 18912# is built using GNU Libtool, you may include this file under the 18913# same distribution terms that you use for the rest of that program. 18914# 18915# GNU Libtool is distributed in the hope that it will be useful, 18916# but WITHOUT ANY WARRANTY; without even the implied warranty of 18917# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18918# GNU General Public License for more details. 18919# 18920# You should have received a copy of the GNU General Public License 18921# along with GNU Libtool; see the file COPYING. If not, a copy 18922# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18923# obtained by writing to the Free Software Foundation, Inc., 18924# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18925 18926 18927# The names of the tagged configurations supported by this script. 18928available_tags="CXX " 18929 18930# ### BEGIN LIBTOOL CONFIG 18931 18932# Which release of libtool.m4 was used? 18933macro_version=$macro_version 18934macro_revision=$macro_revision 18935 18936# Whether or not to build shared libraries. 18937build_libtool_libs=$enable_shared 18938 18939# Whether or not to build static libraries. 18940build_old_libs=$enable_static 18941 18942# What type of objects to build. 18943pic_mode=$pic_mode 18944 18945# Whether or not to optimize for fast installation. 18946fast_install=$enable_fast_install 18947 18948# Shell to use when invoking shell scripts. 18949SHELL=$lt_SHELL 18950 18951# An echo program that protects backslashes. 18952ECHO=$lt_ECHO 18953 18954# The PATH separator for the build system. 18955PATH_SEPARATOR=$lt_PATH_SEPARATOR 18956 18957# The host system. 18958host_alias=$host_alias 18959host=$host 18960host_os=$host_os 18961 18962# The build system. 18963build_alias=$build_alias 18964build=$build 18965build_os=$build_os 18966 18967# A sed program that does not truncate output. 18968SED=$lt_SED 18969 18970# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18971Xsed="\$SED -e 1s/^X//" 18972 18973# A grep program that handles long lines. 18974GREP=$lt_GREP 18975 18976# An ERE matcher. 18977EGREP=$lt_EGREP 18978 18979# A literal string matcher. 18980FGREP=$lt_FGREP 18981 18982# A BSD- or MS-compatible name lister. 18983NM=$lt_NM 18984 18985# Whether we need soft or hard links. 18986LN_S=$lt_LN_S 18987 18988# What is the maximum length of a command? 18989max_cmd_len=$max_cmd_len 18990 18991# Object file suffix (normally "o"). 18992objext=$ac_objext 18993 18994# Executable file suffix (normally ""). 18995exeext=$exeext 18996 18997# whether the shell understands "unset". 18998lt_unset=$lt_unset 18999 19000# turn spaces into newlines. 19001SP2NL=$lt_lt_SP2NL 19002 19003# turn newlines into spaces. 19004NL2SP=$lt_lt_NL2SP 19005 19006# convert \$build file names to \$host format. 19007to_host_file_cmd=$lt_cv_to_host_file_cmd 19008 19009# convert \$build files to toolchain format. 19010to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19011 19012# An object symbol dumper. 19013OBJDUMP=$lt_OBJDUMP 19014 19015# Method to check whether dependent libraries are shared objects. 19016deplibs_check_method=$lt_deplibs_check_method 19017 19018# Command to use when deplibs_check_method = "file_magic". 19019file_magic_cmd=$lt_file_magic_cmd 19020 19021# How to find potential files when deplibs_check_method = "file_magic". 19022file_magic_glob=$lt_file_magic_glob 19023 19024# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19025want_nocaseglob=$lt_want_nocaseglob 19026 19027# DLL creation program. 19028DLLTOOL=$lt_DLLTOOL 19029 19030# Command to associate shared and link libraries. 19031sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19032 19033# The archiver. 19034AR=$lt_AR 19035 19036# Flags to create an archive. 19037AR_FLAGS=$lt_AR_FLAGS 19038 19039# How to feed a file listing to the archiver. 19040archiver_list_spec=$lt_archiver_list_spec 19041 19042# A symbol stripping program. 19043STRIP=$lt_STRIP 19044 19045# Commands used to install an old-style archive. 19046RANLIB=$lt_RANLIB 19047old_postinstall_cmds=$lt_old_postinstall_cmds 19048old_postuninstall_cmds=$lt_old_postuninstall_cmds 19049 19050# Whether to use a lock for old archive extraction. 19051lock_old_archive_extraction=$lock_old_archive_extraction 19052 19053# A C compiler. 19054LTCC=$lt_CC 19055 19056# LTCC compiler flags. 19057LTCFLAGS=$lt_CFLAGS 19058 19059# Take the output of nm and produce a listing of raw symbols and C names. 19060global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19061 19062# Transform the output of nm in a proper C declaration. 19063global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19064 19065# Transform the output of nm in a C name address pair. 19066global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19067 19068# Transform the output of nm in a C name address pair when lib prefix is needed. 19069global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19070 19071# Specify filename containing input files for \$NM. 19072nm_file_list_spec=$lt_nm_file_list_spec 19073 19074# The root where to search for dependent libraries,and in which our libraries should be installed. 19075lt_sysroot=$lt_sysroot 19076 19077# The name of the directory that contains temporary libtool files. 19078objdir=$objdir 19079 19080# Used to examine libraries when file_magic_cmd begins with "file". 19081MAGIC_CMD=$MAGIC_CMD 19082 19083# Must we lock files when doing compilation? 19084need_locks=$lt_need_locks 19085 19086# Manifest tool. 19087MANIFEST_TOOL=$lt_MANIFEST_TOOL 19088 19089# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19090DSYMUTIL=$lt_DSYMUTIL 19091 19092# Tool to change global to local symbols on Mac OS X. 19093NMEDIT=$lt_NMEDIT 19094 19095# Tool to manipulate fat objects and archives on Mac OS X. 19096LIPO=$lt_LIPO 19097 19098# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19099OTOOL=$lt_OTOOL 19100 19101# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19102OTOOL64=$lt_OTOOL64 19103 19104# Old archive suffix (normally "a"). 19105libext=$libext 19106 19107# Shared library suffix (normally ".so"). 19108shrext_cmds=$lt_shrext_cmds 19109 19110# The commands to extract the exported symbol list from a shared archive. 19111extract_expsyms_cmds=$lt_extract_expsyms_cmds 19112 19113# Variables whose values should be saved in libtool wrapper scripts and 19114# restored at link time. 19115variables_saved_for_relink=$lt_variables_saved_for_relink 19116 19117# Do we need the "lib" prefix for modules? 19118need_lib_prefix=$need_lib_prefix 19119 19120# Do we need a version for libraries? 19121need_version=$need_version 19122 19123# Library versioning type. 19124version_type=$version_type 19125 19126# Shared library runtime path variable. 19127runpath_var=$runpath_var 19128 19129# Shared library path variable. 19130shlibpath_var=$shlibpath_var 19131 19132# Is shlibpath searched before the hard-coded library search path? 19133shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19134 19135# Format of library name prefix. 19136libname_spec=$lt_libname_spec 19137 19138# List of archive names. First name is the real one, the rest are links. 19139# The last name is the one that the linker finds with -lNAME 19140library_names_spec=$lt_library_names_spec 19141 19142# The coded name of the library, if different from the real name. 19143soname_spec=$lt_soname_spec 19144 19145# Permission mode override for installation of shared libraries. 19146install_override_mode=$lt_install_override_mode 19147 19148# Command to use after installation of a shared archive. 19149postinstall_cmds=$lt_postinstall_cmds 19150 19151# Command to use after uninstallation of a shared archive. 19152postuninstall_cmds=$lt_postuninstall_cmds 19153 19154# Commands used to finish a libtool library installation in a directory. 19155finish_cmds=$lt_finish_cmds 19156 19157# As "finish_cmds", except a single script fragment to be evaled but 19158# not shown. 19159finish_eval=$lt_finish_eval 19160 19161# Whether we should hardcode library paths into libraries. 19162hardcode_into_libs=$hardcode_into_libs 19163 19164# Compile-time system search path for libraries. 19165sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19166 19167# Run-time system search path for libraries. 19168sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19169 19170# Whether dlopen is supported. 19171dlopen_support=$enable_dlopen 19172 19173# Whether dlopen of programs is supported. 19174dlopen_self=$enable_dlopen_self 19175 19176# Whether dlopen of statically linked programs is supported. 19177dlopen_self_static=$enable_dlopen_self_static 19178 19179# Commands to strip libraries. 19180old_striplib=$lt_old_striplib 19181striplib=$lt_striplib 19182 19183 19184# The linker used to build libraries. 19185LD=$lt_LD 19186 19187# How to create reloadable object files. 19188reload_flag=$lt_reload_flag 19189reload_cmds=$lt_reload_cmds 19190 19191# Commands used to build an old-style archive. 19192old_archive_cmds=$lt_old_archive_cmds 19193 19194# A language specific compiler. 19195CC=$lt_compiler 19196 19197# Is the compiler the GNU compiler? 19198with_gcc=$GCC 19199 19200# Compiler flag to turn off builtin functions. 19201no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19202 19203# Additional compiler flags for building library objects. 19204pic_flag=$lt_lt_prog_compiler_pic 19205 19206# How to pass a linker flag through the compiler. 19207wl=$lt_lt_prog_compiler_wl 19208 19209# Compiler flag to prevent dynamic linking. 19210link_static_flag=$lt_lt_prog_compiler_static 19211 19212# Does compiler simultaneously support -c and -o options? 19213compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19214 19215# Whether or not to add -lc for building shared libraries. 19216build_libtool_need_lc=$archive_cmds_need_lc 19217 19218# Whether or not to disallow shared libs when runtime libs are static. 19219allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19220 19221# Compiler flag to allow reflexive dlopens. 19222export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19223 19224# Compiler flag to generate shared objects directly from archives. 19225whole_archive_flag_spec=$lt_whole_archive_flag_spec 19226 19227# Whether the compiler copes with passing no objects directly. 19228compiler_needs_object=$lt_compiler_needs_object 19229 19230# Create an old-style archive from a shared archive. 19231old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19232 19233# Create a temporary old-style archive to link instead of a shared archive. 19234old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19235 19236# Commands used to build a shared archive. 19237archive_cmds=$lt_archive_cmds 19238archive_expsym_cmds=$lt_archive_expsym_cmds 19239 19240# Commands used to build a loadable module if different from building 19241# a shared archive. 19242module_cmds=$lt_module_cmds 19243module_expsym_cmds=$lt_module_expsym_cmds 19244 19245# Whether we are building with GNU ld or not. 19246with_gnu_ld=$lt_with_gnu_ld 19247 19248# Flag that allows shared libraries with undefined symbols to be built. 19249allow_undefined_flag=$lt_allow_undefined_flag 19250 19251# Flag that enforces no undefined symbols. 19252no_undefined_flag=$lt_no_undefined_flag 19253 19254# Flag to hardcode \$libdir into a binary during linking. 19255# This must work even if \$libdir does not exist 19256hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19257 19258# Whether we need a single "-rpath" flag with a separated argument. 19259hardcode_libdir_separator=$lt_hardcode_libdir_separator 19260 19261# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19262# DIR into the resulting binary. 19263hardcode_direct=$hardcode_direct 19264 19265# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19266# DIR into the resulting binary and the resulting library dependency is 19267# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19268# library is relocated. 19269hardcode_direct_absolute=$hardcode_direct_absolute 19270 19271# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19272# into the resulting binary. 19273hardcode_minus_L=$hardcode_minus_L 19274 19275# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19276# into the resulting binary. 19277hardcode_shlibpath_var=$hardcode_shlibpath_var 19278 19279# Set to "yes" if building a shared library automatically hardcodes DIR 19280# into the library and all subsequent libraries and executables linked 19281# against it. 19282hardcode_automatic=$hardcode_automatic 19283 19284# Set to yes if linker adds runtime paths of dependent libraries 19285# to runtime path list. 19286inherit_rpath=$inherit_rpath 19287 19288# Whether libtool must link a program against all its dependency libraries. 19289link_all_deplibs=$link_all_deplibs 19290 19291# Set to "yes" if exported symbols are required. 19292always_export_symbols=$always_export_symbols 19293 19294# The commands to list exported symbols. 19295export_symbols_cmds=$lt_export_symbols_cmds 19296 19297# Symbols that should not be listed in the preloaded symbols. 19298exclude_expsyms=$lt_exclude_expsyms 19299 19300# Symbols that must always be exported. 19301include_expsyms=$lt_include_expsyms 19302 19303# Commands necessary for linking programs (against libraries) with templates. 19304prelink_cmds=$lt_prelink_cmds 19305 19306# Commands necessary for finishing linking programs. 19307postlink_cmds=$lt_postlink_cmds 19308 19309# Specify filename containing input files. 19310file_list_spec=$lt_file_list_spec 19311 19312# How to hardcode a shared library path into an executable. 19313hardcode_action=$hardcode_action 19314 19315# The directories searched by this compiler when creating a shared library. 19316compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19317 19318# Dependencies to place before and after the objects being linked to 19319# create a shared library. 19320predep_objects=$lt_predep_objects 19321postdep_objects=$lt_postdep_objects 19322predeps=$lt_predeps 19323postdeps=$lt_postdeps 19324 19325# The library search path used internally by the compiler when linking 19326# a shared library. 19327compiler_lib_search_path=$lt_compiler_lib_search_path 19328 19329# ### END LIBTOOL CONFIG 19330 19331_LT_EOF 19332 19333 case $host_os in 19334 aix3*) 19335 cat <<\_LT_EOF >> "$cfgfile" 19336# AIX sometimes has problems with the GCC collect2 program. For some 19337# reason, if we set the COLLECT_NAMES environment variable, the problems 19338# vanish in a puff of smoke. 19339if test "X${COLLECT_NAMES+set}" != Xset; then 19340 COLLECT_NAMES= 19341 export COLLECT_NAMES 19342fi 19343_LT_EOF 19344 ;; 19345 esac 19346 19347 19348ltmain="$ac_aux_dir/ltmain.sh" 19349 19350 19351 # We use sed instead of cat because bash on DJGPP gets confused if 19352 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19353 # text mode, it properly converts lines to CR/LF. This bash problem 19354 # is reportedly fixed, but why not run on old versions too? 19355 sed '$q' "$ltmain" >> "$cfgfile" \ 19356 || (rm -f "$cfgfile"; exit 1) 19357 19358 if test x"$xsi_shell" = xyes; then 19359 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 19360func_dirname ()\ 19361{\ 19362\ case ${1} in\ 19363\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19364\ * ) func_dirname_result="${3}" ;;\ 19365\ esac\ 19366} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 19367 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19368 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19369test 0 -eq $? || _lt_function_replace_fail=: 19370 19371 19372 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 19373func_basename ()\ 19374{\ 19375\ func_basename_result="${1##*/}"\ 19376} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19377 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19378 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19379test 0 -eq $? || _lt_function_replace_fail=: 19380 19381 19382 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 19383func_dirname_and_basename ()\ 19384{\ 19385\ case ${1} in\ 19386\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19387\ * ) func_dirname_result="${3}" ;;\ 19388\ esac\ 19389\ func_basename_result="${1##*/}"\ 19390} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19391 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19392 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19393test 0 -eq $? || _lt_function_replace_fail=: 19394 19395 19396 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 19397func_stripname ()\ 19398{\ 19399\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 19400\ # positional parameters, so assign one to ordinary parameter first.\ 19401\ func_stripname_result=${3}\ 19402\ func_stripname_result=${func_stripname_result#"${1}"}\ 19403\ func_stripname_result=${func_stripname_result%"${2}"}\ 19404} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 19405 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19407test 0 -eq $? || _lt_function_replace_fail=: 19408 19409 19410 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 19411func_split_long_opt ()\ 19412{\ 19413\ func_split_long_opt_name=${1%%=*}\ 19414\ func_split_long_opt_arg=${1#*=}\ 19415} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19416 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19418test 0 -eq $? || _lt_function_replace_fail=: 19419 19420 19421 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 19422func_split_short_opt ()\ 19423{\ 19424\ func_split_short_opt_arg=${1#??}\ 19425\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 19426} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19427 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19428 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19429test 0 -eq $? || _lt_function_replace_fail=: 19430 19431 19432 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 19433func_lo2o ()\ 19434{\ 19435\ case ${1} in\ 19436\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 19437\ *) func_lo2o_result=${1} ;;\ 19438\ esac\ 19439} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 19440 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19441 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19442test 0 -eq $? || _lt_function_replace_fail=: 19443 19444 19445 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 19446func_xform ()\ 19447{\ 19448 func_xform_result=${1%.*}.lo\ 19449} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 19450 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19452test 0 -eq $? || _lt_function_replace_fail=: 19453 19454 19455 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 19456func_arith ()\ 19457{\ 19458 func_arith_result=$(( $* ))\ 19459} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 19460 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19462test 0 -eq $? || _lt_function_replace_fail=: 19463 19464 19465 sed -e '/^func_len ()$/,/^} # func_len /c\ 19466func_len ()\ 19467{\ 19468 func_len_result=${#1}\ 19469} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 19470 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19471 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19472test 0 -eq $? || _lt_function_replace_fail=: 19473 19474fi 19475 19476if test x"$lt_shell_append" = xyes; then 19477 sed -e '/^func_append ()$/,/^} # func_append /c\ 19478func_append ()\ 19479{\ 19480 eval "${1}+=\\${2}"\ 19481} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 19482 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19483 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19484test 0 -eq $? || _lt_function_replace_fail=: 19485 19486 19487 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 19488func_append_quoted ()\ 19489{\ 19490\ func_quote_for_eval "${2}"\ 19491\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 19492} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 19493 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19494 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19495test 0 -eq $? || _lt_function_replace_fail=: 19496 19497 19498 # Save a `func_append' function call where possible by direct use of '+=' 19499 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 19500 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19501 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19502 test 0 -eq $? || _lt_function_replace_fail=: 19503else 19504 # Save a `func_append' function call even when '+=' is not available 19505 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 19506 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19507 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19508 test 0 -eq $? || _lt_function_replace_fail=: 19509fi 19510 19511if test x"$_lt_function_replace_fail" = x":"; then 19512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 19513$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 19514fi 19515 19516 19517 mv -f "$cfgfile" "$ofile" || 19518 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19519 chmod +x "$ofile" 19520 19521 19522 cat <<_LT_EOF >> "$ofile" 19523 19524# ### BEGIN LIBTOOL TAG CONFIG: CXX 19525 19526# The linker used to build libraries. 19527LD=$lt_LD_CXX 19528 19529# How to create reloadable object files. 19530reload_flag=$lt_reload_flag_CXX 19531reload_cmds=$lt_reload_cmds_CXX 19532 19533# Commands used to build an old-style archive. 19534old_archive_cmds=$lt_old_archive_cmds_CXX 19535 19536# A language specific compiler. 19537CC=$lt_compiler_CXX 19538 19539# Is the compiler the GNU compiler? 19540with_gcc=$GCC_CXX 19541 19542# Compiler flag to turn off builtin functions. 19543no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19544 19545# Additional compiler flags for building library objects. 19546pic_flag=$lt_lt_prog_compiler_pic_CXX 19547 19548# How to pass a linker flag through the compiler. 19549wl=$lt_lt_prog_compiler_wl_CXX 19550 19551# Compiler flag to prevent dynamic linking. 19552link_static_flag=$lt_lt_prog_compiler_static_CXX 19553 19554# Does compiler simultaneously support -c and -o options? 19555compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19556 19557# Whether or not to add -lc for building shared libraries. 19558build_libtool_need_lc=$archive_cmds_need_lc_CXX 19559 19560# Whether or not to disallow shared libs when runtime libs are static. 19561allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19562 19563# Compiler flag to allow reflexive dlopens. 19564export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19565 19566# Compiler flag to generate shared objects directly from archives. 19567whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19568 19569# Whether the compiler copes with passing no objects directly. 19570compiler_needs_object=$lt_compiler_needs_object_CXX 19571 19572# Create an old-style archive from a shared archive. 19573old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19574 19575# Create a temporary old-style archive to link instead of a shared archive. 19576old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19577 19578# Commands used to build a shared archive. 19579archive_cmds=$lt_archive_cmds_CXX 19580archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19581 19582# Commands used to build a loadable module if different from building 19583# a shared archive. 19584module_cmds=$lt_module_cmds_CXX 19585module_expsym_cmds=$lt_module_expsym_cmds_CXX 19586 19587# Whether we are building with GNU ld or not. 19588with_gnu_ld=$lt_with_gnu_ld_CXX 19589 19590# Flag that allows shared libraries with undefined symbols to be built. 19591allow_undefined_flag=$lt_allow_undefined_flag_CXX 19592 19593# Flag that enforces no undefined symbols. 19594no_undefined_flag=$lt_no_undefined_flag_CXX 19595 19596# Flag to hardcode \$libdir into a binary during linking. 19597# This must work even if \$libdir does not exist 19598hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19599 19600# Whether we need a single "-rpath" flag with a separated argument. 19601hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19602 19603# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19604# DIR into the resulting binary. 19605hardcode_direct=$hardcode_direct_CXX 19606 19607# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19608# DIR into the resulting binary and the resulting library dependency is 19609# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19610# library is relocated. 19611hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19612 19613# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19614# into the resulting binary. 19615hardcode_minus_L=$hardcode_minus_L_CXX 19616 19617# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19618# into the resulting binary. 19619hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19620 19621# Set to "yes" if building a shared library automatically hardcodes DIR 19622# into the library and all subsequent libraries and executables linked 19623# against it. 19624hardcode_automatic=$hardcode_automatic_CXX 19625 19626# Set to yes if linker adds runtime paths of dependent libraries 19627# to runtime path list. 19628inherit_rpath=$inherit_rpath_CXX 19629 19630# Whether libtool must link a program against all its dependency libraries. 19631link_all_deplibs=$link_all_deplibs_CXX 19632 19633# Set to "yes" if exported symbols are required. 19634always_export_symbols=$always_export_symbols_CXX 19635 19636# The commands to list exported symbols. 19637export_symbols_cmds=$lt_export_symbols_cmds_CXX 19638 19639# Symbols that should not be listed in the preloaded symbols. 19640exclude_expsyms=$lt_exclude_expsyms_CXX 19641 19642# Symbols that must always be exported. 19643include_expsyms=$lt_include_expsyms_CXX 19644 19645# Commands necessary for linking programs (against libraries) with templates. 19646prelink_cmds=$lt_prelink_cmds_CXX 19647 19648# Commands necessary for finishing linking programs. 19649postlink_cmds=$lt_postlink_cmds_CXX 19650 19651# Specify filename containing input files. 19652file_list_spec=$lt_file_list_spec_CXX 19653 19654# How to hardcode a shared library path into an executable. 19655hardcode_action=$hardcode_action_CXX 19656 19657# The directories searched by this compiler when creating a shared library. 19658compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19659 19660# Dependencies to place before and after the objects being linked to 19661# create a shared library. 19662predep_objects=$lt_predep_objects_CXX 19663postdep_objects=$lt_postdep_objects_CXX 19664predeps=$lt_predeps_CXX 19665postdeps=$lt_postdeps_CXX 19666 19667# The library search path used internally by the compiler when linking 19668# a shared library. 19669compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19670 19671# ### END LIBTOOL TAG CONFIG: CXX 19672_LT_EOF 19673 19674 ;; 19675 "default":C) 19676 chmod +x log4c-config 19677 ;; 19678 19679 esac 19680done # for ac_tag 19681 19682 19683as_fn_exit 0 19684_ACEOF 19685ac_clean_files=$ac_clean_files_save 19686 19687test $ac_write_fail = 0 || 19688 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19689 19690 19691# configure is writing to config.log, and then calls config.status. 19692# config.status does its own redirection, appending to config.log. 19693# Unfortunately, on DOS this fails, as config.log is still kept open 19694# by configure, so config.status won't be able to write to it; its 19695# output is simply discarded. So we exec the FD to /dev/null, 19696# effectively closing config.log, so it can be properly (re)opened and 19697# appended to by config.status. When coming back to configure, we 19698# need to make the FD available again. 19699if test "$no_create" != yes; then 19700 ac_cs_success=: 19701 ac_config_status_args= 19702 test "$silent" = yes && 19703 ac_config_status_args="$ac_config_status_args --quiet" 19704 exec 5>/dev/null 19705 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19706 exec 5>>config.log 19707 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19708 # would make configure fail if this is the last instruction. 19709 $ac_cs_success || as_fn_exit 1 19710fi 19711if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19713$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19714fi 19715 19716