1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for fox 1.6.57. 4# 5# Report bugs to <jeroen@fox-toolkit.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: jeroen@fox-toolkit.com about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='fox' 592PACKAGE_TARNAME='fox' 593PACKAGE_VERSION='1.6.57' 594PACKAGE_STRING='fox 1.6.57' 595PACKAGE_BUGREPORT='jeroen@fox-toolkit.com' 596PACKAGE_URL='' 597 598ac_unique_file="include/fx.h" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_header_list= 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640GL_LIBS 641X_BASE_LIBS 642FOX_BYTEORDER 643X_EXTRA_LIBS 644X_LIBS 645X_PRE_LIBS 646X_CFLAGS 647XMKMF 648CXXCPP 649LT_SYS_LIBRARY_PATH 650OTOOL64 651OTOOL 652LIPO 653NMEDIT 654DSYMUTIL 655MANIFEST_TOOL 656RANLIB 657ac_ct_AR 658AR 659DLLTOOL 660OBJDUMP 661NM 662ac_ct_DUMPBIN 663DUMPBIN 664LD 665FGREP 666SED 667host_os 668host_vendor 669host_cpu 670host 671build_os 672build_vendor 673build_cpu 674build 675LIBTOOL 676LN_S 677am__fastdepCXX_FALSE 678am__fastdepCXX_TRUE 679CXXDEPMODE 680ac_ct_CXX 681CXXFLAGS 682CXX 683EGREP 684GREP 685CPP 686am__fastdepCC_FALSE 687am__fastdepCC_TRUE 688CCDEPMODE 689am__nodep 690AMDEPBACKSLASH 691AMDEP_FALSE 692AMDEP_TRUE 693am__quote 694am__include 695DEPDIR 696OBJEXT 697EXEEXT 698ac_ct_CC 699CPPFLAGS 700LDFLAGS 701CFLAGS 702CC 703LT_AGE 704LT_REVISION 705LT_CURRENT 706LT_RELEASE 707FOX_PATCH_LEVEL 708FOX_MINOR_VERSION 709FOX_MAJOR_VERSION 710AM_BACKSLASH 711AM_DEFAULT_VERBOSITY 712AM_DEFAULT_V 713AM_V 714am__untar 715am__tar 716AMTAR 717am__leading_dot 718SET_MAKE 719AWK 720mkdir_p 721MKDIR_P 722INSTALL_STRIP_PROGRAM 723STRIP 724install_sh 725MAKEINFO 726AUTOHEADER 727AUTOMAKE 728AUTOCONF 729ACLOCAL 730VERSION 731PACKAGE 732CYGPATH_W 733am__isrc 734INSTALL_DATA 735INSTALL_SCRIPT 736INSTALL_PROGRAM 737target_alias 738host_alias 739build_alias 740LIBS 741ECHO_T 742ECHO_N 743ECHO_C 744DEFS 745mandir 746localedir 747libdir 748psdir 749pdfdir 750dvidir 751htmldir 752infodir 753docdir 754oldincludedir 755includedir 756localstatedir 757sharedstatedir 758sysconfdir 759datadir 760datarootdir 761libexecdir 762sbindir 763bindir 764program_transform_name 765prefix 766exec_prefix 767PACKAGE_URL 768PACKAGE_BUGREPORT 769PACKAGE_STRING 770PACKAGE_VERSION 771PACKAGE_TARNAME 772PACKAGE_NAME 773PATH_SEPARATOR 774SHELL' 775ac_subst_files='' 776ac_user_opts=' 777enable_option_checking 778enable_silent_rules 779enable_dependency_tracking 780enable_shared 781enable_static 782with_pic 783enable_fast_install 784with_aix_soname 785with_gnu_ld 786with_sysroot 787enable_libtool_lock 788with_x 789enable_debug 790enable_release 791with_profiling 792enable_jpeg 793enable_png 794enable_tiff 795enable_zlib 796enable_bz2lib 797with_xft 798with_xshm 799with_shape 800with_xcursor 801with_xrender 802with_xrandr 803with_xfixes 804with_xinput 805with_xim 806with_opengl 807' 808 ac_precious_vars='build_alias 809host_alias 810target_alias 811CC 812CFLAGS 813LDFLAGS 814LIBS 815CPPFLAGS 816CPP 817CXX 818CXXFLAGS 819CCC 820LT_SYS_LIBRARY_PATH 821CXXCPP 822XMKMF' 823 824 825# Initialize some variables set by options. 826ac_init_help= 827ac_init_version=false 828ac_unrecognized_opts= 829ac_unrecognized_sep= 830# The variables have the same names as the options, with 831# dashes changed to underlines. 832cache_file=/dev/null 833exec_prefix=NONE 834no_create= 835no_recursion= 836prefix=NONE 837program_prefix=NONE 838program_suffix=NONE 839program_transform_name=s,x,x, 840silent= 841site= 842srcdir= 843verbose= 844x_includes=NONE 845x_libraries=NONE 846 847# Installation directory options. 848# These are left unexpanded so users can "make install exec_prefix=/foo" 849# and all the variables that are supposed to be based on exec_prefix 850# by default will actually change. 851# Use braces instead of parens because sh, perl, etc. also accept them. 852# (The list follows the same order as the GNU Coding Standards.) 853bindir='${exec_prefix}/bin' 854sbindir='${exec_prefix}/sbin' 855libexecdir='${exec_prefix}/libexec' 856datarootdir='${prefix}/share' 857datadir='${datarootdir}' 858sysconfdir='${prefix}/etc' 859sharedstatedir='${prefix}/com' 860localstatedir='${prefix}/var' 861includedir='${prefix}/include' 862oldincludedir='/usr/include' 863docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 864infodir='${datarootdir}/info' 865htmldir='${docdir}' 866dvidir='${docdir}' 867pdfdir='${docdir}' 868psdir='${docdir}' 869libdir='${exec_prefix}/lib' 870localedir='${datarootdir}/locale' 871mandir='${datarootdir}/man' 872 873ac_prev= 874ac_dashdash= 875for ac_option 876do 877 # If the previous option needs an argument, assign it. 878 if test -n "$ac_prev"; then 879 eval $ac_prev=\$ac_option 880 ac_prev= 881 continue 882 fi 883 884 case $ac_option in 885 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 886 *=) ac_optarg= ;; 887 *) ac_optarg=yes ;; 888 esac 889 890 # Accept the important Cygnus configure options, so we can diagnose typos. 891 892 case $ac_dashdash$ac_option in 893 --) 894 ac_dashdash=yes ;; 895 896 -bindir | --bindir | --bindi | --bind | --bin | --bi) 897 ac_prev=bindir ;; 898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 899 bindir=$ac_optarg ;; 900 901 -build | --build | --buil | --bui | --bu) 902 ac_prev=build_alias ;; 903 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 904 build_alias=$ac_optarg ;; 905 906 -cache-file | --cache-file | --cache-fil | --cache-fi \ 907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 908 ac_prev=cache_file ;; 909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 911 cache_file=$ac_optarg ;; 912 913 --config-cache | -C) 914 cache_file=config.cache ;; 915 916 -datadir | --datadir | --datadi | --datad) 917 ac_prev=datadir ;; 918 -datadir=* | --datadir=* | --datadi=* | --datad=*) 919 datadir=$ac_optarg ;; 920 921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 922 | --dataroo | --dataro | --datar) 923 ac_prev=datarootdir ;; 924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 926 datarootdir=$ac_optarg ;; 927 928 -disable-* | --disable-*) 929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 930 # Reject names that are not valid shell variable names. 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932 as_fn_error $? "invalid feature name: $ac_useropt" 933 ac_useropt_orig=$ac_useropt 934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 935 case $ac_user_opts in 936 *" 937"enable_$ac_useropt" 938"*) ;; 939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 940 ac_unrecognized_sep=', ';; 941 esac 942 eval enable_$ac_useropt=no ;; 943 944 -docdir | --docdir | --docdi | --doc | --do) 945 ac_prev=docdir ;; 946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 947 docdir=$ac_optarg ;; 948 949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 950 ac_prev=dvidir ;; 951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 952 dvidir=$ac_optarg ;; 953 954 -enable-* | --enable-*) 955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 956 # Reject names that are not valid shell variable names. 957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 958 as_fn_error $? "invalid feature name: $ac_useropt" 959 ac_useropt_orig=$ac_useropt 960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 961 case $ac_user_opts in 962 *" 963"enable_$ac_useropt" 964"*) ;; 965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 966 ac_unrecognized_sep=', ';; 967 esac 968 eval enable_$ac_useropt=\$ac_optarg ;; 969 970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 972 | --exec | --exe | --ex) 973 ac_prev=exec_prefix ;; 974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 976 | --exec=* | --exe=* | --ex=*) 977 exec_prefix=$ac_optarg ;; 978 979 -gas | --gas | --ga | --g) 980 # Obsolete; use --with-gas. 981 with_gas=yes ;; 982 983 -help | --help | --hel | --he | -h) 984 ac_init_help=long ;; 985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 986 ac_init_help=recursive ;; 987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 988 ac_init_help=short ;; 989 990 -host | --host | --hos | --ho) 991 ac_prev=host_alias ;; 992 -host=* | --host=* | --hos=* | --ho=*) 993 host_alias=$ac_optarg ;; 994 995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 996 ac_prev=htmldir ;; 997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 998 | --ht=*) 999 htmldir=$ac_optarg ;; 1000 1001 -includedir | --includedir | --includedi | --included | --include \ 1002 | --includ | --inclu | --incl | --inc) 1003 ac_prev=includedir ;; 1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1005 | --includ=* | --inclu=* | --incl=* | --inc=*) 1006 includedir=$ac_optarg ;; 1007 1008 -infodir | --infodir | --infodi | --infod | --info | --inf) 1009 ac_prev=infodir ;; 1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1011 infodir=$ac_optarg ;; 1012 1013 -libdir | --libdir | --libdi | --libd) 1014 ac_prev=libdir ;; 1015 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1016 libdir=$ac_optarg ;; 1017 1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1019 | --libexe | --libex | --libe) 1020 ac_prev=libexecdir ;; 1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1022 | --libexe=* | --libex=* | --libe=*) 1023 libexecdir=$ac_optarg ;; 1024 1025 -localedir | --localedir | --localedi | --localed | --locale) 1026 ac_prev=localedir ;; 1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1028 localedir=$ac_optarg ;; 1029 1030 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1031 | --localstate | --localstat | --localsta | --localst | --locals) 1032 ac_prev=localstatedir ;; 1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1035 localstatedir=$ac_optarg ;; 1036 1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1038 ac_prev=mandir ;; 1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1040 mandir=$ac_optarg ;; 1041 1042 -nfp | --nfp | --nf) 1043 # Obsolete; use --without-fp. 1044 with_fp=no ;; 1045 1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1047 | --no-cr | --no-c | -n) 1048 no_create=yes ;; 1049 1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1052 no_recursion=yes ;; 1053 1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1056 | --oldin | --oldi | --old | --ol | --o) 1057 ac_prev=oldincludedir ;; 1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1061 oldincludedir=$ac_optarg ;; 1062 1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1064 ac_prev=prefix ;; 1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1066 prefix=$ac_optarg ;; 1067 1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1069 | --program-pre | --program-pr | --program-p) 1070 ac_prev=program_prefix ;; 1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1073 program_prefix=$ac_optarg ;; 1074 1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1076 | --program-suf | --program-su | --program-s) 1077 ac_prev=program_suffix ;; 1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1080 program_suffix=$ac_optarg ;; 1081 1082 -program-transform-name | --program-transform-name \ 1083 | --program-transform-nam | --program-transform-na \ 1084 | --program-transform-n | --program-transform- \ 1085 | --program-transform | --program-transfor \ 1086 | --program-transfo | --program-transf \ 1087 | --program-trans | --program-tran \ 1088 | --progr-tra | --program-tr | --program-t) 1089 ac_prev=program_transform_name ;; 1090 -program-transform-name=* | --program-transform-name=* \ 1091 | --program-transform-nam=* | --program-transform-na=* \ 1092 | --program-transform-n=* | --program-transform-=* \ 1093 | --program-transform=* | --program-transfor=* \ 1094 | --program-transfo=* | --program-transf=* \ 1095 | --program-trans=* | --program-tran=* \ 1096 | --progr-tra=* | --program-tr=* | --program-t=*) 1097 program_transform_name=$ac_optarg ;; 1098 1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1100 ac_prev=pdfdir ;; 1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1102 pdfdir=$ac_optarg ;; 1103 1104 -psdir | --psdir | --psdi | --psd | --ps) 1105 ac_prev=psdir ;; 1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1107 psdir=$ac_optarg ;; 1108 1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1110 | -silent | --silent | --silen | --sile | --sil) 1111 silent=yes ;; 1112 1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1114 ac_prev=sbindir ;; 1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1116 | --sbi=* | --sb=*) 1117 sbindir=$ac_optarg ;; 1118 1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1121 | --sharedst | --shareds | --shared | --share | --shar \ 1122 | --sha | --sh) 1123 ac_prev=sharedstatedir ;; 1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1127 | --sha=* | --sh=*) 1128 sharedstatedir=$ac_optarg ;; 1129 1130 -site | --site | --sit) 1131 ac_prev=site ;; 1132 -site=* | --site=* | --sit=*) 1133 site=$ac_optarg ;; 1134 1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1136 ac_prev=srcdir ;; 1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1138 srcdir=$ac_optarg ;; 1139 1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1141 | --syscon | --sysco | --sysc | --sys | --sy) 1142 ac_prev=sysconfdir ;; 1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1145 sysconfdir=$ac_optarg ;; 1146 1147 -target | --target | --targe | --targ | --tar | --ta | --t) 1148 ac_prev=target_alias ;; 1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1150 target_alias=$ac_optarg ;; 1151 1152 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1153 verbose=yes ;; 1154 1155 -version | --version | --versio | --versi | --vers | -V) 1156 ac_init_version=: ;; 1157 1158 -with-* | --with-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: $ac_useropt" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"with_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=\$ac_optarg ;; 1173 1174 -without-* | --without-*) 1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1176 # Reject names that are not valid shell variable names. 1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1178 as_fn_error $? "invalid package name: $ac_useropt" 1179 ac_useropt_orig=$ac_useropt 1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1181 case $ac_user_opts in 1182 *" 1183"with_$ac_useropt" 1184"*) ;; 1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1186 ac_unrecognized_sep=', ';; 1187 esac 1188 eval with_$ac_useropt=no ;; 1189 1190 --x) 1191 # Obsolete; use --with-x. 1192 with_x=yes ;; 1193 1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1195 | --x-incl | --x-inc | --x-in | --x-i) 1196 ac_prev=x_includes ;; 1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1199 x_includes=$ac_optarg ;; 1200 1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1203 ac_prev=x_libraries ;; 1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1206 x_libraries=$ac_optarg ;; 1207 1208 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1209Try \`$0 --help' for more information" 1210 ;; 1211 1212 *=*) 1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1214 # Reject names that are not valid shell variable names. 1215 case $ac_envvar in #( 1216 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1217 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1218 esac 1219 eval $ac_envvar=\$ac_optarg 1220 export $ac_envvar ;; 1221 1222 *) 1223 # FIXME: should be removed in autoconf 3.0. 1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1227 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1228 ;; 1229 1230 esac 1231done 1232 1233if test -n "$ac_prev"; then 1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1235 as_fn_error $? "missing argument to $ac_option" 1236fi 1237 1238if test -n "$ac_unrecognized_opts"; then 1239 case $enable_option_checking in 1240 no) ;; 1241 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1243 esac 1244fi 1245 1246# Check all directory arguments for consistency. 1247for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1248 datadir sysconfdir sharedstatedir localstatedir includedir \ 1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1250 libdir localedir mandir 1251do 1252 eval ac_val=\$$ac_var 1253 # Remove trailing slashes. 1254 case $ac_val in 1255 */ ) 1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1257 eval $ac_var=\$ac_val;; 1258 esac 1259 # Be sure to have absolute directory names. 1260 case $ac_val in 1261 [\\/$]* | ?:[\\/]* ) continue;; 1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1263 esac 1264 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1265done 1266 1267# There might be people who depend on the old broken behavior: `$host' 1268# used to hold the argument of --host etc. 1269# FIXME: To remove some day. 1270build=$build_alias 1271host=$host_alias 1272target=$target_alias 1273 1274# FIXME: To remove some day. 1275if test "x$host_alias" != x; then 1276 if test "x$build_alias" = x; then 1277 cross_compiling=maybe 1278 elif test "x$build_alias" != "x$host_alias"; then 1279 cross_compiling=yes 1280 fi 1281fi 1282 1283ac_tool_prefix= 1284test -n "$host_alias" && ac_tool_prefix=$host_alias- 1285 1286test "$silent" = yes && exec 6>/dev/null 1287 1288 1289ac_pwd=`pwd` && test -n "$ac_pwd" && 1290ac_ls_di=`ls -di .` && 1291ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1292 as_fn_error $? "working directory cannot be determined" 1293test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1294 as_fn_error $? "pwd does not report name of working directory" 1295 1296 1297# Find the source files, if location was not specified. 1298if test -z "$srcdir"; then 1299 ac_srcdir_defaulted=yes 1300 # Try the directory containing this script, then the parent directory. 1301 ac_confdir=`$as_dirname -- "$as_myself" || 1302$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1303 X"$as_myself" : 'X\(//\)[^/]' \| \ 1304 X"$as_myself" : 'X\(//\)$' \| \ 1305 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1306$as_echo X"$as_myself" | 1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\/\)[^/].*/{ 1312 s//\1/ 1313 q 1314 } 1315 /^X\(\/\/\)$/{ 1316 s//\1/ 1317 q 1318 } 1319 /^X\(\/\).*/{ 1320 s//\1/ 1321 q 1322 } 1323 s/.*/./; q'` 1324 srcdir=$ac_confdir 1325 if test ! -r "$srcdir/$ac_unique_file"; then 1326 srcdir=.. 1327 fi 1328else 1329 ac_srcdir_defaulted=no 1330fi 1331if test ! -r "$srcdir/$ac_unique_file"; then 1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1333 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1334fi 1335ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1336ac_abs_confdir=`( 1337 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1338 pwd)` 1339# When building in place, set srcdir=. 1340if test "$ac_abs_confdir" = "$ac_pwd"; then 1341 srcdir=. 1342fi 1343# Remove unnecessary trailing slashes from srcdir. 1344# Double slashes in file names in object file debugging info 1345# mess up M-x gdb in Emacs. 1346case $srcdir in 1347*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1348esac 1349for ac_var in $ac_precious_vars; do 1350 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1351 eval ac_env_${ac_var}_value=\$${ac_var} 1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1353 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1354done 1355 1356# 1357# Report the --help message. 1358# 1359if test "$ac_init_help" = "long"; then 1360 # Omit some internal or obsolete options to make the list less imposing. 1361 # This message is too long to be a string in the A/UX 3.1 sh. 1362 cat <<_ACEOF 1363\`configure' configures fox 1.6.57 to adapt to many kinds of systems. 1364 1365Usage: $0 [OPTION]... [VAR=VALUE]... 1366 1367To assign environment variables (e.g., CC, CFLAGS...), specify them as 1368VAR=VALUE. See below for descriptions of some of the useful variables. 1369 1370Defaults for the options are specified in brackets. 1371 1372Configuration: 1373 -h, --help display this help and exit 1374 --help=short display options specific to this package 1375 --help=recursive display the short help of all the included packages 1376 -V, --version display version information and exit 1377 -q, --quiet, --silent do not print \`checking ...' messages 1378 --cache-file=FILE cache test results in FILE [disabled] 1379 -C, --config-cache alias for \`--cache-file=config.cache' 1380 -n, --no-create do not create output files 1381 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1382 1383Installation directories: 1384 --prefix=PREFIX install architecture-independent files in PREFIX 1385 [$ac_default_prefix] 1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1387 [PREFIX] 1388 1389By default, \`make install' will install all the files in 1390\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1391an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1392for instance \`--prefix=\$HOME'. 1393 1394For better control, use the options below. 1395 1396Fine tuning of the installation directories: 1397 --bindir=DIR user executables [EPREFIX/bin] 1398 --sbindir=DIR system admin executables [EPREFIX/sbin] 1399 --libexecdir=DIR program executables [EPREFIX/libexec] 1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1403 --libdir=DIR object code libraries [EPREFIX/lib] 1404 --includedir=DIR C header files [PREFIX/include] 1405 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1408 --infodir=DIR info documentation [DATAROOTDIR/info] 1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1410 --mandir=DIR man documentation [DATAROOTDIR/man] 1411 --docdir=DIR documentation root [DATAROOTDIR/doc/fox] 1412 --htmldir=DIR html documentation [DOCDIR] 1413 --dvidir=DIR dvi documentation [DOCDIR] 1414 --pdfdir=DIR pdf documentation [DOCDIR] 1415 --psdir=DIR ps documentation [DOCDIR] 1416_ACEOF 1417 1418 cat <<\_ACEOF 1419 1420Program names: 1421 --program-prefix=PREFIX prepend PREFIX to installed program names 1422 --program-suffix=SUFFIX append SUFFIX to installed program names 1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1424 1425X features: 1426 --x-includes=DIR X include files are in DIR 1427 --x-libraries=DIR X library files are in DIR 1428 1429System types: 1430 --build=BUILD configure for building on BUILD [guessed] 1431 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1432_ACEOF 1433fi 1434 1435if test -n "$ac_init_help"; then 1436 case $ac_init_help in 1437 short | recursive ) echo "Configuration of fox 1.6.57:";; 1438 esac 1439 cat <<\_ACEOF 1440 1441Optional Features: 1442 --disable-option-checking ignore unrecognized --enable/--with options 1443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1445 --enable-silent-rules less verbose build output (undo: "make V=1") 1446 --disable-silent-rules verbose build output (undo: "make V=0") 1447 --enable-dependency-tracking 1448 do not reject slow dependency extractors 1449 --disable-dependency-tracking 1450 speeds up one-time build 1451 --enable-shared[=PKGS] build shared libraries [default=yes] 1452 --enable-static[=PKGS] build static libraries [default=yes] 1453 --enable-fast-install[=PKGS] 1454 optimize for fast installation [default=yes] 1455 --disable-libtool-lock avoid locking (might break parallel builds) 1456 --enable-debug compile for debugging 1457 --enable-release compile for release 1458 --disable-jpeg compile without JPEG image support 1459 --disable-png compile without PNG image support 1460 --disable-tiff compile without TIFF image support 1461 --disable-zlib compile without zlib support 1462 --disable-bz2lib compile without bz2lib support 1463 1464Optional Packages: 1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1467 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1468 both] 1469 --with-aix-soname=aix|svr4|both 1470 shared library versioning (aka "SONAME") variant to 1471 provide on AIX, [default=aix]. 1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1473 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1474 compiler's sysroot if not specified). 1475 --with-x use the X Window System 1476 --with-profiling choices are yes, no, or gprof 1477 --with-xft enable Xft support 1478 --with-xshm compile with XShm support 1479 --with-shape enable XShape support 1480 --with-xcursor compile with Xcursor support 1481 --with-xrender compile with XRender support 1482 --with-xrandr compile with XRandR support 1483 --with-xfixes compile with XFixes support 1484 --with-xinput compile with XInput support 1485 --with-xim compile with XIM support 1486 --with-opengl choices are yes, no 1487 1488Some influential environment variables: 1489 CC C compiler command 1490 CFLAGS C compiler flags 1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1492 nonstandard directory <lib dir> 1493 LIBS libraries to pass to the linker, e.g. -l<library> 1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1495 you have headers in a nonstandard directory <include dir> 1496 CPP C preprocessor 1497 CXX C++ compiler command 1498 CXXFLAGS C++ compiler flags 1499 LT_SYS_LIBRARY_PATH 1500 User-defined run-time library search path. 1501 CXXCPP C++ preprocessor 1502 XMKMF Path to xmkmf, Makefile generator for X Window System 1503 1504Use these variables to override the choices made by `configure' or to help 1505it to find libraries and programs with nonstandard names/locations. 1506 1507Report bugs to <jeroen@fox-toolkit.com>. 1508_ACEOF 1509ac_status=$? 1510fi 1511 1512if test "$ac_init_help" = "recursive"; then 1513 # If there are subdirs, report their specific --help. 1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1515 test -d "$ac_dir" || 1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1517 continue 1518 ac_builddir=. 1519 1520case "$ac_dir" in 1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1522*) 1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1524 # A ".." for each directory in $ac_dir_suffix. 1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1526 case $ac_top_builddir_sub in 1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1529 esac ;; 1530esac 1531ac_abs_top_builddir=$ac_pwd 1532ac_abs_builddir=$ac_pwd$ac_dir_suffix 1533# for backward compatibility: 1534ac_top_builddir=$ac_top_build_prefix 1535 1536case $srcdir in 1537 .) # We are building in place. 1538 ac_srcdir=. 1539 ac_top_srcdir=$ac_top_builddir_sub 1540 ac_abs_top_srcdir=$ac_pwd ;; 1541 [\\/]* | ?:[\\/]* ) # Absolute name. 1542 ac_srcdir=$srcdir$ac_dir_suffix; 1543 ac_top_srcdir=$srcdir 1544 ac_abs_top_srcdir=$srcdir ;; 1545 *) # Relative name. 1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1547 ac_top_srcdir=$ac_top_build_prefix$srcdir 1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1549esac 1550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1551 1552 cd "$ac_dir" || { ac_status=$?; continue; } 1553 # Check for guested configure. 1554 if test -f "$ac_srcdir/configure.gnu"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1557 elif test -f "$ac_srcdir/configure"; then 1558 echo && 1559 $SHELL "$ac_srcdir/configure" --help=recursive 1560 else 1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1562 fi || ac_status=$? 1563 cd "$ac_pwd" || { ac_status=$?; break; } 1564 done 1565fi 1566 1567test -n "$ac_init_help" && exit $ac_status 1568if $ac_init_version; then 1569 cat <<\_ACEOF 1570fox configure 1.6.57 1571generated by GNU Autoconf 2.69 1572 1573Copyright (C) 2012 Free Software Foundation, Inc. 1574This configure script is free software; the Free Software Foundation 1575gives unlimited permission to copy, distribute and modify it. 1576_ACEOF 1577 exit 1578fi 1579 1580## ------------------------ ## 1581## Autoconf initialization. ## 1582## ------------------------ ## 1583 1584# ac_fn_c_try_compile LINENO 1585# -------------------------- 1586# Try to compile conftest.$ac_ext, and return whether this succeeded. 1587ac_fn_c_try_compile () 1588{ 1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1590 rm -f conftest.$ac_objext 1591 if { { ac_try="$ac_compile" 1592case "(($ac_try" in 1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1594 *) ac_try_echo=$ac_try;; 1595esac 1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1597$as_echo "$ac_try_echo"; } >&5 1598 (eval "$ac_compile") 2>conftest.err 1599 ac_status=$? 1600 if test -s conftest.err; then 1601 grep -v '^ *+' conftest.err >conftest.er1 1602 cat conftest.er1 >&5 1603 mv -f conftest.er1 conftest.err 1604 fi 1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1606 test $ac_status = 0; } && { 1607 test -z "$ac_c_werror_flag" || 1608 test ! -s conftest.err 1609 } && test -s conftest.$ac_objext; then : 1610 ac_retval=0 1611else 1612 $as_echo "$as_me: failed program was:" >&5 1613sed 's/^/| /' conftest.$ac_ext >&5 1614 1615 ac_retval=1 1616fi 1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1618 as_fn_set_status $ac_retval 1619 1620} # ac_fn_c_try_compile 1621 1622# ac_fn_c_try_cpp LINENO 1623# ---------------------- 1624# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1625ac_fn_c_try_cpp () 1626{ 1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1628 if { { ac_try="$ac_cpp conftest.$ac_ext" 1629case "(($ac_try" in 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *) ac_try_echo=$ac_try;; 1632esac 1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634$as_echo "$ac_try_echo"; } >&5 1635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1636 ac_status=$? 1637 if test -s conftest.err; then 1638 grep -v '^ *+' conftest.err >conftest.er1 1639 cat conftest.er1 >&5 1640 mv -f conftest.er1 conftest.err 1641 fi 1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643 test $ac_status = 0; } > conftest.i && { 1644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1645 test ! -s conftest.err 1646 }; then : 1647 ac_retval=0 1648else 1649 $as_echo "$as_me: failed program was:" >&5 1650sed 's/^/| /' conftest.$ac_ext >&5 1651 1652 ac_retval=1 1653fi 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1655 as_fn_set_status $ac_retval 1656 1657} # ac_fn_c_try_cpp 1658 1659# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1660# ------------------------------------------------------- 1661# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1662# the include files in INCLUDES and setting the cache variable VAR 1663# accordingly. 1664ac_fn_c_check_header_mongrel () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 if eval \${$3+:} false; then : 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1669$as_echo_n "checking for $2... " >&6; } 1670if eval \${$3+:} false; then : 1671 $as_echo_n "(cached) " >&6 1672fi 1673eval ac_res=\$$3 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1675$as_echo "$ac_res" >&6; } 1676else 1677 # Is the header compilable? 1678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1679$as_echo_n "checking $2 usability... " >&6; } 1680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1681/* end confdefs.h. */ 1682$4 1683#include <$2> 1684_ACEOF 1685if ac_fn_c_try_compile "$LINENO"; then : 1686 ac_header_compiler=yes 1687else 1688 ac_header_compiler=no 1689fi 1690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1692$as_echo "$ac_header_compiler" >&6; } 1693 1694# Is the header present? 1695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1696$as_echo_n "checking $2 presence... " >&6; } 1697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1698/* end confdefs.h. */ 1699#include <$2> 1700_ACEOF 1701if ac_fn_c_try_cpp "$LINENO"; then : 1702 ac_header_preproc=yes 1703else 1704 ac_header_preproc=no 1705fi 1706rm -f conftest.err conftest.i conftest.$ac_ext 1707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1708$as_echo "$ac_header_preproc" >&6; } 1709 1710# So? What about this header? 1711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1712 yes:no: ) 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1714$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1716$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1717 ;; 1718 no:yes:* ) 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1720$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1722$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1724$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1726$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1728$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1729( $as_echo "## ------------------------------------- ## 1730## Report this to jeroen@fox-toolkit.com ## 1731## ------------------------------------- ##" 1732 ) | sed "s/^/$as_me: WARNING: /" >&2 1733 ;; 1734esac 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1736$as_echo_n "checking for $2... " >&6; } 1737if eval \${$3+:} false; then : 1738 $as_echo_n "(cached) " >&6 1739else 1740 eval "$3=\$ac_header_compiler" 1741fi 1742eval ac_res=\$$3 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1744$as_echo "$ac_res" >&6; } 1745fi 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 1748} # ac_fn_c_check_header_mongrel 1749 1750# ac_fn_c_try_run LINENO 1751# ---------------------- 1752# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1753# that executables *can* be run. 1754ac_fn_c_try_run () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 if { { ac_try="$ac_link" 1758case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761esac 1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763$as_echo "$ac_try_echo"; } >&5 1764 (eval "$ac_link") 2>&5 1765 ac_status=$? 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1768 { { case "(($ac_try" in 1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1770 *) ac_try_echo=$ac_try;; 1771esac 1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1773$as_echo "$ac_try_echo"; } >&5 1774 (eval "$ac_try") 2>&5 1775 ac_status=$? 1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1777 test $ac_status = 0; }; }; then : 1778 ac_retval=0 1779else 1780 $as_echo "$as_me: program exited with status $ac_status" >&5 1781 $as_echo "$as_me: failed program was:" >&5 1782sed 's/^/| /' conftest.$ac_ext >&5 1783 1784 ac_retval=$ac_status 1785fi 1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 as_fn_set_status $ac_retval 1789 1790} # ac_fn_c_try_run 1791 1792# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1793# ------------------------------------------------------- 1794# Tests whether HEADER exists and can be compiled using the include files in 1795# INCLUDES, setting the cache variable VAR accordingly. 1796ac_fn_c_check_header_compile () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1800$as_echo_n "checking for $2... " >&6; } 1801if eval \${$3+:} false; then : 1802 $as_echo_n "(cached) " >&6 1803else 1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1805/* end confdefs.h. */ 1806$4 1807#include <$2> 1808_ACEOF 1809if ac_fn_c_try_compile "$LINENO"; then : 1810 eval "$3=yes" 1811else 1812 eval "$3=no" 1813fi 1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1815fi 1816eval ac_res=\$$3 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1818$as_echo "$ac_res" >&6; } 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1820 1821} # ac_fn_c_check_header_compile 1822 1823# ac_fn_cxx_try_compile LINENO 1824# ---------------------------- 1825# Try to compile conftest.$ac_ext, and return whether this succeeded. 1826ac_fn_cxx_try_compile () 1827{ 1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1829 rm -f conftest.$ac_objext 1830 if { { ac_try="$ac_compile" 1831case "(($ac_try" in 1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1833 *) ac_try_echo=$ac_try;; 1834esac 1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1836$as_echo "$ac_try_echo"; } >&5 1837 (eval "$ac_compile") 2>conftest.err 1838 ac_status=$? 1839 if test -s conftest.err; then 1840 grep -v '^ *+' conftest.err >conftest.er1 1841 cat conftest.er1 >&5 1842 mv -f conftest.er1 conftest.err 1843 fi 1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1845 test $ac_status = 0; } && { 1846 test -z "$ac_cxx_werror_flag" || 1847 test ! -s conftest.err 1848 } && test -s conftest.$ac_objext; then : 1849 ac_retval=0 1850else 1851 $as_echo "$as_me: failed program was:" >&5 1852sed 's/^/| /' conftest.$ac_ext >&5 1853 1854 ac_retval=1 1855fi 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 as_fn_set_status $ac_retval 1858 1859} # ac_fn_cxx_try_compile 1860 1861# ac_fn_c_try_link LINENO 1862# ----------------------- 1863# Try to link conftest.$ac_ext, and return whether this succeeded. 1864ac_fn_c_try_link () 1865{ 1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1867 rm -f conftest.$ac_objext conftest$ac_exeext 1868 if { { ac_try="$ac_link" 1869case "(($ac_try" in 1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1871 *) ac_try_echo=$ac_try;; 1872esac 1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1874$as_echo "$ac_try_echo"; } >&5 1875 (eval "$ac_link") 2>conftest.err 1876 ac_status=$? 1877 if test -s conftest.err; then 1878 grep -v '^ *+' conftest.err >conftest.er1 1879 cat conftest.er1 >&5 1880 mv -f conftest.er1 conftest.err 1881 fi 1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1883 test $ac_status = 0; } && { 1884 test -z "$ac_c_werror_flag" || 1885 test ! -s conftest.err 1886 } && test -s conftest$ac_exeext && { 1887 test "$cross_compiling" = yes || 1888 test -x conftest$ac_exeext 1889 }; then : 1890 ac_retval=0 1891else 1892 $as_echo "$as_me: failed program was:" >&5 1893sed 's/^/| /' conftest.$ac_ext >&5 1894 1895 ac_retval=1 1896fi 1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1899 # interfere with the next link command; also delete a directory that is 1900 # left behind by Apple's compiler. We do this before executing the actions. 1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1903 as_fn_set_status $ac_retval 1904 1905} # ac_fn_c_try_link 1906 1907# ac_fn_c_check_func LINENO FUNC VAR 1908# ---------------------------------- 1909# Tests whether FUNC exists, setting the cache variable VAR accordingly 1910ac_fn_c_check_func () 1911{ 1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1914$as_echo_n "checking for $2... " >&6; } 1915if eval \${$3+:} false; then : 1916 $as_echo_n "(cached) " >&6 1917else 1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1919/* end confdefs.h. */ 1920/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1921 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1922#define $2 innocuous_$2 1923 1924/* System header to define __stub macros and hopefully few prototypes, 1925 which can conflict with char $2 (); below. 1926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1927 <limits.h> exists even on freestanding compilers. */ 1928 1929#ifdef __STDC__ 1930# include <limits.h> 1931#else 1932# include <assert.h> 1933#endif 1934 1935#undef $2 1936 1937/* Override any GCC internal prototype to avoid an error. 1938 Use char because int might match the return type of a GCC 1939 builtin and then its argument prototype would still apply. */ 1940#ifdef __cplusplus 1941extern "C" 1942#endif 1943char $2 (); 1944/* The GNU C library defines this for functions which it implements 1945 to always fail with ENOSYS. Some functions are actually named 1946 something starting with __ and the normal name is an alias. */ 1947#if defined __stub_$2 || defined __stub___$2 1948choke me 1949#endif 1950 1951int 1952main () 1953{ 1954return $2 (); 1955 ; 1956 return 0; 1957} 1958_ACEOF 1959if ac_fn_c_try_link "$LINENO"; then : 1960 eval "$3=yes" 1961else 1962 eval "$3=no" 1963fi 1964rm -f core conftest.err conftest.$ac_objext \ 1965 conftest$ac_exeext conftest.$ac_ext 1966fi 1967eval ac_res=\$$3 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1969$as_echo "$ac_res" >&6; } 1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1971 1972} # ac_fn_c_check_func 1973 1974# ac_fn_cxx_try_cpp LINENO 1975# ------------------------ 1976# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1977ac_fn_cxx_try_cpp () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 if { { ac_try="$ac_cpp conftest.$ac_ext" 1981case "(($ac_try" in 1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1983 *) ac_try_echo=$ac_try;; 1984esac 1985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1986$as_echo "$ac_try_echo"; } >&5 1987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1988 ac_status=$? 1989 if test -s conftest.err; then 1990 grep -v '^ *+' conftest.err >conftest.er1 1991 cat conftest.er1 >&5 1992 mv -f conftest.er1 conftest.err 1993 fi 1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1995 test $ac_status = 0; } > conftest.i && { 1996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1997 test ! -s conftest.err 1998 }; then : 1999 ac_retval=0 2000else 2001 $as_echo "$as_me: failed program was:" >&5 2002sed 's/^/| /' conftest.$ac_ext >&5 2003 2004 ac_retval=1 2005fi 2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2007 as_fn_set_status $ac_retval 2008 2009} # ac_fn_cxx_try_cpp 2010 2011# ac_fn_cxx_try_link LINENO 2012# ------------------------- 2013# Try to link conftest.$ac_ext, and return whether this succeeded. 2014ac_fn_cxx_try_link () 2015{ 2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2017 rm -f conftest.$ac_objext conftest$ac_exeext 2018 if { { ac_try="$ac_link" 2019case "(($ac_try" in 2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2021 *) ac_try_echo=$ac_try;; 2022esac 2023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2024$as_echo "$ac_try_echo"; } >&5 2025 (eval "$ac_link") 2>conftest.err 2026 ac_status=$? 2027 if test -s conftest.err; then 2028 grep -v '^ *+' conftest.err >conftest.er1 2029 cat conftest.er1 >&5 2030 mv -f conftest.er1 conftest.err 2031 fi 2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2033 test $ac_status = 0; } && { 2034 test -z "$ac_cxx_werror_flag" || 2035 test ! -s conftest.err 2036 } && test -s conftest$ac_exeext && { 2037 test "$cross_compiling" = yes || 2038 test -x conftest$ac_exeext 2039 }; then : 2040 ac_retval=0 2041else 2042 $as_echo "$as_me: failed program was:" >&5 2043sed 's/^/| /' conftest.$ac_ext >&5 2044 2045 ac_retval=1 2046fi 2047 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2048 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2049 # interfere with the next link command; also delete a directory that is 2050 # left behind by Apple's compiler. We do this before executing the actions. 2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2053 as_fn_set_status $ac_retval 2054 2055} # ac_fn_cxx_try_link 2056 2057# ac_fn_cxx_check_func LINENO FUNC VAR 2058# ------------------------------------ 2059# Tests whether FUNC exists, setting the cache variable VAR accordingly 2060ac_fn_cxx_check_func () 2061{ 2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2064$as_echo_n "checking for $2... " >&6; } 2065if eval \${$3+:} false; then : 2066 $as_echo_n "(cached) " >&6 2067else 2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2069/* end confdefs.h. */ 2070/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2071 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2072#define $2 innocuous_$2 2073 2074/* System header to define __stub macros and hopefully few prototypes, 2075 which can conflict with char $2 (); below. 2076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2077 <limits.h> exists even on freestanding compilers. */ 2078 2079#ifdef __STDC__ 2080# include <limits.h> 2081#else 2082# include <assert.h> 2083#endif 2084 2085#undef $2 2086 2087/* Override any GCC internal prototype to avoid an error. 2088 Use char because int might match the return type of a GCC 2089 builtin and then its argument prototype would still apply. */ 2090#ifdef __cplusplus 2091extern "C" 2092#endif 2093char $2 (); 2094/* The GNU C library defines this for functions which it implements 2095 to always fail with ENOSYS. Some functions are actually named 2096 something starting with __ and the normal name is an alias. */ 2097#if defined __stub_$2 || defined __stub___$2 2098choke me 2099#endif 2100 2101int 2102main () 2103{ 2104return $2 (); 2105 ; 2106 return 0; 2107} 2108_ACEOF 2109if ac_fn_cxx_try_link "$LINENO"; then : 2110 eval "$3=yes" 2111else 2112 eval "$3=no" 2113fi 2114rm -f core conftest.err conftest.$ac_objext \ 2115 conftest$ac_exeext conftest.$ac_ext 2116fi 2117eval ac_res=\$$3 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2119$as_echo "$ac_res" >&6; } 2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2121 2122} # ac_fn_cxx_check_func 2123 2124# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2125# --------------------------------------------------------- 2126# Tests whether HEADER exists and can be compiled using the include files in 2127# INCLUDES, setting the cache variable VAR accordingly. 2128ac_fn_cxx_check_header_compile () 2129{ 2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2132$as_echo_n "checking for $2... " >&6; } 2133if eval \${$3+:} false; then : 2134 $as_echo_n "(cached) " >&6 2135else 2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2137/* end confdefs.h. */ 2138$4 2139#include <$2> 2140_ACEOF 2141if ac_fn_cxx_try_compile "$LINENO"; then : 2142 eval "$3=yes" 2143else 2144 eval "$3=no" 2145fi 2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2147fi 2148eval ac_res=\$$3 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2150$as_echo "$ac_res" >&6; } 2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2152 2153} # ac_fn_cxx_check_header_compile 2154 2155# ac_fn_cxx_try_run LINENO 2156# ------------------------ 2157# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2158# that executables *can* be run. 2159ac_fn_cxx_try_run () 2160{ 2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2162 if { { ac_try="$ac_link" 2163case "(($ac_try" in 2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2165 *) ac_try_echo=$ac_try;; 2166esac 2167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2168$as_echo "$ac_try_echo"; } >&5 2169 (eval "$ac_link") 2>&5 2170 ac_status=$? 2171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2172 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2173 { { case "(($ac_try" in 2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2175 *) ac_try_echo=$ac_try;; 2176esac 2177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2178$as_echo "$ac_try_echo"; } >&5 2179 (eval "$ac_try") 2>&5 2180 ac_status=$? 2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2182 test $ac_status = 0; }; }; then : 2183 ac_retval=0 2184else 2185 $as_echo "$as_me: program exited with status $ac_status" >&5 2186 $as_echo "$as_me: failed program was:" >&5 2187sed 's/^/| /' conftest.$ac_ext >&5 2188 2189 ac_retval=$ac_status 2190fi 2191 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2192 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2193 as_fn_set_status $ac_retval 2194 2195} # ac_fn_cxx_try_run 2196 2197# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2198# --------------------------------------------------------- 2199# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2200# the include files in INCLUDES and setting the cache variable VAR 2201# accordingly. 2202ac_fn_cxx_check_header_mongrel () 2203{ 2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2205 if eval \${$3+:} false; then : 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2207$as_echo_n "checking for $2... " >&6; } 2208if eval \${$3+:} false; then : 2209 $as_echo_n "(cached) " >&6 2210fi 2211eval ac_res=\$$3 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2213$as_echo "$ac_res" >&6; } 2214else 2215 # Is the header compilable? 2216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2217$as_echo_n "checking $2 usability... " >&6; } 2218cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2219/* end confdefs.h. */ 2220$4 2221#include <$2> 2222_ACEOF 2223if ac_fn_cxx_try_compile "$LINENO"; then : 2224 ac_header_compiler=yes 2225else 2226 ac_header_compiler=no 2227fi 2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2230$as_echo "$ac_header_compiler" >&6; } 2231 2232# Is the header present? 2233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2234$as_echo_n "checking $2 presence... " >&6; } 2235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2236/* end confdefs.h. */ 2237#include <$2> 2238_ACEOF 2239if ac_fn_cxx_try_cpp "$LINENO"; then : 2240 ac_header_preproc=yes 2241else 2242 ac_header_preproc=no 2243fi 2244rm -f conftest.err conftest.i conftest.$ac_ext 2245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2246$as_echo "$ac_header_preproc" >&6; } 2247 2248# So? What about this header? 2249case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2250 yes:no: ) 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2252$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2254$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2255 ;; 2256 no:yes:* ) 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2258$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2260$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2262$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2264$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2266$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2267( $as_echo "## ------------------------------------- ## 2268## Report this to jeroen@fox-toolkit.com ## 2269## ------------------------------------- ##" 2270 ) | sed "s/^/$as_me: WARNING: /" >&2 2271 ;; 2272esac 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2274$as_echo_n "checking for $2... " >&6; } 2275if eval \${$3+:} false; then : 2276 $as_echo_n "(cached) " >&6 2277else 2278 eval "$3=\$ac_header_compiler" 2279fi 2280eval ac_res=\$$3 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2282$as_echo "$ac_res" >&6; } 2283fi 2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2285 2286} # ac_fn_cxx_check_header_mongrel 2287cat >config.log <<_ACEOF 2288This file contains any messages produced by compilers while 2289running configure, to aid debugging if configure makes a mistake. 2290 2291It was created by fox $as_me 1.6.57, which was 2292generated by GNU Autoconf 2.69. Invocation command line was 2293 2294 $ $0 $@ 2295 2296_ACEOF 2297exec 5>>config.log 2298{ 2299cat <<_ASUNAME 2300## --------- ## 2301## Platform. ## 2302## --------- ## 2303 2304hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2305uname -m = `(uname -m) 2>/dev/null || echo unknown` 2306uname -r = `(uname -r) 2>/dev/null || echo unknown` 2307uname -s = `(uname -s) 2>/dev/null || echo unknown` 2308uname -v = `(uname -v) 2>/dev/null || echo unknown` 2309 2310/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2311/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2312 2313/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2314/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2315/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2316/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2317/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2318/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2319/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2320 2321_ASUNAME 2322 2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2324for as_dir in $PATH 2325do 2326 IFS=$as_save_IFS 2327 test -z "$as_dir" && as_dir=. 2328 $as_echo "PATH: $as_dir" 2329 done 2330IFS=$as_save_IFS 2331 2332} >&5 2333 2334cat >&5 <<_ACEOF 2335 2336 2337## ----------- ## 2338## Core tests. ## 2339## ----------- ## 2340 2341_ACEOF 2342 2343 2344# Keep a trace of the command line. 2345# Strip out --no-create and --no-recursion so they do not pile up. 2346# Strip out --silent because we don't want to record it for future runs. 2347# Also quote any args containing shell meta-characters. 2348# Make two passes to allow for proper duplicate-argument suppression. 2349ac_configure_args= 2350ac_configure_args0= 2351ac_configure_args1= 2352ac_must_keep_next=false 2353for ac_pass in 1 2 2354do 2355 for ac_arg 2356 do 2357 case $ac_arg in 2358 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2360 | -silent | --silent | --silen | --sile | --sil) 2361 continue ;; 2362 *\'*) 2363 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2364 esac 2365 case $ac_pass in 2366 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2367 2) 2368 as_fn_append ac_configure_args1 " '$ac_arg'" 2369 if test $ac_must_keep_next = true; then 2370 ac_must_keep_next=false # Got value, back to normal. 2371 else 2372 case $ac_arg in 2373 *=* | --config-cache | -C | -disable-* | --disable-* \ 2374 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2375 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2376 | -with-* | --with-* | -without-* | --without-* | --x) 2377 case "$ac_configure_args0 " in 2378 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2379 esac 2380 ;; 2381 -* ) ac_must_keep_next=true ;; 2382 esac 2383 fi 2384 as_fn_append ac_configure_args " '$ac_arg'" 2385 ;; 2386 esac 2387 done 2388done 2389{ ac_configure_args0=; unset ac_configure_args0;} 2390{ ac_configure_args1=; unset ac_configure_args1;} 2391 2392# When interrupted or exit'd, cleanup temporary files, and complete 2393# config.log. We remove comments because anyway the quotes in there 2394# would cause problems or look ugly. 2395# WARNING: Use '\'' to represent an apostrophe within the trap. 2396# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2397trap 'exit_status=$? 2398 # Save into config.log some information that might help in debugging. 2399 { 2400 echo 2401 2402 $as_echo "## ---------------- ## 2403## Cache variables. ## 2404## ---------------- ##" 2405 echo 2406 # The following way of writing the cache mishandles newlines in values, 2407( 2408 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2409 eval ac_val=\$$ac_var 2410 case $ac_val in #( 2411 *${as_nl}*) 2412 case $ac_var in #( 2413 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2414$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2415 esac 2416 case $ac_var in #( 2417 _ | IFS | as_nl) ;; #( 2418 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2419 *) { eval $ac_var=; unset $ac_var;} ;; 2420 esac ;; 2421 esac 2422 done 2423 (set) 2>&1 | 2424 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2425 *${as_nl}ac_space=\ *) 2426 sed -n \ 2427 "s/'\''/'\''\\\\'\'''\''/g; 2428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2429 ;; #( 2430 *) 2431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2432 ;; 2433 esac | 2434 sort 2435) 2436 echo 2437 2438 $as_echo "## ----------------- ## 2439## Output variables. ## 2440## ----------------- ##" 2441 echo 2442 for ac_var in $ac_subst_vars 2443 do 2444 eval ac_val=\$$ac_var 2445 case $ac_val in 2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2447 esac 2448 $as_echo "$ac_var='\''$ac_val'\''" 2449 done | sort 2450 echo 2451 2452 if test -n "$ac_subst_files"; then 2453 $as_echo "## ------------------- ## 2454## File substitutions. ## 2455## ------------------- ##" 2456 echo 2457 for ac_var in $ac_subst_files 2458 do 2459 eval ac_val=\$$ac_var 2460 case $ac_val in 2461 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2462 esac 2463 $as_echo "$ac_var='\''$ac_val'\''" 2464 done | sort 2465 echo 2466 fi 2467 2468 if test -s confdefs.h; then 2469 $as_echo "## ----------- ## 2470## confdefs.h. ## 2471## ----------- ##" 2472 echo 2473 cat confdefs.h 2474 echo 2475 fi 2476 test "$ac_signal" != 0 && 2477 $as_echo "$as_me: caught signal $ac_signal" 2478 $as_echo "$as_me: exit $exit_status" 2479 } >&5 2480 rm -f core *.core core.conftest.* && 2481 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2482 exit $exit_status 2483' 0 2484for ac_signal in 1 2 13 15; do 2485 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2486done 2487ac_signal=0 2488 2489# confdefs.h avoids OS command line length limits that DEFS can exceed. 2490rm -f -r conftest* confdefs.h 2491 2492$as_echo "/* confdefs.h */" > confdefs.h 2493 2494# Predefined preprocessor variables. 2495 2496cat >>confdefs.h <<_ACEOF 2497#define PACKAGE_NAME "$PACKAGE_NAME" 2498_ACEOF 2499 2500cat >>confdefs.h <<_ACEOF 2501#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2502_ACEOF 2503 2504cat >>confdefs.h <<_ACEOF 2505#define PACKAGE_VERSION "$PACKAGE_VERSION" 2506_ACEOF 2507 2508cat >>confdefs.h <<_ACEOF 2509#define PACKAGE_STRING "$PACKAGE_STRING" 2510_ACEOF 2511 2512cat >>confdefs.h <<_ACEOF 2513#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2514_ACEOF 2515 2516cat >>confdefs.h <<_ACEOF 2517#define PACKAGE_URL "$PACKAGE_URL" 2518_ACEOF 2519 2520 2521# Let the site file select an alternate cache file if it wants to. 2522# Prefer an explicitly selected file to automatically selected ones. 2523ac_site_file1=NONE 2524ac_site_file2=NONE 2525if test -n "$CONFIG_SITE"; then 2526 # We do not want a PATH search for config.site. 2527 case $CONFIG_SITE in #(( 2528 -*) ac_site_file1=./$CONFIG_SITE;; 2529 */*) ac_site_file1=$CONFIG_SITE;; 2530 *) ac_site_file1=./$CONFIG_SITE;; 2531 esac 2532elif test "x$prefix" != xNONE; then 2533 ac_site_file1=$prefix/share/config.site 2534 ac_site_file2=$prefix/etc/config.site 2535else 2536 ac_site_file1=$ac_default_prefix/share/config.site 2537 ac_site_file2=$ac_default_prefix/etc/config.site 2538fi 2539for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2540do 2541 test "x$ac_site_file" = xNONE && continue 2542 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2544$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2545 sed 's/^/| /' "$ac_site_file" >&5 2546 . "$ac_site_file" \ 2547 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2549as_fn_error $? "failed to load site script $ac_site_file 2550See \`config.log' for more details" "$LINENO" 5; } 2551 fi 2552done 2553 2554if test -r "$cache_file"; then 2555 # Some versions of bash will fail to source /dev/null (special files 2556 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2557 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2559$as_echo "$as_me: loading cache $cache_file" >&6;} 2560 case $cache_file in 2561 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2562 *) . "./$cache_file";; 2563 esac 2564 fi 2565else 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2567$as_echo "$as_me: creating cache $cache_file" >&6;} 2568 >$cache_file 2569fi 2570 2571as_fn_append ac_header_list " stdlib.h" 2572as_fn_append ac_header_list " unistd.h" 2573as_fn_append ac_header_list " sys/param.h" 2574# Check that the precious variables saved in the cache have kept the same 2575# value. 2576ac_cache_corrupted=false 2577for ac_var in $ac_precious_vars; do 2578 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2579 eval ac_new_set=\$ac_env_${ac_var}_set 2580 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2581 eval ac_new_val=\$ac_env_${ac_var}_value 2582 case $ac_old_set,$ac_new_set in 2583 set,) 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2585$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2586 ac_cache_corrupted=: ;; 2587 ,set) 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2589$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2590 ac_cache_corrupted=: ;; 2591 ,);; 2592 *) 2593 if test "x$ac_old_val" != "x$ac_new_val"; then 2594 # differences in whitespace do not lead to failure. 2595 ac_old_val_w=`echo x $ac_old_val` 2596 ac_new_val_w=`echo x $ac_new_val` 2597 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2599$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2600 ac_cache_corrupted=: 2601 else 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2603$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2604 eval $ac_var=\$ac_old_val 2605 fi 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2607$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2609$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2610 fi;; 2611 esac 2612 # Pass precious variables to config.status. 2613 if test "$ac_new_set" = set; then 2614 case $ac_new_val in 2615 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2616 *) ac_arg=$ac_var=$ac_new_val ;; 2617 esac 2618 case " $ac_configure_args " in 2619 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2620 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2621 esac 2622 fi 2623done 2624if $ac_cache_corrupted; then 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2628$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2629 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2630fi 2631## -------------------- ## 2632## Main body of script. ## 2633## -------------------- ## 2634 2635ac_ext=c 2636ac_cpp='$CPP $CPPFLAGS' 2637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2639ac_compiler_gnu=$ac_cv_c_compiler_gnu 2640 2641 2642 2643am__api_version='1.15' 2644 2645ac_aux_dir= 2646for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2647 if test -f "$ac_dir/install-sh"; then 2648 ac_aux_dir=$ac_dir 2649 ac_install_sh="$ac_aux_dir/install-sh -c" 2650 break 2651 elif test -f "$ac_dir/install.sh"; then 2652 ac_aux_dir=$ac_dir 2653 ac_install_sh="$ac_aux_dir/install.sh -c" 2654 break 2655 elif test -f "$ac_dir/shtool"; then 2656 ac_aux_dir=$ac_dir 2657 ac_install_sh="$ac_aux_dir/shtool install -c" 2658 break 2659 fi 2660done 2661if test -z "$ac_aux_dir"; then 2662 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2663fi 2664 2665# These three variables are undocumented and unsupported, 2666# and are intended to be withdrawn in a future Autoconf release. 2667# They can cause serious problems if a builder's source tree is in a directory 2668# whose full name contains unusual characters. 2669ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2670ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2671ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2672 2673 2674# Find a good install program. We prefer a C program (faster), 2675# so one script is as good as another. But avoid the broken or 2676# incompatible versions: 2677# SysV /etc/install, /usr/sbin/install 2678# SunOS /usr/etc/install 2679# IRIX /sbin/install 2680# AIX /bin/install 2681# AmigaOS /C/install, which installs bootblocks on floppy discs 2682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2683# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2685# OS/2's system install, which has a completely different semantic 2686# ./install, which can be erroneously created by make from ./install.sh. 2687# Reject install programs that cannot install multiple files. 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2689$as_echo_n "checking for a BSD-compatible install... " >&6; } 2690if test -z "$INSTALL"; then 2691if ${ac_cv_path_install+:} false; then : 2692 $as_echo_n "(cached) " >&6 2693else 2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2695for as_dir in $PATH 2696do 2697 IFS=$as_save_IFS 2698 test -z "$as_dir" && as_dir=. 2699 # Account for people who put trailing slashes in PATH elements. 2700case $as_dir/ in #(( 2701 ./ | .// | /[cC]/* | \ 2702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2704 /usr/ucb/* ) ;; 2705 *) 2706 # OSF1 and SCO ODT 3.0 have their own names for install. 2707 # Don't use installbsd from OSF since it installs stuff as root 2708 # by default. 2709 for ac_prog in ginstall scoinst install; do 2710 for ac_exec_ext in '' $ac_executable_extensions; do 2711 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2712 if test $ac_prog = install && 2713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2714 # AIX install. It has an incompatible calling convention. 2715 : 2716 elif test $ac_prog = install && 2717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2718 # program-specific install script used by HP pwplus--don't use. 2719 : 2720 else 2721 rm -rf conftest.one conftest.two conftest.dir 2722 echo one > conftest.one 2723 echo two > conftest.two 2724 mkdir conftest.dir 2725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2726 test -s conftest.one && test -s conftest.two && 2727 test -s conftest.dir/conftest.one && 2728 test -s conftest.dir/conftest.two 2729 then 2730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2731 break 3 2732 fi 2733 fi 2734 fi 2735 done 2736 done 2737 ;; 2738esac 2739 2740 done 2741IFS=$as_save_IFS 2742 2743rm -rf conftest.one conftest.two conftest.dir 2744 2745fi 2746 if test "${ac_cv_path_install+set}" = set; then 2747 INSTALL=$ac_cv_path_install 2748 else 2749 # As a last resort, use the slow shell script. Don't cache a 2750 # value for INSTALL within a source directory, because that will 2751 # break other packages using the cache if that directory is 2752 # removed, or if the value is a relative name. 2753 INSTALL=$ac_install_sh 2754 fi 2755fi 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2757$as_echo "$INSTALL" >&6; } 2758 2759# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2760# It thinks the first close brace ends the variable substitution. 2761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2762 2763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2764 2765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2766 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2768$as_echo_n "checking whether build environment is sane... " >&6; } 2769# Reject unsafe characters in $srcdir or the absolute working directory 2770# name. Accept space and tab only in the latter. 2771am_lf=' 2772' 2773case `pwd` in 2774 *[\\\"\#\$\&\'\`$am_lf]*) 2775 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2776esac 2777case $srcdir in 2778 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2779 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2780esac 2781 2782# Do 'set' in a subshell so we don't clobber the current shell's 2783# arguments. Must try -L first in case configure is actually a 2784# symlink; some systems play weird games with the mod time of symlinks 2785# (eg FreeBSD returns the mod time of the symlink's containing 2786# directory). 2787if ( 2788 am_has_slept=no 2789 for am_try in 1 2; do 2790 echo "timestamp, slept: $am_has_slept" > conftest.file 2791 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2792 if test "$*" = "X"; then 2793 # -L didn't work. 2794 set X `ls -t "$srcdir/configure" conftest.file` 2795 fi 2796 if test "$*" != "X $srcdir/configure conftest.file" \ 2797 && test "$*" != "X conftest.file $srcdir/configure"; then 2798 2799 # If neither matched, then we have a broken ls. This can happen 2800 # if, for instance, CONFIG_SHELL is bash and it inherits a 2801 # broken ls alias from the environment. This has actually 2802 # happened. Such a system could not be considered "sane". 2803 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2804 alias in your environment" "$LINENO" 5 2805 fi 2806 if test "$2" = conftest.file || test $am_try -eq 2; then 2807 break 2808 fi 2809 # Just in case. 2810 sleep 1 2811 am_has_slept=yes 2812 done 2813 test "$2" = conftest.file 2814 ) 2815then 2816 # Ok. 2817 : 2818else 2819 as_fn_error $? "newly created file is older than distributed files! 2820Check your system clock" "$LINENO" 5 2821fi 2822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2823$as_echo "yes" >&6; } 2824# If we didn't sleep, we still need to ensure time stamps of config.status and 2825# generated files are strictly newer. 2826am_sleep_pid= 2827if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2828 ( sleep 1 ) & 2829 am_sleep_pid=$! 2830fi 2831 2832rm -f conftest.file 2833 2834test "$program_prefix" != NONE && 2835 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2836# Use a double $ so make ignores it. 2837test "$program_suffix" != NONE && 2838 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2839# Double any \ or $. 2840# By default was `s,x,x', remove it if useless. 2841ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2842program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2843 2844# Expand $ac_aux_dir to an absolute path. 2845am_aux_dir=`cd "$ac_aux_dir" && pwd` 2846 2847if test x"${MISSING+set}" != xset; then 2848 case $am_aux_dir in 2849 *\ * | *\ *) 2850 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2851 *) 2852 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2853 esac 2854fi 2855# Use eval to expand $SHELL 2856if eval "$MISSING --is-lightweight"; then 2857 am_missing_run="$MISSING " 2858else 2859 am_missing_run= 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2861$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2862fi 2863 2864if test x"${install_sh+set}" != xset; then 2865 case $am_aux_dir in 2866 *\ * | *\ *) 2867 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2868 *) 2869 install_sh="\${SHELL} $am_aux_dir/install-sh" 2870 esac 2871fi 2872 2873# Installed binaries are usually stripped using 'strip' when the user 2874# run "make install-strip". However 'strip' might not be the right 2875# tool to use in cross-compilation environments, therefore Automake 2876# will honor the 'STRIP' environment variable to overrule this program. 2877if test "$cross_compiling" != no; then 2878 if test -n "$ac_tool_prefix"; then 2879 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2880set dummy ${ac_tool_prefix}strip; ac_word=$2 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2882$as_echo_n "checking for $ac_word... " >&6; } 2883if ${ac_cv_prog_STRIP+:} false; then : 2884 $as_echo_n "(cached) " >&6 2885else 2886 if test -n "$STRIP"; then 2887 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2888else 2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2890for as_dir in $PATH 2891do 2892 IFS=$as_save_IFS 2893 test -z "$as_dir" && as_dir=. 2894 for ac_exec_ext in '' $ac_executable_extensions; do 2895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2896 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2898 break 2 2899 fi 2900done 2901 done 2902IFS=$as_save_IFS 2903 2904fi 2905fi 2906STRIP=$ac_cv_prog_STRIP 2907if test -n "$STRIP"; then 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2909$as_echo "$STRIP" >&6; } 2910else 2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2912$as_echo "no" >&6; } 2913fi 2914 2915 2916fi 2917if test -z "$ac_cv_prog_STRIP"; then 2918 ac_ct_STRIP=$STRIP 2919 # Extract the first word of "strip", so it can be a program name with args. 2920set dummy strip; ac_word=$2 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922$as_echo_n "checking for $ac_word... " >&6; } 2923if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2924 $as_echo_n "(cached) " >&6 2925else 2926 if test -n "$ac_ct_STRIP"; then 2927 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2928else 2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930for as_dir in $PATH 2931do 2932 IFS=$as_save_IFS 2933 test -z "$as_dir" && as_dir=. 2934 for ac_exec_ext in '' $ac_executable_extensions; do 2935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2936 ac_cv_prog_ac_ct_STRIP="strip" 2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2938 break 2 2939 fi 2940done 2941 done 2942IFS=$as_save_IFS 2943 2944fi 2945fi 2946ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2947if test -n "$ac_ct_STRIP"; then 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2949$as_echo "$ac_ct_STRIP" >&6; } 2950else 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2952$as_echo "no" >&6; } 2953fi 2954 2955 if test "x$ac_ct_STRIP" = x; then 2956 STRIP=":" 2957 else 2958 case $cross_compiling:$ac_tool_warned in 2959yes:) 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2962ac_tool_warned=yes ;; 2963esac 2964 STRIP=$ac_ct_STRIP 2965 fi 2966else 2967 STRIP="$ac_cv_prog_STRIP" 2968fi 2969 2970fi 2971INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2972 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2974$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2975if test -z "$MKDIR_P"; then 2976 if ${ac_cv_path_mkdir+:} false; then : 2977 $as_echo_n "(cached) " >&6 2978else 2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2980for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2981do 2982 IFS=$as_save_IFS 2983 test -z "$as_dir" && as_dir=. 2984 for ac_prog in mkdir gmkdir; do 2985 for ac_exec_ext in '' $ac_executable_extensions; do 2986 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2987 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2988 'mkdir (GNU coreutils) '* | \ 2989 'mkdir (coreutils) '* | \ 2990 'mkdir (fileutils) '4.1*) 2991 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2992 break 3;; 2993 esac 2994 done 2995 done 2996 done 2997IFS=$as_save_IFS 2998 2999fi 3000 3001 test -d ./--version && rmdir ./--version 3002 if test "${ac_cv_path_mkdir+set}" = set; then 3003 MKDIR_P="$ac_cv_path_mkdir -p" 3004 else 3005 # As a last resort, use the slow shell script. Don't cache a 3006 # value for MKDIR_P within a source directory, because that will 3007 # break other packages using the cache if that directory is 3008 # removed, or if the value is a relative name. 3009 MKDIR_P="$ac_install_sh -d" 3010 fi 3011fi 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3013$as_echo "$MKDIR_P" >&6; } 3014 3015for ac_prog in gawk mawk nawk awk 3016do 3017 # Extract the first word of "$ac_prog", so it can be a program name with args. 3018set dummy $ac_prog; ac_word=$2 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3020$as_echo_n "checking for $ac_word... " >&6; } 3021if ${ac_cv_prog_AWK+:} false; then : 3022 $as_echo_n "(cached) " >&6 3023else 3024 if test -n "$AWK"; then 3025 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3026else 3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3028for as_dir in $PATH 3029do 3030 IFS=$as_save_IFS 3031 test -z "$as_dir" && as_dir=. 3032 for ac_exec_ext in '' $ac_executable_extensions; do 3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3034 ac_cv_prog_AWK="$ac_prog" 3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3036 break 2 3037 fi 3038done 3039 done 3040IFS=$as_save_IFS 3041 3042fi 3043fi 3044AWK=$ac_cv_prog_AWK 3045if test -n "$AWK"; then 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3047$as_echo "$AWK" >&6; } 3048else 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3050$as_echo "no" >&6; } 3051fi 3052 3053 3054 test -n "$AWK" && break 3055done 3056 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3058$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3059set x ${MAKE-make} 3060ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3061if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3062 $as_echo_n "(cached) " >&6 3063else 3064 cat >conftest.make <<\_ACEOF 3065SHELL = /bin/sh 3066all: 3067 @echo '@@@%%%=$(MAKE)=@@@%%%' 3068_ACEOF 3069# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3070case `${MAKE-make} -f conftest.make 2>/dev/null` in 3071 *@@@%%%=?*=@@@%%%*) 3072 eval ac_cv_prog_make_${ac_make}_set=yes;; 3073 *) 3074 eval ac_cv_prog_make_${ac_make}_set=no;; 3075esac 3076rm -f conftest.make 3077fi 3078if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3080$as_echo "yes" >&6; } 3081 SET_MAKE= 3082else 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3084$as_echo "no" >&6; } 3085 SET_MAKE="MAKE=${MAKE-make}" 3086fi 3087 3088rm -rf .tst 2>/dev/null 3089mkdir .tst 2>/dev/null 3090if test -d .tst; then 3091 am__leading_dot=. 3092else 3093 am__leading_dot=_ 3094fi 3095rmdir .tst 2>/dev/null 3096 3097# Check whether --enable-silent-rules was given. 3098if test "${enable_silent_rules+set}" = set; then : 3099 enableval=$enable_silent_rules; 3100fi 3101 3102case $enable_silent_rules in # ((( 3103 yes) AM_DEFAULT_VERBOSITY=0;; 3104 no) AM_DEFAULT_VERBOSITY=1;; 3105 *) AM_DEFAULT_VERBOSITY=1;; 3106esac 3107am_make=${MAKE-make} 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3109$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3110if ${am_cv_make_support_nested_variables+:} false; then : 3111 $as_echo_n "(cached) " >&6 3112else 3113 if $as_echo 'TRUE=$(BAR$(V)) 3114BAR0=false 3115BAR1=true 3116V=1 3117am__doit: 3118 @$(TRUE) 3119.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3120 am_cv_make_support_nested_variables=yes 3121else 3122 am_cv_make_support_nested_variables=no 3123fi 3124fi 3125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3126$as_echo "$am_cv_make_support_nested_variables" >&6; } 3127if test $am_cv_make_support_nested_variables = yes; then 3128 AM_V='$(V)' 3129 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3130else 3131 AM_V=$AM_DEFAULT_VERBOSITY 3132 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3133fi 3134AM_BACKSLASH='\' 3135 3136if test "`cd $srcdir && pwd`" != "`pwd`"; then 3137 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3138 # is not polluted with repeated "-I." 3139 am__isrc=' -I$(srcdir)' 3140 # test to see if srcdir already configured 3141 if test -f $srcdir/config.status; then 3142 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3143 fi 3144fi 3145 3146# test whether we have cygpath 3147if test -z "$CYGPATH_W"; then 3148 if (cygpath --version) >/dev/null 2>/dev/null; then 3149 CYGPATH_W='cygpath -w' 3150 else 3151 CYGPATH_W=echo 3152 fi 3153fi 3154 3155 3156# Define the identity of the package. 3157 PACKAGE='fox' 3158 VERSION='1.6.57' 3159 3160 3161cat >>confdefs.h <<_ACEOF 3162#define PACKAGE "$PACKAGE" 3163_ACEOF 3164 3165 3166cat >>confdefs.h <<_ACEOF 3167#define VERSION "$VERSION" 3168_ACEOF 3169 3170# Some tools Automake needs. 3171 3172ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3173 3174 3175AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3176 3177 3178AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3179 3180 3181AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3182 3183 3184MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3185 3186# For better backward compatibility. To be removed once Automake 1.9.x 3187# dies out for good. For more background, see: 3188# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3189# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3190mkdir_p='$(MKDIR_P)' 3191 3192# We need awk for the "check" target (and possibly the TAP driver). The 3193# system "awk" is bad on some platforms. 3194# Always define AMTAR for backward compatibility. Yes, it's still used 3195# in the wild :-( We should find a proper way to deprecate it ... 3196AMTAR='$${TAR-tar}' 3197 3198 3199# We'll loop over all known methods to create a tar archive until one works. 3200_am_tools='gnutar pax cpio none' 3201 3202am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3203 3204 3205 3206 3207 3208 3209# POSIX will say in a future version that running "rm -f" with no argument 3210# is OK; and we want to be able to make that assumption in our Makefile 3211# recipes. So use an aggressive probe to check that the usage we want is 3212# actually supported "in the wild" to an acceptable degree. 3213# See automake bug#10828. 3214# To make any issue more visible, cause the running configure to be aborted 3215# by default if the 'rm' program in use doesn't match our expectations; the 3216# user can still override this though. 3217if rm -f && rm -fr && rm -rf; then : OK; else 3218 cat >&2 <<'END' 3219Oops! 3220 3221Your 'rm' program seems unable to run without file operands specified 3222on the command line, even when the '-f' option is present. This is contrary 3223to the behaviour of most rm programs out there, and not conforming with 3224the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3225 3226Please tell bug-automake@gnu.org about your system, including the value 3227of your $PATH and any error possibly output before this message. This 3228can help us improve future automake versions. 3229 3230END 3231 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3232 echo 'Configuration will proceed anyway, since you have set the' >&2 3233 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3234 echo >&2 3235 else 3236 cat >&2 <<'END' 3237Aborting the configuration process, to ensure you take notice of the issue. 3238 3239You can download and install GNU coreutils to get an 'rm' implementation 3240that behaves properly: <http://www.gnu.org/software/coreutils/>. 3241 3242If you want to complete the configuration process using your problematic 3243'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3244to "yes", and re-run configure. 3245 3246END 3247 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3248 fi 3249fi 3250 3251 3252# Set version 3253FOX_MAJOR_VERSION=1 3254FOX_MINOR_VERSION=6 3255FOX_PATCH_LEVEL=57 3256 3257# Binaries compiled with this patchlevel of FOX will need at least 3258# version MAJOR.MINOR.INTERFACE_VERSION to run. The assertion 3259# FOX_INTERFACE_VERSION >= FOX_BINARY_VERSION must hold. 3260# 3261# Increment this when an API is added 3262FOX_INTERFACE_VERSION=0 3263 3264# Binaries compiled with at least MAJOR.MINOR.BINARY_VERSION are 3265# compatible with this release of FOX. 3266# 3267# Set this to FOX_INTERFACE_VERSION's value if API changed or removed 3268FOX_BINARY_VERSION=0 3269 3270# Report what was found 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking major version" >&5 3272$as_echo_n "checking major version... " >&6; } 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOX_MAJOR_VERSION" >&5 3274$as_echo "$FOX_MAJOR_VERSION" >&6; } 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking minor version" >&5 3276$as_echo_n "checking minor version... " >&6; } 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOX_MINOR_VERSION" >&5 3278$as_echo "$FOX_MINOR_VERSION" >&6; } 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking patch level" >&5 3280$as_echo_n "checking patch level... " >&6; } 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOX_PATCH_LEVEL" >&5 3282$as_echo "$FOX_PATCH_LEVEL" >&6; } 3283 3284# Substitute variables in output files 3285 3286 3287 3288 3289# CURRENT: Most recent interface library implements 3290# REVISION: The implementation number of the CURRENT interface 3291# AGE: The difference between the newest and oldest interfaces that this 3292# library implements. The library implements all the interface numbers 3293# in the range from number CURRENT - AGE to CURRENT. 3294LT_RELEASE=$FOX_MAJOR_VERSION.$FOX_MINOR_VERSION 3295LT_CURRENT=$FOX_INTERFACE_VERSION 3296LT_REVISION=`expr $FOX_PATCH_LEVEL - $FOX_INTERFACE_VERSION` 3297LT_AGE=`expr $FOX_INTERFACE_VERSION - $FOX_BINARY_VERSION` 3298 3299# Substitute variables in output files 3300 3301 3302 3303 3304 3305# Prevents setting flags. 3306#CXXFLAGS="" 3307 3308# More secret source 3309DEPDIR="${am__leading_dot}deps" 3310 3311ac_config_commands="$ac_config_commands depfiles" 3312 3313 3314am_make=${MAKE-make} 3315cat > confinc << 'END' 3316am__doit: 3317 @echo this is the am__doit target 3318.PHONY: am__doit 3319END 3320# If we don't find an include directive, just comment out the code. 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3322$as_echo_n "checking for style of include used by $am_make... " >&6; } 3323am__include="#" 3324am__quote= 3325_am_result=none 3326# First try GNU make style include. 3327echo "include confinc" > confmf 3328# Ignore all kinds of additional output from 'make'. 3329case `$am_make -s -f confmf 2> /dev/null` in #( 3330*the\ am__doit\ target*) 3331 am__include=include 3332 am__quote= 3333 _am_result=GNU 3334 ;; 3335esac 3336# Now try BSD make style include. 3337if test "$am__include" = "#"; then 3338 echo '.include "confinc"' > confmf 3339 case `$am_make -s -f confmf 2> /dev/null` in #( 3340 *the\ am__doit\ target*) 3341 am__include=.include 3342 am__quote="\"" 3343 _am_result=BSD 3344 ;; 3345 esac 3346fi 3347 3348 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3350$as_echo "$_am_result" >&6; } 3351rm -f confinc confmf 3352 3353# Check whether --enable-dependency-tracking was given. 3354if test "${enable_dependency_tracking+set}" = set; then : 3355 enableval=$enable_dependency_tracking; 3356fi 3357 3358if test "x$enable_dependency_tracking" != xno; then 3359 am_depcomp="$ac_aux_dir/depcomp" 3360 AMDEPBACKSLASH='\' 3361 am__nodep='_no' 3362fi 3363 if test "x$enable_dependency_tracking" != xno; then 3364 AMDEP_TRUE= 3365 AMDEP_FALSE='#' 3366else 3367 AMDEP_TRUE='#' 3368 AMDEP_FALSE= 3369fi 3370 3371 3372ac_ext=c 3373ac_cpp='$CPP $CPPFLAGS' 3374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3376ac_compiler_gnu=$ac_cv_c_compiler_gnu 3377if test -n "$ac_tool_prefix"; then 3378 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3379set dummy ${ac_tool_prefix}gcc; ac_word=$2 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3381$as_echo_n "checking for $ac_word... " >&6; } 3382if ${ac_cv_prog_CC+:} false; then : 3383 $as_echo_n "(cached) " >&6 3384else 3385 if test -n "$CC"; then 3386 ac_cv_prog_CC="$CC" # Let the user override the test. 3387else 3388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3389for as_dir in $PATH 3390do 3391 IFS=$as_save_IFS 3392 test -z "$as_dir" && as_dir=. 3393 for ac_exec_ext in '' $ac_executable_extensions; do 3394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3395 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3397 break 2 3398 fi 3399done 3400 done 3401IFS=$as_save_IFS 3402 3403fi 3404fi 3405CC=$ac_cv_prog_CC 3406if test -n "$CC"; then 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3408$as_echo "$CC" >&6; } 3409else 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3411$as_echo "no" >&6; } 3412fi 3413 3414 3415fi 3416if test -z "$ac_cv_prog_CC"; then 3417 ac_ct_CC=$CC 3418 # Extract the first word of "gcc", so it can be a program name with args. 3419set dummy gcc; ac_word=$2 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3421$as_echo_n "checking for $ac_word... " >&6; } 3422if ${ac_cv_prog_ac_ct_CC+:} false; then : 3423 $as_echo_n "(cached) " >&6 3424else 3425 if test -n "$ac_ct_CC"; then 3426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3427else 3428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3429for as_dir in $PATH 3430do 3431 IFS=$as_save_IFS 3432 test -z "$as_dir" && as_dir=. 3433 for ac_exec_ext in '' $ac_executable_extensions; do 3434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3435 ac_cv_prog_ac_ct_CC="gcc" 3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3437 break 2 3438 fi 3439done 3440 done 3441IFS=$as_save_IFS 3442 3443fi 3444fi 3445ac_ct_CC=$ac_cv_prog_ac_ct_CC 3446if test -n "$ac_ct_CC"; then 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3448$as_echo "$ac_ct_CC" >&6; } 3449else 3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3451$as_echo "no" >&6; } 3452fi 3453 3454 if test "x$ac_ct_CC" = x; then 3455 CC="" 3456 else 3457 case $cross_compiling:$ac_tool_warned in 3458yes:) 3459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3461ac_tool_warned=yes ;; 3462esac 3463 CC=$ac_ct_CC 3464 fi 3465else 3466 CC="$ac_cv_prog_CC" 3467fi 3468 3469if test -z "$CC"; then 3470 if test -n "$ac_tool_prefix"; then 3471 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3472set dummy ${ac_tool_prefix}cc; ac_word=$2 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3474$as_echo_n "checking for $ac_word... " >&6; } 3475if ${ac_cv_prog_CC+:} false; then : 3476 $as_echo_n "(cached) " >&6 3477else 3478 if test -n "$CC"; then 3479 ac_cv_prog_CC="$CC" # Let the user override the test. 3480else 3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3482for as_dir in $PATH 3483do 3484 IFS=$as_save_IFS 3485 test -z "$as_dir" && as_dir=. 3486 for ac_exec_ext in '' $ac_executable_extensions; do 3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3488 ac_cv_prog_CC="${ac_tool_prefix}cc" 3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3490 break 2 3491 fi 3492done 3493 done 3494IFS=$as_save_IFS 3495 3496fi 3497fi 3498CC=$ac_cv_prog_CC 3499if test -n "$CC"; then 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3501$as_echo "$CC" >&6; } 3502else 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3504$as_echo "no" >&6; } 3505fi 3506 3507 3508 fi 3509fi 3510if test -z "$CC"; then 3511 # Extract the first word of "cc", so it can be a program name with args. 3512set dummy cc; ac_word=$2 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3514$as_echo_n "checking for $ac_word... " >&6; } 3515if ${ac_cv_prog_CC+:} false; then : 3516 $as_echo_n "(cached) " >&6 3517else 3518 if test -n "$CC"; then 3519 ac_cv_prog_CC="$CC" # Let the user override the test. 3520else 3521 ac_prog_rejected=no 3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3523for as_dir in $PATH 3524do 3525 IFS=$as_save_IFS 3526 test -z "$as_dir" && as_dir=. 3527 for ac_exec_ext in '' $ac_executable_extensions; do 3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3529 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3530 ac_prog_rejected=yes 3531 continue 3532 fi 3533 ac_cv_prog_CC="cc" 3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3535 break 2 3536 fi 3537done 3538 done 3539IFS=$as_save_IFS 3540 3541if test $ac_prog_rejected = yes; then 3542 # We found a bogon in the path, so make sure we never use it. 3543 set dummy $ac_cv_prog_CC 3544 shift 3545 if test $# != 0; then 3546 # We chose a different compiler from the bogus one. 3547 # However, it has the same basename, so the bogon will be chosen 3548 # first if we set CC to just the basename; use the full file name. 3549 shift 3550 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3551 fi 3552fi 3553fi 3554fi 3555CC=$ac_cv_prog_CC 3556if test -n "$CC"; then 3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3558$as_echo "$CC" >&6; } 3559else 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3561$as_echo "no" >&6; } 3562fi 3563 3564 3565fi 3566if test -z "$CC"; then 3567 if test -n "$ac_tool_prefix"; then 3568 for ac_prog in cl.exe 3569 do 3570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3571set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3573$as_echo_n "checking for $ac_word... " >&6; } 3574if ${ac_cv_prog_CC+:} false; then : 3575 $as_echo_n "(cached) " >&6 3576else 3577 if test -n "$CC"; then 3578 ac_cv_prog_CC="$CC" # Let the user override the test. 3579else 3580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3581for as_dir in $PATH 3582do 3583 IFS=$as_save_IFS 3584 test -z "$as_dir" && as_dir=. 3585 for ac_exec_ext in '' $ac_executable_extensions; do 3586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3587 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3589 break 2 3590 fi 3591done 3592 done 3593IFS=$as_save_IFS 3594 3595fi 3596fi 3597CC=$ac_cv_prog_CC 3598if test -n "$CC"; then 3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3600$as_echo "$CC" >&6; } 3601else 3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3603$as_echo "no" >&6; } 3604fi 3605 3606 3607 test -n "$CC" && break 3608 done 3609fi 3610if test -z "$CC"; then 3611 ac_ct_CC=$CC 3612 for ac_prog in cl.exe 3613do 3614 # Extract the first word of "$ac_prog", so it can be a program name with args. 3615set dummy $ac_prog; ac_word=$2 3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3617$as_echo_n "checking for $ac_word... " >&6; } 3618if ${ac_cv_prog_ac_ct_CC+:} false; then : 3619 $as_echo_n "(cached) " >&6 3620else 3621 if test -n "$ac_ct_CC"; then 3622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3623else 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 ac_cv_prog_ac_ct_CC="$ac_prog" 3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3633 break 2 3634 fi 3635done 3636 done 3637IFS=$as_save_IFS 3638 3639fi 3640fi 3641ac_ct_CC=$ac_cv_prog_ac_ct_CC 3642if test -n "$ac_ct_CC"; then 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3644$as_echo "$ac_ct_CC" >&6; } 3645else 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3647$as_echo "no" >&6; } 3648fi 3649 3650 3651 test -n "$ac_ct_CC" && break 3652done 3653 3654 if test "x$ac_ct_CC" = x; then 3655 CC="" 3656 else 3657 case $cross_compiling:$ac_tool_warned in 3658yes:) 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3661ac_tool_warned=yes ;; 3662esac 3663 CC=$ac_ct_CC 3664 fi 3665fi 3666 3667fi 3668 3669 3670test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3672as_fn_error $? "no acceptable C compiler found in \$PATH 3673See \`config.log' for more details" "$LINENO" 5; } 3674 3675# Provide some information about the compiler. 3676$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3677set X $ac_compile 3678ac_compiler=$2 3679for ac_option in --version -v -V -qversion; do 3680 { { ac_try="$ac_compiler $ac_option >&5" 3681case "(($ac_try" in 3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3683 *) ac_try_echo=$ac_try;; 3684esac 3685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3686$as_echo "$ac_try_echo"; } >&5 3687 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3688 ac_status=$? 3689 if test -s conftest.err; then 3690 sed '10a\ 3691... rest of stderr output deleted ... 3692 10q' conftest.err >conftest.er1 3693 cat conftest.er1 >&5 3694 fi 3695 rm -f conftest.er1 conftest.err 3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3697 test $ac_status = 0; } 3698done 3699 3700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3701/* end confdefs.h. */ 3702 3703int 3704main () 3705{ 3706 3707 ; 3708 return 0; 3709} 3710_ACEOF 3711ac_clean_files_save=$ac_clean_files 3712ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3713# Try to create an executable without -o first, disregard a.out. 3714# It will help us diagnose broken compilers, and finding out an intuition 3715# of exeext. 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3717$as_echo_n "checking whether the C compiler works... " >&6; } 3718ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3719 3720# The possible output files: 3721ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3722 3723ac_rmfiles= 3724for ac_file in $ac_files 3725do 3726 case $ac_file in 3727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3728 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3729 esac 3730done 3731rm -f $ac_rmfiles 3732 3733if { { ac_try="$ac_link_default" 3734case "(($ac_try" in 3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3736 *) ac_try_echo=$ac_try;; 3737esac 3738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3739$as_echo "$ac_try_echo"; } >&5 3740 (eval "$ac_link_default") 2>&5 3741 ac_status=$? 3742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3743 test $ac_status = 0; }; then : 3744 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3745# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3746# in a Makefile. We should not override ac_cv_exeext if it was cached, 3747# so that the user can short-circuit this test for compilers unknown to 3748# Autoconf. 3749for ac_file in $ac_files '' 3750do 3751 test -f "$ac_file" || continue 3752 case $ac_file in 3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3754 ;; 3755 [ab].out ) 3756 # We found the default executable, but exeext='' is most 3757 # certainly right. 3758 break;; 3759 *.* ) 3760 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3761 then :; else 3762 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3763 fi 3764 # We set ac_cv_exeext here because the later test for it is not 3765 # safe: cross compilers may not add the suffix if given an `-o' 3766 # argument, so we may need to know it at that point already. 3767 # Even if this section looks crufty: it has the advantage of 3768 # actually working. 3769 break;; 3770 * ) 3771 break;; 3772 esac 3773done 3774test "$ac_cv_exeext" = no && ac_cv_exeext= 3775 3776else 3777 ac_file='' 3778fi 3779if test -z "$ac_file"; then : 3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3781$as_echo "no" >&6; } 3782$as_echo "$as_me: failed program was:" >&5 3783sed 's/^/| /' conftest.$ac_ext >&5 3784 3785{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3787as_fn_error 77 "C compiler cannot create executables 3788See \`config.log' for more details" "$LINENO" 5; } 3789else 3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3791$as_echo "yes" >&6; } 3792fi 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3794$as_echo_n "checking for C compiler default output file name... " >&6; } 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3796$as_echo "$ac_file" >&6; } 3797ac_exeext=$ac_cv_exeext 3798 3799rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3800ac_clean_files=$ac_clean_files_save 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3802$as_echo_n "checking for suffix of executables... " >&6; } 3803if { { ac_try="$ac_link" 3804case "(($ac_try" in 3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3806 *) ac_try_echo=$ac_try;; 3807esac 3808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3809$as_echo "$ac_try_echo"; } >&5 3810 (eval "$ac_link") 2>&5 3811 ac_status=$? 3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3813 test $ac_status = 0; }; then : 3814 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3815# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3816# work properly (i.e., refer to `conftest.exe'), while it won't with 3817# `rm'. 3818for ac_file in conftest.exe conftest conftest.*; do 3819 test -f "$ac_file" || continue 3820 case $ac_file in 3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3822 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3823 break;; 3824 * ) break;; 3825 esac 3826done 3827else 3828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3830as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3831See \`config.log' for more details" "$LINENO" 5; } 3832fi 3833rm -f conftest conftest$ac_cv_exeext 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3835$as_echo "$ac_cv_exeext" >&6; } 3836 3837rm -f conftest.$ac_ext 3838EXEEXT=$ac_cv_exeext 3839ac_exeext=$EXEEXT 3840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3841/* end confdefs.h. */ 3842#include <stdio.h> 3843int 3844main () 3845{ 3846FILE *f = fopen ("conftest.out", "w"); 3847 return ferror (f) || fclose (f) != 0; 3848 3849 ; 3850 return 0; 3851} 3852_ACEOF 3853ac_clean_files="$ac_clean_files conftest.out" 3854# Check that the compiler produces executables we can run. If not, either 3855# the compiler is broken, or we cross compile. 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3857$as_echo_n "checking whether we are cross compiling... " >&6; } 3858if test "$cross_compiling" != yes; then 3859 { { ac_try="$ac_link" 3860case "(($ac_try" in 3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3862 *) ac_try_echo=$ac_try;; 3863esac 3864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3865$as_echo "$ac_try_echo"; } >&5 3866 (eval "$ac_link") 2>&5 3867 ac_status=$? 3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3869 test $ac_status = 0; } 3870 if { ac_try='./conftest$ac_cv_exeext' 3871 { { case "(($ac_try" in 3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3873 *) ac_try_echo=$ac_try;; 3874esac 3875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3876$as_echo "$ac_try_echo"; } >&5 3877 (eval "$ac_try") 2>&5 3878 ac_status=$? 3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3880 test $ac_status = 0; }; }; then 3881 cross_compiling=no 3882 else 3883 if test "$cross_compiling" = maybe; then 3884 cross_compiling=yes 3885 else 3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3888as_fn_error $? "cannot run C compiled programs. 3889If you meant to cross compile, use \`--host'. 3890See \`config.log' for more details" "$LINENO" 5; } 3891 fi 3892 fi 3893fi 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3895$as_echo "$cross_compiling" >&6; } 3896 3897rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3898ac_clean_files=$ac_clean_files_save 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3900$as_echo_n "checking for suffix of object files... " >&6; } 3901if ${ac_cv_objext+:} false; then : 3902 $as_echo_n "(cached) " >&6 3903else 3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3905/* end confdefs.h. */ 3906 3907int 3908main () 3909{ 3910 3911 ; 3912 return 0; 3913} 3914_ACEOF 3915rm -f conftest.o conftest.obj 3916if { { ac_try="$ac_compile" 3917case "(($ac_try" in 3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3919 *) ac_try_echo=$ac_try;; 3920esac 3921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3922$as_echo "$ac_try_echo"; } >&5 3923 (eval "$ac_compile") 2>&5 3924 ac_status=$? 3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3926 test $ac_status = 0; }; then : 3927 for ac_file in conftest.o conftest.obj conftest.*; do 3928 test -f "$ac_file" || continue; 3929 case $ac_file in 3930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3931 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3932 break;; 3933 esac 3934done 3935else 3936 $as_echo "$as_me: failed program was:" >&5 3937sed 's/^/| /' conftest.$ac_ext >&5 3938 3939{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3941as_fn_error $? "cannot compute suffix of object files: cannot compile 3942See \`config.log' for more details" "$LINENO" 5; } 3943fi 3944rm -f conftest.$ac_cv_objext conftest.$ac_ext 3945fi 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3947$as_echo "$ac_cv_objext" >&6; } 3948OBJEXT=$ac_cv_objext 3949ac_objext=$OBJEXT 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3951$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3952if ${ac_cv_c_compiler_gnu+:} false; then : 3953 $as_echo_n "(cached) " >&6 3954else 3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3956/* end confdefs.h. */ 3957 3958int 3959main () 3960{ 3961#ifndef __GNUC__ 3962 choke me 3963#endif 3964 3965 ; 3966 return 0; 3967} 3968_ACEOF 3969if ac_fn_c_try_compile "$LINENO"; then : 3970 ac_compiler_gnu=yes 3971else 3972 ac_compiler_gnu=no 3973fi 3974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3975ac_cv_c_compiler_gnu=$ac_compiler_gnu 3976 3977fi 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3979$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3980if test $ac_compiler_gnu = yes; then 3981 GCC=yes 3982else 3983 GCC= 3984fi 3985ac_test_CFLAGS=${CFLAGS+set} 3986ac_save_CFLAGS=$CFLAGS 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3988$as_echo_n "checking whether $CC accepts -g... " >&6; } 3989if ${ac_cv_prog_cc_g+:} false; then : 3990 $as_echo_n "(cached) " >&6 3991else 3992 ac_save_c_werror_flag=$ac_c_werror_flag 3993 ac_c_werror_flag=yes 3994 ac_cv_prog_cc_g=no 3995 CFLAGS="-g" 3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3997/* end confdefs.h. */ 3998 3999int 4000main () 4001{ 4002 4003 ; 4004 return 0; 4005} 4006_ACEOF 4007if ac_fn_c_try_compile "$LINENO"; then : 4008 ac_cv_prog_cc_g=yes 4009else 4010 CFLAGS="" 4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4012/* end confdefs.h. */ 4013 4014int 4015main () 4016{ 4017 4018 ; 4019 return 0; 4020} 4021_ACEOF 4022if ac_fn_c_try_compile "$LINENO"; then : 4023 4024else 4025 ac_c_werror_flag=$ac_save_c_werror_flag 4026 CFLAGS="-g" 4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028/* end confdefs.h. */ 4029 4030int 4031main () 4032{ 4033 4034 ; 4035 return 0; 4036} 4037_ACEOF 4038if ac_fn_c_try_compile "$LINENO"; then : 4039 ac_cv_prog_cc_g=yes 4040fi 4041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4042fi 4043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4044fi 4045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4046 ac_c_werror_flag=$ac_save_c_werror_flag 4047fi 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4049$as_echo "$ac_cv_prog_cc_g" >&6; } 4050if test "$ac_test_CFLAGS" = set; then 4051 CFLAGS=$ac_save_CFLAGS 4052elif test $ac_cv_prog_cc_g = yes; then 4053 if test "$GCC" = yes; then 4054 CFLAGS="-g -O2" 4055 else 4056 CFLAGS="-g" 4057 fi 4058else 4059 if test "$GCC" = yes; then 4060 CFLAGS="-O2" 4061 else 4062 CFLAGS= 4063 fi 4064fi 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4066$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4067if ${ac_cv_prog_cc_c89+:} false; then : 4068 $as_echo_n "(cached) " >&6 4069else 4070 ac_cv_prog_cc_c89=no 4071ac_save_CC=$CC 4072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4073/* end confdefs.h. */ 4074#include <stdarg.h> 4075#include <stdio.h> 4076struct stat; 4077/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4078struct buf { int x; }; 4079FILE * (*rcsopen) (struct buf *, struct stat *, int); 4080static char *e (p, i) 4081 char **p; 4082 int i; 4083{ 4084 return p[i]; 4085} 4086static char *f (char * (*g) (char **, int), char **p, ...) 4087{ 4088 char *s; 4089 va_list v; 4090 va_start (v,p); 4091 s = g (p, va_arg (v,int)); 4092 va_end (v); 4093 return s; 4094} 4095 4096/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4097 function prototypes and stuff, but not '\xHH' hex character constants. 4098 These don't provoke an error unfortunately, instead are silently treated 4099 as 'x'. The following induces an error, until -std is added to get 4100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4101 array size at least. It's necessary to write '\x00'==0 to get something 4102 that's true only with -std. */ 4103int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4104 4105/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4106 inside strings and character constants. */ 4107#define FOO(x) 'x' 4108int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4109 4110int test (int i, double x); 4111struct s1 {int (*f) (int a);}; 4112struct s2 {int (*f) (double a);}; 4113int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4114int argc; 4115char **argv; 4116int 4117main () 4118{ 4119return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4120 ; 4121 return 0; 4122} 4123_ACEOF 4124for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4126do 4127 CC="$ac_save_CC $ac_arg" 4128 if ac_fn_c_try_compile "$LINENO"; then : 4129 ac_cv_prog_cc_c89=$ac_arg 4130fi 4131rm -f core conftest.err conftest.$ac_objext 4132 test "x$ac_cv_prog_cc_c89" != "xno" && break 4133done 4134rm -f conftest.$ac_ext 4135CC=$ac_save_CC 4136 4137fi 4138# AC_CACHE_VAL 4139case "x$ac_cv_prog_cc_c89" in 4140 x) 4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4142$as_echo "none needed" >&6; } ;; 4143 xno) 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4145$as_echo "unsupported" >&6; } ;; 4146 *) 4147 CC="$CC $ac_cv_prog_cc_c89" 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4149$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4150esac 4151if test "x$ac_cv_prog_cc_c89" != xno; then : 4152 4153fi 4154 4155ac_ext=c 4156ac_cpp='$CPP $CPPFLAGS' 4157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4159ac_compiler_gnu=$ac_cv_c_compiler_gnu 4160 4161ac_ext=c 4162ac_cpp='$CPP $CPPFLAGS' 4163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4165ac_compiler_gnu=$ac_cv_c_compiler_gnu 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4167$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4168if ${am_cv_prog_cc_c_o+:} false; then : 4169 $as_echo_n "(cached) " >&6 4170else 4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4172/* end confdefs.h. */ 4173 4174int 4175main () 4176{ 4177 4178 ; 4179 return 0; 4180} 4181_ACEOF 4182 # Make sure it works both with $CC and with simple cc. 4183 # Following AC_PROG_CC_C_O, we do the test twice because some 4184 # compilers refuse to overwrite an existing .o file with -o, 4185 # though they will create one. 4186 am_cv_prog_cc_c_o=yes 4187 for am_i in 1 2; do 4188 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4189 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4190 ac_status=$? 4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4192 (exit $ac_status); } \ 4193 && test -f conftest2.$ac_objext; then 4194 : OK 4195 else 4196 am_cv_prog_cc_c_o=no 4197 break 4198 fi 4199 done 4200 rm -f core conftest* 4201 unset am_i 4202fi 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4204$as_echo "$am_cv_prog_cc_c_o" >&6; } 4205if test "$am_cv_prog_cc_c_o" != yes; then 4206 # Losing compiler, so override with the script. 4207 # FIXME: It is wrong to rewrite CC. 4208 # But if we don't then we get into trouble of one sort or another. 4209 # A longer-term fix would be to have automake use am__CC in this case, 4210 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4211 CC="$am_aux_dir/compile $CC" 4212fi 4213ac_ext=c 4214ac_cpp='$CPP $CPPFLAGS' 4215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4217ac_compiler_gnu=$ac_cv_c_compiler_gnu 4218 4219 4220depcc="$CC" am_compiler_list= 4221 4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4223$as_echo_n "checking dependency style of $depcc... " >&6; } 4224if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4225 $as_echo_n "(cached) " >&6 4226else 4227 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4228 # We make a subdir and do the tests there. Otherwise we can end up 4229 # making bogus files that we don't know about and never remove. For 4230 # instance it was reported that on HP-UX the gcc test will end up 4231 # making a dummy file named 'D' -- because '-MD' means "put the output 4232 # in D". 4233 rm -rf conftest.dir 4234 mkdir conftest.dir 4235 # Copy depcomp to subdir because otherwise we won't find it if we're 4236 # using a relative directory. 4237 cp "$am_depcomp" conftest.dir 4238 cd conftest.dir 4239 # We will build objects and dependencies in a subdirectory because 4240 # it helps to detect inapplicable dependency modes. For instance 4241 # both Tru64's cc and ICC support -MD to output dependencies as a 4242 # side effect of compilation, but ICC will put the dependencies in 4243 # the current directory while Tru64 will put them in the object 4244 # directory. 4245 mkdir sub 4246 4247 am_cv_CC_dependencies_compiler_type=none 4248 if test "$am_compiler_list" = ""; then 4249 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4250 fi 4251 am__universal=false 4252 case " $depcc " in #( 4253 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4254 esac 4255 4256 for depmode in $am_compiler_list; do 4257 # Setup a source with many dependencies, because some compilers 4258 # like to wrap large dependency lists on column 80 (with \), and 4259 # we should not choose a depcomp mode which is confused by this. 4260 # 4261 # We need to recreate these files for each test, as the compiler may 4262 # overwrite some of them when testing with obscure command lines. 4263 # This happens at least with the AIX C compiler. 4264 : > sub/conftest.c 4265 for i in 1 2 3 4 5 6; do 4266 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4267 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4268 # Solaris 10 /bin/sh. 4269 echo '/* dummy */' > sub/conftst$i.h 4270 done 4271 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4272 4273 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4274 # mode. It turns out that the SunPro C++ compiler does not properly 4275 # handle '-M -o', and we need to detect this. Also, some Intel 4276 # versions had trouble with output in subdirs. 4277 am__obj=sub/conftest.${OBJEXT-o} 4278 am__minus_obj="-o $am__obj" 4279 case $depmode in 4280 gcc) 4281 # This depmode causes a compiler race in universal mode. 4282 test "$am__universal" = false || continue 4283 ;; 4284 nosideeffect) 4285 # After this tag, mechanisms are not by side-effect, so they'll 4286 # only be used when explicitly requested. 4287 if test "x$enable_dependency_tracking" = xyes; then 4288 continue 4289 else 4290 break 4291 fi 4292 ;; 4293 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4294 # This compiler won't grok '-c -o', but also, the minuso test has 4295 # not run yet. These depmodes are late enough in the game, and 4296 # so weak that their functioning should not be impacted. 4297 am__obj=conftest.${OBJEXT-o} 4298 am__minus_obj= 4299 ;; 4300 none) break ;; 4301 esac 4302 if depmode=$depmode \ 4303 source=sub/conftest.c object=$am__obj \ 4304 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4305 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4306 >/dev/null 2>conftest.err && 4307 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4308 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4309 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4310 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4311 # icc doesn't choke on unknown options, it will just issue warnings 4312 # or remarks (even with -Werror). So we grep stderr for any message 4313 # that says an option was ignored or not supported. 4314 # When given -MP, icc 7.0 and 7.1 complain thusly: 4315 # icc: Command line warning: ignoring option '-M'; no argument required 4316 # The diagnosis changed in icc 8.0: 4317 # icc: Command line remark: option '-MP' not supported 4318 if (grep 'ignoring option' conftest.err || 4319 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4320 am_cv_CC_dependencies_compiler_type=$depmode 4321 break 4322 fi 4323 fi 4324 done 4325 4326 cd .. 4327 rm -rf conftest.dir 4328else 4329 am_cv_CC_dependencies_compiler_type=none 4330fi 4331 4332fi 4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4334$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4335CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4336 4337 if 4338 test "x$enable_dependency_tracking" != xno \ 4339 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4340 am__fastdepCC_TRUE= 4341 am__fastdepCC_FALSE='#' 4342else 4343 am__fastdepCC_TRUE='#' 4344 am__fastdepCC_FALSE= 4345fi 4346 4347 4348 4349ac_ext=c 4350ac_cpp='$CPP $CPPFLAGS' 4351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4353ac_compiler_gnu=$ac_cv_c_compiler_gnu 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4355$as_echo_n "checking how to run the C preprocessor... " >&6; } 4356# On Suns, sometimes $CPP names a directory. 4357if test -n "$CPP" && test -d "$CPP"; then 4358 CPP= 4359fi 4360if test -z "$CPP"; then 4361 if ${ac_cv_prog_CPP+:} false; then : 4362 $as_echo_n "(cached) " >&6 4363else 4364 # Double quotes because CPP needs to be expanded 4365 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4366 do 4367 ac_preproc_ok=false 4368for ac_c_preproc_warn_flag in '' yes 4369do 4370 # Use a header file that comes with gcc, so configuring glibc 4371 # with a fresh cross-compiler works. 4372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4373 # <limits.h> exists even on freestanding compilers. 4374 # On the NeXT, cc -E runs the code through the compiler's parser, 4375 # not just through cpp. "Syntax error" is here to catch this case. 4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4377/* end confdefs.h. */ 4378#ifdef __STDC__ 4379# include <limits.h> 4380#else 4381# include <assert.h> 4382#endif 4383 Syntax error 4384_ACEOF 4385if ac_fn_c_try_cpp "$LINENO"; then : 4386 4387else 4388 # Broken: fails on valid input. 4389continue 4390fi 4391rm -f conftest.err conftest.i conftest.$ac_ext 4392 4393 # OK, works on sane cases. Now check whether nonexistent headers 4394 # can be detected and how. 4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4396/* end confdefs.h. */ 4397#include <ac_nonexistent.h> 4398_ACEOF 4399if ac_fn_c_try_cpp "$LINENO"; then : 4400 # Broken: success on invalid input. 4401continue 4402else 4403 # Passes both tests. 4404ac_preproc_ok=: 4405break 4406fi 4407rm -f conftest.err conftest.i conftest.$ac_ext 4408 4409done 4410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4411rm -f conftest.i conftest.err conftest.$ac_ext 4412if $ac_preproc_ok; then : 4413 break 4414fi 4415 4416 done 4417 ac_cv_prog_CPP=$CPP 4418 4419fi 4420 CPP=$ac_cv_prog_CPP 4421else 4422 ac_cv_prog_CPP=$CPP 4423fi 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4425$as_echo "$CPP" >&6; } 4426ac_preproc_ok=false 4427for ac_c_preproc_warn_flag in '' yes 4428do 4429 # Use a header file that comes with gcc, so configuring glibc 4430 # with a fresh cross-compiler works. 4431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4432 # <limits.h> exists even on freestanding compilers. 4433 # On the NeXT, cc -E runs the code through the compiler's parser, 4434 # not just through cpp. "Syntax error" is here to catch this case. 4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436/* end confdefs.h. */ 4437#ifdef __STDC__ 4438# include <limits.h> 4439#else 4440# include <assert.h> 4441#endif 4442 Syntax error 4443_ACEOF 4444if ac_fn_c_try_cpp "$LINENO"; then : 4445 4446else 4447 # Broken: fails on valid input. 4448continue 4449fi 4450rm -f conftest.err conftest.i conftest.$ac_ext 4451 4452 # OK, works on sane cases. Now check whether nonexistent headers 4453 # can be detected and how. 4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4455/* end confdefs.h. */ 4456#include <ac_nonexistent.h> 4457_ACEOF 4458if ac_fn_c_try_cpp "$LINENO"; then : 4459 # Broken: success on invalid input. 4460continue 4461else 4462 # Passes both tests. 4463ac_preproc_ok=: 4464break 4465fi 4466rm -f conftest.err conftest.i conftest.$ac_ext 4467 4468done 4469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4470rm -f conftest.i conftest.err conftest.$ac_ext 4471if $ac_preproc_ok; then : 4472 4473else 4474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4476as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4477See \`config.log' for more details" "$LINENO" 5; } 4478fi 4479 4480ac_ext=c 4481ac_cpp='$CPP $CPPFLAGS' 4482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4484ac_compiler_gnu=$ac_cv_c_compiler_gnu 4485 4486 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4488$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4489if ${ac_cv_path_GREP+:} false; then : 4490 $as_echo_n "(cached) " >&6 4491else 4492 if test -z "$GREP"; then 4493 ac_path_GREP_found=false 4494 # Loop through the user's path and test for each of PROGNAME-LIST 4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4496for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4497do 4498 IFS=$as_save_IFS 4499 test -z "$as_dir" && as_dir=. 4500 for ac_prog in grep ggrep; do 4501 for ac_exec_ext in '' $ac_executable_extensions; do 4502 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4503 as_fn_executable_p "$ac_path_GREP" || continue 4504# Check for GNU ac_path_GREP and select it if it is found. 4505 # Check for GNU $ac_path_GREP 4506case `"$ac_path_GREP" --version 2>&1` in 4507*GNU*) 4508 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4509*) 4510 ac_count=0 4511 $as_echo_n 0123456789 >"conftest.in" 4512 while : 4513 do 4514 cat "conftest.in" "conftest.in" >"conftest.tmp" 4515 mv "conftest.tmp" "conftest.in" 4516 cp "conftest.in" "conftest.nl" 4517 $as_echo 'GREP' >> "conftest.nl" 4518 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4520 as_fn_arith $ac_count + 1 && ac_count=$as_val 4521 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4522 # Best one so far, save it but keep looking for a better one 4523 ac_cv_path_GREP="$ac_path_GREP" 4524 ac_path_GREP_max=$ac_count 4525 fi 4526 # 10*(2^10) chars as input seems more than enough 4527 test $ac_count -gt 10 && break 4528 done 4529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4530esac 4531 4532 $ac_path_GREP_found && break 3 4533 done 4534 done 4535 done 4536IFS=$as_save_IFS 4537 if test -z "$ac_cv_path_GREP"; then 4538 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4539 fi 4540else 4541 ac_cv_path_GREP=$GREP 4542fi 4543 4544fi 4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4546$as_echo "$ac_cv_path_GREP" >&6; } 4547 GREP="$ac_cv_path_GREP" 4548 4549 4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4551$as_echo_n "checking for egrep... " >&6; } 4552if ${ac_cv_path_EGREP+:} false; then : 4553 $as_echo_n "(cached) " >&6 4554else 4555 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4556 then ac_cv_path_EGREP="$GREP -E" 4557 else 4558 if test -z "$EGREP"; then 4559 ac_path_EGREP_found=false 4560 # Loop through the user's path and test for each of PROGNAME-LIST 4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4562for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4563do 4564 IFS=$as_save_IFS 4565 test -z "$as_dir" && as_dir=. 4566 for ac_prog in egrep; do 4567 for ac_exec_ext in '' $ac_executable_extensions; do 4568 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4569 as_fn_executable_p "$ac_path_EGREP" || continue 4570# Check for GNU ac_path_EGREP and select it if it is found. 4571 # Check for GNU $ac_path_EGREP 4572case `"$ac_path_EGREP" --version 2>&1` in 4573*GNU*) 4574 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4575*) 4576 ac_count=0 4577 $as_echo_n 0123456789 >"conftest.in" 4578 while : 4579 do 4580 cat "conftest.in" "conftest.in" >"conftest.tmp" 4581 mv "conftest.tmp" "conftest.in" 4582 cp "conftest.in" "conftest.nl" 4583 $as_echo 'EGREP' >> "conftest.nl" 4584 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4586 as_fn_arith $ac_count + 1 && ac_count=$as_val 4587 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4588 # Best one so far, save it but keep looking for a better one 4589 ac_cv_path_EGREP="$ac_path_EGREP" 4590 ac_path_EGREP_max=$ac_count 4591 fi 4592 # 10*(2^10) chars as input seems more than enough 4593 test $ac_count -gt 10 && break 4594 done 4595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4596esac 4597 4598 $ac_path_EGREP_found && break 3 4599 done 4600 done 4601 done 4602IFS=$as_save_IFS 4603 if test -z "$ac_cv_path_EGREP"; then 4604 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4605 fi 4606else 4607 ac_cv_path_EGREP=$EGREP 4608fi 4609 4610 fi 4611fi 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4613$as_echo "$ac_cv_path_EGREP" >&6; } 4614 EGREP="$ac_cv_path_EGREP" 4615 4616 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4618$as_echo_n "checking for ANSI C header files... " >&6; } 4619if ${ac_cv_header_stdc+:} false; then : 4620 $as_echo_n "(cached) " >&6 4621else 4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4623/* end confdefs.h. */ 4624#include <stdlib.h> 4625#include <stdarg.h> 4626#include <string.h> 4627#include <float.h> 4628 4629int 4630main () 4631{ 4632 4633 ; 4634 return 0; 4635} 4636_ACEOF 4637if ac_fn_c_try_compile "$LINENO"; then : 4638 ac_cv_header_stdc=yes 4639else 4640 ac_cv_header_stdc=no 4641fi 4642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4643 4644if test $ac_cv_header_stdc = yes; then 4645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4647/* end confdefs.h. */ 4648#include <string.h> 4649 4650_ACEOF 4651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4652 $EGREP "memchr" >/dev/null 2>&1; then : 4653 4654else 4655 ac_cv_header_stdc=no 4656fi 4657rm -f conftest* 4658 4659fi 4660 4661if test $ac_cv_header_stdc = yes; then 4662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4664/* end confdefs.h. */ 4665#include <stdlib.h> 4666 4667_ACEOF 4668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4669 $EGREP "free" >/dev/null 2>&1; then : 4670 4671else 4672 ac_cv_header_stdc=no 4673fi 4674rm -f conftest* 4675 4676fi 4677 4678if test $ac_cv_header_stdc = yes; then 4679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4680 if test "$cross_compiling" = yes; then : 4681 : 4682else 4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4684/* end confdefs.h. */ 4685#include <ctype.h> 4686#include <stdlib.h> 4687#if ((' ' & 0x0FF) == 0x020) 4688# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4689# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4690#else 4691# define ISLOWER(c) \ 4692 (('a' <= (c) && (c) <= 'i') \ 4693 || ('j' <= (c) && (c) <= 'r') \ 4694 || ('s' <= (c) && (c) <= 'z')) 4695# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4696#endif 4697 4698#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4699int 4700main () 4701{ 4702 int i; 4703 for (i = 0; i < 256; i++) 4704 if (XOR (islower (i), ISLOWER (i)) 4705 || toupper (i) != TOUPPER (i)) 4706 return 2; 4707 return 0; 4708} 4709_ACEOF 4710if ac_fn_c_try_run "$LINENO"; then : 4711 4712else 4713 ac_cv_header_stdc=no 4714fi 4715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4716 conftest.$ac_objext conftest.beam conftest.$ac_ext 4717fi 4718 4719fi 4720fi 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4722$as_echo "$ac_cv_header_stdc" >&6; } 4723if test $ac_cv_header_stdc = yes; then 4724 4725$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4726 4727fi 4728 4729# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4730for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4731 inttypes.h stdint.h unistd.h 4732do : 4733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4734ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4735" 4736if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4737 cat >>confdefs.h <<_ACEOF 4738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4739_ACEOF 4740 4741fi 4742 4743done 4744 4745 4746 4747 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4748if test "x$ac_cv_header_minix_config_h" = xyes; then : 4749 MINIX=yes 4750else 4751 MINIX= 4752fi 4753 4754 4755 if test "$MINIX" = yes; then 4756 4757$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4758 4759 4760$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4761 4762 4763$as_echo "#define _MINIX 1" >>confdefs.h 4764 4765 fi 4766 4767 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4769$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4770if ${ac_cv_safe_to_define___extensions__+:} false; then : 4771 $as_echo_n "(cached) " >&6 4772else 4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4774/* end confdefs.h. */ 4775 4776# define __EXTENSIONS__ 1 4777 $ac_includes_default 4778int 4779main () 4780{ 4781 4782 ; 4783 return 0; 4784} 4785_ACEOF 4786if ac_fn_c_try_compile "$LINENO"; then : 4787 ac_cv_safe_to_define___extensions__=yes 4788else 4789 ac_cv_safe_to_define___extensions__=no 4790fi 4791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4792fi 4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4794$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4795 test $ac_cv_safe_to_define___extensions__ = yes && 4796 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4797 4798 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4799 4800 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4801 4802 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4803 4804 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4805 4806 4807 4808 4809# Check using C++ 4810ac_ext=cpp 4811ac_cpp='$CXXCPP $CPPFLAGS' 4812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4815 4816 4817# Checks for programs. 4818ac_ext=cpp 4819ac_cpp='$CXXCPP $CPPFLAGS' 4820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4823if test -z "$CXX"; then 4824 if test -n "$CCC"; then 4825 CXX=$CCC 4826 else 4827 if test -n "$ac_tool_prefix"; then 4828 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4829 do 4830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4831set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4833$as_echo_n "checking for $ac_word... " >&6; } 4834if ${ac_cv_prog_CXX+:} false; then : 4835 $as_echo_n "(cached) " >&6 4836else 4837 if test -n "$CXX"; then 4838 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4839else 4840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4841for as_dir in $PATH 4842do 4843 IFS=$as_save_IFS 4844 test -z "$as_dir" && as_dir=. 4845 for ac_exec_ext in '' $ac_executable_extensions; do 4846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4847 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4849 break 2 4850 fi 4851done 4852 done 4853IFS=$as_save_IFS 4854 4855fi 4856fi 4857CXX=$ac_cv_prog_CXX 4858if test -n "$CXX"; then 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4860$as_echo "$CXX" >&6; } 4861else 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4863$as_echo "no" >&6; } 4864fi 4865 4866 4867 test -n "$CXX" && break 4868 done 4869fi 4870if test -z "$CXX"; then 4871 ac_ct_CXX=$CXX 4872 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4873do 4874 # Extract the first word of "$ac_prog", so it can be a program name with args. 4875set dummy $ac_prog; ac_word=$2 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4877$as_echo_n "checking for $ac_word... " >&6; } 4878if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4879 $as_echo_n "(cached) " >&6 4880else 4881 if test -n "$ac_ct_CXX"; then 4882 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4883else 4884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4885for as_dir in $PATH 4886do 4887 IFS=$as_save_IFS 4888 test -z "$as_dir" && as_dir=. 4889 for ac_exec_ext in '' $ac_executable_extensions; do 4890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4891 ac_cv_prog_ac_ct_CXX="$ac_prog" 4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4893 break 2 4894 fi 4895done 4896 done 4897IFS=$as_save_IFS 4898 4899fi 4900fi 4901ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4902if test -n "$ac_ct_CXX"; then 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4904$as_echo "$ac_ct_CXX" >&6; } 4905else 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4907$as_echo "no" >&6; } 4908fi 4909 4910 4911 test -n "$ac_ct_CXX" && break 4912done 4913 4914 if test "x$ac_ct_CXX" = x; then 4915 CXX="g++" 4916 else 4917 case $cross_compiling:$ac_tool_warned in 4918yes:) 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4921ac_tool_warned=yes ;; 4922esac 4923 CXX=$ac_ct_CXX 4924 fi 4925fi 4926 4927 fi 4928fi 4929# Provide some information about the compiler. 4930$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4931set X $ac_compile 4932ac_compiler=$2 4933for ac_option in --version -v -V -qversion; do 4934 { { ac_try="$ac_compiler $ac_option >&5" 4935case "(($ac_try" in 4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4937 *) ac_try_echo=$ac_try;; 4938esac 4939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4940$as_echo "$ac_try_echo"; } >&5 4941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4942 ac_status=$? 4943 if test -s conftest.err; then 4944 sed '10a\ 4945... rest of stderr output deleted ... 4946 10q' conftest.err >conftest.er1 4947 cat conftest.er1 >&5 4948 fi 4949 rm -f conftest.er1 conftest.err 4950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4951 test $ac_status = 0; } 4952done 4953 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4955$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4956if ${ac_cv_cxx_compiler_gnu+:} false; then : 4957 $as_echo_n "(cached) " >&6 4958else 4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4960/* end confdefs.h. */ 4961 4962int 4963main () 4964{ 4965#ifndef __GNUC__ 4966 choke me 4967#endif 4968 4969 ; 4970 return 0; 4971} 4972_ACEOF 4973if ac_fn_cxx_try_compile "$LINENO"; then : 4974 ac_compiler_gnu=yes 4975else 4976 ac_compiler_gnu=no 4977fi 4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4979ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4980 4981fi 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4983$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4984if test $ac_compiler_gnu = yes; then 4985 GXX=yes 4986else 4987 GXX= 4988fi 4989ac_test_CXXFLAGS=${CXXFLAGS+set} 4990ac_save_CXXFLAGS=$CXXFLAGS 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4992$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4993if ${ac_cv_prog_cxx_g+:} false; then : 4994 $as_echo_n "(cached) " >&6 4995else 4996 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4997 ac_cxx_werror_flag=yes 4998 ac_cv_prog_cxx_g=no 4999 CXXFLAGS="-g" 5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5001/* end confdefs.h. */ 5002 5003int 5004main () 5005{ 5006 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011if ac_fn_cxx_try_compile "$LINENO"; then : 5012 ac_cv_prog_cxx_g=yes 5013else 5014 CXXFLAGS="" 5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5016/* end confdefs.h. */ 5017 5018int 5019main () 5020{ 5021 5022 ; 5023 return 0; 5024} 5025_ACEOF 5026if ac_fn_cxx_try_compile "$LINENO"; then : 5027 5028else 5029 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5030 CXXFLAGS="-g" 5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5032/* end confdefs.h. */ 5033 5034int 5035main () 5036{ 5037 5038 ; 5039 return 0; 5040} 5041_ACEOF 5042if ac_fn_cxx_try_compile "$LINENO"; then : 5043 ac_cv_prog_cxx_g=yes 5044fi 5045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5046fi 5047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5048fi 5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5050 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5051fi 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5053$as_echo "$ac_cv_prog_cxx_g" >&6; } 5054if test "$ac_test_CXXFLAGS" = set; then 5055 CXXFLAGS=$ac_save_CXXFLAGS 5056elif test $ac_cv_prog_cxx_g = yes; then 5057 if test "$GXX" = yes; then 5058 CXXFLAGS="-g -O2" 5059 else 5060 CXXFLAGS="-g" 5061 fi 5062else 5063 if test "$GXX" = yes; then 5064 CXXFLAGS="-O2" 5065 else 5066 CXXFLAGS= 5067 fi 5068fi 5069ac_ext=cpp 5070ac_cpp='$CXXCPP $CPPFLAGS' 5071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5074 5075depcc="$CXX" am_compiler_list= 5076 5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5078$as_echo_n "checking dependency style of $depcc... " >&6; } 5079if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5080 $as_echo_n "(cached) " >&6 5081else 5082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5083 # We make a subdir and do the tests there. Otherwise we can end up 5084 # making bogus files that we don't know about and never remove. For 5085 # instance it was reported that on HP-UX the gcc test will end up 5086 # making a dummy file named 'D' -- because '-MD' means "put the output 5087 # in D". 5088 rm -rf conftest.dir 5089 mkdir conftest.dir 5090 # Copy depcomp to subdir because otherwise we won't find it if we're 5091 # using a relative directory. 5092 cp "$am_depcomp" conftest.dir 5093 cd conftest.dir 5094 # We will build objects and dependencies in a subdirectory because 5095 # it helps to detect inapplicable dependency modes. For instance 5096 # both Tru64's cc and ICC support -MD to output dependencies as a 5097 # side effect of compilation, but ICC will put the dependencies in 5098 # the current directory while Tru64 will put them in the object 5099 # directory. 5100 mkdir sub 5101 5102 am_cv_CXX_dependencies_compiler_type=none 5103 if test "$am_compiler_list" = ""; then 5104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5105 fi 5106 am__universal=false 5107 case " $depcc " in #( 5108 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5109 esac 5110 5111 for depmode in $am_compiler_list; do 5112 # Setup a source with many dependencies, because some compilers 5113 # like to wrap large dependency lists on column 80 (with \), and 5114 # we should not choose a depcomp mode which is confused by this. 5115 # 5116 # We need to recreate these files for each test, as the compiler may 5117 # overwrite some of them when testing with obscure command lines. 5118 # This happens at least with the AIX C compiler. 5119 : > sub/conftest.c 5120 for i in 1 2 3 4 5 6; do 5121 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5122 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5123 # Solaris 10 /bin/sh. 5124 echo '/* dummy */' > sub/conftst$i.h 5125 done 5126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5127 5128 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5129 # mode. It turns out that the SunPro C++ compiler does not properly 5130 # handle '-M -o', and we need to detect this. Also, some Intel 5131 # versions had trouble with output in subdirs. 5132 am__obj=sub/conftest.${OBJEXT-o} 5133 am__minus_obj="-o $am__obj" 5134 case $depmode in 5135 gcc) 5136 # This depmode causes a compiler race in universal mode. 5137 test "$am__universal" = false || continue 5138 ;; 5139 nosideeffect) 5140 # After this tag, mechanisms are not by side-effect, so they'll 5141 # only be used when explicitly requested. 5142 if test "x$enable_dependency_tracking" = xyes; then 5143 continue 5144 else 5145 break 5146 fi 5147 ;; 5148 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5149 # This compiler won't grok '-c -o', but also, the minuso test has 5150 # not run yet. These depmodes are late enough in the game, and 5151 # so weak that their functioning should not be impacted. 5152 am__obj=conftest.${OBJEXT-o} 5153 am__minus_obj= 5154 ;; 5155 none) break ;; 5156 esac 5157 if depmode=$depmode \ 5158 source=sub/conftest.c object=$am__obj \ 5159 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5160 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5161 >/dev/null 2>conftest.err && 5162 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5163 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5164 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5165 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5166 # icc doesn't choke on unknown options, it will just issue warnings 5167 # or remarks (even with -Werror). So we grep stderr for any message 5168 # that says an option was ignored or not supported. 5169 # When given -MP, icc 7.0 and 7.1 complain thusly: 5170 # icc: Command line warning: ignoring option '-M'; no argument required 5171 # The diagnosis changed in icc 8.0: 5172 # icc: Command line remark: option '-MP' not supported 5173 if (grep 'ignoring option' conftest.err || 5174 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5175 am_cv_CXX_dependencies_compiler_type=$depmode 5176 break 5177 fi 5178 fi 5179 done 5180 5181 cd .. 5182 rm -rf conftest.dir 5183else 5184 am_cv_CXX_dependencies_compiler_type=none 5185fi 5186 5187fi 5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5189$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5190CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5191 5192 if 5193 test "x$enable_dependency_tracking" != xno \ 5194 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5195 am__fastdepCXX_TRUE= 5196 am__fastdepCXX_FALSE='#' 5197else 5198 am__fastdepCXX_TRUE='#' 5199 am__fastdepCXX_FALSE= 5200fi 5201 5202 5203ac_ext=c 5204ac_cpp='$CPP $CPPFLAGS' 5205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5207ac_compiler_gnu=$ac_cv_c_compiler_gnu 5208if test -n "$ac_tool_prefix"; then 5209 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5210set dummy ${ac_tool_prefix}gcc; ac_word=$2 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5212$as_echo_n "checking for $ac_word... " >&6; } 5213if ${ac_cv_prog_CC+:} false; then : 5214 $as_echo_n "(cached) " >&6 5215else 5216 if test -n "$CC"; then 5217 ac_cv_prog_CC="$CC" # Let the user override the test. 5218else 5219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5220for as_dir in $PATH 5221do 5222 IFS=$as_save_IFS 5223 test -z "$as_dir" && as_dir=. 5224 for ac_exec_ext in '' $ac_executable_extensions; do 5225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5226 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5228 break 2 5229 fi 5230done 5231 done 5232IFS=$as_save_IFS 5233 5234fi 5235fi 5236CC=$ac_cv_prog_CC 5237if test -n "$CC"; then 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5239$as_echo "$CC" >&6; } 5240else 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5242$as_echo "no" >&6; } 5243fi 5244 5245 5246fi 5247if test -z "$ac_cv_prog_CC"; then 5248 ac_ct_CC=$CC 5249 # Extract the first word of "gcc", so it can be a program name with args. 5250set dummy gcc; ac_word=$2 5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5252$as_echo_n "checking for $ac_word... " >&6; } 5253if ${ac_cv_prog_ac_ct_CC+:} false; then : 5254 $as_echo_n "(cached) " >&6 5255else 5256 if test -n "$ac_ct_CC"; then 5257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5258else 5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5260for as_dir in $PATH 5261do 5262 IFS=$as_save_IFS 5263 test -z "$as_dir" && as_dir=. 5264 for ac_exec_ext in '' $ac_executable_extensions; do 5265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5266 ac_cv_prog_ac_ct_CC="gcc" 5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5268 break 2 5269 fi 5270done 5271 done 5272IFS=$as_save_IFS 5273 5274fi 5275fi 5276ac_ct_CC=$ac_cv_prog_ac_ct_CC 5277if test -n "$ac_ct_CC"; then 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5279$as_echo "$ac_ct_CC" >&6; } 5280else 5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5282$as_echo "no" >&6; } 5283fi 5284 5285 if test "x$ac_ct_CC" = x; then 5286 CC="" 5287 else 5288 case $cross_compiling:$ac_tool_warned in 5289yes:) 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5292ac_tool_warned=yes ;; 5293esac 5294 CC=$ac_ct_CC 5295 fi 5296else 5297 CC="$ac_cv_prog_CC" 5298fi 5299 5300if test -z "$CC"; then 5301 if test -n "$ac_tool_prefix"; then 5302 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5303set dummy ${ac_tool_prefix}cc; ac_word=$2 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5305$as_echo_n "checking for $ac_word... " >&6; } 5306if ${ac_cv_prog_CC+:} false; then : 5307 $as_echo_n "(cached) " >&6 5308else 5309 if test -n "$CC"; then 5310 ac_cv_prog_CC="$CC" # Let the user override the test. 5311else 5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5313for as_dir in $PATH 5314do 5315 IFS=$as_save_IFS 5316 test -z "$as_dir" && as_dir=. 5317 for ac_exec_ext in '' $ac_executable_extensions; do 5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5319 ac_cv_prog_CC="${ac_tool_prefix}cc" 5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5321 break 2 5322 fi 5323done 5324 done 5325IFS=$as_save_IFS 5326 5327fi 5328fi 5329CC=$ac_cv_prog_CC 5330if test -n "$CC"; then 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5332$as_echo "$CC" >&6; } 5333else 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5335$as_echo "no" >&6; } 5336fi 5337 5338 5339 fi 5340fi 5341if test -z "$CC"; then 5342 # Extract the first word of "cc", so it can be a program name with args. 5343set dummy cc; ac_word=$2 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5345$as_echo_n "checking for $ac_word... " >&6; } 5346if ${ac_cv_prog_CC+:} false; then : 5347 $as_echo_n "(cached) " >&6 5348else 5349 if test -n "$CC"; then 5350 ac_cv_prog_CC="$CC" # Let the user override the test. 5351else 5352 ac_prog_rejected=no 5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5354for as_dir in $PATH 5355do 5356 IFS=$as_save_IFS 5357 test -z "$as_dir" && as_dir=. 5358 for ac_exec_ext in '' $ac_executable_extensions; do 5359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5360 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5361 ac_prog_rejected=yes 5362 continue 5363 fi 5364 ac_cv_prog_CC="cc" 5365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5366 break 2 5367 fi 5368done 5369 done 5370IFS=$as_save_IFS 5371 5372if test $ac_prog_rejected = yes; then 5373 # We found a bogon in the path, so make sure we never use it. 5374 set dummy $ac_cv_prog_CC 5375 shift 5376 if test $# != 0; then 5377 # We chose a different compiler from the bogus one. 5378 # However, it has the same basename, so the bogon will be chosen 5379 # first if we set CC to just the basename; use the full file name. 5380 shift 5381 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5382 fi 5383fi 5384fi 5385fi 5386CC=$ac_cv_prog_CC 5387if test -n "$CC"; then 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5389$as_echo "$CC" >&6; } 5390else 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5392$as_echo "no" >&6; } 5393fi 5394 5395 5396fi 5397if test -z "$CC"; then 5398 if test -n "$ac_tool_prefix"; then 5399 for ac_prog in cl.exe 5400 do 5401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5402set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5404$as_echo_n "checking for $ac_word... " >&6; } 5405if ${ac_cv_prog_CC+:} false; then : 5406 $as_echo_n "(cached) " >&6 5407else 5408 if test -n "$CC"; then 5409 ac_cv_prog_CC="$CC" # Let the user override the test. 5410else 5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5412for as_dir in $PATH 5413do 5414 IFS=$as_save_IFS 5415 test -z "$as_dir" && as_dir=. 5416 for ac_exec_ext in '' $ac_executable_extensions; do 5417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5418 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5420 break 2 5421 fi 5422done 5423 done 5424IFS=$as_save_IFS 5425 5426fi 5427fi 5428CC=$ac_cv_prog_CC 5429if test -n "$CC"; then 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5431$as_echo "$CC" >&6; } 5432else 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5434$as_echo "no" >&6; } 5435fi 5436 5437 5438 test -n "$CC" && break 5439 done 5440fi 5441if test -z "$CC"; then 5442 ac_ct_CC=$CC 5443 for ac_prog in cl.exe 5444do 5445 # Extract the first word of "$ac_prog", so it can be a program name with args. 5446set dummy $ac_prog; ac_word=$2 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5448$as_echo_n "checking for $ac_word... " >&6; } 5449if ${ac_cv_prog_ac_ct_CC+:} false; then : 5450 $as_echo_n "(cached) " >&6 5451else 5452 if test -n "$ac_ct_CC"; then 5453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5454else 5455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5456for as_dir in $PATH 5457do 5458 IFS=$as_save_IFS 5459 test -z "$as_dir" && as_dir=. 5460 for ac_exec_ext in '' $ac_executable_extensions; do 5461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5462 ac_cv_prog_ac_ct_CC="$ac_prog" 5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5464 break 2 5465 fi 5466done 5467 done 5468IFS=$as_save_IFS 5469 5470fi 5471fi 5472ac_ct_CC=$ac_cv_prog_ac_ct_CC 5473if test -n "$ac_ct_CC"; then 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5475$as_echo "$ac_ct_CC" >&6; } 5476else 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5478$as_echo "no" >&6; } 5479fi 5480 5481 5482 test -n "$ac_ct_CC" && break 5483done 5484 5485 if test "x$ac_ct_CC" = x; then 5486 CC="" 5487 else 5488 case $cross_compiling:$ac_tool_warned in 5489yes:) 5490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5492ac_tool_warned=yes ;; 5493esac 5494 CC=$ac_ct_CC 5495 fi 5496fi 5497 5498fi 5499 5500 5501test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5503as_fn_error $? "no acceptable C compiler found in \$PATH 5504See \`config.log' for more details" "$LINENO" 5; } 5505 5506# Provide some information about the compiler. 5507$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5508set X $ac_compile 5509ac_compiler=$2 5510for ac_option in --version -v -V -qversion; do 5511 { { ac_try="$ac_compiler $ac_option >&5" 5512case "(($ac_try" in 5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5514 *) ac_try_echo=$ac_try;; 5515esac 5516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5517$as_echo "$ac_try_echo"; } >&5 5518 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5519 ac_status=$? 5520 if test -s conftest.err; then 5521 sed '10a\ 5522... rest of stderr output deleted ... 5523 10q' conftest.err >conftest.er1 5524 cat conftest.er1 >&5 5525 fi 5526 rm -f conftest.er1 conftest.err 5527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5528 test $ac_status = 0; } 5529done 5530 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5532$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5533if ${ac_cv_c_compiler_gnu+:} false; then : 5534 $as_echo_n "(cached) " >&6 5535else 5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5537/* end confdefs.h. */ 5538 5539int 5540main () 5541{ 5542#ifndef __GNUC__ 5543 choke me 5544#endif 5545 5546 ; 5547 return 0; 5548} 5549_ACEOF 5550if ac_fn_c_try_compile "$LINENO"; then : 5551 ac_compiler_gnu=yes 5552else 5553 ac_compiler_gnu=no 5554fi 5555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5556ac_cv_c_compiler_gnu=$ac_compiler_gnu 5557 5558fi 5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5560$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5561if test $ac_compiler_gnu = yes; then 5562 GCC=yes 5563else 5564 GCC= 5565fi 5566ac_test_CFLAGS=${CFLAGS+set} 5567ac_save_CFLAGS=$CFLAGS 5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5569$as_echo_n "checking whether $CC accepts -g... " >&6; } 5570if ${ac_cv_prog_cc_g+:} false; then : 5571 $as_echo_n "(cached) " >&6 5572else 5573 ac_save_c_werror_flag=$ac_c_werror_flag 5574 ac_c_werror_flag=yes 5575 ac_cv_prog_cc_g=no 5576 CFLAGS="-g" 5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5578/* end confdefs.h. */ 5579 5580int 5581main () 5582{ 5583 5584 ; 5585 return 0; 5586} 5587_ACEOF 5588if ac_fn_c_try_compile "$LINENO"; then : 5589 ac_cv_prog_cc_g=yes 5590else 5591 CFLAGS="" 5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5593/* end confdefs.h. */ 5594 5595int 5596main () 5597{ 5598 5599 ; 5600 return 0; 5601} 5602_ACEOF 5603if ac_fn_c_try_compile "$LINENO"; then : 5604 5605else 5606 ac_c_werror_flag=$ac_save_c_werror_flag 5607 CFLAGS="-g" 5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5609/* end confdefs.h. */ 5610 5611int 5612main () 5613{ 5614 5615 ; 5616 return 0; 5617} 5618_ACEOF 5619if ac_fn_c_try_compile "$LINENO"; then : 5620 ac_cv_prog_cc_g=yes 5621fi 5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5623fi 5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5625fi 5626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5627 ac_c_werror_flag=$ac_save_c_werror_flag 5628fi 5629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5630$as_echo "$ac_cv_prog_cc_g" >&6; } 5631if test "$ac_test_CFLAGS" = set; then 5632 CFLAGS=$ac_save_CFLAGS 5633elif test $ac_cv_prog_cc_g = yes; then 5634 if test "$GCC" = yes; then 5635 CFLAGS="-g -O2" 5636 else 5637 CFLAGS="-g" 5638 fi 5639else 5640 if test "$GCC" = yes; then 5641 CFLAGS="-O2" 5642 else 5643 CFLAGS= 5644 fi 5645fi 5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5647$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5648if ${ac_cv_prog_cc_c89+:} false; then : 5649 $as_echo_n "(cached) " >&6 5650else 5651 ac_cv_prog_cc_c89=no 5652ac_save_CC=$CC 5653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5654/* end confdefs.h. */ 5655#include <stdarg.h> 5656#include <stdio.h> 5657struct stat; 5658/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5659struct buf { int x; }; 5660FILE * (*rcsopen) (struct buf *, struct stat *, int); 5661static char *e (p, i) 5662 char **p; 5663 int i; 5664{ 5665 return p[i]; 5666} 5667static char *f (char * (*g) (char **, int), char **p, ...) 5668{ 5669 char *s; 5670 va_list v; 5671 va_start (v,p); 5672 s = g (p, va_arg (v,int)); 5673 va_end (v); 5674 return s; 5675} 5676 5677/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5678 function prototypes and stuff, but not '\xHH' hex character constants. 5679 These don't provoke an error unfortunately, instead are silently treated 5680 as 'x'. The following induces an error, until -std is added to get 5681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5682 array size at least. It's necessary to write '\x00'==0 to get something 5683 that's true only with -std. */ 5684int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5685 5686/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5687 inside strings and character constants. */ 5688#define FOO(x) 'x' 5689int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5690 5691int test (int i, double x); 5692struct s1 {int (*f) (int a);}; 5693struct s2 {int (*f) (double a);}; 5694int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5695int argc; 5696char **argv; 5697int 5698main () 5699{ 5700return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5701 ; 5702 return 0; 5703} 5704_ACEOF 5705for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5706 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5707do 5708 CC="$ac_save_CC $ac_arg" 5709 if ac_fn_c_try_compile "$LINENO"; then : 5710 ac_cv_prog_cc_c89=$ac_arg 5711fi 5712rm -f core conftest.err conftest.$ac_objext 5713 test "x$ac_cv_prog_cc_c89" != "xno" && break 5714done 5715rm -f conftest.$ac_ext 5716CC=$ac_save_CC 5717 5718fi 5719# AC_CACHE_VAL 5720case "x$ac_cv_prog_cc_c89" in 5721 x) 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5723$as_echo "none needed" >&6; } ;; 5724 xno) 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5726$as_echo "unsupported" >&6; } ;; 5727 *) 5728 CC="$CC $ac_cv_prog_cc_c89" 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5730$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5731esac 5732if test "x$ac_cv_prog_cc_c89" != xno; then : 5733 5734fi 5735 5736ac_ext=cpp 5737ac_cpp='$CXXCPP $CPPFLAGS' 5738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5741 5742ac_ext=c 5743ac_cpp='$CPP $CPPFLAGS' 5744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5746ac_compiler_gnu=$ac_cv_c_compiler_gnu 5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5748$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5749if ${am_cv_prog_cc_c_o+:} false; then : 5750 $as_echo_n "(cached) " >&6 5751else 5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5753/* end confdefs.h. */ 5754 5755int 5756main () 5757{ 5758 5759 ; 5760 return 0; 5761} 5762_ACEOF 5763 # Make sure it works both with $CC and with simple cc. 5764 # Following AC_PROG_CC_C_O, we do the test twice because some 5765 # compilers refuse to overwrite an existing .o file with -o, 5766 # though they will create one. 5767 am_cv_prog_cc_c_o=yes 5768 for am_i in 1 2; do 5769 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5770 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5771 ac_status=$? 5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5773 (exit $ac_status); } \ 5774 && test -f conftest2.$ac_objext; then 5775 : OK 5776 else 5777 am_cv_prog_cc_c_o=no 5778 break 5779 fi 5780 done 5781 rm -f core conftest* 5782 unset am_i 5783fi 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5785$as_echo "$am_cv_prog_cc_c_o" >&6; } 5786if test "$am_cv_prog_cc_c_o" != yes; then 5787 # Losing compiler, so override with the script. 5788 # FIXME: It is wrong to rewrite CC. 5789 # But if we don't then we get into trouble of one sort or another. 5790 # A longer-term fix would be to have automake use am__CC in this case, 5791 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5792 CC="$am_aux_dir/compile $CC" 5793fi 5794ac_ext=cpp 5795ac_cpp='$CXXCPP $CPPFLAGS' 5796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5799 5800 5801depcc="$CC" am_compiler_list= 5802 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5804$as_echo_n "checking dependency style of $depcc... " >&6; } 5805if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5806 $as_echo_n "(cached) " >&6 5807else 5808 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5809 # We make a subdir and do the tests there. Otherwise we can end up 5810 # making bogus files that we don't know about and never remove. For 5811 # instance it was reported that on HP-UX the gcc test will end up 5812 # making a dummy file named 'D' -- because '-MD' means "put the output 5813 # in D". 5814 rm -rf conftest.dir 5815 mkdir conftest.dir 5816 # Copy depcomp to subdir because otherwise we won't find it if we're 5817 # using a relative directory. 5818 cp "$am_depcomp" conftest.dir 5819 cd conftest.dir 5820 # We will build objects and dependencies in a subdirectory because 5821 # it helps to detect inapplicable dependency modes. For instance 5822 # both Tru64's cc and ICC support -MD to output dependencies as a 5823 # side effect of compilation, but ICC will put the dependencies in 5824 # the current directory while Tru64 will put them in the object 5825 # directory. 5826 mkdir sub 5827 5828 am_cv_CC_dependencies_compiler_type=none 5829 if test "$am_compiler_list" = ""; then 5830 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5831 fi 5832 am__universal=false 5833 case " $depcc " in #( 5834 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5835 esac 5836 5837 for depmode in $am_compiler_list; do 5838 # Setup a source with many dependencies, because some compilers 5839 # like to wrap large dependency lists on column 80 (with \), and 5840 # we should not choose a depcomp mode which is confused by this. 5841 # 5842 # We need to recreate these files for each test, as the compiler may 5843 # overwrite some of them when testing with obscure command lines. 5844 # This happens at least with the AIX C compiler. 5845 : > sub/conftest.c 5846 for i in 1 2 3 4 5 6; do 5847 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5848 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5849 # Solaris 10 /bin/sh. 5850 echo '/* dummy */' > sub/conftst$i.h 5851 done 5852 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5853 5854 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5855 # mode. It turns out that the SunPro C++ compiler does not properly 5856 # handle '-M -o', and we need to detect this. Also, some Intel 5857 # versions had trouble with output in subdirs. 5858 am__obj=sub/conftest.${OBJEXT-o} 5859 am__minus_obj="-o $am__obj" 5860 case $depmode in 5861 gcc) 5862 # This depmode causes a compiler race in universal mode. 5863 test "$am__universal" = false || continue 5864 ;; 5865 nosideeffect) 5866 # After this tag, mechanisms are not by side-effect, so they'll 5867 # only be used when explicitly requested. 5868 if test "x$enable_dependency_tracking" = xyes; then 5869 continue 5870 else 5871 break 5872 fi 5873 ;; 5874 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5875 # This compiler won't grok '-c -o', but also, the minuso test has 5876 # not run yet. These depmodes are late enough in the game, and 5877 # so weak that their functioning should not be impacted. 5878 am__obj=conftest.${OBJEXT-o} 5879 am__minus_obj= 5880 ;; 5881 none) break ;; 5882 esac 5883 if depmode=$depmode \ 5884 source=sub/conftest.c object=$am__obj \ 5885 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5886 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5887 >/dev/null 2>conftest.err && 5888 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5889 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5890 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5891 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5892 # icc doesn't choke on unknown options, it will just issue warnings 5893 # or remarks (even with -Werror). So we grep stderr for any message 5894 # that says an option was ignored or not supported. 5895 # When given -MP, icc 7.0 and 7.1 complain thusly: 5896 # icc: Command line warning: ignoring option '-M'; no argument required 5897 # The diagnosis changed in icc 8.0: 5898 # icc: Command line remark: option '-MP' not supported 5899 if (grep 'ignoring option' conftest.err || 5900 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5901 am_cv_CC_dependencies_compiler_type=$depmode 5902 break 5903 fi 5904 fi 5905 done 5906 5907 cd .. 5908 rm -rf conftest.dir 5909else 5910 am_cv_CC_dependencies_compiler_type=none 5911fi 5912 5913fi 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5915$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5916CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5917 5918 if 5919 test "x$enable_dependency_tracking" != xno \ 5920 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5921 am__fastdepCC_TRUE= 5922 am__fastdepCC_FALSE='#' 5923else 5924 am__fastdepCC_TRUE='#' 5925 am__fastdepCC_FALSE= 5926fi 5927 5928 5929ac_ext=c 5930ac_cpp='$CPP $CPPFLAGS' 5931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5933ac_compiler_gnu=$ac_cv_c_compiler_gnu 5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5935$as_echo_n "checking how to run the C preprocessor... " >&6; } 5936# On Suns, sometimes $CPP names a directory. 5937if test -n "$CPP" && test -d "$CPP"; then 5938 CPP= 5939fi 5940if test -z "$CPP"; then 5941 if ${ac_cv_prog_CPP+:} false; then : 5942 $as_echo_n "(cached) " >&6 5943else 5944 # Double quotes because CPP needs to be expanded 5945 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5946 do 5947 ac_preproc_ok=false 5948for ac_c_preproc_warn_flag in '' yes 5949do 5950 # Use a header file that comes with gcc, so configuring glibc 5951 # with a fresh cross-compiler works. 5952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5953 # <limits.h> exists even on freestanding compilers. 5954 # On the NeXT, cc -E runs the code through the compiler's parser, 5955 # not just through cpp. "Syntax error" is here to catch this case. 5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5957/* end confdefs.h. */ 5958#ifdef __STDC__ 5959# include <limits.h> 5960#else 5961# include <assert.h> 5962#endif 5963 Syntax error 5964_ACEOF 5965if ac_fn_c_try_cpp "$LINENO"; then : 5966 5967else 5968 # Broken: fails on valid input. 5969continue 5970fi 5971rm -f conftest.err conftest.i conftest.$ac_ext 5972 5973 # OK, works on sane cases. Now check whether nonexistent headers 5974 # can be detected and how. 5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5976/* end confdefs.h. */ 5977#include <ac_nonexistent.h> 5978_ACEOF 5979if ac_fn_c_try_cpp "$LINENO"; then : 5980 # Broken: success on invalid input. 5981continue 5982else 5983 # Passes both tests. 5984ac_preproc_ok=: 5985break 5986fi 5987rm -f conftest.err conftest.i conftest.$ac_ext 5988 5989done 5990# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5991rm -f conftest.i conftest.err conftest.$ac_ext 5992if $ac_preproc_ok; then : 5993 break 5994fi 5995 5996 done 5997 ac_cv_prog_CPP=$CPP 5998 5999fi 6000 CPP=$ac_cv_prog_CPP 6001else 6002 ac_cv_prog_CPP=$CPP 6003fi 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6005$as_echo "$CPP" >&6; } 6006ac_preproc_ok=false 6007for ac_c_preproc_warn_flag in '' yes 6008do 6009 # Use a header file that comes with gcc, so configuring glibc 6010 # with a fresh cross-compiler works. 6011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6012 # <limits.h> exists even on freestanding compilers. 6013 # On the NeXT, cc -E runs the code through the compiler's parser, 6014 # not just through cpp. "Syntax error" is here to catch this case. 6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6016/* end confdefs.h. */ 6017#ifdef __STDC__ 6018# include <limits.h> 6019#else 6020# include <assert.h> 6021#endif 6022 Syntax error 6023_ACEOF 6024if ac_fn_c_try_cpp "$LINENO"; then : 6025 6026else 6027 # Broken: fails on valid input. 6028continue 6029fi 6030rm -f conftest.err conftest.i conftest.$ac_ext 6031 6032 # OK, works on sane cases. Now check whether nonexistent headers 6033 # can be detected and how. 6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6035/* end confdefs.h. */ 6036#include <ac_nonexistent.h> 6037_ACEOF 6038if ac_fn_c_try_cpp "$LINENO"; then : 6039 # Broken: success on invalid input. 6040continue 6041else 6042 # Passes both tests. 6043ac_preproc_ok=: 6044break 6045fi 6046rm -f conftest.err conftest.i conftest.$ac_ext 6047 6048done 6049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6050rm -f conftest.i conftest.err conftest.$ac_ext 6051if $ac_preproc_ok; then : 6052 6053else 6054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6056as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6057See \`config.log' for more details" "$LINENO" 5; } 6058fi 6059 6060ac_ext=cpp 6061ac_cpp='$CXXCPP $CPPFLAGS' 6062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6065 6066 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6068$as_echo_n "checking whether ln -s works... " >&6; } 6069LN_S=$as_ln_s 6070if test "$LN_S" = "ln -s"; then 6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6072$as_echo "yes" >&6; } 6073else 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6075$as_echo "no, using $LN_S" >&6; } 6076fi 6077 6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6079$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6080set x ${MAKE-make} 6081ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6082if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 6083 $as_echo_n "(cached) " >&6 6084else 6085 cat >conftest.make <<\_ACEOF 6086SHELL = /bin/sh 6087all: 6088 @echo '@@@%%%=$(MAKE)=@@@%%%' 6089_ACEOF 6090# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6091case `${MAKE-make} -f conftest.make 2>/dev/null` in 6092 *@@@%%%=?*=@@@%%%*) 6093 eval ac_cv_prog_make_${ac_make}_set=yes;; 6094 *) 6095 eval ac_cv_prog_make_${ac_make}_set=no;; 6096esac 6097rm -f conftest.make 6098fi 6099if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6101$as_echo "yes" >&6; } 6102 SET_MAKE= 6103else 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6105$as_echo "no" >&6; } 6106 SET_MAKE="MAKE=${MAKE-make}" 6107fi 6108 6109case `pwd` in 6110 *\ * | *\ *) 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6112$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6113esac 6114 6115 6116 6117macro_version='2.4.6' 6118macro_revision='2.4.6' 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132ltmain=$ac_aux_dir/ltmain.sh 6133 6134# Make sure we can run config.sub. 6135$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6136 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6137 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6139$as_echo_n "checking build system type... " >&6; } 6140if ${ac_cv_build+:} false; then : 6141 $as_echo_n "(cached) " >&6 6142else 6143 ac_build_alias=$build_alias 6144test "x$ac_build_alias" = x && 6145 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6146test "x$ac_build_alias" = x && 6147 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6148ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6149 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6150 6151fi 6152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6153$as_echo "$ac_cv_build" >&6; } 6154case $ac_cv_build in 6155*-*-*) ;; 6156*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6157esac 6158build=$ac_cv_build 6159ac_save_IFS=$IFS; IFS='-' 6160set x $ac_cv_build 6161shift 6162build_cpu=$1 6163build_vendor=$2 6164shift; shift 6165# Remember, the first character of IFS is used to create $*, 6166# except with old shells: 6167build_os=$* 6168IFS=$ac_save_IFS 6169case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6170 6171 6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6173$as_echo_n "checking host system type... " >&6; } 6174if ${ac_cv_host+:} false; then : 6175 $as_echo_n "(cached) " >&6 6176else 6177 if test "x$host_alias" = x; then 6178 ac_cv_host=$ac_cv_build 6179else 6180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6181 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6182fi 6183 6184fi 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6186$as_echo "$ac_cv_host" >&6; } 6187case $ac_cv_host in 6188*-*-*) ;; 6189*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6190esac 6191host=$ac_cv_host 6192ac_save_IFS=$IFS; IFS='-' 6193set x $ac_cv_host 6194shift 6195host_cpu=$1 6196host_vendor=$2 6197shift; shift 6198# Remember, the first character of IFS is used to create $*, 6199# except with old shells: 6200host_os=$* 6201IFS=$ac_save_IFS 6202case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6203 6204 6205# Backslashify metacharacters that are still active within 6206# double-quoted strings. 6207sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6208 6209# Same as above, but do not quote variable references. 6210double_quote_subst='s/\(["`\\]\)/\\\1/g' 6211 6212# Sed substitution to delay expansion of an escaped shell variable in a 6213# double_quote_subst'ed string. 6214delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6215 6216# Sed substitution to delay expansion of an escaped single quote. 6217delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6218 6219# Sed substitution to avoid accidental globbing in evaled expressions 6220no_glob_subst='s/\*/\\\*/g' 6221 6222ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6223ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6224ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6225 6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6227$as_echo_n "checking how to print strings... " >&6; } 6228# Test print first, because it will be a builtin if present. 6229if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6230 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6231 ECHO='print -r --' 6232elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6233 ECHO='printf %s\n' 6234else 6235 # Use this function as a fallback that always works. 6236 func_fallback_echo () 6237 { 6238 eval 'cat <<_LTECHO_EOF 6239$1 6240_LTECHO_EOF' 6241 } 6242 ECHO='func_fallback_echo' 6243fi 6244 6245# func_echo_all arg... 6246# Invoke $ECHO with all args, space-separated. 6247func_echo_all () 6248{ 6249 $ECHO "" 6250} 6251 6252case $ECHO in 6253 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6254$as_echo "printf" >&6; } ;; 6255 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6256$as_echo "print -r" >&6; } ;; 6257 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6258$as_echo "cat" >&6; } ;; 6259esac 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6275$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6276if ${ac_cv_path_SED+:} false; then : 6277 $as_echo_n "(cached) " >&6 6278else 6279 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6280 for ac_i in 1 2 3 4 5 6 7; do 6281 ac_script="$ac_script$as_nl$ac_script" 6282 done 6283 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6284 { ac_script=; unset ac_script;} 6285 if test -z "$SED"; then 6286 ac_path_SED_found=false 6287 # Loop through the user's path and test for each of PROGNAME-LIST 6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6289for as_dir in $PATH 6290do 6291 IFS=$as_save_IFS 6292 test -z "$as_dir" && as_dir=. 6293 for ac_prog in sed gsed; do 6294 for ac_exec_ext in '' $ac_executable_extensions; do 6295 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6296 as_fn_executable_p "$ac_path_SED" || continue 6297# Check for GNU ac_path_SED and select it if it is found. 6298 # Check for GNU $ac_path_SED 6299case `"$ac_path_SED" --version 2>&1` in 6300*GNU*) 6301 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6302*) 6303 ac_count=0 6304 $as_echo_n 0123456789 >"conftest.in" 6305 while : 6306 do 6307 cat "conftest.in" "conftest.in" >"conftest.tmp" 6308 mv "conftest.tmp" "conftest.in" 6309 cp "conftest.in" "conftest.nl" 6310 $as_echo '' >> "conftest.nl" 6311 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6313 as_fn_arith $ac_count + 1 && ac_count=$as_val 6314 if test $ac_count -gt ${ac_path_SED_max-0}; then 6315 # Best one so far, save it but keep looking for a better one 6316 ac_cv_path_SED="$ac_path_SED" 6317 ac_path_SED_max=$ac_count 6318 fi 6319 # 10*(2^10) chars as input seems more than enough 6320 test $ac_count -gt 10 && break 6321 done 6322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6323esac 6324 6325 $ac_path_SED_found && break 3 6326 done 6327 done 6328 done 6329IFS=$as_save_IFS 6330 if test -z "$ac_cv_path_SED"; then 6331 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6332 fi 6333else 6334 ac_cv_path_SED=$SED 6335fi 6336 6337fi 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6339$as_echo "$ac_cv_path_SED" >&6; } 6340 SED="$ac_cv_path_SED" 6341 rm -f conftest.sed 6342 6343test -z "$SED" && SED=sed 6344Xsed="$SED -e 1s/^X//" 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6357$as_echo_n "checking for fgrep... " >&6; } 6358if ${ac_cv_path_FGREP+:} false; then : 6359 $as_echo_n "(cached) " >&6 6360else 6361 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6362 then ac_cv_path_FGREP="$GREP -F" 6363 else 6364 if test -z "$FGREP"; then 6365 ac_path_FGREP_found=false 6366 # Loop through the user's path and test for each of PROGNAME-LIST 6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6368for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6369do 6370 IFS=$as_save_IFS 6371 test -z "$as_dir" && as_dir=. 6372 for ac_prog in fgrep; do 6373 for ac_exec_ext in '' $ac_executable_extensions; do 6374 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6375 as_fn_executable_p "$ac_path_FGREP" || continue 6376# Check for GNU ac_path_FGREP and select it if it is found. 6377 # Check for GNU $ac_path_FGREP 6378case `"$ac_path_FGREP" --version 2>&1` in 6379*GNU*) 6380 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6381*) 6382 ac_count=0 6383 $as_echo_n 0123456789 >"conftest.in" 6384 while : 6385 do 6386 cat "conftest.in" "conftest.in" >"conftest.tmp" 6387 mv "conftest.tmp" "conftest.in" 6388 cp "conftest.in" "conftest.nl" 6389 $as_echo 'FGREP' >> "conftest.nl" 6390 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6392 as_fn_arith $ac_count + 1 && ac_count=$as_val 6393 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6394 # Best one so far, save it but keep looking for a better one 6395 ac_cv_path_FGREP="$ac_path_FGREP" 6396 ac_path_FGREP_max=$ac_count 6397 fi 6398 # 10*(2^10) chars as input seems more than enough 6399 test $ac_count -gt 10 && break 6400 done 6401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6402esac 6403 6404 $ac_path_FGREP_found && break 3 6405 done 6406 done 6407 done 6408IFS=$as_save_IFS 6409 if test -z "$ac_cv_path_FGREP"; then 6410 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6411 fi 6412else 6413 ac_cv_path_FGREP=$FGREP 6414fi 6415 6416 fi 6417fi 6418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6419$as_echo "$ac_cv_path_FGREP" >&6; } 6420 FGREP="$ac_cv_path_FGREP" 6421 6422 6423test -z "$GREP" && GREP=grep 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443# Check whether --with-gnu-ld was given. 6444if test "${with_gnu_ld+set}" = set; then : 6445 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6446else 6447 with_gnu_ld=no 6448fi 6449 6450ac_prog=ld 6451if test yes = "$GCC"; then 6452 # Check if gcc -print-prog-name=ld gives a path. 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6454$as_echo_n "checking for ld used by $CC... " >&6; } 6455 case $host in 6456 *-*-mingw*) 6457 # gcc leaves a trailing carriage return, which upsets mingw 6458 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6459 *) 6460 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6461 esac 6462 case $ac_prog in 6463 # Accept absolute paths. 6464 [\\/]* | ?:[\\/]*) 6465 re_direlt='/[^/][^/]*/\.\./' 6466 # Canonicalize the pathname of ld 6467 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6468 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6469 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6470 done 6471 test -z "$LD" && LD=$ac_prog 6472 ;; 6473 "") 6474 # If it fails, then pretend we aren't using GCC. 6475 ac_prog=ld 6476 ;; 6477 *) 6478 # If it is relative, then search for the first ld in PATH. 6479 with_gnu_ld=unknown 6480 ;; 6481 esac 6482elif test yes = "$with_gnu_ld"; then 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6484$as_echo_n "checking for GNU ld... " >&6; } 6485else 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6487$as_echo_n "checking for non-GNU ld... " >&6; } 6488fi 6489if ${lt_cv_path_LD+:} false; then : 6490 $as_echo_n "(cached) " >&6 6491else 6492 if test -z "$LD"; then 6493 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6494 for ac_dir in $PATH; do 6495 IFS=$lt_save_ifs 6496 test -z "$ac_dir" && ac_dir=. 6497 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6498 lt_cv_path_LD=$ac_dir/$ac_prog 6499 # Check to see if the program is GNU ld. I'd rather use --version, 6500 # but apparently some variants of GNU ld only accept -v. 6501 # Break only if it was the GNU/non-GNU ld that we prefer. 6502 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6503 *GNU* | *'with BFD'*) 6504 test no != "$with_gnu_ld" && break 6505 ;; 6506 *) 6507 test yes != "$with_gnu_ld" && break 6508 ;; 6509 esac 6510 fi 6511 done 6512 IFS=$lt_save_ifs 6513else 6514 lt_cv_path_LD=$LD # Let the user override the test with a path. 6515fi 6516fi 6517 6518LD=$lt_cv_path_LD 6519if test -n "$LD"; then 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6521$as_echo "$LD" >&6; } 6522else 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6524$as_echo "no" >&6; } 6525fi 6526test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6528$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6529if ${lt_cv_prog_gnu_ld+:} false; then : 6530 $as_echo_n "(cached) " >&6 6531else 6532 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6533case `$LD -v 2>&1 </dev/null` in 6534*GNU* | *'with BFD'*) 6535 lt_cv_prog_gnu_ld=yes 6536 ;; 6537*) 6538 lt_cv_prog_gnu_ld=no 6539 ;; 6540esac 6541fi 6542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6543$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6544with_gnu_ld=$lt_cv_prog_gnu_ld 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6555$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6556if ${lt_cv_path_NM+:} false; then : 6557 $as_echo_n "(cached) " >&6 6558else 6559 if test -n "$NM"; then 6560 # Let the user override the test. 6561 lt_cv_path_NM=$NM 6562else 6563 lt_nm_to_check=${ac_tool_prefix}nm 6564 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6565 lt_nm_to_check="$lt_nm_to_check nm" 6566 fi 6567 for lt_tmp_nm in $lt_nm_to_check; do 6568 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6569 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6570 IFS=$lt_save_ifs 6571 test -z "$ac_dir" && ac_dir=. 6572 tmp_nm=$ac_dir/$lt_tmp_nm 6573 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6574 # Check to see if the nm accepts a BSD-compat flag. 6575 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6576 # nm: unknown option "B" ignored 6577 # Tru64's nm complains that /dev/null is an invalid object file 6578 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6579 case $build_os in 6580 mingw*) lt_bad_file=conftest.nm/nofile ;; 6581 *) lt_bad_file=/dev/null ;; 6582 esac 6583 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6584 *$lt_bad_file* | *'Invalid file or object type'*) 6585 lt_cv_path_NM="$tmp_nm -B" 6586 break 2 6587 ;; 6588 *) 6589 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6590 */dev/null*) 6591 lt_cv_path_NM="$tmp_nm -p" 6592 break 2 6593 ;; 6594 *) 6595 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6596 continue # so that we can try to find one that supports BSD flags 6597 ;; 6598 esac 6599 ;; 6600 esac 6601 fi 6602 done 6603 IFS=$lt_save_ifs 6604 done 6605 : ${lt_cv_path_NM=no} 6606fi 6607fi 6608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6609$as_echo "$lt_cv_path_NM" >&6; } 6610if test no != "$lt_cv_path_NM"; then 6611 NM=$lt_cv_path_NM 6612else 6613 # Didn't find any BSD compatible name lister, look for dumpbin. 6614 if test -n "$DUMPBIN"; then : 6615 # Let the user override the test. 6616 else 6617 if test -n "$ac_tool_prefix"; then 6618 for ac_prog in dumpbin "link -dump" 6619 do 6620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6621set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6623$as_echo_n "checking for $ac_word... " >&6; } 6624if ${ac_cv_prog_DUMPBIN+:} false; then : 6625 $as_echo_n "(cached) " >&6 6626else 6627 if test -n "$DUMPBIN"; then 6628 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6629else 6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6631for as_dir in $PATH 6632do 6633 IFS=$as_save_IFS 6634 test -z "$as_dir" && as_dir=. 6635 for ac_exec_ext in '' $ac_executable_extensions; do 6636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6637 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6639 break 2 6640 fi 6641done 6642 done 6643IFS=$as_save_IFS 6644 6645fi 6646fi 6647DUMPBIN=$ac_cv_prog_DUMPBIN 6648if test -n "$DUMPBIN"; then 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6650$as_echo "$DUMPBIN" >&6; } 6651else 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6653$as_echo "no" >&6; } 6654fi 6655 6656 6657 test -n "$DUMPBIN" && break 6658 done 6659fi 6660if test -z "$DUMPBIN"; then 6661 ac_ct_DUMPBIN=$DUMPBIN 6662 for ac_prog in dumpbin "link -dump" 6663do 6664 # Extract the first word of "$ac_prog", so it can be a program name with args. 6665set dummy $ac_prog; ac_word=$2 6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6667$as_echo_n "checking for $ac_word... " >&6; } 6668if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 if test -n "$ac_ct_DUMPBIN"; then 6672 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6673else 6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6675for as_dir in $PATH 6676do 6677 IFS=$as_save_IFS 6678 test -z "$as_dir" && as_dir=. 6679 for ac_exec_ext in '' $ac_executable_extensions; do 6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6681 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6683 break 2 6684 fi 6685done 6686 done 6687IFS=$as_save_IFS 6688 6689fi 6690fi 6691ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6692if test -n "$ac_ct_DUMPBIN"; then 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6694$as_echo "$ac_ct_DUMPBIN" >&6; } 6695else 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6697$as_echo "no" >&6; } 6698fi 6699 6700 6701 test -n "$ac_ct_DUMPBIN" && break 6702done 6703 6704 if test "x$ac_ct_DUMPBIN" = x; then 6705 DUMPBIN=":" 6706 else 6707 case $cross_compiling:$ac_tool_warned in 6708yes:) 6709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6711ac_tool_warned=yes ;; 6712esac 6713 DUMPBIN=$ac_ct_DUMPBIN 6714 fi 6715fi 6716 6717 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6718 *COFF*) 6719 DUMPBIN="$DUMPBIN -symbols -headers" 6720 ;; 6721 *) 6722 DUMPBIN=: 6723 ;; 6724 esac 6725 fi 6726 6727 if test : != "$DUMPBIN"; then 6728 NM=$DUMPBIN 6729 fi 6730fi 6731test -z "$NM" && NM=nm 6732 6733 6734 6735 6736 6737 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6739$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6740if ${lt_cv_nm_interface+:} false; then : 6741 $as_echo_n "(cached) " >&6 6742else 6743 lt_cv_nm_interface="BSD nm" 6744 echo "int some_variable = 0;" > conftest.$ac_ext 6745 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6746 (eval "$ac_compile" 2>conftest.err) 6747 cat conftest.err >&5 6748 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6749 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6750 cat conftest.err >&5 6751 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6752 cat conftest.out >&5 6753 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6754 lt_cv_nm_interface="MS dumpbin" 6755 fi 6756 rm -f conftest* 6757fi 6758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6759$as_echo "$lt_cv_nm_interface" >&6; } 6760 6761# find the maximum length of command line arguments 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6763$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6764if ${lt_cv_sys_max_cmd_len+:} false; then : 6765 $as_echo_n "(cached) " >&6 6766else 6767 i=0 6768 teststring=ABCD 6769 6770 case $build_os in 6771 msdosdjgpp*) 6772 # On DJGPP, this test can blow up pretty badly due to problems in libc 6773 # (any single argument exceeding 2000 bytes causes a buffer overrun 6774 # during glob expansion). Even if it were fixed, the result of this 6775 # check would be larger than it should be. 6776 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6777 ;; 6778 6779 gnu*) 6780 # Under GNU Hurd, this test is not required because there is 6781 # no limit to the length of command line arguments. 6782 # Libtool will interpret -1 as no limit whatsoever 6783 lt_cv_sys_max_cmd_len=-1; 6784 ;; 6785 6786 cygwin* | mingw* | cegcc*) 6787 # On Win9x/ME, this test blows up -- it succeeds, but takes 6788 # about 5 minutes as the teststring grows exponentially. 6789 # Worse, since 9x/ME are not pre-emptively multitasking, 6790 # you end up with a "frozen" computer, even though with patience 6791 # the test eventually succeeds (with a max line length of 256k). 6792 # Instead, let's just punt: use the minimum linelength reported by 6793 # all of the supported platforms: 8192 (on NT/2K/XP). 6794 lt_cv_sys_max_cmd_len=8192; 6795 ;; 6796 6797 mint*) 6798 # On MiNT this can take a long time and run out of memory. 6799 lt_cv_sys_max_cmd_len=8192; 6800 ;; 6801 6802 amigaos*) 6803 # On AmigaOS with pdksh, this test takes hours, literally. 6804 # So we just punt and use a minimum line length of 8192. 6805 lt_cv_sys_max_cmd_len=8192; 6806 ;; 6807 6808 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6809 # This has been around since 386BSD, at least. Likely further. 6810 if test -x /sbin/sysctl; then 6811 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6812 elif test -x /usr/sbin/sysctl; then 6813 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6814 else 6815 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6816 fi 6817 # And add a safety zone 6818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6820 ;; 6821 6822 interix*) 6823 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6824 lt_cv_sys_max_cmd_len=196608 6825 ;; 6826 6827 os2*) 6828 # The test takes a long time on OS/2. 6829 lt_cv_sys_max_cmd_len=8192 6830 ;; 6831 6832 osf*) 6833 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6834 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6835 # nice to cause kernel panics so lets avoid the loop below. 6836 # First set a reasonable default. 6837 lt_cv_sys_max_cmd_len=16384 6838 # 6839 if test -x /sbin/sysconfig; then 6840 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6841 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6842 esac 6843 fi 6844 ;; 6845 sco3.2v5*) 6846 lt_cv_sys_max_cmd_len=102400 6847 ;; 6848 sysv5* | sco5v6* | sysv4.2uw2*) 6849 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6850 if test -n "$kargmax"; then 6851 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6852 else 6853 lt_cv_sys_max_cmd_len=32768 6854 fi 6855 ;; 6856 *) 6857 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6858 if test -n "$lt_cv_sys_max_cmd_len" && \ 6859 test undefined != "$lt_cv_sys_max_cmd_len"; then 6860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6862 else 6863 # Make teststring a little bigger before we do anything with it. 6864 # a 1K string should be a reasonable start. 6865 for i in 1 2 3 4 5 6 7 8; do 6866 teststring=$teststring$teststring 6867 done 6868 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6869 # If test is not a shell built-in, we'll probably end up computing a 6870 # maximum length that is only half of the actual maximum length, but 6871 # we can't tell. 6872 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6873 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6874 test 17 != "$i" # 1/2 MB should be enough 6875 do 6876 i=`expr $i + 1` 6877 teststring=$teststring$teststring 6878 done 6879 # Only check the string length outside the loop. 6880 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6881 teststring= 6882 # Add a significant safety factor because C++ compilers can tack on 6883 # massive amounts of additional arguments before passing them to the 6884 # linker. It appears as though 1/2 is a usable value. 6885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6886 fi 6887 ;; 6888 esac 6889 6890fi 6891 6892if test -n "$lt_cv_sys_max_cmd_len"; then 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6894$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6895else 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6897$as_echo "none" >&6; } 6898fi 6899max_cmd_len=$lt_cv_sys_max_cmd_len 6900 6901 6902 6903 6904 6905 6906: ${CP="cp -f"} 6907: ${MV="mv -f"} 6908: ${RM="rm -f"} 6909 6910if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6911 lt_unset=unset 6912else 6913 lt_unset=false 6914fi 6915 6916 6917 6918 6919 6920# test EBCDIC or ASCII 6921case `echo X|tr X '\101'` in 6922 A) # ASCII based system 6923 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6924 lt_SP2NL='tr \040 \012' 6925 lt_NL2SP='tr \015\012 \040\040' 6926 ;; 6927 *) # EBCDIC based system 6928 lt_SP2NL='tr \100 \n' 6929 lt_NL2SP='tr \r\n \100\100' 6930 ;; 6931esac 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6942$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6943if ${lt_cv_to_host_file_cmd+:} false; then : 6944 $as_echo_n "(cached) " >&6 6945else 6946 case $host in 6947 *-*-mingw* ) 6948 case $build in 6949 *-*-mingw* ) # actually msys 6950 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6951 ;; 6952 *-*-cygwin* ) 6953 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6954 ;; 6955 * ) # otherwise, assume *nix 6956 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6957 ;; 6958 esac 6959 ;; 6960 *-*-cygwin* ) 6961 case $build in 6962 *-*-mingw* ) # actually msys 6963 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6964 ;; 6965 *-*-cygwin* ) 6966 lt_cv_to_host_file_cmd=func_convert_file_noop 6967 ;; 6968 * ) # otherwise, assume *nix 6969 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6970 ;; 6971 esac 6972 ;; 6973 * ) # unhandled hosts (and "normal" native builds) 6974 lt_cv_to_host_file_cmd=func_convert_file_noop 6975 ;; 6976esac 6977 6978fi 6979 6980to_host_file_cmd=$lt_cv_to_host_file_cmd 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6982$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6983 6984 6985 6986 6987 6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6989$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6990if ${lt_cv_to_tool_file_cmd+:} false; then : 6991 $as_echo_n "(cached) " >&6 6992else 6993 #assume ordinary cross tools, or native build. 6994lt_cv_to_tool_file_cmd=func_convert_file_noop 6995case $host in 6996 *-*-mingw* ) 6997 case $build in 6998 *-*-mingw* ) # actually msys 6999 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7000 ;; 7001 esac 7002 ;; 7003esac 7004 7005fi 7006 7007to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7009$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7010 7011 7012 7013 7014 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7016$as_echo_n "checking for $LD option to reload object files... " >&6; } 7017if ${lt_cv_ld_reload_flag+:} false; then : 7018 $as_echo_n "(cached) " >&6 7019else 7020 lt_cv_ld_reload_flag='-r' 7021fi 7022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7023$as_echo "$lt_cv_ld_reload_flag" >&6; } 7024reload_flag=$lt_cv_ld_reload_flag 7025case $reload_flag in 7026"" | " "*) ;; 7027*) reload_flag=" $reload_flag" ;; 7028esac 7029reload_cmds='$LD$reload_flag -o $output$reload_objs' 7030case $host_os in 7031 cygwin* | mingw* | pw32* | cegcc*) 7032 if test yes != "$GCC"; then 7033 reload_cmds=false 7034 fi 7035 ;; 7036 darwin*) 7037 if test yes = "$GCC"; then 7038 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7039 else 7040 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7041 fi 7042 ;; 7043esac 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053if test -n "$ac_tool_prefix"; then 7054 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7055set dummy ${ac_tool_prefix}objdump; ac_word=$2 7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7057$as_echo_n "checking for $ac_word... " >&6; } 7058if ${ac_cv_prog_OBJDUMP+:} false; then : 7059 $as_echo_n "(cached) " >&6 7060else 7061 if test -n "$OBJDUMP"; then 7062 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7063else 7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7065for as_dir in $PATH 7066do 7067 IFS=$as_save_IFS 7068 test -z "$as_dir" && as_dir=. 7069 for ac_exec_ext in '' $ac_executable_extensions; do 7070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7071 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7073 break 2 7074 fi 7075done 7076 done 7077IFS=$as_save_IFS 7078 7079fi 7080fi 7081OBJDUMP=$ac_cv_prog_OBJDUMP 7082if test -n "$OBJDUMP"; then 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7084$as_echo "$OBJDUMP" >&6; } 7085else 7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7087$as_echo "no" >&6; } 7088fi 7089 7090 7091fi 7092if test -z "$ac_cv_prog_OBJDUMP"; then 7093 ac_ct_OBJDUMP=$OBJDUMP 7094 # Extract the first word of "objdump", so it can be a program name with args. 7095set dummy objdump; ac_word=$2 7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7097$as_echo_n "checking for $ac_word... " >&6; } 7098if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7099 $as_echo_n "(cached) " >&6 7100else 7101 if test -n "$ac_ct_OBJDUMP"; then 7102 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7103else 7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7105for as_dir in $PATH 7106do 7107 IFS=$as_save_IFS 7108 test -z "$as_dir" && as_dir=. 7109 for ac_exec_ext in '' $ac_executable_extensions; do 7110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7111 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7113 break 2 7114 fi 7115done 7116 done 7117IFS=$as_save_IFS 7118 7119fi 7120fi 7121ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7122if test -n "$ac_ct_OBJDUMP"; then 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7124$as_echo "$ac_ct_OBJDUMP" >&6; } 7125else 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7127$as_echo "no" >&6; } 7128fi 7129 7130 if test "x$ac_ct_OBJDUMP" = x; then 7131 OBJDUMP="false" 7132 else 7133 case $cross_compiling:$ac_tool_warned in 7134yes:) 7135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7137ac_tool_warned=yes ;; 7138esac 7139 OBJDUMP=$ac_ct_OBJDUMP 7140 fi 7141else 7142 OBJDUMP="$ac_cv_prog_OBJDUMP" 7143fi 7144 7145test -z "$OBJDUMP" && OBJDUMP=objdump 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7156$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7157if ${lt_cv_deplibs_check_method+:} false; then : 7158 $as_echo_n "(cached) " >&6 7159else 7160 lt_cv_file_magic_cmd='$MAGIC_CMD' 7161lt_cv_file_magic_test_file= 7162lt_cv_deplibs_check_method='unknown' 7163# Need to set the preceding variable on all platforms that support 7164# interlibrary dependencies. 7165# 'none' -- dependencies not supported. 7166# 'unknown' -- same as none, but documents that we really don't know. 7167# 'pass_all' -- all dependencies passed with no checks. 7168# 'test_compile' -- check by making test program. 7169# 'file_magic [[regex]]' -- check by looking for files in library path 7170# that responds to the $file_magic_cmd with a given extended regex. 7171# If you have 'file' or equivalent on your system and you're not sure 7172# whether 'pass_all' will *always* work, you probably want this one. 7173 7174case $host_os in 7175aix[4-9]*) 7176 lt_cv_deplibs_check_method=pass_all 7177 ;; 7178 7179beos*) 7180 lt_cv_deplibs_check_method=pass_all 7181 ;; 7182 7183bsdi[45]*) 7184 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7185 lt_cv_file_magic_cmd='/usr/bin/file -L' 7186 lt_cv_file_magic_test_file=/shlib/libc.so 7187 ;; 7188 7189cygwin*) 7190 # func_win32_libid is a shell function defined in ltmain.sh 7191 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7192 lt_cv_file_magic_cmd='func_win32_libid' 7193 ;; 7194 7195mingw* | pw32*) 7196 # Base MSYS/MinGW do not provide the 'file' command needed by 7197 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7198 # unless we find 'file', for example because we are cross-compiling. 7199 if ( file / ) >/dev/null 2>&1; then 7200 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7201 lt_cv_file_magic_cmd='func_win32_libid' 7202 else 7203 # Keep this pattern in sync with the one in func_win32_libid. 7204 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7205 lt_cv_file_magic_cmd='$OBJDUMP -f' 7206 fi 7207 ;; 7208 7209cegcc*) 7210 # use the weaker test based on 'objdump'. See mingw*. 7211 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7212 lt_cv_file_magic_cmd='$OBJDUMP -f' 7213 ;; 7214 7215darwin* | rhapsody*) 7216 lt_cv_deplibs_check_method=pass_all 7217 ;; 7218 7219freebsd* | dragonfly*) 7220 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7221 case $host_cpu in 7222 i*86 ) 7223 # Not sure whether the presence of OpenBSD here was a mistake. 7224 # Let's accept both of them until this is cleared up. 7225 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7226 lt_cv_file_magic_cmd=/usr/bin/file 7227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7228 ;; 7229 esac 7230 else 7231 lt_cv_deplibs_check_method=pass_all 7232 fi 7233 ;; 7234 7235haiku*) 7236 lt_cv_deplibs_check_method=pass_all 7237 ;; 7238 7239hpux10.20* | hpux11*) 7240 lt_cv_file_magic_cmd=/usr/bin/file 7241 case $host_cpu in 7242 ia64*) 7243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7244 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7245 ;; 7246 hppa*64*) 7247 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]' 7248 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7249 ;; 7250 *) 7251 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7252 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7253 ;; 7254 esac 7255 ;; 7256 7257interix[3-9]*) 7258 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7260 ;; 7261 7262irix5* | irix6* | nonstopux*) 7263 case $LD in 7264 *-32|*"-32 ") libmagic=32-bit;; 7265 *-n32|*"-n32 ") libmagic=N32;; 7266 *-64|*"-64 ") libmagic=64-bit;; 7267 *) libmagic=never-match;; 7268 esac 7269 lt_cv_deplibs_check_method=pass_all 7270 ;; 7271 7272# This must be glibc/ELF. 7273linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7274 lt_cv_deplibs_check_method=pass_all 7275 ;; 7276 7277netbsd*) 7278 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7280 else 7281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7282 fi 7283 ;; 7284 7285newos6*) 7286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7287 lt_cv_file_magic_cmd=/usr/bin/file 7288 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7289 ;; 7290 7291*nto* | *qnx*) 7292 lt_cv_deplibs_check_method=pass_all 7293 ;; 7294 7295openbsd* | bitrig*) 7296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7298 else 7299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7300 fi 7301 ;; 7302 7303osf3* | osf4* | osf5*) 7304 lt_cv_deplibs_check_method=pass_all 7305 ;; 7306 7307rdos*) 7308 lt_cv_deplibs_check_method=pass_all 7309 ;; 7310 7311solaris*) 7312 lt_cv_deplibs_check_method=pass_all 7313 ;; 7314 7315sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7316 lt_cv_deplibs_check_method=pass_all 7317 ;; 7318 7319sysv4 | sysv4.3*) 7320 case $host_vendor in 7321 motorola) 7322 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]' 7323 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7324 ;; 7325 ncr) 7326 lt_cv_deplibs_check_method=pass_all 7327 ;; 7328 sequent) 7329 lt_cv_file_magic_cmd='/bin/file' 7330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7331 ;; 7332 sni) 7333 lt_cv_file_magic_cmd='/bin/file' 7334 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7335 lt_cv_file_magic_test_file=/lib/libc.so 7336 ;; 7337 siemens) 7338 lt_cv_deplibs_check_method=pass_all 7339 ;; 7340 pc) 7341 lt_cv_deplibs_check_method=pass_all 7342 ;; 7343 esac 7344 ;; 7345 7346tpf*) 7347 lt_cv_deplibs_check_method=pass_all 7348 ;; 7349os2*) 7350 lt_cv_deplibs_check_method=pass_all 7351 ;; 7352esac 7353 7354fi 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7356$as_echo "$lt_cv_deplibs_check_method" >&6; } 7357 7358file_magic_glob= 7359want_nocaseglob=no 7360if test "$build" = "$host"; then 7361 case $host_os in 7362 mingw* | pw32*) 7363 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7364 want_nocaseglob=yes 7365 else 7366 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7367 fi 7368 ;; 7369 esac 7370fi 7371 7372file_magic_cmd=$lt_cv_file_magic_cmd 7373deplibs_check_method=$lt_cv_deplibs_check_method 7374test -z "$deplibs_check_method" && deplibs_check_method=unknown 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397if test -n "$ac_tool_prefix"; then 7398 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7399set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7401$as_echo_n "checking for $ac_word... " >&6; } 7402if ${ac_cv_prog_DLLTOOL+:} false; then : 7403 $as_echo_n "(cached) " >&6 7404else 7405 if test -n "$DLLTOOL"; then 7406 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7407else 7408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7409for as_dir in $PATH 7410do 7411 IFS=$as_save_IFS 7412 test -z "$as_dir" && as_dir=. 7413 for ac_exec_ext in '' $ac_executable_extensions; do 7414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7415 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7417 break 2 7418 fi 7419done 7420 done 7421IFS=$as_save_IFS 7422 7423fi 7424fi 7425DLLTOOL=$ac_cv_prog_DLLTOOL 7426if test -n "$DLLTOOL"; then 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7428$as_echo "$DLLTOOL" >&6; } 7429else 7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7431$as_echo "no" >&6; } 7432fi 7433 7434 7435fi 7436if test -z "$ac_cv_prog_DLLTOOL"; then 7437 ac_ct_DLLTOOL=$DLLTOOL 7438 # Extract the first word of "dlltool", so it can be a program name with args. 7439set dummy dlltool; ac_word=$2 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7441$as_echo_n "checking for $ac_word... " >&6; } 7442if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7443 $as_echo_n "(cached) " >&6 7444else 7445 if test -n "$ac_ct_DLLTOOL"; then 7446 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7447else 7448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7449for as_dir in $PATH 7450do 7451 IFS=$as_save_IFS 7452 test -z "$as_dir" && as_dir=. 7453 for ac_exec_ext in '' $ac_executable_extensions; do 7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7455 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7457 break 2 7458 fi 7459done 7460 done 7461IFS=$as_save_IFS 7462 7463fi 7464fi 7465ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7466if test -n "$ac_ct_DLLTOOL"; then 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7468$as_echo "$ac_ct_DLLTOOL" >&6; } 7469else 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7471$as_echo "no" >&6; } 7472fi 7473 7474 if test "x$ac_ct_DLLTOOL" = x; then 7475 DLLTOOL="false" 7476 else 7477 case $cross_compiling:$ac_tool_warned in 7478yes:) 7479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7481ac_tool_warned=yes ;; 7482esac 7483 DLLTOOL=$ac_ct_DLLTOOL 7484 fi 7485else 7486 DLLTOOL="$ac_cv_prog_DLLTOOL" 7487fi 7488 7489test -z "$DLLTOOL" && DLLTOOL=dlltool 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7501$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7502if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7503 $as_echo_n "(cached) " >&6 7504else 7505 lt_cv_sharedlib_from_linklib_cmd='unknown' 7506 7507case $host_os in 7508cygwin* | mingw* | pw32* | cegcc*) 7509 # two different shell functions defined in ltmain.sh; 7510 # decide which one to use based on capabilities of $DLLTOOL 7511 case `$DLLTOOL --help 2>&1` in 7512 *--identify-strict*) 7513 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7514 ;; 7515 *) 7516 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7517 ;; 7518 esac 7519 ;; 7520*) 7521 # fallback: assume linklib IS sharedlib 7522 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7523 ;; 7524esac 7525 7526fi 7527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7528$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7529sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7530test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7531 7532 7533 7534 7535 7536 7537 7538 7539if test -n "$ac_tool_prefix"; then 7540 for ac_prog in ar 7541 do 7542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7543set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7545$as_echo_n "checking for $ac_word... " >&6; } 7546if ${ac_cv_prog_AR+:} false; then : 7547 $as_echo_n "(cached) " >&6 7548else 7549 if test -n "$AR"; then 7550 ac_cv_prog_AR="$AR" # Let the user override the test. 7551else 7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7553for as_dir in $PATH 7554do 7555 IFS=$as_save_IFS 7556 test -z "$as_dir" && as_dir=. 7557 for ac_exec_ext in '' $ac_executable_extensions; do 7558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7559 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7561 break 2 7562 fi 7563done 7564 done 7565IFS=$as_save_IFS 7566 7567fi 7568fi 7569AR=$ac_cv_prog_AR 7570if test -n "$AR"; then 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7572$as_echo "$AR" >&6; } 7573else 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7575$as_echo "no" >&6; } 7576fi 7577 7578 7579 test -n "$AR" && break 7580 done 7581fi 7582if test -z "$AR"; then 7583 ac_ct_AR=$AR 7584 for ac_prog in ar 7585do 7586 # Extract the first word of "$ac_prog", so it can be a program name with args. 7587set dummy $ac_prog; ac_word=$2 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7589$as_echo_n "checking for $ac_word... " >&6; } 7590if ${ac_cv_prog_ac_ct_AR+:} false; then : 7591 $as_echo_n "(cached) " >&6 7592else 7593 if test -n "$ac_ct_AR"; then 7594 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7595else 7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7597for as_dir in $PATH 7598do 7599 IFS=$as_save_IFS 7600 test -z "$as_dir" && as_dir=. 7601 for ac_exec_ext in '' $ac_executable_extensions; do 7602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7603 ac_cv_prog_ac_ct_AR="$ac_prog" 7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7605 break 2 7606 fi 7607done 7608 done 7609IFS=$as_save_IFS 7610 7611fi 7612fi 7613ac_ct_AR=$ac_cv_prog_ac_ct_AR 7614if test -n "$ac_ct_AR"; then 7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7616$as_echo "$ac_ct_AR" >&6; } 7617else 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7619$as_echo "no" >&6; } 7620fi 7621 7622 7623 test -n "$ac_ct_AR" && break 7624done 7625 7626 if test "x$ac_ct_AR" = x; then 7627 AR="false" 7628 else 7629 case $cross_compiling:$ac_tool_warned in 7630yes:) 7631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7633ac_tool_warned=yes ;; 7634esac 7635 AR=$ac_ct_AR 7636 fi 7637fi 7638 7639: ${AR=ar} 7640: ${AR_FLAGS=cru} 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7653$as_echo_n "checking for archiver @FILE support... " >&6; } 7654if ${lt_cv_ar_at_file+:} false; then : 7655 $as_echo_n "(cached) " >&6 7656else 7657 lt_cv_ar_at_file=no 7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7659/* end confdefs.h. */ 7660 7661int 7662main () 7663{ 7664 7665 ; 7666 return 0; 7667} 7668_ACEOF 7669if ac_fn_cxx_try_compile "$LINENO"; then : 7670 echo conftest.$ac_objext > conftest.lst 7671 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7673 (eval $lt_ar_try) 2>&5 7674 ac_status=$? 7675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7676 test $ac_status = 0; } 7677 if test 0 -eq "$ac_status"; then 7678 # Ensure the archiver fails upon bogus file names. 7679 rm -f conftest.$ac_objext libconftest.a 7680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7681 (eval $lt_ar_try) 2>&5 7682 ac_status=$? 7683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7684 test $ac_status = 0; } 7685 if test 0 -ne "$ac_status"; then 7686 lt_cv_ar_at_file=@ 7687 fi 7688 fi 7689 rm -f conftest.* libconftest.a 7690 7691fi 7692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7693 7694fi 7695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7696$as_echo "$lt_cv_ar_at_file" >&6; } 7697 7698if test no = "$lt_cv_ar_at_file"; then 7699 archiver_list_spec= 7700else 7701 archiver_list_spec=$lt_cv_ar_at_file 7702fi 7703 7704 7705 7706 7707 7708 7709 7710if test -n "$ac_tool_prefix"; then 7711 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7712set dummy ${ac_tool_prefix}strip; ac_word=$2 7713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7714$as_echo_n "checking for $ac_word... " >&6; } 7715if ${ac_cv_prog_STRIP+:} false; then : 7716 $as_echo_n "(cached) " >&6 7717else 7718 if test -n "$STRIP"; then 7719 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7720else 7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7722for as_dir in $PATH 7723do 7724 IFS=$as_save_IFS 7725 test -z "$as_dir" && as_dir=. 7726 for ac_exec_ext in '' $ac_executable_extensions; do 7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7728 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7730 break 2 7731 fi 7732done 7733 done 7734IFS=$as_save_IFS 7735 7736fi 7737fi 7738STRIP=$ac_cv_prog_STRIP 7739if test -n "$STRIP"; then 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7741$as_echo "$STRIP" >&6; } 7742else 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7744$as_echo "no" >&6; } 7745fi 7746 7747 7748fi 7749if test -z "$ac_cv_prog_STRIP"; then 7750 ac_ct_STRIP=$STRIP 7751 # Extract the first word of "strip", so it can be a program name with args. 7752set dummy strip; ac_word=$2 7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7754$as_echo_n "checking for $ac_word... " >&6; } 7755if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7756 $as_echo_n "(cached) " >&6 7757else 7758 if test -n "$ac_ct_STRIP"; then 7759 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7760else 7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7762for as_dir in $PATH 7763do 7764 IFS=$as_save_IFS 7765 test -z "$as_dir" && as_dir=. 7766 for ac_exec_ext in '' $ac_executable_extensions; do 7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7768 ac_cv_prog_ac_ct_STRIP="strip" 7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7770 break 2 7771 fi 7772done 7773 done 7774IFS=$as_save_IFS 7775 7776fi 7777fi 7778ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7779if test -n "$ac_ct_STRIP"; then 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7781$as_echo "$ac_ct_STRIP" >&6; } 7782else 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7784$as_echo "no" >&6; } 7785fi 7786 7787 if test "x$ac_ct_STRIP" = x; then 7788 STRIP=":" 7789 else 7790 case $cross_compiling:$ac_tool_warned in 7791yes:) 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7794ac_tool_warned=yes ;; 7795esac 7796 STRIP=$ac_ct_STRIP 7797 fi 7798else 7799 STRIP="$ac_cv_prog_STRIP" 7800fi 7801 7802test -z "$STRIP" && STRIP=: 7803 7804 7805 7806 7807 7808 7809if test -n "$ac_tool_prefix"; then 7810 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7811set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7813$as_echo_n "checking for $ac_word... " >&6; } 7814if ${ac_cv_prog_RANLIB+:} false; then : 7815 $as_echo_n "(cached) " >&6 7816else 7817 if test -n "$RANLIB"; then 7818 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7819else 7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7821for as_dir in $PATH 7822do 7823 IFS=$as_save_IFS 7824 test -z "$as_dir" && as_dir=. 7825 for ac_exec_ext in '' $ac_executable_extensions; do 7826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7827 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7829 break 2 7830 fi 7831done 7832 done 7833IFS=$as_save_IFS 7834 7835fi 7836fi 7837RANLIB=$ac_cv_prog_RANLIB 7838if test -n "$RANLIB"; then 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7840$as_echo "$RANLIB" >&6; } 7841else 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7843$as_echo "no" >&6; } 7844fi 7845 7846 7847fi 7848if test -z "$ac_cv_prog_RANLIB"; then 7849 ac_ct_RANLIB=$RANLIB 7850 # Extract the first word of "ranlib", so it can be a program name with args. 7851set dummy ranlib; ac_word=$2 7852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7853$as_echo_n "checking for $ac_word... " >&6; } 7854if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7855 $as_echo_n "(cached) " >&6 7856else 7857 if test -n "$ac_ct_RANLIB"; then 7858 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7859else 7860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7861for as_dir in $PATH 7862do 7863 IFS=$as_save_IFS 7864 test -z "$as_dir" && as_dir=. 7865 for ac_exec_ext in '' $ac_executable_extensions; do 7866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7867 ac_cv_prog_ac_ct_RANLIB="ranlib" 7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7869 break 2 7870 fi 7871done 7872 done 7873IFS=$as_save_IFS 7874 7875fi 7876fi 7877ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7878if test -n "$ac_ct_RANLIB"; then 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7880$as_echo "$ac_ct_RANLIB" >&6; } 7881else 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7883$as_echo "no" >&6; } 7884fi 7885 7886 if test "x$ac_ct_RANLIB" = x; then 7887 RANLIB=":" 7888 else 7889 case $cross_compiling:$ac_tool_warned in 7890yes:) 7891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7893ac_tool_warned=yes ;; 7894esac 7895 RANLIB=$ac_ct_RANLIB 7896 fi 7897else 7898 RANLIB="$ac_cv_prog_RANLIB" 7899fi 7900 7901test -z "$RANLIB" && RANLIB=: 7902 7903 7904 7905 7906 7907 7908# Determine commands to create old-style static archives. 7909old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7910old_postinstall_cmds='chmod 644 $oldlib' 7911old_postuninstall_cmds= 7912 7913if test -n "$RANLIB"; then 7914 case $host_os in 7915 bitrig* | openbsd*) 7916 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7917 ;; 7918 *) 7919 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7920 ;; 7921 esac 7922 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7923fi 7924 7925case $host_os in 7926 darwin*) 7927 lock_old_archive_extraction=yes ;; 7928 *) 7929 lock_old_archive_extraction=no ;; 7930esac 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970# If no C compiler was specified, use CC. 7971LTCC=${LTCC-"$CC"} 7972 7973# If no C compiler flags were specified, use CFLAGS. 7974LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7975 7976# Allow CC to be a program name with arguments. 7977compiler=$CC 7978 7979 7980# Check for command to grab the raw symbol name followed by C symbol from nm. 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7982$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7983if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7984 $as_echo_n "(cached) " >&6 7985else 7986 7987# These are sane defaults that work on at least a few old systems. 7988# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7989 7990# Character class describing NM global symbol codes. 7991symcode='[BCDEGRST]' 7992 7993# Regexp to match symbols that can be accessed directly from C. 7994sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7995 7996# Define system-specific variables. 7997case $host_os in 7998aix*) 7999 symcode='[BCDT]' 8000 ;; 8001cygwin* | mingw* | pw32* | cegcc*) 8002 symcode='[ABCDGISTW]' 8003 ;; 8004hpux*) 8005 if test ia64 = "$host_cpu"; then 8006 symcode='[ABCDEGRST]' 8007 fi 8008 ;; 8009irix* | nonstopux*) 8010 symcode='[BCDEGRST]' 8011 ;; 8012osf*) 8013 symcode='[BCDEGQRST]' 8014 ;; 8015solaris*) 8016 symcode='[BDRT]' 8017 ;; 8018sco3.2v5*) 8019 symcode='[DT]' 8020 ;; 8021sysv4.2uw2*) 8022 symcode='[DT]' 8023 ;; 8024sysv5* | sco5v6* | unixware* | OpenUNIX*) 8025 symcode='[ABDT]' 8026 ;; 8027sysv4) 8028 symcode='[DFNSTU]' 8029 ;; 8030esac 8031 8032# If we're using GNU nm, then use its standard symbol codes. 8033case `$NM -V 2>&1` in 8034*GNU* | *'with BFD'*) 8035 symcode='[ABCDGIRSTW]' ;; 8036esac 8037 8038if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8039 # Gets list of data symbols to import. 8040 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8041 # Adjust the below global symbol transforms to fixup imported variables. 8042 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8043 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8044 lt_c_name_lib_hook="\ 8045 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8046 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8047else 8048 # Disable hooks by default. 8049 lt_cv_sys_global_symbol_to_import= 8050 lt_cdecl_hook= 8051 lt_c_name_hook= 8052 lt_c_name_lib_hook= 8053fi 8054 8055# Transform an extracted symbol line into a proper C declaration. 8056# Some systems (esp. on ia64) link data and code symbols differently, 8057# so use this general approach. 8058lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8059$lt_cdecl_hook\ 8060" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8061" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8062 8063# Transform an extracted symbol line into symbol name and symbol address 8064lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8065$lt_c_name_hook\ 8066" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8067" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8068 8069# Transform an extracted symbol line into symbol name with lib prefix and 8070# symbol address. 8071lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8072$lt_c_name_lib_hook\ 8073" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8074" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8075" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8076 8077# Handle CRLF in mingw tool chain 8078opt_cr= 8079case $build_os in 8080mingw*) 8081 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8082 ;; 8083esac 8084 8085# Try without a prefix underscore, then with it. 8086for ac_symprfx in "" "_"; do 8087 8088 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8089 symxfrm="\\1 $ac_symprfx\\2 \\2" 8090 8091 # Write the raw and C identifiers. 8092 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8093 # Fake it for dumpbin and say T for any non-static function, 8094 # D for any global variable and I for any imported variable. 8095 # Also find C++ and __fastcall symbols from MSVC++, 8096 # which start with @ or ?. 8097 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8098" {last_section=section; section=\$ 3};"\ 8099" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8100" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8101" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8102" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8103" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8104" \$ 0!~/External *\|/{next};"\ 8105" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8106" {if(hide[section]) next};"\ 8107" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8108" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8109" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8110" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8111" ' prfx=^$ac_symprfx" 8112 else 8113 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8114 fi 8115 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8116 8117 # Check to see that the pipe works correctly. 8118 pipe_works=no 8119 8120 rm -f conftest* 8121 cat > conftest.$ac_ext <<_LT_EOF 8122#ifdef __cplusplus 8123extern "C" { 8124#endif 8125char nm_test_var; 8126void nm_test_func(void); 8127void nm_test_func(void){} 8128#ifdef __cplusplus 8129} 8130#endif 8131int main(){nm_test_var='a';nm_test_func();return(0);} 8132_LT_EOF 8133 8134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8135 (eval $ac_compile) 2>&5 8136 ac_status=$? 8137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8138 test $ac_status = 0; }; then 8139 # Now try to grab the symbols. 8140 nlist=conftest.nm 8141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8142 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8143 ac_status=$? 8144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8145 test $ac_status = 0; } && test -s "$nlist"; then 8146 # Try sorting and uniquifying the output. 8147 if sort "$nlist" | uniq > "$nlist"T; then 8148 mv -f "$nlist"T "$nlist" 8149 else 8150 rm -f "$nlist"T 8151 fi 8152 8153 # Make sure that we snagged all the symbols we need. 8154 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8155 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8156 cat <<_LT_EOF > conftest.$ac_ext 8157/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8158#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8159/* DATA imports from DLLs on WIN32 can't be const, because runtime 8160 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8161# define LT_DLSYM_CONST 8162#elif defined __osf__ 8163/* This system does not cope well with relocations in const data. */ 8164# define LT_DLSYM_CONST 8165#else 8166# define LT_DLSYM_CONST const 8167#endif 8168 8169#ifdef __cplusplus 8170extern "C" { 8171#endif 8172 8173_LT_EOF 8174 # Now generate the symbol file. 8175 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8176 8177 cat <<_LT_EOF >> conftest.$ac_ext 8178 8179/* The mapping between symbol names and symbols. */ 8180LT_DLSYM_CONST struct { 8181 const char *name; 8182 void *address; 8183} 8184lt__PROGRAM__LTX_preloaded_symbols[] = 8185{ 8186 { "@PROGRAM@", (void *) 0 }, 8187_LT_EOF 8188 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8189 cat <<\_LT_EOF >> conftest.$ac_ext 8190 {0, (void *) 0} 8191}; 8192 8193/* This works around a problem in FreeBSD linker */ 8194#ifdef FREEBSD_WORKAROUND 8195static const void *lt_preloaded_setup() { 8196 return lt__PROGRAM__LTX_preloaded_symbols; 8197} 8198#endif 8199 8200#ifdef __cplusplus 8201} 8202#endif 8203_LT_EOF 8204 # Now try linking the two files. 8205 mv conftest.$ac_objext conftstm.$ac_objext 8206 lt_globsym_save_LIBS=$LIBS 8207 lt_globsym_save_CFLAGS=$CFLAGS 8208 LIBS=conftstm.$ac_objext 8209 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8211 (eval $ac_link) 2>&5 8212 ac_status=$? 8213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8214 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8215 pipe_works=yes 8216 fi 8217 LIBS=$lt_globsym_save_LIBS 8218 CFLAGS=$lt_globsym_save_CFLAGS 8219 else 8220 echo "cannot find nm_test_func in $nlist" >&5 8221 fi 8222 else 8223 echo "cannot find nm_test_var in $nlist" >&5 8224 fi 8225 else 8226 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8227 fi 8228 else 8229 echo "$progname: failed program was:" >&5 8230 cat conftest.$ac_ext >&5 8231 fi 8232 rm -rf conftest* conftst* 8233 8234 # Do not use the global_symbol_pipe unless it works. 8235 if test yes = "$pipe_works"; then 8236 break 8237 else 8238 lt_cv_sys_global_symbol_pipe= 8239 fi 8240done 8241 8242fi 8243 8244if test -z "$lt_cv_sys_global_symbol_pipe"; then 8245 lt_cv_sys_global_symbol_to_cdecl= 8246fi 8247if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8249$as_echo "failed" >&6; } 8250else 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8252$as_echo "ok" >&6; } 8253fi 8254 8255# Response file support. 8256if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8257 nm_file_list_spec='@' 8258elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8259 nm_file_list_spec='@' 8260fi 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8299$as_echo_n "checking for sysroot... " >&6; } 8300 8301# Check whether --with-sysroot was given. 8302if test "${with_sysroot+set}" = set; then : 8303 withval=$with_sysroot; 8304else 8305 with_sysroot=no 8306fi 8307 8308 8309lt_sysroot= 8310case $with_sysroot in #( 8311 yes) 8312 if test yes = "$GCC"; then 8313 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8314 fi 8315 ;; #( 8316 /*) 8317 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8318 ;; #( 8319 no|'') 8320 ;; #( 8321 *) 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8323$as_echo "$with_sysroot" >&6; } 8324 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8325 ;; 8326esac 8327 8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8329$as_echo "${lt_sysroot:-no}" >&6; } 8330 8331 8332 8333 8334 8335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8336$as_echo_n "checking for a working dd... " >&6; } 8337if ${ac_cv_path_lt_DD+:} false; then : 8338 $as_echo_n "(cached) " >&6 8339else 8340 printf 0123456789abcdef0123456789abcdef >conftest.i 8341cat conftest.i conftest.i >conftest2.i 8342: ${lt_DD:=$DD} 8343if test -z "$lt_DD"; then 8344 ac_path_lt_DD_found=false 8345 # Loop through the user's path and test for each of PROGNAME-LIST 8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8347for as_dir in $PATH 8348do 8349 IFS=$as_save_IFS 8350 test -z "$as_dir" && as_dir=. 8351 for ac_prog in dd; do 8352 for ac_exec_ext in '' $ac_executable_extensions; do 8353 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 8354 as_fn_executable_p "$ac_path_lt_DD" || continue 8355if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8356 cmp -s conftest.i conftest.out \ 8357 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8358fi 8359 $ac_path_lt_DD_found && break 3 8360 done 8361 done 8362 done 8363IFS=$as_save_IFS 8364 if test -z "$ac_cv_path_lt_DD"; then 8365 : 8366 fi 8367else 8368 ac_cv_path_lt_DD=$lt_DD 8369fi 8370 8371rm -f conftest.i conftest2.i conftest.out 8372fi 8373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8374$as_echo "$ac_cv_path_lt_DD" >&6; } 8375 8376 8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8378$as_echo_n "checking how to truncate binary pipes... " >&6; } 8379if ${lt_cv_truncate_bin+:} false; then : 8380 $as_echo_n "(cached) " >&6 8381else 8382 printf 0123456789abcdef0123456789abcdef >conftest.i 8383cat conftest.i conftest.i >conftest2.i 8384lt_cv_truncate_bin= 8385if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8386 cmp -s conftest.i conftest.out \ 8387 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8388fi 8389rm -f conftest.i conftest2.i conftest.out 8390test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8391fi 8392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8393$as_echo "$lt_cv_truncate_bin" >&6; } 8394 8395 8396 8397 8398 8399 8400 8401# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8402func_cc_basename () 8403{ 8404 for cc_temp in $*""; do 8405 case $cc_temp in 8406 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8407 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8408 \-*) ;; 8409 *) break;; 8410 esac 8411 done 8412 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8413} 8414 8415# Check whether --enable-libtool-lock was given. 8416if test "${enable_libtool_lock+set}" = set; then : 8417 enableval=$enable_libtool_lock; 8418fi 8419 8420test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8421 8422# Some flags need to be propagated to the compiler or linker for good 8423# libtool support. 8424case $host in 8425ia64-*-hpux*) 8426 # Find out what ABI is being produced by ac_compile, and set mode 8427 # options accordingly. 8428 echo 'int i;' > conftest.$ac_ext 8429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8430 (eval $ac_compile) 2>&5 8431 ac_status=$? 8432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8433 test $ac_status = 0; }; then 8434 case `/usr/bin/file conftest.$ac_objext` in 8435 *ELF-32*) 8436 HPUX_IA64_MODE=32 8437 ;; 8438 *ELF-64*) 8439 HPUX_IA64_MODE=64 8440 ;; 8441 esac 8442 fi 8443 rm -rf conftest* 8444 ;; 8445*-*-irix6*) 8446 # Find out what ABI is being produced by ac_compile, and set linker 8447 # options accordingly. 8448 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8450 (eval $ac_compile) 2>&5 8451 ac_status=$? 8452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8453 test $ac_status = 0; }; then 8454 if test yes = "$lt_cv_prog_gnu_ld"; then 8455 case `/usr/bin/file conftest.$ac_objext` in 8456 *32-bit*) 8457 LD="${LD-ld} -melf32bsmip" 8458 ;; 8459 *N32*) 8460 LD="${LD-ld} -melf32bmipn32" 8461 ;; 8462 *64-bit*) 8463 LD="${LD-ld} -melf64bmip" 8464 ;; 8465 esac 8466 else 8467 case `/usr/bin/file conftest.$ac_objext` in 8468 *32-bit*) 8469 LD="${LD-ld} -32" 8470 ;; 8471 *N32*) 8472 LD="${LD-ld} -n32" 8473 ;; 8474 *64-bit*) 8475 LD="${LD-ld} -64" 8476 ;; 8477 esac 8478 fi 8479 fi 8480 rm -rf conftest* 8481 ;; 8482 8483mips64*-*linux*) 8484 # Find out what ABI is being produced by ac_compile, and set linker 8485 # options accordingly. 8486 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8488 (eval $ac_compile) 2>&5 8489 ac_status=$? 8490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8491 test $ac_status = 0; }; then 8492 emul=elf 8493 case `/usr/bin/file conftest.$ac_objext` in 8494 *32-bit*) 8495 emul="${emul}32" 8496 ;; 8497 *64-bit*) 8498 emul="${emul}64" 8499 ;; 8500 esac 8501 case `/usr/bin/file conftest.$ac_objext` in 8502 *MSB*) 8503 emul="${emul}btsmip" 8504 ;; 8505 *LSB*) 8506 emul="${emul}ltsmip" 8507 ;; 8508 esac 8509 case `/usr/bin/file conftest.$ac_objext` in 8510 *N32*) 8511 emul="${emul}n32" 8512 ;; 8513 esac 8514 LD="${LD-ld} -m $emul" 8515 fi 8516 rm -rf conftest* 8517 ;; 8518 8519x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8520s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8521 # Find out what ABI is being produced by ac_compile, and set linker 8522 # options accordingly. Note that the listed cases only cover the 8523 # situations where additional linker options are needed (such as when 8524 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8525 # vice versa); the common cases where no linker options are needed do 8526 # not appear in the list. 8527 echo 'int i;' > conftest.$ac_ext 8528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8529 (eval $ac_compile) 2>&5 8530 ac_status=$? 8531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8532 test $ac_status = 0; }; then 8533 case `/usr/bin/file conftest.o` in 8534 *32-bit*) 8535 case $host in 8536 x86_64-*kfreebsd*-gnu) 8537 LD="${LD-ld} -m elf_i386_fbsd" 8538 ;; 8539 x86_64-*linux*) 8540 case `/usr/bin/file conftest.o` in 8541 *x86-64*) 8542 LD="${LD-ld} -m elf32_x86_64" 8543 ;; 8544 *) 8545 LD="${LD-ld} -m elf_i386" 8546 ;; 8547 esac 8548 ;; 8549 powerpc64le-*linux*) 8550 LD="${LD-ld} -m elf32lppclinux" 8551 ;; 8552 powerpc64-*linux*) 8553 LD="${LD-ld} -m elf32ppclinux" 8554 ;; 8555 s390x-*linux*) 8556 LD="${LD-ld} -m elf_s390" 8557 ;; 8558 sparc64-*linux*) 8559 LD="${LD-ld} -m elf32_sparc" 8560 ;; 8561 esac 8562 ;; 8563 *64-bit*) 8564 case $host in 8565 x86_64-*kfreebsd*-gnu) 8566 LD="${LD-ld} -m elf_x86_64_fbsd" 8567 ;; 8568 x86_64-*linux*) 8569 LD="${LD-ld} -m elf_x86_64" 8570 ;; 8571 powerpcle-*linux*) 8572 LD="${LD-ld} -m elf64lppc" 8573 ;; 8574 powerpc-*linux*) 8575 LD="${LD-ld} -m elf64ppc" 8576 ;; 8577 s390*-*linux*|s390*-*tpf*) 8578 LD="${LD-ld} -m elf64_s390" 8579 ;; 8580 sparc*-*linux*) 8581 LD="${LD-ld} -m elf64_sparc" 8582 ;; 8583 esac 8584 ;; 8585 esac 8586 fi 8587 rm -rf conftest* 8588 ;; 8589 8590*-*-sco3.2v5*) 8591 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8592 SAVE_CFLAGS=$CFLAGS 8593 CFLAGS="$CFLAGS -belf" 8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8595$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8596if ${lt_cv_cc_needs_belf+:} false; then : 8597 $as_echo_n "(cached) " >&6 8598else 8599 ac_ext=c 8600ac_cpp='$CPP $CPPFLAGS' 8601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8603ac_compiler_gnu=$ac_cv_c_compiler_gnu 8604 8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8606/* end confdefs.h. */ 8607 8608int 8609main () 8610{ 8611 8612 ; 8613 return 0; 8614} 8615_ACEOF 8616if ac_fn_c_try_link "$LINENO"; then : 8617 lt_cv_cc_needs_belf=yes 8618else 8619 lt_cv_cc_needs_belf=no 8620fi 8621rm -f core conftest.err conftest.$ac_objext \ 8622 conftest$ac_exeext conftest.$ac_ext 8623 ac_ext=c 8624ac_cpp='$CPP $CPPFLAGS' 8625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8627ac_compiler_gnu=$ac_cv_c_compiler_gnu 8628 8629fi 8630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8631$as_echo "$lt_cv_cc_needs_belf" >&6; } 8632 if test yes != "$lt_cv_cc_needs_belf"; then 8633 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8634 CFLAGS=$SAVE_CFLAGS 8635 fi 8636 ;; 8637*-*solaris*) 8638 # Find out what ABI is being produced by ac_compile, and set linker 8639 # options accordingly. 8640 echo 'int i;' > conftest.$ac_ext 8641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8642 (eval $ac_compile) 2>&5 8643 ac_status=$? 8644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8645 test $ac_status = 0; }; then 8646 case `/usr/bin/file conftest.o` in 8647 *64-bit*) 8648 case $lt_cv_prog_gnu_ld in 8649 yes*) 8650 case $host in 8651 i?86-*-solaris*|x86_64-*-solaris*) 8652 LD="${LD-ld} -m elf_x86_64" 8653 ;; 8654 sparc*-*-solaris*) 8655 LD="${LD-ld} -m elf64_sparc" 8656 ;; 8657 esac 8658 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8659 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8660 LD=${LD-ld}_sol2 8661 fi 8662 ;; 8663 *) 8664 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8665 LD="${LD-ld} -64" 8666 fi 8667 ;; 8668 esac 8669 ;; 8670 esac 8671 fi 8672 rm -rf conftest* 8673 ;; 8674esac 8675 8676need_locks=$enable_libtool_lock 8677 8678if test -n "$ac_tool_prefix"; then 8679 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8680set dummy ${ac_tool_prefix}mt; ac_word=$2 8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8682$as_echo_n "checking for $ac_word... " >&6; } 8683if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8684 $as_echo_n "(cached) " >&6 8685else 8686 if test -n "$MANIFEST_TOOL"; then 8687 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8688else 8689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8690for as_dir in $PATH 8691do 8692 IFS=$as_save_IFS 8693 test -z "$as_dir" && as_dir=. 8694 for ac_exec_ext in '' $ac_executable_extensions; do 8695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8696 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8698 break 2 8699 fi 8700done 8701 done 8702IFS=$as_save_IFS 8703 8704fi 8705fi 8706MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8707if test -n "$MANIFEST_TOOL"; then 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8709$as_echo "$MANIFEST_TOOL" >&6; } 8710else 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8712$as_echo "no" >&6; } 8713fi 8714 8715 8716fi 8717if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8718 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8719 # Extract the first word of "mt", so it can be a program name with args. 8720set dummy mt; ac_word=$2 8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8722$as_echo_n "checking for $ac_word... " >&6; } 8723if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8724 $as_echo_n "(cached) " >&6 8725else 8726 if test -n "$ac_ct_MANIFEST_TOOL"; then 8727 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8728else 8729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8730for as_dir in $PATH 8731do 8732 IFS=$as_save_IFS 8733 test -z "$as_dir" && as_dir=. 8734 for ac_exec_ext in '' $ac_executable_extensions; do 8735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8736 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8738 break 2 8739 fi 8740done 8741 done 8742IFS=$as_save_IFS 8743 8744fi 8745fi 8746ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8747if test -n "$ac_ct_MANIFEST_TOOL"; then 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8749$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8750else 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8752$as_echo "no" >&6; } 8753fi 8754 8755 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8756 MANIFEST_TOOL=":" 8757 else 8758 case $cross_compiling:$ac_tool_warned in 8759yes:) 8760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8762ac_tool_warned=yes ;; 8763esac 8764 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8765 fi 8766else 8767 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8768fi 8769 8770test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8772$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8773if ${lt_cv_path_mainfest_tool+:} false; then : 8774 $as_echo_n "(cached) " >&6 8775else 8776 lt_cv_path_mainfest_tool=no 8777 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8778 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8779 cat conftest.err >&5 8780 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8781 lt_cv_path_mainfest_tool=yes 8782 fi 8783 rm -f conftest* 8784fi 8785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8786$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8787if test yes != "$lt_cv_path_mainfest_tool"; then 8788 MANIFEST_TOOL=: 8789fi 8790 8791 8792 8793 8794 8795 8796 case $host_os in 8797 rhapsody* | darwin*) 8798 if test -n "$ac_tool_prefix"; then 8799 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8800set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8802$as_echo_n "checking for $ac_word... " >&6; } 8803if ${ac_cv_prog_DSYMUTIL+:} false; then : 8804 $as_echo_n "(cached) " >&6 8805else 8806 if test -n "$DSYMUTIL"; then 8807 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8808else 8809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8810for as_dir in $PATH 8811do 8812 IFS=$as_save_IFS 8813 test -z "$as_dir" && as_dir=. 8814 for ac_exec_ext in '' $ac_executable_extensions; do 8815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8816 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8818 break 2 8819 fi 8820done 8821 done 8822IFS=$as_save_IFS 8823 8824fi 8825fi 8826DSYMUTIL=$ac_cv_prog_DSYMUTIL 8827if test -n "$DSYMUTIL"; then 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8829$as_echo "$DSYMUTIL" >&6; } 8830else 8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8832$as_echo "no" >&6; } 8833fi 8834 8835 8836fi 8837if test -z "$ac_cv_prog_DSYMUTIL"; then 8838 ac_ct_DSYMUTIL=$DSYMUTIL 8839 # Extract the first word of "dsymutil", so it can be a program name with args. 8840set dummy dsymutil; ac_word=$2 8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8842$as_echo_n "checking for $ac_word... " >&6; } 8843if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8844 $as_echo_n "(cached) " >&6 8845else 8846 if test -n "$ac_ct_DSYMUTIL"; then 8847 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8848else 8849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8850for as_dir in $PATH 8851do 8852 IFS=$as_save_IFS 8853 test -z "$as_dir" && as_dir=. 8854 for ac_exec_ext in '' $ac_executable_extensions; do 8855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8856 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8858 break 2 8859 fi 8860done 8861 done 8862IFS=$as_save_IFS 8863 8864fi 8865fi 8866ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8867if test -n "$ac_ct_DSYMUTIL"; then 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8869$as_echo "$ac_ct_DSYMUTIL" >&6; } 8870else 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8872$as_echo "no" >&6; } 8873fi 8874 8875 if test "x$ac_ct_DSYMUTIL" = x; then 8876 DSYMUTIL=":" 8877 else 8878 case $cross_compiling:$ac_tool_warned in 8879yes:) 8880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8882ac_tool_warned=yes ;; 8883esac 8884 DSYMUTIL=$ac_ct_DSYMUTIL 8885 fi 8886else 8887 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8888fi 8889 8890 if test -n "$ac_tool_prefix"; then 8891 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8892set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8894$as_echo_n "checking for $ac_word... " >&6; } 8895if ${ac_cv_prog_NMEDIT+:} false; then : 8896 $as_echo_n "(cached) " >&6 8897else 8898 if test -n "$NMEDIT"; then 8899 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8900else 8901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8902for as_dir in $PATH 8903do 8904 IFS=$as_save_IFS 8905 test -z "$as_dir" && as_dir=. 8906 for ac_exec_ext in '' $ac_executable_extensions; do 8907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8908 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8910 break 2 8911 fi 8912done 8913 done 8914IFS=$as_save_IFS 8915 8916fi 8917fi 8918NMEDIT=$ac_cv_prog_NMEDIT 8919if test -n "$NMEDIT"; then 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8921$as_echo "$NMEDIT" >&6; } 8922else 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8924$as_echo "no" >&6; } 8925fi 8926 8927 8928fi 8929if test -z "$ac_cv_prog_NMEDIT"; then 8930 ac_ct_NMEDIT=$NMEDIT 8931 # Extract the first word of "nmedit", so it can be a program name with args. 8932set dummy nmedit; ac_word=$2 8933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8934$as_echo_n "checking for $ac_word... " >&6; } 8935if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8936 $as_echo_n "(cached) " >&6 8937else 8938 if test -n "$ac_ct_NMEDIT"; then 8939 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8940else 8941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8942for as_dir in $PATH 8943do 8944 IFS=$as_save_IFS 8945 test -z "$as_dir" && as_dir=. 8946 for ac_exec_ext in '' $ac_executable_extensions; do 8947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8948 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8950 break 2 8951 fi 8952done 8953 done 8954IFS=$as_save_IFS 8955 8956fi 8957fi 8958ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8959if test -n "$ac_ct_NMEDIT"; then 8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8961$as_echo "$ac_ct_NMEDIT" >&6; } 8962else 8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8964$as_echo "no" >&6; } 8965fi 8966 8967 if test "x$ac_ct_NMEDIT" = x; then 8968 NMEDIT=":" 8969 else 8970 case $cross_compiling:$ac_tool_warned in 8971yes:) 8972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8974ac_tool_warned=yes ;; 8975esac 8976 NMEDIT=$ac_ct_NMEDIT 8977 fi 8978else 8979 NMEDIT="$ac_cv_prog_NMEDIT" 8980fi 8981 8982 if test -n "$ac_tool_prefix"; then 8983 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8984set dummy ${ac_tool_prefix}lipo; ac_word=$2 8985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8986$as_echo_n "checking for $ac_word... " >&6; } 8987if ${ac_cv_prog_LIPO+:} false; then : 8988 $as_echo_n "(cached) " >&6 8989else 8990 if test -n "$LIPO"; then 8991 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8992else 8993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8994for as_dir in $PATH 8995do 8996 IFS=$as_save_IFS 8997 test -z "$as_dir" && as_dir=. 8998 for ac_exec_ext in '' $ac_executable_extensions; do 8999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9000 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9002 break 2 9003 fi 9004done 9005 done 9006IFS=$as_save_IFS 9007 9008fi 9009fi 9010LIPO=$ac_cv_prog_LIPO 9011if test -n "$LIPO"; then 9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9013$as_echo "$LIPO" >&6; } 9014else 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9016$as_echo "no" >&6; } 9017fi 9018 9019 9020fi 9021if test -z "$ac_cv_prog_LIPO"; then 9022 ac_ct_LIPO=$LIPO 9023 # Extract the first word of "lipo", so it can be a program name with args. 9024set dummy lipo; ac_word=$2 9025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9026$as_echo_n "checking for $ac_word... " >&6; } 9027if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9028 $as_echo_n "(cached) " >&6 9029else 9030 if test -n "$ac_ct_LIPO"; then 9031 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9032else 9033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9034for as_dir in $PATH 9035do 9036 IFS=$as_save_IFS 9037 test -z "$as_dir" && as_dir=. 9038 for ac_exec_ext in '' $ac_executable_extensions; do 9039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9040 ac_cv_prog_ac_ct_LIPO="lipo" 9041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9042 break 2 9043 fi 9044done 9045 done 9046IFS=$as_save_IFS 9047 9048fi 9049fi 9050ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9051if test -n "$ac_ct_LIPO"; then 9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9053$as_echo "$ac_ct_LIPO" >&6; } 9054else 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9056$as_echo "no" >&6; } 9057fi 9058 9059 if test "x$ac_ct_LIPO" = x; then 9060 LIPO=":" 9061 else 9062 case $cross_compiling:$ac_tool_warned in 9063yes:) 9064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9066ac_tool_warned=yes ;; 9067esac 9068 LIPO=$ac_ct_LIPO 9069 fi 9070else 9071 LIPO="$ac_cv_prog_LIPO" 9072fi 9073 9074 if test -n "$ac_tool_prefix"; then 9075 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9076set dummy ${ac_tool_prefix}otool; ac_word=$2 9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9078$as_echo_n "checking for $ac_word... " >&6; } 9079if ${ac_cv_prog_OTOOL+:} false; then : 9080 $as_echo_n "(cached) " >&6 9081else 9082 if test -n "$OTOOL"; then 9083 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9084else 9085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9086for as_dir in $PATH 9087do 9088 IFS=$as_save_IFS 9089 test -z "$as_dir" && as_dir=. 9090 for ac_exec_ext in '' $ac_executable_extensions; do 9091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9092 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9094 break 2 9095 fi 9096done 9097 done 9098IFS=$as_save_IFS 9099 9100fi 9101fi 9102OTOOL=$ac_cv_prog_OTOOL 9103if test -n "$OTOOL"; then 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9105$as_echo "$OTOOL" >&6; } 9106else 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9108$as_echo "no" >&6; } 9109fi 9110 9111 9112fi 9113if test -z "$ac_cv_prog_OTOOL"; then 9114 ac_ct_OTOOL=$OTOOL 9115 # Extract the first word of "otool", so it can be a program name with args. 9116set dummy otool; ac_word=$2 9117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9118$as_echo_n "checking for $ac_word... " >&6; } 9119if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9120 $as_echo_n "(cached) " >&6 9121else 9122 if test -n "$ac_ct_OTOOL"; then 9123 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9124else 9125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9126for as_dir in $PATH 9127do 9128 IFS=$as_save_IFS 9129 test -z "$as_dir" && as_dir=. 9130 for ac_exec_ext in '' $ac_executable_extensions; do 9131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9132 ac_cv_prog_ac_ct_OTOOL="otool" 9133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9134 break 2 9135 fi 9136done 9137 done 9138IFS=$as_save_IFS 9139 9140fi 9141fi 9142ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9143if test -n "$ac_ct_OTOOL"; then 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9145$as_echo "$ac_ct_OTOOL" >&6; } 9146else 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9148$as_echo "no" >&6; } 9149fi 9150 9151 if test "x$ac_ct_OTOOL" = x; then 9152 OTOOL=":" 9153 else 9154 case $cross_compiling:$ac_tool_warned in 9155yes:) 9156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9158ac_tool_warned=yes ;; 9159esac 9160 OTOOL=$ac_ct_OTOOL 9161 fi 9162else 9163 OTOOL="$ac_cv_prog_OTOOL" 9164fi 9165 9166 if test -n "$ac_tool_prefix"; then 9167 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9168set dummy ${ac_tool_prefix}otool64; ac_word=$2 9169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9170$as_echo_n "checking for $ac_word... " >&6; } 9171if ${ac_cv_prog_OTOOL64+:} false; then : 9172 $as_echo_n "(cached) " >&6 9173else 9174 if test -n "$OTOOL64"; then 9175 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9176else 9177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9178for as_dir in $PATH 9179do 9180 IFS=$as_save_IFS 9181 test -z "$as_dir" && as_dir=. 9182 for ac_exec_ext in '' $ac_executable_extensions; do 9183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9184 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9186 break 2 9187 fi 9188done 9189 done 9190IFS=$as_save_IFS 9191 9192fi 9193fi 9194OTOOL64=$ac_cv_prog_OTOOL64 9195if test -n "$OTOOL64"; then 9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9197$as_echo "$OTOOL64" >&6; } 9198else 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9200$as_echo "no" >&6; } 9201fi 9202 9203 9204fi 9205if test -z "$ac_cv_prog_OTOOL64"; then 9206 ac_ct_OTOOL64=$OTOOL64 9207 # Extract the first word of "otool64", so it can be a program name with args. 9208set dummy otool64; ac_word=$2 9209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9210$as_echo_n "checking for $ac_word... " >&6; } 9211if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9212 $as_echo_n "(cached) " >&6 9213else 9214 if test -n "$ac_ct_OTOOL64"; then 9215 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9216else 9217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9218for as_dir in $PATH 9219do 9220 IFS=$as_save_IFS 9221 test -z "$as_dir" && as_dir=. 9222 for ac_exec_ext in '' $ac_executable_extensions; do 9223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9224 ac_cv_prog_ac_ct_OTOOL64="otool64" 9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9226 break 2 9227 fi 9228done 9229 done 9230IFS=$as_save_IFS 9231 9232fi 9233fi 9234ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9235if test -n "$ac_ct_OTOOL64"; then 9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9237$as_echo "$ac_ct_OTOOL64" >&6; } 9238else 9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9240$as_echo "no" >&6; } 9241fi 9242 9243 if test "x$ac_ct_OTOOL64" = x; then 9244 OTOOL64=":" 9245 else 9246 case $cross_compiling:$ac_tool_warned in 9247yes:) 9248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9250ac_tool_warned=yes ;; 9251esac 9252 OTOOL64=$ac_ct_OTOOL64 9253 fi 9254else 9255 OTOOL64="$ac_cv_prog_OTOOL64" 9256fi 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9285$as_echo_n "checking for -single_module linker flag... " >&6; } 9286if ${lt_cv_apple_cc_single_mod+:} false; then : 9287 $as_echo_n "(cached) " >&6 9288else 9289 lt_cv_apple_cc_single_mod=no 9290 if test -z "$LT_MULTI_MODULE"; then 9291 # By default we will add the -single_module flag. You can override 9292 # by either setting the environment variable LT_MULTI_MODULE 9293 # non-empty at configure time, or by adding -multi_module to the 9294 # link flags. 9295 rm -rf libconftest.dylib* 9296 echo "int foo(void){return 1;}" > conftest.c 9297 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9298-dynamiclib -Wl,-single_module conftest.c" >&5 9299 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9300 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9301 _lt_result=$? 9302 # If there is a non-empty error log, and "single_module" 9303 # appears in it, assume the flag caused a linker warning 9304 if test -s conftest.err && $GREP single_module conftest.err; then 9305 cat conftest.err >&5 9306 # Otherwise, if the output was created with a 0 exit code from 9307 # the compiler, it worked. 9308 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9309 lt_cv_apple_cc_single_mod=yes 9310 else 9311 cat conftest.err >&5 9312 fi 9313 rm -rf libconftest.dylib* 9314 rm -f conftest.* 9315 fi 9316fi 9317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9318$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9319 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9321$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9322if ${lt_cv_ld_exported_symbols_list+:} false; then : 9323 $as_echo_n "(cached) " >&6 9324else 9325 lt_cv_ld_exported_symbols_list=no 9326 save_LDFLAGS=$LDFLAGS 9327 echo "_main" > conftest.sym 9328 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9330/* end confdefs.h. */ 9331 9332int 9333main () 9334{ 9335 9336 ; 9337 return 0; 9338} 9339_ACEOF 9340if ac_fn_c_try_link "$LINENO"; then : 9341 lt_cv_ld_exported_symbols_list=yes 9342else 9343 lt_cv_ld_exported_symbols_list=no 9344fi 9345rm -f core conftest.err conftest.$ac_objext \ 9346 conftest$ac_exeext conftest.$ac_ext 9347 LDFLAGS=$save_LDFLAGS 9348 9349fi 9350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9351$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9352 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9354$as_echo_n "checking for -force_load linker flag... " >&6; } 9355if ${lt_cv_ld_force_load+:} false; then : 9356 $as_echo_n "(cached) " >&6 9357else 9358 lt_cv_ld_force_load=no 9359 cat > conftest.c << _LT_EOF 9360int forced_loaded() { return 2;} 9361_LT_EOF 9362 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9363 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9364 echo "$AR cru libconftest.a conftest.o" >&5 9365 $AR cru libconftest.a conftest.o 2>&5 9366 echo "$RANLIB libconftest.a" >&5 9367 $RANLIB libconftest.a 2>&5 9368 cat > conftest.c << _LT_EOF 9369int main() { return 0;} 9370_LT_EOF 9371 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9372 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9373 _lt_result=$? 9374 if test -s conftest.err && $GREP force_load conftest.err; then 9375 cat conftest.err >&5 9376 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9377 lt_cv_ld_force_load=yes 9378 else 9379 cat conftest.err >&5 9380 fi 9381 rm -f conftest.err libconftest.a conftest conftest.c 9382 rm -rf conftest.dSYM 9383 9384fi 9385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9386$as_echo "$lt_cv_ld_force_load" >&6; } 9387 case $host_os in 9388 rhapsody* | darwin1.[012]) 9389 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9390 darwin1.*) 9391 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9392 darwin*) # darwin 5.x on 9393 # if running on 10.5 or later, the deployment target defaults 9394 # to the OS version, if on x86, and 10.4, the deployment 9395 # target defaults to 10.4. Don't you love it? 9396 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9397 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9398 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9399 10.[012][,.]*) 9400 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9401 10.*) 9402 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9403 esac 9404 ;; 9405 esac 9406 if test yes = "$lt_cv_apple_cc_single_mod"; then 9407 _lt_dar_single_mod='$single_module' 9408 fi 9409 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9410 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9411 else 9412 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9413 fi 9414 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9415 _lt_dsymutil='~$DSYMUTIL $lib || :' 9416 else 9417 _lt_dsymutil= 9418 fi 9419 ;; 9420 esac 9421 9422# func_munge_path_list VARIABLE PATH 9423# ----------------------------------- 9424# VARIABLE is name of variable containing _space_ separated list of 9425# directories to be munged by the contents of PATH, which is string 9426# having a format: 9427# "DIR[:DIR]:" 9428# string "DIR[ DIR]" will be prepended to VARIABLE 9429# ":DIR[:DIR]" 9430# string "DIR[ DIR]" will be appended to VARIABLE 9431# "DIRP[:DIRP]::[DIRA:]DIRA" 9432# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9433# "DIRA[ DIRA]" will be appended to VARIABLE 9434# "DIR[:DIR]" 9435# VARIABLE will be replaced by "DIR[ DIR]" 9436func_munge_path_list () 9437{ 9438 case x$2 in 9439 x) 9440 ;; 9441 *:) 9442 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9443 ;; 9444 x:*) 9445 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9446 ;; 9447 *::*) 9448 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9449 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9450 ;; 9451 *) 9452 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9453 ;; 9454 esac 9455} 9456 9457for ac_header in dlfcn.h 9458do : 9459 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9460" 9461if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9462 cat >>confdefs.h <<_ACEOF 9463#define HAVE_DLFCN_H 1 9464_ACEOF 9465 9466fi 9467 9468done 9469 9470 9471 9472func_stripname_cnf () 9473{ 9474 case $2 in 9475 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 9476 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 9477 esac 9478} # func_stripname_cnf 9479 9480 9481 9482 9483 9484# Set options 9485 9486 9487 9488 enable_dlopen=no 9489 9490 9491 enable_win32_dll=no 9492 9493 9494 # Check whether --enable-shared was given. 9495if test "${enable_shared+set}" = set; then : 9496 enableval=$enable_shared; p=${PACKAGE-default} 9497 case $enableval in 9498 yes) enable_shared=yes ;; 9499 no) enable_shared=no ;; 9500 *) 9501 enable_shared=no 9502 # Look at the argument we got. We use all the common list separators. 9503 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9504 for pkg in $enableval; do 9505 IFS=$lt_save_ifs 9506 if test "X$pkg" = "X$p"; then 9507 enable_shared=yes 9508 fi 9509 done 9510 IFS=$lt_save_ifs 9511 ;; 9512 esac 9513else 9514 enable_shared=yes 9515fi 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 # Check whether --enable-static was given. 9526if test "${enable_static+set}" = set; then : 9527 enableval=$enable_static; p=${PACKAGE-default} 9528 case $enableval in 9529 yes) enable_static=yes ;; 9530 no) enable_static=no ;; 9531 *) 9532 enable_static=no 9533 # Look at the argument we got. We use all the common list separators. 9534 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9535 for pkg in $enableval; do 9536 IFS=$lt_save_ifs 9537 if test "X$pkg" = "X$p"; then 9538 enable_static=yes 9539 fi 9540 done 9541 IFS=$lt_save_ifs 9542 ;; 9543 esac 9544else 9545 enable_static=yes 9546fi 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557# Check whether --with-pic was given. 9558if test "${with_pic+set}" = set; then : 9559 withval=$with_pic; lt_p=${PACKAGE-default} 9560 case $withval in 9561 yes|no) pic_mode=$withval ;; 9562 *) 9563 pic_mode=default 9564 # Look at the argument we got. We use all the common list separators. 9565 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9566 for lt_pkg in $withval; do 9567 IFS=$lt_save_ifs 9568 if test "X$lt_pkg" = "X$lt_p"; then 9569 pic_mode=yes 9570 fi 9571 done 9572 IFS=$lt_save_ifs 9573 ;; 9574 esac 9575else 9576 pic_mode=default 9577fi 9578 9579 9580 9581 9582 9583 9584 9585 9586 # Check whether --enable-fast-install was given. 9587if test "${enable_fast_install+set}" = set; then : 9588 enableval=$enable_fast_install; p=${PACKAGE-default} 9589 case $enableval in 9590 yes) enable_fast_install=yes ;; 9591 no) enable_fast_install=no ;; 9592 *) 9593 enable_fast_install=no 9594 # Look at the argument we got. We use all the common list separators. 9595 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9596 for pkg in $enableval; do 9597 IFS=$lt_save_ifs 9598 if test "X$pkg" = "X$p"; then 9599 enable_fast_install=yes 9600 fi 9601 done 9602 IFS=$lt_save_ifs 9603 ;; 9604 esac 9605else 9606 enable_fast_install=yes 9607fi 9608 9609 9610 9611 9612 9613 9614 9615 9616 shared_archive_member_spec= 9617case $host,$enable_shared in 9618power*-*-aix[5-9]*,yes) 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9620$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9621 9622# Check whether --with-aix-soname was given. 9623if test "${with_aix_soname+set}" = set; then : 9624 withval=$with_aix_soname; case $withval in 9625 aix|svr4|both) 9626 ;; 9627 *) 9628 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9629 ;; 9630 esac 9631 lt_cv_with_aix_soname=$with_aix_soname 9632else 9633 if ${lt_cv_with_aix_soname+:} false; then : 9634 $as_echo_n "(cached) " >&6 9635else 9636 lt_cv_with_aix_soname=aix 9637fi 9638 9639 with_aix_soname=$lt_cv_with_aix_soname 9640fi 9641 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9643$as_echo "$with_aix_soname" >&6; } 9644 if test aix != "$with_aix_soname"; then 9645 # For the AIX way of multilib, we name the shared archive member 9646 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9647 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9648 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9649 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9650 if test 64 = "${OBJECT_MODE-32}"; then 9651 shared_archive_member_spec=shr_64 9652 else 9653 shared_archive_member_spec=shr 9654 fi 9655 fi 9656 ;; 9657*) 9658 with_aix_soname=aix 9659 ;; 9660esac 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671# This can be used to rebuild libtool when needed 9672LIBTOOL_DEPS=$ltmain 9673 9674# Always use our own libtool. 9675LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706test -z "$LN_S" && LN_S="ln -s" 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721if test -n "${ZSH_VERSION+set}"; then 9722 setopt NO_GLOB_SUBST 9723fi 9724 9725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9726$as_echo_n "checking for objdir... " >&6; } 9727if ${lt_cv_objdir+:} false; then : 9728 $as_echo_n "(cached) " >&6 9729else 9730 rm -f .libs 2>/dev/null 9731mkdir .libs 2>/dev/null 9732if test -d .libs; then 9733 lt_cv_objdir=.libs 9734else 9735 # MS-DOS does not allow filenames that begin with a dot. 9736 lt_cv_objdir=_libs 9737fi 9738rmdir .libs 2>/dev/null 9739fi 9740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9741$as_echo "$lt_cv_objdir" >&6; } 9742objdir=$lt_cv_objdir 9743 9744 9745 9746 9747 9748cat >>confdefs.h <<_ACEOF 9749#define LT_OBJDIR "$lt_cv_objdir/" 9750_ACEOF 9751 9752 9753 9754 9755case $host_os in 9756aix3*) 9757 # AIX sometimes has problems with the GCC collect2 program. For some 9758 # reason, if we set the COLLECT_NAMES environment variable, the problems 9759 # vanish in a puff of smoke. 9760 if test set != "${COLLECT_NAMES+set}"; then 9761 COLLECT_NAMES= 9762 export COLLECT_NAMES 9763 fi 9764 ;; 9765esac 9766 9767# Global variables: 9768ofile=libtool 9769can_build_shared=yes 9770 9771# All known linkers require a '.a' archive for static linking (except MSVC, 9772# which needs '.lib'). 9773libext=a 9774 9775with_gnu_ld=$lt_cv_prog_gnu_ld 9776 9777old_CC=$CC 9778old_CFLAGS=$CFLAGS 9779 9780# Set sane defaults for various variables 9781test -z "$CC" && CC=cc 9782test -z "$LTCC" && LTCC=$CC 9783test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9784test -z "$LD" && LD=ld 9785test -z "$ac_objext" && ac_objext=o 9786 9787func_cc_basename $compiler 9788cc_basename=$func_cc_basename_result 9789 9790 9791# Only perform the check for file, if the check method requires it 9792test -z "$MAGIC_CMD" && MAGIC_CMD=file 9793case $deplibs_check_method in 9794file_magic*) 9795 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9797$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9798if ${lt_cv_path_MAGIC_CMD+:} false; then : 9799 $as_echo_n "(cached) " >&6 9800else 9801 case $MAGIC_CMD in 9802[\\/*] | ?:[\\/]*) 9803 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9804 ;; 9805*) 9806 lt_save_MAGIC_CMD=$MAGIC_CMD 9807 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9808 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9809 for ac_dir in $ac_dummy; do 9810 IFS=$lt_save_ifs 9811 test -z "$ac_dir" && ac_dir=. 9812 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9813 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9814 if test -n "$file_magic_test_file"; then 9815 case $deplibs_check_method in 9816 "file_magic "*) 9817 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9818 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9819 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9820 $EGREP "$file_magic_regex" > /dev/null; then 9821 : 9822 else 9823 cat <<_LT_EOF 1>&2 9824 9825*** Warning: the command libtool uses to detect shared libraries, 9826*** $file_magic_cmd, produces output that libtool cannot recognize. 9827*** The result is that libtool may fail to recognize shared libraries 9828*** as such. This will affect the creation of libtool libraries that 9829*** depend on shared libraries, but programs linked with such libtool 9830*** libraries will work regardless of this problem. Nevertheless, you 9831*** may want to report the problem to your system manager and/or to 9832*** bug-libtool@gnu.org 9833 9834_LT_EOF 9835 fi ;; 9836 esac 9837 fi 9838 break 9839 fi 9840 done 9841 IFS=$lt_save_ifs 9842 MAGIC_CMD=$lt_save_MAGIC_CMD 9843 ;; 9844esac 9845fi 9846 9847MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9848if test -n "$MAGIC_CMD"; then 9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9850$as_echo "$MAGIC_CMD" >&6; } 9851else 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9853$as_echo "no" >&6; } 9854fi 9855 9856 9857 9858 9859 9860if test -z "$lt_cv_path_MAGIC_CMD"; then 9861 if test -n "$ac_tool_prefix"; then 9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9863$as_echo_n "checking for file... " >&6; } 9864if ${lt_cv_path_MAGIC_CMD+:} false; then : 9865 $as_echo_n "(cached) " >&6 9866else 9867 case $MAGIC_CMD in 9868[\\/*] | ?:[\\/]*) 9869 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9870 ;; 9871*) 9872 lt_save_MAGIC_CMD=$MAGIC_CMD 9873 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9874 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9875 for ac_dir in $ac_dummy; do 9876 IFS=$lt_save_ifs 9877 test -z "$ac_dir" && ac_dir=. 9878 if test -f "$ac_dir/file"; then 9879 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9880 if test -n "$file_magic_test_file"; then 9881 case $deplibs_check_method in 9882 "file_magic "*) 9883 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9884 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9885 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9886 $EGREP "$file_magic_regex" > /dev/null; then 9887 : 9888 else 9889 cat <<_LT_EOF 1>&2 9890 9891*** Warning: the command libtool uses to detect shared libraries, 9892*** $file_magic_cmd, produces output that libtool cannot recognize. 9893*** The result is that libtool may fail to recognize shared libraries 9894*** as such. This will affect the creation of libtool libraries that 9895*** depend on shared libraries, but programs linked with such libtool 9896*** libraries will work regardless of this problem. Nevertheless, you 9897*** may want to report the problem to your system manager and/or to 9898*** bug-libtool@gnu.org 9899 9900_LT_EOF 9901 fi ;; 9902 esac 9903 fi 9904 break 9905 fi 9906 done 9907 IFS=$lt_save_ifs 9908 MAGIC_CMD=$lt_save_MAGIC_CMD 9909 ;; 9910esac 9911fi 9912 9913MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9914if test -n "$MAGIC_CMD"; then 9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9916$as_echo "$MAGIC_CMD" >&6; } 9917else 9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9919$as_echo "no" >&6; } 9920fi 9921 9922 9923 else 9924 MAGIC_CMD=: 9925 fi 9926fi 9927 9928 fi 9929 ;; 9930esac 9931 9932# Use C for the default configuration in the libtool script 9933 9934lt_save_CC=$CC 9935ac_ext=c 9936ac_cpp='$CPP $CPPFLAGS' 9937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9939ac_compiler_gnu=$ac_cv_c_compiler_gnu 9940 9941 9942# Source file extension for C test sources. 9943ac_ext=c 9944 9945# Object file extension for compiled C test sources. 9946objext=o 9947objext=$objext 9948 9949# Code to be used in simple compile tests 9950lt_simple_compile_test_code="int some_variable = 0;" 9951 9952# Code to be used in simple link tests 9953lt_simple_link_test_code='int main(){return(0);}' 9954 9955 9956 9957 9958 9959 9960 9961# If no C compiler was specified, use CC. 9962LTCC=${LTCC-"$CC"} 9963 9964# If no C compiler flags were specified, use CFLAGS. 9965LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9966 9967# Allow CC to be a program name with arguments. 9968compiler=$CC 9969 9970# Save the default compiler, since it gets overwritten when the other 9971# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9972compiler_DEFAULT=$CC 9973 9974# save warnings/boilerplate of simple test code 9975ac_outfile=conftest.$ac_objext 9976echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9977eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9978_lt_compiler_boilerplate=`cat conftest.err` 9979$RM conftest* 9980 9981ac_outfile=conftest.$ac_objext 9982echo "$lt_simple_link_test_code" >conftest.$ac_ext 9983eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9984_lt_linker_boilerplate=`cat conftest.err` 9985$RM -r conftest* 9986 9987 9988if test -n "$compiler"; then 9989 9990lt_prog_compiler_no_builtin_flag= 9991 9992if test yes = "$GCC"; then 9993 case $cc_basename in 9994 nvcc*) 9995 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9996 *) 9997 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9998 esac 9999 10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10001$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10002if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10003 $as_echo_n "(cached) " >&6 10004else 10005 lt_cv_prog_compiler_rtti_exceptions=no 10006 ac_outfile=conftest.$ac_objext 10007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10008 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10009 # Insert the option either (1) after the last *FLAGS variable, or 10010 # (2) before a word containing "conftest.", or (3) at the end. 10011 # Note that $ac_compile itself does not contain backslashes and begins 10012 # with a dollar sign (not a hyphen), so the echo should work correctly. 10013 # The option is referenced via a variable to avoid confusing sed. 10014 lt_compile=`echo "$ac_compile" | $SED \ 10015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10017 -e 's:$: $lt_compiler_flag:'` 10018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10019 (eval "$lt_compile" 2>conftest.err) 10020 ac_status=$? 10021 cat conftest.err >&5 10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10023 if (exit $ac_status) && test -s "$ac_outfile"; then 10024 # The compiler can only warn and ignore the option if not recognized 10025 # So say no if there are warnings other than the usual output. 10026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10029 lt_cv_prog_compiler_rtti_exceptions=yes 10030 fi 10031 fi 10032 $RM conftest* 10033 10034fi 10035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10036$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10037 10038if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10039 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10040else 10041 : 10042fi 10043 10044fi 10045 10046 10047 10048 10049 10050 10051 lt_prog_compiler_wl= 10052lt_prog_compiler_pic= 10053lt_prog_compiler_static= 10054 10055 10056 if test yes = "$GCC"; then 10057 lt_prog_compiler_wl='-Wl,' 10058 lt_prog_compiler_static='-static' 10059 10060 case $host_os in 10061 aix*) 10062 # All AIX code is PIC. 10063 if test ia64 = "$host_cpu"; then 10064 # AIX 5 now supports IA64 processor 10065 lt_prog_compiler_static='-Bstatic' 10066 fi 10067 lt_prog_compiler_pic='-fPIC' 10068 ;; 10069 10070 amigaos*) 10071 case $host_cpu in 10072 powerpc) 10073 # see comment about AmigaOS4 .so support 10074 lt_prog_compiler_pic='-fPIC' 10075 ;; 10076 m68k) 10077 # FIXME: we need at least 68020 code to build shared libraries, but 10078 # adding the '-m68020' flag to GCC prevents building anything better, 10079 # like '-m68040'. 10080 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10081 ;; 10082 esac 10083 ;; 10084 10085 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10086 # PIC is the default for these OSes. 10087 ;; 10088 10089 mingw* | cygwin* | pw32* | os2* | cegcc*) 10090 # This hack is so that the source file can tell whether it is being 10091 # built for inclusion in a dll (and should export symbols for example). 10092 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10093 # (--disable-auto-import) libraries 10094 lt_prog_compiler_pic='-DDLL_EXPORT' 10095 case $host_os in 10096 os2*) 10097 lt_prog_compiler_static='$wl-static' 10098 ;; 10099 esac 10100 ;; 10101 10102 darwin* | rhapsody*) 10103 # PIC is the default on this platform 10104 # Common symbols not allowed in MH_DYLIB files 10105 lt_prog_compiler_pic='-fno-common' 10106 ;; 10107 10108 haiku*) 10109 # PIC is the default for Haiku. 10110 # The "-static" flag exists, but is broken. 10111 lt_prog_compiler_static= 10112 ;; 10113 10114 hpux*) 10115 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10116 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10117 # sets the default TLS model and affects inlining. 10118 case $host_cpu in 10119 hppa*64*) 10120 # +Z the default 10121 ;; 10122 *) 10123 lt_prog_compiler_pic='-fPIC' 10124 ;; 10125 esac 10126 ;; 10127 10128 interix[3-9]*) 10129 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10130 # Instead, we relocate shared libraries at runtime. 10131 ;; 10132 10133 msdosdjgpp*) 10134 # Just because we use GCC doesn't mean we suddenly get shared libraries 10135 # on systems that don't support them. 10136 lt_prog_compiler_can_build_shared=no 10137 enable_shared=no 10138 ;; 10139 10140 *nto* | *qnx*) 10141 # QNX uses GNU C++, but need to define -shared option too, otherwise 10142 # it will coredump. 10143 lt_prog_compiler_pic='-fPIC -shared' 10144 ;; 10145 10146 sysv4*MP*) 10147 if test -d /usr/nec; then 10148 lt_prog_compiler_pic=-Kconform_pic 10149 fi 10150 ;; 10151 10152 *) 10153 lt_prog_compiler_pic='-fPIC' 10154 ;; 10155 esac 10156 10157 case $cc_basename in 10158 nvcc*) # Cuda Compiler Driver 2.2 10159 lt_prog_compiler_wl='-Xlinker ' 10160 if test -n "$lt_prog_compiler_pic"; then 10161 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10162 fi 10163 ;; 10164 esac 10165 else 10166 # PORTME Check for flag to pass linker flags through the system compiler. 10167 case $host_os in 10168 aix*) 10169 lt_prog_compiler_wl='-Wl,' 10170 if test ia64 = "$host_cpu"; then 10171 # AIX 5 now supports IA64 processor 10172 lt_prog_compiler_static='-Bstatic' 10173 else 10174 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10175 fi 10176 ;; 10177 10178 darwin* | rhapsody*) 10179 # PIC is the default on this platform 10180 # Common symbols not allowed in MH_DYLIB files 10181 lt_prog_compiler_pic='-fno-common' 10182 case $cc_basename in 10183 nagfor*) 10184 # NAG Fortran compiler 10185 lt_prog_compiler_wl='-Wl,-Wl,,' 10186 lt_prog_compiler_pic='-PIC' 10187 lt_prog_compiler_static='-Bstatic' 10188 ;; 10189 esac 10190 ;; 10191 10192 mingw* | cygwin* | pw32* | os2* | cegcc*) 10193 # This hack is so that the source file can tell whether it is being 10194 # built for inclusion in a dll (and should export symbols for example). 10195 lt_prog_compiler_pic='-DDLL_EXPORT' 10196 case $host_os in 10197 os2*) 10198 lt_prog_compiler_static='$wl-static' 10199 ;; 10200 esac 10201 ;; 10202 10203 hpux9* | hpux10* | hpux11*) 10204 lt_prog_compiler_wl='-Wl,' 10205 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10206 # not for PA HP-UX. 10207 case $host_cpu in 10208 hppa*64*|ia64*) 10209 # +Z the default 10210 ;; 10211 *) 10212 lt_prog_compiler_pic='+Z' 10213 ;; 10214 esac 10215 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10216 lt_prog_compiler_static='$wl-a ${wl}archive' 10217 ;; 10218 10219 irix5* | irix6* | nonstopux*) 10220 lt_prog_compiler_wl='-Wl,' 10221 # PIC (with -KPIC) is the default. 10222 lt_prog_compiler_static='-non_shared' 10223 ;; 10224 10225 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10226 case $cc_basename in 10227 # old Intel for x86_64, which still supported -KPIC. 10228 ecc*) 10229 lt_prog_compiler_wl='-Wl,' 10230 lt_prog_compiler_pic='-KPIC' 10231 lt_prog_compiler_static='-static' 10232 ;; 10233 # icc used to be incompatible with GCC. 10234 # ICC 10 doesn't accept -KPIC any more. 10235 icc* | ifort*) 10236 lt_prog_compiler_wl='-Wl,' 10237 lt_prog_compiler_pic='-fPIC' 10238 lt_prog_compiler_static='-static' 10239 ;; 10240 # Lahey Fortran 8.1. 10241 lf95*) 10242 lt_prog_compiler_wl='-Wl,' 10243 lt_prog_compiler_pic='--shared' 10244 lt_prog_compiler_static='--static' 10245 ;; 10246 nagfor*) 10247 # NAG Fortran compiler 10248 lt_prog_compiler_wl='-Wl,-Wl,,' 10249 lt_prog_compiler_pic='-PIC' 10250 lt_prog_compiler_static='-Bstatic' 10251 ;; 10252 tcc*) 10253 # Fabrice Bellard et al's Tiny C Compiler 10254 lt_prog_compiler_wl='-Wl,' 10255 lt_prog_compiler_pic='-fPIC' 10256 lt_prog_compiler_static='-static' 10257 ;; 10258 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10259 # Portland Group compilers (*not* the Pentium gcc compiler, 10260 # which looks to be a dead project) 10261 lt_prog_compiler_wl='-Wl,' 10262 lt_prog_compiler_pic='-fpic' 10263 lt_prog_compiler_static='-Bstatic' 10264 ;; 10265 ccc*) 10266 lt_prog_compiler_wl='-Wl,' 10267 # All Alpha code is PIC. 10268 lt_prog_compiler_static='-non_shared' 10269 ;; 10270 xl* | bgxl* | bgf* | mpixl*) 10271 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10272 lt_prog_compiler_wl='-Wl,' 10273 lt_prog_compiler_pic='-qpic' 10274 lt_prog_compiler_static='-qstaticlink' 10275 ;; 10276 *) 10277 case `$CC -V 2>&1 | sed 5q` in 10278 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10279 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10280 lt_prog_compiler_pic='-KPIC' 10281 lt_prog_compiler_static='-Bstatic' 10282 lt_prog_compiler_wl='' 10283 ;; 10284 *Sun\ F* | *Sun*Fortran*) 10285 lt_prog_compiler_pic='-KPIC' 10286 lt_prog_compiler_static='-Bstatic' 10287 lt_prog_compiler_wl='-Qoption ld ' 10288 ;; 10289 *Sun\ C*) 10290 # Sun C 5.9 10291 lt_prog_compiler_pic='-KPIC' 10292 lt_prog_compiler_static='-Bstatic' 10293 lt_prog_compiler_wl='-Wl,' 10294 ;; 10295 *Intel*\ [CF]*Compiler*) 10296 lt_prog_compiler_wl='-Wl,' 10297 lt_prog_compiler_pic='-fPIC' 10298 lt_prog_compiler_static='-static' 10299 ;; 10300 *Portland\ Group*) 10301 lt_prog_compiler_wl='-Wl,' 10302 lt_prog_compiler_pic='-fpic' 10303 lt_prog_compiler_static='-Bstatic' 10304 ;; 10305 esac 10306 ;; 10307 esac 10308 ;; 10309 10310 newsos6) 10311 lt_prog_compiler_pic='-KPIC' 10312 lt_prog_compiler_static='-Bstatic' 10313 ;; 10314 10315 *nto* | *qnx*) 10316 # QNX uses GNU C++, but need to define -shared option too, otherwise 10317 # it will coredump. 10318 lt_prog_compiler_pic='-fPIC -shared' 10319 ;; 10320 10321 osf3* | osf4* | osf5*) 10322 lt_prog_compiler_wl='-Wl,' 10323 # All OSF/1 code is PIC. 10324 lt_prog_compiler_static='-non_shared' 10325 ;; 10326 10327 rdos*) 10328 lt_prog_compiler_static='-non_shared' 10329 ;; 10330 10331 solaris*) 10332 lt_prog_compiler_pic='-KPIC' 10333 lt_prog_compiler_static='-Bstatic' 10334 case $cc_basename in 10335 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10336 lt_prog_compiler_wl='-Qoption ld ';; 10337 *) 10338 lt_prog_compiler_wl='-Wl,';; 10339 esac 10340 ;; 10341 10342 sunos4*) 10343 lt_prog_compiler_wl='-Qoption ld ' 10344 lt_prog_compiler_pic='-PIC' 10345 lt_prog_compiler_static='-Bstatic' 10346 ;; 10347 10348 sysv4 | sysv4.2uw2* | sysv4.3*) 10349 lt_prog_compiler_wl='-Wl,' 10350 lt_prog_compiler_pic='-KPIC' 10351 lt_prog_compiler_static='-Bstatic' 10352 ;; 10353 10354 sysv4*MP*) 10355 if test -d /usr/nec; then 10356 lt_prog_compiler_pic='-Kconform_pic' 10357 lt_prog_compiler_static='-Bstatic' 10358 fi 10359 ;; 10360 10361 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10362 lt_prog_compiler_wl='-Wl,' 10363 lt_prog_compiler_pic='-KPIC' 10364 lt_prog_compiler_static='-Bstatic' 10365 ;; 10366 10367 unicos*) 10368 lt_prog_compiler_wl='-Wl,' 10369 lt_prog_compiler_can_build_shared=no 10370 ;; 10371 10372 uts4*) 10373 lt_prog_compiler_pic='-pic' 10374 lt_prog_compiler_static='-Bstatic' 10375 ;; 10376 10377 *) 10378 lt_prog_compiler_can_build_shared=no 10379 ;; 10380 esac 10381 fi 10382 10383case $host_os in 10384 # For platforms that do not support PIC, -DPIC is meaningless: 10385 *djgpp*) 10386 lt_prog_compiler_pic= 10387 ;; 10388 *) 10389 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10390 ;; 10391esac 10392 10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10394$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10395if ${lt_cv_prog_compiler_pic+:} false; then : 10396 $as_echo_n "(cached) " >&6 10397else 10398 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10399fi 10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10401$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10402lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10403 10404# 10405# Check to make sure the PIC flag actually works. 10406# 10407if test -n "$lt_prog_compiler_pic"; then 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10409$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10410if ${lt_cv_prog_compiler_pic_works+:} false; then : 10411 $as_echo_n "(cached) " >&6 10412else 10413 lt_cv_prog_compiler_pic_works=no 10414 ac_outfile=conftest.$ac_objext 10415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10416 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10417 # Insert the option either (1) after the last *FLAGS variable, or 10418 # (2) before a word containing "conftest.", or (3) at the end. 10419 # Note that $ac_compile itself does not contain backslashes and begins 10420 # with a dollar sign (not a hyphen), so the echo should work correctly. 10421 # The option is referenced via a variable to avoid confusing sed. 10422 lt_compile=`echo "$ac_compile" | $SED \ 10423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10425 -e 's:$: $lt_compiler_flag:'` 10426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10427 (eval "$lt_compile" 2>conftest.err) 10428 ac_status=$? 10429 cat conftest.err >&5 10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10431 if (exit $ac_status) && test -s "$ac_outfile"; then 10432 # The compiler can only warn and ignore the option if not recognized 10433 # So say no if there are warnings other than the usual output. 10434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10437 lt_cv_prog_compiler_pic_works=yes 10438 fi 10439 fi 10440 $RM conftest* 10441 10442fi 10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10444$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10445 10446if test yes = "$lt_cv_prog_compiler_pic_works"; then 10447 case $lt_prog_compiler_pic in 10448 "" | " "*) ;; 10449 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10450 esac 10451else 10452 lt_prog_compiler_pic= 10453 lt_prog_compiler_can_build_shared=no 10454fi 10455 10456fi 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468# 10469# Check to make sure the static flag actually works. 10470# 10471wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10473$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10474if ${lt_cv_prog_compiler_static_works+:} false; then : 10475 $as_echo_n "(cached) " >&6 10476else 10477 lt_cv_prog_compiler_static_works=no 10478 save_LDFLAGS=$LDFLAGS 10479 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10480 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10481 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10482 # The linker can only warn and ignore the option if not recognized 10483 # So say no if there are warnings 10484 if test -s conftest.err; then 10485 # Append any errors to the config.log. 10486 cat conftest.err 1>&5 10487 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10489 if diff conftest.exp conftest.er2 >/dev/null; then 10490 lt_cv_prog_compiler_static_works=yes 10491 fi 10492 else 10493 lt_cv_prog_compiler_static_works=yes 10494 fi 10495 fi 10496 $RM -r conftest* 10497 LDFLAGS=$save_LDFLAGS 10498 10499fi 10500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10501$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10502 10503if test yes = "$lt_cv_prog_compiler_static_works"; then 10504 : 10505else 10506 lt_prog_compiler_static= 10507fi 10508 10509 10510 10511 10512 10513 10514 10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10516$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10517if ${lt_cv_prog_compiler_c_o+:} false; then : 10518 $as_echo_n "(cached) " >&6 10519else 10520 lt_cv_prog_compiler_c_o=no 10521 $RM -r conftest 2>/dev/null 10522 mkdir conftest 10523 cd conftest 10524 mkdir out 10525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10526 10527 lt_compiler_flag="-o out/conftest2.$ac_objext" 10528 # Insert the option either (1) after the last *FLAGS variable, or 10529 # (2) before a word containing "conftest.", or (3) at the end. 10530 # Note that $ac_compile itself does not contain backslashes and begins 10531 # with a dollar sign (not a hyphen), so the echo should work correctly. 10532 lt_compile=`echo "$ac_compile" | $SED \ 10533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10535 -e 's:$: $lt_compiler_flag:'` 10536 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10537 (eval "$lt_compile" 2>out/conftest.err) 10538 ac_status=$? 10539 cat out/conftest.err >&5 10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10541 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10542 then 10543 # The compiler can only warn and ignore the option if not recognized 10544 # So say no if there are warnings 10545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10548 lt_cv_prog_compiler_c_o=yes 10549 fi 10550 fi 10551 chmod u+w . 2>&5 10552 $RM conftest* 10553 # SGI C++ compiler will create directory out/ii_files/ for 10554 # template instantiation 10555 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10556 $RM out/* && rmdir out 10557 cd .. 10558 $RM -r conftest 10559 $RM conftest* 10560 10561fi 10562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10563$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10564 10565 10566 10567 10568 10569 10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10571$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10572if ${lt_cv_prog_compiler_c_o+:} false; then : 10573 $as_echo_n "(cached) " >&6 10574else 10575 lt_cv_prog_compiler_c_o=no 10576 $RM -r conftest 2>/dev/null 10577 mkdir conftest 10578 cd conftest 10579 mkdir out 10580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10581 10582 lt_compiler_flag="-o out/conftest2.$ac_objext" 10583 # Insert the option either (1) after the last *FLAGS variable, or 10584 # (2) before a word containing "conftest.", or (3) at the end. 10585 # Note that $ac_compile itself does not contain backslashes and begins 10586 # with a dollar sign (not a hyphen), so the echo should work correctly. 10587 lt_compile=`echo "$ac_compile" | $SED \ 10588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10590 -e 's:$: $lt_compiler_flag:'` 10591 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10592 (eval "$lt_compile" 2>out/conftest.err) 10593 ac_status=$? 10594 cat out/conftest.err >&5 10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10596 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10597 then 10598 # The compiler can only warn and ignore the option if not recognized 10599 # So say no if there are warnings 10600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10603 lt_cv_prog_compiler_c_o=yes 10604 fi 10605 fi 10606 chmod u+w . 2>&5 10607 $RM conftest* 10608 # SGI C++ compiler will create directory out/ii_files/ for 10609 # template instantiation 10610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10611 $RM out/* && rmdir out 10612 cd .. 10613 $RM -r conftest 10614 $RM conftest* 10615 10616fi 10617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10618$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10619 10620 10621 10622 10623hard_links=nottested 10624if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10625 # do not overwrite the value of need_locks provided by the user 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10627$as_echo_n "checking if we can lock with hard links... " >&6; } 10628 hard_links=yes 10629 $RM conftest* 10630 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10631 touch conftest.a 10632 ln conftest.a conftest.b 2>&5 || hard_links=no 10633 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10635$as_echo "$hard_links" >&6; } 10636 if test no = "$hard_links"; then 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10638$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10639 need_locks=warn 10640 fi 10641else 10642 need_locks=no 10643fi 10644 10645 10646 10647 10648 10649 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10651$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10652 10653 runpath_var= 10654 allow_undefined_flag= 10655 always_export_symbols=no 10656 archive_cmds= 10657 archive_expsym_cmds= 10658 compiler_needs_object=no 10659 enable_shared_with_static_runtimes=no 10660 export_dynamic_flag_spec= 10661 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10662 hardcode_automatic=no 10663 hardcode_direct=no 10664 hardcode_direct_absolute=no 10665 hardcode_libdir_flag_spec= 10666 hardcode_libdir_separator= 10667 hardcode_minus_L=no 10668 hardcode_shlibpath_var=unsupported 10669 inherit_rpath=no 10670 link_all_deplibs=unknown 10671 module_cmds= 10672 module_expsym_cmds= 10673 old_archive_from_new_cmds= 10674 old_archive_from_expsyms_cmds= 10675 thread_safe_flag_spec= 10676 whole_archive_flag_spec= 10677 # include_expsyms should be a list of space-separated symbols to be *always* 10678 # included in the symbol list 10679 include_expsyms= 10680 # exclude_expsyms can be an extended regexp of symbols to exclude 10681 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10682 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10683 # as well as any symbol that contains 'd'. 10684 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10685 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10686 # platforms (ab)use it in PIC code, but their linkers get confused if 10687 # the symbol is explicitly referenced. Since portable code cannot 10688 # rely on this symbol name, it's probably fine to never include it in 10689 # preloaded symbol tables. 10690 # Exclude shared library initialization/finalization symbols. 10691 extract_expsyms_cmds= 10692 10693 case $host_os in 10694 cygwin* | mingw* | pw32* | cegcc*) 10695 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10696 # When not using gcc, we currently assume that we are using 10697 # Microsoft Visual C++. 10698 if test yes != "$GCC"; then 10699 with_gnu_ld=no 10700 fi 10701 ;; 10702 interix*) 10703 # we just hope/assume this is gcc and not c89 (= MSVC++) 10704 with_gnu_ld=yes 10705 ;; 10706 openbsd* | bitrig*) 10707 with_gnu_ld=no 10708 ;; 10709 esac 10710 10711 ld_shlibs=yes 10712 10713 # On some targets, GNU ld is compatible enough with the native linker 10714 # that we're better off using the native interface for both. 10715 lt_use_gnu_ld_interface=no 10716 if test yes = "$with_gnu_ld"; then 10717 case $host_os in 10718 aix*) 10719 # The AIX port of GNU ld has always aspired to compatibility 10720 # with the native linker. However, as the warning in the GNU ld 10721 # block says, versions before 2.19.5* couldn't really create working 10722 # shared libraries, regardless of the interface used. 10723 case `$LD -v 2>&1` in 10724 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10725 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10726 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10727 *) 10728 lt_use_gnu_ld_interface=yes 10729 ;; 10730 esac 10731 ;; 10732 *) 10733 lt_use_gnu_ld_interface=yes 10734 ;; 10735 esac 10736 fi 10737 10738 if test yes = "$lt_use_gnu_ld_interface"; then 10739 # If archive_cmds runs LD, not CC, wlarc should be empty 10740 wlarc='$wl' 10741 10742 # Set some defaults for GNU ld with shared library support. These 10743 # are reset later if shared libraries are not supported. Putting them 10744 # here allows them to be overridden if necessary. 10745 runpath_var=LD_RUN_PATH 10746 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10747 export_dynamic_flag_spec='$wl--export-dynamic' 10748 # ancient GNU ld didn't support --whole-archive et. al. 10749 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10750 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10751 else 10752 whole_archive_flag_spec= 10753 fi 10754 supports_anon_versioning=no 10755 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10756 *GNU\ gold*) supports_anon_versioning=yes ;; 10757 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10758 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10759 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10760 *\ 2.11.*) ;; # other 2.11 versions 10761 *) supports_anon_versioning=yes ;; 10762 esac 10763 10764 # See if GNU ld supports shared libraries. 10765 case $host_os in 10766 aix[3-9]*) 10767 # On AIX/PPC, the GNU linker is very broken 10768 if test ia64 != "$host_cpu"; then 10769 ld_shlibs=no 10770 cat <<_LT_EOF 1>&2 10771 10772*** Warning: the GNU linker, at least up to release 2.19, is reported 10773*** to be unable to reliably create shared libraries on AIX. 10774*** Therefore, libtool is disabling shared libraries support. If you 10775*** really care for shared libraries, you may want to install binutils 10776*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10777*** You will then need to restart the configuration process. 10778 10779_LT_EOF 10780 fi 10781 ;; 10782 10783 amigaos*) 10784 case $host_cpu in 10785 powerpc) 10786 # see comment about AmigaOS4 .so support 10787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10788 archive_expsym_cmds='' 10789 ;; 10790 m68k) 10791 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)' 10792 hardcode_libdir_flag_spec='-L$libdir' 10793 hardcode_minus_L=yes 10794 ;; 10795 esac 10796 ;; 10797 10798 beos*) 10799 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10800 allow_undefined_flag=unsupported 10801 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10802 # support --undefined. This deserves some investigation. FIXME 10803 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10804 else 10805 ld_shlibs=no 10806 fi 10807 ;; 10808 10809 cygwin* | mingw* | pw32* | cegcc*) 10810 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10811 # as there is no search path for DLLs. 10812 hardcode_libdir_flag_spec='-L$libdir' 10813 export_dynamic_flag_spec='$wl--export-all-symbols' 10814 allow_undefined_flag=unsupported 10815 always_export_symbols=no 10816 enable_shared_with_static_runtimes=yes 10817 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' 10818 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10819 10820 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10822 # If the export-symbols file already is a .def file, use it as 10823 # is; otherwise, prepend EXPORTS... 10824 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10825 cp $export_symbols $output_objdir/$soname.def; 10826 else 10827 echo EXPORTS > $output_objdir/$soname.def; 10828 cat $export_symbols >> $output_objdir/$soname.def; 10829 fi~ 10830 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10831 else 10832 ld_shlibs=no 10833 fi 10834 ;; 10835 10836 haiku*) 10837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10838 link_all_deplibs=yes 10839 ;; 10840 10841 os2*) 10842 hardcode_libdir_flag_spec='-L$libdir' 10843 hardcode_minus_L=yes 10844 allow_undefined_flag=unsupported 10845 shrext_cmds=.dll 10846 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10847 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10848 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10849 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10850 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10851 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10852 emximp -o $lib $output_objdir/$libname.def' 10853 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10854 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10855 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10856 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10857 prefix_cmds="$SED"~ 10858 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10859 prefix_cmds="$prefix_cmds -e 1d"; 10860 fi~ 10861 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10862 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10863 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10864 emximp -o $lib $output_objdir/$libname.def' 10865 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10866 enable_shared_with_static_runtimes=yes 10867 ;; 10868 10869 interix[3-9]*) 10870 hardcode_direct=no 10871 hardcode_shlibpath_var=no 10872 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10873 export_dynamic_flag_spec='$wl-E' 10874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10875 # Instead, shared libraries are loaded at an image base (0x10000000 by 10876 # default) and relocated if they conflict, which is a slow very memory 10877 # consuming and fragmenting process. To avoid this, we pick a random, 10878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10879 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10881 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' 10882 ;; 10883 10884 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10885 tmp_diet=no 10886 if test linux-dietlibc = "$host_os"; then 10887 case $cc_basename in 10888 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10889 esac 10890 fi 10891 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10892 && test no = "$tmp_diet" 10893 then 10894 tmp_addflag=' $pic_flag' 10895 tmp_sharedflag='-shared' 10896 case $cc_basename,$host_cpu in 10897 pgcc*) # Portland Group C compiler 10898 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' 10899 tmp_addflag=' $pic_flag' 10900 ;; 10901 pgf77* | pgf90* | pgf95* | pgfortran*) 10902 # Portland Group f77 and f90 compilers 10903 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' 10904 tmp_addflag=' $pic_flag -Mnomain' ;; 10905 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10906 tmp_addflag=' -i_dynamic' ;; 10907 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10908 tmp_addflag=' -i_dynamic -nofor_main' ;; 10909 ifc* | ifort*) # Intel Fortran compiler 10910 tmp_addflag=' -nofor_main' ;; 10911 lf95*) # Lahey Fortran 8.1 10912 whole_archive_flag_spec= 10913 tmp_sharedflag='--shared' ;; 10914 nagfor*) # NAGFOR 5.3 10915 tmp_sharedflag='-Wl,-shared' ;; 10916 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10917 tmp_sharedflag='-qmkshrobj' 10918 tmp_addflag= ;; 10919 nvcc*) # Cuda Compiler Driver 2.2 10920 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' 10921 compiler_needs_object=yes 10922 ;; 10923 esac 10924 case `$CC -V 2>&1 | sed 5q` in 10925 *Sun\ C*) # Sun C 5.9 10926 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' 10927 compiler_needs_object=yes 10928 tmp_sharedflag='-G' ;; 10929 *Sun\ F*) # Sun Fortran 8.3 10930 tmp_sharedflag='-G' ;; 10931 esac 10932 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10933 10934 if test yes = "$supports_anon_versioning"; then 10935 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10937 echo "local: *; };" >> $output_objdir/$libname.ver~ 10938 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10939 fi 10940 10941 case $cc_basename in 10942 tcc*) 10943 export_dynamic_flag_spec='-rdynamic' 10944 ;; 10945 xlf* | bgf* | bgxlf* | mpixlf*) 10946 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10947 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10948 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10949 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10950 if test yes = "$supports_anon_versioning"; then 10951 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10952 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10953 echo "local: *; };" >> $output_objdir/$libname.ver~ 10954 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10955 fi 10956 ;; 10957 esac 10958 else 10959 ld_shlibs=no 10960 fi 10961 ;; 10962 10963 netbsd*) 10964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10965 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10966 wlarc= 10967 else 10968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10969 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10970 fi 10971 ;; 10972 10973 solaris*) 10974 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10975 ld_shlibs=no 10976 cat <<_LT_EOF 1>&2 10977 10978*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10979*** create shared libraries on Solaris systems. Therefore, libtool 10980*** is disabling shared libraries support. We urge you to upgrade GNU 10981*** binutils to release 2.9.1 or newer. Another option is to modify 10982*** your PATH or compiler configuration so that the native linker is 10983*** used, and then restart. 10984 10985_LT_EOF 10986 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10987 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10988 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10989 else 10990 ld_shlibs=no 10991 fi 10992 ;; 10993 10994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10995 case `$LD -v 2>&1` in 10996 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10997 ld_shlibs=no 10998 cat <<_LT_EOF 1>&2 10999 11000*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11001*** reliably create shared libraries on SCO systems. Therefore, libtool 11002*** is disabling shared libraries support. We urge you to upgrade GNU 11003*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11004*** your PATH or compiler configuration so that the native linker is 11005*** used, and then restart. 11006 11007_LT_EOF 11008 ;; 11009 *) 11010 # For security reasons, it is highly recommended that you always 11011 # use absolute paths for naming shared libraries, and exclude the 11012 # DT_RUNPATH tag from executables and libraries. But doing so 11013 # requires that you compile everything twice, which is a pain. 11014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11015 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11018 else 11019 ld_shlibs=no 11020 fi 11021 ;; 11022 esac 11023 ;; 11024 11025 sunos4*) 11026 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11027 wlarc= 11028 hardcode_direct=yes 11029 hardcode_shlibpath_var=no 11030 ;; 11031 11032 *) 11033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11034 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11035 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11036 else 11037 ld_shlibs=no 11038 fi 11039 ;; 11040 esac 11041 11042 if test no = "$ld_shlibs"; then 11043 runpath_var= 11044 hardcode_libdir_flag_spec= 11045 export_dynamic_flag_spec= 11046 whole_archive_flag_spec= 11047 fi 11048 else 11049 # PORTME fill in a description of your system's linker (not GNU ld) 11050 case $host_os in 11051 aix3*) 11052 allow_undefined_flag=unsupported 11053 always_export_symbols=yes 11054 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' 11055 # Note: this linker hardcodes the directories in LIBPATH if there 11056 # are no directories specified by -L. 11057 hardcode_minus_L=yes 11058 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11059 # Neither direct hardcoding nor static linking is supported with a 11060 # broken collect2. 11061 hardcode_direct=unsupported 11062 fi 11063 ;; 11064 11065 aix[4-9]*) 11066 if test ia64 = "$host_cpu"; then 11067 # On IA64, the linker does run time linking by default, so we don't 11068 # have to do anything special. 11069 aix_use_runtimelinking=no 11070 exp_sym_flag='-Bexport' 11071 no_entry_flag= 11072 else 11073 # If we're using GNU nm, then we don't want the "-C" option. 11074 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11075 # Without the "-l" option, or with the "-B" option, AIX nm treats 11076 # weak defined symbols like other global defined symbols, whereas 11077 # GNU nm marks them as "W". 11078 # While the 'weak' keyword is ignored in the Export File, we need 11079 # it in the Import File for the 'aix-soname' feature, so we have 11080 # to replace the "-B" option with "-P" for AIX nm. 11081 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11082 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 11083 else 11084 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 11085 fi 11086 aix_use_runtimelinking=no 11087 11088 # Test if we are trying to use run time linking or normal 11089 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11090 # have runtime linking enabled, and use it for executables. 11091 # For shared libraries, we enable/disable runtime linking 11092 # depending on the kind of the shared library created - 11093 # when "with_aix_soname,aix_use_runtimelinking" is: 11094 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11095 # "aix,yes" lib.so shared, rtl:yes, for executables 11096 # lib.a static archive 11097 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11098 # lib.a(lib.so.V) shared, rtl:no, for executables 11099 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11100 # lib.a(lib.so.V) shared, rtl:no 11101 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11102 # lib.a static archive 11103 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11104 for ld_flag in $LDFLAGS; do 11105 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11106 aix_use_runtimelinking=yes 11107 break 11108 fi 11109 done 11110 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11111 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11112 # so we don't have lib.a shared libs to link our executables. 11113 # We have to force runtime linking in this case. 11114 aix_use_runtimelinking=yes 11115 LDFLAGS="$LDFLAGS -Wl,-brtl" 11116 fi 11117 ;; 11118 esac 11119 11120 exp_sym_flag='-bexport' 11121 no_entry_flag='-bnoentry' 11122 fi 11123 11124 # When large executables or shared objects are built, AIX ld can 11125 # have problems creating the table of contents. If linking a library 11126 # or program results in "error TOC overflow" add -mminimal-toc to 11127 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11128 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11129 11130 archive_cmds='' 11131 hardcode_direct=yes 11132 hardcode_direct_absolute=yes 11133 hardcode_libdir_separator=':' 11134 link_all_deplibs=yes 11135 file_list_spec='$wl-f,' 11136 case $with_aix_soname,$aix_use_runtimelinking in 11137 aix,*) ;; # traditional, no import file 11138 svr4,* | *,yes) # use import file 11139 # The Import File defines what to hardcode. 11140 hardcode_direct=no 11141 hardcode_direct_absolute=no 11142 ;; 11143 esac 11144 11145 if test yes = "$GCC"; then 11146 case $host_os in aix4.[012]|aix4.[012].*) 11147 # We only want to do this on AIX 4.2 and lower, the check 11148 # below for broken collect2 doesn't work under 4.3+ 11149 collect2name=`$CC -print-prog-name=collect2` 11150 if test -f "$collect2name" && 11151 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11152 then 11153 # We have reworked collect2 11154 : 11155 else 11156 # We have old collect2 11157 hardcode_direct=unsupported 11158 # It fails to find uninstalled libraries when the uninstalled 11159 # path is not listed in the libpath. Setting hardcode_minus_L 11160 # to unsupported forces relinking 11161 hardcode_minus_L=yes 11162 hardcode_libdir_flag_spec='-L$libdir' 11163 hardcode_libdir_separator= 11164 fi 11165 ;; 11166 esac 11167 shared_flag='-shared' 11168 if test yes = "$aix_use_runtimelinking"; then 11169 shared_flag="$shared_flag "'$wl-G' 11170 fi 11171 # Need to ensure runtime linking is disabled for the traditional 11172 # shared library, or the linker may eventually find shared libraries 11173 # /with/ Import File - we do not want to mix them. 11174 shared_flag_aix='-shared' 11175 shared_flag_svr4='-shared $wl-G' 11176 else 11177 # not using gcc 11178 if test ia64 = "$host_cpu"; then 11179 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11180 # chokes on -Wl,-G. The following line is correct: 11181 shared_flag='-G' 11182 else 11183 if test yes = "$aix_use_runtimelinking"; then 11184 shared_flag='$wl-G' 11185 else 11186 shared_flag='$wl-bM:SRE' 11187 fi 11188 shared_flag_aix='$wl-bM:SRE' 11189 shared_flag_svr4='$wl-G' 11190 fi 11191 fi 11192 11193 export_dynamic_flag_spec='$wl-bexpall' 11194 # It seems that -bexpall does not export symbols beginning with 11195 # underscore (_), so it is better to generate a list of symbols to export. 11196 always_export_symbols=yes 11197 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11198 # Warning - without using the other runtime loading flags (-brtl), 11199 # -berok will link without error, but may produce a broken library. 11200 allow_undefined_flag='-berok' 11201 # Determine the default libpath from the value encoded in an 11202 # empty executable. 11203 if test set = "${lt_cv_aix_libpath+set}"; then 11204 aix_libpath=$lt_cv_aix_libpath 11205else 11206 if ${lt_cv_aix_libpath_+:} false; then : 11207 $as_echo_n "(cached) " >&6 11208else 11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11210/* end confdefs.h. */ 11211 11212int 11213main () 11214{ 11215 11216 ; 11217 return 0; 11218} 11219_ACEOF 11220if ac_fn_c_try_link "$LINENO"; then : 11221 11222 lt_aix_libpath_sed=' 11223 /Import File Strings/,/^$/ { 11224 /^0/ { 11225 s/^0 *\([^ ]*\) *$/\1/ 11226 p 11227 } 11228 }' 11229 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11230 # Check for a 64-bit object if we didn't find anything. 11231 if test -z "$lt_cv_aix_libpath_"; then 11232 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11233 fi 11234fi 11235rm -f core conftest.err conftest.$ac_objext \ 11236 conftest$ac_exeext conftest.$ac_ext 11237 if test -z "$lt_cv_aix_libpath_"; then 11238 lt_cv_aix_libpath_=/usr/lib:/lib 11239 fi 11240 11241fi 11242 11243 aix_libpath=$lt_cv_aix_libpath_ 11244fi 11245 11246 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11247 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11248 else 11249 if test ia64 = "$host_cpu"; then 11250 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11251 allow_undefined_flag="-z nodefs" 11252 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" 11253 else 11254 # Determine the default libpath from the value encoded in an 11255 # empty executable. 11256 if test set = "${lt_cv_aix_libpath+set}"; then 11257 aix_libpath=$lt_cv_aix_libpath 11258else 11259 if ${lt_cv_aix_libpath_+:} false; then : 11260 $as_echo_n "(cached) " >&6 11261else 11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11263/* end confdefs.h. */ 11264 11265int 11266main () 11267{ 11268 11269 ; 11270 return 0; 11271} 11272_ACEOF 11273if ac_fn_c_try_link "$LINENO"; then : 11274 11275 lt_aix_libpath_sed=' 11276 /Import File Strings/,/^$/ { 11277 /^0/ { 11278 s/^0 *\([^ ]*\) *$/\1/ 11279 p 11280 } 11281 }' 11282 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11283 # Check for a 64-bit object if we didn't find anything. 11284 if test -z "$lt_cv_aix_libpath_"; then 11285 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11286 fi 11287fi 11288rm -f core conftest.err conftest.$ac_objext \ 11289 conftest$ac_exeext conftest.$ac_ext 11290 if test -z "$lt_cv_aix_libpath_"; then 11291 lt_cv_aix_libpath_=/usr/lib:/lib 11292 fi 11293 11294fi 11295 11296 aix_libpath=$lt_cv_aix_libpath_ 11297fi 11298 11299 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11300 # Warning - without using the other run time loading flags, 11301 # -berok will link without error, but may produce a broken library. 11302 no_undefined_flag=' $wl-bernotok' 11303 allow_undefined_flag=' $wl-berok' 11304 if test yes = "$with_gnu_ld"; then 11305 # We only use this code for GNU lds that support --whole-archive. 11306 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11307 else 11308 # Exported symbols can be pulled into shared objects from archives 11309 whole_archive_flag_spec='$convenience' 11310 fi 11311 archive_cmds_need_lc=yes 11312 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11313 # -brtl affects multiple linker settings, -berok does not and is overridden later 11314 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11315 if test svr4 != "$with_aix_soname"; then 11316 # This is similar to how AIX traditionally builds its shared libraries. 11317 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11318 fi 11319 if test aix != "$with_aix_soname"; then 11320 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11321 else 11322 # used by -dlpreopen to get the symbols 11323 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11324 fi 11325 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11326 fi 11327 fi 11328 ;; 11329 11330 amigaos*) 11331 case $host_cpu in 11332 powerpc) 11333 # see comment about AmigaOS4 .so support 11334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11335 archive_expsym_cmds='' 11336 ;; 11337 m68k) 11338 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)' 11339 hardcode_libdir_flag_spec='-L$libdir' 11340 hardcode_minus_L=yes 11341 ;; 11342 esac 11343 ;; 11344 11345 bsdi[45]*) 11346 export_dynamic_flag_spec=-rdynamic 11347 ;; 11348 11349 cygwin* | mingw* | pw32* | cegcc*) 11350 # When not using gcc, we currently assume that we are using 11351 # Microsoft Visual C++. 11352 # hardcode_libdir_flag_spec is actually meaningless, as there is 11353 # no search path for DLLs. 11354 case $cc_basename in 11355 cl*) 11356 # Native MSVC 11357 hardcode_libdir_flag_spec=' ' 11358 allow_undefined_flag=unsupported 11359 always_export_symbols=yes 11360 file_list_spec='@' 11361 # Tell ltmain to make .lib files, not .a files. 11362 libext=lib 11363 # Tell ltmain to make .dll files, not .so files. 11364 shrext_cmds=.dll 11365 # FIXME: Setting linknames here is a bad hack. 11366 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11367 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11368 cp "$export_symbols" "$output_objdir/$soname.def"; 11369 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11370 else 11371 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11372 fi~ 11373 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11374 linknames=' 11375 # The linker will not automatically build a static lib if we build a DLL. 11376 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11377 enable_shared_with_static_runtimes=yes 11378 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11379 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11380 # Don't use ranlib 11381 old_postinstall_cmds='chmod 644 $oldlib' 11382 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11383 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11384 case $lt_outputfile in 11385 *.exe|*.EXE) ;; 11386 *) 11387 lt_outputfile=$lt_outputfile.exe 11388 lt_tool_outputfile=$lt_tool_outputfile.exe 11389 ;; 11390 esac~ 11391 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11392 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11393 $RM "$lt_outputfile.manifest"; 11394 fi' 11395 ;; 11396 *) 11397 # Assume MSVC wrapper 11398 hardcode_libdir_flag_spec=' ' 11399 allow_undefined_flag=unsupported 11400 # Tell ltmain to make .lib files, not .a files. 11401 libext=lib 11402 # Tell ltmain to make .dll files, not .so files. 11403 shrext_cmds=.dll 11404 # FIXME: Setting linknames here is a bad hack. 11405 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11406 # The linker will automatically build a .lib file if we build a DLL. 11407 old_archive_from_new_cmds='true' 11408 # FIXME: Should let the user specify the lib program. 11409 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11410 enable_shared_with_static_runtimes=yes 11411 ;; 11412 esac 11413 ;; 11414 11415 darwin* | rhapsody*) 11416 11417 11418 archive_cmds_need_lc=no 11419 hardcode_direct=no 11420 hardcode_automatic=yes 11421 hardcode_shlibpath_var=unsupported 11422 if test yes = "$lt_cv_ld_force_load"; then 11423 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\"`' 11424 11425 else 11426 whole_archive_flag_spec='' 11427 fi 11428 link_all_deplibs=yes 11429 allow_undefined_flag=$_lt_dar_allow_undefined 11430 case $cc_basename in 11431 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11432 *) _lt_dar_can_shared=$GCC ;; 11433 esac 11434 if test yes = "$_lt_dar_can_shared"; then 11435 output_verbose_link_cmd=func_echo_all 11436 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11437 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11438 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" 11439 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" 11440 11441 else 11442 ld_shlibs=no 11443 fi 11444 11445 ;; 11446 11447 dgux*) 11448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11449 hardcode_libdir_flag_spec='-L$libdir' 11450 hardcode_shlibpath_var=no 11451 ;; 11452 11453 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11454 # support. Future versions do this automatically, but an explicit c++rt0.o 11455 # does not break anything, and helps significantly (at the cost of a little 11456 # extra space). 11457 freebsd2.2*) 11458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11459 hardcode_libdir_flag_spec='-R$libdir' 11460 hardcode_direct=yes 11461 hardcode_shlibpath_var=no 11462 ;; 11463 11464 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11465 freebsd2.*) 11466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11467 hardcode_direct=yes 11468 hardcode_minus_L=yes 11469 hardcode_shlibpath_var=no 11470 ;; 11471 11472 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11473 freebsd* | dragonfly*) 11474 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11475 hardcode_libdir_flag_spec='-R$libdir' 11476 hardcode_direct=yes 11477 hardcode_shlibpath_var=no 11478 ;; 11479 11480 hpux9*) 11481 if test yes = "$GCC"; then 11482 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11483 else 11484 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11485 fi 11486 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11487 hardcode_libdir_separator=: 11488 hardcode_direct=yes 11489 11490 # hardcode_minus_L: Not really in the search PATH, 11491 # but as the default location of the library. 11492 hardcode_minus_L=yes 11493 export_dynamic_flag_spec='$wl-E' 11494 ;; 11495 11496 hpux10*) 11497 if test yes,no = "$GCC,$with_gnu_ld"; then 11498 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11499 else 11500 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11501 fi 11502 if test no = "$with_gnu_ld"; then 11503 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11504 hardcode_libdir_separator=: 11505 hardcode_direct=yes 11506 hardcode_direct_absolute=yes 11507 export_dynamic_flag_spec='$wl-E' 11508 # hardcode_minus_L: Not really in the search PATH, 11509 # but as the default location of the library. 11510 hardcode_minus_L=yes 11511 fi 11512 ;; 11513 11514 hpux11*) 11515 if test yes,no = "$GCC,$with_gnu_ld"; then 11516 case $host_cpu in 11517 hppa*64*) 11518 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11519 ;; 11520 ia64*) 11521 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11522 ;; 11523 *) 11524 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11525 ;; 11526 esac 11527 else 11528 case $host_cpu in 11529 hppa*64*) 11530 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11531 ;; 11532 ia64*) 11533 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11534 ;; 11535 *) 11536 11537 # Older versions of the 11.00 compiler do not understand -b yet 11538 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11540$as_echo_n "checking if $CC understands -b... " >&6; } 11541if ${lt_cv_prog_compiler__b+:} false; then : 11542 $as_echo_n "(cached) " >&6 11543else 11544 lt_cv_prog_compiler__b=no 11545 save_LDFLAGS=$LDFLAGS 11546 LDFLAGS="$LDFLAGS -b" 11547 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11548 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11549 # The linker can only warn and ignore the option if not recognized 11550 # So say no if there are warnings 11551 if test -s conftest.err; then 11552 # Append any errors to the config.log. 11553 cat conftest.err 1>&5 11554 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11556 if diff conftest.exp conftest.er2 >/dev/null; then 11557 lt_cv_prog_compiler__b=yes 11558 fi 11559 else 11560 lt_cv_prog_compiler__b=yes 11561 fi 11562 fi 11563 $RM -r conftest* 11564 LDFLAGS=$save_LDFLAGS 11565 11566fi 11567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11568$as_echo "$lt_cv_prog_compiler__b" >&6; } 11569 11570if test yes = "$lt_cv_prog_compiler__b"; then 11571 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11572else 11573 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11574fi 11575 11576 ;; 11577 esac 11578 fi 11579 if test no = "$with_gnu_ld"; then 11580 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11581 hardcode_libdir_separator=: 11582 11583 case $host_cpu in 11584 hppa*64*|ia64*) 11585 hardcode_direct=no 11586 hardcode_shlibpath_var=no 11587 ;; 11588 *) 11589 hardcode_direct=yes 11590 hardcode_direct_absolute=yes 11591 export_dynamic_flag_spec='$wl-E' 11592 11593 # hardcode_minus_L: Not really in the search PATH, 11594 # but as the default location of the library. 11595 hardcode_minus_L=yes 11596 ;; 11597 esac 11598 fi 11599 ;; 11600 11601 irix5* | irix6* | nonstopux*) 11602 if test yes = "$GCC"; then 11603 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' 11604 # Try to use the -exported_symbol ld option, if it does not 11605 # work, assume that -exports_file does not work either and 11606 # implicitly export all symbols. 11607 # This should be the same for all languages, so no per-tag cache variable. 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11609$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11610if ${lt_cv_irix_exported_symbol+:} false; then : 11611 $as_echo_n "(cached) " >&6 11612else 11613 save_LDFLAGS=$LDFLAGS 11614 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11616/* end confdefs.h. */ 11617int foo (void) { return 0; } 11618_ACEOF 11619if ac_fn_c_try_link "$LINENO"; then : 11620 lt_cv_irix_exported_symbol=yes 11621else 11622 lt_cv_irix_exported_symbol=no 11623fi 11624rm -f core conftest.err conftest.$ac_objext \ 11625 conftest$ac_exeext conftest.$ac_ext 11626 LDFLAGS=$save_LDFLAGS 11627fi 11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11629$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11630 if test yes = "$lt_cv_irix_exported_symbol"; then 11631 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' 11632 fi 11633 else 11634 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' 11635 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' 11636 fi 11637 archive_cmds_need_lc='no' 11638 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11639 hardcode_libdir_separator=: 11640 inherit_rpath=yes 11641 link_all_deplibs=yes 11642 ;; 11643 11644 linux*) 11645 case $cc_basename in 11646 tcc*) 11647 # Fabrice Bellard et al's Tiny C Compiler 11648 ld_shlibs=yes 11649 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11650 ;; 11651 esac 11652 ;; 11653 11654 netbsd*) 11655 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11657 else 11658 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11659 fi 11660 hardcode_libdir_flag_spec='-R$libdir' 11661 hardcode_direct=yes 11662 hardcode_shlibpath_var=no 11663 ;; 11664 11665 newsos6) 11666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11667 hardcode_direct=yes 11668 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11669 hardcode_libdir_separator=: 11670 hardcode_shlibpath_var=no 11671 ;; 11672 11673 *nto* | *qnx*) 11674 ;; 11675 11676 openbsd* | bitrig*) 11677 if test -f /usr/libexec/ld.so; then 11678 hardcode_direct=yes 11679 hardcode_shlibpath_var=no 11680 hardcode_direct_absolute=yes 11681 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11682 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11683 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11684 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11685 export_dynamic_flag_spec='$wl-E' 11686 else 11687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11688 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11689 fi 11690 else 11691 ld_shlibs=no 11692 fi 11693 ;; 11694 11695 os2*) 11696 hardcode_libdir_flag_spec='-L$libdir' 11697 hardcode_minus_L=yes 11698 allow_undefined_flag=unsupported 11699 shrext_cmds=.dll 11700 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11701 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11702 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11703 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11704 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11705 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11706 emximp -o $lib $output_objdir/$libname.def' 11707 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11708 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11709 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11710 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11711 prefix_cmds="$SED"~ 11712 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11713 prefix_cmds="$prefix_cmds -e 1d"; 11714 fi~ 11715 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11716 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11717 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11718 emximp -o $lib $output_objdir/$libname.def' 11719 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11720 enable_shared_with_static_runtimes=yes 11721 ;; 11722 11723 osf3*) 11724 if test yes = "$GCC"; then 11725 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11726 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' 11727 else 11728 allow_undefined_flag=' -expect_unresolved \*' 11729 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' 11730 fi 11731 archive_cmds_need_lc='no' 11732 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11733 hardcode_libdir_separator=: 11734 ;; 11735 11736 osf4* | osf5*) # as osf3* with the addition of -msym flag 11737 if test yes = "$GCC"; then 11738 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11739 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' 11740 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11741 else 11742 allow_undefined_flag=' -expect_unresolved \*' 11743 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' 11744 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~ 11745 $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' 11746 11747 # Both c and cxx compiler support -rpath directly 11748 hardcode_libdir_flag_spec='-rpath $libdir' 11749 fi 11750 archive_cmds_need_lc='no' 11751 hardcode_libdir_separator=: 11752 ;; 11753 11754 solaris*) 11755 no_undefined_flag=' -z defs' 11756 if test yes = "$GCC"; then 11757 wlarc='$wl' 11758 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11759 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11760 $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' 11761 else 11762 case `$CC -V 2>&1` in 11763 *"Compilers 5.0"*) 11764 wlarc='' 11765 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11766 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11767 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11768 ;; 11769 *) 11770 wlarc='$wl' 11771 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11772 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11773 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11774 ;; 11775 esac 11776 fi 11777 hardcode_libdir_flag_spec='-R$libdir' 11778 hardcode_shlibpath_var=no 11779 case $host_os in 11780 solaris2.[0-5] | solaris2.[0-5].*) ;; 11781 *) 11782 # The compiler driver will combine and reorder linker options, 11783 # but understands '-z linker_flag'. GCC discards it without '$wl', 11784 # but is careful enough not to reorder. 11785 # Supported since Solaris 2.6 (maybe 2.5.1?) 11786 if test yes = "$GCC"; then 11787 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11788 else 11789 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11790 fi 11791 ;; 11792 esac 11793 link_all_deplibs=yes 11794 ;; 11795 11796 sunos4*) 11797 if test sequent = "$host_vendor"; then 11798 # Use $CC to link under sequent, because it throws in some extra .o 11799 # files that make .init and .fini sections work. 11800 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11801 else 11802 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11803 fi 11804 hardcode_libdir_flag_spec='-L$libdir' 11805 hardcode_direct=yes 11806 hardcode_minus_L=yes 11807 hardcode_shlibpath_var=no 11808 ;; 11809 11810 sysv4) 11811 case $host_vendor in 11812 sni) 11813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11814 hardcode_direct=yes # is this really true??? 11815 ;; 11816 siemens) 11817 ## LD is ld it makes a PLAMLIB 11818 ## CC just makes a GrossModule. 11819 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11820 reload_cmds='$CC -r -o $output$reload_objs' 11821 hardcode_direct=no 11822 ;; 11823 motorola) 11824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11825 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11826 ;; 11827 esac 11828 runpath_var='LD_RUN_PATH' 11829 hardcode_shlibpath_var=no 11830 ;; 11831 11832 sysv4.3*) 11833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11834 hardcode_shlibpath_var=no 11835 export_dynamic_flag_spec='-Bexport' 11836 ;; 11837 11838 sysv4*MP*) 11839 if test -d /usr/nec; then 11840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11841 hardcode_shlibpath_var=no 11842 runpath_var=LD_RUN_PATH 11843 hardcode_runpath_var=yes 11844 ld_shlibs=yes 11845 fi 11846 ;; 11847 11848 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11849 no_undefined_flag='$wl-z,text' 11850 archive_cmds_need_lc=no 11851 hardcode_shlibpath_var=no 11852 runpath_var='LD_RUN_PATH' 11853 11854 if test yes = "$GCC"; then 11855 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11856 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11857 else 11858 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11859 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11860 fi 11861 ;; 11862 11863 sysv5* | sco3.2v5* | sco5v6*) 11864 # Note: We CANNOT use -z defs as we might desire, because we do not 11865 # link with -lc, and that would cause any symbols used from libc to 11866 # always be unresolved, which means just about no library would 11867 # ever link correctly. If we're not using GNU ld we use -z text 11868 # though, which does catch some bad symbols but isn't as heavy-handed 11869 # as -z defs. 11870 no_undefined_flag='$wl-z,text' 11871 allow_undefined_flag='$wl-z,nodefs' 11872 archive_cmds_need_lc=no 11873 hardcode_shlibpath_var=no 11874 hardcode_libdir_flag_spec='$wl-R,$libdir' 11875 hardcode_libdir_separator=':' 11876 link_all_deplibs=yes 11877 export_dynamic_flag_spec='$wl-Bexport' 11878 runpath_var='LD_RUN_PATH' 11879 11880 if test yes = "$GCC"; then 11881 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11882 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11883 else 11884 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11885 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11886 fi 11887 ;; 11888 11889 uts4*) 11890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11891 hardcode_libdir_flag_spec='-L$libdir' 11892 hardcode_shlibpath_var=no 11893 ;; 11894 11895 *) 11896 ld_shlibs=no 11897 ;; 11898 esac 11899 11900 if test sni = "$host_vendor"; then 11901 case $host in 11902 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11903 export_dynamic_flag_spec='$wl-Blargedynsym' 11904 ;; 11905 esac 11906 fi 11907 fi 11908 11909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11910$as_echo "$ld_shlibs" >&6; } 11911test no = "$ld_shlibs" && can_build_shared=no 11912 11913with_gnu_ld=$with_gnu_ld 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929# 11930# Do we need to explicitly link libc? 11931# 11932case "x$archive_cmds_need_lc" in 11933x|xyes) 11934 # Assume -lc should be added 11935 archive_cmds_need_lc=yes 11936 11937 if test yes,yes = "$GCC,$enable_shared"; then 11938 case $archive_cmds in 11939 *'~'*) 11940 # FIXME: we may have to deal with multi-command sequences. 11941 ;; 11942 '$CC '*) 11943 # Test whether the compiler implicitly links with -lc since on some 11944 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11945 # to ld, don't add -lc before -lgcc. 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11947$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11948if ${lt_cv_archive_cmds_need_lc+:} false; then : 11949 $as_echo_n "(cached) " >&6 11950else 11951 $RM conftest* 11952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11953 11954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11955 (eval $ac_compile) 2>&5 11956 ac_status=$? 11957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11958 test $ac_status = 0; } 2>conftest.err; then 11959 soname=conftest 11960 lib=conftest 11961 libobjs=conftest.$ac_objext 11962 deplibs= 11963 wl=$lt_prog_compiler_wl 11964 pic_flag=$lt_prog_compiler_pic 11965 compiler_flags=-v 11966 linker_flags=-v 11967 verstring= 11968 output_objdir=. 11969 libname=conftest 11970 lt_save_allow_undefined_flag=$allow_undefined_flag 11971 allow_undefined_flag= 11972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11973 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11974 ac_status=$? 11975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11976 test $ac_status = 0; } 11977 then 11978 lt_cv_archive_cmds_need_lc=no 11979 else 11980 lt_cv_archive_cmds_need_lc=yes 11981 fi 11982 allow_undefined_flag=$lt_save_allow_undefined_flag 11983 else 11984 cat conftest.err 1>&5 11985 fi 11986 $RM conftest* 11987 11988fi 11989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11990$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11991 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11992 ;; 11993 esac 11994 fi 11995 ;; 11996esac 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12150$as_echo_n "checking dynamic linker characteristics... " >&6; } 12151 12152if test yes = "$GCC"; then 12153 case $host_os in 12154 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12155 *) lt_awk_arg='/^libraries:/' ;; 12156 esac 12157 case $host_os in 12158 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12159 *) lt_sed_strip_eq='s|=/|/|g' ;; 12160 esac 12161 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12162 case $lt_search_path_spec in 12163 *\;*) 12164 # if the path contains ";" then we assume it to be the separator 12165 # otherwise default to the standard path separator (i.e. ":") - it is 12166 # assumed that no part of a normal pathname contains ";" but that should 12167 # okay in the real world where ";" in dirpaths is itself problematic. 12168 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12169 ;; 12170 *) 12171 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12172 ;; 12173 esac 12174 # Ok, now we have the path, separated by spaces, we can step through it 12175 # and add multilib dir if necessary... 12176 lt_tmp_lt_search_path_spec= 12177 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12178 # ...but if some path component already ends with the multilib dir we assume 12179 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12180 case "$lt_multi_os_dir; $lt_search_path_spec " in 12181 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12182 lt_multi_os_dir= 12183 ;; 12184 esac 12185 for lt_sys_path in $lt_search_path_spec; do 12186 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12187 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12188 elif test -n "$lt_multi_os_dir"; then 12189 test -d "$lt_sys_path" && \ 12190 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12191 fi 12192 done 12193 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12194BEGIN {RS = " "; FS = "/|\n";} { 12195 lt_foo = ""; 12196 lt_count = 0; 12197 for (lt_i = NF; lt_i > 0; lt_i--) { 12198 if ($lt_i != "" && $lt_i != ".") { 12199 if ($lt_i == "..") { 12200 lt_count++; 12201 } else { 12202 if (lt_count == 0) { 12203 lt_foo = "/" $lt_i lt_foo; 12204 } else { 12205 lt_count--; 12206 } 12207 } 12208 } 12209 } 12210 if (lt_foo != "") { lt_freq[lt_foo]++; } 12211 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12212}'` 12213 # AWK program above erroneously prepends '/' to C:/dos/paths 12214 # for these hosts. 12215 case $host_os in 12216 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12217 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12218 esac 12219 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12220else 12221 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12222fi 12223library_names_spec= 12224libname_spec='lib$name' 12225soname_spec= 12226shrext_cmds=.so 12227postinstall_cmds= 12228postuninstall_cmds= 12229finish_cmds= 12230finish_eval= 12231shlibpath_var= 12232shlibpath_overrides_runpath=unknown 12233version_type=none 12234dynamic_linker="$host_os ld.so" 12235sys_lib_dlsearch_path_spec="/lib /usr/lib" 12236need_lib_prefix=unknown 12237hardcode_into_libs=no 12238 12239# when you set need_version to no, make sure it does not cause -set_version 12240# flags to be left without arguments 12241need_version=unknown 12242 12243 12244 12245case $host_os in 12246aix3*) 12247 version_type=linux # correct to gnu/linux during the next big refactor 12248 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12249 shlibpath_var=LIBPATH 12250 12251 # AIX 3 has no versioning support, so we append a major version to the name. 12252 soname_spec='$libname$release$shared_ext$major' 12253 ;; 12254 12255aix[4-9]*) 12256 version_type=linux # correct to gnu/linux during the next big refactor 12257 need_lib_prefix=no 12258 need_version=no 12259 hardcode_into_libs=yes 12260 if test ia64 = "$host_cpu"; then 12261 # AIX 5 supports IA64 12262 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12263 shlibpath_var=LD_LIBRARY_PATH 12264 else 12265 # With GCC up to 2.95.x, collect2 would create an import file 12266 # for dependence libraries. The import file would start with 12267 # the line '#! .'. This would cause the generated library to 12268 # depend on '.', always an invalid library. This was fixed in 12269 # development snapshots of GCC prior to 3.0. 12270 case $host_os in 12271 aix4 | aix4.[01] | aix4.[01].*) 12272 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12273 echo ' yes ' 12274 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12275 : 12276 else 12277 can_build_shared=no 12278 fi 12279 ;; 12280 esac 12281 # Using Import Files as archive members, it is possible to support 12282 # filename-based versioning of shared library archives on AIX. While 12283 # this would work for both with and without runtime linking, it will 12284 # prevent static linking of such archives. So we do filename-based 12285 # shared library versioning with .so extension only, which is used 12286 # when both runtime linking and shared linking is enabled. 12287 # Unfortunately, runtime linking may impact performance, so we do 12288 # not want this to be the default eventually. Also, we use the 12289 # versioned .so libs for executables only if there is the -brtl 12290 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12291 # To allow for filename-based versioning support, we need to create 12292 # libNAME.so.V as an archive file, containing: 12293 # *) an Import File, referring to the versioned filename of the 12294 # archive as well as the shared archive member, telling the 12295 # bitwidth (32 or 64) of that shared object, and providing the 12296 # list of exported symbols of that shared object, eventually 12297 # decorated with the 'weak' keyword 12298 # *) the shared object with the F_LOADONLY flag set, to really avoid 12299 # it being seen by the linker. 12300 # At run time we better use the real file rather than another symlink, 12301 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12302 12303 case $with_aix_soname,$aix_use_runtimelinking in 12304 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12305 # soname into executable. Probably we can add versioning support to 12306 # collect2, so additional links can be useful in future. 12307 aix,yes) # traditional libtool 12308 dynamic_linker='AIX unversionable lib.so' 12309 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12310 # instead of lib<name>.a to let people know that these are not 12311 # typical AIX shared libraries. 12312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12313 ;; 12314 aix,no) # traditional AIX only 12315 dynamic_linker='AIX lib.a(lib.so.V)' 12316 # We preserve .a as extension for shared libraries through AIX4.2 12317 # and later when we are not doing run time linking. 12318 library_names_spec='$libname$release.a $libname.a' 12319 soname_spec='$libname$release$shared_ext$major' 12320 ;; 12321 svr4,*) # full svr4 only 12322 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12323 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12324 # We do not specify a path in Import Files, so LIBPATH fires. 12325 shlibpath_overrides_runpath=yes 12326 ;; 12327 *,yes) # both, prefer svr4 12328 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12329 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12330 # unpreferred sharedlib libNAME.a needs extra handling 12331 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12332 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12333 # We do not specify a path in Import Files, so LIBPATH fires. 12334 shlibpath_overrides_runpath=yes 12335 ;; 12336 *,no) # both, prefer aix 12337 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12338 library_names_spec='$libname$release.a $libname.a' 12339 soname_spec='$libname$release$shared_ext$major' 12340 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12341 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12342 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12343 ;; 12344 esac 12345 shlibpath_var=LIBPATH 12346 fi 12347 ;; 12348 12349amigaos*) 12350 case $host_cpu in 12351 powerpc) 12352 # Since July 2007 AmigaOS4 officially supports .so libraries. 12353 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12355 ;; 12356 m68k) 12357 library_names_spec='$libname.ixlibrary $libname.a' 12358 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12359 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12360 ;; 12361 esac 12362 ;; 12363 12364beos*) 12365 library_names_spec='$libname$shared_ext' 12366 dynamic_linker="$host_os ld.so" 12367 shlibpath_var=LIBRARY_PATH 12368 ;; 12369 12370bsdi[45]*) 12371 version_type=linux # correct to gnu/linux during the next big refactor 12372 need_version=no 12373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12374 soname_spec='$libname$release$shared_ext$major' 12375 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12376 shlibpath_var=LD_LIBRARY_PATH 12377 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12378 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12379 # the default ld.so.conf also contains /usr/contrib/lib and 12380 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12381 # libtool to hard-code these into programs 12382 ;; 12383 12384cygwin* | mingw* | pw32* | cegcc*) 12385 version_type=windows 12386 shrext_cmds=.dll 12387 need_version=no 12388 need_lib_prefix=no 12389 12390 case $GCC,$cc_basename in 12391 yes,*) 12392 # gcc 12393 library_names_spec='$libname.dll.a' 12394 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12395 postinstall_cmds='base_file=`basename \$file`~ 12396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12397 dldir=$destdir/`dirname \$dlpath`~ 12398 test -d \$dldir || mkdir -p \$dldir~ 12399 $install_prog $dir/$dlname \$dldir/$dlname~ 12400 chmod a+x \$dldir/$dlname~ 12401 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12402 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12403 fi' 12404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12405 dlpath=$dir/\$dldll~ 12406 $RM \$dlpath' 12407 shlibpath_overrides_runpath=yes 12408 12409 case $host_os in 12410 cygwin*) 12411 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12412 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12413 12414 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12415 ;; 12416 mingw* | cegcc*) 12417 # MinGW DLLs use traditional 'lib' prefix 12418 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12419 ;; 12420 pw32*) 12421 # pw32 DLLs use 'pw' prefix rather than 'lib' 12422 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12423 ;; 12424 esac 12425 dynamic_linker='Win32 ld.exe' 12426 ;; 12427 12428 *,cl*) 12429 # Native MSVC 12430 libname_spec='$name' 12431 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12432 library_names_spec='$libname.dll.lib' 12433 12434 case $build_os in 12435 mingw*) 12436 sys_lib_search_path_spec= 12437 lt_save_ifs=$IFS 12438 IFS=';' 12439 for lt_path in $LIB 12440 do 12441 IFS=$lt_save_ifs 12442 # Let DOS variable expansion print the short 8.3 style file name. 12443 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12444 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12445 done 12446 IFS=$lt_save_ifs 12447 # Convert to MSYS style. 12448 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12449 ;; 12450 cygwin*) 12451 # Convert to unix form, then to dos form, then back to unix form 12452 # but this time dos style (no spaces!) so that the unix form looks 12453 # like /cygdrive/c/PROGRA~1:/cygdr... 12454 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12455 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12456 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12457 ;; 12458 *) 12459 sys_lib_search_path_spec=$LIB 12460 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12461 # It is most probably a Windows format PATH. 12462 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12463 else 12464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12465 fi 12466 # FIXME: find the short name or the path components, as spaces are 12467 # common. (e.g. "Program Files" -> "PROGRA~1") 12468 ;; 12469 esac 12470 12471 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12472 postinstall_cmds='base_file=`basename \$file`~ 12473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12474 dldir=$destdir/`dirname \$dlpath`~ 12475 test -d \$dldir || mkdir -p \$dldir~ 12476 $install_prog $dir/$dlname \$dldir/$dlname' 12477 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12478 dlpath=$dir/\$dldll~ 12479 $RM \$dlpath' 12480 shlibpath_overrides_runpath=yes 12481 dynamic_linker='Win32 link.exe' 12482 ;; 12483 12484 *) 12485 # Assume MSVC wrapper 12486 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12487 dynamic_linker='Win32 ld.exe' 12488 ;; 12489 esac 12490 # FIXME: first we should search . and the directory the executable is in 12491 shlibpath_var=PATH 12492 ;; 12493 12494darwin* | rhapsody*) 12495 dynamic_linker="$host_os dyld" 12496 version_type=darwin 12497 need_lib_prefix=no 12498 need_version=no 12499 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12500 soname_spec='$libname$release$major$shared_ext' 12501 shlibpath_overrides_runpath=yes 12502 shlibpath_var=DYLD_LIBRARY_PATH 12503 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12504 12505 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12506 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12507 ;; 12508 12509dgux*) 12510 version_type=linux # correct to gnu/linux during the next big refactor 12511 need_lib_prefix=no 12512 need_version=no 12513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12514 soname_spec='$libname$release$shared_ext$major' 12515 shlibpath_var=LD_LIBRARY_PATH 12516 ;; 12517 12518freebsd* | dragonfly*) 12519 # DragonFly does not have aout. When/if they implement a new 12520 # versioning mechanism, adjust this. 12521 if test -x /usr/bin/objformat; then 12522 objformat=`/usr/bin/objformat` 12523 else 12524 case $host_os in 12525 freebsd[23].*) objformat=aout ;; 12526 *) objformat=elf ;; 12527 esac 12528 fi 12529 version_type=freebsd-$objformat 12530 case $version_type in 12531 freebsd-elf*) 12532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12533 soname_spec='$libname$release$shared_ext$major' 12534 need_version=no 12535 need_lib_prefix=no 12536 ;; 12537 freebsd-*) 12538 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12539 need_version=yes 12540 ;; 12541 esac 12542 shlibpath_var=LD_LIBRARY_PATH 12543 case $host_os in 12544 freebsd2.*) 12545 shlibpath_overrides_runpath=yes 12546 ;; 12547 freebsd3.[01]* | freebsdelf3.[01]*) 12548 shlibpath_overrides_runpath=yes 12549 hardcode_into_libs=yes 12550 ;; 12551 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12552 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12553 shlibpath_overrides_runpath=no 12554 hardcode_into_libs=yes 12555 ;; 12556 *) # from 4.6 on, and DragonFly 12557 shlibpath_overrides_runpath=yes 12558 hardcode_into_libs=yes 12559 ;; 12560 esac 12561 ;; 12562 12563haiku*) 12564 version_type=linux # correct to gnu/linux during the next big refactor 12565 need_lib_prefix=no 12566 need_version=no 12567 dynamic_linker="$host_os runtime_loader" 12568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12569 soname_spec='$libname$release$shared_ext$major' 12570 shlibpath_var=LIBRARY_PATH 12571 shlibpath_overrides_runpath=no 12572 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12573 hardcode_into_libs=yes 12574 ;; 12575 12576hpux9* | hpux10* | hpux11*) 12577 # Give a soname corresponding to the major version so that dld.sl refuses to 12578 # link against other versions. 12579 version_type=sunos 12580 need_lib_prefix=no 12581 need_version=no 12582 case $host_cpu in 12583 ia64*) 12584 shrext_cmds='.so' 12585 hardcode_into_libs=yes 12586 dynamic_linker="$host_os dld.so" 12587 shlibpath_var=LD_LIBRARY_PATH 12588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12590 soname_spec='$libname$release$shared_ext$major' 12591 if test 32 = "$HPUX_IA64_MODE"; then 12592 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12593 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12594 else 12595 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12596 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12597 fi 12598 ;; 12599 hppa*64*) 12600 shrext_cmds='.sl' 12601 hardcode_into_libs=yes 12602 dynamic_linker="$host_os dld.sl" 12603 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12606 soname_spec='$libname$release$shared_ext$major' 12607 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12609 ;; 12610 *) 12611 shrext_cmds='.sl' 12612 dynamic_linker="$host_os dld.sl" 12613 shlibpath_var=SHLIB_PATH 12614 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12616 soname_spec='$libname$release$shared_ext$major' 12617 ;; 12618 esac 12619 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12620 postinstall_cmds='chmod 555 $lib' 12621 # or fails outright, so override atomically: 12622 install_override_mode=555 12623 ;; 12624 12625interix[3-9]*) 12626 version_type=linux # correct to gnu/linux during the next big refactor 12627 need_lib_prefix=no 12628 need_version=no 12629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12630 soname_spec='$libname$release$shared_ext$major' 12631 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12632 shlibpath_var=LD_LIBRARY_PATH 12633 shlibpath_overrides_runpath=no 12634 hardcode_into_libs=yes 12635 ;; 12636 12637irix5* | irix6* | nonstopux*) 12638 case $host_os in 12639 nonstopux*) version_type=nonstopux ;; 12640 *) 12641 if test yes = "$lt_cv_prog_gnu_ld"; then 12642 version_type=linux # correct to gnu/linux during the next big refactor 12643 else 12644 version_type=irix 12645 fi ;; 12646 esac 12647 need_lib_prefix=no 12648 need_version=no 12649 soname_spec='$libname$release$shared_ext$major' 12650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12651 case $host_os in 12652 irix5* | nonstopux*) 12653 libsuff= shlibsuff= 12654 ;; 12655 *) 12656 case $LD in # libtool.m4 will add one of these switches to LD 12657 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12658 libsuff= shlibsuff= libmagic=32-bit;; 12659 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12660 libsuff=32 shlibsuff=N32 libmagic=N32;; 12661 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12662 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12663 *) libsuff= shlibsuff= libmagic=never-match;; 12664 esac 12665 ;; 12666 esac 12667 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12668 shlibpath_overrides_runpath=no 12669 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12670 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12671 hardcode_into_libs=yes 12672 ;; 12673 12674# No shared lib support for Linux oldld, aout, or coff. 12675linux*oldld* | linux*aout* | linux*coff*) 12676 dynamic_linker=no 12677 ;; 12678 12679linux*android*) 12680 version_type=none # Android doesn't support versioned libraries. 12681 need_lib_prefix=no 12682 need_version=no 12683 library_names_spec='$libname$release$shared_ext' 12684 soname_spec='$libname$release$shared_ext' 12685 finish_cmds= 12686 shlibpath_var=LD_LIBRARY_PATH 12687 shlibpath_overrides_runpath=yes 12688 12689 # This implies no fast_install, which is unacceptable. 12690 # Some rework will be needed to allow for fast_install 12691 # before this can be enabled. 12692 hardcode_into_libs=yes 12693 12694 dynamic_linker='Android linker' 12695 # Don't embed -rpath directories since the linker doesn't support them. 12696 hardcode_libdir_flag_spec='-L$libdir' 12697 ;; 12698 12699# This must be glibc/ELF. 12700linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12701 version_type=linux # correct to gnu/linux during the next big refactor 12702 need_lib_prefix=no 12703 need_version=no 12704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12705 soname_spec='$libname$release$shared_ext$major' 12706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12707 shlibpath_var=LD_LIBRARY_PATH 12708 shlibpath_overrides_runpath=no 12709 12710 # Some binutils ld are patched to set DT_RUNPATH 12711 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12712 $as_echo_n "(cached) " >&6 12713else 12714 lt_cv_shlibpath_overrides_runpath=no 12715 save_LDFLAGS=$LDFLAGS 12716 save_libdir=$libdir 12717 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12718 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12720/* end confdefs.h. */ 12721 12722int 12723main () 12724{ 12725 12726 ; 12727 return 0; 12728} 12729_ACEOF 12730if ac_fn_c_try_link "$LINENO"; then : 12731 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12732 lt_cv_shlibpath_overrides_runpath=yes 12733fi 12734fi 12735rm -f core conftest.err conftest.$ac_objext \ 12736 conftest$ac_exeext conftest.$ac_ext 12737 LDFLAGS=$save_LDFLAGS 12738 libdir=$save_libdir 12739 12740fi 12741 12742 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12743 12744 # This implies no fast_install, which is unacceptable. 12745 # Some rework will be needed to allow for fast_install 12746 # before this can be enabled. 12747 hardcode_into_libs=yes 12748 12749 # Add ABI-specific directories to the system library path. 12750 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12751 12752 # Ideally, we could use ldconfig to report *all* directores which are 12753 # searched for libraries, however this is still not possible. Aside from not 12754 # being certain /sbin/ldconfig is available, command 12755 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12756 # even though it is searched at run-time. Try to do the best guess by 12757 # appending ld.so.conf contents (and includes) to the search path. 12758 if test -f /etc/ld.so.conf; then 12759 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' ' '` 12760 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12761 fi 12762 12763 # We used to test for /lib/ld.so.1 and disable shared libraries on 12764 # powerpc, because MkLinux only supported shared libraries with the 12765 # GNU dynamic linker. Since this was broken with cross compilers, 12766 # most powerpc-linux boxes support dynamic linking these days and 12767 # people can always --disable-shared, the test was removed, and we 12768 # assume the GNU/Linux dynamic linker is in use. 12769 dynamic_linker='GNU/Linux ld.so' 12770 ;; 12771 12772netbsd*) 12773 version_type=sunos 12774 need_lib_prefix=no 12775 need_version=no 12776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12777 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12779 dynamic_linker='NetBSD (a.out) ld.so' 12780 else 12781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12782 soname_spec='$libname$release$shared_ext$major' 12783 dynamic_linker='NetBSD ld.elf_so' 12784 fi 12785 shlibpath_var=LD_LIBRARY_PATH 12786 shlibpath_overrides_runpath=yes 12787 hardcode_into_libs=yes 12788 ;; 12789 12790newsos6) 12791 version_type=linux # correct to gnu/linux during the next big refactor 12792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12793 shlibpath_var=LD_LIBRARY_PATH 12794 shlibpath_overrides_runpath=yes 12795 ;; 12796 12797*nto* | *qnx*) 12798 version_type=qnx 12799 need_lib_prefix=no 12800 need_version=no 12801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12802 soname_spec='$libname$release$shared_ext$major' 12803 shlibpath_var=LD_LIBRARY_PATH 12804 shlibpath_overrides_runpath=no 12805 hardcode_into_libs=yes 12806 dynamic_linker='ldqnx.so' 12807 ;; 12808 12809openbsd* | bitrig*) 12810 version_type=sunos 12811 sys_lib_dlsearch_path_spec=/usr/lib 12812 need_lib_prefix=no 12813 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12814 need_version=no 12815 else 12816 need_version=yes 12817 fi 12818 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12820 shlibpath_var=LD_LIBRARY_PATH 12821 shlibpath_overrides_runpath=yes 12822 ;; 12823 12824os2*) 12825 libname_spec='$name' 12826 version_type=windows 12827 shrext_cmds=.dll 12828 need_version=no 12829 need_lib_prefix=no 12830 # OS/2 can only load a DLL with a base name of 8 characters or less. 12831 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12832 v=$($ECHO $release$versuffix | tr -d .-); 12833 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12834 $ECHO $n$v`$shared_ext' 12835 library_names_spec='${libname}_dll.$libext' 12836 dynamic_linker='OS/2 ld.exe' 12837 shlibpath_var=BEGINLIBPATH 12838 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12840 postinstall_cmds='base_file=`basename \$file`~ 12841 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12842 dldir=$destdir/`dirname \$dlpath`~ 12843 test -d \$dldir || mkdir -p \$dldir~ 12844 $install_prog $dir/$dlname \$dldir/$dlname~ 12845 chmod a+x \$dldir/$dlname~ 12846 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12847 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12848 fi' 12849 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12850 dlpath=$dir/\$dldll~ 12851 $RM \$dlpath' 12852 ;; 12853 12854osf3* | osf4* | osf5*) 12855 version_type=osf 12856 need_lib_prefix=no 12857 need_version=no 12858 soname_spec='$libname$release$shared_ext$major' 12859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12860 shlibpath_var=LD_LIBRARY_PATH 12861 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12863 ;; 12864 12865rdos*) 12866 dynamic_linker=no 12867 ;; 12868 12869solaris*) 12870 version_type=linux # correct to gnu/linux during the next big refactor 12871 need_lib_prefix=no 12872 need_version=no 12873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12874 soname_spec='$libname$release$shared_ext$major' 12875 shlibpath_var=LD_LIBRARY_PATH 12876 shlibpath_overrides_runpath=yes 12877 hardcode_into_libs=yes 12878 # ldd complains unless libraries are executable 12879 postinstall_cmds='chmod +x $lib' 12880 ;; 12881 12882sunos4*) 12883 version_type=sunos 12884 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12885 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12886 shlibpath_var=LD_LIBRARY_PATH 12887 shlibpath_overrides_runpath=yes 12888 if test yes = "$with_gnu_ld"; then 12889 need_lib_prefix=no 12890 fi 12891 need_version=yes 12892 ;; 12893 12894sysv4 | sysv4.3*) 12895 version_type=linux # correct to gnu/linux during the next big refactor 12896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12897 soname_spec='$libname$release$shared_ext$major' 12898 shlibpath_var=LD_LIBRARY_PATH 12899 case $host_vendor in 12900 sni) 12901 shlibpath_overrides_runpath=no 12902 need_lib_prefix=no 12903 runpath_var=LD_RUN_PATH 12904 ;; 12905 siemens) 12906 need_lib_prefix=no 12907 ;; 12908 motorola) 12909 need_lib_prefix=no 12910 need_version=no 12911 shlibpath_overrides_runpath=no 12912 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12913 ;; 12914 esac 12915 ;; 12916 12917sysv4*MP*) 12918 if test -d /usr/nec; then 12919 version_type=linux # correct to gnu/linux during the next big refactor 12920 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12921 soname_spec='$libname$shared_ext.$major' 12922 shlibpath_var=LD_LIBRARY_PATH 12923 fi 12924 ;; 12925 12926sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12927 version_type=sco 12928 need_lib_prefix=no 12929 need_version=no 12930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12931 soname_spec='$libname$release$shared_ext$major' 12932 shlibpath_var=LD_LIBRARY_PATH 12933 shlibpath_overrides_runpath=yes 12934 hardcode_into_libs=yes 12935 if test yes = "$with_gnu_ld"; then 12936 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12937 else 12938 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12939 case $host_os in 12940 sco3.2v5*) 12941 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12942 ;; 12943 esac 12944 fi 12945 sys_lib_dlsearch_path_spec='/usr/lib' 12946 ;; 12947 12948tpf*) 12949 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12950 version_type=linux # correct to gnu/linux during the next big refactor 12951 need_lib_prefix=no 12952 need_version=no 12953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12954 shlibpath_var=LD_LIBRARY_PATH 12955 shlibpath_overrides_runpath=no 12956 hardcode_into_libs=yes 12957 ;; 12958 12959uts4*) 12960 version_type=linux # correct to gnu/linux during the next big refactor 12961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12962 soname_spec='$libname$release$shared_ext$major' 12963 shlibpath_var=LD_LIBRARY_PATH 12964 ;; 12965 12966*) 12967 dynamic_linker=no 12968 ;; 12969esac 12970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12971$as_echo "$dynamic_linker" >&6; } 12972test no = "$dynamic_linker" && can_build_shared=no 12973 12974variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12975if test yes = "$GCC"; then 12976 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12977fi 12978 12979if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12980 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12981fi 12982 12983if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12984 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12985fi 12986 12987# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12988configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12989 12990# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12991func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12992 12993# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12994configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13093$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13094hardcode_action= 13095if test -n "$hardcode_libdir_flag_spec" || 13096 test -n "$runpath_var" || 13097 test yes = "$hardcode_automatic"; then 13098 13099 # We can hardcode non-existent directories. 13100 if test no != "$hardcode_direct" && 13101 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13102 # have to relink, otherwise we might link with an installed library 13103 # when we should be linking with a yet-to-be-installed one 13104 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13105 test no != "$hardcode_minus_L"; then 13106 # Linking always hardcodes the temporary library directory. 13107 hardcode_action=relink 13108 else 13109 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13110 hardcode_action=immediate 13111 fi 13112else 13113 # We cannot hardcode anything, or else we can only hardcode existing 13114 # directories. 13115 hardcode_action=unsupported 13116fi 13117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13118$as_echo "$hardcode_action" >&6; } 13119 13120if test relink = "$hardcode_action" || 13121 test yes = "$inherit_rpath"; then 13122 # Fast installation is not supported 13123 enable_fast_install=no 13124elif test yes = "$shlibpath_overrides_runpath" || 13125 test no = "$enable_shared"; then 13126 # Fast installation is not necessary 13127 enable_fast_install=needless 13128fi 13129 13130 13131 13132 13133 13134 13135 if test yes != "$enable_dlopen"; then 13136 enable_dlopen=unknown 13137 enable_dlopen_self=unknown 13138 enable_dlopen_self_static=unknown 13139else 13140 lt_cv_dlopen=no 13141 lt_cv_dlopen_libs= 13142 13143 case $host_os in 13144 beos*) 13145 lt_cv_dlopen=load_add_on 13146 lt_cv_dlopen_libs= 13147 lt_cv_dlopen_self=yes 13148 ;; 13149 13150 mingw* | pw32* | cegcc*) 13151 lt_cv_dlopen=LoadLibrary 13152 lt_cv_dlopen_libs= 13153 ;; 13154 13155 cygwin*) 13156 lt_cv_dlopen=dlopen 13157 lt_cv_dlopen_libs= 13158 ;; 13159 13160 darwin*) 13161 # if libdl is installed we need to link against it 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13163$as_echo_n "checking for dlopen in -ldl... " >&6; } 13164if ${ac_cv_lib_dl_dlopen+:} false; then : 13165 $as_echo_n "(cached) " >&6 13166else 13167 ac_check_lib_save_LIBS=$LIBS 13168LIBS="-ldl $LIBS" 13169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13170/* end confdefs.h. */ 13171 13172/* Override any GCC internal prototype to avoid an error. 13173 Use char because int might match the return type of a GCC 13174 builtin and then its argument prototype would still apply. */ 13175#ifdef __cplusplus 13176extern "C" 13177#endif 13178char dlopen (); 13179int 13180main () 13181{ 13182return dlopen (); 13183 ; 13184 return 0; 13185} 13186_ACEOF 13187if ac_fn_c_try_link "$LINENO"; then : 13188 ac_cv_lib_dl_dlopen=yes 13189else 13190 ac_cv_lib_dl_dlopen=no 13191fi 13192rm -f core conftest.err conftest.$ac_objext \ 13193 conftest$ac_exeext conftest.$ac_ext 13194LIBS=$ac_check_lib_save_LIBS 13195fi 13196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13197$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13198if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13199 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13200else 13201 13202 lt_cv_dlopen=dyld 13203 lt_cv_dlopen_libs= 13204 lt_cv_dlopen_self=yes 13205 13206fi 13207 13208 ;; 13209 13210 tpf*) 13211 # Don't try to run any link tests for TPF. We know it's impossible 13212 # because TPF is a cross-compiler, and we know how we open DSOs. 13213 lt_cv_dlopen=dlopen 13214 lt_cv_dlopen_libs= 13215 lt_cv_dlopen_self=no 13216 ;; 13217 13218 *) 13219 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13220if test "x$ac_cv_func_shl_load" = xyes; then : 13221 lt_cv_dlopen=shl_load 13222else 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13224$as_echo_n "checking for shl_load in -ldld... " >&6; } 13225if ${ac_cv_lib_dld_shl_load+:} false; then : 13226 $as_echo_n "(cached) " >&6 13227else 13228 ac_check_lib_save_LIBS=$LIBS 13229LIBS="-ldld $LIBS" 13230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13231/* end confdefs.h. */ 13232 13233/* Override any GCC internal prototype to avoid an error. 13234 Use char because int might match the return type of a GCC 13235 builtin and then its argument prototype would still apply. */ 13236#ifdef __cplusplus 13237extern "C" 13238#endif 13239char shl_load (); 13240int 13241main () 13242{ 13243return shl_load (); 13244 ; 13245 return 0; 13246} 13247_ACEOF 13248if ac_fn_c_try_link "$LINENO"; then : 13249 ac_cv_lib_dld_shl_load=yes 13250else 13251 ac_cv_lib_dld_shl_load=no 13252fi 13253rm -f core conftest.err conftest.$ac_objext \ 13254 conftest$ac_exeext conftest.$ac_ext 13255LIBS=$ac_check_lib_save_LIBS 13256fi 13257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13258$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13259if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13260 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13261else 13262 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13263if test "x$ac_cv_func_dlopen" = xyes; then : 13264 lt_cv_dlopen=dlopen 13265else 13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13267$as_echo_n "checking for dlopen in -ldl... " >&6; } 13268if ${ac_cv_lib_dl_dlopen+:} false; then : 13269 $as_echo_n "(cached) " >&6 13270else 13271 ac_check_lib_save_LIBS=$LIBS 13272LIBS="-ldl $LIBS" 13273cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13274/* end confdefs.h. */ 13275 13276/* Override any GCC internal prototype to avoid an error. 13277 Use char because int might match the return type of a GCC 13278 builtin and then its argument prototype would still apply. */ 13279#ifdef __cplusplus 13280extern "C" 13281#endif 13282char dlopen (); 13283int 13284main () 13285{ 13286return dlopen (); 13287 ; 13288 return 0; 13289} 13290_ACEOF 13291if ac_fn_c_try_link "$LINENO"; then : 13292 ac_cv_lib_dl_dlopen=yes 13293else 13294 ac_cv_lib_dl_dlopen=no 13295fi 13296rm -f core conftest.err conftest.$ac_objext \ 13297 conftest$ac_exeext conftest.$ac_ext 13298LIBS=$ac_check_lib_save_LIBS 13299fi 13300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13301$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13302if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13303 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13304else 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13306$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13307if ${ac_cv_lib_svld_dlopen+:} false; then : 13308 $as_echo_n "(cached) " >&6 13309else 13310 ac_check_lib_save_LIBS=$LIBS 13311LIBS="-lsvld $LIBS" 13312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13313/* end confdefs.h. */ 13314 13315/* Override any GCC internal prototype to avoid an error. 13316 Use char because int might match the return type of a GCC 13317 builtin and then its argument prototype would still apply. */ 13318#ifdef __cplusplus 13319extern "C" 13320#endif 13321char dlopen (); 13322int 13323main () 13324{ 13325return dlopen (); 13326 ; 13327 return 0; 13328} 13329_ACEOF 13330if ac_fn_c_try_link "$LINENO"; then : 13331 ac_cv_lib_svld_dlopen=yes 13332else 13333 ac_cv_lib_svld_dlopen=no 13334fi 13335rm -f core conftest.err conftest.$ac_objext \ 13336 conftest$ac_exeext conftest.$ac_ext 13337LIBS=$ac_check_lib_save_LIBS 13338fi 13339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13340$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13341if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13342 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13343else 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13345$as_echo_n "checking for dld_link in -ldld... " >&6; } 13346if ${ac_cv_lib_dld_dld_link+:} false; then : 13347 $as_echo_n "(cached) " >&6 13348else 13349 ac_check_lib_save_LIBS=$LIBS 13350LIBS="-ldld $LIBS" 13351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13352/* end confdefs.h. */ 13353 13354/* Override any GCC internal prototype to avoid an error. 13355 Use char because int might match the return type of a GCC 13356 builtin and then its argument prototype would still apply. */ 13357#ifdef __cplusplus 13358extern "C" 13359#endif 13360char dld_link (); 13361int 13362main () 13363{ 13364return dld_link (); 13365 ; 13366 return 0; 13367} 13368_ACEOF 13369if ac_fn_c_try_link "$LINENO"; then : 13370 ac_cv_lib_dld_dld_link=yes 13371else 13372 ac_cv_lib_dld_dld_link=no 13373fi 13374rm -f core conftest.err conftest.$ac_objext \ 13375 conftest$ac_exeext conftest.$ac_ext 13376LIBS=$ac_check_lib_save_LIBS 13377fi 13378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13379$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13380if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13381 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13382fi 13383 13384 13385fi 13386 13387 13388fi 13389 13390 13391fi 13392 13393 13394fi 13395 13396 13397fi 13398 13399 ;; 13400 esac 13401 13402 if test no = "$lt_cv_dlopen"; then 13403 enable_dlopen=no 13404 else 13405 enable_dlopen=yes 13406 fi 13407 13408 case $lt_cv_dlopen in 13409 dlopen) 13410 save_CPPFLAGS=$CPPFLAGS 13411 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13412 13413 save_LDFLAGS=$LDFLAGS 13414 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13415 13416 save_LIBS=$LIBS 13417 LIBS="$lt_cv_dlopen_libs $LIBS" 13418 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13420$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13421if ${lt_cv_dlopen_self+:} false; then : 13422 $as_echo_n "(cached) " >&6 13423else 13424 if test yes = "$cross_compiling"; then : 13425 lt_cv_dlopen_self=cross 13426else 13427 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13428 lt_status=$lt_dlunknown 13429 cat > conftest.$ac_ext <<_LT_EOF 13430#line $LINENO "configure" 13431#include "confdefs.h" 13432 13433#if HAVE_DLFCN_H 13434#include <dlfcn.h> 13435#endif 13436 13437#include <stdio.h> 13438 13439#ifdef RTLD_GLOBAL 13440# define LT_DLGLOBAL RTLD_GLOBAL 13441#else 13442# ifdef DL_GLOBAL 13443# define LT_DLGLOBAL DL_GLOBAL 13444# else 13445# define LT_DLGLOBAL 0 13446# endif 13447#endif 13448 13449/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13450 find out it does not work in some platform. */ 13451#ifndef LT_DLLAZY_OR_NOW 13452# ifdef RTLD_LAZY 13453# define LT_DLLAZY_OR_NOW RTLD_LAZY 13454# else 13455# ifdef DL_LAZY 13456# define LT_DLLAZY_OR_NOW DL_LAZY 13457# else 13458# ifdef RTLD_NOW 13459# define LT_DLLAZY_OR_NOW RTLD_NOW 13460# else 13461# ifdef DL_NOW 13462# define LT_DLLAZY_OR_NOW DL_NOW 13463# else 13464# define LT_DLLAZY_OR_NOW 0 13465# endif 13466# endif 13467# endif 13468# endif 13469#endif 13470 13471/* When -fvisibility=hidden is used, assume the code has been annotated 13472 correspondingly for the symbols needed. */ 13473#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13474int fnord () __attribute__((visibility("default"))); 13475#endif 13476 13477int fnord () { return 42; } 13478int main () 13479{ 13480 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13481 int status = $lt_dlunknown; 13482 13483 if (self) 13484 { 13485 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13486 else 13487 { 13488 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13489 else puts (dlerror ()); 13490 } 13491 /* dlclose (self); */ 13492 } 13493 else 13494 puts (dlerror ()); 13495 13496 return status; 13497} 13498_LT_EOF 13499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13500 (eval $ac_link) 2>&5 13501 ac_status=$? 13502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13503 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13504 (./conftest; exit; ) >&5 2>/dev/null 13505 lt_status=$? 13506 case x$lt_status in 13507 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13508 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13509 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13510 esac 13511 else : 13512 # compilation failed 13513 lt_cv_dlopen_self=no 13514 fi 13515fi 13516rm -fr conftest* 13517 13518 13519fi 13520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13521$as_echo "$lt_cv_dlopen_self" >&6; } 13522 13523 if test yes = "$lt_cv_dlopen_self"; then 13524 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13526$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13527if ${lt_cv_dlopen_self_static+:} false; then : 13528 $as_echo_n "(cached) " >&6 13529else 13530 if test yes = "$cross_compiling"; then : 13531 lt_cv_dlopen_self_static=cross 13532else 13533 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13534 lt_status=$lt_dlunknown 13535 cat > conftest.$ac_ext <<_LT_EOF 13536#line $LINENO "configure" 13537#include "confdefs.h" 13538 13539#if HAVE_DLFCN_H 13540#include <dlfcn.h> 13541#endif 13542 13543#include <stdio.h> 13544 13545#ifdef RTLD_GLOBAL 13546# define LT_DLGLOBAL RTLD_GLOBAL 13547#else 13548# ifdef DL_GLOBAL 13549# define LT_DLGLOBAL DL_GLOBAL 13550# else 13551# define LT_DLGLOBAL 0 13552# endif 13553#endif 13554 13555/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13556 find out it does not work in some platform. */ 13557#ifndef LT_DLLAZY_OR_NOW 13558# ifdef RTLD_LAZY 13559# define LT_DLLAZY_OR_NOW RTLD_LAZY 13560# else 13561# ifdef DL_LAZY 13562# define LT_DLLAZY_OR_NOW DL_LAZY 13563# else 13564# ifdef RTLD_NOW 13565# define LT_DLLAZY_OR_NOW RTLD_NOW 13566# else 13567# ifdef DL_NOW 13568# define LT_DLLAZY_OR_NOW DL_NOW 13569# else 13570# define LT_DLLAZY_OR_NOW 0 13571# endif 13572# endif 13573# endif 13574# endif 13575#endif 13576 13577/* When -fvisibility=hidden is used, assume the code has been annotated 13578 correspondingly for the symbols needed. */ 13579#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13580int fnord () __attribute__((visibility("default"))); 13581#endif 13582 13583int fnord () { return 42; } 13584int main () 13585{ 13586 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13587 int status = $lt_dlunknown; 13588 13589 if (self) 13590 { 13591 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13592 else 13593 { 13594 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13595 else puts (dlerror ()); 13596 } 13597 /* dlclose (self); */ 13598 } 13599 else 13600 puts (dlerror ()); 13601 13602 return status; 13603} 13604_LT_EOF 13605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13606 (eval $ac_link) 2>&5 13607 ac_status=$? 13608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13609 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13610 (./conftest; exit; ) >&5 2>/dev/null 13611 lt_status=$? 13612 case x$lt_status in 13613 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13614 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13615 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13616 esac 13617 else : 13618 # compilation failed 13619 lt_cv_dlopen_self_static=no 13620 fi 13621fi 13622rm -fr conftest* 13623 13624 13625fi 13626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13627$as_echo "$lt_cv_dlopen_self_static" >&6; } 13628 fi 13629 13630 CPPFLAGS=$save_CPPFLAGS 13631 LDFLAGS=$save_LDFLAGS 13632 LIBS=$save_LIBS 13633 ;; 13634 esac 13635 13636 case $lt_cv_dlopen_self in 13637 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13638 *) enable_dlopen_self=unknown ;; 13639 esac 13640 13641 case $lt_cv_dlopen_self_static in 13642 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13643 *) enable_dlopen_self_static=unknown ;; 13644 esac 13645fi 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663striplib= 13664old_striplib= 13665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13666$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13667if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13668 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13669 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13671$as_echo "yes" >&6; } 13672else 13673# FIXME - insert some real tests, host_os isn't really good enough 13674 case $host_os in 13675 darwin*) 13676 if test -n "$STRIP"; then 13677 striplib="$STRIP -x" 13678 old_striplib="$STRIP -S" 13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13680$as_echo "yes" >&6; } 13681 else 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13683$as_echo "no" >&6; } 13684 fi 13685 ;; 13686 *) 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13688$as_echo "no" >&6; } 13689 ;; 13690 esac 13691fi 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 # Report what library types will actually be built 13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13706$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13708$as_echo "$can_build_shared" >&6; } 13709 13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13711$as_echo_n "checking whether to build shared libraries... " >&6; } 13712 test no = "$can_build_shared" && enable_shared=no 13713 13714 # On AIX, shared libraries and static libraries use the same namespace, and 13715 # are all built from PIC. 13716 case $host_os in 13717 aix3*) 13718 test yes = "$enable_shared" && enable_static=no 13719 if test -n "$RANLIB"; then 13720 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13721 postinstall_cmds='$RANLIB $lib' 13722 fi 13723 ;; 13724 13725 aix[4-9]*) 13726 if test ia64 != "$host_cpu"; then 13727 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13728 yes,aix,yes) ;; # shared object as lib.so file only 13729 yes,svr4,*) ;; # shared object as lib.so archive member only 13730 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13731 esac 13732 fi 13733 ;; 13734 esac 13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13736$as_echo "$enable_shared" >&6; } 13737 13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13739$as_echo_n "checking whether to build static libraries... " >&6; } 13740 # Make sure either enable_shared or enable_static is yes. 13741 test yes = "$enable_shared" || enable_static=yes 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13743$as_echo "$enable_static" >&6; } 13744 13745 13746 13747 13748fi 13749ac_ext=cpp 13750ac_cpp='$CXXCPP $CPPFLAGS' 13751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13754 13755CC=$lt_save_CC 13756 13757 if test -n "$CXX" && ( test no != "$CXX" && 13758 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13759 (test g++ != "$CXX"))); then 13760 ac_ext=cpp 13761ac_cpp='$CXXCPP $CPPFLAGS' 13762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13766$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13767if test -z "$CXXCPP"; then 13768 if ${ac_cv_prog_CXXCPP+:} false; then : 13769 $as_echo_n "(cached) " >&6 13770else 13771 # Double quotes because CXXCPP needs to be expanded 13772 for CXXCPP in "$CXX -E" "/lib/cpp" 13773 do 13774 ac_preproc_ok=false 13775for ac_cxx_preproc_warn_flag in '' yes 13776do 13777 # Use a header file that comes with gcc, so configuring glibc 13778 # with a fresh cross-compiler works. 13779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13780 # <limits.h> exists even on freestanding compilers. 13781 # On the NeXT, cc -E runs the code through the compiler's parser, 13782 # not just through cpp. "Syntax error" is here to catch this case. 13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13784/* end confdefs.h. */ 13785#ifdef __STDC__ 13786# include <limits.h> 13787#else 13788# include <assert.h> 13789#endif 13790 Syntax error 13791_ACEOF 13792if ac_fn_cxx_try_cpp "$LINENO"; then : 13793 13794else 13795 # Broken: fails on valid input. 13796continue 13797fi 13798rm -f conftest.err conftest.i conftest.$ac_ext 13799 13800 # OK, works on sane cases. Now check whether nonexistent headers 13801 # can be detected and how. 13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13803/* end confdefs.h. */ 13804#include <ac_nonexistent.h> 13805_ACEOF 13806if ac_fn_cxx_try_cpp "$LINENO"; then : 13807 # Broken: success on invalid input. 13808continue 13809else 13810 # Passes both tests. 13811ac_preproc_ok=: 13812break 13813fi 13814rm -f conftest.err conftest.i conftest.$ac_ext 13815 13816done 13817# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13818rm -f conftest.i conftest.err conftest.$ac_ext 13819if $ac_preproc_ok; then : 13820 break 13821fi 13822 13823 done 13824 ac_cv_prog_CXXCPP=$CXXCPP 13825 13826fi 13827 CXXCPP=$ac_cv_prog_CXXCPP 13828else 13829 ac_cv_prog_CXXCPP=$CXXCPP 13830fi 13831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13832$as_echo "$CXXCPP" >&6; } 13833ac_preproc_ok=false 13834for ac_cxx_preproc_warn_flag in '' yes 13835do 13836 # Use a header file that comes with gcc, so configuring glibc 13837 # with a fresh cross-compiler works. 13838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13839 # <limits.h> exists even on freestanding compilers. 13840 # On the NeXT, cc -E runs the code through the compiler's parser, 13841 # not just through cpp. "Syntax error" is here to catch this case. 13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13843/* end confdefs.h. */ 13844#ifdef __STDC__ 13845# include <limits.h> 13846#else 13847# include <assert.h> 13848#endif 13849 Syntax error 13850_ACEOF 13851if ac_fn_cxx_try_cpp "$LINENO"; then : 13852 13853else 13854 # Broken: fails on valid input. 13855continue 13856fi 13857rm -f conftest.err conftest.i conftest.$ac_ext 13858 13859 # OK, works on sane cases. Now check whether nonexistent headers 13860 # can be detected and how. 13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13862/* end confdefs.h. */ 13863#include <ac_nonexistent.h> 13864_ACEOF 13865if ac_fn_cxx_try_cpp "$LINENO"; then : 13866 # Broken: success on invalid input. 13867continue 13868else 13869 # Passes both tests. 13870ac_preproc_ok=: 13871break 13872fi 13873rm -f conftest.err conftest.i conftest.$ac_ext 13874 13875done 13876# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13877rm -f conftest.i conftest.err conftest.$ac_ext 13878if $ac_preproc_ok; then : 13879 13880else 13881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13883as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13884See \`config.log' for more details" "$LINENO" 5; } 13885fi 13886 13887ac_ext=cpp 13888ac_cpp='$CXXCPP $CPPFLAGS' 13889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13892 13893else 13894 _lt_caught_CXX_error=yes 13895fi 13896 13897ac_ext=cpp 13898ac_cpp='$CXXCPP $CPPFLAGS' 13899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13902 13903archive_cmds_need_lc_CXX=no 13904allow_undefined_flag_CXX= 13905always_export_symbols_CXX=no 13906archive_expsym_cmds_CXX= 13907compiler_needs_object_CXX=no 13908export_dynamic_flag_spec_CXX= 13909hardcode_direct_CXX=no 13910hardcode_direct_absolute_CXX=no 13911hardcode_libdir_flag_spec_CXX= 13912hardcode_libdir_separator_CXX= 13913hardcode_minus_L_CXX=no 13914hardcode_shlibpath_var_CXX=unsupported 13915hardcode_automatic_CXX=no 13916inherit_rpath_CXX=no 13917module_cmds_CXX= 13918module_expsym_cmds_CXX= 13919link_all_deplibs_CXX=unknown 13920old_archive_cmds_CXX=$old_archive_cmds 13921reload_flag_CXX=$reload_flag 13922reload_cmds_CXX=$reload_cmds 13923no_undefined_flag_CXX= 13924whole_archive_flag_spec_CXX= 13925enable_shared_with_static_runtimes_CXX=no 13926 13927# Source file extension for C++ test sources. 13928ac_ext=cpp 13929 13930# Object file extension for compiled C++ test sources. 13931objext=o 13932objext_CXX=$objext 13933 13934# No sense in running all these tests if we already determined that 13935# the CXX compiler isn't working. Some variables (like enable_shared) 13936# are currently assumed to apply to all compilers on this platform, 13937# and will be corrupted by setting them based on a non-working compiler. 13938if test yes != "$_lt_caught_CXX_error"; then 13939 # Code to be used in simple compile tests 13940 lt_simple_compile_test_code="int some_variable = 0;" 13941 13942 # Code to be used in simple link tests 13943 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13944 13945 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13946 13947 13948 13949 13950 13951 13952# If no C compiler was specified, use CC. 13953LTCC=${LTCC-"$CC"} 13954 13955# If no C compiler flags were specified, use CFLAGS. 13956LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13957 13958# Allow CC to be a program name with arguments. 13959compiler=$CC 13960 13961 13962 # save warnings/boilerplate of simple test code 13963 ac_outfile=conftest.$ac_objext 13964echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13965eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13966_lt_compiler_boilerplate=`cat conftest.err` 13967$RM conftest* 13968 13969 ac_outfile=conftest.$ac_objext 13970echo "$lt_simple_link_test_code" >conftest.$ac_ext 13971eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13972_lt_linker_boilerplate=`cat conftest.err` 13973$RM -r conftest* 13974 13975 13976 # Allow CC to be a program name with arguments. 13977 lt_save_CC=$CC 13978 lt_save_CFLAGS=$CFLAGS 13979 lt_save_LD=$LD 13980 lt_save_GCC=$GCC 13981 GCC=$GXX 13982 lt_save_with_gnu_ld=$with_gnu_ld 13983 lt_save_path_LD=$lt_cv_path_LD 13984 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13985 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13986 else 13987 $as_unset lt_cv_prog_gnu_ld 13988 fi 13989 if test -n "${lt_cv_path_LDCXX+set}"; then 13990 lt_cv_path_LD=$lt_cv_path_LDCXX 13991 else 13992 $as_unset lt_cv_path_LD 13993 fi 13994 test -z "${LDCXX+set}" || LD=$LDCXX 13995 CC=${CXX-"c++"} 13996 CFLAGS=$CXXFLAGS 13997 compiler=$CC 13998 compiler_CXX=$CC 13999 func_cc_basename $compiler 14000cc_basename=$func_cc_basename_result 14001 14002 14003 if test -n "$compiler"; then 14004 # We don't want -fno-exception when compiling C++ code, so set the 14005 # no_builtin_flag separately 14006 if test yes = "$GXX"; then 14007 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14008 else 14009 lt_prog_compiler_no_builtin_flag_CXX= 14010 fi 14011 14012 if test yes = "$GXX"; then 14013 # Set up default GNU C++ configuration 14014 14015 14016 14017# Check whether --with-gnu-ld was given. 14018if test "${with_gnu_ld+set}" = set; then : 14019 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14020else 14021 with_gnu_ld=no 14022fi 14023 14024ac_prog=ld 14025if test yes = "$GCC"; then 14026 # Check if gcc -print-prog-name=ld gives a path. 14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14028$as_echo_n "checking for ld used by $CC... " >&6; } 14029 case $host in 14030 *-*-mingw*) 14031 # gcc leaves a trailing carriage return, which upsets mingw 14032 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14033 *) 14034 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14035 esac 14036 case $ac_prog in 14037 # Accept absolute paths. 14038 [\\/]* | ?:[\\/]*) 14039 re_direlt='/[^/][^/]*/\.\./' 14040 # Canonicalize the pathname of ld 14041 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14042 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14043 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14044 done 14045 test -z "$LD" && LD=$ac_prog 14046 ;; 14047 "") 14048 # If it fails, then pretend we aren't using GCC. 14049 ac_prog=ld 14050 ;; 14051 *) 14052 # If it is relative, then search for the first ld in PATH. 14053 with_gnu_ld=unknown 14054 ;; 14055 esac 14056elif test yes = "$with_gnu_ld"; then 14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14058$as_echo_n "checking for GNU ld... " >&6; } 14059else 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14061$as_echo_n "checking for non-GNU ld... " >&6; } 14062fi 14063if ${lt_cv_path_LD+:} false; then : 14064 $as_echo_n "(cached) " >&6 14065else 14066 if test -z "$LD"; then 14067 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14068 for ac_dir in $PATH; do 14069 IFS=$lt_save_ifs 14070 test -z "$ac_dir" && ac_dir=. 14071 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14072 lt_cv_path_LD=$ac_dir/$ac_prog 14073 # Check to see if the program is GNU ld. I'd rather use --version, 14074 # but apparently some variants of GNU ld only accept -v. 14075 # Break only if it was the GNU/non-GNU ld that we prefer. 14076 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14077 *GNU* | *'with BFD'*) 14078 test no != "$with_gnu_ld" && break 14079 ;; 14080 *) 14081 test yes != "$with_gnu_ld" && break 14082 ;; 14083 esac 14084 fi 14085 done 14086 IFS=$lt_save_ifs 14087else 14088 lt_cv_path_LD=$LD # Let the user override the test with a path. 14089fi 14090fi 14091 14092LD=$lt_cv_path_LD 14093if test -n "$LD"; then 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14095$as_echo "$LD" >&6; } 14096else 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14098$as_echo "no" >&6; } 14099fi 14100test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14102$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14103if ${lt_cv_prog_gnu_ld+:} false; then : 14104 $as_echo_n "(cached) " >&6 14105else 14106 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14107case `$LD -v 2>&1 </dev/null` in 14108*GNU* | *'with BFD'*) 14109 lt_cv_prog_gnu_ld=yes 14110 ;; 14111*) 14112 lt_cv_prog_gnu_ld=no 14113 ;; 14114esac 14115fi 14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14117$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14118with_gnu_ld=$lt_cv_prog_gnu_ld 14119 14120 14121 14122 14123 14124 14125 14126 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14127 # archiving commands below assume that GNU ld is being used. 14128 if test yes = "$with_gnu_ld"; then 14129 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14130 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' 14131 14132 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14133 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14134 14135 # If archive_cmds runs LD, not CC, wlarc should be empty 14136 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14137 # investigate it a little bit more. (MM) 14138 wlarc='$wl' 14139 14140 # ancient GNU ld didn't support --whole-archive et. al. 14141 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14142 $GREP 'no-whole-archive' > /dev/null; then 14143 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14144 else 14145 whole_archive_flag_spec_CXX= 14146 fi 14147 else 14148 with_gnu_ld=no 14149 wlarc= 14150 14151 # A generic and very simple default shared library creation 14152 # command for GNU C++ for the case where it uses the native 14153 # linker, instead of GNU ld. If possible, this setting should 14154 # overridden to take advantage of the native linker features on 14155 # the platform it is being used on. 14156 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14157 fi 14158 14159 # Commands to make compiler produce verbose output that lists 14160 # what "hidden" libraries, object files and flags are used when 14161 # linking a shared library. 14162 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14163 14164 else 14165 GXX=no 14166 with_gnu_ld=no 14167 wlarc= 14168 fi 14169 14170 # PORTME: fill in a description of your system's C++ link characteristics 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14172$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14173 ld_shlibs_CXX=yes 14174 case $host_os in 14175 aix3*) 14176 # FIXME: insert proper C++ library support 14177 ld_shlibs_CXX=no 14178 ;; 14179 aix[4-9]*) 14180 if test ia64 = "$host_cpu"; then 14181 # On IA64, the linker does run time linking by default, so we don't 14182 # have to do anything special. 14183 aix_use_runtimelinking=no 14184 exp_sym_flag='-Bexport' 14185 no_entry_flag= 14186 else 14187 aix_use_runtimelinking=no 14188 14189 # Test if we are trying to use run time linking or normal 14190 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14191 # have runtime linking enabled, and use it for executables. 14192 # For shared libraries, we enable/disable runtime linking 14193 # depending on the kind of the shared library created - 14194 # when "with_aix_soname,aix_use_runtimelinking" is: 14195 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14196 # "aix,yes" lib.so shared, rtl:yes, for executables 14197 # lib.a static archive 14198 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14199 # lib.a(lib.so.V) shared, rtl:no, for executables 14200 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14201 # lib.a(lib.so.V) shared, rtl:no 14202 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14203 # lib.a static archive 14204 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14205 for ld_flag in $LDFLAGS; do 14206 case $ld_flag in 14207 *-brtl*) 14208 aix_use_runtimelinking=yes 14209 break 14210 ;; 14211 esac 14212 done 14213 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14214 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14215 # so we don't have lib.a shared libs to link our executables. 14216 # We have to force runtime linking in this case. 14217 aix_use_runtimelinking=yes 14218 LDFLAGS="$LDFLAGS -Wl,-brtl" 14219 fi 14220 ;; 14221 esac 14222 14223 exp_sym_flag='-bexport' 14224 no_entry_flag='-bnoentry' 14225 fi 14226 14227 # When large executables or shared objects are built, AIX ld can 14228 # have problems creating the table of contents. If linking a library 14229 # or program results in "error TOC overflow" add -mminimal-toc to 14230 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14231 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14232 14233 archive_cmds_CXX='' 14234 hardcode_direct_CXX=yes 14235 hardcode_direct_absolute_CXX=yes 14236 hardcode_libdir_separator_CXX=':' 14237 link_all_deplibs_CXX=yes 14238 file_list_spec_CXX='$wl-f,' 14239 case $with_aix_soname,$aix_use_runtimelinking in 14240 aix,*) ;; # no import file 14241 svr4,* | *,yes) # use import file 14242 # The Import File defines what to hardcode. 14243 hardcode_direct_CXX=no 14244 hardcode_direct_absolute_CXX=no 14245 ;; 14246 esac 14247 14248 if test yes = "$GXX"; then 14249 case $host_os in aix4.[012]|aix4.[012].*) 14250 # We only want to do this on AIX 4.2 and lower, the check 14251 # below for broken collect2 doesn't work under 4.3+ 14252 collect2name=`$CC -print-prog-name=collect2` 14253 if test -f "$collect2name" && 14254 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14255 then 14256 # We have reworked collect2 14257 : 14258 else 14259 # We have old collect2 14260 hardcode_direct_CXX=unsupported 14261 # It fails to find uninstalled libraries when the uninstalled 14262 # path is not listed in the libpath. Setting hardcode_minus_L 14263 # to unsupported forces relinking 14264 hardcode_minus_L_CXX=yes 14265 hardcode_libdir_flag_spec_CXX='-L$libdir' 14266 hardcode_libdir_separator_CXX= 14267 fi 14268 esac 14269 shared_flag='-shared' 14270 if test yes = "$aix_use_runtimelinking"; then 14271 shared_flag=$shared_flag' $wl-G' 14272 fi 14273 # Need to ensure runtime linking is disabled for the traditional 14274 # shared library, or the linker may eventually find shared libraries 14275 # /with/ Import File - we do not want to mix them. 14276 shared_flag_aix='-shared' 14277 shared_flag_svr4='-shared $wl-G' 14278 else 14279 # not using gcc 14280 if test ia64 = "$host_cpu"; then 14281 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14282 # chokes on -Wl,-G. The following line is correct: 14283 shared_flag='-G' 14284 else 14285 if test yes = "$aix_use_runtimelinking"; then 14286 shared_flag='$wl-G' 14287 else 14288 shared_flag='$wl-bM:SRE' 14289 fi 14290 shared_flag_aix='$wl-bM:SRE' 14291 shared_flag_svr4='$wl-G' 14292 fi 14293 fi 14294 14295 export_dynamic_flag_spec_CXX='$wl-bexpall' 14296 # It seems that -bexpall does not export symbols beginning with 14297 # underscore (_), so it is better to generate a list of symbols to 14298 # export. 14299 always_export_symbols_CXX=yes 14300 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14301 # Warning - without using the other runtime loading flags (-brtl), 14302 # -berok will link without error, but may produce a broken library. 14303 # The "-G" linker flag allows undefined symbols. 14304 no_undefined_flag_CXX='-bernotok' 14305 # Determine the default libpath from the value encoded in an empty 14306 # executable. 14307 if test set = "${lt_cv_aix_libpath+set}"; then 14308 aix_libpath=$lt_cv_aix_libpath 14309else 14310 if ${lt_cv_aix_libpath__CXX+:} false; then : 14311 $as_echo_n "(cached) " >&6 14312else 14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14314/* end confdefs.h. */ 14315 14316int 14317main () 14318{ 14319 14320 ; 14321 return 0; 14322} 14323_ACEOF 14324if ac_fn_cxx_try_link "$LINENO"; then : 14325 14326 lt_aix_libpath_sed=' 14327 /Import File Strings/,/^$/ { 14328 /^0/ { 14329 s/^0 *\([^ ]*\) *$/\1/ 14330 p 14331 } 14332 }' 14333 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14334 # Check for a 64-bit object if we didn't find anything. 14335 if test -z "$lt_cv_aix_libpath__CXX"; then 14336 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14337 fi 14338fi 14339rm -f core conftest.err conftest.$ac_objext \ 14340 conftest$ac_exeext conftest.$ac_ext 14341 if test -z "$lt_cv_aix_libpath__CXX"; then 14342 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14343 fi 14344 14345fi 14346 14347 aix_libpath=$lt_cv_aix_libpath__CXX 14348fi 14349 14350 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14351 14352 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14353 else 14354 if test ia64 = "$host_cpu"; then 14355 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14356 allow_undefined_flag_CXX="-z nodefs" 14357 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" 14358 else 14359 # Determine the default libpath from the value encoded in an 14360 # empty executable. 14361 if test set = "${lt_cv_aix_libpath+set}"; then 14362 aix_libpath=$lt_cv_aix_libpath 14363else 14364 if ${lt_cv_aix_libpath__CXX+:} false; then : 14365 $as_echo_n "(cached) " >&6 14366else 14367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14368/* end confdefs.h. */ 14369 14370int 14371main () 14372{ 14373 14374 ; 14375 return 0; 14376} 14377_ACEOF 14378if ac_fn_cxx_try_link "$LINENO"; then : 14379 14380 lt_aix_libpath_sed=' 14381 /Import File Strings/,/^$/ { 14382 /^0/ { 14383 s/^0 *\([^ ]*\) *$/\1/ 14384 p 14385 } 14386 }' 14387 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14388 # Check for a 64-bit object if we didn't find anything. 14389 if test -z "$lt_cv_aix_libpath__CXX"; then 14390 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14391 fi 14392fi 14393rm -f core conftest.err conftest.$ac_objext \ 14394 conftest$ac_exeext conftest.$ac_ext 14395 if test -z "$lt_cv_aix_libpath__CXX"; then 14396 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14397 fi 14398 14399fi 14400 14401 aix_libpath=$lt_cv_aix_libpath__CXX 14402fi 14403 14404 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14405 # Warning - without using the other run time loading flags, 14406 # -berok will link without error, but may produce a broken library. 14407 no_undefined_flag_CXX=' $wl-bernotok' 14408 allow_undefined_flag_CXX=' $wl-berok' 14409 if test yes = "$with_gnu_ld"; then 14410 # We only use this code for GNU lds that support --whole-archive. 14411 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14412 else 14413 # Exported symbols can be pulled into shared objects from archives 14414 whole_archive_flag_spec_CXX='$convenience' 14415 fi 14416 archive_cmds_need_lc_CXX=yes 14417 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14418 # -brtl affects multiple linker settings, -berok does not and is overridden later 14419 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14420 if test svr4 != "$with_aix_soname"; then 14421 # This is similar to how AIX traditionally builds its shared 14422 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14423 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14424 fi 14425 if test aix != "$with_aix_soname"; then 14426 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14427 else 14428 # used by -dlpreopen to get the symbols 14429 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14430 fi 14431 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14432 fi 14433 fi 14434 ;; 14435 14436 beos*) 14437 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14438 allow_undefined_flag_CXX=unsupported 14439 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14440 # support --undefined. This deserves some investigation. FIXME 14441 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14442 else 14443 ld_shlibs_CXX=no 14444 fi 14445 ;; 14446 14447 chorus*) 14448 case $cc_basename in 14449 *) 14450 # FIXME: insert proper C++ library support 14451 ld_shlibs_CXX=no 14452 ;; 14453 esac 14454 ;; 14455 14456 cygwin* | mingw* | pw32* | cegcc*) 14457 case $GXX,$cc_basename in 14458 ,cl* | no,cl*) 14459 # Native MSVC 14460 # hardcode_libdir_flag_spec is actually meaningless, as there is 14461 # no search path for DLLs. 14462 hardcode_libdir_flag_spec_CXX=' ' 14463 allow_undefined_flag_CXX=unsupported 14464 always_export_symbols_CXX=yes 14465 file_list_spec_CXX='@' 14466 # Tell ltmain to make .lib files, not .a files. 14467 libext=lib 14468 # Tell ltmain to make .dll files, not .so files. 14469 shrext_cmds=.dll 14470 # FIXME: Setting linknames here is a bad hack. 14471 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14472 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14473 cp "$export_symbols" "$output_objdir/$soname.def"; 14474 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14475 else 14476 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14477 fi~ 14478 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14479 linknames=' 14480 # The linker will not automatically build a static lib if we build a DLL. 14481 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14482 enable_shared_with_static_runtimes_CXX=yes 14483 # Don't use ranlib 14484 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14485 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14486 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14487 case $lt_outputfile in 14488 *.exe|*.EXE) ;; 14489 *) 14490 lt_outputfile=$lt_outputfile.exe 14491 lt_tool_outputfile=$lt_tool_outputfile.exe 14492 ;; 14493 esac~ 14494 func_to_tool_file "$lt_outputfile"~ 14495 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14496 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14497 $RM "$lt_outputfile.manifest"; 14498 fi' 14499 ;; 14500 *) 14501 # g++ 14502 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14503 # as there is no search path for DLLs. 14504 hardcode_libdir_flag_spec_CXX='-L$libdir' 14505 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14506 allow_undefined_flag_CXX=unsupported 14507 always_export_symbols_CXX=no 14508 enable_shared_with_static_runtimes_CXX=yes 14509 14510 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14511 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' 14512 # If the export-symbols file already is a .def file, use it as 14513 # is; otherwise, prepend EXPORTS... 14514 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14515 cp $export_symbols $output_objdir/$soname.def; 14516 else 14517 echo EXPORTS > $output_objdir/$soname.def; 14518 cat $export_symbols >> $output_objdir/$soname.def; 14519 fi~ 14520 $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' 14521 else 14522 ld_shlibs_CXX=no 14523 fi 14524 ;; 14525 esac 14526 ;; 14527 darwin* | rhapsody*) 14528 14529 14530 archive_cmds_need_lc_CXX=no 14531 hardcode_direct_CXX=no 14532 hardcode_automatic_CXX=yes 14533 hardcode_shlibpath_var_CXX=unsupported 14534 if test yes = "$lt_cv_ld_force_load"; then 14535 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\"`' 14536 14537 else 14538 whole_archive_flag_spec_CXX='' 14539 fi 14540 link_all_deplibs_CXX=yes 14541 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14542 case $cc_basename in 14543 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14544 *) _lt_dar_can_shared=$GCC ;; 14545 esac 14546 if test yes = "$_lt_dar_can_shared"; then 14547 output_verbose_link_cmd=func_echo_all 14548 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" 14549 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14550 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" 14551 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" 14552 if test yes != "$lt_cv_apple_cc_single_mod"; then 14553 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" 14554 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" 14555 fi 14556 14557 else 14558 ld_shlibs_CXX=no 14559 fi 14560 14561 ;; 14562 14563 os2*) 14564 hardcode_libdir_flag_spec_CXX='-L$libdir' 14565 hardcode_minus_L_CXX=yes 14566 allow_undefined_flag_CXX=unsupported 14567 shrext_cmds=.dll 14568 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14569 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14570 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14571 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14572 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14573 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14574 emximp -o $lib $output_objdir/$libname.def' 14575 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14576 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14577 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14578 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14579 prefix_cmds="$SED"~ 14580 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14581 prefix_cmds="$prefix_cmds -e 1d"; 14582 fi~ 14583 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14584 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14585 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14586 emximp -o $lib $output_objdir/$libname.def' 14587 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14588 enable_shared_with_static_runtimes_CXX=yes 14589 ;; 14590 14591 dgux*) 14592 case $cc_basename in 14593 ec++*) 14594 # FIXME: insert proper C++ library support 14595 ld_shlibs_CXX=no 14596 ;; 14597 ghcx*) 14598 # Green Hills C++ Compiler 14599 # FIXME: insert proper C++ library support 14600 ld_shlibs_CXX=no 14601 ;; 14602 *) 14603 # FIXME: insert proper C++ library support 14604 ld_shlibs_CXX=no 14605 ;; 14606 esac 14607 ;; 14608 14609 freebsd2.*) 14610 # C++ shared libraries reported to be fairly broken before 14611 # switch to ELF 14612 ld_shlibs_CXX=no 14613 ;; 14614 14615 freebsd-elf*) 14616 archive_cmds_need_lc_CXX=no 14617 ;; 14618 14619 freebsd* | dragonfly*) 14620 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14621 # conventions 14622 ld_shlibs_CXX=yes 14623 ;; 14624 14625 haiku*) 14626 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14627 link_all_deplibs_CXX=yes 14628 ;; 14629 14630 hpux9*) 14631 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14632 hardcode_libdir_separator_CXX=: 14633 export_dynamic_flag_spec_CXX='$wl-E' 14634 hardcode_direct_CXX=yes 14635 hardcode_minus_L_CXX=yes # Not in the search PATH, 14636 # but as the default 14637 # location of the library. 14638 14639 case $cc_basename in 14640 CC*) 14641 # FIXME: insert proper C++ library support 14642 ld_shlibs_CXX=no 14643 ;; 14644 aCC*) 14645 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14646 # Commands to make compiler produce verbose output that lists 14647 # what "hidden" libraries, object files and flags are used when 14648 # linking a shared library. 14649 # 14650 # There doesn't appear to be a way to prevent this compiler from 14651 # explicitly linking system object files so we need to strip them 14652 # from the output so that they don't get included in the library 14653 # dependencies. 14654 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"' 14655 ;; 14656 *) 14657 if test yes = "$GXX"; then 14658 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14659 else 14660 # FIXME: insert proper C++ library support 14661 ld_shlibs_CXX=no 14662 fi 14663 ;; 14664 esac 14665 ;; 14666 14667 hpux10*|hpux11*) 14668 if test no = "$with_gnu_ld"; then 14669 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14670 hardcode_libdir_separator_CXX=: 14671 14672 case $host_cpu in 14673 hppa*64*|ia64*) 14674 ;; 14675 *) 14676 export_dynamic_flag_spec_CXX='$wl-E' 14677 ;; 14678 esac 14679 fi 14680 case $host_cpu in 14681 hppa*64*|ia64*) 14682 hardcode_direct_CXX=no 14683 hardcode_shlibpath_var_CXX=no 14684 ;; 14685 *) 14686 hardcode_direct_CXX=yes 14687 hardcode_direct_absolute_CXX=yes 14688 hardcode_minus_L_CXX=yes # Not in the search PATH, 14689 # but as the default 14690 # location of the library. 14691 ;; 14692 esac 14693 14694 case $cc_basename in 14695 CC*) 14696 # FIXME: insert proper C++ library support 14697 ld_shlibs_CXX=no 14698 ;; 14699 aCC*) 14700 case $host_cpu in 14701 hppa*64*) 14702 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14703 ;; 14704 ia64*) 14705 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14706 ;; 14707 *) 14708 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14709 ;; 14710 esac 14711 # Commands to make compiler produce verbose output that lists 14712 # what "hidden" libraries, object files and flags are used when 14713 # linking a shared library. 14714 # 14715 # There doesn't appear to be a way to prevent this compiler from 14716 # explicitly linking system object files so we need to strip them 14717 # from the output so that they don't get included in the library 14718 # dependencies. 14719 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"' 14720 ;; 14721 *) 14722 if test yes = "$GXX"; then 14723 if test no = "$with_gnu_ld"; then 14724 case $host_cpu in 14725 hppa*64*) 14726 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14727 ;; 14728 ia64*) 14729 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14730 ;; 14731 *) 14732 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' 14733 ;; 14734 esac 14735 fi 14736 else 14737 # FIXME: insert proper C++ library support 14738 ld_shlibs_CXX=no 14739 fi 14740 ;; 14741 esac 14742 ;; 14743 14744 interix[3-9]*) 14745 hardcode_direct_CXX=no 14746 hardcode_shlibpath_var_CXX=no 14747 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14748 export_dynamic_flag_spec_CXX='$wl-E' 14749 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14750 # Instead, shared libraries are loaded at an image base (0x10000000 by 14751 # default) and relocated if they conflict, which is a slow very memory 14752 # consuming and fragmenting process. To avoid this, we pick a random, 14753 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14754 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14755 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' 14756 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' 14757 ;; 14758 irix5* | irix6*) 14759 case $cc_basename in 14760 CC*) 14761 # SGI C++ 14762 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' 14763 14764 # Archives containing C++ object files must be created using 14765 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14766 # necessary to make sure instantiated templates are included 14767 # in the archive. 14768 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14769 ;; 14770 *) 14771 if test yes = "$GXX"; then 14772 if test no = "$with_gnu_ld"; then 14773 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' 14774 else 14775 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' 14776 fi 14777 fi 14778 link_all_deplibs_CXX=yes 14779 ;; 14780 esac 14781 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14782 hardcode_libdir_separator_CXX=: 14783 inherit_rpath_CXX=yes 14784 ;; 14785 14786 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14787 case $cc_basename in 14788 KCC*) 14789 # Kuck and Associates, Inc. (KAI) C++ Compiler 14790 14791 # KCC will only create a shared library if the output file 14792 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14793 # to its proper name (with version) after linking. 14794 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' 14795 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' 14796 # Commands to make compiler produce verbose output that lists 14797 # what "hidden" libraries, object files and flags are used when 14798 # linking a shared library. 14799 # 14800 # There doesn't appear to be a way to prevent this compiler from 14801 # explicitly linking system object files so we need to strip them 14802 # from the output so that they don't get included in the library 14803 # dependencies. 14804 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"' 14805 14806 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14807 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14808 14809 # Archives containing C++ object files must be created using 14810 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14811 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14812 ;; 14813 icpc* | ecpc* ) 14814 # Intel C++ 14815 with_gnu_ld=yes 14816 # version 8.0 and above of icpc choke on multiply defined symbols 14817 # if we add $predep_objects and $postdep_objects, however 7.1 and 14818 # earlier do not add the objects themselves. 14819 case `$CC -V 2>&1` in 14820 *"Version 7."*) 14821 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14822 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' 14823 ;; 14824 *) # Version 8.0 or newer 14825 tmp_idyn= 14826 case $host_cpu in 14827 ia64*) tmp_idyn=' -i_dynamic';; 14828 esac 14829 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14830 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' 14831 ;; 14832 esac 14833 archive_cmds_need_lc_CXX=no 14834 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14835 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14836 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14837 ;; 14838 pgCC* | pgcpp*) 14839 # Portland Group C++ compiler 14840 case `$CC -V` in 14841 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14842 prelink_cmds_CXX='tpldir=Template.dir~ 14843 rm -rf $tpldir~ 14844 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14845 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14846 old_archive_cmds_CXX='tpldir=Template.dir~ 14847 rm -rf $tpldir~ 14848 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14849 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14850 $RANLIB $oldlib' 14851 archive_cmds_CXX='tpldir=Template.dir~ 14852 rm -rf $tpldir~ 14853 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14854 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14855 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14856 rm -rf $tpldir~ 14857 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14858 $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' 14859 ;; 14860 *) # Version 6 and above use weak symbols 14861 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14862 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' 14863 ;; 14864 esac 14865 14866 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14867 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14868 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' 14869 ;; 14870 cxx*) 14871 # Compaq C++ 14872 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14873 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' 14874 14875 runpath_var=LD_RUN_PATH 14876 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14877 hardcode_libdir_separator_CXX=: 14878 14879 # Commands to make compiler produce verbose output that lists 14880 # what "hidden" libraries, object files and flags are used when 14881 # linking a shared library. 14882 # 14883 # There doesn't appear to be a way to prevent this compiler from 14884 # explicitly linking system object files so we need to strip them 14885 # from the output so that they don't get included in the library 14886 # dependencies. 14887 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' 14888 ;; 14889 xl* | mpixl* | bgxl*) 14890 # IBM XL 8.0 on PPC, with GNU ld 14891 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14892 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14893 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14894 if test yes = "$supports_anon_versioning"; then 14895 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14896 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14897 echo "local: *; };" >> $output_objdir/$libname.ver~ 14898 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14899 fi 14900 ;; 14901 *) 14902 case `$CC -V 2>&1 | sed 5q` in 14903 *Sun\ C*) 14904 # Sun C++ 5.9 14905 no_undefined_flag_CXX=' -zdefs' 14906 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14907 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' 14908 hardcode_libdir_flag_spec_CXX='-R$libdir' 14909 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' 14910 compiler_needs_object_CXX=yes 14911 14912 # Not sure whether something based on 14913 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14914 # would be better. 14915 output_verbose_link_cmd='func_echo_all' 14916 14917 # Archives containing C++ object files must be created using 14918 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14919 # necessary to make sure instantiated templates are included 14920 # in the archive. 14921 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14922 ;; 14923 esac 14924 ;; 14925 esac 14926 ;; 14927 14928 lynxos*) 14929 # FIXME: insert proper C++ library support 14930 ld_shlibs_CXX=no 14931 ;; 14932 14933 m88k*) 14934 # FIXME: insert proper C++ library support 14935 ld_shlibs_CXX=no 14936 ;; 14937 14938 mvs*) 14939 case $cc_basename in 14940 cxx*) 14941 # FIXME: insert proper C++ library support 14942 ld_shlibs_CXX=no 14943 ;; 14944 *) 14945 # FIXME: insert proper C++ library support 14946 ld_shlibs_CXX=no 14947 ;; 14948 esac 14949 ;; 14950 14951 netbsd*) 14952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14953 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14954 wlarc= 14955 hardcode_libdir_flag_spec_CXX='-R$libdir' 14956 hardcode_direct_CXX=yes 14957 hardcode_shlibpath_var_CXX=no 14958 fi 14959 # Workaround some broken pre-1.5 toolchains 14960 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14961 ;; 14962 14963 *nto* | *qnx*) 14964 ld_shlibs_CXX=yes 14965 ;; 14966 14967 openbsd* | bitrig*) 14968 if test -f /usr/libexec/ld.so; then 14969 hardcode_direct_CXX=yes 14970 hardcode_shlibpath_var_CXX=no 14971 hardcode_direct_absolute_CXX=yes 14972 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14973 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14974 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14975 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14976 export_dynamic_flag_spec_CXX='$wl-E' 14977 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14978 fi 14979 output_verbose_link_cmd=func_echo_all 14980 else 14981 ld_shlibs_CXX=no 14982 fi 14983 ;; 14984 14985 osf3* | osf4* | osf5*) 14986 case $cc_basename in 14987 KCC*) 14988 # Kuck and Associates, Inc. (KAI) C++ Compiler 14989 14990 # KCC will only create a shared library if the output file 14991 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14992 # to its proper name (with version) after linking. 14993 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' 14994 14995 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14996 hardcode_libdir_separator_CXX=: 14997 14998 # Archives containing C++ object files must be created using 14999 # the KAI C++ compiler. 15000 case $host in 15001 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15002 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15003 esac 15004 ;; 15005 RCC*) 15006 # Rational C++ 2.4.1 15007 # FIXME: insert proper C++ library support 15008 ld_shlibs_CXX=no 15009 ;; 15010 cxx*) 15011 case $host in 15012 osf3*) 15013 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15014 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' 15015 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15016 ;; 15017 *) 15018 allow_undefined_flag_CXX=' -expect_unresolved \*' 15019 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' 15020 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15021 echo "-hidden">> $lib.exp~ 15022 $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~ 15023 $RM $lib.exp' 15024 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15025 ;; 15026 esac 15027 15028 hardcode_libdir_separator_CXX=: 15029 15030 # Commands to make compiler produce verbose output that lists 15031 # what "hidden" libraries, object files and flags are used when 15032 # linking a shared library. 15033 # 15034 # There doesn't appear to be a way to prevent this compiler from 15035 # explicitly linking system object files so we need to strip them 15036 # from the output so that they don't get included in the library 15037 # dependencies. 15038 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"' 15039 ;; 15040 *) 15041 if test yes,no = "$GXX,$with_gnu_ld"; then 15042 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15043 case $host in 15044 osf3*) 15045 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' 15046 ;; 15047 *) 15048 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' 15049 ;; 15050 esac 15051 15052 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15053 hardcode_libdir_separator_CXX=: 15054 15055 # Commands to make compiler produce verbose output that lists 15056 # what "hidden" libraries, object files and flags are used when 15057 # linking a shared library. 15058 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15059 15060 else 15061 # FIXME: insert proper C++ library support 15062 ld_shlibs_CXX=no 15063 fi 15064 ;; 15065 esac 15066 ;; 15067 15068 psos*) 15069 # FIXME: insert proper C++ library support 15070 ld_shlibs_CXX=no 15071 ;; 15072 15073 sunos4*) 15074 case $cc_basename in 15075 CC*) 15076 # Sun C++ 4.x 15077 # FIXME: insert proper C++ library support 15078 ld_shlibs_CXX=no 15079 ;; 15080 lcc*) 15081 # Lucid 15082 # FIXME: insert proper C++ library support 15083 ld_shlibs_CXX=no 15084 ;; 15085 *) 15086 # FIXME: insert proper C++ library support 15087 ld_shlibs_CXX=no 15088 ;; 15089 esac 15090 ;; 15091 15092 solaris*) 15093 case $cc_basename in 15094 CC* | sunCC*) 15095 # Sun C++ 4.2, 5.x and Centerline C++ 15096 archive_cmds_need_lc_CXX=yes 15097 no_undefined_flag_CXX=' -zdefs' 15098 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15099 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15100 $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' 15101 15102 hardcode_libdir_flag_spec_CXX='-R$libdir' 15103 hardcode_shlibpath_var_CXX=no 15104 case $host_os in 15105 solaris2.[0-5] | solaris2.[0-5].*) ;; 15106 *) 15107 # The compiler driver will combine and reorder linker options, 15108 # but understands '-z linker_flag'. 15109 # Supported since Solaris 2.6 (maybe 2.5.1?) 15110 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15111 ;; 15112 esac 15113 link_all_deplibs_CXX=yes 15114 15115 output_verbose_link_cmd='func_echo_all' 15116 15117 # Archives containing C++ object files must be created using 15118 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15119 # necessary to make sure instantiated templates are included 15120 # in the archive. 15121 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15122 ;; 15123 gcx*) 15124 # Green Hills C++ Compiler 15125 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15126 15127 # The C++ compiler must be used to create the archive. 15128 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15129 ;; 15130 *) 15131 # GNU C++ compiler with Solaris linker 15132 if test yes,no = "$GXX,$with_gnu_ld"; then 15133 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15134 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15135 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15136 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15137 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15138 15139 # Commands to make compiler produce verbose output that lists 15140 # what "hidden" libraries, object files and flags are used when 15141 # linking a shared library. 15142 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15143 else 15144 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15145 # platform. 15146 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15147 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15148 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15149 15150 # Commands to make compiler produce verbose output that lists 15151 # what "hidden" libraries, object files and flags are used when 15152 # linking a shared library. 15153 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15154 fi 15155 15156 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15157 case $host_os in 15158 solaris2.[0-5] | solaris2.[0-5].*) ;; 15159 *) 15160 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15161 ;; 15162 esac 15163 fi 15164 ;; 15165 esac 15166 ;; 15167 15168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15169 no_undefined_flag_CXX='$wl-z,text' 15170 archive_cmds_need_lc_CXX=no 15171 hardcode_shlibpath_var_CXX=no 15172 runpath_var='LD_RUN_PATH' 15173 15174 case $cc_basename in 15175 CC*) 15176 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15177 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15178 ;; 15179 *) 15180 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15181 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15182 ;; 15183 esac 15184 ;; 15185 15186 sysv5* | sco3.2v5* | sco5v6*) 15187 # Note: We CANNOT use -z defs as we might desire, because we do not 15188 # link with -lc, and that would cause any symbols used from libc to 15189 # always be unresolved, which means just about no library would 15190 # ever link correctly. If we're not using GNU ld we use -z text 15191 # though, which does catch some bad symbols but isn't as heavy-handed 15192 # as -z defs. 15193 no_undefined_flag_CXX='$wl-z,text' 15194 allow_undefined_flag_CXX='$wl-z,nodefs' 15195 archive_cmds_need_lc_CXX=no 15196 hardcode_shlibpath_var_CXX=no 15197 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15198 hardcode_libdir_separator_CXX=':' 15199 link_all_deplibs_CXX=yes 15200 export_dynamic_flag_spec_CXX='$wl-Bexport' 15201 runpath_var='LD_RUN_PATH' 15202 15203 case $cc_basename in 15204 CC*) 15205 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15206 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15207 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15208 '"$old_archive_cmds_CXX" 15209 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15210 '"$reload_cmds_CXX" 15211 ;; 15212 *) 15213 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15214 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15215 ;; 15216 esac 15217 ;; 15218 15219 tandem*) 15220 case $cc_basename in 15221 NCC*) 15222 # NonStop-UX NCC 3.20 15223 # FIXME: insert proper C++ library support 15224 ld_shlibs_CXX=no 15225 ;; 15226 *) 15227 # FIXME: insert proper C++ library support 15228 ld_shlibs_CXX=no 15229 ;; 15230 esac 15231 ;; 15232 15233 vxworks*) 15234 # FIXME: insert proper C++ library support 15235 ld_shlibs_CXX=no 15236 ;; 15237 15238 *) 15239 # FIXME: insert proper C++ library support 15240 ld_shlibs_CXX=no 15241 ;; 15242 esac 15243 15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15245$as_echo "$ld_shlibs_CXX" >&6; } 15246 test no = "$ld_shlibs_CXX" && can_build_shared=no 15247 15248 GCC_CXX=$GXX 15249 LD_CXX=$LD 15250 15251 ## CAVEAT EMPTOR: 15252 ## There is no encapsulation within the following macros, do not change 15253 ## the running order or otherwise move them around unless you know exactly 15254 ## what you are doing... 15255 # Dependencies to place before and after the object being linked: 15256predep_objects_CXX= 15257postdep_objects_CXX= 15258predeps_CXX= 15259postdeps_CXX= 15260compiler_lib_search_path_CXX= 15261 15262cat > conftest.$ac_ext <<_LT_EOF 15263class Foo 15264{ 15265public: 15266 Foo (void) { a = 0; } 15267private: 15268 int a; 15269}; 15270_LT_EOF 15271 15272 15273_lt_libdeps_save_CFLAGS=$CFLAGS 15274case "$CC $CFLAGS " in #( 15275*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15276*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15277*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15278esac 15279 15280if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15281 (eval $ac_compile) 2>&5 15282 ac_status=$? 15283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15284 test $ac_status = 0; }; then 15285 # Parse the compiler output and extract the necessary 15286 # objects, libraries and library flags. 15287 15288 # Sentinel used to keep track of whether or not we are before 15289 # the conftest object file. 15290 pre_test_object_deps_done=no 15291 15292 for p in `eval "$output_verbose_link_cmd"`; do 15293 case $prev$p in 15294 15295 -L* | -R* | -l*) 15296 # Some compilers place space between "-{L,R}" and the path. 15297 # Remove the space. 15298 if test x-L = "$p" || 15299 test x-R = "$p"; then 15300 prev=$p 15301 continue 15302 fi 15303 15304 # Expand the sysroot to ease extracting the directories later. 15305 if test -z "$prev"; then 15306 case $p in 15307 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15308 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15309 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15310 esac 15311 fi 15312 case $p in 15313 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15314 esac 15315 if test no = "$pre_test_object_deps_done"; then 15316 case $prev in 15317 -L | -R) 15318 # Internal compiler library paths should come after those 15319 # provided the user. The postdeps already come after the 15320 # user supplied libs so there is no need to process them. 15321 if test -z "$compiler_lib_search_path_CXX"; then 15322 compiler_lib_search_path_CXX=$prev$p 15323 else 15324 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15325 fi 15326 ;; 15327 # The "-l" case would never come before the object being 15328 # linked, so don't bother handling this case. 15329 esac 15330 else 15331 if test -z "$postdeps_CXX"; then 15332 postdeps_CXX=$prev$p 15333 else 15334 postdeps_CXX="${postdeps_CXX} $prev$p" 15335 fi 15336 fi 15337 prev= 15338 ;; 15339 15340 *.lto.$objext) ;; # Ignore GCC LTO objects 15341 *.$objext) 15342 # This assumes that the test object file only shows up 15343 # once in the compiler output. 15344 if test "$p" = "conftest.$objext"; then 15345 pre_test_object_deps_done=yes 15346 continue 15347 fi 15348 15349 if test no = "$pre_test_object_deps_done"; then 15350 if test -z "$predep_objects_CXX"; then 15351 predep_objects_CXX=$p 15352 else 15353 predep_objects_CXX="$predep_objects_CXX $p" 15354 fi 15355 else 15356 if test -z "$postdep_objects_CXX"; then 15357 postdep_objects_CXX=$p 15358 else 15359 postdep_objects_CXX="$postdep_objects_CXX $p" 15360 fi 15361 fi 15362 ;; 15363 15364 *) ;; # Ignore the rest. 15365 15366 esac 15367 done 15368 15369 # Clean up. 15370 rm -f a.out a.exe 15371else 15372 echo "libtool.m4: error: problem compiling CXX test program" 15373fi 15374 15375$RM -f confest.$objext 15376CFLAGS=$_lt_libdeps_save_CFLAGS 15377 15378# PORTME: override above test on systems where it is broken 15379case $host_os in 15380interix[3-9]*) 15381 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15382 # hack all around it, let's just trust "g++" to DTRT. 15383 predep_objects_CXX= 15384 postdep_objects_CXX= 15385 postdeps_CXX= 15386 ;; 15387esac 15388 15389 15390case " $postdeps_CXX " in 15391*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15392esac 15393 compiler_lib_search_dirs_CXX= 15394if test -n "${compiler_lib_search_path_CXX}"; then 15395 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15396fi 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 lt_prog_compiler_wl_CXX= 15429lt_prog_compiler_pic_CXX= 15430lt_prog_compiler_static_CXX= 15431 15432 15433 # C++ specific cases for pic, static, wl, etc. 15434 if test yes = "$GXX"; then 15435 lt_prog_compiler_wl_CXX='-Wl,' 15436 lt_prog_compiler_static_CXX='-static' 15437 15438 case $host_os in 15439 aix*) 15440 # All AIX code is PIC. 15441 if test ia64 = "$host_cpu"; then 15442 # AIX 5 now supports IA64 processor 15443 lt_prog_compiler_static_CXX='-Bstatic' 15444 fi 15445 lt_prog_compiler_pic_CXX='-fPIC' 15446 ;; 15447 15448 amigaos*) 15449 case $host_cpu in 15450 powerpc) 15451 # see comment about AmigaOS4 .so support 15452 lt_prog_compiler_pic_CXX='-fPIC' 15453 ;; 15454 m68k) 15455 # FIXME: we need at least 68020 code to build shared libraries, but 15456 # adding the '-m68020' flag to GCC prevents building anything better, 15457 # like '-m68040'. 15458 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15459 ;; 15460 esac 15461 ;; 15462 15463 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15464 # PIC is the default for these OSes. 15465 ;; 15466 mingw* | cygwin* | os2* | pw32* | cegcc*) 15467 # This hack is so that the source file can tell whether it is being 15468 # built for inclusion in a dll (and should export symbols for example). 15469 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15470 # (--disable-auto-import) libraries 15471 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15472 case $host_os in 15473 os2*) 15474 lt_prog_compiler_static_CXX='$wl-static' 15475 ;; 15476 esac 15477 ;; 15478 darwin* | rhapsody*) 15479 # PIC is the default on this platform 15480 # Common symbols not allowed in MH_DYLIB files 15481 lt_prog_compiler_pic_CXX='-fno-common' 15482 ;; 15483 *djgpp*) 15484 # DJGPP does not support shared libraries at all 15485 lt_prog_compiler_pic_CXX= 15486 ;; 15487 haiku*) 15488 # PIC is the default for Haiku. 15489 # The "-static" flag exists, but is broken. 15490 lt_prog_compiler_static_CXX= 15491 ;; 15492 interix[3-9]*) 15493 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15494 # Instead, we relocate shared libraries at runtime. 15495 ;; 15496 sysv4*MP*) 15497 if test -d /usr/nec; then 15498 lt_prog_compiler_pic_CXX=-Kconform_pic 15499 fi 15500 ;; 15501 hpux*) 15502 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15503 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15504 # sets the default TLS model and affects inlining. 15505 case $host_cpu in 15506 hppa*64*) 15507 ;; 15508 *) 15509 lt_prog_compiler_pic_CXX='-fPIC' 15510 ;; 15511 esac 15512 ;; 15513 *qnx* | *nto*) 15514 # QNX uses GNU C++, but need to define -shared option too, otherwise 15515 # it will coredump. 15516 lt_prog_compiler_pic_CXX='-fPIC -shared' 15517 ;; 15518 *) 15519 lt_prog_compiler_pic_CXX='-fPIC' 15520 ;; 15521 esac 15522 else 15523 case $host_os in 15524 aix[4-9]*) 15525 # All AIX code is PIC. 15526 if test ia64 = "$host_cpu"; then 15527 # AIX 5 now supports IA64 processor 15528 lt_prog_compiler_static_CXX='-Bstatic' 15529 else 15530 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15531 fi 15532 ;; 15533 chorus*) 15534 case $cc_basename in 15535 cxch68*) 15536 # Green Hills C++ Compiler 15537 # _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" 15538 ;; 15539 esac 15540 ;; 15541 mingw* | cygwin* | os2* | pw32* | cegcc*) 15542 # This hack is so that the source file can tell whether it is being 15543 # built for inclusion in a dll (and should export symbols for example). 15544 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15545 ;; 15546 dgux*) 15547 case $cc_basename in 15548 ec++*) 15549 lt_prog_compiler_pic_CXX='-KPIC' 15550 ;; 15551 ghcx*) 15552 # Green Hills C++ Compiler 15553 lt_prog_compiler_pic_CXX='-pic' 15554 ;; 15555 *) 15556 ;; 15557 esac 15558 ;; 15559 freebsd* | dragonfly*) 15560 # FreeBSD uses GNU C++ 15561 ;; 15562 hpux9* | hpux10* | hpux11*) 15563 case $cc_basename in 15564 CC*) 15565 lt_prog_compiler_wl_CXX='-Wl,' 15566 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15567 if test ia64 != "$host_cpu"; then 15568 lt_prog_compiler_pic_CXX='+Z' 15569 fi 15570 ;; 15571 aCC*) 15572 lt_prog_compiler_wl_CXX='-Wl,' 15573 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15574 case $host_cpu in 15575 hppa*64*|ia64*) 15576 # +Z the default 15577 ;; 15578 *) 15579 lt_prog_compiler_pic_CXX='+Z' 15580 ;; 15581 esac 15582 ;; 15583 *) 15584 ;; 15585 esac 15586 ;; 15587 interix*) 15588 # This is c89, which is MS Visual C++ (no shared libs) 15589 # Anyone wants to do a port? 15590 ;; 15591 irix5* | irix6* | nonstopux*) 15592 case $cc_basename in 15593 CC*) 15594 lt_prog_compiler_wl_CXX='-Wl,' 15595 lt_prog_compiler_static_CXX='-non_shared' 15596 # CC pic flag -KPIC is the default. 15597 ;; 15598 *) 15599 ;; 15600 esac 15601 ;; 15602 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15603 case $cc_basename in 15604 KCC*) 15605 # KAI C++ Compiler 15606 lt_prog_compiler_wl_CXX='--backend -Wl,' 15607 lt_prog_compiler_pic_CXX='-fPIC' 15608 ;; 15609 ecpc* ) 15610 # old Intel C++ for x86_64, which still supported -KPIC. 15611 lt_prog_compiler_wl_CXX='-Wl,' 15612 lt_prog_compiler_pic_CXX='-KPIC' 15613 lt_prog_compiler_static_CXX='-static' 15614 ;; 15615 icpc* ) 15616 # Intel C++, used to be incompatible with GCC. 15617 # ICC 10 doesn't accept -KPIC any more. 15618 lt_prog_compiler_wl_CXX='-Wl,' 15619 lt_prog_compiler_pic_CXX='-fPIC' 15620 lt_prog_compiler_static_CXX='-static' 15621 ;; 15622 pgCC* | pgcpp*) 15623 # Portland Group C++ compiler 15624 lt_prog_compiler_wl_CXX='-Wl,' 15625 lt_prog_compiler_pic_CXX='-fpic' 15626 lt_prog_compiler_static_CXX='-Bstatic' 15627 ;; 15628 cxx*) 15629 # Compaq C++ 15630 # Make sure the PIC flag is empty. It appears that all Alpha 15631 # Linux and Compaq Tru64 Unix objects are PIC. 15632 lt_prog_compiler_pic_CXX= 15633 lt_prog_compiler_static_CXX='-non_shared' 15634 ;; 15635 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15636 # IBM XL 8.0, 9.0 on PPC and BlueGene 15637 lt_prog_compiler_wl_CXX='-Wl,' 15638 lt_prog_compiler_pic_CXX='-qpic' 15639 lt_prog_compiler_static_CXX='-qstaticlink' 15640 ;; 15641 *) 15642 case `$CC -V 2>&1 | sed 5q` in 15643 *Sun\ C*) 15644 # Sun C++ 5.9 15645 lt_prog_compiler_pic_CXX='-KPIC' 15646 lt_prog_compiler_static_CXX='-Bstatic' 15647 lt_prog_compiler_wl_CXX='-Qoption ld ' 15648 ;; 15649 esac 15650 ;; 15651 esac 15652 ;; 15653 lynxos*) 15654 ;; 15655 m88k*) 15656 ;; 15657 mvs*) 15658 case $cc_basename in 15659 cxx*) 15660 lt_prog_compiler_pic_CXX='-W c,exportall' 15661 ;; 15662 *) 15663 ;; 15664 esac 15665 ;; 15666 netbsd*) 15667 ;; 15668 *qnx* | *nto*) 15669 # QNX uses GNU C++, but need to define -shared option too, otherwise 15670 # it will coredump. 15671 lt_prog_compiler_pic_CXX='-fPIC -shared' 15672 ;; 15673 osf3* | osf4* | osf5*) 15674 case $cc_basename in 15675 KCC*) 15676 lt_prog_compiler_wl_CXX='--backend -Wl,' 15677 ;; 15678 RCC*) 15679 # Rational C++ 2.4.1 15680 lt_prog_compiler_pic_CXX='-pic' 15681 ;; 15682 cxx*) 15683 # Digital/Compaq C++ 15684 lt_prog_compiler_wl_CXX='-Wl,' 15685 # Make sure the PIC flag is empty. It appears that all Alpha 15686 # Linux and Compaq Tru64 Unix objects are PIC. 15687 lt_prog_compiler_pic_CXX= 15688 lt_prog_compiler_static_CXX='-non_shared' 15689 ;; 15690 *) 15691 ;; 15692 esac 15693 ;; 15694 psos*) 15695 ;; 15696 solaris*) 15697 case $cc_basename in 15698 CC* | sunCC*) 15699 # Sun C++ 4.2, 5.x and Centerline C++ 15700 lt_prog_compiler_pic_CXX='-KPIC' 15701 lt_prog_compiler_static_CXX='-Bstatic' 15702 lt_prog_compiler_wl_CXX='-Qoption ld ' 15703 ;; 15704 gcx*) 15705 # Green Hills C++ Compiler 15706 lt_prog_compiler_pic_CXX='-PIC' 15707 ;; 15708 *) 15709 ;; 15710 esac 15711 ;; 15712 sunos4*) 15713 case $cc_basename in 15714 CC*) 15715 # Sun C++ 4.x 15716 lt_prog_compiler_pic_CXX='-pic' 15717 lt_prog_compiler_static_CXX='-Bstatic' 15718 ;; 15719 lcc*) 15720 # Lucid 15721 lt_prog_compiler_pic_CXX='-pic' 15722 ;; 15723 *) 15724 ;; 15725 esac 15726 ;; 15727 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15728 case $cc_basename in 15729 CC*) 15730 lt_prog_compiler_wl_CXX='-Wl,' 15731 lt_prog_compiler_pic_CXX='-KPIC' 15732 lt_prog_compiler_static_CXX='-Bstatic' 15733 ;; 15734 esac 15735 ;; 15736 tandem*) 15737 case $cc_basename in 15738 NCC*) 15739 # NonStop-UX NCC 3.20 15740 lt_prog_compiler_pic_CXX='-KPIC' 15741 ;; 15742 *) 15743 ;; 15744 esac 15745 ;; 15746 vxworks*) 15747 ;; 15748 *) 15749 lt_prog_compiler_can_build_shared_CXX=no 15750 ;; 15751 esac 15752 fi 15753 15754case $host_os in 15755 # For platforms that do not support PIC, -DPIC is meaningless: 15756 *djgpp*) 15757 lt_prog_compiler_pic_CXX= 15758 ;; 15759 *) 15760 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15761 ;; 15762esac 15763 15764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15765$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15766if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15767 $as_echo_n "(cached) " >&6 15768else 15769 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15770fi 15771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15772$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15773lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15774 15775# 15776# Check to make sure the PIC flag actually works. 15777# 15778if test -n "$lt_prog_compiler_pic_CXX"; then 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15780$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15781if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15782 $as_echo_n "(cached) " >&6 15783else 15784 lt_cv_prog_compiler_pic_works_CXX=no 15785 ac_outfile=conftest.$ac_objext 15786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15787 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15788 # Insert the option either (1) after the last *FLAGS variable, or 15789 # (2) before a word containing "conftest.", or (3) at the end. 15790 # Note that $ac_compile itself does not contain backslashes and begins 15791 # with a dollar sign (not a hyphen), so the echo should work correctly. 15792 # The option is referenced via a variable to avoid confusing sed. 15793 lt_compile=`echo "$ac_compile" | $SED \ 15794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15796 -e 's:$: $lt_compiler_flag:'` 15797 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15798 (eval "$lt_compile" 2>conftest.err) 15799 ac_status=$? 15800 cat conftest.err >&5 15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15802 if (exit $ac_status) && test -s "$ac_outfile"; then 15803 # The compiler can only warn and ignore the option if not recognized 15804 # So say no if there are warnings other than the usual output. 15805 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15807 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15808 lt_cv_prog_compiler_pic_works_CXX=yes 15809 fi 15810 fi 15811 $RM conftest* 15812 15813fi 15814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15815$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15816 15817if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15818 case $lt_prog_compiler_pic_CXX in 15819 "" | " "*) ;; 15820 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15821 esac 15822else 15823 lt_prog_compiler_pic_CXX= 15824 lt_prog_compiler_can_build_shared_CXX=no 15825fi 15826 15827fi 15828 15829 15830 15831 15832 15833# 15834# Check to make sure the static flag actually works. 15835# 15836wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15838$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15839if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15840 $as_echo_n "(cached) " >&6 15841else 15842 lt_cv_prog_compiler_static_works_CXX=no 15843 save_LDFLAGS=$LDFLAGS 15844 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15845 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15846 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15847 # The linker can only warn and ignore the option if not recognized 15848 # So say no if there are warnings 15849 if test -s conftest.err; then 15850 # Append any errors to the config.log. 15851 cat conftest.err 1>&5 15852 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15854 if diff conftest.exp conftest.er2 >/dev/null; then 15855 lt_cv_prog_compiler_static_works_CXX=yes 15856 fi 15857 else 15858 lt_cv_prog_compiler_static_works_CXX=yes 15859 fi 15860 fi 15861 $RM -r conftest* 15862 LDFLAGS=$save_LDFLAGS 15863 15864fi 15865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15866$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15867 15868if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15869 : 15870else 15871 lt_prog_compiler_static_CXX= 15872fi 15873 15874 15875 15876 15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15878$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15879if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15880 $as_echo_n "(cached) " >&6 15881else 15882 lt_cv_prog_compiler_c_o_CXX=no 15883 $RM -r conftest 2>/dev/null 15884 mkdir conftest 15885 cd conftest 15886 mkdir out 15887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15888 15889 lt_compiler_flag="-o out/conftest2.$ac_objext" 15890 # Insert the option either (1) after the last *FLAGS variable, or 15891 # (2) before a word containing "conftest.", or (3) at the end. 15892 # Note that $ac_compile itself does not contain backslashes and begins 15893 # with a dollar sign (not a hyphen), so the echo should work correctly. 15894 lt_compile=`echo "$ac_compile" | $SED \ 15895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15897 -e 's:$: $lt_compiler_flag:'` 15898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15899 (eval "$lt_compile" 2>out/conftest.err) 15900 ac_status=$? 15901 cat out/conftest.err >&5 15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15903 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15904 then 15905 # The compiler can only warn and ignore the option if not recognized 15906 # So say no if there are warnings 15907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15908 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15909 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15910 lt_cv_prog_compiler_c_o_CXX=yes 15911 fi 15912 fi 15913 chmod u+w . 2>&5 15914 $RM conftest* 15915 # SGI C++ compiler will create directory out/ii_files/ for 15916 # template instantiation 15917 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15918 $RM out/* && rmdir out 15919 cd .. 15920 $RM -r conftest 15921 $RM conftest* 15922 15923fi 15924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15925$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15926 15927 15928 15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15930$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15931if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15932 $as_echo_n "(cached) " >&6 15933else 15934 lt_cv_prog_compiler_c_o_CXX=no 15935 $RM -r conftest 2>/dev/null 15936 mkdir conftest 15937 cd conftest 15938 mkdir out 15939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15940 15941 lt_compiler_flag="-o out/conftest2.$ac_objext" 15942 # Insert the option either (1) after the last *FLAGS variable, or 15943 # (2) before a word containing "conftest.", or (3) at the end. 15944 # Note that $ac_compile itself does not contain backslashes and begins 15945 # with a dollar sign (not a hyphen), so the echo should work correctly. 15946 lt_compile=`echo "$ac_compile" | $SED \ 15947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15949 -e 's:$: $lt_compiler_flag:'` 15950 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15951 (eval "$lt_compile" 2>out/conftest.err) 15952 ac_status=$? 15953 cat out/conftest.err >&5 15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15955 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15956 then 15957 # The compiler can only warn and ignore the option if not recognized 15958 # So say no if there are warnings 15959 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15960 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15961 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15962 lt_cv_prog_compiler_c_o_CXX=yes 15963 fi 15964 fi 15965 chmod u+w . 2>&5 15966 $RM conftest* 15967 # SGI C++ compiler will create directory out/ii_files/ for 15968 # template instantiation 15969 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15970 $RM out/* && rmdir out 15971 cd .. 15972 $RM -r conftest 15973 $RM conftest* 15974 15975fi 15976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15977$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15978 15979 15980 15981 15982hard_links=nottested 15983if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15984 # do not overwrite the value of need_locks provided by the user 15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15986$as_echo_n "checking if we can lock with hard links... " >&6; } 15987 hard_links=yes 15988 $RM conftest* 15989 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15990 touch conftest.a 15991 ln conftest.a conftest.b 2>&5 || hard_links=no 15992 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15994$as_echo "$hard_links" >&6; } 15995 if test no = "$hard_links"; then 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15997$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15998 need_locks=warn 15999 fi 16000else 16001 need_locks=no 16002fi 16003 16004 16005 16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16007$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16008 16009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16010 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16011 case $host_os in 16012 aix[4-9]*) 16013 # If we're using GNU nm, then we don't want the "-C" option. 16014 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16015 # Without the "-l" option, or with the "-B" option, AIX nm treats 16016 # weak defined symbols like other global defined symbols, whereas 16017 # GNU nm marks them as "W". 16018 # While the 'weak' keyword is ignored in the Export File, we need 16019 # it in the Import File for the 'aix-soname' feature, so we have 16020 # to replace the "-B" option with "-P" for AIX nm. 16021 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16022 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 16023 else 16024 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16025 fi 16026 ;; 16027 pw32*) 16028 export_symbols_cmds_CXX=$ltdll_cmds 16029 ;; 16030 cygwin* | mingw* | cegcc*) 16031 case $cc_basename in 16032 cl*) 16033 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16034 ;; 16035 *) 16036 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' 16037 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16038 ;; 16039 esac 16040 ;; 16041 *) 16042 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16043 ;; 16044 esac 16045 16046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16047$as_echo "$ld_shlibs_CXX" >&6; } 16048test no = "$ld_shlibs_CXX" && can_build_shared=no 16049 16050with_gnu_ld_CXX=$with_gnu_ld 16051 16052 16053 16054 16055 16056 16057# 16058# Do we need to explicitly link libc? 16059# 16060case "x$archive_cmds_need_lc_CXX" in 16061x|xyes) 16062 # Assume -lc should be added 16063 archive_cmds_need_lc_CXX=yes 16064 16065 if test yes,yes = "$GCC,$enable_shared"; then 16066 case $archive_cmds_CXX in 16067 *'~'*) 16068 # FIXME: we may have to deal with multi-command sequences. 16069 ;; 16070 '$CC '*) 16071 # Test whether the compiler implicitly links with -lc since on some 16072 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16073 # to ld, don't add -lc before -lgcc. 16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16075$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16076if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16077 $as_echo_n "(cached) " >&6 16078else 16079 $RM conftest* 16080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16081 16082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16083 (eval $ac_compile) 2>&5 16084 ac_status=$? 16085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16086 test $ac_status = 0; } 2>conftest.err; then 16087 soname=conftest 16088 lib=conftest 16089 libobjs=conftest.$ac_objext 16090 deplibs= 16091 wl=$lt_prog_compiler_wl_CXX 16092 pic_flag=$lt_prog_compiler_pic_CXX 16093 compiler_flags=-v 16094 linker_flags=-v 16095 verstring= 16096 output_objdir=. 16097 libname=conftest 16098 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16099 allow_undefined_flag_CXX= 16100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16101 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16102 ac_status=$? 16103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16104 test $ac_status = 0; } 16105 then 16106 lt_cv_archive_cmds_need_lc_CXX=no 16107 else 16108 lt_cv_archive_cmds_need_lc_CXX=yes 16109 fi 16110 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16111 else 16112 cat conftest.err 1>&5 16113 fi 16114 $RM conftest* 16115 16116fi 16117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16118$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16119 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16120 ;; 16121 esac 16122 fi 16123 ;; 16124esac 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16188$as_echo_n "checking dynamic linker characteristics... " >&6; } 16189 16190library_names_spec= 16191libname_spec='lib$name' 16192soname_spec= 16193shrext_cmds=.so 16194postinstall_cmds= 16195postuninstall_cmds= 16196finish_cmds= 16197finish_eval= 16198shlibpath_var= 16199shlibpath_overrides_runpath=unknown 16200version_type=none 16201dynamic_linker="$host_os ld.so" 16202sys_lib_dlsearch_path_spec="/lib /usr/lib" 16203need_lib_prefix=unknown 16204hardcode_into_libs=no 16205 16206# when you set need_version to no, make sure it does not cause -set_version 16207# flags to be left without arguments 16208need_version=unknown 16209 16210 16211 16212case $host_os in 16213aix3*) 16214 version_type=linux # correct to gnu/linux during the next big refactor 16215 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16216 shlibpath_var=LIBPATH 16217 16218 # AIX 3 has no versioning support, so we append a major version to the name. 16219 soname_spec='$libname$release$shared_ext$major' 16220 ;; 16221 16222aix[4-9]*) 16223 version_type=linux # correct to gnu/linux during the next big refactor 16224 need_lib_prefix=no 16225 need_version=no 16226 hardcode_into_libs=yes 16227 if test ia64 = "$host_cpu"; then 16228 # AIX 5 supports IA64 16229 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16230 shlibpath_var=LD_LIBRARY_PATH 16231 else 16232 # With GCC up to 2.95.x, collect2 would create an import file 16233 # for dependence libraries. The import file would start with 16234 # the line '#! .'. This would cause the generated library to 16235 # depend on '.', always an invalid library. This was fixed in 16236 # development snapshots of GCC prior to 3.0. 16237 case $host_os in 16238 aix4 | aix4.[01] | aix4.[01].*) 16239 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16240 echo ' yes ' 16241 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16242 : 16243 else 16244 can_build_shared=no 16245 fi 16246 ;; 16247 esac 16248 # Using Import Files as archive members, it is possible to support 16249 # filename-based versioning of shared library archives on AIX. While 16250 # this would work for both with and without runtime linking, it will 16251 # prevent static linking of such archives. So we do filename-based 16252 # shared library versioning with .so extension only, which is used 16253 # when both runtime linking and shared linking is enabled. 16254 # Unfortunately, runtime linking may impact performance, so we do 16255 # not want this to be the default eventually. Also, we use the 16256 # versioned .so libs for executables only if there is the -brtl 16257 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16258 # To allow for filename-based versioning support, we need to create 16259 # libNAME.so.V as an archive file, containing: 16260 # *) an Import File, referring to the versioned filename of the 16261 # archive as well as the shared archive member, telling the 16262 # bitwidth (32 or 64) of that shared object, and providing the 16263 # list of exported symbols of that shared object, eventually 16264 # decorated with the 'weak' keyword 16265 # *) the shared object with the F_LOADONLY flag set, to really avoid 16266 # it being seen by the linker. 16267 # At run time we better use the real file rather than another symlink, 16268 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16269 16270 case $with_aix_soname,$aix_use_runtimelinking in 16271 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16272 # soname into executable. Probably we can add versioning support to 16273 # collect2, so additional links can be useful in future. 16274 aix,yes) # traditional libtool 16275 dynamic_linker='AIX unversionable lib.so' 16276 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16277 # instead of lib<name>.a to let people know that these are not 16278 # typical AIX shared libraries. 16279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16280 ;; 16281 aix,no) # traditional AIX only 16282 dynamic_linker='AIX lib.a(lib.so.V)' 16283 # We preserve .a as extension for shared libraries through AIX4.2 16284 # and later when we are not doing run time linking. 16285 library_names_spec='$libname$release.a $libname.a' 16286 soname_spec='$libname$release$shared_ext$major' 16287 ;; 16288 svr4,*) # full svr4 only 16289 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16290 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16291 # We do not specify a path in Import Files, so LIBPATH fires. 16292 shlibpath_overrides_runpath=yes 16293 ;; 16294 *,yes) # both, prefer svr4 16295 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16296 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16297 # unpreferred sharedlib libNAME.a needs extra handling 16298 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16299 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16300 # We do not specify a path in Import Files, so LIBPATH fires. 16301 shlibpath_overrides_runpath=yes 16302 ;; 16303 *,no) # both, prefer aix 16304 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16305 library_names_spec='$libname$release.a $libname.a' 16306 soname_spec='$libname$release$shared_ext$major' 16307 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16308 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16309 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16310 ;; 16311 esac 16312 shlibpath_var=LIBPATH 16313 fi 16314 ;; 16315 16316amigaos*) 16317 case $host_cpu in 16318 powerpc) 16319 # Since July 2007 AmigaOS4 officially supports .so libraries. 16320 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16322 ;; 16323 m68k) 16324 library_names_spec='$libname.ixlibrary $libname.a' 16325 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16326 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16327 ;; 16328 esac 16329 ;; 16330 16331beos*) 16332 library_names_spec='$libname$shared_ext' 16333 dynamic_linker="$host_os ld.so" 16334 shlibpath_var=LIBRARY_PATH 16335 ;; 16336 16337bsdi[45]*) 16338 version_type=linux # correct to gnu/linux during the next big refactor 16339 need_version=no 16340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16341 soname_spec='$libname$release$shared_ext$major' 16342 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16343 shlibpath_var=LD_LIBRARY_PATH 16344 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16345 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16346 # the default ld.so.conf also contains /usr/contrib/lib and 16347 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16348 # libtool to hard-code these into programs 16349 ;; 16350 16351cygwin* | mingw* | pw32* | cegcc*) 16352 version_type=windows 16353 shrext_cmds=.dll 16354 need_version=no 16355 need_lib_prefix=no 16356 16357 case $GCC,$cc_basename in 16358 yes,*) 16359 # gcc 16360 library_names_spec='$libname.dll.a' 16361 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16362 postinstall_cmds='base_file=`basename \$file`~ 16363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16364 dldir=$destdir/`dirname \$dlpath`~ 16365 test -d \$dldir || mkdir -p \$dldir~ 16366 $install_prog $dir/$dlname \$dldir/$dlname~ 16367 chmod a+x \$dldir/$dlname~ 16368 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16369 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16370 fi' 16371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16372 dlpath=$dir/\$dldll~ 16373 $RM \$dlpath' 16374 shlibpath_overrides_runpath=yes 16375 16376 case $host_os in 16377 cygwin*) 16378 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16379 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16380 16381 ;; 16382 mingw* | cegcc*) 16383 # MinGW DLLs use traditional 'lib' prefix 16384 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16385 ;; 16386 pw32*) 16387 # pw32 DLLs use 'pw' prefix rather than 'lib' 16388 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16389 ;; 16390 esac 16391 dynamic_linker='Win32 ld.exe' 16392 ;; 16393 16394 *,cl*) 16395 # Native MSVC 16396 libname_spec='$name' 16397 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16398 library_names_spec='$libname.dll.lib' 16399 16400 case $build_os in 16401 mingw*) 16402 sys_lib_search_path_spec= 16403 lt_save_ifs=$IFS 16404 IFS=';' 16405 for lt_path in $LIB 16406 do 16407 IFS=$lt_save_ifs 16408 # Let DOS variable expansion print the short 8.3 style file name. 16409 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16410 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16411 done 16412 IFS=$lt_save_ifs 16413 # Convert to MSYS style. 16414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16415 ;; 16416 cygwin*) 16417 # Convert to unix form, then to dos form, then back to unix form 16418 # but this time dos style (no spaces!) so that the unix form looks 16419 # like /cygdrive/c/PROGRA~1:/cygdr... 16420 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16421 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16422 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16423 ;; 16424 *) 16425 sys_lib_search_path_spec=$LIB 16426 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16427 # It is most probably a Windows format PATH. 16428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16429 else 16430 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16431 fi 16432 # FIXME: find the short name or the path components, as spaces are 16433 # common. (e.g. "Program Files" -> "PROGRA~1") 16434 ;; 16435 esac 16436 16437 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16438 postinstall_cmds='base_file=`basename \$file`~ 16439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16440 dldir=$destdir/`dirname \$dlpath`~ 16441 test -d \$dldir || mkdir -p \$dldir~ 16442 $install_prog $dir/$dlname \$dldir/$dlname' 16443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16444 dlpath=$dir/\$dldll~ 16445 $RM \$dlpath' 16446 shlibpath_overrides_runpath=yes 16447 dynamic_linker='Win32 link.exe' 16448 ;; 16449 16450 *) 16451 # Assume MSVC wrapper 16452 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16453 dynamic_linker='Win32 ld.exe' 16454 ;; 16455 esac 16456 # FIXME: first we should search . and the directory the executable is in 16457 shlibpath_var=PATH 16458 ;; 16459 16460darwin* | rhapsody*) 16461 dynamic_linker="$host_os dyld" 16462 version_type=darwin 16463 need_lib_prefix=no 16464 need_version=no 16465 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16466 soname_spec='$libname$release$major$shared_ext' 16467 shlibpath_overrides_runpath=yes 16468 shlibpath_var=DYLD_LIBRARY_PATH 16469 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16470 16471 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16472 ;; 16473 16474dgux*) 16475 version_type=linux # correct to gnu/linux during the next big refactor 16476 need_lib_prefix=no 16477 need_version=no 16478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16479 soname_spec='$libname$release$shared_ext$major' 16480 shlibpath_var=LD_LIBRARY_PATH 16481 ;; 16482 16483freebsd* | dragonfly*) 16484 # DragonFly does not have aout. When/if they implement a new 16485 # versioning mechanism, adjust this. 16486 if test -x /usr/bin/objformat; then 16487 objformat=`/usr/bin/objformat` 16488 else 16489 case $host_os in 16490 freebsd[23].*) objformat=aout ;; 16491 *) objformat=elf ;; 16492 esac 16493 fi 16494 version_type=freebsd-$objformat 16495 case $version_type in 16496 freebsd-elf*) 16497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16498 soname_spec='$libname$release$shared_ext$major' 16499 need_version=no 16500 need_lib_prefix=no 16501 ;; 16502 freebsd-*) 16503 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16504 need_version=yes 16505 ;; 16506 esac 16507 shlibpath_var=LD_LIBRARY_PATH 16508 case $host_os in 16509 freebsd2.*) 16510 shlibpath_overrides_runpath=yes 16511 ;; 16512 freebsd3.[01]* | freebsdelf3.[01]*) 16513 shlibpath_overrides_runpath=yes 16514 hardcode_into_libs=yes 16515 ;; 16516 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16517 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16518 shlibpath_overrides_runpath=no 16519 hardcode_into_libs=yes 16520 ;; 16521 *) # from 4.6 on, and DragonFly 16522 shlibpath_overrides_runpath=yes 16523 hardcode_into_libs=yes 16524 ;; 16525 esac 16526 ;; 16527 16528haiku*) 16529 version_type=linux # correct to gnu/linux during the next big refactor 16530 need_lib_prefix=no 16531 need_version=no 16532 dynamic_linker="$host_os runtime_loader" 16533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16534 soname_spec='$libname$release$shared_ext$major' 16535 shlibpath_var=LIBRARY_PATH 16536 shlibpath_overrides_runpath=no 16537 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16538 hardcode_into_libs=yes 16539 ;; 16540 16541hpux9* | hpux10* | hpux11*) 16542 # Give a soname corresponding to the major version so that dld.sl refuses to 16543 # link against other versions. 16544 version_type=sunos 16545 need_lib_prefix=no 16546 need_version=no 16547 case $host_cpu in 16548 ia64*) 16549 shrext_cmds='.so' 16550 hardcode_into_libs=yes 16551 dynamic_linker="$host_os dld.so" 16552 shlibpath_var=LD_LIBRARY_PATH 16553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16555 soname_spec='$libname$release$shared_ext$major' 16556 if test 32 = "$HPUX_IA64_MODE"; then 16557 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16558 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16559 else 16560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16561 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16562 fi 16563 ;; 16564 hppa*64*) 16565 shrext_cmds='.sl' 16566 hardcode_into_libs=yes 16567 dynamic_linker="$host_os dld.sl" 16568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16571 soname_spec='$libname$release$shared_ext$major' 16572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16574 ;; 16575 *) 16576 shrext_cmds='.sl' 16577 dynamic_linker="$host_os dld.sl" 16578 shlibpath_var=SHLIB_PATH 16579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16581 soname_spec='$libname$release$shared_ext$major' 16582 ;; 16583 esac 16584 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16585 postinstall_cmds='chmod 555 $lib' 16586 # or fails outright, so override atomically: 16587 install_override_mode=555 16588 ;; 16589 16590interix[3-9]*) 16591 version_type=linux # correct to gnu/linux during the next big refactor 16592 need_lib_prefix=no 16593 need_version=no 16594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16595 soname_spec='$libname$release$shared_ext$major' 16596 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16597 shlibpath_var=LD_LIBRARY_PATH 16598 shlibpath_overrides_runpath=no 16599 hardcode_into_libs=yes 16600 ;; 16601 16602irix5* | irix6* | nonstopux*) 16603 case $host_os in 16604 nonstopux*) version_type=nonstopux ;; 16605 *) 16606 if test yes = "$lt_cv_prog_gnu_ld"; then 16607 version_type=linux # correct to gnu/linux during the next big refactor 16608 else 16609 version_type=irix 16610 fi ;; 16611 esac 16612 need_lib_prefix=no 16613 need_version=no 16614 soname_spec='$libname$release$shared_ext$major' 16615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16616 case $host_os in 16617 irix5* | nonstopux*) 16618 libsuff= shlibsuff= 16619 ;; 16620 *) 16621 case $LD in # libtool.m4 will add one of these switches to LD 16622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16623 libsuff= shlibsuff= libmagic=32-bit;; 16624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16625 libsuff=32 shlibsuff=N32 libmagic=N32;; 16626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16627 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16628 *) libsuff= shlibsuff= libmagic=never-match;; 16629 esac 16630 ;; 16631 esac 16632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16633 shlibpath_overrides_runpath=no 16634 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16635 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16636 hardcode_into_libs=yes 16637 ;; 16638 16639# No shared lib support for Linux oldld, aout, or coff. 16640linux*oldld* | linux*aout* | linux*coff*) 16641 dynamic_linker=no 16642 ;; 16643 16644linux*android*) 16645 version_type=none # Android doesn't support versioned libraries. 16646 need_lib_prefix=no 16647 need_version=no 16648 library_names_spec='$libname$release$shared_ext' 16649 soname_spec='$libname$release$shared_ext' 16650 finish_cmds= 16651 shlibpath_var=LD_LIBRARY_PATH 16652 shlibpath_overrides_runpath=yes 16653 16654 # This implies no fast_install, which is unacceptable. 16655 # Some rework will be needed to allow for fast_install 16656 # before this can be enabled. 16657 hardcode_into_libs=yes 16658 16659 dynamic_linker='Android linker' 16660 # Don't embed -rpath directories since the linker doesn't support them. 16661 hardcode_libdir_flag_spec_CXX='-L$libdir' 16662 ;; 16663 16664# This must be glibc/ELF. 16665linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16666 version_type=linux # correct to gnu/linux during the next big refactor 16667 need_lib_prefix=no 16668 need_version=no 16669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16670 soname_spec='$libname$release$shared_ext$major' 16671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16672 shlibpath_var=LD_LIBRARY_PATH 16673 shlibpath_overrides_runpath=no 16674 16675 # Some binutils ld are patched to set DT_RUNPATH 16676 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16677 $as_echo_n "(cached) " >&6 16678else 16679 lt_cv_shlibpath_overrides_runpath=no 16680 save_LDFLAGS=$LDFLAGS 16681 save_libdir=$libdir 16682 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16683 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16685/* end confdefs.h. */ 16686 16687int 16688main () 16689{ 16690 16691 ; 16692 return 0; 16693} 16694_ACEOF 16695if ac_fn_cxx_try_link "$LINENO"; then : 16696 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16697 lt_cv_shlibpath_overrides_runpath=yes 16698fi 16699fi 16700rm -f core conftest.err conftest.$ac_objext \ 16701 conftest$ac_exeext conftest.$ac_ext 16702 LDFLAGS=$save_LDFLAGS 16703 libdir=$save_libdir 16704 16705fi 16706 16707 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16708 16709 # This implies no fast_install, which is unacceptable. 16710 # Some rework will be needed to allow for fast_install 16711 # before this can be enabled. 16712 hardcode_into_libs=yes 16713 16714 # Add ABI-specific directories to the system library path. 16715 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 16716 16717 # Ideally, we could use ldconfig to report *all* directores which are 16718 # searched for libraries, however this is still not possible. Aside from not 16719 # being certain /sbin/ldconfig is available, command 16720 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16721 # even though it is searched at run-time. Try to do the best guess by 16722 # appending ld.so.conf contents (and includes) to the search path. 16723 if test -f /etc/ld.so.conf; then 16724 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' ' '` 16725 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16726 fi 16727 16728 # We used to test for /lib/ld.so.1 and disable shared libraries on 16729 # powerpc, because MkLinux only supported shared libraries with the 16730 # GNU dynamic linker. Since this was broken with cross compilers, 16731 # most powerpc-linux boxes support dynamic linking these days and 16732 # people can always --disable-shared, the test was removed, and we 16733 # assume the GNU/Linux dynamic linker is in use. 16734 dynamic_linker='GNU/Linux ld.so' 16735 ;; 16736 16737netbsd*) 16738 version_type=sunos 16739 need_lib_prefix=no 16740 need_version=no 16741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16742 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16744 dynamic_linker='NetBSD (a.out) ld.so' 16745 else 16746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16747 soname_spec='$libname$release$shared_ext$major' 16748 dynamic_linker='NetBSD ld.elf_so' 16749 fi 16750 shlibpath_var=LD_LIBRARY_PATH 16751 shlibpath_overrides_runpath=yes 16752 hardcode_into_libs=yes 16753 ;; 16754 16755newsos6) 16756 version_type=linux # correct to gnu/linux during the next big refactor 16757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16758 shlibpath_var=LD_LIBRARY_PATH 16759 shlibpath_overrides_runpath=yes 16760 ;; 16761 16762*nto* | *qnx*) 16763 version_type=qnx 16764 need_lib_prefix=no 16765 need_version=no 16766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16767 soname_spec='$libname$release$shared_ext$major' 16768 shlibpath_var=LD_LIBRARY_PATH 16769 shlibpath_overrides_runpath=no 16770 hardcode_into_libs=yes 16771 dynamic_linker='ldqnx.so' 16772 ;; 16773 16774openbsd* | bitrig*) 16775 version_type=sunos 16776 sys_lib_dlsearch_path_spec=/usr/lib 16777 need_lib_prefix=no 16778 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16779 need_version=no 16780 else 16781 need_version=yes 16782 fi 16783 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16785 shlibpath_var=LD_LIBRARY_PATH 16786 shlibpath_overrides_runpath=yes 16787 ;; 16788 16789os2*) 16790 libname_spec='$name' 16791 version_type=windows 16792 shrext_cmds=.dll 16793 need_version=no 16794 need_lib_prefix=no 16795 # OS/2 can only load a DLL with a base name of 8 characters or less. 16796 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16797 v=$($ECHO $release$versuffix | tr -d .-); 16798 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16799 $ECHO $n$v`$shared_ext' 16800 library_names_spec='${libname}_dll.$libext' 16801 dynamic_linker='OS/2 ld.exe' 16802 shlibpath_var=BEGINLIBPATH 16803 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16805 postinstall_cmds='base_file=`basename \$file`~ 16806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16807 dldir=$destdir/`dirname \$dlpath`~ 16808 test -d \$dldir || mkdir -p \$dldir~ 16809 $install_prog $dir/$dlname \$dldir/$dlname~ 16810 chmod a+x \$dldir/$dlname~ 16811 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16812 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16813 fi' 16814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16815 dlpath=$dir/\$dldll~ 16816 $RM \$dlpath' 16817 ;; 16818 16819osf3* | osf4* | osf5*) 16820 version_type=osf 16821 need_lib_prefix=no 16822 need_version=no 16823 soname_spec='$libname$release$shared_ext$major' 16824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16825 shlibpath_var=LD_LIBRARY_PATH 16826 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16828 ;; 16829 16830rdos*) 16831 dynamic_linker=no 16832 ;; 16833 16834solaris*) 16835 version_type=linux # correct to gnu/linux during the next big refactor 16836 need_lib_prefix=no 16837 need_version=no 16838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16839 soname_spec='$libname$release$shared_ext$major' 16840 shlibpath_var=LD_LIBRARY_PATH 16841 shlibpath_overrides_runpath=yes 16842 hardcode_into_libs=yes 16843 # ldd complains unless libraries are executable 16844 postinstall_cmds='chmod +x $lib' 16845 ;; 16846 16847sunos4*) 16848 version_type=sunos 16849 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16850 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16851 shlibpath_var=LD_LIBRARY_PATH 16852 shlibpath_overrides_runpath=yes 16853 if test yes = "$with_gnu_ld"; then 16854 need_lib_prefix=no 16855 fi 16856 need_version=yes 16857 ;; 16858 16859sysv4 | sysv4.3*) 16860 version_type=linux # correct to gnu/linux during the next big refactor 16861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16862 soname_spec='$libname$release$shared_ext$major' 16863 shlibpath_var=LD_LIBRARY_PATH 16864 case $host_vendor in 16865 sni) 16866 shlibpath_overrides_runpath=no 16867 need_lib_prefix=no 16868 runpath_var=LD_RUN_PATH 16869 ;; 16870 siemens) 16871 need_lib_prefix=no 16872 ;; 16873 motorola) 16874 need_lib_prefix=no 16875 need_version=no 16876 shlibpath_overrides_runpath=no 16877 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16878 ;; 16879 esac 16880 ;; 16881 16882sysv4*MP*) 16883 if test -d /usr/nec; then 16884 version_type=linux # correct to gnu/linux during the next big refactor 16885 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16886 soname_spec='$libname$shared_ext.$major' 16887 shlibpath_var=LD_LIBRARY_PATH 16888 fi 16889 ;; 16890 16891sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16892 version_type=sco 16893 need_lib_prefix=no 16894 need_version=no 16895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16896 soname_spec='$libname$release$shared_ext$major' 16897 shlibpath_var=LD_LIBRARY_PATH 16898 shlibpath_overrides_runpath=yes 16899 hardcode_into_libs=yes 16900 if test yes = "$with_gnu_ld"; then 16901 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16902 else 16903 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16904 case $host_os in 16905 sco3.2v5*) 16906 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16907 ;; 16908 esac 16909 fi 16910 sys_lib_dlsearch_path_spec='/usr/lib' 16911 ;; 16912 16913tpf*) 16914 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16915 version_type=linux # correct to gnu/linux during the next big refactor 16916 need_lib_prefix=no 16917 need_version=no 16918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16919 shlibpath_var=LD_LIBRARY_PATH 16920 shlibpath_overrides_runpath=no 16921 hardcode_into_libs=yes 16922 ;; 16923 16924uts4*) 16925 version_type=linux # correct to gnu/linux during the next big refactor 16926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16927 soname_spec='$libname$release$shared_ext$major' 16928 shlibpath_var=LD_LIBRARY_PATH 16929 ;; 16930 16931*) 16932 dynamic_linker=no 16933 ;; 16934esac 16935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16936$as_echo "$dynamic_linker" >&6; } 16937test no = "$dynamic_linker" && can_build_shared=no 16938 16939variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16940if test yes = "$GCC"; then 16941 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16942fi 16943 16944if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16945 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16946fi 16947 16948if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16949 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16950fi 16951 16952# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16953configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16954 16955# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16956func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16957 16958# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16959configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17001$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17002hardcode_action_CXX= 17003if test -n "$hardcode_libdir_flag_spec_CXX" || 17004 test -n "$runpath_var_CXX" || 17005 test yes = "$hardcode_automatic_CXX"; then 17006 17007 # We can hardcode non-existent directories. 17008 if test no != "$hardcode_direct_CXX" && 17009 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17010 # have to relink, otherwise we might link with an installed library 17011 # when we should be linking with a yet-to-be-installed one 17012 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 17013 test no != "$hardcode_minus_L_CXX"; then 17014 # Linking always hardcodes the temporary library directory. 17015 hardcode_action_CXX=relink 17016 else 17017 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17018 hardcode_action_CXX=immediate 17019 fi 17020else 17021 # We cannot hardcode anything, or else we can only hardcode existing 17022 # directories. 17023 hardcode_action_CXX=unsupported 17024fi 17025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17026$as_echo "$hardcode_action_CXX" >&6; } 17027 17028if test relink = "$hardcode_action_CXX" || 17029 test yes = "$inherit_rpath_CXX"; then 17030 # Fast installation is not supported 17031 enable_fast_install=no 17032elif test yes = "$shlibpath_overrides_runpath" || 17033 test no = "$enable_shared"; then 17034 # Fast installation is not necessary 17035 enable_fast_install=needless 17036fi 17037 17038 17039 17040 17041 17042 17043 17044 fi # test -n "$compiler" 17045 17046 CC=$lt_save_CC 17047 CFLAGS=$lt_save_CFLAGS 17048 LDCXX=$LD 17049 LD=$lt_save_LD 17050 GCC=$lt_save_GCC 17051 with_gnu_ld=$lt_save_with_gnu_ld 17052 lt_cv_path_LDCXX=$lt_cv_path_LD 17053 lt_cv_path_LD=$lt_save_path_LD 17054 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17055 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17056fi # test yes != "$_lt_caught_CXX_error" 17057 17058ac_ext=cpp 17059ac_cpp='$CXXCPP $CPPFLAGS' 17060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 ac_config_commands="$ac_config_commands libtool" 17079 17080 17081 17082 17083# Only expand once: 17084 17085 17086 17087X_BASE_LIBS="-lX11 -lXext" 17088LIBGLU="-lGLU" 17089LIBGL="-lGL" 17090 17091# Checks for header files. 17092 17093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 17094$as_echo_n "checking for X... " >&6; } 17095 17096 17097# Check whether --with-x was given. 17098if test "${with_x+set}" = set; then : 17099 withval=$with_x; 17100fi 17101 17102# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 17103if test "x$with_x" = xno; then 17104 # The user explicitly disabled X. 17105 have_x=disabled 17106else 17107 case $x_includes,$x_libraries in #( 17108 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 17109 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 17110 $as_echo_n "(cached) " >&6 17111else 17112 # One or both of the vars are not set, and there is no cached value. 17113ac_x_includes=no ac_x_libraries=no 17114rm -f -r conftest.dir 17115if mkdir conftest.dir; then 17116 cd conftest.dir 17117 cat >Imakefile <<'_ACEOF' 17118incroot: 17119 @echo incroot='${INCROOT}' 17120usrlibdir: 17121 @echo usrlibdir='${USRLIBDIR}' 17122libdir: 17123 @echo libdir='${LIBDIR}' 17124_ACEOF 17125 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 17126 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 17127 for ac_var in incroot usrlibdir libdir; do 17128 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 17129 done 17130 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 17131 for ac_extension in a so sl dylib la dll; do 17132 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 17133 test -f "$ac_im_libdir/libX11.$ac_extension"; then 17134 ac_im_usrlibdir=$ac_im_libdir; break 17135 fi 17136 done 17137 # Screen out bogus values from the imake configuration. They are 17138 # bogus both because they are the default anyway, and because 17139 # using them would break gcc on systems where it needs fixed includes. 17140 case $ac_im_incroot in 17141 /usr/include) ac_x_includes= ;; 17142 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 17143 esac 17144 case $ac_im_usrlibdir in 17145 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 17146 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 17147 esac 17148 fi 17149 cd .. 17150 rm -f -r conftest.dir 17151fi 17152 17153# Standard set of common directories for X headers. 17154# Check X11 before X11Rn because it is often a symlink to the current release. 17155ac_x_header_dirs=' 17156/usr/X11/include 17157/usr/X11R7/include 17158/usr/X11R6/include 17159/usr/X11R5/include 17160/usr/X11R4/include 17161 17162/usr/include/X11 17163/usr/include/X11R7 17164/usr/include/X11R6 17165/usr/include/X11R5 17166/usr/include/X11R4 17167 17168/usr/local/X11/include 17169/usr/local/X11R7/include 17170/usr/local/X11R6/include 17171/usr/local/X11R5/include 17172/usr/local/X11R4/include 17173 17174/usr/local/include/X11 17175/usr/local/include/X11R7 17176/usr/local/include/X11R6 17177/usr/local/include/X11R5 17178/usr/local/include/X11R4 17179 17180/usr/X386/include 17181/usr/x386/include 17182/usr/XFree86/include/X11 17183 17184/usr/include 17185/usr/local/include 17186/usr/unsupported/include 17187/usr/athena/include 17188/usr/local/x11r5/include 17189/usr/lpp/Xamples/include 17190 17191/usr/openwin/include 17192/usr/openwin/share/include' 17193 17194if test "$ac_x_includes" = no; then 17195 # Guess where to find include files, by looking for Xlib.h. 17196 # First, try using that file with no special directory specified. 17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17198/* end confdefs.h. */ 17199#include <X11/Xlib.h> 17200_ACEOF 17201if ac_fn_cxx_try_cpp "$LINENO"; then : 17202 # We can compile using X headers with no special include directory. 17203ac_x_includes= 17204else 17205 for ac_dir in $ac_x_header_dirs; do 17206 if test -r "$ac_dir/X11/Xlib.h"; then 17207 ac_x_includes=$ac_dir 17208 break 17209 fi 17210done 17211fi 17212rm -f conftest.err conftest.i conftest.$ac_ext 17213fi # $ac_x_includes = no 17214 17215if test "$ac_x_libraries" = no; then 17216 # Check for the libraries. 17217 # See if we find them without any special options. 17218 # Don't add to $LIBS permanently. 17219 ac_save_LIBS=$LIBS 17220 LIBS="-lX11 $LIBS" 17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17222/* end confdefs.h. */ 17223#include <X11/Xlib.h> 17224int 17225main () 17226{ 17227XrmInitialize () 17228 ; 17229 return 0; 17230} 17231_ACEOF 17232if ac_fn_cxx_try_link "$LINENO"; then : 17233 LIBS=$ac_save_LIBS 17234# We can link X programs with no special library path. 17235ac_x_libraries= 17236else 17237 LIBS=$ac_save_LIBS 17238for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 17239do 17240 # Don't even attempt the hair of trying to link an X program! 17241 for ac_extension in a so sl dylib la dll; do 17242 if test -r "$ac_dir/libX11.$ac_extension"; then 17243 ac_x_libraries=$ac_dir 17244 break 2 17245 fi 17246 done 17247done 17248fi 17249rm -f core conftest.err conftest.$ac_objext \ 17250 conftest$ac_exeext conftest.$ac_ext 17251fi # $ac_x_libraries = no 17252 17253case $ac_x_includes,$ac_x_libraries in #( 17254 no,* | *,no | *\'*) 17255 # Didn't find X, or a directory has "'" in its name. 17256 ac_cv_have_x="have_x=no";; #( 17257 *) 17258 # Record where we found X for the cache. 17259 ac_cv_have_x="have_x=yes\ 17260 ac_x_includes='$ac_x_includes'\ 17261 ac_x_libraries='$ac_x_libraries'" 17262esac 17263fi 17264;; #( 17265 *) have_x=yes;; 17266 esac 17267 eval "$ac_cv_have_x" 17268fi # $with_x != no 17269 17270if test "$have_x" != yes; then 17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 17272$as_echo "$have_x" >&6; } 17273 no_x=yes 17274else 17275 # If each of the values was on the command line, it overrides each guess. 17276 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 17277 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 17278 # Update the cache value to reflect the command line values. 17279 ac_cv_have_x="have_x=yes\ 17280 ac_x_includes='$x_includes'\ 17281 ac_x_libraries='$x_libraries'" 17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 17283$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 17284fi 17285 17286if test "$no_x" = yes; then 17287 # Not all programs may use this symbol, but it does not hurt to define it. 17288 17289$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 17290 17291 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 17292else 17293 if test -n "$x_includes"; then 17294 X_CFLAGS="$X_CFLAGS -I$x_includes" 17295 fi 17296 17297 # It would also be nice to do this for all -L options, not just this one. 17298 if test -n "$x_libraries"; then 17299 X_LIBS="$X_LIBS -L$x_libraries" 17300 # For Solaris; some versions of Sun CC require a space after -R and 17301 # others require no space. Words are not sufficient . . . . 17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 17303$as_echo_n "checking whether -R must be followed by a space... " >&6; } 17304 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 17305 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 17306 ac_cxx_werror_flag=yes 17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17308/* end confdefs.h. */ 17309 17310int 17311main () 17312{ 17313 17314 ; 17315 return 0; 17316} 17317_ACEOF 17318if ac_fn_cxx_try_link "$LINENO"; then : 17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17320$as_echo "no" >&6; } 17321 X_LIBS="$X_LIBS -R$x_libraries" 17322else 17323 LIBS="$ac_xsave_LIBS -R $x_libraries" 17324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17325/* end confdefs.h. */ 17326 17327int 17328main () 17329{ 17330 17331 ; 17332 return 0; 17333} 17334_ACEOF 17335if ac_fn_cxx_try_link "$LINENO"; then : 17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17337$as_echo "yes" >&6; } 17338 X_LIBS="$X_LIBS -R $x_libraries" 17339else 17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 17341$as_echo "neither works" >&6; } 17342fi 17343rm -f core conftest.err conftest.$ac_objext \ 17344 conftest$ac_exeext conftest.$ac_ext 17345fi 17346rm -f core conftest.err conftest.$ac_objext \ 17347 conftest$ac_exeext conftest.$ac_ext 17348 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 17349 LIBS=$ac_xsave_LIBS 17350 fi 17351 17352 # Check for system-dependent libraries X programs must link with. 17353 # Do this before checking for the system-independent R6 libraries 17354 # (-lICE), since we may need -lsocket or whatever for X linking. 17355 17356 if test "$ISC" = yes; then 17357 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 17358 else 17359 # Martyn Johnson says this is needed for Ultrix, if the X 17360 # libraries were built with DECnet support. And Karl Berry says 17361 # the Alpha needs dnet_stub (dnet does not exist). 17362 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17364/* end confdefs.h. */ 17365 17366/* Override any GCC internal prototype to avoid an error. 17367 Use char because int might match the return type of a GCC 17368 builtin and then its argument prototype would still apply. */ 17369#ifdef __cplusplus 17370extern "C" 17371#endif 17372char XOpenDisplay (); 17373int 17374main () 17375{ 17376return XOpenDisplay (); 17377 ; 17378 return 0; 17379} 17380_ACEOF 17381if ac_fn_cxx_try_link "$LINENO"; then : 17382 17383else 17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 17385$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 17386if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 17387 $as_echo_n "(cached) " >&6 17388else 17389 ac_check_lib_save_LIBS=$LIBS 17390LIBS="-ldnet $LIBS" 17391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17392/* end confdefs.h. */ 17393 17394/* Override any GCC internal prototype to avoid an error. 17395 Use char because int might match the return type of a GCC 17396 builtin and then its argument prototype would still apply. */ 17397#ifdef __cplusplus 17398extern "C" 17399#endif 17400char dnet_ntoa (); 17401int 17402main () 17403{ 17404return dnet_ntoa (); 17405 ; 17406 return 0; 17407} 17408_ACEOF 17409if ac_fn_cxx_try_link "$LINENO"; then : 17410 ac_cv_lib_dnet_dnet_ntoa=yes 17411else 17412 ac_cv_lib_dnet_dnet_ntoa=no 17413fi 17414rm -f core conftest.err conftest.$ac_objext \ 17415 conftest$ac_exeext conftest.$ac_ext 17416LIBS=$ac_check_lib_save_LIBS 17417fi 17418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 17419$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 17420if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 17421 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 17422fi 17423 17424 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 17425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 17426$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 17427if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 17428 $as_echo_n "(cached) " >&6 17429else 17430 ac_check_lib_save_LIBS=$LIBS 17431LIBS="-ldnet_stub $LIBS" 17432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17433/* end confdefs.h. */ 17434 17435/* Override any GCC internal prototype to avoid an error. 17436 Use char because int might match the return type of a GCC 17437 builtin and then its argument prototype would still apply. */ 17438#ifdef __cplusplus 17439extern "C" 17440#endif 17441char dnet_ntoa (); 17442int 17443main () 17444{ 17445return dnet_ntoa (); 17446 ; 17447 return 0; 17448} 17449_ACEOF 17450if ac_fn_cxx_try_link "$LINENO"; then : 17451 ac_cv_lib_dnet_stub_dnet_ntoa=yes 17452else 17453 ac_cv_lib_dnet_stub_dnet_ntoa=no 17454fi 17455rm -f core conftest.err conftest.$ac_objext \ 17456 conftest$ac_exeext conftest.$ac_ext 17457LIBS=$ac_check_lib_save_LIBS 17458fi 17459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 17460$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 17461if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 17462 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 17463fi 17464 17465 fi 17466fi 17467rm -f core conftest.err conftest.$ac_objext \ 17468 conftest$ac_exeext conftest.$ac_ext 17469 LIBS="$ac_xsave_LIBS" 17470 17471 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 17472 # to get the SysV transport functions. 17473 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 17474 # needs -lnsl. 17475 # The nsl library prevents programs from opening the X display 17476 # on Irix 5.2, according to T.E. Dickey. 17477 # The functions gethostbyname, getservbyname, and inet_addr are 17478 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 17479 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 17480if test "x$ac_cv_func_gethostbyname" = xyes; then : 17481 17482fi 17483 17484 if test $ac_cv_func_gethostbyname = no; then 17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 17486$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 17487if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 17488 $as_echo_n "(cached) " >&6 17489else 17490 ac_check_lib_save_LIBS=$LIBS 17491LIBS="-lnsl $LIBS" 17492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17493/* end confdefs.h. */ 17494 17495/* Override any GCC internal prototype to avoid an error. 17496 Use char because int might match the return type of a GCC 17497 builtin and then its argument prototype would still apply. */ 17498#ifdef __cplusplus 17499extern "C" 17500#endif 17501char gethostbyname (); 17502int 17503main () 17504{ 17505return gethostbyname (); 17506 ; 17507 return 0; 17508} 17509_ACEOF 17510if ac_fn_cxx_try_link "$LINENO"; then : 17511 ac_cv_lib_nsl_gethostbyname=yes 17512else 17513 ac_cv_lib_nsl_gethostbyname=no 17514fi 17515rm -f core conftest.err conftest.$ac_objext \ 17516 conftest$ac_exeext conftest.$ac_ext 17517LIBS=$ac_check_lib_save_LIBS 17518fi 17519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 17520$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 17521if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 17522 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 17523fi 17524 17525 if test $ac_cv_lib_nsl_gethostbyname = no; then 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 17527$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 17528if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 17529 $as_echo_n "(cached) " >&6 17530else 17531 ac_check_lib_save_LIBS=$LIBS 17532LIBS="-lbsd $LIBS" 17533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17534/* end confdefs.h. */ 17535 17536/* Override any GCC internal prototype to avoid an error. 17537 Use char because int might match the return type of a GCC 17538 builtin and then its argument prototype would still apply. */ 17539#ifdef __cplusplus 17540extern "C" 17541#endif 17542char gethostbyname (); 17543int 17544main () 17545{ 17546return gethostbyname (); 17547 ; 17548 return 0; 17549} 17550_ACEOF 17551if ac_fn_cxx_try_link "$LINENO"; then : 17552 ac_cv_lib_bsd_gethostbyname=yes 17553else 17554 ac_cv_lib_bsd_gethostbyname=no 17555fi 17556rm -f core conftest.err conftest.$ac_objext \ 17557 conftest$ac_exeext conftest.$ac_ext 17558LIBS=$ac_check_lib_save_LIBS 17559fi 17560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 17561$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 17562if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 17563 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 17564fi 17565 17566 fi 17567 fi 17568 17569 # lieder@skyler.mavd.honeywell.com says without -lsocket, 17570 # socket/setsockopt and other routines are undefined under SCO ODT 17571 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 17572 # on later versions), says Simon Leinen: it contains gethostby* 17573 # variants that don't use the name server (or something). -lsocket 17574 # must be given before -lnsl if both are needed. We assume that 17575 # if connect needs -lnsl, so does gethostbyname. 17576 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 17577if test "x$ac_cv_func_connect" = xyes; then : 17578 17579fi 17580 17581 if test $ac_cv_func_connect = no; then 17582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 17583$as_echo_n "checking for connect in -lsocket... " >&6; } 17584if ${ac_cv_lib_socket_connect+:} false; then : 17585 $as_echo_n "(cached) " >&6 17586else 17587 ac_check_lib_save_LIBS=$LIBS 17588LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 17589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17590/* end confdefs.h. */ 17591 17592/* Override any GCC internal prototype to avoid an error. 17593 Use char because int might match the return type of a GCC 17594 builtin and then its argument prototype would still apply. */ 17595#ifdef __cplusplus 17596extern "C" 17597#endif 17598char connect (); 17599int 17600main () 17601{ 17602return connect (); 17603 ; 17604 return 0; 17605} 17606_ACEOF 17607if ac_fn_cxx_try_link "$LINENO"; then : 17608 ac_cv_lib_socket_connect=yes 17609else 17610 ac_cv_lib_socket_connect=no 17611fi 17612rm -f core conftest.err conftest.$ac_objext \ 17613 conftest$ac_exeext conftest.$ac_ext 17614LIBS=$ac_check_lib_save_LIBS 17615fi 17616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 17617$as_echo "$ac_cv_lib_socket_connect" >&6; } 17618if test "x$ac_cv_lib_socket_connect" = xyes; then : 17619 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 17620fi 17621 17622 fi 17623 17624 # Guillermo Gomez says -lposix is necessary on A/UX. 17625 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 17626if test "x$ac_cv_func_remove" = xyes; then : 17627 17628fi 17629 17630 if test $ac_cv_func_remove = no; then 17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 17632$as_echo_n "checking for remove in -lposix... " >&6; } 17633if ${ac_cv_lib_posix_remove+:} false; then : 17634 $as_echo_n "(cached) " >&6 17635else 17636 ac_check_lib_save_LIBS=$LIBS 17637LIBS="-lposix $LIBS" 17638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17639/* end confdefs.h. */ 17640 17641/* Override any GCC internal prototype to avoid an error. 17642 Use char because int might match the return type of a GCC 17643 builtin and then its argument prototype would still apply. */ 17644#ifdef __cplusplus 17645extern "C" 17646#endif 17647char remove (); 17648int 17649main () 17650{ 17651return remove (); 17652 ; 17653 return 0; 17654} 17655_ACEOF 17656if ac_fn_cxx_try_link "$LINENO"; then : 17657 ac_cv_lib_posix_remove=yes 17658else 17659 ac_cv_lib_posix_remove=no 17660fi 17661rm -f core conftest.err conftest.$ac_objext \ 17662 conftest$ac_exeext conftest.$ac_ext 17663LIBS=$ac_check_lib_save_LIBS 17664fi 17665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 17666$as_echo "$ac_cv_lib_posix_remove" >&6; } 17667if test "x$ac_cv_lib_posix_remove" = xyes; then : 17668 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 17669fi 17670 17671 fi 17672 17673 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 17674 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 17675if test "x$ac_cv_func_shmat" = xyes; then : 17676 17677fi 17678 17679 if test $ac_cv_func_shmat = no; then 17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 17681$as_echo_n "checking for shmat in -lipc... " >&6; } 17682if ${ac_cv_lib_ipc_shmat+:} false; then : 17683 $as_echo_n "(cached) " >&6 17684else 17685 ac_check_lib_save_LIBS=$LIBS 17686LIBS="-lipc $LIBS" 17687cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17688/* end confdefs.h. */ 17689 17690/* Override any GCC internal prototype to avoid an error. 17691 Use char because int might match the return type of a GCC 17692 builtin and then its argument prototype would still apply. */ 17693#ifdef __cplusplus 17694extern "C" 17695#endif 17696char shmat (); 17697int 17698main () 17699{ 17700return shmat (); 17701 ; 17702 return 0; 17703} 17704_ACEOF 17705if ac_fn_cxx_try_link "$LINENO"; then : 17706 ac_cv_lib_ipc_shmat=yes 17707else 17708 ac_cv_lib_ipc_shmat=no 17709fi 17710rm -f core conftest.err conftest.$ac_objext \ 17711 conftest$ac_exeext conftest.$ac_ext 17712LIBS=$ac_check_lib_save_LIBS 17713fi 17714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 17715$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 17716if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 17717 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 17718fi 17719 17720 fi 17721 fi 17722 17723 # Check for libraries that X11R6 Xt/Xaw programs need. 17724 ac_save_LDFLAGS=$LDFLAGS 17725 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 17726 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 17727 # check for ICE first), but we must link in the order -lSM -lICE or 17728 # we get undefined symbols. So assume we have SM if we have ICE. 17729 # These have to be linked with before -lX11, unlike the other 17730 # libraries we check for below, so use a different variable. 17731 # John Interrante, Karl Berry 17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 17733$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 17734if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 17735 $as_echo_n "(cached) " >&6 17736else 17737 ac_check_lib_save_LIBS=$LIBS 17738LIBS="-lICE $X_EXTRA_LIBS $LIBS" 17739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17740/* end confdefs.h. */ 17741 17742/* Override any GCC internal prototype to avoid an error. 17743 Use char because int might match the return type of a GCC 17744 builtin and then its argument prototype would still apply. */ 17745#ifdef __cplusplus 17746extern "C" 17747#endif 17748char IceConnectionNumber (); 17749int 17750main () 17751{ 17752return IceConnectionNumber (); 17753 ; 17754 return 0; 17755} 17756_ACEOF 17757if ac_fn_cxx_try_link "$LINENO"; then : 17758 ac_cv_lib_ICE_IceConnectionNumber=yes 17759else 17760 ac_cv_lib_ICE_IceConnectionNumber=no 17761fi 17762rm -f core conftest.err conftest.$ac_objext \ 17763 conftest$ac_exeext conftest.$ac_ext 17764LIBS=$ac_check_lib_save_LIBS 17765fi 17766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 17767$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 17768if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 17769 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 17770fi 17771 17772 LDFLAGS=$ac_save_LDFLAGS 17773 17774fi 17775 17776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 17777$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 17778if ${ac_cv_header_time+:} false; then : 17779 $as_echo_n "(cached) " >&6 17780else 17781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17782/* end confdefs.h. */ 17783#include <sys/types.h> 17784#include <sys/time.h> 17785#include <time.h> 17786 17787int 17788main () 17789{ 17790if ((struct tm *) 0) 17791return 0; 17792 ; 17793 return 0; 17794} 17795_ACEOF 17796if ac_fn_cxx_try_compile "$LINENO"; then : 17797 ac_cv_header_time=yes 17798else 17799 ac_cv_header_time=no 17800fi 17801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17802fi 17803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 17804$as_echo "$ac_cv_header_time" >&6; } 17805if test $ac_cv_header_time = yes; then 17806 17807$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 17808 17809fi 17810 17811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 17812$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 17813if ${ac_cv_header_sys_wait_h+:} false; then : 17814 $as_echo_n "(cached) " >&6 17815else 17816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17817/* end confdefs.h. */ 17818#include <sys/types.h> 17819#include <sys/wait.h> 17820#ifndef WEXITSTATUS 17821# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 17822#endif 17823#ifndef WIFEXITED 17824# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 17825#endif 17826 17827int 17828main () 17829{ 17830 int s; 17831 wait (&s); 17832 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 17833 ; 17834 return 0; 17835} 17836_ACEOF 17837if ac_fn_cxx_try_compile "$LINENO"; then : 17838 ac_cv_header_sys_wait_h=yes 17839else 17840 ac_cv_header_sys_wait_h=no 17841fi 17842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17843fi 17844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 17845$as_echo "$ac_cv_header_sys_wait_h" >&6; } 17846if test $ac_cv_header_sys_wait_h = yes; then 17847 17848$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 17849 17850fi 17851 17852ac_header_dirent=no 17853for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 17854 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 17855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 17856$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 17857if eval \${$as_ac_Header+:} false; then : 17858 $as_echo_n "(cached) " >&6 17859else 17860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17861/* end confdefs.h. */ 17862#include <sys/types.h> 17863#include <$ac_hdr> 17864 17865int 17866main () 17867{ 17868if ((DIR *) 0) 17869return 0; 17870 ; 17871 return 0; 17872} 17873_ACEOF 17874if ac_fn_cxx_try_compile "$LINENO"; then : 17875 eval "$as_ac_Header=yes" 17876else 17877 eval "$as_ac_Header=no" 17878fi 17879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17880fi 17881eval ac_res=\$$as_ac_Header 17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17883$as_echo "$ac_res" >&6; } 17884if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17885 cat >>confdefs.h <<_ACEOF 17886#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 17887_ACEOF 17888 17889ac_header_dirent=$ac_hdr; break 17890fi 17891 17892done 17893# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 17894if test $ac_header_dirent = dirent.h; then 17895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 17896$as_echo_n "checking for library containing opendir... " >&6; } 17897if ${ac_cv_search_opendir+:} false; then : 17898 $as_echo_n "(cached) " >&6 17899else 17900 ac_func_search_save_LIBS=$LIBS 17901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17902/* end confdefs.h. */ 17903 17904/* Override any GCC internal prototype to avoid an error. 17905 Use char because int might match the return type of a GCC 17906 builtin and then its argument prototype would still apply. */ 17907#ifdef __cplusplus 17908extern "C" 17909#endif 17910char opendir (); 17911int 17912main () 17913{ 17914return opendir (); 17915 ; 17916 return 0; 17917} 17918_ACEOF 17919for ac_lib in '' dir; do 17920 if test -z "$ac_lib"; then 17921 ac_res="none required" 17922 else 17923 ac_res=-l$ac_lib 17924 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17925 fi 17926 if ac_fn_cxx_try_link "$LINENO"; then : 17927 ac_cv_search_opendir=$ac_res 17928fi 17929rm -f core conftest.err conftest.$ac_objext \ 17930 conftest$ac_exeext 17931 if ${ac_cv_search_opendir+:} false; then : 17932 break 17933fi 17934done 17935if ${ac_cv_search_opendir+:} false; then : 17936 17937else 17938 ac_cv_search_opendir=no 17939fi 17940rm conftest.$ac_ext 17941LIBS=$ac_func_search_save_LIBS 17942fi 17943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 17944$as_echo "$ac_cv_search_opendir" >&6; } 17945ac_res=$ac_cv_search_opendir 17946if test "$ac_res" != no; then : 17947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17948 17949fi 17950 17951else 17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 17953$as_echo_n "checking for library containing opendir... " >&6; } 17954if ${ac_cv_search_opendir+:} false; then : 17955 $as_echo_n "(cached) " >&6 17956else 17957 ac_func_search_save_LIBS=$LIBS 17958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17959/* end confdefs.h. */ 17960 17961/* Override any GCC internal prototype to avoid an error. 17962 Use char because int might match the return type of a GCC 17963 builtin and then its argument prototype would still apply. */ 17964#ifdef __cplusplus 17965extern "C" 17966#endif 17967char opendir (); 17968int 17969main () 17970{ 17971return opendir (); 17972 ; 17973 return 0; 17974} 17975_ACEOF 17976for ac_lib in '' x; do 17977 if test -z "$ac_lib"; then 17978 ac_res="none required" 17979 else 17980 ac_res=-l$ac_lib 17981 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17982 fi 17983 if ac_fn_cxx_try_link "$LINENO"; then : 17984 ac_cv_search_opendir=$ac_res 17985fi 17986rm -f core conftest.err conftest.$ac_objext \ 17987 conftest$ac_exeext 17988 if ${ac_cv_search_opendir+:} false; then : 17989 break 17990fi 17991done 17992if ${ac_cv_search_opendir+:} false; then : 17993 17994else 17995 ac_cv_search_opendir=no 17996fi 17997rm conftest.$ac_ext 17998LIBS=$ac_func_search_save_LIBS 17999fi 18000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18001$as_echo "$ac_cv_search_opendir" >&6; } 18002ac_res=$ac_cv_search_opendir 18003if test "$ac_res" != no; then : 18004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18005 18006fi 18007 18008fi 18009 18010 18011 18012 18013 for ac_header in $ac_header_list 18014do : 18015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18016ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 18017" 18018if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18019 cat >>confdefs.h <<_ACEOF 18020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18021_ACEOF 18022 18023fi 18024 18025done 18026 18027 18028 18029 18030 18031 18032 18033 18034for ac_func in getpagesize 18035do : 18036 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 18037if test "x$ac_cv_func_getpagesize" = xyes; then : 18038 cat >>confdefs.h <<_ACEOF 18039#define HAVE_GETPAGESIZE 1 18040_ACEOF 18041 18042fi 18043done 18044 18045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 18046$as_echo_n "checking for working mmap... " >&6; } 18047if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 18048 $as_echo_n "(cached) " >&6 18049else 18050 if test "$cross_compiling" = yes; then : 18051 ac_cv_func_mmap_fixed_mapped=no 18052else 18053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18054/* end confdefs.h. */ 18055$ac_includes_default 18056/* malloc might have been renamed as rpl_malloc. */ 18057#undef malloc 18058 18059/* Thanks to Mike Haertel and Jim Avera for this test. 18060 Here is a matrix of mmap possibilities: 18061 mmap private not fixed 18062 mmap private fixed at somewhere currently unmapped 18063 mmap private fixed at somewhere already mapped 18064 mmap shared not fixed 18065 mmap shared fixed at somewhere currently unmapped 18066 mmap shared fixed at somewhere already mapped 18067 For private mappings, we should verify that changes cannot be read() 18068 back from the file, nor mmap's back from the file at a different 18069 address. (There have been systems where private was not correctly 18070 implemented like the infamous i386 svr4.0, and systems where the 18071 VM page cache was not coherent with the file system buffer cache 18072 like early versions of FreeBSD and possibly contemporary NetBSD.) 18073 For shared mappings, we should conversely verify that changes get 18074 propagated back to all the places they're supposed to be. 18075 18076 Grep wants private fixed already mapped. 18077 The main things grep needs to know about mmap are: 18078 * does it exist and is it safe to write into the mmap'd area 18079 * how to use it (BSD variants) */ 18080 18081#include <fcntl.h> 18082#include <sys/mman.h> 18083 18084#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 18085char *malloc (); 18086#endif 18087 18088/* This mess was copied from the GNU getpagesize.h. */ 18089#ifndef HAVE_GETPAGESIZE 18090# ifdef _SC_PAGESIZE 18091# define getpagesize() sysconf(_SC_PAGESIZE) 18092# else /* no _SC_PAGESIZE */ 18093# ifdef HAVE_SYS_PARAM_H 18094# include <sys/param.h> 18095# ifdef EXEC_PAGESIZE 18096# define getpagesize() EXEC_PAGESIZE 18097# else /* no EXEC_PAGESIZE */ 18098# ifdef NBPG 18099# define getpagesize() NBPG * CLSIZE 18100# ifndef CLSIZE 18101# define CLSIZE 1 18102# endif /* no CLSIZE */ 18103# else /* no NBPG */ 18104# ifdef NBPC 18105# define getpagesize() NBPC 18106# else /* no NBPC */ 18107# ifdef PAGESIZE 18108# define getpagesize() PAGESIZE 18109# endif /* PAGESIZE */ 18110# endif /* no NBPC */ 18111# endif /* no NBPG */ 18112# endif /* no EXEC_PAGESIZE */ 18113# else /* no HAVE_SYS_PARAM_H */ 18114# define getpagesize() 8192 /* punt totally */ 18115# endif /* no HAVE_SYS_PARAM_H */ 18116# endif /* no _SC_PAGESIZE */ 18117 18118#endif /* no HAVE_GETPAGESIZE */ 18119 18120int 18121main () 18122{ 18123 char *data, *data2, *data3; 18124 const char *cdata2; 18125 int i, pagesize; 18126 int fd, fd2; 18127 18128 pagesize = getpagesize (); 18129 18130 /* First, make a file with some known garbage in it. */ 18131 data = (char *) malloc (pagesize); 18132 if (!data) 18133 return 1; 18134 for (i = 0; i < pagesize; ++i) 18135 *(data + i) = rand (); 18136 umask (0); 18137 fd = creat ("conftest.mmap", 0600); 18138 if (fd < 0) 18139 return 2; 18140 if (write (fd, data, pagesize) != pagesize) 18141 return 3; 18142 close (fd); 18143 18144 /* Next, check that the tail of a page is zero-filled. File must have 18145 non-zero length, otherwise we risk SIGBUS for entire page. */ 18146 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 18147 if (fd2 < 0) 18148 return 4; 18149 cdata2 = ""; 18150 if (write (fd2, cdata2, 1) != 1) 18151 return 5; 18152 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 18153 if (data2 == MAP_FAILED) 18154 return 6; 18155 for (i = 0; i < pagesize; ++i) 18156 if (*(data2 + i)) 18157 return 7; 18158 close (fd2); 18159 if (munmap (data2, pagesize)) 18160 return 8; 18161 18162 /* Next, try to mmap the file at a fixed address which already has 18163 something else allocated at it. If we can, also make sure that 18164 we see the same garbage. */ 18165 fd = open ("conftest.mmap", O_RDWR); 18166 if (fd < 0) 18167 return 9; 18168 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 18169 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 18170 return 10; 18171 for (i = 0; i < pagesize; ++i) 18172 if (*(data + i) != *(data2 + i)) 18173 return 11; 18174 18175 /* Finally, make sure that changes to the mapped area do not 18176 percolate back to the file as seen by read(). (This is a bug on 18177 some variants of i386 svr4.0.) */ 18178 for (i = 0; i < pagesize; ++i) 18179 *(data2 + i) = *(data2 + i) + 1; 18180 data3 = (char *) malloc (pagesize); 18181 if (!data3) 18182 return 12; 18183 if (read (fd, data3, pagesize) != pagesize) 18184 return 13; 18185 for (i = 0; i < pagesize; ++i) 18186 if (*(data + i) != *(data3 + i)) 18187 return 14; 18188 close (fd); 18189 return 0; 18190} 18191_ACEOF 18192if ac_fn_cxx_try_run "$LINENO"; then : 18193 ac_cv_func_mmap_fixed_mapped=yes 18194else 18195 ac_cv_func_mmap_fixed_mapped=no 18196fi 18197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18198 conftest.$ac_objext conftest.beam conftest.$ac_ext 18199fi 18200 18201fi 18202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 18203$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 18204if test $ac_cv_func_mmap_fixed_mapped = yes; then 18205 18206$as_echo "#define HAVE_MMAP 1" >>confdefs.h 18207 18208fi 18209rm -f conftest.mmap conftest.txt 18210 18211 18212if test "$no_x" = yes; then 18213X_BASE_LIBS="-lcomctl32 -lwsock32 -lwinspool -lmpr -lgdi32 -limm32" 18214LIBGLU="-lglu32" 18215LIBGL="-lopengl32" 18216fi 18217 18218# Byte order 18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 18220$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 18221if ${ac_cv_c_bigendian+:} false; then : 18222 $as_echo_n "(cached) " >&6 18223else 18224 ac_cv_c_bigendian=unknown 18225 # See if we're dealing with a universal compiler. 18226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18227/* end confdefs.h. */ 18228#ifndef __APPLE_CC__ 18229 not a universal capable compiler 18230 #endif 18231 typedef int dummy; 18232 18233_ACEOF 18234if ac_fn_cxx_try_compile "$LINENO"; then : 18235 18236 # Check for potential -arch flags. It is not universal unless 18237 # there are at least two -arch flags with different values. 18238 ac_arch= 18239 ac_prev= 18240 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 18241 if test -n "$ac_prev"; then 18242 case $ac_word in 18243 i?86 | x86_64 | ppc | ppc64) 18244 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 18245 ac_arch=$ac_word 18246 else 18247 ac_cv_c_bigendian=universal 18248 break 18249 fi 18250 ;; 18251 esac 18252 ac_prev= 18253 elif test "x$ac_word" = "x-arch"; then 18254 ac_prev=arch 18255 fi 18256 done 18257fi 18258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18259 if test $ac_cv_c_bigendian = unknown; then 18260 # See if sys/param.h defines the BYTE_ORDER macro. 18261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18262/* end confdefs.h. */ 18263#include <sys/types.h> 18264 #include <sys/param.h> 18265 18266int 18267main () 18268{ 18269#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 18270 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 18271 && LITTLE_ENDIAN) 18272 bogus endian macros 18273 #endif 18274 18275 ; 18276 return 0; 18277} 18278_ACEOF 18279if ac_fn_cxx_try_compile "$LINENO"; then : 18280 # It does; now see whether it defined to BIG_ENDIAN or not. 18281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18282/* end confdefs.h. */ 18283#include <sys/types.h> 18284 #include <sys/param.h> 18285 18286int 18287main () 18288{ 18289#if BYTE_ORDER != BIG_ENDIAN 18290 not big endian 18291 #endif 18292 18293 ; 18294 return 0; 18295} 18296_ACEOF 18297if ac_fn_cxx_try_compile "$LINENO"; then : 18298 ac_cv_c_bigendian=yes 18299else 18300 ac_cv_c_bigendian=no 18301fi 18302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18303fi 18304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18305 fi 18306 if test $ac_cv_c_bigendian = unknown; then 18307 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 18308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18309/* end confdefs.h. */ 18310#include <limits.h> 18311 18312int 18313main () 18314{ 18315#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 18316 bogus endian macros 18317 #endif 18318 18319 ; 18320 return 0; 18321} 18322_ACEOF 18323if ac_fn_cxx_try_compile "$LINENO"; then : 18324 # It does; now see whether it defined to _BIG_ENDIAN or not. 18325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18326/* end confdefs.h. */ 18327#include <limits.h> 18328 18329int 18330main () 18331{ 18332#ifndef _BIG_ENDIAN 18333 not big endian 18334 #endif 18335 18336 ; 18337 return 0; 18338} 18339_ACEOF 18340if ac_fn_cxx_try_compile "$LINENO"; then : 18341 ac_cv_c_bigendian=yes 18342else 18343 ac_cv_c_bigendian=no 18344fi 18345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18346fi 18347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18348 fi 18349 if test $ac_cv_c_bigendian = unknown; then 18350 # Compile a test program. 18351 if test "$cross_compiling" = yes; then : 18352 # Try to guess by grepping values from an object file. 18353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18354/* end confdefs.h. */ 18355short int ascii_mm[] = 18356 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 18357 short int ascii_ii[] = 18358 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 18359 int use_ascii (int i) { 18360 return ascii_mm[i] + ascii_ii[i]; 18361 } 18362 short int ebcdic_ii[] = 18363 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 18364 short int ebcdic_mm[] = 18365 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 18366 int use_ebcdic (int i) { 18367 return ebcdic_mm[i] + ebcdic_ii[i]; 18368 } 18369 extern int foo; 18370 18371int 18372main () 18373{ 18374return use_ascii (foo) == use_ebcdic (foo); 18375 ; 18376 return 0; 18377} 18378_ACEOF 18379if ac_fn_cxx_try_compile "$LINENO"; then : 18380 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 18381 ac_cv_c_bigendian=yes 18382 fi 18383 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 18384 if test "$ac_cv_c_bigendian" = unknown; then 18385 ac_cv_c_bigendian=no 18386 else 18387 # finding both strings is unlikely to happen, but who knows? 18388 ac_cv_c_bigendian=unknown 18389 fi 18390 fi 18391fi 18392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18393else 18394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18395/* end confdefs.h. */ 18396$ac_includes_default 18397int 18398main () 18399{ 18400 18401 /* Are we little or big endian? From Harbison&Steele. */ 18402 union 18403 { 18404 long int l; 18405 char c[sizeof (long int)]; 18406 } u; 18407 u.l = 1; 18408 return u.c[sizeof (long int) - 1] == 1; 18409 18410 ; 18411 return 0; 18412} 18413_ACEOF 18414if ac_fn_cxx_try_run "$LINENO"; then : 18415 ac_cv_c_bigendian=no 18416else 18417 ac_cv_c_bigendian=yes 18418fi 18419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18420 conftest.$ac_objext conftest.beam conftest.$ac_ext 18421fi 18422 18423 fi 18424fi 18425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 18426$as_echo "$ac_cv_c_bigendian" >&6; } 18427 case $ac_cv_c_bigendian in #( 18428 yes) 18429 FOX_BYTEORDER=1;; #( 18430 no) 18431 FOX_BYTEORDER=0 ;; #( 18432 universal) 18433 18434$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 18435 18436 ;; #( 18437 *) 18438 as_fn_error $? "unknown endianness 18439 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 18440 esac 18441 18442 18443 18444# Threads 18445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 18446$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 18447if ${ac_cv_lib_rt_clock_gettime+:} false; then : 18448 $as_echo_n "(cached) " >&6 18449else 18450 ac_check_lib_save_LIBS=$LIBS 18451LIBS="-lrt $LIBS" 18452cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18453/* end confdefs.h. */ 18454 18455/* Override any GCC internal prototype to avoid an error. 18456 Use char because int might match the return type of a GCC 18457 builtin and then its argument prototype would still apply. */ 18458#ifdef __cplusplus 18459extern "C" 18460#endif 18461char clock_gettime (); 18462int 18463main () 18464{ 18465return clock_gettime (); 18466 ; 18467 return 0; 18468} 18469_ACEOF 18470if ac_fn_cxx_try_link "$LINENO"; then : 18471 ac_cv_lib_rt_clock_gettime=yes 18472else 18473 ac_cv_lib_rt_clock_gettime=no 18474fi 18475rm -f core conftest.err conftest.$ac_objext \ 18476 conftest$ac_exeext conftest.$ac_ext 18477LIBS=$ac_check_lib_save_LIBS 18478fi 18479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 18480$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 18481if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 18482 cat >>confdefs.h <<_ACEOF 18483#define HAVE_LIBRT 1 18484_ACEOF 18485 18486 LIBS="-lrt $LIBS" 18487 18488fi 18489 18490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_exit in -lpthread" >&5 18491$as_echo_n "checking for pthread_exit in -lpthread... " >&6; } 18492if ${ac_cv_lib_pthread_pthread_exit+:} false; then : 18493 $as_echo_n "(cached) " >&6 18494else 18495 ac_check_lib_save_LIBS=$LIBS 18496LIBS="-lpthread $LIBS" 18497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18498/* end confdefs.h. */ 18499 18500/* Override any GCC internal prototype to avoid an error. 18501 Use char because int might match the return type of a GCC 18502 builtin and then its argument prototype would still apply. */ 18503#ifdef __cplusplus 18504extern "C" 18505#endif 18506char pthread_exit (); 18507int 18508main () 18509{ 18510return pthread_exit (); 18511 ; 18512 return 0; 18513} 18514_ACEOF 18515if ac_fn_cxx_try_link "$LINENO"; then : 18516 ac_cv_lib_pthread_pthread_exit=yes 18517else 18518 ac_cv_lib_pthread_pthread_exit=no 18519fi 18520rm -f core conftest.err conftest.$ac_objext \ 18521 conftest$ac_exeext conftest.$ac_ext 18522LIBS=$ac_check_lib_save_LIBS 18523fi 18524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_exit" >&5 18525$as_echo "$ac_cv_lib_pthread_pthread_exit" >&6; } 18526if test "x$ac_cv_lib_pthread_pthread_exit" = xyes; then : 18527 cat >>confdefs.h <<_ACEOF 18528#define HAVE_LIBPTHREAD 1 18529_ACEOF 18530 18531 LIBS="-lpthread $LIBS" 18532 18533fi 18534 18535 18536# Check for dynamic loader 18537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18538$as_echo_n "checking for dlopen in -ldl... " >&6; } 18539if ${ac_cv_lib_dl_dlopen+:} false; then : 18540 $as_echo_n "(cached) " >&6 18541else 18542 ac_check_lib_save_LIBS=$LIBS 18543LIBS="-ldl $LIBS" 18544cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18545/* end confdefs.h. */ 18546 18547/* Override any GCC internal prototype to avoid an error. 18548 Use char because int might match the return type of a GCC 18549 builtin and then its argument prototype would still apply. */ 18550#ifdef __cplusplus 18551extern "C" 18552#endif 18553char dlopen (); 18554int 18555main () 18556{ 18557return dlopen (); 18558 ; 18559 return 0; 18560} 18561_ACEOF 18562if ac_fn_cxx_try_link "$LINENO"; then : 18563 ac_cv_lib_dl_dlopen=yes 18564else 18565 ac_cv_lib_dl_dlopen=no 18566fi 18567rm -f core conftest.err conftest.$ac_objext \ 18568 conftest$ac_exeext conftest.$ac_ext 18569LIBS=$ac_check_lib_save_LIBS 18570fi 18571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18572$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18573if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18574 cat >>confdefs.h <<_ACEOF 18575#define HAVE_LIBDL 1 18576_ACEOF 18577 18578 LIBS="-ldl $LIBS" 18579 18580fi 18581 18582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18583$as_echo_n "checking for shl_load in -ldld... " >&6; } 18584if ${ac_cv_lib_dld_shl_load+:} false; then : 18585 $as_echo_n "(cached) " >&6 18586else 18587 ac_check_lib_save_LIBS=$LIBS 18588LIBS="-ldld $LIBS" 18589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18590/* end confdefs.h. */ 18591 18592/* Override any GCC internal prototype to avoid an error. 18593 Use char because int might match the return type of a GCC 18594 builtin and then its argument prototype would still apply. */ 18595#ifdef __cplusplus 18596extern "C" 18597#endif 18598char shl_load (); 18599int 18600main () 18601{ 18602return shl_load (); 18603 ; 18604 return 0; 18605} 18606_ACEOF 18607if ac_fn_cxx_try_link "$LINENO"; then : 18608 ac_cv_lib_dld_shl_load=yes 18609else 18610 ac_cv_lib_dld_shl_load=no 18611fi 18612rm -f core conftest.err conftest.$ac_objext \ 18613 conftest$ac_exeext conftest.$ac_ext 18614LIBS=$ac_check_lib_save_LIBS 18615fi 18616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18617$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18618if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 18619 cat >>confdefs.h <<_ACEOF 18620#define HAVE_LIBDLD 1 18621_ACEOF 18622 18623 LIBS="-ldld $LIBS" 18624 18625fi 18626 18627 18628# Check vsscanf 18629for ac_func in vsscanf vsnprintf strtoll strtoull 18630do : 18631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18632ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 18633if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18634 cat >>confdefs.h <<_ACEOF 18635#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18636_ACEOF 18637 18638fi 18639done 18640 18641 18642# Add copious amounts of debugging with gcc 18643if test "${GXX}" = "yes" ; then 18644 CXXFLAGS="${CXXFLAGS} -Wall -Wformat -Woverloaded-virtual -Wshadow -DUNICODE" 18645 #LDFLAGS="-rdynamic ${LDFLAGS}" 18646 LDFLAGS="-no-undefined ${LDFLAGS}" 18647fi 18648 18649# Debugging turned on 18650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for debugging" >&5 18651$as_echo_n "checking for debugging... " >&6; } 18652# Check whether --enable-debug was given. 18653if test "${enable_debug+set}" = set; then : 18654 enableval=$enable_debug; 18655fi 18656 18657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 18658$as_echo "$enable_debug" >&6; } 18659if test "x$enable_debug" = "xyes" ; then 18660 CXXFLAGS="${CXXFLAGS} -g -DDEBUG" 18661fi 18662 18663# Building for release 18664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for release build" >&5 18665$as_echo_n "checking for release build... " >&6; } 18666# Check whether --enable-release was given. 18667if test "${enable_release+set}" = set; then : 18668 enableval=$enable_release; 18669fi 18670 18671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_release" >&5 18672$as_echo "$enable_release" >&6; } 18673if test "x$enable_release" = "xyes" ; then 18674 CXXFLAGS="${CXXFLAGS} -DNDEBUG" 18675 if test "${GXX}" = "yes" ; then 18676 CXXFLAGS="${CXXFLAGS} -Wuninitialized" 18677 LDFLAGS="${LDFLAGS}" 18678 fi 18679fi 18680 18681# Enable profiling 18682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for profiling" >&5 18683$as_echo_n "checking for profiling... " >&6; } 18684 18685# Check whether --with-profiling was given. 18686if test "${with_profiling+set}" = set; then : 18687 withval=$with_profiling; 18688fi 18689 18690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_profiling" >&5 18691$as_echo "$with_profiling" >&6; } 18692if test "x$with_profiling" = "xyes" ; then 18693CXXFLAGS="${CXXFLAGS} -p" 18694elif test "x$with_profiling" = "xgprof" ; then 18695CXXFLAGS="${CXXFLAGS} -pg" 18696fi 18697 18698 18699# Check for JPEG Image support 18700# Check whether --enable-jpeg was given. 18701if test "${enable_jpeg+set}" = set; then : 18702 enableval=$enable_jpeg; 18703fi 18704 18705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_jpeg" >&5 18706$as_echo "$enable_jpeg" >&6; } 18707if test "x$enable_jpeg" != "xno"; then 18708ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 18709if test "x$ac_cv_header_jpeglib_h" = xyes; then : 18710 CXXFLAGS="${CXXFLAGS} -DHAVE_JPEG_H=1"; LIBS="${LIBS} ${LIBJPEG:=-ljpeg}" 18711fi 18712 18713 18714fi 18715 18716 18717# Check for PNG Image support; note zlib is needed for PNG 18718# Check whether --enable-png was given. 18719if test "${enable_png+set}" = set; then : 18720 enableval=$enable_png; 18721fi 18722 18723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_png" >&5 18724$as_echo "$enable_png" >&6; } 18725if test "x$enable_png" != "xno"; then 18726for ac_header in png.h 18727do : 18728 ac_fn_cxx_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" 18729if test "x$ac_cv_header_png_h" = xyes; then : 18730 cat >>confdefs.h <<_ACEOF 18731#define HAVE_PNG_H 1 18732_ACEOF 18733 CXXFLAGS="${CXXFLAGS} -DHAVE_PNG_H=1"; LIBS="${LIBS} ${LIBPNG:=-lpng}" 18734fi 18735 18736done 18737 18738fi 18739 18740 18741# Check for TIFF Image support; note zlib is needed for TIFF 18742# Check whether --enable-tiff was given. 18743if test "${enable_tiff+set}" = set; then : 18744 enableval=$enable_tiff; 18745fi 18746 18747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tiff" >&5 18748$as_echo "$enable_tiff" >&6; } 18749if test "x$enable_tiff" != "xno"; then 18750for ac_header in tiff.h 18751do : 18752 ac_fn_cxx_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" 18753if test "x$ac_cv_header_tiff_h" = xyes; then : 18754 cat >>confdefs.h <<_ACEOF 18755#define HAVE_TIFF_H 1 18756_ACEOF 18757 CXXFLAGS="${CXXFLAGS} -DHAVE_TIFF_H=1"; LIBS="${LIBS} ${LIBTIFF:=-ltiff}" 18758fi 18759 18760done 18761 18762fi 18763 18764 18765# Check for libz compression library 18766# Check whether --enable-zlib was given. 18767if test "${enable_zlib+set}" = set; then : 18768 enableval=$enable_zlib; 18769fi 18770 18771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5 18772$as_echo "$enable_zlib" >&6; } 18773if test "x$enable_zlib" != "xno"; then 18774for ac_header in zlib.h 18775do : 18776 ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 18777if test "x$ac_cv_header_zlib_h" = xyes; then : 18778 cat >>confdefs.h <<_ACEOF 18779#define HAVE_ZLIB_H 1 18780_ACEOF 18781 CXXFLAGS="${CXXFLAGS} -DHAVE_ZLIB_H=1"; LIBS="${LIBS} ${LIBZ:=-lz}" 18782fi 18783 18784done 18785 18786fi 18787 18788 18789# Check for bzip2 compression library 18790# Check whether --enable-bz2lib was given. 18791if test "${enable_bz2lib+set}" = set; then : 18792 enableval=$enable_bz2lib; 18793fi 18794 18795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bz2lib" >&5 18796$as_echo "$enable_bz2lib" >&6; } 18797if test "x$enable_bz2lib" != "xno"; then 18798for ac_header in bzlib.h 18799do : 18800 ac_fn_cxx_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 18801if test "x$ac_cv_header_bzlib_h" = xyes; then : 18802 cat >>confdefs.h <<_ACEOF 18803#define HAVE_BZLIB_H 1 18804_ACEOF 18805 CXXFLAGS="${CXXFLAGS} -DHAVE_BZ2LIB_H=1"; LIBS="${LIBS} ${LIBBZ2:=-lbz2}" 18806fi 18807 18808done 18809 18810fi 18811 18812 18813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft support" >&5 18814$as_echo_n "checking for Xft support... " >&6; } 18815 18816# Check whether --with-xft was given. 18817if test "${with_xft+set}" = set; then : 18818 withval=$with_xft; 18819fi 18820 18821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xft" >&5 18822$as_echo "$with_xft" >&6; } 18823if test "x$with_xft" != "xno"; then 18824XFTCFLAGS="-I/usr/include/freetype2" 18825XFTLIBS="-lfreetype -lfontconfig -lXft" 18826saved_cppflags="${CXXFLAGS}" 18827CXXFLAGS="${CXXFLAGS} -DHAVE_XFT_H=1 $XFTCFLAGS" 18828X_BASE_LIBS="${X_BASE_LIBS} $XFTLIBS" 18829fi 18830 18831 18832 18833# Check whether --with-xshm was given. 18834if test "${with_xshm+set}" = set; then : 18835 withval=$with_xshm; 18836fi 18837 18838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xshm" >&5 18839$as_echo "$with_xshm" >&6; } 18840if test "x$with_xshm" != "xno"; then 18841for ac_header in X11/extensions/XShm.h 18842do : 18843 ac_fn_cxx_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "#include <X11/Xlib.h> 18844" 18845if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes; then : 18846 cat >>confdefs.h <<_ACEOF 18847#define HAVE_X11_EXTENSIONS_XSHM_H 1 18848_ACEOF 18849 CXXFLAGS="${CXXFLAGS} -DHAVE_XSHM_H=1" 18850fi 18851 18852done 18853 18854fi 18855 18856 18857 18858# Check whether --with-shape was given. 18859if test "${with_shape+set}" = set; then : 18860 withval=$with_shape; 18861fi 18862 18863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_shape" >&5 18864$as_echo "$with_shape" >&6; } 18865if test "x$with_shape" != "xno"; then 18866for ac_header in X11/extensions/shape.h 18867do : 18868 ac_fn_cxx_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h> 18869" 18870if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then : 18871 cat >>confdefs.h <<_ACEOF 18872#define HAVE_X11_EXTENSIONS_SHAPE_H 1 18873_ACEOF 18874 CXXFLAGS="${CXXFLAGS} -DHAVE_XSHAPE_H=1" 18875fi 18876 18877done 18878 18879fi 18880 18881 18882# Check for Xcursor support 18883 18884# Check whether --with-xcursor was given. 18885if test "${with_xcursor+set}" = set; then : 18886 withval=$with_xcursor; 18887fi 18888 18889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xcursor" >&5 18890$as_echo "$with_xcursor" >&6; } 18891if test "x$with_xcursor" != "xno"; then 18892for ac_header in X11/Xcursor/Xcursor.h 18893do : 18894 ac_fn_cxx_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h> 18895" 18896if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then : 18897 cat >>confdefs.h <<_ACEOF 18898#define HAVE_X11_XCURSOR_XCURSOR_H 1 18899_ACEOF 18900 CXXFLAGS="${CXXFLAGS} -DHAVE_XCURSOR_H=1"; X_BASE_LIBS="${X_BASE_LIBS} -lXcursor" 18901fi 18902 18903done 18904 18905fi 18906 18907 18908# Check for XRender support 18909 18910# Check whether --with-xrender was given. 18911if test "${with_xrender+set}" = set; then : 18912 withval=$with_xrender; 18913fi 18914 18915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xrender" >&5 18916$as_echo "$with_xrender" >&6; } 18917if test "x$with_xrender" != "xno"; then 18918for ac_header in X11/extensions/Xrender.h 18919do : 18920 ac_fn_cxx_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "#include <X11/Xlib.h> 18921" 18922if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then : 18923 cat >>confdefs.h <<_ACEOF 18924#define HAVE_X11_EXTENSIONS_XRENDER_H 1 18925_ACEOF 18926 CXXFLAGS="${CXXFLAGS} -DHAVE_XRENDER_H=1"; X_BASE_LIBS="${X_BASE_LIBS} -lXrender" 18927fi 18928 18929done 18930 18931fi 18932 18933 18934# Check for XRandR support 18935 18936# Check whether --with-xrandr was given. 18937if test "${with_xrandr+set}" = set; then : 18938 withval=$with_xrandr; 18939fi 18940 18941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xrandr" >&5 18942$as_echo "$with_xrandr" >&6; } 18943if test "x$with_xrandr" != "xno"; then 18944for ac_header in X11/extensions/Xrandr.h 18945do : 18946 ac_fn_cxx_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h> 18947" 18948if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then : 18949 cat >>confdefs.h <<_ACEOF 18950#define HAVE_X11_EXTENSIONS_XRANDR_H 1 18951_ACEOF 18952 CXXFLAGS="${CXXFLAGS} -DHAVE_XRANDR_H=1"; X_BASE_LIBS="${X_BASE_LIBS} -lXrandr" 18953fi 18954 18955done 18956 18957fi 18958 18959 18960# Check for XFixes support 18961 18962# Check whether --with-xfixes was given. 18963if test "${with_xfixes+set}" = set; then : 18964 withval=$with_xfixes; 18965fi 18966 18967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xfixes" >&5 18968$as_echo "$with_xfixes" >&6; } 18969if test "x$with_xfixes" != "xno"; then 18970for ac_header in X11/extensions/Xfixes.h 18971do : 18972 ac_fn_cxx_check_header_compile "$LINENO" "X11/extensions/Xfixes.h" "ac_cv_header_X11_extensions_Xfixes_h" "#include <X11/Xlib.h> 18973" 18974if test "x$ac_cv_header_X11_extensions_Xfixes_h" = xyes; then : 18975 cat >>confdefs.h <<_ACEOF 18976#define HAVE_X11_EXTENSIONS_XFIXES_H 1 18977_ACEOF 18978 CXXFLAGS="${CXXFLAGS} -DHAVE_XFIXES_H=1"; X_BASE_LIBS="${X_BASE_LIBS} -lXfixes" 18979fi 18980 18981done 18982 18983fi 18984 18985 18986# Check for XInput support 18987 18988# Check whether --with-xinput was given. 18989if test "${with_xinput+set}" = set; then : 18990 withval=$with_xinput; 18991fi 18992 18993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xinput" >&5 18994$as_echo "$with_xinput" >&6; } 18995if test "x$with_xinput" != "xno"; then 18996for ac_header in X11/extensions/XInput.h 18997do : 18998 ac_fn_cxx_check_header_compile "$LINENO" "X11/extensions/XInput.h" "ac_cv_header_X11_extensions_XInput_h" "#include <X11/Xlib.h> 18999" 19000if test "x$ac_cv_header_X11_extensions_XInput_h" = xyes; then : 19001 cat >>confdefs.h <<_ACEOF 19002#define HAVE_X11_EXTENSIONS_XINPUT_H 1 19003_ACEOF 19004 CXXFLAGS="${CXXFLAGS} -DHAVE_XINPUT_H=1"; X_BASE_LIBS="${X_BASE_LIBS} -lXi" 19005fi 19006 19007done 19008 19009fi 19010 19011 19012# Check for Input Method support 19013 19014# Check whether --with-xim was given. 19015if test "${with_xim+set}" = set; then : 19016 withval=$with_xim; 19017fi 19018 19019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xim" >&5 19020$as_echo "$with_xim" >&6; } 19021##if test "x$with_xim" = "xno"; then 19022if test "x$with_xim" != "xyes"; then 19023CXXFLAGS="${CXXFLAGS} -DNO_XIM" 19024fi 19025 19026# Substitute variables in output files 19027 19028 19029 19030 19031 19032# Compile with 3D support 19033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL support" >&5 19034$as_echo_n "checking for OpenGL support... " >&6; } 19035 19036# Check whether --with-opengl was given. 19037if test "${with_opengl+set}" = set; then : 19038 withval=$with_opengl; 19039fi 19040 19041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opengl" >&5 19042$as_echo "$with_opengl" >&6; } 19043if test "x$with_opengl" != "xno" ; then 19044ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default" 19045if test "x$ac_cv_header_GL_glu_h" = xyes; then : 19046 CXXFLAGS="${CXXFLAGS} -DHAVE_GLU_H=1"; LIBS="${LIBS} ${LIBGLU}" 19047fi 19048 19049 19050ac_fn_cxx_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" 19051if test "x$ac_cv_header_GL_gl_h" = xyes; then : 19052 CXXFLAGS="${CXXFLAGS} -DHAVE_GL_H=1"; LIBS="${LIBS} ${LIBGL}" 19053fi 19054 19055 19056GL_LIBS="${LIBGL} ${LIBGLU}" 19057fi 19058 19059# Substitute variables in output files 19060 19061 19062# Done. 19063ac_config_files="$ac_config_files Makefile utils/Makefile include/Makefile include/fxver.h src/Makefile src/version.rc chart/Makefile doc/Makefile doc/art/Makefile doc/screenshots/Makefile tests/Makefile adie/Makefile shutterbug/Makefile pathfinder/Makefile calculator/Makefile windows/Makefile fox.spec fox-config fox.pc" 19064 19065cat >confcache <<\_ACEOF 19066# This file is a shell script that caches the results of configure 19067# tests run on this system so they can be shared between configure 19068# scripts and configure runs, see configure's option --config-cache. 19069# It is not useful on other systems. If it contains results you don't 19070# want to keep, you may remove or edit it. 19071# 19072# config.status only pays attention to the cache file if you give it 19073# the --recheck option to rerun configure. 19074# 19075# `ac_cv_env_foo' variables (set or unset) will be overridden when 19076# loading this file, other *unset* `ac_cv_foo' will be assigned the 19077# following values. 19078 19079_ACEOF 19080 19081# The following way of writing the cache mishandles newlines in values, 19082# but we know of no workaround that is simple, portable, and efficient. 19083# So, we kill variables containing newlines. 19084# Ultrix sh set writes to stderr and can't be redirected directly, 19085# and sets the high bit in the cache file unless we assign to the vars. 19086( 19087 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19088 eval ac_val=\$$ac_var 19089 case $ac_val in #( 19090 *${as_nl}*) 19091 case $ac_var in #( 19092 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19093$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19094 esac 19095 case $ac_var in #( 19096 _ | IFS | as_nl) ;; #( 19097 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19098 *) { eval $ac_var=; unset $ac_var;} ;; 19099 esac ;; 19100 esac 19101 done 19102 19103 (set) 2>&1 | 19104 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19105 *${as_nl}ac_space=\ *) 19106 # `set' does not quote correctly, so add quotes: double-quote 19107 # substitution turns \\\\ into \\, and sed turns \\ into \. 19108 sed -n \ 19109 "s/'/'\\\\''/g; 19110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19111 ;; #( 19112 *) 19113 # `set' quotes correctly as required by POSIX, so do not add quotes. 19114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19115 ;; 19116 esac | 19117 sort 19118) | 19119 sed ' 19120 /^ac_cv_env_/b end 19121 t clear 19122 :clear 19123 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19124 t end 19125 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19126 :end' >>confcache 19127if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19128 if test -w "$cache_file"; then 19129 if test "x$cache_file" != "x/dev/null"; then 19130 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19131$as_echo "$as_me: updating cache $cache_file" >&6;} 19132 if test ! -f "$cache_file" || test -h "$cache_file"; then 19133 cat confcache >"$cache_file" 19134 else 19135 case $cache_file in #( 19136 */* | ?:*) 19137 mv -f confcache "$cache_file"$$ && 19138 mv -f "$cache_file"$$ "$cache_file" ;; #( 19139 *) 19140 mv -f confcache "$cache_file" ;; 19141 esac 19142 fi 19143 fi 19144 else 19145 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19146$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19147 fi 19148fi 19149rm -f confcache 19150 19151test "x$prefix" = xNONE && prefix=$ac_default_prefix 19152# Let make expand exec_prefix. 19153test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19154 19155# Transform confdefs.h into DEFS. 19156# Protect against shell expansion while executing Makefile rules. 19157# Protect against Makefile macro expansion. 19158# 19159# If the first sed substitution is executed (which looks for macros that 19160# take arguments), then branch to the quote section. Otherwise, 19161# look for a macro that doesn't take arguments. 19162ac_script=' 19163:mline 19164/\\$/{ 19165 N 19166 s,\\\n,, 19167 b mline 19168} 19169t clear 19170:clear 19171s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 19172t quote 19173s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 19174t quote 19175b any 19176:quote 19177s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 19178s/\[/\\&/g 19179s/\]/\\&/g 19180s/\$/$$/g 19181H 19182:any 19183${ 19184 g 19185 s/^\n// 19186 s/\n/ /g 19187 p 19188} 19189' 19190DEFS=`sed -n "$ac_script" confdefs.h` 19191 19192 19193ac_libobjs= 19194ac_ltlibobjs= 19195U= 19196for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19197 # 1. Remove the extension, and $U if already installed. 19198 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19199 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19200 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19201 # will be set to the directory where LIBOBJS objects are built. 19202 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19203 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19204done 19205LIBOBJS=$ac_libobjs 19206 19207LTLIBOBJS=$ac_ltlibobjs 19208 19209 19210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19211$as_echo_n "checking that generated files are newer than configure... " >&6; } 19212 if test -n "$am_sleep_pid"; then 19213 # Hide warnings about reused PIDs. 19214 wait $am_sleep_pid 2>/dev/null 19215 fi 19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19217$as_echo "done" >&6; } 19218 if test -n "$EXEEXT"; then 19219 am__EXEEXT_TRUE= 19220 am__EXEEXT_FALSE='#' 19221else 19222 am__EXEEXT_TRUE='#' 19223 am__EXEEXT_FALSE= 19224fi 19225 19226if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19227 as_fn_error $? "conditional \"AMDEP\" was never defined. 19228Usually this means the macro was only invoked conditionally." "$LINENO" 5 19229fi 19230if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19231 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19232Usually this means the macro was only invoked conditionally." "$LINENO" 5 19233fi 19234if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19235 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 19236Usually this means the macro was only invoked conditionally." "$LINENO" 5 19237fi 19238if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19239 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19240Usually this means the macro was only invoked conditionally." "$LINENO" 5 19241fi 19242 19243 19244: "${CONFIG_STATUS=./config.status}" 19245ac_write_fail=0 19246ac_clean_files_save=$ac_clean_files 19247ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19248{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19249$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19250as_write_fail=0 19251cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19252#! $SHELL 19253# Generated by $as_me. 19254# Run this file to recreate the current configuration. 19255# Compiler output produced by configure, useful for debugging 19256# configure, is in config.log if it exists. 19257 19258debug=false 19259ac_cs_recheck=false 19260ac_cs_silent=false 19261 19262SHELL=\${CONFIG_SHELL-$SHELL} 19263export SHELL 19264_ASEOF 19265cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19266## -------------------- ## 19267## M4sh Initialization. ## 19268## -------------------- ## 19269 19270# Be more Bourne compatible 19271DUALCASE=1; export DUALCASE # for MKS sh 19272if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19273 emulate sh 19274 NULLCMD=: 19275 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19276 # is contrary to our usage. Disable this feature. 19277 alias -g '${1+"$@"}'='"$@"' 19278 setopt NO_GLOB_SUBST 19279else 19280 case `(set -o) 2>/dev/null` in #( 19281 *posix*) : 19282 set -o posix ;; #( 19283 *) : 19284 ;; 19285esac 19286fi 19287 19288 19289as_nl=' 19290' 19291export as_nl 19292# Printing a long string crashes Solaris 7 /usr/bin/printf. 19293as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19294as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19295as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19296# Prefer a ksh shell builtin over an external printf program on Solaris, 19297# but without wasting forks for bash or zsh. 19298if test -z "$BASH_VERSION$ZSH_VERSION" \ 19299 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19300 as_echo='print -r --' 19301 as_echo_n='print -rn --' 19302elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19303 as_echo='printf %s\n' 19304 as_echo_n='printf %s' 19305else 19306 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19307 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19308 as_echo_n='/usr/ucb/echo -n' 19309 else 19310 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19311 as_echo_n_body='eval 19312 arg=$1; 19313 case $arg in #( 19314 *"$as_nl"*) 19315 expr "X$arg" : "X\\(.*\\)$as_nl"; 19316 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19317 esac; 19318 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19319 ' 19320 export as_echo_n_body 19321 as_echo_n='sh -c $as_echo_n_body as_echo' 19322 fi 19323 export as_echo_body 19324 as_echo='sh -c $as_echo_body as_echo' 19325fi 19326 19327# The user is always right. 19328if test "${PATH_SEPARATOR+set}" != set; then 19329 PATH_SEPARATOR=: 19330 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19331 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19332 PATH_SEPARATOR=';' 19333 } 19334fi 19335 19336 19337# IFS 19338# We need space, tab and new line, in precisely that order. Quoting is 19339# there to prevent editors from complaining about space-tab. 19340# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19341# splitting by setting IFS to empty value.) 19342IFS=" "" $as_nl" 19343 19344# Find who we are. Look in the path if we contain no directory separator. 19345as_myself= 19346case $0 in #(( 19347 *[\\/]* ) as_myself=$0 ;; 19348 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19349for as_dir in $PATH 19350do 19351 IFS=$as_save_IFS 19352 test -z "$as_dir" && as_dir=. 19353 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19354 done 19355IFS=$as_save_IFS 19356 19357 ;; 19358esac 19359# We did not find ourselves, most probably we were run as `sh COMMAND' 19360# in which case we are not to be found in the path. 19361if test "x$as_myself" = x; then 19362 as_myself=$0 19363fi 19364if test ! -f "$as_myself"; then 19365 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19366 exit 1 19367fi 19368 19369# Unset variables that we do not need and which cause bugs (e.g. in 19370# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19371# suppresses any "Segmentation fault" message there. '((' could 19372# trigger a bug in pdksh 5.2.14. 19373for as_var in BASH_ENV ENV MAIL MAILPATH 19374do eval test x\${$as_var+set} = xset \ 19375 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19376done 19377PS1='$ ' 19378PS2='> ' 19379PS4='+ ' 19380 19381# NLS nuisances. 19382LC_ALL=C 19383export LC_ALL 19384LANGUAGE=C 19385export LANGUAGE 19386 19387# CDPATH. 19388(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19389 19390 19391# as_fn_error STATUS ERROR [LINENO LOG_FD] 19392# ---------------------------------------- 19393# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19394# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19395# script with STATUS, using 1 if that was 0. 19396as_fn_error () 19397{ 19398 as_status=$1; test $as_status -eq 0 && as_status=1 19399 if test "$4"; then 19400 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19401 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19402 fi 19403 $as_echo "$as_me: error: $2" >&2 19404 as_fn_exit $as_status 19405} # as_fn_error 19406 19407 19408# as_fn_set_status STATUS 19409# ----------------------- 19410# Set $? to STATUS, without forking. 19411as_fn_set_status () 19412{ 19413 return $1 19414} # as_fn_set_status 19415 19416# as_fn_exit STATUS 19417# ----------------- 19418# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19419as_fn_exit () 19420{ 19421 set +e 19422 as_fn_set_status $1 19423 exit $1 19424} # as_fn_exit 19425 19426# as_fn_unset VAR 19427# --------------- 19428# Portably unset VAR. 19429as_fn_unset () 19430{ 19431 { eval $1=; unset $1;} 19432} 19433as_unset=as_fn_unset 19434# as_fn_append VAR VALUE 19435# ---------------------- 19436# Append the text in VALUE to the end of the definition contained in VAR. Take 19437# advantage of any shell optimizations that allow amortized linear growth over 19438# repeated appends, instead of the typical quadratic growth present in naive 19439# implementations. 19440if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19441 eval 'as_fn_append () 19442 { 19443 eval $1+=\$2 19444 }' 19445else 19446 as_fn_append () 19447 { 19448 eval $1=\$$1\$2 19449 } 19450fi # as_fn_append 19451 19452# as_fn_arith ARG... 19453# ------------------ 19454# Perform arithmetic evaluation on the ARGs, and store the result in the 19455# global $as_val. Take advantage of shells that can avoid forks. The arguments 19456# must be portable across $(()) and expr. 19457if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19458 eval 'as_fn_arith () 19459 { 19460 as_val=$(( $* )) 19461 }' 19462else 19463 as_fn_arith () 19464 { 19465 as_val=`expr "$@" || test $? -eq 1` 19466 } 19467fi # as_fn_arith 19468 19469 19470if expr a : '\(a\)' >/dev/null 2>&1 && 19471 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19472 as_expr=expr 19473else 19474 as_expr=false 19475fi 19476 19477if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19478 as_basename=basename 19479else 19480 as_basename=false 19481fi 19482 19483if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19484 as_dirname=dirname 19485else 19486 as_dirname=false 19487fi 19488 19489as_me=`$as_basename -- "$0" || 19490$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19491 X"$0" : 'X\(//\)$' \| \ 19492 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19493$as_echo X/"$0" | 19494 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19495 s//\1/ 19496 q 19497 } 19498 /^X\/\(\/\/\)$/{ 19499 s//\1/ 19500 q 19501 } 19502 /^X\/\(\/\).*/{ 19503 s//\1/ 19504 q 19505 } 19506 s/.*/./; q'` 19507 19508# Avoid depending upon Character Ranges. 19509as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19510as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19511as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19512as_cr_digits='0123456789' 19513as_cr_alnum=$as_cr_Letters$as_cr_digits 19514 19515ECHO_C= ECHO_N= ECHO_T= 19516case `echo -n x` in #((((( 19517-n*) 19518 case `echo 'xy\c'` in 19519 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19520 xy) ECHO_C='\c';; 19521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19522 ECHO_T=' ';; 19523 esac;; 19524*) 19525 ECHO_N='-n';; 19526esac 19527 19528rm -f conf$$ conf$$.exe conf$$.file 19529if test -d conf$$.dir; then 19530 rm -f conf$$.dir/conf$$.file 19531else 19532 rm -f conf$$.dir 19533 mkdir conf$$.dir 2>/dev/null 19534fi 19535if (echo >conf$$.file) 2>/dev/null; then 19536 if ln -s conf$$.file conf$$ 2>/dev/null; then 19537 as_ln_s='ln -s' 19538 # ... but there are two gotchas: 19539 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19540 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19541 # In both cases, we have to default to `cp -pR'. 19542 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19543 as_ln_s='cp -pR' 19544 elif ln conf$$.file conf$$ 2>/dev/null; then 19545 as_ln_s=ln 19546 else 19547 as_ln_s='cp -pR' 19548 fi 19549else 19550 as_ln_s='cp -pR' 19551fi 19552rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19553rmdir conf$$.dir 2>/dev/null 19554 19555 19556# as_fn_mkdir_p 19557# ------------- 19558# Create "$as_dir" as a directory, including parents if necessary. 19559as_fn_mkdir_p () 19560{ 19561 19562 case $as_dir in #( 19563 -*) as_dir=./$as_dir;; 19564 esac 19565 test -d "$as_dir" || eval $as_mkdir_p || { 19566 as_dirs= 19567 while :; do 19568 case $as_dir in #( 19569 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19570 *) as_qdir=$as_dir;; 19571 esac 19572 as_dirs="'$as_qdir' $as_dirs" 19573 as_dir=`$as_dirname -- "$as_dir" || 19574$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19575 X"$as_dir" : 'X\(//\)[^/]' \| \ 19576 X"$as_dir" : 'X\(//\)$' \| \ 19577 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19578$as_echo X"$as_dir" | 19579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19580 s//\1/ 19581 q 19582 } 19583 /^X\(\/\/\)[^/].*/{ 19584 s//\1/ 19585 q 19586 } 19587 /^X\(\/\/\)$/{ 19588 s//\1/ 19589 q 19590 } 19591 /^X\(\/\).*/{ 19592 s//\1/ 19593 q 19594 } 19595 s/.*/./; q'` 19596 test -d "$as_dir" && break 19597 done 19598 test -z "$as_dirs" || eval "mkdir $as_dirs" 19599 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19600 19601 19602} # as_fn_mkdir_p 19603if mkdir -p . 2>/dev/null; then 19604 as_mkdir_p='mkdir -p "$as_dir"' 19605else 19606 test -d ./-p && rmdir ./-p 19607 as_mkdir_p=false 19608fi 19609 19610 19611# as_fn_executable_p FILE 19612# ----------------------- 19613# Test if FILE is an executable regular file. 19614as_fn_executable_p () 19615{ 19616 test -f "$1" && test -x "$1" 19617} # as_fn_executable_p 19618as_test_x='test -x' 19619as_executable_p=as_fn_executable_p 19620 19621# Sed expression to map a string onto a valid CPP name. 19622as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19623 19624# Sed expression to map a string onto a valid variable name. 19625as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19626 19627 19628exec 6>&1 19629## ----------------------------------- ## 19630## Main body of $CONFIG_STATUS script. ## 19631## ----------------------------------- ## 19632_ASEOF 19633test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19634 19635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19636# Save the log message, to keep $0 and so on meaningful, and to 19637# report actual input values of CONFIG_FILES etc. instead of their 19638# values after options handling. 19639ac_log=" 19640This file was extended by fox $as_me 1.6.57, which was 19641generated by GNU Autoconf 2.69. Invocation command line was 19642 19643 CONFIG_FILES = $CONFIG_FILES 19644 CONFIG_HEADERS = $CONFIG_HEADERS 19645 CONFIG_LINKS = $CONFIG_LINKS 19646 CONFIG_COMMANDS = $CONFIG_COMMANDS 19647 $ $0 $@ 19648 19649on `(hostname || uname -n) 2>/dev/null | sed 1q` 19650" 19651 19652_ACEOF 19653 19654case $ac_config_files in *" 19655"*) set x $ac_config_files; shift; ac_config_files=$*;; 19656esac 19657 19658 19659 19660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19661# Files that config.status was made for. 19662config_files="$ac_config_files" 19663config_commands="$ac_config_commands" 19664 19665_ACEOF 19666 19667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19668ac_cs_usage="\ 19669\`$as_me' instantiates files and other configuration actions 19670from templates according to the current configuration. Unless the files 19671and actions are specified as TAGs, all are instantiated by default. 19672 19673Usage: $0 [OPTION]... [TAG]... 19674 19675 -h, --help print this help, then exit 19676 -V, --version print version number and configuration settings, then exit 19677 --config print configuration, then exit 19678 -q, --quiet, --silent 19679 do not print progress messages 19680 -d, --debug don't remove temporary files 19681 --recheck update $as_me by reconfiguring in the same conditions 19682 --file=FILE[:TEMPLATE] 19683 instantiate the configuration file FILE 19684 19685Configuration files: 19686$config_files 19687 19688Configuration commands: 19689$config_commands 19690 19691Report bugs to <jeroen@fox-toolkit.com>." 19692 19693_ACEOF 19694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19695ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19696ac_cs_version="\\ 19697fox config.status 1.6.57 19698configured by $0, generated by GNU Autoconf 2.69, 19699 with options \\"\$ac_cs_config\\" 19700 19701Copyright (C) 2012 Free Software Foundation, Inc. 19702This config.status script is free software; the Free Software Foundation 19703gives unlimited permission to copy, distribute and modify it." 19704 19705ac_pwd='$ac_pwd' 19706srcdir='$srcdir' 19707INSTALL='$INSTALL' 19708MKDIR_P='$MKDIR_P' 19709AWK='$AWK' 19710test -n "\$AWK" || AWK=awk 19711_ACEOF 19712 19713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19714# The default lists apply if the user does not specify any file. 19715ac_need_defaults=: 19716while test $# != 0 19717do 19718 case $1 in 19719 --*=?*) 19720 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19721 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19722 ac_shift=: 19723 ;; 19724 --*=) 19725 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19726 ac_optarg= 19727 ac_shift=: 19728 ;; 19729 *) 19730 ac_option=$1 19731 ac_optarg=$2 19732 ac_shift=shift 19733 ;; 19734 esac 19735 19736 case $ac_option in 19737 # Handling of the options. 19738 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19739 ac_cs_recheck=: ;; 19740 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19741 $as_echo "$ac_cs_version"; exit ;; 19742 --config | --confi | --conf | --con | --co | --c ) 19743 $as_echo "$ac_cs_config"; exit ;; 19744 --debug | --debu | --deb | --de | --d | -d ) 19745 debug=: ;; 19746 --file | --fil | --fi | --f ) 19747 $ac_shift 19748 case $ac_optarg in 19749 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19750 '') as_fn_error $? "missing file argument" ;; 19751 esac 19752 as_fn_append CONFIG_FILES " '$ac_optarg'" 19753 ac_need_defaults=false;; 19754 --he | --h | --help | --hel | -h ) 19755 $as_echo "$ac_cs_usage"; exit ;; 19756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19757 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19758 ac_cs_silent=: ;; 19759 19760 # This is an error. 19761 -*) as_fn_error $? "unrecognized option: \`$1' 19762Try \`$0 --help' for more information." ;; 19763 19764 *) as_fn_append ac_config_targets " $1" 19765 ac_need_defaults=false ;; 19766 19767 esac 19768 shift 19769done 19770 19771ac_configure_extra_args= 19772 19773if $ac_cs_silent; then 19774 exec 6>/dev/null 19775 ac_configure_extra_args="$ac_configure_extra_args --silent" 19776fi 19777 19778_ACEOF 19779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19780if \$ac_cs_recheck; then 19781 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19782 shift 19783 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19784 CONFIG_SHELL='$SHELL' 19785 export CONFIG_SHELL 19786 exec "\$@" 19787fi 19788 19789_ACEOF 19790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19791exec 5>>config.log 19792{ 19793 echo 19794 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19795## Running $as_me. ## 19796_ASBOX 19797 $as_echo "$ac_log" 19798} >&5 19799 19800_ACEOF 19801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19802# 19803# INIT-COMMANDS 19804# 19805AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19806 19807 19808# The HP-UX ksh and POSIX shell print the target directory to stdout 19809# if CDPATH is set. 19810(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19811 19812sed_quote_subst='$sed_quote_subst' 19813double_quote_subst='$double_quote_subst' 19814delay_variable_subst='$delay_variable_subst' 19815macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19816macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19817enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19818enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19819pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19820enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19821shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19822SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19823ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19824PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19825host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19826host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19827host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19828build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19829build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19830build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19831SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19832Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19833GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19834EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19835FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19836LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19837NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19838LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19839max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19840ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19841exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19842lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19843lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19844lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19845lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19846lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19847reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19848reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19849OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19850deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19851file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19852file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19853want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19854DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19855sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19856AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19857AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19858archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19859STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19860RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19861old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19862old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19863old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19864lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19865CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19866CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19867compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19868GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19869lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19870lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19871lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19872lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19873lt_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"`' 19874lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19875nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19876lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19877lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19878objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19879MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19880lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19881lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19882lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19883lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19884lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19885need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19886MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19887DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19888NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19889LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19890OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19891OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19892libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19893shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19894extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19895archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19896enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19897export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19898whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19899compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19900old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19901old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19902archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19903archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19904module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19905module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19906with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19907allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19908no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19909hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19910hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19911hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19912hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19913hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19914hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19915hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19916inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19917link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19918always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19919export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19920exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19921include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19922prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19923postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19924file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19925variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19926need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19927need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19928version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19929runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19930shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19931shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19932libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19933library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19934soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19935install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19936postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19937postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19938finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19939finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19940hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19941sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19942configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19943configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19944hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19945enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19946enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19947enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19948old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19949striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19950compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 19951predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 19952postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 19953predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 19954postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 19955compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 19956LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 19957reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 19958reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19959old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19960compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 19961GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 19962lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 19963lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 19964lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 19965lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 19966lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 19967archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 19968enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 19969export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19970whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19971compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 19972old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19973old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19974archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19975archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19976module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19977module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19978with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 19979allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19980no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19981hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19982hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 19983hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 19984hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 19985hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 19986hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 19987hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 19988inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19989link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19990always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19991export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19992exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19993include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19994prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19995postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19996file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19997hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19998compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19999predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20000postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20001predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 20002postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 20003compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 20004 20005LTCC='$LTCC' 20006LTCFLAGS='$LTCFLAGS' 20007compiler='$compiler_DEFAULT' 20008 20009# A function that is used when there is no print builtin or printf. 20010func_fallback_echo () 20011{ 20012 eval 'cat <<_LTECHO_EOF 20013\$1 20014_LTECHO_EOF' 20015} 20016 20017# Quote evaled strings. 20018for var in SHELL \ 20019ECHO \ 20020PATH_SEPARATOR \ 20021SED \ 20022GREP \ 20023EGREP \ 20024FGREP \ 20025LD \ 20026NM \ 20027LN_S \ 20028lt_SP2NL \ 20029lt_NL2SP \ 20030reload_flag \ 20031OBJDUMP \ 20032deplibs_check_method \ 20033file_magic_cmd \ 20034file_magic_glob \ 20035want_nocaseglob \ 20036DLLTOOL \ 20037sharedlib_from_linklib_cmd \ 20038AR \ 20039AR_FLAGS \ 20040archiver_list_spec \ 20041STRIP \ 20042RANLIB \ 20043CC \ 20044CFLAGS \ 20045compiler \ 20046lt_cv_sys_global_symbol_pipe \ 20047lt_cv_sys_global_symbol_to_cdecl \ 20048lt_cv_sys_global_symbol_to_import \ 20049lt_cv_sys_global_symbol_to_c_name_address \ 20050lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20051lt_cv_nm_interface \ 20052nm_file_list_spec \ 20053lt_cv_truncate_bin \ 20054lt_prog_compiler_no_builtin_flag \ 20055lt_prog_compiler_pic \ 20056lt_prog_compiler_wl \ 20057lt_prog_compiler_static \ 20058lt_cv_prog_compiler_c_o \ 20059need_locks \ 20060MANIFEST_TOOL \ 20061DSYMUTIL \ 20062NMEDIT \ 20063LIPO \ 20064OTOOL \ 20065OTOOL64 \ 20066shrext_cmds \ 20067export_dynamic_flag_spec \ 20068whole_archive_flag_spec \ 20069compiler_needs_object \ 20070with_gnu_ld \ 20071allow_undefined_flag \ 20072no_undefined_flag \ 20073hardcode_libdir_flag_spec \ 20074hardcode_libdir_separator \ 20075exclude_expsyms \ 20076include_expsyms \ 20077file_list_spec \ 20078variables_saved_for_relink \ 20079libname_spec \ 20080library_names_spec \ 20081soname_spec \ 20082install_override_mode \ 20083finish_eval \ 20084old_striplib \ 20085striplib \ 20086compiler_lib_search_dirs \ 20087predep_objects \ 20088postdep_objects \ 20089predeps \ 20090postdeps \ 20091compiler_lib_search_path \ 20092LD_CXX \ 20093reload_flag_CXX \ 20094compiler_CXX \ 20095lt_prog_compiler_no_builtin_flag_CXX \ 20096lt_prog_compiler_pic_CXX \ 20097lt_prog_compiler_wl_CXX \ 20098lt_prog_compiler_static_CXX \ 20099lt_cv_prog_compiler_c_o_CXX \ 20100export_dynamic_flag_spec_CXX \ 20101whole_archive_flag_spec_CXX \ 20102compiler_needs_object_CXX \ 20103with_gnu_ld_CXX \ 20104allow_undefined_flag_CXX \ 20105no_undefined_flag_CXX \ 20106hardcode_libdir_flag_spec_CXX \ 20107hardcode_libdir_separator_CXX \ 20108exclude_expsyms_CXX \ 20109include_expsyms_CXX \ 20110file_list_spec_CXX \ 20111compiler_lib_search_dirs_CXX \ 20112predep_objects_CXX \ 20113postdep_objects_CXX \ 20114predeps_CXX \ 20115postdeps_CXX \ 20116compiler_lib_search_path_CXX; do 20117 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20118 *[\\\\\\\`\\"\\\$]*) 20119 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20120 ;; 20121 *) 20122 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20123 ;; 20124 esac 20125done 20126 20127# Double-quote double-evaled strings. 20128for var in reload_cmds \ 20129old_postinstall_cmds \ 20130old_postuninstall_cmds \ 20131old_archive_cmds \ 20132extract_expsyms_cmds \ 20133old_archive_from_new_cmds \ 20134old_archive_from_expsyms_cmds \ 20135archive_cmds \ 20136archive_expsym_cmds \ 20137module_cmds \ 20138module_expsym_cmds \ 20139export_symbols_cmds \ 20140prelink_cmds \ 20141postlink_cmds \ 20142postinstall_cmds \ 20143postuninstall_cmds \ 20144finish_cmds \ 20145sys_lib_search_path_spec \ 20146configure_time_dlsearch_path \ 20147configure_time_lt_sys_library_path \ 20148reload_cmds_CXX \ 20149old_archive_cmds_CXX \ 20150old_archive_from_new_cmds_CXX \ 20151old_archive_from_expsyms_cmds_CXX \ 20152archive_cmds_CXX \ 20153archive_expsym_cmds_CXX \ 20154module_cmds_CXX \ 20155module_expsym_cmds_CXX \ 20156export_symbols_cmds_CXX \ 20157prelink_cmds_CXX \ 20158postlink_cmds_CXX; do 20159 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20160 *[\\\\\\\`\\"\\\$]*) 20161 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20162 ;; 20163 *) 20164 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20165 ;; 20166 esac 20167done 20168 20169ac_aux_dir='$ac_aux_dir' 20170 20171# See if we are running on zsh, and set the options that allow our 20172# commands through without removal of \ escapes INIT. 20173if test -n "\${ZSH_VERSION+set}"; then 20174 setopt NO_GLOB_SUBST 20175fi 20176 20177 20178 PACKAGE='$PACKAGE' 20179 VERSION='$VERSION' 20180 RM='$RM' 20181 ofile='$ofile' 20182 20183 20184 20185 20186 20187 20188_ACEOF 20189 20190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20191 20192# Handling of arguments. 20193for ac_config_target in $ac_config_targets 20194do 20195 case $ac_config_target in 20196 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20197 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20198 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20199 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 20200 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 20201 "include/fxver.h") CONFIG_FILES="$CONFIG_FILES include/fxver.h" ;; 20202 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20203 "src/version.rc") CONFIG_FILES="$CONFIG_FILES src/version.rc" ;; 20204 "chart/Makefile") CONFIG_FILES="$CONFIG_FILES chart/Makefile" ;; 20205 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20206 "doc/art/Makefile") CONFIG_FILES="$CONFIG_FILES doc/art/Makefile" ;; 20207 "doc/screenshots/Makefile") CONFIG_FILES="$CONFIG_FILES doc/screenshots/Makefile" ;; 20208 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 20209 "adie/Makefile") CONFIG_FILES="$CONFIG_FILES adie/Makefile" ;; 20210 "shutterbug/Makefile") CONFIG_FILES="$CONFIG_FILES shutterbug/Makefile" ;; 20211 "pathfinder/Makefile") CONFIG_FILES="$CONFIG_FILES pathfinder/Makefile" ;; 20212 "calculator/Makefile") CONFIG_FILES="$CONFIG_FILES calculator/Makefile" ;; 20213 "windows/Makefile") CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;; 20214 "fox.spec") CONFIG_FILES="$CONFIG_FILES fox.spec" ;; 20215 "fox-config") CONFIG_FILES="$CONFIG_FILES fox-config" ;; 20216 "fox.pc") CONFIG_FILES="$CONFIG_FILES fox.pc" ;; 20217 20218 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20219 esac 20220done 20221 20222 20223# If the user did not use the arguments to specify the items to instantiate, 20224# then the envvar interface is used. Set only those that are not. 20225# We use the long form for the default assignment because of an extremely 20226# bizarre bug on SunOS 4.1.3. 20227if $ac_need_defaults; then 20228 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20229 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20230fi 20231 20232# Have a temporary directory for convenience. Make it in the build tree 20233# simply because there is no reason against having it here, and in addition, 20234# creating and moving files from /tmp can sometimes cause problems. 20235# Hook for its removal unless debugging. 20236# Note that there is a small window in which the directory will not be cleaned: 20237# after its creation but before its name has been assigned to `$tmp'. 20238$debug || 20239{ 20240 tmp= ac_tmp= 20241 trap 'exit_status=$? 20242 : "${ac_tmp:=$tmp}" 20243 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20244' 0 20245 trap 'as_fn_exit 1' 1 2 13 15 20246} 20247# Create a (secure) tmp directory for tmp files. 20248 20249{ 20250 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20251 test -d "$tmp" 20252} || 20253{ 20254 tmp=./conf$$-$RANDOM 20255 (umask 077 && mkdir "$tmp") 20256} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20257ac_tmp=$tmp 20258 20259# Set up the scripts for CONFIG_FILES section. 20260# No need to generate them if there are no CONFIG_FILES. 20261# This happens for instance with `./config.status config.h'. 20262if test -n "$CONFIG_FILES"; then 20263 20264 20265ac_cr=`echo X | tr X '\015'` 20266# On cygwin, bash can eat \r inside `` if the user requested igncr. 20267# But we know of no other shell where ac_cr would be empty at this 20268# point, so we can use a bashism as a fallback. 20269if test "x$ac_cr" = x; then 20270 eval ac_cr=\$\'\\r\' 20271fi 20272ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20273if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20274 ac_cs_awk_cr='\\r' 20275else 20276 ac_cs_awk_cr=$ac_cr 20277fi 20278 20279echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20280_ACEOF 20281 20282 20283{ 20284 echo "cat >conf$$subs.awk <<_ACEOF" && 20285 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20286 echo "_ACEOF" 20287} >conf$$subs.sh || 20288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20289ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20290ac_delim='%!_!# ' 20291for ac_last_try in false false false false false :; do 20292 . ./conf$$subs.sh || 20293 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20294 20295 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20296 if test $ac_delim_n = $ac_delim_num; then 20297 break 20298 elif $ac_last_try; then 20299 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20300 else 20301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20302 fi 20303done 20304rm -f conf$$subs.sh 20305 20306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20307cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20308_ACEOF 20309sed -n ' 20310h 20311s/^/S["/; s/!.*/"]=/ 20312p 20313g 20314s/^[^!]*!// 20315:repl 20316t repl 20317s/'"$ac_delim"'$// 20318t delim 20319:nl 20320h 20321s/\(.\{148\}\)..*/\1/ 20322t more1 20323s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20324p 20325n 20326b repl 20327:more1 20328s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20329p 20330g 20331s/.\{148\}// 20332t nl 20333:delim 20334h 20335s/\(.\{148\}\)..*/\1/ 20336t more2 20337s/["\\]/\\&/g; s/^/"/; s/$/"/ 20338p 20339b 20340:more2 20341s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20342p 20343g 20344s/.\{148\}// 20345t delim 20346' <conf$$subs.awk | sed ' 20347/^[^""]/{ 20348 N 20349 s/\n// 20350} 20351' >>$CONFIG_STATUS || ac_write_fail=1 20352rm -f conf$$subs.awk 20353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20354_ACAWK 20355cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20356 for (key in S) S_is_set[key] = 1 20357 FS = "" 20358 20359} 20360{ 20361 line = $ 0 20362 nfields = split(line, field, "@") 20363 substed = 0 20364 len = length(field[1]) 20365 for (i = 2; i < nfields; i++) { 20366 key = field[i] 20367 keylen = length(key) 20368 if (S_is_set[key]) { 20369 value = S[key] 20370 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20371 len += length(value) + length(field[++i]) 20372 substed = 1 20373 } else 20374 len += 1 + keylen 20375 } 20376 20377 print line 20378} 20379 20380_ACAWK 20381_ACEOF 20382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20383if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20384 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20385else 20386 cat 20387fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20388 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20389_ACEOF 20390 20391# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20392# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20393# trailing colons and then remove the whole line if VPATH becomes empty 20394# (actually we leave an empty line to preserve line numbers). 20395if test "x$srcdir" = x.; then 20396 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20397h 20398s/// 20399s/^/:/ 20400s/[ ]*$/:/ 20401s/:\$(srcdir):/:/g 20402s/:\${srcdir}:/:/g 20403s/:@srcdir@:/:/g 20404s/^:*// 20405s/:*$// 20406x 20407s/\(=[ ]*\).*/\1/ 20408G 20409s/\n// 20410s/^[^=]*=[ ]*$// 20411}' 20412fi 20413 20414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20415fi # test -n "$CONFIG_FILES" 20416 20417 20418eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 20419shift 20420for ac_tag 20421do 20422 case $ac_tag in 20423 :[FHLC]) ac_mode=$ac_tag; continue;; 20424 esac 20425 case $ac_mode$ac_tag in 20426 :[FHL]*:*);; 20427 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20428 :[FH]-) ac_tag=-:-;; 20429 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20430 esac 20431 ac_save_IFS=$IFS 20432 IFS=: 20433 set x $ac_tag 20434 IFS=$ac_save_IFS 20435 shift 20436 ac_file=$1 20437 shift 20438 20439 case $ac_mode in 20440 :L) ac_source=$1;; 20441 :[FH]) 20442 ac_file_inputs= 20443 for ac_f 20444 do 20445 case $ac_f in 20446 -) ac_f="$ac_tmp/stdin";; 20447 *) # Look for the file first in the build tree, then in the source tree 20448 # (if the path is not absolute). The absolute path cannot be DOS-style, 20449 # because $ac_f cannot contain `:'. 20450 test -f "$ac_f" || 20451 case $ac_f in 20452 [\\/$]*) false;; 20453 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20454 esac || 20455 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20456 esac 20457 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20458 as_fn_append ac_file_inputs " '$ac_f'" 20459 done 20460 20461 # Let's still pretend it is `configure' which instantiates (i.e., don't 20462 # use $as_me), people would be surprised to read: 20463 # /* config.h. Generated by config.status. */ 20464 configure_input='Generated from '` 20465 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20466 `' by configure.' 20467 if test x"$ac_file" != x-; then 20468 configure_input="$ac_file. $configure_input" 20469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20470$as_echo "$as_me: creating $ac_file" >&6;} 20471 fi 20472 # Neutralize special characters interpreted by sed in replacement strings. 20473 case $configure_input in #( 20474 *\&* | *\|* | *\\* ) 20475 ac_sed_conf_input=`$as_echo "$configure_input" | 20476 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20477 *) ac_sed_conf_input=$configure_input;; 20478 esac 20479 20480 case $ac_tag in 20481 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20483 esac 20484 ;; 20485 esac 20486 20487 ac_dir=`$as_dirname -- "$ac_file" || 20488$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20489 X"$ac_file" : 'X\(//\)[^/]' \| \ 20490 X"$ac_file" : 'X\(//\)$' \| \ 20491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20492$as_echo X"$ac_file" | 20493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20494 s//\1/ 20495 q 20496 } 20497 /^X\(\/\/\)[^/].*/{ 20498 s//\1/ 20499 q 20500 } 20501 /^X\(\/\/\)$/{ 20502 s//\1/ 20503 q 20504 } 20505 /^X\(\/\).*/{ 20506 s//\1/ 20507 q 20508 } 20509 s/.*/./; q'` 20510 as_dir="$ac_dir"; as_fn_mkdir_p 20511 ac_builddir=. 20512 20513case "$ac_dir" in 20514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20515*) 20516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20517 # A ".." for each directory in $ac_dir_suffix. 20518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20519 case $ac_top_builddir_sub in 20520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20522 esac ;; 20523esac 20524ac_abs_top_builddir=$ac_pwd 20525ac_abs_builddir=$ac_pwd$ac_dir_suffix 20526# for backward compatibility: 20527ac_top_builddir=$ac_top_build_prefix 20528 20529case $srcdir in 20530 .) # We are building in place. 20531 ac_srcdir=. 20532 ac_top_srcdir=$ac_top_builddir_sub 20533 ac_abs_top_srcdir=$ac_pwd ;; 20534 [\\/]* | ?:[\\/]* ) # Absolute name. 20535 ac_srcdir=$srcdir$ac_dir_suffix; 20536 ac_top_srcdir=$srcdir 20537 ac_abs_top_srcdir=$srcdir ;; 20538 *) # Relative name. 20539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20540 ac_top_srcdir=$ac_top_build_prefix$srcdir 20541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20542esac 20543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20544 20545 20546 case $ac_mode in 20547 :F) 20548 # 20549 # CONFIG_FILE 20550 # 20551 20552 case $INSTALL in 20553 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20554 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20555 esac 20556 ac_MKDIR_P=$MKDIR_P 20557 case $MKDIR_P in 20558 [\\/$]* | ?:[\\/]* ) ;; 20559 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20560 esac 20561_ACEOF 20562 20563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20564# If the template does not know about datarootdir, expand it. 20565# FIXME: This hack should be removed a few years after 2.60. 20566ac_datarootdir_hack=; ac_datarootdir_seen= 20567ac_sed_dataroot=' 20568/datarootdir/ { 20569 p 20570 q 20571} 20572/@datadir@/p 20573/@docdir@/p 20574/@infodir@/p 20575/@localedir@/p 20576/@mandir@/p' 20577case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20578*datarootdir*) ac_datarootdir_seen=yes;; 20579*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20581$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20582_ACEOF 20583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20584 ac_datarootdir_hack=' 20585 s&@datadir@&$datadir&g 20586 s&@docdir@&$docdir&g 20587 s&@infodir@&$infodir&g 20588 s&@localedir@&$localedir&g 20589 s&@mandir@&$mandir&g 20590 s&\\\${datarootdir}&$datarootdir&g' ;; 20591esac 20592_ACEOF 20593 20594# Neutralize VPATH when `$srcdir' = `.'. 20595# Shell code in configure.ac might set extrasub. 20596# FIXME: do we really want to maintain this feature? 20597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20598ac_sed_extra="$ac_vpsub 20599$extrasub 20600_ACEOF 20601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20602:t 20603/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20604s|@configure_input@|$ac_sed_conf_input|;t t 20605s&@top_builddir@&$ac_top_builddir_sub&;t t 20606s&@top_build_prefix@&$ac_top_build_prefix&;t t 20607s&@srcdir@&$ac_srcdir&;t t 20608s&@abs_srcdir@&$ac_abs_srcdir&;t t 20609s&@top_srcdir@&$ac_top_srcdir&;t t 20610s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20611s&@builddir@&$ac_builddir&;t t 20612s&@abs_builddir@&$ac_abs_builddir&;t t 20613s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20614s&@INSTALL@&$ac_INSTALL&;t t 20615s&@MKDIR_P@&$ac_MKDIR_P&;t t 20616$ac_datarootdir_hack 20617" 20618eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20619 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20620 20621test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20622 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20623 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20624 "$ac_tmp/out"`; test -z "$ac_out"; } && 20625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20626which seems to be undefined. Please make sure it is defined" >&5 20627$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20628which seems to be undefined. Please make sure it is defined" >&2;} 20629 20630 rm -f "$ac_tmp/stdin" 20631 case $ac_file in 20632 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20633 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20634 esac \ 20635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20636 ;; 20637 20638 20639 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20640$as_echo "$as_me: executing $ac_file commands" >&6;} 20641 ;; 20642 esac 20643 20644 20645 case $ac_file$ac_mode in 20646 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20647 # Older Autoconf quotes --file arguments for eval, but not when files 20648 # are listed without --file. Let's play safe and only enable the eval 20649 # if we detect the quoting. 20650 case $CONFIG_FILES in 20651 *\'*) eval set x "$CONFIG_FILES" ;; 20652 *) set x $CONFIG_FILES ;; 20653 esac 20654 shift 20655 for mf 20656 do 20657 # Strip MF so we end up with the name of the file. 20658 mf=`echo "$mf" | sed -e 's/:.*$//'` 20659 # Check whether this is an Automake generated Makefile or not. 20660 # We used to match only the files named 'Makefile.in', but 20661 # some people rename them; so instead we look at the file content. 20662 # Grep'ing the first line is not enough: some people post-process 20663 # each Makefile.in and add a new line on top of each file to say so. 20664 # Grep'ing the whole file is not good either: AIX grep has a line 20665 # limit of 2048, but all sed's we know have understand at least 4000. 20666 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20667 dirpart=`$as_dirname -- "$mf" || 20668$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20669 X"$mf" : 'X\(//\)[^/]' \| \ 20670 X"$mf" : 'X\(//\)$' \| \ 20671 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20672$as_echo X"$mf" | 20673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20674 s//\1/ 20675 q 20676 } 20677 /^X\(\/\/\)[^/].*/{ 20678 s//\1/ 20679 q 20680 } 20681 /^X\(\/\/\)$/{ 20682 s//\1/ 20683 q 20684 } 20685 /^X\(\/\).*/{ 20686 s//\1/ 20687 q 20688 } 20689 s/.*/./; q'` 20690 else 20691 continue 20692 fi 20693 # Extract the definition of DEPDIR, am__include, and am__quote 20694 # from the Makefile without running 'make'. 20695 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20696 test -z "$DEPDIR" && continue 20697 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20698 test -z "$am__include" && continue 20699 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20700 # Find all dependency output files, they are included files with 20701 # $(DEPDIR) in their names. We invoke sed twice because it is the 20702 # simplest approach to changing $(DEPDIR) to its actual value in the 20703 # expansion. 20704 for file in `sed -n " 20705 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20706 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20707 # Make sure the directory exists. 20708 test -f "$dirpart/$file" && continue 20709 fdir=`$as_dirname -- "$file" || 20710$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20711 X"$file" : 'X\(//\)[^/]' \| \ 20712 X"$file" : 'X\(//\)$' \| \ 20713 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20714$as_echo X"$file" | 20715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20716 s//\1/ 20717 q 20718 } 20719 /^X\(\/\/\)[^/].*/{ 20720 s//\1/ 20721 q 20722 } 20723 /^X\(\/\/\)$/{ 20724 s//\1/ 20725 q 20726 } 20727 /^X\(\/\).*/{ 20728 s//\1/ 20729 q 20730 } 20731 s/.*/./; q'` 20732 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20733 # echo "creating $dirpart/$file" 20734 echo '# dummy' > "$dirpart/$file" 20735 done 20736 done 20737} 20738 ;; 20739 "libtool":C) 20740 20741 # See if we are running on zsh, and set the options that allow our 20742 # commands through without removal of \ escapes. 20743 if test -n "${ZSH_VERSION+set}"; then 20744 setopt NO_GLOB_SUBST 20745 fi 20746 20747 cfgfile=${ofile}T 20748 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20749 $RM "$cfgfile" 20750 20751 cat <<_LT_EOF >> "$cfgfile" 20752#! $SHELL 20753# Generated automatically by $as_me ($PACKAGE) $VERSION 20754# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20755# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20756 20757# Provide generalized library-building support services. 20758# Written by Gordon Matzigkeit, 1996 20759 20760# Copyright (C) 2014 Free Software Foundation, Inc. 20761# This is free software; see the source for copying conditions. There is NO 20762# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20763 20764# GNU Libtool is free software; you can redistribute it and/or modify 20765# it under the terms of the GNU General Public License as published by 20766# the Free Software Foundation; either version 2 of of the License, or 20767# (at your option) any later version. 20768# 20769# As a special exception to the GNU General Public License, if you 20770# distribute this file as part of a program or library that is built 20771# using GNU Libtool, you may include this file under the same 20772# distribution terms that you use for the rest of that program. 20773# 20774# GNU Libtool is distributed in the hope that it will be useful, but 20775# WITHOUT ANY WARRANTY; without even the implied warranty of 20776# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20777# GNU General Public License for more details. 20778# 20779# You should have received a copy of the GNU General Public License 20780# along with this program. If not, see <http://www.gnu.org/licenses/>. 20781 20782 20783# The names of the tagged configurations supported by this script. 20784available_tags='CXX ' 20785 20786# Configured defaults for sys_lib_dlsearch_path munging. 20787: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20788 20789# ### BEGIN LIBTOOL CONFIG 20790 20791# Which release of libtool.m4 was used? 20792macro_version=$macro_version 20793macro_revision=$macro_revision 20794 20795# Whether or not to build shared libraries. 20796build_libtool_libs=$enable_shared 20797 20798# Whether or not to build static libraries. 20799build_old_libs=$enable_static 20800 20801# What type of objects to build. 20802pic_mode=$pic_mode 20803 20804# Whether or not to optimize for fast installation. 20805fast_install=$enable_fast_install 20806 20807# Shared archive member basename,for filename based shared library versioning on AIX. 20808shared_archive_member_spec=$shared_archive_member_spec 20809 20810# Shell to use when invoking shell scripts. 20811SHELL=$lt_SHELL 20812 20813# An echo program that protects backslashes. 20814ECHO=$lt_ECHO 20815 20816# The PATH separator for the build system. 20817PATH_SEPARATOR=$lt_PATH_SEPARATOR 20818 20819# The host system. 20820host_alias=$host_alias 20821host=$host 20822host_os=$host_os 20823 20824# The build system. 20825build_alias=$build_alias 20826build=$build 20827build_os=$build_os 20828 20829# A sed program that does not truncate output. 20830SED=$lt_SED 20831 20832# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20833Xsed="\$SED -e 1s/^X//" 20834 20835# A grep program that handles long lines. 20836GREP=$lt_GREP 20837 20838# An ERE matcher. 20839EGREP=$lt_EGREP 20840 20841# A literal string matcher. 20842FGREP=$lt_FGREP 20843 20844# A BSD- or MS-compatible name lister. 20845NM=$lt_NM 20846 20847# Whether we need soft or hard links. 20848LN_S=$lt_LN_S 20849 20850# What is the maximum length of a command? 20851max_cmd_len=$max_cmd_len 20852 20853# Object file suffix (normally "o"). 20854objext=$ac_objext 20855 20856# Executable file suffix (normally ""). 20857exeext=$exeext 20858 20859# whether the shell understands "unset". 20860lt_unset=$lt_unset 20861 20862# turn spaces into newlines. 20863SP2NL=$lt_lt_SP2NL 20864 20865# turn newlines into spaces. 20866NL2SP=$lt_lt_NL2SP 20867 20868# convert \$build file names to \$host format. 20869to_host_file_cmd=$lt_cv_to_host_file_cmd 20870 20871# convert \$build files to toolchain format. 20872to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20873 20874# An object symbol dumper. 20875OBJDUMP=$lt_OBJDUMP 20876 20877# Method to check whether dependent libraries are shared objects. 20878deplibs_check_method=$lt_deplibs_check_method 20879 20880# Command to use when deplibs_check_method = "file_magic". 20881file_magic_cmd=$lt_file_magic_cmd 20882 20883# How to find potential files when deplibs_check_method = "file_magic". 20884file_magic_glob=$lt_file_magic_glob 20885 20886# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20887want_nocaseglob=$lt_want_nocaseglob 20888 20889# DLL creation program. 20890DLLTOOL=$lt_DLLTOOL 20891 20892# Command to associate shared and link libraries. 20893sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20894 20895# The archiver. 20896AR=$lt_AR 20897 20898# Flags to create an archive. 20899AR_FLAGS=$lt_AR_FLAGS 20900 20901# How to feed a file listing to the archiver. 20902archiver_list_spec=$lt_archiver_list_spec 20903 20904# A symbol stripping program. 20905STRIP=$lt_STRIP 20906 20907# Commands used to install an old-style archive. 20908RANLIB=$lt_RANLIB 20909old_postinstall_cmds=$lt_old_postinstall_cmds 20910old_postuninstall_cmds=$lt_old_postuninstall_cmds 20911 20912# Whether to use a lock for old archive extraction. 20913lock_old_archive_extraction=$lock_old_archive_extraction 20914 20915# A C compiler. 20916LTCC=$lt_CC 20917 20918# LTCC compiler flags. 20919LTCFLAGS=$lt_CFLAGS 20920 20921# Take the output of nm and produce a listing of raw symbols and C names. 20922global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20923 20924# Transform the output of nm in a proper C declaration. 20925global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20926 20927# Transform the output of nm into a list of symbols to manually relocate. 20928global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20929 20930# Transform the output of nm in a C name address pair. 20931global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20932 20933# Transform the output of nm in a C name address pair when lib prefix is needed. 20934global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20935 20936# The name lister interface. 20937nm_interface=$lt_lt_cv_nm_interface 20938 20939# Specify filename containing input files for \$NM. 20940nm_file_list_spec=$lt_nm_file_list_spec 20941 20942# The root where to search for dependent libraries,and where our libraries should be installed. 20943lt_sysroot=$lt_sysroot 20944 20945# Command to truncate a binary pipe. 20946lt_truncate_bin=$lt_lt_cv_truncate_bin 20947 20948# The name of the directory that contains temporary libtool files. 20949objdir=$objdir 20950 20951# Used to examine libraries when file_magic_cmd begins with "file". 20952MAGIC_CMD=$MAGIC_CMD 20953 20954# Must we lock files when doing compilation? 20955need_locks=$lt_need_locks 20956 20957# Manifest tool. 20958MANIFEST_TOOL=$lt_MANIFEST_TOOL 20959 20960# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20961DSYMUTIL=$lt_DSYMUTIL 20962 20963# Tool to change global to local symbols on Mac OS X. 20964NMEDIT=$lt_NMEDIT 20965 20966# Tool to manipulate fat objects and archives on Mac OS X. 20967LIPO=$lt_LIPO 20968 20969# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20970OTOOL=$lt_OTOOL 20971 20972# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20973OTOOL64=$lt_OTOOL64 20974 20975# Old archive suffix (normally "a"). 20976libext=$libext 20977 20978# Shared library suffix (normally ".so"). 20979shrext_cmds=$lt_shrext_cmds 20980 20981# The commands to extract the exported symbol list from a shared archive. 20982extract_expsyms_cmds=$lt_extract_expsyms_cmds 20983 20984# Variables whose values should be saved in libtool wrapper scripts and 20985# restored at link time. 20986variables_saved_for_relink=$lt_variables_saved_for_relink 20987 20988# Do we need the "lib" prefix for modules? 20989need_lib_prefix=$need_lib_prefix 20990 20991# Do we need a version for libraries? 20992need_version=$need_version 20993 20994# Library versioning type. 20995version_type=$version_type 20996 20997# Shared library runtime path variable. 20998runpath_var=$runpath_var 20999 21000# Shared library path variable. 21001shlibpath_var=$shlibpath_var 21002 21003# Is shlibpath searched before the hard-coded library search path? 21004shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21005 21006# Format of library name prefix. 21007libname_spec=$lt_libname_spec 21008 21009# List of archive names. First name is the real one, the rest are links. 21010# The last name is the one that the linker finds with -lNAME 21011library_names_spec=$lt_library_names_spec 21012 21013# The coded name of the library, if different from the real name. 21014soname_spec=$lt_soname_spec 21015 21016# Permission mode override for installation of shared libraries. 21017install_override_mode=$lt_install_override_mode 21018 21019# Command to use after installation of a shared archive. 21020postinstall_cmds=$lt_postinstall_cmds 21021 21022# Command to use after uninstallation of a shared archive. 21023postuninstall_cmds=$lt_postuninstall_cmds 21024 21025# Commands used to finish a libtool library installation in a directory. 21026finish_cmds=$lt_finish_cmds 21027 21028# As "finish_cmds", except a single script fragment to be evaled but 21029# not shown. 21030finish_eval=$lt_finish_eval 21031 21032# Whether we should hardcode library paths into libraries. 21033hardcode_into_libs=$hardcode_into_libs 21034 21035# Compile-time system search path for libraries. 21036sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21037 21038# Detected run-time system search path for libraries. 21039sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21040 21041# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21042configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21043 21044# Whether dlopen is supported. 21045dlopen_support=$enable_dlopen 21046 21047# Whether dlopen of programs is supported. 21048dlopen_self=$enable_dlopen_self 21049 21050# Whether dlopen of statically linked programs is supported. 21051dlopen_self_static=$enable_dlopen_self_static 21052 21053# Commands to strip libraries. 21054old_striplib=$lt_old_striplib 21055striplib=$lt_striplib 21056 21057 21058# The linker used to build libraries. 21059LD=$lt_LD 21060 21061# How to create reloadable object files. 21062reload_flag=$lt_reload_flag 21063reload_cmds=$lt_reload_cmds 21064 21065# Commands used to build an old-style archive. 21066old_archive_cmds=$lt_old_archive_cmds 21067 21068# A language specific compiler. 21069CC=$lt_compiler 21070 21071# Is the compiler the GNU compiler? 21072with_gcc=$GCC 21073 21074# Compiler flag to turn off builtin functions. 21075no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21076 21077# Additional compiler flags for building library objects. 21078pic_flag=$lt_lt_prog_compiler_pic 21079 21080# How to pass a linker flag through the compiler. 21081wl=$lt_lt_prog_compiler_wl 21082 21083# Compiler flag to prevent dynamic linking. 21084link_static_flag=$lt_lt_prog_compiler_static 21085 21086# Does compiler simultaneously support -c and -o options? 21087compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21088 21089# Whether or not to add -lc for building shared libraries. 21090build_libtool_need_lc=$archive_cmds_need_lc 21091 21092# Whether or not to disallow shared libs when runtime libs are static. 21093allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21094 21095# Compiler flag to allow reflexive dlopens. 21096export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21097 21098# Compiler flag to generate shared objects directly from archives. 21099whole_archive_flag_spec=$lt_whole_archive_flag_spec 21100 21101# Whether the compiler copes with passing no objects directly. 21102compiler_needs_object=$lt_compiler_needs_object 21103 21104# Create an old-style archive from a shared archive. 21105old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21106 21107# Create a temporary old-style archive to link instead of a shared archive. 21108old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21109 21110# Commands used to build a shared archive. 21111archive_cmds=$lt_archive_cmds 21112archive_expsym_cmds=$lt_archive_expsym_cmds 21113 21114# Commands used to build a loadable module if different from building 21115# a shared archive. 21116module_cmds=$lt_module_cmds 21117module_expsym_cmds=$lt_module_expsym_cmds 21118 21119# Whether we are building with GNU ld or not. 21120with_gnu_ld=$lt_with_gnu_ld 21121 21122# Flag that allows shared libraries with undefined symbols to be built. 21123allow_undefined_flag=$lt_allow_undefined_flag 21124 21125# Flag that enforces no undefined symbols. 21126no_undefined_flag=$lt_no_undefined_flag 21127 21128# Flag to hardcode \$libdir into a binary during linking. 21129# This must work even if \$libdir does not exist 21130hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21131 21132# Whether we need a single "-rpath" flag with a separated argument. 21133hardcode_libdir_separator=$lt_hardcode_libdir_separator 21134 21135# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21136# DIR into the resulting binary. 21137hardcode_direct=$hardcode_direct 21138 21139# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21140# DIR into the resulting binary and the resulting library dependency is 21141# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21142# library is relocated. 21143hardcode_direct_absolute=$hardcode_direct_absolute 21144 21145# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21146# into the resulting binary. 21147hardcode_minus_L=$hardcode_minus_L 21148 21149# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21150# into the resulting binary. 21151hardcode_shlibpath_var=$hardcode_shlibpath_var 21152 21153# Set to "yes" if building a shared library automatically hardcodes DIR 21154# into the library and all subsequent libraries and executables linked 21155# against it. 21156hardcode_automatic=$hardcode_automatic 21157 21158# Set to yes if linker adds runtime paths of dependent libraries 21159# to runtime path list. 21160inherit_rpath=$inherit_rpath 21161 21162# Whether libtool must link a program against all its dependency libraries. 21163link_all_deplibs=$link_all_deplibs 21164 21165# Set to "yes" if exported symbols are required. 21166always_export_symbols=$always_export_symbols 21167 21168# The commands to list exported symbols. 21169export_symbols_cmds=$lt_export_symbols_cmds 21170 21171# Symbols that should not be listed in the preloaded symbols. 21172exclude_expsyms=$lt_exclude_expsyms 21173 21174# Symbols that must always be exported. 21175include_expsyms=$lt_include_expsyms 21176 21177# Commands necessary for linking programs (against libraries) with templates. 21178prelink_cmds=$lt_prelink_cmds 21179 21180# Commands necessary for finishing linking programs. 21181postlink_cmds=$lt_postlink_cmds 21182 21183# Specify filename containing input files. 21184file_list_spec=$lt_file_list_spec 21185 21186# How to hardcode a shared library path into an executable. 21187hardcode_action=$hardcode_action 21188 21189# The directories searched by this compiler when creating a shared library. 21190compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 21191 21192# Dependencies to place before and after the objects being linked to 21193# create a shared library. 21194predep_objects=$lt_predep_objects 21195postdep_objects=$lt_postdep_objects 21196predeps=$lt_predeps 21197postdeps=$lt_postdeps 21198 21199# The library search path used internally by the compiler when linking 21200# a shared library. 21201compiler_lib_search_path=$lt_compiler_lib_search_path 21202 21203# ### END LIBTOOL CONFIG 21204 21205_LT_EOF 21206 21207 cat <<'_LT_EOF' >> "$cfgfile" 21208 21209# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21210 21211# func_munge_path_list VARIABLE PATH 21212# ----------------------------------- 21213# VARIABLE is name of variable containing _space_ separated list of 21214# directories to be munged by the contents of PATH, which is string 21215# having a format: 21216# "DIR[:DIR]:" 21217# string "DIR[ DIR]" will be prepended to VARIABLE 21218# ":DIR[:DIR]" 21219# string "DIR[ DIR]" will be appended to VARIABLE 21220# "DIRP[:DIRP]::[DIRA:]DIRA" 21221# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21222# "DIRA[ DIRA]" will be appended to VARIABLE 21223# "DIR[:DIR]" 21224# VARIABLE will be replaced by "DIR[ DIR]" 21225func_munge_path_list () 21226{ 21227 case x$2 in 21228 x) 21229 ;; 21230 *:) 21231 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21232 ;; 21233 x:*) 21234 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21235 ;; 21236 *::*) 21237 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21238 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21239 ;; 21240 *) 21241 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21242 ;; 21243 esac 21244} 21245 21246 21247# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21248func_cc_basename () 21249{ 21250 for cc_temp in $*""; do 21251 case $cc_temp in 21252 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21253 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21254 \-*) ;; 21255 *) break;; 21256 esac 21257 done 21258 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21259} 21260 21261 21262# ### END FUNCTIONS SHARED WITH CONFIGURE 21263 21264_LT_EOF 21265 21266 case $host_os in 21267 aix3*) 21268 cat <<\_LT_EOF >> "$cfgfile" 21269# AIX sometimes has problems with the GCC collect2 program. For some 21270# reason, if we set the COLLECT_NAMES environment variable, the problems 21271# vanish in a puff of smoke. 21272if test set != "${COLLECT_NAMES+set}"; then 21273 COLLECT_NAMES= 21274 export COLLECT_NAMES 21275fi 21276_LT_EOF 21277 ;; 21278 esac 21279 21280 21281ltmain=$ac_aux_dir/ltmain.sh 21282 21283 21284 # We use sed instead of cat because bash on DJGPP gets confused if 21285 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21286 # text mode, it properly converts lines to CR/LF. This bash problem 21287 # is reportedly fixed, but why not run on old versions too? 21288 sed '$q' "$ltmain" >> "$cfgfile" \ 21289 || (rm -f "$cfgfile"; exit 1) 21290 21291 mv -f "$cfgfile" "$ofile" || 21292 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21293 chmod +x "$ofile" 21294 21295 21296 cat <<_LT_EOF >> "$ofile" 21297 21298# ### BEGIN LIBTOOL TAG CONFIG: CXX 21299 21300# The linker used to build libraries. 21301LD=$lt_LD_CXX 21302 21303# How to create reloadable object files. 21304reload_flag=$lt_reload_flag_CXX 21305reload_cmds=$lt_reload_cmds_CXX 21306 21307# Commands used to build an old-style archive. 21308old_archive_cmds=$lt_old_archive_cmds_CXX 21309 21310# A language specific compiler. 21311CC=$lt_compiler_CXX 21312 21313# Is the compiler the GNU compiler? 21314with_gcc=$GCC_CXX 21315 21316# Compiler flag to turn off builtin functions. 21317no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 21318 21319# Additional compiler flags for building library objects. 21320pic_flag=$lt_lt_prog_compiler_pic_CXX 21321 21322# How to pass a linker flag through the compiler. 21323wl=$lt_lt_prog_compiler_wl_CXX 21324 21325# Compiler flag to prevent dynamic linking. 21326link_static_flag=$lt_lt_prog_compiler_static_CXX 21327 21328# Does compiler simultaneously support -c and -o options? 21329compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 21330 21331# Whether or not to add -lc for building shared libraries. 21332build_libtool_need_lc=$archive_cmds_need_lc_CXX 21333 21334# Whether or not to disallow shared libs when runtime libs are static. 21335allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 21336 21337# Compiler flag to allow reflexive dlopens. 21338export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 21339 21340# Compiler flag to generate shared objects directly from archives. 21341whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 21342 21343# Whether the compiler copes with passing no objects directly. 21344compiler_needs_object=$lt_compiler_needs_object_CXX 21345 21346# Create an old-style archive from a shared archive. 21347old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 21348 21349# Create a temporary old-style archive to link instead of a shared archive. 21350old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 21351 21352# Commands used to build a shared archive. 21353archive_cmds=$lt_archive_cmds_CXX 21354archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 21355 21356# Commands used to build a loadable module if different from building 21357# a shared archive. 21358module_cmds=$lt_module_cmds_CXX 21359module_expsym_cmds=$lt_module_expsym_cmds_CXX 21360 21361# Whether we are building with GNU ld or not. 21362with_gnu_ld=$lt_with_gnu_ld_CXX 21363 21364# Flag that allows shared libraries with undefined symbols to be built. 21365allow_undefined_flag=$lt_allow_undefined_flag_CXX 21366 21367# Flag that enforces no undefined symbols. 21368no_undefined_flag=$lt_no_undefined_flag_CXX 21369 21370# Flag to hardcode \$libdir into a binary during linking. 21371# This must work even if \$libdir does not exist 21372hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 21373 21374# Whether we need a single "-rpath" flag with a separated argument. 21375hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 21376 21377# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21378# DIR into the resulting binary. 21379hardcode_direct=$hardcode_direct_CXX 21380 21381# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21382# DIR into the resulting binary and the resulting library dependency is 21383# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21384# library is relocated. 21385hardcode_direct_absolute=$hardcode_direct_absolute_CXX 21386 21387# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21388# into the resulting binary. 21389hardcode_minus_L=$hardcode_minus_L_CXX 21390 21391# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21392# into the resulting binary. 21393hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 21394 21395# Set to "yes" if building a shared library automatically hardcodes DIR 21396# into the library and all subsequent libraries and executables linked 21397# against it. 21398hardcode_automatic=$hardcode_automatic_CXX 21399 21400# Set to yes if linker adds runtime paths of dependent libraries 21401# to runtime path list. 21402inherit_rpath=$inherit_rpath_CXX 21403 21404# Whether libtool must link a program against all its dependency libraries. 21405link_all_deplibs=$link_all_deplibs_CXX 21406 21407# Set to "yes" if exported symbols are required. 21408always_export_symbols=$always_export_symbols_CXX 21409 21410# The commands to list exported symbols. 21411export_symbols_cmds=$lt_export_symbols_cmds_CXX 21412 21413# Symbols that should not be listed in the preloaded symbols. 21414exclude_expsyms=$lt_exclude_expsyms_CXX 21415 21416# Symbols that must always be exported. 21417include_expsyms=$lt_include_expsyms_CXX 21418 21419# Commands necessary for linking programs (against libraries) with templates. 21420prelink_cmds=$lt_prelink_cmds_CXX 21421 21422# Commands necessary for finishing linking programs. 21423postlink_cmds=$lt_postlink_cmds_CXX 21424 21425# Specify filename containing input files. 21426file_list_spec=$lt_file_list_spec_CXX 21427 21428# How to hardcode a shared library path into an executable. 21429hardcode_action=$hardcode_action_CXX 21430 21431# The directories searched by this compiler when creating a shared library. 21432compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 21433 21434# Dependencies to place before and after the objects being linked to 21435# create a shared library. 21436predep_objects=$lt_predep_objects_CXX 21437postdep_objects=$lt_postdep_objects_CXX 21438predeps=$lt_predeps_CXX 21439postdeps=$lt_postdeps_CXX 21440 21441# The library search path used internally by the compiler when linking 21442# a shared library. 21443compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 21444 21445# ### END LIBTOOL TAG CONFIG: CXX 21446_LT_EOF 21447 21448 ;; 21449 21450 esac 21451done # for ac_tag 21452 21453 21454as_fn_exit 0 21455_ACEOF 21456ac_clean_files=$ac_clean_files_save 21457 21458test $ac_write_fail = 0 || 21459 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21460 21461 21462# configure is writing to config.log, and then calls config.status. 21463# config.status does its own redirection, appending to config.log. 21464# Unfortunately, on DOS this fails, as config.log is still kept open 21465# by configure, so config.status won't be able to write to it; its 21466# output is simply discarded. So we exec the FD to /dev/null, 21467# effectively closing config.log, so it can be properly (re)opened and 21468# appended to by config.status. When coming back to configure, we 21469# need to make the FD available again. 21470if test "$no_create" != yes; then 21471 ac_cs_success=: 21472 ac_config_status_args= 21473 test "$silent" = yes && 21474 ac_config_status_args="$ac_config_status_args --quiet" 21475 exec 5>/dev/null 21476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21477 exec 5>>config.log 21478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21479 # would make configure fail if this is the last instruction. 21480 $ac_cs_success || as_fn_exit 1 21481fi 21482if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21484$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21485fi 21486 21487