1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for pushover 0.0.5. 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='pushover' 589PACKAGE_TARNAME='pushover' 590PACKAGE_VERSION='0.0.5' 591PACKAGE_STRING='pushover 0.0.5' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/main.cpp" 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 632gt_needs= 633ac_subst_vars='am__EXEEXT_FALSE 634am__EXEEXT_TRUE 635LTLIBOBJS 636LIBOBJS 637DEPS_LIBS 638DEPS_CFLAGS 639POSUB 640LTLIBINTL 641LIBINTL 642INTLLIBS 643LTLIBICONV 644LIBICONV 645INTL_MACOSX_LIBS 646MSGMERGE 647XGETTEXT_015 648XGETTEXT 649GMSGFMT_015 650MSGFMT_015 651GMSGFMT 652MSGFMT 653USE_NLS 654PKG_CONFIG_LIBDIR 655PKG_CONFIG_PATH 656PKG_CONFIG 657CXXCPP 658CPP 659OTOOL64 660OTOOL 661LIPO 662NMEDIT 663DSYMUTIL 664MANIFEST_TOOL 665RANLIB 666ac_ct_AR 667AR 668DLLTOOL 669OBJDUMP 670LN_S 671NM 672ac_ct_DUMPBIN 673DUMPBIN 674LD 675FGREP 676EGREP 677GREP 678SED 679LIBTOOL 680am__fastdepCC_FALSE 681am__fastdepCC_TRUE 682CCDEPMODE 683ac_ct_CC 684CFLAGS 685CC 686am__fastdepCXX_FALSE 687am__fastdepCXX_TRUE 688CXXDEPMODE 689am__nodep 690AMDEPBACKSLASH 691AMDEP_FALSE 692AMDEP_TRUE 693am__quote 694am__include 695DEPDIR 696OBJEXT 697EXEEXT 698ac_ct_CXX 699CPPFLAGS 700LDFLAGS 701CXXFLAGS 702CXX 703URL 704FULLNAME 705MAINT 706MAINTAINER_MODE_FALSE 707MAINTAINER_MODE_TRUE 708am__untar 709am__tar 710AMTAR 711am__leading_dot 712SET_MAKE 713AWK 714mkdir_p 715MKDIR_P 716INSTALL_STRIP_PROGRAM 717STRIP 718install_sh 719MAKEINFO 720AUTOHEADER 721AUTOMAKE 722AUTOCONF 723ACLOCAL 724VERSION 725PACKAGE 726CYGPATH_W 727am__isrc 728INSTALL_DATA 729INSTALL_SCRIPT 730INSTALL_PROGRAM 731target_os 732target_vendor 733target_cpu 734target 735host_os 736host_vendor 737host_cpu 738host 739build_os 740build_vendor 741build_cpu 742build 743target_alias 744host_alias 745build_alias 746LIBS 747ECHO_T 748ECHO_N 749ECHO_C 750DEFS 751mandir 752localedir 753libdir 754psdir 755pdfdir 756dvidir 757htmldir 758infodir 759docdir 760oldincludedir 761includedir 762localstatedir 763sharedstatedir 764sysconfdir 765datadir 766datarootdir 767libexecdir 768sbindir 769bindir 770program_transform_name 771prefix 772exec_prefix 773PACKAGE_URL 774PACKAGE_BUGREPORT 775PACKAGE_STRING 776PACKAGE_VERSION 777PACKAGE_TARNAME 778PACKAGE_NAME 779PATH_SEPARATOR 780SHELL' 781ac_subst_files='' 782ac_user_opts=' 783enable_option_checking 784enable_maintainer_mode 785enable_dependency_tracking 786enable_shared 787enable_static 788with_pic 789enable_fast_install 790with_gnu_ld 791with_sysroot 792enable_libtool_lock 793enable_nls 794enable_rpath 795with_libiconv_prefix 796with_libintl_prefix 797' 798 ac_precious_vars='build_alias 799host_alias 800target_alias 801CXX 802CXXFLAGS 803LDFLAGS 804LIBS 805CPPFLAGS 806CCC 807CC 808CFLAGS 809CPP 810CXXCPP 811PKG_CONFIG 812PKG_CONFIG_PATH 813PKG_CONFIG_LIBDIR 814DEPS_CFLAGS 815DEPS_LIBS' 816 817 818# Initialize some variables set by options. 819ac_init_help= 820ac_init_version=false 821ac_unrecognized_opts= 822ac_unrecognized_sep= 823# The variables have the same names as the options, with 824# dashes changed to underlines. 825cache_file=/dev/null 826exec_prefix=NONE 827no_create= 828no_recursion= 829prefix=NONE 830program_prefix=NONE 831program_suffix=NONE 832program_transform_name=s,x,x, 833silent= 834site= 835srcdir= 836verbose= 837x_includes=NONE 838x_libraries=NONE 839 840# Installation directory options. 841# These are left unexpanded so users can "make install exec_prefix=/foo" 842# and all the variables that are supposed to be based on exec_prefix 843# by default will actually change. 844# Use braces instead of parens because sh, perl, etc. also accept them. 845# (The list follows the same order as the GNU Coding Standards.) 846bindir='${exec_prefix}/bin' 847sbindir='${exec_prefix}/sbin' 848libexecdir='${exec_prefix}/libexec' 849datarootdir='${prefix}/share' 850datadir='${datarootdir}' 851sysconfdir='${prefix}/etc' 852sharedstatedir='${prefix}/com' 853localstatedir='${prefix}/var' 854includedir='${prefix}/include' 855oldincludedir='/usr/include' 856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 857infodir='${datarootdir}/info' 858htmldir='${docdir}' 859dvidir='${docdir}' 860pdfdir='${docdir}' 861psdir='${docdir}' 862libdir='${exec_prefix}/lib' 863localedir='${datarootdir}/locale' 864mandir='${datarootdir}/man' 865 866ac_prev= 867ac_dashdash= 868for ac_option 869do 870 # If the previous option needs an argument, assign it. 871 if test -n "$ac_prev"; then 872 eval $ac_prev=\$ac_option 873 ac_prev= 874 continue 875 fi 876 877 case $ac_option in 878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 879 *=) ac_optarg= ;; 880 *) ac_optarg=yes ;; 881 esac 882 883 # Accept the important Cygnus configure options, so we can diagnose typos. 884 885 case $ac_dashdash$ac_option in 886 --) 887 ac_dashdash=yes ;; 888 889 -bindir | --bindir | --bindi | --bind | --bin | --bi) 890 ac_prev=bindir ;; 891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 892 bindir=$ac_optarg ;; 893 894 -build | --build | --buil | --bui | --bu) 895 ac_prev=build_alias ;; 896 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 897 build_alias=$ac_optarg ;; 898 899 -cache-file | --cache-file | --cache-fil | --cache-fi \ 900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 901 ac_prev=cache_file ;; 902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 904 cache_file=$ac_optarg ;; 905 906 --config-cache | -C) 907 cache_file=config.cache ;; 908 909 -datadir | --datadir | --datadi | --datad) 910 ac_prev=datadir ;; 911 -datadir=* | --datadir=* | --datadi=* | --datad=*) 912 datadir=$ac_optarg ;; 913 914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 915 | --dataroo | --dataro | --datar) 916 ac_prev=datarootdir ;; 917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 919 datarootdir=$ac_optarg ;; 920 921 -disable-* | --disable-*) 922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 923 # Reject names that are not valid shell variable names. 924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 925 as_fn_error $? "invalid feature name: $ac_useropt" 926 ac_useropt_orig=$ac_useropt 927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 928 case $ac_user_opts in 929 *" 930"enable_$ac_useropt" 931"*) ;; 932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 933 ac_unrecognized_sep=', ';; 934 esac 935 eval enable_$ac_useropt=no ;; 936 937 -docdir | --docdir | --docdi | --doc | --do) 938 ac_prev=docdir ;; 939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 940 docdir=$ac_optarg ;; 941 942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 943 ac_prev=dvidir ;; 944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 945 dvidir=$ac_optarg ;; 946 947 -enable-* | --enable-*) 948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 949 # Reject names that are not valid shell variable names. 950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 951 as_fn_error $? "invalid feature name: $ac_useropt" 952 ac_useropt_orig=$ac_useropt 953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 954 case $ac_user_opts in 955 *" 956"enable_$ac_useropt" 957"*) ;; 958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 959 ac_unrecognized_sep=', ';; 960 esac 961 eval enable_$ac_useropt=\$ac_optarg ;; 962 963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 965 | --exec | --exe | --ex) 966 ac_prev=exec_prefix ;; 967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 969 | --exec=* | --exe=* | --ex=*) 970 exec_prefix=$ac_optarg ;; 971 972 -gas | --gas | --ga | --g) 973 # Obsolete; use --with-gas. 974 with_gas=yes ;; 975 976 -help | --help | --hel | --he | -h) 977 ac_init_help=long ;; 978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 979 ac_init_help=recursive ;; 980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 981 ac_init_help=short ;; 982 983 -host | --host | --hos | --ho) 984 ac_prev=host_alias ;; 985 -host=* | --host=* | --hos=* | --ho=*) 986 host_alias=$ac_optarg ;; 987 988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 989 ac_prev=htmldir ;; 990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 991 | --ht=*) 992 htmldir=$ac_optarg ;; 993 994 -includedir | --includedir | --includedi | --included | --include \ 995 | --includ | --inclu | --incl | --inc) 996 ac_prev=includedir ;; 997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 998 | --includ=* | --inclu=* | --incl=* | --inc=*) 999 includedir=$ac_optarg ;; 1000 1001 -infodir | --infodir | --infodi | --infod | --info | --inf) 1002 ac_prev=infodir ;; 1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1004 infodir=$ac_optarg ;; 1005 1006 -libdir | --libdir | --libdi | --libd) 1007 ac_prev=libdir ;; 1008 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1009 libdir=$ac_optarg ;; 1010 1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1012 | --libexe | --libex | --libe) 1013 ac_prev=libexecdir ;; 1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1015 | --libexe=* | --libex=* | --libe=*) 1016 libexecdir=$ac_optarg ;; 1017 1018 -localedir | --localedir | --localedi | --localed | --locale) 1019 ac_prev=localedir ;; 1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1021 localedir=$ac_optarg ;; 1022 1023 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1024 | --localstate | --localstat | --localsta | --localst | --locals) 1025 ac_prev=localstatedir ;; 1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1028 localstatedir=$ac_optarg ;; 1029 1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1031 ac_prev=mandir ;; 1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1033 mandir=$ac_optarg ;; 1034 1035 -nfp | --nfp | --nf) 1036 # Obsolete; use --without-fp. 1037 with_fp=no ;; 1038 1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1040 | --no-cr | --no-c | -n) 1041 no_create=yes ;; 1042 1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1045 no_recursion=yes ;; 1046 1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1049 | --oldin | --oldi | --old | --ol | --o) 1050 ac_prev=oldincludedir ;; 1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1054 oldincludedir=$ac_optarg ;; 1055 1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1057 ac_prev=prefix ;; 1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1059 prefix=$ac_optarg ;; 1060 1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1062 | --program-pre | --program-pr | --program-p) 1063 ac_prev=program_prefix ;; 1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1066 program_prefix=$ac_optarg ;; 1067 1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1069 | --program-suf | --program-su | --program-s) 1070 ac_prev=program_suffix ;; 1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1073 program_suffix=$ac_optarg ;; 1074 1075 -program-transform-name | --program-transform-name \ 1076 | --program-transform-nam | --program-transform-na \ 1077 | --program-transform-n | --program-transform- \ 1078 | --program-transform | --program-transfor \ 1079 | --program-transfo | --program-transf \ 1080 | --program-trans | --program-tran \ 1081 | --progr-tra | --program-tr | --program-t) 1082 ac_prev=program_transform_name ;; 1083 -program-transform-name=* | --program-transform-name=* \ 1084 | --program-transform-nam=* | --program-transform-na=* \ 1085 | --program-transform-n=* | --program-transform-=* \ 1086 | --program-transform=* | --program-transfor=* \ 1087 | --program-transfo=* | --program-transf=* \ 1088 | --program-trans=* | --program-tran=* \ 1089 | --progr-tra=* | --program-tr=* | --program-t=*) 1090 program_transform_name=$ac_optarg ;; 1091 1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1093 ac_prev=pdfdir ;; 1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1095 pdfdir=$ac_optarg ;; 1096 1097 -psdir | --psdir | --psdi | --psd | --ps) 1098 ac_prev=psdir ;; 1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1100 psdir=$ac_optarg ;; 1101 1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1103 | -silent | --silent | --silen | --sile | --sil) 1104 silent=yes ;; 1105 1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1107 ac_prev=sbindir ;; 1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1109 | --sbi=* | --sb=*) 1110 sbindir=$ac_optarg ;; 1111 1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1114 | --sharedst | --shareds | --shared | --share | --shar \ 1115 | --sha | --sh) 1116 ac_prev=sharedstatedir ;; 1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1120 | --sha=* | --sh=*) 1121 sharedstatedir=$ac_optarg ;; 1122 1123 -site | --site | --sit) 1124 ac_prev=site ;; 1125 -site=* | --site=* | --sit=*) 1126 site=$ac_optarg ;; 1127 1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1129 ac_prev=srcdir ;; 1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1131 srcdir=$ac_optarg ;; 1132 1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1134 | --syscon | --sysco | --sysc | --sys | --sy) 1135 ac_prev=sysconfdir ;; 1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1138 sysconfdir=$ac_optarg ;; 1139 1140 -target | --target | --targe | --targ | --tar | --ta | --t) 1141 ac_prev=target_alias ;; 1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1143 target_alias=$ac_optarg ;; 1144 1145 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1146 verbose=yes ;; 1147 1148 -version | --version | --versio | --versi | --vers | -V) 1149 ac_init_version=: ;; 1150 1151 -with-* | --with-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: $ac_useropt" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=\$ac_optarg ;; 1166 1167 -without-* | --without-*) 1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1169 # Reject names that are not valid shell variable names. 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1171 as_fn_error $? "invalid package name: $ac_useropt" 1172 ac_useropt_orig=$ac_useropt 1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1174 case $ac_user_opts in 1175 *" 1176"with_$ac_useropt" 1177"*) ;; 1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1179 ac_unrecognized_sep=', ';; 1180 esac 1181 eval with_$ac_useropt=no ;; 1182 1183 --x) 1184 # Obsolete; use --with-x. 1185 with_x=yes ;; 1186 1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1188 | --x-incl | --x-inc | --x-in | --x-i) 1189 ac_prev=x_includes ;; 1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1192 x_includes=$ac_optarg ;; 1193 1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1196 ac_prev=x_libraries ;; 1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1199 x_libraries=$ac_optarg ;; 1200 1201 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1202Try \`$0 --help' for more information" 1203 ;; 1204 1205 *=*) 1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1207 # Reject names that are not valid shell variable names. 1208 case $ac_envvar in #( 1209 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1211 esac 1212 eval $ac_envvar=\$ac_optarg 1213 export $ac_envvar ;; 1214 1215 *) 1216 # FIXME: should be removed in autoconf 3.0. 1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1221 ;; 1222 1223 esac 1224done 1225 1226if test -n "$ac_prev"; then 1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1228 as_fn_error $? "missing argument to $ac_option" 1229fi 1230 1231if test -n "$ac_unrecognized_opts"; then 1232 case $enable_option_checking in 1233 no) ;; 1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1236 esac 1237fi 1238 1239# Check all directory arguments for consistency. 1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1241 datadir sysconfdir sharedstatedir localstatedir includedir \ 1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1243 libdir localedir mandir 1244do 1245 eval ac_val=\$$ac_var 1246 # Remove trailing slashes. 1247 case $ac_val in 1248 */ ) 1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1250 eval $ac_var=\$ac_val;; 1251 esac 1252 # Be sure to have absolute directory names. 1253 case $ac_val in 1254 [\\/$]* | ?:[\\/]* ) continue;; 1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1256 esac 1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1258done 1259 1260# There might be people who depend on the old broken behavior: `$host' 1261# used to hold the argument of --host etc. 1262# FIXME: To remove some day. 1263build=$build_alias 1264host=$host_alias 1265target=$target_alias 1266 1267# FIXME: To remove some day. 1268if test "x$host_alias" != x; then 1269 if test "x$build_alias" = x; then 1270 cross_compiling=maybe 1271 elif test "x$build_alias" != "x$host_alias"; then 1272 cross_compiling=yes 1273 fi 1274fi 1275 1276ac_tool_prefix= 1277test -n "$host_alias" && ac_tool_prefix=$host_alias- 1278 1279test "$silent" = yes && exec 6>/dev/null 1280 1281 1282ac_pwd=`pwd` && test -n "$ac_pwd" && 1283ac_ls_di=`ls -di .` && 1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1285 as_fn_error $? "working directory cannot be determined" 1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1287 as_fn_error $? "pwd does not report name of working directory" 1288 1289 1290# Find the source files, if location was not specified. 1291if test -z "$srcdir"; then 1292 ac_srcdir_defaulted=yes 1293 # Try the directory containing this script, then the parent directory. 1294 ac_confdir=`$as_dirname -- "$as_myself" || 1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1296 X"$as_myself" : 'X\(//\)[^/]' \| \ 1297 X"$as_myself" : 'X\(//\)$' \| \ 1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1299$as_echo X"$as_myself" | 1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\/\)[^/].*/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\/\)$/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\).*/{ 1313 s//\1/ 1314 q 1315 } 1316 s/.*/./; q'` 1317 srcdir=$ac_confdir 1318 if test ! -r "$srcdir/$ac_unique_file"; then 1319 srcdir=.. 1320 fi 1321else 1322 ac_srcdir_defaulted=no 1323fi 1324if test ! -r "$srcdir/$ac_unique_file"; then 1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1327fi 1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1329ac_abs_confdir=`( 1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1331 pwd)` 1332# When building in place, set srcdir=. 1333if test "$ac_abs_confdir" = "$ac_pwd"; then 1334 srcdir=. 1335fi 1336# Remove unnecessary trailing slashes from srcdir. 1337# Double slashes in file names in object file debugging info 1338# mess up M-x gdb in Emacs. 1339case $srcdir in 1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1341esac 1342for ac_var in $ac_precious_vars; do 1343 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1344 eval ac_env_${ac_var}_value=\$${ac_var} 1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1347done 1348 1349# 1350# Report the --help message. 1351# 1352if test "$ac_init_help" = "long"; then 1353 # Omit some internal or obsolete options to make the list less imposing. 1354 # This message is too long to be a string in the A/UX 3.1 sh. 1355 cat <<_ACEOF 1356\`configure' configures pushover 0.0.5 to adapt to many kinds of systems. 1357 1358Usage: $0 [OPTION]... [VAR=VALUE]... 1359 1360To assign environment variables (e.g., CC, CFLAGS...), specify them as 1361VAR=VALUE. See below for descriptions of some of the useful variables. 1362 1363Defaults for the options are specified in brackets. 1364 1365Configuration: 1366 -h, --help display this help and exit 1367 --help=short display options specific to this package 1368 --help=recursive display the short help of all the included packages 1369 -V, --version display version information and exit 1370 -q, --quiet, --silent do not print \`checking ...' messages 1371 --cache-file=FILE cache test results in FILE [disabled] 1372 -C, --config-cache alias for \`--cache-file=config.cache' 1373 -n, --no-create do not create output files 1374 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1375 1376Installation directories: 1377 --prefix=PREFIX install architecture-independent files in PREFIX 1378 [$ac_default_prefix] 1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1380 [PREFIX] 1381 1382By default, \`make install' will install all the files in 1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1384an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1385for instance \`--prefix=\$HOME'. 1386 1387For better control, use the options below. 1388 1389Fine tuning of the installation directories: 1390 --bindir=DIR user executables [EPREFIX/bin] 1391 --sbindir=DIR system admin executables [EPREFIX/sbin] 1392 --libexecdir=DIR program executables [EPREFIX/libexec] 1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1396 --libdir=DIR object code libraries [EPREFIX/lib] 1397 --includedir=DIR C header files [PREFIX/include] 1398 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1401 --infodir=DIR info documentation [DATAROOTDIR/info] 1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1403 --mandir=DIR man documentation [DATAROOTDIR/man] 1404 --docdir=DIR documentation root [DATAROOTDIR/doc/pushover] 1405 --htmldir=DIR html documentation [DOCDIR] 1406 --dvidir=DIR dvi documentation [DOCDIR] 1407 --pdfdir=DIR pdf documentation [DOCDIR] 1408 --psdir=DIR ps documentation [DOCDIR] 1409_ACEOF 1410 1411 cat <<\_ACEOF 1412 1413Program names: 1414 --program-prefix=PREFIX prepend PREFIX to installed program names 1415 --program-suffix=SUFFIX append SUFFIX to installed program names 1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1417 1418System types: 1419 --build=BUILD configure for building on BUILD [guessed] 1420 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1421 --target=TARGET configure for building compilers for TARGET [HOST] 1422_ACEOF 1423fi 1424 1425if test -n "$ac_init_help"; then 1426 case $ac_init_help in 1427 short | recursive ) echo "Configuration of pushover 0.0.5:";; 1428 esac 1429 cat <<\_ACEOF 1430 1431Optional Features: 1432 --disable-option-checking ignore unrecognized --enable/--with options 1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1435 --enable-maintainer-mode 1436 enable make rules and dependencies not useful (and 1437 sometimes confusing) to the casual installer 1438 --enable-dependency-tracking 1439 do not reject slow dependency extractors 1440 --disable-dependency-tracking 1441 speeds up one-time build 1442 --enable-shared[=PKGS] build shared libraries [default=yes] 1443 --enable-static[=PKGS] build static libraries [default=yes] 1444 --enable-fast-install[=PKGS] 1445 optimize for fast installation [default=yes] 1446 --disable-libtool-lock avoid locking (might break parallel builds) 1447 --disable-nls do not use Native Language Support 1448 --disable-rpath do not hardcode runtime library paths 1449 1450Optional Packages: 1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1453 --with-pic try to use only PIC/non-PIC objects [default=use 1454 both] 1455 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1456 --with-sysroot=DIR Search for dependent libraries within DIR 1457 (or the compiler's sysroot if not specified). 1458 --with-gnu-ld assume the C compiler uses GNU ld default=no 1459 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1460 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1461 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1462 --without-libintl-prefix don't search for libintl in includedir and libdir 1463 1464Some influential environment variables: 1465 CXX C++ compiler command 1466 CXXFLAGS C++ compiler flags 1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1468 nonstandard directory <lib dir> 1469 LIBS libraries to pass to the linker, e.g. -l<library> 1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1471 you have headers in a nonstandard directory <include dir> 1472 CC C compiler command 1473 CFLAGS C compiler flags 1474 CPP C preprocessor 1475 CXXCPP C++ preprocessor 1476 PKG_CONFIG path to pkg-config utility 1477 PKG_CONFIG_PATH 1478 directories to add to pkg-config's search path 1479 PKG_CONFIG_LIBDIR 1480 path overriding pkg-config's built-in search path 1481 DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config 1482 DEPS_LIBS linker flags for DEPS, overriding pkg-config 1483 1484Use these variables to override the choices made by `configure' or to help 1485it to find libraries and programs with nonstandard names/locations. 1486 1487Report bugs to the package provider. 1488_ACEOF 1489ac_status=$? 1490fi 1491 1492if test "$ac_init_help" = "recursive"; then 1493 # If there are subdirs, report their specific --help. 1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1495 test -d "$ac_dir" || 1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1497 continue 1498 ac_builddir=. 1499 1500case "$ac_dir" in 1501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502*) 1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1504 # A ".." for each directory in $ac_dir_suffix. 1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1506 case $ac_top_builddir_sub in 1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1509 esac ;; 1510esac 1511ac_abs_top_builddir=$ac_pwd 1512ac_abs_builddir=$ac_pwd$ac_dir_suffix 1513# for backward compatibility: 1514ac_top_builddir=$ac_top_build_prefix 1515 1516case $srcdir in 1517 .) # We are building in place. 1518 ac_srcdir=. 1519 ac_top_srcdir=$ac_top_builddir_sub 1520 ac_abs_top_srcdir=$ac_pwd ;; 1521 [\\/]* | ?:[\\/]* ) # Absolute name. 1522 ac_srcdir=$srcdir$ac_dir_suffix; 1523 ac_top_srcdir=$srcdir 1524 ac_abs_top_srcdir=$srcdir ;; 1525 *) # Relative name. 1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1527 ac_top_srcdir=$ac_top_build_prefix$srcdir 1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1529esac 1530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1531 1532 cd "$ac_dir" || { ac_status=$?; continue; } 1533 # Check for guested configure. 1534 if test -f "$ac_srcdir/configure.gnu"; then 1535 echo && 1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1537 elif test -f "$ac_srcdir/configure"; then 1538 echo && 1539 $SHELL "$ac_srcdir/configure" --help=recursive 1540 else 1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1542 fi || ac_status=$? 1543 cd "$ac_pwd" || { ac_status=$?; break; } 1544 done 1545fi 1546 1547test -n "$ac_init_help" && exit $ac_status 1548if $ac_init_version; then 1549 cat <<\_ACEOF 1550pushover configure 0.0.5 1551generated by GNU Autoconf 2.69 1552 1553Copyright (C) 2012 Free Software Foundation, Inc. 1554This configure script is free software; the Free Software Foundation 1555gives unlimited permission to copy, distribute and modify it. 1556_ACEOF 1557 exit 1558fi 1559 1560## ------------------------ ## 1561## Autoconf initialization. ## 1562## ------------------------ ## 1563 1564# ac_fn_cxx_try_compile LINENO 1565# ---------------------------- 1566# Try to compile conftest.$ac_ext, and return whether this succeeded. 1567ac_fn_cxx_try_compile () 1568{ 1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1570 rm -f conftest.$ac_objext 1571 if { { ac_try="$ac_compile" 1572case "(($ac_try" in 1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1574 *) ac_try_echo=$ac_try;; 1575esac 1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1577$as_echo "$ac_try_echo"; } >&5 1578 (eval "$ac_compile") 2>conftest.err 1579 ac_status=$? 1580 if test -s conftest.err; then 1581 grep -v '^ *+' conftest.err >conftest.er1 1582 cat conftest.er1 >&5 1583 mv -f conftest.er1 conftest.err 1584 fi 1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1586 test $ac_status = 0; } && { 1587 test -z "$ac_cxx_werror_flag" || 1588 test ! -s conftest.err 1589 } && test -s conftest.$ac_objext; then : 1590 ac_retval=0 1591else 1592 $as_echo "$as_me: failed program was:" >&5 1593sed 's/^/| /' conftest.$ac_ext >&5 1594 1595 ac_retval=1 1596fi 1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1598 as_fn_set_status $ac_retval 1599 1600} # ac_fn_cxx_try_compile 1601 1602# ac_fn_c_try_compile LINENO 1603# -------------------------- 1604# Try to compile conftest.$ac_ext, and return whether this succeeded. 1605ac_fn_c_try_compile () 1606{ 1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1608 rm -f conftest.$ac_objext 1609 if { { ac_try="$ac_compile" 1610case "(($ac_try" in 1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1612 *) ac_try_echo=$ac_try;; 1613esac 1614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1615$as_echo "$ac_try_echo"; } >&5 1616 (eval "$ac_compile") 2>conftest.err 1617 ac_status=$? 1618 if test -s conftest.err; then 1619 grep -v '^ *+' conftest.err >conftest.er1 1620 cat conftest.er1 >&5 1621 mv -f conftest.er1 conftest.err 1622 fi 1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1624 test $ac_status = 0; } && { 1625 test -z "$ac_c_werror_flag" || 1626 test ! -s conftest.err 1627 } && test -s conftest.$ac_objext; then : 1628 ac_retval=0 1629else 1630 $as_echo "$as_me: failed program was:" >&5 1631sed 's/^/| /' conftest.$ac_ext >&5 1632 1633 ac_retval=1 1634fi 1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1636 as_fn_set_status $ac_retval 1637 1638} # ac_fn_c_try_compile 1639 1640# ac_fn_c_try_link LINENO 1641# ----------------------- 1642# Try to link conftest.$ac_ext, and return whether this succeeded. 1643ac_fn_c_try_link () 1644{ 1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1646 rm -f conftest.$ac_objext conftest$ac_exeext 1647 if { { ac_try="$ac_link" 1648case "(($ac_try" in 1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1650 *) ac_try_echo=$ac_try;; 1651esac 1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1653$as_echo "$ac_try_echo"; } >&5 1654 (eval "$ac_link") 2>conftest.err 1655 ac_status=$? 1656 if test -s conftest.err; then 1657 grep -v '^ *+' conftest.err >conftest.er1 1658 cat conftest.er1 >&5 1659 mv -f conftest.er1 conftest.err 1660 fi 1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1662 test $ac_status = 0; } && { 1663 test -z "$ac_c_werror_flag" || 1664 test ! -s conftest.err 1665 } && test -s conftest$ac_exeext && { 1666 test "$cross_compiling" = yes || 1667 test -x conftest$ac_exeext 1668 }; then : 1669 ac_retval=0 1670else 1671 $as_echo "$as_me: failed program was:" >&5 1672sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=1 1675fi 1676 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1677 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1678 # interfere with the next link command; also delete a directory that is 1679 # left behind by Apple's compiler. We do this before executing the actions. 1680 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 as_fn_set_status $ac_retval 1683 1684} # ac_fn_c_try_link 1685 1686# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1687# ------------------------------------------------------- 1688# Tests whether HEADER exists and can be compiled using the include files in 1689# INCLUDES, setting the cache variable VAR accordingly. 1690ac_fn_c_check_header_compile () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1694$as_echo_n "checking for $2... " >&6; } 1695if eval \${$3+:} false; then : 1696 $as_echo_n "(cached) " >&6 1697else 1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1699/* end confdefs.h. */ 1700$4 1701#include <$2> 1702_ACEOF 1703if ac_fn_c_try_compile "$LINENO"; then : 1704 eval "$3=yes" 1705else 1706 eval "$3=no" 1707fi 1708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1709fi 1710eval ac_res=\$$3 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1712$as_echo "$ac_res" >&6; } 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 1715} # ac_fn_c_check_header_compile 1716 1717# ac_fn_c_try_cpp LINENO 1718# ---------------------- 1719# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1720ac_fn_c_try_cpp () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 if { { ac_try="$ac_cpp conftest.$ac_ext" 1724case "(($ac_try" in 1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1726 *) ac_try_echo=$ac_try;; 1727esac 1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1729$as_echo "$ac_try_echo"; } >&5 1730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1731 ac_status=$? 1732 if test -s conftest.err; then 1733 grep -v '^ *+' conftest.err >conftest.er1 1734 cat conftest.er1 >&5 1735 mv -f conftest.er1 conftest.err 1736 fi 1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1738 test $ac_status = 0; } > conftest.i && { 1739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1740 test ! -s conftest.err 1741 }; then : 1742 ac_retval=0 1743else 1744 $as_echo "$as_me: failed program was:" >&5 1745sed 's/^/| /' conftest.$ac_ext >&5 1746 1747 ac_retval=1 1748fi 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 as_fn_set_status $ac_retval 1751 1752} # ac_fn_c_try_cpp 1753 1754# ac_fn_c_try_run LINENO 1755# ---------------------- 1756# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1757# that executables *can* be run. 1758ac_fn_c_try_run () 1759{ 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 if { { ac_try="$ac_link" 1762case "(($ac_try" in 1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1764 *) ac_try_echo=$ac_try;; 1765esac 1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1767$as_echo "$ac_try_echo"; } >&5 1768 (eval "$ac_link") 2>&5 1769 ac_status=$? 1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1772 { { case "(($ac_try" in 1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1774 *) ac_try_echo=$ac_try;; 1775esac 1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1777$as_echo "$ac_try_echo"; } >&5 1778 (eval "$ac_try") 2>&5 1779 ac_status=$? 1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1781 test $ac_status = 0; }; }; then : 1782 ac_retval=0 1783else 1784 $as_echo "$as_me: program exited with status $ac_status" >&5 1785 $as_echo "$as_me: failed program was:" >&5 1786sed 's/^/| /' conftest.$ac_ext >&5 1787 1788 ac_retval=$ac_status 1789fi 1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1792 as_fn_set_status $ac_retval 1793 1794} # ac_fn_c_try_run 1795 1796# ac_fn_c_check_func LINENO FUNC VAR 1797# ---------------------------------- 1798# Tests whether FUNC exists, setting the cache variable VAR accordingly 1799ac_fn_c_check_func () 1800{ 1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1803$as_echo_n "checking for $2... " >&6; } 1804if eval \${$3+:} false; then : 1805 $as_echo_n "(cached) " >&6 1806else 1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1808/* end confdefs.h. */ 1809/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1810 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1811#define $2 innocuous_$2 1812 1813/* System header to define __stub macros and hopefully few prototypes, 1814 which can conflict with char $2 (); below. 1815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1816 <limits.h> exists even on freestanding compilers. */ 1817 1818#ifdef __STDC__ 1819# include <limits.h> 1820#else 1821# include <assert.h> 1822#endif 1823 1824#undef $2 1825 1826/* Override any GCC internal prototype to avoid an error. 1827 Use char because int might match the return type of a GCC 1828 builtin and then its argument prototype would still apply. */ 1829#ifdef __cplusplus 1830extern "C" 1831#endif 1832char $2 (); 1833/* The GNU C library defines this for functions which it implements 1834 to always fail with ENOSYS. Some functions are actually named 1835 something starting with __ and the normal name is an alias. */ 1836#if defined __stub_$2 || defined __stub___$2 1837choke me 1838#endif 1839 1840int 1841main () 1842{ 1843return $2 (); 1844 ; 1845 return 0; 1846} 1847_ACEOF 1848if ac_fn_c_try_link "$LINENO"; then : 1849 eval "$3=yes" 1850else 1851 eval "$3=no" 1852fi 1853rm -f core conftest.err conftest.$ac_objext \ 1854 conftest$ac_exeext conftest.$ac_ext 1855fi 1856eval ac_res=\$$3 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858$as_echo "$ac_res" >&6; } 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1860 1861} # ac_fn_c_check_func 1862 1863# ac_fn_cxx_try_cpp LINENO 1864# ------------------------ 1865# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1866ac_fn_cxx_try_cpp () 1867{ 1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1869 if { { ac_try="$ac_cpp conftest.$ac_ext" 1870case "(($ac_try" in 1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1872 *) ac_try_echo=$ac_try;; 1873esac 1874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1875$as_echo "$ac_try_echo"; } >&5 1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1877 ac_status=$? 1878 if test -s conftest.err; then 1879 grep -v '^ *+' conftest.err >conftest.er1 1880 cat conftest.er1 >&5 1881 mv -f conftest.er1 conftest.err 1882 fi 1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1884 test $ac_status = 0; } > conftest.i && { 1885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1886 test ! -s conftest.err 1887 }; then : 1888 ac_retval=0 1889else 1890 $as_echo "$as_me: failed program was:" >&5 1891sed 's/^/| /' conftest.$ac_ext >&5 1892 1893 ac_retval=1 1894fi 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 as_fn_set_status $ac_retval 1897 1898} # ac_fn_cxx_try_cpp 1899 1900# ac_fn_cxx_try_link LINENO 1901# ------------------------- 1902# Try to link conftest.$ac_ext, and return whether this succeeded. 1903ac_fn_cxx_try_link () 1904{ 1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1906 rm -f conftest.$ac_objext conftest$ac_exeext 1907 if { { ac_try="$ac_link" 1908case "(($ac_try" in 1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1910 *) ac_try_echo=$ac_try;; 1911esac 1912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1913$as_echo "$ac_try_echo"; } >&5 1914 (eval "$ac_link") 2>conftest.err 1915 ac_status=$? 1916 if test -s conftest.err; then 1917 grep -v '^ *+' conftest.err >conftest.er1 1918 cat conftest.er1 >&5 1919 mv -f conftest.er1 conftest.err 1920 fi 1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1922 test $ac_status = 0; } && { 1923 test -z "$ac_cxx_werror_flag" || 1924 test ! -s conftest.err 1925 } && test -s conftest$ac_exeext && { 1926 test "$cross_compiling" = yes || 1927 test -x conftest$ac_exeext 1928 }; then : 1929 ac_retval=0 1930else 1931 $as_echo "$as_me: failed program was:" >&5 1932sed 's/^/| /' conftest.$ac_ext >&5 1933 1934 ac_retval=1 1935fi 1936 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1937 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1938 # interfere with the next link command; also delete a directory that is 1939 # left behind by Apple's compiler. We do this before executing the actions. 1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1942 as_fn_set_status $ac_retval 1943 1944} # ac_fn_cxx_try_link 1945 1946# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1947# ------------------------------------------------------- 1948# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1949# the include files in INCLUDES and setting the cache variable VAR 1950# accordingly. 1951ac_fn_c_check_header_mongrel () 1952{ 1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1954 if eval \${$3+:} false; then : 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1956$as_echo_n "checking for $2... " >&6; } 1957if eval \${$3+:} false; then : 1958 $as_echo_n "(cached) " >&6 1959fi 1960eval ac_res=\$$3 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1962$as_echo "$ac_res" >&6; } 1963else 1964 # Is the header compilable? 1965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1966$as_echo_n "checking $2 usability... " >&6; } 1967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1968/* end confdefs.h. */ 1969$4 1970#include <$2> 1971_ACEOF 1972if ac_fn_c_try_compile "$LINENO"; then : 1973 ac_header_compiler=yes 1974else 1975 ac_header_compiler=no 1976fi 1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1979$as_echo "$ac_header_compiler" >&6; } 1980 1981# Is the header present? 1982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1983$as_echo_n "checking $2 presence... " >&6; } 1984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1985/* end confdefs.h. */ 1986#include <$2> 1987_ACEOF 1988if ac_fn_c_try_cpp "$LINENO"; then : 1989 ac_header_preproc=yes 1990else 1991 ac_header_preproc=no 1992fi 1993rm -f conftest.err conftest.i conftest.$ac_ext 1994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1995$as_echo "$ac_header_preproc" >&6; } 1996 1997# So? What about this header? 1998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1999 yes:no: ) 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2001$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2003$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2004 ;; 2005 no:yes:* ) 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2007$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2009$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2011$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2013$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2015$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2016 ;; 2017esac 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2019$as_echo_n "checking for $2... " >&6; } 2020if eval \${$3+:} false; then : 2021 $as_echo_n "(cached) " >&6 2022else 2023 eval "$3=\$ac_header_compiler" 2024fi 2025eval ac_res=\$$3 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2027$as_echo "$ac_res" >&6; } 2028fi 2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2030 2031} # ac_fn_c_check_header_mongrel 2032 2033# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2034# ------------------------------------------- 2035# Tests whether TYPE exists after having included INCLUDES, setting cache 2036# variable VAR accordingly. 2037ac_fn_c_check_type () 2038{ 2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2041$as_echo_n "checking for $2... " >&6; } 2042if eval \${$3+:} false; then : 2043 $as_echo_n "(cached) " >&6 2044else 2045 eval "$3=no" 2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048$4 2049int 2050main () 2051{ 2052if (sizeof ($2)) 2053 return 0; 2054 ; 2055 return 0; 2056} 2057_ACEOF 2058if ac_fn_c_try_compile "$LINENO"; then : 2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2060/* end confdefs.h. */ 2061$4 2062int 2063main () 2064{ 2065if (sizeof (($2))) 2066 return 0; 2067 ; 2068 return 0; 2069} 2070_ACEOF 2071if ac_fn_c_try_compile "$LINENO"; then : 2072 2073else 2074 eval "$3=yes" 2075fi 2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2077fi 2078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2079fi 2080eval ac_res=\$$3 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2082$as_echo "$ac_res" >&6; } 2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2084 2085} # ac_fn_c_check_type 2086cat >config.log <<_ACEOF 2087This file contains any messages produced by compilers while 2088running configure, to aid debugging if configure makes a mistake. 2089 2090It was created by pushover $as_me 0.0.5, which was 2091generated by GNU Autoconf 2.69. Invocation command line was 2092 2093 $ $0 $@ 2094 2095_ACEOF 2096exec 5>>config.log 2097{ 2098cat <<_ASUNAME 2099## --------- ## 2100## Platform. ## 2101## --------- ## 2102 2103hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2104uname -m = `(uname -m) 2>/dev/null || echo unknown` 2105uname -r = `(uname -r) 2>/dev/null || echo unknown` 2106uname -s = `(uname -s) 2>/dev/null || echo unknown` 2107uname -v = `(uname -v) 2>/dev/null || echo unknown` 2108 2109/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2110/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2111 2112/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2113/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2114/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2115/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2116/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2117/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2118/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2119 2120_ASUNAME 2121 2122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2123for as_dir in $PATH 2124do 2125 IFS=$as_save_IFS 2126 test -z "$as_dir" && as_dir=. 2127 $as_echo "PATH: $as_dir" 2128 done 2129IFS=$as_save_IFS 2130 2131} >&5 2132 2133cat >&5 <<_ACEOF 2134 2135 2136## ----------- ## 2137## Core tests. ## 2138## ----------- ## 2139 2140_ACEOF 2141 2142 2143# Keep a trace of the command line. 2144# Strip out --no-create and --no-recursion so they do not pile up. 2145# Strip out --silent because we don't want to record it for future runs. 2146# Also quote any args containing shell meta-characters. 2147# Make two passes to allow for proper duplicate-argument suppression. 2148ac_configure_args= 2149ac_configure_args0= 2150ac_configure_args1= 2151ac_must_keep_next=false 2152for ac_pass in 1 2 2153do 2154 for ac_arg 2155 do 2156 case $ac_arg in 2157 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2159 | -silent | --silent | --silen | --sile | --sil) 2160 continue ;; 2161 *\'*) 2162 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2163 esac 2164 case $ac_pass in 2165 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2166 2) 2167 as_fn_append ac_configure_args1 " '$ac_arg'" 2168 if test $ac_must_keep_next = true; then 2169 ac_must_keep_next=false # Got value, back to normal. 2170 else 2171 case $ac_arg in 2172 *=* | --config-cache | -C | -disable-* | --disable-* \ 2173 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2174 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2175 | -with-* | --with-* | -without-* | --without-* | --x) 2176 case "$ac_configure_args0 " in 2177 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2178 esac 2179 ;; 2180 -* ) ac_must_keep_next=true ;; 2181 esac 2182 fi 2183 as_fn_append ac_configure_args " '$ac_arg'" 2184 ;; 2185 esac 2186 done 2187done 2188{ ac_configure_args0=; unset ac_configure_args0;} 2189{ ac_configure_args1=; unset ac_configure_args1;} 2190 2191# When interrupted or exit'd, cleanup temporary files, and complete 2192# config.log. We remove comments because anyway the quotes in there 2193# would cause problems or look ugly. 2194# WARNING: Use '\'' to represent an apostrophe within the trap. 2195# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2196trap 'exit_status=$? 2197 # Save into config.log some information that might help in debugging. 2198 { 2199 echo 2200 2201 $as_echo "## ---------------- ## 2202## Cache variables. ## 2203## ---------------- ##" 2204 echo 2205 # The following way of writing the cache mishandles newlines in values, 2206( 2207 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2208 eval ac_val=\$$ac_var 2209 case $ac_val in #( 2210 *${as_nl}*) 2211 case $ac_var in #( 2212 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2213$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2214 esac 2215 case $ac_var in #( 2216 _ | IFS | as_nl) ;; #( 2217 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2218 *) { eval $ac_var=; unset $ac_var;} ;; 2219 esac ;; 2220 esac 2221 done 2222 (set) 2>&1 | 2223 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2224 *${as_nl}ac_space=\ *) 2225 sed -n \ 2226 "s/'\''/'\''\\\\'\'''\''/g; 2227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2228 ;; #( 2229 *) 2230 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2231 ;; 2232 esac | 2233 sort 2234) 2235 echo 2236 2237 $as_echo "## ----------------- ## 2238## Output variables. ## 2239## ----------------- ##" 2240 echo 2241 for ac_var in $ac_subst_vars 2242 do 2243 eval ac_val=\$$ac_var 2244 case $ac_val in 2245 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2246 esac 2247 $as_echo "$ac_var='\''$ac_val'\''" 2248 done | sort 2249 echo 2250 2251 if test -n "$ac_subst_files"; then 2252 $as_echo "## ------------------- ## 2253## File substitutions. ## 2254## ------------------- ##" 2255 echo 2256 for ac_var in $ac_subst_files 2257 do 2258 eval ac_val=\$$ac_var 2259 case $ac_val in 2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2261 esac 2262 $as_echo "$ac_var='\''$ac_val'\''" 2263 done | sort 2264 echo 2265 fi 2266 2267 if test -s confdefs.h; then 2268 $as_echo "## ----------- ## 2269## confdefs.h. ## 2270## ----------- ##" 2271 echo 2272 cat confdefs.h 2273 echo 2274 fi 2275 test "$ac_signal" != 0 && 2276 $as_echo "$as_me: caught signal $ac_signal" 2277 $as_echo "$as_me: exit $exit_status" 2278 } >&5 2279 rm -f core *.core core.conftest.* && 2280 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2281 exit $exit_status 2282' 0 2283for ac_signal in 1 2 13 15; do 2284 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2285done 2286ac_signal=0 2287 2288# confdefs.h avoids OS command line length limits that DEFS can exceed. 2289rm -f -r conftest* confdefs.h 2290 2291$as_echo "/* confdefs.h */" > confdefs.h 2292 2293# Predefined preprocessor variables. 2294 2295cat >>confdefs.h <<_ACEOF 2296#define PACKAGE_NAME "$PACKAGE_NAME" 2297_ACEOF 2298 2299cat >>confdefs.h <<_ACEOF 2300#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2301_ACEOF 2302 2303cat >>confdefs.h <<_ACEOF 2304#define PACKAGE_VERSION "$PACKAGE_VERSION" 2305_ACEOF 2306 2307cat >>confdefs.h <<_ACEOF 2308#define PACKAGE_STRING "$PACKAGE_STRING" 2309_ACEOF 2310 2311cat >>confdefs.h <<_ACEOF 2312#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2313_ACEOF 2314 2315cat >>confdefs.h <<_ACEOF 2316#define PACKAGE_URL "$PACKAGE_URL" 2317_ACEOF 2318 2319 2320# Let the site file select an alternate cache file if it wants to. 2321# Prefer an explicitly selected file to automatically selected ones. 2322ac_site_file1=NONE 2323ac_site_file2=NONE 2324if test -n "$CONFIG_SITE"; then 2325 # We do not want a PATH search for config.site. 2326 case $CONFIG_SITE in #(( 2327 -*) ac_site_file1=./$CONFIG_SITE;; 2328 */*) ac_site_file1=$CONFIG_SITE;; 2329 *) ac_site_file1=./$CONFIG_SITE;; 2330 esac 2331elif test "x$prefix" != xNONE; then 2332 ac_site_file1=$prefix/share/config.site 2333 ac_site_file2=$prefix/etc/config.site 2334else 2335 ac_site_file1=$ac_default_prefix/share/config.site 2336 ac_site_file2=$ac_default_prefix/etc/config.site 2337fi 2338for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2339do 2340 test "x$ac_site_file" = xNONE && continue 2341 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2343$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2344 sed 's/^/| /' "$ac_site_file" >&5 2345 . "$ac_site_file" \ 2346 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2348as_fn_error $? "failed to load site script $ac_site_file 2349See \`config.log' for more details" "$LINENO" 5; } 2350 fi 2351done 2352 2353if test -r "$cache_file"; then 2354 # Some versions of bash will fail to source /dev/null (special files 2355 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2356 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2358$as_echo "$as_me: loading cache $cache_file" >&6;} 2359 case $cache_file in 2360 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2361 *) . "./$cache_file";; 2362 esac 2363 fi 2364else 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2366$as_echo "$as_me: creating cache $cache_file" >&6;} 2367 >$cache_file 2368fi 2369 2370gt_needs="$gt_needs " 2371# Check that the precious variables saved in the cache have kept the same 2372# value. 2373ac_cache_corrupted=false 2374for ac_var in $ac_precious_vars; do 2375 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2376 eval ac_new_set=\$ac_env_${ac_var}_set 2377 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2378 eval ac_new_val=\$ac_env_${ac_var}_value 2379 case $ac_old_set,$ac_new_set in 2380 set,) 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2382$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2383 ac_cache_corrupted=: ;; 2384 ,set) 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2386$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2387 ac_cache_corrupted=: ;; 2388 ,);; 2389 *) 2390 if test "x$ac_old_val" != "x$ac_new_val"; then 2391 # differences in whitespace do not lead to failure. 2392 ac_old_val_w=`echo x $ac_old_val` 2393 ac_new_val_w=`echo x $ac_new_val` 2394 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2396$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2397 ac_cache_corrupted=: 2398 else 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2400$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2401 eval $ac_var=\$ac_old_val 2402 fi 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2404$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2406$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2407 fi;; 2408 esac 2409 # Pass precious variables to config.status. 2410 if test "$ac_new_set" = set; then 2411 case $ac_new_val in 2412 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2413 *) ac_arg=$ac_var=$ac_new_val ;; 2414 esac 2415 case " $ac_configure_args " in 2416 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2417 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2418 esac 2419 fi 2420done 2421if $ac_cache_corrupted; then 2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2425$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2426 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2427fi 2428## -------------------- ## 2429## Main body of script. ## 2430## -------------------- ## 2431 2432ac_ext=c 2433ac_cpp='$CPP $CPPFLAGS' 2434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2436ac_compiler_gnu=$ac_cv_c_compiler_gnu 2437 2438 2439ac_aux_dir= 2440for ac_dir in config_aux "$srcdir"/config_aux; do 2441 if test -f "$ac_dir/install-sh"; then 2442 ac_aux_dir=$ac_dir 2443 ac_install_sh="$ac_aux_dir/install-sh -c" 2444 break 2445 elif test -f "$ac_dir/install.sh"; then 2446 ac_aux_dir=$ac_dir 2447 ac_install_sh="$ac_aux_dir/install.sh -c" 2448 break 2449 elif test -f "$ac_dir/shtool"; then 2450 ac_aux_dir=$ac_dir 2451 ac_install_sh="$ac_aux_dir/shtool install -c" 2452 break 2453 fi 2454done 2455if test -z "$ac_aux_dir"; then 2456 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config_aux \"$srcdir\"/config_aux" "$LINENO" 5 2457fi 2458 2459# These three variables are undocumented and unsupported, 2460# and are intended to be withdrawn in a future Autoconf release. 2461# They can cause serious problems if a builder's source tree is in a directory 2462# whose full name contains unusual characters. 2463ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2464ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2465ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2466 2467 2468 2469# Make sure we can run config.sub. 2470$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2471 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2472 2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2474$as_echo_n "checking build system type... " >&6; } 2475if ${ac_cv_build+:} false; then : 2476 $as_echo_n "(cached) " >&6 2477else 2478 ac_build_alias=$build_alias 2479test "x$ac_build_alias" = x && 2480 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2481test "x$ac_build_alias" = x && 2482 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2483ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2485 2486fi 2487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2488$as_echo "$ac_cv_build" >&6; } 2489case $ac_cv_build in 2490*-*-*) ;; 2491*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2492esac 2493build=$ac_cv_build 2494ac_save_IFS=$IFS; IFS='-' 2495set x $ac_cv_build 2496shift 2497build_cpu=$1 2498build_vendor=$2 2499shift; shift 2500# Remember, the first character of IFS is used to create $*, 2501# except with old shells: 2502build_os=$* 2503IFS=$ac_save_IFS 2504case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2505 2506 2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2508$as_echo_n "checking host system type... " >&6; } 2509if ${ac_cv_host+:} false; then : 2510 $as_echo_n "(cached) " >&6 2511else 2512 if test "x$host_alias" = x; then 2513 ac_cv_host=$ac_cv_build 2514else 2515 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2517fi 2518 2519fi 2520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2521$as_echo "$ac_cv_host" >&6; } 2522case $ac_cv_host in 2523*-*-*) ;; 2524*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2525esac 2526host=$ac_cv_host 2527ac_save_IFS=$IFS; IFS='-' 2528set x $ac_cv_host 2529shift 2530host_cpu=$1 2531host_vendor=$2 2532shift; shift 2533# Remember, the first character of IFS is used to create $*, 2534# except with old shells: 2535host_os=$* 2536IFS=$ac_save_IFS 2537case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2538 2539 2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2541$as_echo_n "checking target system type... " >&6; } 2542if ${ac_cv_target+:} false; then : 2543 $as_echo_n "(cached) " >&6 2544else 2545 if test "x$target_alias" = x; then 2546 ac_cv_target=$ac_cv_host 2547else 2548 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2549 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2550fi 2551 2552fi 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2554$as_echo "$ac_cv_target" >&6; } 2555case $ac_cv_target in 2556*-*-*) ;; 2557*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2558esac 2559target=$ac_cv_target 2560ac_save_IFS=$IFS; IFS='-' 2561set x $ac_cv_target 2562shift 2563target_cpu=$1 2564target_vendor=$2 2565shift; shift 2566# Remember, the first character of IFS is used to create $*, 2567# except with old shells: 2568target_os=$* 2569IFS=$ac_save_IFS 2570case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2571 2572 2573# The aliases save the names the user supplied, while $host etc. 2574# will get canonicalized. 2575test -n "$target_alias" && 2576 test "$program_prefix$program_suffix$program_transform_name" = \ 2577 NONENONEs,x,x, && 2578 program_prefix=${target_alias}- 2579am__api_version='1.12' 2580 2581# Find a good install program. We prefer a C program (faster), 2582# so one script is as good as another. But avoid the broken or 2583# incompatible versions: 2584# SysV /etc/install, /usr/sbin/install 2585# SunOS /usr/etc/install 2586# IRIX /sbin/install 2587# AIX /bin/install 2588# AmigaOS /C/install, which installs bootblocks on floppy discs 2589# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2590# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2591# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2592# OS/2's system install, which has a completely different semantic 2593# ./install, which can be erroneously created by make from ./install.sh. 2594# Reject install programs that cannot install multiple files. 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2596$as_echo_n "checking for a BSD-compatible install... " >&6; } 2597if test -z "$INSTALL"; then 2598if ${ac_cv_path_install+:} false; then : 2599 $as_echo_n "(cached) " >&6 2600else 2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2602for as_dir in $PATH 2603do 2604 IFS=$as_save_IFS 2605 test -z "$as_dir" && as_dir=. 2606 # Account for people who put trailing slashes in PATH elements. 2607case $as_dir/ in #(( 2608 ./ | .// | /[cC]/* | \ 2609 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2610 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2611 /usr/ucb/* ) ;; 2612 *) 2613 # OSF1 and SCO ODT 3.0 have their own names for install. 2614 # Don't use installbsd from OSF since it installs stuff as root 2615 # by default. 2616 for ac_prog in ginstall scoinst install; do 2617 for ac_exec_ext in '' $ac_executable_extensions; do 2618 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2619 if test $ac_prog = install && 2620 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2621 # AIX install. It has an incompatible calling convention. 2622 : 2623 elif test $ac_prog = install && 2624 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2625 # program-specific install script used by HP pwplus--don't use. 2626 : 2627 else 2628 rm -rf conftest.one conftest.two conftest.dir 2629 echo one > conftest.one 2630 echo two > conftest.two 2631 mkdir conftest.dir 2632 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2633 test -s conftest.one && test -s conftest.two && 2634 test -s conftest.dir/conftest.one && 2635 test -s conftest.dir/conftest.two 2636 then 2637 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2638 break 3 2639 fi 2640 fi 2641 fi 2642 done 2643 done 2644 ;; 2645esac 2646 2647 done 2648IFS=$as_save_IFS 2649 2650rm -rf conftest.one conftest.two conftest.dir 2651 2652fi 2653 if test "${ac_cv_path_install+set}" = set; then 2654 INSTALL=$ac_cv_path_install 2655 else 2656 # As a last resort, use the slow shell script. Don't cache a 2657 # value for INSTALL within a source directory, because that will 2658 # break other packages using the cache if that directory is 2659 # removed, or if the value is a relative name. 2660 INSTALL=$ac_install_sh 2661 fi 2662fi 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2664$as_echo "$INSTALL" >&6; } 2665 2666# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2667# It thinks the first close brace ends the variable substitution. 2668test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2669 2670test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2671 2672test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2673 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2675$as_echo_n "checking whether build environment is sane... " >&6; } 2676# Reject unsafe characters in $srcdir or the absolute working directory 2677# name. Accept space and tab only in the latter. 2678am_lf=' 2679' 2680case `pwd` in 2681 *[\\\"\#\$\&\'\`$am_lf]*) 2682 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2683esac 2684case $srcdir in 2685 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2686 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2687esac 2688 2689# Do 'set' in a subshell so we don't clobber the current shell's 2690# arguments. Must try -L first in case configure is actually a 2691# symlink; some systems play weird games with the mod time of symlinks 2692# (eg FreeBSD returns the mod time of the symlink's containing 2693# directory). 2694if ( 2695 am_has_slept=no 2696 for am_try in 1 2; do 2697 echo "timestamp, slept: $am_has_slept" > conftest.file 2698 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2699 if test "$*" = "X"; then 2700 # -L didn't work. 2701 set X `ls -t "$srcdir/configure" conftest.file` 2702 fi 2703 if test "$*" != "X $srcdir/configure conftest.file" \ 2704 && test "$*" != "X conftest.file $srcdir/configure"; then 2705 2706 # If neither matched, then we have a broken ls. This can happen 2707 # if, for instance, CONFIG_SHELL is bash and it inherits a 2708 # broken ls alias from the environment. This has actually 2709 # happened. Such a system could not be considered "sane". 2710 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2711 alias in your environment" "$LINENO" 5 2712 fi 2713 if test "$2" = conftest.file || test $am_try -eq 2; then 2714 break 2715 fi 2716 # Just in case. 2717 sleep 1 2718 am_has_slept=yes 2719 done 2720 test "$2" = conftest.file 2721 ) 2722then 2723 # Ok. 2724 : 2725else 2726 as_fn_error $? "newly created file is older than distributed files! 2727Check your system clock" "$LINENO" 5 2728fi 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2730$as_echo "yes" >&6; } 2731# If we didn't sleep, we still need to ensure time stamps of config.status and 2732# generated files are strictly newer. 2733am_sleep_pid= 2734if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2735 ( sleep 1 ) & 2736 am_sleep_pid=$! 2737fi 2738 2739rm -f conftest.file 2740 2741test "$program_prefix" != NONE && 2742 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2743# Use a double $ so make ignores it. 2744test "$program_suffix" != NONE && 2745 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2746# Double any \ or $. 2747# By default was `s,x,x', remove it if useless. 2748ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2749program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2750 2751# expand $ac_aux_dir to an absolute path 2752am_aux_dir=`cd $ac_aux_dir && pwd` 2753 2754if test x"${MISSING+set}" != xset; then 2755 case $am_aux_dir in 2756 *\ * | *\ *) 2757 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2758 *) 2759 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2760 esac 2761fi 2762# Use eval to expand $SHELL 2763if eval "$MISSING --run true"; then 2764 am_missing_run="$MISSING --run " 2765else 2766 am_missing_run= 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2768$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2769fi 2770 2771if test x"${install_sh}" != xset; then 2772 case $am_aux_dir in 2773 *\ * | *\ *) 2774 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2775 *) 2776 install_sh="\${SHELL} $am_aux_dir/install-sh" 2777 esac 2778fi 2779 2780# Installed binaries are usually stripped using 'strip' when the user 2781# run "make install-strip". However 'strip' might not be the right 2782# tool to use in cross-compilation environments, therefore Automake 2783# will honor the 'STRIP' environment variable to overrule this program. 2784if test "$cross_compiling" != no; then 2785 if test -n "$ac_tool_prefix"; then 2786 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2787set dummy ${ac_tool_prefix}strip; ac_word=$2 2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2789$as_echo_n "checking for $ac_word... " >&6; } 2790if ${ac_cv_prog_STRIP+:} false; then : 2791 $as_echo_n "(cached) " >&6 2792else 2793 if test -n "$STRIP"; then 2794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2795else 2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2797for as_dir in $PATH 2798do 2799 IFS=$as_save_IFS 2800 test -z "$as_dir" && as_dir=. 2801 for ac_exec_ext in '' $ac_executable_extensions; do 2802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2803 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2805 break 2 2806 fi 2807done 2808 done 2809IFS=$as_save_IFS 2810 2811fi 2812fi 2813STRIP=$ac_cv_prog_STRIP 2814if test -n "$STRIP"; then 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2816$as_echo "$STRIP" >&6; } 2817else 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2819$as_echo "no" >&6; } 2820fi 2821 2822 2823fi 2824if test -z "$ac_cv_prog_STRIP"; then 2825 ac_ct_STRIP=$STRIP 2826 # Extract the first word of "strip", so it can be a program name with args. 2827set dummy strip; ac_word=$2 2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2829$as_echo_n "checking for $ac_word... " >&6; } 2830if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2831 $as_echo_n "(cached) " >&6 2832else 2833 if test -n "$ac_ct_STRIP"; then 2834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2835else 2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2837for as_dir in $PATH 2838do 2839 IFS=$as_save_IFS 2840 test -z "$as_dir" && as_dir=. 2841 for ac_exec_ext in '' $ac_executable_extensions; do 2842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2843 ac_cv_prog_ac_ct_STRIP="strip" 2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2845 break 2 2846 fi 2847done 2848 done 2849IFS=$as_save_IFS 2850 2851fi 2852fi 2853ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2854if test -n "$ac_ct_STRIP"; then 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2856$as_echo "$ac_ct_STRIP" >&6; } 2857else 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2859$as_echo "no" >&6; } 2860fi 2861 2862 if test "x$ac_ct_STRIP" = x; then 2863 STRIP=":" 2864 else 2865 case $cross_compiling:$ac_tool_warned in 2866yes:) 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2869ac_tool_warned=yes ;; 2870esac 2871 STRIP=$ac_ct_STRIP 2872 fi 2873else 2874 STRIP="$ac_cv_prog_STRIP" 2875fi 2876 2877fi 2878INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2879 2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2881$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2882if test -z "$MKDIR_P"; then 2883 if ${ac_cv_path_mkdir+:} false; then : 2884 $as_echo_n "(cached) " >&6 2885else 2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2887for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2888do 2889 IFS=$as_save_IFS 2890 test -z "$as_dir" && as_dir=. 2891 for ac_prog in mkdir gmkdir; do 2892 for ac_exec_ext in '' $ac_executable_extensions; do 2893 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2894 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2895 'mkdir (GNU coreutils) '* | \ 2896 'mkdir (coreutils) '* | \ 2897 'mkdir (fileutils) '4.1*) 2898 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2899 break 3;; 2900 esac 2901 done 2902 done 2903 done 2904IFS=$as_save_IFS 2905 2906fi 2907 2908 test -d ./--version && rmdir ./--version 2909 if test "${ac_cv_path_mkdir+set}" = set; then 2910 MKDIR_P="$ac_cv_path_mkdir -p" 2911 else 2912 # As a last resort, use the slow shell script. Don't cache a 2913 # value for MKDIR_P within a source directory, because that will 2914 # break other packages using the cache if that directory is 2915 # removed, or if the value is a relative name. 2916 MKDIR_P="$ac_install_sh -d" 2917 fi 2918fi 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2920$as_echo "$MKDIR_P" >&6; } 2921 2922for ac_prog in gawk mawk nawk awk 2923do 2924 # Extract the first word of "$ac_prog", so it can be a program name with args. 2925set dummy $ac_prog; ac_word=$2 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2927$as_echo_n "checking for $ac_word... " >&6; } 2928if ${ac_cv_prog_AWK+:} false; then : 2929 $as_echo_n "(cached) " >&6 2930else 2931 if test -n "$AWK"; then 2932 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2933else 2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2935for as_dir in $PATH 2936do 2937 IFS=$as_save_IFS 2938 test -z "$as_dir" && as_dir=. 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2941 ac_cv_prog_AWK="$ac_prog" 2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2943 break 2 2944 fi 2945done 2946 done 2947IFS=$as_save_IFS 2948 2949fi 2950fi 2951AWK=$ac_cv_prog_AWK 2952if test -n "$AWK"; then 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2954$as_echo "$AWK" >&6; } 2955else 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2957$as_echo "no" >&6; } 2958fi 2959 2960 2961 test -n "$AWK" && break 2962done 2963 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2965$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2966set x ${MAKE-make} 2967ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2968if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2969 $as_echo_n "(cached) " >&6 2970else 2971 cat >conftest.make <<\_ACEOF 2972SHELL = /bin/sh 2973all: 2974 @echo '@@@%%%=$(MAKE)=@@@%%%' 2975_ACEOF 2976# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2977case `${MAKE-make} -f conftest.make 2>/dev/null` in 2978 *@@@%%%=?*=@@@%%%*) 2979 eval ac_cv_prog_make_${ac_make}_set=yes;; 2980 *) 2981 eval ac_cv_prog_make_${ac_make}_set=no;; 2982esac 2983rm -f conftest.make 2984fi 2985if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2987$as_echo "yes" >&6; } 2988 SET_MAKE= 2989else 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2991$as_echo "no" >&6; } 2992 SET_MAKE="MAKE=${MAKE-make}" 2993fi 2994 2995rm -rf .tst 2>/dev/null 2996mkdir .tst 2>/dev/null 2997if test -d .tst; then 2998 am__leading_dot=. 2999else 3000 am__leading_dot=_ 3001fi 3002rmdir .tst 2>/dev/null 3003 3004if test "`cd $srcdir && pwd`" != "`pwd`"; then 3005 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3006 # is not polluted with repeated "-I." 3007 am__isrc=' -I$(srcdir)' 3008 # test to see if srcdir already configured 3009 if test -f $srcdir/config.status; then 3010 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3011 fi 3012fi 3013 3014# test whether we have cygpath 3015if test -z "$CYGPATH_W"; then 3016 if (cygpath --version) >/dev/null 2>/dev/null; then 3017 CYGPATH_W='cygpath -w' 3018 else 3019 CYGPATH_W=echo 3020 fi 3021fi 3022 3023 3024# Define the identity of the package. 3025 PACKAGE='pushover' 3026 VERSION='0.0.5' 3027 3028 3029cat >>confdefs.h <<_ACEOF 3030#define PACKAGE "$PACKAGE" 3031_ACEOF 3032 3033 3034cat >>confdefs.h <<_ACEOF 3035#define VERSION "$VERSION" 3036_ACEOF 3037 3038# Some tools Automake needs. 3039 3040ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3041 3042 3043AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3044 3045 3046AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3047 3048 3049AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3050 3051 3052MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3053 3054# For better backward compatibility. To be removed once Automake 1.9.x 3055# dies out for good. For more background, see: 3056# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3057# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3058mkdir_p='$(MKDIR_P)' 3059 3060# We need awk for the "check" target. The system "awk" is bad on 3061# some platforms. 3062# Always define AMTAR for backward compatibility. Yes, it's still used 3063# in the wild :-( We should find a proper way to deprecate it ... 3064AMTAR='$${TAR-tar}' 3065 3066am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3067 3068 3069 3070 3071 3072 3073ac_config_headers="$ac_config_headers config.h" 3074 3075 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3077$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3078 # Check whether --enable-maintainer-mode was given. 3079if test "${enable_maintainer_mode+set}" = set; then : 3080 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3081else 3082 USE_MAINTAINER_MODE=no 3083fi 3084 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3086$as_echo "$USE_MAINTAINER_MODE" >&6; } 3087 if test $USE_MAINTAINER_MODE = yes; then 3088 MAINTAINER_MODE_TRUE= 3089 MAINTAINER_MODE_FALSE='#' 3090else 3091 MAINTAINER_MODE_TRUE='#' 3092 MAINTAINER_MODE_FALSE= 3093fi 3094 3095 MAINT=$MAINTAINER_MODE_TRUE 3096 3097 3098 3099# General information. 3100FULLNAME="Pushover" 3101 3102URL="http://pushover.sourceforge.net/" 3103 3104 3105cat >>confdefs.h <<_ACEOF 3106#define FULLNAME "$FULLNAME" 3107_ACEOF 3108 3109 3110cat >>confdefs.h <<_ACEOF 3111#define URL "$URL" 3112_ACEOF 3113 3114 3115# Compiler options. 3116 3117# Additional variables. 3118 3119# Checks for programs. 3120ac_ext=cpp 3121ac_cpp='$CXXCPP $CPPFLAGS' 3122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3125if test -z "$CXX"; then 3126 if test -n "$CCC"; then 3127 CXX=$CCC 3128 else 3129 if test -n "$ac_tool_prefix"; then 3130 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3131 do 3132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3133set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3135$as_echo_n "checking for $ac_word... " >&6; } 3136if ${ac_cv_prog_CXX+:} false; then : 3137 $as_echo_n "(cached) " >&6 3138else 3139 if test -n "$CXX"; then 3140 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3141else 3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3143for as_dir in $PATH 3144do 3145 IFS=$as_save_IFS 3146 test -z "$as_dir" && as_dir=. 3147 for ac_exec_ext in '' $ac_executable_extensions; do 3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3149 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3151 break 2 3152 fi 3153done 3154 done 3155IFS=$as_save_IFS 3156 3157fi 3158fi 3159CXX=$ac_cv_prog_CXX 3160if test -n "$CXX"; then 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3162$as_echo "$CXX" >&6; } 3163else 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3165$as_echo "no" >&6; } 3166fi 3167 3168 3169 test -n "$CXX" && break 3170 done 3171fi 3172if test -z "$CXX"; then 3173 ac_ct_CXX=$CXX 3174 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3175do 3176 # Extract the first word of "$ac_prog", so it can be a program name with args. 3177set dummy $ac_prog; ac_word=$2 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3179$as_echo_n "checking for $ac_word... " >&6; } 3180if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3181 $as_echo_n "(cached) " >&6 3182else 3183 if test -n "$ac_ct_CXX"; then 3184 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3185else 3186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3187for as_dir in $PATH 3188do 3189 IFS=$as_save_IFS 3190 test -z "$as_dir" && as_dir=. 3191 for ac_exec_ext in '' $ac_executable_extensions; do 3192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3193 ac_cv_prog_ac_ct_CXX="$ac_prog" 3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3195 break 2 3196 fi 3197done 3198 done 3199IFS=$as_save_IFS 3200 3201fi 3202fi 3203ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3204if test -n "$ac_ct_CXX"; then 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3206$as_echo "$ac_ct_CXX" >&6; } 3207else 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3209$as_echo "no" >&6; } 3210fi 3211 3212 3213 test -n "$ac_ct_CXX" && break 3214done 3215 3216 if test "x$ac_ct_CXX" = x; then 3217 CXX="g++" 3218 else 3219 case $cross_compiling:$ac_tool_warned in 3220yes:) 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3223ac_tool_warned=yes ;; 3224esac 3225 CXX=$ac_ct_CXX 3226 fi 3227fi 3228 3229 fi 3230fi 3231# Provide some information about the compiler. 3232$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3233set X $ac_compile 3234ac_compiler=$2 3235for ac_option in --version -v -V -qversion; do 3236 { { ac_try="$ac_compiler $ac_option >&5" 3237case "(($ac_try" in 3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3239 *) ac_try_echo=$ac_try;; 3240esac 3241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3242$as_echo "$ac_try_echo"; } >&5 3243 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3244 ac_status=$? 3245 if test -s conftest.err; then 3246 sed '10a\ 3247... rest of stderr output deleted ... 3248 10q' conftest.err >conftest.er1 3249 cat conftest.er1 >&5 3250 fi 3251 rm -f conftest.er1 conftest.err 3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3253 test $ac_status = 0; } 3254done 3255 3256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3257/* end confdefs.h. */ 3258 3259int 3260main () 3261{ 3262 3263 ; 3264 return 0; 3265} 3266_ACEOF 3267ac_clean_files_save=$ac_clean_files 3268ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3269# Try to create an executable without -o first, disregard a.out. 3270# It will help us diagnose broken compilers, and finding out an intuition 3271# of exeext. 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 3273$as_echo_n "checking whether the C++ compiler works... " >&6; } 3274ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3275 3276# The possible output files: 3277ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3278 3279ac_rmfiles= 3280for ac_file in $ac_files 3281do 3282 case $ac_file in 3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3284 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3285 esac 3286done 3287rm -f $ac_rmfiles 3288 3289if { { ac_try="$ac_link_default" 3290case "(($ac_try" in 3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3292 *) ac_try_echo=$ac_try;; 3293esac 3294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3295$as_echo "$ac_try_echo"; } >&5 3296 (eval "$ac_link_default") 2>&5 3297 ac_status=$? 3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3299 test $ac_status = 0; }; then : 3300 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3301# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3302# in a Makefile. We should not override ac_cv_exeext if it was cached, 3303# so that the user can short-circuit this test for compilers unknown to 3304# Autoconf. 3305for ac_file in $ac_files '' 3306do 3307 test -f "$ac_file" || continue 3308 case $ac_file in 3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3310 ;; 3311 [ab].out ) 3312 # We found the default executable, but exeext='' is most 3313 # certainly right. 3314 break;; 3315 *.* ) 3316 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3317 then :; else 3318 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3319 fi 3320 # We set ac_cv_exeext here because the later test for it is not 3321 # safe: cross compilers may not add the suffix if given an `-o' 3322 # argument, so we may need to know it at that point already. 3323 # Even if this section looks crufty: it has the advantage of 3324 # actually working. 3325 break;; 3326 * ) 3327 break;; 3328 esac 3329done 3330test "$ac_cv_exeext" = no && ac_cv_exeext= 3331 3332else 3333 ac_file='' 3334fi 3335if test -z "$ac_file"; then : 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3337$as_echo "no" >&6; } 3338$as_echo "$as_me: failed program was:" >&5 3339sed 's/^/| /' conftest.$ac_ext >&5 3340 3341{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3343as_fn_error 77 "C++ compiler cannot create executables 3344See \`config.log' for more details" "$LINENO" 5; } 3345else 3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3347$as_echo "yes" >&6; } 3348fi 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 3350$as_echo_n "checking for C++ compiler default output file name... " >&6; } 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3352$as_echo "$ac_file" >&6; } 3353ac_exeext=$ac_cv_exeext 3354 3355rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3356ac_clean_files=$ac_clean_files_save 3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3358$as_echo_n "checking for suffix of executables... " >&6; } 3359if { { ac_try="$ac_link" 3360case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363esac 3364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3365$as_echo "$ac_try_echo"; } >&5 3366 (eval "$ac_link") 2>&5 3367 ac_status=$? 3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3369 test $ac_status = 0; }; then : 3370 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3371# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3372# work properly (i.e., refer to `conftest.exe'), while it won't with 3373# `rm'. 3374for ac_file in conftest.exe conftest conftest.*; do 3375 test -f "$ac_file" || continue 3376 case $ac_file in 3377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3379 break;; 3380 * ) break;; 3381 esac 3382done 3383else 3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3386as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3387See \`config.log' for more details" "$LINENO" 5; } 3388fi 3389rm -f conftest conftest$ac_cv_exeext 3390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3391$as_echo "$ac_cv_exeext" >&6; } 3392 3393rm -f conftest.$ac_ext 3394EXEEXT=$ac_cv_exeext 3395ac_exeext=$EXEEXT 3396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3397/* end confdefs.h. */ 3398#include <stdio.h> 3399int 3400main () 3401{ 3402FILE *f = fopen ("conftest.out", "w"); 3403 return ferror (f) || fclose (f) != 0; 3404 3405 ; 3406 return 0; 3407} 3408_ACEOF 3409ac_clean_files="$ac_clean_files conftest.out" 3410# Check that the compiler produces executables we can run. If not, either 3411# the compiler is broken, or we cross compile. 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3413$as_echo_n "checking whether we are cross compiling... " >&6; } 3414if test "$cross_compiling" != yes; then 3415 { { ac_try="$ac_link" 3416case "(($ac_try" in 3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3418 *) ac_try_echo=$ac_try;; 3419esac 3420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3421$as_echo "$ac_try_echo"; } >&5 3422 (eval "$ac_link") 2>&5 3423 ac_status=$? 3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3425 test $ac_status = 0; } 3426 if { ac_try='./conftest$ac_cv_exeext' 3427 { { case "(($ac_try" in 3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3429 *) ac_try_echo=$ac_try;; 3430esac 3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3432$as_echo "$ac_try_echo"; } >&5 3433 (eval "$ac_try") 2>&5 3434 ac_status=$? 3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3436 test $ac_status = 0; }; }; then 3437 cross_compiling=no 3438 else 3439 if test "$cross_compiling" = maybe; then 3440 cross_compiling=yes 3441 else 3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3444as_fn_error $? "cannot run C++ compiled programs. 3445If you meant to cross compile, use \`--host'. 3446See \`config.log' for more details" "$LINENO" 5; } 3447 fi 3448 fi 3449fi 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3451$as_echo "$cross_compiling" >&6; } 3452 3453rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3454ac_clean_files=$ac_clean_files_save 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3456$as_echo_n "checking for suffix of object files... " >&6; } 3457if ${ac_cv_objext+:} false; then : 3458 $as_echo_n "(cached) " >&6 3459else 3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3461/* end confdefs.h. */ 3462 3463int 3464main () 3465{ 3466 3467 ; 3468 return 0; 3469} 3470_ACEOF 3471rm -f conftest.o conftest.obj 3472if { { ac_try="$ac_compile" 3473case "(($ac_try" in 3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3475 *) ac_try_echo=$ac_try;; 3476esac 3477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3478$as_echo "$ac_try_echo"; } >&5 3479 (eval "$ac_compile") 2>&5 3480 ac_status=$? 3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3482 test $ac_status = 0; }; then : 3483 for ac_file in conftest.o conftest.obj conftest.*; do 3484 test -f "$ac_file" || continue; 3485 case $ac_file in 3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3487 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3488 break;; 3489 esac 3490done 3491else 3492 $as_echo "$as_me: failed program was:" >&5 3493sed 's/^/| /' conftest.$ac_ext >&5 3494 3495{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3497as_fn_error $? "cannot compute suffix of object files: cannot compile 3498See \`config.log' for more details" "$LINENO" 5; } 3499fi 3500rm -f conftest.$ac_cv_objext conftest.$ac_ext 3501fi 3502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3503$as_echo "$ac_cv_objext" >&6; } 3504OBJEXT=$ac_cv_objext 3505ac_objext=$OBJEXT 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3507$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3508if ${ac_cv_cxx_compiler_gnu+:} false; then : 3509 $as_echo_n "(cached) " >&6 3510else 3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3512/* end confdefs.h. */ 3513 3514int 3515main () 3516{ 3517#ifndef __GNUC__ 3518 choke me 3519#endif 3520 3521 ; 3522 return 0; 3523} 3524_ACEOF 3525if ac_fn_cxx_try_compile "$LINENO"; then : 3526 ac_compiler_gnu=yes 3527else 3528 ac_compiler_gnu=no 3529fi 3530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3531ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3532 3533fi 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3535$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3536if test $ac_compiler_gnu = yes; then 3537 GXX=yes 3538else 3539 GXX= 3540fi 3541ac_test_CXXFLAGS=${CXXFLAGS+set} 3542ac_save_CXXFLAGS=$CXXFLAGS 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3544$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3545if ${ac_cv_prog_cxx_g+:} false; then : 3546 $as_echo_n "(cached) " >&6 3547else 3548 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3549 ac_cxx_werror_flag=yes 3550 ac_cv_prog_cxx_g=no 3551 CXXFLAGS="-g" 3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3553/* end confdefs.h. */ 3554 3555int 3556main () 3557{ 3558 3559 ; 3560 return 0; 3561} 3562_ACEOF 3563if ac_fn_cxx_try_compile "$LINENO"; then : 3564 ac_cv_prog_cxx_g=yes 3565else 3566 CXXFLAGS="" 3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3568/* end confdefs.h. */ 3569 3570int 3571main () 3572{ 3573 3574 ; 3575 return 0; 3576} 3577_ACEOF 3578if ac_fn_cxx_try_compile "$LINENO"; then : 3579 3580else 3581 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3582 CXXFLAGS="-g" 3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3584/* end confdefs.h. */ 3585 3586int 3587main () 3588{ 3589 3590 ; 3591 return 0; 3592} 3593_ACEOF 3594if ac_fn_cxx_try_compile "$LINENO"; then : 3595 ac_cv_prog_cxx_g=yes 3596fi 3597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3598fi 3599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3600fi 3601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3603fi 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3605$as_echo "$ac_cv_prog_cxx_g" >&6; } 3606if test "$ac_test_CXXFLAGS" = set; then 3607 CXXFLAGS=$ac_save_CXXFLAGS 3608elif test $ac_cv_prog_cxx_g = yes; then 3609 if test "$GXX" = yes; then 3610 CXXFLAGS="-g -O2" 3611 else 3612 CXXFLAGS="-g" 3613 fi 3614else 3615 if test "$GXX" = yes; then 3616 CXXFLAGS="-O2" 3617 else 3618 CXXFLAGS= 3619 fi 3620fi 3621ac_ext=c 3622ac_cpp='$CPP $CPPFLAGS' 3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3625ac_compiler_gnu=$ac_cv_c_compiler_gnu 3626DEPDIR="${am__leading_dot}deps" 3627 3628ac_config_commands="$ac_config_commands depfiles" 3629 3630 3631am_make=${MAKE-make} 3632cat > confinc << 'END' 3633am__doit: 3634 @echo this is the am__doit target 3635.PHONY: am__doit 3636END 3637# If we don't find an include directive, just comment out the code. 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3639$as_echo_n "checking for style of include used by $am_make... " >&6; } 3640am__include="#" 3641am__quote= 3642_am_result=none 3643# First try GNU make style include. 3644echo "include confinc" > confmf 3645# Ignore all kinds of additional output from 'make'. 3646case `$am_make -s -f confmf 2> /dev/null` in #( 3647*the\ am__doit\ target*) 3648 am__include=include 3649 am__quote= 3650 _am_result=GNU 3651 ;; 3652esac 3653# Now try BSD make style include. 3654if test "$am__include" = "#"; then 3655 echo '.include "confinc"' > confmf 3656 case `$am_make -s -f confmf 2> /dev/null` in #( 3657 *the\ am__doit\ target*) 3658 am__include=.include 3659 am__quote="\"" 3660 _am_result=BSD 3661 ;; 3662 esac 3663fi 3664 3665 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3667$as_echo "$_am_result" >&6; } 3668rm -f confinc confmf 3669 3670# Check whether --enable-dependency-tracking was given. 3671if test "${enable_dependency_tracking+set}" = set; then : 3672 enableval=$enable_dependency_tracking; 3673fi 3674 3675if test "x$enable_dependency_tracking" != xno; then 3676 am_depcomp="$ac_aux_dir/depcomp" 3677 AMDEPBACKSLASH='\' 3678 am__nodep='_no' 3679fi 3680 if test "x$enable_dependency_tracking" != xno; then 3681 AMDEP_TRUE= 3682 AMDEP_FALSE='#' 3683else 3684 AMDEP_TRUE='#' 3685 AMDEP_FALSE= 3686fi 3687 3688 3689 3690depcc="$CXX" am_compiler_list= 3691 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3693$as_echo_n "checking dependency style of $depcc... " >&6; } 3694if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 3695 $as_echo_n "(cached) " >&6 3696else 3697 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3698 # We make a subdir and do the tests there. Otherwise we can end up 3699 # making bogus files that we don't know about and never remove. For 3700 # instance it was reported that on HP-UX the gcc test will end up 3701 # making a dummy file named 'D' -- because '-MD' means "put the output 3702 # in D". 3703 rm -rf conftest.dir 3704 mkdir conftest.dir 3705 # Copy depcomp to subdir because otherwise we won't find it if we're 3706 # using a relative directory. 3707 cp "$am_depcomp" conftest.dir 3708 cd conftest.dir 3709 # We will build objects and dependencies in a subdirectory because 3710 # it helps to detect inapplicable dependency modes. For instance 3711 # both Tru64's cc and ICC support -MD to output dependencies as a 3712 # side effect of compilation, but ICC will put the dependencies in 3713 # the current directory while Tru64 will put them in the object 3714 # directory. 3715 mkdir sub 3716 3717 am_cv_CXX_dependencies_compiler_type=none 3718 if test "$am_compiler_list" = ""; then 3719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3720 fi 3721 am__universal=false 3722 case " $depcc " in #( 3723 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3724 esac 3725 3726 for depmode in $am_compiler_list; do 3727 # Setup a source with many dependencies, because some compilers 3728 # like to wrap large dependency lists on column 80 (with \), and 3729 # we should not choose a depcomp mode which is confused by this. 3730 # 3731 # We need to recreate these files for each test, as the compiler may 3732 # overwrite some of them when testing with obscure command lines. 3733 # This happens at least with the AIX C compiler. 3734 : > sub/conftest.c 3735 for i in 1 2 3 4 5 6; do 3736 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3737 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3738 # Solaris 10 /bin/sh. 3739 echo '/* dummy */' > sub/conftst$i.h 3740 done 3741 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3742 3743 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3744 # mode. It turns out that the SunPro C++ compiler does not properly 3745 # handle '-M -o', and we need to detect this. Also, some Intel 3746 # versions had trouble with output in subdirs. 3747 am__obj=sub/conftest.${OBJEXT-o} 3748 am__minus_obj="-o $am__obj" 3749 case $depmode in 3750 gcc) 3751 # This depmode causes a compiler race in universal mode. 3752 test "$am__universal" = false || continue 3753 ;; 3754 nosideeffect) 3755 # After this tag, mechanisms are not by side-effect, so they'll 3756 # only be used when explicitly requested. 3757 if test "x$enable_dependency_tracking" = xyes; then 3758 continue 3759 else 3760 break 3761 fi 3762 ;; 3763 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3764 # This compiler won't grok '-c -o', but also, the minuso test has 3765 # not run yet. These depmodes are late enough in the game, and 3766 # so weak that their functioning should not be impacted. 3767 am__obj=conftest.${OBJEXT-o} 3768 am__minus_obj= 3769 ;; 3770 none) break ;; 3771 esac 3772 if depmode=$depmode \ 3773 source=sub/conftest.c object=$am__obj \ 3774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3775 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3776 >/dev/null 2>conftest.err && 3777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3779 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3781 # icc doesn't choke on unknown options, it will just issue warnings 3782 # or remarks (even with -Werror). So we grep stderr for any message 3783 # that says an option was ignored or not supported. 3784 # When given -MP, icc 7.0 and 7.1 complain thusly: 3785 # icc: Command line warning: ignoring option '-M'; no argument required 3786 # The diagnosis changed in icc 8.0: 3787 # icc: Command line remark: option '-MP' not supported 3788 if (grep 'ignoring option' conftest.err || 3789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3790 am_cv_CXX_dependencies_compiler_type=$depmode 3791 break 3792 fi 3793 fi 3794 done 3795 3796 cd .. 3797 rm -rf conftest.dir 3798else 3799 am_cv_CXX_dependencies_compiler_type=none 3800fi 3801 3802fi 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 3804$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3805CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3806 3807 if 3808 test "x$enable_dependency_tracking" != xno \ 3809 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3810 am__fastdepCXX_TRUE= 3811 am__fastdepCXX_FALSE='#' 3812else 3813 am__fastdepCXX_TRUE='#' 3814 am__fastdepCXX_FALSE= 3815fi 3816 3817 3818ac_ext=c 3819ac_cpp='$CPP $CPPFLAGS' 3820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3822ac_compiler_gnu=$ac_cv_c_compiler_gnu 3823if test -n "$ac_tool_prefix"; then 3824 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3825set dummy ${ac_tool_prefix}gcc; ac_word=$2 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3827$as_echo_n "checking for $ac_word... " >&6; } 3828if ${ac_cv_prog_CC+:} false; then : 3829 $as_echo_n "(cached) " >&6 3830else 3831 if test -n "$CC"; then 3832 ac_cv_prog_CC="$CC" # Let the user override the test. 3833else 3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3835for as_dir in $PATH 3836do 3837 IFS=$as_save_IFS 3838 test -z "$as_dir" && as_dir=. 3839 for ac_exec_ext in '' $ac_executable_extensions; do 3840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3841 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3843 break 2 3844 fi 3845done 3846 done 3847IFS=$as_save_IFS 3848 3849fi 3850fi 3851CC=$ac_cv_prog_CC 3852if test -n "$CC"; then 3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3854$as_echo "$CC" >&6; } 3855else 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3857$as_echo "no" >&6; } 3858fi 3859 3860 3861fi 3862if test -z "$ac_cv_prog_CC"; then 3863 ac_ct_CC=$CC 3864 # Extract the first word of "gcc", so it can be a program name with args. 3865set dummy gcc; ac_word=$2 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3867$as_echo_n "checking for $ac_word... " >&6; } 3868if ${ac_cv_prog_ac_ct_CC+:} false; then : 3869 $as_echo_n "(cached) " >&6 3870else 3871 if test -n "$ac_ct_CC"; then 3872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3873else 3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3875for as_dir in $PATH 3876do 3877 IFS=$as_save_IFS 3878 test -z "$as_dir" && as_dir=. 3879 for ac_exec_ext in '' $ac_executable_extensions; do 3880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3881 ac_cv_prog_ac_ct_CC="gcc" 3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3883 break 2 3884 fi 3885done 3886 done 3887IFS=$as_save_IFS 3888 3889fi 3890fi 3891ac_ct_CC=$ac_cv_prog_ac_ct_CC 3892if test -n "$ac_ct_CC"; then 3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3894$as_echo "$ac_ct_CC" >&6; } 3895else 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3897$as_echo "no" >&6; } 3898fi 3899 3900 if test "x$ac_ct_CC" = x; then 3901 CC="" 3902 else 3903 case $cross_compiling:$ac_tool_warned in 3904yes:) 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3907ac_tool_warned=yes ;; 3908esac 3909 CC=$ac_ct_CC 3910 fi 3911else 3912 CC="$ac_cv_prog_CC" 3913fi 3914 3915if test -z "$CC"; then 3916 if test -n "$ac_tool_prefix"; then 3917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3918set dummy ${ac_tool_prefix}cc; ac_word=$2 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3920$as_echo_n "checking for $ac_word... " >&6; } 3921if ${ac_cv_prog_CC+:} false; then : 3922 $as_echo_n "(cached) " >&6 3923else 3924 if test -n "$CC"; then 3925 ac_cv_prog_CC="$CC" # Let the user override the test. 3926else 3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3928for as_dir in $PATH 3929do 3930 IFS=$as_save_IFS 3931 test -z "$as_dir" && as_dir=. 3932 for ac_exec_ext in '' $ac_executable_extensions; do 3933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3934 ac_cv_prog_CC="${ac_tool_prefix}cc" 3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3936 break 2 3937 fi 3938done 3939 done 3940IFS=$as_save_IFS 3941 3942fi 3943fi 3944CC=$ac_cv_prog_CC 3945if test -n "$CC"; then 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3947$as_echo "$CC" >&6; } 3948else 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3950$as_echo "no" >&6; } 3951fi 3952 3953 3954 fi 3955fi 3956if test -z "$CC"; then 3957 # Extract the first word of "cc", so it can be a program name with args. 3958set dummy cc; ac_word=$2 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3960$as_echo_n "checking for $ac_word... " >&6; } 3961if ${ac_cv_prog_CC+:} false; then : 3962 $as_echo_n "(cached) " >&6 3963else 3964 if test -n "$CC"; then 3965 ac_cv_prog_CC="$CC" # Let the user override the test. 3966else 3967 ac_prog_rejected=no 3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3969for as_dir in $PATH 3970do 3971 IFS=$as_save_IFS 3972 test -z "$as_dir" && as_dir=. 3973 for ac_exec_ext in '' $ac_executable_extensions; do 3974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3976 ac_prog_rejected=yes 3977 continue 3978 fi 3979 ac_cv_prog_CC="cc" 3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3981 break 2 3982 fi 3983done 3984 done 3985IFS=$as_save_IFS 3986 3987if test $ac_prog_rejected = yes; then 3988 # We found a bogon in the path, so make sure we never use it. 3989 set dummy $ac_cv_prog_CC 3990 shift 3991 if test $# != 0; then 3992 # We chose a different compiler from the bogus one. 3993 # However, it has the same basename, so the bogon will be chosen 3994 # first if we set CC to just the basename; use the full file name. 3995 shift 3996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3997 fi 3998fi 3999fi 4000fi 4001CC=$ac_cv_prog_CC 4002if test -n "$CC"; then 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4004$as_echo "$CC" >&6; } 4005else 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4007$as_echo "no" >&6; } 4008fi 4009 4010 4011fi 4012if test -z "$CC"; then 4013 if test -n "$ac_tool_prefix"; then 4014 for ac_prog in cl.exe 4015 do 4016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4017set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4019$as_echo_n "checking for $ac_word... " >&6; } 4020if ${ac_cv_prog_CC+:} false; then : 4021 $as_echo_n "(cached) " >&6 4022else 4023 if test -n "$CC"; then 4024 ac_cv_prog_CC="$CC" # Let the user override the test. 4025else 4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4027for as_dir in $PATH 4028do 4029 IFS=$as_save_IFS 4030 test -z "$as_dir" && as_dir=. 4031 for ac_exec_ext in '' $ac_executable_extensions; do 4032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4035 break 2 4036 fi 4037done 4038 done 4039IFS=$as_save_IFS 4040 4041fi 4042fi 4043CC=$ac_cv_prog_CC 4044if test -n "$CC"; then 4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4046$as_echo "$CC" >&6; } 4047else 4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4049$as_echo "no" >&6; } 4050fi 4051 4052 4053 test -n "$CC" && break 4054 done 4055fi 4056if test -z "$CC"; then 4057 ac_ct_CC=$CC 4058 for ac_prog in cl.exe 4059do 4060 # Extract the first word of "$ac_prog", so it can be a program name with args. 4061set dummy $ac_prog; ac_word=$2 4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4063$as_echo_n "checking for $ac_word... " >&6; } 4064if ${ac_cv_prog_ac_ct_CC+:} false; then : 4065 $as_echo_n "(cached) " >&6 4066else 4067 if test -n "$ac_ct_CC"; then 4068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4069else 4070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4071for as_dir in $PATH 4072do 4073 IFS=$as_save_IFS 4074 test -z "$as_dir" && as_dir=. 4075 for ac_exec_ext in '' $ac_executable_extensions; do 4076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4077 ac_cv_prog_ac_ct_CC="$ac_prog" 4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4079 break 2 4080 fi 4081done 4082 done 4083IFS=$as_save_IFS 4084 4085fi 4086fi 4087ac_ct_CC=$ac_cv_prog_ac_ct_CC 4088if test -n "$ac_ct_CC"; then 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4090$as_echo "$ac_ct_CC" >&6; } 4091else 4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4093$as_echo "no" >&6; } 4094fi 4095 4096 4097 test -n "$ac_ct_CC" && break 4098done 4099 4100 if test "x$ac_ct_CC" = x; then 4101 CC="" 4102 else 4103 case $cross_compiling:$ac_tool_warned in 4104yes:) 4105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4107ac_tool_warned=yes ;; 4108esac 4109 CC=$ac_ct_CC 4110 fi 4111fi 4112 4113fi 4114 4115 4116test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4118as_fn_error $? "no acceptable C compiler found in \$PATH 4119See \`config.log' for more details" "$LINENO" 5; } 4120 4121# Provide some information about the compiler. 4122$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4123set X $ac_compile 4124ac_compiler=$2 4125for ac_option in --version -v -V -qversion; do 4126 { { ac_try="$ac_compiler $ac_option >&5" 4127case "(($ac_try" in 4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4129 *) ac_try_echo=$ac_try;; 4130esac 4131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4132$as_echo "$ac_try_echo"; } >&5 4133 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4134 ac_status=$? 4135 if test -s conftest.err; then 4136 sed '10a\ 4137... rest of stderr output deleted ... 4138 10q' conftest.err >conftest.er1 4139 cat conftest.er1 >&5 4140 fi 4141 rm -f conftest.er1 conftest.err 4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4143 test $ac_status = 0; } 4144done 4145 4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4147$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4148if ${ac_cv_c_compiler_gnu+:} false; then : 4149 $as_echo_n "(cached) " >&6 4150else 4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4152/* end confdefs.h. */ 4153 4154int 4155main () 4156{ 4157#ifndef __GNUC__ 4158 choke me 4159#endif 4160 4161 ; 4162 return 0; 4163} 4164_ACEOF 4165if ac_fn_c_try_compile "$LINENO"; then : 4166 ac_compiler_gnu=yes 4167else 4168 ac_compiler_gnu=no 4169fi 4170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4171ac_cv_c_compiler_gnu=$ac_compiler_gnu 4172 4173fi 4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4175$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4176if test $ac_compiler_gnu = yes; then 4177 GCC=yes 4178else 4179 GCC= 4180fi 4181ac_test_CFLAGS=${CFLAGS+set} 4182ac_save_CFLAGS=$CFLAGS 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4184$as_echo_n "checking whether $CC accepts -g... " >&6; } 4185if ${ac_cv_prog_cc_g+:} false; then : 4186 $as_echo_n "(cached) " >&6 4187else 4188 ac_save_c_werror_flag=$ac_c_werror_flag 4189 ac_c_werror_flag=yes 4190 ac_cv_prog_cc_g=no 4191 CFLAGS="-g" 4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4193/* end confdefs.h. */ 4194 4195int 4196main () 4197{ 4198 4199 ; 4200 return 0; 4201} 4202_ACEOF 4203if ac_fn_c_try_compile "$LINENO"; then : 4204 ac_cv_prog_cc_g=yes 4205else 4206 CFLAGS="" 4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4208/* end confdefs.h. */ 4209 4210int 4211main () 4212{ 4213 4214 ; 4215 return 0; 4216} 4217_ACEOF 4218if ac_fn_c_try_compile "$LINENO"; then : 4219 4220else 4221 ac_c_werror_flag=$ac_save_c_werror_flag 4222 CFLAGS="-g" 4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4224/* end confdefs.h. */ 4225 4226int 4227main () 4228{ 4229 4230 ; 4231 return 0; 4232} 4233_ACEOF 4234if ac_fn_c_try_compile "$LINENO"; then : 4235 ac_cv_prog_cc_g=yes 4236fi 4237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4238fi 4239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4240fi 4241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4242 ac_c_werror_flag=$ac_save_c_werror_flag 4243fi 4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4245$as_echo "$ac_cv_prog_cc_g" >&6; } 4246if test "$ac_test_CFLAGS" = set; then 4247 CFLAGS=$ac_save_CFLAGS 4248elif test $ac_cv_prog_cc_g = yes; then 4249 if test "$GCC" = yes; then 4250 CFLAGS="-g -O2" 4251 else 4252 CFLAGS="-g" 4253 fi 4254else 4255 if test "$GCC" = yes; then 4256 CFLAGS="-O2" 4257 else 4258 CFLAGS= 4259 fi 4260fi 4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4262$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4263if ${ac_cv_prog_cc_c89+:} false; then : 4264 $as_echo_n "(cached) " >&6 4265else 4266 ac_cv_prog_cc_c89=no 4267ac_save_CC=$CC 4268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4269/* end confdefs.h. */ 4270#include <stdarg.h> 4271#include <stdio.h> 4272struct stat; 4273/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4274struct buf { int x; }; 4275FILE * (*rcsopen) (struct buf *, struct stat *, int); 4276static char *e (p, i) 4277 char **p; 4278 int i; 4279{ 4280 return p[i]; 4281} 4282static char *f (char * (*g) (char **, int), char **p, ...) 4283{ 4284 char *s; 4285 va_list v; 4286 va_start (v,p); 4287 s = g (p, va_arg (v,int)); 4288 va_end (v); 4289 return s; 4290} 4291 4292/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4293 function prototypes and stuff, but not '\xHH' hex character constants. 4294 These don't provoke an error unfortunately, instead are silently treated 4295 as 'x'. The following induces an error, until -std is added to get 4296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4297 array size at least. It's necessary to write '\x00'==0 to get something 4298 that's true only with -std. */ 4299int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4300 4301/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4302 inside strings and character constants. */ 4303#define FOO(x) 'x' 4304int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4305 4306int test (int i, double x); 4307struct s1 {int (*f) (int a);}; 4308struct s2 {int (*f) (double a);}; 4309int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4310int argc; 4311char **argv; 4312int 4313main () 4314{ 4315return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4316 ; 4317 return 0; 4318} 4319_ACEOF 4320for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4322do 4323 CC="$ac_save_CC $ac_arg" 4324 if ac_fn_c_try_compile "$LINENO"; then : 4325 ac_cv_prog_cc_c89=$ac_arg 4326fi 4327rm -f core conftest.err conftest.$ac_objext 4328 test "x$ac_cv_prog_cc_c89" != "xno" && break 4329done 4330rm -f conftest.$ac_ext 4331CC=$ac_save_CC 4332 4333fi 4334# AC_CACHE_VAL 4335case "x$ac_cv_prog_cc_c89" in 4336 x) 4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4338$as_echo "none needed" >&6; } ;; 4339 xno) 4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4341$as_echo "unsupported" >&6; } ;; 4342 *) 4343 CC="$CC $ac_cv_prog_cc_c89" 4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4345$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4346esac 4347if test "x$ac_cv_prog_cc_c89" != xno; then : 4348 4349fi 4350 4351ac_ext=c 4352ac_cpp='$CPP $CPPFLAGS' 4353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4355ac_compiler_gnu=$ac_cv_c_compiler_gnu 4356 4357depcc="$CC" am_compiler_list= 4358 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4360$as_echo_n "checking dependency style of $depcc... " >&6; } 4361if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4362 $as_echo_n "(cached) " >&6 4363else 4364 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4365 # We make a subdir and do the tests there. Otherwise we can end up 4366 # making bogus files that we don't know about and never remove. For 4367 # instance it was reported that on HP-UX the gcc test will end up 4368 # making a dummy file named 'D' -- because '-MD' means "put the output 4369 # in D". 4370 rm -rf conftest.dir 4371 mkdir conftest.dir 4372 # Copy depcomp to subdir because otherwise we won't find it if we're 4373 # using a relative directory. 4374 cp "$am_depcomp" conftest.dir 4375 cd conftest.dir 4376 # We will build objects and dependencies in a subdirectory because 4377 # it helps to detect inapplicable dependency modes. For instance 4378 # both Tru64's cc and ICC support -MD to output dependencies as a 4379 # side effect of compilation, but ICC will put the dependencies in 4380 # the current directory while Tru64 will put them in the object 4381 # directory. 4382 mkdir sub 4383 4384 am_cv_CC_dependencies_compiler_type=none 4385 if test "$am_compiler_list" = ""; then 4386 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4387 fi 4388 am__universal=false 4389 case " $depcc " in #( 4390 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4391 esac 4392 4393 for depmode in $am_compiler_list; do 4394 # Setup a source with many dependencies, because some compilers 4395 # like to wrap large dependency lists on column 80 (with \), and 4396 # we should not choose a depcomp mode which is confused by this. 4397 # 4398 # We need to recreate these files for each test, as the compiler may 4399 # overwrite some of them when testing with obscure command lines. 4400 # This happens at least with the AIX C compiler. 4401 : > sub/conftest.c 4402 for i in 1 2 3 4 5 6; do 4403 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4404 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4405 # Solaris 10 /bin/sh. 4406 echo '/* dummy */' > sub/conftst$i.h 4407 done 4408 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4409 4410 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4411 # mode. It turns out that the SunPro C++ compiler does not properly 4412 # handle '-M -o', and we need to detect this. Also, some Intel 4413 # versions had trouble with output in subdirs. 4414 am__obj=sub/conftest.${OBJEXT-o} 4415 am__minus_obj="-o $am__obj" 4416 case $depmode in 4417 gcc) 4418 # This depmode causes a compiler race in universal mode. 4419 test "$am__universal" = false || continue 4420 ;; 4421 nosideeffect) 4422 # After this tag, mechanisms are not by side-effect, so they'll 4423 # only be used when explicitly requested. 4424 if test "x$enable_dependency_tracking" = xyes; then 4425 continue 4426 else 4427 break 4428 fi 4429 ;; 4430 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4431 # This compiler won't grok '-c -o', but also, the minuso test has 4432 # not run yet. These depmodes are late enough in the game, and 4433 # so weak that their functioning should not be impacted. 4434 am__obj=conftest.${OBJEXT-o} 4435 am__minus_obj= 4436 ;; 4437 none) break ;; 4438 esac 4439 if depmode=$depmode \ 4440 source=sub/conftest.c object=$am__obj \ 4441 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4442 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4443 >/dev/null 2>conftest.err && 4444 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4445 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4446 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4447 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4448 # icc doesn't choke on unknown options, it will just issue warnings 4449 # or remarks (even with -Werror). So we grep stderr for any message 4450 # that says an option was ignored or not supported. 4451 # When given -MP, icc 7.0 and 7.1 complain thusly: 4452 # icc: Command line warning: ignoring option '-M'; no argument required 4453 # The diagnosis changed in icc 8.0: 4454 # icc: Command line remark: option '-MP' not supported 4455 if (grep 'ignoring option' conftest.err || 4456 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4457 am_cv_CC_dependencies_compiler_type=$depmode 4458 break 4459 fi 4460 fi 4461 done 4462 4463 cd .. 4464 rm -rf conftest.dir 4465else 4466 am_cv_CC_dependencies_compiler_type=none 4467fi 4468 4469fi 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4471$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4472CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4473 4474 if 4475 test "x$enable_dependency_tracking" != xno \ 4476 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4477 am__fastdepCC_TRUE= 4478 am__fastdepCC_FALSE='#' 4479else 4480 am__fastdepCC_TRUE='#' 4481 am__fastdepCC_FALSE= 4482fi 4483 4484 4485case `pwd` in 4486 *\ * | *\ *) 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4488$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4489esac 4490 4491 4492 4493macro_version='2.4' 4494macro_revision='1.3293' 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508ltmain="$ac_aux_dir/ltmain.sh" 4509 4510# Backslashify metacharacters that are still active within 4511# double-quoted strings. 4512sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4513 4514# Same as above, but do not quote variable references. 4515double_quote_subst='s/\(["`\\]\)/\\\1/g' 4516 4517# Sed substitution to delay expansion of an escaped shell variable in a 4518# double_quote_subst'ed string. 4519delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4520 4521# Sed substitution to delay expansion of an escaped single quote. 4522delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4523 4524# Sed substitution to avoid accidental globbing in evaled expressions 4525no_glob_subst='s/\*/\\\*/g' 4526 4527ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4528ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4529ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4530 4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4532$as_echo_n "checking how to print strings... " >&6; } 4533# Test print first, because it will be a builtin if present. 4534if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4535 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4536 ECHO='print -r --' 4537elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4538 ECHO='printf %s\n' 4539else 4540 # Use this function as a fallback that always works. 4541 func_fallback_echo () 4542 { 4543 eval 'cat <<_LTECHO_EOF 4544$1 4545_LTECHO_EOF' 4546 } 4547 ECHO='func_fallback_echo' 4548fi 4549 4550# func_echo_all arg... 4551# Invoke $ECHO with all args, space-separated. 4552func_echo_all () 4553{ 4554 $ECHO "" 4555} 4556 4557case "$ECHO" in 4558 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4559$as_echo "printf" >&6; } ;; 4560 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4561$as_echo "print -r" >&6; } ;; 4562 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4563$as_echo "cat" >&6; } ;; 4564esac 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4580$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4581if ${ac_cv_path_SED+:} false; then : 4582 $as_echo_n "(cached) " >&6 4583else 4584 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4585 for ac_i in 1 2 3 4 5 6 7; do 4586 ac_script="$ac_script$as_nl$ac_script" 4587 done 4588 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4589 { ac_script=; unset ac_script;} 4590 if test -z "$SED"; then 4591 ac_path_SED_found=false 4592 # Loop through the user's path and test for each of PROGNAME-LIST 4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4594for as_dir in $PATH 4595do 4596 IFS=$as_save_IFS 4597 test -z "$as_dir" && as_dir=. 4598 for ac_prog in sed gsed; do 4599 for ac_exec_ext in '' $ac_executable_extensions; do 4600 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4601 as_fn_executable_p "$ac_path_SED" || continue 4602# Check for GNU ac_path_SED and select it if it is found. 4603 # Check for GNU $ac_path_SED 4604case `"$ac_path_SED" --version 2>&1` in 4605*GNU*) 4606 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4607*) 4608 ac_count=0 4609 $as_echo_n 0123456789 >"conftest.in" 4610 while : 4611 do 4612 cat "conftest.in" "conftest.in" >"conftest.tmp" 4613 mv "conftest.tmp" "conftest.in" 4614 cp "conftest.in" "conftest.nl" 4615 $as_echo '' >> "conftest.nl" 4616 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4618 as_fn_arith $ac_count + 1 && ac_count=$as_val 4619 if test $ac_count -gt ${ac_path_SED_max-0}; then 4620 # Best one so far, save it but keep looking for a better one 4621 ac_cv_path_SED="$ac_path_SED" 4622 ac_path_SED_max=$ac_count 4623 fi 4624 # 10*(2^10) chars as input seems more than enough 4625 test $ac_count -gt 10 && break 4626 done 4627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4628esac 4629 4630 $ac_path_SED_found && break 3 4631 done 4632 done 4633 done 4634IFS=$as_save_IFS 4635 if test -z "$ac_cv_path_SED"; then 4636 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4637 fi 4638else 4639 ac_cv_path_SED=$SED 4640fi 4641 4642fi 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4644$as_echo "$ac_cv_path_SED" >&6; } 4645 SED="$ac_cv_path_SED" 4646 rm -f conftest.sed 4647 4648test -z "$SED" && SED=sed 4649Xsed="$SED -e 1s/^X//" 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4662$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4663if ${ac_cv_path_GREP+:} false; then : 4664 $as_echo_n "(cached) " >&6 4665else 4666 if test -z "$GREP"; then 4667 ac_path_GREP_found=false 4668 # Loop through the user's path and test for each of PROGNAME-LIST 4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4670for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4671do 4672 IFS=$as_save_IFS 4673 test -z "$as_dir" && as_dir=. 4674 for ac_prog in grep ggrep; do 4675 for ac_exec_ext in '' $ac_executable_extensions; do 4676 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4677 as_fn_executable_p "$ac_path_GREP" || continue 4678# Check for GNU ac_path_GREP and select it if it is found. 4679 # Check for GNU $ac_path_GREP 4680case `"$ac_path_GREP" --version 2>&1` in 4681*GNU*) 4682 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4683*) 4684 ac_count=0 4685 $as_echo_n 0123456789 >"conftest.in" 4686 while : 4687 do 4688 cat "conftest.in" "conftest.in" >"conftest.tmp" 4689 mv "conftest.tmp" "conftest.in" 4690 cp "conftest.in" "conftest.nl" 4691 $as_echo 'GREP' >> "conftest.nl" 4692 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4694 as_fn_arith $ac_count + 1 && ac_count=$as_val 4695 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4696 # Best one so far, save it but keep looking for a better one 4697 ac_cv_path_GREP="$ac_path_GREP" 4698 ac_path_GREP_max=$ac_count 4699 fi 4700 # 10*(2^10) chars as input seems more than enough 4701 test $ac_count -gt 10 && break 4702 done 4703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4704esac 4705 4706 $ac_path_GREP_found && break 3 4707 done 4708 done 4709 done 4710IFS=$as_save_IFS 4711 if test -z "$ac_cv_path_GREP"; then 4712 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4713 fi 4714else 4715 ac_cv_path_GREP=$GREP 4716fi 4717 4718fi 4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4720$as_echo "$ac_cv_path_GREP" >&6; } 4721 GREP="$ac_cv_path_GREP" 4722 4723 4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4725$as_echo_n "checking for egrep... " >&6; } 4726if ${ac_cv_path_EGREP+:} false; then : 4727 $as_echo_n "(cached) " >&6 4728else 4729 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4730 then ac_cv_path_EGREP="$GREP -E" 4731 else 4732 if test -z "$EGREP"; then 4733 ac_path_EGREP_found=false 4734 # Loop through the user's path and test for each of PROGNAME-LIST 4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4736for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4737do 4738 IFS=$as_save_IFS 4739 test -z "$as_dir" && as_dir=. 4740 for ac_prog in egrep; do 4741 for ac_exec_ext in '' $ac_executable_extensions; do 4742 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4743 as_fn_executable_p "$ac_path_EGREP" || continue 4744# Check for GNU ac_path_EGREP and select it if it is found. 4745 # Check for GNU $ac_path_EGREP 4746case `"$ac_path_EGREP" --version 2>&1` in 4747*GNU*) 4748 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4749*) 4750 ac_count=0 4751 $as_echo_n 0123456789 >"conftest.in" 4752 while : 4753 do 4754 cat "conftest.in" "conftest.in" >"conftest.tmp" 4755 mv "conftest.tmp" "conftest.in" 4756 cp "conftest.in" "conftest.nl" 4757 $as_echo 'EGREP' >> "conftest.nl" 4758 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4760 as_fn_arith $ac_count + 1 && ac_count=$as_val 4761 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4762 # Best one so far, save it but keep looking for a better one 4763 ac_cv_path_EGREP="$ac_path_EGREP" 4764 ac_path_EGREP_max=$ac_count 4765 fi 4766 # 10*(2^10) chars as input seems more than enough 4767 test $ac_count -gt 10 && break 4768 done 4769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4770esac 4771 4772 $ac_path_EGREP_found && break 3 4773 done 4774 done 4775 done 4776IFS=$as_save_IFS 4777 if test -z "$ac_cv_path_EGREP"; then 4778 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4779 fi 4780else 4781 ac_cv_path_EGREP=$EGREP 4782fi 4783 4784 fi 4785fi 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4787$as_echo "$ac_cv_path_EGREP" >&6; } 4788 EGREP="$ac_cv_path_EGREP" 4789 4790 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4792$as_echo_n "checking for fgrep... " >&6; } 4793if ${ac_cv_path_FGREP+:} false; then : 4794 $as_echo_n "(cached) " >&6 4795else 4796 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4797 then ac_cv_path_FGREP="$GREP -F" 4798 else 4799 if test -z "$FGREP"; then 4800 ac_path_FGREP_found=false 4801 # Loop through the user's path and test for each of PROGNAME-LIST 4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4803for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4804do 4805 IFS=$as_save_IFS 4806 test -z "$as_dir" && as_dir=. 4807 for ac_prog in fgrep; do 4808 for ac_exec_ext in '' $ac_executable_extensions; do 4809 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4810 as_fn_executable_p "$ac_path_FGREP" || continue 4811# Check for GNU ac_path_FGREP and select it if it is found. 4812 # Check for GNU $ac_path_FGREP 4813case `"$ac_path_FGREP" --version 2>&1` in 4814*GNU*) 4815 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4816*) 4817 ac_count=0 4818 $as_echo_n 0123456789 >"conftest.in" 4819 while : 4820 do 4821 cat "conftest.in" "conftest.in" >"conftest.tmp" 4822 mv "conftest.tmp" "conftest.in" 4823 cp "conftest.in" "conftest.nl" 4824 $as_echo 'FGREP' >> "conftest.nl" 4825 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4827 as_fn_arith $ac_count + 1 && ac_count=$as_val 4828 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4829 # Best one so far, save it but keep looking for a better one 4830 ac_cv_path_FGREP="$ac_path_FGREP" 4831 ac_path_FGREP_max=$ac_count 4832 fi 4833 # 10*(2^10) chars as input seems more than enough 4834 test $ac_count -gt 10 && break 4835 done 4836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4837esac 4838 4839 $ac_path_FGREP_found && break 3 4840 done 4841 done 4842 done 4843IFS=$as_save_IFS 4844 if test -z "$ac_cv_path_FGREP"; then 4845 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4846 fi 4847else 4848 ac_cv_path_FGREP=$FGREP 4849fi 4850 4851 fi 4852fi 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4854$as_echo "$ac_cv_path_FGREP" >&6; } 4855 FGREP="$ac_cv_path_FGREP" 4856 4857 4858test -z "$GREP" && GREP=grep 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878# Check whether --with-gnu-ld was given. 4879if test "${with_gnu_ld+set}" = set; then : 4880 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4881else 4882 with_gnu_ld=no 4883fi 4884 4885ac_prog=ld 4886if test "$GCC" = yes; then 4887 # Check if gcc -print-prog-name=ld gives a path. 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4889$as_echo_n "checking for ld used by $CC... " >&6; } 4890 case $host in 4891 *-*-mingw*) 4892 # gcc leaves a trailing carriage return which upsets mingw 4893 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4894 *) 4895 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4896 esac 4897 case $ac_prog in 4898 # Accept absolute paths. 4899 [\\/]* | ?:[\\/]*) 4900 re_direlt='/[^/][^/]*/\.\./' 4901 # Canonicalize the pathname of ld 4902 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4903 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4904 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4905 done 4906 test -z "$LD" && LD="$ac_prog" 4907 ;; 4908 "") 4909 # If it fails, then pretend we aren't using GCC. 4910 ac_prog=ld 4911 ;; 4912 *) 4913 # If it is relative, then search for the first ld in PATH. 4914 with_gnu_ld=unknown 4915 ;; 4916 esac 4917elif test "$with_gnu_ld" = yes; then 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4919$as_echo_n "checking for GNU ld... " >&6; } 4920else 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4922$as_echo_n "checking for non-GNU ld... " >&6; } 4923fi 4924if ${lt_cv_path_LD+:} false; then : 4925 $as_echo_n "(cached) " >&6 4926else 4927 if test -z "$LD"; then 4928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4929 for ac_dir in $PATH; do 4930 IFS="$lt_save_ifs" 4931 test -z "$ac_dir" && ac_dir=. 4932 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4933 lt_cv_path_LD="$ac_dir/$ac_prog" 4934 # Check to see if the program is GNU ld. I'd rather use --version, 4935 # but apparently some variants of GNU ld only accept -v. 4936 # Break only if it was the GNU/non-GNU ld that we prefer. 4937 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4938 *GNU* | *'with BFD'*) 4939 test "$with_gnu_ld" != no && break 4940 ;; 4941 *) 4942 test "$with_gnu_ld" != yes && break 4943 ;; 4944 esac 4945 fi 4946 done 4947 IFS="$lt_save_ifs" 4948else 4949 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4950fi 4951fi 4952 4953LD="$lt_cv_path_LD" 4954if test -n "$LD"; then 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4956$as_echo "$LD" >&6; } 4957else 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4959$as_echo "no" >&6; } 4960fi 4961test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4963$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4964if ${lt_cv_prog_gnu_ld+:} false; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4968case `$LD -v 2>&1 </dev/null` in 4969*GNU* | *'with BFD'*) 4970 lt_cv_prog_gnu_ld=yes 4971 ;; 4972*) 4973 lt_cv_prog_gnu_ld=no 4974 ;; 4975esac 4976fi 4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4978$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4979with_gnu_ld=$lt_cv_prog_gnu_ld 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4990$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4991if ${lt_cv_path_NM+:} false; then : 4992 $as_echo_n "(cached) " >&6 4993else 4994 if test -n "$NM"; then 4995 # Let the user override the test. 4996 lt_cv_path_NM="$NM" 4997else 4998 lt_nm_to_check="${ac_tool_prefix}nm" 4999 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5000 lt_nm_to_check="$lt_nm_to_check nm" 5001 fi 5002 for lt_tmp_nm in $lt_nm_to_check; do 5003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5004 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5005 IFS="$lt_save_ifs" 5006 test -z "$ac_dir" && ac_dir=. 5007 tmp_nm="$ac_dir/$lt_tmp_nm" 5008 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5009 # Check to see if the nm accepts a BSD-compat flag. 5010 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5011 # nm: unknown option "B" ignored 5012 # Tru64's nm complains that /dev/null is an invalid object file 5013 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5014 */dev/null* | *'Invalid file or object type'*) 5015 lt_cv_path_NM="$tmp_nm -B" 5016 break 5017 ;; 5018 *) 5019 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5020 */dev/null*) 5021 lt_cv_path_NM="$tmp_nm -p" 5022 break 5023 ;; 5024 *) 5025 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5026 continue # so that we can try to find one that supports BSD flags 5027 ;; 5028 esac 5029 ;; 5030 esac 5031 fi 5032 done 5033 IFS="$lt_save_ifs" 5034 done 5035 : ${lt_cv_path_NM=no} 5036fi 5037fi 5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5039$as_echo "$lt_cv_path_NM" >&6; } 5040if test "$lt_cv_path_NM" != "no"; then 5041 NM="$lt_cv_path_NM" 5042else 5043 # Didn't find any BSD compatible name lister, look for dumpbin. 5044 if test -n "$DUMPBIN"; then : 5045 # Let the user override the test. 5046 else 5047 if test -n "$ac_tool_prefix"; then 5048 for ac_prog in dumpbin "link -dump" 5049 do 5050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5051set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5053$as_echo_n "checking for $ac_word... " >&6; } 5054if ${ac_cv_prog_DUMPBIN+:} false; then : 5055 $as_echo_n "(cached) " >&6 5056else 5057 if test -n "$DUMPBIN"; then 5058 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5059else 5060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5061for as_dir in $PATH 5062do 5063 IFS=$as_save_IFS 5064 test -z "$as_dir" && as_dir=. 5065 for ac_exec_ext in '' $ac_executable_extensions; do 5066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5067 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5069 break 2 5070 fi 5071done 5072 done 5073IFS=$as_save_IFS 5074 5075fi 5076fi 5077DUMPBIN=$ac_cv_prog_DUMPBIN 5078if test -n "$DUMPBIN"; then 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5080$as_echo "$DUMPBIN" >&6; } 5081else 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5083$as_echo "no" >&6; } 5084fi 5085 5086 5087 test -n "$DUMPBIN" && break 5088 done 5089fi 5090if test -z "$DUMPBIN"; then 5091 ac_ct_DUMPBIN=$DUMPBIN 5092 for ac_prog in dumpbin "link -dump" 5093do 5094 # Extract the first word of "$ac_prog", so it can be a program name with args. 5095set dummy $ac_prog; ac_word=$2 5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5097$as_echo_n "checking for $ac_word... " >&6; } 5098if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5099 $as_echo_n "(cached) " >&6 5100else 5101 if test -n "$ac_ct_DUMPBIN"; then 5102 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5103else 5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5105for as_dir in $PATH 5106do 5107 IFS=$as_save_IFS 5108 test -z "$as_dir" && as_dir=. 5109 for ac_exec_ext in '' $ac_executable_extensions; do 5110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5111 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5113 break 2 5114 fi 5115done 5116 done 5117IFS=$as_save_IFS 5118 5119fi 5120fi 5121ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5122if test -n "$ac_ct_DUMPBIN"; then 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5124$as_echo "$ac_ct_DUMPBIN" >&6; } 5125else 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5127$as_echo "no" >&6; } 5128fi 5129 5130 5131 test -n "$ac_ct_DUMPBIN" && break 5132done 5133 5134 if test "x$ac_ct_DUMPBIN" = x; then 5135 DUMPBIN=":" 5136 else 5137 case $cross_compiling:$ac_tool_warned in 5138yes:) 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5141ac_tool_warned=yes ;; 5142esac 5143 DUMPBIN=$ac_ct_DUMPBIN 5144 fi 5145fi 5146 5147 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5148 *COFF*) 5149 DUMPBIN="$DUMPBIN -symbols" 5150 ;; 5151 *) 5152 DUMPBIN=: 5153 ;; 5154 esac 5155 fi 5156 5157 if test "$DUMPBIN" != ":"; then 5158 NM="$DUMPBIN" 5159 fi 5160fi 5161test -z "$NM" && NM=nm 5162 5163 5164 5165 5166 5167 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5169$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5170if ${lt_cv_nm_interface+:} false; then : 5171 $as_echo_n "(cached) " >&6 5172else 5173 lt_cv_nm_interface="BSD nm" 5174 echo "int some_variable = 0;" > conftest.$ac_ext 5175 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5176 (eval "$ac_compile" 2>conftest.err) 5177 cat conftest.err >&5 5178 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5179 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5180 cat conftest.err >&5 5181 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5182 cat conftest.out >&5 5183 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5184 lt_cv_nm_interface="MS dumpbin" 5185 fi 5186 rm -f conftest* 5187fi 5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5189$as_echo "$lt_cv_nm_interface" >&6; } 5190 5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5192$as_echo_n "checking whether ln -s works... " >&6; } 5193LN_S=$as_ln_s 5194if test "$LN_S" = "ln -s"; then 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5196$as_echo "yes" >&6; } 5197else 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5199$as_echo "no, using $LN_S" >&6; } 5200fi 5201 5202# find the maximum length of command line arguments 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5204$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5205if ${lt_cv_sys_max_cmd_len+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 i=0 5209 teststring="ABCD" 5210 5211 case $build_os in 5212 msdosdjgpp*) 5213 # On DJGPP, this test can blow up pretty badly due to problems in libc 5214 # (any single argument exceeding 2000 bytes causes a buffer overrun 5215 # during glob expansion). Even if it were fixed, the result of this 5216 # check would be larger than it should be. 5217 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5218 ;; 5219 5220 gnu*) 5221 # Under GNU Hurd, this test is not required because there is 5222 # no limit to the length of command line arguments. 5223 # Libtool will interpret -1 as no limit whatsoever 5224 lt_cv_sys_max_cmd_len=-1; 5225 ;; 5226 5227 cygwin* | mingw* | cegcc*) 5228 # On Win9x/ME, this test blows up -- it succeeds, but takes 5229 # about 5 minutes as the teststring grows exponentially. 5230 # Worse, since 9x/ME are not pre-emptively multitasking, 5231 # you end up with a "frozen" computer, even though with patience 5232 # the test eventually succeeds (with a max line length of 256k). 5233 # Instead, let's just punt: use the minimum linelength reported by 5234 # all of the supported platforms: 8192 (on NT/2K/XP). 5235 lt_cv_sys_max_cmd_len=8192; 5236 ;; 5237 5238 mint*) 5239 # On MiNT this can take a long time and run out of memory. 5240 lt_cv_sys_max_cmd_len=8192; 5241 ;; 5242 5243 amigaos*) 5244 # On AmigaOS with pdksh, this test takes hours, literally. 5245 # So we just punt and use a minimum line length of 8192. 5246 lt_cv_sys_max_cmd_len=8192; 5247 ;; 5248 5249 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5250 # This has been around since 386BSD, at least. Likely further. 5251 if test -x /sbin/sysctl; then 5252 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5253 elif test -x /usr/sbin/sysctl; then 5254 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5255 else 5256 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5257 fi 5258 # And add a safety zone 5259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5261 ;; 5262 5263 interix*) 5264 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5265 lt_cv_sys_max_cmd_len=196608 5266 ;; 5267 5268 osf*) 5269 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5270 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5271 # nice to cause kernel panics so lets avoid the loop below. 5272 # First set a reasonable default. 5273 lt_cv_sys_max_cmd_len=16384 5274 # 5275 if test -x /sbin/sysconfig; then 5276 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5277 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5278 esac 5279 fi 5280 ;; 5281 sco3.2v5*) 5282 lt_cv_sys_max_cmd_len=102400 5283 ;; 5284 sysv5* | sco5v6* | sysv4.2uw2*) 5285 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5286 if test -n "$kargmax"; then 5287 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5288 else 5289 lt_cv_sys_max_cmd_len=32768 5290 fi 5291 ;; 5292 *) 5293 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5294 if test -n "$lt_cv_sys_max_cmd_len"; then 5295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5297 else 5298 # Make teststring a little bigger before we do anything with it. 5299 # a 1K string should be a reasonable start. 5300 for i in 1 2 3 4 5 6 7 8 ; do 5301 teststring=$teststring$teststring 5302 done 5303 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5304 # If test is not a shell built-in, we'll probably end up computing a 5305 # maximum length that is only half of the actual maximum length, but 5306 # we can't tell. 5307 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5308 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5309 test $i != 17 # 1/2 MB should be enough 5310 do 5311 i=`expr $i + 1` 5312 teststring=$teststring$teststring 5313 done 5314 # Only check the string length outside the loop. 5315 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5316 teststring= 5317 # Add a significant safety factor because C++ compilers can tack on 5318 # massive amounts of additional arguments before passing them to the 5319 # linker. It appears as though 1/2 is a usable value. 5320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5321 fi 5322 ;; 5323 esac 5324 5325fi 5326 5327if test -n $lt_cv_sys_max_cmd_len ; then 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5329$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5330else 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5332$as_echo "none" >&6; } 5333fi 5334max_cmd_len=$lt_cv_sys_max_cmd_len 5335 5336 5337 5338 5339 5340 5341: ${CP="cp -f"} 5342: ${MV="mv -f"} 5343: ${RM="rm -f"} 5344 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5346$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5347# Try some XSI features 5348xsi_shell=no 5349( _lt_dummy="a/b/c" 5350 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5351 = c,a/b,b/c, \ 5352 && eval 'test $(( 1 + 1 )) -eq 2 \ 5353 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5354 && xsi_shell=yes 5355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5356$as_echo "$xsi_shell" >&6; } 5357 5358 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5360$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5361lt_shell_append=no 5362( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5363 >/dev/null 2>&1 \ 5364 && lt_shell_append=yes 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5366$as_echo "$lt_shell_append" >&6; } 5367 5368 5369if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5370 lt_unset=unset 5371else 5372 lt_unset=false 5373fi 5374 5375 5376 5377 5378 5379# test EBCDIC or ASCII 5380case `echo X|tr X '\101'` in 5381 A) # ASCII based system 5382 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5383 lt_SP2NL='tr \040 \012' 5384 lt_NL2SP='tr \015\012 \040\040' 5385 ;; 5386 *) # EBCDIC based system 5387 lt_SP2NL='tr \100 \n' 5388 lt_NL2SP='tr \r\n \100\100' 5389 ;; 5390esac 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5401$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5402if ${lt_cv_to_host_file_cmd+:} false; then : 5403 $as_echo_n "(cached) " >&6 5404else 5405 case $host in 5406 *-*-mingw* ) 5407 case $build in 5408 *-*-mingw* ) # actually msys 5409 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5410 ;; 5411 *-*-cygwin* ) 5412 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5413 ;; 5414 * ) # otherwise, assume *nix 5415 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5416 ;; 5417 esac 5418 ;; 5419 *-*-cygwin* ) 5420 case $build in 5421 *-*-mingw* ) # actually msys 5422 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5423 ;; 5424 *-*-cygwin* ) 5425 lt_cv_to_host_file_cmd=func_convert_file_noop 5426 ;; 5427 * ) # otherwise, assume *nix 5428 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5429 ;; 5430 esac 5431 ;; 5432 * ) # unhandled hosts (and "normal" native builds) 5433 lt_cv_to_host_file_cmd=func_convert_file_noop 5434 ;; 5435esac 5436 5437fi 5438 5439to_host_file_cmd=$lt_cv_to_host_file_cmd 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5441$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5442 5443 5444 5445 5446 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5448$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5449if ${lt_cv_to_tool_file_cmd+:} false; then : 5450 $as_echo_n "(cached) " >&6 5451else 5452 #assume ordinary cross tools, or native build. 5453lt_cv_to_tool_file_cmd=func_convert_file_noop 5454case $host in 5455 *-*-mingw* ) 5456 case $build in 5457 *-*-mingw* ) # actually msys 5458 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5459 ;; 5460 esac 5461 ;; 5462esac 5463 5464fi 5465 5466to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5468$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5469 5470 5471 5472 5473 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5475$as_echo_n "checking for $LD option to reload object files... " >&6; } 5476if ${lt_cv_ld_reload_flag+:} false; then : 5477 $as_echo_n "(cached) " >&6 5478else 5479 lt_cv_ld_reload_flag='-r' 5480fi 5481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5482$as_echo "$lt_cv_ld_reload_flag" >&6; } 5483reload_flag=$lt_cv_ld_reload_flag 5484case $reload_flag in 5485"" | " "*) ;; 5486*) reload_flag=" $reload_flag" ;; 5487esac 5488reload_cmds='$LD$reload_flag -o $output$reload_objs' 5489case $host_os in 5490 cygwin* | mingw* | pw32* | cegcc*) 5491 if test "$GCC" != yes; then 5492 reload_cmds=false 5493 fi 5494 ;; 5495 darwin*) 5496 if test "$GCC" = yes; then 5497 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5498 else 5499 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5500 fi 5501 ;; 5502esac 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512if test -n "$ac_tool_prefix"; then 5513 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5514set dummy ${ac_tool_prefix}objdump; ac_word=$2 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5516$as_echo_n "checking for $ac_word... " >&6; } 5517if ${ac_cv_prog_OBJDUMP+:} false; then : 5518 $as_echo_n "(cached) " >&6 5519else 5520 if test -n "$OBJDUMP"; then 5521 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5522else 5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5524for as_dir in $PATH 5525do 5526 IFS=$as_save_IFS 5527 test -z "$as_dir" && as_dir=. 5528 for ac_exec_ext in '' $ac_executable_extensions; do 5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5530 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5532 break 2 5533 fi 5534done 5535 done 5536IFS=$as_save_IFS 5537 5538fi 5539fi 5540OBJDUMP=$ac_cv_prog_OBJDUMP 5541if test -n "$OBJDUMP"; then 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5543$as_echo "$OBJDUMP" >&6; } 5544else 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5546$as_echo "no" >&6; } 5547fi 5548 5549 5550fi 5551if test -z "$ac_cv_prog_OBJDUMP"; then 5552 ac_ct_OBJDUMP=$OBJDUMP 5553 # Extract the first word of "objdump", so it can be a program name with args. 5554set dummy objdump; ac_word=$2 5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5556$as_echo_n "checking for $ac_word... " >&6; } 5557if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5558 $as_echo_n "(cached) " >&6 5559else 5560 if test -n "$ac_ct_OBJDUMP"; then 5561 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5562else 5563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5564for as_dir in $PATH 5565do 5566 IFS=$as_save_IFS 5567 test -z "$as_dir" && as_dir=. 5568 for ac_exec_ext in '' $ac_executable_extensions; do 5569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5570 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5572 break 2 5573 fi 5574done 5575 done 5576IFS=$as_save_IFS 5577 5578fi 5579fi 5580ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5581if test -n "$ac_ct_OBJDUMP"; then 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5583$as_echo "$ac_ct_OBJDUMP" >&6; } 5584else 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5586$as_echo "no" >&6; } 5587fi 5588 5589 if test "x$ac_ct_OBJDUMP" = x; then 5590 OBJDUMP="false" 5591 else 5592 case $cross_compiling:$ac_tool_warned in 5593yes:) 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5596ac_tool_warned=yes ;; 5597esac 5598 OBJDUMP=$ac_ct_OBJDUMP 5599 fi 5600else 5601 OBJDUMP="$ac_cv_prog_OBJDUMP" 5602fi 5603 5604test -z "$OBJDUMP" && OBJDUMP=objdump 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5615$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5616if ${lt_cv_deplibs_check_method+:} false; then : 5617 $as_echo_n "(cached) " >&6 5618else 5619 lt_cv_file_magic_cmd='$MAGIC_CMD' 5620lt_cv_file_magic_test_file= 5621lt_cv_deplibs_check_method='unknown' 5622# Need to set the preceding variable on all platforms that support 5623# interlibrary dependencies. 5624# 'none' -- dependencies not supported. 5625# `unknown' -- same as none, but documents that we really don't know. 5626# 'pass_all' -- all dependencies passed with no checks. 5627# 'test_compile' -- check by making test program. 5628# 'file_magic [[regex]]' -- check by looking for files in library path 5629# which responds to the $file_magic_cmd with a given extended regex. 5630# If you have `file' or equivalent on your system and you're not sure 5631# whether `pass_all' will *always* work, you probably want this one. 5632 5633case $host_os in 5634aix[4-9]*) 5635 lt_cv_deplibs_check_method=pass_all 5636 ;; 5637 5638beos*) 5639 lt_cv_deplibs_check_method=pass_all 5640 ;; 5641 5642bsdi[45]*) 5643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5644 lt_cv_file_magic_cmd='/usr/bin/file -L' 5645 lt_cv_file_magic_test_file=/shlib/libc.so 5646 ;; 5647 5648cygwin*) 5649 # func_win32_libid is a shell function defined in ltmain.sh 5650 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5651 lt_cv_file_magic_cmd='func_win32_libid' 5652 ;; 5653 5654mingw* | pw32*) 5655 # Base MSYS/MinGW do not provide the 'file' command needed by 5656 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5657 # unless we find 'file', for example because we are cross-compiling. 5658 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5659 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5660 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5661 lt_cv_file_magic_cmd='func_win32_libid' 5662 else 5663 # Keep this pattern in sync with the one in func_win32_libid. 5664 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5665 lt_cv_file_magic_cmd='$OBJDUMP -f' 5666 fi 5667 ;; 5668 5669cegcc*) 5670 # use the weaker test based on 'objdump'. See mingw*. 5671 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5672 lt_cv_file_magic_cmd='$OBJDUMP -f' 5673 ;; 5674 5675darwin* | rhapsody*) 5676 lt_cv_deplibs_check_method=pass_all 5677 ;; 5678 5679freebsd* | dragonfly*) 5680 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5681 case $host_cpu in 5682 i*86 ) 5683 # Not sure whether the presence of OpenBSD here was a mistake. 5684 # Let's accept both of them until this is cleared up. 5685 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5686 lt_cv_file_magic_cmd=/usr/bin/file 5687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5688 ;; 5689 esac 5690 else 5691 lt_cv_deplibs_check_method=pass_all 5692 fi 5693 ;; 5694 5695gnu*) 5696 lt_cv_deplibs_check_method=pass_all 5697 ;; 5698 5699haiku*) 5700 lt_cv_deplibs_check_method=pass_all 5701 ;; 5702 5703hpux10.20* | hpux11*) 5704 lt_cv_file_magic_cmd=/usr/bin/file 5705 case $host_cpu in 5706 ia64*) 5707 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5708 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5709 ;; 5710 hppa*64*) 5711 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]' 5712 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5713 ;; 5714 *) 5715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5716 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5717 ;; 5718 esac 5719 ;; 5720 5721interix[3-9]*) 5722 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5724 ;; 5725 5726irix5* | irix6* | nonstopux*) 5727 case $LD in 5728 *-32|*"-32 ") libmagic=32-bit;; 5729 *-n32|*"-n32 ") libmagic=N32;; 5730 *-64|*"-64 ") libmagic=64-bit;; 5731 *) libmagic=never-match;; 5732 esac 5733 lt_cv_deplibs_check_method=pass_all 5734 ;; 5735 5736# This must be Linux ELF. 5737linux* | k*bsd*-gnu | kopensolaris*-gnu) 5738 lt_cv_deplibs_check_method=pass_all 5739 ;; 5740 5741netbsd*) 5742 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5744 else 5745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5746 fi 5747 ;; 5748 5749newos6*) 5750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5751 lt_cv_file_magic_cmd=/usr/bin/file 5752 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5753 ;; 5754 5755*nto* | *qnx*) 5756 lt_cv_deplibs_check_method=pass_all 5757 ;; 5758 5759openbsd*) 5760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5762 else 5763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5764 fi 5765 ;; 5766 5767osf3* | osf4* | osf5*) 5768 lt_cv_deplibs_check_method=pass_all 5769 ;; 5770 5771rdos*) 5772 lt_cv_deplibs_check_method=pass_all 5773 ;; 5774 5775solaris*) 5776 lt_cv_deplibs_check_method=pass_all 5777 ;; 5778 5779sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5780 lt_cv_deplibs_check_method=pass_all 5781 ;; 5782 5783sysv4 | sysv4.3*) 5784 case $host_vendor in 5785 motorola) 5786 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]' 5787 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5788 ;; 5789 ncr) 5790 lt_cv_deplibs_check_method=pass_all 5791 ;; 5792 sequent) 5793 lt_cv_file_magic_cmd='/bin/file' 5794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5795 ;; 5796 sni) 5797 lt_cv_file_magic_cmd='/bin/file' 5798 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5799 lt_cv_file_magic_test_file=/lib/libc.so 5800 ;; 5801 siemens) 5802 lt_cv_deplibs_check_method=pass_all 5803 ;; 5804 pc) 5805 lt_cv_deplibs_check_method=pass_all 5806 ;; 5807 esac 5808 ;; 5809 5810tpf*) 5811 lt_cv_deplibs_check_method=pass_all 5812 ;; 5813esac 5814 5815fi 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5817$as_echo "$lt_cv_deplibs_check_method" >&6; } 5818 5819file_magic_glob= 5820want_nocaseglob=no 5821if test "$build" = "$host"; then 5822 case $host_os in 5823 mingw* | pw32*) 5824 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5825 want_nocaseglob=yes 5826 else 5827 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5828 fi 5829 ;; 5830 esac 5831fi 5832 5833file_magic_cmd=$lt_cv_file_magic_cmd 5834deplibs_check_method=$lt_cv_deplibs_check_method 5835test -z "$deplibs_check_method" && deplibs_check_method=unknown 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858if test -n "$ac_tool_prefix"; then 5859 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5860set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5862$as_echo_n "checking for $ac_word... " >&6; } 5863if ${ac_cv_prog_DLLTOOL+:} false; then : 5864 $as_echo_n "(cached) " >&6 5865else 5866 if test -n "$DLLTOOL"; then 5867 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5868else 5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5870for as_dir in $PATH 5871do 5872 IFS=$as_save_IFS 5873 test -z "$as_dir" && as_dir=. 5874 for ac_exec_ext in '' $ac_executable_extensions; do 5875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5876 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5878 break 2 5879 fi 5880done 5881 done 5882IFS=$as_save_IFS 5883 5884fi 5885fi 5886DLLTOOL=$ac_cv_prog_DLLTOOL 5887if test -n "$DLLTOOL"; then 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5889$as_echo "$DLLTOOL" >&6; } 5890else 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5892$as_echo "no" >&6; } 5893fi 5894 5895 5896fi 5897if test -z "$ac_cv_prog_DLLTOOL"; then 5898 ac_ct_DLLTOOL=$DLLTOOL 5899 # Extract the first word of "dlltool", so it can be a program name with args. 5900set dummy dlltool; ac_word=$2 5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5902$as_echo_n "checking for $ac_word... " >&6; } 5903if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5904 $as_echo_n "(cached) " >&6 5905else 5906 if test -n "$ac_ct_DLLTOOL"; then 5907 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5908else 5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5910for as_dir in $PATH 5911do 5912 IFS=$as_save_IFS 5913 test -z "$as_dir" && as_dir=. 5914 for ac_exec_ext in '' $ac_executable_extensions; do 5915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5916 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5918 break 2 5919 fi 5920done 5921 done 5922IFS=$as_save_IFS 5923 5924fi 5925fi 5926ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5927if test -n "$ac_ct_DLLTOOL"; then 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5929$as_echo "$ac_ct_DLLTOOL" >&6; } 5930else 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5932$as_echo "no" >&6; } 5933fi 5934 5935 if test "x$ac_ct_DLLTOOL" = x; then 5936 DLLTOOL="false" 5937 else 5938 case $cross_compiling:$ac_tool_warned in 5939yes:) 5940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5942ac_tool_warned=yes ;; 5943esac 5944 DLLTOOL=$ac_ct_DLLTOOL 5945 fi 5946else 5947 DLLTOOL="$ac_cv_prog_DLLTOOL" 5948fi 5949 5950test -z "$DLLTOOL" && DLLTOOL=dlltool 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5962$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5963if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5964 $as_echo_n "(cached) " >&6 5965else 5966 lt_cv_sharedlib_from_linklib_cmd='unknown' 5967 5968case $host_os in 5969cygwin* | mingw* | pw32* | cegcc*) 5970 # two different shell functions defined in ltmain.sh 5971 # decide which to use based on capabilities of $DLLTOOL 5972 case `$DLLTOOL --help 2>&1` in 5973 *--identify-strict*) 5974 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5975 ;; 5976 *) 5977 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5978 ;; 5979 esac 5980 ;; 5981*) 5982 # fallback: assume linklib IS sharedlib 5983 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5984 ;; 5985esac 5986 5987fi 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5989$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5990sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5991test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5992 5993 5994 5995 5996 5997 5998 5999 6000if test -n "$ac_tool_prefix"; then 6001 for ac_prog in ar 6002 do 6003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6004set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6006$as_echo_n "checking for $ac_word... " >&6; } 6007if ${ac_cv_prog_AR+:} false; then : 6008 $as_echo_n "(cached) " >&6 6009else 6010 if test -n "$AR"; then 6011 ac_cv_prog_AR="$AR" # Let the user override the test. 6012else 6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6014for as_dir in $PATH 6015do 6016 IFS=$as_save_IFS 6017 test -z "$as_dir" && as_dir=. 6018 for ac_exec_ext in '' $ac_executable_extensions; do 6019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6020 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6022 break 2 6023 fi 6024done 6025 done 6026IFS=$as_save_IFS 6027 6028fi 6029fi 6030AR=$ac_cv_prog_AR 6031if test -n "$AR"; then 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6033$as_echo "$AR" >&6; } 6034else 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6036$as_echo "no" >&6; } 6037fi 6038 6039 6040 test -n "$AR" && break 6041 done 6042fi 6043if test -z "$AR"; then 6044 ac_ct_AR=$AR 6045 for ac_prog in ar 6046do 6047 # Extract the first word of "$ac_prog", so it can be a program name with args. 6048set dummy $ac_prog; ac_word=$2 6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6050$as_echo_n "checking for $ac_word... " >&6; } 6051if ${ac_cv_prog_ac_ct_AR+:} false; then : 6052 $as_echo_n "(cached) " >&6 6053else 6054 if test -n "$ac_ct_AR"; then 6055 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6056else 6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6058for as_dir in $PATH 6059do 6060 IFS=$as_save_IFS 6061 test -z "$as_dir" && as_dir=. 6062 for ac_exec_ext in '' $ac_executable_extensions; do 6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6064 ac_cv_prog_ac_ct_AR="$ac_prog" 6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6066 break 2 6067 fi 6068done 6069 done 6070IFS=$as_save_IFS 6071 6072fi 6073fi 6074ac_ct_AR=$ac_cv_prog_ac_ct_AR 6075if test -n "$ac_ct_AR"; then 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6077$as_echo "$ac_ct_AR" >&6; } 6078else 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6080$as_echo "no" >&6; } 6081fi 6082 6083 6084 test -n "$ac_ct_AR" && break 6085done 6086 6087 if test "x$ac_ct_AR" = x; then 6088 AR="false" 6089 else 6090 case $cross_compiling:$ac_tool_warned in 6091yes:) 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6094ac_tool_warned=yes ;; 6095esac 6096 AR=$ac_ct_AR 6097 fi 6098fi 6099 6100: ${AR=ar} 6101: ${AR_FLAGS=cru} 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6114$as_echo_n "checking for archiver @FILE support... " >&6; } 6115if ${lt_cv_ar_at_file+:} false; then : 6116 $as_echo_n "(cached) " >&6 6117else 6118 lt_cv_ar_at_file=no 6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6120/* end confdefs.h. */ 6121 6122int 6123main () 6124{ 6125 6126 ; 6127 return 0; 6128} 6129_ACEOF 6130if ac_fn_c_try_compile "$LINENO"; then : 6131 echo conftest.$ac_objext > conftest.lst 6132 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6134 (eval $lt_ar_try) 2>&5 6135 ac_status=$? 6136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6137 test $ac_status = 0; } 6138 if test "$ac_status" -eq 0; then 6139 # Ensure the archiver fails upon bogus file names. 6140 rm -f conftest.$ac_objext libconftest.a 6141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6142 (eval $lt_ar_try) 2>&5 6143 ac_status=$? 6144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6145 test $ac_status = 0; } 6146 if test "$ac_status" -ne 0; then 6147 lt_cv_ar_at_file=@ 6148 fi 6149 fi 6150 rm -f conftest.* libconftest.a 6151 6152fi 6153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6154 6155fi 6156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6157$as_echo "$lt_cv_ar_at_file" >&6; } 6158 6159if test "x$lt_cv_ar_at_file" = xno; then 6160 archiver_list_spec= 6161else 6162 archiver_list_spec=$lt_cv_ar_at_file 6163fi 6164 6165 6166 6167 6168 6169 6170 6171if test -n "$ac_tool_prefix"; then 6172 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6173set dummy ${ac_tool_prefix}strip; ac_word=$2 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6175$as_echo_n "checking for $ac_word... " >&6; } 6176if ${ac_cv_prog_STRIP+:} false; then : 6177 $as_echo_n "(cached) " >&6 6178else 6179 if test -n "$STRIP"; then 6180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6181else 6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6183for as_dir in $PATH 6184do 6185 IFS=$as_save_IFS 6186 test -z "$as_dir" && as_dir=. 6187 for ac_exec_ext in '' $ac_executable_extensions; do 6188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6189 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6191 break 2 6192 fi 6193done 6194 done 6195IFS=$as_save_IFS 6196 6197fi 6198fi 6199STRIP=$ac_cv_prog_STRIP 6200if test -n "$STRIP"; then 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6202$as_echo "$STRIP" >&6; } 6203else 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6205$as_echo "no" >&6; } 6206fi 6207 6208 6209fi 6210if test -z "$ac_cv_prog_STRIP"; then 6211 ac_ct_STRIP=$STRIP 6212 # Extract the first word of "strip", so it can be a program name with args. 6213set dummy strip; ac_word=$2 6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6215$as_echo_n "checking for $ac_word... " >&6; } 6216if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6217 $as_echo_n "(cached) " >&6 6218else 6219 if test -n "$ac_ct_STRIP"; then 6220 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6221else 6222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6223for as_dir in $PATH 6224do 6225 IFS=$as_save_IFS 6226 test -z "$as_dir" && as_dir=. 6227 for ac_exec_ext in '' $ac_executable_extensions; do 6228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6229 ac_cv_prog_ac_ct_STRIP="strip" 6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6231 break 2 6232 fi 6233done 6234 done 6235IFS=$as_save_IFS 6236 6237fi 6238fi 6239ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6240if test -n "$ac_ct_STRIP"; then 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6242$as_echo "$ac_ct_STRIP" >&6; } 6243else 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6245$as_echo "no" >&6; } 6246fi 6247 6248 if test "x$ac_ct_STRIP" = x; then 6249 STRIP=":" 6250 else 6251 case $cross_compiling:$ac_tool_warned in 6252yes:) 6253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6255ac_tool_warned=yes ;; 6256esac 6257 STRIP=$ac_ct_STRIP 6258 fi 6259else 6260 STRIP="$ac_cv_prog_STRIP" 6261fi 6262 6263test -z "$STRIP" && STRIP=: 6264 6265 6266 6267 6268 6269 6270if test -n "$ac_tool_prefix"; then 6271 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6272set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6274$as_echo_n "checking for $ac_word... " >&6; } 6275if ${ac_cv_prog_RANLIB+:} false; then : 6276 $as_echo_n "(cached) " >&6 6277else 6278 if test -n "$RANLIB"; then 6279 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6280else 6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6282for as_dir in $PATH 6283do 6284 IFS=$as_save_IFS 6285 test -z "$as_dir" && as_dir=. 6286 for ac_exec_ext in '' $ac_executable_extensions; do 6287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6288 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6290 break 2 6291 fi 6292done 6293 done 6294IFS=$as_save_IFS 6295 6296fi 6297fi 6298RANLIB=$ac_cv_prog_RANLIB 6299if test -n "$RANLIB"; then 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6301$as_echo "$RANLIB" >&6; } 6302else 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6304$as_echo "no" >&6; } 6305fi 6306 6307 6308fi 6309if test -z "$ac_cv_prog_RANLIB"; then 6310 ac_ct_RANLIB=$RANLIB 6311 # Extract the first word of "ranlib", so it can be a program name with args. 6312set dummy ranlib; ac_word=$2 6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6314$as_echo_n "checking for $ac_word... " >&6; } 6315if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6316 $as_echo_n "(cached) " >&6 6317else 6318 if test -n "$ac_ct_RANLIB"; then 6319 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6320else 6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6322for as_dir in $PATH 6323do 6324 IFS=$as_save_IFS 6325 test -z "$as_dir" && as_dir=. 6326 for ac_exec_ext in '' $ac_executable_extensions; do 6327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6328 ac_cv_prog_ac_ct_RANLIB="ranlib" 6329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6330 break 2 6331 fi 6332done 6333 done 6334IFS=$as_save_IFS 6335 6336fi 6337fi 6338ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6339if test -n "$ac_ct_RANLIB"; then 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6341$as_echo "$ac_ct_RANLIB" >&6; } 6342else 6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6344$as_echo "no" >&6; } 6345fi 6346 6347 if test "x$ac_ct_RANLIB" = x; then 6348 RANLIB=":" 6349 else 6350 case $cross_compiling:$ac_tool_warned in 6351yes:) 6352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6354ac_tool_warned=yes ;; 6355esac 6356 RANLIB=$ac_ct_RANLIB 6357 fi 6358else 6359 RANLIB="$ac_cv_prog_RANLIB" 6360fi 6361 6362test -z "$RANLIB" && RANLIB=: 6363 6364 6365 6366 6367 6368 6369# Determine commands to create old-style static archives. 6370old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6371old_postinstall_cmds='chmod 644 $oldlib' 6372old_postuninstall_cmds= 6373 6374if test -n "$RANLIB"; then 6375 case $host_os in 6376 openbsd*) 6377 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6378 ;; 6379 *) 6380 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6381 ;; 6382 esac 6383 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6384fi 6385 6386case $host_os in 6387 darwin*) 6388 lock_old_archive_extraction=yes ;; 6389 *) 6390 lock_old_archive_extraction=no ;; 6391esac 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431# If no C compiler was specified, use CC. 6432LTCC=${LTCC-"$CC"} 6433 6434# If no C compiler flags were specified, use CFLAGS. 6435LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6436 6437# Allow CC to be a program name with arguments. 6438compiler=$CC 6439 6440 6441# Check for command to grab the raw symbol name followed by C symbol from nm. 6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6443$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6444if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6445 $as_echo_n "(cached) " >&6 6446else 6447 6448# These are sane defaults that work on at least a few old systems. 6449# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6450 6451# Character class describing NM global symbol codes. 6452symcode='[BCDEGRST]' 6453 6454# Regexp to match symbols that can be accessed directly from C. 6455sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6456 6457# Define system-specific variables. 6458case $host_os in 6459aix*) 6460 symcode='[BCDT]' 6461 ;; 6462cygwin* | mingw* | pw32* | cegcc*) 6463 symcode='[ABCDGISTW]' 6464 ;; 6465hpux*) 6466 if test "$host_cpu" = ia64; then 6467 symcode='[ABCDEGRST]' 6468 fi 6469 ;; 6470irix* | nonstopux*) 6471 symcode='[BCDEGRST]' 6472 ;; 6473osf*) 6474 symcode='[BCDEGQRST]' 6475 ;; 6476solaris*) 6477 symcode='[BDRT]' 6478 ;; 6479sco3.2v5*) 6480 symcode='[DT]' 6481 ;; 6482sysv4.2uw2*) 6483 symcode='[DT]' 6484 ;; 6485sysv5* | sco5v6* | unixware* | OpenUNIX*) 6486 symcode='[ABDT]' 6487 ;; 6488sysv4) 6489 symcode='[DFNSTU]' 6490 ;; 6491esac 6492 6493# If we're using GNU nm, then use its standard symbol codes. 6494case `$NM -V 2>&1` in 6495*GNU* | *'with BFD'*) 6496 symcode='[ABCDGIRSTW]' ;; 6497esac 6498 6499# Transform an extracted symbol line into a proper C declaration. 6500# Some systems (esp. on ia64) link data and code symbols differently, 6501# so use this general approach. 6502lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6503 6504# Transform an extracted symbol line into symbol name and symbol address 6505lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6506lt_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'" 6507 6508# Handle CRLF in mingw tool chain 6509opt_cr= 6510case $build_os in 6511mingw*) 6512 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6513 ;; 6514esac 6515 6516# Try without a prefix underscore, then with it. 6517for ac_symprfx in "" "_"; do 6518 6519 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6520 symxfrm="\\1 $ac_symprfx\\2 \\2" 6521 6522 # Write the raw and C identifiers. 6523 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6524 # Fake it for dumpbin and say T for any non-static function 6525 # and D for any global variable. 6526 # Also find C++ and __fastcall symbols from MSVC++, 6527 # which start with @ or ?. 6528 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6529" {last_section=section; section=\$ 3};"\ 6530" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6531" \$ 0!~/External *\|/{next};"\ 6532" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6533" {if(hide[section]) next};"\ 6534" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6535" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6536" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6537" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6538" ' prfx=^$ac_symprfx" 6539 else 6540 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6541 fi 6542 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6543 6544 # Check to see that the pipe works correctly. 6545 pipe_works=no 6546 6547 rm -f conftest* 6548 cat > conftest.$ac_ext <<_LT_EOF 6549#ifdef __cplusplus 6550extern "C" { 6551#endif 6552char nm_test_var; 6553void nm_test_func(void); 6554void nm_test_func(void){} 6555#ifdef __cplusplus 6556} 6557#endif 6558int main(){nm_test_var='a';nm_test_func();return(0);} 6559_LT_EOF 6560 6561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6562 (eval $ac_compile) 2>&5 6563 ac_status=$? 6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6565 test $ac_status = 0; }; then 6566 # Now try to grab the symbols. 6567 nlist=conftest.nm 6568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6569 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6570 ac_status=$? 6571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6572 test $ac_status = 0; } && test -s "$nlist"; then 6573 # Try sorting and uniquifying the output. 6574 if sort "$nlist" | uniq > "$nlist"T; then 6575 mv -f "$nlist"T "$nlist" 6576 else 6577 rm -f "$nlist"T 6578 fi 6579 6580 # Make sure that we snagged all the symbols we need. 6581 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6582 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6583 cat <<_LT_EOF > conftest.$ac_ext 6584/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6585#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6586/* DATA imports from DLLs on WIN32 con't be const, because runtime 6587 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6588# define LT_DLSYM_CONST 6589#elif defined(__osf__) 6590/* This system does not cope well with relocations in const data. */ 6591# define LT_DLSYM_CONST 6592#else 6593# define LT_DLSYM_CONST const 6594#endif 6595 6596#ifdef __cplusplus 6597extern "C" { 6598#endif 6599 6600_LT_EOF 6601 # Now generate the symbol file. 6602 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6603 6604 cat <<_LT_EOF >> conftest.$ac_ext 6605 6606/* The mapping between symbol names and symbols. */ 6607LT_DLSYM_CONST struct { 6608 const char *name; 6609 void *address; 6610} 6611lt__PROGRAM__LTX_preloaded_symbols[] = 6612{ 6613 { "@PROGRAM@", (void *) 0 }, 6614_LT_EOF 6615 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6616 cat <<\_LT_EOF >> conftest.$ac_ext 6617 {0, (void *) 0} 6618}; 6619 6620/* This works around a problem in FreeBSD linker */ 6621#ifdef FREEBSD_WORKAROUND 6622static const void *lt_preloaded_setup() { 6623 return lt__PROGRAM__LTX_preloaded_symbols; 6624} 6625#endif 6626 6627#ifdef __cplusplus 6628} 6629#endif 6630_LT_EOF 6631 # Now try linking the two files. 6632 mv conftest.$ac_objext conftstm.$ac_objext 6633 lt_globsym_save_LIBS=$LIBS 6634 lt_globsym_save_CFLAGS=$CFLAGS 6635 LIBS="conftstm.$ac_objext" 6636 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6638 (eval $ac_link) 2>&5 6639 ac_status=$? 6640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6641 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6642 pipe_works=yes 6643 fi 6644 LIBS=$lt_globsym_save_LIBS 6645 CFLAGS=$lt_globsym_save_CFLAGS 6646 else 6647 echo "cannot find nm_test_func in $nlist" >&5 6648 fi 6649 else 6650 echo "cannot find nm_test_var in $nlist" >&5 6651 fi 6652 else 6653 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6654 fi 6655 else 6656 echo "$progname: failed program was:" >&5 6657 cat conftest.$ac_ext >&5 6658 fi 6659 rm -rf conftest* conftst* 6660 6661 # Do not use the global_symbol_pipe unless it works. 6662 if test "$pipe_works" = yes; then 6663 break 6664 else 6665 lt_cv_sys_global_symbol_pipe= 6666 fi 6667done 6668 6669fi 6670 6671if test -z "$lt_cv_sys_global_symbol_pipe"; then 6672 lt_cv_sys_global_symbol_to_cdecl= 6673fi 6674if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6676$as_echo "failed" >&6; } 6677else 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6679$as_echo "ok" >&6; } 6680fi 6681 6682# Response file support. 6683if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6684 nm_file_list_spec='@' 6685elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6686 nm_file_list_spec='@' 6687fi 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6716$as_echo_n "checking for sysroot... " >&6; } 6717 6718# Check whether --with-sysroot was given. 6719if test "${with_sysroot+set}" = set; then : 6720 withval=$with_sysroot; 6721else 6722 with_sysroot=no 6723fi 6724 6725 6726lt_sysroot= 6727case ${with_sysroot} in #( 6728 yes) 6729 if test "$GCC" = yes; then 6730 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6731 fi 6732 ;; #( 6733 /*) 6734 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6735 ;; #( 6736 no|'') 6737 ;; #( 6738 *) 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6740$as_echo "${with_sysroot}" >&6; } 6741 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6742 ;; 6743esac 6744 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6746$as_echo "${lt_sysroot:-no}" >&6; } 6747 6748 6749 6750 6751 6752# Check whether --enable-libtool-lock was given. 6753if test "${enable_libtool_lock+set}" = set; then : 6754 enableval=$enable_libtool_lock; 6755fi 6756 6757test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6758 6759# Some flags need to be propagated to the compiler or linker for good 6760# libtool support. 6761case $host in 6762ia64-*-hpux*) 6763 # Find out which ABI we are using. 6764 echo 'int i;' > conftest.$ac_ext 6765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6766 (eval $ac_compile) 2>&5 6767 ac_status=$? 6768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6769 test $ac_status = 0; }; then 6770 case `/usr/bin/file conftest.$ac_objext` in 6771 *ELF-32*) 6772 HPUX_IA64_MODE="32" 6773 ;; 6774 *ELF-64*) 6775 HPUX_IA64_MODE="64" 6776 ;; 6777 esac 6778 fi 6779 rm -rf conftest* 6780 ;; 6781*-*-irix6*) 6782 # Find out which ABI we are using. 6783 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6785 (eval $ac_compile) 2>&5 6786 ac_status=$? 6787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6788 test $ac_status = 0; }; then 6789 if test "$lt_cv_prog_gnu_ld" = yes; then 6790 case `/usr/bin/file conftest.$ac_objext` in 6791 *32-bit*) 6792 LD="${LD-ld} -melf32bsmip" 6793 ;; 6794 *N32*) 6795 LD="${LD-ld} -melf32bmipn32" 6796 ;; 6797 *64-bit*) 6798 LD="${LD-ld} -melf64bmip" 6799 ;; 6800 esac 6801 else 6802 case `/usr/bin/file conftest.$ac_objext` in 6803 *32-bit*) 6804 LD="${LD-ld} -32" 6805 ;; 6806 *N32*) 6807 LD="${LD-ld} -n32" 6808 ;; 6809 *64-bit*) 6810 LD="${LD-ld} -64" 6811 ;; 6812 esac 6813 fi 6814 fi 6815 rm -rf conftest* 6816 ;; 6817 6818x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6819s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6820 # Find out which ABI we are using. 6821 echo 'int i;' > conftest.$ac_ext 6822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6823 (eval $ac_compile) 2>&5 6824 ac_status=$? 6825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6826 test $ac_status = 0; }; then 6827 case `/usr/bin/file conftest.o` in 6828 *32-bit*) 6829 case $host in 6830 x86_64-*kfreebsd*-gnu) 6831 LD="${LD-ld} -m elf_i386_fbsd" 6832 ;; 6833 x86_64-*linux*) 6834 LD="${LD-ld} -m elf_i386" 6835 ;; 6836 ppc64-*linux*|powerpc64-*linux*) 6837 LD="${LD-ld} -m elf32ppclinux" 6838 ;; 6839 s390x-*linux*) 6840 LD="${LD-ld} -m elf_s390" 6841 ;; 6842 sparc64-*linux*) 6843 LD="${LD-ld} -m elf32_sparc" 6844 ;; 6845 esac 6846 ;; 6847 *64-bit*) 6848 case $host in 6849 x86_64-*kfreebsd*-gnu) 6850 LD="${LD-ld} -m elf_x86_64_fbsd" 6851 ;; 6852 x86_64-*linux*) 6853 LD="${LD-ld} -m elf_x86_64" 6854 ;; 6855 ppc*-*linux*|powerpc*-*linux*) 6856 LD="${LD-ld} -m elf64ppc" 6857 ;; 6858 s390*-*linux*|s390*-*tpf*) 6859 LD="${LD-ld} -m elf64_s390" 6860 ;; 6861 sparc*-*linux*) 6862 LD="${LD-ld} -m elf64_sparc" 6863 ;; 6864 esac 6865 ;; 6866 esac 6867 fi 6868 rm -rf conftest* 6869 ;; 6870 6871*-*-sco3.2v5*) 6872 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6873 SAVE_CFLAGS="$CFLAGS" 6874 CFLAGS="$CFLAGS -belf" 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6876$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6877if ${lt_cv_cc_needs_belf+:} false; then : 6878 $as_echo_n "(cached) " >&6 6879else 6880 ac_ext=c 6881ac_cpp='$CPP $CPPFLAGS' 6882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6884ac_compiler_gnu=$ac_cv_c_compiler_gnu 6885 6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6887/* end confdefs.h. */ 6888 6889int 6890main () 6891{ 6892 6893 ; 6894 return 0; 6895} 6896_ACEOF 6897if ac_fn_c_try_link "$LINENO"; then : 6898 lt_cv_cc_needs_belf=yes 6899else 6900 lt_cv_cc_needs_belf=no 6901fi 6902rm -f core conftest.err conftest.$ac_objext \ 6903 conftest$ac_exeext conftest.$ac_ext 6904 ac_ext=c 6905ac_cpp='$CPP $CPPFLAGS' 6906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6908ac_compiler_gnu=$ac_cv_c_compiler_gnu 6909 6910fi 6911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6912$as_echo "$lt_cv_cc_needs_belf" >&6; } 6913 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6914 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6915 CFLAGS="$SAVE_CFLAGS" 6916 fi 6917 ;; 6918sparc*-*solaris*) 6919 # Find out which ABI we are using. 6920 echo 'int i;' > conftest.$ac_ext 6921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6922 (eval $ac_compile) 2>&5 6923 ac_status=$? 6924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6925 test $ac_status = 0; }; then 6926 case `/usr/bin/file conftest.o` in 6927 *64-bit*) 6928 case $lt_cv_prog_gnu_ld in 6929 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6930 *) 6931 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6932 LD="${LD-ld} -64" 6933 fi 6934 ;; 6935 esac 6936 ;; 6937 esac 6938 fi 6939 rm -rf conftest* 6940 ;; 6941esac 6942 6943need_locks="$enable_libtool_lock" 6944 6945if test -n "$ac_tool_prefix"; then 6946 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6947set dummy ${ac_tool_prefix}mt; ac_word=$2 6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6949$as_echo_n "checking for $ac_word... " >&6; } 6950if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6951 $as_echo_n "(cached) " >&6 6952else 6953 if test -n "$MANIFEST_TOOL"; then 6954 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6955else 6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6957for as_dir in $PATH 6958do 6959 IFS=$as_save_IFS 6960 test -z "$as_dir" && as_dir=. 6961 for ac_exec_ext in '' $ac_executable_extensions; do 6962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6963 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6965 break 2 6966 fi 6967done 6968 done 6969IFS=$as_save_IFS 6970 6971fi 6972fi 6973MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6974if test -n "$MANIFEST_TOOL"; then 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6976$as_echo "$MANIFEST_TOOL" >&6; } 6977else 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6979$as_echo "no" >&6; } 6980fi 6981 6982 6983fi 6984if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6985 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6986 # Extract the first word of "mt", so it can be a program name with args. 6987set dummy mt; ac_word=$2 6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6989$as_echo_n "checking for $ac_word... " >&6; } 6990if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6991 $as_echo_n "(cached) " >&6 6992else 6993 if test -n "$ac_ct_MANIFEST_TOOL"; then 6994 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6995else 6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6997for as_dir in $PATH 6998do 6999 IFS=$as_save_IFS 7000 test -z "$as_dir" && as_dir=. 7001 for ac_exec_ext in '' $ac_executable_extensions; do 7002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7003 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7005 break 2 7006 fi 7007done 7008 done 7009IFS=$as_save_IFS 7010 7011fi 7012fi 7013ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7014if test -n "$ac_ct_MANIFEST_TOOL"; then 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7016$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7017else 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7019$as_echo "no" >&6; } 7020fi 7021 7022 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7023 MANIFEST_TOOL=":" 7024 else 7025 case $cross_compiling:$ac_tool_warned in 7026yes:) 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7029ac_tool_warned=yes ;; 7030esac 7031 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7032 fi 7033else 7034 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7035fi 7036 7037test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7039$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7040if ${lt_cv_path_mainfest_tool+:} false; then : 7041 $as_echo_n "(cached) " >&6 7042else 7043 lt_cv_path_mainfest_tool=no 7044 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7045 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7046 cat conftest.err >&5 7047 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7048 lt_cv_path_mainfest_tool=yes 7049 fi 7050 rm -f conftest* 7051fi 7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7053$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7054if test "x$lt_cv_path_mainfest_tool" != xyes; then 7055 MANIFEST_TOOL=: 7056fi 7057 7058 7059 7060 7061 7062 7063 case $host_os in 7064 rhapsody* | darwin*) 7065 if test -n "$ac_tool_prefix"; then 7066 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7067set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7069$as_echo_n "checking for $ac_word... " >&6; } 7070if ${ac_cv_prog_DSYMUTIL+:} false; then : 7071 $as_echo_n "(cached) " >&6 7072else 7073 if test -n "$DSYMUTIL"; then 7074 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7075else 7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7077for as_dir in $PATH 7078do 7079 IFS=$as_save_IFS 7080 test -z "$as_dir" && as_dir=. 7081 for ac_exec_ext in '' $ac_executable_extensions; do 7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7083 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7085 break 2 7086 fi 7087done 7088 done 7089IFS=$as_save_IFS 7090 7091fi 7092fi 7093DSYMUTIL=$ac_cv_prog_DSYMUTIL 7094if test -n "$DSYMUTIL"; then 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7096$as_echo "$DSYMUTIL" >&6; } 7097else 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7099$as_echo "no" >&6; } 7100fi 7101 7102 7103fi 7104if test -z "$ac_cv_prog_DSYMUTIL"; then 7105 ac_ct_DSYMUTIL=$DSYMUTIL 7106 # Extract the first word of "dsymutil", so it can be a program name with args. 7107set dummy dsymutil; ac_word=$2 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7109$as_echo_n "checking for $ac_word... " >&6; } 7110if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7111 $as_echo_n "(cached) " >&6 7112else 7113 if test -n "$ac_ct_DSYMUTIL"; then 7114 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7115else 7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7117for as_dir in $PATH 7118do 7119 IFS=$as_save_IFS 7120 test -z "$as_dir" && as_dir=. 7121 for ac_exec_ext in '' $ac_executable_extensions; do 7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7123 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7125 break 2 7126 fi 7127done 7128 done 7129IFS=$as_save_IFS 7130 7131fi 7132fi 7133ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7134if test -n "$ac_ct_DSYMUTIL"; then 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7136$as_echo "$ac_ct_DSYMUTIL" >&6; } 7137else 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7139$as_echo "no" >&6; } 7140fi 7141 7142 if test "x$ac_ct_DSYMUTIL" = x; then 7143 DSYMUTIL=":" 7144 else 7145 case $cross_compiling:$ac_tool_warned in 7146yes:) 7147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7149ac_tool_warned=yes ;; 7150esac 7151 DSYMUTIL=$ac_ct_DSYMUTIL 7152 fi 7153else 7154 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7155fi 7156 7157 if test -n "$ac_tool_prefix"; then 7158 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7159set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7161$as_echo_n "checking for $ac_word... " >&6; } 7162if ${ac_cv_prog_NMEDIT+:} false; then : 7163 $as_echo_n "(cached) " >&6 7164else 7165 if test -n "$NMEDIT"; then 7166 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7167else 7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7169for as_dir in $PATH 7170do 7171 IFS=$as_save_IFS 7172 test -z "$as_dir" && as_dir=. 7173 for ac_exec_ext in '' $ac_executable_extensions; do 7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7175 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7177 break 2 7178 fi 7179done 7180 done 7181IFS=$as_save_IFS 7182 7183fi 7184fi 7185NMEDIT=$ac_cv_prog_NMEDIT 7186if test -n "$NMEDIT"; then 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7188$as_echo "$NMEDIT" >&6; } 7189else 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7191$as_echo "no" >&6; } 7192fi 7193 7194 7195fi 7196if test -z "$ac_cv_prog_NMEDIT"; then 7197 ac_ct_NMEDIT=$NMEDIT 7198 # Extract the first word of "nmedit", so it can be a program name with args. 7199set dummy nmedit; ac_word=$2 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7201$as_echo_n "checking for $ac_word... " >&6; } 7202if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204else 7205 if test -n "$ac_ct_NMEDIT"; then 7206 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7207else 7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7209for as_dir in $PATH 7210do 7211 IFS=$as_save_IFS 7212 test -z "$as_dir" && as_dir=. 7213 for ac_exec_ext in '' $ac_executable_extensions; do 7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7215 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7217 break 2 7218 fi 7219done 7220 done 7221IFS=$as_save_IFS 7222 7223fi 7224fi 7225ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7226if test -n "$ac_ct_NMEDIT"; then 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7228$as_echo "$ac_ct_NMEDIT" >&6; } 7229else 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7231$as_echo "no" >&6; } 7232fi 7233 7234 if test "x$ac_ct_NMEDIT" = x; then 7235 NMEDIT=":" 7236 else 7237 case $cross_compiling:$ac_tool_warned in 7238yes:) 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7241ac_tool_warned=yes ;; 7242esac 7243 NMEDIT=$ac_ct_NMEDIT 7244 fi 7245else 7246 NMEDIT="$ac_cv_prog_NMEDIT" 7247fi 7248 7249 if test -n "$ac_tool_prefix"; then 7250 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7251set dummy ${ac_tool_prefix}lipo; ac_word=$2 7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7253$as_echo_n "checking for $ac_word... " >&6; } 7254if ${ac_cv_prog_LIPO+:} false; then : 7255 $as_echo_n "(cached) " >&6 7256else 7257 if test -n "$LIPO"; then 7258 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7259else 7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7261for as_dir in $PATH 7262do 7263 IFS=$as_save_IFS 7264 test -z "$as_dir" && as_dir=. 7265 for ac_exec_ext in '' $ac_executable_extensions; do 7266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7267 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7269 break 2 7270 fi 7271done 7272 done 7273IFS=$as_save_IFS 7274 7275fi 7276fi 7277LIPO=$ac_cv_prog_LIPO 7278if test -n "$LIPO"; then 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7280$as_echo "$LIPO" >&6; } 7281else 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7283$as_echo "no" >&6; } 7284fi 7285 7286 7287fi 7288if test -z "$ac_cv_prog_LIPO"; then 7289 ac_ct_LIPO=$LIPO 7290 # Extract the first word of "lipo", so it can be a program name with args. 7291set dummy lipo; ac_word=$2 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7293$as_echo_n "checking for $ac_word... " >&6; } 7294if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7295 $as_echo_n "(cached) " >&6 7296else 7297 if test -n "$ac_ct_LIPO"; then 7298 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7299else 7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7301for as_dir in $PATH 7302do 7303 IFS=$as_save_IFS 7304 test -z "$as_dir" && as_dir=. 7305 for ac_exec_ext in '' $ac_executable_extensions; do 7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7307 ac_cv_prog_ac_ct_LIPO="lipo" 7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7309 break 2 7310 fi 7311done 7312 done 7313IFS=$as_save_IFS 7314 7315fi 7316fi 7317ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7318if test -n "$ac_ct_LIPO"; then 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7320$as_echo "$ac_ct_LIPO" >&6; } 7321else 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7323$as_echo "no" >&6; } 7324fi 7325 7326 if test "x$ac_ct_LIPO" = x; then 7327 LIPO=":" 7328 else 7329 case $cross_compiling:$ac_tool_warned in 7330yes:) 7331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7333ac_tool_warned=yes ;; 7334esac 7335 LIPO=$ac_ct_LIPO 7336 fi 7337else 7338 LIPO="$ac_cv_prog_LIPO" 7339fi 7340 7341 if test -n "$ac_tool_prefix"; then 7342 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7343set dummy ${ac_tool_prefix}otool; ac_word=$2 7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7345$as_echo_n "checking for $ac_word... " >&6; } 7346if ${ac_cv_prog_OTOOL+:} false; then : 7347 $as_echo_n "(cached) " >&6 7348else 7349 if test -n "$OTOOL"; then 7350 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7351else 7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7353for as_dir in $PATH 7354do 7355 IFS=$as_save_IFS 7356 test -z "$as_dir" && as_dir=. 7357 for ac_exec_ext in '' $ac_executable_extensions; do 7358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7359 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7361 break 2 7362 fi 7363done 7364 done 7365IFS=$as_save_IFS 7366 7367fi 7368fi 7369OTOOL=$ac_cv_prog_OTOOL 7370if test -n "$OTOOL"; then 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7372$as_echo "$OTOOL" >&6; } 7373else 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7375$as_echo "no" >&6; } 7376fi 7377 7378 7379fi 7380if test -z "$ac_cv_prog_OTOOL"; then 7381 ac_ct_OTOOL=$OTOOL 7382 # Extract the first word of "otool", so it can be a program name with args. 7383set dummy otool; ac_word=$2 7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7385$as_echo_n "checking for $ac_word... " >&6; } 7386if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 if test -n "$ac_ct_OTOOL"; then 7390 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7391else 7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7393for as_dir in $PATH 7394do 7395 IFS=$as_save_IFS 7396 test -z "$as_dir" && as_dir=. 7397 for ac_exec_ext in '' $ac_executable_extensions; do 7398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7399 ac_cv_prog_ac_ct_OTOOL="otool" 7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7401 break 2 7402 fi 7403done 7404 done 7405IFS=$as_save_IFS 7406 7407fi 7408fi 7409ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7410if test -n "$ac_ct_OTOOL"; then 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7412$as_echo "$ac_ct_OTOOL" >&6; } 7413else 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7415$as_echo "no" >&6; } 7416fi 7417 7418 if test "x$ac_ct_OTOOL" = x; then 7419 OTOOL=":" 7420 else 7421 case $cross_compiling:$ac_tool_warned in 7422yes:) 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7425ac_tool_warned=yes ;; 7426esac 7427 OTOOL=$ac_ct_OTOOL 7428 fi 7429else 7430 OTOOL="$ac_cv_prog_OTOOL" 7431fi 7432 7433 if test -n "$ac_tool_prefix"; then 7434 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7435set dummy ${ac_tool_prefix}otool64; ac_word=$2 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7437$as_echo_n "checking for $ac_word... " >&6; } 7438if ${ac_cv_prog_OTOOL64+:} false; then : 7439 $as_echo_n "(cached) " >&6 7440else 7441 if test -n "$OTOOL64"; then 7442 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7443else 7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7445for as_dir in $PATH 7446do 7447 IFS=$as_save_IFS 7448 test -z "$as_dir" && as_dir=. 7449 for ac_exec_ext in '' $ac_executable_extensions; do 7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7451 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7453 break 2 7454 fi 7455done 7456 done 7457IFS=$as_save_IFS 7458 7459fi 7460fi 7461OTOOL64=$ac_cv_prog_OTOOL64 7462if test -n "$OTOOL64"; then 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7464$as_echo "$OTOOL64" >&6; } 7465else 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7467$as_echo "no" >&6; } 7468fi 7469 7470 7471fi 7472if test -z "$ac_cv_prog_OTOOL64"; then 7473 ac_ct_OTOOL64=$OTOOL64 7474 # Extract the first word of "otool64", so it can be a program name with args. 7475set dummy otool64; ac_word=$2 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7477$as_echo_n "checking for $ac_word... " >&6; } 7478if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7479 $as_echo_n "(cached) " >&6 7480else 7481 if test -n "$ac_ct_OTOOL64"; then 7482 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7483else 7484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7485for as_dir in $PATH 7486do 7487 IFS=$as_save_IFS 7488 test -z "$as_dir" && as_dir=. 7489 for ac_exec_ext in '' $ac_executable_extensions; do 7490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7491 ac_cv_prog_ac_ct_OTOOL64="otool64" 7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7493 break 2 7494 fi 7495done 7496 done 7497IFS=$as_save_IFS 7498 7499fi 7500fi 7501ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7502if test -n "$ac_ct_OTOOL64"; then 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7504$as_echo "$ac_ct_OTOOL64" >&6; } 7505else 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7507$as_echo "no" >&6; } 7508fi 7509 7510 if test "x$ac_ct_OTOOL64" = x; then 7511 OTOOL64=":" 7512 else 7513 case $cross_compiling:$ac_tool_warned in 7514yes:) 7515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7517ac_tool_warned=yes ;; 7518esac 7519 OTOOL64=$ac_ct_OTOOL64 7520 fi 7521else 7522 OTOOL64="$ac_cv_prog_OTOOL64" 7523fi 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7552$as_echo_n "checking for -single_module linker flag... " >&6; } 7553if ${lt_cv_apple_cc_single_mod+:} false; then : 7554 $as_echo_n "(cached) " >&6 7555else 7556 lt_cv_apple_cc_single_mod=no 7557 if test -z "${LT_MULTI_MODULE}"; then 7558 # By default we will add the -single_module flag. You can override 7559 # by either setting the environment variable LT_MULTI_MODULE 7560 # non-empty at configure time, or by adding -multi_module to the 7561 # link flags. 7562 rm -rf libconftest.dylib* 7563 echo "int foo(void){return 1;}" > conftest.c 7564 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7565-dynamiclib -Wl,-single_module conftest.c" >&5 7566 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7567 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7568 _lt_result=$? 7569 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7570 lt_cv_apple_cc_single_mod=yes 7571 else 7572 cat conftest.err >&5 7573 fi 7574 rm -rf libconftest.dylib* 7575 rm -f conftest.* 7576 fi 7577fi 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7579$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7581$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7582if ${lt_cv_ld_exported_symbols_list+:} false; then : 7583 $as_echo_n "(cached) " >&6 7584else 7585 lt_cv_ld_exported_symbols_list=no 7586 save_LDFLAGS=$LDFLAGS 7587 echo "_main" > conftest.sym 7588 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7590/* end confdefs.h. */ 7591 7592int 7593main () 7594{ 7595 7596 ; 7597 return 0; 7598} 7599_ACEOF 7600if ac_fn_c_try_link "$LINENO"; then : 7601 lt_cv_ld_exported_symbols_list=yes 7602else 7603 lt_cv_ld_exported_symbols_list=no 7604fi 7605rm -f core conftest.err conftest.$ac_objext \ 7606 conftest$ac_exeext conftest.$ac_ext 7607 LDFLAGS="$save_LDFLAGS" 7608 7609fi 7610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7611$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7613$as_echo_n "checking for -force_load linker flag... " >&6; } 7614if ${lt_cv_ld_force_load+:} false; then : 7615 $as_echo_n "(cached) " >&6 7616else 7617 lt_cv_ld_force_load=no 7618 cat > conftest.c << _LT_EOF 7619int forced_loaded() { return 2;} 7620_LT_EOF 7621 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7622 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7623 echo "$AR cru libconftest.a conftest.o" >&5 7624 $AR cru libconftest.a conftest.o 2>&5 7625 echo "$RANLIB libconftest.a" >&5 7626 $RANLIB libconftest.a 2>&5 7627 cat > conftest.c << _LT_EOF 7628int main() { return 0;} 7629_LT_EOF 7630 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7631 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7632 _lt_result=$? 7633 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7634 lt_cv_ld_force_load=yes 7635 else 7636 cat conftest.err >&5 7637 fi 7638 rm -f conftest.err libconftest.a conftest conftest.c 7639 rm -rf conftest.dSYM 7640 7641fi 7642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7643$as_echo "$lt_cv_ld_force_load" >&6; } 7644 case $host_os in 7645 rhapsody* | darwin1.[012]) 7646 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7647 darwin1.*) 7648 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7649 darwin*) # darwin 5.x on 7650 # if running on 10.5 or later, the deployment target defaults 7651 # to the OS version, if on x86, and 10.4, the deployment 7652 # target defaults to 10.4. Don't you love it? 7653 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7654 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7655 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7656 10.[012]*) 7657 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7658 10.*) 7659 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7660 esac 7661 ;; 7662 esac 7663 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7664 _lt_dar_single_mod='$single_module' 7665 fi 7666 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7667 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7668 else 7669 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7670 fi 7671 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7672 _lt_dsymutil='~$DSYMUTIL $lib || :' 7673 else 7674 _lt_dsymutil= 7675 fi 7676 ;; 7677 esac 7678 7679ac_ext=c 7680ac_cpp='$CPP $CPPFLAGS' 7681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7683ac_compiler_gnu=$ac_cv_c_compiler_gnu 7684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7685$as_echo_n "checking how to run the C preprocessor... " >&6; } 7686# On Suns, sometimes $CPP names a directory. 7687if test -n "$CPP" && test -d "$CPP"; then 7688 CPP= 7689fi 7690if test -z "$CPP"; then 7691 if ${ac_cv_prog_CPP+:} false; then : 7692 $as_echo_n "(cached) " >&6 7693else 7694 # Double quotes because CPP needs to be expanded 7695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7696 do 7697 ac_preproc_ok=false 7698for ac_c_preproc_warn_flag in '' yes 7699do 7700 # Use a header file that comes with gcc, so configuring glibc 7701 # with a fresh cross-compiler works. 7702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7703 # <limits.h> exists even on freestanding compilers. 7704 # On the NeXT, cc -E runs the code through the compiler's parser, 7705 # not just through cpp. "Syntax error" is here to catch this case. 7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7707/* end confdefs.h. */ 7708#ifdef __STDC__ 7709# include <limits.h> 7710#else 7711# include <assert.h> 7712#endif 7713 Syntax error 7714_ACEOF 7715if ac_fn_c_try_cpp "$LINENO"; then : 7716 7717else 7718 # Broken: fails on valid input. 7719continue 7720fi 7721rm -f conftest.err conftest.i conftest.$ac_ext 7722 7723 # OK, works on sane cases. Now check whether nonexistent headers 7724 # can be detected and how. 7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7726/* end confdefs.h. */ 7727#include <ac_nonexistent.h> 7728_ACEOF 7729if ac_fn_c_try_cpp "$LINENO"; then : 7730 # Broken: success on invalid input. 7731continue 7732else 7733 # Passes both tests. 7734ac_preproc_ok=: 7735break 7736fi 7737rm -f conftest.err conftest.i conftest.$ac_ext 7738 7739done 7740# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7741rm -f conftest.i conftest.err conftest.$ac_ext 7742if $ac_preproc_ok; then : 7743 break 7744fi 7745 7746 done 7747 ac_cv_prog_CPP=$CPP 7748 7749fi 7750 CPP=$ac_cv_prog_CPP 7751else 7752 ac_cv_prog_CPP=$CPP 7753fi 7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7755$as_echo "$CPP" >&6; } 7756ac_preproc_ok=false 7757for ac_c_preproc_warn_flag in '' yes 7758do 7759 # Use a header file that comes with gcc, so configuring glibc 7760 # with a fresh cross-compiler works. 7761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7762 # <limits.h> exists even on freestanding compilers. 7763 # On the NeXT, cc -E runs the code through the compiler's parser, 7764 # not just through cpp. "Syntax error" is here to catch this case. 7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7766/* end confdefs.h. */ 7767#ifdef __STDC__ 7768# include <limits.h> 7769#else 7770# include <assert.h> 7771#endif 7772 Syntax error 7773_ACEOF 7774if ac_fn_c_try_cpp "$LINENO"; then : 7775 7776else 7777 # Broken: fails on valid input. 7778continue 7779fi 7780rm -f conftest.err conftest.i conftest.$ac_ext 7781 7782 # OK, works on sane cases. Now check whether nonexistent headers 7783 # can be detected and how. 7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7785/* end confdefs.h. */ 7786#include <ac_nonexistent.h> 7787_ACEOF 7788if ac_fn_c_try_cpp "$LINENO"; then : 7789 # Broken: success on invalid input. 7790continue 7791else 7792 # Passes both tests. 7793ac_preproc_ok=: 7794break 7795fi 7796rm -f conftest.err conftest.i conftest.$ac_ext 7797 7798done 7799# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7800rm -f conftest.i conftest.err conftest.$ac_ext 7801if $ac_preproc_ok; then : 7802 7803else 7804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7806as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7807See \`config.log' for more details" "$LINENO" 5; } 7808fi 7809 7810ac_ext=c 7811ac_cpp='$CPP $CPPFLAGS' 7812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7814ac_compiler_gnu=$ac_cv_c_compiler_gnu 7815 7816 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7818$as_echo_n "checking for ANSI C header files... " >&6; } 7819if ${ac_cv_header_stdc+:} false; then : 7820 $as_echo_n "(cached) " >&6 7821else 7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7823/* end confdefs.h. */ 7824#include <stdlib.h> 7825#include <stdarg.h> 7826#include <string.h> 7827#include <float.h> 7828 7829int 7830main () 7831{ 7832 7833 ; 7834 return 0; 7835} 7836_ACEOF 7837if ac_fn_c_try_compile "$LINENO"; then : 7838 ac_cv_header_stdc=yes 7839else 7840 ac_cv_header_stdc=no 7841fi 7842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7843 7844if test $ac_cv_header_stdc = yes; then 7845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7847/* end confdefs.h. */ 7848#include <string.h> 7849 7850_ACEOF 7851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7852 $EGREP "memchr" >/dev/null 2>&1; then : 7853 7854else 7855 ac_cv_header_stdc=no 7856fi 7857rm -f conftest* 7858 7859fi 7860 7861if test $ac_cv_header_stdc = yes; then 7862 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7864/* end confdefs.h. */ 7865#include <stdlib.h> 7866 7867_ACEOF 7868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7869 $EGREP "free" >/dev/null 2>&1; then : 7870 7871else 7872 ac_cv_header_stdc=no 7873fi 7874rm -f conftest* 7875 7876fi 7877 7878if test $ac_cv_header_stdc = yes; then 7879 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7880 if test "$cross_compiling" = yes; then : 7881 : 7882else 7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7884/* end confdefs.h. */ 7885#include <ctype.h> 7886#include <stdlib.h> 7887#if ((' ' & 0x0FF) == 0x020) 7888# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7889# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7890#else 7891# define ISLOWER(c) \ 7892 (('a' <= (c) && (c) <= 'i') \ 7893 || ('j' <= (c) && (c) <= 'r') \ 7894 || ('s' <= (c) && (c) <= 'z')) 7895# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7896#endif 7897 7898#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7899int 7900main () 7901{ 7902 int i; 7903 for (i = 0; i < 256; i++) 7904 if (XOR (islower (i), ISLOWER (i)) 7905 || toupper (i) != TOUPPER (i)) 7906 return 2; 7907 return 0; 7908} 7909_ACEOF 7910if ac_fn_c_try_run "$LINENO"; then : 7911 7912else 7913 ac_cv_header_stdc=no 7914fi 7915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7916 conftest.$ac_objext conftest.beam conftest.$ac_ext 7917fi 7918 7919fi 7920fi 7921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7922$as_echo "$ac_cv_header_stdc" >&6; } 7923if test $ac_cv_header_stdc = yes; then 7924 7925$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7926 7927fi 7928 7929# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7930for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7931 inttypes.h stdint.h unistd.h 7932do : 7933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7934ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7935" 7936if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7937 cat >>confdefs.h <<_ACEOF 7938#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7939_ACEOF 7940 7941fi 7942 7943done 7944 7945 7946for ac_header in dlfcn.h 7947do : 7948 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7949" 7950if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7951 cat >>confdefs.h <<_ACEOF 7952#define HAVE_DLFCN_H 1 7953_ACEOF 7954 7955fi 7956 7957done 7958 7959 7960 7961 7962func_stripname_cnf () 7963{ 7964 case ${2} in 7965 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 7966 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 7967 esac 7968} # func_stripname_cnf 7969 7970 7971 7972 7973 7974# Set options 7975 7976 7977 7978 enable_dlopen=no 7979 7980 7981 enable_win32_dll=no 7982 7983 7984 # Check whether --enable-shared was given. 7985if test "${enable_shared+set}" = set; then : 7986 enableval=$enable_shared; p=${PACKAGE-default} 7987 case $enableval in 7988 yes) enable_shared=yes ;; 7989 no) enable_shared=no ;; 7990 *) 7991 enable_shared=no 7992 # Look at the argument we got. We use all the common list separators. 7993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7994 for pkg in $enableval; do 7995 IFS="$lt_save_ifs" 7996 if test "X$pkg" = "X$p"; then 7997 enable_shared=yes 7998 fi 7999 done 8000 IFS="$lt_save_ifs" 8001 ;; 8002 esac 8003else 8004 enable_shared=yes 8005fi 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 # Check whether --enable-static was given. 8016if test "${enable_static+set}" = set; then : 8017 enableval=$enable_static; p=${PACKAGE-default} 8018 case $enableval in 8019 yes) enable_static=yes ;; 8020 no) enable_static=no ;; 8021 *) 8022 enable_static=no 8023 # Look at the argument we got. We use all the common list separators. 8024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8025 for pkg in $enableval; do 8026 IFS="$lt_save_ifs" 8027 if test "X$pkg" = "X$p"; then 8028 enable_static=yes 8029 fi 8030 done 8031 IFS="$lt_save_ifs" 8032 ;; 8033 esac 8034else 8035 enable_static=yes 8036fi 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047# Check whether --with-pic was given. 8048if test "${with_pic+set}" = set; then : 8049 withval=$with_pic; pic_mode="$withval" 8050else 8051 pic_mode=default 8052fi 8053 8054 8055test -z "$pic_mode" && pic_mode=default 8056 8057 8058 8059 8060 8061 8062 8063 # Check whether --enable-fast-install was given. 8064if test "${enable_fast_install+set}" = set; then : 8065 enableval=$enable_fast_install; p=${PACKAGE-default} 8066 case $enableval in 8067 yes) enable_fast_install=yes ;; 8068 no) enable_fast_install=no ;; 8069 *) 8070 enable_fast_install=no 8071 # Look at the argument we got. We use all the common list separators. 8072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8073 for pkg in $enableval; do 8074 IFS="$lt_save_ifs" 8075 if test "X$pkg" = "X$p"; then 8076 enable_fast_install=yes 8077 fi 8078 done 8079 IFS="$lt_save_ifs" 8080 ;; 8081 esac 8082else 8083 enable_fast_install=yes 8084fi 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096# This can be used to rebuild libtool when needed 8097LIBTOOL_DEPS="$ltmain" 8098 8099# Always use our own libtool. 8100LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127test -z "$LN_S" && LN_S="ln -s" 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142if test -n "${ZSH_VERSION+set}" ; then 8143 setopt NO_GLOB_SUBST 8144fi 8145 8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8147$as_echo_n "checking for objdir... " >&6; } 8148if ${lt_cv_objdir+:} false; then : 8149 $as_echo_n "(cached) " >&6 8150else 8151 rm -f .libs 2>/dev/null 8152mkdir .libs 2>/dev/null 8153if test -d .libs; then 8154 lt_cv_objdir=.libs 8155else 8156 # MS-DOS does not allow filenames that begin with a dot. 8157 lt_cv_objdir=_libs 8158fi 8159rmdir .libs 2>/dev/null 8160fi 8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8162$as_echo "$lt_cv_objdir" >&6; } 8163objdir=$lt_cv_objdir 8164 8165 8166 8167 8168 8169cat >>confdefs.h <<_ACEOF 8170#define LT_OBJDIR "$lt_cv_objdir/" 8171_ACEOF 8172 8173 8174 8175 8176case $host_os in 8177aix3*) 8178 # AIX sometimes has problems with the GCC collect2 program. For some 8179 # reason, if we set the COLLECT_NAMES environment variable, the problems 8180 # vanish in a puff of smoke. 8181 if test "X${COLLECT_NAMES+set}" != Xset; then 8182 COLLECT_NAMES= 8183 export COLLECT_NAMES 8184 fi 8185 ;; 8186esac 8187 8188# Global variables: 8189ofile=libtool 8190can_build_shared=yes 8191 8192# All known linkers require a `.a' archive for static linking (except MSVC, 8193# which needs '.lib'). 8194libext=a 8195 8196with_gnu_ld="$lt_cv_prog_gnu_ld" 8197 8198old_CC="$CC" 8199old_CFLAGS="$CFLAGS" 8200 8201# Set sane defaults for various variables 8202test -z "$CC" && CC=cc 8203test -z "$LTCC" && LTCC=$CC 8204test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8205test -z "$LD" && LD=ld 8206test -z "$ac_objext" && ac_objext=o 8207 8208for cc_temp in $compiler""; do 8209 case $cc_temp in 8210 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8211 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8212 \-*) ;; 8213 *) break;; 8214 esac 8215done 8216cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8217 8218 8219# Only perform the check for file, if the check method requires it 8220test -z "$MAGIC_CMD" && MAGIC_CMD=file 8221case $deplibs_check_method in 8222file_magic*) 8223 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8225$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8226if ${lt_cv_path_MAGIC_CMD+:} false; then : 8227 $as_echo_n "(cached) " >&6 8228else 8229 case $MAGIC_CMD in 8230[\\/*] | ?:[\\/]*) 8231 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8232 ;; 8233*) 8234 lt_save_MAGIC_CMD="$MAGIC_CMD" 8235 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8236 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8237 for ac_dir in $ac_dummy; do 8238 IFS="$lt_save_ifs" 8239 test -z "$ac_dir" && ac_dir=. 8240 if test -f $ac_dir/${ac_tool_prefix}file; then 8241 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8242 if test -n "$file_magic_test_file"; then 8243 case $deplibs_check_method in 8244 "file_magic "*) 8245 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8246 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8247 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8248 $EGREP "$file_magic_regex" > /dev/null; then 8249 : 8250 else 8251 cat <<_LT_EOF 1>&2 8252 8253*** Warning: the command libtool uses to detect shared libraries, 8254*** $file_magic_cmd, produces output that libtool cannot recognize. 8255*** The result is that libtool may fail to recognize shared libraries 8256*** as such. This will affect the creation of libtool libraries that 8257*** depend on shared libraries, but programs linked with such libtool 8258*** libraries will work regardless of this problem. Nevertheless, you 8259*** may want to report the problem to your system manager and/or to 8260*** bug-libtool@gnu.org 8261 8262_LT_EOF 8263 fi ;; 8264 esac 8265 fi 8266 break 8267 fi 8268 done 8269 IFS="$lt_save_ifs" 8270 MAGIC_CMD="$lt_save_MAGIC_CMD" 8271 ;; 8272esac 8273fi 8274 8275MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8276if test -n "$MAGIC_CMD"; then 8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8278$as_echo "$MAGIC_CMD" >&6; } 8279else 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8281$as_echo "no" >&6; } 8282fi 8283 8284 8285 8286 8287 8288if test -z "$lt_cv_path_MAGIC_CMD"; then 8289 if test -n "$ac_tool_prefix"; then 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8291$as_echo_n "checking for file... " >&6; } 8292if ${lt_cv_path_MAGIC_CMD+:} false; then : 8293 $as_echo_n "(cached) " >&6 8294else 8295 case $MAGIC_CMD in 8296[\\/*] | ?:[\\/]*) 8297 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8298 ;; 8299*) 8300 lt_save_MAGIC_CMD="$MAGIC_CMD" 8301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8302 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8303 for ac_dir in $ac_dummy; do 8304 IFS="$lt_save_ifs" 8305 test -z "$ac_dir" && ac_dir=. 8306 if test -f $ac_dir/file; then 8307 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8308 if test -n "$file_magic_test_file"; then 8309 case $deplibs_check_method in 8310 "file_magic "*) 8311 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8313 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8314 $EGREP "$file_magic_regex" > /dev/null; then 8315 : 8316 else 8317 cat <<_LT_EOF 1>&2 8318 8319*** Warning: the command libtool uses to detect shared libraries, 8320*** $file_magic_cmd, produces output that libtool cannot recognize. 8321*** The result is that libtool may fail to recognize shared libraries 8322*** as such. This will affect the creation of libtool libraries that 8323*** depend on shared libraries, but programs linked with such libtool 8324*** libraries will work regardless of this problem. Nevertheless, you 8325*** may want to report the problem to your system manager and/or to 8326*** bug-libtool@gnu.org 8327 8328_LT_EOF 8329 fi ;; 8330 esac 8331 fi 8332 break 8333 fi 8334 done 8335 IFS="$lt_save_ifs" 8336 MAGIC_CMD="$lt_save_MAGIC_CMD" 8337 ;; 8338esac 8339fi 8340 8341MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8342if test -n "$MAGIC_CMD"; then 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8344$as_echo "$MAGIC_CMD" >&6; } 8345else 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8347$as_echo "no" >&6; } 8348fi 8349 8350 8351 else 8352 MAGIC_CMD=: 8353 fi 8354fi 8355 8356 fi 8357 ;; 8358esac 8359 8360# Use C for the default configuration in the libtool script 8361 8362lt_save_CC="$CC" 8363ac_ext=c 8364ac_cpp='$CPP $CPPFLAGS' 8365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8367ac_compiler_gnu=$ac_cv_c_compiler_gnu 8368 8369 8370# Source file extension for C test sources. 8371ac_ext=c 8372 8373# Object file extension for compiled C test sources. 8374objext=o 8375objext=$objext 8376 8377# Code to be used in simple compile tests 8378lt_simple_compile_test_code="int some_variable = 0;" 8379 8380# Code to be used in simple link tests 8381lt_simple_link_test_code='int main(){return(0);}' 8382 8383 8384 8385 8386 8387 8388 8389# If no C compiler was specified, use CC. 8390LTCC=${LTCC-"$CC"} 8391 8392# If no C compiler flags were specified, use CFLAGS. 8393LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8394 8395# Allow CC to be a program name with arguments. 8396compiler=$CC 8397 8398# Save the default compiler, since it gets overwritten when the other 8399# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8400compiler_DEFAULT=$CC 8401 8402# save warnings/boilerplate of simple test code 8403ac_outfile=conftest.$ac_objext 8404echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8405eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8406_lt_compiler_boilerplate=`cat conftest.err` 8407$RM conftest* 8408 8409ac_outfile=conftest.$ac_objext 8410echo "$lt_simple_link_test_code" >conftest.$ac_ext 8411eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8412_lt_linker_boilerplate=`cat conftest.err` 8413$RM -r conftest* 8414 8415 8416## CAVEAT EMPTOR: 8417## There is no encapsulation within the following macros, do not change 8418## the running order or otherwise move them around unless you know exactly 8419## what you are doing... 8420if test -n "$compiler"; then 8421 8422lt_prog_compiler_no_builtin_flag= 8423 8424if test "$GCC" = yes; then 8425 case $cc_basename in 8426 nvcc*) 8427 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8428 *) 8429 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8430 esac 8431 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8433$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8434if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8435 $as_echo_n "(cached) " >&6 8436else 8437 lt_cv_prog_compiler_rtti_exceptions=no 8438 ac_outfile=conftest.$ac_objext 8439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8440 lt_compiler_flag="-fno-rtti -fno-exceptions" 8441 # Insert the option either (1) after the last *FLAGS variable, or 8442 # (2) before a word containing "conftest.", or (3) at the end. 8443 # Note that $ac_compile itself does not contain backslashes and begins 8444 # with a dollar sign (not a hyphen), so the echo should work correctly. 8445 # The option is referenced via a variable to avoid confusing sed. 8446 lt_compile=`echo "$ac_compile" | $SED \ 8447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8449 -e 's:$: $lt_compiler_flag:'` 8450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8451 (eval "$lt_compile" 2>conftest.err) 8452 ac_status=$? 8453 cat conftest.err >&5 8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8455 if (exit $ac_status) && test -s "$ac_outfile"; then 8456 # The compiler can only warn and ignore the option if not recognized 8457 # So say no if there are warnings other than the usual output. 8458 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8460 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8461 lt_cv_prog_compiler_rtti_exceptions=yes 8462 fi 8463 fi 8464 $RM conftest* 8465 8466fi 8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8468$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8469 8470if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8471 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8472else 8473 : 8474fi 8475 8476fi 8477 8478 8479 8480 8481 8482 8483 lt_prog_compiler_wl= 8484lt_prog_compiler_pic= 8485lt_prog_compiler_static= 8486 8487 8488 if test "$GCC" = yes; then 8489 lt_prog_compiler_wl='-Wl,' 8490 lt_prog_compiler_static='-static' 8491 8492 case $host_os in 8493 aix*) 8494 # All AIX code is PIC. 8495 if test "$host_cpu" = ia64; then 8496 # AIX 5 now supports IA64 processor 8497 lt_prog_compiler_static='-Bstatic' 8498 fi 8499 ;; 8500 8501 amigaos*) 8502 case $host_cpu in 8503 powerpc) 8504 # see comment about AmigaOS4 .so support 8505 lt_prog_compiler_pic='-fPIC' 8506 ;; 8507 m68k) 8508 # FIXME: we need at least 68020 code to build shared libraries, but 8509 # adding the `-m68020' flag to GCC prevents building anything better, 8510 # like `-m68040'. 8511 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8512 ;; 8513 esac 8514 ;; 8515 8516 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8517 # PIC is the default for these OSes. 8518 ;; 8519 8520 mingw* | cygwin* | pw32* | os2* | cegcc*) 8521 # This hack is so that the source file can tell whether it is being 8522 # built for inclusion in a dll (and should export symbols for example). 8523 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8524 # (--disable-auto-import) libraries 8525 lt_prog_compiler_pic='-DDLL_EXPORT' 8526 ;; 8527 8528 darwin* | rhapsody*) 8529 # PIC is the default on this platform 8530 # Common symbols not allowed in MH_DYLIB files 8531 lt_prog_compiler_pic='-fno-common' 8532 ;; 8533 8534 haiku*) 8535 # PIC is the default for Haiku. 8536 # The "-static" flag exists, but is broken. 8537 lt_prog_compiler_static= 8538 ;; 8539 8540 hpux*) 8541 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8542 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8543 # sets the default TLS model and affects inlining. 8544 case $host_cpu in 8545 hppa*64*) 8546 # +Z the default 8547 ;; 8548 *) 8549 lt_prog_compiler_pic='-fPIC' 8550 ;; 8551 esac 8552 ;; 8553 8554 interix[3-9]*) 8555 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8556 # Instead, we relocate shared libraries at runtime. 8557 ;; 8558 8559 msdosdjgpp*) 8560 # Just because we use GCC doesn't mean we suddenly get shared libraries 8561 # on systems that don't support them. 8562 lt_prog_compiler_can_build_shared=no 8563 enable_shared=no 8564 ;; 8565 8566 *nto* | *qnx*) 8567 # QNX uses GNU C++, but need to define -shared option too, otherwise 8568 # it will coredump. 8569 lt_prog_compiler_pic='-fPIC -shared' 8570 ;; 8571 8572 sysv4*MP*) 8573 if test -d /usr/nec; then 8574 lt_prog_compiler_pic=-Kconform_pic 8575 fi 8576 ;; 8577 8578 *) 8579 lt_prog_compiler_pic='-fPIC' 8580 ;; 8581 esac 8582 8583 case $cc_basename in 8584 nvcc*) # Cuda Compiler Driver 2.2 8585 lt_prog_compiler_wl='-Xlinker ' 8586 lt_prog_compiler_pic='-Xcompiler -fPIC' 8587 ;; 8588 esac 8589 else 8590 # PORTME Check for flag to pass linker flags through the system compiler. 8591 case $host_os in 8592 aix*) 8593 lt_prog_compiler_wl='-Wl,' 8594 if test "$host_cpu" = ia64; then 8595 # AIX 5 now supports IA64 processor 8596 lt_prog_compiler_static='-Bstatic' 8597 else 8598 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8599 fi 8600 ;; 8601 8602 mingw* | cygwin* | pw32* | os2* | cegcc*) 8603 # This hack is so that the source file can tell whether it is being 8604 # built for inclusion in a dll (and should export symbols for example). 8605 lt_prog_compiler_pic='-DDLL_EXPORT' 8606 ;; 8607 8608 hpux9* | hpux10* | hpux11*) 8609 lt_prog_compiler_wl='-Wl,' 8610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8611 # not for PA HP-UX. 8612 case $host_cpu in 8613 hppa*64*|ia64*) 8614 # +Z the default 8615 ;; 8616 *) 8617 lt_prog_compiler_pic='+Z' 8618 ;; 8619 esac 8620 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8621 lt_prog_compiler_static='${wl}-a ${wl}archive' 8622 ;; 8623 8624 irix5* | irix6* | nonstopux*) 8625 lt_prog_compiler_wl='-Wl,' 8626 # PIC (with -KPIC) is the default. 8627 lt_prog_compiler_static='-non_shared' 8628 ;; 8629 8630 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8631 case $cc_basename in 8632 # old Intel for x86_64 which still supported -KPIC. 8633 ecc*) 8634 lt_prog_compiler_wl='-Wl,' 8635 lt_prog_compiler_pic='-KPIC' 8636 lt_prog_compiler_static='-static' 8637 ;; 8638 # icc used to be incompatible with GCC. 8639 # ICC 10 doesn't accept -KPIC any more. 8640 icc* | ifort*) 8641 lt_prog_compiler_wl='-Wl,' 8642 lt_prog_compiler_pic='-fPIC' 8643 lt_prog_compiler_static='-static' 8644 ;; 8645 # Lahey Fortran 8.1. 8646 lf95*) 8647 lt_prog_compiler_wl='-Wl,' 8648 lt_prog_compiler_pic='--shared' 8649 lt_prog_compiler_static='--static' 8650 ;; 8651 nagfor*) 8652 # NAG Fortran compiler 8653 lt_prog_compiler_wl='-Wl,-Wl,,' 8654 lt_prog_compiler_pic='-PIC' 8655 lt_prog_compiler_static='-Bstatic' 8656 ;; 8657 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8658 # Portland Group compilers (*not* the Pentium gcc compiler, 8659 # which looks to be a dead project) 8660 lt_prog_compiler_wl='-Wl,' 8661 lt_prog_compiler_pic='-fpic' 8662 lt_prog_compiler_static='-Bstatic' 8663 ;; 8664 ccc*) 8665 lt_prog_compiler_wl='-Wl,' 8666 # All Alpha code is PIC. 8667 lt_prog_compiler_static='-non_shared' 8668 ;; 8669 xl* | bgxl* | bgf* | mpixl*) 8670 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8671 lt_prog_compiler_wl='-Wl,' 8672 lt_prog_compiler_pic='-qpic' 8673 lt_prog_compiler_static='-qstaticlink' 8674 ;; 8675 *) 8676 case `$CC -V 2>&1 | sed 5q` in 8677 *Sun\ F* | *Sun*Fortran*) 8678 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8679 lt_prog_compiler_pic='-KPIC' 8680 lt_prog_compiler_static='-Bstatic' 8681 lt_prog_compiler_wl='' 8682 ;; 8683 *Sun\ C*) 8684 # Sun C 5.9 8685 lt_prog_compiler_pic='-KPIC' 8686 lt_prog_compiler_static='-Bstatic' 8687 lt_prog_compiler_wl='-Wl,' 8688 ;; 8689 esac 8690 ;; 8691 esac 8692 ;; 8693 8694 newsos6) 8695 lt_prog_compiler_pic='-KPIC' 8696 lt_prog_compiler_static='-Bstatic' 8697 ;; 8698 8699 *nto* | *qnx*) 8700 # QNX uses GNU C++, but need to define -shared option too, otherwise 8701 # it will coredump. 8702 lt_prog_compiler_pic='-fPIC -shared' 8703 ;; 8704 8705 osf3* | osf4* | osf5*) 8706 lt_prog_compiler_wl='-Wl,' 8707 # All OSF/1 code is PIC. 8708 lt_prog_compiler_static='-non_shared' 8709 ;; 8710 8711 rdos*) 8712 lt_prog_compiler_static='-non_shared' 8713 ;; 8714 8715 solaris*) 8716 lt_prog_compiler_pic='-KPIC' 8717 lt_prog_compiler_static='-Bstatic' 8718 case $cc_basename in 8719 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8720 lt_prog_compiler_wl='-Qoption ld ';; 8721 *) 8722 lt_prog_compiler_wl='-Wl,';; 8723 esac 8724 ;; 8725 8726 sunos4*) 8727 lt_prog_compiler_wl='-Qoption ld ' 8728 lt_prog_compiler_pic='-PIC' 8729 lt_prog_compiler_static='-Bstatic' 8730 ;; 8731 8732 sysv4 | sysv4.2uw2* | sysv4.3*) 8733 lt_prog_compiler_wl='-Wl,' 8734 lt_prog_compiler_pic='-KPIC' 8735 lt_prog_compiler_static='-Bstatic' 8736 ;; 8737 8738 sysv4*MP*) 8739 if test -d /usr/nec ;then 8740 lt_prog_compiler_pic='-Kconform_pic' 8741 lt_prog_compiler_static='-Bstatic' 8742 fi 8743 ;; 8744 8745 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8746 lt_prog_compiler_wl='-Wl,' 8747 lt_prog_compiler_pic='-KPIC' 8748 lt_prog_compiler_static='-Bstatic' 8749 ;; 8750 8751 unicos*) 8752 lt_prog_compiler_wl='-Wl,' 8753 lt_prog_compiler_can_build_shared=no 8754 ;; 8755 8756 uts4*) 8757 lt_prog_compiler_pic='-pic' 8758 lt_prog_compiler_static='-Bstatic' 8759 ;; 8760 8761 *) 8762 lt_prog_compiler_can_build_shared=no 8763 ;; 8764 esac 8765 fi 8766 8767case $host_os in 8768 # For platforms which do not support PIC, -DPIC is meaningless: 8769 *djgpp*) 8770 lt_prog_compiler_pic= 8771 ;; 8772 *) 8773 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8774 ;; 8775esac 8776 8777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8778$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8779if ${lt_cv_prog_compiler_pic+:} false; then : 8780 $as_echo_n "(cached) " >&6 8781else 8782 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8783fi 8784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8785$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8786lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8787 8788# 8789# Check to make sure the PIC flag actually works. 8790# 8791if test -n "$lt_prog_compiler_pic"; then 8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8793$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8794if ${lt_cv_prog_compiler_pic_works+:} false; then : 8795 $as_echo_n "(cached) " >&6 8796else 8797 lt_cv_prog_compiler_pic_works=no 8798 ac_outfile=conftest.$ac_objext 8799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8800 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8801 # Insert the option either (1) after the last *FLAGS variable, or 8802 # (2) before a word containing "conftest.", or (3) at the end. 8803 # Note that $ac_compile itself does not contain backslashes and begins 8804 # with a dollar sign (not a hyphen), so the echo should work correctly. 8805 # The option is referenced via a variable to avoid confusing sed. 8806 lt_compile=`echo "$ac_compile" | $SED \ 8807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8809 -e 's:$: $lt_compiler_flag:'` 8810 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8811 (eval "$lt_compile" 2>conftest.err) 8812 ac_status=$? 8813 cat conftest.err >&5 8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8815 if (exit $ac_status) && test -s "$ac_outfile"; then 8816 # The compiler can only warn and ignore the option if not recognized 8817 # So say no if there are warnings other than the usual output. 8818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8820 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8821 lt_cv_prog_compiler_pic_works=yes 8822 fi 8823 fi 8824 $RM conftest* 8825 8826fi 8827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8828$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8829 8830if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8831 case $lt_prog_compiler_pic in 8832 "" | " "*) ;; 8833 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8834 esac 8835else 8836 lt_prog_compiler_pic= 8837 lt_prog_compiler_can_build_shared=no 8838fi 8839 8840fi 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852# 8853# Check to make sure the static flag actually works. 8854# 8855wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8857$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8858if ${lt_cv_prog_compiler_static_works+:} false; then : 8859 $as_echo_n "(cached) " >&6 8860else 8861 lt_cv_prog_compiler_static_works=no 8862 save_LDFLAGS="$LDFLAGS" 8863 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8864 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8865 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8866 # The linker can only warn and ignore the option if not recognized 8867 # So say no if there are warnings 8868 if test -s conftest.err; then 8869 # Append any errors to the config.log. 8870 cat conftest.err 1>&5 8871 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8873 if diff conftest.exp conftest.er2 >/dev/null; then 8874 lt_cv_prog_compiler_static_works=yes 8875 fi 8876 else 8877 lt_cv_prog_compiler_static_works=yes 8878 fi 8879 fi 8880 $RM -r conftest* 8881 LDFLAGS="$save_LDFLAGS" 8882 8883fi 8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8885$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8886 8887if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8888 : 8889else 8890 lt_prog_compiler_static= 8891fi 8892 8893 8894 8895 8896 8897 8898 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8900$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8901if ${lt_cv_prog_compiler_c_o+:} false; then : 8902 $as_echo_n "(cached) " >&6 8903else 8904 lt_cv_prog_compiler_c_o=no 8905 $RM -r conftest 2>/dev/null 8906 mkdir conftest 8907 cd conftest 8908 mkdir out 8909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8910 8911 lt_compiler_flag="-o out/conftest2.$ac_objext" 8912 # Insert the option either (1) after the last *FLAGS variable, or 8913 # (2) before a word containing "conftest.", or (3) at the end. 8914 # Note that $ac_compile itself does not contain backslashes and begins 8915 # with a dollar sign (not a hyphen), so the echo should work correctly. 8916 lt_compile=`echo "$ac_compile" | $SED \ 8917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8919 -e 's:$: $lt_compiler_flag:'` 8920 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8921 (eval "$lt_compile" 2>out/conftest.err) 8922 ac_status=$? 8923 cat out/conftest.err >&5 8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8925 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8926 then 8927 # The compiler can only warn and ignore the option if not recognized 8928 # So say no if there are warnings 8929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8930 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8931 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8932 lt_cv_prog_compiler_c_o=yes 8933 fi 8934 fi 8935 chmod u+w . 2>&5 8936 $RM conftest* 8937 # SGI C++ compiler will create directory out/ii_files/ for 8938 # template instantiation 8939 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8940 $RM out/* && rmdir out 8941 cd .. 8942 $RM -r conftest 8943 $RM conftest* 8944 8945fi 8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8947$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8948 8949 8950 8951 8952 8953 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8955$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8956if ${lt_cv_prog_compiler_c_o+:} false; then : 8957 $as_echo_n "(cached) " >&6 8958else 8959 lt_cv_prog_compiler_c_o=no 8960 $RM -r conftest 2>/dev/null 8961 mkdir conftest 8962 cd conftest 8963 mkdir out 8964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8965 8966 lt_compiler_flag="-o out/conftest2.$ac_objext" 8967 # Insert the option either (1) after the last *FLAGS variable, or 8968 # (2) before a word containing "conftest.", or (3) at the end. 8969 # Note that $ac_compile itself does not contain backslashes and begins 8970 # with a dollar sign (not a hyphen), so the echo should work correctly. 8971 lt_compile=`echo "$ac_compile" | $SED \ 8972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8974 -e 's:$: $lt_compiler_flag:'` 8975 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8976 (eval "$lt_compile" 2>out/conftest.err) 8977 ac_status=$? 8978 cat out/conftest.err >&5 8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8980 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8981 then 8982 # The compiler can only warn and ignore the option if not recognized 8983 # So say no if there are warnings 8984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8985 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8986 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8987 lt_cv_prog_compiler_c_o=yes 8988 fi 8989 fi 8990 chmod u+w . 2>&5 8991 $RM conftest* 8992 # SGI C++ compiler will create directory out/ii_files/ for 8993 # template instantiation 8994 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8995 $RM out/* && rmdir out 8996 cd .. 8997 $RM -r conftest 8998 $RM conftest* 8999 9000fi 9001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9002$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9003 9004 9005 9006 9007hard_links="nottested" 9008if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9009 # do not overwrite the value of need_locks provided by the user 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9011$as_echo_n "checking if we can lock with hard links... " >&6; } 9012 hard_links=yes 9013 $RM conftest* 9014 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9015 touch conftest.a 9016 ln conftest.a conftest.b 2>&5 || hard_links=no 9017 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9019$as_echo "$hard_links" >&6; } 9020 if test "$hard_links" = no; then 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9022$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9023 need_locks=warn 9024 fi 9025else 9026 need_locks=no 9027fi 9028 9029 9030 9031 9032 9033 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9035$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9036 9037 runpath_var= 9038 allow_undefined_flag= 9039 always_export_symbols=no 9040 archive_cmds= 9041 archive_expsym_cmds= 9042 compiler_needs_object=no 9043 enable_shared_with_static_runtimes=no 9044 export_dynamic_flag_spec= 9045 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9046 hardcode_automatic=no 9047 hardcode_direct=no 9048 hardcode_direct_absolute=no 9049 hardcode_libdir_flag_spec= 9050 hardcode_libdir_flag_spec_ld= 9051 hardcode_libdir_separator= 9052 hardcode_minus_L=no 9053 hardcode_shlibpath_var=unsupported 9054 inherit_rpath=no 9055 link_all_deplibs=unknown 9056 module_cmds= 9057 module_expsym_cmds= 9058 old_archive_from_new_cmds= 9059 old_archive_from_expsyms_cmds= 9060 thread_safe_flag_spec= 9061 whole_archive_flag_spec= 9062 # include_expsyms should be a list of space-separated symbols to be *always* 9063 # included in the symbol list 9064 include_expsyms= 9065 # exclude_expsyms can be an extended regexp of symbols to exclude 9066 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9067 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9068 # as well as any symbol that contains `d'. 9069 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9070 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9071 # platforms (ab)use it in PIC code, but their linkers get confused if 9072 # the symbol is explicitly referenced. Since portable code cannot 9073 # rely on this symbol name, it's probably fine to never include it in 9074 # preloaded symbol tables. 9075 # Exclude shared library initialization/finalization symbols. 9076 extract_expsyms_cmds= 9077 9078 case $host_os in 9079 cygwin* | mingw* | pw32* | cegcc*) 9080 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9081 # When not using gcc, we currently assume that we are using 9082 # Microsoft Visual C++. 9083 if test "$GCC" != yes; then 9084 with_gnu_ld=no 9085 fi 9086 ;; 9087 interix*) 9088 # we just hope/assume this is gcc and not c89 (= MSVC++) 9089 with_gnu_ld=yes 9090 ;; 9091 openbsd*) 9092 with_gnu_ld=no 9093 ;; 9094 esac 9095 9096 ld_shlibs=yes 9097 9098 # On some targets, GNU ld is compatible enough with the native linker 9099 # that we're better off using the native interface for both. 9100 lt_use_gnu_ld_interface=no 9101 if test "$with_gnu_ld" = yes; then 9102 case $host_os in 9103 aix*) 9104 # The AIX port of GNU ld has always aspired to compatibility 9105 # with the native linker. However, as the warning in the GNU ld 9106 # block says, versions before 2.19.5* couldn't really create working 9107 # shared libraries, regardless of the interface used. 9108 case `$LD -v 2>&1` in 9109 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9110 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9111 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9112 *) 9113 lt_use_gnu_ld_interface=yes 9114 ;; 9115 esac 9116 ;; 9117 *) 9118 lt_use_gnu_ld_interface=yes 9119 ;; 9120 esac 9121 fi 9122 9123 if test "$lt_use_gnu_ld_interface" = yes; then 9124 # If archive_cmds runs LD, not CC, wlarc should be empty 9125 wlarc='${wl}' 9126 9127 # Set some defaults for GNU ld with shared library support. These 9128 # are reset later if shared libraries are not supported. Putting them 9129 # here allows them to be overridden if necessary. 9130 runpath_var=LD_RUN_PATH 9131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9132 export_dynamic_flag_spec='${wl}--export-dynamic' 9133 # ancient GNU ld didn't support --whole-archive et. al. 9134 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9135 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9136 else 9137 whole_archive_flag_spec= 9138 fi 9139 supports_anon_versioning=no 9140 case `$LD -v 2>&1` in 9141 *GNU\ gold*) supports_anon_versioning=yes ;; 9142 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9143 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9144 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9145 *\ 2.11.*) ;; # other 2.11 versions 9146 *) supports_anon_versioning=yes ;; 9147 esac 9148 9149 # See if GNU ld supports shared libraries. 9150 case $host_os in 9151 aix[3-9]*) 9152 # On AIX/PPC, the GNU linker is very broken 9153 if test "$host_cpu" != ia64; then 9154 ld_shlibs=no 9155 cat <<_LT_EOF 1>&2 9156 9157*** Warning: the GNU linker, at least up to release 2.19, is reported 9158*** to be unable to reliably create shared libraries on AIX. 9159*** Therefore, libtool is disabling shared libraries support. If you 9160*** really care for shared libraries, you may want to install binutils 9161*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9162*** You will then need to restart the configuration process. 9163 9164_LT_EOF 9165 fi 9166 ;; 9167 9168 amigaos*) 9169 case $host_cpu in 9170 powerpc) 9171 # see comment about AmigaOS4 .so support 9172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9173 archive_expsym_cmds='' 9174 ;; 9175 m68k) 9176 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)' 9177 hardcode_libdir_flag_spec='-L$libdir' 9178 hardcode_minus_L=yes 9179 ;; 9180 esac 9181 ;; 9182 9183 beos*) 9184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9185 allow_undefined_flag=unsupported 9186 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9187 # support --undefined. This deserves some investigation. FIXME 9188 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9189 else 9190 ld_shlibs=no 9191 fi 9192 ;; 9193 9194 cygwin* | mingw* | pw32* | cegcc*) 9195 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9196 # as there is no search path for DLLs. 9197 hardcode_libdir_flag_spec='-L$libdir' 9198 export_dynamic_flag_spec='${wl}--export-all-symbols' 9199 allow_undefined_flag=unsupported 9200 always_export_symbols=no 9201 enable_shared_with_static_runtimes=yes 9202 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' 9203 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9204 9205 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9207 # If the export-symbols file already is a .def file (1st line 9208 # is EXPORTS), use it as is; otherwise, prepend... 9209 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9210 cp $export_symbols $output_objdir/$soname.def; 9211 else 9212 echo EXPORTS > $output_objdir/$soname.def; 9213 cat $export_symbols >> $output_objdir/$soname.def; 9214 fi~ 9215 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9216 else 9217 ld_shlibs=no 9218 fi 9219 ;; 9220 9221 haiku*) 9222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9223 link_all_deplibs=yes 9224 ;; 9225 9226 interix[3-9]*) 9227 hardcode_direct=no 9228 hardcode_shlibpath_var=no 9229 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9230 export_dynamic_flag_spec='${wl}-E' 9231 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9232 # Instead, shared libraries are loaded at an image base (0x10000000 by 9233 # default) and relocated if they conflict, which is a slow very memory 9234 # consuming and fragmenting process. To avoid this, we pick a random, 9235 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9236 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9237 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9238 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' 9239 ;; 9240 9241 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9242 tmp_diet=no 9243 if test "$host_os" = linux-dietlibc; then 9244 case $cc_basename in 9245 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9246 esac 9247 fi 9248 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9249 && test "$tmp_diet" = no 9250 then 9251 tmp_addflag=' $pic_flag' 9252 tmp_sharedflag='-shared' 9253 case $cc_basename,$host_cpu in 9254 pgcc*) # Portland Group C compiler 9255 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' 9256 tmp_addflag=' $pic_flag' 9257 ;; 9258 pgf77* | pgf90* | pgf95* | pgfortran*) 9259 # Portland Group f77 and f90 compilers 9260 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' 9261 tmp_addflag=' $pic_flag -Mnomain' ;; 9262 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9263 tmp_addflag=' -i_dynamic' ;; 9264 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9265 tmp_addflag=' -i_dynamic -nofor_main' ;; 9266 ifc* | ifort*) # Intel Fortran compiler 9267 tmp_addflag=' -nofor_main' ;; 9268 lf95*) # Lahey Fortran 8.1 9269 whole_archive_flag_spec= 9270 tmp_sharedflag='--shared' ;; 9271 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9272 tmp_sharedflag='-qmkshrobj' 9273 tmp_addflag= ;; 9274 nvcc*) # Cuda Compiler Driver 2.2 9275 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' 9276 compiler_needs_object=yes 9277 ;; 9278 esac 9279 case `$CC -V 2>&1 | sed 5q` in 9280 *Sun\ C*) # Sun C 5.9 9281 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' 9282 compiler_needs_object=yes 9283 tmp_sharedflag='-G' ;; 9284 *Sun\ F*) # Sun Fortran 8.3 9285 tmp_sharedflag='-G' ;; 9286 esac 9287 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9288 9289 if test "x$supports_anon_versioning" = xyes; then 9290 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9292 echo "local: *; };" >> $output_objdir/$libname.ver~ 9293 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9294 fi 9295 9296 case $cc_basename in 9297 xlf* | bgf* | bgxlf* | mpixlf*) 9298 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9299 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9300 hardcode_libdir_flag_spec= 9301 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9302 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9303 if test "x$supports_anon_versioning" = xyes; then 9304 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9305 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9306 echo "local: *; };" >> $output_objdir/$libname.ver~ 9307 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9308 fi 9309 ;; 9310 esac 9311 else 9312 ld_shlibs=no 9313 fi 9314 ;; 9315 9316 netbsd*) 9317 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9318 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9319 wlarc= 9320 else 9321 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9322 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9323 fi 9324 ;; 9325 9326 solaris*) 9327 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9328 ld_shlibs=no 9329 cat <<_LT_EOF 1>&2 9330 9331*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9332*** create shared libraries on Solaris systems. Therefore, libtool 9333*** is disabling shared libraries support. We urge you to upgrade GNU 9334*** binutils to release 2.9.1 or newer. Another option is to modify 9335*** your PATH or compiler configuration so that the native linker is 9336*** used, and then restart. 9337 9338_LT_EOF 9339 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9340 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9341 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9342 else 9343 ld_shlibs=no 9344 fi 9345 ;; 9346 9347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9348 case `$LD -v 2>&1` in 9349 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9350 ld_shlibs=no 9351 cat <<_LT_EOF 1>&2 9352 9353*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9354*** reliably create shared libraries on SCO systems. Therefore, libtool 9355*** is disabling shared libraries support. We urge you to upgrade GNU 9356*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9357*** your PATH or compiler configuration so that the native linker is 9358*** used, and then restart. 9359 9360_LT_EOF 9361 ;; 9362 *) 9363 # For security reasons, it is highly recommended that you always 9364 # use absolute paths for naming shared libraries, and exclude the 9365 # DT_RUNPATH tag from executables and libraries. But doing so 9366 # requires that you compile everything twice, which is a pain. 9367 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9371 else 9372 ld_shlibs=no 9373 fi 9374 ;; 9375 esac 9376 ;; 9377 9378 sunos4*) 9379 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9380 wlarc= 9381 hardcode_direct=yes 9382 hardcode_shlibpath_var=no 9383 ;; 9384 9385 *) 9386 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9387 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9388 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9389 else 9390 ld_shlibs=no 9391 fi 9392 ;; 9393 esac 9394 9395 if test "$ld_shlibs" = no; then 9396 runpath_var= 9397 hardcode_libdir_flag_spec= 9398 export_dynamic_flag_spec= 9399 whole_archive_flag_spec= 9400 fi 9401 else 9402 # PORTME fill in a description of your system's linker (not GNU ld) 9403 case $host_os in 9404 aix3*) 9405 allow_undefined_flag=unsupported 9406 always_export_symbols=yes 9407 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' 9408 # Note: this linker hardcodes the directories in LIBPATH if there 9409 # are no directories specified by -L. 9410 hardcode_minus_L=yes 9411 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9412 # Neither direct hardcoding nor static linking is supported with a 9413 # broken collect2. 9414 hardcode_direct=unsupported 9415 fi 9416 ;; 9417 9418 aix[4-9]*) 9419 if test "$host_cpu" = ia64; then 9420 # On IA64, the linker does run time linking by default, so we don't 9421 # have to do anything special. 9422 aix_use_runtimelinking=no 9423 exp_sym_flag='-Bexport' 9424 no_entry_flag="" 9425 else 9426 # If we're using GNU nm, then we don't want the "-C" option. 9427 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9428 # Also, AIX nm treats weak defined symbols like other global 9429 # defined symbols, whereas GNU nm marks them as "W". 9430 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9431 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' 9432 else 9433 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' 9434 fi 9435 aix_use_runtimelinking=no 9436 9437 # Test if we are trying to use run time linking or normal 9438 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9439 # need to do runtime linking. 9440 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9441 for ld_flag in $LDFLAGS; do 9442 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9443 aix_use_runtimelinking=yes 9444 break 9445 fi 9446 done 9447 ;; 9448 esac 9449 9450 exp_sym_flag='-bexport' 9451 no_entry_flag='-bnoentry' 9452 fi 9453 9454 # When large executables or shared objects are built, AIX ld can 9455 # have problems creating the table of contents. If linking a library 9456 # or program results in "error TOC overflow" add -mminimal-toc to 9457 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9458 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9459 9460 archive_cmds='' 9461 hardcode_direct=yes 9462 hardcode_direct_absolute=yes 9463 hardcode_libdir_separator=':' 9464 link_all_deplibs=yes 9465 file_list_spec='${wl}-f,' 9466 9467 if test "$GCC" = yes; then 9468 case $host_os in aix4.[012]|aix4.[012].*) 9469 # We only want to do this on AIX 4.2 and lower, the check 9470 # below for broken collect2 doesn't work under 4.3+ 9471 collect2name=`${CC} -print-prog-name=collect2` 9472 if test -f "$collect2name" && 9473 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9474 then 9475 # We have reworked collect2 9476 : 9477 else 9478 # We have old collect2 9479 hardcode_direct=unsupported 9480 # It fails to find uninstalled libraries when the uninstalled 9481 # path is not listed in the libpath. Setting hardcode_minus_L 9482 # to unsupported forces relinking 9483 hardcode_minus_L=yes 9484 hardcode_libdir_flag_spec='-L$libdir' 9485 hardcode_libdir_separator= 9486 fi 9487 ;; 9488 esac 9489 shared_flag='-shared' 9490 if test "$aix_use_runtimelinking" = yes; then 9491 shared_flag="$shared_flag "'${wl}-G' 9492 fi 9493 else 9494 # not using gcc 9495 if test "$host_cpu" = ia64; then 9496 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9497 # chokes on -Wl,-G. The following line is correct: 9498 shared_flag='-G' 9499 else 9500 if test "$aix_use_runtimelinking" = yes; then 9501 shared_flag='${wl}-G' 9502 else 9503 shared_flag='${wl}-bM:SRE' 9504 fi 9505 fi 9506 fi 9507 9508 export_dynamic_flag_spec='${wl}-bexpall' 9509 # It seems that -bexpall does not export symbols beginning with 9510 # underscore (_), so it is better to generate a list of symbols to export. 9511 always_export_symbols=yes 9512 if test "$aix_use_runtimelinking" = yes; then 9513 # Warning - without using the other runtime loading flags (-brtl), 9514 # -berok will link without error, but may produce a broken library. 9515 allow_undefined_flag='-berok' 9516 # Determine the default libpath from the value encoded in an 9517 # empty executable. 9518 if test "${lt_cv_aix_libpath+set}" = set; then 9519 aix_libpath=$lt_cv_aix_libpath 9520else 9521 if ${lt_cv_aix_libpath_+:} false; then : 9522 $as_echo_n "(cached) " >&6 9523else 9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9525/* end confdefs.h. */ 9526 9527int 9528main () 9529{ 9530 9531 ; 9532 return 0; 9533} 9534_ACEOF 9535if ac_fn_c_try_link "$LINENO"; then : 9536 9537 lt_aix_libpath_sed=' 9538 /Import File Strings/,/^$/ { 9539 /^0/ { 9540 s/^0 *\([^ ]*\) *$/\1/ 9541 p 9542 } 9543 }' 9544 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9545 # Check for a 64-bit object if we didn't find anything. 9546 if test -z "$lt_cv_aix_libpath_"; then 9547 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9548 fi 9549fi 9550rm -f core conftest.err conftest.$ac_objext \ 9551 conftest$ac_exeext conftest.$ac_ext 9552 if test -z "$lt_cv_aix_libpath_"; then 9553 lt_cv_aix_libpath_="/usr/lib:/lib" 9554 fi 9555 9556fi 9557 9558 aix_libpath=$lt_cv_aix_libpath_ 9559fi 9560 9561 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9562 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" 9563 else 9564 if test "$host_cpu" = ia64; then 9565 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9566 allow_undefined_flag="-z nodefs" 9567 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" 9568 else 9569 # Determine the default libpath from the value encoded in an 9570 # empty executable. 9571 if test "${lt_cv_aix_libpath+set}" = set; then 9572 aix_libpath=$lt_cv_aix_libpath 9573else 9574 if ${lt_cv_aix_libpath_+:} false; then : 9575 $as_echo_n "(cached) " >&6 9576else 9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578/* end confdefs.h. */ 9579 9580int 9581main () 9582{ 9583 9584 ; 9585 return 0; 9586} 9587_ACEOF 9588if ac_fn_c_try_link "$LINENO"; then : 9589 9590 lt_aix_libpath_sed=' 9591 /Import File Strings/,/^$/ { 9592 /^0/ { 9593 s/^0 *\([^ ]*\) *$/\1/ 9594 p 9595 } 9596 }' 9597 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9598 # Check for a 64-bit object if we didn't find anything. 9599 if test -z "$lt_cv_aix_libpath_"; then 9600 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9601 fi 9602fi 9603rm -f core conftest.err conftest.$ac_objext \ 9604 conftest$ac_exeext conftest.$ac_ext 9605 if test -z "$lt_cv_aix_libpath_"; then 9606 lt_cv_aix_libpath_="/usr/lib:/lib" 9607 fi 9608 9609fi 9610 9611 aix_libpath=$lt_cv_aix_libpath_ 9612fi 9613 9614 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9615 # Warning - without using the other run time loading flags, 9616 # -berok will link without error, but may produce a broken library. 9617 no_undefined_flag=' ${wl}-bernotok' 9618 allow_undefined_flag=' ${wl}-berok' 9619 if test "$with_gnu_ld" = yes; then 9620 # We only use this code for GNU lds that support --whole-archive. 9621 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9622 else 9623 # Exported symbols can be pulled into shared objects from archives 9624 whole_archive_flag_spec='$convenience' 9625 fi 9626 archive_cmds_need_lc=yes 9627 # This is similar to how AIX traditionally builds its shared libraries. 9628 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' 9629 fi 9630 fi 9631 ;; 9632 9633 amigaos*) 9634 case $host_cpu in 9635 powerpc) 9636 # see comment about AmigaOS4 .so support 9637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9638 archive_expsym_cmds='' 9639 ;; 9640 m68k) 9641 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)' 9642 hardcode_libdir_flag_spec='-L$libdir' 9643 hardcode_minus_L=yes 9644 ;; 9645 esac 9646 ;; 9647 9648 bsdi[45]*) 9649 export_dynamic_flag_spec=-rdynamic 9650 ;; 9651 9652 cygwin* | mingw* | pw32* | cegcc*) 9653 # When not using gcc, we currently assume that we are using 9654 # Microsoft Visual C++. 9655 # hardcode_libdir_flag_spec is actually meaningless, as there is 9656 # no search path for DLLs. 9657 case $cc_basename in 9658 cl*) 9659 # Native MSVC 9660 hardcode_libdir_flag_spec=' ' 9661 allow_undefined_flag=unsupported 9662 always_export_symbols=yes 9663 file_list_spec='@' 9664 # Tell ltmain to make .lib files, not .a files. 9665 libext=lib 9666 # Tell ltmain to make .dll files, not .so files. 9667 shrext_cmds=".dll" 9668 # FIXME: Setting linknames here is a bad hack. 9669 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9670 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9671 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9672 else 9673 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9674 fi~ 9675 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9676 linknames=' 9677 # The linker will not automatically build a static lib if we build a DLL. 9678 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9679 enable_shared_with_static_runtimes=yes 9680 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9681 # Don't use ranlib 9682 old_postinstall_cmds='chmod 644 $oldlib' 9683 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9684 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9685 case $lt_outputfile in 9686 *.exe|*.EXE) ;; 9687 *) 9688 lt_outputfile="$lt_outputfile.exe" 9689 lt_tool_outputfile="$lt_tool_outputfile.exe" 9690 ;; 9691 esac~ 9692 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9693 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9694 $RM "$lt_outputfile.manifest"; 9695 fi' 9696 ;; 9697 *) 9698 # Assume MSVC wrapper 9699 hardcode_libdir_flag_spec=' ' 9700 allow_undefined_flag=unsupported 9701 # Tell ltmain to make .lib files, not .a files. 9702 libext=lib 9703 # Tell ltmain to make .dll files, not .so files. 9704 shrext_cmds=".dll" 9705 # FIXME: Setting linknames here is a bad hack. 9706 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9707 # The linker will automatically build a .lib file if we build a DLL. 9708 old_archive_from_new_cmds='true' 9709 # FIXME: Should let the user specify the lib program. 9710 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9711 enable_shared_with_static_runtimes=yes 9712 ;; 9713 esac 9714 ;; 9715 9716 darwin* | rhapsody*) 9717 9718 9719 archive_cmds_need_lc=no 9720 hardcode_direct=no 9721 hardcode_automatic=yes 9722 hardcode_shlibpath_var=unsupported 9723 if test "$lt_cv_ld_force_load" = "yes"; then 9724 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\"`' 9725 else 9726 whole_archive_flag_spec='' 9727 fi 9728 link_all_deplibs=yes 9729 allow_undefined_flag="$_lt_dar_allow_undefined" 9730 case $cc_basename in 9731 ifort*) _lt_dar_can_shared=yes ;; 9732 *) _lt_dar_can_shared=$GCC ;; 9733 esac 9734 if test "$_lt_dar_can_shared" = "yes"; then 9735 output_verbose_link_cmd=func_echo_all 9736 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9737 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9738 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}" 9739 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}" 9740 9741 else 9742 ld_shlibs=no 9743 fi 9744 9745 ;; 9746 9747 dgux*) 9748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9749 hardcode_libdir_flag_spec='-L$libdir' 9750 hardcode_shlibpath_var=no 9751 ;; 9752 9753 freebsd1*) 9754 ld_shlibs=no 9755 ;; 9756 9757 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9758 # support. Future versions do this automatically, but an explicit c++rt0.o 9759 # does not break anything, and helps significantly (at the cost of a little 9760 # extra space). 9761 freebsd2.2*) 9762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9763 hardcode_libdir_flag_spec='-R$libdir' 9764 hardcode_direct=yes 9765 hardcode_shlibpath_var=no 9766 ;; 9767 9768 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9769 freebsd2*) 9770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9771 hardcode_direct=yes 9772 hardcode_minus_L=yes 9773 hardcode_shlibpath_var=no 9774 ;; 9775 9776 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9777 freebsd* | dragonfly*) 9778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9779 hardcode_libdir_flag_spec='-R$libdir' 9780 hardcode_direct=yes 9781 hardcode_shlibpath_var=no 9782 ;; 9783 9784 hpux9*) 9785 if test "$GCC" = yes; then 9786 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' 9787 else 9788 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' 9789 fi 9790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9791 hardcode_libdir_separator=: 9792 hardcode_direct=yes 9793 9794 # hardcode_minus_L: Not really in the search PATH, 9795 # but as the default location of the library. 9796 hardcode_minus_L=yes 9797 export_dynamic_flag_spec='${wl}-E' 9798 ;; 9799 9800 hpux10*) 9801 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9802 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9803 else 9804 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9805 fi 9806 if test "$with_gnu_ld" = no; then 9807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9808 hardcode_libdir_flag_spec_ld='+b $libdir' 9809 hardcode_libdir_separator=: 9810 hardcode_direct=yes 9811 hardcode_direct_absolute=yes 9812 export_dynamic_flag_spec='${wl}-E' 9813 # hardcode_minus_L: Not really in the search PATH, 9814 # but as the default location of the library. 9815 hardcode_minus_L=yes 9816 fi 9817 ;; 9818 9819 hpux11*) 9820 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9821 case $host_cpu in 9822 hppa*64*) 9823 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9824 ;; 9825 ia64*) 9826 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9827 ;; 9828 *) 9829 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9830 ;; 9831 esac 9832 else 9833 case $host_cpu in 9834 hppa*64*) 9835 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9836 ;; 9837 ia64*) 9838 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9839 ;; 9840 *) 9841 9842 # Older versions of the 11.00 compiler do not understand -b yet 9843 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9845$as_echo_n "checking if $CC understands -b... " >&6; } 9846if ${lt_cv_prog_compiler__b+:} false; then : 9847 $as_echo_n "(cached) " >&6 9848else 9849 lt_cv_prog_compiler__b=no 9850 save_LDFLAGS="$LDFLAGS" 9851 LDFLAGS="$LDFLAGS -b" 9852 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9853 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9854 # The linker can only warn and ignore the option if not recognized 9855 # So say no if there are warnings 9856 if test -s conftest.err; then 9857 # Append any errors to the config.log. 9858 cat conftest.err 1>&5 9859 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9861 if diff conftest.exp conftest.er2 >/dev/null; then 9862 lt_cv_prog_compiler__b=yes 9863 fi 9864 else 9865 lt_cv_prog_compiler__b=yes 9866 fi 9867 fi 9868 $RM -r conftest* 9869 LDFLAGS="$save_LDFLAGS" 9870 9871fi 9872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9873$as_echo "$lt_cv_prog_compiler__b" >&6; } 9874 9875if test x"$lt_cv_prog_compiler__b" = xyes; then 9876 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9877else 9878 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9879fi 9880 9881 ;; 9882 esac 9883 fi 9884 if test "$with_gnu_ld" = no; then 9885 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9886 hardcode_libdir_separator=: 9887 9888 case $host_cpu in 9889 hppa*64*|ia64*) 9890 hardcode_direct=no 9891 hardcode_shlibpath_var=no 9892 ;; 9893 *) 9894 hardcode_direct=yes 9895 hardcode_direct_absolute=yes 9896 export_dynamic_flag_spec='${wl}-E' 9897 9898 # hardcode_minus_L: Not really in the search PATH, 9899 # but as the default location of the library. 9900 hardcode_minus_L=yes 9901 ;; 9902 esac 9903 fi 9904 ;; 9905 9906 irix5* | irix6* | nonstopux*) 9907 if test "$GCC" = yes; then 9908 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' 9909 # Try to use the -exported_symbol ld option, if it does not 9910 # work, assume that -exports_file does not work either and 9911 # implicitly export all symbols. 9912 # This should be the same for all languages, so no per-tag cache variable. 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9914$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9915if ${lt_cv_irix_exported_symbol+:} false; then : 9916 $as_echo_n "(cached) " >&6 9917else 9918 save_LDFLAGS="$LDFLAGS" 9919 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9921/* end confdefs.h. */ 9922int foo (void) { return 0; } 9923_ACEOF 9924if ac_fn_c_try_link "$LINENO"; then : 9925 lt_cv_irix_exported_symbol=yes 9926else 9927 lt_cv_irix_exported_symbol=no 9928fi 9929rm -f core conftest.err conftest.$ac_objext \ 9930 conftest$ac_exeext conftest.$ac_ext 9931 LDFLAGS="$save_LDFLAGS" 9932fi 9933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9934$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9935 if test "$lt_cv_irix_exported_symbol" = yes; then 9936 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' 9937 fi 9938 else 9939 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' 9940 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' 9941 fi 9942 archive_cmds_need_lc='no' 9943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9944 hardcode_libdir_separator=: 9945 inherit_rpath=yes 9946 link_all_deplibs=yes 9947 ;; 9948 9949 netbsd*) 9950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9952 else 9953 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9954 fi 9955 hardcode_libdir_flag_spec='-R$libdir' 9956 hardcode_direct=yes 9957 hardcode_shlibpath_var=no 9958 ;; 9959 9960 newsos6) 9961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9962 hardcode_direct=yes 9963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9964 hardcode_libdir_separator=: 9965 hardcode_shlibpath_var=no 9966 ;; 9967 9968 *nto* | *qnx*) 9969 ;; 9970 9971 openbsd*) 9972 if test -f /usr/libexec/ld.so; then 9973 hardcode_direct=yes 9974 hardcode_shlibpath_var=no 9975 hardcode_direct_absolute=yes 9976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9977 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9978 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9979 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9980 export_dynamic_flag_spec='${wl}-E' 9981 else 9982 case $host_os in 9983 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9985 hardcode_libdir_flag_spec='-R$libdir' 9986 ;; 9987 *) 9988 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9989 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9990 ;; 9991 esac 9992 fi 9993 else 9994 ld_shlibs=no 9995 fi 9996 ;; 9997 9998 os2*) 9999 hardcode_libdir_flag_spec='-L$libdir' 10000 hardcode_minus_L=yes 10001 allow_undefined_flag=unsupported 10002 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' 10003 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10004 ;; 10005 10006 osf3*) 10007 if test "$GCC" = yes; then 10008 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10009 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' 10010 else 10011 allow_undefined_flag=' -expect_unresolved \*' 10012 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' 10013 fi 10014 archive_cmds_need_lc='no' 10015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10016 hardcode_libdir_separator=: 10017 ;; 10018 10019 osf4* | osf5*) # as osf3* with the addition of -msym flag 10020 if test "$GCC" = yes; then 10021 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10022 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' 10023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10024 else 10025 allow_undefined_flag=' -expect_unresolved \*' 10026 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' 10027 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~ 10028 $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' 10029 10030 # Both c and cxx compiler support -rpath directly 10031 hardcode_libdir_flag_spec='-rpath $libdir' 10032 fi 10033 archive_cmds_need_lc='no' 10034 hardcode_libdir_separator=: 10035 ;; 10036 10037 solaris*) 10038 no_undefined_flag=' -z defs' 10039 if test "$GCC" = yes; then 10040 wlarc='${wl}' 10041 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10042 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10043 $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' 10044 else 10045 case `$CC -V 2>&1` in 10046 *"Compilers 5.0"*) 10047 wlarc='' 10048 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10049 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10050 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10051 ;; 10052 *) 10053 wlarc='${wl}' 10054 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10056 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10057 ;; 10058 esac 10059 fi 10060 hardcode_libdir_flag_spec='-R$libdir' 10061 hardcode_shlibpath_var=no 10062 case $host_os in 10063 solaris2.[0-5] | solaris2.[0-5].*) ;; 10064 *) 10065 # The compiler driver will combine and reorder linker options, 10066 # but understands `-z linker_flag'. GCC discards it without `$wl', 10067 # but is careful enough not to reorder. 10068 # Supported since Solaris 2.6 (maybe 2.5.1?) 10069 if test "$GCC" = yes; then 10070 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10071 else 10072 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10073 fi 10074 ;; 10075 esac 10076 link_all_deplibs=yes 10077 ;; 10078 10079 sunos4*) 10080 if test "x$host_vendor" = xsequent; then 10081 # Use $CC to link under sequent, because it throws in some extra .o 10082 # files that make .init and .fini sections work. 10083 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10084 else 10085 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10086 fi 10087 hardcode_libdir_flag_spec='-L$libdir' 10088 hardcode_direct=yes 10089 hardcode_minus_L=yes 10090 hardcode_shlibpath_var=no 10091 ;; 10092 10093 sysv4) 10094 case $host_vendor in 10095 sni) 10096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10097 hardcode_direct=yes # is this really true??? 10098 ;; 10099 siemens) 10100 ## LD is ld it makes a PLAMLIB 10101 ## CC just makes a GrossModule. 10102 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10103 reload_cmds='$CC -r -o $output$reload_objs' 10104 hardcode_direct=no 10105 ;; 10106 motorola) 10107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10108 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10109 ;; 10110 esac 10111 runpath_var='LD_RUN_PATH' 10112 hardcode_shlibpath_var=no 10113 ;; 10114 10115 sysv4.3*) 10116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10117 hardcode_shlibpath_var=no 10118 export_dynamic_flag_spec='-Bexport' 10119 ;; 10120 10121 sysv4*MP*) 10122 if test -d /usr/nec; then 10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10124 hardcode_shlibpath_var=no 10125 runpath_var=LD_RUN_PATH 10126 hardcode_runpath_var=yes 10127 ld_shlibs=yes 10128 fi 10129 ;; 10130 10131 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10132 no_undefined_flag='${wl}-z,text' 10133 archive_cmds_need_lc=no 10134 hardcode_shlibpath_var=no 10135 runpath_var='LD_RUN_PATH' 10136 10137 if test "$GCC" = yes; then 10138 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10139 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10140 else 10141 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10142 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10143 fi 10144 ;; 10145 10146 sysv5* | sco3.2v5* | sco5v6*) 10147 # Note: We can NOT use -z defs as we might desire, because we do not 10148 # link with -lc, and that would cause any symbols used from libc to 10149 # always be unresolved, which means just about no library would 10150 # ever link correctly. If we're not using GNU ld we use -z text 10151 # though, which does catch some bad symbols but isn't as heavy-handed 10152 # as -z defs. 10153 no_undefined_flag='${wl}-z,text' 10154 allow_undefined_flag='${wl}-z,nodefs' 10155 archive_cmds_need_lc=no 10156 hardcode_shlibpath_var=no 10157 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10158 hardcode_libdir_separator=':' 10159 link_all_deplibs=yes 10160 export_dynamic_flag_spec='${wl}-Bexport' 10161 runpath_var='LD_RUN_PATH' 10162 10163 if test "$GCC" = yes; then 10164 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10165 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10166 else 10167 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10168 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10169 fi 10170 ;; 10171 10172 uts4*) 10173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10174 hardcode_libdir_flag_spec='-L$libdir' 10175 hardcode_shlibpath_var=no 10176 ;; 10177 10178 *) 10179 ld_shlibs=no 10180 ;; 10181 esac 10182 10183 if test x$host_vendor = xsni; then 10184 case $host in 10185 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10186 export_dynamic_flag_spec='${wl}-Blargedynsym' 10187 ;; 10188 esac 10189 fi 10190 fi 10191 10192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10193$as_echo "$ld_shlibs" >&6; } 10194test "$ld_shlibs" = no && can_build_shared=no 10195 10196with_gnu_ld=$with_gnu_ld 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212# 10213# Do we need to explicitly link libc? 10214# 10215case "x$archive_cmds_need_lc" in 10216x|xyes) 10217 # Assume -lc should be added 10218 archive_cmds_need_lc=yes 10219 10220 if test "$enable_shared" = yes && test "$GCC" = yes; then 10221 case $archive_cmds in 10222 *'~'*) 10223 # FIXME: we may have to deal with multi-command sequences. 10224 ;; 10225 '$CC '*) 10226 # Test whether the compiler implicitly links with -lc since on some 10227 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10228 # to ld, don't add -lc before -lgcc. 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10230$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10231if ${lt_cv_archive_cmds_need_lc+:} false; then : 10232 $as_echo_n "(cached) " >&6 10233else 10234 $RM conftest* 10235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10236 10237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10238 (eval $ac_compile) 2>&5 10239 ac_status=$? 10240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10241 test $ac_status = 0; } 2>conftest.err; then 10242 soname=conftest 10243 lib=conftest 10244 libobjs=conftest.$ac_objext 10245 deplibs= 10246 wl=$lt_prog_compiler_wl 10247 pic_flag=$lt_prog_compiler_pic 10248 compiler_flags=-v 10249 linker_flags=-v 10250 verstring= 10251 output_objdir=. 10252 libname=conftest 10253 lt_save_allow_undefined_flag=$allow_undefined_flag 10254 allow_undefined_flag= 10255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10256 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10257 ac_status=$? 10258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10259 test $ac_status = 0; } 10260 then 10261 lt_cv_archive_cmds_need_lc=no 10262 else 10263 lt_cv_archive_cmds_need_lc=yes 10264 fi 10265 allow_undefined_flag=$lt_save_allow_undefined_flag 10266 else 10267 cat conftest.err 1>&5 10268 fi 10269 $RM conftest* 10270 10271fi 10272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10273$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10274 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10275 ;; 10276 esac 10277 fi 10278 ;; 10279esac 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10438$as_echo_n "checking dynamic linker characteristics... " >&6; } 10439 10440if test "$GCC" = yes; then 10441 case $host_os in 10442 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10443 *) lt_awk_arg="/^libraries:/" ;; 10444 esac 10445 case $host_os in 10446 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10447 *) lt_sed_strip_eq="s,=/,/,g" ;; 10448 esac 10449 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10450 case $lt_search_path_spec in 10451 *\;*) 10452 # if the path contains ";" then we assume it to be the separator 10453 # otherwise default to the standard path separator (i.e. ":") - it is 10454 # assumed that no part of a normal pathname contains ";" but that should 10455 # okay in the real world where ";" in dirpaths is itself problematic. 10456 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10457 ;; 10458 *) 10459 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10460 ;; 10461 esac 10462 # Ok, now we have the path, separated by spaces, we can step through it 10463 # and add multilib dir if necessary. 10464 lt_tmp_lt_search_path_spec= 10465 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10466 for lt_sys_path in $lt_search_path_spec; do 10467 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10468 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10469 else 10470 test -d "$lt_sys_path" && \ 10471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10472 fi 10473 done 10474 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10475BEGIN {RS=" "; FS="/|\n";} { 10476 lt_foo=""; 10477 lt_count=0; 10478 for (lt_i = NF; lt_i > 0; lt_i--) { 10479 if ($lt_i != "" && $lt_i != ".") { 10480 if ($lt_i == "..") { 10481 lt_count++; 10482 } else { 10483 if (lt_count == 0) { 10484 lt_foo="/" $lt_i lt_foo; 10485 } else { 10486 lt_count--; 10487 } 10488 } 10489 } 10490 } 10491 if (lt_foo != "") { lt_freq[lt_foo]++; } 10492 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10493}'` 10494 # AWK program above erroneously prepends '/' to C:/dos/paths 10495 # for these hosts. 10496 case $host_os in 10497 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10498 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10499 esac 10500 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10501else 10502 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10503fi 10504library_names_spec= 10505libname_spec='lib$name' 10506soname_spec= 10507shrext_cmds=".so" 10508postinstall_cmds= 10509postuninstall_cmds= 10510finish_cmds= 10511finish_eval= 10512shlibpath_var= 10513shlibpath_overrides_runpath=unknown 10514version_type=none 10515dynamic_linker="$host_os ld.so" 10516sys_lib_dlsearch_path_spec="/lib /usr/lib" 10517need_lib_prefix=unknown 10518hardcode_into_libs=no 10519 10520# when you set need_version to no, make sure it does not cause -set_version 10521# flags to be left without arguments 10522need_version=unknown 10523 10524case $host_os in 10525aix3*) 10526 version_type=linux 10527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10528 shlibpath_var=LIBPATH 10529 10530 # AIX 3 has no versioning support, so we append a major version to the name. 10531 soname_spec='${libname}${release}${shared_ext}$major' 10532 ;; 10533 10534aix[4-9]*) 10535 version_type=linux 10536 need_lib_prefix=no 10537 need_version=no 10538 hardcode_into_libs=yes 10539 if test "$host_cpu" = ia64; then 10540 # AIX 5 supports IA64 10541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10542 shlibpath_var=LD_LIBRARY_PATH 10543 else 10544 # With GCC up to 2.95.x, collect2 would create an import file 10545 # for dependence libraries. The import file would start with 10546 # the line `#! .'. This would cause the generated library to 10547 # depend on `.', always an invalid library. This was fixed in 10548 # development snapshots of GCC prior to 3.0. 10549 case $host_os in 10550 aix4 | aix4.[01] | aix4.[01].*) 10551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10552 echo ' yes ' 10553 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10554 : 10555 else 10556 can_build_shared=no 10557 fi 10558 ;; 10559 esac 10560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10561 # soname into executable. Probably we can add versioning support to 10562 # collect2, so additional links can be useful in future. 10563 if test "$aix_use_runtimelinking" = yes; then 10564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10565 # instead of lib<name>.a to let people know that these are not 10566 # typical AIX shared libraries. 10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10568 else 10569 # We preserve .a as extension for shared libraries through AIX4.2 10570 # and later when we are not doing run time linking. 10571 library_names_spec='${libname}${release}.a $libname.a' 10572 soname_spec='${libname}${release}${shared_ext}$major' 10573 fi 10574 shlibpath_var=LIBPATH 10575 fi 10576 ;; 10577 10578amigaos*) 10579 case $host_cpu in 10580 powerpc) 10581 # Since July 2007 AmigaOS4 officially supports .so libraries. 10582 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10584 ;; 10585 m68k) 10586 library_names_spec='$libname.ixlibrary $libname.a' 10587 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10588 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' 10589 ;; 10590 esac 10591 ;; 10592 10593beos*) 10594 library_names_spec='${libname}${shared_ext}' 10595 dynamic_linker="$host_os ld.so" 10596 shlibpath_var=LIBRARY_PATH 10597 ;; 10598 10599bsdi[45]*) 10600 version_type=linux 10601 need_version=no 10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10603 soname_spec='${libname}${release}${shared_ext}$major' 10604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10605 shlibpath_var=LD_LIBRARY_PATH 10606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10608 # the default ld.so.conf also contains /usr/contrib/lib and 10609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10610 # libtool to hard-code these into programs 10611 ;; 10612 10613cygwin* | mingw* | pw32* | cegcc*) 10614 version_type=windows 10615 shrext_cmds=".dll" 10616 need_version=no 10617 need_lib_prefix=no 10618 10619 case $GCC,$cc_basename in 10620 yes,*) 10621 # gcc 10622 library_names_spec='$libname.dll.a' 10623 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10624 postinstall_cmds='base_file=`basename \${file}`~ 10625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10626 dldir=$destdir/`dirname \$dlpath`~ 10627 test -d \$dldir || mkdir -p \$dldir~ 10628 $install_prog $dir/$dlname \$dldir/$dlname~ 10629 chmod a+x \$dldir/$dlname~ 10630 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10631 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10632 fi' 10633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10634 dlpath=$dir/\$dldll~ 10635 $RM \$dlpath' 10636 shlibpath_overrides_runpath=yes 10637 10638 case $host_os in 10639 cygwin*) 10640 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10642 10643 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10644 ;; 10645 mingw* | cegcc*) 10646 # MinGW DLLs use traditional 'lib' prefix 10647 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10648 ;; 10649 pw32*) 10650 # pw32 DLLs use 'pw' prefix rather than 'lib' 10651 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10652 ;; 10653 esac 10654 dynamic_linker='Win32 ld.exe' 10655 ;; 10656 10657 *,cl*) 10658 # Native MSVC 10659 libname_spec='$name' 10660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10661 library_names_spec='${libname}.dll.lib' 10662 10663 case $build_os in 10664 mingw*) 10665 sys_lib_search_path_spec= 10666 lt_save_ifs=$IFS 10667 IFS=';' 10668 for lt_path in $LIB 10669 do 10670 IFS=$lt_save_ifs 10671 # Let DOS variable expansion print the short 8.3 style file name. 10672 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10673 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10674 done 10675 IFS=$lt_save_ifs 10676 # Convert to MSYS style. 10677 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10678 ;; 10679 cygwin*) 10680 # Convert to unix form, then to dos form, then back to unix form 10681 # but this time dos style (no spaces!) so that the unix form looks 10682 # like /cygdrive/c/PROGRA~1:/cygdr... 10683 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10684 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10685 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10686 ;; 10687 *) 10688 sys_lib_search_path_spec="$LIB" 10689 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10690 # It is most probably a Windows format PATH. 10691 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10692 else 10693 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10694 fi 10695 # FIXME: find the short name or the path components, as spaces are 10696 # common. (e.g. "Program Files" -> "PROGRA~1") 10697 ;; 10698 esac 10699 10700 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10701 postinstall_cmds='base_file=`basename \${file}`~ 10702 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10703 dldir=$destdir/`dirname \$dlpath`~ 10704 test -d \$dldir || mkdir -p \$dldir~ 10705 $install_prog $dir/$dlname \$dldir/$dlname' 10706 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10707 dlpath=$dir/\$dldll~ 10708 $RM \$dlpath' 10709 shlibpath_overrides_runpath=yes 10710 dynamic_linker='Win32 link.exe' 10711 ;; 10712 10713 *) 10714 # Assume MSVC wrapper 10715 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10716 dynamic_linker='Win32 ld.exe' 10717 ;; 10718 esac 10719 # FIXME: first we should search . and the directory the executable is in 10720 shlibpath_var=PATH 10721 ;; 10722 10723darwin* | rhapsody*) 10724 dynamic_linker="$host_os dyld" 10725 version_type=darwin 10726 need_lib_prefix=no 10727 need_version=no 10728 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10729 soname_spec='${libname}${release}${major}$shared_ext' 10730 shlibpath_overrides_runpath=yes 10731 shlibpath_var=DYLD_LIBRARY_PATH 10732 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10733 10734 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10735 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10736 ;; 10737 10738dgux*) 10739 version_type=linux 10740 need_lib_prefix=no 10741 need_version=no 10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10743 soname_spec='${libname}${release}${shared_ext}$major' 10744 shlibpath_var=LD_LIBRARY_PATH 10745 ;; 10746 10747freebsd1*) 10748 dynamic_linker=no 10749 ;; 10750 10751freebsd* | dragonfly*) 10752 # DragonFly does not have aout. When/if they implement a new 10753 # versioning mechanism, adjust this. 10754 if test -x /usr/bin/objformat; then 10755 objformat=`/usr/bin/objformat` 10756 else 10757 case $host_os in 10758 freebsd[123]*) objformat=aout ;; 10759 *) objformat=elf ;; 10760 esac 10761 fi 10762 # Handle Gentoo/FreeBSD as it was Linux 10763 case $host_vendor in 10764 gentoo) 10765 version_type=linux ;; 10766 *) 10767 version_type=freebsd-$objformat ;; 10768 esac 10769 10770 case $version_type in 10771 freebsd-elf*) 10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10773 need_version=no 10774 need_lib_prefix=no 10775 ;; 10776 freebsd-*) 10777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10778 need_version=yes 10779 ;; 10780 linux) 10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10782 soname_spec='${libname}${release}${shared_ext}$major' 10783 need_lib_prefix=no 10784 need_version=no 10785 ;; 10786 esac 10787 shlibpath_var=LD_LIBRARY_PATH 10788 case $host_os in 10789 freebsd2*) 10790 shlibpath_overrides_runpath=yes 10791 ;; 10792 freebsd3.[01]* | freebsdelf3.[01]*) 10793 shlibpath_overrides_runpath=yes 10794 hardcode_into_libs=yes 10795 ;; 10796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10798 shlibpath_overrides_runpath=no 10799 hardcode_into_libs=yes 10800 ;; 10801 *) # from 4.6 on, and DragonFly 10802 shlibpath_overrides_runpath=yes 10803 hardcode_into_libs=yes 10804 ;; 10805 esac 10806 ;; 10807 10808gnu*) 10809 version_type=linux 10810 need_lib_prefix=no 10811 need_version=no 10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10813 soname_spec='${libname}${release}${shared_ext}$major' 10814 shlibpath_var=LD_LIBRARY_PATH 10815 hardcode_into_libs=yes 10816 ;; 10817 10818haiku*) 10819 version_type=linux 10820 need_lib_prefix=no 10821 need_version=no 10822 dynamic_linker="$host_os runtime_loader" 10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10824 soname_spec='${libname}${release}${shared_ext}$major' 10825 shlibpath_var=LIBRARY_PATH 10826 shlibpath_overrides_runpath=yes 10827 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10828 hardcode_into_libs=yes 10829 ;; 10830 10831hpux9* | hpux10* | hpux11*) 10832 # Give a soname corresponding to the major version so that dld.sl refuses to 10833 # link against other versions. 10834 version_type=sunos 10835 need_lib_prefix=no 10836 need_version=no 10837 case $host_cpu in 10838 ia64*) 10839 shrext_cmds='.so' 10840 hardcode_into_libs=yes 10841 dynamic_linker="$host_os dld.so" 10842 shlibpath_var=LD_LIBRARY_PATH 10843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10845 soname_spec='${libname}${release}${shared_ext}$major' 10846 if test "X$HPUX_IA64_MODE" = X32; then 10847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10848 else 10849 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10850 fi 10851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10852 ;; 10853 hppa*64*) 10854 shrext_cmds='.sl' 10855 hardcode_into_libs=yes 10856 dynamic_linker="$host_os dld.sl" 10857 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10860 soname_spec='${libname}${release}${shared_ext}$major' 10861 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10863 ;; 10864 *) 10865 shrext_cmds='.sl' 10866 dynamic_linker="$host_os dld.sl" 10867 shlibpath_var=SHLIB_PATH 10868 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10870 soname_spec='${libname}${release}${shared_ext}$major' 10871 ;; 10872 esac 10873 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10874 postinstall_cmds='chmod 555 $lib' 10875 # or fails outright, so override atomically: 10876 install_override_mode=555 10877 ;; 10878 10879interix[3-9]*) 10880 version_type=linux 10881 need_lib_prefix=no 10882 need_version=no 10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10884 soname_spec='${libname}${release}${shared_ext}$major' 10885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10886 shlibpath_var=LD_LIBRARY_PATH 10887 shlibpath_overrides_runpath=no 10888 hardcode_into_libs=yes 10889 ;; 10890 10891irix5* | irix6* | nonstopux*) 10892 case $host_os in 10893 nonstopux*) version_type=nonstopux ;; 10894 *) 10895 if test "$lt_cv_prog_gnu_ld" = yes; then 10896 version_type=linux 10897 else 10898 version_type=irix 10899 fi ;; 10900 esac 10901 need_lib_prefix=no 10902 need_version=no 10903 soname_spec='${libname}${release}${shared_ext}$major' 10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10905 case $host_os in 10906 irix5* | nonstopux*) 10907 libsuff= shlibsuff= 10908 ;; 10909 *) 10910 case $LD in # libtool.m4 will add one of these switches to LD 10911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10912 libsuff= shlibsuff= libmagic=32-bit;; 10913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10914 libsuff=32 shlibsuff=N32 libmagic=N32;; 10915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10916 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10917 *) libsuff= shlibsuff= libmagic=never-match;; 10918 esac 10919 ;; 10920 esac 10921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10922 shlibpath_overrides_runpath=no 10923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10925 hardcode_into_libs=yes 10926 ;; 10927 10928# No shared lib support for Linux oldld, aout, or coff. 10929linux*oldld* | linux*aout* | linux*coff*) 10930 dynamic_linker=no 10931 ;; 10932 10933# This must be Linux ELF. 10934linux* | k*bsd*-gnu | kopensolaris*-gnu) 10935 version_type=linux 10936 need_lib_prefix=no 10937 need_version=no 10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10939 soname_spec='${libname}${release}${shared_ext}$major' 10940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10941 shlibpath_var=LD_LIBRARY_PATH 10942 shlibpath_overrides_runpath=no 10943 10944 # Some binutils ld are patched to set DT_RUNPATH 10945 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10946 $as_echo_n "(cached) " >&6 10947else 10948 lt_cv_shlibpath_overrides_runpath=no 10949 save_LDFLAGS=$LDFLAGS 10950 save_libdir=$libdir 10951 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10952 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10954/* end confdefs.h. */ 10955 10956int 10957main () 10958{ 10959 10960 ; 10961 return 0; 10962} 10963_ACEOF 10964if ac_fn_c_try_link "$LINENO"; then : 10965 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10966 lt_cv_shlibpath_overrides_runpath=yes 10967fi 10968fi 10969rm -f core conftest.err conftest.$ac_objext \ 10970 conftest$ac_exeext conftest.$ac_ext 10971 LDFLAGS=$save_LDFLAGS 10972 libdir=$save_libdir 10973 10974fi 10975 10976 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10977 10978 # This implies no fast_install, which is unacceptable. 10979 # Some rework will be needed to allow for fast_install 10980 # before this can be enabled. 10981 hardcode_into_libs=yes 10982 10983 # Append ld.so.conf contents to the search path 10984 if test -f /etc/ld.so.conf; then 10985 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' ' '` 10986 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10987 fi 10988 10989 # We used to test for /lib/ld.so.1 and disable shared libraries on 10990 # powerpc, because MkLinux only supported shared libraries with the 10991 # GNU dynamic linker. Since this was broken with cross compilers, 10992 # most powerpc-linux boxes support dynamic linking these days and 10993 # people can always --disable-shared, the test was removed, and we 10994 # assume the GNU/Linux dynamic linker is in use. 10995 dynamic_linker='GNU/Linux ld.so' 10996 ;; 10997 10998netbsd*) 10999 version_type=sunos 11000 need_lib_prefix=no 11001 need_version=no 11002 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11005 dynamic_linker='NetBSD (a.out) ld.so' 11006 else 11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11008 soname_spec='${libname}${release}${shared_ext}$major' 11009 dynamic_linker='NetBSD ld.elf_so' 11010 fi 11011 shlibpath_var=LD_LIBRARY_PATH 11012 shlibpath_overrides_runpath=yes 11013 hardcode_into_libs=yes 11014 ;; 11015 11016newsos6) 11017 version_type=linux 11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11019 shlibpath_var=LD_LIBRARY_PATH 11020 shlibpath_overrides_runpath=yes 11021 ;; 11022 11023*nto* | *qnx*) 11024 version_type=qnx 11025 need_lib_prefix=no 11026 need_version=no 11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11028 soname_spec='${libname}${release}${shared_ext}$major' 11029 shlibpath_var=LD_LIBRARY_PATH 11030 shlibpath_overrides_runpath=no 11031 hardcode_into_libs=yes 11032 dynamic_linker='ldqnx.so' 11033 ;; 11034 11035openbsd*) 11036 version_type=sunos 11037 sys_lib_dlsearch_path_spec="/usr/lib" 11038 need_lib_prefix=no 11039 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11040 case $host_os in 11041 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11042 *) need_version=no ;; 11043 esac 11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11046 shlibpath_var=LD_LIBRARY_PATH 11047 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11048 case $host_os in 11049 openbsd2.[89] | openbsd2.[89].*) 11050 shlibpath_overrides_runpath=no 11051 ;; 11052 *) 11053 shlibpath_overrides_runpath=yes 11054 ;; 11055 esac 11056 else 11057 shlibpath_overrides_runpath=yes 11058 fi 11059 ;; 11060 11061os2*) 11062 libname_spec='$name' 11063 shrext_cmds=".dll" 11064 need_lib_prefix=no 11065 library_names_spec='$libname${shared_ext} $libname.a' 11066 dynamic_linker='OS/2 ld.exe' 11067 shlibpath_var=LIBPATH 11068 ;; 11069 11070osf3* | osf4* | osf5*) 11071 version_type=osf 11072 need_lib_prefix=no 11073 need_version=no 11074 soname_spec='${libname}${release}${shared_ext}$major' 11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11076 shlibpath_var=LD_LIBRARY_PATH 11077 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11078 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11079 ;; 11080 11081rdos*) 11082 dynamic_linker=no 11083 ;; 11084 11085solaris*) 11086 version_type=linux 11087 need_lib_prefix=no 11088 need_version=no 11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11090 soname_spec='${libname}${release}${shared_ext}$major' 11091 shlibpath_var=LD_LIBRARY_PATH 11092 shlibpath_overrides_runpath=yes 11093 hardcode_into_libs=yes 11094 # ldd complains unless libraries are executable 11095 postinstall_cmds='chmod +x $lib' 11096 ;; 11097 11098sunos4*) 11099 version_type=sunos 11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11101 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11102 shlibpath_var=LD_LIBRARY_PATH 11103 shlibpath_overrides_runpath=yes 11104 if test "$with_gnu_ld" = yes; then 11105 need_lib_prefix=no 11106 fi 11107 need_version=yes 11108 ;; 11109 11110sysv4 | sysv4.3*) 11111 version_type=linux 11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11113 soname_spec='${libname}${release}${shared_ext}$major' 11114 shlibpath_var=LD_LIBRARY_PATH 11115 case $host_vendor in 11116 sni) 11117 shlibpath_overrides_runpath=no 11118 need_lib_prefix=no 11119 runpath_var=LD_RUN_PATH 11120 ;; 11121 siemens) 11122 need_lib_prefix=no 11123 ;; 11124 motorola) 11125 need_lib_prefix=no 11126 need_version=no 11127 shlibpath_overrides_runpath=no 11128 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11129 ;; 11130 esac 11131 ;; 11132 11133sysv4*MP*) 11134 if test -d /usr/nec ;then 11135 version_type=linux 11136 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11137 soname_spec='$libname${shared_ext}.$major' 11138 shlibpath_var=LD_LIBRARY_PATH 11139 fi 11140 ;; 11141 11142sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11143 version_type=freebsd-elf 11144 need_lib_prefix=no 11145 need_version=no 11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11147 soname_spec='${libname}${release}${shared_ext}$major' 11148 shlibpath_var=LD_LIBRARY_PATH 11149 shlibpath_overrides_runpath=yes 11150 hardcode_into_libs=yes 11151 if test "$with_gnu_ld" = yes; then 11152 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11153 else 11154 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11155 case $host_os in 11156 sco3.2v5*) 11157 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11158 ;; 11159 esac 11160 fi 11161 sys_lib_dlsearch_path_spec='/usr/lib' 11162 ;; 11163 11164tpf*) 11165 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11166 version_type=linux 11167 need_lib_prefix=no 11168 need_version=no 11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11170 shlibpath_var=LD_LIBRARY_PATH 11171 shlibpath_overrides_runpath=no 11172 hardcode_into_libs=yes 11173 ;; 11174 11175uts4*) 11176 version_type=linux 11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11178 soname_spec='${libname}${release}${shared_ext}$major' 11179 shlibpath_var=LD_LIBRARY_PATH 11180 ;; 11181 11182*) 11183 dynamic_linker=no 11184 ;; 11185esac 11186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11187$as_echo "$dynamic_linker" >&6; } 11188test "$dynamic_linker" = no && can_build_shared=no 11189 11190variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11191if test "$GCC" = yes; then 11192 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11193fi 11194 11195if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11196 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11197fi 11198if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11199 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11200fi 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11294$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11295hardcode_action= 11296if test -n "$hardcode_libdir_flag_spec" || 11297 test -n "$runpath_var" || 11298 test "X$hardcode_automatic" = "Xyes" ; then 11299 11300 # We can hardcode non-existent directories. 11301 if test "$hardcode_direct" != no && 11302 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11303 # have to relink, otherwise we might link with an installed library 11304 # when we should be linking with a yet-to-be-installed one 11305 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11306 test "$hardcode_minus_L" != no; then 11307 # Linking always hardcodes the temporary library directory. 11308 hardcode_action=relink 11309 else 11310 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11311 hardcode_action=immediate 11312 fi 11313else 11314 # We cannot hardcode anything, or else we can only hardcode existing 11315 # directories. 11316 hardcode_action=unsupported 11317fi 11318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11319$as_echo "$hardcode_action" >&6; } 11320 11321if test "$hardcode_action" = relink || 11322 test "$inherit_rpath" = yes; then 11323 # Fast installation is not supported 11324 enable_fast_install=no 11325elif test "$shlibpath_overrides_runpath" = yes || 11326 test "$enable_shared" = no; then 11327 # Fast installation is not necessary 11328 enable_fast_install=needless 11329fi 11330 11331 11332 11333 11334 11335 11336 if test "x$enable_dlopen" != xyes; then 11337 enable_dlopen=unknown 11338 enable_dlopen_self=unknown 11339 enable_dlopen_self_static=unknown 11340else 11341 lt_cv_dlopen=no 11342 lt_cv_dlopen_libs= 11343 11344 case $host_os in 11345 beos*) 11346 lt_cv_dlopen="load_add_on" 11347 lt_cv_dlopen_libs= 11348 lt_cv_dlopen_self=yes 11349 ;; 11350 11351 mingw* | pw32* | cegcc*) 11352 lt_cv_dlopen="LoadLibrary" 11353 lt_cv_dlopen_libs= 11354 ;; 11355 11356 cygwin*) 11357 lt_cv_dlopen="dlopen" 11358 lt_cv_dlopen_libs= 11359 ;; 11360 11361 darwin*) 11362 # if libdl is installed we need to link against it 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11364$as_echo_n "checking for dlopen in -ldl... " >&6; } 11365if ${ac_cv_lib_dl_dlopen+:} false; then : 11366 $as_echo_n "(cached) " >&6 11367else 11368 ac_check_lib_save_LIBS=$LIBS 11369LIBS="-ldl $LIBS" 11370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11371/* end confdefs.h. */ 11372 11373/* Override any GCC internal prototype to avoid an error. 11374 Use char because int might match the return type of a GCC 11375 builtin and then its argument prototype would still apply. */ 11376#ifdef __cplusplus 11377extern "C" 11378#endif 11379char dlopen (); 11380int 11381main () 11382{ 11383return dlopen (); 11384 ; 11385 return 0; 11386} 11387_ACEOF 11388if ac_fn_c_try_link "$LINENO"; then : 11389 ac_cv_lib_dl_dlopen=yes 11390else 11391 ac_cv_lib_dl_dlopen=no 11392fi 11393rm -f core conftest.err conftest.$ac_objext \ 11394 conftest$ac_exeext conftest.$ac_ext 11395LIBS=$ac_check_lib_save_LIBS 11396fi 11397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11398$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11399if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11400 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11401else 11402 11403 lt_cv_dlopen="dyld" 11404 lt_cv_dlopen_libs= 11405 lt_cv_dlopen_self=yes 11406 11407fi 11408 11409 ;; 11410 11411 *) 11412 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11413if test "x$ac_cv_func_shl_load" = xyes; then : 11414 lt_cv_dlopen="shl_load" 11415else 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11417$as_echo_n "checking for shl_load in -ldld... " >&6; } 11418if ${ac_cv_lib_dld_shl_load+:} false; then : 11419 $as_echo_n "(cached) " >&6 11420else 11421 ac_check_lib_save_LIBS=$LIBS 11422LIBS="-ldld $LIBS" 11423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11424/* end confdefs.h. */ 11425 11426/* Override any GCC internal prototype to avoid an error. 11427 Use char because int might match the return type of a GCC 11428 builtin and then its argument prototype would still apply. */ 11429#ifdef __cplusplus 11430extern "C" 11431#endif 11432char shl_load (); 11433int 11434main () 11435{ 11436return shl_load (); 11437 ; 11438 return 0; 11439} 11440_ACEOF 11441if ac_fn_c_try_link "$LINENO"; then : 11442 ac_cv_lib_dld_shl_load=yes 11443else 11444 ac_cv_lib_dld_shl_load=no 11445fi 11446rm -f core conftest.err conftest.$ac_objext \ 11447 conftest$ac_exeext conftest.$ac_ext 11448LIBS=$ac_check_lib_save_LIBS 11449fi 11450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11451$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11452if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11453 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11454else 11455 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11456if test "x$ac_cv_func_dlopen" = xyes; then : 11457 lt_cv_dlopen="dlopen" 11458else 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11460$as_echo_n "checking for dlopen in -ldl... " >&6; } 11461if ${ac_cv_lib_dl_dlopen+:} false; then : 11462 $as_echo_n "(cached) " >&6 11463else 11464 ac_check_lib_save_LIBS=$LIBS 11465LIBS="-ldl $LIBS" 11466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11467/* end confdefs.h. */ 11468 11469/* Override any GCC internal prototype to avoid an error. 11470 Use char because int might match the return type of a GCC 11471 builtin and then its argument prototype would still apply. */ 11472#ifdef __cplusplus 11473extern "C" 11474#endif 11475char dlopen (); 11476int 11477main () 11478{ 11479return dlopen (); 11480 ; 11481 return 0; 11482} 11483_ACEOF 11484if ac_fn_c_try_link "$LINENO"; then : 11485 ac_cv_lib_dl_dlopen=yes 11486else 11487 ac_cv_lib_dl_dlopen=no 11488fi 11489rm -f core conftest.err conftest.$ac_objext \ 11490 conftest$ac_exeext conftest.$ac_ext 11491LIBS=$ac_check_lib_save_LIBS 11492fi 11493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11494$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11495if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11497else 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11499$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11500if ${ac_cv_lib_svld_dlopen+:} false; then : 11501 $as_echo_n "(cached) " >&6 11502else 11503 ac_check_lib_save_LIBS=$LIBS 11504LIBS="-lsvld $LIBS" 11505cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11506/* end confdefs.h. */ 11507 11508/* Override any GCC internal prototype to avoid an error. 11509 Use char because int might match the return type of a GCC 11510 builtin and then its argument prototype would still apply. */ 11511#ifdef __cplusplus 11512extern "C" 11513#endif 11514char dlopen (); 11515int 11516main () 11517{ 11518return dlopen (); 11519 ; 11520 return 0; 11521} 11522_ACEOF 11523if ac_fn_c_try_link "$LINENO"; then : 11524 ac_cv_lib_svld_dlopen=yes 11525else 11526 ac_cv_lib_svld_dlopen=no 11527fi 11528rm -f core conftest.err conftest.$ac_objext \ 11529 conftest$ac_exeext conftest.$ac_ext 11530LIBS=$ac_check_lib_save_LIBS 11531fi 11532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11533$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11534if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11535 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11536else 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11538$as_echo_n "checking for dld_link in -ldld... " >&6; } 11539if ${ac_cv_lib_dld_dld_link+:} false; then : 11540 $as_echo_n "(cached) " >&6 11541else 11542 ac_check_lib_save_LIBS=$LIBS 11543LIBS="-ldld $LIBS" 11544cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11545/* end confdefs.h. */ 11546 11547/* Override any GCC internal prototype to avoid an error. 11548 Use char because int might match the return type of a GCC 11549 builtin and then its argument prototype would still apply. */ 11550#ifdef __cplusplus 11551extern "C" 11552#endif 11553char dld_link (); 11554int 11555main () 11556{ 11557return dld_link (); 11558 ; 11559 return 0; 11560} 11561_ACEOF 11562if ac_fn_c_try_link "$LINENO"; then : 11563 ac_cv_lib_dld_dld_link=yes 11564else 11565 ac_cv_lib_dld_dld_link=no 11566fi 11567rm -f core conftest.err conftest.$ac_objext \ 11568 conftest$ac_exeext conftest.$ac_ext 11569LIBS=$ac_check_lib_save_LIBS 11570fi 11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11572$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11573if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11574 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11575fi 11576 11577 11578fi 11579 11580 11581fi 11582 11583 11584fi 11585 11586 11587fi 11588 11589 11590fi 11591 11592 ;; 11593 esac 11594 11595 if test "x$lt_cv_dlopen" != xno; then 11596 enable_dlopen=yes 11597 else 11598 enable_dlopen=no 11599 fi 11600 11601 case $lt_cv_dlopen in 11602 dlopen) 11603 save_CPPFLAGS="$CPPFLAGS" 11604 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11605 11606 save_LDFLAGS="$LDFLAGS" 11607 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11608 11609 save_LIBS="$LIBS" 11610 LIBS="$lt_cv_dlopen_libs $LIBS" 11611 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11613$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11614if ${lt_cv_dlopen_self+:} false; then : 11615 $as_echo_n "(cached) " >&6 11616else 11617 if test "$cross_compiling" = yes; then : 11618 lt_cv_dlopen_self=cross 11619else 11620 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11621 lt_status=$lt_dlunknown 11622 cat > conftest.$ac_ext <<_LT_EOF 11623#line $LINENO "configure" 11624#include "confdefs.h" 11625 11626#if HAVE_DLFCN_H 11627#include <dlfcn.h> 11628#endif 11629 11630#include <stdio.h> 11631 11632#ifdef RTLD_GLOBAL 11633# define LT_DLGLOBAL RTLD_GLOBAL 11634#else 11635# ifdef DL_GLOBAL 11636# define LT_DLGLOBAL DL_GLOBAL 11637# else 11638# define LT_DLGLOBAL 0 11639# endif 11640#endif 11641 11642/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11643 find out it does not work in some platform. */ 11644#ifndef LT_DLLAZY_OR_NOW 11645# ifdef RTLD_LAZY 11646# define LT_DLLAZY_OR_NOW RTLD_LAZY 11647# else 11648# ifdef DL_LAZY 11649# define LT_DLLAZY_OR_NOW DL_LAZY 11650# else 11651# ifdef RTLD_NOW 11652# define LT_DLLAZY_OR_NOW RTLD_NOW 11653# else 11654# ifdef DL_NOW 11655# define LT_DLLAZY_OR_NOW DL_NOW 11656# else 11657# define LT_DLLAZY_OR_NOW 0 11658# endif 11659# endif 11660# endif 11661# endif 11662#endif 11663 11664/* When -fvisbility=hidden is used, assume the code has been annotated 11665 correspondingly for the symbols needed. */ 11666#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11667int fnord () __attribute__((visibility("default"))); 11668#endif 11669 11670int fnord () { return 42; } 11671int main () 11672{ 11673 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11674 int status = $lt_dlunknown; 11675 11676 if (self) 11677 { 11678 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11679 else 11680 { 11681 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11682 else puts (dlerror ()); 11683 } 11684 /* dlclose (self); */ 11685 } 11686 else 11687 puts (dlerror ()); 11688 11689 return status; 11690} 11691_LT_EOF 11692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11693 (eval $ac_link) 2>&5 11694 ac_status=$? 11695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11696 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11697 (./conftest; exit; ) >&5 2>/dev/null 11698 lt_status=$? 11699 case x$lt_status in 11700 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11701 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11702 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11703 esac 11704 else : 11705 # compilation failed 11706 lt_cv_dlopen_self=no 11707 fi 11708fi 11709rm -fr conftest* 11710 11711 11712fi 11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11714$as_echo "$lt_cv_dlopen_self" >&6; } 11715 11716 if test "x$lt_cv_dlopen_self" = xyes; then 11717 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11719$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11720if ${lt_cv_dlopen_self_static+:} false; then : 11721 $as_echo_n "(cached) " >&6 11722else 11723 if test "$cross_compiling" = yes; then : 11724 lt_cv_dlopen_self_static=cross 11725else 11726 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11727 lt_status=$lt_dlunknown 11728 cat > conftest.$ac_ext <<_LT_EOF 11729#line $LINENO "configure" 11730#include "confdefs.h" 11731 11732#if HAVE_DLFCN_H 11733#include <dlfcn.h> 11734#endif 11735 11736#include <stdio.h> 11737 11738#ifdef RTLD_GLOBAL 11739# define LT_DLGLOBAL RTLD_GLOBAL 11740#else 11741# ifdef DL_GLOBAL 11742# define LT_DLGLOBAL DL_GLOBAL 11743# else 11744# define LT_DLGLOBAL 0 11745# endif 11746#endif 11747 11748/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11749 find out it does not work in some platform. */ 11750#ifndef LT_DLLAZY_OR_NOW 11751# ifdef RTLD_LAZY 11752# define LT_DLLAZY_OR_NOW RTLD_LAZY 11753# else 11754# ifdef DL_LAZY 11755# define LT_DLLAZY_OR_NOW DL_LAZY 11756# else 11757# ifdef RTLD_NOW 11758# define LT_DLLAZY_OR_NOW RTLD_NOW 11759# else 11760# ifdef DL_NOW 11761# define LT_DLLAZY_OR_NOW DL_NOW 11762# else 11763# define LT_DLLAZY_OR_NOW 0 11764# endif 11765# endif 11766# endif 11767# endif 11768#endif 11769 11770/* When -fvisbility=hidden is used, assume the code has been annotated 11771 correspondingly for the symbols needed. */ 11772#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11773int fnord () __attribute__((visibility("default"))); 11774#endif 11775 11776int fnord () { return 42; } 11777int main () 11778{ 11779 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11780 int status = $lt_dlunknown; 11781 11782 if (self) 11783 { 11784 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11785 else 11786 { 11787 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11788 else puts (dlerror ()); 11789 } 11790 /* dlclose (self); */ 11791 } 11792 else 11793 puts (dlerror ()); 11794 11795 return status; 11796} 11797_LT_EOF 11798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11799 (eval $ac_link) 2>&5 11800 ac_status=$? 11801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11802 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11803 (./conftest; exit; ) >&5 2>/dev/null 11804 lt_status=$? 11805 case x$lt_status in 11806 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11807 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11808 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11809 esac 11810 else : 11811 # compilation failed 11812 lt_cv_dlopen_self_static=no 11813 fi 11814fi 11815rm -fr conftest* 11816 11817 11818fi 11819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11820$as_echo "$lt_cv_dlopen_self_static" >&6; } 11821 fi 11822 11823 CPPFLAGS="$save_CPPFLAGS" 11824 LDFLAGS="$save_LDFLAGS" 11825 LIBS="$save_LIBS" 11826 ;; 11827 esac 11828 11829 case $lt_cv_dlopen_self in 11830 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11831 *) enable_dlopen_self=unknown ;; 11832 esac 11833 11834 case $lt_cv_dlopen_self_static in 11835 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11836 *) enable_dlopen_self_static=unknown ;; 11837 esac 11838fi 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856striplib= 11857old_striplib= 11858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11859$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11860if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11861 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11862 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11864$as_echo "yes" >&6; } 11865else 11866# FIXME - insert some real tests, host_os isn't really good enough 11867 case $host_os in 11868 darwin*) 11869 if test -n "$STRIP" ; then 11870 striplib="$STRIP -x" 11871 old_striplib="$STRIP -S" 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11873$as_echo "yes" >&6; } 11874 else 11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11876$as_echo "no" >&6; } 11877 fi 11878 ;; 11879 *) 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11881$as_echo "no" >&6; } 11882 ;; 11883 esac 11884fi 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 # Report which library types will actually be built 11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11899$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11901$as_echo "$can_build_shared" >&6; } 11902 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11904$as_echo_n "checking whether to build shared libraries... " >&6; } 11905 test "$can_build_shared" = "no" && enable_shared=no 11906 11907 # On AIX, shared libraries and static libraries use the same namespace, and 11908 # are all built from PIC. 11909 case $host_os in 11910 aix3*) 11911 test "$enable_shared" = yes && enable_static=no 11912 if test -n "$RANLIB"; then 11913 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11914 postinstall_cmds='$RANLIB $lib' 11915 fi 11916 ;; 11917 11918 aix[4-9]*) 11919 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11920 test "$enable_shared" = yes && enable_static=no 11921 fi 11922 ;; 11923 esac 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11925$as_echo "$enable_shared" >&6; } 11926 11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11928$as_echo_n "checking whether to build static libraries... " >&6; } 11929 # Make sure either enable_shared or enable_static is yes. 11930 test "$enable_shared" = yes || enable_static=yes 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11932$as_echo "$enable_static" >&6; } 11933 11934 11935 11936 11937fi 11938ac_ext=c 11939ac_cpp='$CPP $CPPFLAGS' 11940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11942ac_compiler_gnu=$ac_cv_c_compiler_gnu 11943 11944CC="$lt_save_CC" 11945 11946 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11947 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11948 (test "X$CXX" != "Xg++"))) ; then 11949 ac_ext=cpp 11950ac_cpp='$CXXCPP $CPPFLAGS' 11951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11955$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11956if test -z "$CXXCPP"; then 11957 if ${ac_cv_prog_CXXCPP+:} false; then : 11958 $as_echo_n "(cached) " >&6 11959else 11960 # Double quotes because CXXCPP needs to be expanded 11961 for CXXCPP in "$CXX -E" "/lib/cpp" 11962 do 11963 ac_preproc_ok=false 11964for ac_cxx_preproc_warn_flag in '' yes 11965do 11966 # Use a header file that comes with gcc, so configuring glibc 11967 # with a fresh cross-compiler works. 11968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11969 # <limits.h> exists even on freestanding compilers. 11970 # On the NeXT, cc -E runs the code through the compiler's parser, 11971 # not just through cpp. "Syntax error" is here to catch this case. 11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11973/* end confdefs.h. */ 11974#ifdef __STDC__ 11975# include <limits.h> 11976#else 11977# include <assert.h> 11978#endif 11979 Syntax error 11980_ACEOF 11981if ac_fn_cxx_try_cpp "$LINENO"; then : 11982 11983else 11984 # Broken: fails on valid input. 11985continue 11986fi 11987rm -f conftest.err conftest.i conftest.$ac_ext 11988 11989 # OK, works on sane cases. Now check whether nonexistent headers 11990 # can be detected and how. 11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11992/* end confdefs.h. */ 11993#include <ac_nonexistent.h> 11994_ACEOF 11995if ac_fn_cxx_try_cpp "$LINENO"; then : 11996 # Broken: success on invalid input. 11997continue 11998else 11999 # Passes both tests. 12000ac_preproc_ok=: 12001break 12002fi 12003rm -f conftest.err conftest.i conftest.$ac_ext 12004 12005done 12006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12007rm -f conftest.i conftest.err conftest.$ac_ext 12008if $ac_preproc_ok; then : 12009 break 12010fi 12011 12012 done 12013 ac_cv_prog_CXXCPP=$CXXCPP 12014 12015fi 12016 CXXCPP=$ac_cv_prog_CXXCPP 12017else 12018 ac_cv_prog_CXXCPP=$CXXCPP 12019fi 12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12021$as_echo "$CXXCPP" >&6; } 12022ac_preproc_ok=false 12023for ac_cxx_preproc_warn_flag in '' yes 12024do 12025 # Use a header file that comes with gcc, so configuring glibc 12026 # with a fresh cross-compiler works. 12027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12028 # <limits.h> exists even on freestanding compilers. 12029 # On the NeXT, cc -E runs the code through the compiler's parser, 12030 # not just through cpp. "Syntax error" is here to catch this case. 12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12032/* end confdefs.h. */ 12033#ifdef __STDC__ 12034# include <limits.h> 12035#else 12036# include <assert.h> 12037#endif 12038 Syntax error 12039_ACEOF 12040if ac_fn_cxx_try_cpp "$LINENO"; then : 12041 12042else 12043 # Broken: fails on valid input. 12044continue 12045fi 12046rm -f conftest.err conftest.i conftest.$ac_ext 12047 12048 # OK, works on sane cases. Now check whether nonexistent headers 12049 # can be detected and how. 12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12051/* end confdefs.h. */ 12052#include <ac_nonexistent.h> 12053_ACEOF 12054if ac_fn_cxx_try_cpp "$LINENO"; then : 12055 # Broken: success on invalid input. 12056continue 12057else 12058 # Passes both tests. 12059ac_preproc_ok=: 12060break 12061fi 12062rm -f conftest.err conftest.i conftest.$ac_ext 12063 12064done 12065# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12066rm -f conftest.i conftest.err conftest.$ac_ext 12067if $ac_preproc_ok; then : 12068 12069else 12070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12072as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12073See \`config.log' for more details" "$LINENO" 5; } 12074fi 12075 12076ac_ext=c 12077ac_cpp='$CPP $CPPFLAGS' 12078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12080ac_compiler_gnu=$ac_cv_c_compiler_gnu 12081 12082else 12083 _lt_caught_CXX_error=yes 12084fi 12085 12086ac_ext=cpp 12087ac_cpp='$CXXCPP $CPPFLAGS' 12088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12091 12092archive_cmds_need_lc_CXX=no 12093allow_undefined_flag_CXX= 12094always_export_symbols_CXX=no 12095archive_expsym_cmds_CXX= 12096compiler_needs_object_CXX=no 12097export_dynamic_flag_spec_CXX= 12098hardcode_direct_CXX=no 12099hardcode_direct_absolute_CXX=no 12100hardcode_libdir_flag_spec_CXX= 12101hardcode_libdir_flag_spec_ld_CXX= 12102hardcode_libdir_separator_CXX= 12103hardcode_minus_L_CXX=no 12104hardcode_shlibpath_var_CXX=unsupported 12105hardcode_automatic_CXX=no 12106inherit_rpath_CXX=no 12107module_cmds_CXX= 12108module_expsym_cmds_CXX= 12109link_all_deplibs_CXX=unknown 12110old_archive_cmds_CXX=$old_archive_cmds 12111reload_flag_CXX=$reload_flag 12112reload_cmds_CXX=$reload_cmds 12113no_undefined_flag_CXX= 12114whole_archive_flag_spec_CXX= 12115enable_shared_with_static_runtimes_CXX=no 12116 12117# Source file extension for C++ test sources. 12118ac_ext=cpp 12119 12120# Object file extension for compiled C++ test sources. 12121objext=o 12122objext_CXX=$objext 12123 12124# No sense in running all these tests if we already determined that 12125# the CXX compiler isn't working. Some variables (like enable_shared) 12126# are currently assumed to apply to all compilers on this platform, 12127# and will be corrupted by setting them based on a non-working compiler. 12128if test "$_lt_caught_CXX_error" != yes; then 12129 # Code to be used in simple compile tests 12130 lt_simple_compile_test_code="int some_variable = 0;" 12131 12132 # Code to be used in simple link tests 12133 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12134 12135 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12136 12137 12138 12139 12140 12141 12142# If no C compiler was specified, use CC. 12143LTCC=${LTCC-"$CC"} 12144 12145# If no C compiler flags were specified, use CFLAGS. 12146LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12147 12148# Allow CC to be a program name with arguments. 12149compiler=$CC 12150 12151 12152 # save warnings/boilerplate of simple test code 12153 ac_outfile=conftest.$ac_objext 12154echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12155eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12156_lt_compiler_boilerplate=`cat conftest.err` 12157$RM conftest* 12158 12159 ac_outfile=conftest.$ac_objext 12160echo "$lt_simple_link_test_code" >conftest.$ac_ext 12161eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12162_lt_linker_boilerplate=`cat conftest.err` 12163$RM -r conftest* 12164 12165 12166 # Allow CC to be a program name with arguments. 12167 lt_save_CC=$CC 12168 lt_save_CFLAGS=$CFLAGS 12169 lt_save_LD=$LD 12170 lt_save_GCC=$GCC 12171 GCC=$GXX 12172 lt_save_with_gnu_ld=$with_gnu_ld 12173 lt_save_path_LD=$lt_cv_path_LD 12174 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12175 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12176 else 12177 $as_unset lt_cv_prog_gnu_ld 12178 fi 12179 if test -n "${lt_cv_path_LDCXX+set}"; then 12180 lt_cv_path_LD=$lt_cv_path_LDCXX 12181 else 12182 $as_unset lt_cv_path_LD 12183 fi 12184 test -z "${LDCXX+set}" || LD=$LDCXX 12185 CC=${CXX-"c++"} 12186 CFLAGS=$CXXFLAGS 12187 compiler=$CC 12188 compiler_CXX=$CC 12189 for cc_temp in $compiler""; do 12190 case $cc_temp in 12191 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12192 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12193 \-*) ;; 12194 *) break;; 12195 esac 12196done 12197cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12198 12199 12200 if test -n "$compiler"; then 12201 # We don't want -fno-exception when compiling C++ code, so set the 12202 # no_builtin_flag separately 12203 if test "$GXX" = yes; then 12204 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12205 else 12206 lt_prog_compiler_no_builtin_flag_CXX= 12207 fi 12208 12209 if test "$GXX" = yes; then 12210 # Set up default GNU C++ configuration 12211 12212 12213 12214# Check whether --with-gnu-ld was given. 12215if test "${with_gnu_ld+set}" = set; then : 12216 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12217else 12218 with_gnu_ld=no 12219fi 12220 12221ac_prog=ld 12222if test "$GCC" = yes; then 12223 # Check if gcc -print-prog-name=ld gives a path. 12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12225$as_echo_n "checking for ld used by $CC... " >&6; } 12226 case $host in 12227 *-*-mingw*) 12228 # gcc leaves a trailing carriage return which upsets mingw 12229 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12230 *) 12231 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12232 esac 12233 case $ac_prog in 12234 # Accept absolute paths. 12235 [\\/]* | ?:[\\/]*) 12236 re_direlt='/[^/][^/]*/\.\./' 12237 # Canonicalize the pathname of ld 12238 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12239 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12240 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12241 done 12242 test -z "$LD" && LD="$ac_prog" 12243 ;; 12244 "") 12245 # If it fails, then pretend we aren't using GCC. 12246 ac_prog=ld 12247 ;; 12248 *) 12249 # If it is relative, then search for the first ld in PATH. 12250 with_gnu_ld=unknown 12251 ;; 12252 esac 12253elif test "$with_gnu_ld" = yes; then 12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12255$as_echo_n "checking for GNU ld... " >&6; } 12256else 12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12258$as_echo_n "checking for non-GNU ld... " >&6; } 12259fi 12260if ${lt_cv_path_LD+:} false; then : 12261 $as_echo_n "(cached) " >&6 12262else 12263 if test -z "$LD"; then 12264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12265 for ac_dir in $PATH; do 12266 IFS="$lt_save_ifs" 12267 test -z "$ac_dir" && ac_dir=. 12268 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12269 lt_cv_path_LD="$ac_dir/$ac_prog" 12270 # Check to see if the program is GNU ld. I'd rather use --version, 12271 # but apparently some variants of GNU ld only accept -v. 12272 # Break only if it was the GNU/non-GNU ld that we prefer. 12273 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12274 *GNU* | *'with BFD'*) 12275 test "$with_gnu_ld" != no && break 12276 ;; 12277 *) 12278 test "$with_gnu_ld" != yes && break 12279 ;; 12280 esac 12281 fi 12282 done 12283 IFS="$lt_save_ifs" 12284else 12285 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12286fi 12287fi 12288 12289LD="$lt_cv_path_LD" 12290if test -n "$LD"; then 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12292$as_echo "$LD" >&6; } 12293else 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12295$as_echo "no" >&6; } 12296fi 12297test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12299$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12300if ${lt_cv_prog_gnu_ld+:} false; then : 12301 $as_echo_n "(cached) " >&6 12302else 12303 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12304case `$LD -v 2>&1 </dev/null` in 12305*GNU* | *'with BFD'*) 12306 lt_cv_prog_gnu_ld=yes 12307 ;; 12308*) 12309 lt_cv_prog_gnu_ld=no 12310 ;; 12311esac 12312fi 12313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12314$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12315with_gnu_ld=$lt_cv_prog_gnu_ld 12316 12317 12318 12319 12320 12321 12322 12323 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12324 # archiving commands below assume that GNU ld is being used. 12325 if test "$with_gnu_ld" = yes; then 12326 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12327 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' 12328 12329 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12331 12332 # If archive_cmds runs LD, not CC, wlarc should be empty 12333 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12334 # investigate it a little bit more. (MM) 12335 wlarc='${wl}' 12336 12337 # ancient GNU ld didn't support --whole-archive et. al. 12338 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12339 $GREP 'no-whole-archive' > /dev/null; then 12340 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12341 else 12342 whole_archive_flag_spec_CXX= 12343 fi 12344 else 12345 with_gnu_ld=no 12346 wlarc= 12347 12348 # A generic and very simple default shared library creation 12349 # command for GNU C++ for the case where it uses the native 12350 # linker, instead of GNU ld. If possible, this setting should 12351 # overridden to take advantage of the native linker features on 12352 # the platform it is being used on. 12353 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12354 fi 12355 12356 # Commands to make compiler produce verbose output that lists 12357 # what "hidden" libraries, object files and flags are used when 12358 # linking a shared library. 12359 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12360 12361 else 12362 GXX=no 12363 with_gnu_ld=no 12364 wlarc= 12365 fi 12366 12367 # PORTME: fill in a description of your system's C++ link characteristics 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12369$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12370 ld_shlibs_CXX=yes 12371 case $host_os in 12372 aix3*) 12373 # FIXME: insert proper C++ library support 12374 ld_shlibs_CXX=no 12375 ;; 12376 aix[4-9]*) 12377 if test "$host_cpu" = ia64; then 12378 # On IA64, the linker does run time linking by default, so we don't 12379 # have to do anything special. 12380 aix_use_runtimelinking=no 12381 exp_sym_flag='-Bexport' 12382 no_entry_flag="" 12383 else 12384 aix_use_runtimelinking=no 12385 12386 # Test if we are trying to use run time linking or normal 12387 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12388 # need to do runtime linking. 12389 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12390 for ld_flag in $LDFLAGS; do 12391 case $ld_flag in 12392 *-brtl*) 12393 aix_use_runtimelinking=yes 12394 break 12395 ;; 12396 esac 12397 done 12398 ;; 12399 esac 12400 12401 exp_sym_flag='-bexport' 12402 no_entry_flag='-bnoentry' 12403 fi 12404 12405 # When large executables or shared objects are built, AIX ld can 12406 # have problems creating the table of contents. If linking a library 12407 # or program results in "error TOC overflow" add -mminimal-toc to 12408 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12409 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12410 12411 archive_cmds_CXX='' 12412 hardcode_direct_CXX=yes 12413 hardcode_direct_absolute_CXX=yes 12414 hardcode_libdir_separator_CXX=':' 12415 link_all_deplibs_CXX=yes 12416 file_list_spec_CXX='${wl}-f,' 12417 12418 if test "$GXX" = yes; then 12419 case $host_os in aix4.[012]|aix4.[012].*) 12420 # We only want to do this on AIX 4.2 and lower, the check 12421 # below for broken collect2 doesn't work under 4.3+ 12422 collect2name=`${CC} -print-prog-name=collect2` 12423 if test -f "$collect2name" && 12424 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12425 then 12426 # We have reworked collect2 12427 : 12428 else 12429 # We have old collect2 12430 hardcode_direct_CXX=unsupported 12431 # It fails to find uninstalled libraries when the uninstalled 12432 # path is not listed in the libpath. Setting hardcode_minus_L 12433 # to unsupported forces relinking 12434 hardcode_minus_L_CXX=yes 12435 hardcode_libdir_flag_spec_CXX='-L$libdir' 12436 hardcode_libdir_separator_CXX= 12437 fi 12438 esac 12439 shared_flag='-shared' 12440 if test "$aix_use_runtimelinking" = yes; then 12441 shared_flag="$shared_flag "'${wl}-G' 12442 fi 12443 else 12444 # not using gcc 12445 if test "$host_cpu" = ia64; then 12446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12447 # chokes on -Wl,-G. The following line is correct: 12448 shared_flag='-G' 12449 else 12450 if test "$aix_use_runtimelinking" = yes; then 12451 shared_flag='${wl}-G' 12452 else 12453 shared_flag='${wl}-bM:SRE' 12454 fi 12455 fi 12456 fi 12457 12458 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12459 # It seems that -bexpall does not export symbols beginning with 12460 # underscore (_), so it is better to generate a list of symbols to 12461 # export. 12462 always_export_symbols_CXX=yes 12463 if test "$aix_use_runtimelinking" = yes; then 12464 # Warning - without using the other runtime loading flags (-brtl), 12465 # -berok will link without error, but may produce a broken library. 12466 allow_undefined_flag_CXX='-berok' 12467 # Determine the default libpath from the value encoded in an empty 12468 # executable. 12469 if test "${lt_cv_aix_libpath+set}" = set; then 12470 aix_libpath=$lt_cv_aix_libpath 12471else 12472 if ${lt_cv_aix_libpath__CXX+:} false; then : 12473 $as_echo_n "(cached) " >&6 12474else 12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12476/* end confdefs.h. */ 12477 12478int 12479main () 12480{ 12481 12482 ; 12483 return 0; 12484} 12485_ACEOF 12486if ac_fn_cxx_try_link "$LINENO"; then : 12487 12488 lt_aix_libpath_sed=' 12489 /Import File Strings/,/^$/ { 12490 /^0/ { 12491 s/^0 *\([^ ]*\) *$/\1/ 12492 p 12493 } 12494 }' 12495 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12496 # Check for a 64-bit object if we didn't find anything. 12497 if test -z "$lt_cv_aix_libpath__CXX"; then 12498 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12499 fi 12500fi 12501rm -f core conftest.err conftest.$ac_objext \ 12502 conftest$ac_exeext conftest.$ac_ext 12503 if test -z "$lt_cv_aix_libpath__CXX"; then 12504 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12505 fi 12506 12507fi 12508 12509 aix_libpath=$lt_cv_aix_libpath__CXX 12510fi 12511 12512 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12513 12514 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" 12515 else 12516 if test "$host_cpu" = ia64; then 12517 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12518 allow_undefined_flag_CXX="-z nodefs" 12519 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" 12520 else 12521 # Determine the default libpath from the value encoded in an 12522 # empty executable. 12523 if test "${lt_cv_aix_libpath+set}" = set; then 12524 aix_libpath=$lt_cv_aix_libpath 12525else 12526 if ${lt_cv_aix_libpath__CXX+:} false; then : 12527 $as_echo_n "(cached) " >&6 12528else 12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12530/* end confdefs.h. */ 12531 12532int 12533main () 12534{ 12535 12536 ; 12537 return 0; 12538} 12539_ACEOF 12540if ac_fn_cxx_try_link "$LINENO"; then : 12541 12542 lt_aix_libpath_sed=' 12543 /Import File Strings/,/^$/ { 12544 /^0/ { 12545 s/^0 *\([^ ]*\) *$/\1/ 12546 p 12547 } 12548 }' 12549 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12550 # Check for a 64-bit object if we didn't find anything. 12551 if test -z "$lt_cv_aix_libpath__CXX"; then 12552 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12553 fi 12554fi 12555rm -f core conftest.err conftest.$ac_objext \ 12556 conftest$ac_exeext conftest.$ac_ext 12557 if test -z "$lt_cv_aix_libpath__CXX"; then 12558 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12559 fi 12560 12561fi 12562 12563 aix_libpath=$lt_cv_aix_libpath__CXX 12564fi 12565 12566 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12567 # Warning - without using the other run time loading flags, 12568 # -berok will link without error, but may produce a broken library. 12569 no_undefined_flag_CXX=' ${wl}-bernotok' 12570 allow_undefined_flag_CXX=' ${wl}-berok' 12571 if test "$with_gnu_ld" = yes; then 12572 # We only use this code for GNU lds that support --whole-archive. 12573 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12574 else 12575 # Exported symbols can be pulled into shared objects from archives 12576 whole_archive_flag_spec_CXX='$convenience' 12577 fi 12578 archive_cmds_need_lc_CXX=yes 12579 # This is similar to how AIX traditionally builds its shared 12580 # libraries. 12581 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' 12582 fi 12583 fi 12584 ;; 12585 12586 beos*) 12587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12588 allow_undefined_flag_CXX=unsupported 12589 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12590 # support --undefined. This deserves some investigation. FIXME 12591 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12592 else 12593 ld_shlibs_CXX=no 12594 fi 12595 ;; 12596 12597 chorus*) 12598 case $cc_basename in 12599 *) 12600 # FIXME: insert proper C++ library support 12601 ld_shlibs_CXX=no 12602 ;; 12603 esac 12604 ;; 12605 12606 cygwin* | mingw* | pw32* | cegcc*) 12607 case $GXX,$cc_basename in 12608 ,cl* | no,cl*) 12609 # Native MSVC 12610 # hardcode_libdir_flag_spec is actually meaningless, as there is 12611 # no search path for DLLs. 12612 hardcode_libdir_flag_spec_CXX=' ' 12613 allow_undefined_flag_CXX=unsupported 12614 always_export_symbols_CXX=yes 12615 file_list_spec_CXX='@' 12616 # Tell ltmain to make .lib files, not .a files. 12617 libext=lib 12618 # Tell ltmain to make .dll files, not .so files. 12619 shrext_cmds=".dll" 12620 # FIXME: Setting linknames here is a bad hack. 12621 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12622 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12623 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12624 else 12625 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12626 fi~ 12627 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12628 linknames=' 12629 # The linker will not automatically build a static lib if we build a DLL. 12630 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 12631 enable_shared_with_static_runtimes_CXX=yes 12632 # Don't use ranlib 12633 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12634 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12635 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12636 case $lt_outputfile in 12637 *.exe|*.EXE) ;; 12638 *) 12639 lt_outputfile="$lt_outputfile.exe" 12640 lt_tool_outputfile="$lt_tool_outputfile.exe" 12641 ;; 12642 esac~ 12643 func_to_tool_file "$lt_outputfile"~ 12644 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12645 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12646 $RM "$lt_outputfile.manifest"; 12647 fi' 12648 ;; 12649 *) 12650 # g++ 12651 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12652 # as there is no search path for DLLs. 12653 hardcode_libdir_flag_spec_CXX='-L$libdir' 12654 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12655 allow_undefined_flag_CXX=unsupported 12656 always_export_symbols_CXX=no 12657 enable_shared_with_static_runtimes_CXX=yes 12658 12659 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12660 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' 12661 # If the export-symbols file already is a .def file (1st line 12662 # is EXPORTS), use it as is; otherwise, prepend... 12663 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12664 cp $export_symbols $output_objdir/$soname.def; 12665 else 12666 echo EXPORTS > $output_objdir/$soname.def; 12667 cat $export_symbols >> $output_objdir/$soname.def; 12668 fi~ 12669 $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' 12670 else 12671 ld_shlibs_CXX=no 12672 fi 12673 ;; 12674 esac 12675 ;; 12676 darwin* | rhapsody*) 12677 12678 12679 archive_cmds_need_lc_CXX=no 12680 hardcode_direct_CXX=no 12681 hardcode_automatic_CXX=yes 12682 hardcode_shlibpath_var_CXX=unsupported 12683 if test "$lt_cv_ld_force_load" = "yes"; then 12684 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\"`' 12685 else 12686 whole_archive_flag_spec_CXX='' 12687 fi 12688 link_all_deplibs_CXX=yes 12689 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12690 case $cc_basename in 12691 ifort*) _lt_dar_can_shared=yes ;; 12692 *) _lt_dar_can_shared=$GCC ;; 12693 esac 12694 if test "$_lt_dar_can_shared" = "yes"; then 12695 output_verbose_link_cmd=func_echo_all 12696 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}" 12697 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12698 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}" 12699 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}" 12700 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12701 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}" 12702 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}" 12703 fi 12704 12705 else 12706 ld_shlibs_CXX=no 12707 fi 12708 12709 ;; 12710 12711 dgux*) 12712 case $cc_basename in 12713 ec++*) 12714 # FIXME: insert proper C++ library support 12715 ld_shlibs_CXX=no 12716 ;; 12717 ghcx*) 12718 # Green Hills C++ Compiler 12719 # FIXME: insert proper C++ library support 12720 ld_shlibs_CXX=no 12721 ;; 12722 *) 12723 # FIXME: insert proper C++ library support 12724 ld_shlibs_CXX=no 12725 ;; 12726 esac 12727 ;; 12728 12729 freebsd[12]*) 12730 # C++ shared libraries reported to be fairly broken before 12731 # switch to ELF 12732 ld_shlibs_CXX=no 12733 ;; 12734 12735 freebsd-elf*) 12736 archive_cmds_need_lc_CXX=no 12737 ;; 12738 12739 freebsd* | dragonfly*) 12740 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12741 # conventions 12742 ld_shlibs_CXX=yes 12743 ;; 12744 12745 gnu*) 12746 ;; 12747 12748 haiku*) 12749 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12750 link_all_deplibs_CXX=yes 12751 ;; 12752 12753 hpux9*) 12754 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12755 hardcode_libdir_separator_CXX=: 12756 export_dynamic_flag_spec_CXX='${wl}-E' 12757 hardcode_direct_CXX=yes 12758 hardcode_minus_L_CXX=yes # Not in the search PATH, 12759 # but as the default 12760 # location of the library. 12761 12762 case $cc_basename in 12763 CC*) 12764 # FIXME: insert proper C++ library support 12765 ld_shlibs_CXX=no 12766 ;; 12767 aCC*) 12768 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' 12769 # Commands to make compiler produce verbose output that lists 12770 # what "hidden" libraries, object files and flags are used when 12771 # linking a shared library. 12772 # 12773 # There doesn't appear to be a way to prevent this compiler from 12774 # explicitly linking system object files so we need to strip them 12775 # from the output so that they don't get included in the library 12776 # dependencies. 12777 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"' 12778 ;; 12779 *) 12780 if test "$GXX" = yes; then 12781 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' 12782 else 12783 # FIXME: insert proper C++ library support 12784 ld_shlibs_CXX=no 12785 fi 12786 ;; 12787 esac 12788 ;; 12789 12790 hpux10*|hpux11*) 12791 if test $with_gnu_ld = no; then 12792 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12793 hardcode_libdir_separator_CXX=: 12794 12795 case $host_cpu in 12796 hppa*64*|ia64*) 12797 ;; 12798 *) 12799 export_dynamic_flag_spec_CXX='${wl}-E' 12800 ;; 12801 esac 12802 fi 12803 case $host_cpu in 12804 hppa*64*|ia64*) 12805 hardcode_direct_CXX=no 12806 hardcode_shlibpath_var_CXX=no 12807 ;; 12808 *) 12809 hardcode_direct_CXX=yes 12810 hardcode_direct_absolute_CXX=yes 12811 hardcode_minus_L_CXX=yes # Not in the search PATH, 12812 # but as the default 12813 # location of the library. 12814 ;; 12815 esac 12816 12817 case $cc_basename in 12818 CC*) 12819 # FIXME: insert proper C++ library support 12820 ld_shlibs_CXX=no 12821 ;; 12822 aCC*) 12823 case $host_cpu in 12824 hppa*64*) 12825 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12826 ;; 12827 ia64*) 12828 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12829 ;; 12830 *) 12831 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12832 ;; 12833 esac 12834 # Commands to make compiler produce verbose output that lists 12835 # what "hidden" libraries, object files and flags are used when 12836 # linking a shared library. 12837 # 12838 # There doesn't appear to be a way to prevent this compiler from 12839 # explicitly linking system object files so we need to strip them 12840 # from the output so that they don't get included in the library 12841 # dependencies. 12842 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"' 12843 ;; 12844 *) 12845 if test "$GXX" = yes; then 12846 if test $with_gnu_ld = no; then 12847 case $host_cpu in 12848 hppa*64*) 12849 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12850 ;; 12851 ia64*) 12852 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12853 ;; 12854 *) 12855 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' 12856 ;; 12857 esac 12858 fi 12859 else 12860 # FIXME: insert proper C++ library support 12861 ld_shlibs_CXX=no 12862 fi 12863 ;; 12864 esac 12865 ;; 12866 12867 interix[3-9]*) 12868 hardcode_direct_CXX=no 12869 hardcode_shlibpath_var_CXX=no 12870 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12871 export_dynamic_flag_spec_CXX='${wl}-E' 12872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12873 # Instead, shared libraries are loaded at an image base (0x10000000 by 12874 # default) and relocated if they conflict, which is a slow very memory 12875 # consuming and fragmenting process. To avoid this, we pick a random, 12876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12877 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12878 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' 12879 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' 12880 ;; 12881 irix5* | irix6*) 12882 case $cc_basename in 12883 CC*) 12884 # SGI C++ 12885 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' 12886 12887 # Archives containing C++ object files must be created using 12888 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12889 # necessary to make sure instantiated templates are included 12890 # in the archive. 12891 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12892 ;; 12893 *) 12894 if test "$GXX" = yes; then 12895 if test "$with_gnu_ld" = no; then 12896 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' 12897 else 12898 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' 12899 fi 12900 fi 12901 link_all_deplibs_CXX=yes 12902 ;; 12903 esac 12904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12905 hardcode_libdir_separator_CXX=: 12906 inherit_rpath_CXX=yes 12907 ;; 12908 12909 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12910 case $cc_basename in 12911 KCC*) 12912 # Kuck and Associates, Inc. (KAI) C++ Compiler 12913 12914 # KCC will only create a shared library if the output file 12915 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12916 # to its proper name (with version) after linking. 12917 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' 12918 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' 12919 # Commands to make compiler produce verbose output that lists 12920 # what "hidden" libraries, object files and flags are used when 12921 # linking a shared library. 12922 # 12923 # There doesn't appear to be a way to prevent this compiler from 12924 # explicitly linking system object files so we need to strip them 12925 # from the output so that they don't get included in the library 12926 # dependencies. 12927 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"' 12928 12929 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12930 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12931 12932 # Archives containing C++ object files must be created using 12933 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12934 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12935 ;; 12936 icpc* | ecpc* ) 12937 # Intel C++ 12938 with_gnu_ld=yes 12939 # version 8.0 and above of icpc choke on multiply defined symbols 12940 # if we add $predep_objects and $postdep_objects, however 7.1 and 12941 # earlier do not add the objects themselves. 12942 case `$CC -V 2>&1` in 12943 *"Version 7."*) 12944 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12945 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' 12946 ;; 12947 *) # Version 8.0 or newer 12948 tmp_idyn= 12949 case $host_cpu in 12950 ia64*) tmp_idyn=' -i_dynamic';; 12951 esac 12952 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12953 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' 12954 ;; 12955 esac 12956 archive_cmds_need_lc_CXX=no 12957 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12958 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12959 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12960 ;; 12961 pgCC* | pgcpp*) 12962 # Portland Group C++ compiler 12963 case `$CC -V` in 12964 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12965 prelink_cmds_CXX='tpldir=Template.dir~ 12966 rm -rf $tpldir~ 12967 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12968 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 12969 old_archive_cmds_CXX='tpldir=Template.dir~ 12970 rm -rf $tpldir~ 12971 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12972 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 12973 $RANLIB $oldlib' 12974 archive_cmds_CXX='tpldir=Template.dir~ 12975 rm -rf $tpldir~ 12976 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12977 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12978 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12979 rm -rf $tpldir~ 12980 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12981 $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' 12982 ;; 12983 *) # Version 6 and above use weak symbols 12984 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12985 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' 12986 ;; 12987 esac 12988 12989 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12990 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12991 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' 12992 ;; 12993 cxx*) 12994 # Compaq C++ 12995 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12996 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' 12997 12998 runpath_var=LD_RUN_PATH 12999 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13000 hardcode_libdir_separator_CXX=: 13001 13002 # Commands to make compiler produce verbose output that lists 13003 # what "hidden" libraries, object files and flags are used when 13004 # linking a shared library. 13005 # 13006 # There doesn't appear to be a way to prevent this compiler from 13007 # explicitly linking system object files so we need to strip them 13008 # from the output so that they don't get included in the library 13009 # dependencies. 13010 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' 13011 ;; 13012 xl* | mpixl* | bgxl*) 13013 # IBM XL 8.0 on PPC, with GNU ld 13014 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13015 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13016 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13017 if test "x$supports_anon_versioning" = xyes; then 13018 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13019 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13020 echo "local: *; };" >> $output_objdir/$libname.ver~ 13021 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13022 fi 13023 ;; 13024 *) 13025 case `$CC -V 2>&1 | sed 5q` in 13026 *Sun\ C*) 13027 # Sun C++ 5.9 13028 no_undefined_flag_CXX=' -zdefs' 13029 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13030 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' 13031 hardcode_libdir_flag_spec_CXX='-R$libdir' 13032 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' 13033 compiler_needs_object_CXX=yes 13034 13035 # Not sure whether something based on 13036 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13037 # would be better. 13038 output_verbose_link_cmd='func_echo_all' 13039 13040 # Archives containing C++ object files must be created using 13041 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13042 # necessary to make sure instantiated templates are included 13043 # in the archive. 13044 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13045 ;; 13046 esac 13047 ;; 13048 esac 13049 ;; 13050 13051 lynxos*) 13052 # FIXME: insert proper C++ library support 13053 ld_shlibs_CXX=no 13054 ;; 13055 13056 m88k*) 13057 # FIXME: insert proper C++ library support 13058 ld_shlibs_CXX=no 13059 ;; 13060 13061 mvs*) 13062 case $cc_basename in 13063 cxx*) 13064 # FIXME: insert proper C++ library support 13065 ld_shlibs_CXX=no 13066 ;; 13067 *) 13068 # FIXME: insert proper C++ library support 13069 ld_shlibs_CXX=no 13070 ;; 13071 esac 13072 ;; 13073 13074 netbsd*) 13075 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13076 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13077 wlarc= 13078 hardcode_libdir_flag_spec_CXX='-R$libdir' 13079 hardcode_direct_CXX=yes 13080 hardcode_shlibpath_var_CXX=no 13081 fi 13082 # Workaround some broken pre-1.5 toolchains 13083 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13084 ;; 13085 13086 *nto* | *qnx*) 13087 ld_shlibs_CXX=yes 13088 ;; 13089 13090 openbsd2*) 13091 # C++ shared libraries are fairly broken 13092 ld_shlibs_CXX=no 13093 ;; 13094 13095 openbsd*) 13096 if test -f /usr/libexec/ld.so; then 13097 hardcode_direct_CXX=yes 13098 hardcode_shlibpath_var_CXX=no 13099 hardcode_direct_absolute_CXX=yes 13100 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13101 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13103 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13104 export_dynamic_flag_spec_CXX='${wl}-E' 13105 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13106 fi 13107 output_verbose_link_cmd=func_echo_all 13108 else 13109 ld_shlibs_CXX=no 13110 fi 13111 ;; 13112 13113 osf3* | osf4* | osf5*) 13114 case $cc_basename in 13115 KCC*) 13116 # Kuck and Associates, Inc. (KAI) C++ Compiler 13117 13118 # KCC will only create a shared library if the output file 13119 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13120 # to its proper name (with version) after linking. 13121 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' 13122 13123 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13124 hardcode_libdir_separator_CXX=: 13125 13126 # Archives containing C++ object files must be created using 13127 # the KAI C++ compiler. 13128 case $host in 13129 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13130 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13131 esac 13132 ;; 13133 RCC*) 13134 # Rational C++ 2.4.1 13135 # FIXME: insert proper C++ library support 13136 ld_shlibs_CXX=no 13137 ;; 13138 cxx*) 13139 case $host in 13140 osf3*) 13141 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13142 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' 13143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13144 ;; 13145 *) 13146 allow_undefined_flag_CXX=' -expect_unresolved \*' 13147 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' 13148 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13149 echo "-hidden">> $lib.exp~ 13150 $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~ 13151 $RM $lib.exp' 13152 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13153 ;; 13154 esac 13155 13156 hardcode_libdir_separator_CXX=: 13157 13158 # Commands to make compiler produce verbose output that lists 13159 # what "hidden" libraries, object files and flags are used when 13160 # linking a shared library. 13161 # 13162 # There doesn't appear to be a way to prevent this compiler from 13163 # explicitly linking system object files so we need to strip them 13164 # from the output so that they don't get included in the library 13165 # dependencies. 13166 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"' 13167 ;; 13168 *) 13169 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13170 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13171 case $host in 13172 osf3*) 13173 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' 13174 ;; 13175 *) 13176 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' 13177 ;; 13178 esac 13179 13180 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13181 hardcode_libdir_separator_CXX=: 13182 13183 # Commands to make compiler produce verbose output that lists 13184 # what "hidden" libraries, object files and flags are used when 13185 # linking a shared library. 13186 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13187 13188 else 13189 # FIXME: insert proper C++ library support 13190 ld_shlibs_CXX=no 13191 fi 13192 ;; 13193 esac 13194 ;; 13195 13196 psos*) 13197 # FIXME: insert proper C++ library support 13198 ld_shlibs_CXX=no 13199 ;; 13200 13201 sunos4*) 13202 case $cc_basename in 13203 CC*) 13204 # Sun C++ 4.x 13205 # FIXME: insert proper C++ library support 13206 ld_shlibs_CXX=no 13207 ;; 13208 lcc*) 13209 # Lucid 13210 # FIXME: insert proper C++ library support 13211 ld_shlibs_CXX=no 13212 ;; 13213 *) 13214 # FIXME: insert proper C++ library support 13215 ld_shlibs_CXX=no 13216 ;; 13217 esac 13218 ;; 13219 13220 solaris*) 13221 case $cc_basename in 13222 CC* | sunCC*) 13223 # Sun C++ 4.2, 5.x and Centerline C++ 13224 archive_cmds_need_lc_CXX=yes 13225 no_undefined_flag_CXX=' -zdefs' 13226 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13227 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13228 $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' 13229 13230 hardcode_libdir_flag_spec_CXX='-R$libdir' 13231 hardcode_shlibpath_var_CXX=no 13232 case $host_os in 13233 solaris2.[0-5] | solaris2.[0-5].*) ;; 13234 *) 13235 # The compiler driver will combine and reorder linker options, 13236 # but understands `-z linker_flag'. 13237 # Supported since Solaris 2.6 (maybe 2.5.1?) 13238 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13239 ;; 13240 esac 13241 link_all_deplibs_CXX=yes 13242 13243 output_verbose_link_cmd='func_echo_all' 13244 13245 # Archives containing C++ object files must be created using 13246 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13247 # necessary to make sure instantiated templates are included 13248 # in the archive. 13249 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13250 ;; 13251 gcx*) 13252 # Green Hills C++ Compiler 13253 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13254 13255 # The C++ compiler must be used to create the archive. 13256 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13257 ;; 13258 *) 13259 # GNU C++ compiler with Solaris linker 13260 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13261 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13262 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13263 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13264 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13265 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13266 13267 # Commands to make compiler produce verbose output that lists 13268 # what "hidden" libraries, object files and flags are used when 13269 # linking a shared library. 13270 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13271 else 13272 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13273 # platform. 13274 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13275 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13276 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13277 13278 # Commands to make compiler produce verbose output that lists 13279 # what "hidden" libraries, object files and flags are used when 13280 # linking a shared library. 13281 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13282 fi 13283 13284 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13285 case $host_os in 13286 solaris2.[0-5] | solaris2.[0-5].*) ;; 13287 *) 13288 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13289 ;; 13290 esac 13291 fi 13292 ;; 13293 esac 13294 ;; 13295 13296 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13297 no_undefined_flag_CXX='${wl}-z,text' 13298 archive_cmds_need_lc_CXX=no 13299 hardcode_shlibpath_var_CXX=no 13300 runpath_var='LD_RUN_PATH' 13301 13302 case $cc_basename in 13303 CC*) 13304 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13305 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13306 ;; 13307 *) 13308 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13309 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13310 ;; 13311 esac 13312 ;; 13313 13314 sysv5* | sco3.2v5* | sco5v6*) 13315 # Note: We can NOT use -z defs as we might desire, because we do not 13316 # link with -lc, and that would cause any symbols used from libc to 13317 # always be unresolved, which means just about no library would 13318 # ever link correctly. If we're not using GNU ld we use -z text 13319 # though, which does catch some bad symbols but isn't as heavy-handed 13320 # as -z defs. 13321 no_undefined_flag_CXX='${wl}-z,text' 13322 allow_undefined_flag_CXX='${wl}-z,nodefs' 13323 archive_cmds_need_lc_CXX=no 13324 hardcode_shlibpath_var_CXX=no 13325 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13326 hardcode_libdir_separator_CXX=':' 13327 link_all_deplibs_CXX=yes 13328 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13329 runpath_var='LD_RUN_PATH' 13330 13331 case $cc_basename in 13332 CC*) 13333 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13334 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13335 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13336 '"$old_archive_cmds_CXX" 13337 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13338 '"$reload_cmds_CXX" 13339 ;; 13340 *) 13341 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13342 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13343 ;; 13344 esac 13345 ;; 13346 13347 tandem*) 13348 case $cc_basename in 13349 NCC*) 13350 # NonStop-UX NCC 3.20 13351 # FIXME: insert proper C++ library support 13352 ld_shlibs_CXX=no 13353 ;; 13354 *) 13355 # FIXME: insert proper C++ library support 13356 ld_shlibs_CXX=no 13357 ;; 13358 esac 13359 ;; 13360 13361 vxworks*) 13362 # FIXME: insert proper C++ library support 13363 ld_shlibs_CXX=no 13364 ;; 13365 13366 *) 13367 # FIXME: insert proper C++ library support 13368 ld_shlibs_CXX=no 13369 ;; 13370 esac 13371 13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13373$as_echo "$ld_shlibs_CXX" >&6; } 13374 test "$ld_shlibs_CXX" = no && can_build_shared=no 13375 13376 GCC_CXX="$GXX" 13377 LD_CXX="$LD" 13378 13379 ## CAVEAT EMPTOR: 13380 ## There is no encapsulation within the following macros, do not change 13381 ## the running order or otherwise move them around unless you know exactly 13382 ## what you are doing... 13383 # Dependencies to place before and after the object being linked: 13384predep_objects_CXX= 13385postdep_objects_CXX= 13386predeps_CXX= 13387postdeps_CXX= 13388compiler_lib_search_path_CXX= 13389 13390cat > conftest.$ac_ext <<_LT_EOF 13391class Foo 13392{ 13393public: 13394 Foo (void) { a = 0; } 13395private: 13396 int a; 13397}; 13398_LT_EOF 13399 13400 13401_lt_libdeps_save_CFLAGS=$CFLAGS 13402case "$CC $CFLAGS " in #( 13403*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13404*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13405esac 13406 13407if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13408 (eval $ac_compile) 2>&5 13409 ac_status=$? 13410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13411 test $ac_status = 0; }; then 13412 # Parse the compiler output and extract the necessary 13413 # objects, libraries and library flags. 13414 13415 # Sentinel used to keep track of whether or not we are before 13416 # the conftest object file. 13417 pre_test_object_deps_done=no 13418 13419 for p in `eval "$output_verbose_link_cmd"`; do 13420 case ${prev}${p} in 13421 13422 -L* | -R* | -l*) 13423 # Some compilers place space between "-{L,R}" and the path. 13424 # Remove the space. 13425 if test $p = "-L" || 13426 test $p = "-R"; then 13427 prev=$p 13428 continue 13429 fi 13430 13431 # Expand the sysroot to ease extracting the directories later. 13432 if test -z "$prev"; then 13433 case $p in 13434 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13435 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13436 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13437 esac 13438 fi 13439 case $p in 13440 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13441 esac 13442 if test "$pre_test_object_deps_done" = no; then 13443 case ${prev} in 13444 -L | -R) 13445 # Internal compiler library paths should come after those 13446 # provided the user. The postdeps already come after the 13447 # user supplied libs so there is no need to process them. 13448 if test -z "$compiler_lib_search_path_CXX"; then 13449 compiler_lib_search_path_CXX="${prev}${p}" 13450 else 13451 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13452 fi 13453 ;; 13454 # The "-l" case would never come before the object being 13455 # linked, so don't bother handling this case. 13456 esac 13457 else 13458 if test -z "$postdeps_CXX"; then 13459 postdeps_CXX="${prev}${p}" 13460 else 13461 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13462 fi 13463 fi 13464 prev= 13465 ;; 13466 13467 *.lto.$objext) ;; # Ignore GCC LTO objects 13468 *.$objext) 13469 # This assumes that the test object file only shows up 13470 # once in the compiler output. 13471 if test "$p" = "conftest.$objext"; then 13472 pre_test_object_deps_done=yes 13473 continue 13474 fi 13475 13476 if test "$pre_test_object_deps_done" = no; then 13477 if test -z "$predep_objects_CXX"; then 13478 predep_objects_CXX="$p" 13479 else 13480 predep_objects_CXX="$predep_objects_CXX $p" 13481 fi 13482 else 13483 if test -z "$postdep_objects_CXX"; then 13484 postdep_objects_CXX="$p" 13485 else 13486 postdep_objects_CXX="$postdep_objects_CXX $p" 13487 fi 13488 fi 13489 ;; 13490 13491 *) ;; # Ignore the rest. 13492 13493 esac 13494 done 13495 13496 # Clean up. 13497 rm -f a.out a.exe 13498else 13499 echo "libtool.m4: error: problem compiling CXX test program" 13500fi 13501 13502$RM -f confest.$objext 13503CFLAGS=$_lt_libdeps_save_CFLAGS 13504 13505# PORTME: override above test on systems where it is broken 13506case $host_os in 13507interix[3-9]*) 13508 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13509 # hack all around it, let's just trust "g++" to DTRT. 13510 predep_objects_CXX= 13511 postdep_objects_CXX= 13512 postdeps_CXX= 13513 ;; 13514 13515linux*) 13516 case `$CC -V 2>&1 | sed 5q` in 13517 *Sun\ C*) 13518 # Sun C++ 5.9 13519 13520 # The more standards-conforming stlport4 library is 13521 # incompatible with the Cstd library. Avoid specifying 13522 # it if it's in CXXFLAGS. Ignore libCrun as 13523 # -library=stlport4 depends on it. 13524 case " $CXX $CXXFLAGS " in 13525 *" -library=stlport4 "*) 13526 solaris_use_stlport4=yes 13527 ;; 13528 esac 13529 13530 if test "$solaris_use_stlport4" != yes; then 13531 postdeps_CXX='-library=Cstd -library=Crun' 13532 fi 13533 ;; 13534 esac 13535 ;; 13536 13537solaris*) 13538 case $cc_basename in 13539 CC* | sunCC*) 13540 # The more standards-conforming stlport4 library is 13541 # incompatible with the Cstd library. Avoid specifying 13542 # it if it's in CXXFLAGS. Ignore libCrun as 13543 # -library=stlport4 depends on it. 13544 case " $CXX $CXXFLAGS " in 13545 *" -library=stlport4 "*) 13546 solaris_use_stlport4=yes 13547 ;; 13548 esac 13549 13550 # Adding this requires a known-good setup of shared libraries for 13551 # Sun compiler versions before 5.6, else PIC objects from an old 13552 # archive will be linked into the output, leading to subtle bugs. 13553 if test "$solaris_use_stlport4" != yes; then 13554 postdeps_CXX='-library=Cstd -library=Crun' 13555 fi 13556 ;; 13557 esac 13558 ;; 13559esac 13560 13561 13562case " $postdeps_CXX " in 13563*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13564esac 13565 compiler_lib_search_dirs_CXX= 13566if test -n "${compiler_lib_search_path_CXX}"; then 13567 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13568fi 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 lt_prog_compiler_wl_CXX= 13601lt_prog_compiler_pic_CXX= 13602lt_prog_compiler_static_CXX= 13603 13604 13605 # C++ specific cases for pic, static, wl, etc. 13606 if test "$GXX" = yes; then 13607 lt_prog_compiler_wl_CXX='-Wl,' 13608 lt_prog_compiler_static_CXX='-static' 13609 13610 case $host_os in 13611 aix*) 13612 # All AIX code is PIC. 13613 if test "$host_cpu" = ia64; then 13614 # AIX 5 now supports IA64 processor 13615 lt_prog_compiler_static_CXX='-Bstatic' 13616 fi 13617 ;; 13618 13619 amigaos*) 13620 case $host_cpu in 13621 powerpc) 13622 # see comment about AmigaOS4 .so support 13623 lt_prog_compiler_pic_CXX='-fPIC' 13624 ;; 13625 m68k) 13626 # FIXME: we need at least 68020 code to build shared libraries, but 13627 # adding the `-m68020' flag to GCC prevents building anything better, 13628 # like `-m68040'. 13629 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13630 ;; 13631 esac 13632 ;; 13633 13634 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13635 # PIC is the default for these OSes. 13636 ;; 13637 mingw* | cygwin* | os2* | pw32* | cegcc*) 13638 # This hack is so that the source file can tell whether it is being 13639 # built for inclusion in a dll (and should export symbols for example). 13640 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13641 # (--disable-auto-import) libraries 13642 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13643 ;; 13644 darwin* | rhapsody*) 13645 # PIC is the default on this platform 13646 # Common symbols not allowed in MH_DYLIB files 13647 lt_prog_compiler_pic_CXX='-fno-common' 13648 ;; 13649 *djgpp*) 13650 # DJGPP does not support shared libraries at all 13651 lt_prog_compiler_pic_CXX= 13652 ;; 13653 haiku*) 13654 # PIC is the default for Haiku. 13655 # The "-static" flag exists, but is broken. 13656 lt_prog_compiler_static_CXX= 13657 ;; 13658 interix[3-9]*) 13659 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13660 # Instead, we relocate shared libraries at runtime. 13661 ;; 13662 sysv4*MP*) 13663 if test -d /usr/nec; then 13664 lt_prog_compiler_pic_CXX=-Kconform_pic 13665 fi 13666 ;; 13667 hpux*) 13668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13670 # sets the default TLS model and affects inlining. 13671 case $host_cpu in 13672 hppa*64*) 13673 ;; 13674 *) 13675 lt_prog_compiler_pic_CXX='-fPIC' 13676 ;; 13677 esac 13678 ;; 13679 *qnx* | *nto*) 13680 # QNX uses GNU C++, but need to define -shared option too, otherwise 13681 # it will coredump. 13682 lt_prog_compiler_pic_CXX='-fPIC -shared' 13683 ;; 13684 *) 13685 lt_prog_compiler_pic_CXX='-fPIC' 13686 ;; 13687 esac 13688 else 13689 case $host_os in 13690 aix[4-9]*) 13691 # All AIX code is PIC. 13692 if test "$host_cpu" = ia64; then 13693 # AIX 5 now supports IA64 processor 13694 lt_prog_compiler_static_CXX='-Bstatic' 13695 else 13696 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13697 fi 13698 ;; 13699 chorus*) 13700 case $cc_basename in 13701 cxch68*) 13702 # Green Hills C++ Compiler 13703 # _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" 13704 ;; 13705 esac 13706 ;; 13707 mingw* | cygwin* | os2* | pw32* | cegcc*) 13708 # This hack is so that the source file can tell whether it is being 13709 # built for inclusion in a dll (and should export symbols for example). 13710 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13711 ;; 13712 dgux*) 13713 case $cc_basename in 13714 ec++*) 13715 lt_prog_compiler_pic_CXX='-KPIC' 13716 ;; 13717 ghcx*) 13718 # Green Hills C++ Compiler 13719 lt_prog_compiler_pic_CXX='-pic' 13720 ;; 13721 *) 13722 ;; 13723 esac 13724 ;; 13725 freebsd* | dragonfly*) 13726 # FreeBSD uses GNU C++ 13727 ;; 13728 hpux9* | hpux10* | hpux11*) 13729 case $cc_basename in 13730 CC*) 13731 lt_prog_compiler_wl_CXX='-Wl,' 13732 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13733 if test "$host_cpu" != ia64; then 13734 lt_prog_compiler_pic_CXX='+Z' 13735 fi 13736 ;; 13737 aCC*) 13738 lt_prog_compiler_wl_CXX='-Wl,' 13739 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13740 case $host_cpu in 13741 hppa*64*|ia64*) 13742 # +Z the default 13743 ;; 13744 *) 13745 lt_prog_compiler_pic_CXX='+Z' 13746 ;; 13747 esac 13748 ;; 13749 *) 13750 ;; 13751 esac 13752 ;; 13753 interix*) 13754 # This is c89, which is MS Visual C++ (no shared libs) 13755 # Anyone wants to do a port? 13756 ;; 13757 irix5* | irix6* | nonstopux*) 13758 case $cc_basename in 13759 CC*) 13760 lt_prog_compiler_wl_CXX='-Wl,' 13761 lt_prog_compiler_static_CXX='-non_shared' 13762 # CC pic flag -KPIC is the default. 13763 ;; 13764 *) 13765 ;; 13766 esac 13767 ;; 13768 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13769 case $cc_basename in 13770 KCC*) 13771 # KAI C++ Compiler 13772 lt_prog_compiler_wl_CXX='--backend -Wl,' 13773 lt_prog_compiler_pic_CXX='-fPIC' 13774 ;; 13775 ecpc* ) 13776 # old Intel C++ for x86_64 which still supported -KPIC. 13777 lt_prog_compiler_wl_CXX='-Wl,' 13778 lt_prog_compiler_pic_CXX='-KPIC' 13779 lt_prog_compiler_static_CXX='-static' 13780 ;; 13781 icpc* ) 13782 # Intel C++, used to be incompatible with GCC. 13783 # ICC 10 doesn't accept -KPIC any more. 13784 lt_prog_compiler_wl_CXX='-Wl,' 13785 lt_prog_compiler_pic_CXX='-fPIC' 13786 lt_prog_compiler_static_CXX='-static' 13787 ;; 13788 pgCC* | pgcpp*) 13789 # Portland Group C++ compiler 13790 lt_prog_compiler_wl_CXX='-Wl,' 13791 lt_prog_compiler_pic_CXX='-fpic' 13792 lt_prog_compiler_static_CXX='-Bstatic' 13793 ;; 13794 cxx*) 13795 # Compaq C++ 13796 # Make sure the PIC flag is empty. It appears that all Alpha 13797 # Linux and Compaq Tru64 Unix objects are PIC. 13798 lt_prog_compiler_pic_CXX= 13799 lt_prog_compiler_static_CXX='-non_shared' 13800 ;; 13801 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13802 # IBM XL 8.0, 9.0 on PPC and BlueGene 13803 lt_prog_compiler_wl_CXX='-Wl,' 13804 lt_prog_compiler_pic_CXX='-qpic' 13805 lt_prog_compiler_static_CXX='-qstaticlink' 13806 ;; 13807 *) 13808 case `$CC -V 2>&1 | sed 5q` in 13809 *Sun\ C*) 13810 # Sun C++ 5.9 13811 lt_prog_compiler_pic_CXX='-KPIC' 13812 lt_prog_compiler_static_CXX='-Bstatic' 13813 lt_prog_compiler_wl_CXX='-Qoption ld ' 13814 ;; 13815 esac 13816 ;; 13817 esac 13818 ;; 13819 lynxos*) 13820 ;; 13821 m88k*) 13822 ;; 13823 mvs*) 13824 case $cc_basename in 13825 cxx*) 13826 lt_prog_compiler_pic_CXX='-W c,exportall' 13827 ;; 13828 *) 13829 ;; 13830 esac 13831 ;; 13832 netbsd*) 13833 ;; 13834 *qnx* | *nto*) 13835 # QNX uses GNU C++, but need to define -shared option too, otherwise 13836 # it will coredump. 13837 lt_prog_compiler_pic_CXX='-fPIC -shared' 13838 ;; 13839 osf3* | osf4* | osf5*) 13840 case $cc_basename in 13841 KCC*) 13842 lt_prog_compiler_wl_CXX='--backend -Wl,' 13843 ;; 13844 RCC*) 13845 # Rational C++ 2.4.1 13846 lt_prog_compiler_pic_CXX='-pic' 13847 ;; 13848 cxx*) 13849 # Digital/Compaq C++ 13850 lt_prog_compiler_wl_CXX='-Wl,' 13851 # Make sure the PIC flag is empty. It appears that all Alpha 13852 # Linux and Compaq Tru64 Unix objects are PIC. 13853 lt_prog_compiler_pic_CXX= 13854 lt_prog_compiler_static_CXX='-non_shared' 13855 ;; 13856 *) 13857 ;; 13858 esac 13859 ;; 13860 psos*) 13861 ;; 13862 solaris*) 13863 case $cc_basename in 13864 CC* | sunCC*) 13865 # Sun C++ 4.2, 5.x and Centerline C++ 13866 lt_prog_compiler_pic_CXX='-KPIC' 13867 lt_prog_compiler_static_CXX='-Bstatic' 13868 lt_prog_compiler_wl_CXX='-Qoption ld ' 13869 ;; 13870 gcx*) 13871 # Green Hills C++ Compiler 13872 lt_prog_compiler_pic_CXX='-PIC' 13873 ;; 13874 *) 13875 ;; 13876 esac 13877 ;; 13878 sunos4*) 13879 case $cc_basename in 13880 CC*) 13881 # Sun C++ 4.x 13882 lt_prog_compiler_pic_CXX='-pic' 13883 lt_prog_compiler_static_CXX='-Bstatic' 13884 ;; 13885 lcc*) 13886 # Lucid 13887 lt_prog_compiler_pic_CXX='-pic' 13888 ;; 13889 *) 13890 ;; 13891 esac 13892 ;; 13893 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13894 case $cc_basename in 13895 CC*) 13896 lt_prog_compiler_wl_CXX='-Wl,' 13897 lt_prog_compiler_pic_CXX='-KPIC' 13898 lt_prog_compiler_static_CXX='-Bstatic' 13899 ;; 13900 esac 13901 ;; 13902 tandem*) 13903 case $cc_basename in 13904 NCC*) 13905 # NonStop-UX NCC 3.20 13906 lt_prog_compiler_pic_CXX='-KPIC' 13907 ;; 13908 *) 13909 ;; 13910 esac 13911 ;; 13912 vxworks*) 13913 ;; 13914 *) 13915 lt_prog_compiler_can_build_shared_CXX=no 13916 ;; 13917 esac 13918 fi 13919 13920case $host_os in 13921 # For platforms which do not support PIC, -DPIC is meaningless: 13922 *djgpp*) 13923 lt_prog_compiler_pic_CXX= 13924 ;; 13925 *) 13926 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13927 ;; 13928esac 13929 13930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13931$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13932if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 13933 $as_echo_n "(cached) " >&6 13934else 13935 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 13936fi 13937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 13938$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 13939lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 13940 13941# 13942# Check to make sure the PIC flag actually works. 13943# 13944if test -n "$lt_prog_compiler_pic_CXX"; then 13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13946$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13947if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 13948 $as_echo_n "(cached) " >&6 13949else 13950 lt_cv_prog_compiler_pic_works_CXX=no 13951 ac_outfile=conftest.$ac_objext 13952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13953 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13954 # Insert the option either (1) after the last *FLAGS variable, or 13955 # (2) before a word containing "conftest.", or (3) at the end. 13956 # Note that $ac_compile itself does not contain backslashes and begins 13957 # with a dollar sign (not a hyphen), so the echo should work correctly. 13958 # The option is referenced via a variable to avoid confusing sed. 13959 lt_compile=`echo "$ac_compile" | $SED \ 13960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13962 -e 's:$: $lt_compiler_flag:'` 13963 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13964 (eval "$lt_compile" 2>conftest.err) 13965 ac_status=$? 13966 cat conftest.err >&5 13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13968 if (exit $ac_status) && test -s "$ac_outfile"; then 13969 # The compiler can only warn and ignore the option if not recognized 13970 # So say no if there are warnings other than the usual output. 13971 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13973 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13974 lt_cv_prog_compiler_pic_works_CXX=yes 13975 fi 13976 fi 13977 $RM conftest* 13978 13979fi 13980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13981$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13982 13983if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13984 case $lt_prog_compiler_pic_CXX in 13985 "" | " "*) ;; 13986 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13987 esac 13988else 13989 lt_prog_compiler_pic_CXX= 13990 lt_prog_compiler_can_build_shared_CXX=no 13991fi 13992 13993fi 13994 13995 13996 13997 13998 13999# 14000# Check to make sure the static flag actually works. 14001# 14002wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14004$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14005if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14006 $as_echo_n "(cached) " >&6 14007else 14008 lt_cv_prog_compiler_static_works_CXX=no 14009 save_LDFLAGS="$LDFLAGS" 14010 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14011 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14012 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14013 # The linker can only warn and ignore the option if not recognized 14014 # So say no if there are warnings 14015 if test -s conftest.err; then 14016 # Append any errors to the config.log. 14017 cat conftest.err 1>&5 14018 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14019 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14020 if diff conftest.exp conftest.er2 >/dev/null; then 14021 lt_cv_prog_compiler_static_works_CXX=yes 14022 fi 14023 else 14024 lt_cv_prog_compiler_static_works_CXX=yes 14025 fi 14026 fi 14027 $RM -r conftest* 14028 LDFLAGS="$save_LDFLAGS" 14029 14030fi 14031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14032$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14033 14034if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14035 : 14036else 14037 lt_prog_compiler_static_CXX= 14038fi 14039 14040 14041 14042 14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14044$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14045if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14046 $as_echo_n "(cached) " >&6 14047else 14048 lt_cv_prog_compiler_c_o_CXX=no 14049 $RM -r conftest 2>/dev/null 14050 mkdir conftest 14051 cd conftest 14052 mkdir out 14053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14054 14055 lt_compiler_flag="-o out/conftest2.$ac_objext" 14056 # Insert the option either (1) after the last *FLAGS variable, or 14057 # (2) before a word containing "conftest.", or (3) at the end. 14058 # Note that $ac_compile itself does not contain backslashes and begins 14059 # with a dollar sign (not a hyphen), so the echo should work correctly. 14060 lt_compile=`echo "$ac_compile" | $SED \ 14061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14063 -e 's:$: $lt_compiler_flag:'` 14064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14065 (eval "$lt_compile" 2>out/conftest.err) 14066 ac_status=$? 14067 cat out/conftest.err >&5 14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14069 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14070 then 14071 # The compiler can only warn and ignore the option if not recognized 14072 # So say no if there are warnings 14073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14074 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14075 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14076 lt_cv_prog_compiler_c_o_CXX=yes 14077 fi 14078 fi 14079 chmod u+w . 2>&5 14080 $RM conftest* 14081 # SGI C++ compiler will create directory out/ii_files/ for 14082 # template instantiation 14083 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14084 $RM out/* && rmdir out 14085 cd .. 14086 $RM -r conftest 14087 $RM conftest* 14088 14089fi 14090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14091$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14092 14093 14094 14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14096$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14097if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14098 $as_echo_n "(cached) " >&6 14099else 14100 lt_cv_prog_compiler_c_o_CXX=no 14101 $RM -r conftest 2>/dev/null 14102 mkdir conftest 14103 cd conftest 14104 mkdir out 14105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14106 14107 lt_compiler_flag="-o out/conftest2.$ac_objext" 14108 # Insert the option either (1) after the last *FLAGS variable, or 14109 # (2) before a word containing "conftest.", or (3) at the end. 14110 # Note that $ac_compile itself does not contain backslashes and begins 14111 # with a dollar sign (not a hyphen), so the echo should work correctly. 14112 lt_compile=`echo "$ac_compile" | $SED \ 14113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14115 -e 's:$: $lt_compiler_flag:'` 14116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14117 (eval "$lt_compile" 2>out/conftest.err) 14118 ac_status=$? 14119 cat out/conftest.err >&5 14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14121 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14122 then 14123 # The compiler can only warn and ignore the option if not recognized 14124 # So say no if there are warnings 14125 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14128 lt_cv_prog_compiler_c_o_CXX=yes 14129 fi 14130 fi 14131 chmod u+w . 2>&5 14132 $RM conftest* 14133 # SGI C++ compiler will create directory out/ii_files/ for 14134 # template instantiation 14135 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14136 $RM out/* && rmdir out 14137 cd .. 14138 $RM -r conftest 14139 $RM conftest* 14140 14141fi 14142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14143$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14144 14145 14146 14147 14148hard_links="nottested" 14149if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14150 # do not overwrite the value of need_locks provided by the user 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14152$as_echo_n "checking if we can lock with hard links... " >&6; } 14153 hard_links=yes 14154 $RM conftest* 14155 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14156 touch conftest.a 14157 ln conftest.a conftest.b 2>&5 || hard_links=no 14158 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14160$as_echo "$hard_links" >&6; } 14161 if test "$hard_links" = no; then 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14163$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14164 need_locks=warn 14165 fi 14166else 14167 need_locks=no 14168fi 14169 14170 14171 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14173$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14174 14175 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14176 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14177 case $host_os in 14178 aix[4-9]*) 14179 # If we're using GNU nm, then we don't want the "-C" option. 14180 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14181 # Also, AIX nm treats weak defined symbols like other global defined 14182 # symbols, whereas GNU nm marks them as "W". 14183 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14184 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' 14185 else 14186 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' 14187 fi 14188 ;; 14189 pw32*) 14190 export_symbols_cmds_CXX="$ltdll_cmds" 14191 ;; 14192 cygwin* | mingw* | cegcc*) 14193 case $cc_basename in 14194 cl*) ;; 14195 *) 14196 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' 14197 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14198 ;; 14199 esac 14200 ;; 14201 *) 14202 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14203 ;; 14204 esac 14205 14206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14207$as_echo "$ld_shlibs_CXX" >&6; } 14208test "$ld_shlibs_CXX" = no && can_build_shared=no 14209 14210with_gnu_ld_CXX=$with_gnu_ld 14211 14212 14213 14214 14215 14216 14217# 14218# Do we need to explicitly link libc? 14219# 14220case "x$archive_cmds_need_lc_CXX" in 14221x|xyes) 14222 # Assume -lc should be added 14223 archive_cmds_need_lc_CXX=yes 14224 14225 if test "$enable_shared" = yes && test "$GCC" = yes; then 14226 case $archive_cmds_CXX in 14227 *'~'*) 14228 # FIXME: we may have to deal with multi-command sequences. 14229 ;; 14230 '$CC '*) 14231 # Test whether the compiler implicitly links with -lc since on some 14232 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14233 # to ld, don't add -lc before -lgcc. 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14235$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14236if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14237 $as_echo_n "(cached) " >&6 14238else 14239 $RM conftest* 14240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14241 14242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14243 (eval $ac_compile) 2>&5 14244 ac_status=$? 14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14246 test $ac_status = 0; } 2>conftest.err; then 14247 soname=conftest 14248 lib=conftest 14249 libobjs=conftest.$ac_objext 14250 deplibs= 14251 wl=$lt_prog_compiler_wl_CXX 14252 pic_flag=$lt_prog_compiler_pic_CXX 14253 compiler_flags=-v 14254 linker_flags=-v 14255 verstring= 14256 output_objdir=. 14257 libname=conftest 14258 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14259 allow_undefined_flag_CXX= 14260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14261 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14262 ac_status=$? 14263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14264 test $ac_status = 0; } 14265 then 14266 lt_cv_archive_cmds_need_lc_CXX=no 14267 else 14268 lt_cv_archive_cmds_need_lc_CXX=yes 14269 fi 14270 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14271 else 14272 cat conftest.err 1>&5 14273 fi 14274 $RM conftest* 14275 14276fi 14277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14278$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14279 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14280 ;; 14281 esac 14282 fi 14283 ;; 14284esac 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14350$as_echo_n "checking dynamic linker characteristics... " >&6; } 14351 14352library_names_spec= 14353libname_spec='lib$name' 14354soname_spec= 14355shrext_cmds=".so" 14356postinstall_cmds= 14357postuninstall_cmds= 14358finish_cmds= 14359finish_eval= 14360shlibpath_var= 14361shlibpath_overrides_runpath=unknown 14362version_type=none 14363dynamic_linker="$host_os ld.so" 14364sys_lib_dlsearch_path_spec="/lib /usr/lib" 14365need_lib_prefix=unknown 14366hardcode_into_libs=no 14367 14368# when you set need_version to no, make sure it does not cause -set_version 14369# flags to be left without arguments 14370need_version=unknown 14371 14372case $host_os in 14373aix3*) 14374 version_type=linux 14375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14376 shlibpath_var=LIBPATH 14377 14378 # AIX 3 has no versioning support, so we append a major version to the name. 14379 soname_spec='${libname}${release}${shared_ext}$major' 14380 ;; 14381 14382aix[4-9]*) 14383 version_type=linux 14384 need_lib_prefix=no 14385 need_version=no 14386 hardcode_into_libs=yes 14387 if test "$host_cpu" = ia64; then 14388 # AIX 5 supports IA64 14389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14390 shlibpath_var=LD_LIBRARY_PATH 14391 else 14392 # With GCC up to 2.95.x, collect2 would create an import file 14393 # for dependence libraries. The import file would start with 14394 # the line `#! .'. This would cause the generated library to 14395 # depend on `.', always an invalid library. This was fixed in 14396 # development snapshots of GCC prior to 3.0. 14397 case $host_os in 14398 aix4 | aix4.[01] | aix4.[01].*) 14399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14400 echo ' yes ' 14401 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14402 : 14403 else 14404 can_build_shared=no 14405 fi 14406 ;; 14407 esac 14408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14409 # soname into executable. Probably we can add versioning support to 14410 # collect2, so additional links can be useful in future. 14411 if test "$aix_use_runtimelinking" = yes; then 14412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14413 # instead of lib<name>.a to let people know that these are not 14414 # typical AIX shared libraries. 14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14416 else 14417 # We preserve .a as extension for shared libraries through AIX4.2 14418 # and later when we are not doing run time linking. 14419 library_names_spec='${libname}${release}.a $libname.a' 14420 soname_spec='${libname}${release}${shared_ext}$major' 14421 fi 14422 shlibpath_var=LIBPATH 14423 fi 14424 ;; 14425 14426amigaos*) 14427 case $host_cpu in 14428 powerpc) 14429 # Since July 2007 AmigaOS4 officially supports .so libraries. 14430 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14432 ;; 14433 m68k) 14434 library_names_spec='$libname.ixlibrary $libname.a' 14435 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14436 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' 14437 ;; 14438 esac 14439 ;; 14440 14441beos*) 14442 library_names_spec='${libname}${shared_ext}' 14443 dynamic_linker="$host_os ld.so" 14444 shlibpath_var=LIBRARY_PATH 14445 ;; 14446 14447bsdi[45]*) 14448 version_type=linux 14449 need_version=no 14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14451 soname_spec='${libname}${release}${shared_ext}$major' 14452 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14453 shlibpath_var=LD_LIBRARY_PATH 14454 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14455 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14456 # the default ld.so.conf also contains /usr/contrib/lib and 14457 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14458 # libtool to hard-code these into programs 14459 ;; 14460 14461cygwin* | mingw* | pw32* | cegcc*) 14462 version_type=windows 14463 shrext_cmds=".dll" 14464 need_version=no 14465 need_lib_prefix=no 14466 14467 case $GCC,$cc_basename in 14468 yes,*) 14469 # gcc 14470 library_names_spec='$libname.dll.a' 14471 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14472 postinstall_cmds='base_file=`basename \${file}`~ 14473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14474 dldir=$destdir/`dirname \$dlpath`~ 14475 test -d \$dldir || mkdir -p \$dldir~ 14476 $install_prog $dir/$dlname \$dldir/$dlname~ 14477 chmod a+x \$dldir/$dlname~ 14478 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14479 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14480 fi' 14481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14482 dlpath=$dir/\$dldll~ 14483 $RM \$dlpath' 14484 shlibpath_overrides_runpath=yes 14485 14486 case $host_os in 14487 cygwin*) 14488 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14489 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14490 14491 ;; 14492 mingw* | cegcc*) 14493 # MinGW DLLs use traditional 'lib' prefix 14494 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14495 ;; 14496 pw32*) 14497 # pw32 DLLs use 'pw' prefix rather than 'lib' 14498 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14499 ;; 14500 esac 14501 dynamic_linker='Win32 ld.exe' 14502 ;; 14503 14504 *,cl*) 14505 # Native MSVC 14506 libname_spec='$name' 14507 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14508 library_names_spec='${libname}.dll.lib' 14509 14510 case $build_os in 14511 mingw*) 14512 sys_lib_search_path_spec= 14513 lt_save_ifs=$IFS 14514 IFS=';' 14515 for lt_path in $LIB 14516 do 14517 IFS=$lt_save_ifs 14518 # Let DOS variable expansion print the short 8.3 style file name. 14519 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14520 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14521 done 14522 IFS=$lt_save_ifs 14523 # Convert to MSYS style. 14524 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14525 ;; 14526 cygwin*) 14527 # Convert to unix form, then to dos form, then back to unix form 14528 # but this time dos style (no spaces!) so that the unix form looks 14529 # like /cygdrive/c/PROGRA~1:/cygdr... 14530 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14531 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14532 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14533 ;; 14534 *) 14535 sys_lib_search_path_spec="$LIB" 14536 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14537 # It is most probably a Windows format PATH. 14538 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14539 else 14540 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14541 fi 14542 # FIXME: find the short name or the path components, as spaces are 14543 # common. (e.g. "Program Files" -> "PROGRA~1") 14544 ;; 14545 esac 14546 14547 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14548 postinstall_cmds='base_file=`basename \${file}`~ 14549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14550 dldir=$destdir/`dirname \$dlpath`~ 14551 test -d \$dldir || mkdir -p \$dldir~ 14552 $install_prog $dir/$dlname \$dldir/$dlname' 14553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14554 dlpath=$dir/\$dldll~ 14555 $RM \$dlpath' 14556 shlibpath_overrides_runpath=yes 14557 dynamic_linker='Win32 link.exe' 14558 ;; 14559 14560 *) 14561 # Assume MSVC wrapper 14562 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14563 dynamic_linker='Win32 ld.exe' 14564 ;; 14565 esac 14566 # FIXME: first we should search . and the directory the executable is in 14567 shlibpath_var=PATH 14568 ;; 14569 14570darwin* | rhapsody*) 14571 dynamic_linker="$host_os dyld" 14572 version_type=darwin 14573 need_lib_prefix=no 14574 need_version=no 14575 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14576 soname_spec='${libname}${release}${major}$shared_ext' 14577 shlibpath_overrides_runpath=yes 14578 shlibpath_var=DYLD_LIBRARY_PATH 14579 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14580 14581 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14582 ;; 14583 14584dgux*) 14585 version_type=linux 14586 need_lib_prefix=no 14587 need_version=no 14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14589 soname_spec='${libname}${release}${shared_ext}$major' 14590 shlibpath_var=LD_LIBRARY_PATH 14591 ;; 14592 14593freebsd1*) 14594 dynamic_linker=no 14595 ;; 14596 14597freebsd* | dragonfly*) 14598 # DragonFly does not have aout. When/if they implement a new 14599 # versioning mechanism, adjust this. 14600 if test -x /usr/bin/objformat; then 14601 objformat=`/usr/bin/objformat` 14602 else 14603 case $host_os in 14604 freebsd[123]*) objformat=aout ;; 14605 *) objformat=elf ;; 14606 esac 14607 fi 14608 # Handle Gentoo/FreeBSD as it was Linux 14609 case $host_vendor in 14610 gentoo) 14611 version_type=linux ;; 14612 *) 14613 version_type=freebsd-$objformat ;; 14614 esac 14615 14616 case $version_type in 14617 freebsd-elf*) 14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14619 need_version=no 14620 need_lib_prefix=no 14621 ;; 14622 freebsd-*) 14623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14624 need_version=yes 14625 ;; 14626 linux) 14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14628 soname_spec='${libname}${release}${shared_ext}$major' 14629 need_lib_prefix=no 14630 need_version=no 14631 ;; 14632 esac 14633 shlibpath_var=LD_LIBRARY_PATH 14634 case $host_os in 14635 freebsd2*) 14636 shlibpath_overrides_runpath=yes 14637 ;; 14638 freebsd3.[01]* | freebsdelf3.[01]*) 14639 shlibpath_overrides_runpath=yes 14640 hardcode_into_libs=yes 14641 ;; 14642 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14643 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14644 shlibpath_overrides_runpath=no 14645 hardcode_into_libs=yes 14646 ;; 14647 *) # from 4.6 on, and DragonFly 14648 shlibpath_overrides_runpath=yes 14649 hardcode_into_libs=yes 14650 ;; 14651 esac 14652 ;; 14653 14654gnu*) 14655 version_type=linux 14656 need_lib_prefix=no 14657 need_version=no 14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14659 soname_spec='${libname}${release}${shared_ext}$major' 14660 shlibpath_var=LD_LIBRARY_PATH 14661 hardcode_into_libs=yes 14662 ;; 14663 14664haiku*) 14665 version_type=linux 14666 need_lib_prefix=no 14667 need_version=no 14668 dynamic_linker="$host_os runtime_loader" 14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14670 soname_spec='${libname}${release}${shared_ext}$major' 14671 shlibpath_var=LIBRARY_PATH 14672 shlibpath_overrides_runpath=yes 14673 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14674 hardcode_into_libs=yes 14675 ;; 14676 14677hpux9* | hpux10* | hpux11*) 14678 # Give a soname corresponding to the major version so that dld.sl refuses to 14679 # link against other versions. 14680 version_type=sunos 14681 need_lib_prefix=no 14682 need_version=no 14683 case $host_cpu in 14684 ia64*) 14685 shrext_cmds='.so' 14686 hardcode_into_libs=yes 14687 dynamic_linker="$host_os dld.so" 14688 shlibpath_var=LD_LIBRARY_PATH 14689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14691 soname_spec='${libname}${release}${shared_ext}$major' 14692 if test "X$HPUX_IA64_MODE" = X32; then 14693 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14694 else 14695 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14696 fi 14697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14698 ;; 14699 hppa*64*) 14700 shrext_cmds='.sl' 14701 hardcode_into_libs=yes 14702 dynamic_linker="$host_os dld.sl" 14703 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14706 soname_spec='${libname}${release}${shared_ext}$major' 14707 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14709 ;; 14710 *) 14711 shrext_cmds='.sl' 14712 dynamic_linker="$host_os dld.sl" 14713 shlibpath_var=SHLIB_PATH 14714 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14716 soname_spec='${libname}${release}${shared_ext}$major' 14717 ;; 14718 esac 14719 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14720 postinstall_cmds='chmod 555 $lib' 14721 # or fails outright, so override atomically: 14722 install_override_mode=555 14723 ;; 14724 14725interix[3-9]*) 14726 version_type=linux 14727 need_lib_prefix=no 14728 need_version=no 14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14730 soname_spec='${libname}${release}${shared_ext}$major' 14731 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14732 shlibpath_var=LD_LIBRARY_PATH 14733 shlibpath_overrides_runpath=no 14734 hardcode_into_libs=yes 14735 ;; 14736 14737irix5* | irix6* | nonstopux*) 14738 case $host_os in 14739 nonstopux*) version_type=nonstopux ;; 14740 *) 14741 if test "$lt_cv_prog_gnu_ld" = yes; then 14742 version_type=linux 14743 else 14744 version_type=irix 14745 fi ;; 14746 esac 14747 need_lib_prefix=no 14748 need_version=no 14749 soname_spec='${libname}${release}${shared_ext}$major' 14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14751 case $host_os in 14752 irix5* | nonstopux*) 14753 libsuff= shlibsuff= 14754 ;; 14755 *) 14756 case $LD in # libtool.m4 will add one of these switches to LD 14757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14758 libsuff= shlibsuff= libmagic=32-bit;; 14759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14760 libsuff=32 shlibsuff=N32 libmagic=N32;; 14761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14762 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14763 *) libsuff= shlibsuff= libmagic=never-match;; 14764 esac 14765 ;; 14766 esac 14767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14768 shlibpath_overrides_runpath=no 14769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14771 hardcode_into_libs=yes 14772 ;; 14773 14774# No shared lib support for Linux oldld, aout, or coff. 14775linux*oldld* | linux*aout* | linux*coff*) 14776 dynamic_linker=no 14777 ;; 14778 14779# This must be Linux ELF. 14780linux* | k*bsd*-gnu | kopensolaris*-gnu) 14781 version_type=linux 14782 need_lib_prefix=no 14783 need_version=no 14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14785 soname_spec='${libname}${release}${shared_ext}$major' 14786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14787 shlibpath_var=LD_LIBRARY_PATH 14788 shlibpath_overrides_runpath=no 14789 14790 # Some binutils ld are patched to set DT_RUNPATH 14791 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14792 $as_echo_n "(cached) " >&6 14793else 14794 lt_cv_shlibpath_overrides_runpath=no 14795 save_LDFLAGS=$LDFLAGS 14796 save_libdir=$libdir 14797 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14798 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14800/* end confdefs.h. */ 14801 14802int 14803main () 14804{ 14805 14806 ; 14807 return 0; 14808} 14809_ACEOF 14810if ac_fn_cxx_try_link "$LINENO"; then : 14811 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14812 lt_cv_shlibpath_overrides_runpath=yes 14813fi 14814fi 14815rm -f core conftest.err conftest.$ac_objext \ 14816 conftest$ac_exeext conftest.$ac_ext 14817 LDFLAGS=$save_LDFLAGS 14818 libdir=$save_libdir 14819 14820fi 14821 14822 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14823 14824 # This implies no fast_install, which is unacceptable. 14825 # Some rework will be needed to allow for fast_install 14826 # before this can be enabled. 14827 hardcode_into_libs=yes 14828 14829 # Append ld.so.conf contents to the search path 14830 if test -f /etc/ld.so.conf; then 14831 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' ' '` 14832 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14833 fi 14834 14835 # We used to test for /lib/ld.so.1 and disable shared libraries on 14836 # powerpc, because MkLinux only supported shared libraries with the 14837 # GNU dynamic linker. Since this was broken with cross compilers, 14838 # most powerpc-linux boxes support dynamic linking these days and 14839 # people can always --disable-shared, the test was removed, and we 14840 # assume the GNU/Linux dynamic linker is in use. 14841 dynamic_linker='GNU/Linux ld.so' 14842 ;; 14843 14844netbsd*) 14845 version_type=sunos 14846 need_lib_prefix=no 14847 need_version=no 14848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14851 dynamic_linker='NetBSD (a.out) ld.so' 14852 else 14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14854 soname_spec='${libname}${release}${shared_ext}$major' 14855 dynamic_linker='NetBSD ld.elf_so' 14856 fi 14857 shlibpath_var=LD_LIBRARY_PATH 14858 shlibpath_overrides_runpath=yes 14859 hardcode_into_libs=yes 14860 ;; 14861 14862newsos6) 14863 version_type=linux 14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14865 shlibpath_var=LD_LIBRARY_PATH 14866 shlibpath_overrides_runpath=yes 14867 ;; 14868 14869*nto* | *qnx*) 14870 version_type=qnx 14871 need_lib_prefix=no 14872 need_version=no 14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14874 soname_spec='${libname}${release}${shared_ext}$major' 14875 shlibpath_var=LD_LIBRARY_PATH 14876 shlibpath_overrides_runpath=no 14877 hardcode_into_libs=yes 14878 dynamic_linker='ldqnx.so' 14879 ;; 14880 14881openbsd*) 14882 version_type=sunos 14883 sys_lib_dlsearch_path_spec="/usr/lib" 14884 need_lib_prefix=no 14885 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14886 case $host_os in 14887 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14888 *) need_version=no ;; 14889 esac 14890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14892 shlibpath_var=LD_LIBRARY_PATH 14893 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14894 case $host_os in 14895 openbsd2.[89] | openbsd2.[89].*) 14896 shlibpath_overrides_runpath=no 14897 ;; 14898 *) 14899 shlibpath_overrides_runpath=yes 14900 ;; 14901 esac 14902 else 14903 shlibpath_overrides_runpath=yes 14904 fi 14905 ;; 14906 14907os2*) 14908 libname_spec='$name' 14909 shrext_cmds=".dll" 14910 need_lib_prefix=no 14911 library_names_spec='$libname${shared_ext} $libname.a' 14912 dynamic_linker='OS/2 ld.exe' 14913 shlibpath_var=LIBPATH 14914 ;; 14915 14916osf3* | osf4* | osf5*) 14917 version_type=osf 14918 need_lib_prefix=no 14919 need_version=no 14920 soname_spec='${libname}${release}${shared_ext}$major' 14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14922 shlibpath_var=LD_LIBRARY_PATH 14923 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14924 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14925 ;; 14926 14927rdos*) 14928 dynamic_linker=no 14929 ;; 14930 14931solaris*) 14932 version_type=linux 14933 need_lib_prefix=no 14934 need_version=no 14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14936 soname_spec='${libname}${release}${shared_ext}$major' 14937 shlibpath_var=LD_LIBRARY_PATH 14938 shlibpath_overrides_runpath=yes 14939 hardcode_into_libs=yes 14940 # ldd complains unless libraries are executable 14941 postinstall_cmds='chmod +x $lib' 14942 ;; 14943 14944sunos4*) 14945 version_type=sunos 14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14947 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14948 shlibpath_var=LD_LIBRARY_PATH 14949 shlibpath_overrides_runpath=yes 14950 if test "$with_gnu_ld" = yes; then 14951 need_lib_prefix=no 14952 fi 14953 need_version=yes 14954 ;; 14955 14956sysv4 | sysv4.3*) 14957 version_type=linux 14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14959 soname_spec='${libname}${release}${shared_ext}$major' 14960 shlibpath_var=LD_LIBRARY_PATH 14961 case $host_vendor in 14962 sni) 14963 shlibpath_overrides_runpath=no 14964 need_lib_prefix=no 14965 runpath_var=LD_RUN_PATH 14966 ;; 14967 siemens) 14968 need_lib_prefix=no 14969 ;; 14970 motorola) 14971 need_lib_prefix=no 14972 need_version=no 14973 shlibpath_overrides_runpath=no 14974 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14975 ;; 14976 esac 14977 ;; 14978 14979sysv4*MP*) 14980 if test -d /usr/nec ;then 14981 version_type=linux 14982 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14983 soname_spec='$libname${shared_ext}.$major' 14984 shlibpath_var=LD_LIBRARY_PATH 14985 fi 14986 ;; 14987 14988sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14989 version_type=freebsd-elf 14990 need_lib_prefix=no 14991 need_version=no 14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14993 soname_spec='${libname}${release}${shared_ext}$major' 14994 shlibpath_var=LD_LIBRARY_PATH 14995 shlibpath_overrides_runpath=yes 14996 hardcode_into_libs=yes 14997 if test "$with_gnu_ld" = yes; then 14998 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14999 else 15000 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15001 case $host_os in 15002 sco3.2v5*) 15003 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15004 ;; 15005 esac 15006 fi 15007 sys_lib_dlsearch_path_spec='/usr/lib' 15008 ;; 15009 15010tpf*) 15011 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15012 version_type=linux 15013 need_lib_prefix=no 15014 need_version=no 15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15016 shlibpath_var=LD_LIBRARY_PATH 15017 shlibpath_overrides_runpath=no 15018 hardcode_into_libs=yes 15019 ;; 15020 15021uts4*) 15022 version_type=linux 15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15024 soname_spec='${libname}${release}${shared_ext}$major' 15025 shlibpath_var=LD_LIBRARY_PATH 15026 ;; 15027 15028*) 15029 dynamic_linker=no 15030 ;; 15031esac 15032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15033$as_echo "$dynamic_linker" >&6; } 15034test "$dynamic_linker" = no && can_build_shared=no 15035 15036variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15037if test "$GCC" = yes; then 15038 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15039fi 15040 15041if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15042 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15043fi 15044if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15045 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15046fi 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15086$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15087hardcode_action_CXX= 15088if test -n "$hardcode_libdir_flag_spec_CXX" || 15089 test -n "$runpath_var_CXX" || 15090 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15091 15092 # We can hardcode non-existent directories. 15093 if test "$hardcode_direct_CXX" != no && 15094 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15095 # have to relink, otherwise we might link with an installed library 15096 # when we should be linking with a yet-to-be-installed one 15097 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15098 test "$hardcode_minus_L_CXX" != no; then 15099 # Linking always hardcodes the temporary library directory. 15100 hardcode_action_CXX=relink 15101 else 15102 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15103 hardcode_action_CXX=immediate 15104 fi 15105else 15106 # We cannot hardcode anything, or else we can only hardcode existing 15107 # directories. 15108 hardcode_action_CXX=unsupported 15109fi 15110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15111$as_echo "$hardcode_action_CXX" >&6; } 15112 15113if test "$hardcode_action_CXX" = relink || 15114 test "$inherit_rpath_CXX" = yes; then 15115 # Fast installation is not supported 15116 enable_fast_install=no 15117elif test "$shlibpath_overrides_runpath" = yes || 15118 test "$enable_shared" = no; then 15119 # Fast installation is not necessary 15120 enable_fast_install=needless 15121fi 15122 15123 15124 15125 15126 15127 15128 15129 fi # test -n "$compiler" 15130 15131 CC=$lt_save_CC 15132 CFLAGS=$lt_save_CFLAGS 15133 LDCXX=$LD 15134 LD=$lt_save_LD 15135 GCC=$lt_save_GCC 15136 with_gnu_ld=$lt_save_with_gnu_ld 15137 lt_cv_path_LDCXX=$lt_cv_path_LD 15138 lt_cv_path_LD=$lt_save_path_LD 15139 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15140 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15141fi # test "$_lt_caught_CXX_error" != yes 15142 15143ac_ext=c 15144ac_cpp='$CPP $CPPFLAGS' 15145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15147ac_compiler_gnu=$ac_cv_c_compiler_gnu 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 ac_config_commands="$ac_config_commands libtool" 15162 15163 15164 15165 15166# Only expand once: 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15177 if test -n "$ac_tool_prefix"; then 15178 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15179set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15181$as_echo_n "checking for $ac_word... " >&6; } 15182if ${ac_cv_path_PKG_CONFIG+:} false; then : 15183 $as_echo_n "(cached) " >&6 15184else 15185 case $PKG_CONFIG in 15186 [\\/]* | ?:[\\/]*) 15187 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15188 ;; 15189 *) 15190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15191for as_dir in $PATH 15192do 15193 IFS=$as_save_IFS 15194 test -z "$as_dir" && as_dir=. 15195 for ac_exec_ext in '' $ac_executable_extensions; do 15196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15197 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15199 break 2 15200 fi 15201done 15202 done 15203IFS=$as_save_IFS 15204 15205 ;; 15206esac 15207fi 15208PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15209if test -n "$PKG_CONFIG"; then 15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15211$as_echo "$PKG_CONFIG" >&6; } 15212else 15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15214$as_echo "no" >&6; } 15215fi 15216 15217 15218fi 15219if test -z "$ac_cv_path_PKG_CONFIG"; then 15220 ac_pt_PKG_CONFIG=$PKG_CONFIG 15221 # Extract the first word of "pkg-config", so it can be a program name with args. 15222set dummy pkg-config; ac_word=$2 15223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15224$as_echo_n "checking for $ac_word... " >&6; } 15225if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15226 $as_echo_n "(cached) " >&6 15227else 15228 case $ac_pt_PKG_CONFIG in 15229 [\\/]* | ?:[\\/]*) 15230 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15231 ;; 15232 *) 15233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15234for as_dir in $PATH 15235do 15236 IFS=$as_save_IFS 15237 test -z "$as_dir" && as_dir=. 15238 for ac_exec_ext in '' $ac_executable_extensions; do 15239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15240 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15242 break 2 15243 fi 15244done 15245 done 15246IFS=$as_save_IFS 15247 15248 ;; 15249esac 15250fi 15251ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15252if test -n "$ac_pt_PKG_CONFIG"; then 15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15254$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15255else 15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15257$as_echo "no" >&6; } 15258fi 15259 15260 if test "x$ac_pt_PKG_CONFIG" = x; then 15261 PKG_CONFIG="" 15262 else 15263 case $cross_compiling:$ac_tool_warned in 15264yes:) 15265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15267ac_tool_warned=yes ;; 15268esac 15269 PKG_CONFIG=$ac_pt_PKG_CONFIG 15270 fi 15271else 15272 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15273fi 15274 15275fi 15276if test -n "$PKG_CONFIG"; then 15277 _pkg_min_version=0.9.0 15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15279$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15280 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15282$as_echo "yes" >&6; } 15283 else 15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15285$as_echo "no" >&6; } 15286 PKG_CONFIG="" 15287 fi 15288fi 15289 15290# Checks for i18n. 15291 15292mkdir_p="$MKDIR_P" 15293case $mkdir_p in 15294 [\\/$]* | ?:[\\/]*) ;; 15295 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 15296esac 15297 15298 15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 15300$as_echo_n "checking whether NLS is requested... " >&6; } 15301 # Check whether --enable-nls was given. 15302if test "${enable_nls+set}" = set; then : 15303 enableval=$enable_nls; USE_NLS=$enableval 15304else 15305 USE_NLS=yes 15306fi 15307 15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 15309$as_echo "$USE_NLS" >&6; } 15310 15311 15312 15313 15314 15315 15316# Prepare PATH_SEPARATOR. 15317# The user is always right. 15318if test "${PATH_SEPARATOR+set}" != set; then 15319 echo "#! /bin/sh" >conf$$.sh 15320 echo "exit 0" >>conf$$.sh 15321 chmod +x conf$$.sh 15322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 15323 PATH_SEPARATOR=';' 15324 else 15325 PATH_SEPARATOR=: 15326 fi 15327 rm -f conf$$.sh 15328fi 15329 15330# Find out how to test for executable files. Don't use a zero-byte file, 15331# as systems may use methods other than mode bits to determine executability. 15332cat >conf$$.file <<_ASEOF 15333#! /bin/sh 15334exit 0 15335_ASEOF 15336chmod +x conf$$.file 15337if test -x conf$$.file >/dev/null 2>&1; then 15338 ac_executable_p="test -x" 15339else 15340 ac_executable_p="test -f" 15341fi 15342rm -f conf$$.file 15343 15344# Extract the first word of "msgfmt", so it can be a program name with args. 15345set dummy msgfmt; ac_word=$2 15346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15347$as_echo_n "checking for $ac_word... " >&6; } 15348if ${ac_cv_path_MSGFMT+:} false; then : 15349 $as_echo_n "(cached) " >&6 15350else 15351 case "$MSGFMT" in 15352 [\\/]* | ?:[\\/]*) 15353 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 15354 ;; 15355 *) 15356 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 15357 for ac_dir in $PATH; do 15358 IFS="$ac_save_IFS" 15359 test -z "$ac_dir" && ac_dir=. 15360 for ac_exec_ext in '' $ac_executable_extensions; do 15361 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 15362 echo "$as_me: trying $ac_dir/$ac_word..." >&5 15363 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 15364 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 15365 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 15366 break 2 15367 fi 15368 fi 15369 done 15370 done 15371 IFS="$ac_save_IFS" 15372 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 15373 ;; 15374esac 15375fi 15376MSGFMT="$ac_cv_path_MSGFMT" 15377if test "$MSGFMT" != ":"; then 15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 15379$as_echo "$MSGFMT" >&6; } 15380else 15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15382$as_echo "no" >&6; } 15383fi 15384 15385 # Extract the first word of "gmsgfmt", so it can be a program name with args. 15386set dummy gmsgfmt; ac_word=$2 15387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15388$as_echo_n "checking for $ac_word... " >&6; } 15389if ${ac_cv_path_GMSGFMT+:} false; then : 15390 $as_echo_n "(cached) " >&6 15391else 15392 case $GMSGFMT in 15393 [\\/]* | ?:[\\/]*) 15394 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 15395 ;; 15396 *) 15397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15398for as_dir in $PATH 15399do 15400 IFS=$as_save_IFS 15401 test -z "$as_dir" && as_dir=. 15402 for ac_exec_ext in '' $ac_executable_extensions; do 15403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15404 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 15405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15406 break 2 15407 fi 15408done 15409 done 15410IFS=$as_save_IFS 15411 15412 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 15413 ;; 15414esac 15415fi 15416GMSGFMT=$ac_cv_path_GMSGFMT 15417if test -n "$GMSGFMT"; then 15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 15419$as_echo "$GMSGFMT" >&6; } 15420else 15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15422$as_echo "no" >&6; } 15423fi 15424 15425 15426 15427 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 15428 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 15429 *) MSGFMT_015=$MSGFMT ;; 15430 esac 15431 15432 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 15433 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 15434 *) GMSGFMT_015=$GMSGFMT ;; 15435 esac 15436 15437 15438 15439# Prepare PATH_SEPARATOR. 15440# The user is always right. 15441if test "${PATH_SEPARATOR+set}" != set; then 15442 echo "#! /bin/sh" >conf$$.sh 15443 echo "exit 0" >>conf$$.sh 15444 chmod +x conf$$.sh 15445 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 15446 PATH_SEPARATOR=';' 15447 else 15448 PATH_SEPARATOR=: 15449 fi 15450 rm -f conf$$.sh 15451fi 15452 15453# Find out how to test for executable files. Don't use a zero-byte file, 15454# as systems may use methods other than mode bits to determine executability. 15455cat >conf$$.file <<_ASEOF 15456#! /bin/sh 15457exit 0 15458_ASEOF 15459chmod +x conf$$.file 15460if test -x conf$$.file >/dev/null 2>&1; then 15461 ac_executable_p="test -x" 15462else 15463 ac_executable_p="test -f" 15464fi 15465rm -f conf$$.file 15466 15467# Extract the first word of "xgettext", so it can be a program name with args. 15468set dummy xgettext; ac_word=$2 15469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15470$as_echo_n "checking for $ac_word... " >&6; } 15471if ${ac_cv_path_XGETTEXT+:} false; then : 15472 $as_echo_n "(cached) " >&6 15473else 15474 case "$XGETTEXT" in 15475 [\\/]* | ?:[\\/]*) 15476 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 15477 ;; 15478 *) 15479 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 15480 for ac_dir in $PATH; do 15481 IFS="$ac_save_IFS" 15482 test -z "$ac_dir" && ac_dir=. 15483 for ac_exec_ext in '' $ac_executable_extensions; do 15484 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 15485 echo "$as_me: trying $ac_dir/$ac_word..." >&5 15486 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 15487 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 15488 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 15489 break 2 15490 fi 15491 fi 15492 done 15493 done 15494 IFS="$ac_save_IFS" 15495 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 15496 ;; 15497esac 15498fi 15499XGETTEXT="$ac_cv_path_XGETTEXT" 15500if test "$XGETTEXT" != ":"; then 15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 15502$as_echo "$XGETTEXT" >&6; } 15503else 15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15505$as_echo "no" >&6; } 15506fi 15507 15508 rm -f messages.po 15509 15510 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 15511 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 15512 *) XGETTEXT_015=$XGETTEXT ;; 15513 esac 15514 15515 15516 15517# Prepare PATH_SEPARATOR. 15518# The user is always right. 15519if test "${PATH_SEPARATOR+set}" != set; then 15520 echo "#! /bin/sh" >conf$$.sh 15521 echo "exit 0" >>conf$$.sh 15522 chmod +x conf$$.sh 15523 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 15524 PATH_SEPARATOR=';' 15525 else 15526 PATH_SEPARATOR=: 15527 fi 15528 rm -f conf$$.sh 15529fi 15530 15531# Find out how to test for executable files. Don't use a zero-byte file, 15532# as systems may use methods other than mode bits to determine executability. 15533cat >conf$$.file <<_ASEOF 15534#! /bin/sh 15535exit 0 15536_ASEOF 15537chmod +x conf$$.file 15538if test -x conf$$.file >/dev/null 2>&1; then 15539 ac_executable_p="test -x" 15540else 15541 ac_executable_p="test -f" 15542fi 15543rm -f conf$$.file 15544 15545# Extract the first word of "msgmerge", so it can be a program name with args. 15546set dummy msgmerge; ac_word=$2 15547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15548$as_echo_n "checking for $ac_word... " >&6; } 15549if ${ac_cv_path_MSGMERGE+:} false; then : 15550 $as_echo_n "(cached) " >&6 15551else 15552 case "$MSGMERGE" in 15553 [\\/]* | ?:[\\/]*) 15554 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 15555 ;; 15556 *) 15557 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 15558 for ac_dir in $PATH; do 15559 IFS="$ac_save_IFS" 15560 test -z "$ac_dir" && ac_dir=. 15561 for ac_exec_ext in '' $ac_executable_extensions; do 15562 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 15563 echo "$as_me: trying $ac_dir/$ac_word..." >&5 15564 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 15565 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 15566 break 2 15567 fi 15568 fi 15569 done 15570 done 15571 IFS="$ac_save_IFS" 15572 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 15573 ;; 15574esac 15575fi 15576MSGMERGE="$ac_cv_path_MSGMERGE" 15577if test "$MSGMERGE" != ":"; then 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 15579$as_echo "$MSGMERGE" >&6; } 15580else 15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15582$as_echo "no" >&6; } 15583fi 15584 15585 15586 test -n "$localedir" || localedir='${datadir}/locale' 15587 15588 15589 ac_config_commands="$ac_config_commands po-directories" 15590 15591 15592 15593 if test "X$prefix" = "XNONE"; then 15594 acl_final_prefix="$ac_default_prefix" 15595 else 15596 acl_final_prefix="$prefix" 15597 fi 15598 if test "X$exec_prefix" = "XNONE"; then 15599 acl_final_exec_prefix='${prefix}' 15600 else 15601 acl_final_exec_prefix="$exec_prefix" 15602 fi 15603 acl_save_prefix="$prefix" 15604 prefix="$acl_final_prefix" 15605 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 15606 prefix="$acl_save_prefix" 15607 15608 15609# Check whether --with-gnu-ld was given. 15610if test "${with_gnu_ld+set}" = set; then : 15611 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 15612else 15613 with_gnu_ld=no 15614fi 15615 15616# Prepare PATH_SEPARATOR. 15617# The user is always right. 15618if test "${PATH_SEPARATOR+set}" != set; then 15619 echo "#! /bin/sh" >conf$$.sh 15620 echo "exit 0" >>conf$$.sh 15621 chmod +x conf$$.sh 15622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 15623 PATH_SEPARATOR=';' 15624 else 15625 PATH_SEPARATOR=: 15626 fi 15627 rm -f conf$$.sh 15628fi 15629ac_prog=ld 15630if test "$GCC" = yes; then 15631 # Check if gcc -print-prog-name=ld gives a path. 15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 15633$as_echo_n "checking for ld used by GCC... " >&6; } 15634 case $host in 15635 *-*-mingw*) 15636 # gcc leaves a trailing carriage return which upsets mingw 15637 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15638 *) 15639 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15640 esac 15641 case $ac_prog in 15642 # Accept absolute paths. 15643 [\\/]* | [A-Za-z]:[\\/]*) 15644 re_direlt='/[^/][^/]*/\.\./' 15645 # Canonicalize the path of ld 15646 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 15647 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 15648 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 15649 done 15650 test -z "$LD" && LD="$ac_prog" 15651 ;; 15652 "") 15653 # If it fails, then pretend we aren't using GCC. 15654 ac_prog=ld 15655 ;; 15656 *) 15657 # If it is relative, then search for the first ld in PATH. 15658 with_gnu_ld=unknown 15659 ;; 15660 esac 15661elif test "$with_gnu_ld" = yes; then 15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15663$as_echo_n "checking for GNU ld... " >&6; } 15664else 15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15666$as_echo_n "checking for non-GNU ld... " >&6; } 15667fi 15668if ${acl_cv_path_LD+:} false; then : 15669 $as_echo_n "(cached) " >&6 15670else 15671 if test -z "$LD"; then 15672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 15673 for ac_dir in $PATH; do 15674 test -z "$ac_dir" && ac_dir=. 15675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15676 acl_cv_path_LD="$ac_dir/$ac_prog" 15677 # Check to see if the program is GNU ld. I'd rather use --version, 15678 # but apparently some GNU ld's only accept -v. 15679 # Break only if it was the GNU/non-GNU ld that we prefer. 15680 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 15681 *GNU* | *'with BFD'*) 15682 test "$with_gnu_ld" != no && break ;; 15683 *) 15684 test "$with_gnu_ld" != yes && break ;; 15685 esac 15686 fi 15687 done 15688 IFS="$ac_save_ifs" 15689else 15690 acl_cv_path_LD="$LD" # Let the user override the test with a path. 15691fi 15692fi 15693 15694LD="$acl_cv_path_LD" 15695if test -n "$LD"; then 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15697$as_echo "$LD" >&6; } 15698else 15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15700$as_echo "no" >&6; } 15701fi 15702test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15704$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 15705if ${acl_cv_prog_gnu_ld+:} false; then : 15706 $as_echo_n "(cached) " >&6 15707else 15708 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 15709case `$LD -v 2>&1 </dev/null` in 15710*GNU* | *'with BFD'*) 15711 acl_cv_prog_gnu_ld=yes ;; 15712*) 15713 acl_cv_prog_gnu_ld=no ;; 15714esac 15715fi 15716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 15717$as_echo "$acl_cv_prog_gnu_ld" >&6; } 15718with_gnu_ld=$acl_cv_prog_gnu_ld 15719 15720 15721 15722 15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 15724$as_echo_n "checking for shared library run path origin... " >&6; } 15725if ${acl_cv_rpath+:} false; then : 15726 $as_echo_n "(cached) " >&6 15727else 15728 15729 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 15730 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 15731 . ./conftest.sh 15732 rm -f ./conftest.sh 15733 acl_cv_rpath=done 15734 15735fi 15736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 15737$as_echo "$acl_cv_rpath" >&6; } 15738 wl="$acl_cv_wl" 15739 libext="$acl_cv_libext" 15740 shlibext="$acl_cv_shlibext" 15741 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 15742 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 15743 hardcode_direct="$acl_cv_hardcode_direct" 15744 hardcode_minus_L="$acl_cv_hardcode_minus_L" 15745 # Check whether --enable-rpath was given. 15746if test "${enable_rpath+set}" = set; then : 15747 enableval=$enable_rpath; : 15748else 15749 enable_rpath=yes 15750fi 15751 15752 15753 15754 acl_libdirstem=lib 15755 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 15756 if test -n "$searchpath"; then 15757 acl_save_IFS="${IFS= }"; IFS=":" 15758 for searchdir in $searchpath; do 15759 if test -d "$searchdir"; then 15760 case "$searchdir" in 15761 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 15762 *) searchdir=`cd "$searchdir" && pwd` 15763 case "$searchdir" in 15764 */lib64 ) acl_libdirstem=lib64 ;; 15765 esac ;; 15766 esac 15767 fi 15768 done 15769 IFS="$acl_save_IFS" 15770 fi 15771 15772 15773 15774 15775 15776 15777 15778 15779 use_additional=yes 15780 15781 acl_save_prefix="$prefix" 15782 prefix="$acl_final_prefix" 15783 acl_save_exec_prefix="$exec_prefix" 15784 exec_prefix="$acl_final_exec_prefix" 15785 15786 eval additional_includedir=\"$includedir\" 15787 eval additional_libdir=\"$libdir\" 15788 15789 exec_prefix="$acl_save_exec_prefix" 15790 prefix="$acl_save_prefix" 15791 15792 15793# Check whether --with-libiconv-prefix was given. 15794if test "${with_libiconv_prefix+set}" = set; then : 15795 withval=$with_libiconv_prefix; 15796 if test "X$withval" = "Xno"; then 15797 use_additional=no 15798 else 15799 if test "X$withval" = "X"; then 15800 15801 acl_save_prefix="$prefix" 15802 prefix="$acl_final_prefix" 15803 acl_save_exec_prefix="$exec_prefix" 15804 exec_prefix="$acl_final_exec_prefix" 15805 15806 eval additional_includedir=\"$includedir\" 15807 eval additional_libdir=\"$libdir\" 15808 15809 exec_prefix="$acl_save_exec_prefix" 15810 prefix="$acl_save_prefix" 15811 15812 else 15813 additional_includedir="$withval/include" 15814 additional_libdir="$withval/$acl_libdirstem" 15815 fi 15816 fi 15817 15818fi 15819 15820 LIBICONV= 15821 LTLIBICONV= 15822 INCICONV= 15823 rpathdirs= 15824 ltrpathdirs= 15825 names_already_handled= 15826 names_next_round='iconv ' 15827 while test -n "$names_next_round"; do 15828 names_this_round="$names_next_round" 15829 names_next_round= 15830 for name in $names_this_round; do 15831 already_handled= 15832 for n in $names_already_handled; do 15833 if test "$n" = "$name"; then 15834 already_handled=yes 15835 break 15836 fi 15837 done 15838 if test -z "$already_handled"; then 15839 names_already_handled="$names_already_handled $name" 15840 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 15841 eval value=\"\$HAVE_LIB$uppername\" 15842 if test -n "$value"; then 15843 if test "$value" = yes; then 15844 eval value=\"\$LIB$uppername\" 15845 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 15846 eval value=\"\$LTLIB$uppername\" 15847 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 15848 else 15849 : 15850 fi 15851 else 15852 found_dir= 15853 found_la= 15854 found_so= 15855 found_a= 15856 if test $use_additional = yes; then 15857 if test -n "$shlibext" \ 15858 && { test -f "$additional_libdir/lib$name.$shlibext" \ 15859 || { test "$shlibext" = dll \ 15860 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 15861 found_dir="$additional_libdir" 15862 if test -f "$additional_libdir/lib$name.$shlibext"; then 15863 found_so="$additional_libdir/lib$name.$shlibext" 15864 else 15865 found_so="$additional_libdir/lib$name.dll.a" 15866 fi 15867 if test -f "$additional_libdir/lib$name.la"; then 15868 found_la="$additional_libdir/lib$name.la" 15869 fi 15870 else 15871 if test -f "$additional_libdir/lib$name.$libext"; then 15872 found_dir="$additional_libdir" 15873 found_a="$additional_libdir/lib$name.$libext" 15874 if test -f "$additional_libdir/lib$name.la"; then 15875 found_la="$additional_libdir/lib$name.la" 15876 fi 15877 fi 15878 fi 15879 fi 15880 if test "X$found_dir" = "X"; then 15881 for x in $LDFLAGS $LTLIBICONV; do 15882 15883 acl_save_prefix="$prefix" 15884 prefix="$acl_final_prefix" 15885 acl_save_exec_prefix="$exec_prefix" 15886 exec_prefix="$acl_final_exec_prefix" 15887 eval x=\"$x\" 15888 exec_prefix="$acl_save_exec_prefix" 15889 prefix="$acl_save_prefix" 15890 15891 case "$x" in 15892 -L*) 15893 dir=`echo "X$x" | sed -e 's/^X-L//'` 15894 if test -n "$shlibext" \ 15895 && { test -f "$dir/lib$name.$shlibext" \ 15896 || { test "$shlibext" = dll \ 15897 && test -f "$dir/lib$name.dll.a"; }; }; then 15898 found_dir="$dir" 15899 if test -f "$dir/lib$name.$shlibext"; then 15900 found_so="$dir/lib$name.$shlibext" 15901 else 15902 found_so="$dir/lib$name.dll.a" 15903 fi 15904 if test -f "$dir/lib$name.la"; then 15905 found_la="$dir/lib$name.la" 15906 fi 15907 else 15908 if test -f "$dir/lib$name.$libext"; then 15909 found_dir="$dir" 15910 found_a="$dir/lib$name.$libext" 15911 if test -f "$dir/lib$name.la"; then 15912 found_la="$dir/lib$name.la" 15913 fi 15914 fi 15915 fi 15916 ;; 15917 esac 15918 if test "X$found_dir" != "X"; then 15919 break 15920 fi 15921 done 15922 fi 15923 if test "X$found_dir" != "X"; then 15924 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 15925 if test "X$found_so" != "X"; then 15926 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 15927 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 15928 else 15929 haveit= 15930 for x in $ltrpathdirs; do 15931 if test "X$x" = "X$found_dir"; then 15932 haveit=yes 15933 break 15934 fi 15935 done 15936 if test -z "$haveit"; then 15937 ltrpathdirs="$ltrpathdirs $found_dir" 15938 fi 15939 if test "$hardcode_direct" = yes; then 15940 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 15941 else 15942 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 15943 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 15944 haveit= 15945 for x in $rpathdirs; do 15946 if test "X$x" = "X$found_dir"; then 15947 haveit=yes 15948 break 15949 fi 15950 done 15951 if test -z "$haveit"; then 15952 rpathdirs="$rpathdirs $found_dir" 15953 fi 15954 else 15955 haveit= 15956 for x in $LDFLAGS $LIBICONV; do 15957 15958 acl_save_prefix="$prefix" 15959 prefix="$acl_final_prefix" 15960 acl_save_exec_prefix="$exec_prefix" 15961 exec_prefix="$acl_final_exec_prefix" 15962 eval x=\"$x\" 15963 exec_prefix="$acl_save_exec_prefix" 15964 prefix="$acl_save_prefix" 15965 15966 if test "X$x" = "X-L$found_dir"; then 15967 haveit=yes 15968 break 15969 fi 15970 done 15971 if test -z "$haveit"; then 15972 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 15973 fi 15974 if test "$hardcode_minus_L" != no; then 15975 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 15976 else 15977 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 15978 fi 15979 fi 15980 fi 15981 fi 15982 else 15983 if test "X$found_a" != "X"; then 15984 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 15985 else 15986 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 15987 fi 15988 fi 15989 additional_includedir= 15990 case "$found_dir" in 15991 */$acl_libdirstem | */$acl_libdirstem/) 15992 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 15993 additional_includedir="$basedir/include" 15994 ;; 15995 esac 15996 if test "X$additional_includedir" != "X"; then 15997 if test "X$additional_includedir" != "X/usr/include"; then 15998 haveit= 15999 if test "X$additional_includedir" = "X/usr/local/include"; then 16000 if test -n "$GCC"; then 16001 case $host_os in 16002 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 16003 esac 16004 fi 16005 fi 16006 if test -z "$haveit"; then 16007 for x in $CPPFLAGS $INCICONV; do 16008 16009 acl_save_prefix="$prefix" 16010 prefix="$acl_final_prefix" 16011 acl_save_exec_prefix="$exec_prefix" 16012 exec_prefix="$acl_final_exec_prefix" 16013 eval x=\"$x\" 16014 exec_prefix="$acl_save_exec_prefix" 16015 prefix="$acl_save_prefix" 16016 16017 if test "X$x" = "X-I$additional_includedir"; then 16018 haveit=yes 16019 break 16020 fi 16021 done 16022 if test -z "$haveit"; then 16023 if test -d "$additional_includedir"; then 16024 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 16025 fi 16026 fi 16027 fi 16028 fi 16029 fi 16030 if test -n "$found_la"; then 16031 save_libdir="$libdir" 16032 case "$found_la" in 16033 */* | *\\*) . "$found_la" ;; 16034 *) . "./$found_la" ;; 16035 esac 16036 libdir="$save_libdir" 16037 for dep in $dependency_libs; do 16038 case "$dep" in 16039 -L*) 16040 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 16041 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 16042 haveit= 16043 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 16044 if test -n "$GCC"; then 16045 case $host_os in 16046 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 16047 esac 16048 fi 16049 fi 16050 if test -z "$haveit"; then 16051 haveit= 16052 for x in $LDFLAGS $LIBICONV; do 16053 16054 acl_save_prefix="$prefix" 16055 prefix="$acl_final_prefix" 16056 acl_save_exec_prefix="$exec_prefix" 16057 exec_prefix="$acl_final_exec_prefix" 16058 eval x=\"$x\" 16059 exec_prefix="$acl_save_exec_prefix" 16060 prefix="$acl_save_prefix" 16061 16062 if test "X$x" = "X-L$additional_libdir"; then 16063 haveit=yes 16064 break 16065 fi 16066 done 16067 if test -z "$haveit"; then 16068 if test -d "$additional_libdir"; then 16069 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 16070 fi 16071 fi 16072 haveit= 16073 for x in $LDFLAGS $LTLIBICONV; do 16074 16075 acl_save_prefix="$prefix" 16076 prefix="$acl_final_prefix" 16077 acl_save_exec_prefix="$exec_prefix" 16078 exec_prefix="$acl_final_exec_prefix" 16079 eval x=\"$x\" 16080 exec_prefix="$acl_save_exec_prefix" 16081 prefix="$acl_save_prefix" 16082 16083 if test "X$x" = "X-L$additional_libdir"; then 16084 haveit=yes 16085 break 16086 fi 16087 done 16088 if test -z "$haveit"; then 16089 if test -d "$additional_libdir"; then 16090 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 16091 fi 16092 fi 16093 fi 16094 fi 16095 ;; 16096 -R*) 16097 dir=`echo "X$dep" | sed -e 's/^X-R//'` 16098 if test "$enable_rpath" != no; then 16099 haveit= 16100 for x in $rpathdirs; do 16101 if test "X$x" = "X$dir"; then 16102 haveit=yes 16103 break 16104 fi 16105 done 16106 if test -z "$haveit"; then 16107 rpathdirs="$rpathdirs $dir" 16108 fi 16109 haveit= 16110 for x in $ltrpathdirs; do 16111 if test "X$x" = "X$dir"; then 16112 haveit=yes 16113 break 16114 fi 16115 done 16116 if test -z "$haveit"; then 16117 ltrpathdirs="$ltrpathdirs $dir" 16118 fi 16119 fi 16120 ;; 16121 -l*) 16122 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 16123 ;; 16124 *.la) 16125 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 16126 ;; 16127 *) 16128 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 16129 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 16130 ;; 16131 esac 16132 done 16133 fi 16134 else 16135 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 16136 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 16137 fi 16138 fi 16139 fi 16140 done 16141 done 16142 if test "X$rpathdirs" != "X"; then 16143 if test -n "$hardcode_libdir_separator"; then 16144 alldirs= 16145 for found_dir in $rpathdirs; do 16146 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 16147 done 16148 acl_save_libdir="$libdir" 16149 libdir="$alldirs" 16150 eval flag=\"$hardcode_libdir_flag_spec\" 16151 libdir="$acl_save_libdir" 16152 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 16153 else 16154 for found_dir in $rpathdirs; do 16155 acl_save_libdir="$libdir" 16156 libdir="$found_dir" 16157 eval flag=\"$hardcode_libdir_flag_spec\" 16158 libdir="$acl_save_libdir" 16159 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 16160 done 16161 fi 16162 fi 16163 if test "X$ltrpathdirs" != "X"; then 16164 for found_dir in $ltrpathdirs; do 16165 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 16166 done 16167 fi 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 16194$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 16195if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 16196 $as_echo_n "(cached) " >&6 16197else 16198 gt_save_LIBS="$LIBS" 16199 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16201/* end confdefs.h. */ 16202#include <CoreFoundation/CFPreferences.h> 16203int 16204main () 16205{ 16206CFPreferencesCopyAppValue(NULL, NULL) 16207 ; 16208 return 0; 16209} 16210_ACEOF 16211if ac_fn_c_try_link "$LINENO"; then : 16212 gt_cv_func_CFPreferencesCopyAppValue=yes 16213else 16214 gt_cv_func_CFPreferencesCopyAppValue=no 16215fi 16216rm -f core conftest.err conftest.$ac_objext \ 16217 conftest$ac_exeext conftest.$ac_ext 16218 LIBS="$gt_save_LIBS" 16219fi 16220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 16221$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 16222 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 16223 16224$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 16225 16226 fi 16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 16228$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 16229if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 16230 $as_echo_n "(cached) " >&6 16231else 16232 gt_save_LIBS="$LIBS" 16233 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16235/* end confdefs.h. */ 16236#include <CoreFoundation/CFLocale.h> 16237int 16238main () 16239{ 16240CFLocaleCopyCurrent(); 16241 ; 16242 return 0; 16243} 16244_ACEOF 16245if ac_fn_c_try_link "$LINENO"; then : 16246 gt_cv_func_CFLocaleCopyCurrent=yes 16247else 16248 gt_cv_func_CFLocaleCopyCurrent=no 16249fi 16250rm -f core conftest.err conftest.$ac_objext \ 16251 conftest$ac_exeext conftest.$ac_ext 16252 LIBS="$gt_save_LIBS" 16253fi 16254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 16255$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 16256 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 16257 16258$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 16259 16260 fi 16261 INTL_MACOSX_LIBS= 16262 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 16263 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 16264 fi 16265 16266 16267 16268 16269 16270 16271 LIBINTL= 16272 LTLIBINTL= 16273 POSUB= 16274 16275 case " $gt_needs " in 16276 *" need-formatstring-macros "*) gt_api_version=3 ;; 16277 *" need-ngettext "*) gt_api_version=2 ;; 16278 *) gt_api_version=1 ;; 16279 esac 16280 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 16281 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 16282 16283 if test "$USE_NLS" = "yes"; then 16284 gt_use_preinstalled_gnugettext=no 16285 16286 16287 if test $gt_api_version -ge 3; then 16288 gt_revision_test_code=' 16289#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 16290#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 16291#endif 16292typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 16293' 16294 else 16295 gt_revision_test_code= 16296 fi 16297 if test $gt_api_version -ge 2; then 16298 gt_expression_test_code=' + * ngettext ("", "", 0)' 16299 else 16300 gt_expression_test_code= 16301 fi 16302 16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 16304$as_echo_n "checking for GNU gettext in libc... " >&6; } 16305if eval \${$gt_func_gnugettext_libc+:} false; then : 16306 $as_echo_n "(cached) " >&6 16307else 16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16309/* end confdefs.h. */ 16310#include <libintl.h> 16311$gt_revision_test_code 16312extern int _nl_msg_cat_cntr; 16313extern int *_nl_domain_bindings; 16314int 16315main () 16316{ 16317bindtextdomain ("", ""); 16318return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 16319 ; 16320 return 0; 16321} 16322_ACEOF 16323if ac_fn_c_try_link "$LINENO"; then : 16324 eval "$gt_func_gnugettext_libc=yes" 16325else 16326 eval "$gt_func_gnugettext_libc=no" 16327fi 16328rm -f core conftest.err conftest.$ac_objext \ 16329 conftest$ac_exeext conftest.$ac_ext 16330fi 16331eval ac_res=\$$gt_func_gnugettext_libc 16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16333$as_echo "$ac_res" >&6; } 16334 16335 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 16336 16337 16338 16339 16340 16341 am_save_CPPFLAGS="$CPPFLAGS" 16342 16343 for element in $INCICONV; do 16344 haveit= 16345 for x in $CPPFLAGS; do 16346 16347 acl_save_prefix="$prefix" 16348 prefix="$acl_final_prefix" 16349 acl_save_exec_prefix="$exec_prefix" 16350 exec_prefix="$acl_final_exec_prefix" 16351 eval x=\"$x\" 16352 exec_prefix="$acl_save_exec_prefix" 16353 prefix="$acl_save_prefix" 16354 16355 if test "X$x" = "X$element"; then 16356 haveit=yes 16357 break 16358 fi 16359 done 16360 if test -z "$haveit"; then 16361 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 16362 fi 16363 done 16364 16365 16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 16367$as_echo_n "checking for iconv... " >&6; } 16368if ${am_cv_func_iconv+:} false; then : 16369 $as_echo_n "(cached) " >&6 16370else 16371 16372 am_cv_func_iconv="no, consider installing GNU libiconv" 16373 am_cv_lib_iconv=no 16374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16375/* end confdefs.h. */ 16376#include <stdlib.h> 16377#include <iconv.h> 16378int 16379main () 16380{ 16381iconv_t cd = iconv_open("",""); 16382 iconv(cd,NULL,NULL,NULL,NULL); 16383 iconv_close(cd); 16384 ; 16385 return 0; 16386} 16387_ACEOF 16388if ac_fn_c_try_link "$LINENO"; then : 16389 am_cv_func_iconv=yes 16390fi 16391rm -f core conftest.err conftest.$ac_objext \ 16392 conftest$ac_exeext conftest.$ac_ext 16393 if test "$am_cv_func_iconv" != yes; then 16394 am_save_LIBS="$LIBS" 16395 LIBS="$LIBS $LIBICONV" 16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16397/* end confdefs.h. */ 16398#include <stdlib.h> 16399#include <iconv.h> 16400int 16401main () 16402{ 16403iconv_t cd = iconv_open("",""); 16404 iconv(cd,NULL,NULL,NULL,NULL); 16405 iconv_close(cd); 16406 ; 16407 return 0; 16408} 16409_ACEOF 16410if ac_fn_c_try_link "$LINENO"; then : 16411 am_cv_lib_iconv=yes 16412 am_cv_func_iconv=yes 16413fi 16414rm -f core conftest.err conftest.$ac_objext \ 16415 conftest$ac_exeext conftest.$ac_ext 16416 LIBS="$am_save_LIBS" 16417 fi 16418 16419fi 16420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 16421$as_echo "$am_cv_func_iconv" >&6; } 16422 if test "$am_cv_func_iconv" = yes; then 16423 16424$as_echo "#define HAVE_ICONV 1" >>confdefs.h 16425 16426 fi 16427 if test "$am_cv_lib_iconv" = yes; then 16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 16429$as_echo_n "checking how to link with libiconv... " >&6; } 16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 16431$as_echo "$LIBICONV" >&6; } 16432 else 16433 CPPFLAGS="$am_save_CPPFLAGS" 16434 LIBICONV= 16435 LTLIBICONV= 16436 fi 16437 16438 16439 16440 16441 16442 16443 16444 use_additional=yes 16445 16446 acl_save_prefix="$prefix" 16447 prefix="$acl_final_prefix" 16448 acl_save_exec_prefix="$exec_prefix" 16449 exec_prefix="$acl_final_exec_prefix" 16450 16451 eval additional_includedir=\"$includedir\" 16452 eval additional_libdir=\"$libdir\" 16453 16454 exec_prefix="$acl_save_exec_prefix" 16455 prefix="$acl_save_prefix" 16456 16457 16458# Check whether --with-libintl-prefix was given. 16459if test "${with_libintl_prefix+set}" = set; then : 16460 withval=$with_libintl_prefix; 16461 if test "X$withval" = "Xno"; then 16462 use_additional=no 16463 else 16464 if test "X$withval" = "X"; then 16465 16466 acl_save_prefix="$prefix" 16467 prefix="$acl_final_prefix" 16468 acl_save_exec_prefix="$exec_prefix" 16469 exec_prefix="$acl_final_exec_prefix" 16470 16471 eval additional_includedir=\"$includedir\" 16472 eval additional_libdir=\"$libdir\" 16473 16474 exec_prefix="$acl_save_exec_prefix" 16475 prefix="$acl_save_prefix" 16476 16477 else 16478 additional_includedir="$withval/include" 16479 additional_libdir="$withval/$acl_libdirstem" 16480 fi 16481 fi 16482 16483fi 16484 16485 LIBINTL= 16486 LTLIBINTL= 16487 INCINTL= 16488 rpathdirs= 16489 ltrpathdirs= 16490 names_already_handled= 16491 names_next_round='intl ' 16492 while test -n "$names_next_round"; do 16493 names_this_round="$names_next_round" 16494 names_next_round= 16495 for name in $names_this_round; do 16496 already_handled= 16497 for n in $names_already_handled; do 16498 if test "$n" = "$name"; then 16499 already_handled=yes 16500 break 16501 fi 16502 done 16503 if test -z "$already_handled"; then 16504 names_already_handled="$names_already_handled $name" 16505 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 16506 eval value=\"\$HAVE_LIB$uppername\" 16507 if test -n "$value"; then 16508 if test "$value" = yes; then 16509 eval value=\"\$LIB$uppername\" 16510 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 16511 eval value=\"\$LTLIB$uppername\" 16512 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 16513 else 16514 : 16515 fi 16516 else 16517 found_dir= 16518 found_la= 16519 found_so= 16520 found_a= 16521 if test $use_additional = yes; then 16522 if test -n "$shlibext" \ 16523 && { test -f "$additional_libdir/lib$name.$shlibext" \ 16524 || { test "$shlibext" = dll \ 16525 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then 16526 found_dir="$additional_libdir" 16527 if test -f "$additional_libdir/lib$name.$shlibext"; then 16528 found_so="$additional_libdir/lib$name.$shlibext" 16529 else 16530 found_so="$additional_libdir/lib$name.dll.a" 16531 fi 16532 if test -f "$additional_libdir/lib$name.la"; then 16533 found_la="$additional_libdir/lib$name.la" 16534 fi 16535 else 16536 if test -f "$additional_libdir/lib$name.$libext"; then 16537 found_dir="$additional_libdir" 16538 found_a="$additional_libdir/lib$name.$libext" 16539 if test -f "$additional_libdir/lib$name.la"; then 16540 found_la="$additional_libdir/lib$name.la" 16541 fi 16542 fi 16543 fi 16544 fi 16545 if test "X$found_dir" = "X"; then 16546 for x in $LDFLAGS $LTLIBINTL; do 16547 16548 acl_save_prefix="$prefix" 16549 prefix="$acl_final_prefix" 16550 acl_save_exec_prefix="$exec_prefix" 16551 exec_prefix="$acl_final_exec_prefix" 16552 eval x=\"$x\" 16553 exec_prefix="$acl_save_exec_prefix" 16554 prefix="$acl_save_prefix" 16555 16556 case "$x" in 16557 -L*) 16558 dir=`echo "X$x" | sed -e 's/^X-L//'` 16559 if test -n "$shlibext" \ 16560 && { test -f "$dir/lib$name.$shlibext" \ 16561 || { test "$shlibext" = dll \ 16562 && test -f "$dir/lib$name.dll.a"; }; }; then 16563 found_dir="$dir" 16564 if test -f "$dir/lib$name.$shlibext"; then 16565 found_so="$dir/lib$name.$shlibext" 16566 else 16567 found_so="$dir/lib$name.dll.a" 16568 fi 16569 if test -f "$dir/lib$name.la"; then 16570 found_la="$dir/lib$name.la" 16571 fi 16572 else 16573 if test -f "$dir/lib$name.$libext"; then 16574 found_dir="$dir" 16575 found_a="$dir/lib$name.$libext" 16576 if test -f "$dir/lib$name.la"; then 16577 found_la="$dir/lib$name.la" 16578 fi 16579 fi 16580 fi 16581 ;; 16582 esac 16583 if test "X$found_dir" != "X"; then 16584 break 16585 fi 16586 done 16587 fi 16588 if test "X$found_dir" != "X"; then 16589 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 16590 if test "X$found_so" != "X"; then 16591 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 16592 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 16593 else 16594 haveit= 16595 for x in $ltrpathdirs; do 16596 if test "X$x" = "X$found_dir"; then 16597 haveit=yes 16598 break 16599 fi 16600 done 16601 if test -z "$haveit"; then 16602 ltrpathdirs="$ltrpathdirs $found_dir" 16603 fi 16604 if test "$hardcode_direct" = yes; then 16605 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 16606 else 16607 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 16608 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 16609 haveit= 16610 for x in $rpathdirs; do 16611 if test "X$x" = "X$found_dir"; then 16612 haveit=yes 16613 break 16614 fi 16615 done 16616 if test -z "$haveit"; then 16617 rpathdirs="$rpathdirs $found_dir" 16618 fi 16619 else 16620 haveit= 16621 for x in $LDFLAGS $LIBINTL; do 16622 16623 acl_save_prefix="$prefix" 16624 prefix="$acl_final_prefix" 16625 acl_save_exec_prefix="$exec_prefix" 16626 exec_prefix="$acl_final_exec_prefix" 16627 eval x=\"$x\" 16628 exec_prefix="$acl_save_exec_prefix" 16629 prefix="$acl_save_prefix" 16630 16631 if test "X$x" = "X-L$found_dir"; then 16632 haveit=yes 16633 break 16634 fi 16635 done 16636 if test -z "$haveit"; then 16637 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 16638 fi 16639 if test "$hardcode_minus_L" != no; then 16640 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 16641 else 16642 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 16643 fi 16644 fi 16645 fi 16646 fi 16647 else 16648 if test "X$found_a" != "X"; then 16649 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 16650 else 16651 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 16652 fi 16653 fi 16654 additional_includedir= 16655 case "$found_dir" in 16656 */$acl_libdirstem | */$acl_libdirstem/) 16657 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 16658 additional_includedir="$basedir/include" 16659 ;; 16660 esac 16661 if test "X$additional_includedir" != "X"; then 16662 if test "X$additional_includedir" != "X/usr/include"; then 16663 haveit= 16664 if test "X$additional_includedir" = "X/usr/local/include"; then 16665 if test -n "$GCC"; then 16666 case $host_os in 16667 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 16668 esac 16669 fi 16670 fi 16671 if test -z "$haveit"; then 16672 for x in $CPPFLAGS $INCINTL; do 16673 16674 acl_save_prefix="$prefix" 16675 prefix="$acl_final_prefix" 16676 acl_save_exec_prefix="$exec_prefix" 16677 exec_prefix="$acl_final_exec_prefix" 16678 eval x=\"$x\" 16679 exec_prefix="$acl_save_exec_prefix" 16680 prefix="$acl_save_prefix" 16681 16682 if test "X$x" = "X-I$additional_includedir"; then 16683 haveit=yes 16684 break 16685 fi 16686 done 16687 if test -z "$haveit"; then 16688 if test -d "$additional_includedir"; then 16689 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 16690 fi 16691 fi 16692 fi 16693 fi 16694 fi 16695 if test -n "$found_la"; then 16696 save_libdir="$libdir" 16697 case "$found_la" in 16698 */* | *\\*) . "$found_la" ;; 16699 *) . "./$found_la" ;; 16700 esac 16701 libdir="$save_libdir" 16702 for dep in $dependency_libs; do 16703 case "$dep" in 16704 -L*) 16705 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 16706 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 16707 haveit= 16708 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 16709 if test -n "$GCC"; then 16710 case $host_os in 16711 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 16712 esac 16713 fi 16714 fi 16715 if test -z "$haveit"; then 16716 haveit= 16717 for x in $LDFLAGS $LIBINTL; do 16718 16719 acl_save_prefix="$prefix" 16720 prefix="$acl_final_prefix" 16721 acl_save_exec_prefix="$exec_prefix" 16722 exec_prefix="$acl_final_exec_prefix" 16723 eval x=\"$x\" 16724 exec_prefix="$acl_save_exec_prefix" 16725 prefix="$acl_save_prefix" 16726 16727 if test "X$x" = "X-L$additional_libdir"; then 16728 haveit=yes 16729 break 16730 fi 16731 done 16732 if test -z "$haveit"; then 16733 if test -d "$additional_libdir"; then 16734 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 16735 fi 16736 fi 16737 haveit= 16738 for x in $LDFLAGS $LTLIBINTL; do 16739 16740 acl_save_prefix="$prefix" 16741 prefix="$acl_final_prefix" 16742 acl_save_exec_prefix="$exec_prefix" 16743 exec_prefix="$acl_final_exec_prefix" 16744 eval x=\"$x\" 16745 exec_prefix="$acl_save_exec_prefix" 16746 prefix="$acl_save_prefix" 16747 16748 if test "X$x" = "X-L$additional_libdir"; then 16749 haveit=yes 16750 break 16751 fi 16752 done 16753 if test -z "$haveit"; then 16754 if test -d "$additional_libdir"; then 16755 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 16756 fi 16757 fi 16758 fi 16759 fi 16760 ;; 16761 -R*) 16762 dir=`echo "X$dep" | sed -e 's/^X-R//'` 16763 if test "$enable_rpath" != no; then 16764 haveit= 16765 for x in $rpathdirs; do 16766 if test "X$x" = "X$dir"; then 16767 haveit=yes 16768 break 16769 fi 16770 done 16771 if test -z "$haveit"; then 16772 rpathdirs="$rpathdirs $dir" 16773 fi 16774 haveit= 16775 for x in $ltrpathdirs; do 16776 if test "X$x" = "X$dir"; then 16777 haveit=yes 16778 break 16779 fi 16780 done 16781 if test -z "$haveit"; then 16782 ltrpathdirs="$ltrpathdirs $dir" 16783 fi 16784 fi 16785 ;; 16786 -l*) 16787 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 16788 ;; 16789 *.la) 16790 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 16791 ;; 16792 *) 16793 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 16794 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 16795 ;; 16796 esac 16797 done 16798 fi 16799 else 16800 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 16801 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 16802 fi 16803 fi 16804 fi 16805 done 16806 done 16807 if test "X$rpathdirs" != "X"; then 16808 if test -n "$hardcode_libdir_separator"; then 16809 alldirs= 16810 for found_dir in $rpathdirs; do 16811 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 16812 done 16813 acl_save_libdir="$libdir" 16814 libdir="$alldirs" 16815 eval flag=\"$hardcode_libdir_flag_spec\" 16816 libdir="$acl_save_libdir" 16817 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 16818 else 16819 for found_dir in $rpathdirs; do 16820 acl_save_libdir="$libdir" 16821 libdir="$found_dir" 16822 eval flag=\"$hardcode_libdir_flag_spec\" 16823 libdir="$acl_save_libdir" 16824 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 16825 done 16826 fi 16827 fi 16828 if test "X$ltrpathdirs" != "X"; then 16829 for found_dir in $ltrpathdirs; do 16830 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 16831 done 16832 fi 16833 16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 16835$as_echo_n "checking for GNU gettext in libintl... " >&6; } 16836if eval \${$gt_func_gnugettext_libintl+:} false; then : 16837 $as_echo_n "(cached) " >&6 16838else 16839 gt_save_CPPFLAGS="$CPPFLAGS" 16840 CPPFLAGS="$CPPFLAGS $INCINTL" 16841 gt_save_LIBS="$LIBS" 16842 LIBS="$LIBS $LIBINTL" 16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16844/* end confdefs.h. */ 16845#include <libintl.h> 16846$gt_revision_test_code 16847extern int _nl_msg_cat_cntr; 16848extern 16849#ifdef __cplusplus 16850"C" 16851#endif 16852const char *_nl_expand_alias (const char *); 16853int 16854main () 16855{ 16856bindtextdomain ("", ""); 16857return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 16858 ; 16859 return 0; 16860} 16861_ACEOF 16862if ac_fn_c_try_link "$LINENO"; then : 16863 eval "$gt_func_gnugettext_libintl=yes" 16864else 16865 eval "$gt_func_gnugettext_libintl=no" 16866fi 16867rm -f core conftest.err conftest.$ac_objext \ 16868 conftest$ac_exeext conftest.$ac_ext 16869 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 16870 LIBS="$LIBS $LIBICONV" 16871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16872/* end confdefs.h. */ 16873#include <libintl.h> 16874$gt_revision_test_code 16875extern int _nl_msg_cat_cntr; 16876extern 16877#ifdef __cplusplus 16878"C" 16879#endif 16880const char *_nl_expand_alias (const char *); 16881int 16882main () 16883{ 16884bindtextdomain ("", ""); 16885return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 16886 ; 16887 return 0; 16888} 16889_ACEOF 16890if ac_fn_c_try_link "$LINENO"; then : 16891 LIBINTL="$LIBINTL $LIBICONV" 16892 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 16893 eval "$gt_func_gnugettext_libintl=yes" 16894 16895fi 16896rm -f core conftest.err conftest.$ac_objext \ 16897 conftest$ac_exeext conftest.$ac_ext 16898 fi 16899 CPPFLAGS="$gt_save_CPPFLAGS" 16900 LIBS="$gt_save_LIBS" 16901fi 16902eval ac_res=\$$gt_func_gnugettext_libintl 16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16904$as_echo "$ac_res" >&6; } 16905 fi 16906 16907 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 16908 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 16909 && test "$PACKAGE" != gettext-runtime \ 16910 && test "$PACKAGE" != gettext-tools; }; then 16911 gt_use_preinstalled_gnugettext=yes 16912 else 16913 LIBINTL= 16914 LTLIBINTL= 16915 INCINTL= 16916 fi 16917 16918 16919 16920 if test -n "$INTL_MACOSX_LIBS"; then 16921 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 16922 || test "$nls_cv_use_gnu_gettext" = "yes"; then 16923 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 16924 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 16925 fi 16926 fi 16927 16928 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 16929 || test "$nls_cv_use_gnu_gettext" = "yes"; then 16930 16931$as_echo "#define ENABLE_NLS 1" >>confdefs.h 16932 16933 else 16934 USE_NLS=no 16935 fi 16936 fi 16937 16938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 16939$as_echo_n "checking whether to use NLS... " >&6; } 16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 16941$as_echo "$USE_NLS" >&6; } 16942 if test "$USE_NLS" = "yes"; then 16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 16944$as_echo_n "checking where the gettext function comes from... " >&6; } 16945 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 16946 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 16947 gt_source="external libintl" 16948 else 16949 gt_source="libc" 16950 fi 16951 else 16952 gt_source="included intl directory" 16953 fi 16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 16955$as_echo "$gt_source" >&6; } 16956 fi 16957 16958 if test "$USE_NLS" = "yes"; then 16959 16960 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 16961 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 16963$as_echo_n "checking how to link with libintl... " >&6; } 16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 16965$as_echo "$LIBINTL" >&6; } 16966 16967 for element in $INCINTL; do 16968 haveit= 16969 for x in $CPPFLAGS; do 16970 16971 acl_save_prefix="$prefix" 16972 prefix="$acl_final_prefix" 16973 acl_save_exec_prefix="$exec_prefix" 16974 exec_prefix="$acl_final_exec_prefix" 16975 eval x=\"$x\" 16976 exec_prefix="$acl_save_exec_prefix" 16977 prefix="$acl_save_prefix" 16978 16979 if test "X$x" = "X$element"; then 16980 haveit=yes 16981 break 16982 fi 16983 done 16984 if test -z "$haveit"; then 16985 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 16986 fi 16987 done 16988 16989 fi 16990 16991 16992$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 16993 16994 16995$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 16996 16997 fi 16998 16999 POSUB=po 17000 fi 17001 17002 17003 17004 INTLLIBS="$LIBINTL" 17005 17006 17007 17008 17009 17010 17011 17012LIBS="$LIBS $LIBINTL" 17013 17014# Checks for libraries. 17015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Lua package name" >&5 17016$as_echo_n "checking for Lua package name... " >&6; } 17017if test -n "$PKG_CONFIG" && \ 17018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5 17019 ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5 17020 ac_status=$? 17021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17022 test $ac_status = 0; }; then 17023 LUA="lua-5.2" 17024else 17025 if test -n "$PKG_CONFIG" && \ 17026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5 17027 ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5 17028 ac_status=$? 17029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17030 test $ac_status = 0; }; then 17031 LUA="lua-5.2" 17032else 17033 LUA="lua" 17034fi 17035fi 17036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5 17037$as_echo "$LUA" >&6; } 17038 17039if test -n "$PKG_CONFIG" && \ 17040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 17041 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 17042 ac_status=$? 17043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17044 test $ac_status = 0; }; then 17045 ZLIB="zlib >= 1.2.3" 17046else 17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 17048$as_echo_n "checking for uncompress in -lz... " >&6; } 17049if ${ac_cv_lib_z_uncompress+:} false; then : 17050 $as_echo_n "(cached) " >&6 17051else 17052 ac_check_lib_save_LIBS=$LIBS 17053LIBS="-lz $LIBS" 17054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17055/* end confdefs.h. */ 17056 17057/* Override any GCC internal prototype to avoid an error. 17058 Use char because int might match the return type of a GCC 17059 builtin and then its argument prototype would still apply. */ 17060#ifdef __cplusplus 17061extern "C" 17062#endif 17063char uncompress (); 17064int 17065main () 17066{ 17067return uncompress (); 17068 ; 17069 return 0; 17070} 17071_ACEOF 17072if ac_fn_c_try_link "$LINENO"; then : 17073 ac_cv_lib_z_uncompress=yes 17074else 17075 ac_cv_lib_z_uncompress=no 17076fi 17077rm -f core conftest.err conftest.$ac_objext \ 17078 conftest$ac_exeext conftest.$ac_ext 17079LIBS=$ac_check_lib_save_LIBS 17080fi 17081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 17082$as_echo "$ac_cv_lib_z_uncompress" >&6; } 17083if test "x$ac_cv_lib_z_uncompress" = xyes; then : 17084 cat >>confdefs.h <<_ACEOF 17085#define HAVE_LIBZ 1 17086_ACEOF 17087 17088 LIBS="-lz $LIBS" 17089 17090else 17091 as_fn_error $? "Unable to find zlib." "$LINENO" 5 17092fi 17093 17094fi 17095 17096if test -n "$PKG_CONFIG" && \ 17097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5 17098 ($PKG_CONFIG --exists --print-errors "SDL_mixer") 2>&5 17099 ac_status=$? 17100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17101 test $ac_status = 0; }; then 17102 SDL_MIXER="SDL_mixer >= 1.2.0" 17103else 17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5 17105$as_echo_n "checking for main in -lSDL_mixer... " >&6; } 17106if ${ac_cv_lib_SDL_mixer_main+:} false; then : 17107 $as_echo_n "(cached) " >&6 17108else 17109 ac_check_lib_save_LIBS=$LIBS 17110LIBS="-lSDL_mixer $LIBS" 17111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17112/* end confdefs.h. */ 17113 17114 17115int 17116main () 17117{ 17118return main (); 17119 ; 17120 return 0; 17121} 17122_ACEOF 17123if ac_fn_c_try_link "$LINENO"; then : 17124 ac_cv_lib_SDL_mixer_main=yes 17125else 17126 ac_cv_lib_SDL_mixer_main=no 17127fi 17128rm -f core conftest.err conftest.$ac_objext \ 17129 conftest$ac_exeext conftest.$ac_ext 17130LIBS=$ac_check_lib_save_LIBS 17131fi 17132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5 17133$as_echo "$ac_cv_lib_SDL_mixer_main" >&6; } 17134if test "x$ac_cv_lib_SDL_mixer_main" = xyes; then : 17135 cat >>confdefs.h <<_ACEOF 17136#define HAVE_LIBSDL_MIXER 1 17137_ACEOF 17138 17139 LIBS="-lSDL_mixer $LIBS" 17140 17141else 17142 as_fn_error $? "Unable to find SDL_mixer." "$LINENO" 5 17143fi 17144 17145fi 17146 17147if test -n "$PKG_CONFIG" && \ 17148 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_ttf\""; } >&5 17149 ($PKG_CONFIG --exists --print-errors "SDL_ttf") 2>&5 17150 ac_status=$? 17151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17152 test $ac_status = 0; }; then 17153 SDL_TTF="SDL_ttf >= 2.0.0" 17154else 17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_ttf" >&5 17156$as_echo_n "checking for main in -lSDL_ttf... " >&6; } 17157if ${ac_cv_lib_SDL_ttf_main+:} false; then : 17158 $as_echo_n "(cached) " >&6 17159else 17160 ac_check_lib_save_LIBS=$LIBS 17161LIBS="-lSDL_ttf $LIBS" 17162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17163/* end confdefs.h. */ 17164 17165 17166int 17167main () 17168{ 17169return main (); 17170 ; 17171 return 0; 17172} 17173_ACEOF 17174if ac_fn_c_try_link "$LINENO"; then : 17175 ac_cv_lib_SDL_ttf_main=yes 17176else 17177 ac_cv_lib_SDL_ttf_main=no 17178fi 17179rm -f core conftest.err conftest.$ac_objext \ 17180 conftest$ac_exeext conftest.$ac_ext 17181LIBS=$ac_check_lib_save_LIBS 17182fi 17183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_main" >&5 17184$as_echo "$ac_cv_lib_SDL_ttf_main" >&6; } 17185if test "x$ac_cv_lib_SDL_ttf_main" = xyes; then : 17186 cat >>confdefs.h <<_ACEOF 17187#define HAVE_LIBSDL_TTF 1 17188_ACEOF 17189 17190 LIBS="-lSDL_ttf $LIBS" 17191 17192else 17193 as_fn_error $? "Unable to find SDL_ttf." "$LINENO" 5 17194fi 17195 17196fi 17197 17198 17199pkg_failed=no 17200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5 17201$as_echo_n "checking for DEPS... " >&6; } 17202 17203if test -n "$DEPS_CFLAGS"; then 17204 pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS" 17205 elif test -n "$PKG_CONFIG"; then 17206 if test -n "$PKG_CONFIG" && \ 17207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ZLIB libpng >= 1.2.27 sdl >= 1.2.0 \$SDL_MIXER \$SDL_TTF \$LUA >= 5.0\""; } >&5 17208 ($PKG_CONFIG --exists --print-errors "$ZLIB libpng >= 1.2.27 sdl >= 1.2.0 $SDL_MIXER $SDL_TTF $LUA >= 5.0") 2>&5 17209 ac_status=$? 17210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17211 test $ac_status = 0; }; then 17212 pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "$ZLIB libpng >= 1.2.27 sdl >= 1.2.0 $SDL_MIXER $SDL_TTF $LUA >= 5.0" 2>/dev/null` 17213 test "x$?" != "x0" && pkg_failed=yes 17214else 17215 pkg_failed=yes 17216fi 17217 else 17218 pkg_failed=untried 17219fi 17220if test -n "$DEPS_LIBS"; then 17221 pkg_cv_DEPS_LIBS="$DEPS_LIBS" 17222 elif test -n "$PKG_CONFIG"; then 17223 if test -n "$PKG_CONFIG" && \ 17224 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ZLIB libpng >= 1.2.27 sdl >= 1.2.0 \$SDL_MIXER \$SDL_TTF \$LUA >= 5.0\""; } >&5 17225 ($PKG_CONFIG --exists --print-errors "$ZLIB libpng >= 1.2.27 sdl >= 1.2.0 $SDL_MIXER $SDL_TTF $LUA >= 5.0") 2>&5 17226 ac_status=$? 17227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17228 test $ac_status = 0; }; then 17229 pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "$ZLIB libpng >= 1.2.27 sdl >= 1.2.0 $SDL_MIXER $SDL_TTF $LUA >= 5.0" 2>/dev/null` 17230 test "x$?" != "x0" && pkg_failed=yes 17231else 17232 pkg_failed=yes 17233fi 17234 else 17235 pkg_failed=untried 17236fi 17237 17238 17239 17240if test $pkg_failed = yes; then 17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17242$as_echo "no" >&6; } 17243 17244if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17245 _pkg_short_errors_supported=yes 17246else 17247 _pkg_short_errors_supported=no 17248fi 17249 if test $_pkg_short_errors_supported = yes; then 17250 DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ZLIB libpng >= 1.2.27 sdl >= 1.2.0 $SDL_MIXER $SDL_TTF $LUA >= 5.0" 2>&1` 17251 else 17252 DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ZLIB libpng >= 1.2.27 sdl >= 1.2.0 $SDL_MIXER $SDL_TTF $LUA >= 5.0" 2>&1` 17253 fi 17254 # Put the nasty error message in config.log where it belongs 17255 echo "$DEPS_PKG_ERRORS" >&5 17256 17257 as_fn_error $? "Package requirements ($ZLIB libpng >= 1.2.27 sdl >= 1.2.0 $SDL_MIXER $SDL_TTF $LUA >= 5.0) were not met: 17258 17259$DEPS_PKG_ERRORS 17260 17261Consider adjusting the PKG_CONFIG_PATH environment variable if you 17262installed software in a non-standard prefix. 17263 17264Alternatively, you may set the environment variables DEPS_CFLAGS 17265and DEPS_LIBS to avoid the need to call pkg-config. 17266See the pkg-config man page for more details." "$LINENO" 5 17267elif test $pkg_failed = untried; then 17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17269$as_echo "no" >&6; } 17270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17272as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17273is in your PATH or set the PKG_CONFIG environment variable to the full 17274path to pkg-config. 17275 17276Alternatively, you may set the environment variables DEPS_CFLAGS 17277and DEPS_LIBS to avoid the need to call pkg-config. 17278See the pkg-config man page for more details. 17279 17280To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17281See \`config.log' for more details" "$LINENO" 5; } 17282else 17283 DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS 17284 DEPS_LIBS=$pkg_cv_DEPS_LIBS 17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17286$as_echo "yes" >&6; } 17287 17288fi 17289CPPFLAGS="$CPPFLAGS $DEPS_CFLAGS" 17290LIBS="$LIBS $DEPS_LIBS" 17291 17292# Checks for header files. 17293ac_header_dirent=no 17294for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 17295 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 17296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 17297$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 17298if eval \${$as_ac_Header+:} false; then : 17299 $as_echo_n "(cached) " >&6 17300else 17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17302/* end confdefs.h. */ 17303#include <sys/types.h> 17304#include <$ac_hdr> 17305 17306int 17307main () 17308{ 17309if ((DIR *) 0) 17310return 0; 17311 ; 17312 return 0; 17313} 17314_ACEOF 17315if ac_fn_c_try_compile "$LINENO"; then : 17316 eval "$as_ac_Header=yes" 17317else 17318 eval "$as_ac_Header=no" 17319fi 17320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17321fi 17322eval ac_res=\$$as_ac_Header 17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17324$as_echo "$ac_res" >&6; } 17325if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17326 cat >>confdefs.h <<_ACEOF 17327#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 17328_ACEOF 17329 17330ac_header_dirent=$ac_hdr; break 17331fi 17332 17333done 17334# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 17335if test $ac_header_dirent = dirent.h; then 17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 17337$as_echo_n "checking for library containing opendir... " >&6; } 17338if ${ac_cv_search_opendir+:} false; then : 17339 $as_echo_n "(cached) " >&6 17340else 17341 ac_func_search_save_LIBS=$LIBS 17342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17343/* end confdefs.h. */ 17344 17345/* Override any GCC internal prototype to avoid an error. 17346 Use char because int might match the return type of a GCC 17347 builtin and then its argument prototype would still apply. */ 17348#ifdef __cplusplus 17349extern "C" 17350#endif 17351char opendir (); 17352int 17353main () 17354{ 17355return opendir (); 17356 ; 17357 return 0; 17358} 17359_ACEOF 17360for ac_lib in '' dir; do 17361 if test -z "$ac_lib"; then 17362 ac_res="none required" 17363 else 17364 ac_res=-l$ac_lib 17365 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17366 fi 17367 if ac_fn_c_try_link "$LINENO"; then : 17368 ac_cv_search_opendir=$ac_res 17369fi 17370rm -f core conftest.err conftest.$ac_objext \ 17371 conftest$ac_exeext 17372 if ${ac_cv_search_opendir+:} false; then : 17373 break 17374fi 17375done 17376if ${ac_cv_search_opendir+:} false; then : 17377 17378else 17379 ac_cv_search_opendir=no 17380fi 17381rm conftest.$ac_ext 17382LIBS=$ac_func_search_save_LIBS 17383fi 17384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 17385$as_echo "$ac_cv_search_opendir" >&6; } 17386ac_res=$ac_cv_search_opendir 17387if test "$ac_res" != no; then : 17388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17389 17390fi 17391 17392else 17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 17394$as_echo_n "checking for library containing opendir... " >&6; } 17395if ${ac_cv_search_opendir+:} false; then : 17396 $as_echo_n "(cached) " >&6 17397else 17398 ac_func_search_save_LIBS=$LIBS 17399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17400/* end confdefs.h. */ 17401 17402/* Override any GCC internal prototype to avoid an error. 17403 Use char because int might match the return type of a GCC 17404 builtin and then its argument prototype would still apply. */ 17405#ifdef __cplusplus 17406extern "C" 17407#endif 17408char opendir (); 17409int 17410main () 17411{ 17412return opendir (); 17413 ; 17414 return 0; 17415} 17416_ACEOF 17417for ac_lib in '' x; do 17418 if test -z "$ac_lib"; then 17419 ac_res="none required" 17420 else 17421 ac_res=-l$ac_lib 17422 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17423 fi 17424 if ac_fn_c_try_link "$LINENO"; then : 17425 ac_cv_search_opendir=$ac_res 17426fi 17427rm -f core conftest.err conftest.$ac_objext \ 17428 conftest$ac_exeext 17429 if ${ac_cv_search_opendir+:} false; then : 17430 break 17431fi 17432done 17433if ${ac_cv_search_opendir+:} false; then : 17434 17435else 17436 ac_cv_search_opendir=no 17437fi 17438rm conftest.$ac_ext 17439LIBS=$ac_func_search_save_LIBS 17440fi 17441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 17442$as_echo "$ac_cv_search_opendir" >&6; } 17443ac_res=$ac_cv_search_opendir 17444if test "$ac_res" != no; then : 17445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17446 17447fi 17448 17449fi 17450 17451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 17452$as_echo_n "checking for ANSI C header files... " >&6; } 17453if ${ac_cv_header_stdc+:} false; then : 17454 $as_echo_n "(cached) " >&6 17455else 17456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17457/* end confdefs.h. */ 17458#include <stdlib.h> 17459#include <stdarg.h> 17460#include <string.h> 17461#include <float.h> 17462 17463int 17464main () 17465{ 17466 17467 ; 17468 return 0; 17469} 17470_ACEOF 17471if ac_fn_c_try_compile "$LINENO"; then : 17472 ac_cv_header_stdc=yes 17473else 17474 ac_cv_header_stdc=no 17475fi 17476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17477 17478if test $ac_cv_header_stdc = yes; then 17479 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 17480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17481/* end confdefs.h. */ 17482#include <string.h> 17483 17484_ACEOF 17485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17486 $EGREP "memchr" >/dev/null 2>&1; then : 17487 17488else 17489 ac_cv_header_stdc=no 17490fi 17491rm -f conftest* 17492 17493fi 17494 17495if test $ac_cv_header_stdc = yes; then 17496 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 17497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17498/* end confdefs.h. */ 17499#include <stdlib.h> 17500 17501_ACEOF 17502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17503 $EGREP "free" >/dev/null 2>&1; then : 17504 17505else 17506 ac_cv_header_stdc=no 17507fi 17508rm -f conftest* 17509 17510fi 17511 17512if test $ac_cv_header_stdc = yes; then 17513 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 17514 if test "$cross_compiling" = yes; then : 17515 : 17516else 17517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17518/* end confdefs.h. */ 17519#include <ctype.h> 17520#include <stdlib.h> 17521#if ((' ' & 0x0FF) == 0x020) 17522# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 17523# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 17524#else 17525# define ISLOWER(c) \ 17526 (('a' <= (c) && (c) <= 'i') \ 17527 || ('j' <= (c) && (c) <= 'r') \ 17528 || ('s' <= (c) && (c) <= 'z')) 17529# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 17530#endif 17531 17532#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 17533int 17534main () 17535{ 17536 int i; 17537 for (i = 0; i < 256; i++) 17538 if (XOR (islower (i), ISLOWER (i)) 17539 || toupper (i) != TOUPPER (i)) 17540 return 2; 17541 return 0; 17542} 17543_ACEOF 17544if ac_fn_c_try_run "$LINENO"; then : 17545 17546else 17547 ac_cv_header_stdc=no 17548fi 17549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17550 conftest.$ac_objext conftest.beam conftest.$ac_ext 17551fi 17552 17553fi 17554fi 17555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 17556$as_echo "$ac_cv_header_stdc" >&6; } 17557if test $ac_cv_header_stdc = yes; then 17558 17559$as_echo "#define STDC_HEADERS 1" >>confdefs.h 17560 17561fi 17562 17563for ac_header in stdlib.h string.h 17564do : 17565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17566ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17567if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17568 cat >>confdefs.h <<_ACEOF 17569#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17570_ACEOF 17571 17572fi 17573 17574done 17575 17576 17577# Checks for typedefs, structures, and compiler characteristics. 17578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 17579$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 17580if ${ac_cv_header_stdbool_h+:} false; then : 17581 $as_echo_n "(cached) " >&6 17582else 17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17584/* end confdefs.h. */ 17585 17586 #include <stdbool.h> 17587 #ifndef bool 17588 "error: bool is not defined" 17589 #endif 17590 #ifndef false 17591 "error: false is not defined" 17592 #endif 17593 #if false 17594 "error: false is not 0" 17595 #endif 17596 #ifndef true 17597 "error: true is not defined" 17598 #endif 17599 #if true != 1 17600 "error: true is not 1" 17601 #endif 17602 #ifndef __bool_true_false_are_defined 17603 "error: __bool_true_false_are_defined is not defined" 17604 #endif 17605 17606 struct s { _Bool s: 1; _Bool t; } s; 17607 17608 char a[true == 1 ? 1 : -1]; 17609 char b[false == 0 ? 1 : -1]; 17610 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 17611 char d[(bool) 0.5 == true ? 1 : -1]; 17612 /* See body of main program for 'e'. */ 17613 char f[(_Bool) 0.0 == false ? 1 : -1]; 17614 char g[true]; 17615 char h[sizeof (_Bool)]; 17616 char i[sizeof s.t]; 17617 enum { j = false, k = true, l = false * true, m = true * 256 }; 17618 /* The following fails for 17619 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 17620 _Bool n[m]; 17621 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 17622 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 17623 /* Catch a bug in an HP-UX C compiler. See 17624 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 17625 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 17626 */ 17627 _Bool q = true; 17628 _Bool *pq = &q; 17629 17630int 17631main () 17632{ 17633 17634 bool e = &s; 17635 *pq |= q; 17636 *pq |= ! q; 17637 /* Refer to every declared value, to avoid compiler optimizations. */ 17638 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 17639 + !m + !n + !o + !p + !q + !pq); 17640 17641 ; 17642 return 0; 17643} 17644_ACEOF 17645if ac_fn_c_try_compile "$LINENO"; then : 17646 ac_cv_header_stdbool_h=yes 17647else 17648 ac_cv_header_stdbool_h=no 17649fi 17650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17651fi 17652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 17653$as_echo "$ac_cv_header_stdbool_h" >&6; } 17654 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 17655if test "x$ac_cv_type__Bool" = xyes; then : 17656 17657cat >>confdefs.h <<_ACEOF 17658#define HAVE__BOOL 1 17659_ACEOF 17660 17661 17662fi 17663 17664 17665if test $ac_cv_header_stdbool_h = yes; then 17666 17667$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 17668 17669fi 17670 17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 17672$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 17673if ${ac_cv_c_bigendian+:} false; then : 17674 $as_echo_n "(cached) " >&6 17675else 17676 ac_cv_c_bigendian=unknown 17677 # See if we're dealing with a universal compiler. 17678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17679/* end confdefs.h. */ 17680#ifndef __APPLE_CC__ 17681 not a universal capable compiler 17682 #endif 17683 typedef int dummy; 17684 17685_ACEOF 17686if ac_fn_c_try_compile "$LINENO"; then : 17687 17688 # Check for potential -arch flags. It is not universal unless 17689 # there are at least two -arch flags with different values. 17690 ac_arch= 17691 ac_prev= 17692 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 17693 if test -n "$ac_prev"; then 17694 case $ac_word in 17695 i?86 | x86_64 | ppc | ppc64) 17696 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 17697 ac_arch=$ac_word 17698 else 17699 ac_cv_c_bigendian=universal 17700 break 17701 fi 17702 ;; 17703 esac 17704 ac_prev= 17705 elif test "x$ac_word" = "x-arch"; then 17706 ac_prev=arch 17707 fi 17708 done 17709fi 17710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17711 if test $ac_cv_c_bigendian = unknown; then 17712 # See if sys/param.h defines the BYTE_ORDER macro. 17713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17714/* end confdefs.h. */ 17715#include <sys/types.h> 17716 #include <sys/param.h> 17717 17718int 17719main () 17720{ 17721#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 17722 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 17723 && LITTLE_ENDIAN) 17724 bogus endian macros 17725 #endif 17726 17727 ; 17728 return 0; 17729} 17730_ACEOF 17731if ac_fn_c_try_compile "$LINENO"; then : 17732 # It does; now see whether it defined to BIG_ENDIAN or not. 17733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17734/* end confdefs.h. */ 17735#include <sys/types.h> 17736 #include <sys/param.h> 17737 17738int 17739main () 17740{ 17741#if BYTE_ORDER != BIG_ENDIAN 17742 not big endian 17743 #endif 17744 17745 ; 17746 return 0; 17747} 17748_ACEOF 17749if ac_fn_c_try_compile "$LINENO"; then : 17750 ac_cv_c_bigendian=yes 17751else 17752 ac_cv_c_bigendian=no 17753fi 17754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17755fi 17756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17757 fi 17758 if test $ac_cv_c_bigendian = unknown; then 17759 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17761/* end confdefs.h. */ 17762#include <limits.h> 17763 17764int 17765main () 17766{ 17767#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 17768 bogus endian macros 17769 #endif 17770 17771 ; 17772 return 0; 17773} 17774_ACEOF 17775if ac_fn_c_try_compile "$LINENO"; then : 17776 # It does; now see whether it defined to _BIG_ENDIAN or not. 17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17778/* end confdefs.h. */ 17779#include <limits.h> 17780 17781int 17782main () 17783{ 17784#ifndef _BIG_ENDIAN 17785 not big endian 17786 #endif 17787 17788 ; 17789 return 0; 17790} 17791_ACEOF 17792if ac_fn_c_try_compile "$LINENO"; then : 17793 ac_cv_c_bigendian=yes 17794else 17795 ac_cv_c_bigendian=no 17796fi 17797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17798fi 17799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17800 fi 17801 if test $ac_cv_c_bigendian = unknown; then 17802 # Compile a test program. 17803 if test "$cross_compiling" = yes; then : 17804 # Try to guess by grepping values from an object file. 17805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17806/* end confdefs.h. */ 17807short int ascii_mm[] = 17808 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 17809 short int ascii_ii[] = 17810 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 17811 int use_ascii (int i) { 17812 return ascii_mm[i] + ascii_ii[i]; 17813 } 17814 short int ebcdic_ii[] = 17815 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 17816 short int ebcdic_mm[] = 17817 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 17818 int use_ebcdic (int i) { 17819 return ebcdic_mm[i] + ebcdic_ii[i]; 17820 } 17821 extern int foo; 17822 17823int 17824main () 17825{ 17826return use_ascii (foo) == use_ebcdic (foo); 17827 ; 17828 return 0; 17829} 17830_ACEOF 17831if ac_fn_c_try_compile "$LINENO"; then : 17832 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 17833 ac_cv_c_bigendian=yes 17834 fi 17835 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 17836 if test "$ac_cv_c_bigendian" = unknown; then 17837 ac_cv_c_bigendian=no 17838 else 17839 # finding both strings is unlikely to happen, but who knows? 17840 ac_cv_c_bigendian=unknown 17841 fi 17842 fi 17843fi 17844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17845else 17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17847/* end confdefs.h. */ 17848$ac_includes_default 17849int 17850main () 17851{ 17852 17853 /* Are we little or big endian? From Harbison&Steele. */ 17854 union 17855 { 17856 long int l; 17857 char c[sizeof (long int)]; 17858 } u; 17859 u.l = 1; 17860 return u.c[sizeof (long int) - 1] == 1; 17861 17862 ; 17863 return 0; 17864} 17865_ACEOF 17866if ac_fn_c_try_run "$LINENO"; then : 17867 ac_cv_c_bigendian=no 17868else 17869 ac_cv_c_bigendian=yes 17870fi 17871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17872 conftest.$ac_objext conftest.beam conftest.$ac_ext 17873fi 17874 17875 fi 17876fi 17877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 17878$as_echo "$ac_cv_c_bigendian" >&6; } 17879 case $ac_cv_c_bigendian in #( 17880 yes) 17881 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 17882;; #( 17883 no) 17884 ;; #( 17885 universal) 17886 17887$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 17888 17889 ;; #( 17890 *) 17891 as_fn_error $? "unknown endianness 17892 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 17893 esac 17894 17895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 17896$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 17897if ${ac_cv_c_const+:} false; then : 17898 $as_echo_n "(cached) " >&6 17899else 17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17901/* end confdefs.h. */ 17902 17903int 17904main () 17905{ 17906 17907#ifndef __cplusplus 17908 /* Ultrix mips cc rejects this sort of thing. */ 17909 typedef int charset[2]; 17910 const charset cs = { 0, 0 }; 17911 /* SunOS 4.1.1 cc rejects this. */ 17912 char const *const *pcpcc; 17913 char **ppc; 17914 /* NEC SVR4.0.2 mips cc rejects this. */ 17915 struct point {int x, y;}; 17916 static struct point const zero = {0,0}; 17917 /* AIX XL C 1.02.0.0 rejects this. 17918 It does not let you subtract one const X* pointer from another in 17919 an arm of an if-expression whose if-part is not a constant 17920 expression */ 17921 const char *g = "string"; 17922 pcpcc = &g + (g ? g-g : 0); 17923 /* HPUX 7.0 cc rejects these. */ 17924 ++pcpcc; 17925 ppc = (char**) pcpcc; 17926 pcpcc = (char const *const *) ppc; 17927 { /* SCO 3.2v4 cc rejects this sort of thing. */ 17928 char tx; 17929 char *t = &tx; 17930 char const *s = 0 ? (char *) 0 : (char const *) 0; 17931 17932 *t++ = 0; 17933 if (s) return 0; 17934 } 17935 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 17936 int x[] = {25, 17}; 17937 const int *foo = &x[0]; 17938 ++foo; 17939 } 17940 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 17941 typedef const int *iptr; 17942 iptr p = 0; 17943 ++p; 17944 } 17945 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 17946 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 17947 struct s { int j; const int *ap[3]; } bx; 17948 struct s *b = &bx; b->j = 5; 17949 } 17950 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 17951 const int foo = 10; 17952 if (!foo) return 0; 17953 } 17954 return !cs[0] && !zero.x; 17955#endif 17956 17957 ; 17958 return 0; 17959} 17960_ACEOF 17961if ac_fn_c_try_compile "$LINENO"; then : 17962 ac_cv_c_const=yes 17963else 17964 ac_cv_c_const=no 17965fi 17966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17967fi 17968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 17969$as_echo "$ac_cv_c_const" >&6; } 17970if test $ac_cv_c_const = no; then 17971 17972$as_echo "#define const /**/" >>confdefs.h 17973 17974fi 17975 17976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 17977$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 17978if ${ac_cv_type_uid_t+:} false; then : 17979 $as_echo_n "(cached) " >&6 17980else 17981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17982/* end confdefs.h. */ 17983#include <sys/types.h> 17984 17985_ACEOF 17986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17987 $EGREP "uid_t" >/dev/null 2>&1; then : 17988 ac_cv_type_uid_t=yes 17989else 17990 ac_cv_type_uid_t=no 17991fi 17992rm -f conftest* 17993 17994fi 17995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 17996$as_echo "$ac_cv_type_uid_t" >&6; } 17997if test $ac_cv_type_uid_t = no; then 17998 17999$as_echo "#define uid_t int" >>confdefs.h 18000 18001 18002$as_echo "#define gid_t int" >>confdefs.h 18003 18004fi 18005 18006ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18007if test "x$ac_cv_type_size_t" = xyes; then : 18008 18009else 18010 18011cat >>confdefs.h <<_ACEOF 18012#define size_t unsigned int 18013_ACEOF 18014 18015fi 18016 18017 18018# Checks for library functions. 18019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 18020$as_echo_n "checking whether closedir returns void... " >&6; } 18021if ${ac_cv_func_closedir_void+:} false; then : 18022 $as_echo_n "(cached) " >&6 18023else 18024 if test "$cross_compiling" = yes; then : 18025 ac_cv_func_closedir_void=yes 18026else 18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18028/* end confdefs.h. */ 18029$ac_includes_default 18030#include <$ac_header_dirent> 18031#ifndef __cplusplus 18032int closedir (); 18033#endif 18034 18035int 18036main () 18037{ 18038return closedir (opendir (".")) != 0; 18039 ; 18040 return 0; 18041} 18042_ACEOF 18043if ac_fn_c_try_run "$LINENO"; then : 18044 ac_cv_func_closedir_void=no 18045else 18046 ac_cv_func_closedir_void=yes 18047fi 18048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18049 conftest.$ac_objext conftest.beam conftest.$ac_ext 18050fi 18051 18052fi 18053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 18054$as_echo "$ac_cv_func_closedir_void" >&6; } 18055if test $ac_cv_func_closedir_void = yes; then 18056 18057$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 18058 18059fi 18060 18061for ac_func in vprintf 18062do : 18063 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 18064if test "x$ac_cv_func_vprintf" = xyes; then : 18065 cat >>confdefs.h <<_ACEOF 18066#define HAVE_VPRINTF 1 18067_ACEOF 18068 18069ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 18070if test "x$ac_cv_func__doprnt" = xyes; then : 18071 18072$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 18073 18074fi 18075 18076fi 18077done 18078 18079 18080for ac_func in atexit malloc realloc memmove memset mkdir setlocale strcasecmp strchr strstr 18081do : 18082 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18083ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18084if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18085 cat >>confdefs.h <<_ACEOF 18086#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18087_ACEOF 18088 18089fi 18090done 18091 18092 18093# Output. 18094ac_config_files="$ac_config_files Makefile po/Makefile.in" 18095 18096cat >confcache <<\_ACEOF 18097# This file is a shell script that caches the results of configure 18098# tests run on this system so they can be shared between configure 18099# scripts and configure runs, see configure's option --config-cache. 18100# It is not useful on other systems. If it contains results you don't 18101# want to keep, you may remove or edit it. 18102# 18103# config.status only pays attention to the cache file if you give it 18104# the --recheck option to rerun configure. 18105# 18106# `ac_cv_env_foo' variables (set or unset) will be overridden when 18107# loading this file, other *unset* `ac_cv_foo' will be assigned the 18108# following values. 18109 18110_ACEOF 18111 18112# The following way of writing the cache mishandles newlines in values, 18113# but we know of no workaround that is simple, portable, and efficient. 18114# So, we kill variables containing newlines. 18115# Ultrix sh set writes to stderr and can't be redirected directly, 18116# and sets the high bit in the cache file unless we assign to the vars. 18117( 18118 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18119 eval ac_val=\$$ac_var 18120 case $ac_val in #( 18121 *${as_nl}*) 18122 case $ac_var in #( 18123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18124$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18125 esac 18126 case $ac_var in #( 18127 _ | IFS | as_nl) ;; #( 18128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18129 *) { eval $ac_var=; unset $ac_var;} ;; 18130 esac ;; 18131 esac 18132 done 18133 18134 (set) 2>&1 | 18135 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18136 *${as_nl}ac_space=\ *) 18137 # `set' does not quote correctly, so add quotes: double-quote 18138 # substitution turns \\\\ into \\, and sed turns \\ into \. 18139 sed -n \ 18140 "s/'/'\\\\''/g; 18141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18142 ;; #( 18143 *) 18144 # `set' quotes correctly as required by POSIX, so do not add quotes. 18145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18146 ;; 18147 esac | 18148 sort 18149) | 18150 sed ' 18151 /^ac_cv_env_/b end 18152 t clear 18153 :clear 18154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18155 t end 18156 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18157 :end' >>confcache 18158if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18159 if test -w "$cache_file"; then 18160 if test "x$cache_file" != "x/dev/null"; then 18161 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18162$as_echo "$as_me: updating cache $cache_file" >&6;} 18163 if test ! -f "$cache_file" || test -h "$cache_file"; then 18164 cat confcache >"$cache_file" 18165 else 18166 case $cache_file in #( 18167 */* | ?:*) 18168 mv -f confcache "$cache_file"$$ && 18169 mv -f "$cache_file"$$ "$cache_file" ;; #( 18170 *) 18171 mv -f confcache "$cache_file" ;; 18172 esac 18173 fi 18174 fi 18175 else 18176 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18177$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18178 fi 18179fi 18180rm -f confcache 18181 18182test "x$prefix" = xNONE && prefix=$ac_default_prefix 18183# Let make expand exec_prefix. 18184test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18185 18186DEFS=-DHAVE_CONFIG_H 18187 18188ac_libobjs= 18189ac_ltlibobjs= 18190U= 18191for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18192 # 1. Remove the extension, and $U if already installed. 18193 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18194 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18195 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18196 # will be set to the directory where LIBOBJS objects are built. 18197 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18198 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18199done 18200LIBOBJS=$ac_libobjs 18201 18202LTLIBOBJS=$ac_ltlibobjs 18203 18204 18205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18206$as_echo_n "checking that generated files are newer than configure... " >&6; } 18207 if test -n "$am_sleep_pid"; then 18208 # Hide warnings about reused PIDs. 18209 wait $am_sleep_pid 2>/dev/null 18210 fi 18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18212$as_echo "done" >&6; } 18213 if test -n "$EXEEXT"; then 18214 am__EXEEXT_TRUE= 18215 am__EXEEXT_FALSE='#' 18216else 18217 am__EXEEXT_TRUE='#' 18218 am__EXEEXT_FALSE= 18219fi 18220 18221if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18222 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18223Usually this means the macro was only invoked conditionally." "$LINENO" 5 18224fi 18225if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18226 as_fn_error $? "conditional \"AMDEP\" was never defined. 18227Usually this means the macro was only invoked conditionally." "$LINENO" 5 18228fi 18229if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18230 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 18231Usually this means the macro was only invoked conditionally." "$LINENO" 5 18232fi 18233if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18234 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18235Usually this means the macro was only invoked conditionally." "$LINENO" 5 18236fi 18237 18238 18239: "${CONFIG_STATUS=./config.status}" 18240ac_write_fail=0 18241ac_clean_files_save=$ac_clean_files 18242ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18243{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18244$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18245as_write_fail=0 18246cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18247#! $SHELL 18248# Generated by $as_me. 18249# Run this file to recreate the current configuration. 18250# Compiler output produced by configure, useful for debugging 18251# configure, is in config.log if it exists. 18252 18253debug=false 18254ac_cs_recheck=false 18255ac_cs_silent=false 18256 18257SHELL=\${CONFIG_SHELL-$SHELL} 18258export SHELL 18259_ASEOF 18260cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18261## -------------------- ## 18262## M4sh Initialization. ## 18263## -------------------- ## 18264 18265# Be more Bourne compatible 18266DUALCASE=1; export DUALCASE # for MKS sh 18267if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18268 emulate sh 18269 NULLCMD=: 18270 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18271 # is contrary to our usage. Disable this feature. 18272 alias -g '${1+"$@"}'='"$@"' 18273 setopt NO_GLOB_SUBST 18274else 18275 case `(set -o) 2>/dev/null` in #( 18276 *posix*) : 18277 set -o posix ;; #( 18278 *) : 18279 ;; 18280esac 18281fi 18282 18283 18284as_nl=' 18285' 18286export as_nl 18287# Printing a long string crashes Solaris 7 /usr/bin/printf. 18288as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18289as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18290as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18291# Prefer a ksh shell builtin over an external printf program on Solaris, 18292# but without wasting forks for bash or zsh. 18293if test -z "$BASH_VERSION$ZSH_VERSION" \ 18294 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18295 as_echo='print -r --' 18296 as_echo_n='print -rn --' 18297elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18298 as_echo='printf %s\n' 18299 as_echo_n='printf %s' 18300else 18301 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18302 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18303 as_echo_n='/usr/ucb/echo -n' 18304 else 18305 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18306 as_echo_n_body='eval 18307 arg=$1; 18308 case $arg in #( 18309 *"$as_nl"*) 18310 expr "X$arg" : "X\\(.*\\)$as_nl"; 18311 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18312 esac; 18313 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18314 ' 18315 export as_echo_n_body 18316 as_echo_n='sh -c $as_echo_n_body as_echo' 18317 fi 18318 export as_echo_body 18319 as_echo='sh -c $as_echo_body as_echo' 18320fi 18321 18322# The user is always right. 18323if test "${PATH_SEPARATOR+set}" != set; then 18324 PATH_SEPARATOR=: 18325 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18326 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18327 PATH_SEPARATOR=';' 18328 } 18329fi 18330 18331 18332# IFS 18333# We need space, tab and new line, in precisely that order. Quoting is 18334# there to prevent editors from complaining about space-tab. 18335# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18336# splitting by setting IFS to empty value.) 18337IFS=" "" $as_nl" 18338 18339# Find who we are. Look in the path if we contain no directory separator. 18340as_myself= 18341case $0 in #(( 18342 *[\\/]* ) as_myself=$0 ;; 18343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18344for as_dir in $PATH 18345do 18346 IFS=$as_save_IFS 18347 test -z "$as_dir" && as_dir=. 18348 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18349 done 18350IFS=$as_save_IFS 18351 18352 ;; 18353esac 18354# We did not find ourselves, most probably we were run as `sh COMMAND' 18355# in which case we are not to be found in the path. 18356if test "x$as_myself" = x; then 18357 as_myself=$0 18358fi 18359if test ! -f "$as_myself"; then 18360 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18361 exit 1 18362fi 18363 18364# Unset variables that we do not need and which cause bugs (e.g. in 18365# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18366# suppresses any "Segmentation fault" message there. '((' could 18367# trigger a bug in pdksh 5.2.14. 18368for as_var in BASH_ENV ENV MAIL MAILPATH 18369do eval test x\${$as_var+set} = xset \ 18370 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18371done 18372PS1='$ ' 18373PS2='> ' 18374PS4='+ ' 18375 18376# NLS nuisances. 18377LC_ALL=C 18378export LC_ALL 18379LANGUAGE=C 18380export LANGUAGE 18381 18382# CDPATH. 18383(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18384 18385 18386# as_fn_error STATUS ERROR [LINENO LOG_FD] 18387# ---------------------------------------- 18388# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18389# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18390# script with STATUS, using 1 if that was 0. 18391as_fn_error () 18392{ 18393 as_status=$1; test $as_status -eq 0 && as_status=1 18394 if test "$4"; then 18395 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18396 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18397 fi 18398 $as_echo "$as_me: error: $2" >&2 18399 as_fn_exit $as_status 18400} # as_fn_error 18401 18402 18403# as_fn_set_status STATUS 18404# ----------------------- 18405# Set $? to STATUS, without forking. 18406as_fn_set_status () 18407{ 18408 return $1 18409} # as_fn_set_status 18410 18411# as_fn_exit STATUS 18412# ----------------- 18413# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18414as_fn_exit () 18415{ 18416 set +e 18417 as_fn_set_status $1 18418 exit $1 18419} # as_fn_exit 18420 18421# as_fn_unset VAR 18422# --------------- 18423# Portably unset VAR. 18424as_fn_unset () 18425{ 18426 { eval $1=; unset $1;} 18427} 18428as_unset=as_fn_unset 18429# as_fn_append VAR VALUE 18430# ---------------------- 18431# Append the text in VALUE to the end of the definition contained in VAR. Take 18432# advantage of any shell optimizations that allow amortized linear growth over 18433# repeated appends, instead of the typical quadratic growth present in naive 18434# implementations. 18435if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18436 eval 'as_fn_append () 18437 { 18438 eval $1+=\$2 18439 }' 18440else 18441 as_fn_append () 18442 { 18443 eval $1=\$$1\$2 18444 } 18445fi # as_fn_append 18446 18447# as_fn_arith ARG... 18448# ------------------ 18449# Perform arithmetic evaluation on the ARGs, and store the result in the 18450# global $as_val. Take advantage of shells that can avoid forks. The arguments 18451# must be portable across $(()) and expr. 18452if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18453 eval 'as_fn_arith () 18454 { 18455 as_val=$(( $* )) 18456 }' 18457else 18458 as_fn_arith () 18459 { 18460 as_val=`expr "$@" || test $? -eq 1` 18461 } 18462fi # as_fn_arith 18463 18464 18465if expr a : '\(a\)' >/dev/null 2>&1 && 18466 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18467 as_expr=expr 18468else 18469 as_expr=false 18470fi 18471 18472if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18473 as_basename=basename 18474else 18475 as_basename=false 18476fi 18477 18478if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18479 as_dirname=dirname 18480else 18481 as_dirname=false 18482fi 18483 18484as_me=`$as_basename -- "$0" || 18485$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18486 X"$0" : 'X\(//\)$' \| \ 18487 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18488$as_echo X/"$0" | 18489 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18490 s//\1/ 18491 q 18492 } 18493 /^X\/\(\/\/\)$/{ 18494 s//\1/ 18495 q 18496 } 18497 /^X\/\(\/\).*/{ 18498 s//\1/ 18499 q 18500 } 18501 s/.*/./; q'` 18502 18503# Avoid depending upon Character Ranges. 18504as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18505as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18506as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18507as_cr_digits='0123456789' 18508as_cr_alnum=$as_cr_Letters$as_cr_digits 18509 18510ECHO_C= ECHO_N= ECHO_T= 18511case `echo -n x` in #((((( 18512-n*) 18513 case `echo 'xy\c'` in 18514 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18515 xy) ECHO_C='\c';; 18516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18517 ECHO_T=' ';; 18518 esac;; 18519*) 18520 ECHO_N='-n';; 18521esac 18522 18523rm -f conf$$ conf$$.exe conf$$.file 18524if test -d conf$$.dir; then 18525 rm -f conf$$.dir/conf$$.file 18526else 18527 rm -f conf$$.dir 18528 mkdir conf$$.dir 2>/dev/null 18529fi 18530if (echo >conf$$.file) 2>/dev/null; then 18531 if ln -s conf$$.file conf$$ 2>/dev/null; then 18532 as_ln_s='ln -s' 18533 # ... but there are two gotchas: 18534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18536 # In both cases, we have to default to `cp -pR'. 18537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18538 as_ln_s='cp -pR' 18539 elif ln conf$$.file conf$$ 2>/dev/null; then 18540 as_ln_s=ln 18541 else 18542 as_ln_s='cp -pR' 18543 fi 18544else 18545 as_ln_s='cp -pR' 18546fi 18547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18548rmdir conf$$.dir 2>/dev/null 18549 18550 18551# as_fn_mkdir_p 18552# ------------- 18553# Create "$as_dir" as a directory, including parents if necessary. 18554as_fn_mkdir_p () 18555{ 18556 18557 case $as_dir in #( 18558 -*) as_dir=./$as_dir;; 18559 esac 18560 test -d "$as_dir" || eval $as_mkdir_p || { 18561 as_dirs= 18562 while :; do 18563 case $as_dir in #( 18564 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18565 *) as_qdir=$as_dir;; 18566 esac 18567 as_dirs="'$as_qdir' $as_dirs" 18568 as_dir=`$as_dirname -- "$as_dir" || 18569$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18570 X"$as_dir" : 'X\(//\)[^/]' \| \ 18571 X"$as_dir" : 'X\(//\)$' \| \ 18572 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18573$as_echo X"$as_dir" | 18574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18575 s//\1/ 18576 q 18577 } 18578 /^X\(\/\/\)[^/].*/{ 18579 s//\1/ 18580 q 18581 } 18582 /^X\(\/\/\)$/{ 18583 s//\1/ 18584 q 18585 } 18586 /^X\(\/\).*/{ 18587 s//\1/ 18588 q 18589 } 18590 s/.*/./; q'` 18591 test -d "$as_dir" && break 18592 done 18593 test -z "$as_dirs" || eval "mkdir $as_dirs" 18594 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18595 18596 18597} # as_fn_mkdir_p 18598if mkdir -p . 2>/dev/null; then 18599 as_mkdir_p='mkdir -p "$as_dir"' 18600else 18601 test -d ./-p && rmdir ./-p 18602 as_mkdir_p=false 18603fi 18604 18605 18606# as_fn_executable_p FILE 18607# ----------------------- 18608# Test if FILE is an executable regular file. 18609as_fn_executable_p () 18610{ 18611 test -f "$1" && test -x "$1" 18612} # as_fn_executable_p 18613as_test_x='test -x' 18614as_executable_p=as_fn_executable_p 18615 18616# Sed expression to map a string onto a valid CPP name. 18617as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18618 18619# Sed expression to map a string onto a valid variable name. 18620as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18621 18622 18623exec 6>&1 18624## ----------------------------------- ## 18625## Main body of $CONFIG_STATUS script. ## 18626## ----------------------------------- ## 18627_ASEOF 18628test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18629 18630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18631# Save the log message, to keep $0 and so on meaningful, and to 18632# report actual input values of CONFIG_FILES etc. instead of their 18633# values after options handling. 18634ac_log=" 18635This file was extended by pushover $as_me 0.0.5, which was 18636generated by GNU Autoconf 2.69. Invocation command line was 18637 18638 CONFIG_FILES = $CONFIG_FILES 18639 CONFIG_HEADERS = $CONFIG_HEADERS 18640 CONFIG_LINKS = $CONFIG_LINKS 18641 CONFIG_COMMANDS = $CONFIG_COMMANDS 18642 $ $0 $@ 18643 18644on `(hostname || uname -n) 2>/dev/null | sed 1q` 18645" 18646 18647_ACEOF 18648 18649case $ac_config_files in *" 18650"*) set x $ac_config_files; shift; ac_config_files=$*;; 18651esac 18652 18653case $ac_config_headers in *" 18654"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18655esac 18656 18657 18658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18659# Files that config.status was made for. 18660config_files="$ac_config_files" 18661config_headers="$ac_config_headers" 18662config_commands="$ac_config_commands" 18663 18664_ACEOF 18665 18666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18667ac_cs_usage="\ 18668\`$as_me' instantiates files and other configuration actions 18669from templates according to the current configuration. Unless the files 18670and actions are specified as TAGs, all are instantiated by default. 18671 18672Usage: $0 [OPTION]... [TAG]... 18673 18674 -h, --help print this help, then exit 18675 -V, --version print version number and configuration settings, then exit 18676 --config print configuration, then exit 18677 -q, --quiet, --silent 18678 do not print progress messages 18679 -d, --debug don't remove temporary files 18680 --recheck update $as_me by reconfiguring in the same conditions 18681 --file=FILE[:TEMPLATE] 18682 instantiate the configuration file FILE 18683 --header=FILE[:TEMPLATE] 18684 instantiate the configuration header FILE 18685 18686Configuration files: 18687$config_files 18688 18689Configuration headers: 18690$config_headers 18691 18692Configuration commands: 18693$config_commands 18694 18695Report bugs to the package provider." 18696 18697_ACEOF 18698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18699ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18700ac_cs_version="\\ 18701pushover config.status 0.0.5 18702configured by $0, generated by GNU Autoconf 2.69, 18703 with options \\"\$ac_cs_config\\" 18704 18705Copyright (C) 2012 Free Software Foundation, Inc. 18706This config.status script is free software; the Free Software Foundation 18707gives unlimited permission to copy, distribute and modify it." 18708 18709ac_pwd='$ac_pwd' 18710srcdir='$srcdir' 18711INSTALL='$INSTALL' 18712MKDIR_P='$MKDIR_P' 18713AWK='$AWK' 18714test -n "\$AWK" || AWK=awk 18715_ACEOF 18716 18717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18718# The default lists apply if the user does not specify any file. 18719ac_need_defaults=: 18720while test $# != 0 18721do 18722 case $1 in 18723 --*=?*) 18724 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18725 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18726 ac_shift=: 18727 ;; 18728 --*=) 18729 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18730 ac_optarg= 18731 ac_shift=: 18732 ;; 18733 *) 18734 ac_option=$1 18735 ac_optarg=$2 18736 ac_shift=shift 18737 ;; 18738 esac 18739 18740 case $ac_option in 18741 # Handling of the options. 18742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18743 ac_cs_recheck=: ;; 18744 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18745 $as_echo "$ac_cs_version"; exit ;; 18746 --config | --confi | --conf | --con | --co | --c ) 18747 $as_echo "$ac_cs_config"; exit ;; 18748 --debug | --debu | --deb | --de | --d | -d ) 18749 debug=: ;; 18750 --file | --fil | --fi | --f ) 18751 $ac_shift 18752 case $ac_optarg in 18753 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18754 '') as_fn_error $? "missing file argument" ;; 18755 esac 18756 as_fn_append CONFIG_FILES " '$ac_optarg'" 18757 ac_need_defaults=false;; 18758 --header | --heade | --head | --hea ) 18759 $ac_shift 18760 case $ac_optarg in 18761 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18762 esac 18763 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18764 ac_need_defaults=false;; 18765 --he | --h) 18766 # Conflict between --help and --header 18767 as_fn_error $? "ambiguous option: \`$1' 18768Try \`$0 --help' for more information.";; 18769 --help | --hel | -h ) 18770 $as_echo "$ac_cs_usage"; exit ;; 18771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18772 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18773 ac_cs_silent=: ;; 18774 18775 # This is an error. 18776 -*) as_fn_error $? "unrecognized option: \`$1' 18777Try \`$0 --help' for more information." ;; 18778 18779 *) as_fn_append ac_config_targets " $1" 18780 ac_need_defaults=false ;; 18781 18782 esac 18783 shift 18784done 18785 18786ac_configure_extra_args= 18787 18788if $ac_cs_silent; then 18789 exec 6>/dev/null 18790 ac_configure_extra_args="$ac_configure_extra_args --silent" 18791fi 18792 18793_ACEOF 18794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18795if \$ac_cs_recheck; then 18796 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18797 shift 18798 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18799 CONFIG_SHELL='$SHELL' 18800 export CONFIG_SHELL 18801 exec "\$@" 18802fi 18803 18804_ACEOF 18805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18806exec 5>>config.log 18807{ 18808 echo 18809 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18810## Running $as_me. ## 18811_ASBOX 18812 $as_echo "$ac_log" 18813} >&5 18814 18815_ACEOF 18816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18817# 18818# INIT-COMMANDS 18819# 18820AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18821 18822 18823# The HP-UX ksh and POSIX shell print the target directory to stdout 18824# if CDPATH is set. 18825(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18826 18827sed_quote_subst='$sed_quote_subst' 18828double_quote_subst='$double_quote_subst' 18829delay_variable_subst='$delay_variable_subst' 18830macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18831macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18832enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18833enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18834pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18835enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18836SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18837ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18838host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18839host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18840host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18841build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18842build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18843build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18844SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18845Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18846GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18847EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18848FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18849LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18850NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18851LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18852max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18853ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18854exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18855lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18856lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18857lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18858lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18859lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18860reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18861reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18862OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18863deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18864file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18865file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18866want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18867DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18868sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18869AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18870AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18871archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18872STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18873RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18874old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18875old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18876old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18877lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18878CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18879CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18880compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18881GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18882lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18883lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18884lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18885lt_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"`' 18886nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18887lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18888objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18889MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18890lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18891lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18892lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18893lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18894lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18895need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18896MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18897DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18898NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18899LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18900OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18901OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18902libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18903shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18904extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18905archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18906enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18907export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18908whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18909compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18910old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18911old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18912archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18913archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18914module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18915module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18916with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18917allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18918no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18919hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18920hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 18921hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18922hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18923hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18924hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18925hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18926hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18927inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18928link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18929always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18930export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18931exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18932include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18933prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18934postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18935file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18936variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18937need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18938need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18939version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18940runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18941shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18942shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18943libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18944library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18945soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18946install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18947postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18948postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18949finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18950finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18951hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18952sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18953sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18954hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18955enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18956enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18957enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18958old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18959striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18960compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18961predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18962postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18963predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18964postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18965compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18966LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18967reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18968reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18969old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18970compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18971GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18972lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18973lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18974lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18975lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18976lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18977archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18978enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18979export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18980whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18981compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18982old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18983old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18984archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18985archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18986module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18987module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18988with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18989allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18990no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18991hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18992hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 18993hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18994hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18995hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18996hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18997hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18998hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18999inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19000link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19001always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19002export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19003exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19004include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19005prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19006postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19007file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19008hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19009compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19010predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19011postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19012predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 19013postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 19014compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 19015 19016LTCC='$LTCC' 19017LTCFLAGS='$LTCFLAGS' 19018compiler='$compiler_DEFAULT' 19019 19020# A function that is used when there is no print builtin or printf. 19021func_fallback_echo () 19022{ 19023 eval 'cat <<_LTECHO_EOF 19024\$1 19025_LTECHO_EOF' 19026} 19027 19028# Quote evaled strings. 19029for var in SHELL \ 19030ECHO \ 19031SED \ 19032GREP \ 19033EGREP \ 19034FGREP \ 19035LD \ 19036NM \ 19037LN_S \ 19038lt_SP2NL \ 19039lt_NL2SP \ 19040reload_flag \ 19041OBJDUMP \ 19042deplibs_check_method \ 19043file_magic_cmd \ 19044file_magic_glob \ 19045want_nocaseglob \ 19046DLLTOOL \ 19047sharedlib_from_linklib_cmd \ 19048AR \ 19049AR_FLAGS \ 19050archiver_list_spec \ 19051STRIP \ 19052RANLIB \ 19053CC \ 19054CFLAGS \ 19055compiler \ 19056lt_cv_sys_global_symbol_pipe \ 19057lt_cv_sys_global_symbol_to_cdecl \ 19058lt_cv_sys_global_symbol_to_c_name_address \ 19059lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19060nm_file_list_spec \ 19061lt_prog_compiler_no_builtin_flag \ 19062lt_prog_compiler_pic \ 19063lt_prog_compiler_wl \ 19064lt_prog_compiler_static \ 19065lt_cv_prog_compiler_c_o \ 19066need_locks \ 19067MANIFEST_TOOL \ 19068DSYMUTIL \ 19069NMEDIT \ 19070LIPO \ 19071OTOOL \ 19072OTOOL64 \ 19073shrext_cmds \ 19074export_dynamic_flag_spec \ 19075whole_archive_flag_spec \ 19076compiler_needs_object \ 19077with_gnu_ld \ 19078allow_undefined_flag \ 19079no_undefined_flag \ 19080hardcode_libdir_flag_spec \ 19081hardcode_libdir_flag_spec_ld \ 19082hardcode_libdir_separator \ 19083exclude_expsyms \ 19084include_expsyms \ 19085file_list_spec \ 19086variables_saved_for_relink \ 19087libname_spec \ 19088library_names_spec \ 19089soname_spec \ 19090install_override_mode \ 19091finish_eval \ 19092old_striplib \ 19093striplib \ 19094compiler_lib_search_dirs \ 19095predep_objects \ 19096postdep_objects \ 19097predeps \ 19098postdeps \ 19099compiler_lib_search_path \ 19100LD_CXX \ 19101reload_flag_CXX \ 19102compiler_CXX \ 19103lt_prog_compiler_no_builtin_flag_CXX \ 19104lt_prog_compiler_pic_CXX \ 19105lt_prog_compiler_wl_CXX \ 19106lt_prog_compiler_static_CXX \ 19107lt_cv_prog_compiler_c_o_CXX \ 19108export_dynamic_flag_spec_CXX \ 19109whole_archive_flag_spec_CXX \ 19110compiler_needs_object_CXX \ 19111with_gnu_ld_CXX \ 19112allow_undefined_flag_CXX \ 19113no_undefined_flag_CXX \ 19114hardcode_libdir_flag_spec_CXX \ 19115hardcode_libdir_flag_spec_ld_CXX \ 19116hardcode_libdir_separator_CXX \ 19117exclude_expsyms_CXX \ 19118include_expsyms_CXX \ 19119file_list_spec_CXX \ 19120compiler_lib_search_dirs_CXX \ 19121predep_objects_CXX \ 19122postdep_objects_CXX \ 19123predeps_CXX \ 19124postdeps_CXX \ 19125compiler_lib_search_path_CXX; do 19126 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19127 *[\\\\\\\`\\"\\\$]*) 19128 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19129 ;; 19130 *) 19131 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19132 ;; 19133 esac 19134done 19135 19136# Double-quote double-evaled strings. 19137for var in reload_cmds \ 19138old_postinstall_cmds \ 19139old_postuninstall_cmds \ 19140old_archive_cmds \ 19141extract_expsyms_cmds \ 19142old_archive_from_new_cmds \ 19143old_archive_from_expsyms_cmds \ 19144archive_cmds \ 19145archive_expsym_cmds \ 19146module_cmds \ 19147module_expsym_cmds \ 19148export_symbols_cmds \ 19149prelink_cmds \ 19150postlink_cmds \ 19151postinstall_cmds \ 19152postuninstall_cmds \ 19153finish_cmds \ 19154sys_lib_search_path_spec \ 19155sys_lib_dlsearch_path_spec \ 19156reload_cmds_CXX \ 19157old_archive_cmds_CXX \ 19158old_archive_from_new_cmds_CXX \ 19159old_archive_from_expsyms_cmds_CXX \ 19160archive_cmds_CXX \ 19161archive_expsym_cmds_CXX \ 19162module_cmds_CXX \ 19163module_expsym_cmds_CXX \ 19164export_symbols_cmds_CXX \ 19165prelink_cmds_CXX \ 19166postlink_cmds_CXX; do 19167 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19168 *[\\\\\\\`\\"\\\$]*) 19169 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19170 ;; 19171 *) 19172 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19173 ;; 19174 esac 19175done 19176 19177ac_aux_dir='$ac_aux_dir' 19178xsi_shell='$xsi_shell' 19179lt_shell_append='$lt_shell_append' 19180 19181# See if we are running on zsh, and set the options which allow our 19182# commands through without removal of \ escapes INIT. 19183if test -n "\${ZSH_VERSION+set}" ; then 19184 setopt NO_GLOB_SUBST 19185fi 19186 19187 19188 PACKAGE='$PACKAGE' 19189 VERSION='$VERSION' 19190 TIMESTAMP='$TIMESTAMP' 19191 RM='$RM' 19192 ofile='$ofile' 19193 19194 19195 19196 19197 19198# Capture the value of obsolete ALL_LINGUAS because we need it to compute 19199 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 19200 # from automake < 1.5. 19201 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 19202 # Capture the value of LINGUAS because we need it to compute CATALOGS. 19203 LINGUAS="${LINGUAS-%UNSET%}" 19204 19205 19206_ACEOF 19207 19208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19209 19210# Handling of arguments. 19211for ac_config_target in $ac_config_targets 19212do 19213 case $ac_config_target in 19214 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19215 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19216 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19217 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 19218 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19219 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 19220 19221 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19222 esac 19223done 19224 19225 19226# If the user did not use the arguments to specify the items to instantiate, 19227# then the envvar interface is used. Set only those that are not. 19228# We use the long form for the default assignment because of an extremely 19229# bizarre bug on SunOS 4.1.3. 19230if $ac_need_defaults; then 19231 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19232 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19233 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19234fi 19235 19236# Have a temporary directory for convenience. Make it in the build tree 19237# simply because there is no reason against having it here, and in addition, 19238# creating and moving files from /tmp can sometimes cause problems. 19239# Hook for its removal unless debugging. 19240# Note that there is a small window in which the directory will not be cleaned: 19241# after its creation but before its name has been assigned to `$tmp'. 19242$debug || 19243{ 19244 tmp= ac_tmp= 19245 trap 'exit_status=$? 19246 : "${ac_tmp:=$tmp}" 19247 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19248' 0 19249 trap 'as_fn_exit 1' 1 2 13 15 19250} 19251# Create a (secure) tmp directory for tmp files. 19252 19253{ 19254 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19255 test -d "$tmp" 19256} || 19257{ 19258 tmp=./conf$$-$RANDOM 19259 (umask 077 && mkdir "$tmp") 19260} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19261ac_tmp=$tmp 19262 19263# Set up the scripts for CONFIG_FILES section. 19264# No need to generate them if there are no CONFIG_FILES. 19265# This happens for instance with `./config.status config.h'. 19266if test -n "$CONFIG_FILES"; then 19267 19268 19269ac_cr=`echo X | tr X '\015'` 19270# On cygwin, bash can eat \r inside `` if the user requested igncr. 19271# But we know of no other shell where ac_cr would be empty at this 19272# point, so we can use a bashism as a fallback. 19273if test "x$ac_cr" = x; then 19274 eval ac_cr=\$\'\\r\' 19275fi 19276ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19277if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19278 ac_cs_awk_cr='\\r' 19279else 19280 ac_cs_awk_cr=$ac_cr 19281fi 19282 19283echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19284_ACEOF 19285 19286 19287{ 19288 echo "cat >conf$$subs.awk <<_ACEOF" && 19289 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19290 echo "_ACEOF" 19291} >conf$$subs.sh || 19292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19293ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19294ac_delim='%!_!# ' 19295for ac_last_try in false false false false false :; do 19296 . ./conf$$subs.sh || 19297 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19298 19299 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19300 if test $ac_delim_n = $ac_delim_num; then 19301 break 19302 elif $ac_last_try; then 19303 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19304 else 19305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19306 fi 19307done 19308rm -f conf$$subs.sh 19309 19310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19311cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19312_ACEOF 19313sed -n ' 19314h 19315s/^/S["/; s/!.*/"]=/ 19316p 19317g 19318s/^[^!]*!// 19319:repl 19320t repl 19321s/'"$ac_delim"'$// 19322t delim 19323:nl 19324h 19325s/\(.\{148\}\)..*/\1/ 19326t more1 19327s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19328p 19329n 19330b repl 19331:more1 19332s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19333p 19334g 19335s/.\{148\}// 19336t nl 19337:delim 19338h 19339s/\(.\{148\}\)..*/\1/ 19340t more2 19341s/["\\]/\\&/g; s/^/"/; s/$/"/ 19342p 19343b 19344:more2 19345s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19346p 19347g 19348s/.\{148\}// 19349t delim 19350' <conf$$subs.awk | sed ' 19351/^[^""]/{ 19352 N 19353 s/\n// 19354} 19355' >>$CONFIG_STATUS || ac_write_fail=1 19356rm -f conf$$subs.awk 19357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19358_ACAWK 19359cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19360 for (key in S) S_is_set[key] = 1 19361 FS = "" 19362 19363} 19364{ 19365 line = $ 0 19366 nfields = split(line, field, "@") 19367 substed = 0 19368 len = length(field[1]) 19369 for (i = 2; i < nfields; i++) { 19370 key = field[i] 19371 keylen = length(key) 19372 if (S_is_set[key]) { 19373 value = S[key] 19374 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19375 len += length(value) + length(field[++i]) 19376 substed = 1 19377 } else 19378 len += 1 + keylen 19379 } 19380 19381 print line 19382} 19383 19384_ACAWK 19385_ACEOF 19386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19387if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19388 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19389else 19390 cat 19391fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19392 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19393_ACEOF 19394 19395# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19396# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19397# trailing colons and then remove the whole line if VPATH becomes empty 19398# (actually we leave an empty line to preserve line numbers). 19399if test "x$srcdir" = x.; then 19400 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19401h 19402s/// 19403s/^/:/ 19404s/[ ]*$/:/ 19405s/:\$(srcdir):/:/g 19406s/:\${srcdir}:/:/g 19407s/:@srcdir@:/:/g 19408s/^:*// 19409s/:*$// 19410x 19411s/\(=[ ]*\).*/\1/ 19412G 19413s/\n// 19414s/^[^=]*=[ ]*$// 19415}' 19416fi 19417 19418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19419fi # test -n "$CONFIG_FILES" 19420 19421# Set up the scripts for CONFIG_HEADERS section. 19422# No need to generate them if there are no CONFIG_HEADERS. 19423# This happens for instance with `./config.status Makefile'. 19424if test -n "$CONFIG_HEADERS"; then 19425cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19426BEGIN { 19427_ACEOF 19428 19429# Transform confdefs.h into an awk script `defines.awk', embedded as 19430# here-document in config.status, that substitutes the proper values into 19431# config.h.in to produce config.h. 19432 19433# Create a delimiter string that does not exist in confdefs.h, to ease 19434# handling of long lines. 19435ac_delim='%!_!# ' 19436for ac_last_try in false false :; do 19437 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19438 if test -z "$ac_tt"; then 19439 break 19440 elif $ac_last_try; then 19441 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19442 else 19443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19444 fi 19445done 19446 19447# For the awk script, D is an array of macro values keyed by name, 19448# likewise P contains macro parameters if any. Preserve backslash 19449# newline sequences. 19450 19451ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19452sed -n ' 19453s/.\{148\}/&'"$ac_delim"'/g 19454t rset 19455:rset 19456s/^[ ]*#[ ]*define[ ][ ]*/ / 19457t def 19458d 19459:def 19460s/\\$// 19461t bsnl 19462s/["\\]/\\&/g 19463s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19464D["\1"]=" \3"/p 19465s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19466d 19467:bsnl 19468s/["\\]/\\&/g 19469s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19470D["\1"]=" \3\\\\\\n"\\/p 19471t cont 19472s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19473t cont 19474d 19475:cont 19476n 19477s/.\{148\}/&'"$ac_delim"'/g 19478t clear 19479:clear 19480s/\\$// 19481t bsnlc 19482s/["\\]/\\&/g; s/^/"/; s/$/"/p 19483d 19484:bsnlc 19485s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19486b cont 19487' <confdefs.h | sed ' 19488s/'"$ac_delim"'/"\\\ 19489"/g' >>$CONFIG_STATUS || ac_write_fail=1 19490 19491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19492 for (key in D) D_is_set[key] = 1 19493 FS = "" 19494} 19495/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19496 line = \$ 0 19497 split(line, arg, " ") 19498 if (arg[1] == "#") { 19499 defundef = arg[2] 19500 mac1 = arg[3] 19501 } else { 19502 defundef = substr(arg[1], 2) 19503 mac1 = arg[2] 19504 } 19505 split(mac1, mac2, "(") #) 19506 macro = mac2[1] 19507 prefix = substr(line, 1, index(line, defundef) - 1) 19508 if (D_is_set[macro]) { 19509 # Preserve the white space surrounding the "#". 19510 print prefix "define", macro P[macro] D[macro] 19511 next 19512 } else { 19513 # Replace #undef with comments. This is necessary, for example, 19514 # in the case of _POSIX_SOURCE, which is predefined and required 19515 # on some systems where configure will not decide to define it. 19516 if (defundef == "undef") { 19517 print "/*", prefix defundef, macro, "*/" 19518 next 19519 } 19520 } 19521} 19522{ print } 19523_ACAWK 19524_ACEOF 19525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19526 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19527fi # test -n "$CONFIG_HEADERS" 19528 19529 19530eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19531shift 19532for ac_tag 19533do 19534 case $ac_tag in 19535 :[FHLC]) ac_mode=$ac_tag; continue;; 19536 esac 19537 case $ac_mode$ac_tag in 19538 :[FHL]*:*);; 19539 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19540 :[FH]-) ac_tag=-:-;; 19541 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19542 esac 19543 ac_save_IFS=$IFS 19544 IFS=: 19545 set x $ac_tag 19546 IFS=$ac_save_IFS 19547 shift 19548 ac_file=$1 19549 shift 19550 19551 case $ac_mode in 19552 :L) ac_source=$1;; 19553 :[FH]) 19554 ac_file_inputs= 19555 for ac_f 19556 do 19557 case $ac_f in 19558 -) ac_f="$ac_tmp/stdin";; 19559 *) # Look for the file first in the build tree, then in the source tree 19560 # (if the path is not absolute). The absolute path cannot be DOS-style, 19561 # because $ac_f cannot contain `:'. 19562 test -f "$ac_f" || 19563 case $ac_f in 19564 [\\/$]*) false;; 19565 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19566 esac || 19567 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19568 esac 19569 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19570 as_fn_append ac_file_inputs " '$ac_f'" 19571 done 19572 19573 # Let's still pretend it is `configure' which instantiates (i.e., don't 19574 # use $as_me), people would be surprised to read: 19575 # /* config.h. Generated by config.status. */ 19576 configure_input='Generated from '` 19577 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19578 `' by configure.' 19579 if test x"$ac_file" != x-; then 19580 configure_input="$ac_file. $configure_input" 19581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19582$as_echo "$as_me: creating $ac_file" >&6;} 19583 fi 19584 # Neutralize special characters interpreted by sed in replacement strings. 19585 case $configure_input in #( 19586 *\&* | *\|* | *\\* ) 19587 ac_sed_conf_input=`$as_echo "$configure_input" | 19588 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19589 *) ac_sed_conf_input=$configure_input;; 19590 esac 19591 19592 case $ac_tag in 19593 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19595 esac 19596 ;; 19597 esac 19598 19599 ac_dir=`$as_dirname -- "$ac_file" || 19600$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19601 X"$ac_file" : 'X\(//\)[^/]' \| \ 19602 X"$ac_file" : 'X\(//\)$' \| \ 19603 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19604$as_echo X"$ac_file" | 19605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19606 s//\1/ 19607 q 19608 } 19609 /^X\(\/\/\)[^/].*/{ 19610 s//\1/ 19611 q 19612 } 19613 /^X\(\/\/\)$/{ 19614 s//\1/ 19615 q 19616 } 19617 /^X\(\/\).*/{ 19618 s//\1/ 19619 q 19620 } 19621 s/.*/./; q'` 19622 as_dir="$ac_dir"; as_fn_mkdir_p 19623 ac_builddir=. 19624 19625case "$ac_dir" in 19626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19627*) 19628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19629 # A ".." for each directory in $ac_dir_suffix. 19630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19631 case $ac_top_builddir_sub in 19632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19634 esac ;; 19635esac 19636ac_abs_top_builddir=$ac_pwd 19637ac_abs_builddir=$ac_pwd$ac_dir_suffix 19638# for backward compatibility: 19639ac_top_builddir=$ac_top_build_prefix 19640 19641case $srcdir in 19642 .) # We are building in place. 19643 ac_srcdir=. 19644 ac_top_srcdir=$ac_top_builddir_sub 19645 ac_abs_top_srcdir=$ac_pwd ;; 19646 [\\/]* | ?:[\\/]* ) # Absolute name. 19647 ac_srcdir=$srcdir$ac_dir_suffix; 19648 ac_top_srcdir=$srcdir 19649 ac_abs_top_srcdir=$srcdir ;; 19650 *) # Relative name. 19651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19652 ac_top_srcdir=$ac_top_build_prefix$srcdir 19653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19654esac 19655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19656 19657 19658 case $ac_mode in 19659 :F) 19660 # 19661 # CONFIG_FILE 19662 # 19663 19664 case $INSTALL in 19665 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19666 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19667 esac 19668 ac_MKDIR_P=$MKDIR_P 19669 case $MKDIR_P in 19670 [\\/$]* | ?:[\\/]* ) ;; 19671 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19672 esac 19673_ACEOF 19674 19675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19676# If the template does not know about datarootdir, expand it. 19677# FIXME: This hack should be removed a few years after 2.60. 19678ac_datarootdir_hack=; ac_datarootdir_seen= 19679ac_sed_dataroot=' 19680/datarootdir/ { 19681 p 19682 q 19683} 19684/@datadir@/p 19685/@docdir@/p 19686/@infodir@/p 19687/@localedir@/p 19688/@mandir@/p' 19689case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19690*datarootdir*) ac_datarootdir_seen=yes;; 19691*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19693$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19694_ACEOF 19695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19696 ac_datarootdir_hack=' 19697 s&@datadir@&$datadir&g 19698 s&@docdir@&$docdir&g 19699 s&@infodir@&$infodir&g 19700 s&@localedir@&$localedir&g 19701 s&@mandir@&$mandir&g 19702 s&\\\${datarootdir}&$datarootdir&g' ;; 19703esac 19704_ACEOF 19705 19706# Neutralize VPATH when `$srcdir' = `.'. 19707# Shell code in configure.ac might set extrasub. 19708# FIXME: do we really want to maintain this feature? 19709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19710ac_sed_extra="$ac_vpsub 19711$extrasub 19712_ACEOF 19713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19714:t 19715/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19716s|@configure_input@|$ac_sed_conf_input|;t t 19717s&@top_builddir@&$ac_top_builddir_sub&;t t 19718s&@top_build_prefix@&$ac_top_build_prefix&;t t 19719s&@srcdir@&$ac_srcdir&;t t 19720s&@abs_srcdir@&$ac_abs_srcdir&;t t 19721s&@top_srcdir@&$ac_top_srcdir&;t t 19722s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19723s&@builddir@&$ac_builddir&;t t 19724s&@abs_builddir@&$ac_abs_builddir&;t t 19725s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19726s&@INSTALL@&$ac_INSTALL&;t t 19727s&@MKDIR_P@&$ac_MKDIR_P&;t t 19728$ac_datarootdir_hack 19729" 19730eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19731 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19732 19733test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19734 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19735 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19736 "$ac_tmp/out"`; test -z "$ac_out"; } && 19737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19738which seems to be undefined. Please make sure it is defined" >&5 19739$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19740which seems to be undefined. Please make sure it is defined" >&2;} 19741 19742 rm -f "$ac_tmp/stdin" 19743 case $ac_file in 19744 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19745 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19746 esac \ 19747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19748 ;; 19749 :H) 19750 # 19751 # CONFIG_HEADER 19752 # 19753 if test x"$ac_file" != x-; then 19754 { 19755 $as_echo "/* $configure_input */" \ 19756 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19757 } >"$ac_tmp/config.h" \ 19758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19759 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19760 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19761$as_echo "$as_me: $ac_file is unchanged" >&6;} 19762 else 19763 rm -f "$ac_file" 19764 mv "$ac_tmp/config.h" "$ac_file" \ 19765 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19766 fi 19767 else 19768 $as_echo "/* $configure_input */" \ 19769 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19770 || as_fn_error $? "could not create -" "$LINENO" 5 19771 fi 19772# Compute "$ac_file"'s index in $config_headers. 19773_am_arg="$ac_file" 19774_am_stamp_count=1 19775for _am_header in $config_headers :; do 19776 case $_am_header in 19777 $_am_arg | $_am_arg:* ) 19778 break ;; 19779 * ) 19780 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19781 esac 19782done 19783echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19784$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19785 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19786 X"$_am_arg" : 'X\(//\)$' \| \ 19787 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19788$as_echo X"$_am_arg" | 19789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19790 s//\1/ 19791 q 19792 } 19793 /^X\(\/\/\)[^/].*/{ 19794 s//\1/ 19795 q 19796 } 19797 /^X\(\/\/\)$/{ 19798 s//\1/ 19799 q 19800 } 19801 /^X\(\/\).*/{ 19802 s//\1/ 19803 q 19804 } 19805 s/.*/./; q'`/stamp-h$_am_stamp_count 19806 ;; 19807 19808 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19809$as_echo "$as_me: executing $ac_file commands" >&6;} 19810 ;; 19811 esac 19812 19813 19814 case $ac_file$ac_mode in 19815 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19816 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19817 # are listed without --file. Let's play safe and only enable the eval 19818 # if we detect the quoting. 19819 case $CONFIG_FILES in 19820 *\'*) eval set x "$CONFIG_FILES" ;; 19821 *) set x $CONFIG_FILES ;; 19822 esac 19823 shift 19824 for mf 19825 do 19826 # Strip MF so we end up with the name of the file. 19827 mf=`echo "$mf" | sed -e 's/:.*$//'` 19828 # Check whether this is an Automake generated Makefile or not. 19829 # We used to match only the files named 'Makefile.in', but 19830 # some people rename them; so instead we look at the file content. 19831 # Grep'ing the first line is not enough: some people post-process 19832 # each Makefile.in and add a new line on top of each file to say so. 19833 # Grep'ing the whole file is not good either: AIX grep has a line 19834 # limit of 2048, but all sed's we know have understand at least 4000. 19835 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19836 dirpart=`$as_dirname -- "$mf" || 19837$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19838 X"$mf" : 'X\(//\)[^/]' \| \ 19839 X"$mf" : 'X\(//\)$' \| \ 19840 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19841$as_echo X"$mf" | 19842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19843 s//\1/ 19844 q 19845 } 19846 /^X\(\/\/\)[^/].*/{ 19847 s//\1/ 19848 q 19849 } 19850 /^X\(\/\/\)$/{ 19851 s//\1/ 19852 q 19853 } 19854 /^X\(\/\).*/{ 19855 s//\1/ 19856 q 19857 } 19858 s/.*/./; q'` 19859 else 19860 continue 19861 fi 19862 # Extract the definition of DEPDIR, am__include, and am__quote 19863 # from the Makefile without running 'make'. 19864 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19865 test -z "$DEPDIR" && continue 19866 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19867 test -z "am__include" && continue 19868 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19869 # Find all dependency output files, they are included files with 19870 # $(DEPDIR) in their names. We invoke sed twice because it is the 19871 # simplest approach to changing $(DEPDIR) to its actual value in the 19872 # expansion. 19873 for file in `sed -n " 19874 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19875 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19876 # Make sure the directory exists. 19877 test -f "$dirpart/$file" && continue 19878 fdir=`$as_dirname -- "$file" || 19879$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19880 X"$file" : 'X\(//\)[^/]' \| \ 19881 X"$file" : 'X\(//\)$' \| \ 19882 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19883$as_echo X"$file" | 19884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19885 s//\1/ 19886 q 19887 } 19888 /^X\(\/\/\)[^/].*/{ 19889 s//\1/ 19890 q 19891 } 19892 /^X\(\/\/\)$/{ 19893 s//\1/ 19894 q 19895 } 19896 /^X\(\/\).*/{ 19897 s//\1/ 19898 q 19899 } 19900 s/.*/./; q'` 19901 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19902 # echo "creating $dirpart/$file" 19903 echo '# dummy' > "$dirpart/$file" 19904 done 19905 done 19906} 19907 ;; 19908 "libtool":C) 19909 19910 # See if we are running on zsh, and set the options which allow our 19911 # commands through without removal of \ escapes. 19912 if test -n "${ZSH_VERSION+set}" ; then 19913 setopt NO_GLOB_SUBST 19914 fi 19915 19916 cfgfile="${ofile}T" 19917 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19918 $RM "$cfgfile" 19919 19920 cat <<_LT_EOF >> "$cfgfile" 19921#! $SHELL 19922 19923# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19924# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19925# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19926# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19927# 19928# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19929# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 19930# Inc. 19931# Written by Gordon Matzigkeit, 1996 19932# 19933# This file is part of GNU Libtool. 19934# 19935# GNU Libtool is free software; you can redistribute it and/or 19936# modify it under the terms of the GNU General Public License as 19937# published by the Free Software Foundation; either version 2 of 19938# the License, or (at your option) any later version. 19939# 19940# As a special exception to the GNU General Public License, 19941# if you distribute this file as part of a program or library that 19942# is built using GNU Libtool, you may include this file under the 19943# same distribution terms that you use for the rest of that program. 19944# 19945# GNU Libtool is distributed in the hope that it will be useful, 19946# but WITHOUT ANY WARRANTY; without even the implied warranty of 19947# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19948# GNU General Public License for more details. 19949# 19950# You should have received a copy of the GNU General Public License 19951# along with GNU Libtool; see the file COPYING. If not, a copy 19952# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19953# obtained by writing to the Free Software Foundation, Inc., 19954# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19955 19956 19957# The names of the tagged configurations supported by this script. 19958available_tags="CXX " 19959 19960# ### BEGIN LIBTOOL CONFIG 19961 19962# Which release of libtool.m4 was used? 19963macro_version=$macro_version 19964macro_revision=$macro_revision 19965 19966# Whether or not to build shared libraries. 19967build_libtool_libs=$enable_shared 19968 19969# Whether or not to build static libraries. 19970build_old_libs=$enable_static 19971 19972# What type of objects to build. 19973pic_mode=$pic_mode 19974 19975# Whether or not to optimize for fast installation. 19976fast_install=$enable_fast_install 19977 19978# Shell to use when invoking shell scripts. 19979SHELL=$lt_SHELL 19980 19981# An echo program that protects backslashes. 19982ECHO=$lt_ECHO 19983 19984# The host system. 19985host_alias=$host_alias 19986host=$host 19987host_os=$host_os 19988 19989# The build system. 19990build_alias=$build_alias 19991build=$build 19992build_os=$build_os 19993 19994# A sed program that does not truncate output. 19995SED=$lt_SED 19996 19997# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19998Xsed="\$SED -e 1s/^X//" 19999 20000# A grep program that handles long lines. 20001GREP=$lt_GREP 20002 20003# An ERE matcher. 20004EGREP=$lt_EGREP 20005 20006# A literal string matcher. 20007FGREP=$lt_FGREP 20008 20009# A BSD- or MS-compatible name lister. 20010NM=$lt_NM 20011 20012# Whether we need soft or hard links. 20013LN_S=$lt_LN_S 20014 20015# What is the maximum length of a command? 20016max_cmd_len=$max_cmd_len 20017 20018# Object file suffix (normally "o"). 20019objext=$ac_objext 20020 20021# Executable file suffix (normally ""). 20022exeext=$exeext 20023 20024# whether the shell understands "unset". 20025lt_unset=$lt_unset 20026 20027# turn spaces into newlines. 20028SP2NL=$lt_lt_SP2NL 20029 20030# turn newlines into spaces. 20031NL2SP=$lt_lt_NL2SP 20032 20033# convert \$build file names to \$host format. 20034to_host_file_cmd=$lt_cv_to_host_file_cmd 20035 20036# convert \$build files to toolchain format. 20037to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20038 20039# An object symbol dumper. 20040OBJDUMP=$lt_OBJDUMP 20041 20042# Method to check whether dependent libraries are shared objects. 20043deplibs_check_method=$lt_deplibs_check_method 20044 20045# Command to use when deplibs_check_method = "file_magic". 20046file_magic_cmd=$lt_file_magic_cmd 20047 20048# How to find potential files when deplibs_check_method = "file_magic". 20049file_magic_glob=$lt_file_magic_glob 20050 20051# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20052want_nocaseglob=$lt_want_nocaseglob 20053 20054# DLL creation program. 20055DLLTOOL=$lt_DLLTOOL 20056 20057# Command to associate shared and link libraries. 20058sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20059 20060# The archiver. 20061AR=$lt_AR 20062 20063# Flags to create an archive. 20064AR_FLAGS=$lt_AR_FLAGS 20065 20066# How to feed a file listing to the archiver. 20067archiver_list_spec=$lt_archiver_list_spec 20068 20069# A symbol stripping program. 20070STRIP=$lt_STRIP 20071 20072# Commands used to install an old-style archive. 20073RANLIB=$lt_RANLIB 20074old_postinstall_cmds=$lt_old_postinstall_cmds 20075old_postuninstall_cmds=$lt_old_postuninstall_cmds 20076 20077# Whether to use a lock for old archive extraction. 20078lock_old_archive_extraction=$lock_old_archive_extraction 20079 20080# A C compiler. 20081LTCC=$lt_CC 20082 20083# LTCC compiler flags. 20084LTCFLAGS=$lt_CFLAGS 20085 20086# Take the output of nm and produce a listing of raw symbols and C names. 20087global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20088 20089# Transform the output of nm in a proper C declaration. 20090global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20091 20092# Transform the output of nm in a C name address pair. 20093global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20094 20095# Transform the output of nm in a C name address pair when lib prefix is needed. 20096global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20097 20098# Specify filename containing input files for \$NM. 20099nm_file_list_spec=$lt_nm_file_list_spec 20100 20101# The root where to search for dependent libraries,and in which our libraries should be installed. 20102lt_sysroot=$lt_sysroot 20103 20104# The name of the directory that contains temporary libtool files. 20105objdir=$objdir 20106 20107# Used to examine libraries when file_magic_cmd begins with "file". 20108MAGIC_CMD=$MAGIC_CMD 20109 20110# Must we lock files when doing compilation? 20111need_locks=$lt_need_locks 20112 20113# Manifest tool. 20114MANIFEST_TOOL=$lt_MANIFEST_TOOL 20115 20116# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20117DSYMUTIL=$lt_DSYMUTIL 20118 20119# Tool to change global to local symbols on Mac OS X. 20120NMEDIT=$lt_NMEDIT 20121 20122# Tool to manipulate fat objects and archives on Mac OS X. 20123LIPO=$lt_LIPO 20124 20125# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20126OTOOL=$lt_OTOOL 20127 20128# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20129OTOOL64=$lt_OTOOL64 20130 20131# Old archive suffix (normally "a"). 20132libext=$libext 20133 20134# Shared library suffix (normally ".so"). 20135shrext_cmds=$lt_shrext_cmds 20136 20137# The commands to extract the exported symbol list from a shared archive. 20138extract_expsyms_cmds=$lt_extract_expsyms_cmds 20139 20140# Variables whose values should be saved in libtool wrapper scripts and 20141# restored at link time. 20142variables_saved_for_relink=$lt_variables_saved_for_relink 20143 20144# Do we need the "lib" prefix for modules? 20145need_lib_prefix=$need_lib_prefix 20146 20147# Do we need a version for libraries? 20148need_version=$need_version 20149 20150# Library versioning type. 20151version_type=$version_type 20152 20153# Shared library runtime path variable. 20154runpath_var=$runpath_var 20155 20156# Shared library path variable. 20157shlibpath_var=$shlibpath_var 20158 20159# Is shlibpath searched before the hard-coded library search path? 20160shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20161 20162# Format of library name prefix. 20163libname_spec=$lt_libname_spec 20164 20165# List of archive names. First name is the real one, the rest are links. 20166# The last name is the one that the linker finds with -lNAME 20167library_names_spec=$lt_library_names_spec 20168 20169# The coded name of the library, if different from the real name. 20170soname_spec=$lt_soname_spec 20171 20172# Permission mode override for installation of shared libraries. 20173install_override_mode=$lt_install_override_mode 20174 20175# Command to use after installation of a shared archive. 20176postinstall_cmds=$lt_postinstall_cmds 20177 20178# Command to use after uninstallation of a shared archive. 20179postuninstall_cmds=$lt_postuninstall_cmds 20180 20181# Commands used to finish a libtool library installation in a directory. 20182finish_cmds=$lt_finish_cmds 20183 20184# As "finish_cmds", except a single script fragment to be evaled but 20185# not shown. 20186finish_eval=$lt_finish_eval 20187 20188# Whether we should hardcode library paths into libraries. 20189hardcode_into_libs=$hardcode_into_libs 20190 20191# Compile-time system search path for libraries. 20192sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20193 20194# Run-time system search path for libraries. 20195sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20196 20197# Whether dlopen is supported. 20198dlopen_support=$enable_dlopen 20199 20200# Whether dlopen of programs is supported. 20201dlopen_self=$enable_dlopen_self 20202 20203# Whether dlopen of statically linked programs is supported. 20204dlopen_self_static=$enable_dlopen_self_static 20205 20206# Commands to strip libraries. 20207old_striplib=$lt_old_striplib 20208striplib=$lt_striplib 20209 20210 20211# The linker used to build libraries. 20212LD=$lt_LD 20213 20214# How to create reloadable object files. 20215reload_flag=$lt_reload_flag 20216reload_cmds=$lt_reload_cmds 20217 20218# Commands used to build an old-style archive. 20219old_archive_cmds=$lt_old_archive_cmds 20220 20221# A language specific compiler. 20222CC=$lt_compiler 20223 20224# Is the compiler the GNU compiler? 20225with_gcc=$GCC 20226 20227# Compiler flag to turn off builtin functions. 20228no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20229 20230# Additional compiler flags for building library objects. 20231pic_flag=$lt_lt_prog_compiler_pic 20232 20233# How to pass a linker flag through the compiler. 20234wl=$lt_lt_prog_compiler_wl 20235 20236# Compiler flag to prevent dynamic linking. 20237link_static_flag=$lt_lt_prog_compiler_static 20238 20239# Does compiler simultaneously support -c and -o options? 20240compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20241 20242# Whether or not to add -lc for building shared libraries. 20243build_libtool_need_lc=$archive_cmds_need_lc 20244 20245# Whether or not to disallow shared libs when runtime libs are static. 20246allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20247 20248# Compiler flag to allow reflexive dlopens. 20249export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20250 20251# Compiler flag to generate shared objects directly from archives. 20252whole_archive_flag_spec=$lt_whole_archive_flag_spec 20253 20254# Whether the compiler copes with passing no objects directly. 20255compiler_needs_object=$lt_compiler_needs_object 20256 20257# Create an old-style archive from a shared archive. 20258old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20259 20260# Create a temporary old-style archive to link instead of a shared archive. 20261old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20262 20263# Commands used to build a shared archive. 20264archive_cmds=$lt_archive_cmds 20265archive_expsym_cmds=$lt_archive_expsym_cmds 20266 20267# Commands used to build a loadable module if different from building 20268# a shared archive. 20269module_cmds=$lt_module_cmds 20270module_expsym_cmds=$lt_module_expsym_cmds 20271 20272# Whether we are building with GNU ld or not. 20273with_gnu_ld=$lt_with_gnu_ld 20274 20275# Flag that allows shared libraries with undefined symbols to be built. 20276allow_undefined_flag=$lt_allow_undefined_flag 20277 20278# Flag that enforces no undefined symbols. 20279no_undefined_flag=$lt_no_undefined_flag 20280 20281# Flag to hardcode \$libdir into a binary during linking. 20282# This must work even if \$libdir does not exist 20283hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20284 20285# If ld is used when linking, flag to hardcode \$libdir into a binary 20286# during linking. This must work even if \$libdir does not exist. 20287hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 20288 20289# Whether we need a single "-rpath" flag with a separated argument. 20290hardcode_libdir_separator=$lt_hardcode_libdir_separator 20291 20292# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20293# DIR into the resulting binary. 20294hardcode_direct=$hardcode_direct 20295 20296# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20297# DIR into the resulting binary and the resulting library dependency is 20298# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20299# library is relocated. 20300hardcode_direct_absolute=$hardcode_direct_absolute 20301 20302# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20303# into the resulting binary. 20304hardcode_minus_L=$hardcode_minus_L 20305 20306# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20307# into the resulting binary. 20308hardcode_shlibpath_var=$hardcode_shlibpath_var 20309 20310# Set to "yes" if building a shared library automatically hardcodes DIR 20311# into the library and all subsequent libraries and executables linked 20312# against it. 20313hardcode_automatic=$hardcode_automatic 20314 20315# Set to yes if linker adds runtime paths of dependent libraries 20316# to runtime path list. 20317inherit_rpath=$inherit_rpath 20318 20319# Whether libtool must link a program against all its dependency libraries. 20320link_all_deplibs=$link_all_deplibs 20321 20322# Set to "yes" if exported symbols are required. 20323always_export_symbols=$always_export_symbols 20324 20325# The commands to list exported symbols. 20326export_symbols_cmds=$lt_export_symbols_cmds 20327 20328# Symbols that should not be listed in the preloaded symbols. 20329exclude_expsyms=$lt_exclude_expsyms 20330 20331# Symbols that must always be exported. 20332include_expsyms=$lt_include_expsyms 20333 20334# Commands necessary for linking programs (against libraries) with templates. 20335prelink_cmds=$lt_prelink_cmds 20336 20337# Commands necessary for finishing linking programs. 20338postlink_cmds=$lt_postlink_cmds 20339 20340# Specify filename containing input files. 20341file_list_spec=$lt_file_list_spec 20342 20343# How to hardcode a shared library path into an executable. 20344hardcode_action=$hardcode_action 20345 20346# The directories searched by this compiler when creating a shared library. 20347compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20348 20349# Dependencies to place before and after the objects being linked to 20350# create a shared library. 20351predep_objects=$lt_predep_objects 20352postdep_objects=$lt_postdep_objects 20353predeps=$lt_predeps 20354postdeps=$lt_postdeps 20355 20356# The library search path used internally by the compiler when linking 20357# a shared library. 20358compiler_lib_search_path=$lt_compiler_lib_search_path 20359 20360# ### END LIBTOOL CONFIG 20361 20362_LT_EOF 20363 20364 case $host_os in 20365 aix3*) 20366 cat <<\_LT_EOF >> "$cfgfile" 20367# AIX sometimes has problems with the GCC collect2 program. For some 20368# reason, if we set the COLLECT_NAMES environment variable, the problems 20369# vanish in a puff of smoke. 20370if test "X${COLLECT_NAMES+set}" != Xset; then 20371 COLLECT_NAMES= 20372 export COLLECT_NAMES 20373fi 20374_LT_EOF 20375 ;; 20376 esac 20377 20378 20379ltmain="$ac_aux_dir/ltmain.sh" 20380 20381 20382 # We use sed instead of cat because bash on DJGPP gets confused if 20383 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20384 # text mode, it properly converts lines to CR/LF. This bash problem 20385 # is reportedly fixed, but why not run on old versions too? 20386 sed '$q' "$ltmain" >> "$cfgfile" \ 20387 || (rm -f "$cfgfile"; exit 1) 20388 20389 if test x"$xsi_shell" = xyes; then 20390 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20391func_dirname ()\ 20392{\ 20393\ case ${1} in\ 20394\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20395\ * ) func_dirname_result="${3}" ;;\ 20396\ esac\ 20397} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20398 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20399 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20400test 0 -eq $? || _lt_function_replace_fail=: 20401 20402 20403 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20404func_basename ()\ 20405{\ 20406\ func_basename_result="${1##*/}"\ 20407} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20408 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20409 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20410test 0 -eq $? || _lt_function_replace_fail=: 20411 20412 20413 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20414func_dirname_and_basename ()\ 20415{\ 20416\ case ${1} in\ 20417\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20418\ * ) func_dirname_result="${3}" ;;\ 20419\ esac\ 20420\ func_basename_result="${1##*/}"\ 20421} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20422 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20423 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20424test 0 -eq $? || _lt_function_replace_fail=: 20425 20426 20427 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20428func_stripname ()\ 20429{\ 20430\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20431\ # positional parameters, so assign one to ordinary parameter first.\ 20432\ func_stripname_result=${3}\ 20433\ func_stripname_result=${func_stripname_result#"${1}"}\ 20434\ func_stripname_result=${func_stripname_result%"${2}"}\ 20435} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20436 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20437 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20438test 0 -eq $? || _lt_function_replace_fail=: 20439 20440 20441 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20442func_split_long_opt ()\ 20443{\ 20444\ func_split_long_opt_name=${1%%=*}\ 20445\ func_split_long_opt_arg=${1#*=}\ 20446} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20447 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20448 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20449test 0 -eq $? || _lt_function_replace_fail=: 20450 20451 20452 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20453func_split_short_opt ()\ 20454{\ 20455\ func_split_short_opt_arg=${1#??}\ 20456\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20457} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20458 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20459 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20460test 0 -eq $? || _lt_function_replace_fail=: 20461 20462 20463 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20464func_lo2o ()\ 20465{\ 20466\ case ${1} in\ 20467\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20468\ *) func_lo2o_result=${1} ;;\ 20469\ esac\ 20470} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20471 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20472 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20473test 0 -eq $? || _lt_function_replace_fail=: 20474 20475 20476 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20477func_xform ()\ 20478{\ 20479 func_xform_result=${1%.*}.lo\ 20480} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20481 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20482 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20483test 0 -eq $? || _lt_function_replace_fail=: 20484 20485 20486 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20487func_arith ()\ 20488{\ 20489 func_arith_result=$(( $* ))\ 20490} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20491 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20492 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20493test 0 -eq $? || _lt_function_replace_fail=: 20494 20495 20496 sed -e '/^func_len ()$/,/^} # func_len /c\ 20497func_len ()\ 20498{\ 20499 func_len_result=${#1}\ 20500} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20501 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20502 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20503test 0 -eq $? || _lt_function_replace_fail=: 20504 20505fi 20506 20507if test x"$lt_shell_append" = xyes; then 20508 sed -e '/^func_append ()$/,/^} # func_append /c\ 20509func_append ()\ 20510{\ 20511 eval "${1}+=\\${2}"\ 20512} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20513 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20514 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20515test 0 -eq $? || _lt_function_replace_fail=: 20516 20517 20518 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20519func_append_quoted ()\ 20520{\ 20521\ func_quote_for_eval "${2}"\ 20522\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20523} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20524 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20526test 0 -eq $? || _lt_function_replace_fail=: 20527 20528 20529 # Save a `func_append' function call where possible by direct use of '+=' 20530 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20531 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20533 test 0 -eq $? || _lt_function_replace_fail=: 20534else 20535 # Save a `func_append' function call even when '+=' is not available 20536 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20537 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20538 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20539 test 0 -eq $? || _lt_function_replace_fail=: 20540fi 20541 20542if test x"$_lt_function_replace_fail" = x":"; then 20543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20544$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20545fi 20546 20547 20548 mv -f "$cfgfile" "$ofile" || 20549 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20550 chmod +x "$ofile" 20551 20552 20553 cat <<_LT_EOF >> "$ofile" 20554 20555# ### BEGIN LIBTOOL TAG CONFIG: CXX 20556 20557# The linker used to build libraries. 20558LD=$lt_LD_CXX 20559 20560# How to create reloadable object files. 20561reload_flag=$lt_reload_flag_CXX 20562reload_cmds=$lt_reload_cmds_CXX 20563 20564# Commands used to build an old-style archive. 20565old_archive_cmds=$lt_old_archive_cmds_CXX 20566 20567# A language specific compiler. 20568CC=$lt_compiler_CXX 20569 20570# Is the compiler the GNU compiler? 20571with_gcc=$GCC_CXX 20572 20573# Compiler flag to turn off builtin functions. 20574no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20575 20576# Additional compiler flags for building library objects. 20577pic_flag=$lt_lt_prog_compiler_pic_CXX 20578 20579# How to pass a linker flag through the compiler. 20580wl=$lt_lt_prog_compiler_wl_CXX 20581 20582# Compiler flag to prevent dynamic linking. 20583link_static_flag=$lt_lt_prog_compiler_static_CXX 20584 20585# Does compiler simultaneously support -c and -o options? 20586compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20587 20588# Whether or not to add -lc for building shared libraries. 20589build_libtool_need_lc=$archive_cmds_need_lc_CXX 20590 20591# Whether or not to disallow shared libs when runtime libs are static. 20592allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 20593 20594# Compiler flag to allow reflexive dlopens. 20595export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20596 20597# Compiler flag to generate shared objects directly from archives. 20598whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20599 20600# Whether the compiler copes with passing no objects directly. 20601compiler_needs_object=$lt_compiler_needs_object_CXX 20602 20603# Create an old-style archive from a shared archive. 20604old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20605 20606# Create a temporary old-style archive to link instead of a shared archive. 20607old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20608 20609# Commands used to build a shared archive. 20610archive_cmds=$lt_archive_cmds_CXX 20611archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20612 20613# Commands used to build a loadable module if different from building 20614# a shared archive. 20615module_cmds=$lt_module_cmds_CXX 20616module_expsym_cmds=$lt_module_expsym_cmds_CXX 20617 20618# Whether we are building with GNU ld or not. 20619with_gnu_ld=$lt_with_gnu_ld_CXX 20620 20621# Flag that allows shared libraries with undefined symbols to be built. 20622allow_undefined_flag=$lt_allow_undefined_flag_CXX 20623 20624# Flag that enforces no undefined symbols. 20625no_undefined_flag=$lt_no_undefined_flag_CXX 20626 20627# Flag to hardcode \$libdir into a binary during linking. 20628# This must work even if \$libdir does not exist 20629hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20630 20631# If ld is used when linking, flag to hardcode \$libdir into a binary 20632# during linking. This must work even if \$libdir does not exist. 20633hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 20634 20635# Whether we need a single "-rpath" flag with a separated argument. 20636hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20637 20638# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20639# DIR into the resulting binary. 20640hardcode_direct=$hardcode_direct_CXX 20641 20642# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20643# DIR into the resulting binary and the resulting library dependency is 20644# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20645# library is relocated. 20646hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20647 20648# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20649# into the resulting binary. 20650hardcode_minus_L=$hardcode_minus_L_CXX 20651 20652# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20653# into the resulting binary. 20654hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20655 20656# Set to "yes" if building a shared library automatically hardcodes DIR 20657# into the library and all subsequent libraries and executables linked 20658# against it. 20659hardcode_automatic=$hardcode_automatic_CXX 20660 20661# Set to yes if linker adds runtime paths of dependent libraries 20662# to runtime path list. 20663inherit_rpath=$inherit_rpath_CXX 20664 20665# Whether libtool must link a program against all its dependency libraries. 20666link_all_deplibs=$link_all_deplibs_CXX 20667 20668# Set to "yes" if exported symbols are required. 20669always_export_symbols=$always_export_symbols_CXX 20670 20671# The commands to list exported symbols. 20672export_symbols_cmds=$lt_export_symbols_cmds_CXX 20673 20674# Symbols that should not be listed in the preloaded symbols. 20675exclude_expsyms=$lt_exclude_expsyms_CXX 20676 20677# Symbols that must always be exported. 20678include_expsyms=$lt_include_expsyms_CXX 20679 20680# Commands necessary for linking programs (against libraries) with templates. 20681prelink_cmds=$lt_prelink_cmds_CXX 20682 20683# Commands necessary for finishing linking programs. 20684postlink_cmds=$lt_postlink_cmds_CXX 20685 20686# Specify filename containing input files. 20687file_list_spec=$lt_file_list_spec_CXX 20688 20689# How to hardcode a shared library path into an executable. 20690hardcode_action=$hardcode_action_CXX 20691 20692# The directories searched by this compiler when creating a shared library. 20693compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20694 20695# Dependencies to place before and after the objects being linked to 20696# create a shared library. 20697predep_objects=$lt_predep_objects_CXX 20698postdep_objects=$lt_postdep_objects_CXX 20699predeps=$lt_predeps_CXX 20700postdeps=$lt_postdeps_CXX 20701 20702# The library search path used internally by the compiler when linking 20703# a shared library. 20704compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20705 20706# ### END LIBTOOL TAG CONFIG: CXX 20707_LT_EOF 20708 20709 ;; 20710 "po-directories":C) 20711 for ac_file in $CONFIG_FILES; do 20712 # Support "outfile[:infile[:infile...]]" 20713 case "$ac_file" in 20714 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 20715 esac 20716 # PO directories have a Makefile.in generated from Makefile.in.in. 20717 case "$ac_file" in */Makefile.in) 20718 # Adjust a relative srcdir. 20719 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 20720 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 20721 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 20722 # In autoconf-2.13 it is called $ac_given_srcdir. 20723 # In autoconf-2.50 it is called $srcdir. 20724 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 20725 case "$ac_given_srcdir" in 20726 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 20727 /*) top_srcdir="$ac_given_srcdir" ;; 20728 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 20729 esac 20730 # Treat a directory as a PO directory if and only if it has a 20731 # POTFILES.in file. This allows packages to have multiple PO 20732 # directories under different names or in different locations. 20733 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 20734 rm -f "$ac_dir/POTFILES" 20735 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 20736 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 20737 POMAKEFILEDEPS="POTFILES.in" 20738 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 20739 # on $ac_dir but don't depend on user-specified configuration 20740 # parameters. 20741 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 20742 # The LINGUAS file contains the set of available languages. 20743 if test -n "$OBSOLETE_ALL_LINGUAS"; then 20744 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 20745 fi 20746 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 20747 # Hide the ALL_LINGUAS assigment from automake < 1.5. 20748 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 20749 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 20750 else 20751 # The set of available languages was given in configure.in. 20752 # Hide the ALL_LINGUAS assigment from automake < 1.5. 20753 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 20754 fi 20755 # Compute POFILES 20756 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 20757 # Compute UPDATEPOFILES 20758 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 20759 # Compute DUMMYPOFILES 20760 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 20761 # Compute GMOFILES 20762 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 20763 case "$ac_given_srcdir" in 20764 .) srcdirpre= ;; 20765 *) srcdirpre='$(srcdir)/' ;; 20766 esac 20767 POFILES= 20768 UPDATEPOFILES= 20769 DUMMYPOFILES= 20770 GMOFILES= 20771 for lang in $ALL_LINGUAS; do 20772 POFILES="$POFILES $srcdirpre$lang.po" 20773 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 20774 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 20775 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 20776 done 20777 # CATALOGS depends on both $ac_dir and the user's LINGUAS 20778 # environment variable. 20779 INST_LINGUAS= 20780 if test -n "$ALL_LINGUAS"; then 20781 for presentlang in $ALL_LINGUAS; do 20782 useit=no 20783 if test "%UNSET%" != "$LINGUAS"; then 20784 desiredlanguages="$LINGUAS" 20785 else 20786 desiredlanguages="$ALL_LINGUAS" 20787 fi 20788 for desiredlang in $desiredlanguages; do 20789 # Use the presentlang catalog if desiredlang is 20790 # a. equal to presentlang, or 20791 # b. a variant of presentlang (because in this case, 20792 # presentlang can be used as a fallback for messages 20793 # which are not translated in the desiredlang catalog). 20794 case "$desiredlang" in 20795 "$presentlang"*) useit=yes;; 20796 esac 20797 done 20798 if test $useit = yes; then 20799 INST_LINGUAS="$INST_LINGUAS $presentlang" 20800 fi 20801 done 20802 fi 20803 CATALOGS= 20804 if test -n "$INST_LINGUAS"; then 20805 for lang in $INST_LINGUAS; do 20806 CATALOGS="$CATALOGS $lang.gmo" 20807 done 20808 fi 20809 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 20810 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 20811 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 20812 if test -f "$f"; then 20813 case "$f" in 20814 *.orig | *.bak | *~) ;; 20815 *) cat "$f" >> "$ac_dir/Makefile" ;; 20816 esac 20817 fi 20818 done 20819 fi 20820 ;; 20821 esac 20822 done ;; 20823 20824 esac 20825done # for ac_tag 20826 20827 20828as_fn_exit 0 20829_ACEOF 20830ac_clean_files=$ac_clean_files_save 20831 20832test $ac_write_fail = 0 || 20833 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20834 20835 20836# configure is writing to config.log, and then calls config.status. 20837# config.status does its own redirection, appending to config.log. 20838# Unfortunately, on DOS this fails, as config.log is still kept open 20839# by configure, so config.status won't be able to write to it; its 20840# output is simply discarded. So we exec the FD to /dev/null, 20841# effectively closing config.log, so it can be properly (re)opened and 20842# appended to by config.status. When coming back to configure, we 20843# need to make the FD available again. 20844if test "$no_create" != yes; then 20845 ac_cs_success=: 20846 ac_config_status_args= 20847 test "$silent" = yes && 20848 ac_config_status_args="$ac_config_status_args --quiet" 20849 exec 5>/dev/null 20850 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20851 exec 5>>config.log 20852 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20853 # would make configure fail if this is the last instruction. 20854 $ac_cs_success || as_fn_exit 1 20855fi 20856if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20858$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20859fi 20860 20861