1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for toppler 1.1.6. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='toppler' 589PACKAGE_TARNAME='toppler' 590PACKAGE_VERSION='1.1.6' 591PACKAGE_STRING='toppler 1.1.6' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="toppler.cc" 596gt_needs= 597# Factoring default headers for most tests. 598ac_includes_default="\ 599#include <stdio.h> 600#ifdef HAVE_SYS_TYPES_H 601# include <sys/types.h> 602#endif 603#ifdef HAVE_SYS_STAT_H 604# include <sys/stat.h> 605#endif 606#ifdef STDC_HEADERS 607# include <stdlib.h> 608# include <stddef.h> 609#else 610# ifdef HAVE_STDLIB_H 611# include <stdlib.h> 612# endif 613#endif 614#ifdef HAVE_STRING_H 615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 616# include <memory.h> 617# endif 618# include <string.h> 619#endif 620#ifdef HAVE_STRINGS_H 621# include <strings.h> 622#endif 623#ifdef HAVE_INTTYPES_H 624# include <inttypes.h> 625#endif 626#ifdef HAVE_STDINT_H 627# include <stdint.h> 628#endif 629#ifdef HAVE_UNISTD_H 630# include <unistd.h> 631#endif" 632 633ac_subst_vars='am__EXEEXT_FALSE 634am__EXEEXT_TRUE 635LTLIBOBJS 636LIBOBJS 637SDL_LIBS 638SDL_CFLAGS 639SDL_CONFIG 640CXXCPP 641OTOOL64 642OTOOL 643LIPO 644NMEDIT 645DSYMUTIL 646MANIFEST_TOOL 647RANLIB 648ac_ct_AR 649AR 650DLLTOOL 651OBJDUMP 652LN_S 653NM 654ac_ct_DUMPBIN 655DUMPBIN 656LD 657FGREP 658SED 659LIBTOOL 660am__fastdepCXX_FALSE 661am__fastdepCXX_TRUE 662CXXDEPMODE 663ac_ct_CXX 664CXXFLAGS 665CXX 666POSUB 667LTLIBINTL 668LIBINTL 669INTLLIBS 670LTLIBICONV 671LIBICONV 672INTL_MACOSX_LIBS 673EGREP 674GREP 675CPP 676am__fastdepCC_FALSE 677am__fastdepCC_TRUE 678CCDEPMODE 679am__nodep 680AMDEPBACKSLASH 681AMDEP_FALSE 682AMDEP_TRUE 683am__quote 684am__include 685DEPDIR 686OBJEXT 687EXEEXT 688ac_ct_CC 689CPPFLAGS 690LDFLAGS 691CFLAGS 692CC 693XGETTEXT_EXTRA_OPTIONS 694MSGMERGE 695XGETTEXT_015 696XGETTEXT 697GMSGFMT_015 698MSGFMT_015 699GMSGFMT 700MSGFMT 701GETTEXT_MACRO_VERSION 702USE_NLS 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_nls 786enable_dependency_tracking 787with_gnu_ld 788enable_rpath 789with_libiconv_prefix 790with_libintl_prefix 791enable_shared 792enable_static 793with_pic 794enable_fast_install 795with_sysroot 796enable_libtool_lock 797with_sdl_prefix 798with_sdl_exec_prefix 799enable_sdltest 800' 801 ac_precious_vars='build_alias 802host_alias 803target_alias 804CC 805CFLAGS 806LDFLAGS 807LIBS 808CPPFLAGS 809CPP 810CXX 811CXXFLAGS 812CCC 813CXXCPP' 814 815 816# Initialize some variables set by options. 817ac_init_help= 818ac_init_version=false 819ac_unrecognized_opts= 820ac_unrecognized_sep= 821# The variables have the same names as the options, with 822# dashes changed to underlines. 823cache_file=/dev/null 824exec_prefix=NONE 825no_create= 826no_recursion= 827prefix=NONE 828program_prefix=NONE 829program_suffix=NONE 830program_transform_name=s,x,x, 831silent= 832site= 833srcdir= 834verbose= 835x_includes=NONE 836x_libraries=NONE 837 838# Installation directory options. 839# These are left unexpanded so users can "make install exec_prefix=/foo" 840# and all the variables that are supposed to be based on exec_prefix 841# by default will actually change. 842# Use braces instead of parens because sh, perl, etc. also accept them. 843# (The list follows the same order as the GNU Coding Standards.) 844bindir='${exec_prefix}/bin' 845sbindir='${exec_prefix}/sbin' 846libexecdir='${exec_prefix}/libexec' 847datarootdir='${prefix}/share' 848datadir='${datarootdir}' 849sysconfdir='${prefix}/etc' 850sharedstatedir='${prefix}/com' 851localstatedir='${prefix}/var' 852includedir='${prefix}/include' 853oldincludedir='/usr/include' 854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 855infodir='${datarootdir}/info' 856htmldir='${docdir}' 857dvidir='${docdir}' 858pdfdir='${docdir}' 859psdir='${docdir}' 860libdir='${exec_prefix}/lib' 861localedir='${datarootdir}/locale' 862mandir='${datarootdir}/man' 863 864ac_prev= 865ac_dashdash= 866for ac_option 867do 868 # If the previous option needs an argument, assign it. 869 if test -n "$ac_prev"; then 870 eval $ac_prev=\$ac_option 871 ac_prev= 872 continue 873 fi 874 875 case $ac_option in 876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 877 *=) ac_optarg= ;; 878 *) ac_optarg=yes ;; 879 esac 880 881 # Accept the important Cygnus configure options, so we can diagnose typos. 882 883 case $ac_dashdash$ac_option in 884 --) 885 ac_dashdash=yes ;; 886 887 -bindir | --bindir | --bindi | --bind | --bin | --bi) 888 ac_prev=bindir ;; 889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 890 bindir=$ac_optarg ;; 891 892 -build | --build | --buil | --bui | --bu) 893 ac_prev=build_alias ;; 894 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 895 build_alias=$ac_optarg ;; 896 897 -cache-file | --cache-file | --cache-fil | --cache-fi \ 898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 899 ac_prev=cache_file ;; 900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 902 cache_file=$ac_optarg ;; 903 904 --config-cache | -C) 905 cache_file=config.cache ;; 906 907 -datadir | --datadir | --datadi | --datad) 908 ac_prev=datadir ;; 909 -datadir=* | --datadir=* | --datadi=* | --datad=*) 910 datadir=$ac_optarg ;; 911 912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 913 | --dataroo | --dataro | --datar) 914 ac_prev=datarootdir ;; 915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 917 datarootdir=$ac_optarg ;; 918 919 -disable-* | --disable-*) 920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 921 # Reject names that are not valid shell variable names. 922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 923 as_fn_error $? "invalid feature name: $ac_useropt" 924 ac_useropt_orig=$ac_useropt 925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 926 case $ac_user_opts in 927 *" 928"enable_$ac_useropt" 929"*) ;; 930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 931 ac_unrecognized_sep=', ';; 932 esac 933 eval enable_$ac_useropt=no ;; 934 935 -docdir | --docdir | --docdi | --doc | --do) 936 ac_prev=docdir ;; 937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 938 docdir=$ac_optarg ;; 939 940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 941 ac_prev=dvidir ;; 942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 943 dvidir=$ac_optarg ;; 944 945 -enable-* | --enable-*) 946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 947 # Reject names that are not valid shell variable names. 948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 949 as_fn_error $? "invalid feature name: $ac_useropt" 950 ac_useropt_orig=$ac_useropt 951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 952 case $ac_user_opts in 953 *" 954"enable_$ac_useropt" 955"*) ;; 956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 957 ac_unrecognized_sep=', ';; 958 esac 959 eval enable_$ac_useropt=\$ac_optarg ;; 960 961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 963 | --exec | --exe | --ex) 964 ac_prev=exec_prefix ;; 965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 967 | --exec=* | --exe=* | --ex=*) 968 exec_prefix=$ac_optarg ;; 969 970 -gas | --gas | --ga | --g) 971 # Obsolete; use --with-gas. 972 with_gas=yes ;; 973 974 -help | --help | --hel | --he | -h) 975 ac_init_help=long ;; 976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 977 ac_init_help=recursive ;; 978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 979 ac_init_help=short ;; 980 981 -host | --host | --hos | --ho) 982 ac_prev=host_alias ;; 983 -host=* | --host=* | --hos=* | --ho=*) 984 host_alias=$ac_optarg ;; 985 986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 987 ac_prev=htmldir ;; 988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 989 | --ht=*) 990 htmldir=$ac_optarg ;; 991 992 -includedir | --includedir | --includedi | --included | --include \ 993 | --includ | --inclu | --incl | --inc) 994 ac_prev=includedir ;; 995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 996 | --includ=* | --inclu=* | --incl=* | --inc=*) 997 includedir=$ac_optarg ;; 998 999 -infodir | --infodir | --infodi | --infod | --info | --inf) 1000 ac_prev=infodir ;; 1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1002 infodir=$ac_optarg ;; 1003 1004 -libdir | --libdir | --libdi | --libd) 1005 ac_prev=libdir ;; 1006 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1007 libdir=$ac_optarg ;; 1008 1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1010 | --libexe | --libex | --libe) 1011 ac_prev=libexecdir ;; 1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1013 | --libexe=* | --libex=* | --libe=*) 1014 libexecdir=$ac_optarg ;; 1015 1016 -localedir | --localedir | --localedi | --localed | --locale) 1017 ac_prev=localedir ;; 1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1019 localedir=$ac_optarg ;; 1020 1021 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1022 | --localstate | --localstat | --localsta | --localst | --locals) 1023 ac_prev=localstatedir ;; 1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1026 localstatedir=$ac_optarg ;; 1027 1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1029 ac_prev=mandir ;; 1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1031 mandir=$ac_optarg ;; 1032 1033 -nfp | --nfp | --nf) 1034 # Obsolete; use --without-fp. 1035 with_fp=no ;; 1036 1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1038 | --no-cr | --no-c | -n) 1039 no_create=yes ;; 1040 1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1043 no_recursion=yes ;; 1044 1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1047 | --oldin | --oldi | --old | --ol | --o) 1048 ac_prev=oldincludedir ;; 1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1052 oldincludedir=$ac_optarg ;; 1053 1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1055 ac_prev=prefix ;; 1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1057 prefix=$ac_optarg ;; 1058 1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1060 | --program-pre | --program-pr | --program-p) 1061 ac_prev=program_prefix ;; 1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1064 program_prefix=$ac_optarg ;; 1065 1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1067 | --program-suf | --program-su | --program-s) 1068 ac_prev=program_suffix ;; 1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1071 program_suffix=$ac_optarg ;; 1072 1073 -program-transform-name | --program-transform-name \ 1074 | --program-transform-nam | --program-transform-na \ 1075 | --program-transform-n | --program-transform- \ 1076 | --program-transform | --program-transfor \ 1077 | --program-transfo | --program-transf \ 1078 | --program-trans | --program-tran \ 1079 | --progr-tra | --program-tr | --program-t) 1080 ac_prev=program_transform_name ;; 1081 -program-transform-name=* | --program-transform-name=* \ 1082 | --program-transform-nam=* | --program-transform-na=* \ 1083 | --program-transform-n=* | --program-transform-=* \ 1084 | --program-transform=* | --program-transfor=* \ 1085 | --program-transfo=* | --program-transf=* \ 1086 | --program-trans=* | --program-tran=* \ 1087 | --progr-tra=* | --program-tr=* | --program-t=*) 1088 program_transform_name=$ac_optarg ;; 1089 1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1091 ac_prev=pdfdir ;; 1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1093 pdfdir=$ac_optarg ;; 1094 1095 -psdir | --psdir | --psdi | --psd | --ps) 1096 ac_prev=psdir ;; 1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1098 psdir=$ac_optarg ;; 1099 1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1101 | -silent | --silent | --silen | --sile | --sil) 1102 silent=yes ;; 1103 1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1105 ac_prev=sbindir ;; 1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1107 | --sbi=* | --sb=*) 1108 sbindir=$ac_optarg ;; 1109 1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1112 | --sharedst | --shareds | --shared | --share | --shar \ 1113 | --sha | --sh) 1114 ac_prev=sharedstatedir ;; 1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1118 | --sha=* | --sh=*) 1119 sharedstatedir=$ac_optarg ;; 1120 1121 -site | --site | --sit) 1122 ac_prev=site ;; 1123 -site=* | --site=* | --sit=*) 1124 site=$ac_optarg ;; 1125 1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1127 ac_prev=srcdir ;; 1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1129 srcdir=$ac_optarg ;; 1130 1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1132 | --syscon | --sysco | --sysc | --sys | --sy) 1133 ac_prev=sysconfdir ;; 1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1136 sysconfdir=$ac_optarg ;; 1137 1138 -target | --target | --targe | --targ | --tar | --ta | --t) 1139 ac_prev=target_alias ;; 1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1141 target_alias=$ac_optarg ;; 1142 1143 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1144 verbose=yes ;; 1145 1146 -version | --version | --versio | --versi | --vers | -V) 1147 ac_init_version=: ;; 1148 1149 -with-* | --with-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: $ac_useropt" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158"with_$ac_useropt" 1159"*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=\$ac_optarg ;; 1164 1165 -without-* | --without-*) 1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1167 # Reject names that are not valid shell variable names. 1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1169 as_fn_error $? "invalid package name: $ac_useropt" 1170 ac_useropt_orig=$ac_useropt 1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1172 case $ac_user_opts in 1173 *" 1174"with_$ac_useropt" 1175"*) ;; 1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1177 ac_unrecognized_sep=', ';; 1178 esac 1179 eval with_$ac_useropt=no ;; 1180 1181 --x) 1182 # Obsolete; use --with-x. 1183 with_x=yes ;; 1184 1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1186 | --x-incl | --x-inc | --x-in | --x-i) 1187 ac_prev=x_includes ;; 1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1190 x_includes=$ac_optarg ;; 1191 1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1194 ac_prev=x_libraries ;; 1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1197 x_libraries=$ac_optarg ;; 1198 1199 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1200Try \`$0 --help' for more information" 1201 ;; 1202 1203 *=*) 1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1205 # Reject names that are not valid shell variable names. 1206 case $ac_envvar in #( 1207 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1209 esac 1210 eval $ac_envvar=\$ac_optarg 1211 export $ac_envvar ;; 1212 1213 *) 1214 # FIXME: should be removed in autoconf 3.0. 1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1219 ;; 1220 1221 esac 1222done 1223 1224if test -n "$ac_prev"; then 1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1226 as_fn_error $? "missing argument to $ac_option" 1227fi 1228 1229if test -n "$ac_unrecognized_opts"; then 1230 case $enable_option_checking in 1231 no) ;; 1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1234 esac 1235fi 1236 1237# Check all directory arguments for consistency. 1238for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1239 datadir sysconfdir sharedstatedir localstatedir includedir \ 1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1241 libdir localedir mandir 1242do 1243 eval ac_val=\$$ac_var 1244 # Remove trailing slashes. 1245 case $ac_val in 1246 */ ) 1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1248 eval $ac_var=\$ac_val;; 1249 esac 1250 # Be sure to have absolute directory names. 1251 case $ac_val in 1252 [\\/$]* | ?:[\\/]* ) continue;; 1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1254 esac 1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1256done 1257 1258# There might be people who depend on the old broken behavior: `$host' 1259# used to hold the argument of --host etc. 1260# FIXME: To remove some day. 1261build=$build_alias 1262host=$host_alias 1263target=$target_alias 1264 1265# FIXME: To remove some day. 1266if test "x$host_alias" != x; then 1267 if test "x$build_alias" = x; then 1268 cross_compiling=maybe 1269 elif test "x$build_alias" != "x$host_alias"; then 1270 cross_compiling=yes 1271 fi 1272fi 1273 1274ac_tool_prefix= 1275test -n "$host_alias" && ac_tool_prefix=$host_alias- 1276 1277test "$silent" = yes && exec 6>/dev/null 1278 1279 1280ac_pwd=`pwd` && test -n "$ac_pwd" && 1281ac_ls_di=`ls -di .` && 1282ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1283 as_fn_error $? "working directory cannot be determined" 1284test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1285 as_fn_error $? "pwd does not report name of working directory" 1286 1287 1288# Find the source files, if location was not specified. 1289if test -z "$srcdir"; then 1290 ac_srcdir_defaulted=yes 1291 # Try the directory containing this script, then the parent directory. 1292 ac_confdir=`$as_dirname -- "$as_myself" || 1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1294 X"$as_myself" : 'X\(//\)[^/]' \| \ 1295 X"$as_myself" : 'X\(//\)$' \| \ 1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1297$as_echo X"$as_myself" | 1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)[^/].*/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)$/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\).*/{ 1311 s//\1/ 1312 q 1313 } 1314 s/.*/./; q'` 1315 srcdir=$ac_confdir 1316 if test ! -r "$srcdir/$ac_unique_file"; then 1317 srcdir=.. 1318 fi 1319else 1320 ac_srcdir_defaulted=no 1321fi 1322if test ! -r "$srcdir/$ac_unique_file"; then 1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1325fi 1326ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1327ac_abs_confdir=`( 1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1329 pwd)` 1330# When building in place, set srcdir=. 1331if test "$ac_abs_confdir" = "$ac_pwd"; then 1332 srcdir=. 1333fi 1334# Remove unnecessary trailing slashes from srcdir. 1335# Double slashes in file names in object file debugging info 1336# mess up M-x gdb in Emacs. 1337case $srcdir in 1338*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1339esac 1340for ac_var in $ac_precious_vars; do 1341 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_env_${ac_var}_value=\$${ac_var} 1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1344 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1345done 1346 1347# 1348# Report the --help message. 1349# 1350if test "$ac_init_help" = "long"; then 1351 # Omit some internal or obsolete options to make the list less imposing. 1352 # This message is too long to be a string in the A/UX 3.1 sh. 1353 cat <<_ACEOF 1354\`configure' configures toppler 1.1.6 to adapt to many kinds of systems. 1355 1356Usage: $0 [OPTION]... [VAR=VALUE]... 1357 1358To assign environment variables (e.g., CC, CFLAGS...), specify them as 1359VAR=VALUE. See below for descriptions of some of the useful variables. 1360 1361Defaults for the options are specified in brackets. 1362 1363Configuration: 1364 -h, --help display this help and exit 1365 --help=short display options specific to this package 1366 --help=recursive display the short help of all the included packages 1367 -V, --version display version information and exit 1368 -q, --quiet, --silent do not print \`checking ...' messages 1369 --cache-file=FILE cache test results in FILE [disabled] 1370 -C, --config-cache alias for \`--cache-file=config.cache' 1371 -n, --no-create do not create output files 1372 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1373 1374Installation directories: 1375 --prefix=PREFIX install architecture-independent files in PREFIX 1376 [$ac_default_prefix] 1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1378 [PREFIX] 1379 1380By default, \`make install' will install all the files in 1381\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1382an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1383for instance \`--prefix=\$HOME'. 1384 1385For better control, use the options below. 1386 1387Fine tuning of the installation directories: 1388 --bindir=DIR user executables [EPREFIX/bin] 1389 --sbindir=DIR system admin executables [EPREFIX/sbin] 1390 --libexecdir=DIR program executables [EPREFIX/libexec] 1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1394 --libdir=DIR object code libraries [EPREFIX/lib] 1395 --includedir=DIR C header files [PREFIX/include] 1396 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1399 --infodir=DIR info documentation [DATAROOTDIR/info] 1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1401 --mandir=DIR man documentation [DATAROOTDIR/man] 1402 --docdir=DIR documentation root [DATAROOTDIR/doc/toppler] 1403 --htmldir=DIR html documentation [DOCDIR] 1404 --dvidir=DIR dvi documentation [DOCDIR] 1405 --pdfdir=DIR pdf documentation [DOCDIR] 1406 --psdir=DIR ps documentation [DOCDIR] 1407_ACEOF 1408 1409 cat <<\_ACEOF 1410 1411Program names: 1412 --program-prefix=PREFIX prepend PREFIX to installed program names 1413 --program-suffix=SUFFIX append SUFFIX to installed program names 1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1415 1416System types: 1417 --build=BUILD configure for building on BUILD [guessed] 1418 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1419 --target=TARGET configure for building compilers for TARGET [HOST] 1420_ACEOF 1421fi 1422 1423if test -n "$ac_init_help"; then 1424 case $ac_init_help in 1425 short | recursive ) echo "Configuration of toppler 1.1.6:";; 1426 esac 1427 cat <<\_ACEOF 1428 1429Optional Features: 1430 --disable-option-checking ignore unrecognized --enable/--with options 1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1433 --enable-maintainer-mode enable make rules and dependencies not useful 1434 (and sometimes confusing) to the casual installer 1435 --disable-nls do not use Native Language Support 1436 --disable-dependency-tracking speeds up one-time build 1437 --enable-dependency-tracking do not reject slow dependency extractors 1438 --disable-rpath do not hardcode runtime library paths 1439 --enable-shared[=PKGS] build shared libraries [default=yes] 1440 --enable-static[=PKGS] build static libraries [default=yes] 1441 --enable-fast-install[=PKGS] 1442 optimize for fast installation [default=yes] 1443 --disable-libtool-lock avoid locking (might break parallel builds) 1444 --disable-sdltest Do not try to compile and run a test SDL program 1445 1446Optional Packages: 1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1449 --with-gnu-ld assume the C compiler uses GNU ld default=no 1450 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1451 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1452 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1453 --without-libintl-prefix don't search for libintl in includedir and libdir 1454 --with-pic try to use only PIC/non-PIC objects [default=use 1455 both] 1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1457 --with-sysroot=DIR Search for dependent libraries within DIR 1458 (or the compiler's sysroot if not specified). 1459 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1460 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 1461 1462Some influential environment variables: 1463 CC C compiler command 1464 CFLAGS C compiler flags 1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1466 nonstandard directory <lib dir> 1467 LIBS libraries to pass to the linker, e.g. -l<library> 1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1469 you have headers in a nonstandard directory <include dir> 1470 CPP C preprocessor 1471 CXX C++ compiler command 1472 CXXFLAGS C++ compiler flags 1473 CXXCPP C++ preprocessor 1474 1475Use these variables to override the choices made by `configure' or to help 1476it to find libraries and programs with nonstandard names/locations. 1477 1478Report bugs to the package provider. 1479_ACEOF 1480ac_status=$? 1481fi 1482 1483if test "$ac_init_help" = "recursive"; then 1484 # If there are subdirs, report their specific --help. 1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1486 test -d "$ac_dir" || 1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1488 continue 1489 ac_builddir=. 1490 1491case "$ac_dir" in 1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1493*) 1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1495 # A ".." for each directory in $ac_dir_suffix. 1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1497 case $ac_top_builddir_sub in 1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1500 esac ;; 1501esac 1502ac_abs_top_builddir=$ac_pwd 1503ac_abs_builddir=$ac_pwd$ac_dir_suffix 1504# for backward compatibility: 1505ac_top_builddir=$ac_top_build_prefix 1506 1507case $srcdir in 1508 .) # We are building in place. 1509 ac_srcdir=. 1510 ac_top_srcdir=$ac_top_builddir_sub 1511 ac_abs_top_srcdir=$ac_pwd ;; 1512 [\\/]* | ?:[\\/]* ) # Absolute name. 1513 ac_srcdir=$srcdir$ac_dir_suffix; 1514 ac_top_srcdir=$srcdir 1515 ac_abs_top_srcdir=$srcdir ;; 1516 *) # Relative name. 1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1518 ac_top_srcdir=$ac_top_build_prefix$srcdir 1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1520esac 1521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1522 1523 cd "$ac_dir" || { ac_status=$?; continue; } 1524 # Check for guested configure. 1525 if test -f "$ac_srcdir/configure.gnu"; then 1526 echo && 1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1528 elif test -f "$ac_srcdir/configure"; then 1529 echo && 1530 $SHELL "$ac_srcdir/configure" --help=recursive 1531 else 1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1533 fi || ac_status=$? 1534 cd "$ac_pwd" || { ac_status=$?; break; } 1535 done 1536fi 1537 1538test -n "$ac_init_help" && exit $ac_status 1539if $ac_init_version; then 1540 cat <<\_ACEOF 1541toppler configure 1.1.6 1542generated by GNU Autoconf 2.69 1543 1544Copyright (C) 2012 Free Software Foundation, Inc. 1545This configure script is free software; the Free Software Foundation 1546gives unlimited permission to copy, distribute and modify it. 1547_ACEOF 1548 exit 1549fi 1550 1551## ------------------------ ## 1552## Autoconf initialization. ## 1553## ------------------------ ## 1554 1555# ac_fn_c_try_compile LINENO 1556# -------------------------- 1557# Try to compile conftest.$ac_ext, and return whether this succeeded. 1558ac_fn_c_try_compile () 1559{ 1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1561 rm -f conftest.$ac_objext 1562 if { { ac_try="$ac_compile" 1563case "(($ac_try" in 1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1565 *) ac_try_echo=$ac_try;; 1566esac 1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1568$as_echo "$ac_try_echo"; } >&5 1569 (eval "$ac_compile") 2>conftest.err 1570 ac_status=$? 1571 if test -s conftest.err; then 1572 grep -v '^ *+' conftest.err >conftest.er1 1573 cat conftest.er1 >&5 1574 mv -f conftest.er1 conftest.err 1575 fi 1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1577 test $ac_status = 0; } && { 1578 test -z "$ac_c_werror_flag" || 1579 test ! -s conftest.err 1580 } && test -s conftest.$ac_objext; then : 1581 ac_retval=0 1582else 1583 $as_echo "$as_me: failed program was:" >&5 1584sed 's/^/| /' conftest.$ac_ext >&5 1585 1586 ac_retval=1 1587fi 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1589 as_fn_set_status $ac_retval 1590 1591} # ac_fn_c_try_compile 1592 1593# ac_fn_c_try_cpp LINENO 1594# ---------------------- 1595# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1596ac_fn_c_try_cpp () 1597{ 1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1599 if { { ac_try="$ac_cpp conftest.$ac_ext" 1600case "(($ac_try" in 1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1602 *) ac_try_echo=$ac_try;; 1603esac 1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1605$as_echo "$ac_try_echo"; } >&5 1606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1607 ac_status=$? 1608 if test -s conftest.err; then 1609 grep -v '^ *+' conftest.err >conftest.er1 1610 cat conftest.er1 >&5 1611 mv -f conftest.er1 conftest.err 1612 fi 1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1614 test $ac_status = 0; } > conftest.i && { 1615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1616 test ! -s conftest.err 1617 }; then : 1618 ac_retval=0 1619else 1620 $as_echo "$as_me: failed program was:" >&5 1621sed 's/^/| /' conftest.$ac_ext >&5 1622 1623 ac_retval=1 1624fi 1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1626 as_fn_set_status $ac_retval 1627 1628} # ac_fn_c_try_cpp 1629 1630# ac_fn_c_try_link LINENO 1631# ----------------------- 1632# Try to link conftest.$ac_ext, and return whether this succeeded. 1633ac_fn_c_try_link () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 rm -f conftest.$ac_objext conftest$ac_exeext 1637 if { { ac_try="$ac_link" 1638case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_link") 2>conftest.err 1645 ac_status=$? 1646 if test -s conftest.err; then 1647 grep -v '^ *+' conftest.err >conftest.er1 1648 cat conftest.er1 >&5 1649 mv -f conftest.er1 conftest.err 1650 fi 1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652 test $ac_status = 0; } && { 1653 test -z "$ac_c_werror_flag" || 1654 test ! -s conftest.err 1655 } && test -s conftest$ac_exeext && { 1656 test "$cross_compiling" = yes || 1657 test -x conftest$ac_exeext 1658 }; then : 1659 ac_retval=0 1660else 1661 $as_echo "$as_me: failed program was:" >&5 1662sed 's/^/| /' conftest.$ac_ext >&5 1663 1664 ac_retval=1 1665fi 1666 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1667 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1668 # interfere with the next link command; also delete a directory that is 1669 # left behind by Apple's compiler. We do this before executing the actions. 1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 as_fn_set_status $ac_retval 1673 1674} # ac_fn_c_try_link 1675 1676# ac_fn_c_try_run LINENO 1677# ---------------------- 1678# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1679# that executables *can* be run. 1680ac_fn_c_try_run () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 if { { ac_try="$ac_link" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689$as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_link") 2>&5 1691 ac_status=$? 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1694 { { case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697esac 1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699$as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_try") 2>&5 1701 ac_status=$? 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; }; }; then : 1704 ac_retval=0 1705else 1706 $as_echo "$as_me: program exited with status $ac_status" >&5 1707 $as_echo "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=$ac_status 1711fi 1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716} # ac_fn_c_try_run 1717 1718# ac_fn_cxx_try_compile LINENO 1719# ---------------------------- 1720# Try to compile conftest.$ac_ext, and return whether this succeeded. 1721ac_fn_cxx_try_compile () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 rm -f conftest.$ac_objext 1725 if { { ac_try="$ac_compile" 1726case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_compile") 2>conftest.err 1733 ac_status=$? 1734 if test -s conftest.err; then 1735 grep -v '^ *+' conftest.err >conftest.er1 1736 cat conftest.er1 >&5 1737 mv -f conftest.er1 conftest.err 1738 fi 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; } && { 1741 test -z "$ac_cxx_werror_flag" || 1742 test ! -s conftest.err 1743 } && test -s conftest.$ac_objext; then : 1744 ac_retval=0 1745else 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=1 1750fi 1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1752 as_fn_set_status $ac_retval 1753 1754} # ac_fn_cxx_try_compile 1755 1756# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1757# ------------------------------------------------------- 1758# Tests whether HEADER exists and can be compiled using the include files in 1759# INCLUDES, setting the cache variable VAR accordingly. 1760ac_fn_c_check_header_compile () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1764$as_echo_n "checking for $2... " >&6; } 1765if eval \${$3+:} false; then : 1766 $as_echo_n "(cached) " >&6 1767else 1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1769/* end confdefs.h. */ 1770$4 1771#include <$2> 1772_ACEOF 1773if ac_fn_c_try_compile "$LINENO"; then : 1774 eval "$3=yes" 1775else 1776 eval "$3=no" 1777fi 1778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1779fi 1780eval ac_res=\$$3 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1782$as_echo "$ac_res" >&6; } 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784 1785} # ac_fn_c_check_header_compile 1786 1787# ac_fn_c_check_func LINENO FUNC VAR 1788# ---------------------------------- 1789# Tests whether FUNC exists, setting the cache variable VAR accordingly 1790ac_fn_c_check_func () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1794$as_echo_n "checking for $2... " >&6; } 1795if eval \${$3+:} false; then : 1796 $as_echo_n "(cached) " >&6 1797else 1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1799/* end confdefs.h. */ 1800/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1801 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1802#define $2 innocuous_$2 1803 1804/* System header to define __stub macros and hopefully few prototypes, 1805 which can conflict with char $2 (); below. 1806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1807 <limits.h> exists even on freestanding compilers. */ 1808 1809#ifdef __STDC__ 1810# include <limits.h> 1811#else 1812# include <assert.h> 1813#endif 1814 1815#undef $2 1816 1817/* Override any GCC internal prototype to avoid an error. 1818 Use char because int might match the return type of a GCC 1819 builtin and then its argument prototype would still apply. */ 1820#ifdef __cplusplus 1821extern "C" 1822#endif 1823char $2 (); 1824/* The GNU C library defines this for functions which it implements 1825 to always fail with ENOSYS. Some functions are actually named 1826 something starting with __ and the normal name is an alias. */ 1827#if defined __stub_$2 || defined __stub___$2 1828choke me 1829#endif 1830 1831int 1832main () 1833{ 1834return $2 (); 1835 ; 1836 return 0; 1837} 1838_ACEOF 1839if ac_fn_c_try_link "$LINENO"; then : 1840 eval "$3=yes" 1841else 1842 eval "$3=no" 1843fi 1844rm -f core conftest.err conftest.$ac_objext \ 1845 conftest$ac_exeext conftest.$ac_ext 1846fi 1847eval ac_res=\$$3 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1849$as_echo "$ac_res" >&6; } 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 1852} # ac_fn_c_check_func 1853 1854# ac_fn_cxx_try_cpp LINENO 1855# ------------------------ 1856# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1857ac_fn_cxx_try_cpp () 1858{ 1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1860 if { { ac_try="$ac_cpp conftest.$ac_ext" 1861case "(($ac_try" in 1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1863 *) ac_try_echo=$ac_try;; 1864esac 1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1866$as_echo "$ac_try_echo"; } >&5 1867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1868 ac_status=$? 1869 if test -s conftest.err; then 1870 grep -v '^ *+' conftest.err >conftest.er1 1871 cat conftest.er1 >&5 1872 mv -f conftest.er1 conftest.err 1873 fi 1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1875 test $ac_status = 0; } > conftest.i && { 1876 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1877 test ! -s conftest.err 1878 }; then : 1879 ac_retval=0 1880else 1881 $as_echo "$as_me: failed program was:" >&5 1882sed 's/^/| /' conftest.$ac_ext >&5 1883 1884 ac_retval=1 1885fi 1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1887 as_fn_set_status $ac_retval 1888 1889} # ac_fn_cxx_try_cpp 1890 1891# ac_fn_cxx_try_link LINENO 1892# ------------------------- 1893# Try to link conftest.$ac_ext, and return whether this succeeded. 1894ac_fn_cxx_try_link () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 rm -f conftest.$ac_objext conftest$ac_exeext 1898 if { { ac_try="$ac_link" 1899case "(($ac_try" in 1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1901 *) ac_try_echo=$ac_try;; 1902esac 1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1904$as_echo "$ac_try_echo"; } >&5 1905 (eval "$ac_link") 2>conftest.err 1906 ac_status=$? 1907 if test -s conftest.err; then 1908 grep -v '^ *+' conftest.err >conftest.er1 1909 cat conftest.er1 >&5 1910 mv -f conftest.er1 conftest.err 1911 fi 1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1913 test $ac_status = 0; } && { 1914 test -z "$ac_cxx_werror_flag" || 1915 test ! -s conftest.err 1916 } && test -s conftest$ac_exeext && { 1917 test "$cross_compiling" = yes || 1918 test -x conftest$ac_exeext 1919 }; then : 1920 ac_retval=0 1921else 1922 $as_echo "$as_me: failed program was:" >&5 1923sed 's/^/| /' conftest.$ac_ext >&5 1924 1925 ac_retval=1 1926fi 1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1929 # interfere with the next link command; also delete a directory that is 1930 # left behind by Apple's compiler. We do this before executing the actions. 1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1933 as_fn_set_status $ac_retval 1934 1935} # ac_fn_cxx_try_link 1936 1937# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1938# ------------------------------------------------------- 1939# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1940# the include files in INCLUDES and setting the cache variable VAR 1941# accordingly. 1942ac_fn_c_check_header_mongrel () 1943{ 1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1945 if eval \${$3+:} false; then : 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1947$as_echo_n "checking for $2... " >&6; } 1948if eval \${$3+:} false; then : 1949 $as_echo_n "(cached) " >&6 1950fi 1951eval ac_res=\$$3 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1953$as_echo "$ac_res" >&6; } 1954else 1955 # Is the header compilable? 1956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1957$as_echo_n "checking $2 usability... " >&6; } 1958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1959/* end confdefs.h. */ 1960$4 1961#include <$2> 1962_ACEOF 1963if ac_fn_c_try_compile "$LINENO"; then : 1964 ac_header_compiler=yes 1965else 1966 ac_header_compiler=no 1967fi 1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1970$as_echo "$ac_header_compiler" >&6; } 1971 1972# Is the header present? 1973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1974$as_echo_n "checking $2 presence... " >&6; } 1975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1976/* end confdefs.h. */ 1977#include <$2> 1978_ACEOF 1979if ac_fn_c_try_cpp "$LINENO"; then : 1980 ac_header_preproc=yes 1981else 1982 ac_header_preproc=no 1983fi 1984rm -f conftest.err conftest.i conftest.$ac_ext 1985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1986$as_echo "$ac_header_preproc" >&6; } 1987 1988# So? What about this header? 1989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1990 yes:no: ) 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1992$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1994$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1995 ;; 1996 no:yes:* ) 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1998$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2000$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2002$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2004$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2006$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2007 ;; 2008esac 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2010$as_echo_n "checking for $2... " >&6; } 2011if eval \${$3+:} false; then : 2012 $as_echo_n "(cached) " >&6 2013else 2014 eval "$3=\$ac_header_compiler" 2015fi 2016eval ac_res=\$$3 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2018$as_echo "$ac_res" >&6; } 2019fi 2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2021 2022} # ac_fn_c_check_header_mongrel 2023 2024# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2025# ------------------------------------------- 2026# Tests whether TYPE exists after having included INCLUDES, setting cache 2027# variable VAR accordingly. 2028ac_fn_c_check_type () 2029{ 2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2032$as_echo_n "checking for $2... " >&6; } 2033if eval \${$3+:} false; then : 2034 $as_echo_n "(cached) " >&6 2035else 2036 eval "$3=no" 2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2038/* end confdefs.h. */ 2039$4 2040int 2041main () 2042{ 2043if (sizeof ($2)) 2044 return 0; 2045 ; 2046 return 0; 2047} 2048_ACEOF 2049if ac_fn_c_try_compile "$LINENO"; then : 2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2051/* end confdefs.h. */ 2052$4 2053int 2054main () 2055{ 2056if (sizeof (($2))) 2057 return 0; 2058 ; 2059 return 0; 2060} 2061_ACEOF 2062if ac_fn_c_try_compile "$LINENO"; then : 2063 2064else 2065 eval "$3=yes" 2066fi 2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2068fi 2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2070fi 2071eval ac_res=\$$3 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2073$as_echo "$ac_res" >&6; } 2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2075 2076} # ac_fn_c_check_type 2077cat >config.log <<_ACEOF 2078This file contains any messages produced by compilers while 2079running configure, to aid debugging if configure makes a mistake. 2080 2081It was created by toppler $as_me 1.1.6, which was 2082generated by GNU Autoconf 2.69. Invocation command line was 2083 2084 $ $0 $@ 2085 2086_ACEOF 2087exec 5>>config.log 2088{ 2089cat <<_ASUNAME 2090## --------- ## 2091## Platform. ## 2092## --------- ## 2093 2094hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2095uname -m = `(uname -m) 2>/dev/null || echo unknown` 2096uname -r = `(uname -r) 2>/dev/null || echo unknown` 2097uname -s = `(uname -s) 2>/dev/null || echo unknown` 2098uname -v = `(uname -v) 2>/dev/null || echo unknown` 2099 2100/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2101/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2102 2103/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2104/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2105/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2106/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2107/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2108/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2109/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2110 2111_ASUNAME 2112 2113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2114for as_dir in $PATH 2115do 2116 IFS=$as_save_IFS 2117 test -z "$as_dir" && as_dir=. 2118 $as_echo "PATH: $as_dir" 2119 done 2120IFS=$as_save_IFS 2121 2122} >&5 2123 2124cat >&5 <<_ACEOF 2125 2126 2127## ----------- ## 2128## Core tests. ## 2129## ----------- ## 2130 2131_ACEOF 2132 2133 2134# Keep a trace of the command line. 2135# Strip out --no-create and --no-recursion so they do not pile up. 2136# Strip out --silent because we don't want to record it for future runs. 2137# Also quote any args containing shell meta-characters. 2138# Make two passes to allow for proper duplicate-argument suppression. 2139ac_configure_args= 2140ac_configure_args0= 2141ac_configure_args1= 2142ac_must_keep_next=false 2143for ac_pass in 1 2 2144do 2145 for ac_arg 2146 do 2147 case $ac_arg in 2148 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2150 | -silent | --silent | --silen | --sile | --sil) 2151 continue ;; 2152 *\'*) 2153 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2154 esac 2155 case $ac_pass in 2156 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2157 2) 2158 as_fn_append ac_configure_args1 " '$ac_arg'" 2159 if test $ac_must_keep_next = true; then 2160 ac_must_keep_next=false # Got value, back to normal. 2161 else 2162 case $ac_arg in 2163 *=* | --config-cache | -C | -disable-* | --disable-* \ 2164 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2165 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2166 | -with-* | --with-* | -without-* | --without-* | --x) 2167 case "$ac_configure_args0 " in 2168 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2169 esac 2170 ;; 2171 -* ) ac_must_keep_next=true ;; 2172 esac 2173 fi 2174 as_fn_append ac_configure_args " '$ac_arg'" 2175 ;; 2176 esac 2177 done 2178done 2179{ ac_configure_args0=; unset ac_configure_args0;} 2180{ ac_configure_args1=; unset ac_configure_args1;} 2181 2182# When interrupted or exit'd, cleanup temporary files, and complete 2183# config.log. We remove comments because anyway the quotes in there 2184# would cause problems or look ugly. 2185# WARNING: Use '\'' to represent an apostrophe within the trap. 2186# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2187trap 'exit_status=$? 2188 # Save into config.log some information that might help in debugging. 2189 { 2190 echo 2191 2192 $as_echo "## ---------------- ## 2193## Cache variables. ## 2194## ---------------- ##" 2195 echo 2196 # The following way of writing the cache mishandles newlines in values, 2197( 2198 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2199 eval ac_val=\$$ac_var 2200 case $ac_val in #( 2201 *${as_nl}*) 2202 case $ac_var in #( 2203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2204$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2205 esac 2206 case $ac_var in #( 2207 _ | IFS | as_nl) ;; #( 2208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2209 *) { eval $ac_var=; unset $ac_var;} ;; 2210 esac ;; 2211 esac 2212 done 2213 (set) 2>&1 | 2214 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2215 *${as_nl}ac_space=\ *) 2216 sed -n \ 2217 "s/'\''/'\''\\\\'\'''\''/g; 2218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2219 ;; #( 2220 *) 2221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2222 ;; 2223 esac | 2224 sort 2225) 2226 echo 2227 2228 $as_echo "## ----------------- ## 2229## Output variables. ## 2230## ----------------- ##" 2231 echo 2232 for ac_var in $ac_subst_vars 2233 do 2234 eval ac_val=\$$ac_var 2235 case $ac_val in 2236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2237 esac 2238 $as_echo "$ac_var='\''$ac_val'\''" 2239 done | sort 2240 echo 2241 2242 if test -n "$ac_subst_files"; then 2243 $as_echo "## ------------------- ## 2244## File substitutions. ## 2245## ------------------- ##" 2246 echo 2247 for ac_var in $ac_subst_files 2248 do 2249 eval ac_val=\$$ac_var 2250 case $ac_val in 2251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2252 esac 2253 $as_echo "$ac_var='\''$ac_val'\''" 2254 done | sort 2255 echo 2256 fi 2257 2258 if test -s confdefs.h; then 2259 $as_echo "## ----------- ## 2260## confdefs.h. ## 2261## ----------- ##" 2262 echo 2263 cat confdefs.h 2264 echo 2265 fi 2266 test "$ac_signal" != 0 && 2267 $as_echo "$as_me: caught signal $ac_signal" 2268 $as_echo "$as_me: exit $exit_status" 2269 } >&5 2270 rm -f core *.core core.conftest.* && 2271 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2272 exit $exit_status 2273' 0 2274for ac_signal in 1 2 13 15; do 2275 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2276done 2277ac_signal=0 2278 2279# confdefs.h avoids OS command line length limits that DEFS can exceed. 2280rm -f -r conftest* confdefs.h 2281 2282$as_echo "/* confdefs.h */" > confdefs.h 2283 2284# Predefined preprocessor variables. 2285 2286cat >>confdefs.h <<_ACEOF 2287#define PACKAGE_NAME "$PACKAGE_NAME" 2288_ACEOF 2289 2290cat >>confdefs.h <<_ACEOF 2291#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2292_ACEOF 2293 2294cat >>confdefs.h <<_ACEOF 2295#define PACKAGE_VERSION "$PACKAGE_VERSION" 2296_ACEOF 2297 2298cat >>confdefs.h <<_ACEOF 2299#define PACKAGE_STRING "$PACKAGE_STRING" 2300_ACEOF 2301 2302cat >>confdefs.h <<_ACEOF 2303#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2304_ACEOF 2305 2306cat >>confdefs.h <<_ACEOF 2307#define PACKAGE_URL "$PACKAGE_URL" 2308_ACEOF 2309 2310 2311# Let the site file select an alternate cache file if it wants to. 2312# Prefer an explicitly selected file to automatically selected ones. 2313ac_site_file1=NONE 2314ac_site_file2=NONE 2315if test -n "$CONFIG_SITE"; then 2316 # We do not want a PATH search for config.site. 2317 case $CONFIG_SITE in #(( 2318 -*) ac_site_file1=./$CONFIG_SITE;; 2319 */*) ac_site_file1=$CONFIG_SITE;; 2320 *) ac_site_file1=./$CONFIG_SITE;; 2321 esac 2322elif test "x$prefix" != xNONE; then 2323 ac_site_file1=$prefix/share/config.site 2324 ac_site_file2=$prefix/etc/config.site 2325else 2326 ac_site_file1=$ac_default_prefix/share/config.site 2327 ac_site_file2=$ac_default_prefix/etc/config.site 2328fi 2329for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2330do 2331 test "x$ac_site_file" = xNONE && continue 2332 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2334$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2335 sed 's/^/| /' "$ac_site_file" >&5 2336 . "$ac_site_file" \ 2337 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2339as_fn_error $? "failed to load site script $ac_site_file 2340See \`config.log' for more details" "$LINENO" 5; } 2341 fi 2342done 2343 2344if test -r "$cache_file"; then 2345 # Some versions of bash will fail to source /dev/null (special files 2346 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2347 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2349$as_echo "$as_me: loading cache $cache_file" >&6;} 2350 case $cache_file in 2351 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2352 *) . "./$cache_file";; 2353 esac 2354 fi 2355else 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2357$as_echo "$as_me: creating cache $cache_file" >&6;} 2358 >$cache_file 2359fi 2360 2361gt_needs="$gt_needs " 2362# Check that the precious variables saved in the cache have kept the same 2363# value. 2364ac_cache_corrupted=false 2365for ac_var in $ac_precious_vars; do 2366 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2367 eval ac_new_set=\$ac_env_${ac_var}_set 2368 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2369 eval ac_new_val=\$ac_env_${ac_var}_value 2370 case $ac_old_set,$ac_new_set in 2371 set,) 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2373$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2374 ac_cache_corrupted=: ;; 2375 ,set) 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2377$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2378 ac_cache_corrupted=: ;; 2379 ,);; 2380 *) 2381 if test "x$ac_old_val" != "x$ac_new_val"; then 2382 # differences in whitespace do not lead to failure. 2383 ac_old_val_w=`echo x $ac_old_val` 2384 ac_new_val_w=`echo x $ac_new_val` 2385 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2387$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2388 ac_cache_corrupted=: 2389 else 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2391$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2392 eval $ac_var=\$ac_old_val 2393 fi 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2395$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2397$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2398 fi;; 2399 esac 2400 # Pass precious variables to config.status. 2401 if test "$ac_new_set" = set; then 2402 case $ac_new_val in 2403 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2404 *) ac_arg=$ac_var=$ac_new_val ;; 2405 esac 2406 case " $ac_configure_args " in 2407 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2408 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2409 esac 2410 fi 2411done 2412if $ac_cache_corrupted; then 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2416$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2417 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2418fi 2419## -------------------- ## 2420## Main body of script. ## 2421## -------------------- ## 2422 2423ac_ext=c 2424ac_cpp='$CPP $CPPFLAGS' 2425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2427ac_compiler_gnu=$ac_cv_c_compiler_gnu 2428 2429 2430ac_aux_dir= 2431for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2432 if test -f "$ac_dir/install-sh"; then 2433 ac_aux_dir=$ac_dir 2434 ac_install_sh="$ac_aux_dir/install-sh -c" 2435 break 2436 elif test -f "$ac_dir/install.sh"; then 2437 ac_aux_dir=$ac_dir 2438 ac_install_sh="$ac_aux_dir/install.sh -c" 2439 break 2440 elif test -f "$ac_dir/shtool"; then 2441 ac_aux_dir=$ac_dir 2442 ac_install_sh="$ac_aux_dir/shtool install -c" 2443 break 2444 fi 2445done 2446if test -z "$ac_aux_dir"; then 2447 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2448fi 2449 2450# These three variables are undocumented and unsupported, 2451# and are intended to be withdrawn in a future Autoconf release. 2452# They can cause serious problems if a builder's source tree is in a directory 2453# whose full name contains unusual characters. 2454ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2455ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2456ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2457 2458 2459# Make sure we can run config.sub. 2460$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2461 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2462 2463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2464$as_echo_n "checking build system type... " >&6; } 2465if ${ac_cv_build+:} false; then : 2466 $as_echo_n "(cached) " >&6 2467else 2468 ac_build_alias=$build_alias 2469test "x$ac_build_alias" = x && 2470 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2471test "x$ac_build_alias" = x && 2472 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2473ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2474 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2475 2476fi 2477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2478$as_echo "$ac_cv_build" >&6; } 2479case $ac_cv_build in 2480*-*-*) ;; 2481*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2482esac 2483build=$ac_cv_build 2484ac_save_IFS=$IFS; IFS='-' 2485set x $ac_cv_build 2486shift 2487build_cpu=$1 2488build_vendor=$2 2489shift; shift 2490# Remember, the first character of IFS is used to create $*, 2491# except with old shells: 2492build_os=$* 2493IFS=$ac_save_IFS 2494case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2495 2496 2497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2498$as_echo_n "checking host system type... " >&6; } 2499if ${ac_cv_host+:} false; then : 2500 $as_echo_n "(cached) " >&6 2501else 2502 if test "x$host_alias" = x; then 2503 ac_cv_host=$ac_cv_build 2504else 2505 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2507fi 2508 2509fi 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2511$as_echo "$ac_cv_host" >&6; } 2512case $ac_cv_host in 2513*-*-*) ;; 2514*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2515esac 2516host=$ac_cv_host 2517ac_save_IFS=$IFS; IFS='-' 2518set x $ac_cv_host 2519shift 2520host_cpu=$1 2521host_vendor=$2 2522shift; shift 2523# Remember, the first character of IFS is used to create $*, 2524# except with old shells: 2525host_os=$* 2526IFS=$ac_save_IFS 2527case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2528 2529 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2531$as_echo_n "checking target system type... " >&6; } 2532if ${ac_cv_target+:} false; then : 2533 $as_echo_n "(cached) " >&6 2534else 2535 if test "x$target_alias" = x; then 2536 ac_cv_target=$ac_cv_host 2537else 2538 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2540fi 2541 2542fi 2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2544$as_echo "$ac_cv_target" >&6; } 2545case $ac_cv_target in 2546*-*-*) ;; 2547*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2548esac 2549target=$ac_cv_target 2550ac_save_IFS=$IFS; IFS='-' 2551set x $ac_cv_target 2552shift 2553target_cpu=$1 2554target_vendor=$2 2555shift; shift 2556# Remember, the first character of IFS is used to create $*, 2557# except with old shells: 2558target_os=$* 2559IFS=$ac_save_IFS 2560case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2561 2562 2563# The aliases save the names the user supplied, while $host etc. 2564# will get canonicalized. 2565test -n "$target_alias" && 2566 test "$program_prefix$program_suffix$program_transform_name" = \ 2567 NONENONEs,x,x, && 2568 program_prefix=${target_alias}- 2569am__api_version='1.11' 2570 2571# Find a good install program. We prefer a C program (faster), 2572# so one script is as good as another. But avoid the broken or 2573# incompatible versions: 2574# SysV /etc/install, /usr/sbin/install 2575# SunOS /usr/etc/install 2576# IRIX /sbin/install 2577# AIX /bin/install 2578# AmigaOS /C/install, which installs bootblocks on floppy discs 2579# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2580# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2581# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2582# OS/2's system install, which has a completely different semantic 2583# ./install, which can be erroneously created by make from ./install.sh. 2584# Reject install programs that cannot install multiple files. 2585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2586$as_echo_n "checking for a BSD-compatible install... " >&6; } 2587if test -z "$INSTALL"; then 2588if ${ac_cv_path_install+:} false; then : 2589 $as_echo_n "(cached) " >&6 2590else 2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2592for as_dir in $PATH 2593do 2594 IFS=$as_save_IFS 2595 test -z "$as_dir" && as_dir=. 2596 # Account for people who put trailing slashes in PATH elements. 2597case $as_dir/ in #(( 2598 ./ | .// | /[cC]/* | \ 2599 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2600 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2601 /usr/ucb/* ) ;; 2602 *) 2603 # OSF1 and SCO ODT 3.0 have their own names for install. 2604 # Don't use installbsd from OSF since it installs stuff as root 2605 # by default. 2606 for ac_prog in ginstall scoinst install; do 2607 for ac_exec_ext in '' $ac_executable_extensions; do 2608 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2609 if test $ac_prog = install && 2610 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2611 # AIX install. It has an incompatible calling convention. 2612 : 2613 elif test $ac_prog = install && 2614 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2615 # program-specific install script used by HP pwplus--don't use. 2616 : 2617 else 2618 rm -rf conftest.one conftest.two conftest.dir 2619 echo one > conftest.one 2620 echo two > conftest.two 2621 mkdir conftest.dir 2622 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2623 test -s conftest.one && test -s conftest.two && 2624 test -s conftest.dir/conftest.one && 2625 test -s conftest.dir/conftest.two 2626 then 2627 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2628 break 3 2629 fi 2630 fi 2631 fi 2632 done 2633 done 2634 ;; 2635esac 2636 2637 done 2638IFS=$as_save_IFS 2639 2640rm -rf conftest.one conftest.two conftest.dir 2641 2642fi 2643 if test "${ac_cv_path_install+set}" = set; then 2644 INSTALL=$ac_cv_path_install 2645 else 2646 # As a last resort, use the slow shell script. Don't cache a 2647 # value for INSTALL within a source directory, because that will 2648 # break other packages using the cache if that directory is 2649 # removed, or if the value is a relative name. 2650 INSTALL=$ac_install_sh 2651 fi 2652fi 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2654$as_echo "$INSTALL" >&6; } 2655 2656# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2657# It thinks the first close brace ends the variable substitution. 2658test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2659 2660test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2661 2662test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2663 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2665$as_echo_n "checking whether build environment is sane... " >&6; } 2666# Just in case 2667sleep 1 2668echo timestamp > conftest.file 2669# Reject unsafe characters in $srcdir or the absolute working directory 2670# name. Accept space and tab only in the latter. 2671am_lf=' 2672' 2673case `pwd` in 2674 *[\\\"\#\$\&\'\`$am_lf]*) 2675 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2676esac 2677case $srcdir in 2678 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2679 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2680esac 2681 2682# Do `set' in a subshell so we don't clobber the current shell's 2683# arguments. Must try -L first in case configure is actually a 2684# symlink; some systems play weird games with the mod time of symlinks 2685# (eg FreeBSD returns the mod time of the symlink's containing 2686# directory). 2687if ( 2688 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2689 if test "$*" = "X"; then 2690 # -L didn't work. 2691 set X `ls -t "$srcdir/configure" conftest.file` 2692 fi 2693 rm -f conftest.file 2694 if test "$*" != "X $srcdir/configure conftest.file" \ 2695 && test "$*" != "X conftest.file $srcdir/configure"; then 2696 2697 # If neither matched, then we have a broken ls. This can happen 2698 # if, for instance, CONFIG_SHELL is bash and it inherits a 2699 # broken ls alias from the environment. This has actually 2700 # happened. Such a system could not be considered "sane". 2701 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2702alias in your environment" "$LINENO" 5 2703 fi 2704 2705 test "$2" = conftest.file 2706 ) 2707then 2708 # Ok. 2709 : 2710else 2711 as_fn_error $? "newly created file is older than distributed files! 2712Check your system clock" "$LINENO" 5 2713fi 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2715$as_echo "yes" >&6; } 2716test "$program_prefix" != NONE && 2717 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2718# Use a double $ so make ignores it. 2719test "$program_suffix" != NONE && 2720 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2721# Double any \ or $. 2722# By default was `s,x,x', remove it if useless. 2723ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2724program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2725 2726# expand $ac_aux_dir to an absolute path 2727am_aux_dir=`cd $ac_aux_dir && pwd` 2728 2729if test x"${MISSING+set}" != xset; then 2730 case $am_aux_dir in 2731 *\ * | *\ *) 2732 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2733 *) 2734 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2735 esac 2736fi 2737# Use eval to expand $SHELL 2738if eval "$MISSING --run true"; then 2739 am_missing_run="$MISSING --run " 2740else 2741 am_missing_run= 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2743$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2744fi 2745 2746if test x"${install_sh}" != xset; then 2747 case $am_aux_dir in 2748 *\ * | *\ *) 2749 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2750 *) 2751 install_sh="\${SHELL} $am_aux_dir/install-sh" 2752 esac 2753fi 2754 2755# Installed binaries are usually stripped using `strip' when the user 2756# run `make install-strip'. However `strip' might not be the right 2757# tool to use in cross-compilation environments, therefore Automake 2758# will honor the `STRIP' environment variable to overrule this program. 2759if test "$cross_compiling" != no; then 2760 if test -n "$ac_tool_prefix"; then 2761 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2762set dummy ${ac_tool_prefix}strip; ac_word=$2 2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2764$as_echo_n "checking for $ac_word... " >&6; } 2765if ${ac_cv_prog_STRIP+:} false; then : 2766 $as_echo_n "(cached) " >&6 2767else 2768 if test -n "$STRIP"; then 2769 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2770else 2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2772for as_dir in $PATH 2773do 2774 IFS=$as_save_IFS 2775 test -z "$as_dir" && as_dir=. 2776 for ac_exec_ext in '' $ac_executable_extensions; do 2777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2778 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2780 break 2 2781 fi 2782done 2783 done 2784IFS=$as_save_IFS 2785 2786fi 2787fi 2788STRIP=$ac_cv_prog_STRIP 2789if test -n "$STRIP"; then 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2791$as_echo "$STRIP" >&6; } 2792else 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2794$as_echo "no" >&6; } 2795fi 2796 2797 2798fi 2799if test -z "$ac_cv_prog_STRIP"; then 2800 ac_ct_STRIP=$STRIP 2801 # Extract the first word of "strip", so it can be a program name with args. 2802set dummy strip; ac_word=$2 2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2804$as_echo_n "checking for $ac_word... " >&6; } 2805if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2806 $as_echo_n "(cached) " >&6 2807else 2808 if test -n "$ac_ct_STRIP"; then 2809 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2810else 2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2812for as_dir in $PATH 2813do 2814 IFS=$as_save_IFS 2815 test -z "$as_dir" && as_dir=. 2816 for ac_exec_ext in '' $ac_executable_extensions; do 2817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2818 ac_cv_prog_ac_ct_STRIP="strip" 2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2820 break 2 2821 fi 2822done 2823 done 2824IFS=$as_save_IFS 2825 2826fi 2827fi 2828ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2829if test -n "$ac_ct_STRIP"; then 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2831$as_echo "$ac_ct_STRIP" >&6; } 2832else 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2834$as_echo "no" >&6; } 2835fi 2836 2837 if test "x$ac_ct_STRIP" = x; then 2838 STRIP=":" 2839 else 2840 case $cross_compiling:$ac_tool_warned in 2841yes:) 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2844ac_tool_warned=yes ;; 2845esac 2846 STRIP=$ac_ct_STRIP 2847 fi 2848else 2849 STRIP="$ac_cv_prog_STRIP" 2850fi 2851 2852fi 2853INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2854 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2856$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2857if test -z "$MKDIR_P"; then 2858 if ${ac_cv_path_mkdir+:} false; then : 2859 $as_echo_n "(cached) " >&6 2860else 2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2862for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2863do 2864 IFS=$as_save_IFS 2865 test -z "$as_dir" && as_dir=. 2866 for ac_prog in mkdir gmkdir; do 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2869 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2870 'mkdir (GNU coreutils) '* | \ 2871 'mkdir (coreutils) '* | \ 2872 'mkdir (fileutils) '4.1*) 2873 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2874 break 3;; 2875 esac 2876 done 2877 done 2878 done 2879IFS=$as_save_IFS 2880 2881fi 2882 2883 test -d ./--version && rmdir ./--version 2884 if test "${ac_cv_path_mkdir+set}" = set; then 2885 MKDIR_P="$ac_cv_path_mkdir -p" 2886 else 2887 # As a last resort, use the slow shell script. Don't cache a 2888 # value for MKDIR_P within a source directory, because that will 2889 # break other packages using the cache if that directory is 2890 # removed, or if the value is a relative name. 2891 MKDIR_P="$ac_install_sh -d" 2892 fi 2893fi 2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2895$as_echo "$MKDIR_P" >&6; } 2896 2897mkdir_p="$MKDIR_P" 2898case $mkdir_p in 2899 [\\/$]* | ?:[\\/]*) ;; 2900 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2901esac 2902 2903for ac_prog in gawk mawk nawk awk 2904do 2905 # Extract the first word of "$ac_prog", so it can be a program name with args. 2906set dummy $ac_prog; ac_word=$2 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2908$as_echo_n "checking for $ac_word... " >&6; } 2909if ${ac_cv_prog_AWK+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 if test -n "$AWK"; then 2913 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2914else 2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916for as_dir in $PATH 2917do 2918 IFS=$as_save_IFS 2919 test -z "$as_dir" && as_dir=. 2920 for ac_exec_ext in '' $ac_executable_extensions; do 2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2922 ac_cv_prog_AWK="$ac_prog" 2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2924 break 2 2925 fi 2926done 2927 done 2928IFS=$as_save_IFS 2929 2930fi 2931fi 2932AWK=$ac_cv_prog_AWK 2933if test -n "$AWK"; then 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2935$as_echo "$AWK" >&6; } 2936else 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938$as_echo "no" >&6; } 2939fi 2940 2941 2942 test -n "$AWK" && break 2943done 2944 2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2946$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2947set x ${MAKE-make} 2948ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2949if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2950 $as_echo_n "(cached) " >&6 2951else 2952 cat >conftest.make <<\_ACEOF 2953SHELL = /bin/sh 2954all: 2955 @echo '@@@%%%=$(MAKE)=@@@%%%' 2956_ACEOF 2957# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2958case `${MAKE-make} -f conftest.make 2>/dev/null` in 2959 *@@@%%%=?*=@@@%%%*) 2960 eval ac_cv_prog_make_${ac_make}_set=yes;; 2961 *) 2962 eval ac_cv_prog_make_${ac_make}_set=no;; 2963esac 2964rm -f conftest.make 2965fi 2966if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2968$as_echo "yes" >&6; } 2969 SET_MAKE= 2970else 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2972$as_echo "no" >&6; } 2973 SET_MAKE="MAKE=${MAKE-make}" 2974fi 2975 2976rm -rf .tst 2>/dev/null 2977mkdir .tst 2>/dev/null 2978if test -d .tst; then 2979 am__leading_dot=. 2980else 2981 am__leading_dot=_ 2982fi 2983rmdir .tst 2>/dev/null 2984 2985if test "`cd $srcdir && pwd`" != "`pwd`"; then 2986 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2987 # is not polluted with repeated "-I." 2988 am__isrc=' -I$(srcdir)' 2989 # test to see if srcdir already configured 2990 if test -f $srcdir/config.status; then 2991 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2992 fi 2993fi 2994 2995# test whether we have cygpath 2996if test -z "$CYGPATH_W"; then 2997 if (cygpath --version) >/dev/null 2>/dev/null; then 2998 CYGPATH_W='cygpath -w' 2999 else 3000 CYGPATH_W=echo 3001 fi 3002fi 3003 3004 3005# Define the identity of the package. 3006 PACKAGE='toppler' 3007 VERSION='1.1.6' 3008 3009 3010cat >>confdefs.h <<_ACEOF 3011#define PACKAGE "$PACKAGE" 3012_ACEOF 3013 3014 3015cat >>confdefs.h <<_ACEOF 3016#define VERSION "$VERSION" 3017_ACEOF 3018 3019# Some tools Automake needs. 3020 3021ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3022 3023 3024AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3025 3026 3027AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3028 3029 3030AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3031 3032 3033MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3034 3035# We need awk for the "check" target. The system "awk" is bad on 3036# some platforms. 3037# Always define AMTAR for backward compatibility. Yes, it's still used 3038# in the wild :-( We should find a proper way to deprecate it ... 3039AMTAR='$${TAR-tar}' 3040 3041am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3042 3043 3044 3045 3046 3047 3048ac_config_headers="$ac_config_headers config.h" 3049 3050 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3052$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3053 # Check whether --enable-maintainer-mode was given. 3054if test "${enable_maintainer_mode+set}" = set; then : 3055 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3056else 3057 USE_MAINTAINER_MODE=no 3058fi 3059 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3061$as_echo "$USE_MAINTAINER_MODE" >&6; } 3062 if test $USE_MAINTAINER_MODE = yes; then 3063 MAINTAINER_MODE_TRUE= 3064 MAINTAINER_MODE_FALSE='#' 3065else 3066 MAINTAINER_MODE_TRUE='#' 3067 MAINTAINER_MODE_FALSE= 3068fi 3069 3070 MAINT=$MAINTAINER_MODE_TRUE 3071 3072 3073 3074# General information. 3075FULLNAME="Tower Toppler" 3076 3077URL="http://toppler.sourceforge.net/" 3078 3079 3080cat >>confdefs.h <<_ACEOF 3081#define FULLNAME "$FULLNAME" 3082_ACEOF 3083 3084 3085cat >>confdefs.h <<_ACEOF 3086#define URL "$URL" 3087_ACEOF 3088 3089 3090# Compiler options. 3091 3092# Additional variables. 3093 3094# I18n. 3095 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 3097$as_echo_n "checking whether NLS is requested... " >&6; } 3098 # Check whether --enable-nls was given. 3099if test "${enable_nls+set}" = set; then : 3100 enableval=$enable_nls; USE_NLS=$enableval 3101else 3102 USE_NLS=yes 3103fi 3104 3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 3106$as_echo "$USE_NLS" >&6; } 3107 3108 3109 3110 3111 GETTEXT_MACRO_VERSION=0.18 3112 3113 3114 3115 3116# Prepare PATH_SEPARATOR. 3117# The user is always right. 3118if test "${PATH_SEPARATOR+set}" != set; then 3119 echo "#! /bin/sh" >conf$$.sh 3120 echo "exit 0" >>conf$$.sh 3121 chmod +x conf$$.sh 3122 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3123 PATH_SEPARATOR=';' 3124 else 3125 PATH_SEPARATOR=: 3126 fi 3127 rm -f conf$$.sh 3128fi 3129 3130# Find out how to test for executable files. Don't use a zero-byte file, 3131# as systems may use methods other than mode bits to determine executability. 3132cat >conf$$.file <<_ASEOF 3133#! /bin/sh 3134exit 0 3135_ASEOF 3136chmod +x conf$$.file 3137if test -x conf$$.file >/dev/null 2>&1; then 3138 ac_executable_p="test -x" 3139else 3140 ac_executable_p="test -f" 3141fi 3142rm -f conf$$.file 3143 3144# Extract the first word of "msgfmt", so it can be a program name with args. 3145set dummy msgfmt; ac_word=$2 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3147$as_echo_n "checking for $ac_word... " >&6; } 3148if ${ac_cv_path_MSGFMT+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 case "$MSGFMT" in 3152 [\\/]* | ?:[\\/]*) 3153 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3154 ;; 3155 *) 3156 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3157 for ac_dir in $PATH; do 3158 IFS="$ac_save_IFS" 3159 test -z "$ac_dir" && ac_dir=. 3160 for ac_exec_ext in '' $ac_executable_extensions; do 3161 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3162 echo "$as_me: trying $ac_dir/$ac_word..." >&5 3163 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 3164 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3165 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 3166 break 2 3167 fi 3168 fi 3169 done 3170 done 3171 IFS="$ac_save_IFS" 3172 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 3173 ;; 3174esac 3175fi 3176MSGFMT="$ac_cv_path_MSGFMT" 3177if test "$MSGFMT" != ":"; then 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 3179$as_echo "$MSGFMT" >&6; } 3180else 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3182$as_echo "no" >&6; } 3183fi 3184 3185 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3186set dummy gmsgfmt; ac_word=$2 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3188$as_echo_n "checking for $ac_word... " >&6; } 3189if ${ac_cv_path_GMSGFMT+:} false; then : 3190 $as_echo_n "(cached) " >&6 3191else 3192 case $GMSGFMT in 3193 [\\/]* | ?:[\\/]*) 3194 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3195 ;; 3196 *) 3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3198for as_dir in $PATH 3199do 3200 IFS=$as_save_IFS 3201 test -z "$as_dir" && as_dir=. 3202 for ac_exec_ext in '' $ac_executable_extensions; do 3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3204 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3206 break 2 3207 fi 3208done 3209 done 3210IFS=$as_save_IFS 3211 3212 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 3213 ;; 3214esac 3215fi 3216GMSGFMT=$ac_cv_path_GMSGFMT 3217if test -n "$GMSGFMT"; then 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 3219$as_echo "$GMSGFMT" >&6; } 3220else 3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3222$as_echo "no" >&6; } 3223fi 3224 3225 3226 3227 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 3228 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 3229 *) MSGFMT_015=$MSGFMT ;; 3230 esac 3231 3232 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 3233 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 3234 *) GMSGFMT_015=$GMSGFMT ;; 3235 esac 3236 3237 3238 3239# Prepare PATH_SEPARATOR. 3240# The user is always right. 3241if test "${PATH_SEPARATOR+set}" != set; then 3242 echo "#! /bin/sh" >conf$$.sh 3243 echo "exit 0" >>conf$$.sh 3244 chmod +x conf$$.sh 3245 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3246 PATH_SEPARATOR=';' 3247 else 3248 PATH_SEPARATOR=: 3249 fi 3250 rm -f conf$$.sh 3251fi 3252 3253# Find out how to test for executable files. Don't use a zero-byte file, 3254# as systems may use methods other than mode bits to determine executability. 3255cat >conf$$.file <<_ASEOF 3256#! /bin/sh 3257exit 0 3258_ASEOF 3259chmod +x conf$$.file 3260if test -x conf$$.file >/dev/null 2>&1; then 3261 ac_executable_p="test -x" 3262else 3263 ac_executable_p="test -f" 3264fi 3265rm -f conf$$.file 3266 3267# Extract the first word of "xgettext", so it can be a program name with args. 3268set dummy xgettext; ac_word=$2 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3270$as_echo_n "checking for $ac_word... " >&6; } 3271if ${ac_cv_path_XGETTEXT+:} false; then : 3272 $as_echo_n "(cached) " >&6 3273else 3274 case "$XGETTEXT" in 3275 [\\/]* | ?:[\\/]*) 3276 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3277 ;; 3278 *) 3279 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3280 for ac_dir in $PATH; do 3281 IFS="$ac_save_IFS" 3282 test -z "$ac_dir" && ac_dir=. 3283 for ac_exec_ext in '' $ac_executable_extensions; do 3284 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3285 echo "$as_me: trying $ac_dir/$ac_word..." >&5 3286 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 3287 (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 3288 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 3289 break 2 3290 fi 3291 fi 3292 done 3293 done 3294 IFS="$ac_save_IFS" 3295 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 3296 ;; 3297esac 3298fi 3299XGETTEXT="$ac_cv_path_XGETTEXT" 3300if test "$XGETTEXT" != ":"; then 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 3302$as_echo "$XGETTEXT" >&6; } 3303else 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305$as_echo "no" >&6; } 3306fi 3307 3308 rm -f messages.po 3309 3310 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 3311 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 3312 *) XGETTEXT_015=$XGETTEXT ;; 3313 esac 3314 3315 3316 3317# Prepare PATH_SEPARATOR. 3318# The user is always right. 3319if test "${PATH_SEPARATOR+set}" != set; then 3320 echo "#! /bin/sh" >conf$$.sh 3321 echo "exit 0" >>conf$$.sh 3322 chmod +x conf$$.sh 3323 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3324 PATH_SEPARATOR=';' 3325 else 3326 PATH_SEPARATOR=: 3327 fi 3328 rm -f conf$$.sh 3329fi 3330 3331# Find out how to test for executable files. Don't use a zero-byte file, 3332# as systems may use methods other than mode bits to determine executability. 3333cat >conf$$.file <<_ASEOF 3334#! /bin/sh 3335exit 0 3336_ASEOF 3337chmod +x conf$$.file 3338if test -x conf$$.file >/dev/null 2>&1; then 3339 ac_executable_p="test -x" 3340else 3341 ac_executable_p="test -f" 3342fi 3343rm -f conf$$.file 3344 3345# Extract the first word of "msgmerge", so it can be a program name with args. 3346set dummy msgmerge; ac_word=$2 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3348$as_echo_n "checking for $ac_word... " >&6; } 3349if ${ac_cv_path_MSGMERGE+:} false; then : 3350 $as_echo_n "(cached) " >&6 3351else 3352 case "$MSGMERGE" in 3353 [\\/]* | ?:[\\/]*) 3354 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 3355 ;; 3356 *) 3357 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3358 for ac_dir in $PATH; do 3359 IFS="$ac_save_IFS" 3360 test -z "$ac_dir" && ac_dir=. 3361 for ac_exec_ext in '' $ac_executable_extensions; do 3362 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3363 echo "$as_me: trying $ac_dir/$ac_word..." >&5 3364 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 3365 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 3366 break 2 3367 fi 3368 fi 3369 done 3370 done 3371 IFS="$ac_save_IFS" 3372 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 3373 ;; 3374esac 3375fi 3376MSGMERGE="$ac_cv_path_MSGMERGE" 3377if test "$MSGMERGE" != ":"; then 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 3379$as_echo "$MSGMERGE" >&6; } 3380else 3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3382$as_echo "no" >&6; } 3383fi 3384 3385 3386 test -n "$localedir" || localedir='${datadir}/locale' 3387 3388 3389 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 3390 3391 3392 ac_config_commands="$ac_config_commands po-directories" 3393 3394 3395 3396 if test "X$prefix" = "XNONE"; then 3397 acl_final_prefix="$ac_default_prefix" 3398 else 3399 acl_final_prefix="$prefix" 3400 fi 3401 if test "X$exec_prefix" = "XNONE"; then 3402 acl_final_exec_prefix='${prefix}' 3403 else 3404 acl_final_exec_prefix="$exec_prefix" 3405 fi 3406 acl_save_prefix="$prefix" 3407 prefix="$acl_final_prefix" 3408 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 3409 prefix="$acl_save_prefix" 3410 3411DEPDIR="${am__leading_dot}deps" 3412 3413ac_config_commands="$ac_config_commands depfiles" 3414 3415 3416am_make=${MAKE-make} 3417cat > confinc << 'END' 3418am__doit: 3419 @echo this is the am__doit target 3420.PHONY: am__doit 3421END 3422# If we don't find an include directive, just comment out the code. 3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3424$as_echo_n "checking for style of include used by $am_make... " >&6; } 3425am__include="#" 3426am__quote= 3427_am_result=none 3428# First try GNU make style include. 3429echo "include confinc" > confmf 3430# Ignore all kinds of additional output from `make'. 3431case `$am_make -s -f confmf 2> /dev/null` in #( 3432*the\ am__doit\ target*) 3433 am__include=include 3434 am__quote= 3435 _am_result=GNU 3436 ;; 3437esac 3438# Now try BSD make style include. 3439if test "$am__include" = "#"; then 3440 echo '.include "confinc"' > confmf 3441 case `$am_make -s -f confmf 2> /dev/null` in #( 3442 *the\ am__doit\ target*) 3443 am__include=.include 3444 am__quote="\"" 3445 _am_result=BSD 3446 ;; 3447 esac 3448fi 3449 3450 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3452$as_echo "$_am_result" >&6; } 3453rm -f confinc confmf 3454 3455# Check whether --enable-dependency-tracking was given. 3456if test "${enable_dependency_tracking+set}" = set; then : 3457 enableval=$enable_dependency_tracking; 3458fi 3459 3460if test "x$enable_dependency_tracking" != xno; then 3461 am_depcomp="$ac_aux_dir/depcomp" 3462 AMDEPBACKSLASH='\' 3463 am__nodep='_no' 3464fi 3465 if test "x$enable_dependency_tracking" != xno; then 3466 AMDEP_TRUE= 3467 AMDEP_FALSE='#' 3468else 3469 AMDEP_TRUE='#' 3470 AMDEP_FALSE= 3471fi 3472 3473 3474ac_ext=c 3475ac_cpp='$CPP $CPPFLAGS' 3476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3478ac_compiler_gnu=$ac_cv_c_compiler_gnu 3479if test -n "$ac_tool_prefix"; then 3480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3481set dummy ${ac_tool_prefix}gcc; ac_word=$2 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3483$as_echo_n "checking for $ac_word... " >&6; } 3484if ${ac_cv_prog_CC+:} false; then : 3485 $as_echo_n "(cached) " >&6 3486else 3487 if test -n "$CC"; then 3488 ac_cv_prog_CC="$CC" # Let the user override the test. 3489else 3490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3491for as_dir in $PATH 3492do 3493 IFS=$as_save_IFS 3494 test -z "$as_dir" && as_dir=. 3495 for ac_exec_ext in '' $ac_executable_extensions; do 3496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3497 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3499 break 2 3500 fi 3501done 3502 done 3503IFS=$as_save_IFS 3504 3505fi 3506fi 3507CC=$ac_cv_prog_CC 3508if test -n "$CC"; then 3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3510$as_echo "$CC" >&6; } 3511else 3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3513$as_echo "no" >&6; } 3514fi 3515 3516 3517fi 3518if test -z "$ac_cv_prog_CC"; then 3519 ac_ct_CC=$CC 3520 # Extract the first word of "gcc", so it can be a program name with args. 3521set dummy gcc; ac_word=$2 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3523$as_echo_n "checking for $ac_word... " >&6; } 3524if ${ac_cv_prog_ac_ct_CC+:} false; then : 3525 $as_echo_n "(cached) " >&6 3526else 3527 if test -n "$ac_ct_CC"; then 3528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3529else 3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3531for as_dir in $PATH 3532do 3533 IFS=$as_save_IFS 3534 test -z "$as_dir" && as_dir=. 3535 for ac_exec_ext in '' $ac_executable_extensions; do 3536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3537 ac_cv_prog_ac_ct_CC="gcc" 3538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3539 break 2 3540 fi 3541done 3542 done 3543IFS=$as_save_IFS 3544 3545fi 3546fi 3547ac_ct_CC=$ac_cv_prog_ac_ct_CC 3548if test -n "$ac_ct_CC"; then 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3550$as_echo "$ac_ct_CC" >&6; } 3551else 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3553$as_echo "no" >&6; } 3554fi 3555 3556 if test "x$ac_ct_CC" = x; then 3557 CC="" 3558 else 3559 case $cross_compiling:$ac_tool_warned in 3560yes:) 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3563ac_tool_warned=yes ;; 3564esac 3565 CC=$ac_ct_CC 3566 fi 3567else 3568 CC="$ac_cv_prog_CC" 3569fi 3570 3571if test -z "$CC"; then 3572 if test -n "$ac_tool_prefix"; then 3573 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3574set dummy ${ac_tool_prefix}cc; ac_word=$2 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3576$as_echo_n "checking for $ac_word... " >&6; } 3577if ${ac_cv_prog_CC+:} false; then : 3578 $as_echo_n "(cached) " >&6 3579else 3580 if test -n "$CC"; then 3581 ac_cv_prog_CC="$CC" # Let the user override the test. 3582else 3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3584for as_dir in $PATH 3585do 3586 IFS=$as_save_IFS 3587 test -z "$as_dir" && as_dir=. 3588 for ac_exec_ext in '' $ac_executable_extensions; do 3589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3590 ac_cv_prog_CC="${ac_tool_prefix}cc" 3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3592 break 2 3593 fi 3594done 3595 done 3596IFS=$as_save_IFS 3597 3598fi 3599fi 3600CC=$ac_cv_prog_CC 3601if test -n "$CC"; then 3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3603$as_echo "$CC" >&6; } 3604else 3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3606$as_echo "no" >&6; } 3607fi 3608 3609 3610 fi 3611fi 3612if test -z "$CC"; then 3613 # Extract the first word of "cc", so it can be a program name with args. 3614set dummy cc; ac_word=$2 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3616$as_echo_n "checking for $ac_word... " >&6; } 3617if ${ac_cv_prog_CC+:} false; then : 3618 $as_echo_n "(cached) " >&6 3619else 3620 if test -n "$CC"; then 3621 ac_cv_prog_CC="$CC" # Let the user override the test. 3622else 3623 ac_prog_rejected=no 3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3625for as_dir in $PATH 3626do 3627 IFS=$as_save_IFS 3628 test -z "$as_dir" && as_dir=. 3629 for ac_exec_ext in '' $ac_executable_extensions; do 3630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3631 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3632 ac_prog_rejected=yes 3633 continue 3634 fi 3635 ac_cv_prog_CC="cc" 3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3637 break 2 3638 fi 3639done 3640 done 3641IFS=$as_save_IFS 3642 3643if test $ac_prog_rejected = yes; then 3644 # We found a bogon in the path, so make sure we never use it. 3645 set dummy $ac_cv_prog_CC 3646 shift 3647 if test $# != 0; then 3648 # We chose a different compiler from the bogus one. 3649 # However, it has the same basename, so the bogon will be chosen 3650 # first if we set CC to just the basename; use the full file name. 3651 shift 3652 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3653 fi 3654fi 3655fi 3656fi 3657CC=$ac_cv_prog_CC 3658if test -n "$CC"; then 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3660$as_echo "$CC" >&6; } 3661else 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3663$as_echo "no" >&6; } 3664fi 3665 3666 3667fi 3668if test -z "$CC"; then 3669 if test -n "$ac_tool_prefix"; then 3670 for ac_prog in cl.exe 3671 do 3672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3673set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3675$as_echo_n "checking for $ac_word... " >&6; } 3676if ${ac_cv_prog_CC+:} false; then : 3677 $as_echo_n "(cached) " >&6 3678else 3679 if test -n "$CC"; then 3680 ac_cv_prog_CC="$CC" # Let the user override the test. 3681else 3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3683for as_dir in $PATH 3684do 3685 IFS=$as_save_IFS 3686 test -z "$as_dir" && as_dir=. 3687 for ac_exec_ext in '' $ac_executable_extensions; do 3688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3689 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3691 break 2 3692 fi 3693done 3694 done 3695IFS=$as_save_IFS 3696 3697fi 3698fi 3699CC=$ac_cv_prog_CC 3700if test -n "$CC"; then 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3702$as_echo "$CC" >&6; } 3703else 3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3705$as_echo "no" >&6; } 3706fi 3707 3708 3709 test -n "$CC" && break 3710 done 3711fi 3712if test -z "$CC"; then 3713 ac_ct_CC=$CC 3714 for ac_prog in cl.exe 3715do 3716 # Extract the first word of "$ac_prog", so it can be a program name with args. 3717set dummy $ac_prog; ac_word=$2 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3719$as_echo_n "checking for $ac_word... " >&6; } 3720if ${ac_cv_prog_ac_ct_CC+:} false; then : 3721 $as_echo_n "(cached) " >&6 3722else 3723 if test -n "$ac_ct_CC"; then 3724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3725else 3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3727for as_dir in $PATH 3728do 3729 IFS=$as_save_IFS 3730 test -z "$as_dir" && as_dir=. 3731 for ac_exec_ext in '' $ac_executable_extensions; do 3732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3733 ac_cv_prog_ac_ct_CC="$ac_prog" 3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3735 break 2 3736 fi 3737done 3738 done 3739IFS=$as_save_IFS 3740 3741fi 3742fi 3743ac_ct_CC=$ac_cv_prog_ac_ct_CC 3744if test -n "$ac_ct_CC"; then 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3746$as_echo "$ac_ct_CC" >&6; } 3747else 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3749$as_echo "no" >&6; } 3750fi 3751 3752 3753 test -n "$ac_ct_CC" && break 3754done 3755 3756 if test "x$ac_ct_CC" = x; then 3757 CC="" 3758 else 3759 case $cross_compiling:$ac_tool_warned in 3760yes:) 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3763ac_tool_warned=yes ;; 3764esac 3765 CC=$ac_ct_CC 3766 fi 3767fi 3768 3769fi 3770 3771 3772test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3774as_fn_error $? "no acceptable C compiler found in \$PATH 3775See \`config.log' for more details" "$LINENO" 5; } 3776 3777# Provide some information about the compiler. 3778$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3779set X $ac_compile 3780ac_compiler=$2 3781for ac_option in --version -v -V -qversion; do 3782 { { ac_try="$ac_compiler $ac_option >&5" 3783case "(($ac_try" in 3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3785 *) ac_try_echo=$ac_try;; 3786esac 3787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3788$as_echo "$ac_try_echo"; } >&5 3789 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3790 ac_status=$? 3791 if test -s conftest.err; then 3792 sed '10a\ 3793... rest of stderr output deleted ... 3794 10q' conftest.err >conftest.er1 3795 cat conftest.er1 >&5 3796 fi 3797 rm -f conftest.er1 conftest.err 3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3799 test $ac_status = 0; } 3800done 3801 3802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804 3805int 3806main () 3807{ 3808 3809 ; 3810 return 0; 3811} 3812_ACEOF 3813ac_clean_files_save=$ac_clean_files 3814ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3815# Try to create an executable without -o first, disregard a.out. 3816# It will help us diagnose broken compilers, and finding out an intuition 3817# of exeext. 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3819$as_echo_n "checking whether the C compiler works... " >&6; } 3820ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3821 3822# The possible output files: 3823ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3824 3825ac_rmfiles= 3826for ac_file in $ac_files 3827do 3828 case $ac_file in 3829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3830 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3831 esac 3832done 3833rm -f $ac_rmfiles 3834 3835if { { ac_try="$ac_link_default" 3836case "(($ac_try" in 3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3838 *) ac_try_echo=$ac_try;; 3839esac 3840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3841$as_echo "$ac_try_echo"; } >&5 3842 (eval "$ac_link_default") 2>&5 3843 ac_status=$? 3844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3845 test $ac_status = 0; }; then : 3846 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3847# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3848# in a Makefile. We should not override ac_cv_exeext if it was cached, 3849# so that the user can short-circuit this test for compilers unknown to 3850# Autoconf. 3851for ac_file in $ac_files '' 3852do 3853 test -f "$ac_file" || continue 3854 case $ac_file in 3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3856 ;; 3857 [ab].out ) 3858 # We found the default executable, but exeext='' is most 3859 # certainly right. 3860 break;; 3861 *.* ) 3862 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3863 then :; else 3864 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3865 fi 3866 # We set ac_cv_exeext here because the later test for it is not 3867 # safe: cross compilers may not add the suffix if given an `-o' 3868 # argument, so we may need to know it at that point already. 3869 # Even if this section looks crufty: it has the advantage of 3870 # actually working. 3871 break;; 3872 * ) 3873 break;; 3874 esac 3875done 3876test "$ac_cv_exeext" = no && ac_cv_exeext= 3877 3878else 3879 ac_file='' 3880fi 3881if test -z "$ac_file"; then : 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3883$as_echo "no" >&6; } 3884$as_echo "$as_me: failed program was:" >&5 3885sed 's/^/| /' conftest.$ac_ext >&5 3886 3887{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3889as_fn_error 77 "C compiler cannot create executables 3890See \`config.log' for more details" "$LINENO" 5; } 3891else 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3893$as_echo "yes" >&6; } 3894fi 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3896$as_echo_n "checking for C compiler default output file name... " >&6; } 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3898$as_echo "$ac_file" >&6; } 3899ac_exeext=$ac_cv_exeext 3900 3901rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3902ac_clean_files=$ac_clean_files_save 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3904$as_echo_n "checking for suffix of executables... " >&6; } 3905if { { ac_try="$ac_link" 3906case "(($ac_try" in 3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3908 *) ac_try_echo=$ac_try;; 3909esac 3910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3911$as_echo "$ac_try_echo"; } >&5 3912 (eval "$ac_link") 2>&5 3913 ac_status=$? 3914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3915 test $ac_status = 0; }; then : 3916 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3917# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3918# work properly (i.e., refer to `conftest.exe'), while it won't with 3919# `rm'. 3920for ac_file in conftest.exe conftest conftest.*; do 3921 test -f "$ac_file" || continue 3922 case $ac_file in 3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3924 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3925 break;; 3926 * ) break;; 3927 esac 3928done 3929else 3930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3932as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3933See \`config.log' for more details" "$LINENO" 5; } 3934fi 3935rm -f conftest conftest$ac_cv_exeext 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3937$as_echo "$ac_cv_exeext" >&6; } 3938 3939rm -f conftest.$ac_ext 3940EXEEXT=$ac_cv_exeext 3941ac_exeext=$EXEEXT 3942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3943/* end confdefs.h. */ 3944#include <stdio.h> 3945int 3946main () 3947{ 3948FILE *f = fopen ("conftest.out", "w"); 3949 return ferror (f) || fclose (f) != 0; 3950 3951 ; 3952 return 0; 3953} 3954_ACEOF 3955ac_clean_files="$ac_clean_files conftest.out" 3956# Check that the compiler produces executables we can run. If not, either 3957# the compiler is broken, or we cross compile. 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3959$as_echo_n "checking whether we are cross compiling... " >&6; } 3960if test "$cross_compiling" != yes; then 3961 { { ac_try="$ac_link" 3962case "(($ac_try" in 3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3964 *) ac_try_echo=$ac_try;; 3965esac 3966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3967$as_echo "$ac_try_echo"; } >&5 3968 (eval "$ac_link") 2>&5 3969 ac_status=$? 3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3971 test $ac_status = 0; } 3972 if { ac_try='./conftest$ac_cv_exeext' 3973 { { case "(($ac_try" in 3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3975 *) ac_try_echo=$ac_try;; 3976esac 3977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3978$as_echo "$ac_try_echo"; } >&5 3979 (eval "$ac_try") 2>&5 3980 ac_status=$? 3981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3982 test $ac_status = 0; }; }; then 3983 cross_compiling=no 3984 else 3985 if test "$cross_compiling" = maybe; then 3986 cross_compiling=yes 3987 else 3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3990as_fn_error $? "cannot run C compiled programs. 3991If you meant to cross compile, use \`--host'. 3992See \`config.log' for more details" "$LINENO" 5; } 3993 fi 3994 fi 3995fi 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3997$as_echo "$cross_compiling" >&6; } 3998 3999rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4000ac_clean_files=$ac_clean_files_save 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4002$as_echo_n "checking for suffix of object files... " >&6; } 4003if ${ac_cv_objext+:} false; then : 4004 $as_echo_n "(cached) " >&6 4005else 4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4007/* end confdefs.h. */ 4008 4009int 4010main () 4011{ 4012 4013 ; 4014 return 0; 4015} 4016_ACEOF 4017rm -f conftest.o conftest.obj 4018if { { ac_try="$ac_compile" 4019case "(($ac_try" in 4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4021 *) ac_try_echo=$ac_try;; 4022esac 4023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4024$as_echo "$ac_try_echo"; } >&5 4025 (eval "$ac_compile") 2>&5 4026 ac_status=$? 4027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4028 test $ac_status = 0; }; then : 4029 for ac_file in conftest.o conftest.obj conftest.*; do 4030 test -f "$ac_file" || continue; 4031 case $ac_file in 4032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4033 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4034 break;; 4035 esac 4036done 4037else 4038 $as_echo "$as_me: failed program was:" >&5 4039sed 's/^/| /' conftest.$ac_ext >&5 4040 4041{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4043as_fn_error $? "cannot compute suffix of object files: cannot compile 4044See \`config.log' for more details" "$LINENO" 5; } 4045fi 4046rm -f conftest.$ac_cv_objext conftest.$ac_ext 4047fi 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4049$as_echo "$ac_cv_objext" >&6; } 4050OBJEXT=$ac_cv_objext 4051ac_objext=$OBJEXT 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4053$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4054if ${ac_cv_c_compiler_gnu+:} false; then : 4055 $as_echo_n "(cached) " >&6 4056else 4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4058/* end confdefs.h. */ 4059 4060int 4061main () 4062{ 4063#ifndef __GNUC__ 4064 choke me 4065#endif 4066 4067 ; 4068 return 0; 4069} 4070_ACEOF 4071if ac_fn_c_try_compile "$LINENO"; then : 4072 ac_compiler_gnu=yes 4073else 4074 ac_compiler_gnu=no 4075fi 4076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4077ac_cv_c_compiler_gnu=$ac_compiler_gnu 4078 4079fi 4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4081$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4082if test $ac_compiler_gnu = yes; then 4083 GCC=yes 4084else 4085 GCC= 4086fi 4087ac_test_CFLAGS=${CFLAGS+set} 4088ac_save_CFLAGS=$CFLAGS 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4090$as_echo_n "checking whether $CC accepts -g... " >&6; } 4091if ${ac_cv_prog_cc_g+:} false; then : 4092 $as_echo_n "(cached) " >&6 4093else 4094 ac_save_c_werror_flag=$ac_c_werror_flag 4095 ac_c_werror_flag=yes 4096 ac_cv_prog_cc_g=no 4097 CFLAGS="-g" 4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4099/* end confdefs.h. */ 4100 4101int 4102main () 4103{ 4104 4105 ; 4106 return 0; 4107} 4108_ACEOF 4109if ac_fn_c_try_compile "$LINENO"; then : 4110 ac_cv_prog_cc_g=yes 4111else 4112 CFLAGS="" 4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4114/* end confdefs.h. */ 4115 4116int 4117main () 4118{ 4119 4120 ; 4121 return 0; 4122} 4123_ACEOF 4124if ac_fn_c_try_compile "$LINENO"; then : 4125 4126else 4127 ac_c_werror_flag=$ac_save_c_werror_flag 4128 CFLAGS="-g" 4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4130/* end confdefs.h. */ 4131 4132int 4133main () 4134{ 4135 4136 ; 4137 return 0; 4138} 4139_ACEOF 4140if ac_fn_c_try_compile "$LINENO"; then : 4141 ac_cv_prog_cc_g=yes 4142fi 4143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4144fi 4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4146fi 4147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4148 ac_c_werror_flag=$ac_save_c_werror_flag 4149fi 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4151$as_echo "$ac_cv_prog_cc_g" >&6; } 4152if test "$ac_test_CFLAGS" = set; then 4153 CFLAGS=$ac_save_CFLAGS 4154elif test $ac_cv_prog_cc_g = yes; then 4155 if test "$GCC" = yes; then 4156 CFLAGS="-g -O2" 4157 else 4158 CFLAGS="-g" 4159 fi 4160else 4161 if test "$GCC" = yes; then 4162 CFLAGS="-O2" 4163 else 4164 CFLAGS= 4165 fi 4166fi 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4168$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4169if ${ac_cv_prog_cc_c89+:} false; then : 4170 $as_echo_n "(cached) " >&6 4171else 4172 ac_cv_prog_cc_c89=no 4173ac_save_CC=$CC 4174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4175/* end confdefs.h. */ 4176#include <stdarg.h> 4177#include <stdio.h> 4178struct stat; 4179/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4180struct buf { int x; }; 4181FILE * (*rcsopen) (struct buf *, struct stat *, int); 4182static char *e (p, i) 4183 char **p; 4184 int i; 4185{ 4186 return p[i]; 4187} 4188static char *f (char * (*g) (char **, int), char **p, ...) 4189{ 4190 char *s; 4191 va_list v; 4192 va_start (v,p); 4193 s = g (p, va_arg (v,int)); 4194 va_end (v); 4195 return s; 4196} 4197 4198/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4199 function prototypes and stuff, but not '\xHH' hex character constants. 4200 These don't provoke an error unfortunately, instead are silently treated 4201 as 'x'. The following induces an error, until -std is added to get 4202 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4203 array size at least. It's necessary to write '\x00'==0 to get something 4204 that's true only with -std. */ 4205int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4206 4207/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4208 inside strings and character constants. */ 4209#define FOO(x) 'x' 4210int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4211 4212int test (int i, double x); 4213struct s1 {int (*f) (int a);}; 4214struct s2 {int (*f) (double a);}; 4215int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4216int argc; 4217char **argv; 4218int 4219main () 4220{ 4221return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4222 ; 4223 return 0; 4224} 4225_ACEOF 4226for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4227 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4228do 4229 CC="$ac_save_CC $ac_arg" 4230 if ac_fn_c_try_compile "$LINENO"; then : 4231 ac_cv_prog_cc_c89=$ac_arg 4232fi 4233rm -f core conftest.err conftest.$ac_objext 4234 test "x$ac_cv_prog_cc_c89" != "xno" && break 4235done 4236rm -f conftest.$ac_ext 4237CC=$ac_save_CC 4238 4239fi 4240# AC_CACHE_VAL 4241case "x$ac_cv_prog_cc_c89" in 4242 x) 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4244$as_echo "none needed" >&6; } ;; 4245 xno) 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4247$as_echo "unsupported" >&6; } ;; 4248 *) 4249 CC="$CC $ac_cv_prog_cc_c89" 4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4251$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4252esac 4253if test "x$ac_cv_prog_cc_c89" != xno; then : 4254 4255fi 4256 4257ac_ext=c 4258ac_cpp='$CPP $CPPFLAGS' 4259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4261ac_compiler_gnu=$ac_cv_c_compiler_gnu 4262 4263depcc="$CC" am_compiler_list= 4264 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4266$as_echo_n "checking dependency style of $depcc... " >&6; } 4267if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4268 $as_echo_n "(cached) " >&6 4269else 4270 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4271 # We make a subdir and do the tests there. Otherwise we can end up 4272 # making bogus files that we don't know about and never remove. For 4273 # instance it was reported that on HP-UX the gcc test will end up 4274 # making a dummy file named `D' -- because `-MD' means `put the output 4275 # in D'. 4276 rm -rf conftest.dir 4277 mkdir conftest.dir 4278 # Copy depcomp to subdir because otherwise we won't find it if we're 4279 # using a relative directory. 4280 cp "$am_depcomp" conftest.dir 4281 cd conftest.dir 4282 # We will build objects and dependencies in a subdirectory because 4283 # it helps to detect inapplicable dependency modes. For instance 4284 # both Tru64's cc and ICC support -MD to output dependencies as a 4285 # side effect of compilation, but ICC will put the dependencies in 4286 # the current directory while Tru64 will put them in the object 4287 # directory. 4288 mkdir sub 4289 4290 am_cv_CC_dependencies_compiler_type=none 4291 if test "$am_compiler_list" = ""; then 4292 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4293 fi 4294 am__universal=false 4295 case " $depcc " in #( 4296 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4297 esac 4298 4299 for depmode in $am_compiler_list; do 4300 # Setup a source with many dependencies, because some compilers 4301 # like to wrap large dependency lists on column 80 (with \), and 4302 # we should not choose a depcomp mode which is confused by this. 4303 # 4304 # We need to recreate these files for each test, as the compiler may 4305 # overwrite some of them when testing with obscure command lines. 4306 # This happens at least with the AIX C compiler. 4307 : > sub/conftest.c 4308 for i in 1 2 3 4 5 6; do 4309 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4310 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4311 # Solaris 8's {/usr,}/bin/sh. 4312 touch sub/conftst$i.h 4313 done 4314 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4315 4316 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4317 # mode. It turns out that the SunPro C++ compiler does not properly 4318 # handle `-M -o', and we need to detect this. Also, some Intel 4319 # versions had trouble with output in subdirs 4320 am__obj=sub/conftest.${OBJEXT-o} 4321 am__minus_obj="-o $am__obj" 4322 case $depmode in 4323 gcc) 4324 # This depmode causes a compiler race in universal mode. 4325 test "$am__universal" = false || continue 4326 ;; 4327 nosideeffect) 4328 # after this tag, mechanisms are not by side-effect, so they'll 4329 # only be used when explicitly requested 4330 if test "x$enable_dependency_tracking" = xyes; then 4331 continue 4332 else 4333 break 4334 fi 4335 ;; 4336 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4337 # This compiler won't grok `-c -o', but also, the minuso test has 4338 # not run yet. These depmodes are late enough in the game, and 4339 # so weak that their functioning should not be impacted. 4340 am__obj=conftest.${OBJEXT-o} 4341 am__minus_obj= 4342 ;; 4343 none) break ;; 4344 esac 4345 if depmode=$depmode \ 4346 source=sub/conftest.c object=$am__obj \ 4347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4348 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4349 >/dev/null 2>conftest.err && 4350 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4351 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4352 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4353 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4354 # icc doesn't choke on unknown options, it will just issue warnings 4355 # or remarks (even with -Werror). So we grep stderr for any message 4356 # that says an option was ignored or not supported. 4357 # When given -MP, icc 7.0 and 7.1 complain thusly: 4358 # icc: Command line warning: ignoring option '-M'; no argument required 4359 # The diagnosis changed in icc 8.0: 4360 # icc: Command line remark: option '-MP' not supported 4361 if (grep 'ignoring option' conftest.err || 4362 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4363 am_cv_CC_dependencies_compiler_type=$depmode 4364 break 4365 fi 4366 fi 4367 done 4368 4369 cd .. 4370 rm -rf conftest.dir 4371else 4372 am_cv_CC_dependencies_compiler_type=none 4373fi 4374 4375fi 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4377$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4378CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4379 4380 if 4381 test "x$enable_dependency_tracking" != xno \ 4382 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4383 am__fastdepCC_TRUE= 4384 am__fastdepCC_FALSE='#' 4385else 4386 am__fastdepCC_TRUE='#' 4387 am__fastdepCC_FALSE= 4388fi 4389 4390 4391 4392# Check whether --with-gnu-ld was given. 4393if test "${with_gnu_ld+set}" = set; then : 4394 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4395else 4396 with_gnu_ld=no 4397fi 4398 4399# Prepare PATH_SEPARATOR. 4400# The user is always right. 4401if test "${PATH_SEPARATOR+set}" != set; then 4402 echo "#! /bin/sh" >conf$$.sh 4403 echo "exit 0" >>conf$$.sh 4404 chmod +x conf$$.sh 4405 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4406 PATH_SEPARATOR=';' 4407 else 4408 PATH_SEPARATOR=: 4409 fi 4410 rm -f conf$$.sh 4411fi 4412ac_prog=ld 4413if test "$GCC" = yes; then 4414 # Check if gcc -print-prog-name=ld gives a path. 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 4416$as_echo_n "checking for ld used by GCC... " >&6; } 4417 case $host in 4418 *-*-mingw*) 4419 # gcc leaves a trailing carriage return which upsets mingw 4420 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4421 *) 4422 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4423 esac 4424 case $ac_prog in 4425 # Accept absolute paths. 4426 [\\/]* | [A-Za-z]:[\\/]*) 4427 re_direlt='/[^/][^/]*/\.\./' 4428 # Canonicalize the path of ld 4429 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 4430 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4431 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 4432 done 4433 test -z "$LD" && LD="$ac_prog" 4434 ;; 4435 "") 4436 # If it fails, then pretend we aren't using GCC. 4437 ac_prog=ld 4438 ;; 4439 *) 4440 # If it is relative, then search for the first ld in PATH. 4441 with_gnu_ld=unknown 4442 ;; 4443 esac 4444elif test "$with_gnu_ld" = yes; then 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4446$as_echo_n "checking for GNU ld... " >&6; } 4447else 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4449$as_echo_n "checking for non-GNU ld... " >&6; } 4450fi 4451if ${acl_cv_path_LD+:} false; then : 4452 $as_echo_n "(cached) " >&6 4453else 4454 if test -z "$LD"; then 4455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 4456 for ac_dir in $PATH; do 4457 test -z "$ac_dir" && ac_dir=. 4458 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4459 acl_cv_path_LD="$ac_dir/$ac_prog" 4460 # Check to see if the program is GNU ld. I'd rather use --version, 4461 # but apparently some GNU ld's only accept -v. 4462 # Break only if it was the GNU/non-GNU ld that we prefer. 4463 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 4464 *GNU* | *'with BFD'*) 4465 test "$with_gnu_ld" != no && break ;; 4466 *) 4467 test "$with_gnu_ld" != yes && break ;; 4468 esac 4469 fi 4470 done 4471 IFS="$ac_save_ifs" 4472else 4473 acl_cv_path_LD="$LD" # Let the user override the test with a path. 4474fi 4475fi 4476 4477LD="$acl_cv_path_LD" 4478if test -n "$LD"; then 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4480$as_echo "$LD" >&6; } 4481else 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4483$as_echo "no" >&6; } 4484fi 4485test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4487$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4488if ${acl_cv_prog_gnu_ld+:} false; then : 4489 $as_echo_n "(cached) " >&6 4490else 4491 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4492case `$LD -v 2>&1 </dev/null` in 4493*GNU* | *'with BFD'*) 4494 acl_cv_prog_gnu_ld=yes ;; 4495*) 4496 acl_cv_prog_gnu_ld=no ;; 4497esac 4498fi 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 4500$as_echo "$acl_cv_prog_gnu_ld" >&6; } 4501with_gnu_ld=$acl_cv_prog_gnu_ld 4502 4503 4504 4505 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 4507$as_echo_n "checking for shared library run path origin... " >&6; } 4508if ${acl_cv_rpath+:} false; then : 4509 $as_echo_n "(cached) " >&6 4510else 4511 4512 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 4513 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 4514 . ./conftest.sh 4515 rm -f ./conftest.sh 4516 acl_cv_rpath=done 4517 4518fi 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 4520$as_echo "$acl_cv_rpath" >&6; } 4521 wl="$acl_cv_wl" 4522 acl_libext="$acl_cv_libext" 4523 acl_shlibext="$acl_cv_shlibext" 4524 acl_libname_spec="$acl_cv_libname_spec" 4525 acl_library_names_spec="$acl_cv_library_names_spec" 4526 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 4527 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 4528 acl_hardcode_direct="$acl_cv_hardcode_direct" 4529 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 4530 # Check whether --enable-rpath was given. 4531if test "${enable_rpath+set}" = set; then : 4532 enableval=$enable_rpath; : 4533else 4534 enable_rpath=yes 4535fi 4536 4537 4538 4539ac_ext=c 4540ac_cpp='$CPP $CPPFLAGS' 4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4543ac_compiler_gnu=$ac_cv_c_compiler_gnu 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4545$as_echo_n "checking how to run the C preprocessor... " >&6; } 4546# On Suns, sometimes $CPP names a directory. 4547if test -n "$CPP" && test -d "$CPP"; then 4548 CPP= 4549fi 4550if test -z "$CPP"; then 4551 if ${ac_cv_prog_CPP+:} false; then : 4552 $as_echo_n "(cached) " >&6 4553else 4554 # Double quotes because CPP needs to be expanded 4555 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4556 do 4557 ac_preproc_ok=false 4558for ac_c_preproc_warn_flag in '' yes 4559do 4560 # Use a header file that comes with gcc, so configuring glibc 4561 # with a fresh cross-compiler works. 4562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4563 # <limits.h> exists even on freestanding compilers. 4564 # On the NeXT, cc -E runs the code through the compiler's parser, 4565 # not just through cpp. "Syntax error" is here to catch this case. 4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4567/* end confdefs.h. */ 4568#ifdef __STDC__ 4569# include <limits.h> 4570#else 4571# include <assert.h> 4572#endif 4573 Syntax error 4574_ACEOF 4575if ac_fn_c_try_cpp "$LINENO"; then : 4576 4577else 4578 # Broken: fails on valid input. 4579continue 4580fi 4581rm -f conftest.err conftest.i conftest.$ac_ext 4582 4583 # OK, works on sane cases. Now check whether nonexistent headers 4584 # can be detected and how. 4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4586/* end confdefs.h. */ 4587#include <ac_nonexistent.h> 4588_ACEOF 4589if ac_fn_c_try_cpp "$LINENO"; then : 4590 # Broken: success on invalid input. 4591continue 4592else 4593 # Passes both tests. 4594ac_preproc_ok=: 4595break 4596fi 4597rm -f conftest.err conftest.i conftest.$ac_ext 4598 4599done 4600# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4601rm -f conftest.i conftest.err conftest.$ac_ext 4602if $ac_preproc_ok; then : 4603 break 4604fi 4605 4606 done 4607 ac_cv_prog_CPP=$CPP 4608 4609fi 4610 CPP=$ac_cv_prog_CPP 4611else 4612 ac_cv_prog_CPP=$CPP 4613fi 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4615$as_echo "$CPP" >&6; } 4616ac_preproc_ok=false 4617for ac_c_preproc_warn_flag in '' yes 4618do 4619 # Use a header file that comes with gcc, so configuring glibc 4620 # with a fresh cross-compiler works. 4621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4622 # <limits.h> exists even on freestanding compilers. 4623 # On the NeXT, cc -E runs the code through the compiler's parser, 4624 # not just through cpp. "Syntax error" is here to catch this case. 4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4626/* end confdefs.h. */ 4627#ifdef __STDC__ 4628# include <limits.h> 4629#else 4630# include <assert.h> 4631#endif 4632 Syntax error 4633_ACEOF 4634if ac_fn_c_try_cpp "$LINENO"; then : 4635 4636else 4637 # Broken: fails on valid input. 4638continue 4639fi 4640rm -f conftest.err conftest.i conftest.$ac_ext 4641 4642 # OK, works on sane cases. Now check whether nonexistent headers 4643 # can be detected and how. 4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4645/* end confdefs.h. */ 4646#include <ac_nonexistent.h> 4647_ACEOF 4648if ac_fn_c_try_cpp "$LINENO"; then : 4649 # Broken: success on invalid input. 4650continue 4651else 4652 # Passes both tests. 4653ac_preproc_ok=: 4654break 4655fi 4656rm -f conftest.err conftest.i conftest.$ac_ext 4657 4658done 4659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4660rm -f conftest.i conftest.err conftest.$ac_ext 4661if $ac_preproc_ok; then : 4662 4663else 4664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4666as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4667See \`config.log' for more details" "$LINENO" 5; } 4668fi 4669 4670ac_ext=c 4671ac_cpp='$CPP $CPPFLAGS' 4672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4674ac_compiler_gnu=$ac_cv_c_compiler_gnu 4675 4676 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4678$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4679if ${ac_cv_path_GREP+:} false; then : 4680 $as_echo_n "(cached) " >&6 4681else 4682 if test -z "$GREP"; then 4683 ac_path_GREP_found=false 4684 # Loop through the user's path and test for each of PROGNAME-LIST 4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4686for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4687do 4688 IFS=$as_save_IFS 4689 test -z "$as_dir" && as_dir=. 4690 for ac_prog in grep ggrep; do 4691 for ac_exec_ext in '' $ac_executable_extensions; do 4692 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4693 as_fn_executable_p "$ac_path_GREP" || continue 4694# Check for GNU ac_path_GREP and select it if it is found. 4695 # Check for GNU $ac_path_GREP 4696case `"$ac_path_GREP" --version 2>&1` in 4697*GNU*) 4698 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4699*) 4700 ac_count=0 4701 $as_echo_n 0123456789 >"conftest.in" 4702 while : 4703 do 4704 cat "conftest.in" "conftest.in" >"conftest.tmp" 4705 mv "conftest.tmp" "conftest.in" 4706 cp "conftest.in" "conftest.nl" 4707 $as_echo 'GREP' >> "conftest.nl" 4708 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4710 as_fn_arith $ac_count + 1 && ac_count=$as_val 4711 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4712 # Best one so far, save it but keep looking for a better one 4713 ac_cv_path_GREP="$ac_path_GREP" 4714 ac_path_GREP_max=$ac_count 4715 fi 4716 # 10*(2^10) chars as input seems more than enough 4717 test $ac_count -gt 10 && break 4718 done 4719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4720esac 4721 4722 $ac_path_GREP_found && break 3 4723 done 4724 done 4725 done 4726IFS=$as_save_IFS 4727 if test -z "$ac_cv_path_GREP"; then 4728 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4729 fi 4730else 4731 ac_cv_path_GREP=$GREP 4732fi 4733 4734fi 4735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4736$as_echo "$ac_cv_path_GREP" >&6; } 4737 GREP="$ac_cv_path_GREP" 4738 4739 4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4741$as_echo_n "checking for egrep... " >&6; } 4742if ${ac_cv_path_EGREP+:} false; then : 4743 $as_echo_n "(cached) " >&6 4744else 4745 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4746 then ac_cv_path_EGREP="$GREP -E" 4747 else 4748 if test -z "$EGREP"; then 4749 ac_path_EGREP_found=false 4750 # Loop through the user's path and test for each of PROGNAME-LIST 4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4752for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4753do 4754 IFS=$as_save_IFS 4755 test -z "$as_dir" && as_dir=. 4756 for ac_prog in egrep; do 4757 for ac_exec_ext in '' $ac_executable_extensions; do 4758 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4759 as_fn_executable_p "$ac_path_EGREP" || continue 4760# Check for GNU ac_path_EGREP and select it if it is found. 4761 # Check for GNU $ac_path_EGREP 4762case `"$ac_path_EGREP" --version 2>&1` in 4763*GNU*) 4764 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4765*) 4766 ac_count=0 4767 $as_echo_n 0123456789 >"conftest.in" 4768 while : 4769 do 4770 cat "conftest.in" "conftest.in" >"conftest.tmp" 4771 mv "conftest.tmp" "conftest.in" 4772 cp "conftest.in" "conftest.nl" 4773 $as_echo 'EGREP' >> "conftest.nl" 4774 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4776 as_fn_arith $ac_count + 1 && ac_count=$as_val 4777 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4778 # Best one so far, save it but keep looking for a better one 4779 ac_cv_path_EGREP="$ac_path_EGREP" 4780 ac_path_EGREP_max=$ac_count 4781 fi 4782 # 10*(2^10) chars as input seems more than enough 4783 test $ac_count -gt 10 && break 4784 done 4785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4786esac 4787 4788 $ac_path_EGREP_found && break 3 4789 done 4790 done 4791 done 4792IFS=$as_save_IFS 4793 if test -z "$ac_cv_path_EGREP"; then 4794 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4795 fi 4796else 4797 ac_cv_path_EGREP=$EGREP 4798fi 4799 4800 fi 4801fi 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4803$as_echo "$ac_cv_path_EGREP" >&6; } 4804 EGREP="$ac_cv_path_EGREP" 4805 4806 4807 4808 4809 acl_libdirstem=lib 4810 acl_libdirstem2= 4811 case "$host_os" in 4812 solaris*) 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 4814$as_echo_n "checking for 64-bit host... " >&6; } 4815if ${gl_cv_solaris_64bit+:} false; then : 4816 $as_echo_n "(cached) " >&6 4817else 4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4819/* end confdefs.h. */ 4820 4821#ifdef _LP64 4822sixtyfour bits 4823#endif 4824 4825_ACEOF 4826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4827 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 4828 gl_cv_solaris_64bit=yes 4829else 4830 gl_cv_solaris_64bit=no 4831fi 4832rm -f conftest* 4833 4834 4835fi 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 4837$as_echo "$gl_cv_solaris_64bit" >&6; } 4838 if test $gl_cv_solaris_64bit = yes; then 4839 acl_libdirstem=lib/64 4840 case "$host_cpu" in 4841 sparc*) acl_libdirstem2=lib/sparcv9 ;; 4842 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 4843 esac 4844 fi 4845 ;; 4846 *) 4847 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 4848 if test -n "$searchpath"; then 4849 acl_save_IFS="${IFS= }"; IFS=":" 4850 for searchdir in $searchpath; do 4851 if test -d "$searchdir"; then 4852 case "$searchdir" in 4853 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 4854 */../ | */.. ) 4855 # Better ignore directories of this form. They are misleading. 4856 ;; 4857 *) searchdir=`cd "$searchdir" && pwd` 4858 case "$searchdir" in 4859 */lib64 ) acl_libdirstem=lib64 ;; 4860 esac ;; 4861 esac 4862 fi 4863 done 4864 IFS="$acl_save_IFS" 4865 fi 4866 ;; 4867 esac 4868 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 use_additional=yes 4882 4883 acl_save_prefix="$prefix" 4884 prefix="$acl_final_prefix" 4885 acl_save_exec_prefix="$exec_prefix" 4886 exec_prefix="$acl_final_exec_prefix" 4887 4888 eval additional_includedir=\"$includedir\" 4889 eval additional_libdir=\"$libdir\" 4890 4891 exec_prefix="$acl_save_exec_prefix" 4892 prefix="$acl_save_prefix" 4893 4894 4895# Check whether --with-libiconv-prefix was given. 4896if test "${with_libiconv_prefix+set}" = set; then : 4897 withval=$with_libiconv_prefix; 4898 if test "X$withval" = "Xno"; then 4899 use_additional=no 4900 else 4901 if test "X$withval" = "X"; then 4902 4903 acl_save_prefix="$prefix" 4904 prefix="$acl_final_prefix" 4905 acl_save_exec_prefix="$exec_prefix" 4906 exec_prefix="$acl_final_exec_prefix" 4907 4908 eval additional_includedir=\"$includedir\" 4909 eval additional_libdir=\"$libdir\" 4910 4911 exec_prefix="$acl_save_exec_prefix" 4912 prefix="$acl_save_prefix" 4913 4914 else 4915 additional_includedir="$withval/include" 4916 additional_libdir="$withval/$acl_libdirstem" 4917 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 4918 && ! test -d "$withval/$acl_libdirstem"; then 4919 additional_libdir="$withval/$acl_libdirstem2" 4920 fi 4921 fi 4922 fi 4923 4924fi 4925 4926 LIBICONV= 4927 LTLIBICONV= 4928 INCICONV= 4929 LIBICONV_PREFIX= 4930 HAVE_LIBICONV= 4931 rpathdirs= 4932 ltrpathdirs= 4933 names_already_handled= 4934 names_next_round='iconv ' 4935 while test -n "$names_next_round"; do 4936 names_this_round="$names_next_round" 4937 names_next_round= 4938 for name in $names_this_round; do 4939 already_handled= 4940 for n in $names_already_handled; do 4941 if test "$n" = "$name"; then 4942 already_handled=yes 4943 break 4944 fi 4945 done 4946 if test -z "$already_handled"; then 4947 names_already_handled="$names_already_handled $name" 4948 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 4949 eval value=\"\$HAVE_LIB$uppername\" 4950 if test -n "$value"; then 4951 if test "$value" = yes; then 4952 eval value=\"\$LIB$uppername\" 4953 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 4954 eval value=\"\$LTLIB$uppername\" 4955 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 4956 else 4957 : 4958 fi 4959 else 4960 found_dir= 4961 found_la= 4962 found_so= 4963 found_a= 4964 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 4965 if test -n "$acl_shlibext"; then 4966 shrext=".$acl_shlibext" # typically: shrext=.so 4967 else 4968 shrext= 4969 fi 4970 if test $use_additional = yes; then 4971 dir="$additional_libdir" 4972 if test -n "$acl_shlibext"; then 4973 if test -f "$dir/$libname$shrext"; then 4974 found_dir="$dir" 4975 found_so="$dir/$libname$shrext" 4976 else 4977 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 4978 ver=`(cd "$dir" && \ 4979 for f in "$libname$shrext".*; do echo "$f"; done \ 4980 | sed -e "s,^$libname$shrext\\\\.,," \ 4981 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 4982 | sed 1q ) 2>/dev/null` 4983 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 4984 found_dir="$dir" 4985 found_so="$dir/$libname$shrext.$ver" 4986 fi 4987 else 4988 eval library_names=\"$acl_library_names_spec\" 4989 for f in $library_names; do 4990 if test -f "$dir/$f"; then 4991 found_dir="$dir" 4992 found_so="$dir/$f" 4993 break 4994 fi 4995 done 4996 fi 4997 fi 4998 fi 4999 if test "X$found_dir" = "X"; then 5000 if test -f "$dir/$libname.$acl_libext"; then 5001 found_dir="$dir" 5002 found_a="$dir/$libname.$acl_libext" 5003 fi 5004 fi 5005 if test "X$found_dir" != "X"; then 5006 if test -f "$dir/$libname.la"; then 5007 found_la="$dir/$libname.la" 5008 fi 5009 fi 5010 fi 5011 if test "X$found_dir" = "X"; then 5012 for x in $LDFLAGS $LTLIBICONV; do 5013 5014 acl_save_prefix="$prefix" 5015 prefix="$acl_final_prefix" 5016 acl_save_exec_prefix="$exec_prefix" 5017 exec_prefix="$acl_final_exec_prefix" 5018 eval x=\"$x\" 5019 exec_prefix="$acl_save_exec_prefix" 5020 prefix="$acl_save_prefix" 5021 5022 case "$x" in 5023 -L*) 5024 dir=`echo "X$x" | sed -e 's/^X-L//'` 5025 if test -n "$acl_shlibext"; then 5026 if test -f "$dir/$libname$shrext"; then 5027 found_dir="$dir" 5028 found_so="$dir/$libname$shrext" 5029 else 5030 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 5031 ver=`(cd "$dir" && \ 5032 for f in "$libname$shrext".*; do echo "$f"; done \ 5033 | sed -e "s,^$libname$shrext\\\\.,," \ 5034 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 5035 | sed 1q ) 2>/dev/null` 5036 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 5037 found_dir="$dir" 5038 found_so="$dir/$libname$shrext.$ver" 5039 fi 5040 else 5041 eval library_names=\"$acl_library_names_spec\" 5042 for f in $library_names; do 5043 if test -f "$dir/$f"; then 5044 found_dir="$dir" 5045 found_so="$dir/$f" 5046 break 5047 fi 5048 done 5049 fi 5050 fi 5051 fi 5052 if test "X$found_dir" = "X"; then 5053 if test -f "$dir/$libname.$acl_libext"; then 5054 found_dir="$dir" 5055 found_a="$dir/$libname.$acl_libext" 5056 fi 5057 fi 5058 if test "X$found_dir" != "X"; then 5059 if test -f "$dir/$libname.la"; then 5060 found_la="$dir/$libname.la" 5061 fi 5062 fi 5063 ;; 5064 esac 5065 if test "X$found_dir" != "X"; then 5066 break 5067 fi 5068 done 5069 fi 5070 if test "X$found_dir" != "X"; then 5071 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 5072 if test "X$found_so" != "X"; then 5073 if test "$enable_rpath" = no \ 5074 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 5075 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 5076 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5077 else 5078 haveit= 5079 for x in $ltrpathdirs; do 5080 if test "X$x" = "X$found_dir"; then 5081 haveit=yes 5082 break 5083 fi 5084 done 5085 if test -z "$haveit"; then 5086 ltrpathdirs="$ltrpathdirs $found_dir" 5087 fi 5088 if test "$acl_hardcode_direct" = yes; then 5089 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5090 else 5091 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 5092 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5093 haveit= 5094 for x in $rpathdirs; do 5095 if test "X$x" = "X$found_dir"; then 5096 haveit=yes 5097 break 5098 fi 5099 done 5100 if test -z "$haveit"; then 5101 rpathdirs="$rpathdirs $found_dir" 5102 fi 5103 else 5104 haveit= 5105 for x in $LDFLAGS $LIBICONV; do 5106 5107 acl_save_prefix="$prefix" 5108 prefix="$acl_final_prefix" 5109 acl_save_exec_prefix="$exec_prefix" 5110 exec_prefix="$acl_final_exec_prefix" 5111 eval x=\"$x\" 5112 exec_prefix="$acl_save_exec_prefix" 5113 prefix="$acl_save_prefix" 5114 5115 if test "X$x" = "X-L$found_dir"; then 5116 haveit=yes 5117 break 5118 fi 5119 done 5120 if test -z "$haveit"; then 5121 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 5122 fi 5123 if test "$acl_hardcode_minus_L" != no; then 5124 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5125 else 5126 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 5127 fi 5128 fi 5129 fi 5130 fi 5131 else 5132 if test "X$found_a" != "X"; then 5133 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 5134 else 5135 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 5136 fi 5137 fi 5138 additional_includedir= 5139 case "$found_dir" in 5140 */$acl_libdirstem | */$acl_libdirstem/) 5141 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 5142 if test "$name" = 'iconv'; then 5143 LIBICONV_PREFIX="$basedir" 5144 fi 5145 additional_includedir="$basedir/include" 5146 ;; 5147 */$acl_libdirstem2 | */$acl_libdirstem2/) 5148 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 5149 if test "$name" = 'iconv'; then 5150 LIBICONV_PREFIX="$basedir" 5151 fi 5152 additional_includedir="$basedir/include" 5153 ;; 5154 esac 5155 if test "X$additional_includedir" != "X"; then 5156 if test "X$additional_includedir" != "X/usr/include"; then 5157 haveit= 5158 if test "X$additional_includedir" = "X/usr/local/include"; then 5159 if test -n "$GCC"; then 5160 case $host_os in 5161 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 5162 esac 5163 fi 5164 fi 5165 if test -z "$haveit"; then 5166 for x in $CPPFLAGS $INCICONV; do 5167 5168 acl_save_prefix="$prefix" 5169 prefix="$acl_final_prefix" 5170 acl_save_exec_prefix="$exec_prefix" 5171 exec_prefix="$acl_final_exec_prefix" 5172 eval x=\"$x\" 5173 exec_prefix="$acl_save_exec_prefix" 5174 prefix="$acl_save_prefix" 5175 5176 if test "X$x" = "X-I$additional_includedir"; then 5177 haveit=yes 5178 break 5179 fi 5180 done 5181 if test -z "$haveit"; then 5182 if test -d "$additional_includedir"; then 5183 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 5184 fi 5185 fi 5186 fi 5187 fi 5188 fi 5189 if test -n "$found_la"; then 5190 save_libdir="$libdir" 5191 case "$found_la" in 5192 */* | *\\*) . "$found_la" ;; 5193 *) . "./$found_la" ;; 5194 esac 5195 libdir="$save_libdir" 5196 for dep in $dependency_libs; do 5197 case "$dep" in 5198 -L*) 5199 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 5200 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 5201 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 5202 haveit= 5203 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 5204 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 5205 if test -n "$GCC"; then 5206 case $host_os in 5207 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 5208 esac 5209 fi 5210 fi 5211 if test -z "$haveit"; then 5212 haveit= 5213 for x in $LDFLAGS $LIBICONV; do 5214 5215 acl_save_prefix="$prefix" 5216 prefix="$acl_final_prefix" 5217 acl_save_exec_prefix="$exec_prefix" 5218 exec_prefix="$acl_final_exec_prefix" 5219 eval x=\"$x\" 5220 exec_prefix="$acl_save_exec_prefix" 5221 prefix="$acl_save_prefix" 5222 5223 if test "X$x" = "X-L$additional_libdir"; then 5224 haveit=yes 5225 break 5226 fi 5227 done 5228 if test -z "$haveit"; then 5229 if test -d "$additional_libdir"; then 5230 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 5231 fi 5232 fi 5233 haveit= 5234 for x in $LDFLAGS $LTLIBICONV; do 5235 5236 acl_save_prefix="$prefix" 5237 prefix="$acl_final_prefix" 5238 acl_save_exec_prefix="$exec_prefix" 5239 exec_prefix="$acl_final_exec_prefix" 5240 eval x=\"$x\" 5241 exec_prefix="$acl_save_exec_prefix" 5242 prefix="$acl_save_prefix" 5243 5244 if test "X$x" = "X-L$additional_libdir"; then 5245 haveit=yes 5246 break 5247 fi 5248 done 5249 if test -z "$haveit"; then 5250 if test -d "$additional_libdir"; then 5251 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 5252 fi 5253 fi 5254 fi 5255 fi 5256 ;; 5257 -R*) 5258 dir=`echo "X$dep" | sed -e 's/^X-R//'` 5259 if test "$enable_rpath" != no; then 5260 haveit= 5261 for x in $rpathdirs; do 5262 if test "X$x" = "X$dir"; then 5263 haveit=yes 5264 break 5265 fi 5266 done 5267 if test -z "$haveit"; then 5268 rpathdirs="$rpathdirs $dir" 5269 fi 5270 haveit= 5271 for x in $ltrpathdirs; do 5272 if test "X$x" = "X$dir"; then 5273 haveit=yes 5274 break 5275 fi 5276 done 5277 if test -z "$haveit"; then 5278 ltrpathdirs="$ltrpathdirs $dir" 5279 fi 5280 fi 5281 ;; 5282 -l*) 5283 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 5284 ;; 5285 *.la) 5286 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 5287 ;; 5288 *) 5289 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 5290 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 5291 ;; 5292 esac 5293 done 5294 fi 5295 else 5296 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 5297 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 5298 fi 5299 fi 5300 fi 5301 done 5302 done 5303 if test "X$rpathdirs" != "X"; then 5304 if test -n "$acl_hardcode_libdir_separator"; then 5305 alldirs= 5306 for found_dir in $rpathdirs; do 5307 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 5308 done 5309 acl_save_libdir="$libdir" 5310 libdir="$alldirs" 5311 eval flag=\"$acl_hardcode_libdir_flag_spec\" 5312 libdir="$acl_save_libdir" 5313 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 5314 else 5315 for found_dir in $rpathdirs; do 5316 acl_save_libdir="$libdir" 5317 libdir="$found_dir" 5318 eval flag=\"$acl_hardcode_libdir_flag_spec\" 5319 libdir="$acl_save_libdir" 5320 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 5321 done 5322 fi 5323 fi 5324 if test "X$ltrpathdirs" != "X"; then 5325 for found_dir in $ltrpathdirs; do 5326 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 5327 done 5328 fi 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 5361$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 5362if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 5363 $as_echo_n "(cached) " >&6 5364else 5365 gt_save_LIBS="$LIBS" 5366 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5368/* end confdefs.h. */ 5369#include <CoreFoundation/CFPreferences.h> 5370int 5371main () 5372{ 5373CFPreferencesCopyAppValue(NULL, NULL) 5374 ; 5375 return 0; 5376} 5377_ACEOF 5378if ac_fn_c_try_link "$LINENO"; then : 5379 gt_cv_func_CFPreferencesCopyAppValue=yes 5380else 5381 gt_cv_func_CFPreferencesCopyAppValue=no 5382fi 5383rm -f core conftest.err conftest.$ac_objext \ 5384 conftest$ac_exeext conftest.$ac_ext 5385 LIBS="$gt_save_LIBS" 5386fi 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 5388$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 5389 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 5390 5391$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 5392 5393 fi 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 5395$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 5396if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 5397 $as_echo_n "(cached) " >&6 5398else 5399 gt_save_LIBS="$LIBS" 5400 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5402/* end confdefs.h. */ 5403#include <CoreFoundation/CFLocale.h> 5404int 5405main () 5406{ 5407CFLocaleCopyCurrent(); 5408 ; 5409 return 0; 5410} 5411_ACEOF 5412if ac_fn_c_try_link "$LINENO"; then : 5413 gt_cv_func_CFLocaleCopyCurrent=yes 5414else 5415 gt_cv_func_CFLocaleCopyCurrent=no 5416fi 5417rm -f core conftest.err conftest.$ac_objext \ 5418 conftest$ac_exeext conftest.$ac_ext 5419 LIBS="$gt_save_LIBS" 5420fi 5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 5422$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 5423 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 5424 5425$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 5426 5427 fi 5428 INTL_MACOSX_LIBS= 5429 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 5430 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 5431 fi 5432 5433 5434 5435 5436 5437 5438 LIBINTL= 5439 LTLIBINTL= 5440 POSUB= 5441 5442 case " $gt_needs " in 5443 *" need-formatstring-macros "*) gt_api_version=3 ;; 5444 *" need-ngettext "*) gt_api_version=2 ;; 5445 *) gt_api_version=1 ;; 5446 esac 5447 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 5448 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 5449 5450 if test "$USE_NLS" = "yes"; then 5451 gt_use_preinstalled_gnugettext=no 5452 5453 5454 if test $gt_api_version -ge 3; then 5455 gt_revision_test_code=' 5456#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 5457#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 5458#endif 5459typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 5460' 5461 else 5462 gt_revision_test_code= 5463 fi 5464 if test $gt_api_version -ge 2; then 5465 gt_expression_test_code=' + * ngettext ("", "", 0)' 5466 else 5467 gt_expression_test_code= 5468 fi 5469 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 5471$as_echo_n "checking for GNU gettext in libc... " >&6; } 5472if eval \${$gt_func_gnugettext_libc+:} false; then : 5473 $as_echo_n "(cached) " >&6 5474else 5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5476/* end confdefs.h. */ 5477#include <libintl.h> 5478$gt_revision_test_code 5479extern int _nl_msg_cat_cntr; 5480extern int *_nl_domain_bindings; 5481int 5482main () 5483{ 5484bindtextdomain ("", ""); 5485return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 5486 ; 5487 return 0; 5488} 5489_ACEOF 5490if ac_fn_c_try_link "$LINENO"; then : 5491 eval "$gt_func_gnugettext_libc=yes" 5492else 5493 eval "$gt_func_gnugettext_libc=no" 5494fi 5495rm -f core conftest.err conftest.$ac_objext \ 5496 conftest$ac_exeext conftest.$ac_ext 5497fi 5498eval ac_res=\$$gt_func_gnugettext_libc 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5500$as_echo "$ac_res" >&6; } 5501 5502 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 5503 5504 5505 5506 5507 5508 am_save_CPPFLAGS="$CPPFLAGS" 5509 5510 for element in $INCICONV; do 5511 haveit= 5512 for x in $CPPFLAGS; do 5513 5514 acl_save_prefix="$prefix" 5515 prefix="$acl_final_prefix" 5516 acl_save_exec_prefix="$exec_prefix" 5517 exec_prefix="$acl_final_exec_prefix" 5518 eval x=\"$x\" 5519 exec_prefix="$acl_save_exec_prefix" 5520 prefix="$acl_save_prefix" 5521 5522 if test "X$x" = "X$element"; then 5523 haveit=yes 5524 break 5525 fi 5526 done 5527 if test -z "$haveit"; then 5528 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 5529 fi 5530 done 5531 5532 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 5534$as_echo_n "checking for iconv... " >&6; } 5535if ${am_cv_func_iconv+:} false; then : 5536 $as_echo_n "(cached) " >&6 5537else 5538 5539 am_cv_func_iconv="no, consider installing GNU libiconv" 5540 am_cv_lib_iconv=no 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542/* end confdefs.h. */ 5543#include <stdlib.h> 5544#include <iconv.h> 5545int 5546main () 5547{ 5548iconv_t cd = iconv_open("",""); 5549 iconv(cd,NULL,NULL,NULL,NULL); 5550 iconv_close(cd); 5551 ; 5552 return 0; 5553} 5554_ACEOF 5555if ac_fn_c_try_link "$LINENO"; then : 5556 am_cv_func_iconv=yes 5557fi 5558rm -f core conftest.err conftest.$ac_objext \ 5559 conftest$ac_exeext conftest.$ac_ext 5560 if test "$am_cv_func_iconv" != yes; then 5561 am_save_LIBS="$LIBS" 5562 LIBS="$LIBS $LIBICONV" 5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5564/* end confdefs.h. */ 5565#include <stdlib.h> 5566#include <iconv.h> 5567int 5568main () 5569{ 5570iconv_t cd = iconv_open("",""); 5571 iconv(cd,NULL,NULL,NULL,NULL); 5572 iconv_close(cd); 5573 ; 5574 return 0; 5575} 5576_ACEOF 5577if ac_fn_c_try_link "$LINENO"; then : 5578 am_cv_lib_iconv=yes 5579 am_cv_func_iconv=yes 5580fi 5581rm -f core conftest.err conftest.$ac_objext \ 5582 conftest$ac_exeext conftest.$ac_ext 5583 LIBS="$am_save_LIBS" 5584 fi 5585 5586fi 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 5588$as_echo "$am_cv_func_iconv" >&6; } 5589 if test "$am_cv_func_iconv" = yes; then 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 5591$as_echo_n "checking for working iconv... " >&6; } 5592if ${am_cv_func_iconv_works+:} false; then : 5593 $as_echo_n "(cached) " >&6 5594else 5595 5596 am_save_LIBS="$LIBS" 5597 if test $am_cv_lib_iconv = yes; then 5598 LIBS="$LIBS $LIBICONV" 5599 fi 5600 if test "$cross_compiling" = yes; then : 5601 case "$host_os" in 5602 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 5603 *) am_cv_func_iconv_works="guessing yes" ;; 5604 esac 5605else 5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607/* end confdefs.h. */ 5608 5609#include <iconv.h> 5610#include <string.h> 5611int main () 5612{ 5613 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 5614 returns. */ 5615 { 5616 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 5617 if (cd_utf8_to_88591 != (iconv_t)(-1)) 5618 { 5619 static const char input[] = "\342\202\254"; /* EURO SIGN */ 5620 char buf[10]; 5621 const char *inptr = input; 5622 size_t inbytesleft = strlen (input); 5623 char *outptr = buf; 5624 size_t outbytesleft = sizeof (buf); 5625 size_t res = iconv (cd_utf8_to_88591, 5626 (char **) &inptr, &inbytesleft, 5627 &outptr, &outbytesleft); 5628 if (res == 0) 5629 return 1; 5630 } 5631 } 5632 /* Test against Solaris 10 bug: Failures are not distinguishable from 5633 successful returns. */ 5634 { 5635 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 5636 if (cd_ascii_to_88591 != (iconv_t)(-1)) 5637 { 5638 static const char input[] = "\263"; 5639 char buf[10]; 5640 const char *inptr = input; 5641 size_t inbytesleft = strlen (input); 5642 char *outptr = buf; 5643 size_t outbytesleft = sizeof (buf); 5644 size_t res = iconv (cd_ascii_to_88591, 5645 (char **) &inptr, &inbytesleft, 5646 &outptr, &outbytesleft); 5647 if (res == 0) 5648 return 1; 5649 } 5650 } 5651#if 0 /* This bug could be worked around by the caller. */ 5652 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 5653 { 5654 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 5655 if (cd_88591_to_utf8 != (iconv_t)(-1)) 5656 { 5657 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 5658 char buf[50]; 5659 const char *inptr = input; 5660 size_t inbytesleft = strlen (input); 5661 char *outptr = buf; 5662 size_t outbytesleft = sizeof (buf); 5663 size_t res = iconv (cd_88591_to_utf8, 5664 (char **) &inptr, &inbytesleft, 5665 &outptr, &outbytesleft); 5666 if ((int)res > 0) 5667 return 1; 5668 } 5669 } 5670#endif 5671 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 5672 provided. */ 5673 if (/* Try standardized names. */ 5674 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 5675 /* Try IRIX, OSF/1 names. */ 5676 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 5677 /* Try AIX names. */ 5678 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 5679 /* Try HP-UX names. */ 5680 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 5681 return 1; 5682 return 0; 5683} 5684_ACEOF 5685if ac_fn_c_try_run "$LINENO"; then : 5686 am_cv_func_iconv_works=yes 5687else 5688 am_cv_func_iconv_works=no 5689fi 5690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5691 conftest.$ac_objext conftest.beam conftest.$ac_ext 5692fi 5693 5694 LIBS="$am_save_LIBS" 5695 5696fi 5697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 5698$as_echo "$am_cv_func_iconv_works" >&6; } 5699 case "$am_cv_func_iconv_works" in 5700 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 5701 *) am_func_iconv=yes ;; 5702 esac 5703 else 5704 am_func_iconv=no am_cv_lib_iconv=no 5705 fi 5706 if test "$am_func_iconv" = yes; then 5707 5708$as_echo "#define HAVE_ICONV 1" >>confdefs.h 5709 5710 fi 5711 if test "$am_cv_lib_iconv" = yes; then 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 5713$as_echo_n "checking how to link with libiconv... " >&6; } 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 5715$as_echo "$LIBICONV" >&6; } 5716 else 5717 CPPFLAGS="$am_save_CPPFLAGS" 5718 LIBICONV= 5719 LTLIBICONV= 5720 fi 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 use_additional=yes 5733 5734 acl_save_prefix="$prefix" 5735 prefix="$acl_final_prefix" 5736 acl_save_exec_prefix="$exec_prefix" 5737 exec_prefix="$acl_final_exec_prefix" 5738 5739 eval additional_includedir=\"$includedir\" 5740 eval additional_libdir=\"$libdir\" 5741 5742 exec_prefix="$acl_save_exec_prefix" 5743 prefix="$acl_save_prefix" 5744 5745 5746# Check whether --with-libintl-prefix was given. 5747if test "${with_libintl_prefix+set}" = set; then : 5748 withval=$with_libintl_prefix; 5749 if test "X$withval" = "Xno"; then 5750 use_additional=no 5751 else 5752 if test "X$withval" = "X"; then 5753 5754 acl_save_prefix="$prefix" 5755 prefix="$acl_final_prefix" 5756 acl_save_exec_prefix="$exec_prefix" 5757 exec_prefix="$acl_final_exec_prefix" 5758 5759 eval additional_includedir=\"$includedir\" 5760 eval additional_libdir=\"$libdir\" 5761 5762 exec_prefix="$acl_save_exec_prefix" 5763 prefix="$acl_save_prefix" 5764 5765 else 5766 additional_includedir="$withval/include" 5767 additional_libdir="$withval/$acl_libdirstem" 5768 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 5769 && ! test -d "$withval/$acl_libdirstem"; then 5770 additional_libdir="$withval/$acl_libdirstem2" 5771 fi 5772 fi 5773 fi 5774 5775fi 5776 5777 LIBINTL= 5778 LTLIBINTL= 5779 INCINTL= 5780 LIBINTL_PREFIX= 5781 HAVE_LIBINTL= 5782 rpathdirs= 5783 ltrpathdirs= 5784 names_already_handled= 5785 names_next_round='intl ' 5786 while test -n "$names_next_round"; do 5787 names_this_round="$names_next_round" 5788 names_next_round= 5789 for name in $names_this_round; do 5790 already_handled= 5791 for n in $names_already_handled; do 5792 if test "$n" = "$name"; then 5793 already_handled=yes 5794 break 5795 fi 5796 done 5797 if test -z "$already_handled"; then 5798 names_already_handled="$names_already_handled $name" 5799 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 5800 eval value=\"\$HAVE_LIB$uppername\" 5801 if test -n "$value"; then 5802 if test "$value" = yes; then 5803 eval value=\"\$LIB$uppername\" 5804 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 5805 eval value=\"\$LTLIB$uppername\" 5806 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 5807 else 5808 : 5809 fi 5810 else 5811 found_dir= 5812 found_la= 5813 found_so= 5814 found_a= 5815 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 5816 if test -n "$acl_shlibext"; then 5817 shrext=".$acl_shlibext" # typically: shrext=.so 5818 else 5819 shrext= 5820 fi 5821 if test $use_additional = yes; then 5822 dir="$additional_libdir" 5823 if test -n "$acl_shlibext"; then 5824 if test -f "$dir/$libname$shrext"; then 5825 found_dir="$dir" 5826 found_so="$dir/$libname$shrext" 5827 else 5828 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 5829 ver=`(cd "$dir" && \ 5830 for f in "$libname$shrext".*; do echo "$f"; done \ 5831 | sed -e "s,^$libname$shrext\\\\.,," \ 5832 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 5833 | sed 1q ) 2>/dev/null` 5834 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 5835 found_dir="$dir" 5836 found_so="$dir/$libname$shrext.$ver" 5837 fi 5838 else 5839 eval library_names=\"$acl_library_names_spec\" 5840 for f in $library_names; do 5841 if test -f "$dir/$f"; then 5842 found_dir="$dir" 5843 found_so="$dir/$f" 5844 break 5845 fi 5846 done 5847 fi 5848 fi 5849 fi 5850 if test "X$found_dir" = "X"; then 5851 if test -f "$dir/$libname.$acl_libext"; then 5852 found_dir="$dir" 5853 found_a="$dir/$libname.$acl_libext" 5854 fi 5855 fi 5856 if test "X$found_dir" != "X"; then 5857 if test -f "$dir/$libname.la"; then 5858 found_la="$dir/$libname.la" 5859 fi 5860 fi 5861 fi 5862 if test "X$found_dir" = "X"; then 5863 for x in $LDFLAGS $LTLIBINTL; do 5864 5865 acl_save_prefix="$prefix" 5866 prefix="$acl_final_prefix" 5867 acl_save_exec_prefix="$exec_prefix" 5868 exec_prefix="$acl_final_exec_prefix" 5869 eval x=\"$x\" 5870 exec_prefix="$acl_save_exec_prefix" 5871 prefix="$acl_save_prefix" 5872 5873 case "$x" in 5874 -L*) 5875 dir=`echo "X$x" | sed -e 's/^X-L//'` 5876 if test -n "$acl_shlibext"; then 5877 if test -f "$dir/$libname$shrext"; then 5878 found_dir="$dir" 5879 found_so="$dir/$libname$shrext" 5880 else 5881 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 5882 ver=`(cd "$dir" && \ 5883 for f in "$libname$shrext".*; do echo "$f"; done \ 5884 | sed -e "s,^$libname$shrext\\\\.,," \ 5885 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 5886 | sed 1q ) 2>/dev/null` 5887 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 5888 found_dir="$dir" 5889 found_so="$dir/$libname$shrext.$ver" 5890 fi 5891 else 5892 eval library_names=\"$acl_library_names_spec\" 5893 for f in $library_names; do 5894 if test -f "$dir/$f"; then 5895 found_dir="$dir" 5896 found_so="$dir/$f" 5897 break 5898 fi 5899 done 5900 fi 5901 fi 5902 fi 5903 if test "X$found_dir" = "X"; then 5904 if test -f "$dir/$libname.$acl_libext"; then 5905 found_dir="$dir" 5906 found_a="$dir/$libname.$acl_libext" 5907 fi 5908 fi 5909 if test "X$found_dir" != "X"; then 5910 if test -f "$dir/$libname.la"; then 5911 found_la="$dir/$libname.la" 5912 fi 5913 fi 5914 ;; 5915 esac 5916 if test "X$found_dir" != "X"; then 5917 break 5918 fi 5919 done 5920 fi 5921 if test "X$found_dir" != "X"; then 5922 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 5923 if test "X$found_so" != "X"; then 5924 if test "$enable_rpath" = no \ 5925 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 5926 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 5927 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5928 else 5929 haveit= 5930 for x in $ltrpathdirs; do 5931 if test "X$x" = "X$found_dir"; then 5932 haveit=yes 5933 break 5934 fi 5935 done 5936 if test -z "$haveit"; then 5937 ltrpathdirs="$ltrpathdirs $found_dir" 5938 fi 5939 if test "$acl_hardcode_direct" = yes; then 5940 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5941 else 5942 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 5943 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5944 haveit= 5945 for x in $rpathdirs; do 5946 if test "X$x" = "X$found_dir"; then 5947 haveit=yes 5948 break 5949 fi 5950 done 5951 if test -z "$haveit"; then 5952 rpathdirs="$rpathdirs $found_dir" 5953 fi 5954 else 5955 haveit= 5956 for x in $LDFLAGS $LIBINTL; do 5957 5958 acl_save_prefix="$prefix" 5959 prefix="$acl_final_prefix" 5960 acl_save_exec_prefix="$exec_prefix" 5961 exec_prefix="$acl_final_exec_prefix" 5962 eval x=\"$x\" 5963 exec_prefix="$acl_save_exec_prefix" 5964 prefix="$acl_save_prefix" 5965 5966 if test "X$x" = "X-L$found_dir"; then 5967 haveit=yes 5968 break 5969 fi 5970 done 5971 if test -z "$haveit"; then 5972 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 5973 fi 5974 if test "$acl_hardcode_minus_L" != no; then 5975 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5976 else 5977 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 5978 fi 5979 fi 5980 fi 5981 fi 5982 else 5983 if test "X$found_a" != "X"; then 5984 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 5985 else 5986 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 5987 fi 5988 fi 5989 additional_includedir= 5990 case "$found_dir" in 5991 */$acl_libdirstem | */$acl_libdirstem/) 5992 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 5993 if test "$name" = 'intl'; then 5994 LIBINTL_PREFIX="$basedir" 5995 fi 5996 additional_includedir="$basedir/include" 5997 ;; 5998 */$acl_libdirstem2 | */$acl_libdirstem2/) 5999 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 6000 if test "$name" = 'intl'; then 6001 LIBINTL_PREFIX="$basedir" 6002 fi 6003 additional_includedir="$basedir/include" 6004 ;; 6005 esac 6006 if test "X$additional_includedir" != "X"; then 6007 if test "X$additional_includedir" != "X/usr/include"; then 6008 haveit= 6009 if test "X$additional_includedir" = "X/usr/local/include"; then 6010 if test -n "$GCC"; then 6011 case $host_os in 6012 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 6013 esac 6014 fi 6015 fi 6016 if test -z "$haveit"; then 6017 for x in $CPPFLAGS $INCINTL; do 6018 6019 acl_save_prefix="$prefix" 6020 prefix="$acl_final_prefix" 6021 acl_save_exec_prefix="$exec_prefix" 6022 exec_prefix="$acl_final_exec_prefix" 6023 eval x=\"$x\" 6024 exec_prefix="$acl_save_exec_prefix" 6025 prefix="$acl_save_prefix" 6026 6027 if test "X$x" = "X-I$additional_includedir"; then 6028 haveit=yes 6029 break 6030 fi 6031 done 6032 if test -z "$haveit"; then 6033 if test -d "$additional_includedir"; then 6034 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 6035 fi 6036 fi 6037 fi 6038 fi 6039 fi 6040 if test -n "$found_la"; then 6041 save_libdir="$libdir" 6042 case "$found_la" in 6043 */* | *\\*) . "$found_la" ;; 6044 *) . "./$found_la" ;; 6045 esac 6046 libdir="$save_libdir" 6047 for dep in $dependency_libs; do 6048 case "$dep" in 6049 -L*) 6050 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 6051 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 6052 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 6053 haveit= 6054 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 6055 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 6056 if test -n "$GCC"; then 6057 case $host_os in 6058 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 6059 esac 6060 fi 6061 fi 6062 if test -z "$haveit"; then 6063 haveit= 6064 for x in $LDFLAGS $LIBINTL; do 6065 6066 acl_save_prefix="$prefix" 6067 prefix="$acl_final_prefix" 6068 acl_save_exec_prefix="$exec_prefix" 6069 exec_prefix="$acl_final_exec_prefix" 6070 eval x=\"$x\" 6071 exec_prefix="$acl_save_exec_prefix" 6072 prefix="$acl_save_prefix" 6073 6074 if test "X$x" = "X-L$additional_libdir"; then 6075 haveit=yes 6076 break 6077 fi 6078 done 6079 if test -z "$haveit"; then 6080 if test -d "$additional_libdir"; then 6081 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 6082 fi 6083 fi 6084 haveit= 6085 for x in $LDFLAGS $LTLIBINTL; do 6086 6087 acl_save_prefix="$prefix" 6088 prefix="$acl_final_prefix" 6089 acl_save_exec_prefix="$exec_prefix" 6090 exec_prefix="$acl_final_exec_prefix" 6091 eval x=\"$x\" 6092 exec_prefix="$acl_save_exec_prefix" 6093 prefix="$acl_save_prefix" 6094 6095 if test "X$x" = "X-L$additional_libdir"; then 6096 haveit=yes 6097 break 6098 fi 6099 done 6100 if test -z "$haveit"; then 6101 if test -d "$additional_libdir"; then 6102 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 6103 fi 6104 fi 6105 fi 6106 fi 6107 ;; 6108 -R*) 6109 dir=`echo "X$dep" | sed -e 's/^X-R//'` 6110 if test "$enable_rpath" != no; then 6111 haveit= 6112 for x in $rpathdirs; do 6113 if test "X$x" = "X$dir"; then 6114 haveit=yes 6115 break 6116 fi 6117 done 6118 if test -z "$haveit"; then 6119 rpathdirs="$rpathdirs $dir" 6120 fi 6121 haveit= 6122 for x in $ltrpathdirs; do 6123 if test "X$x" = "X$dir"; then 6124 haveit=yes 6125 break 6126 fi 6127 done 6128 if test -z "$haveit"; then 6129 ltrpathdirs="$ltrpathdirs $dir" 6130 fi 6131 fi 6132 ;; 6133 -l*) 6134 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 6135 ;; 6136 *.la) 6137 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 6138 ;; 6139 *) 6140 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 6141 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 6142 ;; 6143 esac 6144 done 6145 fi 6146 else 6147 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 6148 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 6149 fi 6150 fi 6151 fi 6152 done 6153 done 6154 if test "X$rpathdirs" != "X"; then 6155 if test -n "$acl_hardcode_libdir_separator"; then 6156 alldirs= 6157 for found_dir in $rpathdirs; do 6158 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 6159 done 6160 acl_save_libdir="$libdir" 6161 libdir="$alldirs" 6162 eval flag=\"$acl_hardcode_libdir_flag_spec\" 6163 libdir="$acl_save_libdir" 6164 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 6165 else 6166 for found_dir in $rpathdirs; do 6167 acl_save_libdir="$libdir" 6168 libdir="$found_dir" 6169 eval flag=\"$acl_hardcode_libdir_flag_spec\" 6170 libdir="$acl_save_libdir" 6171 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 6172 done 6173 fi 6174 fi 6175 if test "X$ltrpathdirs" != "X"; then 6176 for found_dir in $ltrpathdirs; do 6177 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 6178 done 6179 fi 6180 6181 6182 6183 6184 6185 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 6187$as_echo_n "checking for GNU gettext in libintl... " >&6; } 6188if eval \${$gt_func_gnugettext_libintl+:} false; then : 6189 $as_echo_n "(cached) " >&6 6190else 6191 gt_save_CPPFLAGS="$CPPFLAGS" 6192 CPPFLAGS="$CPPFLAGS $INCINTL" 6193 gt_save_LIBS="$LIBS" 6194 LIBS="$LIBS $LIBINTL" 6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6196/* end confdefs.h. */ 6197#include <libintl.h> 6198$gt_revision_test_code 6199extern int _nl_msg_cat_cntr; 6200extern 6201#ifdef __cplusplus 6202"C" 6203#endif 6204const char *_nl_expand_alias (const char *); 6205int 6206main () 6207{ 6208bindtextdomain ("", ""); 6209return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 6210 ; 6211 return 0; 6212} 6213_ACEOF 6214if ac_fn_c_try_link "$LINENO"; then : 6215 eval "$gt_func_gnugettext_libintl=yes" 6216else 6217 eval "$gt_func_gnugettext_libintl=no" 6218fi 6219rm -f core conftest.err conftest.$ac_objext \ 6220 conftest$ac_exeext conftest.$ac_ext 6221 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 6222 LIBS="$LIBS $LIBICONV" 6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6224/* end confdefs.h. */ 6225#include <libintl.h> 6226$gt_revision_test_code 6227extern int _nl_msg_cat_cntr; 6228extern 6229#ifdef __cplusplus 6230"C" 6231#endif 6232const char *_nl_expand_alias (const char *); 6233int 6234main () 6235{ 6236bindtextdomain ("", ""); 6237return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 6238 ; 6239 return 0; 6240} 6241_ACEOF 6242if ac_fn_c_try_link "$LINENO"; then : 6243 LIBINTL="$LIBINTL $LIBICONV" 6244 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 6245 eval "$gt_func_gnugettext_libintl=yes" 6246 6247fi 6248rm -f core conftest.err conftest.$ac_objext \ 6249 conftest$ac_exeext conftest.$ac_ext 6250 fi 6251 CPPFLAGS="$gt_save_CPPFLAGS" 6252 LIBS="$gt_save_LIBS" 6253fi 6254eval ac_res=\$$gt_func_gnugettext_libintl 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6256$as_echo "$ac_res" >&6; } 6257 fi 6258 6259 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 6260 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 6261 && test "$PACKAGE" != gettext-runtime \ 6262 && test "$PACKAGE" != gettext-tools; }; then 6263 gt_use_preinstalled_gnugettext=yes 6264 else 6265 LIBINTL= 6266 LTLIBINTL= 6267 INCINTL= 6268 fi 6269 6270 6271 6272 if test -n "$INTL_MACOSX_LIBS"; then 6273 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 6274 || test "$nls_cv_use_gnu_gettext" = "yes"; then 6275 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 6276 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 6277 fi 6278 fi 6279 6280 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 6281 || test "$nls_cv_use_gnu_gettext" = "yes"; then 6282 6283$as_echo "#define ENABLE_NLS 1" >>confdefs.h 6284 6285 else 6286 USE_NLS=no 6287 fi 6288 fi 6289 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 6291$as_echo_n "checking whether to use NLS... " >&6; } 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 6293$as_echo "$USE_NLS" >&6; } 6294 if test "$USE_NLS" = "yes"; then 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 6296$as_echo_n "checking where the gettext function comes from... " >&6; } 6297 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 6298 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 6299 gt_source="external libintl" 6300 else 6301 gt_source="libc" 6302 fi 6303 else 6304 gt_source="included intl directory" 6305 fi 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 6307$as_echo "$gt_source" >&6; } 6308 fi 6309 6310 if test "$USE_NLS" = "yes"; then 6311 6312 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 6313 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 6315$as_echo_n "checking how to link with libintl... " >&6; } 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 6317$as_echo "$LIBINTL" >&6; } 6318 6319 for element in $INCINTL; do 6320 haveit= 6321 for x in $CPPFLAGS; do 6322 6323 acl_save_prefix="$prefix" 6324 prefix="$acl_final_prefix" 6325 acl_save_exec_prefix="$exec_prefix" 6326 exec_prefix="$acl_final_exec_prefix" 6327 eval x=\"$x\" 6328 exec_prefix="$acl_save_exec_prefix" 6329 prefix="$acl_save_prefix" 6330 6331 if test "X$x" = "X$element"; then 6332 haveit=yes 6333 break 6334 fi 6335 done 6336 if test -z "$haveit"; then 6337 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 6338 fi 6339 done 6340 6341 fi 6342 6343 6344$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 6345 6346 6347$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 6348 6349 fi 6350 6351 POSUB=po 6352 fi 6353 6354 6355 6356 INTLLIBS="$LIBINTL" 6357 6358 6359 6360 6361 6362 6363 6364LIBS="$LIBS $LIBINTL" 6365 6366# Checks for programs. 6367ac_ext=cpp 6368ac_cpp='$CXXCPP $CPPFLAGS' 6369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6372if test -z "$CXX"; then 6373 if test -n "$CCC"; then 6374 CXX=$CCC 6375 else 6376 if test -n "$ac_tool_prefix"; then 6377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6378 do 6379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6380set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6382$as_echo_n "checking for $ac_word... " >&6; } 6383if ${ac_cv_prog_CXX+:} false; then : 6384 $as_echo_n "(cached) " >&6 6385else 6386 if test -n "$CXX"; then 6387 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6388else 6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6390for as_dir in $PATH 6391do 6392 IFS=$as_save_IFS 6393 test -z "$as_dir" && as_dir=. 6394 for ac_exec_ext in '' $ac_executable_extensions; do 6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6398 break 2 6399 fi 6400done 6401 done 6402IFS=$as_save_IFS 6403 6404fi 6405fi 6406CXX=$ac_cv_prog_CXX 6407if test -n "$CXX"; then 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6409$as_echo "$CXX" >&6; } 6410else 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6412$as_echo "no" >&6; } 6413fi 6414 6415 6416 test -n "$CXX" && break 6417 done 6418fi 6419if test -z "$CXX"; then 6420 ac_ct_CXX=$CXX 6421 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6422do 6423 # Extract the first word of "$ac_prog", so it can be a program name with args. 6424set dummy $ac_prog; ac_word=$2 6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6426$as_echo_n "checking for $ac_word... " >&6; } 6427if ${ac_cv_prog_ac_ct_CXX+:} false; then : 6428 $as_echo_n "(cached) " >&6 6429else 6430 if test -n "$ac_ct_CXX"; then 6431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6432else 6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6434for as_dir in $PATH 6435do 6436 IFS=$as_save_IFS 6437 test -z "$as_dir" && as_dir=. 6438 for ac_exec_ext in '' $ac_executable_extensions; do 6439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6440 ac_cv_prog_ac_ct_CXX="$ac_prog" 6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6442 break 2 6443 fi 6444done 6445 done 6446IFS=$as_save_IFS 6447 6448fi 6449fi 6450ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6451if test -n "$ac_ct_CXX"; then 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6453$as_echo "$ac_ct_CXX" >&6; } 6454else 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6456$as_echo "no" >&6; } 6457fi 6458 6459 6460 test -n "$ac_ct_CXX" && break 6461done 6462 6463 if test "x$ac_ct_CXX" = x; then 6464 CXX="g++" 6465 else 6466 case $cross_compiling:$ac_tool_warned in 6467yes:) 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6470ac_tool_warned=yes ;; 6471esac 6472 CXX=$ac_ct_CXX 6473 fi 6474fi 6475 6476 fi 6477fi 6478# Provide some information about the compiler. 6479$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6480set X $ac_compile 6481ac_compiler=$2 6482for ac_option in --version -v -V -qversion; do 6483 { { ac_try="$ac_compiler $ac_option >&5" 6484case "(($ac_try" in 6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6486 *) ac_try_echo=$ac_try;; 6487esac 6488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6489$as_echo "$ac_try_echo"; } >&5 6490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6491 ac_status=$? 6492 if test -s conftest.err; then 6493 sed '10a\ 6494... rest of stderr output deleted ... 6495 10q' conftest.err >conftest.er1 6496 cat conftest.er1 >&5 6497 fi 6498 rm -f conftest.er1 conftest.err 6499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6500 test $ac_status = 0; } 6501done 6502 6503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6504$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6505if ${ac_cv_cxx_compiler_gnu+:} false; then : 6506 $as_echo_n "(cached) " >&6 6507else 6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6509/* end confdefs.h. */ 6510 6511int 6512main () 6513{ 6514#ifndef __GNUC__ 6515 choke me 6516#endif 6517 6518 ; 6519 return 0; 6520} 6521_ACEOF 6522if ac_fn_cxx_try_compile "$LINENO"; then : 6523 ac_compiler_gnu=yes 6524else 6525 ac_compiler_gnu=no 6526fi 6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6528ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6529 6530fi 6531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6532$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6533if test $ac_compiler_gnu = yes; then 6534 GXX=yes 6535else 6536 GXX= 6537fi 6538ac_test_CXXFLAGS=${CXXFLAGS+set} 6539ac_save_CXXFLAGS=$CXXFLAGS 6540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6541$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6542if ${ac_cv_prog_cxx_g+:} false; then : 6543 $as_echo_n "(cached) " >&6 6544else 6545 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6546 ac_cxx_werror_flag=yes 6547 ac_cv_prog_cxx_g=no 6548 CXXFLAGS="-g" 6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6550/* end confdefs.h. */ 6551 6552int 6553main () 6554{ 6555 6556 ; 6557 return 0; 6558} 6559_ACEOF 6560if ac_fn_cxx_try_compile "$LINENO"; then : 6561 ac_cv_prog_cxx_g=yes 6562else 6563 CXXFLAGS="" 6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6565/* end confdefs.h. */ 6566 6567int 6568main () 6569{ 6570 6571 ; 6572 return 0; 6573} 6574_ACEOF 6575if ac_fn_cxx_try_compile "$LINENO"; then : 6576 6577else 6578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6579 CXXFLAGS="-g" 6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6581/* end confdefs.h. */ 6582 6583int 6584main () 6585{ 6586 6587 ; 6588 return 0; 6589} 6590_ACEOF 6591if ac_fn_cxx_try_compile "$LINENO"; then : 6592 ac_cv_prog_cxx_g=yes 6593fi 6594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6595fi 6596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6597fi 6598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6599 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6600fi 6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6602$as_echo "$ac_cv_prog_cxx_g" >&6; } 6603if test "$ac_test_CXXFLAGS" = set; then 6604 CXXFLAGS=$ac_save_CXXFLAGS 6605elif test $ac_cv_prog_cxx_g = yes; then 6606 if test "$GXX" = yes; then 6607 CXXFLAGS="-g -O2" 6608 else 6609 CXXFLAGS="-g" 6610 fi 6611else 6612 if test "$GXX" = yes; then 6613 CXXFLAGS="-O2" 6614 else 6615 CXXFLAGS= 6616 fi 6617fi 6618ac_ext=c 6619ac_cpp='$CPP $CPPFLAGS' 6620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6622ac_compiler_gnu=$ac_cv_c_compiler_gnu 6623 6624depcc="$CXX" am_compiler_list= 6625 6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6627$as_echo_n "checking dependency style of $depcc... " >&6; } 6628if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 6629 $as_echo_n "(cached) " >&6 6630else 6631 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6632 # We make a subdir and do the tests there. Otherwise we can end up 6633 # making bogus files that we don't know about and never remove. For 6634 # instance it was reported that on HP-UX the gcc test will end up 6635 # making a dummy file named `D' -- because `-MD' means `put the output 6636 # in D'. 6637 rm -rf conftest.dir 6638 mkdir conftest.dir 6639 # Copy depcomp to subdir because otherwise we won't find it if we're 6640 # using a relative directory. 6641 cp "$am_depcomp" conftest.dir 6642 cd conftest.dir 6643 # We will build objects and dependencies in a subdirectory because 6644 # it helps to detect inapplicable dependency modes. For instance 6645 # both Tru64's cc and ICC support -MD to output dependencies as a 6646 # side effect of compilation, but ICC will put the dependencies in 6647 # the current directory while Tru64 will put them in the object 6648 # directory. 6649 mkdir sub 6650 6651 am_cv_CXX_dependencies_compiler_type=none 6652 if test "$am_compiler_list" = ""; then 6653 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6654 fi 6655 am__universal=false 6656 case " $depcc " in #( 6657 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6658 esac 6659 6660 for depmode in $am_compiler_list; do 6661 # Setup a source with many dependencies, because some compilers 6662 # like to wrap large dependency lists on column 80 (with \), and 6663 # we should not choose a depcomp mode which is confused by this. 6664 # 6665 # We need to recreate these files for each test, as the compiler may 6666 # overwrite some of them when testing with obscure command lines. 6667 # This happens at least with the AIX C compiler. 6668 : > sub/conftest.c 6669 for i in 1 2 3 4 5 6; do 6670 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6671 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6672 # Solaris 8's {/usr,}/bin/sh. 6673 touch sub/conftst$i.h 6674 done 6675 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6676 6677 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6678 # mode. It turns out that the SunPro C++ compiler does not properly 6679 # handle `-M -o', and we need to detect this. Also, some Intel 6680 # versions had trouble with output in subdirs 6681 am__obj=sub/conftest.${OBJEXT-o} 6682 am__minus_obj="-o $am__obj" 6683 case $depmode in 6684 gcc) 6685 # This depmode causes a compiler race in universal mode. 6686 test "$am__universal" = false || continue 6687 ;; 6688 nosideeffect) 6689 # after this tag, mechanisms are not by side-effect, so they'll 6690 # only be used when explicitly requested 6691 if test "x$enable_dependency_tracking" = xyes; then 6692 continue 6693 else 6694 break 6695 fi 6696 ;; 6697 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6698 # This compiler won't grok `-c -o', but also, the minuso test has 6699 # not run yet. These depmodes are late enough in the game, and 6700 # so weak that their functioning should not be impacted. 6701 am__obj=conftest.${OBJEXT-o} 6702 am__minus_obj= 6703 ;; 6704 none) break ;; 6705 esac 6706 if depmode=$depmode \ 6707 source=sub/conftest.c object=$am__obj \ 6708 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6709 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6710 >/dev/null 2>conftest.err && 6711 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6712 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6713 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6714 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6715 # icc doesn't choke on unknown options, it will just issue warnings 6716 # or remarks (even with -Werror). So we grep stderr for any message 6717 # that says an option was ignored or not supported. 6718 # When given -MP, icc 7.0 and 7.1 complain thusly: 6719 # icc: Command line warning: ignoring option '-M'; no argument required 6720 # The diagnosis changed in icc 8.0: 6721 # icc: Command line remark: option '-MP' not supported 6722 if (grep 'ignoring option' conftest.err || 6723 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6724 am_cv_CXX_dependencies_compiler_type=$depmode 6725 break 6726 fi 6727 fi 6728 done 6729 6730 cd .. 6731 rm -rf conftest.dir 6732else 6733 am_cv_CXX_dependencies_compiler_type=none 6734fi 6735 6736fi 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6738$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6739CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6740 6741 if 6742 test "x$enable_dependency_tracking" != xno \ 6743 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6744 am__fastdepCXX_TRUE= 6745 am__fastdepCXX_FALSE='#' 6746else 6747 am__fastdepCXX_TRUE='#' 6748 am__fastdepCXX_FALSE= 6749fi 6750 6751 6752ac_ext=c 6753ac_cpp='$CPP $CPPFLAGS' 6754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6756ac_compiler_gnu=$ac_cv_c_compiler_gnu 6757if test -n "$ac_tool_prefix"; then 6758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 6759set dummy ${ac_tool_prefix}gcc; ac_word=$2 6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6761$as_echo_n "checking for $ac_word... " >&6; } 6762if ${ac_cv_prog_CC+:} false; then : 6763 $as_echo_n "(cached) " >&6 6764else 6765 if test -n "$CC"; then 6766 ac_cv_prog_CC="$CC" # Let the user override the test. 6767else 6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6769for as_dir in $PATH 6770do 6771 IFS=$as_save_IFS 6772 test -z "$as_dir" && as_dir=. 6773 for ac_exec_ext in '' $ac_executable_extensions; do 6774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6775 ac_cv_prog_CC="${ac_tool_prefix}gcc" 6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6777 break 2 6778 fi 6779done 6780 done 6781IFS=$as_save_IFS 6782 6783fi 6784fi 6785CC=$ac_cv_prog_CC 6786if test -n "$CC"; then 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6788$as_echo "$CC" >&6; } 6789else 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6791$as_echo "no" >&6; } 6792fi 6793 6794 6795fi 6796if test -z "$ac_cv_prog_CC"; then 6797 ac_ct_CC=$CC 6798 # Extract the first word of "gcc", so it can be a program name with args. 6799set dummy gcc; ac_word=$2 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6801$as_echo_n "checking for $ac_word... " >&6; } 6802if ${ac_cv_prog_ac_ct_CC+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 if test -n "$ac_ct_CC"; then 6806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6807else 6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6809for as_dir in $PATH 6810do 6811 IFS=$as_save_IFS 6812 test -z "$as_dir" && as_dir=. 6813 for ac_exec_ext in '' $ac_executable_extensions; do 6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6815 ac_cv_prog_ac_ct_CC="gcc" 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6817 break 2 6818 fi 6819done 6820 done 6821IFS=$as_save_IFS 6822 6823fi 6824fi 6825ac_ct_CC=$ac_cv_prog_ac_ct_CC 6826if test -n "$ac_ct_CC"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6828$as_echo "$ac_ct_CC" >&6; } 6829else 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6831$as_echo "no" >&6; } 6832fi 6833 6834 if test "x$ac_ct_CC" = x; then 6835 CC="" 6836 else 6837 case $cross_compiling:$ac_tool_warned in 6838yes:) 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6841ac_tool_warned=yes ;; 6842esac 6843 CC=$ac_ct_CC 6844 fi 6845else 6846 CC="$ac_cv_prog_CC" 6847fi 6848 6849if test -z "$CC"; then 6850 if test -n "$ac_tool_prefix"; then 6851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 6852set dummy ${ac_tool_prefix}cc; ac_word=$2 6853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6854$as_echo_n "checking for $ac_word... " >&6; } 6855if ${ac_cv_prog_CC+:} false; then : 6856 $as_echo_n "(cached) " >&6 6857else 6858 if test -n "$CC"; then 6859 ac_cv_prog_CC="$CC" # Let the user override the test. 6860else 6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6862for as_dir in $PATH 6863do 6864 IFS=$as_save_IFS 6865 test -z "$as_dir" && as_dir=. 6866 for ac_exec_ext in '' $ac_executable_extensions; do 6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6868 ac_cv_prog_CC="${ac_tool_prefix}cc" 6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6870 break 2 6871 fi 6872done 6873 done 6874IFS=$as_save_IFS 6875 6876fi 6877fi 6878CC=$ac_cv_prog_CC 6879if test -n "$CC"; then 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6881$as_echo "$CC" >&6; } 6882else 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6884$as_echo "no" >&6; } 6885fi 6886 6887 6888 fi 6889fi 6890if test -z "$CC"; then 6891 # Extract the first word of "cc", so it can be a program name with args. 6892set dummy cc; ac_word=$2 6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6894$as_echo_n "checking for $ac_word... " >&6; } 6895if ${ac_cv_prog_CC+:} false; then : 6896 $as_echo_n "(cached) " >&6 6897else 6898 if test -n "$CC"; then 6899 ac_cv_prog_CC="$CC" # Let the user override the test. 6900else 6901 ac_prog_rejected=no 6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6903for as_dir in $PATH 6904do 6905 IFS=$as_save_IFS 6906 test -z "$as_dir" && as_dir=. 6907 for ac_exec_ext in '' $ac_executable_extensions; do 6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 6910 ac_prog_rejected=yes 6911 continue 6912 fi 6913 ac_cv_prog_CC="cc" 6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6915 break 2 6916 fi 6917done 6918 done 6919IFS=$as_save_IFS 6920 6921if test $ac_prog_rejected = yes; then 6922 # We found a bogon in the path, so make sure we never use it. 6923 set dummy $ac_cv_prog_CC 6924 shift 6925 if test $# != 0; then 6926 # We chose a different compiler from the bogus one. 6927 # However, it has the same basename, so the bogon will be chosen 6928 # first if we set CC to just the basename; use the full file name. 6929 shift 6930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 6931 fi 6932fi 6933fi 6934fi 6935CC=$ac_cv_prog_CC 6936if test -n "$CC"; then 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6938$as_echo "$CC" >&6; } 6939else 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6941$as_echo "no" >&6; } 6942fi 6943 6944 6945fi 6946if test -z "$CC"; then 6947 if test -n "$ac_tool_prefix"; then 6948 for ac_prog in cl.exe 6949 do 6950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6951set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6953$as_echo_n "checking for $ac_word... " >&6; } 6954if ${ac_cv_prog_CC+:} false; then : 6955 $as_echo_n "(cached) " >&6 6956else 6957 if test -n "$CC"; then 6958 ac_cv_prog_CC="$CC" # Let the user override the test. 6959else 6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6961for as_dir in $PATH 6962do 6963 IFS=$as_save_IFS 6964 test -z "$as_dir" && as_dir=. 6965 for ac_exec_ext in '' $ac_executable_extensions; do 6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6969 break 2 6970 fi 6971done 6972 done 6973IFS=$as_save_IFS 6974 6975fi 6976fi 6977CC=$ac_cv_prog_CC 6978if test -n "$CC"; then 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6980$as_echo "$CC" >&6; } 6981else 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6983$as_echo "no" >&6; } 6984fi 6985 6986 6987 test -n "$CC" && break 6988 done 6989fi 6990if test -z "$CC"; then 6991 ac_ct_CC=$CC 6992 for ac_prog in cl.exe 6993do 6994 # Extract the first word of "$ac_prog", so it can be a program name with args. 6995set dummy $ac_prog; ac_word=$2 6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6997$as_echo_n "checking for $ac_word... " >&6; } 6998if ${ac_cv_prog_ac_ct_CC+:} false; then : 6999 $as_echo_n "(cached) " >&6 7000else 7001 if test -n "$ac_ct_CC"; then 7002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 7003else 7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7005for as_dir in $PATH 7006do 7007 IFS=$as_save_IFS 7008 test -z "$as_dir" && as_dir=. 7009 for ac_exec_ext in '' $ac_executable_extensions; do 7010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7011 ac_cv_prog_ac_ct_CC="$ac_prog" 7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7013 break 2 7014 fi 7015done 7016 done 7017IFS=$as_save_IFS 7018 7019fi 7020fi 7021ac_ct_CC=$ac_cv_prog_ac_ct_CC 7022if test -n "$ac_ct_CC"; then 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 7024$as_echo "$ac_ct_CC" >&6; } 7025else 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7027$as_echo "no" >&6; } 7028fi 7029 7030 7031 test -n "$ac_ct_CC" && break 7032done 7033 7034 if test "x$ac_ct_CC" = x; then 7035 CC="" 7036 else 7037 case $cross_compiling:$ac_tool_warned in 7038yes:) 7039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7041ac_tool_warned=yes ;; 7042esac 7043 CC=$ac_ct_CC 7044 fi 7045fi 7046 7047fi 7048 7049 7050test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7052as_fn_error $? "no acceptable C compiler found in \$PATH 7053See \`config.log' for more details" "$LINENO" 5; } 7054 7055# Provide some information about the compiler. 7056$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 7057set X $ac_compile 7058ac_compiler=$2 7059for ac_option in --version -v -V -qversion; do 7060 { { ac_try="$ac_compiler $ac_option >&5" 7061case "(($ac_try" in 7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7063 *) ac_try_echo=$ac_try;; 7064esac 7065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7066$as_echo "$ac_try_echo"; } >&5 7067 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7068 ac_status=$? 7069 if test -s conftest.err; then 7070 sed '10a\ 7071... rest of stderr output deleted ... 7072 10q' conftest.err >conftest.er1 7073 cat conftest.er1 >&5 7074 fi 7075 rm -f conftest.er1 conftest.err 7076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7077 test $ac_status = 0; } 7078done 7079 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 7081$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 7082if ${ac_cv_c_compiler_gnu+:} false; then : 7083 $as_echo_n "(cached) " >&6 7084else 7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7086/* end confdefs.h. */ 7087 7088int 7089main () 7090{ 7091#ifndef __GNUC__ 7092 choke me 7093#endif 7094 7095 ; 7096 return 0; 7097} 7098_ACEOF 7099if ac_fn_c_try_compile "$LINENO"; then : 7100 ac_compiler_gnu=yes 7101else 7102 ac_compiler_gnu=no 7103fi 7104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7105ac_cv_c_compiler_gnu=$ac_compiler_gnu 7106 7107fi 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 7109$as_echo "$ac_cv_c_compiler_gnu" >&6; } 7110if test $ac_compiler_gnu = yes; then 7111 GCC=yes 7112else 7113 GCC= 7114fi 7115ac_test_CFLAGS=${CFLAGS+set} 7116ac_save_CFLAGS=$CFLAGS 7117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 7118$as_echo_n "checking whether $CC accepts -g... " >&6; } 7119if ${ac_cv_prog_cc_g+:} false; then : 7120 $as_echo_n "(cached) " >&6 7121else 7122 ac_save_c_werror_flag=$ac_c_werror_flag 7123 ac_c_werror_flag=yes 7124 ac_cv_prog_cc_g=no 7125 CFLAGS="-g" 7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7127/* end confdefs.h. */ 7128 7129int 7130main () 7131{ 7132 7133 ; 7134 return 0; 7135} 7136_ACEOF 7137if ac_fn_c_try_compile "$LINENO"; then : 7138 ac_cv_prog_cc_g=yes 7139else 7140 CFLAGS="" 7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7142/* end confdefs.h. */ 7143 7144int 7145main () 7146{ 7147 7148 ; 7149 return 0; 7150} 7151_ACEOF 7152if ac_fn_c_try_compile "$LINENO"; then : 7153 7154else 7155 ac_c_werror_flag=$ac_save_c_werror_flag 7156 CFLAGS="-g" 7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7158/* end confdefs.h. */ 7159 7160int 7161main () 7162{ 7163 7164 ; 7165 return 0; 7166} 7167_ACEOF 7168if ac_fn_c_try_compile "$LINENO"; then : 7169 ac_cv_prog_cc_g=yes 7170fi 7171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7172fi 7173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7174fi 7175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7176 ac_c_werror_flag=$ac_save_c_werror_flag 7177fi 7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 7179$as_echo "$ac_cv_prog_cc_g" >&6; } 7180if test "$ac_test_CFLAGS" = set; then 7181 CFLAGS=$ac_save_CFLAGS 7182elif test $ac_cv_prog_cc_g = yes; then 7183 if test "$GCC" = yes; then 7184 CFLAGS="-g -O2" 7185 else 7186 CFLAGS="-g" 7187 fi 7188else 7189 if test "$GCC" = yes; then 7190 CFLAGS="-O2" 7191 else 7192 CFLAGS= 7193 fi 7194fi 7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 7196$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 7197if ${ac_cv_prog_cc_c89+:} false; then : 7198 $as_echo_n "(cached) " >&6 7199else 7200 ac_cv_prog_cc_c89=no 7201ac_save_CC=$CC 7202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203/* end confdefs.h. */ 7204#include <stdarg.h> 7205#include <stdio.h> 7206struct stat; 7207/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 7208struct buf { int x; }; 7209FILE * (*rcsopen) (struct buf *, struct stat *, int); 7210static char *e (p, i) 7211 char **p; 7212 int i; 7213{ 7214 return p[i]; 7215} 7216static char *f (char * (*g) (char **, int), char **p, ...) 7217{ 7218 char *s; 7219 va_list v; 7220 va_start (v,p); 7221 s = g (p, va_arg (v,int)); 7222 va_end (v); 7223 return s; 7224} 7225 7226/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 7227 function prototypes and stuff, but not '\xHH' hex character constants. 7228 These don't provoke an error unfortunately, instead are silently treated 7229 as 'x'. The following induces an error, until -std is added to get 7230 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 7231 array size at least. It's necessary to write '\x00'==0 to get something 7232 that's true only with -std. */ 7233int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 7234 7235/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 7236 inside strings and character constants. */ 7237#define FOO(x) 'x' 7238int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 7239 7240int test (int i, double x); 7241struct s1 {int (*f) (int a);}; 7242struct s2 {int (*f) (double a);}; 7243int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 7244int argc; 7245char **argv; 7246int 7247main () 7248{ 7249return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 7250 ; 7251 return 0; 7252} 7253_ACEOF 7254for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 7255 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 7256do 7257 CC="$ac_save_CC $ac_arg" 7258 if ac_fn_c_try_compile "$LINENO"; then : 7259 ac_cv_prog_cc_c89=$ac_arg 7260fi 7261rm -f core conftest.err conftest.$ac_objext 7262 test "x$ac_cv_prog_cc_c89" != "xno" && break 7263done 7264rm -f conftest.$ac_ext 7265CC=$ac_save_CC 7266 7267fi 7268# AC_CACHE_VAL 7269case "x$ac_cv_prog_cc_c89" in 7270 x) 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7272$as_echo "none needed" >&6; } ;; 7273 xno) 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7275$as_echo "unsupported" >&6; } ;; 7276 *) 7277 CC="$CC $ac_cv_prog_cc_c89" 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 7279$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 7280esac 7281if test "x$ac_cv_prog_cc_c89" != xno; then : 7282 7283fi 7284 7285ac_ext=c 7286ac_cpp='$CPP $CPPFLAGS' 7287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7289ac_compiler_gnu=$ac_cv_c_compiler_gnu 7290 7291depcc="$CC" am_compiler_list= 7292 7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7294$as_echo_n "checking dependency style of $depcc... " >&6; } 7295if ${am_cv_CC_dependencies_compiler_type+:} false; then : 7296 $as_echo_n "(cached) " >&6 7297else 7298 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7299 # We make a subdir and do the tests there. Otherwise we can end up 7300 # making bogus files that we don't know about and never remove. For 7301 # instance it was reported that on HP-UX the gcc test will end up 7302 # making a dummy file named `D' -- because `-MD' means `put the output 7303 # in D'. 7304 rm -rf conftest.dir 7305 mkdir conftest.dir 7306 # Copy depcomp to subdir because otherwise we won't find it if we're 7307 # using a relative directory. 7308 cp "$am_depcomp" conftest.dir 7309 cd conftest.dir 7310 # We will build objects and dependencies in a subdirectory because 7311 # it helps to detect inapplicable dependency modes. For instance 7312 # both Tru64's cc and ICC support -MD to output dependencies as a 7313 # side effect of compilation, but ICC will put the dependencies in 7314 # the current directory while Tru64 will put them in the object 7315 # directory. 7316 mkdir sub 7317 7318 am_cv_CC_dependencies_compiler_type=none 7319 if test "$am_compiler_list" = ""; then 7320 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7321 fi 7322 am__universal=false 7323 case " $depcc " in #( 7324 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7325 esac 7326 7327 for depmode in $am_compiler_list; do 7328 # Setup a source with many dependencies, because some compilers 7329 # like to wrap large dependency lists on column 80 (with \), and 7330 # we should not choose a depcomp mode which is confused by this. 7331 # 7332 # We need to recreate these files for each test, as the compiler may 7333 # overwrite some of them when testing with obscure command lines. 7334 # This happens at least with the AIX C compiler. 7335 : > sub/conftest.c 7336 for i in 1 2 3 4 5 6; do 7337 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7338 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7339 # Solaris 8's {/usr,}/bin/sh. 7340 touch sub/conftst$i.h 7341 done 7342 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7343 7344 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7345 # mode. It turns out that the SunPro C++ compiler does not properly 7346 # handle `-M -o', and we need to detect this. Also, some Intel 7347 # versions had trouble with output in subdirs 7348 am__obj=sub/conftest.${OBJEXT-o} 7349 am__minus_obj="-o $am__obj" 7350 case $depmode in 7351 gcc) 7352 # This depmode causes a compiler race in universal mode. 7353 test "$am__universal" = false || continue 7354 ;; 7355 nosideeffect) 7356 # after this tag, mechanisms are not by side-effect, so they'll 7357 # only be used when explicitly requested 7358 if test "x$enable_dependency_tracking" = xyes; then 7359 continue 7360 else 7361 break 7362 fi 7363 ;; 7364 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7365 # This compiler won't grok `-c -o', but also, the minuso test has 7366 # not run yet. These depmodes are late enough in the game, and 7367 # so weak that their functioning should not be impacted. 7368 am__obj=conftest.${OBJEXT-o} 7369 am__minus_obj= 7370 ;; 7371 none) break ;; 7372 esac 7373 if depmode=$depmode \ 7374 source=sub/conftest.c object=$am__obj \ 7375 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7376 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7377 >/dev/null 2>conftest.err && 7378 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7379 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7380 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7381 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7382 # icc doesn't choke on unknown options, it will just issue warnings 7383 # or remarks (even with -Werror). So we grep stderr for any message 7384 # that says an option was ignored or not supported. 7385 # When given -MP, icc 7.0 and 7.1 complain thusly: 7386 # icc: Command line warning: ignoring option '-M'; no argument required 7387 # The diagnosis changed in icc 8.0: 7388 # icc: Command line remark: option '-MP' not supported 7389 if (grep 'ignoring option' conftest.err || 7390 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7391 am_cv_CC_dependencies_compiler_type=$depmode 7392 break 7393 fi 7394 fi 7395 done 7396 7397 cd .. 7398 rm -rf conftest.dir 7399else 7400 am_cv_CC_dependencies_compiler_type=none 7401fi 7402 7403fi 7404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 7405$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 7406CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 7407 7408 if 7409 test "x$enable_dependency_tracking" != xno \ 7410 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 7411 am__fastdepCC_TRUE= 7412 am__fastdepCC_FALSE='#' 7413else 7414 am__fastdepCC_TRUE='#' 7415 am__fastdepCC_FALSE= 7416fi 7417 7418 7419case `pwd` in 7420 *\ * | *\ *) 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7422$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7423esac 7424 7425 7426 7427macro_version='2.4' 7428macro_revision='1.3293' 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442ltmain="$ac_aux_dir/ltmain.sh" 7443 7444# Backslashify metacharacters that are still active within 7445# double-quoted strings. 7446sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7447 7448# Same as above, but do not quote variable references. 7449double_quote_subst='s/\(["`\\]\)/\\\1/g' 7450 7451# Sed substitution to delay expansion of an escaped shell variable in a 7452# double_quote_subst'ed string. 7453delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7454 7455# Sed substitution to delay expansion of an escaped single quote. 7456delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7457 7458# Sed substitution to avoid accidental globbing in evaled expressions 7459no_glob_subst='s/\*/\\\*/g' 7460 7461ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7462ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7463ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7464 7465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7466$as_echo_n "checking how to print strings... " >&6; } 7467# Test print first, because it will be a builtin if present. 7468if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7469 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7470 ECHO='print -r --' 7471elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7472 ECHO='printf %s\n' 7473else 7474 # Use this function as a fallback that always works. 7475 func_fallback_echo () 7476 { 7477 eval 'cat <<_LTECHO_EOF 7478$1 7479_LTECHO_EOF' 7480 } 7481 ECHO='func_fallback_echo' 7482fi 7483 7484# func_echo_all arg... 7485# Invoke $ECHO with all args, space-separated. 7486func_echo_all () 7487{ 7488 $ECHO "" 7489} 7490 7491case "$ECHO" in 7492 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7493$as_echo "printf" >&6; } ;; 7494 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7495$as_echo "print -r" >&6; } ;; 7496 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7497$as_echo "cat" >&6; } ;; 7498esac 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7514$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7515if ${ac_cv_path_SED+:} false; then : 7516 $as_echo_n "(cached) " >&6 7517else 7518 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7519 for ac_i in 1 2 3 4 5 6 7; do 7520 ac_script="$ac_script$as_nl$ac_script" 7521 done 7522 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7523 { ac_script=; unset ac_script;} 7524 if test -z "$SED"; then 7525 ac_path_SED_found=false 7526 # Loop through the user's path and test for each of PROGNAME-LIST 7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7528for as_dir in $PATH 7529do 7530 IFS=$as_save_IFS 7531 test -z "$as_dir" && as_dir=. 7532 for ac_prog in sed gsed; do 7533 for ac_exec_ext in '' $ac_executable_extensions; do 7534 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7535 as_fn_executable_p "$ac_path_SED" || continue 7536# Check for GNU ac_path_SED and select it if it is found. 7537 # Check for GNU $ac_path_SED 7538case `"$ac_path_SED" --version 2>&1` in 7539*GNU*) 7540 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7541*) 7542 ac_count=0 7543 $as_echo_n 0123456789 >"conftest.in" 7544 while : 7545 do 7546 cat "conftest.in" "conftest.in" >"conftest.tmp" 7547 mv "conftest.tmp" "conftest.in" 7548 cp "conftest.in" "conftest.nl" 7549 $as_echo '' >> "conftest.nl" 7550 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7552 as_fn_arith $ac_count + 1 && ac_count=$as_val 7553 if test $ac_count -gt ${ac_path_SED_max-0}; then 7554 # Best one so far, save it but keep looking for a better one 7555 ac_cv_path_SED="$ac_path_SED" 7556 ac_path_SED_max=$ac_count 7557 fi 7558 # 10*(2^10) chars as input seems more than enough 7559 test $ac_count -gt 10 && break 7560 done 7561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7562esac 7563 7564 $ac_path_SED_found && break 3 7565 done 7566 done 7567 done 7568IFS=$as_save_IFS 7569 if test -z "$ac_cv_path_SED"; then 7570 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7571 fi 7572else 7573 ac_cv_path_SED=$SED 7574fi 7575 7576fi 7577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7578$as_echo "$ac_cv_path_SED" >&6; } 7579 SED="$ac_cv_path_SED" 7580 rm -f conftest.sed 7581 7582test -z "$SED" && SED=sed 7583Xsed="$SED -e 1s/^X//" 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7596$as_echo_n "checking for fgrep... " >&6; } 7597if ${ac_cv_path_FGREP+:} false; then : 7598 $as_echo_n "(cached) " >&6 7599else 7600 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7601 then ac_cv_path_FGREP="$GREP -F" 7602 else 7603 if test -z "$FGREP"; then 7604 ac_path_FGREP_found=false 7605 # Loop through the user's path and test for each of PROGNAME-LIST 7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7607for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7608do 7609 IFS=$as_save_IFS 7610 test -z "$as_dir" && as_dir=. 7611 for ac_prog in fgrep; do 7612 for ac_exec_ext in '' $ac_executable_extensions; do 7613 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7614 as_fn_executable_p "$ac_path_FGREP" || continue 7615# Check for GNU ac_path_FGREP and select it if it is found. 7616 # Check for GNU $ac_path_FGREP 7617case `"$ac_path_FGREP" --version 2>&1` in 7618*GNU*) 7619 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7620*) 7621 ac_count=0 7622 $as_echo_n 0123456789 >"conftest.in" 7623 while : 7624 do 7625 cat "conftest.in" "conftest.in" >"conftest.tmp" 7626 mv "conftest.tmp" "conftest.in" 7627 cp "conftest.in" "conftest.nl" 7628 $as_echo 'FGREP' >> "conftest.nl" 7629 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7631 as_fn_arith $ac_count + 1 && ac_count=$as_val 7632 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7633 # Best one so far, save it but keep looking for a better one 7634 ac_cv_path_FGREP="$ac_path_FGREP" 7635 ac_path_FGREP_max=$ac_count 7636 fi 7637 # 10*(2^10) chars as input seems more than enough 7638 test $ac_count -gt 10 && break 7639 done 7640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7641esac 7642 7643 $ac_path_FGREP_found && break 3 7644 done 7645 done 7646 done 7647IFS=$as_save_IFS 7648 if test -z "$ac_cv_path_FGREP"; then 7649 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7650 fi 7651else 7652 ac_cv_path_FGREP=$FGREP 7653fi 7654 7655 fi 7656fi 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7658$as_echo "$ac_cv_path_FGREP" >&6; } 7659 FGREP="$ac_cv_path_FGREP" 7660 7661 7662test -z "$GREP" && GREP=grep 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682# Check whether --with-gnu-ld was given. 7683if test "${with_gnu_ld+set}" = set; then : 7684 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7685else 7686 with_gnu_ld=no 7687fi 7688 7689ac_prog=ld 7690if test "$GCC" = yes; then 7691 # Check if gcc -print-prog-name=ld gives a path. 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7693$as_echo_n "checking for ld used by $CC... " >&6; } 7694 case $host in 7695 *-*-mingw*) 7696 # gcc leaves a trailing carriage return which upsets mingw 7697 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7698 *) 7699 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7700 esac 7701 case $ac_prog in 7702 # Accept absolute paths. 7703 [\\/]* | ?:[\\/]*) 7704 re_direlt='/[^/][^/]*/\.\./' 7705 # Canonicalize the pathname of ld 7706 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7707 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7708 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7709 done 7710 test -z "$LD" && LD="$ac_prog" 7711 ;; 7712 "") 7713 # If it fails, then pretend we aren't using GCC. 7714 ac_prog=ld 7715 ;; 7716 *) 7717 # If it is relative, then search for the first ld in PATH. 7718 with_gnu_ld=unknown 7719 ;; 7720 esac 7721elif test "$with_gnu_ld" = yes; then 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7723$as_echo_n "checking for GNU ld... " >&6; } 7724else 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7726$as_echo_n "checking for non-GNU ld... " >&6; } 7727fi 7728if ${lt_cv_path_LD+:} false; then : 7729 $as_echo_n "(cached) " >&6 7730else 7731 if test -z "$LD"; then 7732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7733 for ac_dir in $PATH; do 7734 IFS="$lt_save_ifs" 7735 test -z "$ac_dir" && ac_dir=. 7736 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7737 lt_cv_path_LD="$ac_dir/$ac_prog" 7738 # Check to see if the program is GNU ld. I'd rather use --version, 7739 # but apparently some variants of GNU ld only accept -v. 7740 # Break only if it was the GNU/non-GNU ld that we prefer. 7741 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7742 *GNU* | *'with BFD'*) 7743 test "$with_gnu_ld" != no && break 7744 ;; 7745 *) 7746 test "$with_gnu_ld" != yes && break 7747 ;; 7748 esac 7749 fi 7750 done 7751 IFS="$lt_save_ifs" 7752else 7753 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7754fi 7755fi 7756 7757LD="$lt_cv_path_LD" 7758if test -n "$LD"; then 7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7760$as_echo "$LD" >&6; } 7761else 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7763$as_echo "no" >&6; } 7764fi 7765test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7767$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7768if ${lt_cv_prog_gnu_ld+:} false; then : 7769 $as_echo_n "(cached) " >&6 7770else 7771 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7772case `$LD -v 2>&1 </dev/null` in 7773*GNU* | *'with BFD'*) 7774 lt_cv_prog_gnu_ld=yes 7775 ;; 7776*) 7777 lt_cv_prog_gnu_ld=no 7778 ;; 7779esac 7780fi 7781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7782$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7783with_gnu_ld=$lt_cv_prog_gnu_ld 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7794$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7795if ${lt_cv_path_NM+:} false; then : 7796 $as_echo_n "(cached) " >&6 7797else 7798 if test -n "$NM"; then 7799 # Let the user override the test. 7800 lt_cv_path_NM="$NM" 7801else 7802 lt_nm_to_check="${ac_tool_prefix}nm" 7803 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7804 lt_nm_to_check="$lt_nm_to_check nm" 7805 fi 7806 for lt_tmp_nm in $lt_nm_to_check; do 7807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7808 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7809 IFS="$lt_save_ifs" 7810 test -z "$ac_dir" && ac_dir=. 7811 tmp_nm="$ac_dir/$lt_tmp_nm" 7812 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7813 # Check to see if the nm accepts a BSD-compat flag. 7814 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7815 # nm: unknown option "B" ignored 7816 # Tru64's nm complains that /dev/null is an invalid object file 7817 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7818 */dev/null* | *'Invalid file or object type'*) 7819 lt_cv_path_NM="$tmp_nm -B" 7820 break 7821 ;; 7822 *) 7823 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7824 */dev/null*) 7825 lt_cv_path_NM="$tmp_nm -p" 7826 break 7827 ;; 7828 *) 7829 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7830 continue # so that we can try to find one that supports BSD flags 7831 ;; 7832 esac 7833 ;; 7834 esac 7835 fi 7836 done 7837 IFS="$lt_save_ifs" 7838 done 7839 : ${lt_cv_path_NM=no} 7840fi 7841fi 7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7843$as_echo "$lt_cv_path_NM" >&6; } 7844if test "$lt_cv_path_NM" != "no"; then 7845 NM="$lt_cv_path_NM" 7846else 7847 # Didn't find any BSD compatible name lister, look for dumpbin. 7848 if test -n "$DUMPBIN"; then : 7849 # Let the user override the test. 7850 else 7851 if test -n "$ac_tool_prefix"; then 7852 for ac_prog in dumpbin "link -dump" 7853 do 7854 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7855set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7857$as_echo_n "checking for $ac_word... " >&6; } 7858if ${ac_cv_prog_DUMPBIN+:} false; then : 7859 $as_echo_n "(cached) " >&6 7860else 7861 if test -n "$DUMPBIN"; then 7862 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7863else 7864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7865for as_dir in $PATH 7866do 7867 IFS=$as_save_IFS 7868 test -z "$as_dir" && as_dir=. 7869 for ac_exec_ext in '' $ac_executable_extensions; do 7870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7871 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7873 break 2 7874 fi 7875done 7876 done 7877IFS=$as_save_IFS 7878 7879fi 7880fi 7881DUMPBIN=$ac_cv_prog_DUMPBIN 7882if test -n "$DUMPBIN"; then 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7884$as_echo "$DUMPBIN" >&6; } 7885else 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7887$as_echo "no" >&6; } 7888fi 7889 7890 7891 test -n "$DUMPBIN" && break 7892 done 7893fi 7894if test -z "$DUMPBIN"; then 7895 ac_ct_DUMPBIN=$DUMPBIN 7896 for ac_prog in dumpbin "link -dump" 7897do 7898 # Extract the first word of "$ac_prog", so it can be a program name with args. 7899set dummy $ac_prog; ac_word=$2 7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7901$as_echo_n "checking for $ac_word... " >&6; } 7902if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7903 $as_echo_n "(cached) " >&6 7904else 7905 if test -n "$ac_ct_DUMPBIN"; then 7906 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7907else 7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7909for as_dir in $PATH 7910do 7911 IFS=$as_save_IFS 7912 test -z "$as_dir" && as_dir=. 7913 for ac_exec_ext in '' $ac_executable_extensions; do 7914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7915 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7917 break 2 7918 fi 7919done 7920 done 7921IFS=$as_save_IFS 7922 7923fi 7924fi 7925ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7926if test -n "$ac_ct_DUMPBIN"; then 7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7928$as_echo "$ac_ct_DUMPBIN" >&6; } 7929else 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7931$as_echo "no" >&6; } 7932fi 7933 7934 7935 test -n "$ac_ct_DUMPBIN" && break 7936done 7937 7938 if test "x$ac_ct_DUMPBIN" = x; then 7939 DUMPBIN=":" 7940 else 7941 case $cross_compiling:$ac_tool_warned in 7942yes:) 7943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7945ac_tool_warned=yes ;; 7946esac 7947 DUMPBIN=$ac_ct_DUMPBIN 7948 fi 7949fi 7950 7951 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7952 *COFF*) 7953 DUMPBIN="$DUMPBIN -symbols" 7954 ;; 7955 *) 7956 DUMPBIN=: 7957 ;; 7958 esac 7959 fi 7960 7961 if test "$DUMPBIN" != ":"; then 7962 NM="$DUMPBIN" 7963 fi 7964fi 7965test -z "$NM" && NM=nm 7966 7967 7968 7969 7970 7971 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7973$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7974if ${lt_cv_nm_interface+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976else 7977 lt_cv_nm_interface="BSD nm" 7978 echo "int some_variable = 0;" > conftest.$ac_ext 7979 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7980 (eval "$ac_compile" 2>conftest.err) 7981 cat conftest.err >&5 7982 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7983 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7984 cat conftest.err >&5 7985 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7986 cat conftest.out >&5 7987 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7988 lt_cv_nm_interface="MS dumpbin" 7989 fi 7990 rm -f conftest* 7991fi 7992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7993$as_echo "$lt_cv_nm_interface" >&6; } 7994 7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7996$as_echo_n "checking whether ln -s works... " >&6; } 7997LN_S=$as_ln_s 7998if test "$LN_S" = "ln -s"; then 7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8000$as_echo "yes" >&6; } 8001else 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8003$as_echo "no, using $LN_S" >&6; } 8004fi 8005 8006# find the maximum length of command line arguments 8007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8008$as_echo_n "checking the maximum length of command line arguments... " >&6; } 8009if ${lt_cv_sys_max_cmd_len+:} false; then : 8010 $as_echo_n "(cached) " >&6 8011else 8012 i=0 8013 teststring="ABCD" 8014 8015 case $build_os in 8016 msdosdjgpp*) 8017 # On DJGPP, this test can blow up pretty badly due to problems in libc 8018 # (any single argument exceeding 2000 bytes causes a buffer overrun 8019 # during glob expansion). Even if it were fixed, the result of this 8020 # check would be larger than it should be. 8021 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8022 ;; 8023 8024 gnu*) 8025 # Under GNU Hurd, this test is not required because there is 8026 # no limit to the length of command line arguments. 8027 # Libtool will interpret -1 as no limit whatsoever 8028 lt_cv_sys_max_cmd_len=-1; 8029 ;; 8030 8031 cygwin* | mingw* | cegcc*) 8032 # On Win9x/ME, this test blows up -- it succeeds, but takes 8033 # about 5 minutes as the teststring grows exponentially. 8034 # Worse, since 9x/ME are not pre-emptively multitasking, 8035 # you end up with a "frozen" computer, even though with patience 8036 # the test eventually succeeds (with a max line length of 256k). 8037 # Instead, let's just punt: use the minimum linelength reported by 8038 # all of the supported platforms: 8192 (on NT/2K/XP). 8039 lt_cv_sys_max_cmd_len=8192; 8040 ;; 8041 8042 mint*) 8043 # On MiNT this can take a long time and run out of memory. 8044 lt_cv_sys_max_cmd_len=8192; 8045 ;; 8046 8047 amigaos*) 8048 # On AmigaOS with pdksh, this test takes hours, literally. 8049 # So we just punt and use a minimum line length of 8192. 8050 lt_cv_sys_max_cmd_len=8192; 8051 ;; 8052 8053 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 8054 # This has been around since 386BSD, at least. Likely further. 8055 if test -x /sbin/sysctl; then 8056 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8057 elif test -x /usr/sbin/sysctl; then 8058 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8059 else 8060 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8061 fi 8062 # And add a safety zone 8063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8065 ;; 8066 8067 interix*) 8068 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8069 lt_cv_sys_max_cmd_len=196608 8070 ;; 8071 8072 osf*) 8073 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8074 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8075 # nice to cause kernel panics so lets avoid the loop below. 8076 # First set a reasonable default. 8077 lt_cv_sys_max_cmd_len=16384 8078 # 8079 if test -x /sbin/sysconfig; then 8080 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8081 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8082 esac 8083 fi 8084 ;; 8085 sco3.2v5*) 8086 lt_cv_sys_max_cmd_len=102400 8087 ;; 8088 sysv5* | sco5v6* | sysv4.2uw2*) 8089 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8090 if test -n "$kargmax"; then 8091 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8092 else 8093 lt_cv_sys_max_cmd_len=32768 8094 fi 8095 ;; 8096 *) 8097 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8098 if test -n "$lt_cv_sys_max_cmd_len"; then 8099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8101 else 8102 # Make teststring a little bigger before we do anything with it. 8103 # a 1K string should be a reasonable start. 8104 for i in 1 2 3 4 5 6 7 8 ; do 8105 teststring=$teststring$teststring 8106 done 8107 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8108 # If test is not a shell built-in, we'll probably end up computing a 8109 # maximum length that is only half of the actual maximum length, but 8110 # we can't tell. 8111 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 8112 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8113 test $i != 17 # 1/2 MB should be enough 8114 do 8115 i=`expr $i + 1` 8116 teststring=$teststring$teststring 8117 done 8118 # Only check the string length outside the loop. 8119 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8120 teststring= 8121 # Add a significant safety factor because C++ compilers can tack on 8122 # massive amounts of additional arguments before passing them to the 8123 # linker. It appears as though 1/2 is a usable value. 8124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8125 fi 8126 ;; 8127 esac 8128 8129fi 8130 8131if test -n $lt_cv_sys_max_cmd_len ; then 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8133$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8134else 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8136$as_echo "none" >&6; } 8137fi 8138max_cmd_len=$lt_cv_sys_max_cmd_len 8139 8140 8141 8142 8143 8144 8145: ${CP="cp -f"} 8146: ${MV="mv -f"} 8147: ${RM="rm -f"} 8148 8149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 8150$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 8151# Try some XSI features 8152xsi_shell=no 8153( _lt_dummy="a/b/c" 8154 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 8155 = c,a/b,b/c, \ 8156 && eval 'test $(( 1 + 1 )) -eq 2 \ 8157 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 8158 && xsi_shell=yes 8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 8160$as_echo "$xsi_shell" >&6; } 8161 8162 8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 8164$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 8165lt_shell_append=no 8166( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 8167 >/dev/null 2>&1 \ 8168 && lt_shell_append=yes 8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 8170$as_echo "$lt_shell_append" >&6; } 8171 8172 8173if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8174 lt_unset=unset 8175else 8176 lt_unset=false 8177fi 8178 8179 8180 8181 8182 8183# test EBCDIC or ASCII 8184case `echo X|tr X '\101'` in 8185 A) # ASCII based system 8186 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8187 lt_SP2NL='tr \040 \012' 8188 lt_NL2SP='tr \015\012 \040\040' 8189 ;; 8190 *) # EBCDIC based system 8191 lt_SP2NL='tr \100 \n' 8192 lt_NL2SP='tr \r\n \100\100' 8193 ;; 8194esac 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8205$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8206if ${lt_cv_to_host_file_cmd+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208else 8209 case $host in 8210 *-*-mingw* ) 8211 case $build in 8212 *-*-mingw* ) # actually msys 8213 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8214 ;; 8215 *-*-cygwin* ) 8216 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8217 ;; 8218 * ) # otherwise, assume *nix 8219 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8220 ;; 8221 esac 8222 ;; 8223 *-*-cygwin* ) 8224 case $build in 8225 *-*-mingw* ) # actually msys 8226 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8227 ;; 8228 *-*-cygwin* ) 8229 lt_cv_to_host_file_cmd=func_convert_file_noop 8230 ;; 8231 * ) # otherwise, assume *nix 8232 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8233 ;; 8234 esac 8235 ;; 8236 * ) # unhandled hosts (and "normal" native builds) 8237 lt_cv_to_host_file_cmd=func_convert_file_noop 8238 ;; 8239esac 8240 8241fi 8242 8243to_host_file_cmd=$lt_cv_to_host_file_cmd 8244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8245$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8246 8247 8248 8249 8250 8251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8252$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8253if ${lt_cv_to_tool_file_cmd+:} false; then : 8254 $as_echo_n "(cached) " >&6 8255else 8256 #assume ordinary cross tools, or native build. 8257lt_cv_to_tool_file_cmd=func_convert_file_noop 8258case $host in 8259 *-*-mingw* ) 8260 case $build in 8261 *-*-mingw* ) # actually msys 8262 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8263 ;; 8264 esac 8265 ;; 8266esac 8267 8268fi 8269 8270to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8272$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8273 8274 8275 8276 8277 8278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8279$as_echo_n "checking for $LD option to reload object files... " >&6; } 8280if ${lt_cv_ld_reload_flag+:} false; then : 8281 $as_echo_n "(cached) " >&6 8282else 8283 lt_cv_ld_reload_flag='-r' 8284fi 8285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8286$as_echo "$lt_cv_ld_reload_flag" >&6; } 8287reload_flag=$lt_cv_ld_reload_flag 8288case $reload_flag in 8289"" | " "*) ;; 8290*) reload_flag=" $reload_flag" ;; 8291esac 8292reload_cmds='$LD$reload_flag -o $output$reload_objs' 8293case $host_os in 8294 cygwin* | mingw* | pw32* | cegcc*) 8295 if test "$GCC" != yes; then 8296 reload_cmds=false 8297 fi 8298 ;; 8299 darwin*) 8300 if test "$GCC" = yes; then 8301 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 8302 else 8303 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8304 fi 8305 ;; 8306esac 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316if test -n "$ac_tool_prefix"; then 8317 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8318set dummy ${ac_tool_prefix}objdump; ac_word=$2 8319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8320$as_echo_n "checking for $ac_word... " >&6; } 8321if ${ac_cv_prog_OBJDUMP+:} false; then : 8322 $as_echo_n "(cached) " >&6 8323else 8324 if test -n "$OBJDUMP"; then 8325 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8326else 8327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8328for as_dir in $PATH 8329do 8330 IFS=$as_save_IFS 8331 test -z "$as_dir" && as_dir=. 8332 for ac_exec_ext in '' $ac_executable_extensions; do 8333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8334 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8336 break 2 8337 fi 8338done 8339 done 8340IFS=$as_save_IFS 8341 8342fi 8343fi 8344OBJDUMP=$ac_cv_prog_OBJDUMP 8345if test -n "$OBJDUMP"; then 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8347$as_echo "$OBJDUMP" >&6; } 8348else 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8350$as_echo "no" >&6; } 8351fi 8352 8353 8354fi 8355if test -z "$ac_cv_prog_OBJDUMP"; then 8356 ac_ct_OBJDUMP=$OBJDUMP 8357 # Extract the first word of "objdump", so it can be a program name with args. 8358set dummy objdump; ac_word=$2 8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8360$as_echo_n "checking for $ac_word... " >&6; } 8361if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8362 $as_echo_n "(cached) " >&6 8363else 8364 if test -n "$ac_ct_OBJDUMP"; then 8365 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8366else 8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8368for as_dir in $PATH 8369do 8370 IFS=$as_save_IFS 8371 test -z "$as_dir" && as_dir=. 8372 for ac_exec_ext in '' $ac_executable_extensions; do 8373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8374 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8376 break 2 8377 fi 8378done 8379 done 8380IFS=$as_save_IFS 8381 8382fi 8383fi 8384ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8385if test -n "$ac_ct_OBJDUMP"; then 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8387$as_echo "$ac_ct_OBJDUMP" >&6; } 8388else 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8390$as_echo "no" >&6; } 8391fi 8392 8393 if test "x$ac_ct_OBJDUMP" = x; then 8394 OBJDUMP="false" 8395 else 8396 case $cross_compiling:$ac_tool_warned in 8397yes:) 8398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8400ac_tool_warned=yes ;; 8401esac 8402 OBJDUMP=$ac_ct_OBJDUMP 8403 fi 8404else 8405 OBJDUMP="$ac_cv_prog_OBJDUMP" 8406fi 8407 8408test -z "$OBJDUMP" && OBJDUMP=objdump 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8419$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8420if ${lt_cv_deplibs_check_method+:} false; then : 8421 $as_echo_n "(cached) " >&6 8422else 8423 lt_cv_file_magic_cmd='$MAGIC_CMD' 8424lt_cv_file_magic_test_file= 8425lt_cv_deplibs_check_method='unknown' 8426# Need to set the preceding variable on all platforms that support 8427# interlibrary dependencies. 8428# 'none' -- dependencies not supported. 8429# `unknown' -- same as none, but documents that we really don't know. 8430# 'pass_all' -- all dependencies passed with no checks. 8431# 'test_compile' -- check by making test program. 8432# 'file_magic [[regex]]' -- check by looking for files in library path 8433# which responds to the $file_magic_cmd with a given extended regex. 8434# If you have `file' or equivalent on your system and you're not sure 8435# whether `pass_all' will *always* work, you probably want this one. 8436 8437case $host_os in 8438aix[4-9]*) 8439 lt_cv_deplibs_check_method=pass_all 8440 ;; 8441 8442beos*) 8443 lt_cv_deplibs_check_method=pass_all 8444 ;; 8445 8446bsdi[45]*) 8447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8448 lt_cv_file_magic_cmd='/usr/bin/file -L' 8449 lt_cv_file_magic_test_file=/shlib/libc.so 8450 ;; 8451 8452cygwin*) 8453 # func_win32_libid is a shell function defined in ltmain.sh 8454 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8455 lt_cv_file_magic_cmd='func_win32_libid' 8456 ;; 8457 8458mingw* | pw32*) 8459 # Base MSYS/MinGW do not provide the 'file' command needed by 8460 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8461 # unless we find 'file', for example because we are cross-compiling. 8462 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 8463 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 8464 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8465 lt_cv_file_magic_cmd='func_win32_libid' 8466 else 8467 # Keep this pattern in sync with the one in func_win32_libid. 8468 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8469 lt_cv_file_magic_cmd='$OBJDUMP -f' 8470 fi 8471 ;; 8472 8473cegcc*) 8474 # use the weaker test based on 'objdump'. See mingw*. 8475 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8476 lt_cv_file_magic_cmd='$OBJDUMP -f' 8477 ;; 8478 8479darwin* | rhapsody*) 8480 lt_cv_deplibs_check_method=pass_all 8481 ;; 8482 8483freebsd* | dragonfly*) 8484 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8485 case $host_cpu in 8486 i*86 ) 8487 # Not sure whether the presence of OpenBSD here was a mistake. 8488 # Let's accept both of them until this is cleared up. 8489 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8490 lt_cv_file_magic_cmd=/usr/bin/file 8491 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8492 ;; 8493 esac 8494 else 8495 lt_cv_deplibs_check_method=pass_all 8496 fi 8497 ;; 8498 8499gnu*) 8500 lt_cv_deplibs_check_method=pass_all 8501 ;; 8502 8503haiku*) 8504 lt_cv_deplibs_check_method=pass_all 8505 ;; 8506 8507hpux10.20* | hpux11*) 8508 lt_cv_file_magic_cmd=/usr/bin/file 8509 case $host_cpu in 8510 ia64*) 8511 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8512 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8513 ;; 8514 hppa*64*) 8515 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]' 8516 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8517 ;; 8518 *) 8519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8520 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8521 ;; 8522 esac 8523 ;; 8524 8525interix[3-9]*) 8526 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8528 ;; 8529 8530irix5* | irix6* | nonstopux*) 8531 case $LD in 8532 *-32|*"-32 ") libmagic=32-bit;; 8533 *-n32|*"-n32 ") libmagic=N32;; 8534 *-64|*"-64 ") libmagic=64-bit;; 8535 *) libmagic=never-match;; 8536 esac 8537 lt_cv_deplibs_check_method=pass_all 8538 ;; 8539 8540# This must be Linux ELF. 8541linux* | k*bsd*-gnu | kopensolaris*-gnu) 8542 lt_cv_deplibs_check_method=pass_all 8543 ;; 8544 8545netbsd*) 8546 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8548 else 8549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8550 fi 8551 ;; 8552 8553newos6*) 8554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8555 lt_cv_file_magic_cmd=/usr/bin/file 8556 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8557 ;; 8558 8559*nto* | *qnx*) 8560 lt_cv_deplibs_check_method=pass_all 8561 ;; 8562 8563openbsd*) 8564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8566 else 8567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8568 fi 8569 ;; 8570 8571osf3* | osf4* | osf5*) 8572 lt_cv_deplibs_check_method=pass_all 8573 ;; 8574 8575rdos*) 8576 lt_cv_deplibs_check_method=pass_all 8577 ;; 8578 8579solaris*) 8580 lt_cv_deplibs_check_method=pass_all 8581 ;; 8582 8583sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8584 lt_cv_deplibs_check_method=pass_all 8585 ;; 8586 8587sysv4 | sysv4.3*) 8588 case $host_vendor in 8589 motorola) 8590 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]' 8591 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8592 ;; 8593 ncr) 8594 lt_cv_deplibs_check_method=pass_all 8595 ;; 8596 sequent) 8597 lt_cv_file_magic_cmd='/bin/file' 8598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8599 ;; 8600 sni) 8601 lt_cv_file_magic_cmd='/bin/file' 8602 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8603 lt_cv_file_magic_test_file=/lib/libc.so 8604 ;; 8605 siemens) 8606 lt_cv_deplibs_check_method=pass_all 8607 ;; 8608 pc) 8609 lt_cv_deplibs_check_method=pass_all 8610 ;; 8611 esac 8612 ;; 8613 8614tpf*) 8615 lt_cv_deplibs_check_method=pass_all 8616 ;; 8617esac 8618 8619fi 8620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8621$as_echo "$lt_cv_deplibs_check_method" >&6; } 8622 8623file_magic_glob= 8624want_nocaseglob=no 8625if test "$build" = "$host"; then 8626 case $host_os in 8627 mingw* | pw32*) 8628 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8629 want_nocaseglob=yes 8630 else 8631 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8632 fi 8633 ;; 8634 esac 8635fi 8636 8637file_magic_cmd=$lt_cv_file_magic_cmd 8638deplibs_check_method=$lt_cv_deplibs_check_method 8639test -z "$deplibs_check_method" && deplibs_check_method=unknown 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662if test -n "$ac_tool_prefix"; then 8663 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8664set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8666$as_echo_n "checking for $ac_word... " >&6; } 8667if ${ac_cv_prog_DLLTOOL+:} false; then : 8668 $as_echo_n "(cached) " >&6 8669else 8670 if test -n "$DLLTOOL"; then 8671 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8672else 8673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8674for as_dir in $PATH 8675do 8676 IFS=$as_save_IFS 8677 test -z "$as_dir" && as_dir=. 8678 for ac_exec_ext in '' $ac_executable_extensions; do 8679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8680 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8682 break 2 8683 fi 8684done 8685 done 8686IFS=$as_save_IFS 8687 8688fi 8689fi 8690DLLTOOL=$ac_cv_prog_DLLTOOL 8691if test -n "$DLLTOOL"; then 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8693$as_echo "$DLLTOOL" >&6; } 8694else 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8696$as_echo "no" >&6; } 8697fi 8698 8699 8700fi 8701if test -z "$ac_cv_prog_DLLTOOL"; then 8702 ac_ct_DLLTOOL=$DLLTOOL 8703 # Extract the first word of "dlltool", so it can be a program name with args. 8704set dummy dlltool; ac_word=$2 8705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8706$as_echo_n "checking for $ac_word... " >&6; } 8707if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8708 $as_echo_n "(cached) " >&6 8709else 8710 if test -n "$ac_ct_DLLTOOL"; then 8711 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8712else 8713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8714for as_dir in $PATH 8715do 8716 IFS=$as_save_IFS 8717 test -z "$as_dir" && as_dir=. 8718 for ac_exec_ext in '' $ac_executable_extensions; do 8719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8720 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8722 break 2 8723 fi 8724done 8725 done 8726IFS=$as_save_IFS 8727 8728fi 8729fi 8730ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8731if test -n "$ac_ct_DLLTOOL"; then 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8733$as_echo "$ac_ct_DLLTOOL" >&6; } 8734else 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8736$as_echo "no" >&6; } 8737fi 8738 8739 if test "x$ac_ct_DLLTOOL" = x; then 8740 DLLTOOL="false" 8741 else 8742 case $cross_compiling:$ac_tool_warned in 8743yes:) 8744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8746ac_tool_warned=yes ;; 8747esac 8748 DLLTOOL=$ac_ct_DLLTOOL 8749 fi 8750else 8751 DLLTOOL="$ac_cv_prog_DLLTOOL" 8752fi 8753 8754test -z "$DLLTOOL" && DLLTOOL=dlltool 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8766$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8767if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8768 $as_echo_n "(cached) " >&6 8769else 8770 lt_cv_sharedlib_from_linklib_cmd='unknown' 8771 8772case $host_os in 8773cygwin* | mingw* | pw32* | cegcc*) 8774 # two different shell functions defined in ltmain.sh 8775 # decide which to use based on capabilities of $DLLTOOL 8776 case `$DLLTOOL --help 2>&1` in 8777 *--identify-strict*) 8778 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8779 ;; 8780 *) 8781 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8782 ;; 8783 esac 8784 ;; 8785*) 8786 # fallback: assume linklib IS sharedlib 8787 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 8788 ;; 8789esac 8790 8791fi 8792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8793$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8794sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8795test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8796 8797 8798 8799 8800 8801 8802 8803if test -n "$ac_tool_prefix"; then 8804 for ac_prog in ar 8805 do 8806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8807set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8809$as_echo_n "checking for $ac_word... " >&6; } 8810if ${ac_cv_prog_AR+:} false; then : 8811 $as_echo_n "(cached) " >&6 8812else 8813 if test -n "$AR"; then 8814 ac_cv_prog_AR="$AR" # Let the user override the test. 8815else 8816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8817for as_dir in $PATH 8818do 8819 IFS=$as_save_IFS 8820 test -z "$as_dir" && as_dir=. 8821 for ac_exec_ext in '' $ac_executable_extensions; do 8822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8823 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8825 break 2 8826 fi 8827done 8828 done 8829IFS=$as_save_IFS 8830 8831fi 8832fi 8833AR=$ac_cv_prog_AR 8834if test -n "$AR"; then 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8836$as_echo "$AR" >&6; } 8837else 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8839$as_echo "no" >&6; } 8840fi 8841 8842 8843 test -n "$AR" && break 8844 done 8845fi 8846if test -z "$AR"; then 8847 ac_ct_AR=$AR 8848 for ac_prog in ar 8849do 8850 # Extract the first word of "$ac_prog", so it can be a program name with args. 8851set dummy $ac_prog; ac_word=$2 8852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8853$as_echo_n "checking for $ac_word... " >&6; } 8854if ${ac_cv_prog_ac_ct_AR+:} false; then : 8855 $as_echo_n "(cached) " >&6 8856else 8857 if test -n "$ac_ct_AR"; then 8858 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8859else 8860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8861for as_dir in $PATH 8862do 8863 IFS=$as_save_IFS 8864 test -z "$as_dir" && as_dir=. 8865 for ac_exec_ext in '' $ac_executable_extensions; do 8866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8867 ac_cv_prog_ac_ct_AR="$ac_prog" 8868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8869 break 2 8870 fi 8871done 8872 done 8873IFS=$as_save_IFS 8874 8875fi 8876fi 8877ac_ct_AR=$ac_cv_prog_ac_ct_AR 8878if test -n "$ac_ct_AR"; then 8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8880$as_echo "$ac_ct_AR" >&6; } 8881else 8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8883$as_echo "no" >&6; } 8884fi 8885 8886 8887 test -n "$ac_ct_AR" && break 8888done 8889 8890 if test "x$ac_ct_AR" = x; then 8891 AR="false" 8892 else 8893 case $cross_compiling:$ac_tool_warned in 8894yes:) 8895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8897ac_tool_warned=yes ;; 8898esac 8899 AR=$ac_ct_AR 8900 fi 8901fi 8902 8903: ${AR=ar} 8904: ${AR_FLAGS=cru} 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8917$as_echo_n "checking for archiver @FILE support... " >&6; } 8918if ${lt_cv_ar_at_file+:} false; then : 8919 $as_echo_n "(cached) " >&6 8920else 8921 lt_cv_ar_at_file=no 8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8923/* end confdefs.h. */ 8924 8925int 8926main () 8927{ 8928 8929 ; 8930 return 0; 8931} 8932_ACEOF 8933if ac_fn_c_try_compile "$LINENO"; then : 8934 echo conftest.$ac_objext > conftest.lst 8935 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8937 (eval $lt_ar_try) 2>&5 8938 ac_status=$? 8939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8940 test $ac_status = 0; } 8941 if test "$ac_status" -eq 0; then 8942 # Ensure the archiver fails upon bogus file names. 8943 rm -f conftest.$ac_objext libconftest.a 8944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8945 (eval $lt_ar_try) 2>&5 8946 ac_status=$? 8947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8948 test $ac_status = 0; } 8949 if test "$ac_status" -ne 0; then 8950 lt_cv_ar_at_file=@ 8951 fi 8952 fi 8953 rm -f conftest.* libconftest.a 8954 8955fi 8956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8957 8958fi 8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8960$as_echo "$lt_cv_ar_at_file" >&6; } 8961 8962if test "x$lt_cv_ar_at_file" = xno; then 8963 archiver_list_spec= 8964else 8965 archiver_list_spec=$lt_cv_ar_at_file 8966fi 8967 8968 8969 8970 8971 8972 8973 8974if test -n "$ac_tool_prefix"; then 8975 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8976set dummy ${ac_tool_prefix}strip; ac_word=$2 8977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8978$as_echo_n "checking for $ac_word... " >&6; } 8979if ${ac_cv_prog_STRIP+:} false; then : 8980 $as_echo_n "(cached) " >&6 8981else 8982 if test -n "$STRIP"; then 8983 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8984else 8985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8986for as_dir in $PATH 8987do 8988 IFS=$as_save_IFS 8989 test -z "$as_dir" && as_dir=. 8990 for ac_exec_ext in '' $ac_executable_extensions; do 8991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8992 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8994 break 2 8995 fi 8996done 8997 done 8998IFS=$as_save_IFS 8999 9000fi 9001fi 9002STRIP=$ac_cv_prog_STRIP 9003if test -n "$STRIP"; then 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9005$as_echo "$STRIP" >&6; } 9006else 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9008$as_echo "no" >&6; } 9009fi 9010 9011 9012fi 9013if test -z "$ac_cv_prog_STRIP"; then 9014 ac_ct_STRIP=$STRIP 9015 # Extract the first word of "strip", so it can be a program name with args. 9016set dummy strip; ac_word=$2 9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9018$as_echo_n "checking for $ac_word... " >&6; } 9019if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 9020 $as_echo_n "(cached) " >&6 9021else 9022 if test -n "$ac_ct_STRIP"; then 9023 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9024else 9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9026for as_dir in $PATH 9027do 9028 IFS=$as_save_IFS 9029 test -z "$as_dir" && as_dir=. 9030 for ac_exec_ext in '' $ac_executable_extensions; do 9031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9032 ac_cv_prog_ac_ct_STRIP="strip" 9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9034 break 2 9035 fi 9036done 9037 done 9038IFS=$as_save_IFS 9039 9040fi 9041fi 9042ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9043if test -n "$ac_ct_STRIP"; then 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9045$as_echo "$ac_ct_STRIP" >&6; } 9046else 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9048$as_echo "no" >&6; } 9049fi 9050 9051 if test "x$ac_ct_STRIP" = x; then 9052 STRIP=":" 9053 else 9054 case $cross_compiling:$ac_tool_warned in 9055yes:) 9056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9058ac_tool_warned=yes ;; 9059esac 9060 STRIP=$ac_ct_STRIP 9061 fi 9062else 9063 STRIP="$ac_cv_prog_STRIP" 9064fi 9065 9066test -z "$STRIP" && STRIP=: 9067 9068 9069 9070 9071 9072 9073if test -n "$ac_tool_prefix"; then 9074 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9075set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9077$as_echo_n "checking for $ac_word... " >&6; } 9078if ${ac_cv_prog_RANLIB+:} false; then : 9079 $as_echo_n "(cached) " >&6 9080else 9081 if test -n "$RANLIB"; then 9082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9083else 9084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9085for as_dir in $PATH 9086do 9087 IFS=$as_save_IFS 9088 test -z "$as_dir" && as_dir=. 9089 for ac_exec_ext in '' $ac_executable_extensions; do 9090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9091 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9093 break 2 9094 fi 9095done 9096 done 9097IFS=$as_save_IFS 9098 9099fi 9100fi 9101RANLIB=$ac_cv_prog_RANLIB 9102if test -n "$RANLIB"; then 9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9104$as_echo "$RANLIB" >&6; } 9105else 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9107$as_echo "no" >&6; } 9108fi 9109 9110 9111fi 9112if test -z "$ac_cv_prog_RANLIB"; then 9113 ac_ct_RANLIB=$RANLIB 9114 # Extract the first word of "ranlib", so it can be a program name with args. 9115set dummy ranlib; ac_word=$2 9116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9117$as_echo_n "checking for $ac_word... " >&6; } 9118if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9119 $as_echo_n "(cached) " >&6 9120else 9121 if test -n "$ac_ct_RANLIB"; then 9122 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9123else 9124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9125for as_dir in $PATH 9126do 9127 IFS=$as_save_IFS 9128 test -z "$as_dir" && as_dir=. 9129 for ac_exec_ext in '' $ac_executable_extensions; do 9130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9131 ac_cv_prog_ac_ct_RANLIB="ranlib" 9132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9133 break 2 9134 fi 9135done 9136 done 9137IFS=$as_save_IFS 9138 9139fi 9140fi 9141ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9142if test -n "$ac_ct_RANLIB"; then 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9144$as_echo "$ac_ct_RANLIB" >&6; } 9145else 9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9147$as_echo "no" >&6; } 9148fi 9149 9150 if test "x$ac_ct_RANLIB" = x; then 9151 RANLIB=":" 9152 else 9153 case $cross_compiling:$ac_tool_warned in 9154yes:) 9155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9157ac_tool_warned=yes ;; 9158esac 9159 RANLIB=$ac_ct_RANLIB 9160 fi 9161else 9162 RANLIB="$ac_cv_prog_RANLIB" 9163fi 9164 9165test -z "$RANLIB" && RANLIB=: 9166 9167 9168 9169 9170 9171 9172# Determine commands to create old-style static archives. 9173old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9174old_postinstall_cmds='chmod 644 $oldlib' 9175old_postuninstall_cmds= 9176 9177if test -n "$RANLIB"; then 9178 case $host_os in 9179 openbsd*) 9180 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 9181 ;; 9182 *) 9183 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 9184 ;; 9185 esac 9186 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 9187fi 9188 9189case $host_os in 9190 darwin*) 9191 lock_old_archive_extraction=yes ;; 9192 *) 9193 lock_old_archive_extraction=no ;; 9194esac 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234# If no C compiler was specified, use CC. 9235LTCC=${LTCC-"$CC"} 9236 9237# If no C compiler flags were specified, use CFLAGS. 9238LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9239 9240# Allow CC to be a program name with arguments. 9241compiler=$CC 9242 9243 9244# Check for command to grab the raw symbol name followed by C symbol from nm. 9245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9246$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9247if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9248 $as_echo_n "(cached) " >&6 9249else 9250 9251# These are sane defaults that work on at least a few old systems. 9252# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9253 9254# Character class describing NM global symbol codes. 9255symcode='[BCDEGRST]' 9256 9257# Regexp to match symbols that can be accessed directly from C. 9258sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9259 9260# Define system-specific variables. 9261case $host_os in 9262aix*) 9263 symcode='[BCDT]' 9264 ;; 9265cygwin* | mingw* | pw32* | cegcc*) 9266 symcode='[ABCDGISTW]' 9267 ;; 9268hpux*) 9269 if test "$host_cpu" = ia64; then 9270 symcode='[ABCDEGRST]' 9271 fi 9272 ;; 9273irix* | nonstopux*) 9274 symcode='[BCDEGRST]' 9275 ;; 9276osf*) 9277 symcode='[BCDEGQRST]' 9278 ;; 9279solaris*) 9280 symcode='[BDRT]' 9281 ;; 9282sco3.2v5*) 9283 symcode='[DT]' 9284 ;; 9285sysv4.2uw2*) 9286 symcode='[DT]' 9287 ;; 9288sysv5* | sco5v6* | unixware* | OpenUNIX*) 9289 symcode='[ABDT]' 9290 ;; 9291sysv4) 9292 symcode='[DFNSTU]' 9293 ;; 9294esac 9295 9296# If we're using GNU nm, then use its standard symbol codes. 9297case `$NM -V 2>&1` in 9298*GNU* | *'with BFD'*) 9299 symcode='[ABCDGIRSTW]' ;; 9300esac 9301 9302# Transform an extracted symbol line into a proper C declaration. 9303# Some systems (esp. on ia64) link data and code symbols differently, 9304# so use this general approach. 9305lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9306 9307# Transform an extracted symbol line into symbol name and symbol address 9308lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 9309lt_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'" 9310 9311# Handle CRLF in mingw tool chain 9312opt_cr= 9313case $build_os in 9314mingw*) 9315 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9316 ;; 9317esac 9318 9319# Try without a prefix underscore, then with it. 9320for ac_symprfx in "" "_"; do 9321 9322 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9323 symxfrm="\\1 $ac_symprfx\\2 \\2" 9324 9325 # Write the raw and C identifiers. 9326 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9327 # Fake it for dumpbin and say T for any non-static function 9328 # and D for any global variable. 9329 # Also find C++ and __fastcall symbols from MSVC++, 9330 # which start with @ or ?. 9331 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9332" {last_section=section; section=\$ 3};"\ 9333" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9334" \$ 0!~/External *\|/{next};"\ 9335" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9336" {if(hide[section]) next};"\ 9337" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 9338" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 9339" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 9340" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 9341" ' prfx=^$ac_symprfx" 9342 else 9343 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9344 fi 9345 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9346 9347 # Check to see that the pipe works correctly. 9348 pipe_works=no 9349 9350 rm -f conftest* 9351 cat > conftest.$ac_ext <<_LT_EOF 9352#ifdef __cplusplus 9353extern "C" { 9354#endif 9355char nm_test_var; 9356void nm_test_func(void); 9357void nm_test_func(void){} 9358#ifdef __cplusplus 9359} 9360#endif 9361int main(){nm_test_var='a';nm_test_func();return(0);} 9362_LT_EOF 9363 9364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9365 (eval $ac_compile) 2>&5 9366 ac_status=$? 9367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9368 test $ac_status = 0; }; then 9369 # Now try to grab the symbols. 9370 nlist=conftest.nm 9371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9372 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9373 ac_status=$? 9374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9375 test $ac_status = 0; } && test -s "$nlist"; then 9376 # Try sorting and uniquifying the output. 9377 if sort "$nlist" | uniq > "$nlist"T; then 9378 mv -f "$nlist"T "$nlist" 9379 else 9380 rm -f "$nlist"T 9381 fi 9382 9383 # Make sure that we snagged all the symbols we need. 9384 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9385 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9386 cat <<_LT_EOF > conftest.$ac_ext 9387/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9388#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 9389/* DATA imports from DLLs on WIN32 con't be const, because runtime 9390 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9391# define LT_DLSYM_CONST 9392#elif defined(__osf__) 9393/* This system does not cope well with relocations in const data. */ 9394# define LT_DLSYM_CONST 9395#else 9396# define LT_DLSYM_CONST const 9397#endif 9398 9399#ifdef __cplusplus 9400extern "C" { 9401#endif 9402 9403_LT_EOF 9404 # Now generate the symbol file. 9405 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9406 9407 cat <<_LT_EOF >> conftest.$ac_ext 9408 9409/* The mapping between symbol names and symbols. */ 9410LT_DLSYM_CONST struct { 9411 const char *name; 9412 void *address; 9413} 9414lt__PROGRAM__LTX_preloaded_symbols[] = 9415{ 9416 { "@PROGRAM@", (void *) 0 }, 9417_LT_EOF 9418 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9419 cat <<\_LT_EOF >> conftest.$ac_ext 9420 {0, (void *) 0} 9421}; 9422 9423/* This works around a problem in FreeBSD linker */ 9424#ifdef FREEBSD_WORKAROUND 9425static const void *lt_preloaded_setup() { 9426 return lt__PROGRAM__LTX_preloaded_symbols; 9427} 9428#endif 9429 9430#ifdef __cplusplus 9431} 9432#endif 9433_LT_EOF 9434 # Now try linking the two files. 9435 mv conftest.$ac_objext conftstm.$ac_objext 9436 lt_globsym_save_LIBS=$LIBS 9437 lt_globsym_save_CFLAGS=$CFLAGS 9438 LIBS="conftstm.$ac_objext" 9439 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9441 (eval $ac_link) 2>&5 9442 ac_status=$? 9443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9444 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 9445 pipe_works=yes 9446 fi 9447 LIBS=$lt_globsym_save_LIBS 9448 CFLAGS=$lt_globsym_save_CFLAGS 9449 else 9450 echo "cannot find nm_test_func in $nlist" >&5 9451 fi 9452 else 9453 echo "cannot find nm_test_var in $nlist" >&5 9454 fi 9455 else 9456 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9457 fi 9458 else 9459 echo "$progname: failed program was:" >&5 9460 cat conftest.$ac_ext >&5 9461 fi 9462 rm -rf conftest* conftst* 9463 9464 # Do not use the global_symbol_pipe unless it works. 9465 if test "$pipe_works" = yes; then 9466 break 9467 else 9468 lt_cv_sys_global_symbol_pipe= 9469 fi 9470done 9471 9472fi 9473 9474if test -z "$lt_cv_sys_global_symbol_pipe"; then 9475 lt_cv_sys_global_symbol_to_cdecl= 9476fi 9477if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9479$as_echo "failed" >&6; } 9480else 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9482$as_echo "ok" >&6; } 9483fi 9484 9485# Response file support. 9486if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9487 nm_file_list_spec='@' 9488elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9489 nm_file_list_spec='@' 9490fi 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9519$as_echo_n "checking for sysroot... " >&6; } 9520 9521# Check whether --with-sysroot was given. 9522if test "${with_sysroot+set}" = set; then : 9523 withval=$with_sysroot; 9524else 9525 with_sysroot=no 9526fi 9527 9528 9529lt_sysroot= 9530case ${with_sysroot} in #( 9531 yes) 9532 if test "$GCC" = yes; then 9533 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9534 fi 9535 ;; #( 9536 /*) 9537 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9538 ;; #( 9539 no|'') 9540 ;; #( 9541 *) 9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 9543$as_echo "${with_sysroot}" >&6; } 9544 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9545 ;; 9546esac 9547 9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9549$as_echo "${lt_sysroot:-no}" >&6; } 9550 9551 9552 9553 9554 9555# Check whether --enable-libtool-lock was given. 9556if test "${enable_libtool_lock+set}" = set; then : 9557 enableval=$enable_libtool_lock; 9558fi 9559 9560test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 9561 9562# Some flags need to be propagated to the compiler or linker for good 9563# libtool support. 9564case $host in 9565ia64-*-hpux*) 9566 # Find out which ABI we are using. 9567 echo 'int i;' > conftest.$ac_ext 9568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9569 (eval $ac_compile) 2>&5 9570 ac_status=$? 9571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9572 test $ac_status = 0; }; then 9573 case `/usr/bin/file conftest.$ac_objext` in 9574 *ELF-32*) 9575 HPUX_IA64_MODE="32" 9576 ;; 9577 *ELF-64*) 9578 HPUX_IA64_MODE="64" 9579 ;; 9580 esac 9581 fi 9582 rm -rf conftest* 9583 ;; 9584*-*-irix6*) 9585 # Find out which ABI we are using. 9586 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9588 (eval $ac_compile) 2>&5 9589 ac_status=$? 9590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9591 test $ac_status = 0; }; then 9592 if test "$lt_cv_prog_gnu_ld" = yes; then 9593 case `/usr/bin/file conftest.$ac_objext` in 9594 *32-bit*) 9595 LD="${LD-ld} -melf32bsmip" 9596 ;; 9597 *N32*) 9598 LD="${LD-ld} -melf32bmipn32" 9599 ;; 9600 *64-bit*) 9601 LD="${LD-ld} -melf64bmip" 9602 ;; 9603 esac 9604 else 9605 case `/usr/bin/file conftest.$ac_objext` in 9606 *32-bit*) 9607 LD="${LD-ld} -32" 9608 ;; 9609 *N32*) 9610 LD="${LD-ld} -n32" 9611 ;; 9612 *64-bit*) 9613 LD="${LD-ld} -64" 9614 ;; 9615 esac 9616 fi 9617 fi 9618 rm -rf conftest* 9619 ;; 9620 9621x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 9622s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9623 # Find out which ABI we are using. 9624 echo 'int i;' > conftest.$ac_ext 9625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9626 (eval $ac_compile) 2>&5 9627 ac_status=$? 9628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9629 test $ac_status = 0; }; then 9630 case `/usr/bin/file conftest.o` in 9631 *32-bit*) 9632 case $host in 9633 x86_64-*kfreebsd*-gnu) 9634 LD="${LD-ld} -m elf_i386_fbsd" 9635 ;; 9636 x86_64-*linux*) 9637 LD="${LD-ld} -m elf_i386" 9638 ;; 9639 ppc64-*linux*|powerpc64-*linux*) 9640 LD="${LD-ld} -m elf32ppclinux" 9641 ;; 9642 s390x-*linux*) 9643 LD="${LD-ld} -m elf_s390" 9644 ;; 9645 sparc64-*linux*) 9646 LD="${LD-ld} -m elf32_sparc" 9647 ;; 9648 esac 9649 ;; 9650 *64-bit*) 9651 case $host in 9652 x86_64-*kfreebsd*-gnu) 9653 LD="${LD-ld} -m elf_x86_64_fbsd" 9654 ;; 9655 x86_64-*linux*) 9656 LD="${LD-ld} -m elf_x86_64" 9657 ;; 9658 ppc*-*linux*|powerpc*-*linux*) 9659 LD="${LD-ld} -m elf64ppc" 9660 ;; 9661 s390*-*linux*|s390*-*tpf*) 9662 LD="${LD-ld} -m elf64_s390" 9663 ;; 9664 sparc*-*linux*) 9665 LD="${LD-ld} -m elf64_sparc" 9666 ;; 9667 esac 9668 ;; 9669 esac 9670 fi 9671 rm -rf conftest* 9672 ;; 9673 9674*-*-sco3.2v5*) 9675 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9676 SAVE_CFLAGS="$CFLAGS" 9677 CFLAGS="$CFLAGS -belf" 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9679$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9680if ${lt_cv_cc_needs_belf+:} false; then : 9681 $as_echo_n "(cached) " >&6 9682else 9683 ac_ext=c 9684ac_cpp='$CPP $CPPFLAGS' 9685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9687ac_compiler_gnu=$ac_cv_c_compiler_gnu 9688 9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9690/* end confdefs.h. */ 9691 9692int 9693main () 9694{ 9695 9696 ; 9697 return 0; 9698} 9699_ACEOF 9700if ac_fn_c_try_link "$LINENO"; then : 9701 lt_cv_cc_needs_belf=yes 9702else 9703 lt_cv_cc_needs_belf=no 9704fi 9705rm -f core conftest.err conftest.$ac_objext \ 9706 conftest$ac_exeext conftest.$ac_ext 9707 ac_ext=c 9708ac_cpp='$CPP $CPPFLAGS' 9709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9711ac_compiler_gnu=$ac_cv_c_compiler_gnu 9712 9713fi 9714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9715$as_echo "$lt_cv_cc_needs_belf" >&6; } 9716 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9717 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9718 CFLAGS="$SAVE_CFLAGS" 9719 fi 9720 ;; 9721sparc*-*solaris*) 9722 # Find out which ABI we are using. 9723 echo 'int i;' > conftest.$ac_ext 9724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9725 (eval $ac_compile) 2>&5 9726 ac_status=$? 9727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9728 test $ac_status = 0; }; then 9729 case `/usr/bin/file conftest.o` in 9730 *64-bit*) 9731 case $lt_cv_prog_gnu_ld in 9732 yes*) LD="${LD-ld} -m elf64_sparc" ;; 9733 *) 9734 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9735 LD="${LD-ld} -64" 9736 fi 9737 ;; 9738 esac 9739 ;; 9740 esac 9741 fi 9742 rm -rf conftest* 9743 ;; 9744esac 9745 9746need_locks="$enable_libtool_lock" 9747 9748if test -n "$ac_tool_prefix"; then 9749 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9750set dummy ${ac_tool_prefix}mt; ac_word=$2 9751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9752$as_echo_n "checking for $ac_word... " >&6; } 9753if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9754 $as_echo_n "(cached) " >&6 9755else 9756 if test -n "$MANIFEST_TOOL"; then 9757 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9758else 9759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9760for as_dir in $PATH 9761do 9762 IFS=$as_save_IFS 9763 test -z "$as_dir" && as_dir=. 9764 for ac_exec_ext in '' $ac_executable_extensions; do 9765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9766 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9768 break 2 9769 fi 9770done 9771 done 9772IFS=$as_save_IFS 9773 9774fi 9775fi 9776MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9777if test -n "$MANIFEST_TOOL"; then 9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9779$as_echo "$MANIFEST_TOOL" >&6; } 9780else 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9782$as_echo "no" >&6; } 9783fi 9784 9785 9786fi 9787if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9788 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9789 # Extract the first word of "mt", so it can be a program name with args. 9790set dummy mt; ac_word=$2 9791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9792$as_echo_n "checking for $ac_word... " >&6; } 9793if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9794 $as_echo_n "(cached) " >&6 9795else 9796 if test -n "$ac_ct_MANIFEST_TOOL"; then 9797 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9798else 9799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9800for as_dir in $PATH 9801do 9802 IFS=$as_save_IFS 9803 test -z "$as_dir" && as_dir=. 9804 for ac_exec_ext in '' $ac_executable_extensions; do 9805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9806 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9808 break 2 9809 fi 9810done 9811 done 9812IFS=$as_save_IFS 9813 9814fi 9815fi 9816ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9817if test -n "$ac_ct_MANIFEST_TOOL"; then 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9819$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9820else 9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9822$as_echo "no" >&6; } 9823fi 9824 9825 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9826 MANIFEST_TOOL=":" 9827 else 9828 case $cross_compiling:$ac_tool_warned in 9829yes:) 9830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9832ac_tool_warned=yes ;; 9833esac 9834 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9835 fi 9836else 9837 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9838fi 9839 9840test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9842$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9843if ${lt_cv_path_mainfest_tool+:} false; then : 9844 $as_echo_n "(cached) " >&6 9845else 9846 lt_cv_path_mainfest_tool=no 9847 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9848 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9849 cat conftest.err >&5 9850 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9851 lt_cv_path_mainfest_tool=yes 9852 fi 9853 rm -f conftest* 9854fi 9855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9856$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9857if test "x$lt_cv_path_mainfest_tool" != xyes; then 9858 MANIFEST_TOOL=: 9859fi 9860 9861 9862 9863 9864 9865 9866 case $host_os in 9867 rhapsody* | darwin*) 9868 if test -n "$ac_tool_prefix"; then 9869 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9870set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9872$as_echo_n "checking for $ac_word... " >&6; } 9873if ${ac_cv_prog_DSYMUTIL+:} false; then : 9874 $as_echo_n "(cached) " >&6 9875else 9876 if test -n "$DSYMUTIL"; then 9877 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9878else 9879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9880for as_dir in $PATH 9881do 9882 IFS=$as_save_IFS 9883 test -z "$as_dir" && as_dir=. 9884 for ac_exec_ext in '' $ac_executable_extensions; do 9885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9886 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9888 break 2 9889 fi 9890done 9891 done 9892IFS=$as_save_IFS 9893 9894fi 9895fi 9896DSYMUTIL=$ac_cv_prog_DSYMUTIL 9897if test -n "$DSYMUTIL"; then 9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9899$as_echo "$DSYMUTIL" >&6; } 9900else 9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9902$as_echo "no" >&6; } 9903fi 9904 9905 9906fi 9907if test -z "$ac_cv_prog_DSYMUTIL"; then 9908 ac_ct_DSYMUTIL=$DSYMUTIL 9909 # Extract the first word of "dsymutil", so it can be a program name with args. 9910set dummy dsymutil; ac_word=$2 9911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9912$as_echo_n "checking for $ac_word... " >&6; } 9913if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9914 $as_echo_n "(cached) " >&6 9915else 9916 if test -n "$ac_ct_DSYMUTIL"; then 9917 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9918else 9919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9920for as_dir in $PATH 9921do 9922 IFS=$as_save_IFS 9923 test -z "$as_dir" && as_dir=. 9924 for ac_exec_ext in '' $ac_executable_extensions; do 9925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9926 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9928 break 2 9929 fi 9930done 9931 done 9932IFS=$as_save_IFS 9933 9934fi 9935fi 9936ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9937if test -n "$ac_ct_DSYMUTIL"; then 9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9939$as_echo "$ac_ct_DSYMUTIL" >&6; } 9940else 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9942$as_echo "no" >&6; } 9943fi 9944 9945 if test "x$ac_ct_DSYMUTIL" = x; then 9946 DSYMUTIL=":" 9947 else 9948 case $cross_compiling:$ac_tool_warned in 9949yes:) 9950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9952ac_tool_warned=yes ;; 9953esac 9954 DSYMUTIL=$ac_ct_DSYMUTIL 9955 fi 9956else 9957 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9958fi 9959 9960 if test -n "$ac_tool_prefix"; then 9961 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9962set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9964$as_echo_n "checking for $ac_word... " >&6; } 9965if ${ac_cv_prog_NMEDIT+:} false; then : 9966 $as_echo_n "(cached) " >&6 9967else 9968 if test -n "$NMEDIT"; then 9969 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9970else 9971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9972for as_dir in $PATH 9973do 9974 IFS=$as_save_IFS 9975 test -z "$as_dir" && as_dir=. 9976 for ac_exec_ext in '' $ac_executable_extensions; do 9977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9978 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9980 break 2 9981 fi 9982done 9983 done 9984IFS=$as_save_IFS 9985 9986fi 9987fi 9988NMEDIT=$ac_cv_prog_NMEDIT 9989if test -n "$NMEDIT"; then 9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9991$as_echo "$NMEDIT" >&6; } 9992else 9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9994$as_echo "no" >&6; } 9995fi 9996 9997 9998fi 9999if test -z "$ac_cv_prog_NMEDIT"; then 10000 ac_ct_NMEDIT=$NMEDIT 10001 # Extract the first word of "nmedit", so it can be a program name with args. 10002set dummy nmedit; ac_word=$2 10003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10004$as_echo_n "checking for $ac_word... " >&6; } 10005if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10006 $as_echo_n "(cached) " >&6 10007else 10008 if test -n "$ac_ct_NMEDIT"; then 10009 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10010else 10011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10012for as_dir in $PATH 10013do 10014 IFS=$as_save_IFS 10015 test -z "$as_dir" && as_dir=. 10016 for ac_exec_ext in '' $ac_executable_extensions; do 10017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10018 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10020 break 2 10021 fi 10022done 10023 done 10024IFS=$as_save_IFS 10025 10026fi 10027fi 10028ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10029if test -n "$ac_ct_NMEDIT"; then 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10031$as_echo "$ac_ct_NMEDIT" >&6; } 10032else 10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10034$as_echo "no" >&6; } 10035fi 10036 10037 if test "x$ac_ct_NMEDIT" = x; then 10038 NMEDIT=":" 10039 else 10040 case $cross_compiling:$ac_tool_warned in 10041yes:) 10042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10044ac_tool_warned=yes ;; 10045esac 10046 NMEDIT=$ac_ct_NMEDIT 10047 fi 10048else 10049 NMEDIT="$ac_cv_prog_NMEDIT" 10050fi 10051 10052 if test -n "$ac_tool_prefix"; then 10053 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10054set dummy ${ac_tool_prefix}lipo; ac_word=$2 10055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10056$as_echo_n "checking for $ac_word... " >&6; } 10057if ${ac_cv_prog_LIPO+:} false; then : 10058 $as_echo_n "(cached) " >&6 10059else 10060 if test -n "$LIPO"; then 10061 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10062else 10063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10064for as_dir in $PATH 10065do 10066 IFS=$as_save_IFS 10067 test -z "$as_dir" && as_dir=. 10068 for ac_exec_ext in '' $ac_executable_extensions; do 10069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10070 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10072 break 2 10073 fi 10074done 10075 done 10076IFS=$as_save_IFS 10077 10078fi 10079fi 10080LIPO=$ac_cv_prog_LIPO 10081if test -n "$LIPO"; then 10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10083$as_echo "$LIPO" >&6; } 10084else 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10086$as_echo "no" >&6; } 10087fi 10088 10089 10090fi 10091if test -z "$ac_cv_prog_LIPO"; then 10092 ac_ct_LIPO=$LIPO 10093 # Extract the first word of "lipo", so it can be a program name with args. 10094set dummy lipo; ac_word=$2 10095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10096$as_echo_n "checking for $ac_word... " >&6; } 10097if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10098 $as_echo_n "(cached) " >&6 10099else 10100 if test -n "$ac_ct_LIPO"; then 10101 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10102else 10103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10104for as_dir in $PATH 10105do 10106 IFS=$as_save_IFS 10107 test -z "$as_dir" && as_dir=. 10108 for ac_exec_ext in '' $ac_executable_extensions; do 10109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10110 ac_cv_prog_ac_ct_LIPO="lipo" 10111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10112 break 2 10113 fi 10114done 10115 done 10116IFS=$as_save_IFS 10117 10118fi 10119fi 10120ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10121if test -n "$ac_ct_LIPO"; then 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10123$as_echo "$ac_ct_LIPO" >&6; } 10124else 10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10126$as_echo "no" >&6; } 10127fi 10128 10129 if test "x$ac_ct_LIPO" = x; then 10130 LIPO=":" 10131 else 10132 case $cross_compiling:$ac_tool_warned in 10133yes:) 10134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10136ac_tool_warned=yes ;; 10137esac 10138 LIPO=$ac_ct_LIPO 10139 fi 10140else 10141 LIPO="$ac_cv_prog_LIPO" 10142fi 10143 10144 if test -n "$ac_tool_prefix"; then 10145 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10146set dummy ${ac_tool_prefix}otool; ac_word=$2 10147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10148$as_echo_n "checking for $ac_word... " >&6; } 10149if ${ac_cv_prog_OTOOL+:} false; then : 10150 $as_echo_n "(cached) " >&6 10151else 10152 if test -n "$OTOOL"; then 10153 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10154else 10155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10156for as_dir in $PATH 10157do 10158 IFS=$as_save_IFS 10159 test -z "$as_dir" && as_dir=. 10160 for ac_exec_ext in '' $ac_executable_extensions; do 10161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10162 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10164 break 2 10165 fi 10166done 10167 done 10168IFS=$as_save_IFS 10169 10170fi 10171fi 10172OTOOL=$ac_cv_prog_OTOOL 10173if test -n "$OTOOL"; then 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10175$as_echo "$OTOOL" >&6; } 10176else 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10178$as_echo "no" >&6; } 10179fi 10180 10181 10182fi 10183if test -z "$ac_cv_prog_OTOOL"; then 10184 ac_ct_OTOOL=$OTOOL 10185 # Extract the first word of "otool", so it can be a program name with args. 10186set dummy otool; ac_word=$2 10187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10188$as_echo_n "checking for $ac_word... " >&6; } 10189if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10190 $as_echo_n "(cached) " >&6 10191else 10192 if test -n "$ac_ct_OTOOL"; then 10193 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10194else 10195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10196for as_dir in $PATH 10197do 10198 IFS=$as_save_IFS 10199 test -z "$as_dir" && as_dir=. 10200 for ac_exec_ext in '' $ac_executable_extensions; do 10201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10202 ac_cv_prog_ac_ct_OTOOL="otool" 10203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10204 break 2 10205 fi 10206done 10207 done 10208IFS=$as_save_IFS 10209 10210fi 10211fi 10212ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10213if test -n "$ac_ct_OTOOL"; then 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10215$as_echo "$ac_ct_OTOOL" >&6; } 10216else 10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10218$as_echo "no" >&6; } 10219fi 10220 10221 if test "x$ac_ct_OTOOL" = x; then 10222 OTOOL=":" 10223 else 10224 case $cross_compiling:$ac_tool_warned in 10225yes:) 10226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10228ac_tool_warned=yes ;; 10229esac 10230 OTOOL=$ac_ct_OTOOL 10231 fi 10232else 10233 OTOOL="$ac_cv_prog_OTOOL" 10234fi 10235 10236 if test -n "$ac_tool_prefix"; then 10237 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10238set dummy ${ac_tool_prefix}otool64; ac_word=$2 10239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10240$as_echo_n "checking for $ac_word... " >&6; } 10241if ${ac_cv_prog_OTOOL64+:} false; then : 10242 $as_echo_n "(cached) " >&6 10243else 10244 if test -n "$OTOOL64"; then 10245 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10246else 10247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10248for as_dir in $PATH 10249do 10250 IFS=$as_save_IFS 10251 test -z "$as_dir" && as_dir=. 10252 for ac_exec_ext in '' $ac_executable_extensions; do 10253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10254 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10256 break 2 10257 fi 10258done 10259 done 10260IFS=$as_save_IFS 10261 10262fi 10263fi 10264OTOOL64=$ac_cv_prog_OTOOL64 10265if test -n "$OTOOL64"; then 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10267$as_echo "$OTOOL64" >&6; } 10268else 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10270$as_echo "no" >&6; } 10271fi 10272 10273 10274fi 10275if test -z "$ac_cv_prog_OTOOL64"; then 10276 ac_ct_OTOOL64=$OTOOL64 10277 # Extract the first word of "otool64", so it can be a program name with args. 10278set dummy otool64; ac_word=$2 10279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10280$as_echo_n "checking for $ac_word... " >&6; } 10281if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10282 $as_echo_n "(cached) " >&6 10283else 10284 if test -n "$ac_ct_OTOOL64"; then 10285 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10286else 10287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10288for as_dir in $PATH 10289do 10290 IFS=$as_save_IFS 10291 test -z "$as_dir" && as_dir=. 10292 for ac_exec_ext in '' $ac_executable_extensions; do 10293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10294 ac_cv_prog_ac_ct_OTOOL64="otool64" 10295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10296 break 2 10297 fi 10298done 10299 done 10300IFS=$as_save_IFS 10301 10302fi 10303fi 10304ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10305if test -n "$ac_ct_OTOOL64"; then 10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10307$as_echo "$ac_ct_OTOOL64" >&6; } 10308else 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10310$as_echo "no" >&6; } 10311fi 10312 10313 if test "x$ac_ct_OTOOL64" = x; then 10314 OTOOL64=":" 10315 else 10316 case $cross_compiling:$ac_tool_warned in 10317yes:) 10318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10320ac_tool_warned=yes ;; 10321esac 10322 OTOOL64=$ac_ct_OTOOL64 10323 fi 10324else 10325 OTOOL64="$ac_cv_prog_OTOOL64" 10326fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10355$as_echo_n "checking for -single_module linker flag... " >&6; } 10356if ${lt_cv_apple_cc_single_mod+:} false; then : 10357 $as_echo_n "(cached) " >&6 10358else 10359 lt_cv_apple_cc_single_mod=no 10360 if test -z "${LT_MULTI_MODULE}"; then 10361 # By default we will add the -single_module flag. You can override 10362 # by either setting the environment variable LT_MULTI_MODULE 10363 # non-empty at configure time, or by adding -multi_module to the 10364 # link flags. 10365 rm -rf libconftest.dylib* 10366 echo "int foo(void){return 1;}" > conftest.c 10367 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10368-dynamiclib -Wl,-single_module conftest.c" >&5 10369 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10370 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10371 _lt_result=$? 10372 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 10373 lt_cv_apple_cc_single_mod=yes 10374 else 10375 cat conftest.err >&5 10376 fi 10377 rm -rf libconftest.dylib* 10378 rm -f conftest.* 10379 fi 10380fi 10381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10382$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10384$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10385if ${lt_cv_ld_exported_symbols_list+:} false; then : 10386 $as_echo_n "(cached) " >&6 10387else 10388 lt_cv_ld_exported_symbols_list=no 10389 save_LDFLAGS=$LDFLAGS 10390 echo "_main" > conftest.sym 10391 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10393/* end confdefs.h. */ 10394 10395int 10396main () 10397{ 10398 10399 ; 10400 return 0; 10401} 10402_ACEOF 10403if ac_fn_c_try_link "$LINENO"; then : 10404 lt_cv_ld_exported_symbols_list=yes 10405else 10406 lt_cv_ld_exported_symbols_list=no 10407fi 10408rm -f core conftest.err conftest.$ac_objext \ 10409 conftest$ac_exeext conftest.$ac_ext 10410 LDFLAGS="$save_LDFLAGS" 10411 10412fi 10413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10414$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10416$as_echo_n "checking for -force_load linker flag... " >&6; } 10417if ${lt_cv_ld_force_load+:} false; then : 10418 $as_echo_n "(cached) " >&6 10419else 10420 lt_cv_ld_force_load=no 10421 cat > conftest.c << _LT_EOF 10422int forced_loaded() { return 2;} 10423_LT_EOF 10424 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10425 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10426 echo "$AR cru libconftest.a conftest.o" >&5 10427 $AR cru libconftest.a conftest.o 2>&5 10428 echo "$RANLIB libconftest.a" >&5 10429 $RANLIB libconftest.a 2>&5 10430 cat > conftest.c << _LT_EOF 10431int main() { return 0;} 10432_LT_EOF 10433 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10434 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10435 _lt_result=$? 10436 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 10437 lt_cv_ld_force_load=yes 10438 else 10439 cat conftest.err >&5 10440 fi 10441 rm -f conftest.err libconftest.a conftest conftest.c 10442 rm -rf conftest.dSYM 10443 10444fi 10445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10446$as_echo "$lt_cv_ld_force_load" >&6; } 10447 case $host_os in 10448 rhapsody* | darwin1.[012]) 10449 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 10450 darwin1.*) 10451 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10452 darwin*) # darwin 5.x on 10453 # if running on 10.5 or later, the deployment target defaults 10454 # to the OS version, if on x86, and 10.4, the deployment 10455 # target defaults to 10.4. Don't you love it? 10456 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10457 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10458 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10459 10.[012]*) 10460 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10461 10.*) 10462 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10463 esac 10464 ;; 10465 esac 10466 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 10467 _lt_dar_single_mod='$single_module' 10468 fi 10469 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 10470 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 10471 else 10472 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 10473 fi 10474 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 10475 _lt_dsymutil='~$DSYMUTIL $lib || :' 10476 else 10477 _lt_dsymutil= 10478 fi 10479 ;; 10480 esac 10481 10482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10483$as_echo_n "checking for ANSI C header files... " >&6; } 10484if ${ac_cv_header_stdc+:} false; then : 10485 $as_echo_n "(cached) " >&6 10486else 10487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10488/* end confdefs.h. */ 10489#include <stdlib.h> 10490#include <stdarg.h> 10491#include <string.h> 10492#include <float.h> 10493 10494int 10495main () 10496{ 10497 10498 ; 10499 return 0; 10500} 10501_ACEOF 10502if ac_fn_c_try_compile "$LINENO"; then : 10503 ac_cv_header_stdc=yes 10504else 10505 ac_cv_header_stdc=no 10506fi 10507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10508 10509if test $ac_cv_header_stdc = yes; then 10510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10512/* end confdefs.h. */ 10513#include <string.h> 10514 10515_ACEOF 10516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10517 $EGREP "memchr" >/dev/null 2>&1; then : 10518 10519else 10520 ac_cv_header_stdc=no 10521fi 10522rm -f conftest* 10523 10524fi 10525 10526if test $ac_cv_header_stdc = yes; then 10527 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10529/* end confdefs.h. */ 10530#include <stdlib.h> 10531 10532_ACEOF 10533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10534 $EGREP "free" >/dev/null 2>&1; then : 10535 10536else 10537 ac_cv_header_stdc=no 10538fi 10539rm -f conftest* 10540 10541fi 10542 10543if test $ac_cv_header_stdc = yes; then 10544 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10545 if test "$cross_compiling" = yes; then : 10546 : 10547else 10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10549/* end confdefs.h. */ 10550#include <ctype.h> 10551#include <stdlib.h> 10552#if ((' ' & 0x0FF) == 0x020) 10553# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10554# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10555#else 10556# define ISLOWER(c) \ 10557 (('a' <= (c) && (c) <= 'i') \ 10558 || ('j' <= (c) && (c) <= 'r') \ 10559 || ('s' <= (c) && (c) <= 'z')) 10560# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10561#endif 10562 10563#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10564int 10565main () 10566{ 10567 int i; 10568 for (i = 0; i < 256; i++) 10569 if (XOR (islower (i), ISLOWER (i)) 10570 || toupper (i) != TOUPPER (i)) 10571 return 2; 10572 return 0; 10573} 10574_ACEOF 10575if ac_fn_c_try_run "$LINENO"; then : 10576 10577else 10578 ac_cv_header_stdc=no 10579fi 10580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10581 conftest.$ac_objext conftest.beam conftest.$ac_ext 10582fi 10583 10584fi 10585fi 10586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10587$as_echo "$ac_cv_header_stdc" >&6; } 10588if test $ac_cv_header_stdc = yes; then 10589 10590$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10591 10592fi 10593 10594# On IRIX 5.3, sys/types and inttypes.h are conflicting. 10595for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10596 inttypes.h stdint.h unistd.h 10597do : 10598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10599ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10600" 10601if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10602 cat >>confdefs.h <<_ACEOF 10603#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10604_ACEOF 10605 10606fi 10607 10608done 10609 10610 10611for ac_header in dlfcn.h 10612do : 10613 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10614" 10615if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10616 cat >>confdefs.h <<_ACEOF 10617#define HAVE_DLFCN_H 1 10618_ACEOF 10619 10620fi 10621 10622done 10623 10624 10625 10626 10627func_stripname_cnf () 10628{ 10629 case ${2} in 10630 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 10631 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 10632 esac 10633} # func_stripname_cnf 10634 10635 10636 10637 10638 10639# Set options 10640 10641 10642 10643 enable_dlopen=no 10644 10645 10646 enable_win32_dll=no 10647 10648 10649 # Check whether --enable-shared was given. 10650if test "${enable_shared+set}" = set; then : 10651 enableval=$enable_shared; p=${PACKAGE-default} 10652 case $enableval in 10653 yes) enable_shared=yes ;; 10654 no) enable_shared=no ;; 10655 *) 10656 enable_shared=no 10657 # Look at the argument we got. We use all the common list separators. 10658 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10659 for pkg in $enableval; do 10660 IFS="$lt_save_ifs" 10661 if test "X$pkg" = "X$p"; then 10662 enable_shared=yes 10663 fi 10664 done 10665 IFS="$lt_save_ifs" 10666 ;; 10667 esac 10668else 10669 enable_shared=yes 10670fi 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 # Check whether --enable-static was given. 10681if test "${enable_static+set}" = set; then : 10682 enableval=$enable_static; p=${PACKAGE-default} 10683 case $enableval in 10684 yes) enable_static=yes ;; 10685 no) enable_static=no ;; 10686 *) 10687 enable_static=no 10688 # Look at the argument we got. We use all the common list separators. 10689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10690 for pkg in $enableval; do 10691 IFS="$lt_save_ifs" 10692 if test "X$pkg" = "X$p"; then 10693 enable_static=yes 10694 fi 10695 done 10696 IFS="$lt_save_ifs" 10697 ;; 10698 esac 10699else 10700 enable_static=yes 10701fi 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712# Check whether --with-pic was given. 10713if test "${with_pic+set}" = set; then : 10714 withval=$with_pic; pic_mode="$withval" 10715else 10716 pic_mode=default 10717fi 10718 10719 10720test -z "$pic_mode" && pic_mode=default 10721 10722 10723 10724 10725 10726 10727 10728 # Check whether --enable-fast-install was given. 10729if test "${enable_fast_install+set}" = set; then : 10730 enableval=$enable_fast_install; p=${PACKAGE-default} 10731 case $enableval in 10732 yes) enable_fast_install=yes ;; 10733 no) enable_fast_install=no ;; 10734 *) 10735 enable_fast_install=no 10736 # Look at the argument we got. We use all the common list separators. 10737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10738 for pkg in $enableval; do 10739 IFS="$lt_save_ifs" 10740 if test "X$pkg" = "X$p"; then 10741 enable_fast_install=yes 10742 fi 10743 done 10744 IFS="$lt_save_ifs" 10745 ;; 10746 esac 10747else 10748 enable_fast_install=yes 10749fi 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761# This can be used to rebuild libtool when needed 10762LIBTOOL_DEPS="$ltmain" 10763 10764# Always use our own libtool. 10765LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792test -z "$LN_S" && LN_S="ln -s" 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807if test -n "${ZSH_VERSION+set}" ; then 10808 setopt NO_GLOB_SUBST 10809fi 10810 10811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10812$as_echo_n "checking for objdir... " >&6; } 10813if ${lt_cv_objdir+:} false; then : 10814 $as_echo_n "(cached) " >&6 10815else 10816 rm -f .libs 2>/dev/null 10817mkdir .libs 2>/dev/null 10818if test -d .libs; then 10819 lt_cv_objdir=.libs 10820else 10821 # MS-DOS does not allow filenames that begin with a dot. 10822 lt_cv_objdir=_libs 10823fi 10824rmdir .libs 2>/dev/null 10825fi 10826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10827$as_echo "$lt_cv_objdir" >&6; } 10828objdir=$lt_cv_objdir 10829 10830 10831 10832 10833 10834cat >>confdefs.h <<_ACEOF 10835#define LT_OBJDIR "$lt_cv_objdir/" 10836_ACEOF 10837 10838 10839 10840 10841case $host_os in 10842aix3*) 10843 # AIX sometimes has problems with the GCC collect2 program. For some 10844 # reason, if we set the COLLECT_NAMES environment variable, the problems 10845 # vanish in a puff of smoke. 10846 if test "X${COLLECT_NAMES+set}" != Xset; then 10847 COLLECT_NAMES= 10848 export COLLECT_NAMES 10849 fi 10850 ;; 10851esac 10852 10853# Global variables: 10854ofile=libtool 10855can_build_shared=yes 10856 10857# All known linkers require a `.a' archive for static linking (except MSVC, 10858# which needs '.lib'). 10859libext=a 10860 10861with_gnu_ld="$lt_cv_prog_gnu_ld" 10862 10863old_CC="$CC" 10864old_CFLAGS="$CFLAGS" 10865 10866# Set sane defaults for various variables 10867test -z "$CC" && CC=cc 10868test -z "$LTCC" && LTCC=$CC 10869test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10870test -z "$LD" && LD=ld 10871test -z "$ac_objext" && ac_objext=o 10872 10873for cc_temp in $compiler""; do 10874 case $cc_temp in 10875 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10876 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10877 \-*) ;; 10878 *) break;; 10879 esac 10880done 10881cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10882 10883 10884# Only perform the check for file, if the check method requires it 10885test -z "$MAGIC_CMD" && MAGIC_CMD=file 10886case $deplibs_check_method in 10887file_magic*) 10888 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10890$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10891if ${lt_cv_path_MAGIC_CMD+:} false; then : 10892 $as_echo_n "(cached) " >&6 10893else 10894 case $MAGIC_CMD in 10895[\\/*] | ?:[\\/]*) 10896 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10897 ;; 10898*) 10899 lt_save_MAGIC_CMD="$MAGIC_CMD" 10900 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10901 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10902 for ac_dir in $ac_dummy; do 10903 IFS="$lt_save_ifs" 10904 test -z "$ac_dir" && ac_dir=. 10905 if test -f $ac_dir/${ac_tool_prefix}file; then 10906 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10907 if test -n "$file_magic_test_file"; then 10908 case $deplibs_check_method in 10909 "file_magic "*) 10910 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10911 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10912 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10913 $EGREP "$file_magic_regex" > /dev/null; then 10914 : 10915 else 10916 cat <<_LT_EOF 1>&2 10917 10918*** Warning: the command libtool uses to detect shared libraries, 10919*** $file_magic_cmd, produces output that libtool cannot recognize. 10920*** The result is that libtool may fail to recognize shared libraries 10921*** as such. This will affect the creation of libtool libraries that 10922*** depend on shared libraries, but programs linked with such libtool 10923*** libraries will work regardless of this problem. Nevertheless, you 10924*** may want to report the problem to your system manager and/or to 10925*** bug-libtool@gnu.org 10926 10927_LT_EOF 10928 fi ;; 10929 esac 10930 fi 10931 break 10932 fi 10933 done 10934 IFS="$lt_save_ifs" 10935 MAGIC_CMD="$lt_save_MAGIC_CMD" 10936 ;; 10937esac 10938fi 10939 10940MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10941if test -n "$MAGIC_CMD"; then 10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10943$as_echo "$MAGIC_CMD" >&6; } 10944else 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10946$as_echo "no" >&6; } 10947fi 10948 10949 10950 10951 10952 10953if test -z "$lt_cv_path_MAGIC_CMD"; then 10954 if test -n "$ac_tool_prefix"; then 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10956$as_echo_n "checking for file... " >&6; } 10957if ${lt_cv_path_MAGIC_CMD+:} false; then : 10958 $as_echo_n "(cached) " >&6 10959else 10960 case $MAGIC_CMD in 10961[\\/*] | ?:[\\/]*) 10962 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10963 ;; 10964*) 10965 lt_save_MAGIC_CMD="$MAGIC_CMD" 10966 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10967 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10968 for ac_dir in $ac_dummy; do 10969 IFS="$lt_save_ifs" 10970 test -z "$ac_dir" && ac_dir=. 10971 if test -f $ac_dir/file; then 10972 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10973 if test -n "$file_magic_test_file"; then 10974 case $deplibs_check_method in 10975 "file_magic "*) 10976 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10977 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10978 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10979 $EGREP "$file_magic_regex" > /dev/null; then 10980 : 10981 else 10982 cat <<_LT_EOF 1>&2 10983 10984*** Warning: the command libtool uses to detect shared libraries, 10985*** $file_magic_cmd, produces output that libtool cannot recognize. 10986*** The result is that libtool may fail to recognize shared libraries 10987*** as such. This will affect the creation of libtool libraries that 10988*** depend on shared libraries, but programs linked with such libtool 10989*** libraries will work regardless of this problem. Nevertheless, you 10990*** may want to report the problem to your system manager and/or to 10991*** bug-libtool@gnu.org 10992 10993_LT_EOF 10994 fi ;; 10995 esac 10996 fi 10997 break 10998 fi 10999 done 11000 IFS="$lt_save_ifs" 11001 MAGIC_CMD="$lt_save_MAGIC_CMD" 11002 ;; 11003esac 11004fi 11005 11006MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11007if test -n "$MAGIC_CMD"; then 11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11009$as_echo "$MAGIC_CMD" >&6; } 11010else 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11012$as_echo "no" >&6; } 11013fi 11014 11015 11016 else 11017 MAGIC_CMD=: 11018 fi 11019fi 11020 11021 fi 11022 ;; 11023esac 11024 11025# Use C for the default configuration in the libtool script 11026 11027lt_save_CC="$CC" 11028ac_ext=c 11029ac_cpp='$CPP $CPPFLAGS' 11030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11032ac_compiler_gnu=$ac_cv_c_compiler_gnu 11033 11034 11035# Source file extension for C test sources. 11036ac_ext=c 11037 11038# Object file extension for compiled C test sources. 11039objext=o 11040objext=$objext 11041 11042# Code to be used in simple compile tests 11043lt_simple_compile_test_code="int some_variable = 0;" 11044 11045# Code to be used in simple link tests 11046lt_simple_link_test_code='int main(){return(0);}' 11047 11048 11049 11050 11051 11052 11053 11054# If no C compiler was specified, use CC. 11055LTCC=${LTCC-"$CC"} 11056 11057# If no C compiler flags were specified, use CFLAGS. 11058LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11059 11060# Allow CC to be a program name with arguments. 11061compiler=$CC 11062 11063# Save the default compiler, since it gets overwritten when the other 11064# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11065compiler_DEFAULT=$CC 11066 11067# save warnings/boilerplate of simple test code 11068ac_outfile=conftest.$ac_objext 11069echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11070eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11071_lt_compiler_boilerplate=`cat conftest.err` 11072$RM conftest* 11073 11074ac_outfile=conftest.$ac_objext 11075echo "$lt_simple_link_test_code" >conftest.$ac_ext 11076eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11077_lt_linker_boilerplate=`cat conftest.err` 11078$RM -r conftest* 11079 11080 11081if test -n "$compiler"; then 11082 11083lt_prog_compiler_no_builtin_flag= 11084 11085if test "$GCC" = yes; then 11086 case $cc_basename in 11087 nvcc*) 11088 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11089 *) 11090 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11091 esac 11092 11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11094$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11095if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11096 $as_echo_n "(cached) " >&6 11097else 11098 lt_cv_prog_compiler_rtti_exceptions=no 11099 ac_outfile=conftest.$ac_objext 11100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11101 lt_compiler_flag="-fno-rtti -fno-exceptions" 11102 # Insert the option either (1) after the last *FLAGS variable, or 11103 # (2) before a word containing "conftest.", or (3) at the end. 11104 # Note that $ac_compile itself does not contain backslashes and begins 11105 # with a dollar sign (not a hyphen), so the echo should work correctly. 11106 # The option is referenced via a variable to avoid confusing sed. 11107 lt_compile=`echo "$ac_compile" | $SED \ 11108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11110 -e 's:$: $lt_compiler_flag:'` 11111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11112 (eval "$lt_compile" 2>conftest.err) 11113 ac_status=$? 11114 cat conftest.err >&5 11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11116 if (exit $ac_status) && test -s "$ac_outfile"; then 11117 # The compiler can only warn and ignore the option if not recognized 11118 # So say no if there are warnings other than the usual output. 11119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11122 lt_cv_prog_compiler_rtti_exceptions=yes 11123 fi 11124 fi 11125 $RM conftest* 11126 11127fi 11128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11129$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11130 11131if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 11132 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11133else 11134 : 11135fi 11136 11137fi 11138 11139 11140 11141 11142 11143 11144 lt_prog_compiler_wl= 11145lt_prog_compiler_pic= 11146lt_prog_compiler_static= 11147 11148 11149 if test "$GCC" = yes; then 11150 lt_prog_compiler_wl='-Wl,' 11151 lt_prog_compiler_static='-static' 11152 11153 case $host_os in 11154 aix*) 11155 # All AIX code is PIC. 11156 if test "$host_cpu" = ia64; then 11157 # AIX 5 now supports IA64 processor 11158 lt_prog_compiler_static='-Bstatic' 11159 fi 11160 ;; 11161 11162 amigaos*) 11163 case $host_cpu in 11164 powerpc) 11165 # see comment about AmigaOS4 .so support 11166 lt_prog_compiler_pic='-fPIC' 11167 ;; 11168 m68k) 11169 # FIXME: we need at least 68020 code to build shared libraries, but 11170 # adding the `-m68020' flag to GCC prevents building anything better, 11171 # like `-m68040'. 11172 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11173 ;; 11174 esac 11175 ;; 11176 11177 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11178 # PIC is the default for these OSes. 11179 ;; 11180 11181 mingw* | cygwin* | pw32* | os2* | cegcc*) 11182 # This hack is so that the source file can tell whether it is being 11183 # built for inclusion in a dll (and should export symbols for example). 11184 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11185 # (--disable-auto-import) libraries 11186 lt_prog_compiler_pic='-DDLL_EXPORT' 11187 ;; 11188 11189 darwin* | rhapsody*) 11190 # PIC is the default on this platform 11191 # Common symbols not allowed in MH_DYLIB files 11192 lt_prog_compiler_pic='-fno-common' 11193 ;; 11194 11195 haiku*) 11196 # PIC is the default for Haiku. 11197 # The "-static" flag exists, but is broken. 11198 lt_prog_compiler_static= 11199 ;; 11200 11201 hpux*) 11202 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11203 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11204 # sets the default TLS model and affects inlining. 11205 case $host_cpu in 11206 hppa*64*) 11207 # +Z the default 11208 ;; 11209 *) 11210 lt_prog_compiler_pic='-fPIC' 11211 ;; 11212 esac 11213 ;; 11214 11215 interix[3-9]*) 11216 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11217 # Instead, we relocate shared libraries at runtime. 11218 ;; 11219 11220 msdosdjgpp*) 11221 # Just because we use GCC doesn't mean we suddenly get shared libraries 11222 # on systems that don't support them. 11223 lt_prog_compiler_can_build_shared=no 11224 enable_shared=no 11225 ;; 11226 11227 *nto* | *qnx*) 11228 # QNX uses GNU C++, but need to define -shared option too, otherwise 11229 # it will coredump. 11230 lt_prog_compiler_pic='-fPIC -shared' 11231 ;; 11232 11233 sysv4*MP*) 11234 if test -d /usr/nec; then 11235 lt_prog_compiler_pic=-Kconform_pic 11236 fi 11237 ;; 11238 11239 *) 11240 lt_prog_compiler_pic='-fPIC' 11241 ;; 11242 esac 11243 11244 case $cc_basename in 11245 nvcc*) # Cuda Compiler Driver 2.2 11246 lt_prog_compiler_wl='-Xlinker ' 11247 lt_prog_compiler_pic='-Xcompiler -fPIC' 11248 ;; 11249 esac 11250 else 11251 # PORTME Check for flag to pass linker flags through the system compiler. 11252 case $host_os in 11253 aix*) 11254 lt_prog_compiler_wl='-Wl,' 11255 if test "$host_cpu" = ia64; then 11256 # AIX 5 now supports IA64 processor 11257 lt_prog_compiler_static='-Bstatic' 11258 else 11259 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11260 fi 11261 ;; 11262 11263 mingw* | cygwin* | pw32* | os2* | cegcc*) 11264 # This hack is so that the source file can tell whether it is being 11265 # built for inclusion in a dll (and should export symbols for example). 11266 lt_prog_compiler_pic='-DDLL_EXPORT' 11267 ;; 11268 11269 hpux9* | hpux10* | hpux11*) 11270 lt_prog_compiler_wl='-Wl,' 11271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11272 # not for PA HP-UX. 11273 case $host_cpu in 11274 hppa*64*|ia64*) 11275 # +Z the default 11276 ;; 11277 *) 11278 lt_prog_compiler_pic='+Z' 11279 ;; 11280 esac 11281 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11282 lt_prog_compiler_static='${wl}-a ${wl}archive' 11283 ;; 11284 11285 irix5* | irix6* | nonstopux*) 11286 lt_prog_compiler_wl='-Wl,' 11287 # PIC (with -KPIC) is the default. 11288 lt_prog_compiler_static='-non_shared' 11289 ;; 11290 11291 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11292 case $cc_basename in 11293 # old Intel for x86_64 which still supported -KPIC. 11294 ecc*) 11295 lt_prog_compiler_wl='-Wl,' 11296 lt_prog_compiler_pic='-KPIC' 11297 lt_prog_compiler_static='-static' 11298 ;; 11299 # icc used to be incompatible with GCC. 11300 # ICC 10 doesn't accept -KPIC any more. 11301 icc* | ifort*) 11302 lt_prog_compiler_wl='-Wl,' 11303 lt_prog_compiler_pic='-fPIC' 11304 lt_prog_compiler_static='-static' 11305 ;; 11306 # Lahey Fortran 8.1. 11307 lf95*) 11308 lt_prog_compiler_wl='-Wl,' 11309 lt_prog_compiler_pic='--shared' 11310 lt_prog_compiler_static='--static' 11311 ;; 11312 nagfor*) 11313 # NAG Fortran compiler 11314 lt_prog_compiler_wl='-Wl,-Wl,,' 11315 lt_prog_compiler_pic='-PIC' 11316 lt_prog_compiler_static='-Bstatic' 11317 ;; 11318 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11319 # Portland Group compilers (*not* the Pentium gcc compiler, 11320 # which looks to be a dead project) 11321 lt_prog_compiler_wl='-Wl,' 11322 lt_prog_compiler_pic='-fpic' 11323 lt_prog_compiler_static='-Bstatic' 11324 ;; 11325 ccc*) 11326 lt_prog_compiler_wl='-Wl,' 11327 # All Alpha code is PIC. 11328 lt_prog_compiler_static='-non_shared' 11329 ;; 11330 xl* | bgxl* | bgf* | mpixl*) 11331 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11332 lt_prog_compiler_wl='-Wl,' 11333 lt_prog_compiler_pic='-qpic' 11334 lt_prog_compiler_static='-qstaticlink' 11335 ;; 11336 *) 11337 case `$CC -V 2>&1 | sed 5q` in 11338 *Sun\ F* | *Sun*Fortran*) 11339 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11340 lt_prog_compiler_pic='-KPIC' 11341 lt_prog_compiler_static='-Bstatic' 11342 lt_prog_compiler_wl='' 11343 ;; 11344 *Sun\ C*) 11345 # Sun C 5.9 11346 lt_prog_compiler_pic='-KPIC' 11347 lt_prog_compiler_static='-Bstatic' 11348 lt_prog_compiler_wl='-Wl,' 11349 ;; 11350 esac 11351 ;; 11352 esac 11353 ;; 11354 11355 newsos6) 11356 lt_prog_compiler_pic='-KPIC' 11357 lt_prog_compiler_static='-Bstatic' 11358 ;; 11359 11360 *nto* | *qnx*) 11361 # QNX uses GNU C++, but need to define -shared option too, otherwise 11362 # it will coredump. 11363 lt_prog_compiler_pic='-fPIC -shared' 11364 ;; 11365 11366 osf3* | osf4* | osf5*) 11367 lt_prog_compiler_wl='-Wl,' 11368 # All OSF/1 code is PIC. 11369 lt_prog_compiler_static='-non_shared' 11370 ;; 11371 11372 rdos*) 11373 lt_prog_compiler_static='-non_shared' 11374 ;; 11375 11376 solaris*) 11377 lt_prog_compiler_pic='-KPIC' 11378 lt_prog_compiler_static='-Bstatic' 11379 case $cc_basename in 11380 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11381 lt_prog_compiler_wl='-Qoption ld ';; 11382 *) 11383 lt_prog_compiler_wl='-Wl,';; 11384 esac 11385 ;; 11386 11387 sunos4*) 11388 lt_prog_compiler_wl='-Qoption ld ' 11389 lt_prog_compiler_pic='-PIC' 11390 lt_prog_compiler_static='-Bstatic' 11391 ;; 11392 11393 sysv4 | sysv4.2uw2* | sysv4.3*) 11394 lt_prog_compiler_wl='-Wl,' 11395 lt_prog_compiler_pic='-KPIC' 11396 lt_prog_compiler_static='-Bstatic' 11397 ;; 11398 11399 sysv4*MP*) 11400 if test -d /usr/nec ;then 11401 lt_prog_compiler_pic='-Kconform_pic' 11402 lt_prog_compiler_static='-Bstatic' 11403 fi 11404 ;; 11405 11406 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11407 lt_prog_compiler_wl='-Wl,' 11408 lt_prog_compiler_pic='-KPIC' 11409 lt_prog_compiler_static='-Bstatic' 11410 ;; 11411 11412 unicos*) 11413 lt_prog_compiler_wl='-Wl,' 11414 lt_prog_compiler_can_build_shared=no 11415 ;; 11416 11417 uts4*) 11418 lt_prog_compiler_pic='-pic' 11419 lt_prog_compiler_static='-Bstatic' 11420 ;; 11421 11422 *) 11423 lt_prog_compiler_can_build_shared=no 11424 ;; 11425 esac 11426 fi 11427 11428case $host_os in 11429 # For platforms which do not support PIC, -DPIC is meaningless: 11430 *djgpp*) 11431 lt_prog_compiler_pic= 11432 ;; 11433 *) 11434 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11435 ;; 11436esac 11437 11438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11439$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11440if ${lt_cv_prog_compiler_pic+:} false; then : 11441 $as_echo_n "(cached) " >&6 11442else 11443 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11444fi 11445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11446$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11447lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11448 11449# 11450# Check to make sure the PIC flag actually works. 11451# 11452if test -n "$lt_prog_compiler_pic"; then 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11454$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11455if ${lt_cv_prog_compiler_pic_works+:} false; then : 11456 $as_echo_n "(cached) " >&6 11457else 11458 lt_cv_prog_compiler_pic_works=no 11459 ac_outfile=conftest.$ac_objext 11460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11461 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 11462 # Insert the option either (1) after the last *FLAGS variable, or 11463 # (2) before a word containing "conftest.", or (3) at the end. 11464 # Note that $ac_compile itself does not contain backslashes and begins 11465 # with a dollar sign (not a hyphen), so the echo should work correctly. 11466 # The option is referenced via a variable to avoid confusing sed. 11467 lt_compile=`echo "$ac_compile" | $SED \ 11468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11470 -e 's:$: $lt_compiler_flag:'` 11471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11472 (eval "$lt_compile" 2>conftest.err) 11473 ac_status=$? 11474 cat conftest.err >&5 11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11476 if (exit $ac_status) && test -s "$ac_outfile"; then 11477 # The compiler can only warn and ignore the option if not recognized 11478 # So say no if there are warnings other than the usual output. 11479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11481 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11482 lt_cv_prog_compiler_pic_works=yes 11483 fi 11484 fi 11485 $RM conftest* 11486 11487fi 11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11489$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11490 11491if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 11492 case $lt_prog_compiler_pic in 11493 "" | " "*) ;; 11494 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11495 esac 11496else 11497 lt_prog_compiler_pic= 11498 lt_prog_compiler_can_build_shared=no 11499fi 11500 11501fi 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513# 11514# Check to make sure the static flag actually works. 11515# 11516wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11518$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11519if ${lt_cv_prog_compiler_static_works+:} false; then : 11520 $as_echo_n "(cached) " >&6 11521else 11522 lt_cv_prog_compiler_static_works=no 11523 save_LDFLAGS="$LDFLAGS" 11524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11525 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11527 # The linker can only warn and ignore the option if not recognized 11528 # So say no if there are warnings 11529 if test -s conftest.err; then 11530 # Append any errors to the config.log. 11531 cat conftest.err 1>&5 11532 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11534 if diff conftest.exp conftest.er2 >/dev/null; then 11535 lt_cv_prog_compiler_static_works=yes 11536 fi 11537 else 11538 lt_cv_prog_compiler_static_works=yes 11539 fi 11540 fi 11541 $RM -r conftest* 11542 LDFLAGS="$save_LDFLAGS" 11543 11544fi 11545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11546$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11547 11548if test x"$lt_cv_prog_compiler_static_works" = xyes; then 11549 : 11550else 11551 lt_prog_compiler_static= 11552fi 11553 11554 11555 11556 11557 11558 11559 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11561$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11562if ${lt_cv_prog_compiler_c_o+:} false; then : 11563 $as_echo_n "(cached) " >&6 11564else 11565 lt_cv_prog_compiler_c_o=no 11566 $RM -r conftest 2>/dev/null 11567 mkdir conftest 11568 cd conftest 11569 mkdir out 11570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11571 11572 lt_compiler_flag="-o out/conftest2.$ac_objext" 11573 # Insert the option either (1) after the last *FLAGS variable, or 11574 # (2) before a word containing "conftest.", or (3) at the end. 11575 # Note that $ac_compile itself does not contain backslashes and begins 11576 # with a dollar sign (not a hyphen), so the echo should work correctly. 11577 lt_compile=`echo "$ac_compile" | $SED \ 11578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11580 -e 's:$: $lt_compiler_flag:'` 11581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11582 (eval "$lt_compile" 2>out/conftest.err) 11583 ac_status=$? 11584 cat out/conftest.err >&5 11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11586 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11587 then 11588 # The compiler can only warn and ignore the option if not recognized 11589 # So say no if there are warnings 11590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11593 lt_cv_prog_compiler_c_o=yes 11594 fi 11595 fi 11596 chmod u+w . 2>&5 11597 $RM conftest* 11598 # SGI C++ compiler will create directory out/ii_files/ for 11599 # template instantiation 11600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11601 $RM out/* && rmdir out 11602 cd .. 11603 $RM -r conftest 11604 $RM conftest* 11605 11606fi 11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11608$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11609 11610 11611 11612 11613 11614 11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11616$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11617if ${lt_cv_prog_compiler_c_o+:} false; then : 11618 $as_echo_n "(cached) " >&6 11619else 11620 lt_cv_prog_compiler_c_o=no 11621 $RM -r conftest 2>/dev/null 11622 mkdir conftest 11623 cd conftest 11624 mkdir out 11625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11626 11627 lt_compiler_flag="-o out/conftest2.$ac_objext" 11628 # Insert the option either (1) after the last *FLAGS variable, or 11629 # (2) before a word containing "conftest.", or (3) at the end. 11630 # Note that $ac_compile itself does not contain backslashes and begins 11631 # with a dollar sign (not a hyphen), so the echo should work correctly. 11632 lt_compile=`echo "$ac_compile" | $SED \ 11633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11635 -e 's:$: $lt_compiler_flag:'` 11636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11637 (eval "$lt_compile" 2>out/conftest.err) 11638 ac_status=$? 11639 cat out/conftest.err >&5 11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11641 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11642 then 11643 # The compiler can only warn and ignore the option if not recognized 11644 # So say no if there are warnings 11645 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11648 lt_cv_prog_compiler_c_o=yes 11649 fi 11650 fi 11651 chmod u+w . 2>&5 11652 $RM conftest* 11653 # SGI C++ compiler will create directory out/ii_files/ for 11654 # template instantiation 11655 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11656 $RM out/* && rmdir out 11657 cd .. 11658 $RM -r conftest 11659 $RM conftest* 11660 11661fi 11662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11663$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11664 11665 11666 11667 11668hard_links="nottested" 11669if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 11670 # do not overwrite the value of need_locks provided by the user 11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11672$as_echo_n "checking if we can lock with hard links... " >&6; } 11673 hard_links=yes 11674 $RM conftest* 11675 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11676 touch conftest.a 11677 ln conftest.a conftest.b 2>&5 || hard_links=no 11678 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11680$as_echo "$hard_links" >&6; } 11681 if test "$hard_links" = no; then 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11683$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11684 need_locks=warn 11685 fi 11686else 11687 need_locks=no 11688fi 11689 11690 11691 11692 11693 11694 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11696$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11697 11698 runpath_var= 11699 allow_undefined_flag= 11700 always_export_symbols=no 11701 archive_cmds= 11702 archive_expsym_cmds= 11703 compiler_needs_object=no 11704 enable_shared_with_static_runtimes=no 11705 export_dynamic_flag_spec= 11706 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11707 hardcode_automatic=no 11708 hardcode_direct=no 11709 hardcode_direct_absolute=no 11710 hardcode_libdir_flag_spec= 11711 hardcode_libdir_flag_spec_ld= 11712 hardcode_libdir_separator= 11713 hardcode_minus_L=no 11714 hardcode_shlibpath_var=unsupported 11715 inherit_rpath=no 11716 link_all_deplibs=unknown 11717 module_cmds= 11718 module_expsym_cmds= 11719 old_archive_from_new_cmds= 11720 old_archive_from_expsyms_cmds= 11721 thread_safe_flag_spec= 11722 whole_archive_flag_spec= 11723 # include_expsyms should be a list of space-separated symbols to be *always* 11724 # included in the symbol list 11725 include_expsyms= 11726 # exclude_expsyms can be an extended regexp of symbols to exclude 11727 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11728 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11729 # as well as any symbol that contains `d'. 11730 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11731 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11732 # platforms (ab)use it in PIC code, but their linkers get confused if 11733 # the symbol is explicitly referenced. Since portable code cannot 11734 # rely on this symbol name, it's probably fine to never include it in 11735 # preloaded symbol tables. 11736 # Exclude shared library initialization/finalization symbols. 11737 extract_expsyms_cmds= 11738 11739 case $host_os in 11740 cygwin* | mingw* | pw32* | cegcc*) 11741 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11742 # When not using gcc, we currently assume that we are using 11743 # Microsoft Visual C++. 11744 if test "$GCC" != yes; then 11745 with_gnu_ld=no 11746 fi 11747 ;; 11748 interix*) 11749 # we just hope/assume this is gcc and not c89 (= MSVC++) 11750 with_gnu_ld=yes 11751 ;; 11752 openbsd*) 11753 with_gnu_ld=no 11754 ;; 11755 esac 11756 11757 ld_shlibs=yes 11758 11759 # On some targets, GNU ld is compatible enough with the native linker 11760 # that we're better off using the native interface for both. 11761 lt_use_gnu_ld_interface=no 11762 if test "$with_gnu_ld" = yes; then 11763 case $host_os in 11764 aix*) 11765 # The AIX port of GNU ld has always aspired to compatibility 11766 # with the native linker. However, as the warning in the GNU ld 11767 # block says, versions before 2.19.5* couldn't really create working 11768 # shared libraries, regardless of the interface used. 11769 case `$LD -v 2>&1` in 11770 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11771 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11772 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11773 *) 11774 lt_use_gnu_ld_interface=yes 11775 ;; 11776 esac 11777 ;; 11778 *) 11779 lt_use_gnu_ld_interface=yes 11780 ;; 11781 esac 11782 fi 11783 11784 if test "$lt_use_gnu_ld_interface" = yes; then 11785 # If archive_cmds runs LD, not CC, wlarc should be empty 11786 wlarc='${wl}' 11787 11788 # Set some defaults for GNU ld with shared library support. These 11789 # are reset later if shared libraries are not supported. Putting them 11790 # here allows them to be overridden if necessary. 11791 runpath_var=LD_RUN_PATH 11792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11793 export_dynamic_flag_spec='${wl}--export-dynamic' 11794 # ancient GNU ld didn't support --whole-archive et. al. 11795 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11796 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11797 else 11798 whole_archive_flag_spec= 11799 fi 11800 supports_anon_versioning=no 11801 case `$LD -v 2>&1` in 11802 *GNU\ gold*) supports_anon_versioning=yes ;; 11803 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11804 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11805 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11806 *\ 2.11.*) ;; # other 2.11 versions 11807 *) supports_anon_versioning=yes ;; 11808 esac 11809 11810 # See if GNU ld supports shared libraries. 11811 case $host_os in 11812 aix[3-9]*) 11813 # On AIX/PPC, the GNU linker is very broken 11814 if test "$host_cpu" != ia64; then 11815 ld_shlibs=no 11816 cat <<_LT_EOF 1>&2 11817 11818*** Warning: the GNU linker, at least up to release 2.19, is reported 11819*** to be unable to reliably create shared libraries on AIX. 11820*** Therefore, libtool is disabling shared libraries support. If you 11821*** really care for shared libraries, you may want to install binutils 11822*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11823*** You will then need to restart the configuration process. 11824 11825_LT_EOF 11826 fi 11827 ;; 11828 11829 amigaos*) 11830 case $host_cpu in 11831 powerpc) 11832 # see comment about AmigaOS4 .so support 11833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11834 archive_expsym_cmds='' 11835 ;; 11836 m68k) 11837 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)' 11838 hardcode_libdir_flag_spec='-L$libdir' 11839 hardcode_minus_L=yes 11840 ;; 11841 esac 11842 ;; 11843 11844 beos*) 11845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11846 allow_undefined_flag=unsupported 11847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11848 # support --undefined. This deserves some investigation. FIXME 11849 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11850 else 11851 ld_shlibs=no 11852 fi 11853 ;; 11854 11855 cygwin* | mingw* | pw32* | cegcc*) 11856 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11857 # as there is no search path for DLLs. 11858 hardcode_libdir_flag_spec='-L$libdir' 11859 export_dynamic_flag_spec='${wl}--export-all-symbols' 11860 allow_undefined_flag=unsupported 11861 always_export_symbols=no 11862 enable_shared_with_static_runtimes=yes 11863 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' 11864 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11865 11866 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11868 # If the export-symbols file already is a .def file (1st line 11869 # is EXPORTS), use it as is; otherwise, prepend... 11870 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11871 cp $export_symbols $output_objdir/$soname.def; 11872 else 11873 echo EXPORTS > $output_objdir/$soname.def; 11874 cat $export_symbols >> $output_objdir/$soname.def; 11875 fi~ 11876 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11877 else 11878 ld_shlibs=no 11879 fi 11880 ;; 11881 11882 haiku*) 11883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11884 link_all_deplibs=yes 11885 ;; 11886 11887 interix[3-9]*) 11888 hardcode_direct=no 11889 hardcode_shlibpath_var=no 11890 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11891 export_dynamic_flag_spec='${wl}-E' 11892 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11893 # Instead, shared libraries are loaded at an image base (0x10000000 by 11894 # default) and relocated if they conflict, which is a slow very memory 11895 # consuming and fragmenting process. To avoid this, we pick a random, 11896 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11897 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11898 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11899 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' 11900 ;; 11901 11902 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11903 tmp_diet=no 11904 if test "$host_os" = linux-dietlibc; then 11905 case $cc_basename in 11906 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11907 esac 11908 fi 11909 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11910 && test "$tmp_diet" = no 11911 then 11912 tmp_addflag=' $pic_flag' 11913 tmp_sharedflag='-shared' 11914 case $cc_basename,$host_cpu in 11915 pgcc*) # Portland Group C compiler 11916 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' 11917 tmp_addflag=' $pic_flag' 11918 ;; 11919 pgf77* | pgf90* | pgf95* | pgfortran*) 11920 # Portland Group f77 and f90 compilers 11921 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' 11922 tmp_addflag=' $pic_flag -Mnomain' ;; 11923 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11924 tmp_addflag=' -i_dynamic' ;; 11925 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11926 tmp_addflag=' -i_dynamic -nofor_main' ;; 11927 ifc* | ifort*) # Intel Fortran compiler 11928 tmp_addflag=' -nofor_main' ;; 11929 lf95*) # Lahey Fortran 8.1 11930 whole_archive_flag_spec= 11931 tmp_sharedflag='--shared' ;; 11932 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11933 tmp_sharedflag='-qmkshrobj' 11934 tmp_addflag= ;; 11935 nvcc*) # Cuda Compiler Driver 2.2 11936 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' 11937 compiler_needs_object=yes 11938 ;; 11939 esac 11940 case `$CC -V 2>&1 | sed 5q` in 11941 *Sun\ C*) # Sun C 5.9 11942 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' 11943 compiler_needs_object=yes 11944 tmp_sharedflag='-G' ;; 11945 *Sun\ F*) # Sun Fortran 8.3 11946 tmp_sharedflag='-G' ;; 11947 esac 11948 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11949 11950 if test "x$supports_anon_versioning" = xyes; then 11951 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11952 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11953 echo "local: *; };" >> $output_objdir/$libname.ver~ 11954 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11955 fi 11956 11957 case $cc_basename in 11958 xlf* | bgf* | bgxlf* | mpixlf*) 11959 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11960 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11961 hardcode_libdir_flag_spec= 11962 hardcode_libdir_flag_spec_ld='-rpath $libdir' 11963 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11964 if test "x$supports_anon_versioning" = xyes; then 11965 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11966 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11967 echo "local: *; };" >> $output_objdir/$libname.ver~ 11968 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11969 fi 11970 ;; 11971 esac 11972 else 11973 ld_shlibs=no 11974 fi 11975 ;; 11976 11977 netbsd*) 11978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11979 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11980 wlarc= 11981 else 11982 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11983 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11984 fi 11985 ;; 11986 11987 solaris*) 11988 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11989 ld_shlibs=no 11990 cat <<_LT_EOF 1>&2 11991 11992*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11993*** create shared libraries on Solaris systems. Therefore, libtool 11994*** is disabling shared libraries support. We urge you to upgrade GNU 11995*** binutils to release 2.9.1 or newer. Another option is to modify 11996*** your PATH or compiler configuration so that the native linker is 11997*** used, and then restart. 11998 11999_LT_EOF 12000 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12001 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12002 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12003 else 12004 ld_shlibs=no 12005 fi 12006 ;; 12007 12008 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12009 case `$LD -v 2>&1` in 12010 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12011 ld_shlibs=no 12012 cat <<_LT_EOF 1>&2 12013 12014*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 12015*** reliably create shared libraries on SCO systems. Therefore, libtool 12016*** is disabling shared libraries support. We urge you to upgrade GNU 12017*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12018*** your PATH or compiler configuration so that the native linker is 12019*** used, and then restart. 12020 12021_LT_EOF 12022 ;; 12023 *) 12024 # For security reasons, it is highly recommended that you always 12025 # use absolute paths for naming shared libraries, and exclude the 12026 # DT_RUNPATH tag from executables and libraries. But doing so 12027 # requires that you compile everything twice, which is a pain. 12028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12032 else 12033 ld_shlibs=no 12034 fi 12035 ;; 12036 esac 12037 ;; 12038 12039 sunos4*) 12040 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12041 wlarc= 12042 hardcode_direct=yes 12043 hardcode_shlibpath_var=no 12044 ;; 12045 12046 *) 12047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12048 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12049 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12050 else 12051 ld_shlibs=no 12052 fi 12053 ;; 12054 esac 12055 12056 if test "$ld_shlibs" = no; then 12057 runpath_var= 12058 hardcode_libdir_flag_spec= 12059 export_dynamic_flag_spec= 12060 whole_archive_flag_spec= 12061 fi 12062 else 12063 # PORTME fill in a description of your system's linker (not GNU ld) 12064 case $host_os in 12065 aix3*) 12066 allow_undefined_flag=unsupported 12067 always_export_symbols=yes 12068 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' 12069 # Note: this linker hardcodes the directories in LIBPATH if there 12070 # are no directories specified by -L. 12071 hardcode_minus_L=yes 12072 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 12073 # Neither direct hardcoding nor static linking is supported with a 12074 # broken collect2. 12075 hardcode_direct=unsupported 12076 fi 12077 ;; 12078 12079 aix[4-9]*) 12080 if test "$host_cpu" = ia64; then 12081 # On IA64, the linker does run time linking by default, so we don't 12082 # have to do anything special. 12083 aix_use_runtimelinking=no 12084 exp_sym_flag='-Bexport' 12085 no_entry_flag="" 12086 else 12087 # If we're using GNU nm, then we don't want the "-C" option. 12088 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12089 # Also, AIX nm treats weak defined symbols like other global 12090 # defined symbols, whereas GNU nm marks them as "W". 12091 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12092 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' 12093 else 12094 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' 12095 fi 12096 aix_use_runtimelinking=no 12097 12098 # Test if we are trying to use run time linking or normal 12099 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12100 # need to do runtime linking. 12101 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12102 for ld_flag in $LDFLAGS; do 12103 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 12104 aix_use_runtimelinking=yes 12105 break 12106 fi 12107 done 12108 ;; 12109 esac 12110 12111 exp_sym_flag='-bexport' 12112 no_entry_flag='-bnoentry' 12113 fi 12114 12115 # When large executables or shared objects are built, AIX ld can 12116 # have problems creating the table of contents. If linking a library 12117 # or program results in "error TOC overflow" add -mminimal-toc to 12118 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12119 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12120 12121 archive_cmds='' 12122 hardcode_direct=yes 12123 hardcode_direct_absolute=yes 12124 hardcode_libdir_separator=':' 12125 link_all_deplibs=yes 12126 file_list_spec='${wl}-f,' 12127 12128 if test "$GCC" = yes; then 12129 case $host_os in aix4.[012]|aix4.[012].*) 12130 # We only want to do this on AIX 4.2 and lower, the check 12131 # below for broken collect2 doesn't work under 4.3+ 12132 collect2name=`${CC} -print-prog-name=collect2` 12133 if test -f "$collect2name" && 12134 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12135 then 12136 # We have reworked collect2 12137 : 12138 else 12139 # We have old collect2 12140 hardcode_direct=unsupported 12141 # It fails to find uninstalled libraries when the uninstalled 12142 # path is not listed in the libpath. Setting hardcode_minus_L 12143 # to unsupported forces relinking 12144 hardcode_minus_L=yes 12145 hardcode_libdir_flag_spec='-L$libdir' 12146 hardcode_libdir_separator= 12147 fi 12148 ;; 12149 esac 12150 shared_flag='-shared' 12151 if test "$aix_use_runtimelinking" = yes; then 12152 shared_flag="$shared_flag "'${wl}-G' 12153 fi 12154 else 12155 # not using gcc 12156 if test "$host_cpu" = ia64; then 12157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12158 # chokes on -Wl,-G. The following line is correct: 12159 shared_flag='-G' 12160 else 12161 if test "$aix_use_runtimelinking" = yes; then 12162 shared_flag='${wl}-G' 12163 else 12164 shared_flag='${wl}-bM:SRE' 12165 fi 12166 fi 12167 fi 12168 12169 export_dynamic_flag_spec='${wl}-bexpall' 12170 # It seems that -bexpall does not export symbols beginning with 12171 # underscore (_), so it is better to generate a list of symbols to export. 12172 always_export_symbols=yes 12173 if test "$aix_use_runtimelinking" = yes; then 12174 # Warning - without using the other runtime loading flags (-brtl), 12175 # -berok will link without error, but may produce a broken library. 12176 allow_undefined_flag='-berok' 12177 # Determine the default libpath from the value encoded in an 12178 # empty executable. 12179 if test "${lt_cv_aix_libpath+set}" = set; then 12180 aix_libpath=$lt_cv_aix_libpath 12181else 12182 if ${lt_cv_aix_libpath_+:} false; then : 12183 $as_echo_n "(cached) " >&6 12184else 12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12186/* end confdefs.h. */ 12187 12188int 12189main () 12190{ 12191 12192 ; 12193 return 0; 12194} 12195_ACEOF 12196if ac_fn_c_try_link "$LINENO"; then : 12197 12198 lt_aix_libpath_sed=' 12199 /Import File Strings/,/^$/ { 12200 /^0/ { 12201 s/^0 *\([^ ]*\) *$/\1/ 12202 p 12203 } 12204 }' 12205 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12206 # Check for a 64-bit object if we didn't find anything. 12207 if test -z "$lt_cv_aix_libpath_"; then 12208 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12209 fi 12210fi 12211rm -f core conftest.err conftest.$ac_objext \ 12212 conftest$ac_exeext conftest.$ac_ext 12213 if test -z "$lt_cv_aix_libpath_"; then 12214 lt_cv_aix_libpath_="/usr/lib:/lib" 12215 fi 12216 12217fi 12218 12219 aix_libpath=$lt_cv_aix_libpath_ 12220fi 12221 12222 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12223 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" 12224 else 12225 if test "$host_cpu" = ia64; then 12226 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 12227 allow_undefined_flag="-z nodefs" 12228 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" 12229 else 12230 # Determine the default libpath from the value encoded in an 12231 # empty executable. 12232 if test "${lt_cv_aix_libpath+set}" = set; then 12233 aix_libpath=$lt_cv_aix_libpath 12234else 12235 if ${lt_cv_aix_libpath_+:} false; then : 12236 $as_echo_n "(cached) " >&6 12237else 12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12239/* end confdefs.h. */ 12240 12241int 12242main () 12243{ 12244 12245 ; 12246 return 0; 12247} 12248_ACEOF 12249if ac_fn_c_try_link "$LINENO"; then : 12250 12251 lt_aix_libpath_sed=' 12252 /Import File Strings/,/^$/ { 12253 /^0/ { 12254 s/^0 *\([^ ]*\) *$/\1/ 12255 p 12256 } 12257 }' 12258 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12259 # Check for a 64-bit object if we didn't find anything. 12260 if test -z "$lt_cv_aix_libpath_"; then 12261 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12262 fi 12263fi 12264rm -f core conftest.err conftest.$ac_objext \ 12265 conftest$ac_exeext conftest.$ac_ext 12266 if test -z "$lt_cv_aix_libpath_"; then 12267 lt_cv_aix_libpath_="/usr/lib:/lib" 12268 fi 12269 12270fi 12271 12272 aix_libpath=$lt_cv_aix_libpath_ 12273fi 12274 12275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12276 # Warning - without using the other run time loading flags, 12277 # -berok will link without error, but may produce a broken library. 12278 no_undefined_flag=' ${wl}-bernotok' 12279 allow_undefined_flag=' ${wl}-berok' 12280 if test "$with_gnu_ld" = yes; then 12281 # We only use this code for GNU lds that support --whole-archive. 12282 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12283 else 12284 # Exported symbols can be pulled into shared objects from archives 12285 whole_archive_flag_spec='$convenience' 12286 fi 12287 archive_cmds_need_lc=yes 12288 # This is similar to how AIX traditionally builds its shared libraries. 12289 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' 12290 fi 12291 fi 12292 ;; 12293 12294 amigaos*) 12295 case $host_cpu in 12296 powerpc) 12297 # see comment about AmigaOS4 .so support 12298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12299 archive_expsym_cmds='' 12300 ;; 12301 m68k) 12302 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)' 12303 hardcode_libdir_flag_spec='-L$libdir' 12304 hardcode_minus_L=yes 12305 ;; 12306 esac 12307 ;; 12308 12309 bsdi[45]*) 12310 export_dynamic_flag_spec=-rdynamic 12311 ;; 12312 12313 cygwin* | mingw* | pw32* | cegcc*) 12314 # When not using gcc, we currently assume that we are using 12315 # Microsoft Visual C++. 12316 # hardcode_libdir_flag_spec is actually meaningless, as there is 12317 # no search path for DLLs. 12318 case $cc_basename in 12319 cl*) 12320 # Native MSVC 12321 hardcode_libdir_flag_spec=' ' 12322 allow_undefined_flag=unsupported 12323 always_export_symbols=yes 12324 file_list_spec='@' 12325 # Tell ltmain to make .lib files, not .a files. 12326 libext=lib 12327 # Tell ltmain to make .dll files, not .so files. 12328 shrext_cmds=".dll" 12329 # FIXME: Setting linknames here is a bad hack. 12330 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12331 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12332 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12333 else 12334 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12335 fi~ 12336 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12337 linknames=' 12338 # The linker will not automatically build a static lib if we build a DLL. 12339 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12340 enable_shared_with_static_runtimes=yes 12341 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12342 # Don't use ranlib 12343 old_postinstall_cmds='chmod 644 $oldlib' 12344 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12345 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12346 case $lt_outputfile in 12347 *.exe|*.EXE) ;; 12348 *) 12349 lt_outputfile="$lt_outputfile.exe" 12350 lt_tool_outputfile="$lt_tool_outputfile.exe" 12351 ;; 12352 esac~ 12353 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12354 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12355 $RM "$lt_outputfile.manifest"; 12356 fi' 12357 ;; 12358 *) 12359 # Assume MSVC wrapper 12360 hardcode_libdir_flag_spec=' ' 12361 allow_undefined_flag=unsupported 12362 # Tell ltmain to make .lib files, not .a files. 12363 libext=lib 12364 # Tell ltmain to make .dll files, not .so files. 12365 shrext_cmds=".dll" 12366 # FIXME: Setting linknames here is a bad hack. 12367 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12368 # The linker will automatically build a .lib file if we build a DLL. 12369 old_archive_from_new_cmds='true' 12370 # FIXME: Should let the user specify the lib program. 12371 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12372 enable_shared_with_static_runtimes=yes 12373 ;; 12374 esac 12375 ;; 12376 12377 darwin* | rhapsody*) 12378 12379 12380 archive_cmds_need_lc=no 12381 hardcode_direct=no 12382 hardcode_automatic=yes 12383 hardcode_shlibpath_var=unsupported 12384 if test "$lt_cv_ld_force_load" = "yes"; then 12385 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\"`' 12386 else 12387 whole_archive_flag_spec='' 12388 fi 12389 link_all_deplibs=yes 12390 allow_undefined_flag="$_lt_dar_allow_undefined" 12391 case $cc_basename in 12392 ifort*) _lt_dar_can_shared=yes ;; 12393 *) _lt_dar_can_shared=$GCC ;; 12394 esac 12395 if test "$_lt_dar_can_shared" = "yes"; then 12396 output_verbose_link_cmd=func_echo_all 12397 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12398 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12399 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}" 12400 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}" 12401 12402 else 12403 ld_shlibs=no 12404 fi 12405 12406 ;; 12407 12408 dgux*) 12409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12410 hardcode_libdir_flag_spec='-L$libdir' 12411 hardcode_shlibpath_var=no 12412 ;; 12413 12414 freebsd1*) 12415 ld_shlibs=no 12416 ;; 12417 12418 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12419 # support. Future versions do this automatically, but an explicit c++rt0.o 12420 # does not break anything, and helps significantly (at the cost of a little 12421 # extra space). 12422 freebsd2.2*) 12423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12424 hardcode_libdir_flag_spec='-R$libdir' 12425 hardcode_direct=yes 12426 hardcode_shlibpath_var=no 12427 ;; 12428 12429 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12430 freebsd2*) 12431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12432 hardcode_direct=yes 12433 hardcode_minus_L=yes 12434 hardcode_shlibpath_var=no 12435 ;; 12436 12437 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12438 freebsd* | dragonfly*) 12439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12440 hardcode_libdir_flag_spec='-R$libdir' 12441 hardcode_direct=yes 12442 hardcode_shlibpath_var=no 12443 ;; 12444 12445 hpux9*) 12446 if test "$GCC" = yes; then 12447 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' 12448 else 12449 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' 12450 fi 12451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12452 hardcode_libdir_separator=: 12453 hardcode_direct=yes 12454 12455 # hardcode_minus_L: Not really in the search PATH, 12456 # but as the default location of the library. 12457 hardcode_minus_L=yes 12458 export_dynamic_flag_spec='${wl}-E' 12459 ;; 12460 12461 hpux10*) 12462 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12463 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12464 else 12465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12466 fi 12467 if test "$with_gnu_ld" = no; then 12468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12469 hardcode_libdir_flag_spec_ld='+b $libdir' 12470 hardcode_libdir_separator=: 12471 hardcode_direct=yes 12472 hardcode_direct_absolute=yes 12473 export_dynamic_flag_spec='${wl}-E' 12474 # hardcode_minus_L: Not really in the search PATH, 12475 # but as the default location of the library. 12476 hardcode_minus_L=yes 12477 fi 12478 ;; 12479 12480 hpux11*) 12481 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12482 case $host_cpu in 12483 hppa*64*) 12484 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12485 ;; 12486 ia64*) 12487 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12488 ;; 12489 *) 12490 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12491 ;; 12492 esac 12493 else 12494 case $host_cpu in 12495 hppa*64*) 12496 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12497 ;; 12498 ia64*) 12499 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12500 ;; 12501 *) 12502 12503 # Older versions of the 11.00 compiler do not understand -b yet 12504 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12506$as_echo_n "checking if $CC understands -b... " >&6; } 12507if ${lt_cv_prog_compiler__b+:} false; then : 12508 $as_echo_n "(cached) " >&6 12509else 12510 lt_cv_prog_compiler__b=no 12511 save_LDFLAGS="$LDFLAGS" 12512 LDFLAGS="$LDFLAGS -b" 12513 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12515 # The linker can only warn and ignore the option if not recognized 12516 # So say no if there are warnings 12517 if test -s conftest.err; then 12518 # Append any errors to the config.log. 12519 cat conftest.err 1>&5 12520 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12522 if diff conftest.exp conftest.er2 >/dev/null; then 12523 lt_cv_prog_compiler__b=yes 12524 fi 12525 else 12526 lt_cv_prog_compiler__b=yes 12527 fi 12528 fi 12529 $RM -r conftest* 12530 LDFLAGS="$save_LDFLAGS" 12531 12532fi 12533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12534$as_echo "$lt_cv_prog_compiler__b" >&6; } 12535 12536if test x"$lt_cv_prog_compiler__b" = xyes; then 12537 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12538else 12539 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12540fi 12541 12542 ;; 12543 esac 12544 fi 12545 if test "$with_gnu_ld" = no; then 12546 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12547 hardcode_libdir_separator=: 12548 12549 case $host_cpu in 12550 hppa*64*|ia64*) 12551 hardcode_direct=no 12552 hardcode_shlibpath_var=no 12553 ;; 12554 *) 12555 hardcode_direct=yes 12556 hardcode_direct_absolute=yes 12557 export_dynamic_flag_spec='${wl}-E' 12558 12559 # hardcode_minus_L: Not really in the search PATH, 12560 # but as the default location of the library. 12561 hardcode_minus_L=yes 12562 ;; 12563 esac 12564 fi 12565 ;; 12566 12567 irix5* | irix6* | nonstopux*) 12568 if test "$GCC" = yes; then 12569 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' 12570 # Try to use the -exported_symbol ld option, if it does not 12571 # work, assume that -exports_file does not work either and 12572 # implicitly export all symbols. 12573 # This should be the same for all languages, so no per-tag cache variable. 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12575$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12576if ${lt_cv_irix_exported_symbol+:} false; then : 12577 $as_echo_n "(cached) " >&6 12578else 12579 save_LDFLAGS="$LDFLAGS" 12580 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12582/* end confdefs.h. */ 12583int foo (void) { return 0; } 12584_ACEOF 12585if ac_fn_c_try_link "$LINENO"; then : 12586 lt_cv_irix_exported_symbol=yes 12587else 12588 lt_cv_irix_exported_symbol=no 12589fi 12590rm -f core conftest.err conftest.$ac_objext \ 12591 conftest$ac_exeext conftest.$ac_ext 12592 LDFLAGS="$save_LDFLAGS" 12593fi 12594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12595$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12596 if test "$lt_cv_irix_exported_symbol" = yes; then 12597 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' 12598 fi 12599 else 12600 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' 12601 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' 12602 fi 12603 archive_cmds_need_lc='no' 12604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12605 hardcode_libdir_separator=: 12606 inherit_rpath=yes 12607 link_all_deplibs=yes 12608 ;; 12609 12610 netbsd*) 12611 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12613 else 12614 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12615 fi 12616 hardcode_libdir_flag_spec='-R$libdir' 12617 hardcode_direct=yes 12618 hardcode_shlibpath_var=no 12619 ;; 12620 12621 newsos6) 12622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12623 hardcode_direct=yes 12624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12625 hardcode_libdir_separator=: 12626 hardcode_shlibpath_var=no 12627 ;; 12628 12629 *nto* | *qnx*) 12630 ;; 12631 12632 openbsd*) 12633 if test -f /usr/libexec/ld.so; then 12634 hardcode_direct=yes 12635 hardcode_shlibpath_var=no 12636 hardcode_direct_absolute=yes 12637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12638 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12639 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12640 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12641 export_dynamic_flag_spec='${wl}-E' 12642 else 12643 case $host_os in 12644 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12646 hardcode_libdir_flag_spec='-R$libdir' 12647 ;; 12648 *) 12649 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12650 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12651 ;; 12652 esac 12653 fi 12654 else 12655 ld_shlibs=no 12656 fi 12657 ;; 12658 12659 os2*) 12660 hardcode_libdir_flag_spec='-L$libdir' 12661 hardcode_minus_L=yes 12662 allow_undefined_flag=unsupported 12663 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' 12664 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12665 ;; 12666 12667 osf3*) 12668 if test "$GCC" = yes; then 12669 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12670 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' 12671 else 12672 allow_undefined_flag=' -expect_unresolved \*' 12673 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' 12674 fi 12675 archive_cmds_need_lc='no' 12676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12677 hardcode_libdir_separator=: 12678 ;; 12679 12680 osf4* | osf5*) # as osf3* with the addition of -msym flag 12681 if test "$GCC" = yes; then 12682 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12683 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' 12684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12685 else 12686 allow_undefined_flag=' -expect_unresolved \*' 12687 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' 12688 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~ 12689 $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' 12690 12691 # Both c and cxx compiler support -rpath directly 12692 hardcode_libdir_flag_spec='-rpath $libdir' 12693 fi 12694 archive_cmds_need_lc='no' 12695 hardcode_libdir_separator=: 12696 ;; 12697 12698 solaris*) 12699 no_undefined_flag=' -z defs' 12700 if test "$GCC" = yes; then 12701 wlarc='${wl}' 12702 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12703 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12704 $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' 12705 else 12706 case `$CC -V 2>&1` in 12707 *"Compilers 5.0"*) 12708 wlarc='' 12709 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12710 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12711 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12712 ;; 12713 *) 12714 wlarc='${wl}' 12715 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12716 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12717 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12718 ;; 12719 esac 12720 fi 12721 hardcode_libdir_flag_spec='-R$libdir' 12722 hardcode_shlibpath_var=no 12723 case $host_os in 12724 solaris2.[0-5] | solaris2.[0-5].*) ;; 12725 *) 12726 # The compiler driver will combine and reorder linker options, 12727 # but understands `-z linker_flag'. GCC discards it without `$wl', 12728 # but is careful enough not to reorder. 12729 # Supported since Solaris 2.6 (maybe 2.5.1?) 12730 if test "$GCC" = yes; then 12731 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12732 else 12733 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12734 fi 12735 ;; 12736 esac 12737 link_all_deplibs=yes 12738 ;; 12739 12740 sunos4*) 12741 if test "x$host_vendor" = xsequent; then 12742 # Use $CC to link under sequent, because it throws in some extra .o 12743 # files that make .init and .fini sections work. 12744 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12745 else 12746 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12747 fi 12748 hardcode_libdir_flag_spec='-L$libdir' 12749 hardcode_direct=yes 12750 hardcode_minus_L=yes 12751 hardcode_shlibpath_var=no 12752 ;; 12753 12754 sysv4) 12755 case $host_vendor in 12756 sni) 12757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12758 hardcode_direct=yes # is this really true??? 12759 ;; 12760 siemens) 12761 ## LD is ld it makes a PLAMLIB 12762 ## CC just makes a GrossModule. 12763 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12764 reload_cmds='$CC -r -o $output$reload_objs' 12765 hardcode_direct=no 12766 ;; 12767 motorola) 12768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12769 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12770 ;; 12771 esac 12772 runpath_var='LD_RUN_PATH' 12773 hardcode_shlibpath_var=no 12774 ;; 12775 12776 sysv4.3*) 12777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12778 hardcode_shlibpath_var=no 12779 export_dynamic_flag_spec='-Bexport' 12780 ;; 12781 12782 sysv4*MP*) 12783 if test -d /usr/nec; then 12784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12785 hardcode_shlibpath_var=no 12786 runpath_var=LD_RUN_PATH 12787 hardcode_runpath_var=yes 12788 ld_shlibs=yes 12789 fi 12790 ;; 12791 12792 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12793 no_undefined_flag='${wl}-z,text' 12794 archive_cmds_need_lc=no 12795 hardcode_shlibpath_var=no 12796 runpath_var='LD_RUN_PATH' 12797 12798 if test "$GCC" = yes; then 12799 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12800 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12801 else 12802 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12803 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12804 fi 12805 ;; 12806 12807 sysv5* | sco3.2v5* | sco5v6*) 12808 # Note: We can NOT use -z defs as we might desire, because we do not 12809 # link with -lc, and that would cause any symbols used from libc to 12810 # always be unresolved, which means just about no library would 12811 # ever link correctly. If we're not using GNU ld we use -z text 12812 # though, which does catch some bad symbols but isn't as heavy-handed 12813 # as -z defs. 12814 no_undefined_flag='${wl}-z,text' 12815 allow_undefined_flag='${wl}-z,nodefs' 12816 archive_cmds_need_lc=no 12817 hardcode_shlibpath_var=no 12818 hardcode_libdir_flag_spec='${wl}-R,$libdir' 12819 hardcode_libdir_separator=':' 12820 link_all_deplibs=yes 12821 export_dynamic_flag_spec='${wl}-Bexport' 12822 runpath_var='LD_RUN_PATH' 12823 12824 if test "$GCC" = yes; then 12825 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12826 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12827 else 12828 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12829 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12830 fi 12831 ;; 12832 12833 uts4*) 12834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12835 hardcode_libdir_flag_spec='-L$libdir' 12836 hardcode_shlibpath_var=no 12837 ;; 12838 12839 *) 12840 ld_shlibs=no 12841 ;; 12842 esac 12843 12844 if test x$host_vendor = xsni; then 12845 case $host in 12846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12847 export_dynamic_flag_spec='${wl}-Blargedynsym' 12848 ;; 12849 esac 12850 fi 12851 fi 12852 12853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12854$as_echo "$ld_shlibs" >&6; } 12855test "$ld_shlibs" = no && can_build_shared=no 12856 12857with_gnu_ld=$with_gnu_ld 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873# 12874# Do we need to explicitly link libc? 12875# 12876case "x$archive_cmds_need_lc" in 12877x|xyes) 12878 # Assume -lc should be added 12879 archive_cmds_need_lc=yes 12880 12881 if test "$enable_shared" = yes && test "$GCC" = yes; then 12882 case $archive_cmds in 12883 *'~'*) 12884 # FIXME: we may have to deal with multi-command sequences. 12885 ;; 12886 '$CC '*) 12887 # Test whether the compiler implicitly links with -lc since on some 12888 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12889 # to ld, don't add -lc before -lgcc. 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12891$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12892if ${lt_cv_archive_cmds_need_lc+:} false; then : 12893 $as_echo_n "(cached) " >&6 12894else 12895 $RM conftest* 12896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12897 12898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12899 (eval $ac_compile) 2>&5 12900 ac_status=$? 12901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12902 test $ac_status = 0; } 2>conftest.err; then 12903 soname=conftest 12904 lib=conftest 12905 libobjs=conftest.$ac_objext 12906 deplibs= 12907 wl=$lt_prog_compiler_wl 12908 pic_flag=$lt_prog_compiler_pic 12909 compiler_flags=-v 12910 linker_flags=-v 12911 verstring= 12912 output_objdir=. 12913 libname=conftest 12914 lt_save_allow_undefined_flag=$allow_undefined_flag 12915 allow_undefined_flag= 12916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12917 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12918 ac_status=$? 12919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12920 test $ac_status = 0; } 12921 then 12922 lt_cv_archive_cmds_need_lc=no 12923 else 12924 lt_cv_archive_cmds_need_lc=yes 12925 fi 12926 allow_undefined_flag=$lt_save_allow_undefined_flag 12927 else 12928 cat conftest.err 1>&5 12929 fi 12930 $RM conftest* 12931 12932fi 12933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12934$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12935 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12936 ;; 12937 esac 12938 fi 12939 ;; 12940esac 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13099$as_echo_n "checking dynamic linker characteristics... " >&6; } 13100 13101if test "$GCC" = yes; then 13102 case $host_os in 13103 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 13104 *) lt_awk_arg="/^libraries:/" ;; 13105 esac 13106 case $host_os in 13107 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 13108 *) lt_sed_strip_eq="s,=/,/,g" ;; 13109 esac 13110 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13111 case $lt_search_path_spec in 13112 *\;*) 13113 # if the path contains ";" then we assume it to be the separator 13114 # otherwise default to the standard path separator (i.e. ":") - it is 13115 # assumed that no part of a normal pathname contains ";" but that should 13116 # okay in the real world where ";" in dirpaths is itself problematic. 13117 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13118 ;; 13119 *) 13120 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13121 ;; 13122 esac 13123 # Ok, now we have the path, separated by spaces, we can step through it 13124 # and add multilib dir if necessary. 13125 lt_tmp_lt_search_path_spec= 13126 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13127 for lt_sys_path in $lt_search_path_spec; do 13128 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 13129 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 13130 else 13131 test -d "$lt_sys_path" && \ 13132 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13133 fi 13134 done 13135 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13136BEGIN {RS=" "; FS="/|\n";} { 13137 lt_foo=""; 13138 lt_count=0; 13139 for (lt_i = NF; lt_i > 0; lt_i--) { 13140 if ($lt_i != "" && $lt_i != ".") { 13141 if ($lt_i == "..") { 13142 lt_count++; 13143 } else { 13144 if (lt_count == 0) { 13145 lt_foo="/" $lt_i lt_foo; 13146 } else { 13147 lt_count--; 13148 } 13149 } 13150 } 13151 } 13152 if (lt_foo != "") { lt_freq[lt_foo]++; } 13153 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13154}'` 13155 # AWK program above erroneously prepends '/' to C:/dos/paths 13156 # for these hosts. 13157 case $host_os in 13158 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13159 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 13160 esac 13161 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13162else 13163 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13164fi 13165library_names_spec= 13166libname_spec='lib$name' 13167soname_spec= 13168shrext_cmds=".so" 13169postinstall_cmds= 13170postuninstall_cmds= 13171finish_cmds= 13172finish_eval= 13173shlibpath_var= 13174shlibpath_overrides_runpath=unknown 13175version_type=none 13176dynamic_linker="$host_os ld.so" 13177sys_lib_dlsearch_path_spec="/lib /usr/lib" 13178need_lib_prefix=unknown 13179hardcode_into_libs=no 13180 13181# when you set need_version to no, make sure it does not cause -set_version 13182# flags to be left without arguments 13183need_version=unknown 13184 13185case $host_os in 13186aix3*) 13187 version_type=linux 13188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13189 shlibpath_var=LIBPATH 13190 13191 # AIX 3 has no versioning support, so we append a major version to the name. 13192 soname_spec='${libname}${release}${shared_ext}$major' 13193 ;; 13194 13195aix[4-9]*) 13196 version_type=linux 13197 need_lib_prefix=no 13198 need_version=no 13199 hardcode_into_libs=yes 13200 if test "$host_cpu" = ia64; then 13201 # AIX 5 supports IA64 13202 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13203 shlibpath_var=LD_LIBRARY_PATH 13204 else 13205 # With GCC up to 2.95.x, collect2 would create an import file 13206 # for dependence libraries. The import file would start with 13207 # the line `#! .'. This would cause the generated library to 13208 # depend on `.', always an invalid library. This was fixed in 13209 # development snapshots of GCC prior to 3.0. 13210 case $host_os in 13211 aix4 | aix4.[01] | aix4.[01].*) 13212 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13213 echo ' yes ' 13214 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13215 : 13216 else 13217 can_build_shared=no 13218 fi 13219 ;; 13220 esac 13221 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13222 # soname into executable. Probably we can add versioning support to 13223 # collect2, so additional links can be useful in future. 13224 if test "$aix_use_runtimelinking" = yes; then 13225 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13226 # instead of lib<name>.a to let people know that these are not 13227 # typical AIX shared libraries. 13228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13229 else 13230 # We preserve .a as extension for shared libraries through AIX4.2 13231 # and later when we are not doing run time linking. 13232 library_names_spec='${libname}${release}.a $libname.a' 13233 soname_spec='${libname}${release}${shared_ext}$major' 13234 fi 13235 shlibpath_var=LIBPATH 13236 fi 13237 ;; 13238 13239amigaos*) 13240 case $host_cpu in 13241 powerpc) 13242 # Since July 2007 AmigaOS4 officially supports .so libraries. 13243 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13245 ;; 13246 m68k) 13247 library_names_spec='$libname.ixlibrary $libname.a' 13248 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13249 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' 13250 ;; 13251 esac 13252 ;; 13253 13254beos*) 13255 library_names_spec='${libname}${shared_ext}' 13256 dynamic_linker="$host_os ld.so" 13257 shlibpath_var=LIBRARY_PATH 13258 ;; 13259 13260bsdi[45]*) 13261 version_type=linux 13262 need_version=no 13263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13264 soname_spec='${libname}${release}${shared_ext}$major' 13265 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13266 shlibpath_var=LD_LIBRARY_PATH 13267 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13268 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13269 # the default ld.so.conf also contains /usr/contrib/lib and 13270 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13271 # libtool to hard-code these into programs 13272 ;; 13273 13274cygwin* | mingw* | pw32* | cegcc*) 13275 version_type=windows 13276 shrext_cmds=".dll" 13277 need_version=no 13278 need_lib_prefix=no 13279 13280 case $GCC,$cc_basename in 13281 yes,*) 13282 # gcc 13283 library_names_spec='$libname.dll.a' 13284 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13285 postinstall_cmds='base_file=`basename \${file}`~ 13286 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13287 dldir=$destdir/`dirname \$dlpath`~ 13288 test -d \$dldir || mkdir -p \$dldir~ 13289 $install_prog $dir/$dlname \$dldir/$dlname~ 13290 chmod a+x \$dldir/$dlname~ 13291 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13292 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13293 fi' 13294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13295 dlpath=$dir/\$dldll~ 13296 $RM \$dlpath' 13297 shlibpath_overrides_runpath=yes 13298 13299 case $host_os in 13300 cygwin*) 13301 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13302 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13303 13304 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13305 ;; 13306 mingw* | cegcc*) 13307 # MinGW DLLs use traditional 'lib' prefix 13308 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13309 ;; 13310 pw32*) 13311 # pw32 DLLs use 'pw' prefix rather than 'lib' 13312 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13313 ;; 13314 esac 13315 dynamic_linker='Win32 ld.exe' 13316 ;; 13317 13318 *,cl*) 13319 # Native MSVC 13320 libname_spec='$name' 13321 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13322 library_names_spec='${libname}.dll.lib' 13323 13324 case $build_os in 13325 mingw*) 13326 sys_lib_search_path_spec= 13327 lt_save_ifs=$IFS 13328 IFS=';' 13329 for lt_path in $LIB 13330 do 13331 IFS=$lt_save_ifs 13332 # Let DOS variable expansion print the short 8.3 style file name. 13333 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13334 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13335 done 13336 IFS=$lt_save_ifs 13337 # Convert to MSYS style. 13338 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13339 ;; 13340 cygwin*) 13341 # Convert to unix form, then to dos form, then back to unix form 13342 # but this time dos style (no spaces!) so that the unix form looks 13343 # like /cygdrive/c/PROGRA~1:/cygdr... 13344 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13345 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13346 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13347 ;; 13348 *) 13349 sys_lib_search_path_spec="$LIB" 13350 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13351 # It is most probably a Windows format PATH. 13352 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13353 else 13354 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13355 fi 13356 # FIXME: find the short name or the path components, as spaces are 13357 # common. (e.g. "Program Files" -> "PROGRA~1") 13358 ;; 13359 esac 13360 13361 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13362 postinstall_cmds='base_file=`basename \${file}`~ 13363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13364 dldir=$destdir/`dirname \$dlpath`~ 13365 test -d \$dldir || mkdir -p \$dldir~ 13366 $install_prog $dir/$dlname \$dldir/$dlname' 13367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13368 dlpath=$dir/\$dldll~ 13369 $RM \$dlpath' 13370 shlibpath_overrides_runpath=yes 13371 dynamic_linker='Win32 link.exe' 13372 ;; 13373 13374 *) 13375 # Assume MSVC wrapper 13376 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13377 dynamic_linker='Win32 ld.exe' 13378 ;; 13379 esac 13380 # FIXME: first we should search . and the directory the executable is in 13381 shlibpath_var=PATH 13382 ;; 13383 13384darwin* | rhapsody*) 13385 dynamic_linker="$host_os dyld" 13386 version_type=darwin 13387 need_lib_prefix=no 13388 need_version=no 13389 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13390 soname_spec='${libname}${release}${major}$shared_ext' 13391 shlibpath_overrides_runpath=yes 13392 shlibpath_var=DYLD_LIBRARY_PATH 13393 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13394 13395 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13396 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13397 ;; 13398 13399dgux*) 13400 version_type=linux 13401 need_lib_prefix=no 13402 need_version=no 13403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13404 soname_spec='${libname}${release}${shared_ext}$major' 13405 shlibpath_var=LD_LIBRARY_PATH 13406 ;; 13407 13408freebsd1*) 13409 dynamic_linker=no 13410 ;; 13411 13412freebsd* | dragonfly*) 13413 # DragonFly does not have aout. When/if they implement a new 13414 # versioning mechanism, adjust this. 13415 if test -x /usr/bin/objformat; then 13416 objformat=`/usr/bin/objformat` 13417 else 13418 case $host_os in 13419 freebsd[123]*) objformat=aout ;; 13420 *) objformat=elf ;; 13421 esac 13422 fi 13423 # Handle Gentoo/FreeBSD as it was Linux 13424 case $host_vendor in 13425 gentoo) 13426 version_type=linux ;; 13427 *) 13428 version_type=freebsd-$objformat ;; 13429 esac 13430 13431 case $version_type in 13432 freebsd-elf*) 13433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13434 need_version=no 13435 need_lib_prefix=no 13436 ;; 13437 freebsd-*) 13438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13439 need_version=yes 13440 ;; 13441 linux) 13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13443 soname_spec='${libname}${release}${shared_ext}$major' 13444 need_lib_prefix=no 13445 need_version=no 13446 ;; 13447 esac 13448 shlibpath_var=LD_LIBRARY_PATH 13449 case $host_os in 13450 freebsd2*) 13451 shlibpath_overrides_runpath=yes 13452 ;; 13453 freebsd3.[01]* | freebsdelf3.[01]*) 13454 shlibpath_overrides_runpath=yes 13455 hardcode_into_libs=yes 13456 ;; 13457 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13458 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13459 shlibpath_overrides_runpath=no 13460 hardcode_into_libs=yes 13461 ;; 13462 *) # from 4.6 on, and DragonFly 13463 shlibpath_overrides_runpath=yes 13464 hardcode_into_libs=yes 13465 ;; 13466 esac 13467 ;; 13468 13469gnu*) 13470 version_type=linux 13471 need_lib_prefix=no 13472 need_version=no 13473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13474 soname_spec='${libname}${release}${shared_ext}$major' 13475 shlibpath_var=LD_LIBRARY_PATH 13476 hardcode_into_libs=yes 13477 ;; 13478 13479haiku*) 13480 version_type=linux 13481 need_lib_prefix=no 13482 need_version=no 13483 dynamic_linker="$host_os runtime_loader" 13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13485 soname_spec='${libname}${release}${shared_ext}$major' 13486 shlibpath_var=LIBRARY_PATH 13487 shlibpath_overrides_runpath=yes 13488 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13489 hardcode_into_libs=yes 13490 ;; 13491 13492hpux9* | hpux10* | hpux11*) 13493 # Give a soname corresponding to the major version so that dld.sl refuses to 13494 # link against other versions. 13495 version_type=sunos 13496 need_lib_prefix=no 13497 need_version=no 13498 case $host_cpu in 13499 ia64*) 13500 shrext_cmds='.so' 13501 hardcode_into_libs=yes 13502 dynamic_linker="$host_os dld.so" 13503 shlibpath_var=LD_LIBRARY_PATH 13504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13506 soname_spec='${libname}${release}${shared_ext}$major' 13507 if test "X$HPUX_IA64_MODE" = X32; then 13508 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13509 else 13510 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13511 fi 13512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13513 ;; 13514 hppa*64*) 13515 shrext_cmds='.sl' 13516 hardcode_into_libs=yes 13517 dynamic_linker="$host_os dld.sl" 13518 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13521 soname_spec='${libname}${release}${shared_ext}$major' 13522 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13524 ;; 13525 *) 13526 shrext_cmds='.sl' 13527 dynamic_linker="$host_os dld.sl" 13528 shlibpath_var=SHLIB_PATH 13529 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13531 soname_spec='${libname}${release}${shared_ext}$major' 13532 ;; 13533 esac 13534 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13535 postinstall_cmds='chmod 555 $lib' 13536 # or fails outright, so override atomically: 13537 install_override_mode=555 13538 ;; 13539 13540interix[3-9]*) 13541 version_type=linux 13542 need_lib_prefix=no 13543 need_version=no 13544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13545 soname_spec='${libname}${release}${shared_ext}$major' 13546 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13547 shlibpath_var=LD_LIBRARY_PATH 13548 shlibpath_overrides_runpath=no 13549 hardcode_into_libs=yes 13550 ;; 13551 13552irix5* | irix6* | nonstopux*) 13553 case $host_os in 13554 nonstopux*) version_type=nonstopux ;; 13555 *) 13556 if test "$lt_cv_prog_gnu_ld" = yes; then 13557 version_type=linux 13558 else 13559 version_type=irix 13560 fi ;; 13561 esac 13562 need_lib_prefix=no 13563 need_version=no 13564 soname_spec='${libname}${release}${shared_ext}$major' 13565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13566 case $host_os in 13567 irix5* | nonstopux*) 13568 libsuff= shlibsuff= 13569 ;; 13570 *) 13571 case $LD in # libtool.m4 will add one of these switches to LD 13572 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13573 libsuff= shlibsuff= libmagic=32-bit;; 13574 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13575 libsuff=32 shlibsuff=N32 libmagic=N32;; 13576 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13577 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13578 *) libsuff= shlibsuff= libmagic=never-match;; 13579 esac 13580 ;; 13581 esac 13582 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13583 shlibpath_overrides_runpath=no 13584 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13585 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13586 hardcode_into_libs=yes 13587 ;; 13588 13589# No shared lib support for Linux oldld, aout, or coff. 13590linux*oldld* | linux*aout* | linux*coff*) 13591 dynamic_linker=no 13592 ;; 13593 13594# This must be Linux ELF. 13595linux* | k*bsd*-gnu | kopensolaris*-gnu) 13596 version_type=linux 13597 need_lib_prefix=no 13598 need_version=no 13599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13600 soname_spec='${libname}${release}${shared_ext}$major' 13601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13602 shlibpath_var=LD_LIBRARY_PATH 13603 shlibpath_overrides_runpath=no 13604 13605 # Some binutils ld are patched to set DT_RUNPATH 13606 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13607 $as_echo_n "(cached) " >&6 13608else 13609 lt_cv_shlibpath_overrides_runpath=no 13610 save_LDFLAGS=$LDFLAGS 13611 save_libdir=$libdir 13612 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13613 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13615/* end confdefs.h. */ 13616 13617int 13618main () 13619{ 13620 13621 ; 13622 return 0; 13623} 13624_ACEOF 13625if ac_fn_c_try_link "$LINENO"; then : 13626 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13627 lt_cv_shlibpath_overrides_runpath=yes 13628fi 13629fi 13630rm -f core conftest.err conftest.$ac_objext \ 13631 conftest$ac_exeext conftest.$ac_ext 13632 LDFLAGS=$save_LDFLAGS 13633 libdir=$save_libdir 13634 13635fi 13636 13637 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13638 13639 # This implies no fast_install, which is unacceptable. 13640 # Some rework will be needed to allow for fast_install 13641 # before this can be enabled. 13642 hardcode_into_libs=yes 13643 13644 # Append ld.so.conf contents to the search path 13645 if test -f /etc/ld.so.conf; then 13646 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' ' '` 13647 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13648 fi 13649 13650 # We used to test for /lib/ld.so.1 and disable shared libraries on 13651 # powerpc, because MkLinux only supported shared libraries with the 13652 # GNU dynamic linker. Since this was broken with cross compilers, 13653 # most powerpc-linux boxes support dynamic linking these days and 13654 # people can always --disable-shared, the test was removed, and we 13655 # assume the GNU/Linux dynamic linker is in use. 13656 dynamic_linker='GNU/Linux ld.so' 13657 ;; 13658 13659netbsd*) 13660 version_type=sunos 13661 need_lib_prefix=no 13662 need_version=no 13663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13666 dynamic_linker='NetBSD (a.out) ld.so' 13667 else 13668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13669 soname_spec='${libname}${release}${shared_ext}$major' 13670 dynamic_linker='NetBSD ld.elf_so' 13671 fi 13672 shlibpath_var=LD_LIBRARY_PATH 13673 shlibpath_overrides_runpath=yes 13674 hardcode_into_libs=yes 13675 ;; 13676 13677newsos6) 13678 version_type=linux 13679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13680 shlibpath_var=LD_LIBRARY_PATH 13681 shlibpath_overrides_runpath=yes 13682 ;; 13683 13684*nto* | *qnx*) 13685 version_type=qnx 13686 need_lib_prefix=no 13687 need_version=no 13688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13689 soname_spec='${libname}${release}${shared_ext}$major' 13690 shlibpath_var=LD_LIBRARY_PATH 13691 shlibpath_overrides_runpath=no 13692 hardcode_into_libs=yes 13693 dynamic_linker='ldqnx.so' 13694 ;; 13695 13696openbsd*) 13697 version_type=sunos 13698 sys_lib_dlsearch_path_spec="/usr/lib" 13699 need_lib_prefix=no 13700 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13701 case $host_os in 13702 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13703 *) need_version=no ;; 13704 esac 13705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13707 shlibpath_var=LD_LIBRARY_PATH 13708 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13709 case $host_os in 13710 openbsd2.[89] | openbsd2.[89].*) 13711 shlibpath_overrides_runpath=no 13712 ;; 13713 *) 13714 shlibpath_overrides_runpath=yes 13715 ;; 13716 esac 13717 else 13718 shlibpath_overrides_runpath=yes 13719 fi 13720 ;; 13721 13722os2*) 13723 libname_spec='$name' 13724 shrext_cmds=".dll" 13725 need_lib_prefix=no 13726 library_names_spec='$libname${shared_ext} $libname.a' 13727 dynamic_linker='OS/2 ld.exe' 13728 shlibpath_var=LIBPATH 13729 ;; 13730 13731osf3* | osf4* | osf5*) 13732 version_type=osf 13733 need_lib_prefix=no 13734 need_version=no 13735 soname_spec='${libname}${release}${shared_ext}$major' 13736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13737 shlibpath_var=LD_LIBRARY_PATH 13738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13739 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13740 ;; 13741 13742rdos*) 13743 dynamic_linker=no 13744 ;; 13745 13746solaris*) 13747 version_type=linux 13748 need_lib_prefix=no 13749 need_version=no 13750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13751 soname_spec='${libname}${release}${shared_ext}$major' 13752 shlibpath_var=LD_LIBRARY_PATH 13753 shlibpath_overrides_runpath=yes 13754 hardcode_into_libs=yes 13755 # ldd complains unless libraries are executable 13756 postinstall_cmds='chmod +x $lib' 13757 ;; 13758 13759sunos4*) 13760 version_type=sunos 13761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13763 shlibpath_var=LD_LIBRARY_PATH 13764 shlibpath_overrides_runpath=yes 13765 if test "$with_gnu_ld" = yes; then 13766 need_lib_prefix=no 13767 fi 13768 need_version=yes 13769 ;; 13770 13771sysv4 | sysv4.3*) 13772 version_type=linux 13773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13774 soname_spec='${libname}${release}${shared_ext}$major' 13775 shlibpath_var=LD_LIBRARY_PATH 13776 case $host_vendor in 13777 sni) 13778 shlibpath_overrides_runpath=no 13779 need_lib_prefix=no 13780 runpath_var=LD_RUN_PATH 13781 ;; 13782 siemens) 13783 need_lib_prefix=no 13784 ;; 13785 motorola) 13786 need_lib_prefix=no 13787 need_version=no 13788 shlibpath_overrides_runpath=no 13789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13790 ;; 13791 esac 13792 ;; 13793 13794sysv4*MP*) 13795 if test -d /usr/nec ;then 13796 version_type=linux 13797 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13798 soname_spec='$libname${shared_ext}.$major' 13799 shlibpath_var=LD_LIBRARY_PATH 13800 fi 13801 ;; 13802 13803sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13804 version_type=freebsd-elf 13805 need_lib_prefix=no 13806 need_version=no 13807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13808 soname_spec='${libname}${release}${shared_ext}$major' 13809 shlibpath_var=LD_LIBRARY_PATH 13810 shlibpath_overrides_runpath=yes 13811 hardcode_into_libs=yes 13812 if test "$with_gnu_ld" = yes; then 13813 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13814 else 13815 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13816 case $host_os in 13817 sco3.2v5*) 13818 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13819 ;; 13820 esac 13821 fi 13822 sys_lib_dlsearch_path_spec='/usr/lib' 13823 ;; 13824 13825tpf*) 13826 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13827 version_type=linux 13828 need_lib_prefix=no 13829 need_version=no 13830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13831 shlibpath_var=LD_LIBRARY_PATH 13832 shlibpath_overrides_runpath=no 13833 hardcode_into_libs=yes 13834 ;; 13835 13836uts4*) 13837 version_type=linux 13838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13839 soname_spec='${libname}${release}${shared_ext}$major' 13840 shlibpath_var=LD_LIBRARY_PATH 13841 ;; 13842 13843*) 13844 dynamic_linker=no 13845 ;; 13846esac 13847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13848$as_echo "$dynamic_linker" >&6; } 13849test "$dynamic_linker" = no && can_build_shared=no 13850 13851variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13852if test "$GCC" = yes; then 13853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13854fi 13855 13856if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13857 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13858fi 13859if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13860 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13861fi 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13955$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13956hardcode_action= 13957if test -n "$hardcode_libdir_flag_spec" || 13958 test -n "$runpath_var" || 13959 test "X$hardcode_automatic" = "Xyes" ; then 13960 13961 # We can hardcode non-existent directories. 13962 if test "$hardcode_direct" != no && 13963 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13964 # have to relink, otherwise we might link with an installed library 13965 # when we should be linking with a yet-to-be-installed one 13966 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13967 test "$hardcode_minus_L" != no; then 13968 # Linking always hardcodes the temporary library directory. 13969 hardcode_action=relink 13970 else 13971 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13972 hardcode_action=immediate 13973 fi 13974else 13975 # We cannot hardcode anything, or else we can only hardcode existing 13976 # directories. 13977 hardcode_action=unsupported 13978fi 13979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13980$as_echo "$hardcode_action" >&6; } 13981 13982if test "$hardcode_action" = relink || 13983 test "$inherit_rpath" = yes; then 13984 # Fast installation is not supported 13985 enable_fast_install=no 13986elif test "$shlibpath_overrides_runpath" = yes || 13987 test "$enable_shared" = no; then 13988 # Fast installation is not necessary 13989 enable_fast_install=needless 13990fi 13991 13992 13993 13994 13995 13996 13997 if test "x$enable_dlopen" != xyes; then 13998 enable_dlopen=unknown 13999 enable_dlopen_self=unknown 14000 enable_dlopen_self_static=unknown 14001else 14002 lt_cv_dlopen=no 14003 lt_cv_dlopen_libs= 14004 14005 case $host_os in 14006 beos*) 14007 lt_cv_dlopen="load_add_on" 14008 lt_cv_dlopen_libs= 14009 lt_cv_dlopen_self=yes 14010 ;; 14011 14012 mingw* | pw32* | cegcc*) 14013 lt_cv_dlopen="LoadLibrary" 14014 lt_cv_dlopen_libs= 14015 ;; 14016 14017 cygwin*) 14018 lt_cv_dlopen="dlopen" 14019 lt_cv_dlopen_libs= 14020 ;; 14021 14022 darwin*) 14023 # if libdl is installed we need to link against it 14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14025$as_echo_n "checking for dlopen in -ldl... " >&6; } 14026if ${ac_cv_lib_dl_dlopen+:} false; then : 14027 $as_echo_n "(cached) " >&6 14028else 14029 ac_check_lib_save_LIBS=$LIBS 14030LIBS="-ldl $LIBS" 14031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14032/* end confdefs.h. */ 14033 14034/* Override any GCC internal prototype to avoid an error. 14035 Use char because int might match the return type of a GCC 14036 builtin and then its argument prototype would still apply. */ 14037#ifdef __cplusplus 14038extern "C" 14039#endif 14040char dlopen (); 14041int 14042main () 14043{ 14044return dlopen (); 14045 ; 14046 return 0; 14047} 14048_ACEOF 14049if ac_fn_c_try_link "$LINENO"; then : 14050 ac_cv_lib_dl_dlopen=yes 14051else 14052 ac_cv_lib_dl_dlopen=no 14053fi 14054rm -f core conftest.err conftest.$ac_objext \ 14055 conftest$ac_exeext conftest.$ac_ext 14056LIBS=$ac_check_lib_save_LIBS 14057fi 14058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14059$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14060if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14062else 14063 14064 lt_cv_dlopen="dyld" 14065 lt_cv_dlopen_libs= 14066 lt_cv_dlopen_self=yes 14067 14068fi 14069 14070 ;; 14071 14072 *) 14073 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14074if test "x$ac_cv_func_shl_load" = xyes; then : 14075 lt_cv_dlopen="shl_load" 14076else 14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14078$as_echo_n "checking for shl_load in -ldld... " >&6; } 14079if ${ac_cv_lib_dld_shl_load+:} false; then : 14080 $as_echo_n "(cached) " >&6 14081else 14082 ac_check_lib_save_LIBS=$LIBS 14083LIBS="-ldld $LIBS" 14084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14085/* end confdefs.h. */ 14086 14087/* Override any GCC internal prototype to avoid an error. 14088 Use char because int might match the return type of a GCC 14089 builtin and then its argument prototype would still apply. */ 14090#ifdef __cplusplus 14091extern "C" 14092#endif 14093char shl_load (); 14094int 14095main () 14096{ 14097return shl_load (); 14098 ; 14099 return 0; 14100} 14101_ACEOF 14102if ac_fn_c_try_link "$LINENO"; then : 14103 ac_cv_lib_dld_shl_load=yes 14104else 14105 ac_cv_lib_dld_shl_load=no 14106fi 14107rm -f core conftest.err conftest.$ac_objext \ 14108 conftest$ac_exeext conftest.$ac_ext 14109LIBS=$ac_check_lib_save_LIBS 14110fi 14111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14112$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14113if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14114 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 14115else 14116 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14117if test "x$ac_cv_func_dlopen" = xyes; then : 14118 lt_cv_dlopen="dlopen" 14119else 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14121$as_echo_n "checking for dlopen in -ldl... " >&6; } 14122if ${ac_cv_lib_dl_dlopen+:} false; then : 14123 $as_echo_n "(cached) " >&6 14124else 14125 ac_check_lib_save_LIBS=$LIBS 14126LIBS="-ldl $LIBS" 14127cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14128/* end confdefs.h. */ 14129 14130/* Override any GCC internal prototype to avoid an error. 14131 Use char because int might match the return type of a GCC 14132 builtin and then its argument prototype would still apply. */ 14133#ifdef __cplusplus 14134extern "C" 14135#endif 14136char dlopen (); 14137int 14138main () 14139{ 14140return dlopen (); 14141 ; 14142 return 0; 14143} 14144_ACEOF 14145if ac_fn_c_try_link "$LINENO"; then : 14146 ac_cv_lib_dl_dlopen=yes 14147else 14148 ac_cv_lib_dl_dlopen=no 14149fi 14150rm -f core conftest.err conftest.$ac_objext \ 14151 conftest$ac_exeext conftest.$ac_ext 14152LIBS=$ac_check_lib_save_LIBS 14153fi 14154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14155$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14156if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14157 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14158else 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14160$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14161if ${ac_cv_lib_svld_dlopen+:} false; then : 14162 $as_echo_n "(cached) " >&6 14163else 14164 ac_check_lib_save_LIBS=$LIBS 14165LIBS="-lsvld $LIBS" 14166cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14167/* end confdefs.h. */ 14168 14169/* Override any GCC internal prototype to avoid an error. 14170 Use char because int might match the return type of a GCC 14171 builtin and then its argument prototype would still apply. */ 14172#ifdef __cplusplus 14173extern "C" 14174#endif 14175char dlopen (); 14176int 14177main () 14178{ 14179return dlopen (); 14180 ; 14181 return 0; 14182} 14183_ACEOF 14184if ac_fn_c_try_link "$LINENO"; then : 14185 ac_cv_lib_svld_dlopen=yes 14186else 14187 ac_cv_lib_svld_dlopen=no 14188fi 14189rm -f core conftest.err conftest.$ac_objext \ 14190 conftest$ac_exeext conftest.$ac_ext 14191LIBS=$ac_check_lib_save_LIBS 14192fi 14193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14194$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14195if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 14197else 14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14199$as_echo_n "checking for dld_link in -ldld... " >&6; } 14200if ${ac_cv_lib_dld_dld_link+:} false; then : 14201 $as_echo_n "(cached) " >&6 14202else 14203 ac_check_lib_save_LIBS=$LIBS 14204LIBS="-ldld $LIBS" 14205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14206/* end confdefs.h. */ 14207 14208/* Override any GCC internal prototype to avoid an error. 14209 Use char because int might match the return type of a GCC 14210 builtin and then its argument prototype would still apply. */ 14211#ifdef __cplusplus 14212extern "C" 14213#endif 14214char dld_link (); 14215int 14216main () 14217{ 14218return dld_link (); 14219 ; 14220 return 0; 14221} 14222_ACEOF 14223if ac_fn_c_try_link "$LINENO"; then : 14224 ac_cv_lib_dld_dld_link=yes 14225else 14226 ac_cv_lib_dld_dld_link=no 14227fi 14228rm -f core conftest.err conftest.$ac_objext \ 14229 conftest$ac_exeext conftest.$ac_ext 14230LIBS=$ac_check_lib_save_LIBS 14231fi 14232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14233$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14234if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14235 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 14236fi 14237 14238 14239fi 14240 14241 14242fi 14243 14244 14245fi 14246 14247 14248fi 14249 14250 14251fi 14252 14253 ;; 14254 esac 14255 14256 if test "x$lt_cv_dlopen" != xno; then 14257 enable_dlopen=yes 14258 else 14259 enable_dlopen=no 14260 fi 14261 14262 case $lt_cv_dlopen in 14263 dlopen) 14264 save_CPPFLAGS="$CPPFLAGS" 14265 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14266 14267 save_LDFLAGS="$LDFLAGS" 14268 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14269 14270 save_LIBS="$LIBS" 14271 LIBS="$lt_cv_dlopen_libs $LIBS" 14272 14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14274$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14275if ${lt_cv_dlopen_self+:} false; then : 14276 $as_echo_n "(cached) " >&6 14277else 14278 if test "$cross_compiling" = yes; then : 14279 lt_cv_dlopen_self=cross 14280else 14281 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14282 lt_status=$lt_dlunknown 14283 cat > conftest.$ac_ext <<_LT_EOF 14284#line $LINENO "configure" 14285#include "confdefs.h" 14286 14287#if HAVE_DLFCN_H 14288#include <dlfcn.h> 14289#endif 14290 14291#include <stdio.h> 14292 14293#ifdef RTLD_GLOBAL 14294# define LT_DLGLOBAL RTLD_GLOBAL 14295#else 14296# ifdef DL_GLOBAL 14297# define LT_DLGLOBAL DL_GLOBAL 14298# else 14299# define LT_DLGLOBAL 0 14300# endif 14301#endif 14302 14303/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14304 find out it does not work in some platform. */ 14305#ifndef LT_DLLAZY_OR_NOW 14306# ifdef RTLD_LAZY 14307# define LT_DLLAZY_OR_NOW RTLD_LAZY 14308# else 14309# ifdef DL_LAZY 14310# define LT_DLLAZY_OR_NOW DL_LAZY 14311# else 14312# ifdef RTLD_NOW 14313# define LT_DLLAZY_OR_NOW RTLD_NOW 14314# else 14315# ifdef DL_NOW 14316# define LT_DLLAZY_OR_NOW DL_NOW 14317# else 14318# define LT_DLLAZY_OR_NOW 0 14319# endif 14320# endif 14321# endif 14322# endif 14323#endif 14324 14325/* When -fvisbility=hidden is used, assume the code has been annotated 14326 correspondingly for the symbols needed. */ 14327#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14328int fnord () __attribute__((visibility("default"))); 14329#endif 14330 14331int fnord () { return 42; } 14332int main () 14333{ 14334 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14335 int status = $lt_dlunknown; 14336 14337 if (self) 14338 { 14339 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14340 else 14341 { 14342 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14343 else puts (dlerror ()); 14344 } 14345 /* dlclose (self); */ 14346 } 14347 else 14348 puts (dlerror ()); 14349 14350 return status; 14351} 14352_LT_EOF 14353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14354 (eval $ac_link) 2>&5 14355 ac_status=$? 14356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14357 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14358 (./conftest; exit; ) >&5 2>/dev/null 14359 lt_status=$? 14360 case x$lt_status in 14361 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14362 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14363 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14364 esac 14365 else : 14366 # compilation failed 14367 lt_cv_dlopen_self=no 14368 fi 14369fi 14370rm -fr conftest* 14371 14372 14373fi 14374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14375$as_echo "$lt_cv_dlopen_self" >&6; } 14376 14377 if test "x$lt_cv_dlopen_self" = xyes; then 14378 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14380$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14381if ${lt_cv_dlopen_self_static+:} false; then : 14382 $as_echo_n "(cached) " >&6 14383else 14384 if test "$cross_compiling" = yes; then : 14385 lt_cv_dlopen_self_static=cross 14386else 14387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14388 lt_status=$lt_dlunknown 14389 cat > conftest.$ac_ext <<_LT_EOF 14390#line $LINENO "configure" 14391#include "confdefs.h" 14392 14393#if HAVE_DLFCN_H 14394#include <dlfcn.h> 14395#endif 14396 14397#include <stdio.h> 14398 14399#ifdef RTLD_GLOBAL 14400# define LT_DLGLOBAL RTLD_GLOBAL 14401#else 14402# ifdef DL_GLOBAL 14403# define LT_DLGLOBAL DL_GLOBAL 14404# else 14405# define LT_DLGLOBAL 0 14406# endif 14407#endif 14408 14409/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14410 find out it does not work in some platform. */ 14411#ifndef LT_DLLAZY_OR_NOW 14412# ifdef RTLD_LAZY 14413# define LT_DLLAZY_OR_NOW RTLD_LAZY 14414# else 14415# ifdef DL_LAZY 14416# define LT_DLLAZY_OR_NOW DL_LAZY 14417# else 14418# ifdef RTLD_NOW 14419# define LT_DLLAZY_OR_NOW RTLD_NOW 14420# else 14421# ifdef DL_NOW 14422# define LT_DLLAZY_OR_NOW DL_NOW 14423# else 14424# define LT_DLLAZY_OR_NOW 0 14425# endif 14426# endif 14427# endif 14428# endif 14429#endif 14430 14431/* When -fvisbility=hidden is used, assume the code has been annotated 14432 correspondingly for the symbols needed. */ 14433#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14434int fnord () __attribute__((visibility("default"))); 14435#endif 14436 14437int fnord () { return 42; } 14438int main () 14439{ 14440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14441 int status = $lt_dlunknown; 14442 14443 if (self) 14444 { 14445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14446 else 14447 { 14448 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14449 else puts (dlerror ()); 14450 } 14451 /* dlclose (self); */ 14452 } 14453 else 14454 puts (dlerror ()); 14455 14456 return status; 14457} 14458_LT_EOF 14459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14460 (eval $ac_link) 2>&5 14461 ac_status=$? 14462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14463 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14464 (./conftest; exit; ) >&5 2>/dev/null 14465 lt_status=$? 14466 case x$lt_status in 14467 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14468 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14469 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14470 esac 14471 else : 14472 # compilation failed 14473 lt_cv_dlopen_self_static=no 14474 fi 14475fi 14476rm -fr conftest* 14477 14478 14479fi 14480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14481$as_echo "$lt_cv_dlopen_self_static" >&6; } 14482 fi 14483 14484 CPPFLAGS="$save_CPPFLAGS" 14485 LDFLAGS="$save_LDFLAGS" 14486 LIBS="$save_LIBS" 14487 ;; 14488 esac 14489 14490 case $lt_cv_dlopen_self in 14491 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14492 *) enable_dlopen_self=unknown ;; 14493 esac 14494 14495 case $lt_cv_dlopen_self_static in 14496 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14497 *) enable_dlopen_self_static=unknown ;; 14498 esac 14499fi 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517striplib= 14518old_striplib= 14519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14520$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14521if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14522 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14523 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14525$as_echo "yes" >&6; } 14526else 14527# FIXME - insert some real tests, host_os isn't really good enough 14528 case $host_os in 14529 darwin*) 14530 if test -n "$STRIP" ; then 14531 striplib="$STRIP -x" 14532 old_striplib="$STRIP -S" 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14534$as_echo "yes" >&6; } 14535 else 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14537$as_echo "no" >&6; } 14538 fi 14539 ;; 14540 *) 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14542$as_echo "no" >&6; } 14543 ;; 14544 esac 14545fi 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 # Report which library types will actually be built 14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14560$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14562$as_echo "$can_build_shared" >&6; } 14563 14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14565$as_echo_n "checking whether to build shared libraries... " >&6; } 14566 test "$can_build_shared" = "no" && enable_shared=no 14567 14568 # On AIX, shared libraries and static libraries use the same namespace, and 14569 # are all built from PIC. 14570 case $host_os in 14571 aix3*) 14572 test "$enable_shared" = yes && enable_static=no 14573 if test -n "$RANLIB"; then 14574 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14575 postinstall_cmds='$RANLIB $lib' 14576 fi 14577 ;; 14578 14579 aix[4-9]*) 14580 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14581 test "$enable_shared" = yes && enable_static=no 14582 fi 14583 ;; 14584 esac 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14586$as_echo "$enable_shared" >&6; } 14587 14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14589$as_echo_n "checking whether to build static libraries... " >&6; } 14590 # Make sure either enable_shared or enable_static is yes. 14591 test "$enable_shared" = yes || enable_static=yes 14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14593$as_echo "$enable_static" >&6; } 14594 14595 14596 14597 14598fi 14599ac_ext=c 14600ac_cpp='$CPP $CPPFLAGS' 14601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14603ac_compiler_gnu=$ac_cv_c_compiler_gnu 14604 14605CC="$lt_save_CC" 14606 14607 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 14608 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 14609 (test "X$CXX" != "Xg++"))) ; then 14610 ac_ext=cpp 14611ac_cpp='$CXXCPP $CPPFLAGS' 14612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 14616$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 14617if test -z "$CXXCPP"; then 14618 if ${ac_cv_prog_CXXCPP+:} false; then : 14619 $as_echo_n "(cached) " >&6 14620else 14621 # Double quotes because CXXCPP needs to be expanded 14622 for CXXCPP in "$CXX -E" "/lib/cpp" 14623 do 14624 ac_preproc_ok=false 14625for ac_cxx_preproc_warn_flag in '' yes 14626do 14627 # Use a header file that comes with gcc, so configuring glibc 14628 # with a fresh cross-compiler works. 14629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14630 # <limits.h> exists even on freestanding compilers. 14631 # On the NeXT, cc -E runs the code through the compiler's parser, 14632 # not just through cpp. "Syntax error" is here to catch this case. 14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14634/* end confdefs.h. */ 14635#ifdef __STDC__ 14636# include <limits.h> 14637#else 14638# include <assert.h> 14639#endif 14640 Syntax error 14641_ACEOF 14642if ac_fn_cxx_try_cpp "$LINENO"; then : 14643 14644else 14645 # Broken: fails on valid input. 14646continue 14647fi 14648rm -f conftest.err conftest.i conftest.$ac_ext 14649 14650 # OK, works on sane cases. Now check whether nonexistent headers 14651 # can be detected and how. 14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14653/* end confdefs.h. */ 14654#include <ac_nonexistent.h> 14655_ACEOF 14656if ac_fn_cxx_try_cpp "$LINENO"; then : 14657 # Broken: success on invalid input. 14658continue 14659else 14660 # Passes both tests. 14661ac_preproc_ok=: 14662break 14663fi 14664rm -f conftest.err conftest.i conftest.$ac_ext 14665 14666done 14667# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14668rm -f conftest.i conftest.err conftest.$ac_ext 14669if $ac_preproc_ok; then : 14670 break 14671fi 14672 14673 done 14674 ac_cv_prog_CXXCPP=$CXXCPP 14675 14676fi 14677 CXXCPP=$ac_cv_prog_CXXCPP 14678else 14679 ac_cv_prog_CXXCPP=$CXXCPP 14680fi 14681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 14682$as_echo "$CXXCPP" >&6; } 14683ac_preproc_ok=false 14684for ac_cxx_preproc_warn_flag in '' yes 14685do 14686 # Use a header file that comes with gcc, so configuring glibc 14687 # with a fresh cross-compiler works. 14688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14689 # <limits.h> exists even on freestanding compilers. 14690 # On the NeXT, cc -E runs the code through the compiler's parser, 14691 # not just through cpp. "Syntax error" is here to catch this case. 14692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14693/* end confdefs.h. */ 14694#ifdef __STDC__ 14695# include <limits.h> 14696#else 14697# include <assert.h> 14698#endif 14699 Syntax error 14700_ACEOF 14701if ac_fn_cxx_try_cpp "$LINENO"; then : 14702 14703else 14704 # Broken: fails on valid input. 14705continue 14706fi 14707rm -f conftest.err conftest.i conftest.$ac_ext 14708 14709 # OK, works on sane cases. Now check whether nonexistent headers 14710 # can be detected and how. 14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14712/* end confdefs.h. */ 14713#include <ac_nonexistent.h> 14714_ACEOF 14715if ac_fn_cxx_try_cpp "$LINENO"; then : 14716 # Broken: success on invalid input. 14717continue 14718else 14719 # Passes both tests. 14720ac_preproc_ok=: 14721break 14722fi 14723rm -f conftest.err conftest.i conftest.$ac_ext 14724 14725done 14726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14727rm -f conftest.i conftest.err conftest.$ac_ext 14728if $ac_preproc_ok; then : 14729 14730else 14731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14733as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14734See \`config.log' for more details" "$LINENO" 5; } 14735fi 14736 14737ac_ext=c 14738ac_cpp='$CPP $CPPFLAGS' 14739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14741ac_compiler_gnu=$ac_cv_c_compiler_gnu 14742 14743else 14744 _lt_caught_CXX_error=yes 14745fi 14746 14747ac_ext=cpp 14748ac_cpp='$CXXCPP $CPPFLAGS' 14749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14752 14753archive_cmds_need_lc_CXX=no 14754allow_undefined_flag_CXX= 14755always_export_symbols_CXX=no 14756archive_expsym_cmds_CXX= 14757compiler_needs_object_CXX=no 14758export_dynamic_flag_spec_CXX= 14759hardcode_direct_CXX=no 14760hardcode_direct_absolute_CXX=no 14761hardcode_libdir_flag_spec_CXX= 14762hardcode_libdir_flag_spec_ld_CXX= 14763hardcode_libdir_separator_CXX= 14764hardcode_minus_L_CXX=no 14765hardcode_shlibpath_var_CXX=unsupported 14766hardcode_automatic_CXX=no 14767inherit_rpath_CXX=no 14768module_cmds_CXX= 14769module_expsym_cmds_CXX= 14770link_all_deplibs_CXX=unknown 14771old_archive_cmds_CXX=$old_archive_cmds 14772reload_flag_CXX=$reload_flag 14773reload_cmds_CXX=$reload_cmds 14774no_undefined_flag_CXX= 14775whole_archive_flag_spec_CXX= 14776enable_shared_with_static_runtimes_CXX=no 14777 14778# Source file extension for C++ test sources. 14779ac_ext=cpp 14780 14781# Object file extension for compiled C++ test sources. 14782objext=o 14783objext_CXX=$objext 14784 14785# No sense in running all these tests if we already determined that 14786# the CXX compiler isn't working. Some variables (like enable_shared) 14787# are currently assumed to apply to all compilers on this platform, 14788# and will be corrupted by setting them based on a non-working compiler. 14789if test "$_lt_caught_CXX_error" != yes; then 14790 # Code to be used in simple compile tests 14791 lt_simple_compile_test_code="int some_variable = 0;" 14792 14793 # Code to be used in simple link tests 14794 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14795 14796 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14797 14798 14799 14800 14801 14802 14803# If no C compiler was specified, use CC. 14804LTCC=${LTCC-"$CC"} 14805 14806# If no C compiler flags were specified, use CFLAGS. 14807LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14808 14809# Allow CC to be a program name with arguments. 14810compiler=$CC 14811 14812 14813 # save warnings/boilerplate of simple test code 14814 ac_outfile=conftest.$ac_objext 14815echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14816eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14817_lt_compiler_boilerplate=`cat conftest.err` 14818$RM conftest* 14819 14820 ac_outfile=conftest.$ac_objext 14821echo "$lt_simple_link_test_code" >conftest.$ac_ext 14822eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14823_lt_linker_boilerplate=`cat conftest.err` 14824$RM -r conftest* 14825 14826 14827 # Allow CC to be a program name with arguments. 14828 lt_save_CC=$CC 14829 lt_save_CFLAGS=$CFLAGS 14830 lt_save_LD=$LD 14831 lt_save_GCC=$GCC 14832 GCC=$GXX 14833 lt_save_with_gnu_ld=$with_gnu_ld 14834 lt_save_path_LD=$lt_cv_path_LD 14835 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14836 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14837 else 14838 $as_unset lt_cv_prog_gnu_ld 14839 fi 14840 if test -n "${lt_cv_path_LDCXX+set}"; then 14841 lt_cv_path_LD=$lt_cv_path_LDCXX 14842 else 14843 $as_unset lt_cv_path_LD 14844 fi 14845 test -z "${LDCXX+set}" || LD=$LDCXX 14846 CC=${CXX-"c++"} 14847 CFLAGS=$CXXFLAGS 14848 compiler=$CC 14849 compiler_CXX=$CC 14850 for cc_temp in $compiler""; do 14851 case $cc_temp in 14852 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14853 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14854 \-*) ;; 14855 *) break;; 14856 esac 14857done 14858cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14859 14860 14861 if test -n "$compiler"; then 14862 # We don't want -fno-exception when compiling C++ code, so set the 14863 # no_builtin_flag separately 14864 if test "$GXX" = yes; then 14865 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14866 else 14867 lt_prog_compiler_no_builtin_flag_CXX= 14868 fi 14869 14870 if test "$GXX" = yes; then 14871 # Set up default GNU C++ configuration 14872 14873 14874 14875# Check whether --with-gnu-ld was given. 14876if test "${with_gnu_ld+set}" = set; then : 14877 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 14878else 14879 with_gnu_ld=no 14880fi 14881 14882ac_prog=ld 14883if test "$GCC" = yes; then 14884 # Check if gcc -print-prog-name=ld gives a path. 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14886$as_echo_n "checking for ld used by $CC... " >&6; } 14887 case $host in 14888 *-*-mingw*) 14889 # gcc leaves a trailing carriage return which upsets mingw 14890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14891 *) 14892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14893 esac 14894 case $ac_prog in 14895 # Accept absolute paths. 14896 [\\/]* | ?:[\\/]*) 14897 re_direlt='/[^/][^/]*/\.\./' 14898 # Canonicalize the pathname of ld 14899 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14900 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14901 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14902 done 14903 test -z "$LD" && LD="$ac_prog" 14904 ;; 14905 "") 14906 # If it fails, then pretend we aren't using GCC. 14907 ac_prog=ld 14908 ;; 14909 *) 14910 # If it is relative, then search for the first ld in PATH. 14911 with_gnu_ld=unknown 14912 ;; 14913 esac 14914elif test "$with_gnu_ld" = yes; then 14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14916$as_echo_n "checking for GNU ld... " >&6; } 14917else 14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14919$as_echo_n "checking for non-GNU ld... " >&6; } 14920fi 14921if ${lt_cv_path_LD+:} false; then : 14922 $as_echo_n "(cached) " >&6 14923else 14924 if test -z "$LD"; then 14925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14926 for ac_dir in $PATH; do 14927 IFS="$lt_save_ifs" 14928 test -z "$ac_dir" && ac_dir=. 14929 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14930 lt_cv_path_LD="$ac_dir/$ac_prog" 14931 # Check to see if the program is GNU ld. I'd rather use --version, 14932 # but apparently some variants of GNU ld only accept -v. 14933 # Break only if it was the GNU/non-GNU ld that we prefer. 14934 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14935 *GNU* | *'with BFD'*) 14936 test "$with_gnu_ld" != no && break 14937 ;; 14938 *) 14939 test "$with_gnu_ld" != yes && break 14940 ;; 14941 esac 14942 fi 14943 done 14944 IFS="$lt_save_ifs" 14945else 14946 lt_cv_path_LD="$LD" # Let the user override the test with a path. 14947fi 14948fi 14949 14950LD="$lt_cv_path_LD" 14951if test -n "$LD"; then 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14953$as_echo "$LD" >&6; } 14954else 14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14956$as_echo "no" >&6; } 14957fi 14958test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14960$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14961if ${lt_cv_prog_gnu_ld+:} false; then : 14962 $as_echo_n "(cached) " >&6 14963else 14964 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14965case `$LD -v 2>&1 </dev/null` in 14966*GNU* | *'with BFD'*) 14967 lt_cv_prog_gnu_ld=yes 14968 ;; 14969*) 14970 lt_cv_prog_gnu_ld=no 14971 ;; 14972esac 14973fi 14974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14975$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14976with_gnu_ld=$lt_cv_prog_gnu_ld 14977 14978 14979 14980 14981 14982 14983 14984 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14985 # archiving commands below assume that GNU ld is being used. 14986 if test "$with_gnu_ld" = yes; then 14987 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14988 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' 14989 14990 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14992 14993 # If archive_cmds runs LD, not CC, wlarc should be empty 14994 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14995 # investigate it a little bit more. (MM) 14996 wlarc='${wl}' 14997 14998 # ancient GNU ld didn't support --whole-archive et. al. 14999 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 15000 $GREP 'no-whole-archive' > /dev/null; then 15001 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15002 else 15003 whole_archive_flag_spec_CXX= 15004 fi 15005 else 15006 with_gnu_ld=no 15007 wlarc= 15008 15009 # A generic and very simple default shared library creation 15010 # command for GNU C++ for the case where it uses the native 15011 # linker, instead of GNU ld. If possible, this setting should 15012 # overridden to take advantage of the native linker features on 15013 # the platform it is being used on. 15014 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15015 fi 15016 15017 # Commands to make compiler produce verbose output that lists 15018 # what "hidden" libraries, object files and flags are used when 15019 # linking a shared library. 15020 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15021 15022 else 15023 GXX=no 15024 with_gnu_ld=no 15025 wlarc= 15026 fi 15027 15028 # PORTME: fill in a description of your system's C++ link characteristics 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15030$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15031 ld_shlibs_CXX=yes 15032 case $host_os in 15033 aix3*) 15034 # FIXME: insert proper C++ library support 15035 ld_shlibs_CXX=no 15036 ;; 15037 aix[4-9]*) 15038 if test "$host_cpu" = ia64; then 15039 # On IA64, the linker does run time linking by default, so we don't 15040 # have to do anything special. 15041 aix_use_runtimelinking=no 15042 exp_sym_flag='-Bexport' 15043 no_entry_flag="" 15044 else 15045 aix_use_runtimelinking=no 15046 15047 # Test if we are trying to use run time linking or normal 15048 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15049 # need to do runtime linking. 15050 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15051 for ld_flag in $LDFLAGS; do 15052 case $ld_flag in 15053 *-brtl*) 15054 aix_use_runtimelinking=yes 15055 break 15056 ;; 15057 esac 15058 done 15059 ;; 15060 esac 15061 15062 exp_sym_flag='-bexport' 15063 no_entry_flag='-bnoentry' 15064 fi 15065 15066 # When large executables or shared objects are built, AIX ld can 15067 # have problems creating the table of contents. If linking a library 15068 # or program results in "error TOC overflow" add -mminimal-toc to 15069 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15070 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15071 15072 archive_cmds_CXX='' 15073 hardcode_direct_CXX=yes 15074 hardcode_direct_absolute_CXX=yes 15075 hardcode_libdir_separator_CXX=':' 15076 link_all_deplibs_CXX=yes 15077 file_list_spec_CXX='${wl}-f,' 15078 15079 if test "$GXX" = yes; then 15080 case $host_os in aix4.[012]|aix4.[012].*) 15081 # We only want to do this on AIX 4.2 and lower, the check 15082 # below for broken collect2 doesn't work under 4.3+ 15083 collect2name=`${CC} -print-prog-name=collect2` 15084 if test -f "$collect2name" && 15085 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15086 then 15087 # We have reworked collect2 15088 : 15089 else 15090 # We have old collect2 15091 hardcode_direct_CXX=unsupported 15092 # It fails to find uninstalled libraries when the uninstalled 15093 # path is not listed in the libpath. Setting hardcode_minus_L 15094 # to unsupported forces relinking 15095 hardcode_minus_L_CXX=yes 15096 hardcode_libdir_flag_spec_CXX='-L$libdir' 15097 hardcode_libdir_separator_CXX= 15098 fi 15099 esac 15100 shared_flag='-shared' 15101 if test "$aix_use_runtimelinking" = yes; then 15102 shared_flag="$shared_flag "'${wl}-G' 15103 fi 15104 else 15105 # not using gcc 15106 if test "$host_cpu" = ia64; then 15107 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15108 # chokes on -Wl,-G. The following line is correct: 15109 shared_flag='-G' 15110 else 15111 if test "$aix_use_runtimelinking" = yes; then 15112 shared_flag='${wl}-G' 15113 else 15114 shared_flag='${wl}-bM:SRE' 15115 fi 15116 fi 15117 fi 15118 15119 export_dynamic_flag_spec_CXX='${wl}-bexpall' 15120 # It seems that -bexpall does not export symbols beginning with 15121 # underscore (_), so it is better to generate a list of symbols to 15122 # export. 15123 always_export_symbols_CXX=yes 15124 if test "$aix_use_runtimelinking" = yes; then 15125 # Warning - without using the other runtime loading flags (-brtl), 15126 # -berok will link without error, but may produce a broken library. 15127 allow_undefined_flag_CXX='-berok' 15128 # Determine the default libpath from the value encoded in an empty 15129 # executable. 15130 if test "${lt_cv_aix_libpath+set}" = set; then 15131 aix_libpath=$lt_cv_aix_libpath 15132else 15133 if ${lt_cv_aix_libpath__CXX+:} false; then : 15134 $as_echo_n "(cached) " >&6 15135else 15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15137/* end confdefs.h. */ 15138 15139int 15140main () 15141{ 15142 15143 ; 15144 return 0; 15145} 15146_ACEOF 15147if ac_fn_cxx_try_link "$LINENO"; then : 15148 15149 lt_aix_libpath_sed=' 15150 /Import File Strings/,/^$/ { 15151 /^0/ { 15152 s/^0 *\([^ ]*\) *$/\1/ 15153 p 15154 } 15155 }' 15156 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15157 # Check for a 64-bit object if we didn't find anything. 15158 if test -z "$lt_cv_aix_libpath__CXX"; then 15159 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15160 fi 15161fi 15162rm -f core conftest.err conftest.$ac_objext \ 15163 conftest$ac_exeext conftest.$ac_ext 15164 if test -z "$lt_cv_aix_libpath__CXX"; then 15165 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 15166 fi 15167 15168fi 15169 15170 aix_libpath=$lt_cv_aix_libpath__CXX 15171fi 15172 15173 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 15174 15175 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" 15176 else 15177 if test "$host_cpu" = ia64; then 15178 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 15179 allow_undefined_flag_CXX="-z nodefs" 15180 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" 15181 else 15182 # Determine the default libpath from the value encoded in an 15183 # empty executable. 15184 if test "${lt_cv_aix_libpath+set}" = set; then 15185 aix_libpath=$lt_cv_aix_libpath 15186else 15187 if ${lt_cv_aix_libpath__CXX+:} false; then : 15188 $as_echo_n "(cached) " >&6 15189else 15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15191/* end confdefs.h. */ 15192 15193int 15194main () 15195{ 15196 15197 ; 15198 return 0; 15199} 15200_ACEOF 15201if ac_fn_cxx_try_link "$LINENO"; then : 15202 15203 lt_aix_libpath_sed=' 15204 /Import File Strings/,/^$/ { 15205 /^0/ { 15206 s/^0 *\([^ ]*\) *$/\1/ 15207 p 15208 } 15209 }' 15210 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15211 # Check for a 64-bit object if we didn't find anything. 15212 if test -z "$lt_cv_aix_libpath__CXX"; then 15213 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15214 fi 15215fi 15216rm -f core conftest.err conftest.$ac_objext \ 15217 conftest$ac_exeext conftest.$ac_ext 15218 if test -z "$lt_cv_aix_libpath__CXX"; then 15219 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 15220 fi 15221 15222fi 15223 15224 aix_libpath=$lt_cv_aix_libpath__CXX 15225fi 15226 15227 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 15228 # Warning - without using the other run time loading flags, 15229 # -berok will link without error, but may produce a broken library. 15230 no_undefined_flag_CXX=' ${wl}-bernotok' 15231 allow_undefined_flag_CXX=' ${wl}-berok' 15232 if test "$with_gnu_ld" = yes; then 15233 # We only use this code for GNU lds that support --whole-archive. 15234 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15235 else 15236 # Exported symbols can be pulled into shared objects from archives 15237 whole_archive_flag_spec_CXX='$convenience' 15238 fi 15239 archive_cmds_need_lc_CXX=yes 15240 # This is similar to how AIX traditionally builds its shared 15241 # libraries. 15242 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' 15243 fi 15244 fi 15245 ;; 15246 15247 beos*) 15248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15249 allow_undefined_flag_CXX=unsupported 15250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15251 # support --undefined. This deserves some investigation. FIXME 15252 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15253 else 15254 ld_shlibs_CXX=no 15255 fi 15256 ;; 15257 15258 chorus*) 15259 case $cc_basename in 15260 *) 15261 # FIXME: insert proper C++ library support 15262 ld_shlibs_CXX=no 15263 ;; 15264 esac 15265 ;; 15266 15267 cygwin* | mingw* | pw32* | cegcc*) 15268 case $GXX,$cc_basename in 15269 ,cl* | no,cl*) 15270 # Native MSVC 15271 # hardcode_libdir_flag_spec is actually meaningless, as there is 15272 # no search path for DLLs. 15273 hardcode_libdir_flag_spec_CXX=' ' 15274 allow_undefined_flag_CXX=unsupported 15275 always_export_symbols_CXX=yes 15276 file_list_spec_CXX='@' 15277 # Tell ltmain to make .lib files, not .a files. 15278 libext=lib 15279 # Tell ltmain to make .dll files, not .so files. 15280 shrext_cmds=".dll" 15281 # FIXME: Setting linknames here is a bad hack. 15282 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15283 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15284 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15285 else 15286 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15287 fi~ 15288 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15289 linknames=' 15290 # The linker will not automatically build a static lib if we build a DLL. 15291 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 15292 enable_shared_with_static_runtimes_CXX=yes 15293 # Don't use ranlib 15294 old_postinstall_cmds_CXX='chmod 644 $oldlib' 15295 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 15296 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15297 case $lt_outputfile in 15298 *.exe|*.EXE) ;; 15299 *) 15300 lt_outputfile="$lt_outputfile.exe" 15301 lt_tool_outputfile="$lt_tool_outputfile.exe" 15302 ;; 15303 esac~ 15304 func_to_tool_file "$lt_outputfile"~ 15305 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15306 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15307 $RM "$lt_outputfile.manifest"; 15308 fi' 15309 ;; 15310 *) 15311 # g++ 15312 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 15313 # as there is no search path for DLLs. 15314 hardcode_libdir_flag_spec_CXX='-L$libdir' 15315 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 15316 allow_undefined_flag_CXX=unsupported 15317 always_export_symbols_CXX=no 15318 enable_shared_with_static_runtimes_CXX=yes 15319 15320 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15321 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' 15322 # If the export-symbols file already is a .def file (1st line 15323 # is EXPORTS), use it as is; otherwise, prepend... 15324 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15325 cp $export_symbols $output_objdir/$soname.def; 15326 else 15327 echo EXPORTS > $output_objdir/$soname.def; 15328 cat $export_symbols >> $output_objdir/$soname.def; 15329 fi~ 15330 $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' 15331 else 15332 ld_shlibs_CXX=no 15333 fi 15334 ;; 15335 esac 15336 ;; 15337 darwin* | rhapsody*) 15338 15339 15340 archive_cmds_need_lc_CXX=no 15341 hardcode_direct_CXX=no 15342 hardcode_automatic_CXX=yes 15343 hardcode_shlibpath_var_CXX=unsupported 15344 if test "$lt_cv_ld_force_load" = "yes"; then 15345 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\"`' 15346 else 15347 whole_archive_flag_spec_CXX='' 15348 fi 15349 link_all_deplibs_CXX=yes 15350 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 15351 case $cc_basename in 15352 ifort*) _lt_dar_can_shared=yes ;; 15353 *) _lt_dar_can_shared=$GCC ;; 15354 esac 15355 if test "$_lt_dar_can_shared" = "yes"; then 15356 output_verbose_link_cmd=func_echo_all 15357 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}" 15358 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15359 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}" 15360 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}" 15361 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 15362 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}" 15363 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}" 15364 fi 15365 15366 else 15367 ld_shlibs_CXX=no 15368 fi 15369 15370 ;; 15371 15372 dgux*) 15373 case $cc_basename in 15374 ec++*) 15375 # FIXME: insert proper C++ library support 15376 ld_shlibs_CXX=no 15377 ;; 15378 ghcx*) 15379 # Green Hills C++ Compiler 15380 # FIXME: insert proper C++ library support 15381 ld_shlibs_CXX=no 15382 ;; 15383 *) 15384 # FIXME: insert proper C++ library support 15385 ld_shlibs_CXX=no 15386 ;; 15387 esac 15388 ;; 15389 15390 freebsd[12]*) 15391 # C++ shared libraries reported to be fairly broken before 15392 # switch to ELF 15393 ld_shlibs_CXX=no 15394 ;; 15395 15396 freebsd-elf*) 15397 archive_cmds_need_lc_CXX=no 15398 ;; 15399 15400 freebsd* | dragonfly*) 15401 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 15402 # conventions 15403 ld_shlibs_CXX=yes 15404 ;; 15405 15406 gnu*) 15407 ;; 15408 15409 haiku*) 15410 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15411 link_all_deplibs_CXX=yes 15412 ;; 15413 15414 hpux9*) 15415 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 15416 hardcode_libdir_separator_CXX=: 15417 export_dynamic_flag_spec_CXX='${wl}-E' 15418 hardcode_direct_CXX=yes 15419 hardcode_minus_L_CXX=yes # Not in the search PATH, 15420 # but as the default 15421 # location of the library. 15422 15423 case $cc_basename in 15424 CC*) 15425 # FIXME: insert proper C++ library support 15426 ld_shlibs_CXX=no 15427 ;; 15428 aCC*) 15429 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' 15430 # Commands to make compiler produce verbose output that lists 15431 # what "hidden" libraries, object files and flags are used when 15432 # linking a shared library. 15433 # 15434 # There doesn't appear to be a way to prevent this compiler from 15435 # explicitly linking system object files so we need to strip them 15436 # from the output so that they don't get included in the library 15437 # dependencies. 15438 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"' 15439 ;; 15440 *) 15441 if test "$GXX" = yes; then 15442 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' 15443 else 15444 # FIXME: insert proper C++ library support 15445 ld_shlibs_CXX=no 15446 fi 15447 ;; 15448 esac 15449 ;; 15450 15451 hpux10*|hpux11*) 15452 if test $with_gnu_ld = no; then 15453 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 15454 hardcode_libdir_separator_CXX=: 15455 15456 case $host_cpu in 15457 hppa*64*|ia64*) 15458 ;; 15459 *) 15460 export_dynamic_flag_spec_CXX='${wl}-E' 15461 ;; 15462 esac 15463 fi 15464 case $host_cpu in 15465 hppa*64*|ia64*) 15466 hardcode_direct_CXX=no 15467 hardcode_shlibpath_var_CXX=no 15468 ;; 15469 *) 15470 hardcode_direct_CXX=yes 15471 hardcode_direct_absolute_CXX=yes 15472 hardcode_minus_L_CXX=yes # Not in the search PATH, 15473 # but as the default 15474 # location of the library. 15475 ;; 15476 esac 15477 15478 case $cc_basename in 15479 CC*) 15480 # FIXME: insert proper C++ library support 15481 ld_shlibs_CXX=no 15482 ;; 15483 aCC*) 15484 case $host_cpu in 15485 hppa*64*) 15486 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15487 ;; 15488 ia64*) 15489 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15490 ;; 15491 *) 15492 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15493 ;; 15494 esac 15495 # Commands to make compiler produce verbose output that lists 15496 # what "hidden" libraries, object files and flags are used when 15497 # linking a shared library. 15498 # 15499 # There doesn't appear to be a way to prevent this compiler from 15500 # explicitly linking system object files so we need to strip them 15501 # from the output so that they don't get included in the library 15502 # dependencies. 15503 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"' 15504 ;; 15505 *) 15506 if test "$GXX" = yes; then 15507 if test $with_gnu_ld = no; then 15508 case $host_cpu in 15509 hppa*64*) 15510 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15511 ;; 15512 ia64*) 15513 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15514 ;; 15515 *) 15516 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' 15517 ;; 15518 esac 15519 fi 15520 else 15521 # FIXME: insert proper C++ library support 15522 ld_shlibs_CXX=no 15523 fi 15524 ;; 15525 esac 15526 ;; 15527 15528 interix[3-9]*) 15529 hardcode_direct_CXX=no 15530 hardcode_shlibpath_var_CXX=no 15531 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15532 export_dynamic_flag_spec_CXX='${wl}-E' 15533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15534 # Instead, shared libraries are loaded at an image base (0x10000000 by 15535 # default) and relocated if they conflict, which is a slow very memory 15536 # consuming and fragmenting process. To avoid this, we pick a random, 15537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15538 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15539 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' 15540 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' 15541 ;; 15542 irix5* | irix6*) 15543 case $cc_basename in 15544 CC*) 15545 # SGI C++ 15546 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' 15547 15548 # Archives containing C++ object files must be created using 15549 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 15550 # necessary to make sure instantiated templates are included 15551 # in the archive. 15552 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 15553 ;; 15554 *) 15555 if test "$GXX" = yes; then 15556 if test "$with_gnu_ld" = no; then 15557 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' 15558 else 15559 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' 15560 fi 15561 fi 15562 link_all_deplibs_CXX=yes 15563 ;; 15564 esac 15565 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15566 hardcode_libdir_separator_CXX=: 15567 inherit_rpath_CXX=yes 15568 ;; 15569 15570 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15571 case $cc_basename in 15572 KCC*) 15573 # Kuck and Associates, Inc. (KAI) C++ Compiler 15574 15575 # KCC will only create a shared library if the output file 15576 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15577 # to its proper name (with version) after linking. 15578 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' 15579 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' 15580 # Commands to make compiler produce verbose output that lists 15581 # what "hidden" libraries, object files and flags are used when 15582 # linking a shared library. 15583 # 15584 # There doesn't appear to be a way to prevent this compiler from 15585 # explicitly linking system object files so we need to strip them 15586 # from the output so that they don't get included in the library 15587 # dependencies. 15588 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"' 15589 15590 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15591 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15592 15593 # Archives containing C++ object files must be created using 15594 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 15595 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 15596 ;; 15597 icpc* | ecpc* ) 15598 # Intel C++ 15599 with_gnu_ld=yes 15600 # version 8.0 and above of icpc choke on multiply defined symbols 15601 # if we add $predep_objects and $postdep_objects, however 7.1 and 15602 # earlier do not add the objects themselves. 15603 case `$CC -V 2>&1` in 15604 *"Version 7."*) 15605 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 15606 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' 15607 ;; 15608 *) # Version 8.0 or newer 15609 tmp_idyn= 15610 case $host_cpu in 15611 ia64*) tmp_idyn=' -i_dynamic';; 15612 esac 15613 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15614 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' 15615 ;; 15616 esac 15617 archive_cmds_need_lc_CXX=no 15618 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15619 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15620 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15621 ;; 15622 pgCC* | pgcpp*) 15623 # Portland Group C++ compiler 15624 case `$CC -V` in 15625 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 15626 prelink_cmds_CXX='tpldir=Template.dir~ 15627 rm -rf $tpldir~ 15628 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 15629 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 15630 old_archive_cmds_CXX='tpldir=Template.dir~ 15631 rm -rf $tpldir~ 15632 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 15633 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 15634 $RANLIB $oldlib' 15635 archive_cmds_CXX='tpldir=Template.dir~ 15636 rm -rf $tpldir~ 15637 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15638 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 15639 archive_expsym_cmds_CXX='tpldir=Template.dir~ 15640 rm -rf $tpldir~ 15641 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15642 $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' 15643 ;; 15644 *) # Version 6 and above use weak symbols 15645 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 15646 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' 15647 ;; 15648 esac 15649 15650 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 15651 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15652 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' 15653 ;; 15654 cxx*) 15655 # Compaq C++ 15656 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 15657 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' 15658 15659 runpath_var=LD_RUN_PATH 15660 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15661 hardcode_libdir_separator_CXX=: 15662 15663 # Commands to make compiler produce verbose output that lists 15664 # what "hidden" libraries, object files and flags are used when 15665 # linking a shared library. 15666 # 15667 # There doesn't appear to be a way to prevent this compiler from 15668 # explicitly linking system object files so we need to strip them 15669 # from the output so that they don't get included in the library 15670 # dependencies. 15671 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' 15672 ;; 15673 xl* | mpixl* | bgxl*) 15674 # IBM XL 8.0 on PPC, with GNU ld 15675 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15676 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15677 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15678 if test "x$supports_anon_versioning" = xyes; then 15679 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 15680 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15681 echo "local: *; };" >> $output_objdir/$libname.ver~ 15682 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15683 fi 15684 ;; 15685 *) 15686 case `$CC -V 2>&1 | sed 5q` in 15687 *Sun\ C*) 15688 # Sun C++ 5.9 15689 no_undefined_flag_CXX=' -zdefs' 15690 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15691 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' 15692 hardcode_libdir_flag_spec_CXX='-R$libdir' 15693 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' 15694 compiler_needs_object_CXX=yes 15695 15696 # Not sure whether something based on 15697 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 15698 # would be better. 15699 output_verbose_link_cmd='func_echo_all' 15700 15701 # Archives containing C++ object files must be created using 15702 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15703 # necessary to make sure instantiated templates are included 15704 # in the archive. 15705 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15706 ;; 15707 esac 15708 ;; 15709 esac 15710 ;; 15711 15712 lynxos*) 15713 # FIXME: insert proper C++ library support 15714 ld_shlibs_CXX=no 15715 ;; 15716 15717 m88k*) 15718 # FIXME: insert proper C++ library support 15719 ld_shlibs_CXX=no 15720 ;; 15721 15722 mvs*) 15723 case $cc_basename in 15724 cxx*) 15725 # FIXME: insert proper C++ library support 15726 ld_shlibs_CXX=no 15727 ;; 15728 *) 15729 # FIXME: insert proper C++ library support 15730 ld_shlibs_CXX=no 15731 ;; 15732 esac 15733 ;; 15734 15735 netbsd*) 15736 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15737 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15738 wlarc= 15739 hardcode_libdir_flag_spec_CXX='-R$libdir' 15740 hardcode_direct_CXX=yes 15741 hardcode_shlibpath_var_CXX=no 15742 fi 15743 # Workaround some broken pre-1.5 toolchains 15744 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15745 ;; 15746 15747 *nto* | *qnx*) 15748 ld_shlibs_CXX=yes 15749 ;; 15750 15751 openbsd2*) 15752 # C++ shared libraries are fairly broken 15753 ld_shlibs_CXX=no 15754 ;; 15755 15756 openbsd*) 15757 if test -f /usr/libexec/ld.so; then 15758 hardcode_direct_CXX=yes 15759 hardcode_shlibpath_var_CXX=no 15760 hardcode_direct_absolute_CXX=yes 15761 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15762 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15763 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15764 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 15765 export_dynamic_flag_spec_CXX='${wl}-E' 15766 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15767 fi 15768 output_verbose_link_cmd=func_echo_all 15769 else 15770 ld_shlibs_CXX=no 15771 fi 15772 ;; 15773 15774 osf3* | osf4* | osf5*) 15775 case $cc_basename in 15776 KCC*) 15777 # Kuck and Associates, Inc. (KAI) C++ Compiler 15778 15779 # KCC will only create a shared library if the output file 15780 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15781 # to its proper name (with version) after linking. 15782 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' 15783 15784 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15785 hardcode_libdir_separator_CXX=: 15786 15787 # Archives containing C++ object files must be created using 15788 # the KAI C++ compiler. 15789 case $host in 15790 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15791 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15792 esac 15793 ;; 15794 RCC*) 15795 # Rational C++ 2.4.1 15796 # FIXME: insert proper C++ library support 15797 ld_shlibs_CXX=no 15798 ;; 15799 cxx*) 15800 case $host in 15801 osf3*) 15802 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 15803 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' 15804 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15805 ;; 15806 *) 15807 allow_undefined_flag_CXX=' -expect_unresolved \*' 15808 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' 15809 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15810 echo "-hidden">> $lib.exp~ 15811 $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~ 15812 $RM $lib.exp' 15813 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15814 ;; 15815 esac 15816 15817 hardcode_libdir_separator_CXX=: 15818 15819 # Commands to make compiler produce verbose output that lists 15820 # what "hidden" libraries, object files and flags are used when 15821 # linking a shared library. 15822 # 15823 # There doesn't appear to be a way to prevent this compiler from 15824 # explicitly linking system object files so we need to strip them 15825 # from the output so that they don't get included in the library 15826 # dependencies. 15827 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"' 15828 ;; 15829 *) 15830 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 15831 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 15832 case $host in 15833 osf3*) 15834 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' 15835 ;; 15836 *) 15837 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' 15838 ;; 15839 esac 15840 15841 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15842 hardcode_libdir_separator_CXX=: 15843 15844 # Commands to make compiler produce verbose output that lists 15845 # what "hidden" libraries, object files and flags are used when 15846 # linking a shared library. 15847 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15848 15849 else 15850 # FIXME: insert proper C++ library support 15851 ld_shlibs_CXX=no 15852 fi 15853 ;; 15854 esac 15855 ;; 15856 15857 psos*) 15858 # FIXME: insert proper C++ library support 15859 ld_shlibs_CXX=no 15860 ;; 15861 15862 sunos4*) 15863 case $cc_basename in 15864 CC*) 15865 # Sun C++ 4.x 15866 # FIXME: insert proper C++ library support 15867 ld_shlibs_CXX=no 15868 ;; 15869 lcc*) 15870 # Lucid 15871 # FIXME: insert proper C++ library support 15872 ld_shlibs_CXX=no 15873 ;; 15874 *) 15875 # FIXME: insert proper C++ library support 15876 ld_shlibs_CXX=no 15877 ;; 15878 esac 15879 ;; 15880 15881 solaris*) 15882 case $cc_basename in 15883 CC* | sunCC*) 15884 # Sun C++ 4.2, 5.x and Centerline C++ 15885 archive_cmds_need_lc_CXX=yes 15886 no_undefined_flag_CXX=' -zdefs' 15887 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15888 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15889 $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' 15890 15891 hardcode_libdir_flag_spec_CXX='-R$libdir' 15892 hardcode_shlibpath_var_CXX=no 15893 case $host_os in 15894 solaris2.[0-5] | solaris2.[0-5].*) ;; 15895 *) 15896 # The compiler driver will combine and reorder linker options, 15897 # but understands `-z linker_flag'. 15898 # Supported since Solaris 2.6 (maybe 2.5.1?) 15899 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15900 ;; 15901 esac 15902 link_all_deplibs_CXX=yes 15903 15904 output_verbose_link_cmd='func_echo_all' 15905 15906 # Archives containing C++ object files must be created using 15907 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15908 # necessary to make sure instantiated templates are included 15909 # in the archive. 15910 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15911 ;; 15912 gcx*) 15913 # Green Hills C++ Compiler 15914 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15915 15916 # The C++ compiler must be used to create the archive. 15917 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15918 ;; 15919 *) 15920 # GNU C++ compiler with Solaris linker 15921 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 15922 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 15923 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15924 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15925 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15926 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15927 15928 # Commands to make compiler produce verbose output that lists 15929 # what "hidden" libraries, object files and flags are used when 15930 # linking a shared library. 15931 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15932 else 15933 # g++ 2.7 appears to require `-G' NOT `-shared' on this 15934 # platform. 15935 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15936 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15937 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15938 15939 # Commands to make compiler produce verbose output that lists 15940 # what "hidden" libraries, object files and flags are used when 15941 # linking a shared library. 15942 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15943 fi 15944 15945 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 15946 case $host_os in 15947 solaris2.[0-5] | solaris2.[0-5].*) ;; 15948 *) 15949 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15950 ;; 15951 esac 15952 fi 15953 ;; 15954 esac 15955 ;; 15956 15957 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15958 no_undefined_flag_CXX='${wl}-z,text' 15959 archive_cmds_need_lc_CXX=no 15960 hardcode_shlibpath_var_CXX=no 15961 runpath_var='LD_RUN_PATH' 15962 15963 case $cc_basename in 15964 CC*) 15965 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15966 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15967 ;; 15968 *) 15969 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15970 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15971 ;; 15972 esac 15973 ;; 15974 15975 sysv5* | sco3.2v5* | sco5v6*) 15976 # Note: We can NOT use -z defs as we might desire, because we do not 15977 # link with -lc, and that would cause any symbols used from libc to 15978 # always be unresolved, which means just about no library would 15979 # ever link correctly. If we're not using GNU ld we use -z text 15980 # though, which does catch some bad symbols but isn't as heavy-handed 15981 # as -z defs. 15982 no_undefined_flag_CXX='${wl}-z,text' 15983 allow_undefined_flag_CXX='${wl}-z,nodefs' 15984 archive_cmds_need_lc_CXX=no 15985 hardcode_shlibpath_var_CXX=no 15986 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 15987 hardcode_libdir_separator_CXX=':' 15988 link_all_deplibs_CXX=yes 15989 export_dynamic_flag_spec_CXX='${wl}-Bexport' 15990 runpath_var='LD_RUN_PATH' 15991 15992 case $cc_basename in 15993 CC*) 15994 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15995 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15996 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15997 '"$old_archive_cmds_CXX" 15998 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15999 '"$reload_cmds_CXX" 16000 ;; 16001 *) 16002 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16003 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16004 ;; 16005 esac 16006 ;; 16007 16008 tandem*) 16009 case $cc_basename in 16010 NCC*) 16011 # NonStop-UX NCC 3.20 16012 # FIXME: insert proper C++ library support 16013 ld_shlibs_CXX=no 16014 ;; 16015 *) 16016 # FIXME: insert proper C++ library support 16017 ld_shlibs_CXX=no 16018 ;; 16019 esac 16020 ;; 16021 16022 vxworks*) 16023 # FIXME: insert proper C++ library support 16024 ld_shlibs_CXX=no 16025 ;; 16026 16027 *) 16028 # FIXME: insert proper C++ library support 16029 ld_shlibs_CXX=no 16030 ;; 16031 esac 16032 16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16034$as_echo "$ld_shlibs_CXX" >&6; } 16035 test "$ld_shlibs_CXX" = no && can_build_shared=no 16036 16037 GCC_CXX="$GXX" 16038 LD_CXX="$LD" 16039 16040 ## CAVEAT EMPTOR: 16041 ## There is no encapsulation within the following macros, do not change 16042 ## the running order or otherwise move them around unless you know exactly 16043 ## what you are doing... 16044 # Dependencies to place before and after the object being linked: 16045predep_objects_CXX= 16046postdep_objects_CXX= 16047predeps_CXX= 16048postdeps_CXX= 16049compiler_lib_search_path_CXX= 16050 16051cat > conftest.$ac_ext <<_LT_EOF 16052class Foo 16053{ 16054public: 16055 Foo (void) { a = 0; } 16056private: 16057 int a; 16058}; 16059_LT_EOF 16060 16061 16062_lt_libdeps_save_CFLAGS=$CFLAGS 16063case "$CC $CFLAGS " in #( 16064*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 16065*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 16066esac 16067 16068if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16069 (eval $ac_compile) 2>&5 16070 ac_status=$? 16071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16072 test $ac_status = 0; }; then 16073 # Parse the compiler output and extract the necessary 16074 # objects, libraries and library flags. 16075 16076 # Sentinel used to keep track of whether or not we are before 16077 # the conftest object file. 16078 pre_test_object_deps_done=no 16079 16080 for p in `eval "$output_verbose_link_cmd"`; do 16081 case ${prev}${p} in 16082 16083 -L* | -R* | -l*) 16084 # Some compilers place space between "-{L,R}" and the path. 16085 # Remove the space. 16086 if test $p = "-L" || 16087 test $p = "-R"; then 16088 prev=$p 16089 continue 16090 fi 16091 16092 # Expand the sysroot to ease extracting the directories later. 16093 if test -z "$prev"; then 16094 case $p in 16095 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 16096 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 16097 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 16098 esac 16099 fi 16100 case $p in 16101 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 16102 esac 16103 if test "$pre_test_object_deps_done" = no; then 16104 case ${prev} in 16105 -L | -R) 16106 # Internal compiler library paths should come after those 16107 # provided the user. The postdeps already come after the 16108 # user supplied libs so there is no need to process them. 16109 if test -z "$compiler_lib_search_path_CXX"; then 16110 compiler_lib_search_path_CXX="${prev}${p}" 16111 else 16112 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 16113 fi 16114 ;; 16115 # The "-l" case would never come before the object being 16116 # linked, so don't bother handling this case. 16117 esac 16118 else 16119 if test -z "$postdeps_CXX"; then 16120 postdeps_CXX="${prev}${p}" 16121 else 16122 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 16123 fi 16124 fi 16125 prev= 16126 ;; 16127 16128 *.lto.$objext) ;; # Ignore GCC LTO objects 16129 *.$objext) 16130 # This assumes that the test object file only shows up 16131 # once in the compiler output. 16132 if test "$p" = "conftest.$objext"; then 16133 pre_test_object_deps_done=yes 16134 continue 16135 fi 16136 16137 if test "$pre_test_object_deps_done" = no; then 16138 if test -z "$predep_objects_CXX"; then 16139 predep_objects_CXX="$p" 16140 else 16141 predep_objects_CXX="$predep_objects_CXX $p" 16142 fi 16143 else 16144 if test -z "$postdep_objects_CXX"; then 16145 postdep_objects_CXX="$p" 16146 else 16147 postdep_objects_CXX="$postdep_objects_CXX $p" 16148 fi 16149 fi 16150 ;; 16151 16152 *) ;; # Ignore the rest. 16153 16154 esac 16155 done 16156 16157 # Clean up. 16158 rm -f a.out a.exe 16159else 16160 echo "libtool.m4: error: problem compiling CXX test program" 16161fi 16162 16163$RM -f confest.$objext 16164CFLAGS=$_lt_libdeps_save_CFLAGS 16165 16166# PORTME: override above test on systems where it is broken 16167case $host_os in 16168interix[3-9]*) 16169 # Interix 3.5 installs completely hosed .la files for C++, so rather than 16170 # hack all around it, let's just trust "g++" to DTRT. 16171 predep_objects_CXX= 16172 postdep_objects_CXX= 16173 postdeps_CXX= 16174 ;; 16175 16176linux*) 16177 case `$CC -V 2>&1 | sed 5q` in 16178 *Sun\ C*) 16179 # Sun C++ 5.9 16180 16181 # The more standards-conforming stlport4 library is 16182 # incompatible with the Cstd library. Avoid specifying 16183 # it if it's in CXXFLAGS. Ignore libCrun as 16184 # -library=stlport4 depends on it. 16185 case " $CXX $CXXFLAGS " in 16186 *" -library=stlport4 "*) 16187 solaris_use_stlport4=yes 16188 ;; 16189 esac 16190 16191 if test "$solaris_use_stlport4" != yes; then 16192 postdeps_CXX='-library=Cstd -library=Crun' 16193 fi 16194 ;; 16195 esac 16196 ;; 16197 16198solaris*) 16199 case $cc_basename in 16200 CC* | sunCC*) 16201 # The more standards-conforming stlport4 library is 16202 # incompatible with the Cstd library. Avoid specifying 16203 # it if it's in CXXFLAGS. Ignore libCrun as 16204 # -library=stlport4 depends on it. 16205 case " $CXX $CXXFLAGS " in 16206 *" -library=stlport4 "*) 16207 solaris_use_stlport4=yes 16208 ;; 16209 esac 16210 16211 # Adding this requires a known-good setup of shared libraries for 16212 # Sun compiler versions before 5.6, else PIC objects from an old 16213 # archive will be linked into the output, leading to subtle bugs. 16214 if test "$solaris_use_stlport4" != yes; then 16215 postdeps_CXX='-library=Cstd -library=Crun' 16216 fi 16217 ;; 16218 esac 16219 ;; 16220esac 16221 16222 16223case " $postdeps_CXX " in 16224*" -lc "*) archive_cmds_need_lc_CXX=no ;; 16225esac 16226 compiler_lib_search_dirs_CXX= 16227if test -n "${compiler_lib_search_path_CXX}"; then 16228 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 16229fi 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 lt_prog_compiler_wl_CXX= 16262lt_prog_compiler_pic_CXX= 16263lt_prog_compiler_static_CXX= 16264 16265 16266 # C++ specific cases for pic, static, wl, etc. 16267 if test "$GXX" = yes; then 16268 lt_prog_compiler_wl_CXX='-Wl,' 16269 lt_prog_compiler_static_CXX='-static' 16270 16271 case $host_os in 16272 aix*) 16273 # All AIX code is PIC. 16274 if test "$host_cpu" = ia64; then 16275 # AIX 5 now supports IA64 processor 16276 lt_prog_compiler_static_CXX='-Bstatic' 16277 fi 16278 ;; 16279 16280 amigaos*) 16281 case $host_cpu in 16282 powerpc) 16283 # see comment about AmigaOS4 .so support 16284 lt_prog_compiler_pic_CXX='-fPIC' 16285 ;; 16286 m68k) 16287 # FIXME: we need at least 68020 code to build shared libraries, but 16288 # adding the `-m68020' flag to GCC prevents building anything better, 16289 # like `-m68040'. 16290 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 16291 ;; 16292 esac 16293 ;; 16294 16295 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16296 # PIC is the default for these OSes. 16297 ;; 16298 mingw* | cygwin* | os2* | pw32* | cegcc*) 16299 # This hack is so that the source file can tell whether it is being 16300 # built for inclusion in a dll (and should export symbols for example). 16301 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16302 # (--disable-auto-import) libraries 16303 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16304 ;; 16305 darwin* | rhapsody*) 16306 # PIC is the default on this platform 16307 # Common symbols not allowed in MH_DYLIB files 16308 lt_prog_compiler_pic_CXX='-fno-common' 16309 ;; 16310 *djgpp*) 16311 # DJGPP does not support shared libraries at all 16312 lt_prog_compiler_pic_CXX= 16313 ;; 16314 haiku*) 16315 # PIC is the default for Haiku. 16316 # The "-static" flag exists, but is broken. 16317 lt_prog_compiler_static_CXX= 16318 ;; 16319 interix[3-9]*) 16320 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16321 # Instead, we relocate shared libraries at runtime. 16322 ;; 16323 sysv4*MP*) 16324 if test -d /usr/nec; then 16325 lt_prog_compiler_pic_CXX=-Kconform_pic 16326 fi 16327 ;; 16328 hpux*) 16329 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16330 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16331 # sets the default TLS model and affects inlining. 16332 case $host_cpu in 16333 hppa*64*) 16334 ;; 16335 *) 16336 lt_prog_compiler_pic_CXX='-fPIC' 16337 ;; 16338 esac 16339 ;; 16340 *qnx* | *nto*) 16341 # QNX uses GNU C++, but need to define -shared option too, otherwise 16342 # it will coredump. 16343 lt_prog_compiler_pic_CXX='-fPIC -shared' 16344 ;; 16345 *) 16346 lt_prog_compiler_pic_CXX='-fPIC' 16347 ;; 16348 esac 16349 else 16350 case $host_os in 16351 aix[4-9]*) 16352 # All AIX code is PIC. 16353 if test "$host_cpu" = ia64; then 16354 # AIX 5 now supports IA64 processor 16355 lt_prog_compiler_static_CXX='-Bstatic' 16356 else 16357 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 16358 fi 16359 ;; 16360 chorus*) 16361 case $cc_basename in 16362 cxch68*) 16363 # Green Hills C++ Compiler 16364 # _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" 16365 ;; 16366 esac 16367 ;; 16368 mingw* | cygwin* | os2* | pw32* | cegcc*) 16369 # This hack is so that the source file can tell whether it is being 16370 # built for inclusion in a dll (and should export symbols for example). 16371 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16372 ;; 16373 dgux*) 16374 case $cc_basename in 16375 ec++*) 16376 lt_prog_compiler_pic_CXX='-KPIC' 16377 ;; 16378 ghcx*) 16379 # Green Hills C++ Compiler 16380 lt_prog_compiler_pic_CXX='-pic' 16381 ;; 16382 *) 16383 ;; 16384 esac 16385 ;; 16386 freebsd* | dragonfly*) 16387 # FreeBSD uses GNU C++ 16388 ;; 16389 hpux9* | hpux10* | hpux11*) 16390 case $cc_basename in 16391 CC*) 16392 lt_prog_compiler_wl_CXX='-Wl,' 16393 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 16394 if test "$host_cpu" != ia64; then 16395 lt_prog_compiler_pic_CXX='+Z' 16396 fi 16397 ;; 16398 aCC*) 16399 lt_prog_compiler_wl_CXX='-Wl,' 16400 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 16401 case $host_cpu in 16402 hppa*64*|ia64*) 16403 # +Z the default 16404 ;; 16405 *) 16406 lt_prog_compiler_pic_CXX='+Z' 16407 ;; 16408 esac 16409 ;; 16410 *) 16411 ;; 16412 esac 16413 ;; 16414 interix*) 16415 # This is c89, which is MS Visual C++ (no shared libs) 16416 # Anyone wants to do a port? 16417 ;; 16418 irix5* | irix6* | nonstopux*) 16419 case $cc_basename in 16420 CC*) 16421 lt_prog_compiler_wl_CXX='-Wl,' 16422 lt_prog_compiler_static_CXX='-non_shared' 16423 # CC pic flag -KPIC is the default. 16424 ;; 16425 *) 16426 ;; 16427 esac 16428 ;; 16429 linux* | k*bsd*-gnu | kopensolaris*-gnu) 16430 case $cc_basename in 16431 KCC*) 16432 # KAI C++ Compiler 16433 lt_prog_compiler_wl_CXX='--backend -Wl,' 16434 lt_prog_compiler_pic_CXX='-fPIC' 16435 ;; 16436 ecpc* ) 16437 # old Intel C++ for x86_64 which still supported -KPIC. 16438 lt_prog_compiler_wl_CXX='-Wl,' 16439 lt_prog_compiler_pic_CXX='-KPIC' 16440 lt_prog_compiler_static_CXX='-static' 16441 ;; 16442 icpc* ) 16443 # Intel C++, used to be incompatible with GCC. 16444 # ICC 10 doesn't accept -KPIC any more. 16445 lt_prog_compiler_wl_CXX='-Wl,' 16446 lt_prog_compiler_pic_CXX='-fPIC' 16447 lt_prog_compiler_static_CXX='-static' 16448 ;; 16449 pgCC* | pgcpp*) 16450 # Portland Group C++ compiler 16451 lt_prog_compiler_wl_CXX='-Wl,' 16452 lt_prog_compiler_pic_CXX='-fpic' 16453 lt_prog_compiler_static_CXX='-Bstatic' 16454 ;; 16455 cxx*) 16456 # Compaq C++ 16457 # Make sure the PIC flag is empty. It appears that all Alpha 16458 # Linux and Compaq Tru64 Unix objects are PIC. 16459 lt_prog_compiler_pic_CXX= 16460 lt_prog_compiler_static_CXX='-non_shared' 16461 ;; 16462 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 16463 # IBM XL 8.0, 9.0 on PPC and BlueGene 16464 lt_prog_compiler_wl_CXX='-Wl,' 16465 lt_prog_compiler_pic_CXX='-qpic' 16466 lt_prog_compiler_static_CXX='-qstaticlink' 16467 ;; 16468 *) 16469 case `$CC -V 2>&1 | sed 5q` in 16470 *Sun\ C*) 16471 # Sun C++ 5.9 16472 lt_prog_compiler_pic_CXX='-KPIC' 16473 lt_prog_compiler_static_CXX='-Bstatic' 16474 lt_prog_compiler_wl_CXX='-Qoption ld ' 16475 ;; 16476 esac 16477 ;; 16478 esac 16479 ;; 16480 lynxos*) 16481 ;; 16482 m88k*) 16483 ;; 16484 mvs*) 16485 case $cc_basename in 16486 cxx*) 16487 lt_prog_compiler_pic_CXX='-W c,exportall' 16488 ;; 16489 *) 16490 ;; 16491 esac 16492 ;; 16493 netbsd*) 16494 ;; 16495 *qnx* | *nto*) 16496 # QNX uses GNU C++, but need to define -shared option too, otherwise 16497 # it will coredump. 16498 lt_prog_compiler_pic_CXX='-fPIC -shared' 16499 ;; 16500 osf3* | osf4* | osf5*) 16501 case $cc_basename in 16502 KCC*) 16503 lt_prog_compiler_wl_CXX='--backend -Wl,' 16504 ;; 16505 RCC*) 16506 # Rational C++ 2.4.1 16507 lt_prog_compiler_pic_CXX='-pic' 16508 ;; 16509 cxx*) 16510 # Digital/Compaq C++ 16511 lt_prog_compiler_wl_CXX='-Wl,' 16512 # Make sure the PIC flag is empty. It appears that all Alpha 16513 # Linux and Compaq Tru64 Unix objects are PIC. 16514 lt_prog_compiler_pic_CXX= 16515 lt_prog_compiler_static_CXX='-non_shared' 16516 ;; 16517 *) 16518 ;; 16519 esac 16520 ;; 16521 psos*) 16522 ;; 16523 solaris*) 16524 case $cc_basename in 16525 CC* | sunCC*) 16526 # Sun C++ 4.2, 5.x and Centerline C++ 16527 lt_prog_compiler_pic_CXX='-KPIC' 16528 lt_prog_compiler_static_CXX='-Bstatic' 16529 lt_prog_compiler_wl_CXX='-Qoption ld ' 16530 ;; 16531 gcx*) 16532 # Green Hills C++ Compiler 16533 lt_prog_compiler_pic_CXX='-PIC' 16534 ;; 16535 *) 16536 ;; 16537 esac 16538 ;; 16539 sunos4*) 16540 case $cc_basename in 16541 CC*) 16542 # Sun C++ 4.x 16543 lt_prog_compiler_pic_CXX='-pic' 16544 lt_prog_compiler_static_CXX='-Bstatic' 16545 ;; 16546 lcc*) 16547 # Lucid 16548 lt_prog_compiler_pic_CXX='-pic' 16549 ;; 16550 *) 16551 ;; 16552 esac 16553 ;; 16554 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16555 case $cc_basename in 16556 CC*) 16557 lt_prog_compiler_wl_CXX='-Wl,' 16558 lt_prog_compiler_pic_CXX='-KPIC' 16559 lt_prog_compiler_static_CXX='-Bstatic' 16560 ;; 16561 esac 16562 ;; 16563 tandem*) 16564 case $cc_basename in 16565 NCC*) 16566 # NonStop-UX NCC 3.20 16567 lt_prog_compiler_pic_CXX='-KPIC' 16568 ;; 16569 *) 16570 ;; 16571 esac 16572 ;; 16573 vxworks*) 16574 ;; 16575 *) 16576 lt_prog_compiler_can_build_shared_CXX=no 16577 ;; 16578 esac 16579 fi 16580 16581case $host_os in 16582 # For platforms which do not support PIC, -DPIC is meaningless: 16583 *djgpp*) 16584 lt_prog_compiler_pic_CXX= 16585 ;; 16586 *) 16587 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 16588 ;; 16589esac 16590 16591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16592$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16593if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 16594 $as_echo_n "(cached) " >&6 16595else 16596 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 16597fi 16598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 16599$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 16600lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 16601 16602# 16603# Check to make sure the PIC flag actually works. 16604# 16605if test -n "$lt_prog_compiler_pic_CXX"; then 16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 16607$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 16608if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 16609 $as_echo_n "(cached) " >&6 16610else 16611 lt_cv_prog_compiler_pic_works_CXX=no 16612 ac_outfile=conftest.$ac_objext 16613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16614 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 16615 # Insert the option either (1) after the last *FLAGS variable, or 16616 # (2) before a word containing "conftest.", or (3) at the end. 16617 # Note that $ac_compile itself does not contain backslashes and begins 16618 # with a dollar sign (not a hyphen), so the echo should work correctly. 16619 # The option is referenced via a variable to avoid confusing sed. 16620 lt_compile=`echo "$ac_compile" | $SED \ 16621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16623 -e 's:$: $lt_compiler_flag:'` 16624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16625 (eval "$lt_compile" 2>conftest.err) 16626 ac_status=$? 16627 cat conftest.err >&5 16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16629 if (exit $ac_status) && test -s "$ac_outfile"; then 16630 # The compiler can only warn and ignore the option if not recognized 16631 # So say no if there are warnings other than the usual output. 16632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16635 lt_cv_prog_compiler_pic_works_CXX=yes 16636 fi 16637 fi 16638 $RM conftest* 16639 16640fi 16641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 16642$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 16643 16644if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 16645 case $lt_prog_compiler_pic_CXX in 16646 "" | " "*) ;; 16647 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 16648 esac 16649else 16650 lt_prog_compiler_pic_CXX= 16651 lt_prog_compiler_can_build_shared_CXX=no 16652fi 16653 16654fi 16655 16656 16657 16658 16659 16660# 16661# Check to make sure the static flag actually works. 16662# 16663wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 16664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16665$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16666if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 16667 $as_echo_n "(cached) " >&6 16668else 16669 lt_cv_prog_compiler_static_works_CXX=no 16670 save_LDFLAGS="$LDFLAGS" 16671 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16672 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16674 # The linker can only warn and ignore the option if not recognized 16675 # So say no if there are warnings 16676 if test -s conftest.err; then 16677 # Append any errors to the config.log. 16678 cat conftest.err 1>&5 16679 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16681 if diff conftest.exp conftest.er2 >/dev/null; then 16682 lt_cv_prog_compiler_static_works_CXX=yes 16683 fi 16684 else 16685 lt_cv_prog_compiler_static_works_CXX=yes 16686 fi 16687 fi 16688 $RM -r conftest* 16689 LDFLAGS="$save_LDFLAGS" 16690 16691fi 16692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 16693$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 16694 16695if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 16696 : 16697else 16698 lt_prog_compiler_static_CXX= 16699fi 16700 16701 16702 16703 16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16705$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16706if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16707 $as_echo_n "(cached) " >&6 16708else 16709 lt_cv_prog_compiler_c_o_CXX=no 16710 $RM -r conftest 2>/dev/null 16711 mkdir conftest 16712 cd conftest 16713 mkdir out 16714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16715 16716 lt_compiler_flag="-o out/conftest2.$ac_objext" 16717 # Insert the option either (1) after the last *FLAGS variable, or 16718 # (2) before a word containing "conftest.", or (3) at the end. 16719 # Note that $ac_compile itself does not contain backslashes and begins 16720 # with a dollar sign (not a hyphen), so the echo should work correctly. 16721 lt_compile=`echo "$ac_compile" | $SED \ 16722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16724 -e 's:$: $lt_compiler_flag:'` 16725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16726 (eval "$lt_compile" 2>out/conftest.err) 16727 ac_status=$? 16728 cat out/conftest.err >&5 16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16730 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16731 then 16732 # The compiler can only warn and ignore the option if not recognized 16733 # So say no if there are warnings 16734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16735 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16736 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16737 lt_cv_prog_compiler_c_o_CXX=yes 16738 fi 16739 fi 16740 chmod u+w . 2>&5 16741 $RM conftest* 16742 # SGI C++ compiler will create directory out/ii_files/ for 16743 # template instantiation 16744 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16745 $RM out/* && rmdir out 16746 cd .. 16747 $RM -r conftest 16748 $RM conftest* 16749 16750fi 16751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16752$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16753 16754 16755 16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16757$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16758if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16759 $as_echo_n "(cached) " >&6 16760else 16761 lt_cv_prog_compiler_c_o_CXX=no 16762 $RM -r conftest 2>/dev/null 16763 mkdir conftest 16764 cd conftest 16765 mkdir out 16766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16767 16768 lt_compiler_flag="-o out/conftest2.$ac_objext" 16769 # Insert the option either (1) after the last *FLAGS variable, or 16770 # (2) before a word containing "conftest.", or (3) at the end. 16771 # Note that $ac_compile itself does not contain backslashes and begins 16772 # with a dollar sign (not a hyphen), so the echo should work correctly. 16773 lt_compile=`echo "$ac_compile" | $SED \ 16774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16776 -e 's:$: $lt_compiler_flag:'` 16777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16778 (eval "$lt_compile" 2>out/conftest.err) 16779 ac_status=$? 16780 cat out/conftest.err >&5 16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16782 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16783 then 16784 # The compiler can only warn and ignore the option if not recognized 16785 # So say no if there are warnings 16786 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16787 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16788 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16789 lt_cv_prog_compiler_c_o_CXX=yes 16790 fi 16791 fi 16792 chmod u+w . 2>&5 16793 $RM conftest* 16794 # SGI C++ compiler will create directory out/ii_files/ for 16795 # template instantiation 16796 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16797 $RM out/* && rmdir out 16798 cd .. 16799 $RM -r conftest 16800 $RM conftest* 16801 16802fi 16803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16804$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16805 16806 16807 16808 16809hard_links="nottested" 16810if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 16811 # do not overwrite the value of need_locks provided by the user 16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16813$as_echo_n "checking if we can lock with hard links... " >&6; } 16814 hard_links=yes 16815 $RM conftest* 16816 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16817 touch conftest.a 16818 ln conftest.a conftest.b 2>&5 || hard_links=no 16819 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16821$as_echo "$hard_links" >&6; } 16822 if test "$hard_links" = no; then 16823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16824$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16825 need_locks=warn 16826 fi 16827else 16828 need_locks=no 16829fi 16830 16831 16832 16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16834$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16835 16836 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16837 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16838 case $host_os in 16839 aix[4-9]*) 16840 # If we're using GNU nm, then we don't want the "-C" option. 16841 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16842 # Also, AIX nm treats weak defined symbols like other global defined 16843 # symbols, whereas GNU nm marks them as "W". 16844 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16845 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' 16846 else 16847 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' 16848 fi 16849 ;; 16850 pw32*) 16851 export_symbols_cmds_CXX="$ltdll_cmds" 16852 ;; 16853 cygwin* | mingw* | cegcc*) 16854 case $cc_basename in 16855 cl*) ;; 16856 *) 16857 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' 16858 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16859 ;; 16860 esac 16861 ;; 16862 *) 16863 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16864 ;; 16865 esac 16866 16867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16868$as_echo "$ld_shlibs_CXX" >&6; } 16869test "$ld_shlibs_CXX" = no && can_build_shared=no 16870 16871with_gnu_ld_CXX=$with_gnu_ld 16872 16873 16874 16875 16876 16877 16878# 16879# Do we need to explicitly link libc? 16880# 16881case "x$archive_cmds_need_lc_CXX" in 16882x|xyes) 16883 # Assume -lc should be added 16884 archive_cmds_need_lc_CXX=yes 16885 16886 if test "$enable_shared" = yes && test "$GCC" = yes; then 16887 case $archive_cmds_CXX in 16888 *'~'*) 16889 # FIXME: we may have to deal with multi-command sequences. 16890 ;; 16891 '$CC '*) 16892 # Test whether the compiler implicitly links with -lc since on some 16893 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16894 # to ld, don't add -lc before -lgcc. 16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16896$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16897if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16898 $as_echo_n "(cached) " >&6 16899else 16900 $RM conftest* 16901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16902 16903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16904 (eval $ac_compile) 2>&5 16905 ac_status=$? 16906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16907 test $ac_status = 0; } 2>conftest.err; then 16908 soname=conftest 16909 lib=conftest 16910 libobjs=conftest.$ac_objext 16911 deplibs= 16912 wl=$lt_prog_compiler_wl_CXX 16913 pic_flag=$lt_prog_compiler_pic_CXX 16914 compiler_flags=-v 16915 linker_flags=-v 16916 verstring= 16917 output_objdir=. 16918 libname=conftest 16919 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16920 allow_undefined_flag_CXX= 16921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16922 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16923 ac_status=$? 16924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16925 test $ac_status = 0; } 16926 then 16927 lt_cv_archive_cmds_need_lc_CXX=no 16928 else 16929 lt_cv_archive_cmds_need_lc_CXX=yes 16930 fi 16931 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16932 else 16933 cat conftest.err 1>&5 16934 fi 16935 $RM conftest* 16936 16937fi 16938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16939$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16940 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16941 ;; 16942 esac 16943 fi 16944 ;; 16945esac 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17011$as_echo_n "checking dynamic linker characteristics... " >&6; } 17012 17013library_names_spec= 17014libname_spec='lib$name' 17015soname_spec= 17016shrext_cmds=".so" 17017postinstall_cmds= 17018postuninstall_cmds= 17019finish_cmds= 17020finish_eval= 17021shlibpath_var= 17022shlibpath_overrides_runpath=unknown 17023version_type=none 17024dynamic_linker="$host_os ld.so" 17025sys_lib_dlsearch_path_spec="/lib /usr/lib" 17026need_lib_prefix=unknown 17027hardcode_into_libs=no 17028 17029# when you set need_version to no, make sure it does not cause -set_version 17030# flags to be left without arguments 17031need_version=unknown 17032 17033case $host_os in 17034aix3*) 17035 version_type=linux 17036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17037 shlibpath_var=LIBPATH 17038 17039 # AIX 3 has no versioning support, so we append a major version to the name. 17040 soname_spec='${libname}${release}${shared_ext}$major' 17041 ;; 17042 17043aix[4-9]*) 17044 version_type=linux 17045 need_lib_prefix=no 17046 need_version=no 17047 hardcode_into_libs=yes 17048 if test "$host_cpu" = ia64; then 17049 # AIX 5 supports IA64 17050 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17051 shlibpath_var=LD_LIBRARY_PATH 17052 else 17053 # With GCC up to 2.95.x, collect2 would create an import file 17054 # for dependence libraries. The import file would start with 17055 # the line `#! .'. This would cause the generated library to 17056 # depend on `.', always an invalid library. This was fixed in 17057 # development snapshots of GCC prior to 3.0. 17058 case $host_os in 17059 aix4 | aix4.[01] | aix4.[01].*) 17060 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17061 echo ' yes ' 17062 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 17063 : 17064 else 17065 can_build_shared=no 17066 fi 17067 ;; 17068 esac 17069 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17070 # soname into executable. Probably we can add versioning support to 17071 # collect2, so additional links can be useful in future. 17072 if test "$aix_use_runtimelinking" = yes; then 17073 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17074 # instead of lib<name>.a to let people know that these are not 17075 # typical AIX shared libraries. 17076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17077 else 17078 # We preserve .a as extension for shared libraries through AIX4.2 17079 # and later when we are not doing run time linking. 17080 library_names_spec='${libname}${release}.a $libname.a' 17081 soname_spec='${libname}${release}${shared_ext}$major' 17082 fi 17083 shlibpath_var=LIBPATH 17084 fi 17085 ;; 17086 17087amigaos*) 17088 case $host_cpu in 17089 powerpc) 17090 # Since July 2007 AmigaOS4 officially supports .so libraries. 17091 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17093 ;; 17094 m68k) 17095 library_names_spec='$libname.ixlibrary $libname.a' 17096 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17097 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' 17098 ;; 17099 esac 17100 ;; 17101 17102beos*) 17103 library_names_spec='${libname}${shared_ext}' 17104 dynamic_linker="$host_os ld.so" 17105 shlibpath_var=LIBRARY_PATH 17106 ;; 17107 17108bsdi[45]*) 17109 version_type=linux 17110 need_version=no 17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17112 soname_spec='${libname}${release}${shared_ext}$major' 17113 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17114 shlibpath_var=LD_LIBRARY_PATH 17115 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17116 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17117 # the default ld.so.conf also contains /usr/contrib/lib and 17118 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17119 # libtool to hard-code these into programs 17120 ;; 17121 17122cygwin* | mingw* | pw32* | cegcc*) 17123 version_type=windows 17124 shrext_cmds=".dll" 17125 need_version=no 17126 need_lib_prefix=no 17127 17128 case $GCC,$cc_basename in 17129 yes,*) 17130 # gcc 17131 library_names_spec='$libname.dll.a' 17132 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17133 postinstall_cmds='base_file=`basename \${file}`~ 17134 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17135 dldir=$destdir/`dirname \$dlpath`~ 17136 test -d \$dldir || mkdir -p \$dldir~ 17137 $install_prog $dir/$dlname \$dldir/$dlname~ 17138 chmod a+x \$dldir/$dlname~ 17139 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17140 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17141 fi' 17142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17143 dlpath=$dir/\$dldll~ 17144 $RM \$dlpath' 17145 shlibpath_overrides_runpath=yes 17146 17147 case $host_os in 17148 cygwin*) 17149 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17150 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17151 17152 ;; 17153 mingw* | cegcc*) 17154 # MinGW DLLs use traditional 'lib' prefix 17155 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17156 ;; 17157 pw32*) 17158 # pw32 DLLs use 'pw' prefix rather than 'lib' 17159 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17160 ;; 17161 esac 17162 dynamic_linker='Win32 ld.exe' 17163 ;; 17164 17165 *,cl*) 17166 # Native MSVC 17167 libname_spec='$name' 17168 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17169 library_names_spec='${libname}.dll.lib' 17170 17171 case $build_os in 17172 mingw*) 17173 sys_lib_search_path_spec= 17174 lt_save_ifs=$IFS 17175 IFS=';' 17176 for lt_path in $LIB 17177 do 17178 IFS=$lt_save_ifs 17179 # Let DOS variable expansion print the short 8.3 style file name. 17180 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17181 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17182 done 17183 IFS=$lt_save_ifs 17184 # Convert to MSYS style. 17185 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17186 ;; 17187 cygwin*) 17188 # Convert to unix form, then to dos form, then back to unix form 17189 # but this time dos style (no spaces!) so that the unix form looks 17190 # like /cygdrive/c/PROGRA~1:/cygdr... 17191 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17192 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17193 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17194 ;; 17195 *) 17196 sys_lib_search_path_spec="$LIB" 17197 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17198 # It is most probably a Windows format PATH. 17199 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17200 else 17201 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17202 fi 17203 # FIXME: find the short name or the path components, as spaces are 17204 # common. (e.g. "Program Files" -> "PROGRA~1") 17205 ;; 17206 esac 17207 17208 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17209 postinstall_cmds='base_file=`basename \${file}`~ 17210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17211 dldir=$destdir/`dirname \$dlpath`~ 17212 test -d \$dldir || mkdir -p \$dldir~ 17213 $install_prog $dir/$dlname \$dldir/$dlname' 17214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17215 dlpath=$dir/\$dldll~ 17216 $RM \$dlpath' 17217 shlibpath_overrides_runpath=yes 17218 dynamic_linker='Win32 link.exe' 17219 ;; 17220 17221 *) 17222 # Assume MSVC wrapper 17223 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17224 dynamic_linker='Win32 ld.exe' 17225 ;; 17226 esac 17227 # FIXME: first we should search . and the directory the executable is in 17228 shlibpath_var=PATH 17229 ;; 17230 17231darwin* | rhapsody*) 17232 dynamic_linker="$host_os dyld" 17233 version_type=darwin 17234 need_lib_prefix=no 17235 need_version=no 17236 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17237 soname_spec='${libname}${release}${major}$shared_ext' 17238 shlibpath_overrides_runpath=yes 17239 shlibpath_var=DYLD_LIBRARY_PATH 17240 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17241 17242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17243 ;; 17244 17245dgux*) 17246 version_type=linux 17247 need_lib_prefix=no 17248 need_version=no 17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17250 soname_spec='${libname}${release}${shared_ext}$major' 17251 shlibpath_var=LD_LIBRARY_PATH 17252 ;; 17253 17254freebsd1*) 17255 dynamic_linker=no 17256 ;; 17257 17258freebsd* | dragonfly*) 17259 # DragonFly does not have aout. When/if they implement a new 17260 # versioning mechanism, adjust this. 17261 if test -x /usr/bin/objformat; then 17262 objformat=`/usr/bin/objformat` 17263 else 17264 case $host_os in 17265 freebsd[123]*) objformat=aout ;; 17266 *) objformat=elf ;; 17267 esac 17268 fi 17269 # Handle Gentoo/FreeBSD as it was Linux 17270 case $host_vendor in 17271 gentoo) 17272 version_type=linux ;; 17273 *) 17274 version_type=freebsd-$objformat ;; 17275 esac 17276 17277 case $version_type in 17278 freebsd-elf*) 17279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17280 need_version=no 17281 need_lib_prefix=no 17282 ;; 17283 freebsd-*) 17284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17285 need_version=yes 17286 ;; 17287 linux) 17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17289 soname_spec='${libname}${release}${shared_ext}$major' 17290 need_lib_prefix=no 17291 need_version=no 17292 ;; 17293 esac 17294 shlibpath_var=LD_LIBRARY_PATH 17295 case $host_os in 17296 freebsd2*) 17297 shlibpath_overrides_runpath=yes 17298 ;; 17299 freebsd3.[01]* | freebsdelf3.[01]*) 17300 shlibpath_overrides_runpath=yes 17301 hardcode_into_libs=yes 17302 ;; 17303 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17304 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17305 shlibpath_overrides_runpath=no 17306 hardcode_into_libs=yes 17307 ;; 17308 *) # from 4.6 on, and DragonFly 17309 shlibpath_overrides_runpath=yes 17310 hardcode_into_libs=yes 17311 ;; 17312 esac 17313 ;; 17314 17315gnu*) 17316 version_type=linux 17317 need_lib_prefix=no 17318 need_version=no 17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17320 soname_spec='${libname}${release}${shared_ext}$major' 17321 shlibpath_var=LD_LIBRARY_PATH 17322 hardcode_into_libs=yes 17323 ;; 17324 17325haiku*) 17326 version_type=linux 17327 need_lib_prefix=no 17328 need_version=no 17329 dynamic_linker="$host_os runtime_loader" 17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17331 soname_spec='${libname}${release}${shared_ext}$major' 17332 shlibpath_var=LIBRARY_PATH 17333 shlibpath_overrides_runpath=yes 17334 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17335 hardcode_into_libs=yes 17336 ;; 17337 17338hpux9* | hpux10* | hpux11*) 17339 # Give a soname corresponding to the major version so that dld.sl refuses to 17340 # link against other versions. 17341 version_type=sunos 17342 need_lib_prefix=no 17343 need_version=no 17344 case $host_cpu in 17345 ia64*) 17346 shrext_cmds='.so' 17347 hardcode_into_libs=yes 17348 dynamic_linker="$host_os dld.so" 17349 shlibpath_var=LD_LIBRARY_PATH 17350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17352 soname_spec='${libname}${release}${shared_ext}$major' 17353 if test "X$HPUX_IA64_MODE" = X32; then 17354 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17355 else 17356 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17357 fi 17358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17359 ;; 17360 hppa*64*) 17361 shrext_cmds='.sl' 17362 hardcode_into_libs=yes 17363 dynamic_linker="$host_os dld.sl" 17364 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17367 soname_spec='${libname}${release}${shared_ext}$major' 17368 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17370 ;; 17371 *) 17372 shrext_cmds='.sl' 17373 dynamic_linker="$host_os dld.sl" 17374 shlibpath_var=SHLIB_PATH 17375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17377 soname_spec='${libname}${release}${shared_ext}$major' 17378 ;; 17379 esac 17380 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17381 postinstall_cmds='chmod 555 $lib' 17382 # or fails outright, so override atomically: 17383 install_override_mode=555 17384 ;; 17385 17386interix[3-9]*) 17387 version_type=linux 17388 need_lib_prefix=no 17389 need_version=no 17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17391 soname_spec='${libname}${release}${shared_ext}$major' 17392 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17393 shlibpath_var=LD_LIBRARY_PATH 17394 shlibpath_overrides_runpath=no 17395 hardcode_into_libs=yes 17396 ;; 17397 17398irix5* | irix6* | nonstopux*) 17399 case $host_os in 17400 nonstopux*) version_type=nonstopux ;; 17401 *) 17402 if test "$lt_cv_prog_gnu_ld" = yes; then 17403 version_type=linux 17404 else 17405 version_type=irix 17406 fi ;; 17407 esac 17408 need_lib_prefix=no 17409 need_version=no 17410 soname_spec='${libname}${release}${shared_ext}$major' 17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17412 case $host_os in 17413 irix5* | nonstopux*) 17414 libsuff= shlibsuff= 17415 ;; 17416 *) 17417 case $LD in # libtool.m4 will add one of these switches to LD 17418 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17419 libsuff= shlibsuff= libmagic=32-bit;; 17420 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17421 libsuff=32 shlibsuff=N32 libmagic=N32;; 17422 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17423 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17424 *) libsuff= shlibsuff= libmagic=never-match;; 17425 esac 17426 ;; 17427 esac 17428 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17429 shlibpath_overrides_runpath=no 17430 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17431 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17432 hardcode_into_libs=yes 17433 ;; 17434 17435# No shared lib support for Linux oldld, aout, or coff. 17436linux*oldld* | linux*aout* | linux*coff*) 17437 dynamic_linker=no 17438 ;; 17439 17440# This must be Linux ELF. 17441linux* | k*bsd*-gnu | kopensolaris*-gnu) 17442 version_type=linux 17443 need_lib_prefix=no 17444 need_version=no 17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17446 soname_spec='${libname}${release}${shared_ext}$major' 17447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17448 shlibpath_var=LD_LIBRARY_PATH 17449 shlibpath_overrides_runpath=no 17450 17451 # Some binutils ld are patched to set DT_RUNPATH 17452 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17453 $as_echo_n "(cached) " >&6 17454else 17455 lt_cv_shlibpath_overrides_runpath=no 17456 save_LDFLAGS=$LDFLAGS 17457 save_libdir=$libdir 17458 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 17459 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17461/* end confdefs.h. */ 17462 17463int 17464main () 17465{ 17466 17467 ; 17468 return 0; 17469} 17470_ACEOF 17471if ac_fn_cxx_try_link "$LINENO"; then : 17472 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17473 lt_cv_shlibpath_overrides_runpath=yes 17474fi 17475fi 17476rm -f core conftest.err conftest.$ac_objext \ 17477 conftest$ac_exeext conftest.$ac_ext 17478 LDFLAGS=$save_LDFLAGS 17479 libdir=$save_libdir 17480 17481fi 17482 17483 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17484 17485 # This implies no fast_install, which is unacceptable. 17486 # Some rework will be needed to allow for fast_install 17487 # before this can be enabled. 17488 hardcode_into_libs=yes 17489 17490 # Append ld.so.conf contents to the search path 17491 if test -f /etc/ld.so.conf; then 17492 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' ' '` 17493 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17494 fi 17495 17496 # We used to test for /lib/ld.so.1 and disable shared libraries on 17497 # powerpc, because MkLinux only supported shared libraries with the 17498 # GNU dynamic linker. Since this was broken with cross compilers, 17499 # most powerpc-linux boxes support dynamic linking these days and 17500 # people can always --disable-shared, the test was removed, and we 17501 # assume the GNU/Linux dynamic linker is in use. 17502 dynamic_linker='GNU/Linux ld.so' 17503 ;; 17504 17505netbsd*) 17506 version_type=sunos 17507 need_lib_prefix=no 17508 need_version=no 17509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17512 dynamic_linker='NetBSD (a.out) ld.so' 17513 else 17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17515 soname_spec='${libname}${release}${shared_ext}$major' 17516 dynamic_linker='NetBSD ld.elf_so' 17517 fi 17518 shlibpath_var=LD_LIBRARY_PATH 17519 shlibpath_overrides_runpath=yes 17520 hardcode_into_libs=yes 17521 ;; 17522 17523newsos6) 17524 version_type=linux 17525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17526 shlibpath_var=LD_LIBRARY_PATH 17527 shlibpath_overrides_runpath=yes 17528 ;; 17529 17530*nto* | *qnx*) 17531 version_type=qnx 17532 need_lib_prefix=no 17533 need_version=no 17534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17535 soname_spec='${libname}${release}${shared_ext}$major' 17536 shlibpath_var=LD_LIBRARY_PATH 17537 shlibpath_overrides_runpath=no 17538 hardcode_into_libs=yes 17539 dynamic_linker='ldqnx.so' 17540 ;; 17541 17542openbsd*) 17543 version_type=sunos 17544 sys_lib_dlsearch_path_spec="/usr/lib" 17545 need_lib_prefix=no 17546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17547 case $host_os in 17548 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17549 *) need_version=no ;; 17550 esac 17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17553 shlibpath_var=LD_LIBRARY_PATH 17554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17555 case $host_os in 17556 openbsd2.[89] | openbsd2.[89].*) 17557 shlibpath_overrides_runpath=no 17558 ;; 17559 *) 17560 shlibpath_overrides_runpath=yes 17561 ;; 17562 esac 17563 else 17564 shlibpath_overrides_runpath=yes 17565 fi 17566 ;; 17567 17568os2*) 17569 libname_spec='$name' 17570 shrext_cmds=".dll" 17571 need_lib_prefix=no 17572 library_names_spec='$libname${shared_ext} $libname.a' 17573 dynamic_linker='OS/2 ld.exe' 17574 shlibpath_var=LIBPATH 17575 ;; 17576 17577osf3* | osf4* | osf5*) 17578 version_type=osf 17579 need_lib_prefix=no 17580 need_version=no 17581 soname_spec='${libname}${release}${shared_ext}$major' 17582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17583 shlibpath_var=LD_LIBRARY_PATH 17584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17586 ;; 17587 17588rdos*) 17589 dynamic_linker=no 17590 ;; 17591 17592solaris*) 17593 version_type=linux 17594 need_lib_prefix=no 17595 need_version=no 17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17597 soname_spec='${libname}${release}${shared_ext}$major' 17598 shlibpath_var=LD_LIBRARY_PATH 17599 shlibpath_overrides_runpath=yes 17600 hardcode_into_libs=yes 17601 # ldd complains unless libraries are executable 17602 postinstall_cmds='chmod +x $lib' 17603 ;; 17604 17605sunos4*) 17606 version_type=sunos 17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17609 shlibpath_var=LD_LIBRARY_PATH 17610 shlibpath_overrides_runpath=yes 17611 if test "$with_gnu_ld" = yes; then 17612 need_lib_prefix=no 17613 fi 17614 need_version=yes 17615 ;; 17616 17617sysv4 | sysv4.3*) 17618 version_type=linux 17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17620 soname_spec='${libname}${release}${shared_ext}$major' 17621 shlibpath_var=LD_LIBRARY_PATH 17622 case $host_vendor in 17623 sni) 17624 shlibpath_overrides_runpath=no 17625 need_lib_prefix=no 17626 runpath_var=LD_RUN_PATH 17627 ;; 17628 siemens) 17629 need_lib_prefix=no 17630 ;; 17631 motorola) 17632 need_lib_prefix=no 17633 need_version=no 17634 shlibpath_overrides_runpath=no 17635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17636 ;; 17637 esac 17638 ;; 17639 17640sysv4*MP*) 17641 if test -d /usr/nec ;then 17642 version_type=linux 17643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17644 soname_spec='$libname${shared_ext}.$major' 17645 shlibpath_var=LD_LIBRARY_PATH 17646 fi 17647 ;; 17648 17649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17650 version_type=freebsd-elf 17651 need_lib_prefix=no 17652 need_version=no 17653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17654 soname_spec='${libname}${release}${shared_ext}$major' 17655 shlibpath_var=LD_LIBRARY_PATH 17656 shlibpath_overrides_runpath=yes 17657 hardcode_into_libs=yes 17658 if test "$with_gnu_ld" = yes; then 17659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17660 else 17661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17662 case $host_os in 17663 sco3.2v5*) 17664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17665 ;; 17666 esac 17667 fi 17668 sys_lib_dlsearch_path_spec='/usr/lib' 17669 ;; 17670 17671tpf*) 17672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17673 version_type=linux 17674 need_lib_prefix=no 17675 need_version=no 17676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17677 shlibpath_var=LD_LIBRARY_PATH 17678 shlibpath_overrides_runpath=no 17679 hardcode_into_libs=yes 17680 ;; 17681 17682uts4*) 17683 version_type=linux 17684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17685 soname_spec='${libname}${release}${shared_ext}$major' 17686 shlibpath_var=LD_LIBRARY_PATH 17687 ;; 17688 17689*) 17690 dynamic_linker=no 17691 ;; 17692esac 17693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17694$as_echo "$dynamic_linker" >&6; } 17695test "$dynamic_linker" = no && can_build_shared=no 17696 17697variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17698if test "$GCC" = yes; then 17699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17700fi 17701 17702if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17703 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17704fi 17705if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17706 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17707fi 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17747$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17748hardcode_action_CXX= 17749if test -n "$hardcode_libdir_flag_spec_CXX" || 17750 test -n "$runpath_var_CXX" || 17751 test "X$hardcode_automatic_CXX" = "Xyes" ; then 17752 17753 # We can hardcode non-existent directories. 17754 if test "$hardcode_direct_CXX" != no && 17755 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17756 # have to relink, otherwise we might link with an installed library 17757 # when we should be linking with a yet-to-be-installed one 17758 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 17759 test "$hardcode_minus_L_CXX" != no; then 17760 # Linking always hardcodes the temporary library directory. 17761 hardcode_action_CXX=relink 17762 else 17763 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17764 hardcode_action_CXX=immediate 17765 fi 17766else 17767 # We cannot hardcode anything, or else we can only hardcode existing 17768 # directories. 17769 hardcode_action_CXX=unsupported 17770fi 17771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17772$as_echo "$hardcode_action_CXX" >&6; } 17773 17774if test "$hardcode_action_CXX" = relink || 17775 test "$inherit_rpath_CXX" = yes; then 17776 # Fast installation is not supported 17777 enable_fast_install=no 17778elif test "$shlibpath_overrides_runpath" = yes || 17779 test "$enable_shared" = no; then 17780 # Fast installation is not necessary 17781 enable_fast_install=needless 17782fi 17783 17784 17785 17786 17787 17788 17789 17790 fi # test -n "$compiler" 17791 17792 CC=$lt_save_CC 17793 CFLAGS=$lt_save_CFLAGS 17794 LDCXX=$LD 17795 LD=$lt_save_LD 17796 GCC=$lt_save_GCC 17797 with_gnu_ld=$lt_save_with_gnu_ld 17798 lt_cv_path_LDCXX=$lt_cv_path_LD 17799 lt_cv_path_LD=$lt_save_path_LD 17800 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17801 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17802fi # test "$_lt_caught_CXX_error" != yes 17803 17804ac_ext=c 17805ac_cpp='$CPP $CPPFLAGS' 17806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17808ac_compiler_gnu=$ac_cv_c_compiler_gnu 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 ac_config_commands="$ac_config_commands libtool" 17823 17824 17825 17826 17827# Only expand once: 17828 17829 17830 17831# Checks for libraries. 17832SDL_VERSION=1.2.0 17833 17834# Check whether --with-sdl-prefix was given. 17835if test "${with_sdl_prefix+set}" = set; then : 17836 withval=$with_sdl_prefix; sdl_prefix="$withval" 17837else 17838 sdl_prefix="" 17839fi 17840 17841 17842# Check whether --with-sdl-exec-prefix was given. 17843if test "${with_sdl_exec_prefix+set}" = set; then : 17844 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 17845else 17846 sdl_exec_prefix="" 17847fi 17848 17849# Check whether --enable-sdltest was given. 17850if test "${enable_sdltest+set}" = set; then : 17851 enableval=$enable_sdltest; 17852else 17853 enable_sdltest=yes 17854fi 17855 17856 17857 if test x$sdl_exec_prefix != x ; then 17858 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" 17859 if test x${SDL_CONFIG+set} != xset ; then 17860 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 17861 fi 17862 fi 17863 if test x$sdl_prefix != x ; then 17864 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" 17865 if test x${SDL_CONFIG+set} != xset ; then 17866 SDL_CONFIG=$sdl_prefix/bin/sdl-config 17867 fi 17868 fi 17869 17870 as_save_PATH="$PATH" 17871 if test "x$prefix" != xNONE; then 17872 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 17873 fi 17874 # Extract the first word of "sdl-config", so it can be a program name with args. 17875set dummy sdl-config; ac_word=$2 17876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17877$as_echo_n "checking for $ac_word... " >&6; } 17878if ${ac_cv_path_SDL_CONFIG+:} false; then : 17879 $as_echo_n "(cached) " >&6 17880else 17881 case $SDL_CONFIG in 17882 [\\/]* | ?:[\\/]*) 17883 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 17884 ;; 17885 *) 17886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17887for as_dir in $PATH 17888do 17889 IFS=$as_save_IFS 17890 test -z "$as_dir" && as_dir=. 17891 for ac_exec_ext in '' $ac_executable_extensions; do 17892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17893 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17895 break 2 17896 fi 17897done 17898 done 17899IFS=$as_save_IFS 17900 17901 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 17902 ;; 17903esac 17904fi 17905SDL_CONFIG=$ac_cv_path_SDL_CONFIG 17906if test -n "$SDL_CONFIG"; then 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 17908$as_echo "$SDL_CONFIG" >&6; } 17909else 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17911$as_echo "no" >&6; } 17912fi 17913 17914 17915 PATH="$as_save_PATH" 17916 min_sdl_version=$SDL_VERSION 17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 17918$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } 17919 no_sdl="" 17920 if test "$SDL_CONFIG" = "no" ; then 17921 no_sdl=yes 17922 else 17923 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags` 17924 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs` 17925 17926 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \ 17927 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 17928 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \ 17929 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 17930 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 17931 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 17932 if test "x$enable_sdltest" = "xyes" ; then 17933 ac_save_CFLAGS="$CFLAGS" 17934 ac_save_CXXFLAGS="$CXXFLAGS" 17935 ac_save_LIBS="$LIBS" 17936 CFLAGS="$CFLAGS $SDL_CFLAGS" 17937 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 17938 LIBS="$LIBS $SDL_LIBS" 17939 rm -f conf.sdltest 17940 if test "$cross_compiling" = yes; then : 17941 echo $ac_n "cross compiling; assumed OK... $ac_c" 17942else 17943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17944/* end confdefs.h. */ 17945 17946#include <stdio.h> 17947#include <stdlib.h> 17948#include <string.h> 17949#include "SDL.h" 17950 17951char* 17952my_strdup (char *str) 17953{ 17954 char *new_str; 17955 17956 if (str) 17957 { 17958 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 17959 strcpy (new_str, str); 17960 } 17961 else 17962 new_str = NULL; 17963 17964 return new_str; 17965} 17966 17967int main (int argc, char *argv[]) 17968{ 17969 int major, minor, micro; 17970 char *tmp_version; 17971 17972 /* This hangs on some systems (?) 17973 system ("touch conf.sdltest"); 17974 */ 17975 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 17976 17977 /* HP/UX 9 (%@#!) writes to sscanf strings */ 17978 tmp_version = my_strdup("$min_sdl_version"); 17979 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 17980 printf("%s, bad version string\n", "$min_sdl_version"); 17981 exit(1); 17982 } 17983 17984 if (($sdl_major_version > major) || 17985 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 17986 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 17987 { 17988 return 0; 17989 } 17990 else 17991 { 17992 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 17993 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 17994 printf("*** best to upgrade to the required version.\n"); 17995 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 17996 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 17997 printf("*** config.cache before re-running configure\n"); 17998 return 1; 17999 } 18000} 18001 18002 18003_ACEOF 18004if ac_fn_c_try_run "$LINENO"; then : 18005 18006else 18007 no_sdl=yes 18008fi 18009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18010 conftest.$ac_objext conftest.beam conftest.$ac_ext 18011fi 18012 18013 CFLAGS="$ac_save_CFLAGS" 18014 CXXFLAGS="$ac_save_CXXFLAGS" 18015 LIBS="$ac_save_LIBS" 18016 fi 18017 fi 18018 if test "x$no_sdl" = x ; then 18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18020$as_echo "yes" >&6; } 18021 18022cat >>confdefs.h <<_ACEOF 18023#define HAVE_SDL 1 18024_ACEOF 18025 18026 else 18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18028$as_echo "no" >&6; } 18029 if test "$SDL_CONFIG" = "no" ; then 18030 echo "*** The sdl-config script installed by SDL could not be found" 18031 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 18032 echo "*** your path, or set the SDL_CONFIG environment variable to the" 18033 echo "*** full path to sdl-config." 18034 else 18035 if test -f conf.sdltest ; then 18036 : 18037 else 18038 echo "*** Could not run SDL test program, checking why..." 18039 CFLAGS="$CFLAGS $SDL_CFLAGS" 18040 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 18041 LIBS="$LIBS $SDL_LIBS" 18042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18043/* end confdefs.h. */ 18044 18045#include <stdio.h> 18046#include "SDL.h" 18047 18048int main(int argc, char *argv[]) 18049{ return 0; } 18050#undef main 18051#define main K_and_R_C_main 18052 18053int 18054main () 18055{ 18056 return 0; 18057 ; 18058 return 0; 18059} 18060_ACEOF 18061if ac_fn_c_try_link "$LINENO"; then : 18062 echo "*** The test program compiled, but did not run. This usually means" 18063 echo "*** that the run-time linker is not finding SDL or finding the wrong" 18064 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 18065 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 18066 echo "*** to the installed location Also, make sure you have run ldconfig if that" 18067 echo "*** is required on your system" 18068 echo "***" 18069 echo "*** If you have an old version installed, it is best to remove it, although" 18070 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 18071else 18072 echo "*** The test program failed to compile or link. See the file config.log for the" 18073 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 18074 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 18075 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 18076fi 18077rm -f core conftest.err conftest.$ac_objext \ 18078 conftest$ac_exeext conftest.$ac_ext 18079 CFLAGS="$ac_save_CFLAGS" 18080 CXXFLAGS="$ac_save_CXXFLAGS" 18081 LIBS="$ac_save_LIBS" 18082 fi 18083 fi 18084 SDL_CFLAGS="" 18085 SDL_LIBS="" 18086 as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5 18087 fi 18088 18089 18090 rm -f conf.sdltest 18091 18092CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" 18093LIBS="$LIBS $SDL_LIBS" 18094 18095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5 18096$as_echo_n "checking for main in -lSDL_mixer... " >&6; } 18097if ${ac_cv_lib_SDL_mixer_main+:} false; then : 18098 $as_echo_n "(cached) " >&6 18099else 18100 ac_check_lib_save_LIBS=$LIBS 18101LIBS="-lSDL_mixer $LIBS" 18102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18103/* end confdefs.h. */ 18104 18105 18106int 18107main () 18108{ 18109return main (); 18110 ; 18111 return 0; 18112} 18113_ACEOF 18114if ac_fn_c_try_link "$LINENO"; then : 18115 ac_cv_lib_SDL_mixer_main=yes 18116else 18117 ac_cv_lib_SDL_mixer_main=no 18118fi 18119rm -f core conftest.err conftest.$ac_objext \ 18120 conftest$ac_exeext conftest.$ac_ext 18121LIBS=$ac_check_lib_save_LIBS 18122fi 18123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5 18124$as_echo "$ac_cv_lib_SDL_mixer_main" >&6; } 18125if test "x$ac_cv_lib_SDL_mixer_main" = xyes; then : 18126 cat >>confdefs.h <<_ACEOF 18127#define HAVE_LIBSDL_MIXER 1 18128_ACEOF 18129 18130 LIBS="-lSDL_mixer $LIBS" 18131 18132else 18133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find SDL_mixer. Toppler will have no sound." >&5 18134$as_echo "$as_me: WARNING: Can't find SDL_mixer. Toppler will have no sound." >&2;} 18135fi 18136 18137 18138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 18139$as_echo_n "checking for uncompress in -lz... " >&6; } 18140if ${ac_cv_lib_z_uncompress+:} false; then : 18141 $as_echo_n "(cached) " >&6 18142else 18143 ac_check_lib_save_LIBS=$LIBS 18144LIBS="-lz $LIBS" 18145cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18146/* end confdefs.h. */ 18147 18148/* Override any GCC internal prototype to avoid an error. 18149 Use char because int might match the return type of a GCC 18150 builtin and then its argument prototype would still apply. */ 18151#ifdef __cplusplus 18152extern "C" 18153#endif 18154char uncompress (); 18155int 18156main () 18157{ 18158return uncompress (); 18159 ; 18160 return 0; 18161} 18162_ACEOF 18163if ac_fn_c_try_link "$LINENO"; then : 18164 ac_cv_lib_z_uncompress=yes 18165else 18166 ac_cv_lib_z_uncompress=no 18167fi 18168rm -f core conftest.err conftest.$ac_objext \ 18169 conftest$ac_exeext conftest.$ac_ext 18170LIBS=$ac_check_lib_save_LIBS 18171fi 18172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 18173$as_echo "$ac_cv_lib_z_uncompress" >&6; } 18174if test "x$ac_cv_lib_z_uncompress" = xyes; then : 18175 cat >>confdefs.h <<_ACEOF 18176#define HAVE_LIBZ 1 18177_ACEOF 18178 18179 LIBS="-lz $LIBS" 18180 18181else 18182 as_fn_error $? "Can't find libz. Toppler needs it to uncompress the data file!" "$LINENO" 5 18183fi 18184 18185 18186# Checks for header files. 18187ac_header_dirent=no 18188for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 18189 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 18190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 18191$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 18192if eval \${$as_ac_Header+:} false; then : 18193 $as_echo_n "(cached) " >&6 18194else 18195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18196/* end confdefs.h. */ 18197#include <sys/types.h> 18198#include <$ac_hdr> 18199 18200int 18201main () 18202{ 18203if ((DIR *) 0) 18204return 0; 18205 ; 18206 return 0; 18207} 18208_ACEOF 18209if ac_fn_c_try_compile "$LINENO"; then : 18210 eval "$as_ac_Header=yes" 18211else 18212 eval "$as_ac_Header=no" 18213fi 18214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18215fi 18216eval ac_res=\$$as_ac_Header 18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18218$as_echo "$ac_res" >&6; } 18219if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18220 cat >>confdefs.h <<_ACEOF 18221#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 18222_ACEOF 18223 18224ac_header_dirent=$ac_hdr; break 18225fi 18226 18227done 18228# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 18229if test $ac_header_dirent = dirent.h; then 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18231$as_echo_n "checking for library containing opendir... " >&6; } 18232if ${ac_cv_search_opendir+:} false; then : 18233 $as_echo_n "(cached) " >&6 18234else 18235 ac_func_search_save_LIBS=$LIBS 18236cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18237/* end confdefs.h. */ 18238 18239/* Override any GCC internal prototype to avoid an error. 18240 Use char because int might match the return type of a GCC 18241 builtin and then its argument prototype would still apply. */ 18242#ifdef __cplusplus 18243extern "C" 18244#endif 18245char opendir (); 18246int 18247main () 18248{ 18249return opendir (); 18250 ; 18251 return 0; 18252} 18253_ACEOF 18254for ac_lib in '' dir; do 18255 if test -z "$ac_lib"; then 18256 ac_res="none required" 18257 else 18258 ac_res=-l$ac_lib 18259 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18260 fi 18261 if ac_fn_c_try_link "$LINENO"; then : 18262 ac_cv_search_opendir=$ac_res 18263fi 18264rm -f core conftest.err conftest.$ac_objext \ 18265 conftest$ac_exeext 18266 if ${ac_cv_search_opendir+:} false; then : 18267 break 18268fi 18269done 18270if ${ac_cv_search_opendir+:} false; then : 18271 18272else 18273 ac_cv_search_opendir=no 18274fi 18275rm conftest.$ac_ext 18276LIBS=$ac_func_search_save_LIBS 18277fi 18278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18279$as_echo "$ac_cv_search_opendir" >&6; } 18280ac_res=$ac_cv_search_opendir 18281if test "$ac_res" != no; then : 18282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18283 18284fi 18285 18286else 18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18288$as_echo_n "checking for library containing opendir... " >&6; } 18289if ${ac_cv_search_opendir+:} false; then : 18290 $as_echo_n "(cached) " >&6 18291else 18292 ac_func_search_save_LIBS=$LIBS 18293cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18294/* end confdefs.h. */ 18295 18296/* Override any GCC internal prototype to avoid an error. 18297 Use char because int might match the return type of a GCC 18298 builtin and then its argument prototype would still apply. */ 18299#ifdef __cplusplus 18300extern "C" 18301#endif 18302char opendir (); 18303int 18304main () 18305{ 18306return opendir (); 18307 ; 18308 return 0; 18309} 18310_ACEOF 18311for ac_lib in '' x; do 18312 if test -z "$ac_lib"; then 18313 ac_res="none required" 18314 else 18315 ac_res=-l$ac_lib 18316 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18317 fi 18318 if ac_fn_c_try_link "$LINENO"; then : 18319 ac_cv_search_opendir=$ac_res 18320fi 18321rm -f core conftest.err conftest.$ac_objext \ 18322 conftest$ac_exeext 18323 if ${ac_cv_search_opendir+:} false; then : 18324 break 18325fi 18326done 18327if ${ac_cv_search_opendir+:} false; then : 18328 18329else 18330 ac_cv_search_opendir=no 18331fi 18332rm conftest.$ac_ext 18333LIBS=$ac_func_search_save_LIBS 18334fi 18335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18336$as_echo "$ac_cv_search_opendir" >&6; } 18337ac_res=$ac_cv_search_opendir 18338if test "$ac_res" != no; then : 18339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18340 18341fi 18342 18343fi 18344 18345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 18346$as_echo_n "checking for ANSI C header files... " >&6; } 18347if ${ac_cv_header_stdc+:} false; then : 18348 $as_echo_n "(cached) " >&6 18349else 18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18351/* end confdefs.h. */ 18352#include <stdlib.h> 18353#include <stdarg.h> 18354#include <string.h> 18355#include <float.h> 18356 18357int 18358main () 18359{ 18360 18361 ; 18362 return 0; 18363} 18364_ACEOF 18365if ac_fn_c_try_compile "$LINENO"; then : 18366 ac_cv_header_stdc=yes 18367else 18368 ac_cv_header_stdc=no 18369fi 18370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18371 18372if test $ac_cv_header_stdc = yes; then 18373 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18375/* end confdefs.h. */ 18376#include <string.h> 18377 18378_ACEOF 18379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18380 $EGREP "memchr" >/dev/null 2>&1; then : 18381 18382else 18383 ac_cv_header_stdc=no 18384fi 18385rm -f conftest* 18386 18387fi 18388 18389if test $ac_cv_header_stdc = yes; then 18390 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18392/* end confdefs.h. */ 18393#include <stdlib.h> 18394 18395_ACEOF 18396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18397 $EGREP "free" >/dev/null 2>&1; then : 18398 18399else 18400 ac_cv_header_stdc=no 18401fi 18402rm -f conftest* 18403 18404fi 18405 18406if test $ac_cv_header_stdc = yes; then 18407 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18408 if test "$cross_compiling" = yes; then : 18409 : 18410else 18411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18412/* end confdefs.h. */ 18413#include <ctype.h> 18414#include <stdlib.h> 18415#if ((' ' & 0x0FF) == 0x020) 18416# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18417# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18418#else 18419# define ISLOWER(c) \ 18420 (('a' <= (c) && (c) <= 'i') \ 18421 || ('j' <= (c) && (c) <= 'r') \ 18422 || ('s' <= (c) && (c) <= 'z')) 18423# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18424#endif 18425 18426#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18427int 18428main () 18429{ 18430 int i; 18431 for (i = 0; i < 256; i++) 18432 if (XOR (islower (i), ISLOWER (i)) 18433 || toupper (i) != TOUPPER (i)) 18434 return 2; 18435 return 0; 18436} 18437_ACEOF 18438if ac_fn_c_try_run "$LINENO"; then : 18439 18440else 18441 ac_cv_header_stdc=no 18442fi 18443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18444 conftest.$ac_objext conftest.beam conftest.$ac_ext 18445fi 18446 18447fi 18448fi 18449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 18450$as_echo "$ac_cv_header_stdc" >&6; } 18451if test $ac_cv_header_stdc = yes; then 18452 18453$as_echo "#define STDC_HEADERS 1" >>confdefs.h 18454 18455fi 18456 18457for ac_header in fcntl.h langinfo.h libintl.h stdlib.h string.h unistd.h wchar.h sys/types.h dirent.h 18458do : 18459 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18460ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18461if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18462 cat >>confdefs.h <<_ACEOF 18463#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18464_ACEOF 18465 18466fi 18467 18468done 18469 18470 18471# Checks for typedefs, structures, and compiler characteristics. 18472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 18473$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 18474if ${ac_cv_header_stdbool_h+:} false; then : 18475 $as_echo_n "(cached) " >&6 18476else 18477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18478/* end confdefs.h. */ 18479 18480 #include <stdbool.h> 18481 #ifndef bool 18482 "error: bool is not defined" 18483 #endif 18484 #ifndef false 18485 "error: false is not defined" 18486 #endif 18487 #if false 18488 "error: false is not 0" 18489 #endif 18490 #ifndef true 18491 "error: true is not defined" 18492 #endif 18493 #if true != 1 18494 "error: true is not 1" 18495 #endif 18496 #ifndef __bool_true_false_are_defined 18497 "error: __bool_true_false_are_defined is not defined" 18498 #endif 18499 18500 struct s { _Bool s: 1; _Bool t; } s; 18501 18502 char a[true == 1 ? 1 : -1]; 18503 char b[false == 0 ? 1 : -1]; 18504 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 18505 char d[(bool) 0.5 == true ? 1 : -1]; 18506 /* See body of main program for 'e'. */ 18507 char f[(_Bool) 0.0 == false ? 1 : -1]; 18508 char g[true]; 18509 char h[sizeof (_Bool)]; 18510 char i[sizeof s.t]; 18511 enum { j = false, k = true, l = false * true, m = true * 256 }; 18512 /* The following fails for 18513 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 18514 _Bool n[m]; 18515 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 18516 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 18517 /* Catch a bug in an HP-UX C compiler. See 18518 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 18519 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 18520 */ 18521 _Bool q = true; 18522 _Bool *pq = &q; 18523 18524int 18525main () 18526{ 18527 18528 bool e = &s; 18529 *pq |= q; 18530 *pq |= ! q; 18531 /* Refer to every declared value, to avoid compiler optimizations. */ 18532 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 18533 + !m + !n + !o + !p + !q + !pq); 18534 18535 ; 18536 return 0; 18537} 18538_ACEOF 18539if ac_fn_c_try_compile "$LINENO"; then : 18540 ac_cv_header_stdbool_h=yes 18541else 18542 ac_cv_header_stdbool_h=no 18543fi 18544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18545fi 18546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 18547$as_echo "$ac_cv_header_stdbool_h" >&6; } 18548 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 18549if test "x$ac_cv_type__Bool" = xyes; then : 18550 18551cat >>confdefs.h <<_ACEOF 18552#define HAVE__BOOL 1 18553_ACEOF 18554 18555 18556fi 18557 18558 18559if test $ac_cv_header_stdbool_h = yes; then 18560 18561$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 18562 18563fi 18564 18565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 18566$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 18567if ${ac_cv_c_const+:} false; then : 18568 $as_echo_n "(cached) " >&6 18569else 18570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18571/* end confdefs.h. */ 18572 18573int 18574main () 18575{ 18576 18577#ifndef __cplusplus 18578 /* Ultrix mips cc rejects this sort of thing. */ 18579 typedef int charset[2]; 18580 const charset cs = { 0, 0 }; 18581 /* SunOS 4.1.1 cc rejects this. */ 18582 char const *const *pcpcc; 18583 char **ppc; 18584 /* NEC SVR4.0.2 mips cc rejects this. */ 18585 struct point {int x, y;}; 18586 static struct point const zero = {0,0}; 18587 /* AIX XL C 1.02.0.0 rejects this. 18588 It does not let you subtract one const X* pointer from another in 18589 an arm of an if-expression whose if-part is not a constant 18590 expression */ 18591 const char *g = "string"; 18592 pcpcc = &g + (g ? g-g : 0); 18593 /* HPUX 7.0 cc rejects these. */ 18594 ++pcpcc; 18595 ppc = (char**) pcpcc; 18596 pcpcc = (char const *const *) ppc; 18597 { /* SCO 3.2v4 cc rejects this sort of thing. */ 18598 char tx; 18599 char *t = &tx; 18600 char const *s = 0 ? (char *) 0 : (char const *) 0; 18601 18602 *t++ = 0; 18603 if (s) return 0; 18604 } 18605 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 18606 int x[] = {25, 17}; 18607 const int *foo = &x[0]; 18608 ++foo; 18609 } 18610 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 18611 typedef const int *iptr; 18612 iptr p = 0; 18613 ++p; 18614 } 18615 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 18616 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 18617 struct s { int j; const int *ap[3]; } bx; 18618 struct s *b = &bx; b->j = 5; 18619 } 18620 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 18621 const int foo = 10; 18622 if (!foo) return 0; 18623 } 18624 return !cs[0] && !zero.x; 18625#endif 18626 18627 ; 18628 return 0; 18629} 18630_ACEOF 18631if ac_fn_c_try_compile "$LINENO"; then : 18632 ac_cv_c_const=yes 18633else 18634 ac_cv_c_const=no 18635fi 18636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18637fi 18638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 18639$as_echo "$ac_cv_c_const" >&6; } 18640if test $ac_cv_c_const = no; then 18641 18642$as_echo "#define const /**/" >>confdefs.h 18643 18644fi 18645 18646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 18647$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 18648if ${ac_cv_type_uid_t+:} false; then : 18649 $as_echo_n "(cached) " >&6 18650else 18651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18652/* end confdefs.h. */ 18653#include <sys/types.h> 18654 18655_ACEOF 18656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18657 $EGREP "uid_t" >/dev/null 2>&1; then : 18658 ac_cv_type_uid_t=yes 18659else 18660 ac_cv_type_uid_t=no 18661fi 18662rm -f conftest* 18663 18664fi 18665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 18666$as_echo "$ac_cv_type_uid_t" >&6; } 18667if test $ac_cv_type_uid_t = no; then 18668 18669$as_echo "#define uid_t int" >>confdefs.h 18670 18671 18672$as_echo "#define gid_t int" >>confdefs.h 18673 18674fi 18675 18676ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18677if test "x$ac_cv_type_size_t" = xyes; then : 18678 18679else 18680 18681cat >>confdefs.h <<_ACEOF 18682#define size_t unsigned int 18683_ACEOF 18684 18685fi 18686 18687 18688# Checks for library functions. 18689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 18690$as_echo_n "checking whether closedir returns void... " >&6; } 18691if ${ac_cv_func_closedir_void+:} false; then : 18692 $as_echo_n "(cached) " >&6 18693else 18694 if test "$cross_compiling" = yes; then : 18695 ac_cv_func_closedir_void=yes 18696else 18697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18698/* end confdefs.h. */ 18699$ac_includes_default 18700#include <$ac_header_dirent> 18701#ifndef __cplusplus 18702int closedir (); 18703#endif 18704 18705int 18706main () 18707{ 18708return closedir (opendir (".")) != 0; 18709 ; 18710 return 0; 18711} 18712_ACEOF 18713if ac_fn_c_try_run "$LINENO"; then : 18714 ac_cv_func_closedir_void=no 18715else 18716 ac_cv_func_closedir_void=yes 18717fi 18718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18719 conftest.$ac_objext conftest.beam conftest.$ac_ext 18720fi 18721 18722fi 18723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 18724$as_echo "$ac_cv_func_closedir_void" >&6; } 18725if test $ac_cv_func_closedir_void = yes; then 18726 18727$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 18728 18729fi 18730 18731for ac_func in vprintf 18732do : 18733 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 18734if test "x$ac_cv_func_vprintf" = xyes; then : 18735 cat >>confdefs.h <<_ACEOF 18736#define HAVE_VPRINTF 1 18737_ACEOF 18738 18739ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 18740if test "x$ac_cv_func__doprnt" = xyes; then : 18741 18742$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 18743 18744fi 18745 18746fi 18747done 18748 18749 18750for ac_func in atexit malloc realloc memmove memset mkdir setlocale strcasecmp strchr strstr 18751do : 18752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18753ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18754if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18755 cat >>confdefs.h <<_ACEOF 18756#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18757_ACEOF 18758 18759fi 18760done 18761 18762 18763# Output. 18764ac_config_files="$ac_config_files Makefile toppler.spec toppler.nsi toppler.desktop po/Makefile.in m4/Makefile toppler.qpg" 18765 18766cat >confcache <<\_ACEOF 18767# This file is a shell script that caches the results of configure 18768# tests run on this system so they can be shared between configure 18769# scripts and configure runs, see configure's option --config-cache. 18770# It is not useful on other systems. If it contains results you don't 18771# want to keep, you may remove or edit it. 18772# 18773# config.status only pays attention to the cache file if you give it 18774# the --recheck option to rerun configure. 18775# 18776# `ac_cv_env_foo' variables (set or unset) will be overridden when 18777# loading this file, other *unset* `ac_cv_foo' will be assigned the 18778# following values. 18779 18780_ACEOF 18781 18782# The following way of writing the cache mishandles newlines in values, 18783# but we know of no workaround that is simple, portable, and efficient. 18784# So, we kill variables containing newlines. 18785# Ultrix sh set writes to stderr and can't be redirected directly, 18786# and sets the high bit in the cache file unless we assign to the vars. 18787( 18788 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18789 eval ac_val=\$$ac_var 18790 case $ac_val in #( 18791 *${as_nl}*) 18792 case $ac_var in #( 18793 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18794$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18795 esac 18796 case $ac_var in #( 18797 _ | IFS | as_nl) ;; #( 18798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18799 *) { eval $ac_var=; unset $ac_var;} ;; 18800 esac ;; 18801 esac 18802 done 18803 18804 (set) 2>&1 | 18805 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18806 *${as_nl}ac_space=\ *) 18807 # `set' does not quote correctly, so add quotes: double-quote 18808 # substitution turns \\\\ into \\, and sed turns \\ into \. 18809 sed -n \ 18810 "s/'/'\\\\''/g; 18811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18812 ;; #( 18813 *) 18814 # `set' quotes correctly as required by POSIX, so do not add quotes. 18815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18816 ;; 18817 esac | 18818 sort 18819) | 18820 sed ' 18821 /^ac_cv_env_/b end 18822 t clear 18823 :clear 18824 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18825 t end 18826 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18827 :end' >>confcache 18828if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18829 if test -w "$cache_file"; then 18830 if test "x$cache_file" != "x/dev/null"; then 18831 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18832$as_echo "$as_me: updating cache $cache_file" >&6;} 18833 if test ! -f "$cache_file" || test -h "$cache_file"; then 18834 cat confcache >"$cache_file" 18835 else 18836 case $cache_file in #( 18837 */* | ?:*) 18838 mv -f confcache "$cache_file"$$ && 18839 mv -f "$cache_file"$$ "$cache_file" ;; #( 18840 *) 18841 mv -f confcache "$cache_file" ;; 18842 esac 18843 fi 18844 fi 18845 else 18846 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18847$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18848 fi 18849fi 18850rm -f confcache 18851 18852test "x$prefix" = xNONE && prefix=$ac_default_prefix 18853# Let make expand exec_prefix. 18854test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18855 18856DEFS=-DHAVE_CONFIG_H 18857 18858ac_libobjs= 18859ac_ltlibobjs= 18860U= 18861for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18862 # 1. Remove the extension, and $U if already installed. 18863 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18864 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18865 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18866 # will be set to the directory where LIBOBJS objects are built. 18867 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18868 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18869done 18870LIBOBJS=$ac_libobjs 18871 18872LTLIBOBJS=$ac_ltlibobjs 18873 18874 18875 if test -n "$EXEEXT"; then 18876 am__EXEEXT_TRUE= 18877 am__EXEEXT_FALSE='#' 18878else 18879 am__EXEEXT_TRUE='#' 18880 am__EXEEXT_FALSE= 18881fi 18882 18883if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18884 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18885Usually this means the macro was only invoked conditionally." "$LINENO" 5 18886fi 18887if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18888 as_fn_error $? "conditional \"AMDEP\" was never defined. 18889Usually this means the macro was only invoked conditionally." "$LINENO" 5 18890fi 18891if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18892 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18893Usually this means the macro was only invoked conditionally." "$LINENO" 5 18894fi 18895if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18896 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 18897Usually this means the macro was only invoked conditionally." "$LINENO" 5 18898fi 18899if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18900 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18901Usually this means the macro was only invoked conditionally." "$LINENO" 5 18902fi 18903 18904: "${CONFIG_STATUS=./config.status}" 18905ac_write_fail=0 18906ac_clean_files_save=$ac_clean_files 18907ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18908{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18909$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18910as_write_fail=0 18911cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18912#! $SHELL 18913# Generated by $as_me. 18914# Run this file to recreate the current configuration. 18915# Compiler output produced by configure, useful for debugging 18916# configure, is in config.log if it exists. 18917 18918debug=false 18919ac_cs_recheck=false 18920ac_cs_silent=false 18921 18922SHELL=\${CONFIG_SHELL-$SHELL} 18923export SHELL 18924_ASEOF 18925cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18926## -------------------- ## 18927## M4sh Initialization. ## 18928## -------------------- ## 18929 18930# Be more Bourne compatible 18931DUALCASE=1; export DUALCASE # for MKS sh 18932if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18933 emulate sh 18934 NULLCMD=: 18935 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18936 # is contrary to our usage. Disable this feature. 18937 alias -g '${1+"$@"}'='"$@"' 18938 setopt NO_GLOB_SUBST 18939else 18940 case `(set -o) 2>/dev/null` in #( 18941 *posix*) : 18942 set -o posix ;; #( 18943 *) : 18944 ;; 18945esac 18946fi 18947 18948 18949as_nl=' 18950' 18951export as_nl 18952# Printing a long string crashes Solaris 7 /usr/bin/printf. 18953as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18954as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18955as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18956# Prefer a ksh shell builtin over an external printf program on Solaris, 18957# but without wasting forks for bash or zsh. 18958if test -z "$BASH_VERSION$ZSH_VERSION" \ 18959 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18960 as_echo='print -r --' 18961 as_echo_n='print -rn --' 18962elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18963 as_echo='printf %s\n' 18964 as_echo_n='printf %s' 18965else 18966 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18967 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18968 as_echo_n='/usr/ucb/echo -n' 18969 else 18970 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18971 as_echo_n_body='eval 18972 arg=$1; 18973 case $arg in #( 18974 *"$as_nl"*) 18975 expr "X$arg" : "X\\(.*\\)$as_nl"; 18976 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18977 esac; 18978 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18979 ' 18980 export as_echo_n_body 18981 as_echo_n='sh -c $as_echo_n_body as_echo' 18982 fi 18983 export as_echo_body 18984 as_echo='sh -c $as_echo_body as_echo' 18985fi 18986 18987# The user is always right. 18988if test "${PATH_SEPARATOR+set}" != set; then 18989 PATH_SEPARATOR=: 18990 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18991 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18992 PATH_SEPARATOR=';' 18993 } 18994fi 18995 18996 18997# IFS 18998# We need space, tab and new line, in precisely that order. Quoting is 18999# there to prevent editors from complaining about space-tab. 19000# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19001# splitting by setting IFS to empty value.) 19002IFS=" "" $as_nl" 19003 19004# Find who we are. Look in the path if we contain no directory separator. 19005as_myself= 19006case $0 in #(( 19007 *[\\/]* ) as_myself=$0 ;; 19008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19009for as_dir in $PATH 19010do 19011 IFS=$as_save_IFS 19012 test -z "$as_dir" && as_dir=. 19013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19014 done 19015IFS=$as_save_IFS 19016 19017 ;; 19018esac 19019# We did not find ourselves, most probably we were run as `sh COMMAND' 19020# in which case we are not to be found in the path. 19021if test "x$as_myself" = x; then 19022 as_myself=$0 19023fi 19024if test ! -f "$as_myself"; then 19025 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19026 exit 1 19027fi 19028 19029# Unset variables that we do not need and which cause bugs (e.g. in 19030# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19031# suppresses any "Segmentation fault" message there. '((' could 19032# trigger a bug in pdksh 5.2.14. 19033for as_var in BASH_ENV ENV MAIL MAILPATH 19034do eval test x\${$as_var+set} = xset \ 19035 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19036done 19037PS1='$ ' 19038PS2='> ' 19039PS4='+ ' 19040 19041# NLS nuisances. 19042LC_ALL=C 19043export LC_ALL 19044LANGUAGE=C 19045export LANGUAGE 19046 19047# CDPATH. 19048(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19049 19050 19051# as_fn_error STATUS ERROR [LINENO LOG_FD] 19052# ---------------------------------------- 19053# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19054# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19055# script with STATUS, using 1 if that was 0. 19056as_fn_error () 19057{ 19058 as_status=$1; test $as_status -eq 0 && as_status=1 19059 if test "$4"; then 19060 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19061 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19062 fi 19063 $as_echo "$as_me: error: $2" >&2 19064 as_fn_exit $as_status 19065} # as_fn_error 19066 19067 19068# as_fn_set_status STATUS 19069# ----------------------- 19070# Set $? to STATUS, without forking. 19071as_fn_set_status () 19072{ 19073 return $1 19074} # as_fn_set_status 19075 19076# as_fn_exit STATUS 19077# ----------------- 19078# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19079as_fn_exit () 19080{ 19081 set +e 19082 as_fn_set_status $1 19083 exit $1 19084} # as_fn_exit 19085 19086# as_fn_unset VAR 19087# --------------- 19088# Portably unset VAR. 19089as_fn_unset () 19090{ 19091 { eval $1=; unset $1;} 19092} 19093as_unset=as_fn_unset 19094# as_fn_append VAR VALUE 19095# ---------------------- 19096# Append the text in VALUE to the end of the definition contained in VAR. Take 19097# advantage of any shell optimizations that allow amortized linear growth over 19098# repeated appends, instead of the typical quadratic growth present in naive 19099# implementations. 19100if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19101 eval 'as_fn_append () 19102 { 19103 eval $1+=\$2 19104 }' 19105else 19106 as_fn_append () 19107 { 19108 eval $1=\$$1\$2 19109 } 19110fi # as_fn_append 19111 19112# as_fn_arith ARG... 19113# ------------------ 19114# Perform arithmetic evaluation on the ARGs, and store the result in the 19115# global $as_val. Take advantage of shells that can avoid forks. The arguments 19116# must be portable across $(()) and expr. 19117if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19118 eval 'as_fn_arith () 19119 { 19120 as_val=$(( $* )) 19121 }' 19122else 19123 as_fn_arith () 19124 { 19125 as_val=`expr "$@" || test $? -eq 1` 19126 } 19127fi # as_fn_arith 19128 19129 19130if expr a : '\(a\)' >/dev/null 2>&1 && 19131 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19132 as_expr=expr 19133else 19134 as_expr=false 19135fi 19136 19137if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19138 as_basename=basename 19139else 19140 as_basename=false 19141fi 19142 19143if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19144 as_dirname=dirname 19145else 19146 as_dirname=false 19147fi 19148 19149as_me=`$as_basename -- "$0" || 19150$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19151 X"$0" : 'X\(//\)$' \| \ 19152 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19153$as_echo X/"$0" | 19154 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19155 s//\1/ 19156 q 19157 } 19158 /^X\/\(\/\/\)$/{ 19159 s//\1/ 19160 q 19161 } 19162 /^X\/\(\/\).*/{ 19163 s//\1/ 19164 q 19165 } 19166 s/.*/./; q'` 19167 19168# Avoid depending upon Character Ranges. 19169as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19170as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19171as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19172as_cr_digits='0123456789' 19173as_cr_alnum=$as_cr_Letters$as_cr_digits 19174 19175ECHO_C= ECHO_N= ECHO_T= 19176case `echo -n x` in #((((( 19177-n*) 19178 case `echo 'xy\c'` in 19179 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19180 xy) ECHO_C='\c';; 19181 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19182 ECHO_T=' ';; 19183 esac;; 19184*) 19185 ECHO_N='-n';; 19186esac 19187 19188rm -f conf$$ conf$$.exe conf$$.file 19189if test -d conf$$.dir; then 19190 rm -f conf$$.dir/conf$$.file 19191else 19192 rm -f conf$$.dir 19193 mkdir conf$$.dir 2>/dev/null 19194fi 19195if (echo >conf$$.file) 2>/dev/null; then 19196 if ln -s conf$$.file conf$$ 2>/dev/null; then 19197 as_ln_s='ln -s' 19198 # ... but there are two gotchas: 19199 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19200 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19201 # In both cases, we have to default to `cp -pR'. 19202 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19203 as_ln_s='cp -pR' 19204 elif ln conf$$.file conf$$ 2>/dev/null; then 19205 as_ln_s=ln 19206 else 19207 as_ln_s='cp -pR' 19208 fi 19209else 19210 as_ln_s='cp -pR' 19211fi 19212rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19213rmdir conf$$.dir 2>/dev/null 19214 19215 19216# as_fn_mkdir_p 19217# ------------- 19218# Create "$as_dir" as a directory, including parents if necessary. 19219as_fn_mkdir_p () 19220{ 19221 19222 case $as_dir in #( 19223 -*) as_dir=./$as_dir;; 19224 esac 19225 test -d "$as_dir" || eval $as_mkdir_p || { 19226 as_dirs= 19227 while :; do 19228 case $as_dir in #( 19229 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19230 *) as_qdir=$as_dir;; 19231 esac 19232 as_dirs="'$as_qdir' $as_dirs" 19233 as_dir=`$as_dirname -- "$as_dir" || 19234$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19235 X"$as_dir" : 'X\(//\)[^/]' \| \ 19236 X"$as_dir" : 'X\(//\)$' \| \ 19237 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19238$as_echo X"$as_dir" | 19239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19240 s//\1/ 19241 q 19242 } 19243 /^X\(\/\/\)[^/].*/{ 19244 s//\1/ 19245 q 19246 } 19247 /^X\(\/\/\)$/{ 19248 s//\1/ 19249 q 19250 } 19251 /^X\(\/\).*/{ 19252 s//\1/ 19253 q 19254 } 19255 s/.*/./; q'` 19256 test -d "$as_dir" && break 19257 done 19258 test -z "$as_dirs" || eval "mkdir $as_dirs" 19259 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19260 19261 19262} # as_fn_mkdir_p 19263if mkdir -p . 2>/dev/null; then 19264 as_mkdir_p='mkdir -p "$as_dir"' 19265else 19266 test -d ./-p && rmdir ./-p 19267 as_mkdir_p=false 19268fi 19269 19270 19271# as_fn_executable_p FILE 19272# ----------------------- 19273# Test if FILE is an executable regular file. 19274as_fn_executable_p () 19275{ 19276 test -f "$1" && test -x "$1" 19277} # as_fn_executable_p 19278as_test_x='test -x' 19279as_executable_p=as_fn_executable_p 19280 19281# Sed expression to map a string onto a valid CPP name. 19282as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19283 19284# Sed expression to map a string onto a valid variable name. 19285as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19286 19287 19288exec 6>&1 19289## ----------------------------------- ## 19290## Main body of $CONFIG_STATUS script. ## 19291## ----------------------------------- ## 19292_ASEOF 19293test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19294 19295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19296# Save the log message, to keep $0 and so on meaningful, and to 19297# report actual input values of CONFIG_FILES etc. instead of their 19298# values after options handling. 19299ac_log=" 19300This file was extended by toppler $as_me 1.1.6, which was 19301generated by GNU Autoconf 2.69. Invocation command line was 19302 19303 CONFIG_FILES = $CONFIG_FILES 19304 CONFIG_HEADERS = $CONFIG_HEADERS 19305 CONFIG_LINKS = $CONFIG_LINKS 19306 CONFIG_COMMANDS = $CONFIG_COMMANDS 19307 $ $0 $@ 19308 19309on `(hostname || uname -n) 2>/dev/null | sed 1q` 19310" 19311 19312_ACEOF 19313 19314case $ac_config_files in *" 19315"*) set x $ac_config_files; shift; ac_config_files=$*;; 19316esac 19317 19318case $ac_config_headers in *" 19319"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19320esac 19321 19322 19323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19324# Files that config.status was made for. 19325config_files="$ac_config_files" 19326config_headers="$ac_config_headers" 19327config_commands="$ac_config_commands" 19328 19329_ACEOF 19330 19331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19332ac_cs_usage="\ 19333\`$as_me' instantiates files and other configuration actions 19334from templates according to the current configuration. Unless the files 19335and actions are specified as TAGs, all are instantiated by default. 19336 19337Usage: $0 [OPTION]... [TAG]... 19338 19339 -h, --help print this help, then exit 19340 -V, --version print version number and configuration settings, then exit 19341 --config print configuration, then exit 19342 -q, --quiet, --silent 19343 do not print progress messages 19344 -d, --debug don't remove temporary files 19345 --recheck update $as_me by reconfiguring in the same conditions 19346 --file=FILE[:TEMPLATE] 19347 instantiate the configuration file FILE 19348 --header=FILE[:TEMPLATE] 19349 instantiate the configuration header FILE 19350 19351Configuration files: 19352$config_files 19353 19354Configuration headers: 19355$config_headers 19356 19357Configuration commands: 19358$config_commands 19359 19360Report bugs to the package provider." 19361 19362_ACEOF 19363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19364ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19365ac_cs_version="\\ 19366toppler config.status 1.1.6 19367configured by $0, generated by GNU Autoconf 2.69, 19368 with options \\"\$ac_cs_config\\" 19369 19370Copyright (C) 2012 Free Software Foundation, Inc. 19371This config.status script is free software; the Free Software Foundation 19372gives unlimited permission to copy, distribute and modify it." 19373 19374ac_pwd='$ac_pwd' 19375srcdir='$srcdir' 19376INSTALL='$INSTALL' 19377MKDIR_P='$MKDIR_P' 19378AWK='$AWK' 19379test -n "\$AWK" || AWK=awk 19380_ACEOF 19381 19382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19383# The default lists apply if the user does not specify any file. 19384ac_need_defaults=: 19385while test $# != 0 19386do 19387 case $1 in 19388 --*=?*) 19389 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19390 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19391 ac_shift=: 19392 ;; 19393 --*=) 19394 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19395 ac_optarg= 19396 ac_shift=: 19397 ;; 19398 *) 19399 ac_option=$1 19400 ac_optarg=$2 19401 ac_shift=shift 19402 ;; 19403 esac 19404 19405 case $ac_option in 19406 # Handling of the options. 19407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19408 ac_cs_recheck=: ;; 19409 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19410 $as_echo "$ac_cs_version"; exit ;; 19411 --config | --confi | --conf | --con | --co | --c ) 19412 $as_echo "$ac_cs_config"; exit ;; 19413 --debug | --debu | --deb | --de | --d | -d ) 19414 debug=: ;; 19415 --file | --fil | --fi | --f ) 19416 $ac_shift 19417 case $ac_optarg in 19418 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19419 '') as_fn_error $? "missing file argument" ;; 19420 esac 19421 as_fn_append CONFIG_FILES " '$ac_optarg'" 19422 ac_need_defaults=false;; 19423 --header | --heade | --head | --hea ) 19424 $ac_shift 19425 case $ac_optarg in 19426 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19427 esac 19428 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19429 ac_need_defaults=false;; 19430 --he | --h) 19431 # Conflict between --help and --header 19432 as_fn_error $? "ambiguous option: \`$1' 19433Try \`$0 --help' for more information.";; 19434 --help | --hel | -h ) 19435 $as_echo "$ac_cs_usage"; exit ;; 19436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19437 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19438 ac_cs_silent=: ;; 19439 19440 # This is an error. 19441 -*) as_fn_error $? "unrecognized option: \`$1' 19442Try \`$0 --help' for more information." ;; 19443 19444 *) as_fn_append ac_config_targets " $1" 19445 ac_need_defaults=false ;; 19446 19447 esac 19448 shift 19449done 19450 19451ac_configure_extra_args= 19452 19453if $ac_cs_silent; then 19454 exec 6>/dev/null 19455 ac_configure_extra_args="$ac_configure_extra_args --silent" 19456fi 19457 19458_ACEOF 19459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19460if \$ac_cs_recheck; then 19461 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19462 shift 19463 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19464 CONFIG_SHELL='$SHELL' 19465 export CONFIG_SHELL 19466 exec "\$@" 19467fi 19468 19469_ACEOF 19470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19471exec 5>>config.log 19472{ 19473 echo 19474 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19475## Running $as_me. ## 19476_ASBOX 19477 $as_echo "$ac_log" 19478} >&5 19479 19480_ACEOF 19481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19482# 19483# INIT-COMMANDS 19484# 19485# Capture the value of obsolete ALL_LINGUAS because we need it to compute 19486 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 19487 # from automake < 1.5. 19488 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 19489 # Capture the value of LINGUAS because we need it to compute CATALOGS. 19490 LINGUAS="${LINGUAS-%UNSET%}" 19491 19492AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19493 19494 19495# The HP-UX ksh and POSIX shell print the target directory to stdout 19496# if CDPATH is set. 19497(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19498 19499sed_quote_subst='$sed_quote_subst' 19500double_quote_subst='$double_quote_subst' 19501delay_variable_subst='$delay_variable_subst' 19502macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19503macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19504enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19505enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19506pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19507enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19508SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19509ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19510host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19511host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19512host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19513build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19514build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19515build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19516SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19517Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19518GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19519EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19520FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19521LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19522NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19523LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19524max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19525ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19526exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19527lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19528lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19529lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19530lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19531lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19532reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19533reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19534OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19535deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19536file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19537file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19538want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19539DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19540sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19541AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19542AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19543archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19544STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19545RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19546old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19547old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19548old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19549lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19550CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19551CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19552compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19553GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19554lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19555lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19556lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19557lt_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"`' 19558nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19559lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19560objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19561MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19562lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19563lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19564lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19565lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19566lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19567need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19568MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19569DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19570NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19571LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19572OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19573OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19574libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19575shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19576extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19577archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19578enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19579export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19580whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19581compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19582old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19583old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19584archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19585archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19586module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19587module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19588with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19589allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19590no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19591hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19592hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 19593hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19594hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19595hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19596hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19597hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19598hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19599inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19600link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19601always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19602export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19603exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19604include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19605prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19606postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19607file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19608variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19609need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19610need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19611version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19612runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19613shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19614shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19615libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19616library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19617soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19618install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19619postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19620postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19621finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19622finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19623hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19624sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19625sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19626hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19627enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19628enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19629enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19630old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19631striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19632compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 19633predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 19634postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 19635predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 19636postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 19637compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 19638LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 19639reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 19640reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19641old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19642compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 19643GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 19644lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 19645lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 19646lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 19647lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 19648lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 19649archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 19650enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 19651export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19652whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19653compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 19654old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19655old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19656archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19657archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19658module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19659module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19660with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 19661allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19662no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19663hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19664hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 19665hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 19666hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 19667hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 19668hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 19669hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 19670hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 19671inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19672link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19673always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19674export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19675exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19676include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19677prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19678postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19679file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19680hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19681compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19682predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19683postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19684predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 19685postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 19686compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 19687 19688LTCC='$LTCC' 19689LTCFLAGS='$LTCFLAGS' 19690compiler='$compiler_DEFAULT' 19691 19692# A function that is used when there is no print builtin or printf. 19693func_fallback_echo () 19694{ 19695 eval 'cat <<_LTECHO_EOF 19696\$1 19697_LTECHO_EOF' 19698} 19699 19700# Quote evaled strings. 19701for var in SHELL \ 19702ECHO \ 19703SED \ 19704GREP \ 19705EGREP \ 19706FGREP \ 19707LD \ 19708NM \ 19709LN_S \ 19710lt_SP2NL \ 19711lt_NL2SP \ 19712reload_flag \ 19713OBJDUMP \ 19714deplibs_check_method \ 19715file_magic_cmd \ 19716file_magic_glob \ 19717want_nocaseglob \ 19718DLLTOOL \ 19719sharedlib_from_linklib_cmd \ 19720AR \ 19721AR_FLAGS \ 19722archiver_list_spec \ 19723STRIP \ 19724RANLIB \ 19725CC \ 19726CFLAGS \ 19727compiler \ 19728lt_cv_sys_global_symbol_pipe \ 19729lt_cv_sys_global_symbol_to_cdecl \ 19730lt_cv_sys_global_symbol_to_c_name_address \ 19731lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19732nm_file_list_spec \ 19733lt_prog_compiler_no_builtin_flag \ 19734lt_prog_compiler_pic \ 19735lt_prog_compiler_wl \ 19736lt_prog_compiler_static \ 19737lt_cv_prog_compiler_c_o \ 19738need_locks \ 19739MANIFEST_TOOL \ 19740DSYMUTIL \ 19741NMEDIT \ 19742LIPO \ 19743OTOOL \ 19744OTOOL64 \ 19745shrext_cmds \ 19746export_dynamic_flag_spec \ 19747whole_archive_flag_spec \ 19748compiler_needs_object \ 19749with_gnu_ld \ 19750allow_undefined_flag \ 19751no_undefined_flag \ 19752hardcode_libdir_flag_spec \ 19753hardcode_libdir_flag_spec_ld \ 19754hardcode_libdir_separator \ 19755exclude_expsyms \ 19756include_expsyms \ 19757file_list_spec \ 19758variables_saved_for_relink \ 19759libname_spec \ 19760library_names_spec \ 19761soname_spec \ 19762install_override_mode \ 19763finish_eval \ 19764old_striplib \ 19765striplib \ 19766compiler_lib_search_dirs \ 19767predep_objects \ 19768postdep_objects \ 19769predeps \ 19770postdeps \ 19771compiler_lib_search_path \ 19772LD_CXX \ 19773reload_flag_CXX \ 19774compiler_CXX \ 19775lt_prog_compiler_no_builtin_flag_CXX \ 19776lt_prog_compiler_pic_CXX \ 19777lt_prog_compiler_wl_CXX \ 19778lt_prog_compiler_static_CXX \ 19779lt_cv_prog_compiler_c_o_CXX \ 19780export_dynamic_flag_spec_CXX \ 19781whole_archive_flag_spec_CXX \ 19782compiler_needs_object_CXX \ 19783with_gnu_ld_CXX \ 19784allow_undefined_flag_CXX \ 19785no_undefined_flag_CXX \ 19786hardcode_libdir_flag_spec_CXX \ 19787hardcode_libdir_flag_spec_ld_CXX \ 19788hardcode_libdir_separator_CXX \ 19789exclude_expsyms_CXX \ 19790include_expsyms_CXX \ 19791file_list_spec_CXX \ 19792compiler_lib_search_dirs_CXX \ 19793predep_objects_CXX \ 19794postdep_objects_CXX \ 19795predeps_CXX \ 19796postdeps_CXX \ 19797compiler_lib_search_path_CXX; do 19798 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19799 *[\\\\\\\`\\"\\\$]*) 19800 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19801 ;; 19802 *) 19803 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19804 ;; 19805 esac 19806done 19807 19808# Double-quote double-evaled strings. 19809for var in reload_cmds \ 19810old_postinstall_cmds \ 19811old_postuninstall_cmds \ 19812old_archive_cmds \ 19813extract_expsyms_cmds \ 19814old_archive_from_new_cmds \ 19815old_archive_from_expsyms_cmds \ 19816archive_cmds \ 19817archive_expsym_cmds \ 19818module_cmds \ 19819module_expsym_cmds \ 19820export_symbols_cmds \ 19821prelink_cmds \ 19822postlink_cmds \ 19823postinstall_cmds \ 19824postuninstall_cmds \ 19825finish_cmds \ 19826sys_lib_search_path_spec \ 19827sys_lib_dlsearch_path_spec \ 19828reload_cmds_CXX \ 19829old_archive_cmds_CXX \ 19830old_archive_from_new_cmds_CXX \ 19831old_archive_from_expsyms_cmds_CXX \ 19832archive_cmds_CXX \ 19833archive_expsym_cmds_CXX \ 19834module_cmds_CXX \ 19835module_expsym_cmds_CXX \ 19836export_symbols_cmds_CXX \ 19837prelink_cmds_CXX \ 19838postlink_cmds_CXX; do 19839 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19840 *[\\\\\\\`\\"\\\$]*) 19841 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19842 ;; 19843 *) 19844 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19845 ;; 19846 esac 19847done 19848 19849ac_aux_dir='$ac_aux_dir' 19850xsi_shell='$xsi_shell' 19851lt_shell_append='$lt_shell_append' 19852 19853# See if we are running on zsh, and set the options which allow our 19854# commands through without removal of \ escapes INIT. 19855if test -n "\${ZSH_VERSION+set}" ; then 19856 setopt NO_GLOB_SUBST 19857fi 19858 19859 19860 PACKAGE='$PACKAGE' 19861 VERSION='$VERSION' 19862 TIMESTAMP='$TIMESTAMP' 19863 RM='$RM' 19864 ofile='$ofile' 19865 19866 19867 19868 19869 19870 19871_ACEOF 19872 19873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19874 19875# Handling of arguments. 19876for ac_config_target in $ac_config_targets 19877do 19878 case $ac_config_target in 19879 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19880 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 19881 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19882 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19883 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19884 "toppler.spec") CONFIG_FILES="$CONFIG_FILES toppler.spec" ;; 19885 "toppler.nsi") CONFIG_FILES="$CONFIG_FILES toppler.nsi" ;; 19886 "toppler.desktop") CONFIG_FILES="$CONFIG_FILES toppler.desktop" ;; 19887 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 19888 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 19889 "toppler.qpg") CONFIG_FILES="$CONFIG_FILES toppler.qpg" ;; 19890 19891 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19892 esac 19893done 19894 19895 19896# If the user did not use the arguments to specify the items to instantiate, 19897# then the envvar interface is used. Set only those that are not. 19898# We use the long form for the default assignment because of an extremely 19899# bizarre bug on SunOS 4.1.3. 19900if $ac_need_defaults; then 19901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19903 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19904fi 19905 19906# Have a temporary directory for convenience. Make it in the build tree 19907# simply because there is no reason against having it here, and in addition, 19908# creating and moving files from /tmp can sometimes cause problems. 19909# Hook for its removal unless debugging. 19910# Note that there is a small window in which the directory will not be cleaned: 19911# after its creation but before its name has been assigned to `$tmp'. 19912$debug || 19913{ 19914 tmp= ac_tmp= 19915 trap 'exit_status=$? 19916 : "${ac_tmp:=$tmp}" 19917 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19918' 0 19919 trap 'as_fn_exit 1' 1 2 13 15 19920} 19921# Create a (secure) tmp directory for tmp files. 19922 19923{ 19924 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19925 test -d "$tmp" 19926} || 19927{ 19928 tmp=./conf$$-$RANDOM 19929 (umask 077 && mkdir "$tmp") 19930} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19931ac_tmp=$tmp 19932 19933# Set up the scripts for CONFIG_FILES section. 19934# No need to generate them if there are no CONFIG_FILES. 19935# This happens for instance with `./config.status config.h'. 19936if test -n "$CONFIG_FILES"; then 19937 19938 19939ac_cr=`echo X | tr X '\015'` 19940# On cygwin, bash can eat \r inside `` if the user requested igncr. 19941# But we know of no other shell where ac_cr would be empty at this 19942# point, so we can use a bashism as a fallback. 19943if test "x$ac_cr" = x; then 19944 eval ac_cr=\$\'\\r\' 19945fi 19946ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19947if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19948 ac_cs_awk_cr='\\r' 19949else 19950 ac_cs_awk_cr=$ac_cr 19951fi 19952 19953echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19954_ACEOF 19955 19956 19957{ 19958 echo "cat >conf$$subs.awk <<_ACEOF" && 19959 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19960 echo "_ACEOF" 19961} >conf$$subs.sh || 19962 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19963ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19964ac_delim='%!_!# ' 19965for ac_last_try in false false false false false :; do 19966 . ./conf$$subs.sh || 19967 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19968 19969 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19970 if test $ac_delim_n = $ac_delim_num; then 19971 break 19972 elif $ac_last_try; then 19973 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19974 else 19975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19976 fi 19977done 19978rm -f conf$$subs.sh 19979 19980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19981cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19982_ACEOF 19983sed -n ' 19984h 19985s/^/S["/; s/!.*/"]=/ 19986p 19987g 19988s/^[^!]*!// 19989:repl 19990t repl 19991s/'"$ac_delim"'$// 19992t delim 19993:nl 19994h 19995s/\(.\{148\}\)..*/\1/ 19996t more1 19997s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19998p 19999n 20000b repl 20001:more1 20002s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20003p 20004g 20005s/.\{148\}// 20006t nl 20007:delim 20008h 20009s/\(.\{148\}\)..*/\1/ 20010t more2 20011s/["\\]/\\&/g; s/^/"/; s/$/"/ 20012p 20013b 20014:more2 20015s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20016p 20017g 20018s/.\{148\}// 20019t delim 20020' <conf$$subs.awk | sed ' 20021/^[^""]/{ 20022 N 20023 s/\n// 20024} 20025' >>$CONFIG_STATUS || ac_write_fail=1 20026rm -f conf$$subs.awk 20027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20028_ACAWK 20029cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20030 for (key in S) S_is_set[key] = 1 20031 FS = "" 20032 20033} 20034{ 20035 line = $ 0 20036 nfields = split(line, field, "@") 20037 substed = 0 20038 len = length(field[1]) 20039 for (i = 2; i < nfields; i++) { 20040 key = field[i] 20041 keylen = length(key) 20042 if (S_is_set[key]) { 20043 value = S[key] 20044 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20045 len += length(value) + length(field[++i]) 20046 substed = 1 20047 } else 20048 len += 1 + keylen 20049 } 20050 20051 print line 20052} 20053 20054_ACAWK 20055_ACEOF 20056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20057if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20058 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20059else 20060 cat 20061fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20062 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20063_ACEOF 20064 20065# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20066# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20067# trailing colons and then remove the whole line if VPATH becomes empty 20068# (actually we leave an empty line to preserve line numbers). 20069if test "x$srcdir" = x.; then 20070 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20071h 20072s/// 20073s/^/:/ 20074s/[ ]*$/:/ 20075s/:\$(srcdir):/:/g 20076s/:\${srcdir}:/:/g 20077s/:@srcdir@:/:/g 20078s/^:*// 20079s/:*$// 20080x 20081s/\(=[ ]*\).*/\1/ 20082G 20083s/\n// 20084s/^[^=]*=[ ]*$// 20085}' 20086fi 20087 20088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20089fi # test -n "$CONFIG_FILES" 20090 20091# Set up the scripts for CONFIG_HEADERS section. 20092# No need to generate them if there are no CONFIG_HEADERS. 20093# This happens for instance with `./config.status Makefile'. 20094if test -n "$CONFIG_HEADERS"; then 20095cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20096BEGIN { 20097_ACEOF 20098 20099# Transform confdefs.h into an awk script `defines.awk', embedded as 20100# here-document in config.status, that substitutes the proper values into 20101# config.h.in to produce config.h. 20102 20103# Create a delimiter string that does not exist in confdefs.h, to ease 20104# handling of long lines. 20105ac_delim='%!_!# ' 20106for ac_last_try in false false :; do 20107 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20108 if test -z "$ac_tt"; then 20109 break 20110 elif $ac_last_try; then 20111 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20112 else 20113 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20114 fi 20115done 20116 20117# For the awk script, D is an array of macro values keyed by name, 20118# likewise P contains macro parameters if any. Preserve backslash 20119# newline sequences. 20120 20121ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20122sed -n ' 20123s/.\{148\}/&'"$ac_delim"'/g 20124t rset 20125:rset 20126s/^[ ]*#[ ]*define[ ][ ]*/ / 20127t def 20128d 20129:def 20130s/\\$// 20131t bsnl 20132s/["\\]/\\&/g 20133s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20134D["\1"]=" \3"/p 20135s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20136d 20137:bsnl 20138s/["\\]/\\&/g 20139s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20140D["\1"]=" \3\\\\\\n"\\/p 20141t cont 20142s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20143t cont 20144d 20145:cont 20146n 20147s/.\{148\}/&'"$ac_delim"'/g 20148t clear 20149:clear 20150s/\\$// 20151t bsnlc 20152s/["\\]/\\&/g; s/^/"/; s/$/"/p 20153d 20154:bsnlc 20155s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20156b cont 20157' <confdefs.h | sed ' 20158s/'"$ac_delim"'/"\\\ 20159"/g' >>$CONFIG_STATUS || ac_write_fail=1 20160 20161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20162 for (key in D) D_is_set[key] = 1 20163 FS = "" 20164} 20165/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20166 line = \$ 0 20167 split(line, arg, " ") 20168 if (arg[1] == "#") { 20169 defundef = arg[2] 20170 mac1 = arg[3] 20171 } else { 20172 defundef = substr(arg[1], 2) 20173 mac1 = arg[2] 20174 } 20175 split(mac1, mac2, "(") #) 20176 macro = mac2[1] 20177 prefix = substr(line, 1, index(line, defundef) - 1) 20178 if (D_is_set[macro]) { 20179 # Preserve the white space surrounding the "#". 20180 print prefix "define", macro P[macro] D[macro] 20181 next 20182 } else { 20183 # Replace #undef with comments. This is necessary, for example, 20184 # in the case of _POSIX_SOURCE, which is predefined and required 20185 # on some systems where configure will not decide to define it. 20186 if (defundef == "undef") { 20187 print "/*", prefix defundef, macro, "*/" 20188 next 20189 } 20190 } 20191} 20192{ print } 20193_ACAWK 20194_ACEOF 20195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20196 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20197fi # test -n "$CONFIG_HEADERS" 20198 20199 20200eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20201shift 20202for ac_tag 20203do 20204 case $ac_tag in 20205 :[FHLC]) ac_mode=$ac_tag; continue;; 20206 esac 20207 case $ac_mode$ac_tag in 20208 :[FHL]*:*);; 20209 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20210 :[FH]-) ac_tag=-:-;; 20211 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20212 esac 20213 ac_save_IFS=$IFS 20214 IFS=: 20215 set x $ac_tag 20216 IFS=$ac_save_IFS 20217 shift 20218 ac_file=$1 20219 shift 20220 20221 case $ac_mode in 20222 :L) ac_source=$1;; 20223 :[FH]) 20224 ac_file_inputs= 20225 for ac_f 20226 do 20227 case $ac_f in 20228 -) ac_f="$ac_tmp/stdin";; 20229 *) # Look for the file first in the build tree, then in the source tree 20230 # (if the path is not absolute). The absolute path cannot be DOS-style, 20231 # because $ac_f cannot contain `:'. 20232 test -f "$ac_f" || 20233 case $ac_f in 20234 [\\/$]*) false;; 20235 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20236 esac || 20237 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20238 esac 20239 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20240 as_fn_append ac_file_inputs " '$ac_f'" 20241 done 20242 20243 # Let's still pretend it is `configure' which instantiates (i.e., don't 20244 # use $as_me), people would be surprised to read: 20245 # /* config.h. Generated by config.status. */ 20246 configure_input='Generated from '` 20247 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20248 `' by configure.' 20249 if test x"$ac_file" != x-; then 20250 configure_input="$ac_file. $configure_input" 20251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20252$as_echo "$as_me: creating $ac_file" >&6;} 20253 fi 20254 # Neutralize special characters interpreted by sed in replacement strings. 20255 case $configure_input in #( 20256 *\&* | *\|* | *\\* ) 20257 ac_sed_conf_input=`$as_echo "$configure_input" | 20258 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20259 *) ac_sed_conf_input=$configure_input;; 20260 esac 20261 20262 case $ac_tag in 20263 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20265 esac 20266 ;; 20267 esac 20268 20269 ac_dir=`$as_dirname -- "$ac_file" || 20270$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20271 X"$ac_file" : 'X\(//\)[^/]' \| \ 20272 X"$ac_file" : 'X\(//\)$' \| \ 20273 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20274$as_echo X"$ac_file" | 20275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20276 s//\1/ 20277 q 20278 } 20279 /^X\(\/\/\)[^/].*/{ 20280 s//\1/ 20281 q 20282 } 20283 /^X\(\/\/\)$/{ 20284 s//\1/ 20285 q 20286 } 20287 /^X\(\/\).*/{ 20288 s//\1/ 20289 q 20290 } 20291 s/.*/./; q'` 20292 as_dir="$ac_dir"; as_fn_mkdir_p 20293 ac_builddir=. 20294 20295case "$ac_dir" in 20296.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20297*) 20298 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20299 # A ".." for each directory in $ac_dir_suffix. 20300 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20301 case $ac_top_builddir_sub in 20302 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20303 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20304 esac ;; 20305esac 20306ac_abs_top_builddir=$ac_pwd 20307ac_abs_builddir=$ac_pwd$ac_dir_suffix 20308# for backward compatibility: 20309ac_top_builddir=$ac_top_build_prefix 20310 20311case $srcdir in 20312 .) # We are building in place. 20313 ac_srcdir=. 20314 ac_top_srcdir=$ac_top_builddir_sub 20315 ac_abs_top_srcdir=$ac_pwd ;; 20316 [\\/]* | ?:[\\/]* ) # Absolute name. 20317 ac_srcdir=$srcdir$ac_dir_suffix; 20318 ac_top_srcdir=$srcdir 20319 ac_abs_top_srcdir=$srcdir ;; 20320 *) # Relative name. 20321 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20322 ac_top_srcdir=$ac_top_build_prefix$srcdir 20323 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20324esac 20325ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20326 20327 20328 case $ac_mode in 20329 :F) 20330 # 20331 # CONFIG_FILE 20332 # 20333 20334 case $INSTALL in 20335 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20336 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20337 esac 20338 ac_MKDIR_P=$MKDIR_P 20339 case $MKDIR_P in 20340 [\\/$]* | ?:[\\/]* ) ;; 20341 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20342 esac 20343_ACEOF 20344 20345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20346# If the template does not know about datarootdir, expand it. 20347# FIXME: This hack should be removed a few years after 2.60. 20348ac_datarootdir_hack=; ac_datarootdir_seen= 20349ac_sed_dataroot=' 20350/datarootdir/ { 20351 p 20352 q 20353} 20354/@datadir@/p 20355/@docdir@/p 20356/@infodir@/p 20357/@localedir@/p 20358/@mandir@/p' 20359case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20360*datarootdir*) ac_datarootdir_seen=yes;; 20361*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20363$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20364_ACEOF 20365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20366 ac_datarootdir_hack=' 20367 s&@datadir@&$datadir&g 20368 s&@docdir@&$docdir&g 20369 s&@infodir@&$infodir&g 20370 s&@localedir@&$localedir&g 20371 s&@mandir@&$mandir&g 20372 s&\\\${datarootdir}&$datarootdir&g' ;; 20373esac 20374_ACEOF 20375 20376# Neutralize VPATH when `$srcdir' = `.'. 20377# Shell code in configure.ac might set extrasub. 20378# FIXME: do we really want to maintain this feature? 20379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20380ac_sed_extra="$ac_vpsub 20381$extrasub 20382_ACEOF 20383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20384:t 20385/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20386s|@configure_input@|$ac_sed_conf_input|;t t 20387s&@top_builddir@&$ac_top_builddir_sub&;t t 20388s&@top_build_prefix@&$ac_top_build_prefix&;t t 20389s&@srcdir@&$ac_srcdir&;t t 20390s&@abs_srcdir@&$ac_abs_srcdir&;t t 20391s&@top_srcdir@&$ac_top_srcdir&;t t 20392s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20393s&@builddir@&$ac_builddir&;t t 20394s&@abs_builddir@&$ac_abs_builddir&;t t 20395s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20396s&@INSTALL@&$ac_INSTALL&;t t 20397s&@MKDIR_P@&$ac_MKDIR_P&;t t 20398$ac_datarootdir_hack 20399" 20400eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20401 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20402 20403test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20404 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20405 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20406 "$ac_tmp/out"`; test -z "$ac_out"; } && 20407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20408which seems to be undefined. Please make sure it is defined" >&5 20409$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20410which seems to be undefined. Please make sure it is defined" >&2;} 20411 20412 rm -f "$ac_tmp/stdin" 20413 case $ac_file in 20414 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20415 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20416 esac \ 20417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20418 ;; 20419 :H) 20420 # 20421 # CONFIG_HEADER 20422 # 20423 if test x"$ac_file" != x-; then 20424 { 20425 $as_echo "/* $configure_input */" \ 20426 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20427 } >"$ac_tmp/config.h" \ 20428 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20429 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20430 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20431$as_echo "$as_me: $ac_file is unchanged" >&6;} 20432 else 20433 rm -f "$ac_file" 20434 mv "$ac_tmp/config.h" "$ac_file" \ 20435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20436 fi 20437 else 20438 $as_echo "/* $configure_input */" \ 20439 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20440 || as_fn_error $? "could not create -" "$LINENO" 5 20441 fi 20442# Compute "$ac_file"'s index in $config_headers. 20443_am_arg="$ac_file" 20444_am_stamp_count=1 20445for _am_header in $config_headers :; do 20446 case $_am_header in 20447 $_am_arg | $_am_arg:* ) 20448 break ;; 20449 * ) 20450 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20451 esac 20452done 20453echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20454$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20455 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20456 X"$_am_arg" : 'X\(//\)$' \| \ 20457 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20458$as_echo X"$_am_arg" | 20459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20460 s//\1/ 20461 q 20462 } 20463 /^X\(\/\/\)[^/].*/{ 20464 s//\1/ 20465 q 20466 } 20467 /^X\(\/\/\)$/{ 20468 s//\1/ 20469 q 20470 } 20471 /^X\(\/\).*/{ 20472 s//\1/ 20473 q 20474 } 20475 s/.*/./; q'`/stamp-h$_am_stamp_count 20476 ;; 20477 20478 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20479$as_echo "$as_me: executing $ac_file commands" >&6;} 20480 ;; 20481 esac 20482 20483 20484 case $ac_file$ac_mode in 20485 "po-directories":C) 20486 for ac_file in $CONFIG_FILES; do 20487 # Support "outfile[:infile[:infile...]]" 20488 case "$ac_file" in 20489 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 20490 esac 20491 # PO directories have a Makefile.in generated from Makefile.in.in. 20492 case "$ac_file" in */Makefile.in) 20493 # Adjust a relative srcdir. 20494 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 20495 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 20496 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 20497 # In autoconf-2.13 it is called $ac_given_srcdir. 20498 # In autoconf-2.50 it is called $srcdir. 20499 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 20500 case "$ac_given_srcdir" in 20501 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 20502 /*) top_srcdir="$ac_given_srcdir" ;; 20503 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 20504 esac 20505 # Treat a directory as a PO directory if and only if it has a 20506 # POTFILES.in file. This allows packages to have multiple PO 20507 # directories under different names or in different locations. 20508 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 20509 rm -f "$ac_dir/POTFILES" 20510 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 20511 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 20512 POMAKEFILEDEPS="POTFILES.in" 20513 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 20514 # on $ac_dir but don't depend on user-specified configuration 20515 # parameters. 20516 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 20517 # The LINGUAS file contains the set of available languages. 20518 if test -n "$OBSOLETE_ALL_LINGUAS"; then 20519 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 20520 fi 20521 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 20522 # Hide the ALL_LINGUAS assigment from automake < 1.5. 20523 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 20524 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 20525 else 20526 # The set of available languages was given in configure.in. 20527 # Hide the ALL_LINGUAS assigment from automake < 1.5. 20528 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 20529 fi 20530 # Compute POFILES 20531 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 20532 # Compute UPDATEPOFILES 20533 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 20534 # Compute DUMMYPOFILES 20535 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 20536 # Compute GMOFILES 20537 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 20538 case "$ac_given_srcdir" in 20539 .) srcdirpre= ;; 20540 *) srcdirpre='$(srcdir)/' ;; 20541 esac 20542 POFILES= 20543 UPDATEPOFILES= 20544 DUMMYPOFILES= 20545 GMOFILES= 20546 for lang in $ALL_LINGUAS; do 20547 POFILES="$POFILES $srcdirpre$lang.po" 20548 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 20549 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 20550 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 20551 done 20552 # CATALOGS depends on both $ac_dir and the user's LINGUAS 20553 # environment variable. 20554 INST_LINGUAS= 20555 if test -n "$ALL_LINGUAS"; then 20556 for presentlang in $ALL_LINGUAS; do 20557 useit=no 20558 if test "%UNSET%" != "$LINGUAS"; then 20559 desiredlanguages="$LINGUAS" 20560 else 20561 desiredlanguages="$ALL_LINGUAS" 20562 fi 20563 for desiredlang in $desiredlanguages; do 20564 # Use the presentlang catalog if desiredlang is 20565 # a. equal to presentlang, or 20566 # b. a variant of presentlang (because in this case, 20567 # presentlang can be used as a fallback for messages 20568 # which are not translated in the desiredlang catalog). 20569 case "$desiredlang" in 20570 "$presentlang"*) useit=yes;; 20571 esac 20572 done 20573 if test $useit = yes; then 20574 INST_LINGUAS="$INST_LINGUAS $presentlang" 20575 fi 20576 done 20577 fi 20578 CATALOGS= 20579 if test -n "$INST_LINGUAS"; then 20580 for lang in $INST_LINGUAS; do 20581 CATALOGS="$CATALOGS $lang.gmo" 20582 done 20583 fi 20584 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 20585 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" 20586 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 20587 if test -f "$f"; then 20588 case "$f" in 20589 *.orig | *.bak | *~) ;; 20590 *) cat "$f" >> "$ac_dir/Makefile" ;; 20591 esac 20592 fi 20593 done 20594 fi 20595 ;; 20596 esac 20597 done ;; 20598 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20599 # Autoconf 2.62 quotes --file arguments for eval, but not when files 20600 # are listed without --file. Let's play safe and only enable the eval 20601 # if we detect the quoting. 20602 case $CONFIG_FILES in 20603 *\'*) eval set x "$CONFIG_FILES" ;; 20604 *) set x $CONFIG_FILES ;; 20605 esac 20606 shift 20607 for mf 20608 do 20609 # Strip MF so we end up with the name of the file. 20610 mf=`echo "$mf" | sed -e 's/:.*$//'` 20611 # Check whether this is an Automake generated Makefile or not. 20612 # We used to match only the files named `Makefile.in', but 20613 # some people rename them; so instead we look at the file content. 20614 # Grep'ing the first line is not enough: some people post-process 20615 # each Makefile.in and add a new line on top of each file to say so. 20616 # Grep'ing the whole file is not good either: AIX grep has a line 20617 # limit of 2048, but all sed's we know have understand at least 4000. 20618 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20619 dirpart=`$as_dirname -- "$mf" || 20620$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20621 X"$mf" : 'X\(//\)[^/]' \| \ 20622 X"$mf" : 'X\(//\)$' \| \ 20623 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20624$as_echo X"$mf" | 20625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20626 s//\1/ 20627 q 20628 } 20629 /^X\(\/\/\)[^/].*/{ 20630 s//\1/ 20631 q 20632 } 20633 /^X\(\/\/\)$/{ 20634 s//\1/ 20635 q 20636 } 20637 /^X\(\/\).*/{ 20638 s//\1/ 20639 q 20640 } 20641 s/.*/./; q'` 20642 else 20643 continue 20644 fi 20645 # Extract the definition of DEPDIR, am__include, and am__quote 20646 # from the Makefile without running `make'. 20647 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20648 test -z "$DEPDIR" && continue 20649 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20650 test -z "am__include" && continue 20651 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20652 # When using ansi2knr, U may be empty or an underscore; expand it 20653 U=`sed -n 's/^U = //p' < "$mf"` 20654 # Find all dependency output files, they are included files with 20655 # $(DEPDIR) in their names. We invoke sed twice because it is the 20656 # simplest approach to changing $(DEPDIR) to its actual value in the 20657 # expansion. 20658 for file in `sed -n " 20659 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20660 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20661 # Make sure the directory exists. 20662 test -f "$dirpart/$file" && continue 20663 fdir=`$as_dirname -- "$file" || 20664$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20665 X"$file" : 'X\(//\)[^/]' \| \ 20666 X"$file" : 'X\(//\)$' \| \ 20667 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20668$as_echo X"$file" | 20669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20670 s//\1/ 20671 q 20672 } 20673 /^X\(\/\/\)[^/].*/{ 20674 s//\1/ 20675 q 20676 } 20677 /^X\(\/\/\)$/{ 20678 s//\1/ 20679 q 20680 } 20681 /^X\(\/\).*/{ 20682 s//\1/ 20683 q 20684 } 20685 s/.*/./; q'` 20686 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20687 # echo "creating $dirpart/$file" 20688 echo '# dummy' > "$dirpart/$file" 20689 done 20690 done 20691} 20692 ;; 20693 "libtool":C) 20694 20695 # See if we are running on zsh, and set the options which allow our 20696 # commands through without removal of \ escapes. 20697 if test -n "${ZSH_VERSION+set}" ; then 20698 setopt NO_GLOB_SUBST 20699 fi 20700 20701 cfgfile="${ofile}T" 20702 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20703 $RM "$cfgfile" 20704 20705 cat <<_LT_EOF >> "$cfgfile" 20706#! $SHELL 20707 20708# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20709# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20710# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20711# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20712# 20713# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20714# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 20715# Inc. 20716# Written by Gordon Matzigkeit, 1996 20717# 20718# This file is part of GNU Libtool. 20719# 20720# GNU Libtool is free software; you can redistribute it and/or 20721# modify it under the terms of the GNU General Public License as 20722# published by the Free Software Foundation; either version 2 of 20723# the License, or (at your option) any later version. 20724# 20725# As a special exception to the GNU General Public License, 20726# if you distribute this file as part of a program or library that 20727# is built using GNU Libtool, you may include this file under the 20728# same distribution terms that you use for the rest of that program. 20729# 20730# GNU Libtool is distributed in the hope that it will be useful, 20731# but WITHOUT ANY WARRANTY; without even the implied warranty of 20732# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20733# GNU General Public License for more details. 20734# 20735# You should have received a copy of the GNU General Public License 20736# along with GNU Libtool; see the file COPYING. If not, a copy 20737# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20738# obtained by writing to the Free Software Foundation, Inc., 20739# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20740 20741 20742# The names of the tagged configurations supported by this script. 20743available_tags="CXX " 20744 20745# ### BEGIN LIBTOOL CONFIG 20746 20747# Which release of libtool.m4 was used? 20748macro_version=$macro_version 20749macro_revision=$macro_revision 20750 20751# Whether or not to build shared libraries. 20752build_libtool_libs=$enable_shared 20753 20754# Whether or not to build static libraries. 20755build_old_libs=$enable_static 20756 20757# What type of objects to build. 20758pic_mode=$pic_mode 20759 20760# Whether or not to optimize for fast installation. 20761fast_install=$enable_fast_install 20762 20763# Shell to use when invoking shell scripts. 20764SHELL=$lt_SHELL 20765 20766# An echo program that protects backslashes. 20767ECHO=$lt_ECHO 20768 20769# The host system. 20770host_alias=$host_alias 20771host=$host 20772host_os=$host_os 20773 20774# The build system. 20775build_alias=$build_alias 20776build=$build 20777build_os=$build_os 20778 20779# A sed program that does not truncate output. 20780SED=$lt_SED 20781 20782# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20783Xsed="\$SED -e 1s/^X//" 20784 20785# A grep program that handles long lines. 20786GREP=$lt_GREP 20787 20788# An ERE matcher. 20789EGREP=$lt_EGREP 20790 20791# A literal string matcher. 20792FGREP=$lt_FGREP 20793 20794# A BSD- or MS-compatible name lister. 20795NM=$lt_NM 20796 20797# Whether we need soft or hard links. 20798LN_S=$lt_LN_S 20799 20800# What is the maximum length of a command? 20801max_cmd_len=$max_cmd_len 20802 20803# Object file suffix (normally "o"). 20804objext=$ac_objext 20805 20806# Executable file suffix (normally ""). 20807exeext=$exeext 20808 20809# whether the shell understands "unset". 20810lt_unset=$lt_unset 20811 20812# turn spaces into newlines. 20813SP2NL=$lt_lt_SP2NL 20814 20815# turn newlines into spaces. 20816NL2SP=$lt_lt_NL2SP 20817 20818# convert \$build file names to \$host format. 20819to_host_file_cmd=$lt_cv_to_host_file_cmd 20820 20821# convert \$build files to toolchain format. 20822to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20823 20824# An object symbol dumper. 20825OBJDUMP=$lt_OBJDUMP 20826 20827# Method to check whether dependent libraries are shared objects. 20828deplibs_check_method=$lt_deplibs_check_method 20829 20830# Command to use when deplibs_check_method = "file_magic". 20831file_magic_cmd=$lt_file_magic_cmd 20832 20833# How to find potential files when deplibs_check_method = "file_magic". 20834file_magic_glob=$lt_file_magic_glob 20835 20836# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20837want_nocaseglob=$lt_want_nocaseglob 20838 20839# DLL creation program. 20840DLLTOOL=$lt_DLLTOOL 20841 20842# Command to associate shared and link libraries. 20843sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20844 20845# The archiver. 20846AR=$lt_AR 20847 20848# Flags to create an archive. 20849AR_FLAGS=$lt_AR_FLAGS 20850 20851# How to feed a file listing to the archiver. 20852archiver_list_spec=$lt_archiver_list_spec 20853 20854# A symbol stripping program. 20855STRIP=$lt_STRIP 20856 20857# Commands used to install an old-style archive. 20858RANLIB=$lt_RANLIB 20859old_postinstall_cmds=$lt_old_postinstall_cmds 20860old_postuninstall_cmds=$lt_old_postuninstall_cmds 20861 20862# Whether to use a lock for old archive extraction. 20863lock_old_archive_extraction=$lock_old_archive_extraction 20864 20865# A C compiler. 20866LTCC=$lt_CC 20867 20868# LTCC compiler flags. 20869LTCFLAGS=$lt_CFLAGS 20870 20871# Take the output of nm and produce a listing of raw symbols and C names. 20872global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20873 20874# Transform the output of nm in a proper C declaration. 20875global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20876 20877# Transform the output of nm in a C name address pair. 20878global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20879 20880# Transform the output of nm in a C name address pair when lib prefix is needed. 20881global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20882 20883# Specify filename containing input files for \$NM. 20884nm_file_list_spec=$lt_nm_file_list_spec 20885 20886# The root where to search for dependent libraries,and in which our libraries should be installed. 20887lt_sysroot=$lt_sysroot 20888 20889# The name of the directory that contains temporary libtool files. 20890objdir=$objdir 20891 20892# Used to examine libraries when file_magic_cmd begins with "file". 20893MAGIC_CMD=$MAGIC_CMD 20894 20895# Must we lock files when doing compilation? 20896need_locks=$lt_need_locks 20897 20898# Manifest tool. 20899MANIFEST_TOOL=$lt_MANIFEST_TOOL 20900 20901# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20902DSYMUTIL=$lt_DSYMUTIL 20903 20904# Tool to change global to local symbols on Mac OS X. 20905NMEDIT=$lt_NMEDIT 20906 20907# Tool to manipulate fat objects and archives on Mac OS X. 20908LIPO=$lt_LIPO 20909 20910# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20911OTOOL=$lt_OTOOL 20912 20913# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20914OTOOL64=$lt_OTOOL64 20915 20916# Old archive suffix (normally "a"). 20917libext=$libext 20918 20919# Shared library suffix (normally ".so"). 20920shrext_cmds=$lt_shrext_cmds 20921 20922# The commands to extract the exported symbol list from a shared archive. 20923extract_expsyms_cmds=$lt_extract_expsyms_cmds 20924 20925# Variables whose values should be saved in libtool wrapper scripts and 20926# restored at link time. 20927variables_saved_for_relink=$lt_variables_saved_for_relink 20928 20929# Do we need the "lib" prefix for modules? 20930need_lib_prefix=$need_lib_prefix 20931 20932# Do we need a version for libraries? 20933need_version=$need_version 20934 20935# Library versioning type. 20936version_type=$version_type 20937 20938# Shared library runtime path variable. 20939runpath_var=$runpath_var 20940 20941# Shared library path variable. 20942shlibpath_var=$shlibpath_var 20943 20944# Is shlibpath searched before the hard-coded library search path? 20945shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20946 20947# Format of library name prefix. 20948libname_spec=$lt_libname_spec 20949 20950# List of archive names. First name is the real one, the rest are links. 20951# The last name is the one that the linker finds with -lNAME 20952library_names_spec=$lt_library_names_spec 20953 20954# The coded name of the library, if different from the real name. 20955soname_spec=$lt_soname_spec 20956 20957# Permission mode override for installation of shared libraries. 20958install_override_mode=$lt_install_override_mode 20959 20960# Command to use after installation of a shared archive. 20961postinstall_cmds=$lt_postinstall_cmds 20962 20963# Command to use after uninstallation of a shared archive. 20964postuninstall_cmds=$lt_postuninstall_cmds 20965 20966# Commands used to finish a libtool library installation in a directory. 20967finish_cmds=$lt_finish_cmds 20968 20969# As "finish_cmds", except a single script fragment to be evaled but 20970# not shown. 20971finish_eval=$lt_finish_eval 20972 20973# Whether we should hardcode library paths into libraries. 20974hardcode_into_libs=$hardcode_into_libs 20975 20976# Compile-time system search path for libraries. 20977sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20978 20979# Run-time system search path for libraries. 20980sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20981 20982# Whether dlopen is supported. 20983dlopen_support=$enable_dlopen 20984 20985# Whether dlopen of programs is supported. 20986dlopen_self=$enable_dlopen_self 20987 20988# Whether dlopen of statically linked programs is supported. 20989dlopen_self_static=$enable_dlopen_self_static 20990 20991# Commands to strip libraries. 20992old_striplib=$lt_old_striplib 20993striplib=$lt_striplib 20994 20995 20996# The linker used to build libraries. 20997LD=$lt_LD 20998 20999# How to create reloadable object files. 21000reload_flag=$lt_reload_flag 21001reload_cmds=$lt_reload_cmds 21002 21003# Commands used to build an old-style archive. 21004old_archive_cmds=$lt_old_archive_cmds 21005 21006# A language specific compiler. 21007CC=$lt_compiler 21008 21009# Is the compiler the GNU compiler? 21010with_gcc=$GCC 21011 21012# Compiler flag to turn off builtin functions. 21013no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21014 21015# Additional compiler flags for building library objects. 21016pic_flag=$lt_lt_prog_compiler_pic 21017 21018# How to pass a linker flag through the compiler. 21019wl=$lt_lt_prog_compiler_wl 21020 21021# Compiler flag to prevent dynamic linking. 21022link_static_flag=$lt_lt_prog_compiler_static 21023 21024# Does compiler simultaneously support -c and -o options? 21025compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21026 21027# Whether or not to add -lc for building shared libraries. 21028build_libtool_need_lc=$archive_cmds_need_lc 21029 21030# Whether or not to disallow shared libs when runtime libs are static. 21031allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21032 21033# Compiler flag to allow reflexive dlopens. 21034export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21035 21036# Compiler flag to generate shared objects directly from archives. 21037whole_archive_flag_spec=$lt_whole_archive_flag_spec 21038 21039# Whether the compiler copes with passing no objects directly. 21040compiler_needs_object=$lt_compiler_needs_object 21041 21042# Create an old-style archive from a shared archive. 21043old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21044 21045# Create a temporary old-style archive to link instead of a shared archive. 21046old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21047 21048# Commands used to build a shared archive. 21049archive_cmds=$lt_archive_cmds 21050archive_expsym_cmds=$lt_archive_expsym_cmds 21051 21052# Commands used to build a loadable module if different from building 21053# a shared archive. 21054module_cmds=$lt_module_cmds 21055module_expsym_cmds=$lt_module_expsym_cmds 21056 21057# Whether we are building with GNU ld or not. 21058with_gnu_ld=$lt_with_gnu_ld 21059 21060# Flag that allows shared libraries with undefined symbols to be built. 21061allow_undefined_flag=$lt_allow_undefined_flag 21062 21063# Flag that enforces no undefined symbols. 21064no_undefined_flag=$lt_no_undefined_flag 21065 21066# Flag to hardcode \$libdir into a binary during linking. 21067# This must work even if \$libdir does not exist 21068hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21069 21070# If ld is used when linking, flag to hardcode \$libdir into a binary 21071# during linking. This must work even if \$libdir does not exist. 21072hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 21073 21074# Whether we need a single "-rpath" flag with a separated argument. 21075hardcode_libdir_separator=$lt_hardcode_libdir_separator 21076 21077# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21078# DIR into the resulting binary. 21079hardcode_direct=$hardcode_direct 21080 21081# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21082# DIR into the resulting binary and the resulting library dependency is 21083# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21084# library is relocated. 21085hardcode_direct_absolute=$hardcode_direct_absolute 21086 21087# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21088# into the resulting binary. 21089hardcode_minus_L=$hardcode_minus_L 21090 21091# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21092# into the resulting binary. 21093hardcode_shlibpath_var=$hardcode_shlibpath_var 21094 21095# Set to "yes" if building a shared library automatically hardcodes DIR 21096# into the library and all subsequent libraries and executables linked 21097# against it. 21098hardcode_automatic=$hardcode_automatic 21099 21100# Set to yes if linker adds runtime paths of dependent libraries 21101# to runtime path list. 21102inherit_rpath=$inherit_rpath 21103 21104# Whether libtool must link a program against all its dependency libraries. 21105link_all_deplibs=$link_all_deplibs 21106 21107# Set to "yes" if exported symbols are required. 21108always_export_symbols=$always_export_symbols 21109 21110# The commands to list exported symbols. 21111export_symbols_cmds=$lt_export_symbols_cmds 21112 21113# Symbols that should not be listed in the preloaded symbols. 21114exclude_expsyms=$lt_exclude_expsyms 21115 21116# Symbols that must always be exported. 21117include_expsyms=$lt_include_expsyms 21118 21119# Commands necessary for linking programs (against libraries) with templates. 21120prelink_cmds=$lt_prelink_cmds 21121 21122# Commands necessary for finishing linking programs. 21123postlink_cmds=$lt_postlink_cmds 21124 21125# Specify filename containing input files. 21126file_list_spec=$lt_file_list_spec 21127 21128# How to hardcode a shared library path into an executable. 21129hardcode_action=$hardcode_action 21130 21131# The directories searched by this compiler when creating a shared library. 21132compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 21133 21134# Dependencies to place before and after the objects being linked to 21135# create a shared library. 21136predep_objects=$lt_predep_objects 21137postdep_objects=$lt_postdep_objects 21138predeps=$lt_predeps 21139postdeps=$lt_postdeps 21140 21141# The library search path used internally by the compiler when linking 21142# a shared library. 21143compiler_lib_search_path=$lt_compiler_lib_search_path 21144 21145# ### END LIBTOOL CONFIG 21146 21147_LT_EOF 21148 21149 case $host_os in 21150 aix3*) 21151 cat <<\_LT_EOF >> "$cfgfile" 21152# AIX sometimes has problems with the GCC collect2 program. For some 21153# reason, if we set the COLLECT_NAMES environment variable, the problems 21154# vanish in a puff of smoke. 21155if test "X${COLLECT_NAMES+set}" != Xset; then 21156 COLLECT_NAMES= 21157 export COLLECT_NAMES 21158fi 21159_LT_EOF 21160 ;; 21161 esac 21162 21163 21164ltmain="$ac_aux_dir/ltmain.sh" 21165 21166 21167 # We use sed instead of cat because bash on DJGPP gets confused if 21168 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21169 # text mode, it properly converts lines to CR/LF. This bash problem 21170 # is reportedly fixed, but why not run on old versions too? 21171 sed '$q' "$ltmain" >> "$cfgfile" \ 21172 || (rm -f "$cfgfile"; exit 1) 21173 21174 if test x"$xsi_shell" = xyes; then 21175 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21176func_dirname ()\ 21177{\ 21178\ case ${1} in\ 21179\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21180\ * ) func_dirname_result="${3}" ;;\ 21181\ esac\ 21182} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21183 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21184 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21185test 0 -eq $? || _lt_function_replace_fail=: 21186 21187 21188 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21189func_basename ()\ 21190{\ 21191\ func_basename_result="${1##*/}"\ 21192} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21193 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21195test 0 -eq $? || _lt_function_replace_fail=: 21196 21197 21198 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21199func_dirname_and_basename ()\ 21200{\ 21201\ case ${1} in\ 21202\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21203\ * ) func_dirname_result="${3}" ;;\ 21204\ esac\ 21205\ func_basename_result="${1##*/}"\ 21206} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21207 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21208 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21209test 0 -eq $? || _lt_function_replace_fail=: 21210 21211 21212 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21213func_stripname ()\ 21214{\ 21215\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21216\ # positional parameters, so assign one to ordinary parameter first.\ 21217\ func_stripname_result=${3}\ 21218\ func_stripname_result=${func_stripname_result#"${1}"}\ 21219\ func_stripname_result=${func_stripname_result%"${2}"}\ 21220} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21221 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21223test 0 -eq $? || _lt_function_replace_fail=: 21224 21225 21226 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21227func_split_long_opt ()\ 21228{\ 21229\ func_split_long_opt_name=${1%%=*}\ 21230\ func_split_long_opt_arg=${1#*=}\ 21231} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21232 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21233 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21234test 0 -eq $? || _lt_function_replace_fail=: 21235 21236 21237 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21238func_split_short_opt ()\ 21239{\ 21240\ func_split_short_opt_arg=${1#??}\ 21241\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21242} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21243 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21245test 0 -eq $? || _lt_function_replace_fail=: 21246 21247 21248 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21249func_lo2o ()\ 21250{\ 21251\ case ${1} in\ 21252\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21253\ *) func_lo2o_result=${1} ;;\ 21254\ esac\ 21255} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21256 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21258test 0 -eq $? || _lt_function_replace_fail=: 21259 21260 21261 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21262func_xform ()\ 21263{\ 21264 func_xform_result=${1%.*}.lo\ 21265} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21266 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21268test 0 -eq $? || _lt_function_replace_fail=: 21269 21270 21271 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21272func_arith ()\ 21273{\ 21274 func_arith_result=$(( $* ))\ 21275} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21276 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21278test 0 -eq $? || _lt_function_replace_fail=: 21279 21280 21281 sed -e '/^func_len ()$/,/^} # func_len /c\ 21282func_len ()\ 21283{\ 21284 func_len_result=${#1}\ 21285} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21286 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21287 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21288test 0 -eq $? || _lt_function_replace_fail=: 21289 21290fi 21291 21292if test x"$lt_shell_append" = xyes; then 21293 sed -e '/^func_append ()$/,/^} # func_append /c\ 21294func_append ()\ 21295{\ 21296 eval "${1}+=\\${2}"\ 21297} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21298 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21300test 0 -eq $? || _lt_function_replace_fail=: 21301 21302 21303 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21304func_append_quoted ()\ 21305{\ 21306\ func_quote_for_eval "${2}"\ 21307\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21308} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21309 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21310 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21311test 0 -eq $? || _lt_function_replace_fail=: 21312 21313 21314 # Save a `func_append' function call where possible by direct use of '+=' 21315 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21316 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21318 test 0 -eq $? || _lt_function_replace_fail=: 21319else 21320 # Save a `func_append' function call even when '+=' is not available 21321 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21322 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21323 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21324 test 0 -eq $? || _lt_function_replace_fail=: 21325fi 21326 21327if test x"$_lt_function_replace_fail" = x":"; then 21328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21329$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21330fi 21331 21332 21333 mv -f "$cfgfile" "$ofile" || 21334 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21335 chmod +x "$ofile" 21336 21337 21338 cat <<_LT_EOF >> "$ofile" 21339 21340# ### BEGIN LIBTOOL TAG CONFIG: CXX 21341 21342# The linker used to build libraries. 21343LD=$lt_LD_CXX 21344 21345# How to create reloadable object files. 21346reload_flag=$lt_reload_flag_CXX 21347reload_cmds=$lt_reload_cmds_CXX 21348 21349# Commands used to build an old-style archive. 21350old_archive_cmds=$lt_old_archive_cmds_CXX 21351 21352# A language specific compiler. 21353CC=$lt_compiler_CXX 21354 21355# Is the compiler the GNU compiler? 21356with_gcc=$GCC_CXX 21357 21358# Compiler flag to turn off builtin functions. 21359no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 21360 21361# Additional compiler flags for building library objects. 21362pic_flag=$lt_lt_prog_compiler_pic_CXX 21363 21364# How to pass a linker flag through the compiler. 21365wl=$lt_lt_prog_compiler_wl_CXX 21366 21367# Compiler flag to prevent dynamic linking. 21368link_static_flag=$lt_lt_prog_compiler_static_CXX 21369 21370# Does compiler simultaneously support -c and -o options? 21371compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 21372 21373# Whether or not to add -lc for building shared libraries. 21374build_libtool_need_lc=$archive_cmds_need_lc_CXX 21375 21376# Whether or not to disallow shared libs when runtime libs are static. 21377allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 21378 21379# Compiler flag to allow reflexive dlopens. 21380export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 21381 21382# Compiler flag to generate shared objects directly from archives. 21383whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 21384 21385# Whether the compiler copes with passing no objects directly. 21386compiler_needs_object=$lt_compiler_needs_object_CXX 21387 21388# Create an old-style archive from a shared archive. 21389old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 21390 21391# Create a temporary old-style archive to link instead of a shared archive. 21392old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 21393 21394# Commands used to build a shared archive. 21395archive_cmds=$lt_archive_cmds_CXX 21396archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 21397 21398# Commands used to build a loadable module if different from building 21399# a shared archive. 21400module_cmds=$lt_module_cmds_CXX 21401module_expsym_cmds=$lt_module_expsym_cmds_CXX 21402 21403# Whether we are building with GNU ld or not. 21404with_gnu_ld=$lt_with_gnu_ld_CXX 21405 21406# Flag that allows shared libraries with undefined symbols to be built. 21407allow_undefined_flag=$lt_allow_undefined_flag_CXX 21408 21409# Flag that enforces no undefined symbols. 21410no_undefined_flag=$lt_no_undefined_flag_CXX 21411 21412# Flag to hardcode \$libdir into a binary during linking. 21413# This must work even if \$libdir does not exist 21414hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 21415 21416# If ld is used when linking, flag to hardcode \$libdir into a binary 21417# during linking. This must work even if \$libdir does not exist. 21418hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 21419 21420# Whether we need a single "-rpath" flag with a separated argument. 21421hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 21422 21423# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21424# DIR into the resulting binary. 21425hardcode_direct=$hardcode_direct_CXX 21426 21427# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21428# DIR into the resulting binary and the resulting library dependency is 21429# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21430# library is relocated. 21431hardcode_direct_absolute=$hardcode_direct_absolute_CXX 21432 21433# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21434# into the resulting binary. 21435hardcode_minus_L=$hardcode_minus_L_CXX 21436 21437# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21438# into the resulting binary. 21439hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 21440 21441# Set to "yes" if building a shared library automatically hardcodes DIR 21442# into the library and all subsequent libraries and executables linked 21443# against it. 21444hardcode_automatic=$hardcode_automatic_CXX 21445 21446# Set to yes if linker adds runtime paths of dependent libraries 21447# to runtime path list. 21448inherit_rpath=$inherit_rpath_CXX 21449 21450# Whether libtool must link a program against all its dependency libraries. 21451link_all_deplibs=$link_all_deplibs_CXX 21452 21453# Set to "yes" if exported symbols are required. 21454always_export_symbols=$always_export_symbols_CXX 21455 21456# The commands to list exported symbols. 21457export_symbols_cmds=$lt_export_symbols_cmds_CXX 21458 21459# Symbols that should not be listed in the preloaded symbols. 21460exclude_expsyms=$lt_exclude_expsyms_CXX 21461 21462# Symbols that must always be exported. 21463include_expsyms=$lt_include_expsyms_CXX 21464 21465# Commands necessary for linking programs (against libraries) with templates. 21466prelink_cmds=$lt_prelink_cmds_CXX 21467 21468# Commands necessary for finishing linking programs. 21469postlink_cmds=$lt_postlink_cmds_CXX 21470 21471# Specify filename containing input files. 21472file_list_spec=$lt_file_list_spec_CXX 21473 21474# How to hardcode a shared library path into an executable. 21475hardcode_action=$hardcode_action_CXX 21476 21477# The directories searched by this compiler when creating a shared library. 21478compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 21479 21480# Dependencies to place before and after the objects being linked to 21481# create a shared library. 21482predep_objects=$lt_predep_objects_CXX 21483postdep_objects=$lt_postdep_objects_CXX 21484predeps=$lt_predeps_CXX 21485postdeps=$lt_postdeps_CXX 21486 21487# The library search path used internally by the compiler when linking 21488# a shared library. 21489compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 21490 21491# ### END LIBTOOL TAG CONFIG: CXX 21492_LT_EOF 21493 21494 ;; 21495 21496 esac 21497done # for ac_tag 21498 21499 21500as_fn_exit 0 21501_ACEOF 21502ac_clean_files=$ac_clean_files_save 21503 21504test $ac_write_fail = 0 || 21505 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21506 21507 21508# configure is writing to config.log, and then calls config.status. 21509# config.status does its own redirection, appending to config.log. 21510# Unfortunately, on DOS this fails, as config.log is still kept open 21511# by configure, so config.status won't be able to write to it; its 21512# output is simply discarded. So we exec the FD to /dev/null, 21513# effectively closing config.log, so it can be properly (re)opened and 21514# appended to by config.status. When coming back to configure, we 21515# need to make the FD available again. 21516if test "$no_create" != yes; then 21517 ac_cs_success=: 21518 ac_config_status_args= 21519 test "$silent" = yes && 21520 ac_config_status_args="$ac_config_status_args --quiet" 21521 exec 5>/dev/null 21522 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21523 exec 5>>config.log 21524 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21525 # would make configure fail if this is the last instruction. 21526 $ac_cs_success || as_fn_exit 1 21527fi 21528if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21530$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21531fi 21532 21533