1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for Poly/ML 5.8.2. 4# 5# Report bugs to <polyml AT polyml DOT org>. 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 polyml AT polyml 278$0: DOT org about your system, including any error possibly 279$0: output before this message. Then install a modern 280$0: shell, or manually run the script under such a shell if 281$0: 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='Poly/ML' 592PACKAGE_TARNAME='polyml' 593PACKAGE_VERSION='5.8.2' 594PACKAGE_STRING='Poly/ML 5.8.2' 595PACKAGE_BUGREPORT='polyml AT polyml DOT org' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_unique_file="polyexports.h" 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638INTINFISINT_FALSE 639INTINFISINT_TRUE 640moduledir 641polyc_CFLAGS 642GIT_VERSION 643gitinstalled 644dependentlibs 645MACOSLDOPTS_FALSE 646MACOSLDOPTS_TRUE 647WINDOWSGUI_FALSE 648WINDOWSGUI_TRUE 649NO_UNDEFINED_FALSE 650NO_UNDEFINED_TRUE 651NATIVE_WINDOWS_FALSE 652NATIVE_WINDOWS_TRUE 653WINDOWSCALLCONV_FALSE 654WINDOWSCALLCONV_TRUE 655ARCHX8632IN64_FALSE 656ARCHX8632IN64_TRUE 657ARCHINTERPRET64_FALSE 658ARCHINTERPRET64_TRUE 659ARCHINTERPRET_FALSE 660ARCHINTERPRET_TRUE 661ARCHX86_64_FALSE 662ARCHX86_64_TRUE 663ARCHI386_FALSE 664ARCHI386_TRUE 665POW_LIB 666LIBOBJS 667EXPMACHO_FALSE 668EXPMACHO_TRUE 669EXPELF_FALSE 670EXPELF_TRUE 671EXPPECOFF_FALSE 672EXPPECOFF_TRUE 673XMKMF 674WINDRES 675PKG_CONFIG_LIBDIR 676PKG_CONFIG_PATH 677PKG_CONFIG 678ALLOCA 679sys_symbol_underscore 680am__fastdepCCAS_FALSE 681am__fastdepCCAS_TRUE 682CCASDEPMODE 683CCASFLAGS 684CCAS 685CXXCPP 686am__fastdepCXX_FALSE 687am__fastdepCXX_TRUE 688CXXDEPMODE 689ac_ct_CXX 690CXXFLAGS 691CXX 692MAINT 693MAINTAINER_MODE_FALSE 694MAINTAINER_MODE_TRUE 695LT_SYS_LIBRARY_PATH 696OTOOL64 697OTOOL 698LIPO 699NMEDIT 700DSYMUTIL 701MANIFEST_TOOL 702RANLIB 703ac_ct_AR 704AR 705LN_S 706NM 707ac_ct_DUMPBIN 708DUMPBIN 709LD 710FGREP 711SED 712LIBTOOL 713OBJDUMP 714DLLTOOL 715AS 716OSFLAG 717EGREP 718GREP 719CPP 720am__fastdepCC_FALSE 721am__fastdepCC_TRUE 722CCDEPMODE 723am__nodep 724AMDEPBACKSLASH 725AMDEP_FALSE 726AMDEP_TRUE 727am__include 728DEPDIR 729OBJEXT 730EXEEXT 731ac_ct_CC 732CPPFLAGS 733LDFLAGS 734CFLAGS 735CC 736host_os 737host_vendor 738host_cpu 739host 740build_os 741build_vendor 742build_cpu 743build 744AM_BACKSLASH 745AM_DEFAULT_VERBOSITY 746AM_DEFAULT_V 747AM_V 748am__untar 749am__tar 750AMTAR 751am__leading_dot 752SET_MAKE 753AWK 754mkdir_p 755MKDIR_P 756INSTALL_STRIP_PROGRAM 757STRIP 758install_sh 759MAKEINFO 760AUTOHEADER 761AUTOMAKE 762AUTOCONF 763ACLOCAL 764VERSION 765PACKAGE 766CYGPATH_W 767am__isrc 768INSTALL_DATA 769INSTALL_SCRIPT 770INSTALL_PROGRAM 771target_alias 772host_alias 773build_alias 774LIBS 775ECHO_T 776ECHO_N 777ECHO_C 778DEFS 779mandir 780localedir 781libdir 782psdir 783pdfdir 784dvidir 785htmldir 786infodir 787docdir 788oldincludedir 789includedir 790runstatedir 791localstatedir 792sharedstatedir 793sysconfdir 794datadir 795datarootdir 796libexecdir 797sbindir 798bindir 799program_transform_name 800prefix 801exec_prefix 802PACKAGE_URL 803PACKAGE_BUGREPORT 804PACKAGE_STRING 805PACKAGE_VERSION 806PACKAGE_TARNAME 807PACKAGE_NAME 808PATH_SEPARATOR 809SHELL 810am__quote' 811ac_subst_files='' 812ac_user_opts=' 813enable_option_checking 814enable_silent_rules 815enable_debug 816enable_dependency_tracking 817enable_shared 818enable_static 819with_pic 820enable_fast_install 821with_aix_soname 822with_gnu_ld 823with_sysroot 824enable_libtool_lock 825enable_maintainer_mode 826enable_largefile 827with_gmp 828enable_windows_gui 829with_x 830enable_native_codegeneration 831enable_compact32bit 832with_moduledir 833enable_intinf_as_int 834' 835 ac_precious_vars='build_alias 836host_alias 837target_alias 838CC 839CFLAGS 840LDFLAGS 841LIBS 842CPPFLAGS 843CPP 844LT_SYS_LIBRARY_PATH 845CXX 846CXXFLAGS 847CCC 848CXXCPP 849CCAS 850CCASFLAGS 851PKG_CONFIG 852PKG_CONFIG_PATH 853PKG_CONFIG_LIBDIR 854XMKMF' 855 856 857# Initialize some variables set by options. 858ac_init_help= 859ac_init_version=false 860ac_unrecognized_opts= 861ac_unrecognized_sep= 862# The variables have the same names as the options, with 863# dashes changed to underlines. 864cache_file=/dev/null 865exec_prefix=NONE 866no_create= 867no_recursion= 868prefix=NONE 869program_prefix=NONE 870program_suffix=NONE 871program_transform_name=s,x,x, 872silent= 873site= 874srcdir= 875verbose= 876x_includes=NONE 877x_libraries=NONE 878 879# Installation directory options. 880# These are left unexpanded so users can "make install exec_prefix=/foo" 881# and all the variables that are supposed to be based on exec_prefix 882# by default will actually change. 883# Use braces instead of parens because sh, perl, etc. also accept them. 884# (The list follows the same order as the GNU Coding Standards.) 885bindir='${exec_prefix}/bin' 886sbindir='${exec_prefix}/sbin' 887libexecdir='${exec_prefix}/libexec' 888datarootdir='${prefix}/share' 889datadir='${datarootdir}' 890sysconfdir='${prefix}/etc' 891sharedstatedir='${prefix}/com' 892localstatedir='${prefix}/var' 893runstatedir='${localstatedir}/run' 894includedir='${prefix}/include' 895oldincludedir='/usr/include' 896docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 897infodir='${datarootdir}/info' 898htmldir='${docdir}' 899dvidir='${docdir}' 900pdfdir='${docdir}' 901psdir='${docdir}' 902libdir='${exec_prefix}/lib' 903localedir='${datarootdir}/locale' 904mandir='${datarootdir}/man' 905 906ac_prev= 907ac_dashdash= 908for ac_option 909do 910 # If the previous option needs an argument, assign it. 911 if test -n "$ac_prev"; then 912 eval $ac_prev=\$ac_option 913 ac_prev= 914 continue 915 fi 916 917 case $ac_option in 918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 919 *=) ac_optarg= ;; 920 *) ac_optarg=yes ;; 921 esac 922 923 # Accept the important Cygnus configure options, so we can diagnose typos. 924 925 case $ac_dashdash$ac_option in 926 --) 927 ac_dashdash=yes ;; 928 929 -bindir | --bindir | --bindi | --bind | --bin | --bi) 930 ac_prev=bindir ;; 931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 932 bindir=$ac_optarg ;; 933 934 -build | --build | --buil | --bui | --bu) 935 ac_prev=build_alias ;; 936 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 937 build_alias=$ac_optarg ;; 938 939 -cache-file | --cache-file | --cache-fil | --cache-fi \ 940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 941 ac_prev=cache_file ;; 942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 944 cache_file=$ac_optarg ;; 945 946 --config-cache | -C) 947 cache_file=config.cache ;; 948 949 -datadir | --datadir | --datadi | --datad) 950 ac_prev=datadir ;; 951 -datadir=* | --datadir=* | --datadi=* | --datad=*) 952 datadir=$ac_optarg ;; 953 954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 955 | --dataroo | --dataro | --datar) 956 ac_prev=datarootdir ;; 957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 959 datarootdir=$ac_optarg ;; 960 961 -disable-* | --disable-*) 962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 963 # Reject names that are not valid shell variable names. 964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 965 as_fn_error $? "invalid feature name: $ac_useropt" 966 ac_useropt_orig=$ac_useropt 967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 968 case $ac_user_opts in 969 *" 970"enable_$ac_useropt" 971"*) ;; 972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 973 ac_unrecognized_sep=', ';; 974 esac 975 eval enable_$ac_useropt=no ;; 976 977 -docdir | --docdir | --docdi | --doc | --do) 978 ac_prev=docdir ;; 979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 980 docdir=$ac_optarg ;; 981 982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 983 ac_prev=dvidir ;; 984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 985 dvidir=$ac_optarg ;; 986 987 -enable-* | --enable-*) 988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 989 # Reject names that are not valid shell variable names. 990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 991 as_fn_error $? "invalid feature name: $ac_useropt" 992 ac_useropt_orig=$ac_useropt 993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 994 case $ac_user_opts in 995 *" 996"enable_$ac_useropt" 997"*) ;; 998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 999 ac_unrecognized_sep=', ';; 1000 esac 1001 eval enable_$ac_useropt=\$ac_optarg ;; 1002 1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1005 | --exec | --exe | --ex) 1006 ac_prev=exec_prefix ;; 1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1009 | --exec=* | --exe=* | --ex=*) 1010 exec_prefix=$ac_optarg ;; 1011 1012 -gas | --gas | --ga | --g) 1013 # Obsolete; use --with-gas. 1014 with_gas=yes ;; 1015 1016 -help | --help | --hel | --he | -h) 1017 ac_init_help=long ;; 1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1019 ac_init_help=recursive ;; 1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1021 ac_init_help=short ;; 1022 1023 -host | --host | --hos | --ho) 1024 ac_prev=host_alias ;; 1025 -host=* | --host=* | --hos=* | --ho=*) 1026 host_alias=$ac_optarg ;; 1027 1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1029 ac_prev=htmldir ;; 1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1031 | --ht=*) 1032 htmldir=$ac_optarg ;; 1033 1034 -includedir | --includedir | --includedi | --included | --include \ 1035 | --includ | --inclu | --incl | --inc) 1036 ac_prev=includedir ;; 1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1038 | --includ=* | --inclu=* | --incl=* | --inc=*) 1039 includedir=$ac_optarg ;; 1040 1041 -infodir | --infodir | --infodi | --infod | --info | --inf) 1042 ac_prev=infodir ;; 1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1044 infodir=$ac_optarg ;; 1045 1046 -libdir | --libdir | --libdi | --libd) 1047 ac_prev=libdir ;; 1048 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1049 libdir=$ac_optarg ;; 1050 1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1052 | --libexe | --libex | --libe) 1053 ac_prev=libexecdir ;; 1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1055 | --libexe=* | --libex=* | --libe=*) 1056 libexecdir=$ac_optarg ;; 1057 1058 -localedir | --localedir | --localedi | --localed | --locale) 1059 ac_prev=localedir ;; 1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1061 localedir=$ac_optarg ;; 1062 1063 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1064 | --localstate | --localstat | --localsta | --localst | --locals) 1065 ac_prev=localstatedir ;; 1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1068 localstatedir=$ac_optarg ;; 1069 1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1071 ac_prev=mandir ;; 1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1073 mandir=$ac_optarg ;; 1074 1075 -nfp | --nfp | --nf) 1076 # Obsolete; use --without-fp. 1077 with_fp=no ;; 1078 1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1080 | --no-cr | --no-c | -n) 1081 no_create=yes ;; 1082 1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1085 no_recursion=yes ;; 1086 1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1089 | --oldin | --oldi | --old | --ol | --o) 1090 ac_prev=oldincludedir ;; 1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1094 oldincludedir=$ac_optarg ;; 1095 1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1097 ac_prev=prefix ;; 1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1099 prefix=$ac_optarg ;; 1100 1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1102 | --program-pre | --program-pr | --program-p) 1103 ac_prev=program_prefix ;; 1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1106 program_prefix=$ac_optarg ;; 1107 1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1109 | --program-suf | --program-su | --program-s) 1110 ac_prev=program_suffix ;; 1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1113 program_suffix=$ac_optarg ;; 1114 1115 -program-transform-name | --program-transform-name \ 1116 | --program-transform-nam | --program-transform-na \ 1117 | --program-transform-n | --program-transform- \ 1118 | --program-transform | --program-transfor \ 1119 | --program-transfo | --program-transf \ 1120 | --program-trans | --program-tran \ 1121 | --progr-tra | --program-tr | --program-t) 1122 ac_prev=program_transform_name ;; 1123 -program-transform-name=* | --program-transform-name=* \ 1124 | --program-transform-nam=* | --program-transform-na=* \ 1125 | --program-transform-n=* | --program-transform-=* \ 1126 | --program-transform=* | --program-transfor=* \ 1127 | --program-transfo=* | --program-transf=* \ 1128 | --program-trans=* | --program-tran=* \ 1129 | --progr-tra=* | --program-tr=* | --program-t=*) 1130 program_transform_name=$ac_optarg ;; 1131 1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1133 ac_prev=pdfdir ;; 1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1135 pdfdir=$ac_optarg ;; 1136 1137 -psdir | --psdir | --psdi | --psd | --ps) 1138 ac_prev=psdir ;; 1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1140 psdir=$ac_optarg ;; 1141 1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1143 | -silent | --silent | --silen | --sile | --sil) 1144 silent=yes ;; 1145 1146 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1147 | --runstate | --runstat | --runsta | --runst | --runs \ 1148 | --run | --ru | --r) 1149 ac_prev=runstatedir ;; 1150 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1151 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1152 | --run=* | --ru=* | --r=*) 1153 runstatedir=$ac_optarg ;; 1154 1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1156 ac_prev=sbindir ;; 1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1158 | --sbi=* | --sb=*) 1159 sbindir=$ac_optarg ;; 1160 1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1163 | --sharedst | --shareds | --shared | --share | --shar \ 1164 | --sha | --sh) 1165 ac_prev=sharedstatedir ;; 1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1169 | --sha=* | --sh=*) 1170 sharedstatedir=$ac_optarg ;; 1171 1172 -site | --site | --sit) 1173 ac_prev=site ;; 1174 -site=* | --site=* | --sit=*) 1175 site=$ac_optarg ;; 1176 1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1178 ac_prev=srcdir ;; 1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1180 srcdir=$ac_optarg ;; 1181 1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1183 | --syscon | --sysco | --sysc | --sys | --sy) 1184 ac_prev=sysconfdir ;; 1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1187 sysconfdir=$ac_optarg ;; 1188 1189 -target | --target | --targe | --targ | --tar | --ta | --t) 1190 ac_prev=target_alias ;; 1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1192 target_alias=$ac_optarg ;; 1193 1194 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1195 verbose=yes ;; 1196 1197 -version | --version | --versio | --versi | --vers | -V) 1198 ac_init_version=: ;; 1199 1200 -with-* | --with-*) 1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1202 # Reject names that are not valid shell variable names. 1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1204 as_fn_error $? "invalid package name: $ac_useropt" 1205 ac_useropt_orig=$ac_useropt 1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1207 case $ac_user_opts in 1208 *" 1209"with_$ac_useropt" 1210"*) ;; 1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1212 ac_unrecognized_sep=', ';; 1213 esac 1214 eval with_$ac_useropt=\$ac_optarg ;; 1215 1216 -without-* | --without-*) 1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1218 # Reject names that are not valid shell variable names. 1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1220 as_fn_error $? "invalid package name: $ac_useropt" 1221 ac_useropt_orig=$ac_useropt 1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1223 case $ac_user_opts in 1224 *" 1225"with_$ac_useropt" 1226"*) ;; 1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1228 ac_unrecognized_sep=', ';; 1229 esac 1230 eval with_$ac_useropt=no ;; 1231 1232 --x) 1233 # Obsolete; use --with-x. 1234 with_x=yes ;; 1235 1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1237 | --x-incl | --x-inc | --x-in | --x-i) 1238 ac_prev=x_includes ;; 1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1241 x_includes=$ac_optarg ;; 1242 1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1245 ac_prev=x_libraries ;; 1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1248 x_libraries=$ac_optarg ;; 1249 1250 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1251Try \`$0 --help' for more information" 1252 ;; 1253 1254 *=*) 1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1256 # Reject names that are not valid shell variable names. 1257 case $ac_envvar in #( 1258 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1260 esac 1261 eval $ac_envvar=\$ac_optarg 1262 export $ac_envvar ;; 1263 1264 *) 1265 # FIXME: should be removed in autoconf 3.0. 1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1270 ;; 1271 1272 esac 1273done 1274 1275if test -n "$ac_prev"; then 1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1277 as_fn_error $? "missing argument to $ac_option" 1278fi 1279 1280if test -n "$ac_unrecognized_opts"; then 1281 case $enable_option_checking in 1282 no) ;; 1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1285 esac 1286fi 1287 1288# Check all directory arguments for consistency. 1289for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1290 datadir sysconfdir sharedstatedir localstatedir includedir \ 1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1292 libdir localedir mandir runstatedir 1293do 1294 eval ac_val=\$$ac_var 1295 # Remove trailing slashes. 1296 case $ac_val in 1297 */ ) 1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1299 eval $ac_var=\$ac_val;; 1300 esac 1301 # Be sure to have absolute directory names. 1302 case $ac_val in 1303 [\\/$]* | ?:[\\/]* ) continue;; 1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1305 esac 1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1307done 1308 1309# There might be people who depend on the old broken behavior: `$host' 1310# used to hold the argument of --host etc. 1311# FIXME: To remove some day. 1312build=$build_alias 1313host=$host_alias 1314target=$target_alias 1315 1316# FIXME: To remove some day. 1317if test "x$host_alias" != x; then 1318 if test "x$build_alias" = x; then 1319 cross_compiling=maybe 1320 elif test "x$build_alias" != "x$host_alias"; then 1321 cross_compiling=yes 1322 fi 1323fi 1324 1325ac_tool_prefix= 1326test -n "$host_alias" && ac_tool_prefix=$host_alias- 1327 1328test "$silent" = yes && exec 6>/dev/null 1329 1330 1331ac_pwd=`pwd` && test -n "$ac_pwd" && 1332ac_ls_di=`ls -di .` && 1333ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1334 as_fn_error $? "working directory cannot be determined" 1335test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1336 as_fn_error $? "pwd does not report name of working directory" 1337 1338 1339# Find the source files, if location was not specified. 1340if test -z "$srcdir"; then 1341 ac_srcdir_defaulted=yes 1342 # Try the directory containing this script, then the parent directory. 1343 ac_confdir=`$as_dirname -- "$as_myself" || 1344$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1345 X"$as_myself" : 'X\(//\)[^/]' \| \ 1346 X"$as_myself" : 'X\(//\)$' \| \ 1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1348$as_echo X"$as_myself" | 1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\/\)[^/].*/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\/\)$/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\).*/{ 1362 s//\1/ 1363 q 1364 } 1365 s/.*/./; q'` 1366 srcdir=$ac_confdir 1367 if test ! -r "$srcdir/$ac_unique_file"; then 1368 srcdir=.. 1369 fi 1370else 1371 ac_srcdir_defaulted=no 1372fi 1373if test ! -r "$srcdir/$ac_unique_file"; then 1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1376fi 1377ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1378ac_abs_confdir=`( 1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1380 pwd)` 1381# When building in place, set srcdir=. 1382if test "$ac_abs_confdir" = "$ac_pwd"; then 1383 srcdir=. 1384fi 1385# Remove unnecessary trailing slashes from srcdir. 1386# Double slashes in file names in object file debugging info 1387# mess up M-x gdb in Emacs. 1388case $srcdir in 1389*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1390esac 1391for ac_var in $ac_precious_vars; do 1392 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1393 eval ac_env_${ac_var}_value=\$${ac_var} 1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1395 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1396done 1397 1398# 1399# Report the --help message. 1400# 1401if test "$ac_init_help" = "long"; then 1402 # Omit some internal or obsolete options to make the list less imposing. 1403 # This message is too long to be a string in the A/UX 3.1 sh. 1404 cat <<_ACEOF 1405\`configure' configures Poly/ML 5.8.2 to adapt to many kinds of systems. 1406 1407Usage: $0 [OPTION]... [VAR=VALUE]... 1408 1409To assign environment variables (e.g., CC, CFLAGS...), specify them as 1410VAR=VALUE. See below for descriptions of some of the useful variables. 1411 1412Defaults for the options are specified in brackets. 1413 1414Configuration: 1415 -h, --help display this help and exit 1416 --help=short display options specific to this package 1417 --help=recursive display the short help of all the included packages 1418 -V, --version display version information and exit 1419 -q, --quiet, --silent do not print \`checking ...' messages 1420 --cache-file=FILE cache test results in FILE [disabled] 1421 -C, --config-cache alias for \`--cache-file=config.cache' 1422 -n, --no-create do not create output files 1423 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1424 1425Installation directories: 1426 --prefix=PREFIX install architecture-independent files in PREFIX 1427 [$ac_default_prefix] 1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1429 [PREFIX] 1430 1431By default, \`make install' will install all the files in 1432\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1433an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1434for instance \`--prefix=\$HOME'. 1435 1436For better control, use the options below. 1437 1438Fine tuning of the installation directories: 1439 --bindir=DIR user executables [EPREFIX/bin] 1440 --sbindir=DIR system admin executables [EPREFIX/sbin] 1441 --libexecdir=DIR program executables [EPREFIX/libexec] 1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1445 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1446 --libdir=DIR object code libraries [EPREFIX/lib] 1447 --includedir=DIR C header files [PREFIX/include] 1448 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1451 --infodir=DIR info documentation [DATAROOTDIR/info] 1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1453 --mandir=DIR man documentation [DATAROOTDIR/man] 1454 --docdir=DIR documentation root [DATAROOTDIR/doc/polyml] 1455 --htmldir=DIR html documentation [DOCDIR] 1456 --dvidir=DIR dvi documentation [DOCDIR] 1457 --pdfdir=DIR pdf documentation [DOCDIR] 1458 --psdir=DIR ps documentation [DOCDIR] 1459_ACEOF 1460 1461 cat <<\_ACEOF 1462 1463Program names: 1464 --program-prefix=PREFIX prepend PREFIX to installed program names 1465 --program-suffix=SUFFIX append SUFFIX to installed program names 1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1467 1468X features: 1469 --x-includes=DIR X include files are in DIR 1470 --x-libraries=DIR X library files are in DIR 1471 1472System types: 1473 --build=BUILD configure for building on BUILD [guessed] 1474 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1475_ACEOF 1476fi 1477 1478if test -n "$ac_init_help"; then 1479 case $ac_init_help in 1480 short | recursive ) echo "Configuration of Poly/ML 5.8.2:";; 1481 esac 1482 cat <<\_ACEOF 1483 1484Optional Features: 1485 --disable-option-checking ignore unrecognized --enable/--with options 1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1488 --enable-silent-rules less verbose build output (undo: "make V=1") 1489 --disable-silent-rules verbose build output (undo: "make V=0") 1490 --enable-debug Compiles without optimisation for debugging 1491 --enable-dependency-tracking 1492 do not reject slow dependency extractors 1493 --disable-dependency-tracking 1494 speeds up one-time build 1495 --enable-shared[=PKGS] build shared libraries [default=yes] 1496 --enable-static[=PKGS] build static libraries [default=yes] 1497 --enable-fast-install[=PKGS] 1498 optimize for fast installation [default=yes] 1499 --disable-libtool-lock avoid locking (might break parallel builds) 1500 --enable-maintainer-mode 1501 enable make rules and dependencies not useful (and 1502 sometimes confusing) to the casual installer 1503 --disable-largefile omit support for large files 1504 --enable-windows-gui create a GUI in Windows. If this is disabled use a 1505 Windows console. [default=yes] 1506 --disable-native-codegeneration 1507 disable the native code generator and use the slow 1508 byte code interpreter instead. 1509 --enable-compact32bit use 32-bit values rather than native 64-bits. 1510 --enable-intinf-as-int set arbitrary precision as the default int type 1511 1512Optional Packages: 1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1515 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1516 both] 1517 --with-aix-soname=aix|svr4|both 1518 shared library versioning (aka "SONAME") variant to 1519 provide on AIX, [default=aix]. 1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1521 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1522 compiler's sysroot if not specified). 1523 --with-gmp use the GMP library for arbitrary precision 1524 arithmetic [default=check] 1525 --with-x use the X Window System 1526 --with-moduledir=DIR directory for Poly/ML modules 1527 1528Some influential environment variables: 1529 CC C compiler command 1530 CFLAGS C compiler flags 1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1532 nonstandard directory <lib dir> 1533 LIBS libraries to pass to the linker, e.g. -l<library> 1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1535 you have headers in a nonstandard directory <include dir> 1536 CPP C preprocessor 1537 LT_SYS_LIBRARY_PATH 1538 User-defined run-time library search path. 1539 CXX C++ compiler command 1540 CXXFLAGS C++ compiler flags 1541 CXXCPP C++ preprocessor 1542 CCAS assembler compiler command (defaults to CC) 1543 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1544 PKG_CONFIG path to pkg-config utility 1545 PKG_CONFIG_PATH 1546 directories to add to pkg-config's search path 1547 PKG_CONFIG_LIBDIR 1548 path overriding pkg-config's built-in search path 1549 XMKMF Path to xmkmf, Makefile generator for X Window System 1550 1551Use these variables to override the choices made by `configure' or to help 1552it to find libraries and programs with nonstandard names/locations. 1553 1554Report bugs to <polyml AT polyml DOT org>. 1555_ACEOF 1556ac_status=$? 1557fi 1558 1559if test "$ac_init_help" = "recursive"; then 1560 # If there are subdirs, report their specific --help. 1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1562 test -d "$ac_dir" || 1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1564 continue 1565 ac_builddir=. 1566 1567case "$ac_dir" in 1568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1569*) 1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1571 # A ".." for each directory in $ac_dir_suffix. 1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1573 case $ac_top_builddir_sub in 1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1576 esac ;; 1577esac 1578ac_abs_top_builddir=$ac_pwd 1579ac_abs_builddir=$ac_pwd$ac_dir_suffix 1580# for backward compatibility: 1581ac_top_builddir=$ac_top_build_prefix 1582 1583case $srcdir in 1584 .) # We are building in place. 1585 ac_srcdir=. 1586 ac_top_srcdir=$ac_top_builddir_sub 1587 ac_abs_top_srcdir=$ac_pwd ;; 1588 [\\/]* | ?:[\\/]* ) # Absolute name. 1589 ac_srcdir=$srcdir$ac_dir_suffix; 1590 ac_top_srcdir=$srcdir 1591 ac_abs_top_srcdir=$srcdir ;; 1592 *) # Relative name. 1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1594 ac_top_srcdir=$ac_top_build_prefix$srcdir 1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1596esac 1597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1598 1599 cd "$ac_dir" || { ac_status=$?; continue; } 1600 # Check for guested configure. 1601 if test -f "$ac_srcdir/configure.gnu"; then 1602 echo && 1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1604 elif test -f "$ac_srcdir/configure"; then 1605 echo && 1606 $SHELL "$ac_srcdir/configure" --help=recursive 1607 else 1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1609 fi || ac_status=$? 1610 cd "$ac_pwd" || { ac_status=$?; break; } 1611 done 1612fi 1613 1614test -n "$ac_init_help" && exit $ac_status 1615if $ac_init_version; then 1616 cat <<\_ACEOF 1617Poly/ML configure 5.8.2 1618generated by GNU Autoconf 2.69 1619 1620Copyright (C) 2012 Free Software Foundation, Inc. 1621This configure script is free software; the Free Software Foundation 1622gives unlimited permission to copy, distribute and modify it. 1623_ACEOF 1624 exit 1625fi 1626 1627## ------------------------ ## 1628## Autoconf initialization. ## 1629## ------------------------ ## 1630 1631# ac_fn_c_try_compile LINENO 1632# -------------------------- 1633# Try to compile conftest.$ac_ext, and return whether this succeeded. 1634ac_fn_c_try_compile () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 rm -f conftest.$ac_objext 1638 if { { ac_try="$ac_compile" 1639case "(($ac_try" in 1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1641 *) ac_try_echo=$ac_try;; 1642esac 1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1644$as_echo "$ac_try_echo"; } >&5 1645 (eval "$ac_compile") 2>conftest.err 1646 ac_status=$? 1647 if test -s conftest.err; then 1648 grep -v '^ *+' conftest.err >conftest.er1 1649 cat conftest.er1 >&5 1650 mv -f conftest.er1 conftest.err 1651 fi 1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1653 test $ac_status = 0; } && { 1654 test -z "$ac_c_werror_flag" || 1655 test ! -s conftest.err 1656 } && test -s conftest.$ac_objext; then : 1657 ac_retval=0 1658else 1659 $as_echo "$as_me: failed program was:" >&5 1660sed 's/^/| /' conftest.$ac_ext >&5 1661 1662 ac_retval=1 1663fi 1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1665 as_fn_set_status $ac_retval 1666 1667} # ac_fn_c_try_compile 1668 1669# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1670# --------------------------------------------- 1671# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1672# accordingly. 1673ac_fn_c_check_decl () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 as_decl_name=`echo $2|sed 's/ *(.*//'` 1677 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1679$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1680if eval \${$3+:} false; then : 1681 $as_echo_n "(cached) " >&6 1682else 1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1684/* end confdefs.h. */ 1685$4 1686int 1687main () 1688{ 1689#ifndef $as_decl_name 1690#ifdef __cplusplus 1691 (void) $as_decl_use; 1692#else 1693 (void) $as_decl_name; 1694#endif 1695#endif 1696 1697 ; 1698 return 0; 1699} 1700_ACEOF 1701if ac_fn_c_try_compile "$LINENO"; then : 1702 eval "$3=yes" 1703else 1704 eval "$3=no" 1705fi 1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1707fi 1708eval ac_res=\$$3 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1710$as_echo "$ac_res" >&6; } 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 1713} # ac_fn_c_check_decl 1714 1715# ac_fn_c_try_cpp LINENO 1716# ---------------------- 1717# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1718ac_fn_c_try_cpp () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 if { { ac_try="$ac_cpp conftest.$ac_ext" 1722case "(($ac_try" in 1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1724 *) ac_try_echo=$ac_try;; 1725esac 1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1727$as_echo "$ac_try_echo"; } >&5 1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1729 ac_status=$? 1730 if test -s conftest.err; then 1731 grep -v '^ *+' conftest.err >conftest.er1 1732 cat conftest.er1 >&5 1733 mv -f conftest.er1 conftest.err 1734 fi 1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 test $ac_status = 0; } > conftest.i && { 1737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1738 test ! -s conftest.err 1739 }; then : 1740 ac_retval=0 1741else 1742 $as_echo "$as_me: failed program was:" >&5 1743sed 's/^/| /' conftest.$ac_ext >&5 1744 1745 ac_retval=1 1746fi 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1748 as_fn_set_status $ac_retval 1749 1750} # ac_fn_c_try_cpp 1751 1752# ac_fn_c_try_run LINENO 1753# ---------------------- 1754# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1755# that executables *can* be run. 1756ac_fn_c_try_run () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 if { { ac_try="$ac_link" 1760case "(($ac_try" in 1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1762 *) ac_try_echo=$ac_try;; 1763esac 1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1765$as_echo "$ac_try_echo"; } >&5 1766 (eval "$ac_link") 2>&5 1767 ac_status=$? 1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1770 { { case "(($ac_try" in 1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1772 *) ac_try_echo=$ac_try;; 1773esac 1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1775$as_echo "$ac_try_echo"; } >&5 1776 (eval "$ac_try") 2>&5 1777 ac_status=$? 1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1779 test $ac_status = 0; }; }; then : 1780 ac_retval=0 1781else 1782 $as_echo "$as_me: program exited with status $ac_status" >&5 1783 $as_echo "$as_me: failed program was:" >&5 1784sed 's/^/| /' conftest.$ac_ext >&5 1785 1786 ac_retval=$ac_status 1787fi 1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1790 as_fn_set_status $ac_retval 1791 1792} # ac_fn_c_try_run 1793 1794# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1795# ------------------------------------------------------- 1796# Tests whether HEADER exists and can be compiled using the include files in 1797# INCLUDES, setting the cache variable VAR accordingly. 1798ac_fn_c_check_header_compile () 1799{ 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1802$as_echo_n "checking for $2... " >&6; } 1803if eval \${$3+:} false; then : 1804 $as_echo_n "(cached) " >&6 1805else 1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807/* end confdefs.h. */ 1808$4 1809#include <$2> 1810_ACEOF 1811if ac_fn_c_try_compile "$LINENO"; then : 1812 eval "$3=yes" 1813else 1814 eval "$3=no" 1815fi 1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1817fi 1818eval ac_res=\$$3 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1820$as_echo "$ac_res" >&6; } 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1822 1823} # ac_fn_c_check_header_compile 1824 1825# ac_fn_c_try_link LINENO 1826# ----------------------- 1827# Try to link conftest.$ac_ext, and return whether this succeeded. 1828ac_fn_c_try_link () 1829{ 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1831 rm -f conftest.$ac_objext conftest$ac_exeext 1832 if { { ac_try="$ac_link" 1833case "(($ac_try" in 1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1835 *) ac_try_echo=$ac_try;; 1836esac 1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1838$as_echo "$ac_try_echo"; } >&5 1839 (eval "$ac_link") 2>conftest.err 1840 ac_status=$? 1841 if test -s conftest.err; then 1842 grep -v '^ *+' conftest.err >conftest.er1 1843 cat conftest.er1 >&5 1844 mv -f conftest.er1 conftest.err 1845 fi 1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1847 test $ac_status = 0; } && { 1848 test -z "$ac_c_werror_flag" || 1849 test ! -s conftest.err 1850 } && test -s conftest$ac_exeext && { 1851 test "$cross_compiling" = yes || 1852 test -x conftest$ac_exeext 1853 }; then : 1854 ac_retval=0 1855else 1856 $as_echo "$as_me: failed program was:" >&5 1857sed 's/^/| /' conftest.$ac_ext >&5 1858 1859 ac_retval=1 1860fi 1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1863 # interfere with the next link command; also delete a directory that is 1864 # left behind by Apple's compiler. We do this before executing the actions. 1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1867 as_fn_set_status $ac_retval 1868 1869} # ac_fn_c_try_link 1870 1871# ac_fn_c_check_func LINENO FUNC VAR 1872# ---------------------------------- 1873# Tests whether FUNC exists, setting the cache variable VAR accordingly 1874ac_fn_c_check_func () 1875{ 1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1878$as_echo_n "checking for $2... " >&6; } 1879if eval \${$3+:} false; then : 1880 $as_echo_n "(cached) " >&6 1881else 1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1883/* end confdefs.h. */ 1884/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1886#define $2 innocuous_$2 1887 1888/* System header to define __stub macros and hopefully few prototypes, 1889 which can conflict with char $2 (); below. 1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1891 <limits.h> exists even on freestanding compilers. */ 1892 1893#ifdef __STDC__ 1894# include <limits.h> 1895#else 1896# include <assert.h> 1897#endif 1898 1899#undef $2 1900 1901/* Override any GCC internal prototype to avoid an error. 1902 Use char because int might match the return type of a GCC 1903 builtin and then its argument prototype would still apply. */ 1904#ifdef __cplusplus 1905extern "C" 1906#endif 1907char $2 (); 1908/* The GNU C library defines this for functions which it implements 1909 to always fail with ENOSYS. Some functions are actually named 1910 something starting with __ and the normal name is an alias. */ 1911#if defined __stub_$2 || defined __stub___$2 1912choke me 1913#endif 1914 1915int 1916main () 1917{ 1918return $2 (); 1919 ; 1920 return 0; 1921} 1922_ACEOF 1923if ac_fn_c_try_link "$LINENO"; then : 1924 eval "$3=yes" 1925else 1926 eval "$3=no" 1927fi 1928rm -f core conftest.err conftest.$ac_objext \ 1929 conftest$ac_exeext conftest.$ac_ext 1930fi 1931eval ac_res=\$$3 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1933$as_echo "$ac_res" >&6; } 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1935 1936} # ac_fn_c_check_func 1937 1938# ac_fn_cxx_try_compile LINENO 1939# ---------------------------- 1940# Try to compile conftest.$ac_ext, and return whether this succeeded. 1941ac_fn_cxx_try_compile () 1942{ 1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1944 rm -f conftest.$ac_objext 1945 if { { ac_try="$ac_compile" 1946case "(($ac_try" in 1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1948 *) ac_try_echo=$ac_try;; 1949esac 1950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1951$as_echo "$ac_try_echo"; } >&5 1952 (eval "$ac_compile") 2>conftest.err 1953 ac_status=$? 1954 if test -s conftest.err; then 1955 grep -v '^ *+' conftest.err >conftest.er1 1956 cat conftest.er1 >&5 1957 mv -f conftest.er1 conftest.err 1958 fi 1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1960 test $ac_status = 0; } && { 1961 test -z "$ac_cxx_werror_flag" || 1962 test ! -s conftest.err 1963 } && test -s conftest.$ac_objext; then : 1964 ac_retval=0 1965else 1966 $as_echo "$as_me: failed program was:" >&5 1967sed 's/^/| /' conftest.$ac_ext >&5 1968 1969 ac_retval=1 1970fi 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 as_fn_set_status $ac_retval 1973 1974} # ac_fn_cxx_try_compile 1975 1976# ac_fn_cxx_try_cpp LINENO 1977# ------------------------ 1978# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1979ac_fn_cxx_try_cpp () 1980{ 1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1982 if { { ac_try="$ac_cpp conftest.$ac_ext" 1983case "(($ac_try" in 1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1985 *) ac_try_echo=$ac_try;; 1986esac 1987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1988$as_echo "$ac_try_echo"; } >&5 1989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1990 ac_status=$? 1991 if test -s conftest.err; then 1992 grep -v '^ *+' conftest.err >conftest.er1 1993 cat conftest.er1 >&5 1994 mv -f conftest.er1 conftest.err 1995 fi 1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1997 test $ac_status = 0; } > conftest.i && { 1998 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1999 test ! -s conftest.err 2000 }; then : 2001 ac_retval=0 2002else 2003 $as_echo "$as_me: failed program was:" >&5 2004sed 's/^/| /' conftest.$ac_ext >&5 2005 2006 ac_retval=1 2007fi 2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2009 as_fn_set_status $ac_retval 2010 2011} # ac_fn_cxx_try_cpp 2012 2013# ac_fn_cxx_try_link LINENO 2014# ------------------------- 2015# Try to link conftest.$ac_ext, and return whether this succeeded. 2016ac_fn_cxx_try_link () 2017{ 2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2019 rm -f conftest.$ac_objext conftest$ac_exeext 2020 if { { ac_try="$ac_link" 2021case "(($ac_try" in 2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2023 *) ac_try_echo=$ac_try;; 2024esac 2025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2026$as_echo "$ac_try_echo"; } >&5 2027 (eval "$ac_link") 2>conftest.err 2028 ac_status=$? 2029 if test -s conftest.err; then 2030 grep -v '^ *+' conftest.err >conftest.er1 2031 cat conftest.er1 >&5 2032 mv -f conftest.er1 conftest.err 2033 fi 2034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2035 test $ac_status = 0; } && { 2036 test -z "$ac_cxx_werror_flag" || 2037 test ! -s conftest.err 2038 } && test -s conftest$ac_exeext && { 2039 test "$cross_compiling" = yes || 2040 test -x conftest$ac_exeext 2041 }; then : 2042 ac_retval=0 2043else 2044 $as_echo "$as_me: failed program was:" >&5 2045sed 's/^/| /' conftest.$ac_ext >&5 2046 2047 ac_retval=1 2048fi 2049 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2050 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2051 # interfere with the next link command; also delete a directory that is 2052 # left behind by Apple's compiler. We do this before executing the actions. 2053 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2055 as_fn_set_status $ac_retval 2056 2057} # ac_fn_cxx_try_link 2058 2059# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2060# ------------------------------------------- 2061# Tests whether TYPE exists after having included INCLUDES, setting cache 2062# variable VAR accordingly. 2063ac_fn_c_check_type () 2064{ 2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2067$as_echo_n "checking for $2... " >&6; } 2068if eval \${$3+:} false; then : 2069 $as_echo_n "(cached) " >&6 2070else 2071 eval "$3=no" 2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2073/* end confdefs.h. */ 2074$4 2075int 2076main () 2077{ 2078if (sizeof ($2)) 2079 return 0; 2080 ; 2081 return 0; 2082} 2083_ACEOF 2084if ac_fn_c_try_compile "$LINENO"; then : 2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2086/* end confdefs.h. */ 2087$4 2088int 2089main () 2090{ 2091if (sizeof (($2))) 2092 return 0; 2093 ; 2094 return 0; 2095} 2096_ACEOF 2097if ac_fn_c_try_compile "$LINENO"; then : 2098 2099else 2100 eval "$3=yes" 2101fi 2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2103fi 2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2105fi 2106eval ac_res=\$$3 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2108$as_echo "$ac_res" >&6; } 2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2110 2111} # ac_fn_c_check_type 2112 2113# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2114# ------------------------------------------------------- 2115# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2116# the include files in INCLUDES and setting the cache variable VAR 2117# accordingly. 2118ac_fn_c_check_header_mongrel () 2119{ 2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2121 if eval \${$3+:} false; then : 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2123$as_echo_n "checking for $2... " >&6; } 2124if eval \${$3+:} false; then : 2125 $as_echo_n "(cached) " >&6 2126fi 2127eval ac_res=\$$3 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2129$as_echo "$ac_res" >&6; } 2130else 2131 # Is the header compilable? 2132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2133$as_echo_n "checking $2 usability... " >&6; } 2134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2135/* end confdefs.h. */ 2136$4 2137#include <$2> 2138_ACEOF 2139if ac_fn_c_try_compile "$LINENO"; then : 2140 ac_header_compiler=yes 2141else 2142 ac_header_compiler=no 2143fi 2144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2146$as_echo "$ac_header_compiler" >&6; } 2147 2148# Is the header present? 2149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2150$as_echo_n "checking $2 presence... " >&6; } 2151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2152/* end confdefs.h. */ 2153#include <$2> 2154_ACEOF 2155if ac_fn_c_try_cpp "$LINENO"; then : 2156 ac_header_preproc=yes 2157else 2158 ac_header_preproc=no 2159fi 2160rm -f conftest.err conftest.i conftest.$ac_ext 2161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2162$as_echo "$ac_header_preproc" >&6; } 2163 2164# So? What about this header? 2165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2166 yes:no: ) 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2168$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2170$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2171 ;; 2172 no:yes:* ) 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2174$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2176$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2178$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2180$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2182$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2183( $as_echo "## --------------------------------------- ## 2184## Report this to polyml AT polyml DOT org ## 2185## --------------------------------------- ##" 2186 ) | sed "s/^/$as_me: WARNING: /" >&2 2187 ;; 2188esac 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2190$as_echo_n "checking for $2... " >&6; } 2191if eval \${$3+:} false; then : 2192 $as_echo_n "(cached) " >&6 2193else 2194 eval "$3=\$ac_header_compiler" 2195fi 2196eval ac_res=\$$3 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2198$as_echo "$ac_res" >&6; } 2199fi 2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2201 2202} # ac_fn_c_check_header_mongrel 2203 2204# ac_fn_c_find_intX_t LINENO BITS VAR 2205# ----------------------------------- 2206# Finds a signed integer type with width BITS, setting cache variable VAR 2207# accordingly. 2208ac_fn_c_find_intX_t () 2209{ 2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2212$as_echo_n "checking for int$2_t... " >&6; } 2213if eval \${$3+:} false; then : 2214 $as_echo_n "(cached) " >&6 2215else 2216 eval "$3=no" 2217 # Order is important - never check a type that is potentially smaller 2218 # than half of the expected target width. 2219 for ac_type in int$2_t 'int' 'long int' \ 2220 'long long int' 'short int' 'signed char'; do 2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2222/* end confdefs.h. */ 2223$ac_includes_default 2224 enum { N = $2 / 2 - 1 }; 2225int 2226main () 2227{ 2228static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2229test_array [0] = 0; 2230return test_array [0]; 2231 2232 ; 2233 return 0; 2234} 2235_ACEOF 2236if ac_fn_c_try_compile "$LINENO"; then : 2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2238/* end confdefs.h. */ 2239$ac_includes_default 2240 enum { N = $2 / 2 - 1 }; 2241int 2242main () 2243{ 2244static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2245 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2246test_array [0] = 0; 2247return test_array [0]; 2248 2249 ; 2250 return 0; 2251} 2252_ACEOF 2253if ac_fn_c_try_compile "$LINENO"; then : 2254 2255else 2256 case $ac_type in #( 2257 int$2_t) : 2258 eval "$3=yes" ;; #( 2259 *) : 2260 eval "$3=\$ac_type" ;; 2261esac 2262fi 2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2264fi 2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2266 if eval test \"x\$"$3"\" = x"no"; then : 2267 2268else 2269 break 2270fi 2271 done 2272fi 2273eval ac_res=\$$3 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2275$as_echo "$ac_res" >&6; } 2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2277 2278} # ac_fn_c_find_intX_t 2279 2280# ac_fn_c_find_uintX_t LINENO BITS VAR 2281# ------------------------------------ 2282# Finds an unsigned integer type with width BITS, setting cache variable VAR 2283# accordingly. 2284ac_fn_c_find_uintX_t () 2285{ 2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2288$as_echo_n "checking for uint$2_t... " >&6; } 2289if eval \${$3+:} false; then : 2290 $as_echo_n "(cached) " >&6 2291else 2292 eval "$3=no" 2293 # Order is important - never check a type that is potentially smaller 2294 # than half of the expected target width. 2295 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2296 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2298/* end confdefs.h. */ 2299$ac_includes_default 2300int 2301main () 2302{ 2303static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2304test_array [0] = 0; 2305return test_array [0]; 2306 2307 ; 2308 return 0; 2309} 2310_ACEOF 2311if ac_fn_c_try_compile "$LINENO"; then : 2312 case $ac_type in #( 2313 uint$2_t) : 2314 eval "$3=yes" ;; #( 2315 *) : 2316 eval "$3=\$ac_type" ;; 2317esac 2318fi 2319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2320 if eval test \"x\$"$3"\" = x"no"; then : 2321 2322else 2323 break 2324fi 2325 done 2326fi 2327eval ac_res=\$$3 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2329$as_echo "$ac_res" >&6; } 2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2331 2332} # ac_fn_c_find_uintX_t 2333 2334# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2335# ---------------------------------------------------- 2336# Tries to find if the field MEMBER exists in type AGGR, after including 2337# INCLUDES, setting cache variable VAR accordingly. 2338ac_fn_c_check_member () 2339{ 2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2342$as_echo_n "checking for $2.$3... " >&6; } 2343if eval \${$4+:} false; then : 2344 $as_echo_n "(cached) " >&6 2345else 2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2347/* end confdefs.h. */ 2348$5 2349int 2350main () 2351{ 2352static $2 ac_aggr; 2353if (ac_aggr.$3) 2354return 0; 2355 ; 2356 return 0; 2357} 2358_ACEOF 2359if ac_fn_c_try_compile "$LINENO"; then : 2360 eval "$4=yes" 2361else 2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2363/* end confdefs.h. */ 2364$5 2365int 2366main () 2367{ 2368static $2 ac_aggr; 2369if (sizeof ac_aggr.$3) 2370return 0; 2371 ; 2372 return 0; 2373} 2374_ACEOF 2375if ac_fn_c_try_compile "$LINENO"; then : 2376 eval "$4=yes" 2377else 2378 eval "$4=no" 2379fi 2380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2381fi 2382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2383fi 2384eval ac_res=\$$4 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2386$as_echo "$ac_res" >&6; } 2387 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2388 2389} # ac_fn_c_check_member 2390 2391# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2392# -------------------------------------------- 2393# Tries to find the compile-time value of EXPR in a program that includes 2394# INCLUDES, setting VAR accordingly. Returns whether the value could be 2395# computed 2396ac_fn_c_compute_int () 2397{ 2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2399 if test "$cross_compiling" = yes; then 2400 # Depending upon the size, compute the lo and hi bounds. 2401cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2402/* end confdefs.h. */ 2403$4 2404int 2405main () 2406{ 2407static int test_array [1 - 2 * !(($2) >= 0)]; 2408test_array [0] = 0; 2409return test_array [0]; 2410 2411 ; 2412 return 0; 2413} 2414_ACEOF 2415if ac_fn_c_try_compile "$LINENO"; then : 2416 ac_lo=0 ac_mid=0 2417 while :; do 2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2419/* end confdefs.h. */ 2420$4 2421int 2422main () 2423{ 2424static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2425test_array [0] = 0; 2426return test_array [0]; 2427 2428 ; 2429 return 0; 2430} 2431_ACEOF 2432if ac_fn_c_try_compile "$LINENO"; then : 2433 ac_hi=$ac_mid; break 2434else 2435 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2436 if test $ac_lo -le $ac_mid; then 2437 ac_lo= ac_hi= 2438 break 2439 fi 2440 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2441fi 2442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2443 done 2444else 2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2446/* end confdefs.h. */ 2447$4 2448int 2449main () 2450{ 2451static int test_array [1 - 2 * !(($2) < 0)]; 2452test_array [0] = 0; 2453return test_array [0]; 2454 2455 ; 2456 return 0; 2457} 2458_ACEOF 2459if ac_fn_c_try_compile "$LINENO"; then : 2460 ac_hi=-1 ac_mid=-1 2461 while :; do 2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2463/* end confdefs.h. */ 2464$4 2465int 2466main () 2467{ 2468static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2469test_array [0] = 0; 2470return test_array [0]; 2471 2472 ; 2473 return 0; 2474} 2475_ACEOF 2476if ac_fn_c_try_compile "$LINENO"; then : 2477 ac_lo=$ac_mid; break 2478else 2479 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2480 if test $ac_mid -le $ac_hi; then 2481 ac_lo= ac_hi= 2482 break 2483 fi 2484 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2485fi 2486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2487 done 2488else 2489 ac_lo= ac_hi= 2490fi 2491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2492fi 2493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2494# Binary search between lo and hi bounds. 2495while test "x$ac_lo" != "x$ac_hi"; do 2496 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2498/* end confdefs.h. */ 2499$4 2500int 2501main () 2502{ 2503static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2504test_array [0] = 0; 2505return test_array [0]; 2506 2507 ; 2508 return 0; 2509} 2510_ACEOF 2511if ac_fn_c_try_compile "$LINENO"; then : 2512 ac_hi=$ac_mid 2513else 2514 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2515fi 2516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2517done 2518case $ac_lo in #(( 2519?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2520'') ac_retval=1 ;; 2521esac 2522 else 2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2524/* end confdefs.h. */ 2525$4 2526static long int longval () { return $2; } 2527static unsigned long int ulongval () { return $2; } 2528#include <stdio.h> 2529#include <stdlib.h> 2530int 2531main () 2532{ 2533 2534 FILE *f = fopen ("conftest.val", "w"); 2535 if (! f) 2536 return 1; 2537 if (($2) < 0) 2538 { 2539 long int i = longval (); 2540 if (i != ($2)) 2541 return 1; 2542 fprintf (f, "%ld", i); 2543 } 2544 else 2545 { 2546 unsigned long int i = ulongval (); 2547 if (i != ($2)) 2548 return 1; 2549 fprintf (f, "%lu", i); 2550 } 2551 /* Do not output a trailing newline, as this causes \r\n confusion 2552 on some platforms. */ 2553 return ferror (f) || fclose (f) != 0; 2554 2555 ; 2556 return 0; 2557} 2558_ACEOF 2559if ac_fn_c_try_run "$LINENO"; then : 2560 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2561else 2562 ac_retval=1 2563fi 2564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2565 conftest.$ac_objext conftest.beam conftest.$ac_ext 2566rm -f conftest.val 2567 2568 fi 2569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2570 as_fn_set_status $ac_retval 2571 2572} # ac_fn_c_compute_int 2573cat >config.log <<_ACEOF 2574This file contains any messages produced by compilers while 2575running configure, to aid debugging if configure makes a mistake. 2576 2577It was created by Poly/ML $as_me 5.8.2, which was 2578generated by GNU Autoconf 2.69. Invocation command line was 2579 2580 $ $0 $@ 2581 2582_ACEOF 2583exec 5>>config.log 2584{ 2585cat <<_ASUNAME 2586## --------- ## 2587## Platform. ## 2588## --------- ## 2589 2590hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2591uname -m = `(uname -m) 2>/dev/null || echo unknown` 2592uname -r = `(uname -r) 2>/dev/null || echo unknown` 2593uname -s = `(uname -s) 2>/dev/null || echo unknown` 2594uname -v = `(uname -v) 2>/dev/null || echo unknown` 2595 2596/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2597/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2598 2599/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2600/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2601/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2602/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2603/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2604/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2605/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2606 2607_ASUNAME 2608 2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2610for as_dir in $PATH 2611do 2612 IFS=$as_save_IFS 2613 test -z "$as_dir" && as_dir=. 2614 $as_echo "PATH: $as_dir" 2615 done 2616IFS=$as_save_IFS 2617 2618} >&5 2619 2620cat >&5 <<_ACEOF 2621 2622 2623## ----------- ## 2624## Core tests. ## 2625## ----------- ## 2626 2627_ACEOF 2628 2629 2630# Keep a trace of the command line. 2631# Strip out --no-create and --no-recursion so they do not pile up. 2632# Strip out --silent because we don't want to record it for future runs. 2633# Also quote any args containing shell meta-characters. 2634# Make two passes to allow for proper duplicate-argument suppression. 2635ac_configure_args= 2636ac_configure_args0= 2637ac_configure_args1= 2638ac_must_keep_next=false 2639for ac_pass in 1 2 2640do 2641 for ac_arg 2642 do 2643 case $ac_arg in 2644 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2646 | -silent | --silent | --silen | --sile | --sil) 2647 continue ;; 2648 *\'*) 2649 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2650 esac 2651 case $ac_pass in 2652 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2653 2) 2654 as_fn_append ac_configure_args1 " '$ac_arg'" 2655 if test $ac_must_keep_next = true; then 2656 ac_must_keep_next=false # Got value, back to normal. 2657 else 2658 case $ac_arg in 2659 *=* | --config-cache | -C | -disable-* | --disable-* \ 2660 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2661 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2662 | -with-* | --with-* | -without-* | --without-* | --x) 2663 case "$ac_configure_args0 " in 2664 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2665 esac 2666 ;; 2667 -* ) ac_must_keep_next=true ;; 2668 esac 2669 fi 2670 as_fn_append ac_configure_args " '$ac_arg'" 2671 ;; 2672 esac 2673 done 2674done 2675{ ac_configure_args0=; unset ac_configure_args0;} 2676{ ac_configure_args1=; unset ac_configure_args1;} 2677 2678# When interrupted or exit'd, cleanup temporary files, and complete 2679# config.log. We remove comments because anyway the quotes in there 2680# would cause problems or look ugly. 2681# WARNING: Use '\'' to represent an apostrophe within the trap. 2682# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2683trap 'exit_status=$? 2684 # Save into config.log some information that might help in debugging. 2685 { 2686 echo 2687 2688 $as_echo "## ---------------- ## 2689## Cache variables. ## 2690## ---------------- ##" 2691 echo 2692 # The following way of writing the cache mishandles newlines in values, 2693( 2694 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2695 eval ac_val=\$$ac_var 2696 case $ac_val in #( 2697 *${as_nl}*) 2698 case $ac_var in #( 2699 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2700$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2701 esac 2702 case $ac_var in #( 2703 _ | IFS | as_nl) ;; #( 2704 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2705 *) { eval $ac_var=; unset $ac_var;} ;; 2706 esac ;; 2707 esac 2708 done 2709 (set) 2>&1 | 2710 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2711 *${as_nl}ac_space=\ *) 2712 sed -n \ 2713 "s/'\''/'\''\\\\'\'''\''/g; 2714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2715 ;; #( 2716 *) 2717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2718 ;; 2719 esac | 2720 sort 2721) 2722 echo 2723 2724 $as_echo "## ----------------- ## 2725## Output variables. ## 2726## ----------------- ##" 2727 echo 2728 for ac_var in $ac_subst_vars 2729 do 2730 eval ac_val=\$$ac_var 2731 case $ac_val in 2732 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2733 esac 2734 $as_echo "$ac_var='\''$ac_val'\''" 2735 done | sort 2736 echo 2737 2738 if test -n "$ac_subst_files"; then 2739 $as_echo "## ------------------- ## 2740## File substitutions. ## 2741## ------------------- ##" 2742 echo 2743 for ac_var in $ac_subst_files 2744 do 2745 eval ac_val=\$$ac_var 2746 case $ac_val in 2747 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2748 esac 2749 $as_echo "$ac_var='\''$ac_val'\''" 2750 done | sort 2751 echo 2752 fi 2753 2754 if test -s confdefs.h; then 2755 $as_echo "## ----------- ## 2756## confdefs.h. ## 2757## ----------- ##" 2758 echo 2759 cat confdefs.h 2760 echo 2761 fi 2762 test "$ac_signal" != 0 && 2763 $as_echo "$as_me: caught signal $ac_signal" 2764 $as_echo "$as_me: exit $exit_status" 2765 } >&5 2766 rm -f core *.core core.conftest.* && 2767 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2768 exit $exit_status 2769' 0 2770for ac_signal in 1 2 13 15; do 2771 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2772done 2773ac_signal=0 2774 2775# confdefs.h avoids OS command line length limits that DEFS can exceed. 2776rm -f -r conftest* confdefs.h 2777 2778$as_echo "/* confdefs.h */" > confdefs.h 2779 2780# Predefined preprocessor variables. 2781 2782cat >>confdefs.h <<_ACEOF 2783#define PACKAGE_NAME "$PACKAGE_NAME" 2784_ACEOF 2785 2786cat >>confdefs.h <<_ACEOF 2787#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2788_ACEOF 2789 2790cat >>confdefs.h <<_ACEOF 2791#define PACKAGE_VERSION "$PACKAGE_VERSION" 2792_ACEOF 2793 2794cat >>confdefs.h <<_ACEOF 2795#define PACKAGE_STRING "$PACKAGE_STRING" 2796_ACEOF 2797 2798cat >>confdefs.h <<_ACEOF 2799#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2800_ACEOF 2801 2802cat >>confdefs.h <<_ACEOF 2803#define PACKAGE_URL "$PACKAGE_URL" 2804_ACEOF 2805 2806 2807# Let the site file select an alternate cache file if it wants to. 2808# Prefer an explicitly selected file to automatically selected ones. 2809ac_site_file1=NONE 2810ac_site_file2=NONE 2811if test -n "$CONFIG_SITE"; then 2812 # We do not want a PATH search for config.site. 2813 case $CONFIG_SITE in #(( 2814 -*) ac_site_file1=./$CONFIG_SITE;; 2815 */*) ac_site_file1=$CONFIG_SITE;; 2816 *) ac_site_file1=./$CONFIG_SITE;; 2817 esac 2818elif test "x$prefix" != xNONE; then 2819 ac_site_file1=$prefix/share/config.site 2820 ac_site_file2=$prefix/etc/config.site 2821else 2822 ac_site_file1=$ac_default_prefix/share/config.site 2823 ac_site_file2=$ac_default_prefix/etc/config.site 2824fi 2825for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2826do 2827 test "x$ac_site_file" = xNONE && continue 2828 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2830$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2831 sed 's/^/| /' "$ac_site_file" >&5 2832 . "$ac_site_file" \ 2833 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2835as_fn_error $? "failed to load site script $ac_site_file 2836See \`config.log' for more details" "$LINENO" 5; } 2837 fi 2838done 2839 2840if test -r "$cache_file"; then 2841 # Some versions of bash will fail to source /dev/null (special files 2842 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2843 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2845$as_echo "$as_me: loading cache $cache_file" >&6;} 2846 case $cache_file in 2847 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2848 *) . "./$cache_file";; 2849 esac 2850 fi 2851else 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2853$as_echo "$as_me: creating cache $cache_file" >&6;} 2854 >$cache_file 2855fi 2856 2857# Check that the precious variables saved in the cache have kept the same 2858# value. 2859ac_cache_corrupted=false 2860for ac_var in $ac_precious_vars; do 2861 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2862 eval ac_new_set=\$ac_env_${ac_var}_set 2863 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2864 eval ac_new_val=\$ac_env_${ac_var}_value 2865 case $ac_old_set,$ac_new_set in 2866 set,) 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2868$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2869 ac_cache_corrupted=: ;; 2870 ,set) 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2872$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2873 ac_cache_corrupted=: ;; 2874 ,);; 2875 *) 2876 if test "x$ac_old_val" != "x$ac_new_val"; then 2877 # differences in whitespace do not lead to failure. 2878 ac_old_val_w=`echo x $ac_old_val` 2879 ac_new_val_w=`echo x $ac_new_val` 2880 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2882$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2883 ac_cache_corrupted=: 2884 else 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2886$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2887 eval $ac_var=\$ac_old_val 2888 fi 2889 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2890$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2892$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2893 fi;; 2894 esac 2895 # Pass precious variables to config.status. 2896 if test "$ac_new_set" = set; then 2897 case $ac_new_val in 2898 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2899 *) ac_arg=$ac_var=$ac_new_val ;; 2900 esac 2901 case " $ac_configure_args " in 2902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2903 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2904 esac 2905 fi 2906done 2907if $ac_cache_corrupted; then 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2910 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2911$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2912 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2913fi 2914## -------------------- ## 2915## Main body of script. ## 2916## -------------------- ## 2917 2918ac_ext=c 2919ac_cpp='$CPP $CPPFLAGS' 2920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2922ac_compiler_gnu=$ac_cv_c_compiler_gnu 2923 2924 2925am__api_version='1.16' 2926 2927ac_aux_dir= 2928for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2929 if test -f "$ac_dir/install-sh"; then 2930 ac_aux_dir=$ac_dir 2931 ac_install_sh="$ac_aux_dir/install-sh -c" 2932 break 2933 elif test -f "$ac_dir/install.sh"; then 2934 ac_aux_dir=$ac_dir 2935 ac_install_sh="$ac_aux_dir/install.sh -c" 2936 break 2937 elif test -f "$ac_dir/shtool"; then 2938 ac_aux_dir=$ac_dir 2939 ac_install_sh="$ac_aux_dir/shtool install -c" 2940 break 2941 fi 2942done 2943if test -z "$ac_aux_dir"; then 2944 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2945fi 2946 2947# These three variables are undocumented and unsupported, 2948# and are intended to be withdrawn in a future Autoconf release. 2949# They can cause serious problems if a builder's source tree is in a directory 2950# whose full name contains unusual characters. 2951ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2952ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2953ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2954 2955 2956# Find a good install program. We prefer a C program (faster), 2957# so one script is as good as another. But avoid the broken or 2958# incompatible versions: 2959# SysV /etc/install, /usr/sbin/install 2960# SunOS /usr/etc/install 2961# IRIX /sbin/install 2962# AIX /bin/install 2963# AmigaOS /C/install, which installs bootblocks on floppy discs 2964# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2965# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2966# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2967# OS/2's system install, which has a completely different semantic 2968# ./install, which can be erroneously created by make from ./install.sh. 2969# Reject install programs that cannot install multiple files. 2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2971$as_echo_n "checking for a BSD-compatible install... " >&6; } 2972if test -z "$INSTALL"; then 2973if ${ac_cv_path_install+:} false; then : 2974 $as_echo_n "(cached) " >&6 2975else 2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2977for as_dir in $PATH 2978do 2979 IFS=$as_save_IFS 2980 test -z "$as_dir" && as_dir=. 2981 # Account for people who put trailing slashes in PATH elements. 2982case $as_dir/ in #(( 2983 ./ | .// | /[cC]/* | \ 2984 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2985 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2986 /usr/ucb/* ) ;; 2987 *) 2988 # OSF1 and SCO ODT 3.0 have their own names for install. 2989 # Don't use installbsd from OSF since it installs stuff as root 2990 # by default. 2991 for ac_prog in ginstall scoinst install; do 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2994 if test $ac_prog = install && 2995 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2996 # AIX install. It has an incompatible calling convention. 2997 : 2998 elif test $ac_prog = install && 2999 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3000 # program-specific install script used by HP pwplus--don't use. 3001 : 3002 else 3003 rm -rf conftest.one conftest.two conftest.dir 3004 echo one > conftest.one 3005 echo two > conftest.two 3006 mkdir conftest.dir 3007 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3008 test -s conftest.one && test -s conftest.two && 3009 test -s conftest.dir/conftest.one && 3010 test -s conftest.dir/conftest.two 3011 then 3012 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3013 break 3 3014 fi 3015 fi 3016 fi 3017 done 3018 done 3019 ;; 3020esac 3021 3022 done 3023IFS=$as_save_IFS 3024 3025rm -rf conftest.one conftest.two conftest.dir 3026 3027fi 3028 if test "${ac_cv_path_install+set}" = set; then 3029 INSTALL=$ac_cv_path_install 3030 else 3031 # As a last resort, use the slow shell script. Don't cache a 3032 # value for INSTALL within a source directory, because that will 3033 # break other packages using the cache if that directory is 3034 # removed, or if the value is a relative name. 3035 INSTALL=$ac_install_sh 3036 fi 3037fi 3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3039$as_echo "$INSTALL" >&6; } 3040 3041# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3042# It thinks the first close brace ends the variable substitution. 3043test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3044 3045test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3046 3047test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3048 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3050$as_echo_n "checking whether build environment is sane... " >&6; } 3051# Reject unsafe characters in $srcdir or the absolute working directory 3052# name. Accept space and tab only in the latter. 3053am_lf=' 3054' 3055case `pwd` in 3056 *[\\\"\#\$\&\'\`$am_lf]*) 3057 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3058esac 3059case $srcdir in 3060 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3061 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3062esac 3063 3064# Do 'set' in a subshell so we don't clobber the current shell's 3065# arguments. Must try -L first in case configure is actually a 3066# symlink; some systems play weird games with the mod time of symlinks 3067# (eg FreeBSD returns the mod time of the symlink's containing 3068# directory). 3069if ( 3070 am_has_slept=no 3071 for am_try in 1 2; do 3072 echo "timestamp, slept: $am_has_slept" > conftest.file 3073 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3074 if test "$*" = "X"; then 3075 # -L didn't work. 3076 set X `ls -t "$srcdir/configure" conftest.file` 3077 fi 3078 if test "$*" != "X $srcdir/configure conftest.file" \ 3079 && test "$*" != "X conftest.file $srcdir/configure"; then 3080 3081 # If neither matched, then we have a broken ls. This can happen 3082 # if, for instance, CONFIG_SHELL is bash and it inherits a 3083 # broken ls alias from the environment. This has actually 3084 # happened. Such a system could not be considered "sane". 3085 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3086 alias in your environment" "$LINENO" 5 3087 fi 3088 if test "$2" = conftest.file || test $am_try -eq 2; then 3089 break 3090 fi 3091 # Just in case. 3092 sleep 1 3093 am_has_slept=yes 3094 done 3095 test "$2" = conftest.file 3096 ) 3097then 3098 # Ok. 3099 : 3100else 3101 as_fn_error $? "newly created file is older than distributed files! 3102Check your system clock" "$LINENO" 5 3103fi 3104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3105$as_echo "yes" >&6; } 3106# If we didn't sleep, we still need to ensure time stamps of config.status and 3107# generated files are strictly newer. 3108am_sleep_pid= 3109if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3110 ( sleep 1 ) & 3111 am_sleep_pid=$! 3112fi 3113 3114rm -f conftest.file 3115 3116test "$program_prefix" != NONE && 3117 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3118# Use a double $ so make ignores it. 3119test "$program_suffix" != NONE && 3120 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3121# Double any \ or $. 3122# By default was `s,x,x', remove it if useless. 3123ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3124program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3125 3126# Expand $ac_aux_dir to an absolute path. 3127am_aux_dir=`cd "$ac_aux_dir" && pwd` 3128 3129if test x"${MISSING+set}" != xset; then 3130 case $am_aux_dir in 3131 *\ * | *\ *) 3132 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3133 *) 3134 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3135 esac 3136fi 3137# Use eval to expand $SHELL 3138if eval "$MISSING --is-lightweight"; then 3139 am_missing_run="$MISSING " 3140else 3141 am_missing_run= 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3143$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3144fi 3145 3146if test x"${install_sh+set}" != xset; then 3147 case $am_aux_dir in 3148 *\ * | *\ *) 3149 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3150 *) 3151 install_sh="\${SHELL} $am_aux_dir/install-sh" 3152 esac 3153fi 3154 3155# Installed binaries are usually stripped using 'strip' when the user 3156# run "make install-strip". However 'strip' might not be the right 3157# tool to use in cross-compilation environments, therefore Automake 3158# will honor the 'STRIP' environment variable to overrule this program. 3159if test "$cross_compiling" != no; then 3160 if test -n "$ac_tool_prefix"; then 3161 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3162set dummy ${ac_tool_prefix}strip; ac_word=$2 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3164$as_echo_n "checking for $ac_word... " >&6; } 3165if ${ac_cv_prog_STRIP+:} false; then : 3166 $as_echo_n "(cached) " >&6 3167else 3168 if test -n "$STRIP"; then 3169 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3170else 3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3172for as_dir in $PATH 3173do 3174 IFS=$as_save_IFS 3175 test -z "$as_dir" && as_dir=. 3176 for ac_exec_ext in '' $ac_executable_extensions; do 3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3178 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3180 break 2 3181 fi 3182done 3183 done 3184IFS=$as_save_IFS 3185 3186fi 3187fi 3188STRIP=$ac_cv_prog_STRIP 3189if test -n "$STRIP"; then 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3191$as_echo "$STRIP" >&6; } 3192else 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3194$as_echo "no" >&6; } 3195fi 3196 3197 3198fi 3199if test -z "$ac_cv_prog_STRIP"; then 3200 ac_ct_STRIP=$STRIP 3201 # Extract the first word of "strip", so it can be a program name with args. 3202set dummy strip; ac_word=$2 3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3204$as_echo_n "checking for $ac_word... " >&6; } 3205if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3206 $as_echo_n "(cached) " >&6 3207else 3208 if test -n "$ac_ct_STRIP"; then 3209 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3210else 3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3212for as_dir in $PATH 3213do 3214 IFS=$as_save_IFS 3215 test -z "$as_dir" && as_dir=. 3216 for ac_exec_ext in '' $ac_executable_extensions; do 3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3218 ac_cv_prog_ac_ct_STRIP="strip" 3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3220 break 2 3221 fi 3222done 3223 done 3224IFS=$as_save_IFS 3225 3226fi 3227fi 3228ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3229if test -n "$ac_ct_STRIP"; then 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3231$as_echo "$ac_ct_STRIP" >&6; } 3232else 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3234$as_echo "no" >&6; } 3235fi 3236 3237 if test "x$ac_ct_STRIP" = x; then 3238 STRIP=":" 3239 else 3240 case $cross_compiling:$ac_tool_warned in 3241yes:) 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3244ac_tool_warned=yes ;; 3245esac 3246 STRIP=$ac_ct_STRIP 3247 fi 3248else 3249 STRIP="$ac_cv_prog_STRIP" 3250fi 3251 3252fi 3253INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3254 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3256$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3257if test -z "$MKDIR_P"; then 3258 if ${ac_cv_path_mkdir+:} false; then : 3259 $as_echo_n "(cached) " >&6 3260else 3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3262for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3263do 3264 IFS=$as_save_IFS 3265 test -z "$as_dir" && as_dir=. 3266 for ac_prog in mkdir gmkdir; do 3267 for ac_exec_ext in '' $ac_executable_extensions; do 3268 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3269 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3270 'mkdir (GNU coreutils) '* | \ 3271 'mkdir (coreutils) '* | \ 3272 'mkdir (fileutils) '4.1*) 3273 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3274 break 3;; 3275 esac 3276 done 3277 done 3278 done 3279IFS=$as_save_IFS 3280 3281fi 3282 3283 test -d ./--version && rmdir ./--version 3284 if test "${ac_cv_path_mkdir+set}" = set; then 3285 MKDIR_P="$ac_cv_path_mkdir -p" 3286 else 3287 # As a last resort, use the slow shell script. Don't cache a 3288 # value for MKDIR_P within a source directory, because that will 3289 # break other packages using the cache if that directory is 3290 # removed, or if the value is a relative name. 3291 MKDIR_P="$ac_install_sh -d" 3292 fi 3293fi 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3295$as_echo "$MKDIR_P" >&6; } 3296 3297for ac_prog in gawk mawk nawk awk 3298do 3299 # Extract the first word of "$ac_prog", so it can be a program name with args. 3300set dummy $ac_prog; ac_word=$2 3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3302$as_echo_n "checking for $ac_word... " >&6; } 3303if ${ac_cv_prog_AWK+:} false; then : 3304 $as_echo_n "(cached) " >&6 3305else 3306 if test -n "$AWK"; then 3307 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3308else 3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3310for as_dir in $PATH 3311do 3312 IFS=$as_save_IFS 3313 test -z "$as_dir" && as_dir=. 3314 for ac_exec_ext in '' $ac_executable_extensions; do 3315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3316 ac_cv_prog_AWK="$ac_prog" 3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3318 break 2 3319 fi 3320done 3321 done 3322IFS=$as_save_IFS 3323 3324fi 3325fi 3326AWK=$ac_cv_prog_AWK 3327if test -n "$AWK"; then 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3329$as_echo "$AWK" >&6; } 3330else 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3332$as_echo "no" >&6; } 3333fi 3334 3335 3336 test -n "$AWK" && break 3337done 3338 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3340$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3341set x ${MAKE-make} 3342ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3343if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3344 $as_echo_n "(cached) " >&6 3345else 3346 cat >conftest.make <<\_ACEOF 3347SHELL = /bin/sh 3348all: 3349 @echo '@@@%%%=$(MAKE)=@@@%%%' 3350_ACEOF 3351# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3352case `${MAKE-make} -f conftest.make 2>/dev/null` in 3353 *@@@%%%=?*=@@@%%%*) 3354 eval ac_cv_prog_make_${ac_make}_set=yes;; 3355 *) 3356 eval ac_cv_prog_make_${ac_make}_set=no;; 3357esac 3358rm -f conftest.make 3359fi 3360if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3362$as_echo "yes" >&6; } 3363 SET_MAKE= 3364else 3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3366$as_echo "no" >&6; } 3367 SET_MAKE="MAKE=${MAKE-make}" 3368fi 3369 3370rm -rf .tst 2>/dev/null 3371mkdir .tst 2>/dev/null 3372if test -d .tst; then 3373 am__leading_dot=. 3374else 3375 am__leading_dot=_ 3376fi 3377rmdir .tst 2>/dev/null 3378 3379# Check whether --enable-silent-rules was given. 3380if test "${enable_silent_rules+set}" = set; then : 3381 enableval=$enable_silent_rules; 3382fi 3383 3384case $enable_silent_rules in # ((( 3385 yes) AM_DEFAULT_VERBOSITY=0;; 3386 no) AM_DEFAULT_VERBOSITY=1;; 3387 *) AM_DEFAULT_VERBOSITY=1;; 3388esac 3389am_make=${MAKE-make} 3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3391$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3392if ${am_cv_make_support_nested_variables+:} false; then : 3393 $as_echo_n "(cached) " >&6 3394else 3395 if $as_echo 'TRUE=$(BAR$(V)) 3396BAR0=false 3397BAR1=true 3398V=1 3399am__doit: 3400 @$(TRUE) 3401.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3402 am_cv_make_support_nested_variables=yes 3403else 3404 am_cv_make_support_nested_variables=no 3405fi 3406fi 3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3408$as_echo "$am_cv_make_support_nested_variables" >&6; } 3409if test $am_cv_make_support_nested_variables = yes; then 3410 AM_V='$(V)' 3411 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3412else 3413 AM_V=$AM_DEFAULT_VERBOSITY 3414 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3415fi 3416AM_BACKSLASH='\' 3417 3418if test "`cd $srcdir && pwd`" != "`pwd`"; then 3419 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3420 # is not polluted with repeated "-I." 3421 am__isrc=' -I$(srcdir)' 3422 # test to see if srcdir already configured 3423 if test -f $srcdir/config.status; then 3424 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3425 fi 3426fi 3427 3428# test whether we have cygpath 3429if test -z "$CYGPATH_W"; then 3430 if (cygpath --version) >/dev/null 2>/dev/null; then 3431 CYGPATH_W='cygpath -w' 3432 else 3433 CYGPATH_W=echo 3434 fi 3435fi 3436 3437 3438# Define the identity of the package. 3439 PACKAGE='polyml' 3440 VERSION='5.8.2' 3441 3442 3443cat >>confdefs.h <<_ACEOF 3444#define PACKAGE "$PACKAGE" 3445_ACEOF 3446 3447 3448cat >>confdefs.h <<_ACEOF 3449#define VERSION "$VERSION" 3450_ACEOF 3451 3452# Some tools Automake needs. 3453 3454ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3455 3456 3457AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3458 3459 3460AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3461 3462 3463AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3464 3465 3466MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3467 3468# For better backward compatibility. To be removed once Automake 1.9.x 3469# dies out for good. For more background, see: 3470# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3471# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3472mkdir_p='$(MKDIR_P)' 3473 3474# We need awk for the "check" target (and possibly the TAP driver). The 3475# system "awk" is bad on some platforms. 3476# Always define AMTAR for backward compatibility. Yes, it's still used 3477# in the wild :-( We should find a proper way to deprecate it ... 3478AMTAR='$${TAR-tar}' 3479 3480 3481# We'll loop over all known methods to create a tar archive until one works. 3482_am_tools='gnutar pax cpio none' 3483 3484am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3485 3486 3487 3488 3489 3490 3491# POSIX will say in a future version that running "rm -f" with no argument 3492# is OK; and we want to be able to make that assumption in our Makefile 3493# recipes. So use an aggressive probe to check that the usage we want is 3494# actually supported "in the wild" to an acceptable degree. 3495# See automake bug#10828. 3496# To make any issue more visible, cause the running configure to be aborted 3497# by default if the 'rm' program in use doesn't match our expectations; the 3498# user can still override this though. 3499if rm -f && rm -fr && rm -rf; then : OK; else 3500 cat >&2 <<'END' 3501Oops! 3502 3503Your 'rm' program seems unable to run without file operands specified 3504on the command line, even when the '-f' option is present. This is contrary 3505to the behaviour of most rm programs out there, and not conforming with 3506the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3507 3508Please tell bug-automake@gnu.org about your system, including the value 3509of your $PATH and any error possibly output before this message. This 3510can help us improve future automake versions. 3511 3512END 3513 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3514 echo 'Configuration will proceed anyway, since you have set the' >&2 3515 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3516 echo >&2 3517 else 3518 cat >&2 <<'END' 3519Aborting the configuration process, to ensure you take notice of the issue. 3520 3521You can download and install GNU coreutils to get an 'rm' implementation 3522that behaves properly: <https://www.gnu.org/software/coreutils/>. 3523 3524If you want to complete the configuration process using your problematic 3525'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3526to "yes", and re-run configure. 3527 3528END 3529 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3530 fi 3531fi 3532 3533 3534# libtoolize recommends this line. 3535 3536 3537ac_debug_mode="no" 3538 3539# Check whether --enable-debug was given. 3540if test "${enable_debug+set}" = set; then : 3541 enableval=$enable_debug; ac_debug_mode="yes" 3542fi 3543 3544 3545if test "$ac_debug_mode" != "yes"; then 3546 # Default to maximum optimisation. -O2 is not good enough. 3547 # Set CCASFLAGS to empty so that it doesn't get set to CFLAGS. 3548 # The -g option on assembler causes problems on Sparc/Solaris 10. 3549 # test X || Y is equivalent to if !X then Y 3550 test "${CFLAGS+set}" = set || CFLAGS="-O3" 3551 test "${CXXFLAGS+set}" = set || CXXFLAGS="-O3" 3552 test "${CCASFLAGS+set}" = set || CCASFLAGS="" 3553else 3554 test "${CFLAGS+set}" = set || CFLAGS="-g" 3555 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" 3556 test "${CCASFLAGS+set}" = set || CCASFLAGS="" 3557fi 3558 3559# Make sure we can run config.sub. 3560$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3561 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3562 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3564$as_echo_n "checking build system type... " >&6; } 3565if ${ac_cv_build+:} false; then : 3566 $as_echo_n "(cached) " >&6 3567else 3568 ac_build_alias=$build_alias 3569test "x$ac_build_alias" = x && 3570 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3571test "x$ac_build_alias" = x && 3572 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3573ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3574 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3575 3576fi 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3578$as_echo "$ac_cv_build" >&6; } 3579case $ac_cv_build in 3580*-*-*) ;; 3581*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3582esac 3583build=$ac_cv_build 3584ac_save_IFS=$IFS; IFS='-' 3585set x $ac_cv_build 3586shift 3587build_cpu=$1 3588build_vendor=$2 3589shift; shift 3590# Remember, the first character of IFS is used to create $*, 3591# except with old shells: 3592build_os=$* 3593IFS=$ac_save_IFS 3594case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3595 3596 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3598$as_echo_n "checking host system type... " >&6; } 3599if ${ac_cv_host+:} false; then : 3600 $as_echo_n "(cached) " >&6 3601else 3602 if test "x$host_alias" = x; then 3603 ac_cv_host=$ac_cv_build 3604else 3605 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3606 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3607fi 3608 3609fi 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3611$as_echo "$ac_cv_host" >&6; } 3612case $ac_cv_host in 3613*-*-*) ;; 3614*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3615esac 3616host=$ac_cv_host 3617ac_save_IFS=$IFS; IFS='-' 3618set x $ac_cv_host 3619shift 3620host_cpu=$1 3621host_vendor=$2 3622shift; shift 3623# Remember, the first character of IFS is used to create $*, 3624# except with old shells: 3625host_os=$* 3626IFS=$ac_save_IFS 3627case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3628 3629 3630 3631# If the compiler defines _WIN32 we're building for native Windows otherwise we're 3632# building for something else. 3633DEPDIR="${am__leading_dot}deps" 3634 3635ac_config_commands="$ac_config_commands depfiles" 3636 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3638$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3639cat > confinc.mk << 'END' 3640am__doit: 3641 @echo this is the am__doit target >confinc.out 3642.PHONY: am__doit 3643END 3644am__include="#" 3645am__quote= 3646# BSD make does it like this. 3647echo '.include "confinc.mk" # ignored' > confmf.BSD 3648# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3649echo 'include confinc.mk # ignored' > confmf.GNU 3650_am_result=no 3651for s in GNU BSD; do 3652 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3653 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3654 ac_status=$? 3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3656 (exit $ac_status); } 3657 case $?:`cat confinc.out 2>/dev/null` in #( 3658 '0:this is the am__doit target') : 3659 case $s in #( 3660 BSD) : 3661 am__include='.include' am__quote='"' ;; #( 3662 *) : 3663 am__include='include' am__quote='' ;; 3664esac ;; #( 3665 *) : 3666 ;; 3667esac 3668 if test "$am__include" != "#"; then 3669 _am_result="yes ($s style)" 3670 break 3671 fi 3672done 3673rm -f confinc.* confmf.* 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3675$as_echo "${_am_result}" >&6; } 3676 3677# Check whether --enable-dependency-tracking was given. 3678if test "${enable_dependency_tracking+set}" = set; then : 3679 enableval=$enable_dependency_tracking; 3680fi 3681 3682if test "x$enable_dependency_tracking" != xno; then 3683 am_depcomp="$ac_aux_dir/depcomp" 3684 AMDEPBACKSLASH='\' 3685 am__nodep='_no' 3686fi 3687 if test "x$enable_dependency_tracking" != xno; then 3688 AMDEP_TRUE= 3689 AMDEP_FALSE='#' 3690else 3691 AMDEP_TRUE='#' 3692 AMDEP_FALSE= 3693fi 3694 3695 3696ac_ext=c 3697ac_cpp='$CPP $CPPFLAGS' 3698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3700ac_compiler_gnu=$ac_cv_c_compiler_gnu 3701if test -n "$ac_tool_prefix"; then 3702 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3703set dummy ${ac_tool_prefix}gcc; ac_word=$2 3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3705$as_echo_n "checking for $ac_word... " >&6; } 3706if ${ac_cv_prog_CC+:} false; then : 3707 $as_echo_n "(cached) " >&6 3708else 3709 if test -n "$CC"; then 3710 ac_cv_prog_CC="$CC" # Let the user override the test. 3711else 3712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3713for as_dir in $PATH 3714do 3715 IFS=$as_save_IFS 3716 test -z "$as_dir" && as_dir=. 3717 for ac_exec_ext in '' $ac_executable_extensions; do 3718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3719 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3721 break 2 3722 fi 3723done 3724 done 3725IFS=$as_save_IFS 3726 3727fi 3728fi 3729CC=$ac_cv_prog_CC 3730if test -n "$CC"; then 3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3732$as_echo "$CC" >&6; } 3733else 3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3735$as_echo "no" >&6; } 3736fi 3737 3738 3739fi 3740if test -z "$ac_cv_prog_CC"; then 3741 ac_ct_CC=$CC 3742 # Extract the first word of "gcc", so it can be a program name with args. 3743set dummy gcc; ac_word=$2 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3745$as_echo_n "checking for $ac_word... " >&6; } 3746if ${ac_cv_prog_ac_ct_CC+:} false; then : 3747 $as_echo_n "(cached) " >&6 3748else 3749 if test -n "$ac_ct_CC"; then 3750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3751else 3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3753for as_dir in $PATH 3754do 3755 IFS=$as_save_IFS 3756 test -z "$as_dir" && as_dir=. 3757 for ac_exec_ext in '' $ac_executable_extensions; do 3758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3759 ac_cv_prog_ac_ct_CC="gcc" 3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3761 break 2 3762 fi 3763done 3764 done 3765IFS=$as_save_IFS 3766 3767fi 3768fi 3769ac_ct_CC=$ac_cv_prog_ac_ct_CC 3770if test -n "$ac_ct_CC"; then 3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3772$as_echo "$ac_ct_CC" >&6; } 3773else 3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3775$as_echo "no" >&6; } 3776fi 3777 3778 if test "x$ac_ct_CC" = x; then 3779 CC="" 3780 else 3781 case $cross_compiling:$ac_tool_warned in 3782yes:) 3783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3785ac_tool_warned=yes ;; 3786esac 3787 CC=$ac_ct_CC 3788 fi 3789else 3790 CC="$ac_cv_prog_CC" 3791fi 3792 3793if test -z "$CC"; then 3794 if test -n "$ac_tool_prefix"; then 3795 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3796set dummy ${ac_tool_prefix}cc; ac_word=$2 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3798$as_echo_n "checking for $ac_word... " >&6; } 3799if ${ac_cv_prog_CC+:} false; then : 3800 $as_echo_n "(cached) " >&6 3801else 3802 if test -n "$CC"; then 3803 ac_cv_prog_CC="$CC" # Let the user override the test. 3804else 3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3806for as_dir in $PATH 3807do 3808 IFS=$as_save_IFS 3809 test -z "$as_dir" && as_dir=. 3810 for ac_exec_ext in '' $ac_executable_extensions; do 3811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3812 ac_cv_prog_CC="${ac_tool_prefix}cc" 3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3814 break 2 3815 fi 3816done 3817 done 3818IFS=$as_save_IFS 3819 3820fi 3821fi 3822CC=$ac_cv_prog_CC 3823if test -n "$CC"; then 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3825$as_echo "$CC" >&6; } 3826else 3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3828$as_echo "no" >&6; } 3829fi 3830 3831 3832 fi 3833fi 3834if test -z "$CC"; then 3835 # Extract the first word of "cc", so it can be a program name with args. 3836set dummy cc; ac_word=$2 3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3838$as_echo_n "checking for $ac_word... " >&6; } 3839if ${ac_cv_prog_CC+:} false; then : 3840 $as_echo_n "(cached) " >&6 3841else 3842 if test -n "$CC"; then 3843 ac_cv_prog_CC="$CC" # Let the user override the test. 3844else 3845 ac_prog_rejected=no 3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3847for as_dir in $PATH 3848do 3849 IFS=$as_save_IFS 3850 test -z "$as_dir" && as_dir=. 3851 for ac_exec_ext in '' $ac_executable_extensions; do 3852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3853 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3854 ac_prog_rejected=yes 3855 continue 3856 fi 3857 ac_cv_prog_CC="cc" 3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3859 break 2 3860 fi 3861done 3862 done 3863IFS=$as_save_IFS 3864 3865if test $ac_prog_rejected = yes; then 3866 # We found a bogon in the path, so make sure we never use it. 3867 set dummy $ac_cv_prog_CC 3868 shift 3869 if test $# != 0; then 3870 # We chose a different compiler from the bogus one. 3871 # However, it has the same basename, so the bogon will be chosen 3872 # first if we set CC to just the basename; use the full file name. 3873 shift 3874 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3875 fi 3876fi 3877fi 3878fi 3879CC=$ac_cv_prog_CC 3880if test -n "$CC"; then 3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3882$as_echo "$CC" >&6; } 3883else 3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3885$as_echo "no" >&6; } 3886fi 3887 3888 3889fi 3890if test -z "$CC"; then 3891 if test -n "$ac_tool_prefix"; then 3892 for ac_prog in cl.exe 3893 do 3894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3895set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3897$as_echo_n "checking for $ac_word... " >&6; } 3898if ${ac_cv_prog_CC+:} false; then : 3899 $as_echo_n "(cached) " >&6 3900else 3901 if test -n "$CC"; then 3902 ac_cv_prog_CC="$CC" # Let the user override the test. 3903else 3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3905for as_dir in $PATH 3906do 3907 IFS=$as_save_IFS 3908 test -z "$as_dir" && as_dir=. 3909 for ac_exec_ext in '' $ac_executable_extensions; do 3910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3911 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3913 break 2 3914 fi 3915done 3916 done 3917IFS=$as_save_IFS 3918 3919fi 3920fi 3921CC=$ac_cv_prog_CC 3922if test -n "$CC"; then 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3924$as_echo "$CC" >&6; } 3925else 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3927$as_echo "no" >&6; } 3928fi 3929 3930 3931 test -n "$CC" && break 3932 done 3933fi 3934if test -z "$CC"; then 3935 ac_ct_CC=$CC 3936 for ac_prog in cl.exe 3937do 3938 # Extract the first word of "$ac_prog", so it can be a program name with args. 3939set dummy $ac_prog; ac_word=$2 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3941$as_echo_n "checking for $ac_word... " >&6; } 3942if ${ac_cv_prog_ac_ct_CC+:} false; then : 3943 $as_echo_n "(cached) " >&6 3944else 3945 if test -n "$ac_ct_CC"; then 3946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3947else 3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3949for as_dir in $PATH 3950do 3951 IFS=$as_save_IFS 3952 test -z "$as_dir" && as_dir=. 3953 for ac_exec_ext in '' $ac_executable_extensions; do 3954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3955 ac_cv_prog_ac_ct_CC="$ac_prog" 3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3957 break 2 3958 fi 3959done 3960 done 3961IFS=$as_save_IFS 3962 3963fi 3964fi 3965ac_ct_CC=$ac_cv_prog_ac_ct_CC 3966if test -n "$ac_ct_CC"; then 3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3968$as_echo "$ac_ct_CC" >&6; } 3969else 3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3971$as_echo "no" >&6; } 3972fi 3973 3974 3975 test -n "$ac_ct_CC" && break 3976done 3977 3978 if test "x$ac_ct_CC" = x; then 3979 CC="" 3980 else 3981 case $cross_compiling:$ac_tool_warned in 3982yes:) 3983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3985ac_tool_warned=yes ;; 3986esac 3987 CC=$ac_ct_CC 3988 fi 3989fi 3990 3991fi 3992 3993 3994test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3996as_fn_error $? "no acceptable C compiler found in \$PATH 3997See \`config.log' for more details" "$LINENO" 5; } 3998 3999# Provide some information about the compiler. 4000$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4001set X $ac_compile 4002ac_compiler=$2 4003for ac_option in --version -v -V -qversion; do 4004 { { ac_try="$ac_compiler $ac_option >&5" 4005case "(($ac_try" in 4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4007 *) ac_try_echo=$ac_try;; 4008esac 4009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4010$as_echo "$ac_try_echo"; } >&5 4011 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4012 ac_status=$? 4013 if test -s conftest.err; then 4014 sed '10a\ 4015... rest of stderr output deleted ... 4016 10q' conftest.err >conftest.er1 4017 cat conftest.er1 >&5 4018 fi 4019 rm -f conftest.er1 conftest.err 4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4021 test $ac_status = 0; } 4022done 4023 4024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4025/* end confdefs.h. */ 4026 4027int 4028main () 4029{ 4030 4031 ; 4032 return 0; 4033} 4034_ACEOF 4035ac_clean_files_save=$ac_clean_files 4036ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4037# Try to create an executable without -o first, disregard a.out. 4038# It will help us diagnose broken compilers, and finding out an intuition 4039# of exeext. 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4041$as_echo_n "checking whether the C compiler works... " >&6; } 4042ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4043 4044# The possible output files: 4045ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4046 4047ac_rmfiles= 4048for ac_file in $ac_files 4049do 4050 case $ac_file in 4051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4052 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4053 esac 4054done 4055rm -f $ac_rmfiles 4056 4057if { { ac_try="$ac_link_default" 4058case "(($ac_try" in 4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4060 *) ac_try_echo=$ac_try;; 4061esac 4062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4063$as_echo "$ac_try_echo"; } >&5 4064 (eval "$ac_link_default") 2>&5 4065 ac_status=$? 4066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4067 test $ac_status = 0; }; then : 4068 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4069# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4070# in a Makefile. We should not override ac_cv_exeext if it was cached, 4071# so that the user can short-circuit this test for compilers unknown to 4072# Autoconf. 4073for ac_file in $ac_files '' 4074do 4075 test -f "$ac_file" || continue 4076 case $ac_file in 4077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4078 ;; 4079 [ab].out ) 4080 # We found the default executable, but exeext='' is most 4081 # certainly right. 4082 break;; 4083 *.* ) 4084 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4085 then :; else 4086 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4087 fi 4088 # We set ac_cv_exeext here because the later test for it is not 4089 # safe: cross compilers may not add the suffix if given an `-o' 4090 # argument, so we may need to know it at that point already. 4091 # Even if this section looks crufty: it has the advantage of 4092 # actually working. 4093 break;; 4094 * ) 4095 break;; 4096 esac 4097done 4098test "$ac_cv_exeext" = no && ac_cv_exeext= 4099 4100else 4101 ac_file='' 4102fi 4103if test -z "$ac_file"; then : 4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4105$as_echo "no" >&6; } 4106$as_echo "$as_me: failed program was:" >&5 4107sed 's/^/| /' conftest.$ac_ext >&5 4108 4109{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4111as_fn_error 77 "C compiler cannot create executables 4112See \`config.log' for more details" "$LINENO" 5; } 4113else 4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4115$as_echo "yes" >&6; } 4116fi 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4118$as_echo_n "checking for C compiler default output file name... " >&6; } 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4120$as_echo "$ac_file" >&6; } 4121ac_exeext=$ac_cv_exeext 4122 4123rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4124ac_clean_files=$ac_clean_files_save 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4126$as_echo_n "checking for suffix of executables... " >&6; } 4127if { { ac_try="$ac_link" 4128case "(($ac_try" in 4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4130 *) ac_try_echo=$ac_try;; 4131esac 4132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4133$as_echo "$ac_try_echo"; } >&5 4134 (eval "$ac_link") 2>&5 4135 ac_status=$? 4136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4137 test $ac_status = 0; }; then : 4138 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4139# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4140# work properly (i.e., refer to `conftest.exe'), while it won't with 4141# `rm'. 4142for ac_file in conftest.exe conftest conftest.*; do 4143 test -f "$ac_file" || continue 4144 case $ac_file in 4145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4146 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4147 break;; 4148 * ) break;; 4149 esac 4150done 4151else 4152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4154as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4155See \`config.log' for more details" "$LINENO" 5; } 4156fi 4157rm -f conftest conftest$ac_cv_exeext 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4159$as_echo "$ac_cv_exeext" >&6; } 4160 4161rm -f conftest.$ac_ext 4162EXEEXT=$ac_cv_exeext 4163ac_exeext=$EXEEXT 4164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4165/* end confdefs.h. */ 4166#include <stdio.h> 4167int 4168main () 4169{ 4170FILE *f = fopen ("conftest.out", "w"); 4171 return ferror (f) || fclose (f) != 0; 4172 4173 ; 4174 return 0; 4175} 4176_ACEOF 4177ac_clean_files="$ac_clean_files conftest.out" 4178# Check that the compiler produces executables we can run. If not, either 4179# the compiler is broken, or we cross compile. 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4181$as_echo_n "checking whether we are cross compiling... " >&6; } 4182if test "$cross_compiling" != yes; then 4183 { { ac_try="$ac_link" 4184case "(($ac_try" in 4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4186 *) ac_try_echo=$ac_try;; 4187esac 4188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4189$as_echo "$ac_try_echo"; } >&5 4190 (eval "$ac_link") 2>&5 4191 ac_status=$? 4192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4193 test $ac_status = 0; } 4194 if { ac_try='./conftest$ac_cv_exeext' 4195 { { case "(($ac_try" in 4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4197 *) ac_try_echo=$ac_try;; 4198esac 4199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4200$as_echo "$ac_try_echo"; } >&5 4201 (eval "$ac_try") 2>&5 4202 ac_status=$? 4203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4204 test $ac_status = 0; }; }; then 4205 cross_compiling=no 4206 else 4207 if test "$cross_compiling" = maybe; then 4208 cross_compiling=yes 4209 else 4210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4212as_fn_error $? "cannot run C compiled programs. 4213If you meant to cross compile, use \`--host'. 4214See \`config.log' for more details" "$LINENO" 5; } 4215 fi 4216 fi 4217fi 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4219$as_echo "$cross_compiling" >&6; } 4220 4221rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4222ac_clean_files=$ac_clean_files_save 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4224$as_echo_n "checking for suffix of object files... " >&6; } 4225if ${ac_cv_objext+:} false; then : 4226 $as_echo_n "(cached) " >&6 4227else 4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4229/* end confdefs.h. */ 4230 4231int 4232main () 4233{ 4234 4235 ; 4236 return 0; 4237} 4238_ACEOF 4239rm -f conftest.o conftest.obj 4240if { { ac_try="$ac_compile" 4241case "(($ac_try" in 4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4243 *) ac_try_echo=$ac_try;; 4244esac 4245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4246$as_echo "$ac_try_echo"; } >&5 4247 (eval "$ac_compile") 2>&5 4248 ac_status=$? 4249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4250 test $ac_status = 0; }; then : 4251 for ac_file in conftest.o conftest.obj conftest.*; do 4252 test -f "$ac_file" || continue; 4253 case $ac_file in 4254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4255 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4256 break;; 4257 esac 4258done 4259else 4260 $as_echo "$as_me: failed program was:" >&5 4261sed 's/^/| /' conftest.$ac_ext >&5 4262 4263{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4265as_fn_error $? "cannot compute suffix of object files: cannot compile 4266See \`config.log' for more details" "$LINENO" 5; } 4267fi 4268rm -f conftest.$ac_cv_objext conftest.$ac_ext 4269fi 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4271$as_echo "$ac_cv_objext" >&6; } 4272OBJEXT=$ac_cv_objext 4273ac_objext=$OBJEXT 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4275$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4276if ${ac_cv_c_compiler_gnu+:} false; then : 4277 $as_echo_n "(cached) " >&6 4278else 4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4280/* end confdefs.h. */ 4281 4282int 4283main () 4284{ 4285#ifndef __GNUC__ 4286 choke me 4287#endif 4288 4289 ; 4290 return 0; 4291} 4292_ACEOF 4293if ac_fn_c_try_compile "$LINENO"; then : 4294 ac_compiler_gnu=yes 4295else 4296 ac_compiler_gnu=no 4297fi 4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4299ac_cv_c_compiler_gnu=$ac_compiler_gnu 4300 4301fi 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4303$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4304if test $ac_compiler_gnu = yes; then 4305 GCC=yes 4306else 4307 GCC= 4308fi 4309ac_test_CFLAGS=${CFLAGS+set} 4310ac_save_CFLAGS=$CFLAGS 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4312$as_echo_n "checking whether $CC accepts -g... " >&6; } 4313if ${ac_cv_prog_cc_g+:} false; then : 4314 $as_echo_n "(cached) " >&6 4315else 4316 ac_save_c_werror_flag=$ac_c_werror_flag 4317 ac_c_werror_flag=yes 4318 ac_cv_prog_cc_g=no 4319 CFLAGS="-g" 4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4321/* end confdefs.h. */ 4322 4323int 4324main () 4325{ 4326 4327 ; 4328 return 0; 4329} 4330_ACEOF 4331if ac_fn_c_try_compile "$LINENO"; then : 4332 ac_cv_prog_cc_g=yes 4333else 4334 CFLAGS="" 4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4336/* end confdefs.h. */ 4337 4338int 4339main () 4340{ 4341 4342 ; 4343 return 0; 4344} 4345_ACEOF 4346if ac_fn_c_try_compile "$LINENO"; then : 4347 4348else 4349 ac_c_werror_flag=$ac_save_c_werror_flag 4350 CFLAGS="-g" 4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4352/* end confdefs.h. */ 4353 4354int 4355main () 4356{ 4357 4358 ; 4359 return 0; 4360} 4361_ACEOF 4362if ac_fn_c_try_compile "$LINENO"; then : 4363 ac_cv_prog_cc_g=yes 4364fi 4365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4366fi 4367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4368fi 4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4370 ac_c_werror_flag=$ac_save_c_werror_flag 4371fi 4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4373$as_echo "$ac_cv_prog_cc_g" >&6; } 4374if test "$ac_test_CFLAGS" = set; then 4375 CFLAGS=$ac_save_CFLAGS 4376elif test $ac_cv_prog_cc_g = yes; then 4377 if test "$GCC" = yes; then 4378 CFLAGS="-g -O2" 4379 else 4380 CFLAGS="-g" 4381 fi 4382else 4383 if test "$GCC" = yes; then 4384 CFLAGS="-O2" 4385 else 4386 CFLAGS= 4387 fi 4388fi 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4390$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4391if ${ac_cv_prog_cc_c89+:} false; then : 4392 $as_echo_n "(cached) " >&6 4393else 4394 ac_cv_prog_cc_c89=no 4395ac_save_CC=$CC 4396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4397/* end confdefs.h. */ 4398#include <stdarg.h> 4399#include <stdio.h> 4400struct stat; 4401/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4402struct buf { int x; }; 4403FILE * (*rcsopen) (struct buf *, struct stat *, int); 4404static char *e (p, i) 4405 char **p; 4406 int i; 4407{ 4408 return p[i]; 4409} 4410static char *f (char * (*g) (char **, int), char **p, ...) 4411{ 4412 char *s; 4413 va_list v; 4414 va_start (v,p); 4415 s = g (p, va_arg (v,int)); 4416 va_end (v); 4417 return s; 4418} 4419 4420/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4421 function prototypes and stuff, but not '\xHH' hex character constants. 4422 These don't provoke an error unfortunately, instead are silently treated 4423 as 'x'. The following induces an error, until -std is added to get 4424 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4425 array size at least. It's necessary to write '\x00'==0 to get something 4426 that's true only with -std. */ 4427int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4428 4429/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4430 inside strings and character constants. */ 4431#define FOO(x) 'x' 4432int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4433 4434int test (int i, double x); 4435struct s1 {int (*f) (int a);}; 4436struct s2 {int (*f) (double a);}; 4437int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4438int argc; 4439char **argv; 4440int 4441main () 4442{ 4443return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4444 ; 4445 return 0; 4446} 4447_ACEOF 4448for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4449 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4450do 4451 CC="$ac_save_CC $ac_arg" 4452 if ac_fn_c_try_compile "$LINENO"; then : 4453 ac_cv_prog_cc_c89=$ac_arg 4454fi 4455rm -f core conftest.err conftest.$ac_objext 4456 test "x$ac_cv_prog_cc_c89" != "xno" && break 4457done 4458rm -f conftest.$ac_ext 4459CC=$ac_save_CC 4460 4461fi 4462# AC_CACHE_VAL 4463case "x$ac_cv_prog_cc_c89" in 4464 x) 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4466$as_echo "none needed" >&6; } ;; 4467 xno) 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4469$as_echo "unsupported" >&6; } ;; 4470 *) 4471 CC="$CC $ac_cv_prog_cc_c89" 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4473$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4474esac 4475if test "x$ac_cv_prog_cc_c89" != xno; then : 4476 4477fi 4478 4479ac_ext=c 4480ac_cpp='$CPP $CPPFLAGS' 4481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4483ac_compiler_gnu=$ac_cv_c_compiler_gnu 4484 4485ac_ext=c 4486ac_cpp='$CPP $CPPFLAGS' 4487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4489ac_compiler_gnu=$ac_cv_c_compiler_gnu 4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4491$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4492if ${am_cv_prog_cc_c_o+:} false; then : 4493 $as_echo_n "(cached) " >&6 4494else 4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4496/* end confdefs.h. */ 4497 4498int 4499main () 4500{ 4501 4502 ; 4503 return 0; 4504} 4505_ACEOF 4506 # Make sure it works both with $CC and with simple cc. 4507 # Following AC_PROG_CC_C_O, we do the test twice because some 4508 # compilers refuse to overwrite an existing .o file with -o, 4509 # though they will create one. 4510 am_cv_prog_cc_c_o=yes 4511 for am_i in 1 2; do 4512 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4513 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4514 ac_status=$? 4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4516 (exit $ac_status); } \ 4517 && test -f conftest2.$ac_objext; then 4518 : OK 4519 else 4520 am_cv_prog_cc_c_o=no 4521 break 4522 fi 4523 done 4524 rm -f core conftest* 4525 unset am_i 4526fi 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4528$as_echo "$am_cv_prog_cc_c_o" >&6; } 4529if test "$am_cv_prog_cc_c_o" != yes; then 4530 # Losing compiler, so override with the script. 4531 # FIXME: It is wrong to rewrite CC. 4532 # But if we don't then we get into trouble of one sort or another. 4533 # A longer-term fix would be to have automake use am__CC in this case, 4534 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4535 CC="$am_aux_dir/compile $CC" 4536fi 4537ac_ext=c 4538ac_cpp='$CPP $CPPFLAGS' 4539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4541ac_compiler_gnu=$ac_cv_c_compiler_gnu 4542 4543 4544depcc="$CC" am_compiler_list= 4545 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4547$as_echo_n "checking dependency style of $depcc... " >&6; } 4548if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4552 # We make a subdir and do the tests there. Otherwise we can end up 4553 # making bogus files that we don't know about and never remove. For 4554 # instance it was reported that on HP-UX the gcc test will end up 4555 # making a dummy file named 'D' -- because '-MD' means "put the output 4556 # in D". 4557 rm -rf conftest.dir 4558 mkdir conftest.dir 4559 # Copy depcomp to subdir because otherwise we won't find it if we're 4560 # using a relative directory. 4561 cp "$am_depcomp" conftest.dir 4562 cd conftest.dir 4563 # We will build objects and dependencies in a subdirectory because 4564 # it helps to detect inapplicable dependency modes. For instance 4565 # both Tru64's cc and ICC support -MD to output dependencies as a 4566 # side effect of compilation, but ICC will put the dependencies in 4567 # the current directory while Tru64 will put them in the object 4568 # directory. 4569 mkdir sub 4570 4571 am_cv_CC_dependencies_compiler_type=none 4572 if test "$am_compiler_list" = ""; then 4573 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4574 fi 4575 am__universal=false 4576 case " $depcc " in #( 4577 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4578 esac 4579 4580 for depmode in $am_compiler_list; do 4581 # Setup a source with many dependencies, because some compilers 4582 # like to wrap large dependency lists on column 80 (with \), and 4583 # we should not choose a depcomp mode which is confused by this. 4584 # 4585 # We need to recreate these files for each test, as the compiler may 4586 # overwrite some of them when testing with obscure command lines. 4587 # This happens at least with the AIX C compiler. 4588 : > sub/conftest.c 4589 for i in 1 2 3 4 5 6; do 4590 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4591 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4592 # Solaris 10 /bin/sh. 4593 echo '/* dummy */' > sub/conftst$i.h 4594 done 4595 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4596 4597 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4598 # mode. It turns out that the SunPro C++ compiler does not properly 4599 # handle '-M -o', and we need to detect this. Also, some Intel 4600 # versions had trouble with output in subdirs. 4601 am__obj=sub/conftest.${OBJEXT-o} 4602 am__minus_obj="-o $am__obj" 4603 case $depmode in 4604 gcc) 4605 # This depmode causes a compiler race in universal mode. 4606 test "$am__universal" = false || continue 4607 ;; 4608 nosideeffect) 4609 # After this tag, mechanisms are not by side-effect, so they'll 4610 # only be used when explicitly requested. 4611 if test "x$enable_dependency_tracking" = xyes; then 4612 continue 4613 else 4614 break 4615 fi 4616 ;; 4617 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4618 # This compiler won't grok '-c -o', but also, the minuso test has 4619 # not run yet. These depmodes are late enough in the game, and 4620 # so weak that their functioning should not be impacted. 4621 am__obj=conftest.${OBJEXT-o} 4622 am__minus_obj= 4623 ;; 4624 none) break ;; 4625 esac 4626 if depmode=$depmode \ 4627 source=sub/conftest.c object=$am__obj \ 4628 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4629 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4630 >/dev/null 2>conftest.err && 4631 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4632 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4633 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4634 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4635 # icc doesn't choke on unknown options, it will just issue warnings 4636 # or remarks (even with -Werror). So we grep stderr for any message 4637 # that says an option was ignored or not supported. 4638 # When given -MP, icc 7.0 and 7.1 complain thusly: 4639 # icc: Command line warning: ignoring option '-M'; no argument required 4640 # The diagnosis changed in icc 8.0: 4641 # icc: Command line remark: option '-MP' not supported 4642 if (grep 'ignoring option' conftest.err || 4643 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4644 am_cv_CC_dependencies_compiler_type=$depmode 4645 break 4646 fi 4647 fi 4648 done 4649 4650 cd .. 4651 rm -rf conftest.dir 4652else 4653 am_cv_CC_dependencies_compiler_type=none 4654fi 4655 4656fi 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4658$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4659CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4660 4661 if 4662 test "x$enable_dependency_tracking" != xno \ 4663 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4664 am__fastdepCC_TRUE= 4665 am__fastdepCC_FALSE='#' 4666else 4667 am__fastdepCC_TRUE='#' 4668 am__fastdepCC_FALSE= 4669fi 4670 4671 4672 4673ac_ext=c 4674ac_cpp='$CPP $CPPFLAGS' 4675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4677ac_compiler_gnu=$ac_cv_c_compiler_gnu 4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4679$as_echo_n "checking how to run the C preprocessor... " >&6; } 4680# On Suns, sometimes $CPP names a directory. 4681if test -n "$CPP" && test -d "$CPP"; then 4682 CPP= 4683fi 4684if test -z "$CPP"; then 4685 if ${ac_cv_prog_CPP+:} false; then : 4686 $as_echo_n "(cached) " >&6 4687else 4688 # Double quotes because CPP needs to be expanded 4689 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4690 do 4691 ac_preproc_ok=false 4692for ac_c_preproc_warn_flag in '' yes 4693do 4694 # Use a header file that comes with gcc, so configuring glibc 4695 # with a fresh cross-compiler works. 4696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4697 # <limits.h> exists even on freestanding compilers. 4698 # On the NeXT, cc -E runs the code through the compiler's parser, 4699 # not just through cpp. "Syntax error" is here to catch this case. 4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701/* end confdefs.h. */ 4702#ifdef __STDC__ 4703# include <limits.h> 4704#else 4705# include <assert.h> 4706#endif 4707 Syntax error 4708_ACEOF 4709if ac_fn_c_try_cpp "$LINENO"; then : 4710 4711else 4712 # Broken: fails on valid input. 4713continue 4714fi 4715rm -f conftest.err conftest.i conftest.$ac_ext 4716 4717 # OK, works on sane cases. Now check whether nonexistent headers 4718 # can be detected and how. 4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4720/* end confdefs.h. */ 4721#include <ac_nonexistent.h> 4722_ACEOF 4723if ac_fn_c_try_cpp "$LINENO"; then : 4724 # Broken: success on invalid input. 4725continue 4726else 4727 # Passes both tests. 4728ac_preproc_ok=: 4729break 4730fi 4731rm -f conftest.err conftest.i conftest.$ac_ext 4732 4733done 4734# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4735rm -f conftest.i conftest.err conftest.$ac_ext 4736if $ac_preproc_ok; then : 4737 break 4738fi 4739 4740 done 4741 ac_cv_prog_CPP=$CPP 4742 4743fi 4744 CPP=$ac_cv_prog_CPP 4745else 4746 ac_cv_prog_CPP=$CPP 4747fi 4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4749$as_echo "$CPP" >&6; } 4750ac_preproc_ok=false 4751for ac_c_preproc_warn_flag in '' yes 4752do 4753 # Use a header file that comes with gcc, so configuring glibc 4754 # with a fresh cross-compiler works. 4755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4756 # <limits.h> exists even on freestanding compilers. 4757 # On the NeXT, cc -E runs the code through the compiler's parser, 4758 # not just through cpp. "Syntax error" is here to catch this case. 4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4760/* end confdefs.h. */ 4761#ifdef __STDC__ 4762# include <limits.h> 4763#else 4764# include <assert.h> 4765#endif 4766 Syntax error 4767_ACEOF 4768if ac_fn_c_try_cpp "$LINENO"; then : 4769 4770else 4771 # Broken: fails on valid input. 4772continue 4773fi 4774rm -f conftest.err conftest.i conftest.$ac_ext 4775 4776 # OK, works on sane cases. Now check whether nonexistent headers 4777 # can be detected and how. 4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4779/* end confdefs.h. */ 4780#include <ac_nonexistent.h> 4781_ACEOF 4782if ac_fn_c_try_cpp "$LINENO"; then : 4783 # Broken: success on invalid input. 4784continue 4785else 4786 # Passes both tests. 4787ac_preproc_ok=: 4788break 4789fi 4790rm -f conftest.err conftest.i conftest.$ac_ext 4791 4792done 4793# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4794rm -f conftest.i conftest.err conftest.$ac_ext 4795if $ac_preproc_ok; then : 4796 4797else 4798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4800as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4801See \`config.log' for more details" "$LINENO" 5; } 4802fi 4803 4804ac_ext=c 4805ac_cpp='$CPP $CPPFLAGS' 4806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4808ac_compiler_gnu=$ac_cv_c_compiler_gnu 4809 4810 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4812$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4813if ${ac_cv_path_GREP+:} false; then : 4814 $as_echo_n "(cached) " >&6 4815else 4816 if test -z "$GREP"; then 4817 ac_path_GREP_found=false 4818 # Loop through the user's path and test for each of PROGNAME-LIST 4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4820for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4821do 4822 IFS=$as_save_IFS 4823 test -z "$as_dir" && as_dir=. 4824 for ac_prog in grep ggrep; do 4825 for ac_exec_ext in '' $ac_executable_extensions; do 4826 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4827 as_fn_executable_p "$ac_path_GREP" || continue 4828# Check for GNU ac_path_GREP and select it if it is found. 4829 # Check for GNU $ac_path_GREP 4830case `"$ac_path_GREP" --version 2>&1` in 4831*GNU*) 4832 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4833*) 4834 ac_count=0 4835 $as_echo_n 0123456789 >"conftest.in" 4836 while : 4837 do 4838 cat "conftest.in" "conftest.in" >"conftest.tmp" 4839 mv "conftest.tmp" "conftest.in" 4840 cp "conftest.in" "conftest.nl" 4841 $as_echo 'GREP' >> "conftest.nl" 4842 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4844 as_fn_arith $ac_count + 1 && ac_count=$as_val 4845 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4846 # Best one so far, save it but keep looking for a better one 4847 ac_cv_path_GREP="$ac_path_GREP" 4848 ac_path_GREP_max=$ac_count 4849 fi 4850 # 10*(2^10) chars as input seems more than enough 4851 test $ac_count -gt 10 && break 4852 done 4853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4854esac 4855 4856 $ac_path_GREP_found && break 3 4857 done 4858 done 4859 done 4860IFS=$as_save_IFS 4861 if test -z "$ac_cv_path_GREP"; then 4862 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4863 fi 4864else 4865 ac_cv_path_GREP=$GREP 4866fi 4867 4868fi 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4870$as_echo "$ac_cv_path_GREP" >&6; } 4871 GREP="$ac_cv_path_GREP" 4872 4873 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4875$as_echo_n "checking for egrep... " >&6; } 4876if ${ac_cv_path_EGREP+:} false; then : 4877 $as_echo_n "(cached) " >&6 4878else 4879 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4880 then ac_cv_path_EGREP="$GREP -E" 4881 else 4882 if test -z "$EGREP"; then 4883 ac_path_EGREP_found=false 4884 # Loop through the user's path and test for each of PROGNAME-LIST 4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4886for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4887do 4888 IFS=$as_save_IFS 4889 test -z "$as_dir" && as_dir=. 4890 for ac_prog in egrep; do 4891 for ac_exec_ext in '' $ac_executable_extensions; do 4892 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4893 as_fn_executable_p "$ac_path_EGREP" || continue 4894# Check for GNU ac_path_EGREP and select it if it is found. 4895 # Check for GNU $ac_path_EGREP 4896case `"$ac_path_EGREP" --version 2>&1` in 4897*GNU*) 4898 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4899*) 4900 ac_count=0 4901 $as_echo_n 0123456789 >"conftest.in" 4902 while : 4903 do 4904 cat "conftest.in" "conftest.in" >"conftest.tmp" 4905 mv "conftest.tmp" "conftest.in" 4906 cp "conftest.in" "conftest.nl" 4907 $as_echo 'EGREP' >> "conftest.nl" 4908 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4910 as_fn_arith $ac_count + 1 && ac_count=$as_val 4911 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4912 # Best one so far, save it but keep looking for a better one 4913 ac_cv_path_EGREP="$ac_path_EGREP" 4914 ac_path_EGREP_max=$ac_count 4915 fi 4916 # 10*(2^10) chars as input seems more than enough 4917 test $ac_count -gt 10 && break 4918 done 4919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4920esac 4921 4922 $ac_path_EGREP_found && break 3 4923 done 4924 done 4925 done 4926IFS=$as_save_IFS 4927 if test -z "$ac_cv_path_EGREP"; then 4928 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4929 fi 4930else 4931 ac_cv_path_EGREP=$EGREP 4932fi 4933 4934 fi 4935fi 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4937$as_echo "$ac_cv_path_EGREP" >&6; } 4938 EGREP="$ac_cv_path_EGREP" 4939 4940 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4942$as_echo_n "checking for ANSI C header files... " >&6; } 4943if ${ac_cv_header_stdc+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4947/* end confdefs.h. */ 4948#include <stdlib.h> 4949#include <stdarg.h> 4950#include <string.h> 4951#include <float.h> 4952 4953int 4954main () 4955{ 4956 4957 ; 4958 return 0; 4959} 4960_ACEOF 4961if ac_fn_c_try_compile "$LINENO"; then : 4962 ac_cv_header_stdc=yes 4963else 4964 ac_cv_header_stdc=no 4965fi 4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4967 4968if test $ac_cv_header_stdc = yes; then 4969 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4971/* end confdefs.h. */ 4972#include <string.h> 4973 4974_ACEOF 4975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4976 $EGREP "memchr" >/dev/null 2>&1; then : 4977 4978else 4979 ac_cv_header_stdc=no 4980fi 4981rm -f conftest* 4982 4983fi 4984 4985if test $ac_cv_header_stdc = yes; then 4986 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4988/* end confdefs.h. */ 4989#include <stdlib.h> 4990 4991_ACEOF 4992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4993 $EGREP "free" >/dev/null 2>&1; then : 4994 4995else 4996 ac_cv_header_stdc=no 4997fi 4998rm -f conftest* 4999 5000fi 5001 5002if test $ac_cv_header_stdc = yes; then 5003 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5004 if test "$cross_compiling" = yes; then : 5005 : 5006else 5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5008/* end confdefs.h. */ 5009#include <ctype.h> 5010#include <stdlib.h> 5011#if ((' ' & 0x0FF) == 0x020) 5012# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5013# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5014#else 5015# define ISLOWER(c) \ 5016 (('a' <= (c) && (c) <= 'i') \ 5017 || ('j' <= (c) && (c) <= 'r') \ 5018 || ('s' <= (c) && (c) <= 'z')) 5019# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5020#endif 5021 5022#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5023int 5024main () 5025{ 5026 int i; 5027 for (i = 0; i < 256; i++) 5028 if (XOR (islower (i), ISLOWER (i)) 5029 || toupper (i) != TOUPPER (i)) 5030 return 2; 5031 return 0; 5032} 5033_ACEOF 5034if ac_fn_c_try_run "$LINENO"; then : 5035 5036else 5037 ac_cv_header_stdc=no 5038fi 5039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5040 conftest.$ac_objext conftest.beam conftest.$ac_ext 5041fi 5042 5043fi 5044fi 5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5046$as_echo "$ac_cv_header_stdc" >&6; } 5047if test $ac_cv_header_stdc = yes; then 5048 5049$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5050 5051fi 5052 5053# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5054for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5055 inttypes.h stdint.h unistd.h 5056do : 5057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5058ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5059" 5060if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5061 cat >>confdefs.h <<_ACEOF 5062#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5063_ACEOF 5064 5065fi 5066 5067done 5068 5069 5070ac_fn_c_check_decl "$LINENO" "_WIN32" "ac_cv_have_decl__WIN32" "$ac_includes_default" 5071if test "x$ac_cv_have_decl__WIN32" = xyes; then : 5072 poly_native_windows=yes 5073else 5074 poly_native_windows=no 5075fi 5076 5077 5078# If we are building on cygwin or mingw we need to give the -no-defined flag to 5079# build a DLL. We also have to use Windows calling conventions rather than 5080# SysV on 64-bit. 5081poly_use_windowscc=no 5082poly_need_macosopt=no 5083case "${host_os}" in 5084 darwin*) 5085 OSFLAG=-DMACOSX 5086 5087 poly_need_macosopt=yes 5088 ;; 5089 sunos* | solaris*) 5090 OSFLAG=-DSOLARIS 5091 5092 ;; 5093 *mingw* | *cygwin*) 5094 poly_no_undefined=yes 5095 poly_use_windowscc=yes 5096 ;; 5097esac 5098 5099# libpolyml can be a DLL but libpolymain can't. 5100# Enable shared libraries by default. It complicates installation a bit if the 5101# the library is installed to a non-standard location but simplifies polyc. 5102case `pwd` in 5103 *\ * | *\ *) 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5105$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5106esac 5107 5108 5109 5110macro_version='2.4.6' 5111macro_revision='2.4.6' 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125ltmain=$ac_aux_dir/ltmain.sh 5126 5127# Backslashify metacharacters that are still active within 5128# double-quoted strings. 5129sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5130 5131# Same as above, but do not quote variable references. 5132double_quote_subst='s/\(["`\\]\)/\\\1/g' 5133 5134# Sed substitution to delay expansion of an escaped shell variable in a 5135# double_quote_subst'ed string. 5136delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5137 5138# Sed substitution to delay expansion of an escaped single quote. 5139delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5140 5141# Sed substitution to avoid accidental globbing in evaled expressions 5142no_glob_subst='s/\*/\\\*/g' 5143 5144ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5145ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5146ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5147 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5149$as_echo_n "checking how to print strings... " >&6; } 5150# Test print first, because it will be a builtin if present. 5151if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5152 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5153 ECHO='print -r --' 5154elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5155 ECHO='printf %s\n' 5156else 5157 # Use this function as a fallback that always works. 5158 func_fallback_echo () 5159 { 5160 eval 'cat <<_LTECHO_EOF 5161$1 5162_LTECHO_EOF' 5163 } 5164 ECHO='func_fallback_echo' 5165fi 5166 5167# func_echo_all arg... 5168# Invoke $ECHO with all args, space-separated. 5169func_echo_all () 5170{ 5171 $ECHO "" 5172} 5173 5174case $ECHO in 5175 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5176$as_echo "printf" >&6; } ;; 5177 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5178$as_echo "print -r" >&6; } ;; 5179 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5180$as_echo "cat" >&6; } ;; 5181esac 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5197$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5198if ${ac_cv_path_SED+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5202 for ac_i in 1 2 3 4 5 6 7; do 5203 ac_script="$ac_script$as_nl$ac_script" 5204 done 5205 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5206 { ac_script=; unset ac_script;} 5207 if test -z "$SED"; then 5208 ac_path_SED_found=false 5209 # Loop through the user's path and test for each of PROGNAME-LIST 5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5211for as_dir in $PATH 5212do 5213 IFS=$as_save_IFS 5214 test -z "$as_dir" && as_dir=. 5215 for ac_prog in sed gsed; do 5216 for ac_exec_ext in '' $ac_executable_extensions; do 5217 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5218 as_fn_executable_p "$ac_path_SED" || continue 5219# Check for GNU ac_path_SED and select it if it is found. 5220 # Check for GNU $ac_path_SED 5221case `"$ac_path_SED" --version 2>&1` in 5222*GNU*) 5223 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5224*) 5225 ac_count=0 5226 $as_echo_n 0123456789 >"conftest.in" 5227 while : 5228 do 5229 cat "conftest.in" "conftest.in" >"conftest.tmp" 5230 mv "conftest.tmp" "conftest.in" 5231 cp "conftest.in" "conftest.nl" 5232 $as_echo '' >> "conftest.nl" 5233 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5235 as_fn_arith $ac_count + 1 && ac_count=$as_val 5236 if test $ac_count -gt ${ac_path_SED_max-0}; then 5237 # Best one so far, save it but keep looking for a better one 5238 ac_cv_path_SED="$ac_path_SED" 5239 ac_path_SED_max=$ac_count 5240 fi 5241 # 10*(2^10) chars as input seems more than enough 5242 test $ac_count -gt 10 && break 5243 done 5244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5245esac 5246 5247 $ac_path_SED_found && break 3 5248 done 5249 done 5250 done 5251IFS=$as_save_IFS 5252 if test -z "$ac_cv_path_SED"; then 5253 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5254 fi 5255else 5256 ac_cv_path_SED=$SED 5257fi 5258 5259fi 5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5261$as_echo "$ac_cv_path_SED" >&6; } 5262 SED="$ac_cv_path_SED" 5263 rm -f conftest.sed 5264 5265test -z "$SED" && SED=sed 5266Xsed="$SED -e 1s/^X//" 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5279$as_echo_n "checking for fgrep... " >&6; } 5280if ${ac_cv_path_FGREP+:} false; then : 5281 $as_echo_n "(cached) " >&6 5282else 5283 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5284 then ac_cv_path_FGREP="$GREP -F" 5285 else 5286 if test -z "$FGREP"; then 5287 ac_path_FGREP_found=false 5288 # Loop through the user's path and test for each of PROGNAME-LIST 5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5290for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5291do 5292 IFS=$as_save_IFS 5293 test -z "$as_dir" && as_dir=. 5294 for ac_prog in fgrep; do 5295 for ac_exec_ext in '' $ac_executable_extensions; do 5296 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5297 as_fn_executable_p "$ac_path_FGREP" || continue 5298# Check for GNU ac_path_FGREP and select it if it is found. 5299 # Check for GNU $ac_path_FGREP 5300case `"$ac_path_FGREP" --version 2>&1` in 5301*GNU*) 5302 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5303*) 5304 ac_count=0 5305 $as_echo_n 0123456789 >"conftest.in" 5306 while : 5307 do 5308 cat "conftest.in" "conftest.in" >"conftest.tmp" 5309 mv "conftest.tmp" "conftest.in" 5310 cp "conftest.in" "conftest.nl" 5311 $as_echo 'FGREP' >> "conftest.nl" 5312 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5314 as_fn_arith $ac_count + 1 && ac_count=$as_val 5315 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5316 # Best one so far, save it but keep looking for a better one 5317 ac_cv_path_FGREP="$ac_path_FGREP" 5318 ac_path_FGREP_max=$ac_count 5319 fi 5320 # 10*(2^10) chars as input seems more than enough 5321 test $ac_count -gt 10 && break 5322 done 5323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5324esac 5325 5326 $ac_path_FGREP_found && break 3 5327 done 5328 done 5329 done 5330IFS=$as_save_IFS 5331 if test -z "$ac_cv_path_FGREP"; then 5332 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5333 fi 5334else 5335 ac_cv_path_FGREP=$FGREP 5336fi 5337 5338 fi 5339fi 5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5341$as_echo "$ac_cv_path_FGREP" >&6; } 5342 FGREP="$ac_cv_path_FGREP" 5343 5344 5345test -z "$GREP" && GREP=grep 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365# Check whether --with-gnu-ld was given. 5366if test "${with_gnu_ld+set}" = set; then : 5367 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5368else 5369 with_gnu_ld=no 5370fi 5371 5372ac_prog=ld 5373if test yes = "$GCC"; then 5374 # Check if gcc -print-prog-name=ld gives a path. 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5376$as_echo_n "checking for ld used by $CC... " >&6; } 5377 case $host in 5378 *-*-mingw*) 5379 # gcc leaves a trailing carriage return, which upsets mingw 5380 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5381 *) 5382 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5383 esac 5384 case $ac_prog in 5385 # Accept absolute paths. 5386 [\\/]* | ?:[\\/]*) 5387 re_direlt='/[^/][^/]*/\.\./' 5388 # Canonicalize the pathname of ld 5389 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5390 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5391 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5392 done 5393 test -z "$LD" && LD=$ac_prog 5394 ;; 5395 "") 5396 # If it fails, then pretend we aren't using GCC. 5397 ac_prog=ld 5398 ;; 5399 *) 5400 # If it is relative, then search for the first ld in PATH. 5401 with_gnu_ld=unknown 5402 ;; 5403 esac 5404elif test yes = "$with_gnu_ld"; then 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5406$as_echo_n "checking for GNU ld... " >&6; } 5407else 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5409$as_echo_n "checking for non-GNU ld... " >&6; } 5410fi 5411if ${lt_cv_path_LD+:} false; then : 5412 $as_echo_n "(cached) " >&6 5413else 5414 if test -z "$LD"; then 5415 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5416 for ac_dir in $PATH; do 5417 IFS=$lt_save_ifs 5418 test -z "$ac_dir" && ac_dir=. 5419 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5420 lt_cv_path_LD=$ac_dir/$ac_prog 5421 # Check to see if the program is GNU ld. I'd rather use --version, 5422 # but apparently some variants of GNU ld only accept -v. 5423 # Break only if it was the GNU/non-GNU ld that we prefer. 5424 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5425 *GNU* | *'with BFD'*) 5426 test no != "$with_gnu_ld" && break 5427 ;; 5428 *) 5429 test yes != "$with_gnu_ld" && break 5430 ;; 5431 esac 5432 fi 5433 done 5434 IFS=$lt_save_ifs 5435else 5436 lt_cv_path_LD=$LD # Let the user override the test with a path. 5437fi 5438fi 5439 5440LD=$lt_cv_path_LD 5441if test -n "$LD"; then 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5443$as_echo "$LD" >&6; } 5444else 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5446$as_echo "no" >&6; } 5447fi 5448test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5450$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5451if ${lt_cv_prog_gnu_ld+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5455case `$LD -v 2>&1 </dev/null` in 5456*GNU* | *'with BFD'*) 5457 lt_cv_prog_gnu_ld=yes 5458 ;; 5459*) 5460 lt_cv_prog_gnu_ld=no 5461 ;; 5462esac 5463fi 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5465$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5466with_gnu_ld=$lt_cv_prog_gnu_ld 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5477$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5478if ${lt_cv_path_NM+:} false; then : 5479 $as_echo_n "(cached) " >&6 5480else 5481 if test -n "$NM"; then 5482 # Let the user override the test. 5483 lt_cv_path_NM=$NM 5484else 5485 lt_nm_to_check=${ac_tool_prefix}nm 5486 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5487 lt_nm_to_check="$lt_nm_to_check nm" 5488 fi 5489 for lt_tmp_nm in $lt_nm_to_check; do 5490 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5491 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5492 IFS=$lt_save_ifs 5493 test -z "$ac_dir" && ac_dir=. 5494 tmp_nm=$ac_dir/$lt_tmp_nm 5495 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5496 # Check to see if the nm accepts a BSD-compat flag. 5497 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5498 # nm: unknown option "B" ignored 5499 # Tru64's nm complains that /dev/null is an invalid object file 5500 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5501 case $build_os in 5502 mingw*) lt_bad_file=conftest.nm/nofile ;; 5503 *) lt_bad_file=/dev/null ;; 5504 esac 5505 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5506 *$lt_bad_file* | *'Invalid file or object type'*) 5507 lt_cv_path_NM="$tmp_nm -B" 5508 break 2 5509 ;; 5510 *) 5511 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5512 */dev/null*) 5513 lt_cv_path_NM="$tmp_nm -p" 5514 break 2 5515 ;; 5516 *) 5517 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5518 continue # so that we can try to find one that supports BSD flags 5519 ;; 5520 esac 5521 ;; 5522 esac 5523 fi 5524 done 5525 IFS=$lt_save_ifs 5526 done 5527 : ${lt_cv_path_NM=no} 5528fi 5529fi 5530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5531$as_echo "$lt_cv_path_NM" >&6; } 5532if test no != "$lt_cv_path_NM"; then 5533 NM=$lt_cv_path_NM 5534else 5535 # Didn't find any BSD compatible name lister, look for dumpbin. 5536 if test -n "$DUMPBIN"; then : 5537 # Let the user override the test. 5538 else 5539 if test -n "$ac_tool_prefix"; then 5540 for ac_prog in dumpbin "link -dump" 5541 do 5542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5543set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5545$as_echo_n "checking for $ac_word... " >&6; } 5546if ${ac_cv_prog_DUMPBIN+:} false; then : 5547 $as_echo_n "(cached) " >&6 5548else 5549 if test -n "$DUMPBIN"; then 5550 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5551else 5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5553for as_dir in $PATH 5554do 5555 IFS=$as_save_IFS 5556 test -z "$as_dir" && as_dir=. 5557 for ac_exec_ext in '' $ac_executable_extensions; do 5558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5559 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5561 break 2 5562 fi 5563done 5564 done 5565IFS=$as_save_IFS 5566 5567fi 5568fi 5569DUMPBIN=$ac_cv_prog_DUMPBIN 5570if test -n "$DUMPBIN"; then 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5572$as_echo "$DUMPBIN" >&6; } 5573else 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5575$as_echo "no" >&6; } 5576fi 5577 5578 5579 test -n "$DUMPBIN" && break 5580 done 5581fi 5582if test -z "$DUMPBIN"; then 5583 ac_ct_DUMPBIN=$DUMPBIN 5584 for ac_prog in dumpbin "link -dump" 5585do 5586 # Extract the first word of "$ac_prog", so it can be a program name with args. 5587set dummy $ac_prog; ac_word=$2 5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5589$as_echo_n "checking for $ac_word... " >&6; } 5590if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5591 $as_echo_n "(cached) " >&6 5592else 5593 if test -n "$ac_ct_DUMPBIN"; then 5594 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5595else 5596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5597for as_dir in $PATH 5598do 5599 IFS=$as_save_IFS 5600 test -z "$as_dir" && as_dir=. 5601 for ac_exec_ext in '' $ac_executable_extensions; do 5602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5603 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5605 break 2 5606 fi 5607done 5608 done 5609IFS=$as_save_IFS 5610 5611fi 5612fi 5613ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5614if test -n "$ac_ct_DUMPBIN"; then 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5616$as_echo "$ac_ct_DUMPBIN" >&6; } 5617else 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5619$as_echo "no" >&6; } 5620fi 5621 5622 5623 test -n "$ac_ct_DUMPBIN" && break 5624done 5625 5626 if test "x$ac_ct_DUMPBIN" = x; then 5627 DUMPBIN=":" 5628 else 5629 case $cross_compiling:$ac_tool_warned in 5630yes:) 5631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5633ac_tool_warned=yes ;; 5634esac 5635 DUMPBIN=$ac_ct_DUMPBIN 5636 fi 5637fi 5638 5639 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5640 *COFF*) 5641 DUMPBIN="$DUMPBIN -symbols -headers" 5642 ;; 5643 *) 5644 DUMPBIN=: 5645 ;; 5646 esac 5647 fi 5648 5649 if test : != "$DUMPBIN"; then 5650 NM=$DUMPBIN 5651 fi 5652fi 5653test -z "$NM" && NM=nm 5654 5655 5656 5657 5658 5659 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5661$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5662if ${lt_cv_nm_interface+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 lt_cv_nm_interface="BSD nm" 5666 echo "int some_variable = 0;" > conftest.$ac_ext 5667 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5668 (eval "$ac_compile" 2>conftest.err) 5669 cat conftest.err >&5 5670 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5671 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5672 cat conftest.err >&5 5673 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5674 cat conftest.out >&5 5675 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5676 lt_cv_nm_interface="MS dumpbin" 5677 fi 5678 rm -f conftest* 5679fi 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5681$as_echo "$lt_cv_nm_interface" >&6; } 5682 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5684$as_echo_n "checking whether ln -s works... " >&6; } 5685LN_S=$as_ln_s 5686if test "$LN_S" = "ln -s"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5688$as_echo "yes" >&6; } 5689else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5691$as_echo "no, using $LN_S" >&6; } 5692fi 5693 5694# find the maximum length of command line arguments 5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5696$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5697if ${lt_cv_sys_max_cmd_len+:} false; then : 5698 $as_echo_n "(cached) " >&6 5699else 5700 i=0 5701 teststring=ABCD 5702 5703 case $build_os in 5704 msdosdjgpp*) 5705 # On DJGPP, this test can blow up pretty badly due to problems in libc 5706 # (any single argument exceeding 2000 bytes causes a buffer overrun 5707 # during glob expansion). Even if it were fixed, the result of this 5708 # check would be larger than it should be. 5709 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5710 ;; 5711 5712 gnu*) 5713 # Under GNU Hurd, this test is not required because there is 5714 # no limit to the length of command line arguments. 5715 # Libtool will interpret -1 as no limit whatsoever 5716 lt_cv_sys_max_cmd_len=-1; 5717 ;; 5718 5719 cygwin* | mingw* | cegcc*) 5720 # On Win9x/ME, this test blows up -- it succeeds, but takes 5721 # about 5 minutes as the teststring grows exponentially. 5722 # Worse, since 9x/ME are not pre-emptively multitasking, 5723 # you end up with a "frozen" computer, even though with patience 5724 # the test eventually succeeds (with a max line length of 256k). 5725 # Instead, let's just punt: use the minimum linelength reported by 5726 # all of the supported platforms: 8192 (on NT/2K/XP). 5727 lt_cv_sys_max_cmd_len=8192; 5728 ;; 5729 5730 mint*) 5731 # On MiNT this can take a long time and run out of memory. 5732 lt_cv_sys_max_cmd_len=8192; 5733 ;; 5734 5735 amigaos*) 5736 # On AmigaOS with pdksh, this test takes hours, literally. 5737 # So we just punt and use a minimum line length of 8192. 5738 lt_cv_sys_max_cmd_len=8192; 5739 ;; 5740 5741 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5742 # This has been around since 386BSD, at least. Likely further. 5743 if test -x /sbin/sysctl; then 5744 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5745 elif test -x /usr/sbin/sysctl; then 5746 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5747 else 5748 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5749 fi 5750 # And add a safety zone 5751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5753 ;; 5754 5755 interix*) 5756 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5757 lt_cv_sys_max_cmd_len=196608 5758 ;; 5759 5760 os2*) 5761 # The test takes a long time on OS/2. 5762 lt_cv_sys_max_cmd_len=8192 5763 ;; 5764 5765 osf*) 5766 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5767 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5768 # nice to cause kernel panics so lets avoid the loop below. 5769 # First set a reasonable default. 5770 lt_cv_sys_max_cmd_len=16384 5771 # 5772 if test -x /sbin/sysconfig; then 5773 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5774 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5775 esac 5776 fi 5777 ;; 5778 sco3.2v5*) 5779 lt_cv_sys_max_cmd_len=102400 5780 ;; 5781 sysv5* | sco5v6* | sysv4.2uw2*) 5782 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5783 if test -n "$kargmax"; then 5784 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5785 else 5786 lt_cv_sys_max_cmd_len=32768 5787 fi 5788 ;; 5789 *) 5790 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5791 if test -n "$lt_cv_sys_max_cmd_len" && \ 5792 test undefined != "$lt_cv_sys_max_cmd_len"; then 5793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5795 else 5796 # Make teststring a little bigger before we do anything with it. 5797 # a 1K string should be a reasonable start. 5798 for i in 1 2 3 4 5 6 7 8; do 5799 teststring=$teststring$teststring 5800 done 5801 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5802 # If test is not a shell built-in, we'll probably end up computing a 5803 # maximum length that is only half of the actual maximum length, but 5804 # we can't tell. 5805 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5806 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5807 test 17 != "$i" # 1/2 MB should be enough 5808 do 5809 i=`expr $i + 1` 5810 teststring=$teststring$teststring 5811 done 5812 # Only check the string length outside the loop. 5813 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5814 teststring= 5815 # Add a significant safety factor because C++ compilers can tack on 5816 # massive amounts of additional arguments before passing them to the 5817 # linker. It appears as though 1/2 is a usable value. 5818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5819 fi 5820 ;; 5821 esac 5822 5823fi 5824 5825if test -n "$lt_cv_sys_max_cmd_len"; then 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5827$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5828else 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5830$as_echo "none" >&6; } 5831fi 5832max_cmd_len=$lt_cv_sys_max_cmd_len 5833 5834 5835 5836 5837 5838 5839: ${CP="cp -f"} 5840: ${MV="mv -f"} 5841: ${RM="rm -f"} 5842 5843if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5844 lt_unset=unset 5845else 5846 lt_unset=false 5847fi 5848 5849 5850 5851 5852 5853# test EBCDIC or ASCII 5854case `echo X|tr X '\101'` in 5855 A) # ASCII based system 5856 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5857 lt_SP2NL='tr \040 \012' 5858 lt_NL2SP='tr \015\012 \040\040' 5859 ;; 5860 *) # EBCDIC based system 5861 lt_SP2NL='tr \100 \n' 5862 lt_NL2SP='tr \r\n \100\100' 5863 ;; 5864esac 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5875$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5876if ${lt_cv_to_host_file_cmd+:} false; then : 5877 $as_echo_n "(cached) " >&6 5878else 5879 case $host in 5880 *-*-mingw* ) 5881 case $build in 5882 *-*-mingw* ) # actually msys 5883 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5884 ;; 5885 *-*-cygwin* ) 5886 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5887 ;; 5888 * ) # otherwise, assume *nix 5889 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5890 ;; 5891 esac 5892 ;; 5893 *-*-cygwin* ) 5894 case $build in 5895 *-*-mingw* ) # actually msys 5896 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5897 ;; 5898 *-*-cygwin* ) 5899 lt_cv_to_host_file_cmd=func_convert_file_noop 5900 ;; 5901 * ) # otherwise, assume *nix 5902 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5903 ;; 5904 esac 5905 ;; 5906 * ) # unhandled hosts (and "normal" native builds) 5907 lt_cv_to_host_file_cmd=func_convert_file_noop 5908 ;; 5909esac 5910 5911fi 5912 5913to_host_file_cmd=$lt_cv_to_host_file_cmd 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5915$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5916 5917 5918 5919 5920 5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5922$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5923if ${lt_cv_to_tool_file_cmd+:} false; then : 5924 $as_echo_n "(cached) " >&6 5925else 5926 #assume ordinary cross tools, or native build. 5927lt_cv_to_tool_file_cmd=func_convert_file_noop 5928case $host in 5929 *-*-mingw* ) 5930 case $build in 5931 *-*-mingw* ) # actually msys 5932 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5933 ;; 5934 esac 5935 ;; 5936esac 5937 5938fi 5939 5940to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5942$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5943 5944 5945 5946 5947 5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5949$as_echo_n "checking for $LD option to reload object files... " >&6; } 5950if ${lt_cv_ld_reload_flag+:} false; then : 5951 $as_echo_n "(cached) " >&6 5952else 5953 lt_cv_ld_reload_flag='-r' 5954fi 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5956$as_echo "$lt_cv_ld_reload_flag" >&6; } 5957reload_flag=$lt_cv_ld_reload_flag 5958case $reload_flag in 5959"" | " "*) ;; 5960*) reload_flag=" $reload_flag" ;; 5961esac 5962reload_cmds='$LD$reload_flag -o $output$reload_objs' 5963case $host_os in 5964 cygwin* | mingw* | pw32* | cegcc*) 5965 if test yes != "$GCC"; then 5966 reload_cmds=false 5967 fi 5968 ;; 5969 darwin*) 5970 if test yes = "$GCC"; then 5971 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5972 else 5973 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5974 fi 5975 ;; 5976esac 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986if test -n "$ac_tool_prefix"; then 5987 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5988set dummy ${ac_tool_prefix}objdump; ac_word=$2 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5990$as_echo_n "checking for $ac_word... " >&6; } 5991if ${ac_cv_prog_OBJDUMP+:} false; then : 5992 $as_echo_n "(cached) " >&6 5993else 5994 if test -n "$OBJDUMP"; then 5995 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5996else 5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5998for as_dir in $PATH 5999do 6000 IFS=$as_save_IFS 6001 test -z "$as_dir" && as_dir=. 6002 for ac_exec_ext in '' $ac_executable_extensions; do 6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6004 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6006 break 2 6007 fi 6008done 6009 done 6010IFS=$as_save_IFS 6011 6012fi 6013fi 6014OBJDUMP=$ac_cv_prog_OBJDUMP 6015if test -n "$OBJDUMP"; then 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6017$as_echo "$OBJDUMP" >&6; } 6018else 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6020$as_echo "no" >&6; } 6021fi 6022 6023 6024fi 6025if test -z "$ac_cv_prog_OBJDUMP"; then 6026 ac_ct_OBJDUMP=$OBJDUMP 6027 # Extract the first word of "objdump", so it can be a program name with args. 6028set dummy objdump; ac_word=$2 6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6030$as_echo_n "checking for $ac_word... " >&6; } 6031if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6032 $as_echo_n "(cached) " >&6 6033else 6034 if test -n "$ac_ct_OBJDUMP"; then 6035 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6036else 6037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6038for as_dir in $PATH 6039do 6040 IFS=$as_save_IFS 6041 test -z "$as_dir" && as_dir=. 6042 for ac_exec_ext in '' $ac_executable_extensions; do 6043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6044 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6046 break 2 6047 fi 6048done 6049 done 6050IFS=$as_save_IFS 6051 6052fi 6053fi 6054ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6055if test -n "$ac_ct_OBJDUMP"; then 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6057$as_echo "$ac_ct_OBJDUMP" >&6; } 6058else 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6060$as_echo "no" >&6; } 6061fi 6062 6063 if test "x$ac_ct_OBJDUMP" = x; then 6064 OBJDUMP="false" 6065 else 6066 case $cross_compiling:$ac_tool_warned in 6067yes:) 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6070ac_tool_warned=yes ;; 6071esac 6072 OBJDUMP=$ac_ct_OBJDUMP 6073 fi 6074else 6075 OBJDUMP="$ac_cv_prog_OBJDUMP" 6076fi 6077 6078test -z "$OBJDUMP" && OBJDUMP=objdump 6079 6080 6081 6082 6083 6084 6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6086$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6087if ${lt_cv_deplibs_check_method+:} false; then : 6088 $as_echo_n "(cached) " >&6 6089else 6090 lt_cv_file_magic_cmd='$MAGIC_CMD' 6091lt_cv_file_magic_test_file= 6092lt_cv_deplibs_check_method='unknown' 6093# Need to set the preceding variable on all platforms that support 6094# interlibrary dependencies. 6095# 'none' -- dependencies not supported. 6096# 'unknown' -- same as none, but documents that we really don't know. 6097# 'pass_all' -- all dependencies passed with no checks. 6098# 'test_compile' -- check by making test program. 6099# 'file_magic [[regex]]' -- check by looking for files in library path 6100# that responds to the $file_magic_cmd with a given extended regex. 6101# If you have 'file' or equivalent on your system and you're not sure 6102# whether 'pass_all' will *always* work, you probably want this one. 6103 6104case $host_os in 6105aix[4-9]*) 6106 lt_cv_deplibs_check_method=pass_all 6107 ;; 6108 6109beos*) 6110 lt_cv_deplibs_check_method=pass_all 6111 ;; 6112 6113bsdi[45]*) 6114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6115 lt_cv_file_magic_cmd='/usr/bin/file -L' 6116 lt_cv_file_magic_test_file=/shlib/libc.so 6117 ;; 6118 6119cygwin*) 6120 # func_win32_libid is a shell function defined in ltmain.sh 6121 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6122 lt_cv_file_magic_cmd='func_win32_libid' 6123 ;; 6124 6125mingw* | pw32*) 6126 # Base MSYS/MinGW do not provide the 'file' command needed by 6127 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6128 # unless we find 'file', for example because we are cross-compiling. 6129 if ( file / ) >/dev/null 2>&1; then 6130 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6131 lt_cv_file_magic_cmd='func_win32_libid' 6132 else 6133 # Keep this pattern in sync with the one in func_win32_libid. 6134 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6135 lt_cv_file_magic_cmd='$OBJDUMP -f' 6136 fi 6137 ;; 6138 6139cegcc*) 6140 # use the weaker test based on 'objdump'. See mingw*. 6141 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6142 lt_cv_file_magic_cmd='$OBJDUMP -f' 6143 ;; 6144 6145darwin* | rhapsody*) 6146 lt_cv_deplibs_check_method=pass_all 6147 ;; 6148 6149freebsd* | dragonfly*) 6150 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6151 case $host_cpu in 6152 i*86 ) 6153 # Not sure whether the presence of OpenBSD here was a mistake. 6154 # Let's accept both of them until this is cleared up. 6155 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6156 lt_cv_file_magic_cmd=/usr/bin/file 6157 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6158 ;; 6159 esac 6160 else 6161 lt_cv_deplibs_check_method=pass_all 6162 fi 6163 ;; 6164 6165haiku*) 6166 lt_cv_deplibs_check_method=pass_all 6167 ;; 6168 6169hpux10.20* | hpux11*) 6170 lt_cv_file_magic_cmd=/usr/bin/file 6171 case $host_cpu in 6172 ia64*) 6173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6174 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6175 ;; 6176 hppa*64*) 6177 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]' 6178 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6179 ;; 6180 *) 6181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6182 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6183 ;; 6184 esac 6185 ;; 6186 6187interix[3-9]*) 6188 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6190 ;; 6191 6192irix5* | irix6* | nonstopux*) 6193 case $LD in 6194 *-32|*"-32 ") libmagic=32-bit;; 6195 *-n32|*"-n32 ") libmagic=N32;; 6196 *-64|*"-64 ") libmagic=64-bit;; 6197 *) libmagic=never-match;; 6198 esac 6199 lt_cv_deplibs_check_method=pass_all 6200 ;; 6201 6202# This must be glibc/ELF. 6203linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6204 lt_cv_deplibs_check_method=pass_all 6205 ;; 6206 6207netbsd* | netbsdelf*-gnu) 6208 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6210 else 6211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6212 fi 6213 ;; 6214 6215newos6*) 6216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6217 lt_cv_file_magic_cmd=/usr/bin/file 6218 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6219 ;; 6220 6221*nto* | *qnx*) 6222 lt_cv_deplibs_check_method=pass_all 6223 ;; 6224 6225openbsd* | bitrig*) 6226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6228 else 6229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6230 fi 6231 ;; 6232 6233osf3* | osf4* | osf5*) 6234 lt_cv_deplibs_check_method=pass_all 6235 ;; 6236 6237rdos*) 6238 lt_cv_deplibs_check_method=pass_all 6239 ;; 6240 6241solaris*) 6242 lt_cv_deplibs_check_method=pass_all 6243 ;; 6244 6245sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6246 lt_cv_deplibs_check_method=pass_all 6247 ;; 6248 6249sysv4 | sysv4.3*) 6250 case $host_vendor in 6251 motorola) 6252 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]' 6253 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6254 ;; 6255 ncr) 6256 lt_cv_deplibs_check_method=pass_all 6257 ;; 6258 sequent) 6259 lt_cv_file_magic_cmd='/bin/file' 6260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6261 ;; 6262 sni) 6263 lt_cv_file_magic_cmd='/bin/file' 6264 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6265 lt_cv_file_magic_test_file=/lib/libc.so 6266 ;; 6267 siemens) 6268 lt_cv_deplibs_check_method=pass_all 6269 ;; 6270 pc) 6271 lt_cv_deplibs_check_method=pass_all 6272 ;; 6273 esac 6274 ;; 6275 6276tpf*) 6277 lt_cv_deplibs_check_method=pass_all 6278 ;; 6279os2*) 6280 lt_cv_deplibs_check_method=pass_all 6281 ;; 6282esac 6283 6284fi 6285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6286$as_echo "$lt_cv_deplibs_check_method" >&6; } 6287 6288file_magic_glob= 6289want_nocaseglob=no 6290if test "$build" = "$host"; then 6291 case $host_os in 6292 mingw* | pw32*) 6293 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6294 want_nocaseglob=yes 6295 else 6296 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6297 fi 6298 ;; 6299 esac 6300fi 6301 6302file_magic_cmd=$lt_cv_file_magic_cmd 6303deplibs_check_method=$lt_cv_deplibs_check_method 6304test -z "$deplibs_check_method" && deplibs_check_method=unknown 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327if test -n "$ac_tool_prefix"; then 6328 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6329set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6331$as_echo_n "checking for $ac_word... " >&6; } 6332if ${ac_cv_prog_DLLTOOL+:} false; then : 6333 $as_echo_n "(cached) " >&6 6334else 6335 if test -n "$DLLTOOL"; then 6336 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6337else 6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6339for as_dir in $PATH 6340do 6341 IFS=$as_save_IFS 6342 test -z "$as_dir" && as_dir=. 6343 for ac_exec_ext in '' $ac_executable_extensions; do 6344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6345 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6347 break 2 6348 fi 6349done 6350 done 6351IFS=$as_save_IFS 6352 6353fi 6354fi 6355DLLTOOL=$ac_cv_prog_DLLTOOL 6356if test -n "$DLLTOOL"; then 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6358$as_echo "$DLLTOOL" >&6; } 6359else 6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6361$as_echo "no" >&6; } 6362fi 6363 6364 6365fi 6366if test -z "$ac_cv_prog_DLLTOOL"; then 6367 ac_ct_DLLTOOL=$DLLTOOL 6368 # Extract the first word of "dlltool", so it can be a program name with args. 6369set dummy dlltool; ac_word=$2 6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6371$as_echo_n "checking for $ac_word... " >&6; } 6372if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6373 $as_echo_n "(cached) " >&6 6374else 6375 if test -n "$ac_ct_DLLTOOL"; then 6376 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6377else 6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6379for as_dir in $PATH 6380do 6381 IFS=$as_save_IFS 6382 test -z "$as_dir" && as_dir=. 6383 for ac_exec_ext in '' $ac_executable_extensions; do 6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6385 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6387 break 2 6388 fi 6389done 6390 done 6391IFS=$as_save_IFS 6392 6393fi 6394fi 6395ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6396if test -n "$ac_ct_DLLTOOL"; then 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6398$as_echo "$ac_ct_DLLTOOL" >&6; } 6399else 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6401$as_echo "no" >&6; } 6402fi 6403 6404 if test "x$ac_ct_DLLTOOL" = x; then 6405 DLLTOOL="false" 6406 else 6407 case $cross_compiling:$ac_tool_warned in 6408yes:) 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6411ac_tool_warned=yes ;; 6412esac 6413 DLLTOOL=$ac_ct_DLLTOOL 6414 fi 6415else 6416 DLLTOOL="$ac_cv_prog_DLLTOOL" 6417fi 6418 6419test -z "$DLLTOOL" && DLLTOOL=dlltool 6420 6421 6422 6423 6424 6425 6426 6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6428$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6429if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6430 $as_echo_n "(cached) " >&6 6431else 6432 lt_cv_sharedlib_from_linklib_cmd='unknown' 6433 6434case $host_os in 6435cygwin* | mingw* | pw32* | cegcc*) 6436 # two different shell functions defined in ltmain.sh; 6437 # decide which one to use based on capabilities of $DLLTOOL 6438 case `$DLLTOOL --help 2>&1` in 6439 *--identify-strict*) 6440 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6441 ;; 6442 *) 6443 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6444 ;; 6445 esac 6446 ;; 6447*) 6448 # fallback: assume linklib IS sharedlib 6449 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6450 ;; 6451esac 6452 6453fi 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6455$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6456sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6457test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6458 6459 6460 6461 6462 6463 6464 6465if test -n "$ac_tool_prefix"; then 6466 for ac_prog in ar 6467 do 6468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6469set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6471$as_echo_n "checking for $ac_word... " >&6; } 6472if ${ac_cv_prog_AR+:} false; then : 6473 $as_echo_n "(cached) " >&6 6474else 6475 if test -n "$AR"; then 6476 ac_cv_prog_AR="$AR" # Let the user override the test. 6477else 6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6479for as_dir in $PATH 6480do 6481 IFS=$as_save_IFS 6482 test -z "$as_dir" && as_dir=. 6483 for ac_exec_ext in '' $ac_executable_extensions; do 6484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6485 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6487 break 2 6488 fi 6489done 6490 done 6491IFS=$as_save_IFS 6492 6493fi 6494fi 6495AR=$ac_cv_prog_AR 6496if test -n "$AR"; then 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6498$as_echo "$AR" >&6; } 6499else 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6501$as_echo "no" >&6; } 6502fi 6503 6504 6505 test -n "$AR" && break 6506 done 6507fi 6508if test -z "$AR"; then 6509 ac_ct_AR=$AR 6510 for ac_prog in ar 6511do 6512 # Extract the first word of "$ac_prog", so it can be a program name with args. 6513set dummy $ac_prog; ac_word=$2 6514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6515$as_echo_n "checking for $ac_word... " >&6; } 6516if ${ac_cv_prog_ac_ct_AR+:} false; then : 6517 $as_echo_n "(cached) " >&6 6518else 6519 if test -n "$ac_ct_AR"; then 6520 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6521else 6522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6523for as_dir in $PATH 6524do 6525 IFS=$as_save_IFS 6526 test -z "$as_dir" && as_dir=. 6527 for ac_exec_ext in '' $ac_executable_extensions; do 6528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6529 ac_cv_prog_ac_ct_AR="$ac_prog" 6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6531 break 2 6532 fi 6533done 6534 done 6535IFS=$as_save_IFS 6536 6537fi 6538fi 6539ac_ct_AR=$ac_cv_prog_ac_ct_AR 6540if test -n "$ac_ct_AR"; then 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6542$as_echo "$ac_ct_AR" >&6; } 6543else 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6545$as_echo "no" >&6; } 6546fi 6547 6548 6549 test -n "$ac_ct_AR" && break 6550done 6551 6552 if test "x$ac_ct_AR" = x; then 6553 AR="false" 6554 else 6555 case $cross_compiling:$ac_tool_warned in 6556yes:) 6557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6559ac_tool_warned=yes ;; 6560esac 6561 AR=$ac_ct_AR 6562 fi 6563fi 6564 6565: ${AR=ar} 6566: ${AR_FLAGS=cru} 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6579$as_echo_n "checking for archiver @FILE support... " >&6; } 6580if ${lt_cv_ar_at_file+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 lt_cv_ar_at_file=no 6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6585/* end confdefs.h. */ 6586 6587int 6588main () 6589{ 6590 6591 ; 6592 return 0; 6593} 6594_ACEOF 6595if ac_fn_c_try_compile "$LINENO"; then : 6596 echo conftest.$ac_objext > conftest.lst 6597 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6599 (eval $lt_ar_try) 2>&5 6600 ac_status=$? 6601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6602 test $ac_status = 0; } 6603 if test 0 -eq "$ac_status"; then 6604 # Ensure the archiver fails upon bogus file names. 6605 rm -f conftest.$ac_objext libconftest.a 6606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6607 (eval $lt_ar_try) 2>&5 6608 ac_status=$? 6609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6610 test $ac_status = 0; } 6611 if test 0 -ne "$ac_status"; then 6612 lt_cv_ar_at_file=@ 6613 fi 6614 fi 6615 rm -f conftest.* libconftest.a 6616 6617fi 6618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6619 6620fi 6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6622$as_echo "$lt_cv_ar_at_file" >&6; } 6623 6624if test no = "$lt_cv_ar_at_file"; then 6625 archiver_list_spec= 6626else 6627 archiver_list_spec=$lt_cv_ar_at_file 6628fi 6629 6630 6631 6632 6633 6634 6635 6636if test -n "$ac_tool_prefix"; then 6637 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6638set dummy ${ac_tool_prefix}strip; ac_word=$2 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6640$as_echo_n "checking for $ac_word... " >&6; } 6641if ${ac_cv_prog_STRIP+:} false; then : 6642 $as_echo_n "(cached) " >&6 6643else 6644 if test -n "$STRIP"; then 6645 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6646else 6647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6648for as_dir in $PATH 6649do 6650 IFS=$as_save_IFS 6651 test -z "$as_dir" && as_dir=. 6652 for ac_exec_ext in '' $ac_executable_extensions; do 6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6654 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6656 break 2 6657 fi 6658done 6659 done 6660IFS=$as_save_IFS 6661 6662fi 6663fi 6664STRIP=$ac_cv_prog_STRIP 6665if test -n "$STRIP"; then 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6667$as_echo "$STRIP" >&6; } 6668else 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6670$as_echo "no" >&6; } 6671fi 6672 6673 6674fi 6675if test -z "$ac_cv_prog_STRIP"; then 6676 ac_ct_STRIP=$STRIP 6677 # Extract the first word of "strip", so it can be a program name with args. 6678set dummy strip; ac_word=$2 6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6680$as_echo_n "checking for $ac_word... " >&6; } 6681if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683else 6684 if test -n "$ac_ct_STRIP"; then 6685 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6686else 6687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6688for as_dir in $PATH 6689do 6690 IFS=$as_save_IFS 6691 test -z "$as_dir" && as_dir=. 6692 for ac_exec_ext in '' $ac_executable_extensions; do 6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6694 ac_cv_prog_ac_ct_STRIP="strip" 6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6696 break 2 6697 fi 6698done 6699 done 6700IFS=$as_save_IFS 6701 6702fi 6703fi 6704ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6705if test -n "$ac_ct_STRIP"; then 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6707$as_echo "$ac_ct_STRIP" >&6; } 6708else 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6710$as_echo "no" >&6; } 6711fi 6712 6713 if test "x$ac_ct_STRIP" = x; then 6714 STRIP=":" 6715 else 6716 case $cross_compiling:$ac_tool_warned in 6717yes:) 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6720ac_tool_warned=yes ;; 6721esac 6722 STRIP=$ac_ct_STRIP 6723 fi 6724else 6725 STRIP="$ac_cv_prog_STRIP" 6726fi 6727 6728test -z "$STRIP" && STRIP=: 6729 6730 6731 6732 6733 6734 6735if test -n "$ac_tool_prefix"; then 6736 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6737set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6739$as_echo_n "checking for $ac_word... " >&6; } 6740if ${ac_cv_prog_RANLIB+:} false; then : 6741 $as_echo_n "(cached) " >&6 6742else 6743 if test -n "$RANLIB"; then 6744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6745else 6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6747for as_dir in $PATH 6748do 6749 IFS=$as_save_IFS 6750 test -z "$as_dir" && as_dir=. 6751 for ac_exec_ext in '' $ac_executable_extensions; do 6752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6753 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6755 break 2 6756 fi 6757done 6758 done 6759IFS=$as_save_IFS 6760 6761fi 6762fi 6763RANLIB=$ac_cv_prog_RANLIB 6764if test -n "$RANLIB"; then 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6766$as_echo "$RANLIB" >&6; } 6767else 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6769$as_echo "no" >&6; } 6770fi 6771 6772 6773fi 6774if test -z "$ac_cv_prog_RANLIB"; then 6775 ac_ct_RANLIB=$RANLIB 6776 # Extract the first word of "ranlib", so it can be a program name with args. 6777set dummy ranlib; ac_word=$2 6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6779$as_echo_n "checking for $ac_word... " >&6; } 6780if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6781 $as_echo_n "(cached) " >&6 6782else 6783 if test -n "$ac_ct_RANLIB"; then 6784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6785else 6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6787for as_dir in $PATH 6788do 6789 IFS=$as_save_IFS 6790 test -z "$as_dir" && as_dir=. 6791 for ac_exec_ext in '' $ac_executable_extensions; do 6792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6793 ac_cv_prog_ac_ct_RANLIB="ranlib" 6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6795 break 2 6796 fi 6797done 6798 done 6799IFS=$as_save_IFS 6800 6801fi 6802fi 6803ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6804if test -n "$ac_ct_RANLIB"; then 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6806$as_echo "$ac_ct_RANLIB" >&6; } 6807else 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6809$as_echo "no" >&6; } 6810fi 6811 6812 if test "x$ac_ct_RANLIB" = x; then 6813 RANLIB=":" 6814 else 6815 case $cross_compiling:$ac_tool_warned in 6816yes:) 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6819ac_tool_warned=yes ;; 6820esac 6821 RANLIB=$ac_ct_RANLIB 6822 fi 6823else 6824 RANLIB="$ac_cv_prog_RANLIB" 6825fi 6826 6827test -z "$RANLIB" && RANLIB=: 6828 6829 6830 6831 6832 6833 6834# Determine commands to create old-style static archives. 6835old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6836old_postinstall_cmds='chmod 644 $oldlib' 6837old_postuninstall_cmds= 6838 6839if test -n "$RANLIB"; then 6840 case $host_os in 6841 bitrig* | openbsd*) 6842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6843 ;; 6844 *) 6845 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6846 ;; 6847 esac 6848 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6849fi 6850 6851case $host_os in 6852 darwin*) 6853 lock_old_archive_extraction=yes ;; 6854 *) 6855 lock_old_archive_extraction=no ;; 6856esac 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896# If no C compiler was specified, use CC. 6897LTCC=${LTCC-"$CC"} 6898 6899# If no C compiler flags were specified, use CFLAGS. 6900LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6901 6902# Allow CC to be a program name with arguments. 6903compiler=$CC 6904 6905 6906# Check for command to grab the raw symbol name followed by C symbol from nm. 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6908$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6909if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 6913# These are sane defaults that work on at least a few old systems. 6914# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6915 6916# Character class describing NM global symbol codes. 6917symcode='[BCDEGRST]' 6918 6919# Regexp to match symbols that can be accessed directly from C. 6920sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6921 6922# Define system-specific variables. 6923case $host_os in 6924aix*) 6925 symcode='[BCDT]' 6926 ;; 6927cygwin* | mingw* | pw32* | cegcc*) 6928 symcode='[ABCDGISTW]' 6929 ;; 6930hpux*) 6931 if test ia64 = "$host_cpu"; then 6932 symcode='[ABCDEGRST]' 6933 fi 6934 ;; 6935irix* | nonstopux*) 6936 symcode='[BCDEGRST]' 6937 ;; 6938osf*) 6939 symcode='[BCDEGQRST]' 6940 ;; 6941solaris*) 6942 symcode='[BDRT]' 6943 ;; 6944sco3.2v5*) 6945 symcode='[DT]' 6946 ;; 6947sysv4.2uw2*) 6948 symcode='[DT]' 6949 ;; 6950sysv5* | sco5v6* | unixware* | OpenUNIX*) 6951 symcode='[ABDT]' 6952 ;; 6953sysv4) 6954 symcode='[DFNSTU]' 6955 ;; 6956esac 6957 6958# If we're using GNU nm, then use its standard symbol codes. 6959case `$NM -V 2>&1` in 6960*GNU* | *'with BFD'*) 6961 symcode='[ABCDGIRSTW]' ;; 6962esac 6963 6964if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6965 # Gets list of data symbols to import. 6966 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6967 # Adjust the below global symbol transforms to fixup imported variables. 6968 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6969 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6970 lt_c_name_lib_hook="\ 6971 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6972 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6973else 6974 # Disable hooks by default. 6975 lt_cv_sys_global_symbol_to_import= 6976 lt_cdecl_hook= 6977 lt_c_name_hook= 6978 lt_c_name_lib_hook= 6979fi 6980 6981# Transform an extracted symbol line into a proper C declaration. 6982# Some systems (esp. on ia64) link data and code symbols differently, 6983# so use this general approach. 6984lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6985$lt_cdecl_hook\ 6986" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6987" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6988 6989# Transform an extracted symbol line into symbol name and symbol address 6990lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6991$lt_c_name_hook\ 6992" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6993" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6994 6995# Transform an extracted symbol line into symbol name with lib prefix and 6996# symbol address. 6997lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6998$lt_c_name_lib_hook\ 6999" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7000" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7001" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7002 7003# Handle CRLF in mingw tool chain 7004opt_cr= 7005case $build_os in 7006mingw*) 7007 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7008 ;; 7009esac 7010 7011# Try without a prefix underscore, then with it. 7012for ac_symprfx in "" "_"; do 7013 7014 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7015 symxfrm="\\1 $ac_symprfx\\2 \\2" 7016 7017 # Write the raw and C identifiers. 7018 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7019 # Fake it for dumpbin and say T for any non-static function, 7020 # D for any global variable and I for any imported variable. 7021 # Also find C++ and __fastcall symbols from MSVC++, 7022 # which start with @ or ?. 7023 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7024" {last_section=section; section=\$ 3};"\ 7025" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7026" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7027" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7028" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7029" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7030" \$ 0!~/External *\|/{next};"\ 7031" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7032" {if(hide[section]) next};"\ 7033" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7034" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7035" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7036" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7037" ' prfx=^$ac_symprfx" 7038 else 7039 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7040 fi 7041 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7042 7043 # Check to see that the pipe works correctly. 7044 pipe_works=no 7045 7046 rm -f conftest* 7047 cat > conftest.$ac_ext <<_LT_EOF 7048#ifdef __cplusplus 7049extern "C" { 7050#endif 7051char nm_test_var; 7052void nm_test_func(void); 7053void nm_test_func(void){} 7054#ifdef __cplusplus 7055} 7056#endif 7057int main(){nm_test_var='a';nm_test_func();return(0);} 7058_LT_EOF 7059 7060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7061 (eval $ac_compile) 2>&5 7062 ac_status=$? 7063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7064 test $ac_status = 0; }; then 7065 # Now try to grab the symbols. 7066 nlist=conftest.nm 7067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7068 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7069 ac_status=$? 7070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7071 test $ac_status = 0; } && test -s "$nlist"; then 7072 # Try sorting and uniquifying the output. 7073 if sort "$nlist" | uniq > "$nlist"T; then 7074 mv -f "$nlist"T "$nlist" 7075 else 7076 rm -f "$nlist"T 7077 fi 7078 7079 # Make sure that we snagged all the symbols we need. 7080 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7081 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7082 cat <<_LT_EOF > conftest.$ac_ext 7083/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7084#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7085/* DATA imports from DLLs on WIN32 can't be const, because runtime 7086 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7087# define LT_DLSYM_CONST 7088#elif defined __osf__ 7089/* This system does not cope well with relocations in const data. */ 7090# define LT_DLSYM_CONST 7091#else 7092# define LT_DLSYM_CONST const 7093#endif 7094 7095#ifdef __cplusplus 7096extern "C" { 7097#endif 7098 7099_LT_EOF 7100 # Now generate the symbol file. 7101 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7102 7103 cat <<_LT_EOF >> conftest.$ac_ext 7104 7105/* The mapping between symbol names and symbols. */ 7106LT_DLSYM_CONST struct { 7107 const char *name; 7108 void *address; 7109} 7110lt__PROGRAM__LTX_preloaded_symbols[] = 7111{ 7112 { "@PROGRAM@", (void *) 0 }, 7113_LT_EOF 7114 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7115 cat <<\_LT_EOF >> conftest.$ac_ext 7116 {0, (void *) 0} 7117}; 7118 7119/* This works around a problem in FreeBSD linker */ 7120#ifdef FREEBSD_WORKAROUND 7121static const void *lt_preloaded_setup() { 7122 return lt__PROGRAM__LTX_preloaded_symbols; 7123} 7124#endif 7125 7126#ifdef __cplusplus 7127} 7128#endif 7129_LT_EOF 7130 # Now try linking the two files. 7131 mv conftest.$ac_objext conftstm.$ac_objext 7132 lt_globsym_save_LIBS=$LIBS 7133 lt_globsym_save_CFLAGS=$CFLAGS 7134 LIBS=conftstm.$ac_objext 7135 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7137 (eval $ac_link) 2>&5 7138 ac_status=$? 7139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7140 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7141 pipe_works=yes 7142 fi 7143 LIBS=$lt_globsym_save_LIBS 7144 CFLAGS=$lt_globsym_save_CFLAGS 7145 else 7146 echo "cannot find nm_test_func in $nlist" >&5 7147 fi 7148 else 7149 echo "cannot find nm_test_var in $nlist" >&5 7150 fi 7151 else 7152 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7153 fi 7154 else 7155 echo "$progname: failed program was:" >&5 7156 cat conftest.$ac_ext >&5 7157 fi 7158 rm -rf conftest* conftst* 7159 7160 # Do not use the global_symbol_pipe unless it works. 7161 if test yes = "$pipe_works"; then 7162 break 7163 else 7164 lt_cv_sys_global_symbol_pipe= 7165 fi 7166done 7167 7168fi 7169 7170if test -z "$lt_cv_sys_global_symbol_pipe"; then 7171 lt_cv_sys_global_symbol_to_cdecl= 7172fi 7173if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7175$as_echo "failed" >&6; } 7176else 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7178$as_echo "ok" >&6; } 7179fi 7180 7181# Response file support. 7182if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7183 nm_file_list_spec='@' 7184elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7185 nm_file_list_spec='@' 7186fi 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7225$as_echo_n "checking for sysroot... " >&6; } 7226 7227# Check whether --with-sysroot was given. 7228if test "${with_sysroot+set}" = set; then : 7229 withval=$with_sysroot; 7230else 7231 with_sysroot=no 7232fi 7233 7234 7235lt_sysroot= 7236case $with_sysroot in #( 7237 yes) 7238 if test yes = "$GCC"; then 7239 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7240 fi 7241 ;; #( 7242 /*) 7243 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7244 ;; #( 7245 no|'') 7246 ;; #( 7247 *) 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7249$as_echo "$with_sysroot" >&6; } 7250 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7251 ;; 7252esac 7253 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7255$as_echo "${lt_sysroot:-no}" >&6; } 7256 7257 7258 7259 7260 7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7262$as_echo_n "checking for a working dd... " >&6; } 7263if ${ac_cv_path_lt_DD+:} false; then : 7264 $as_echo_n "(cached) " >&6 7265else 7266 printf 0123456789abcdef0123456789abcdef >conftest.i 7267cat conftest.i conftest.i >conftest2.i 7268: ${lt_DD:=$DD} 7269if test -z "$lt_DD"; then 7270 ac_path_lt_DD_found=false 7271 # Loop through the user's path and test for each of PROGNAME-LIST 7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7273for as_dir in $PATH 7274do 7275 IFS=$as_save_IFS 7276 test -z "$as_dir" && as_dir=. 7277 for ac_prog in dd; do 7278 for ac_exec_ext in '' $ac_executable_extensions; do 7279 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7280 as_fn_executable_p "$ac_path_lt_DD" || continue 7281if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7282 cmp -s conftest.i conftest.out \ 7283 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7284fi 7285 $ac_path_lt_DD_found && break 3 7286 done 7287 done 7288 done 7289IFS=$as_save_IFS 7290 if test -z "$ac_cv_path_lt_DD"; then 7291 : 7292 fi 7293else 7294 ac_cv_path_lt_DD=$lt_DD 7295fi 7296 7297rm -f conftest.i conftest2.i conftest.out 7298fi 7299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7300$as_echo "$ac_cv_path_lt_DD" >&6; } 7301 7302 7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7304$as_echo_n "checking how to truncate binary pipes... " >&6; } 7305if ${lt_cv_truncate_bin+:} false; then : 7306 $as_echo_n "(cached) " >&6 7307else 7308 printf 0123456789abcdef0123456789abcdef >conftest.i 7309cat conftest.i conftest.i >conftest2.i 7310lt_cv_truncate_bin= 7311if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7312 cmp -s conftest.i conftest.out \ 7313 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7314fi 7315rm -f conftest.i conftest2.i conftest.out 7316test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7317fi 7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7319$as_echo "$lt_cv_truncate_bin" >&6; } 7320 7321 7322 7323 7324 7325 7326 7327# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7328func_cc_basename () 7329{ 7330 for cc_temp in $*""; do 7331 case $cc_temp in 7332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7334 \-*) ;; 7335 *) break;; 7336 esac 7337 done 7338 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7339} 7340 7341# Check whether --enable-libtool-lock was given. 7342if test "${enable_libtool_lock+set}" = set; then : 7343 enableval=$enable_libtool_lock; 7344fi 7345 7346test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7347 7348# Some flags need to be propagated to the compiler or linker for good 7349# libtool support. 7350case $host in 7351ia64-*-hpux*) 7352 # Find out what ABI is being produced by ac_compile, and set mode 7353 # options accordingly. 7354 echo 'int i;' > conftest.$ac_ext 7355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7356 (eval $ac_compile) 2>&5 7357 ac_status=$? 7358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7359 test $ac_status = 0; }; then 7360 case `/usr/bin/file conftest.$ac_objext` in 7361 *ELF-32*) 7362 HPUX_IA64_MODE=32 7363 ;; 7364 *ELF-64*) 7365 HPUX_IA64_MODE=64 7366 ;; 7367 esac 7368 fi 7369 rm -rf conftest* 7370 ;; 7371*-*-irix6*) 7372 # Find out what ABI is being produced by ac_compile, and set linker 7373 # options accordingly. 7374 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7376 (eval $ac_compile) 2>&5 7377 ac_status=$? 7378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7379 test $ac_status = 0; }; then 7380 if test yes = "$lt_cv_prog_gnu_ld"; then 7381 case `/usr/bin/file conftest.$ac_objext` in 7382 *32-bit*) 7383 LD="${LD-ld} -melf32bsmip" 7384 ;; 7385 *N32*) 7386 LD="${LD-ld} -melf32bmipn32" 7387 ;; 7388 *64-bit*) 7389 LD="${LD-ld} -melf64bmip" 7390 ;; 7391 esac 7392 else 7393 case `/usr/bin/file conftest.$ac_objext` in 7394 *32-bit*) 7395 LD="${LD-ld} -32" 7396 ;; 7397 *N32*) 7398 LD="${LD-ld} -n32" 7399 ;; 7400 *64-bit*) 7401 LD="${LD-ld} -64" 7402 ;; 7403 esac 7404 fi 7405 fi 7406 rm -rf conftest* 7407 ;; 7408 7409mips64*-*linux*) 7410 # Find out what ABI is being produced by ac_compile, and set linker 7411 # options accordingly. 7412 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7414 (eval $ac_compile) 2>&5 7415 ac_status=$? 7416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7417 test $ac_status = 0; }; then 7418 emul=elf 7419 case `/usr/bin/file conftest.$ac_objext` in 7420 *32-bit*) 7421 emul="${emul}32" 7422 ;; 7423 *64-bit*) 7424 emul="${emul}64" 7425 ;; 7426 esac 7427 case `/usr/bin/file conftest.$ac_objext` in 7428 *MSB*) 7429 emul="${emul}btsmip" 7430 ;; 7431 *LSB*) 7432 emul="${emul}ltsmip" 7433 ;; 7434 esac 7435 case `/usr/bin/file conftest.$ac_objext` in 7436 *N32*) 7437 emul="${emul}n32" 7438 ;; 7439 esac 7440 LD="${LD-ld} -m $emul" 7441 fi 7442 rm -rf conftest* 7443 ;; 7444 7445x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7446s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7447 # Find out what ABI is being produced by ac_compile, and set linker 7448 # options accordingly. Note that the listed cases only cover the 7449 # situations where additional linker options are needed (such as when 7450 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7451 # vice versa); the common cases where no linker options are needed do 7452 # not appear in the list. 7453 echo 'int i;' > conftest.$ac_ext 7454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7455 (eval $ac_compile) 2>&5 7456 ac_status=$? 7457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7458 test $ac_status = 0; }; then 7459 case `/usr/bin/file conftest.o` in 7460 *32-bit*) 7461 case $host in 7462 x86_64-*kfreebsd*-gnu) 7463 LD="${LD-ld} -m elf_i386_fbsd" 7464 ;; 7465 x86_64-*linux*) 7466 case `/usr/bin/file conftest.o` in 7467 *x86-64*) 7468 LD="${LD-ld} -m elf32_x86_64" 7469 ;; 7470 *) 7471 LD="${LD-ld} -m elf_i386" 7472 ;; 7473 esac 7474 ;; 7475 powerpc64le-*linux*) 7476 LD="${LD-ld} -m elf32lppclinux" 7477 ;; 7478 powerpc64-*linux*) 7479 LD="${LD-ld} -m elf32ppclinux" 7480 ;; 7481 s390x-*linux*) 7482 LD="${LD-ld} -m elf_s390" 7483 ;; 7484 sparc64-*linux*) 7485 LD="${LD-ld} -m elf32_sparc" 7486 ;; 7487 esac 7488 ;; 7489 *64-bit*) 7490 case $host in 7491 x86_64-*kfreebsd*-gnu) 7492 LD="${LD-ld} -m elf_x86_64_fbsd" 7493 ;; 7494 x86_64-*linux*) 7495 LD="${LD-ld} -m elf_x86_64" 7496 ;; 7497 powerpcle-*linux*) 7498 LD="${LD-ld} -m elf64lppc" 7499 ;; 7500 powerpc-*linux*) 7501 LD="${LD-ld} -m elf64ppc" 7502 ;; 7503 s390*-*linux*|s390*-*tpf*) 7504 LD="${LD-ld} -m elf64_s390" 7505 ;; 7506 sparc*-*linux*) 7507 LD="${LD-ld} -m elf64_sparc" 7508 ;; 7509 esac 7510 ;; 7511 esac 7512 fi 7513 rm -rf conftest* 7514 ;; 7515 7516*-*-sco3.2v5*) 7517 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7518 SAVE_CFLAGS=$CFLAGS 7519 CFLAGS="$CFLAGS -belf" 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7521$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7522if ${lt_cv_cc_needs_belf+:} false; then : 7523 $as_echo_n "(cached) " >&6 7524else 7525 ac_ext=c 7526ac_cpp='$CPP $CPPFLAGS' 7527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7529ac_compiler_gnu=$ac_cv_c_compiler_gnu 7530 7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7532/* end confdefs.h. */ 7533 7534int 7535main () 7536{ 7537 7538 ; 7539 return 0; 7540} 7541_ACEOF 7542if ac_fn_c_try_link "$LINENO"; then : 7543 lt_cv_cc_needs_belf=yes 7544else 7545 lt_cv_cc_needs_belf=no 7546fi 7547rm -f core conftest.err conftest.$ac_objext \ 7548 conftest$ac_exeext conftest.$ac_ext 7549 ac_ext=c 7550ac_cpp='$CPP $CPPFLAGS' 7551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7553ac_compiler_gnu=$ac_cv_c_compiler_gnu 7554 7555fi 7556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7557$as_echo "$lt_cv_cc_needs_belf" >&6; } 7558 if test yes != "$lt_cv_cc_needs_belf"; then 7559 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7560 CFLAGS=$SAVE_CFLAGS 7561 fi 7562 ;; 7563*-*solaris*) 7564 # Find out what ABI is being produced by ac_compile, and set linker 7565 # options accordingly. 7566 echo 'int i;' > conftest.$ac_ext 7567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7568 (eval $ac_compile) 2>&5 7569 ac_status=$? 7570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7571 test $ac_status = 0; }; then 7572 case `/usr/bin/file conftest.o` in 7573 *64-bit*) 7574 case $lt_cv_prog_gnu_ld in 7575 yes*) 7576 case $host in 7577 i?86-*-solaris*|x86_64-*-solaris*) 7578 LD="${LD-ld} -m elf_x86_64" 7579 ;; 7580 sparc*-*-solaris*) 7581 LD="${LD-ld} -m elf64_sparc" 7582 ;; 7583 esac 7584 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7585 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7586 LD=${LD-ld}_sol2 7587 fi 7588 ;; 7589 *) 7590 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7591 LD="${LD-ld} -64" 7592 fi 7593 ;; 7594 esac 7595 ;; 7596 esac 7597 fi 7598 rm -rf conftest* 7599 ;; 7600esac 7601 7602need_locks=$enable_libtool_lock 7603 7604if test -n "$ac_tool_prefix"; then 7605 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7606set dummy ${ac_tool_prefix}mt; ac_word=$2 7607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7608$as_echo_n "checking for $ac_word... " >&6; } 7609if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7610 $as_echo_n "(cached) " >&6 7611else 7612 if test -n "$MANIFEST_TOOL"; then 7613 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7614else 7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7616for as_dir in $PATH 7617do 7618 IFS=$as_save_IFS 7619 test -z "$as_dir" && as_dir=. 7620 for ac_exec_ext in '' $ac_executable_extensions; do 7621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7622 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7624 break 2 7625 fi 7626done 7627 done 7628IFS=$as_save_IFS 7629 7630fi 7631fi 7632MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7633if test -n "$MANIFEST_TOOL"; then 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7635$as_echo "$MANIFEST_TOOL" >&6; } 7636else 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7638$as_echo "no" >&6; } 7639fi 7640 7641 7642fi 7643if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7644 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7645 # Extract the first word of "mt", so it can be a program name with args. 7646set dummy mt; ac_word=$2 7647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7648$as_echo_n "checking for $ac_word... " >&6; } 7649if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7650 $as_echo_n "(cached) " >&6 7651else 7652 if test -n "$ac_ct_MANIFEST_TOOL"; then 7653 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7654else 7655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7656for as_dir in $PATH 7657do 7658 IFS=$as_save_IFS 7659 test -z "$as_dir" && as_dir=. 7660 for ac_exec_ext in '' $ac_executable_extensions; do 7661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7662 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7664 break 2 7665 fi 7666done 7667 done 7668IFS=$as_save_IFS 7669 7670fi 7671fi 7672ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7673if test -n "$ac_ct_MANIFEST_TOOL"; then 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7675$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7676else 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7678$as_echo "no" >&6; } 7679fi 7680 7681 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7682 MANIFEST_TOOL=":" 7683 else 7684 case $cross_compiling:$ac_tool_warned in 7685yes:) 7686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7688ac_tool_warned=yes ;; 7689esac 7690 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7691 fi 7692else 7693 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7694fi 7695 7696test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7698$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7699if ${lt_cv_path_mainfest_tool+:} false; then : 7700 $as_echo_n "(cached) " >&6 7701else 7702 lt_cv_path_mainfest_tool=no 7703 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7704 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7705 cat conftest.err >&5 7706 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7707 lt_cv_path_mainfest_tool=yes 7708 fi 7709 rm -f conftest* 7710fi 7711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7712$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7713if test yes != "$lt_cv_path_mainfest_tool"; then 7714 MANIFEST_TOOL=: 7715fi 7716 7717 7718 7719 7720 7721 7722 case $host_os in 7723 rhapsody* | darwin*) 7724 if test -n "$ac_tool_prefix"; then 7725 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7726set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7728$as_echo_n "checking for $ac_word... " >&6; } 7729if ${ac_cv_prog_DSYMUTIL+:} false; then : 7730 $as_echo_n "(cached) " >&6 7731else 7732 if test -n "$DSYMUTIL"; then 7733 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7734else 7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7736for as_dir in $PATH 7737do 7738 IFS=$as_save_IFS 7739 test -z "$as_dir" && as_dir=. 7740 for ac_exec_ext in '' $ac_executable_extensions; do 7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7742 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7744 break 2 7745 fi 7746done 7747 done 7748IFS=$as_save_IFS 7749 7750fi 7751fi 7752DSYMUTIL=$ac_cv_prog_DSYMUTIL 7753if test -n "$DSYMUTIL"; then 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7755$as_echo "$DSYMUTIL" >&6; } 7756else 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7758$as_echo "no" >&6; } 7759fi 7760 7761 7762fi 7763if test -z "$ac_cv_prog_DSYMUTIL"; then 7764 ac_ct_DSYMUTIL=$DSYMUTIL 7765 # Extract the first word of "dsymutil", so it can be a program name with args. 7766set dummy dsymutil; ac_word=$2 7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7768$as_echo_n "checking for $ac_word... " >&6; } 7769if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7770 $as_echo_n "(cached) " >&6 7771else 7772 if test -n "$ac_ct_DSYMUTIL"; then 7773 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7774else 7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7776for as_dir in $PATH 7777do 7778 IFS=$as_save_IFS 7779 test -z "$as_dir" && as_dir=. 7780 for ac_exec_ext in '' $ac_executable_extensions; do 7781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7782 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7784 break 2 7785 fi 7786done 7787 done 7788IFS=$as_save_IFS 7789 7790fi 7791fi 7792ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7793if test -n "$ac_ct_DSYMUTIL"; then 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7795$as_echo "$ac_ct_DSYMUTIL" >&6; } 7796else 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7798$as_echo "no" >&6; } 7799fi 7800 7801 if test "x$ac_ct_DSYMUTIL" = x; then 7802 DSYMUTIL=":" 7803 else 7804 case $cross_compiling:$ac_tool_warned in 7805yes:) 7806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7808ac_tool_warned=yes ;; 7809esac 7810 DSYMUTIL=$ac_ct_DSYMUTIL 7811 fi 7812else 7813 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7814fi 7815 7816 if test -n "$ac_tool_prefix"; then 7817 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7818set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7820$as_echo_n "checking for $ac_word... " >&6; } 7821if ${ac_cv_prog_NMEDIT+:} false; then : 7822 $as_echo_n "(cached) " >&6 7823else 7824 if test -n "$NMEDIT"; then 7825 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7826else 7827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7828for as_dir in $PATH 7829do 7830 IFS=$as_save_IFS 7831 test -z "$as_dir" && as_dir=. 7832 for ac_exec_ext in '' $ac_executable_extensions; do 7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7834 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7836 break 2 7837 fi 7838done 7839 done 7840IFS=$as_save_IFS 7841 7842fi 7843fi 7844NMEDIT=$ac_cv_prog_NMEDIT 7845if test -n "$NMEDIT"; then 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7847$as_echo "$NMEDIT" >&6; } 7848else 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7850$as_echo "no" >&6; } 7851fi 7852 7853 7854fi 7855if test -z "$ac_cv_prog_NMEDIT"; then 7856 ac_ct_NMEDIT=$NMEDIT 7857 # Extract the first word of "nmedit", so it can be a program name with args. 7858set dummy nmedit; ac_word=$2 7859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7860$as_echo_n "checking for $ac_word... " >&6; } 7861if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7862 $as_echo_n "(cached) " >&6 7863else 7864 if test -n "$ac_ct_NMEDIT"; then 7865 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7866else 7867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7868for as_dir in $PATH 7869do 7870 IFS=$as_save_IFS 7871 test -z "$as_dir" && as_dir=. 7872 for ac_exec_ext in '' $ac_executable_extensions; do 7873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7874 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7876 break 2 7877 fi 7878done 7879 done 7880IFS=$as_save_IFS 7881 7882fi 7883fi 7884ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7885if test -n "$ac_ct_NMEDIT"; then 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7887$as_echo "$ac_ct_NMEDIT" >&6; } 7888else 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7890$as_echo "no" >&6; } 7891fi 7892 7893 if test "x$ac_ct_NMEDIT" = x; then 7894 NMEDIT=":" 7895 else 7896 case $cross_compiling:$ac_tool_warned in 7897yes:) 7898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7900ac_tool_warned=yes ;; 7901esac 7902 NMEDIT=$ac_ct_NMEDIT 7903 fi 7904else 7905 NMEDIT="$ac_cv_prog_NMEDIT" 7906fi 7907 7908 if test -n "$ac_tool_prefix"; then 7909 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7910set dummy ${ac_tool_prefix}lipo; ac_word=$2 7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7912$as_echo_n "checking for $ac_word... " >&6; } 7913if ${ac_cv_prog_LIPO+:} false; then : 7914 $as_echo_n "(cached) " >&6 7915else 7916 if test -n "$LIPO"; then 7917 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7918else 7919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7920for as_dir in $PATH 7921do 7922 IFS=$as_save_IFS 7923 test -z "$as_dir" && as_dir=. 7924 for ac_exec_ext in '' $ac_executable_extensions; do 7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7926 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7928 break 2 7929 fi 7930done 7931 done 7932IFS=$as_save_IFS 7933 7934fi 7935fi 7936LIPO=$ac_cv_prog_LIPO 7937if test -n "$LIPO"; then 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7939$as_echo "$LIPO" >&6; } 7940else 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7942$as_echo "no" >&6; } 7943fi 7944 7945 7946fi 7947if test -z "$ac_cv_prog_LIPO"; then 7948 ac_ct_LIPO=$LIPO 7949 # Extract the first word of "lipo", so it can be a program name with args. 7950set dummy lipo; ac_word=$2 7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7952$as_echo_n "checking for $ac_word... " >&6; } 7953if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7954 $as_echo_n "(cached) " >&6 7955else 7956 if test -n "$ac_ct_LIPO"; then 7957 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7958else 7959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7960for as_dir in $PATH 7961do 7962 IFS=$as_save_IFS 7963 test -z "$as_dir" && as_dir=. 7964 for ac_exec_ext in '' $ac_executable_extensions; do 7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7966 ac_cv_prog_ac_ct_LIPO="lipo" 7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7968 break 2 7969 fi 7970done 7971 done 7972IFS=$as_save_IFS 7973 7974fi 7975fi 7976ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7977if test -n "$ac_ct_LIPO"; then 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7979$as_echo "$ac_ct_LIPO" >&6; } 7980else 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7982$as_echo "no" >&6; } 7983fi 7984 7985 if test "x$ac_ct_LIPO" = x; then 7986 LIPO=":" 7987 else 7988 case $cross_compiling:$ac_tool_warned in 7989yes:) 7990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7992ac_tool_warned=yes ;; 7993esac 7994 LIPO=$ac_ct_LIPO 7995 fi 7996else 7997 LIPO="$ac_cv_prog_LIPO" 7998fi 7999 8000 if test -n "$ac_tool_prefix"; then 8001 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8002set dummy ${ac_tool_prefix}otool; ac_word=$2 8003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8004$as_echo_n "checking for $ac_word... " >&6; } 8005if ${ac_cv_prog_OTOOL+:} false; then : 8006 $as_echo_n "(cached) " >&6 8007else 8008 if test -n "$OTOOL"; then 8009 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8010else 8011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8012for as_dir in $PATH 8013do 8014 IFS=$as_save_IFS 8015 test -z "$as_dir" && as_dir=. 8016 for ac_exec_ext in '' $ac_executable_extensions; do 8017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8018 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8020 break 2 8021 fi 8022done 8023 done 8024IFS=$as_save_IFS 8025 8026fi 8027fi 8028OTOOL=$ac_cv_prog_OTOOL 8029if test -n "$OTOOL"; then 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8031$as_echo "$OTOOL" >&6; } 8032else 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8034$as_echo "no" >&6; } 8035fi 8036 8037 8038fi 8039if test -z "$ac_cv_prog_OTOOL"; then 8040 ac_ct_OTOOL=$OTOOL 8041 # Extract the first word of "otool", so it can be a program name with args. 8042set dummy otool; ac_word=$2 8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8044$as_echo_n "checking for $ac_word... " >&6; } 8045if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8046 $as_echo_n "(cached) " >&6 8047else 8048 if test -n "$ac_ct_OTOOL"; then 8049 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8050else 8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8052for as_dir in $PATH 8053do 8054 IFS=$as_save_IFS 8055 test -z "$as_dir" && as_dir=. 8056 for ac_exec_ext in '' $ac_executable_extensions; do 8057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8058 ac_cv_prog_ac_ct_OTOOL="otool" 8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8060 break 2 8061 fi 8062done 8063 done 8064IFS=$as_save_IFS 8065 8066fi 8067fi 8068ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8069if test -n "$ac_ct_OTOOL"; then 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8071$as_echo "$ac_ct_OTOOL" >&6; } 8072else 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8074$as_echo "no" >&6; } 8075fi 8076 8077 if test "x$ac_ct_OTOOL" = x; then 8078 OTOOL=":" 8079 else 8080 case $cross_compiling:$ac_tool_warned in 8081yes:) 8082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8084ac_tool_warned=yes ;; 8085esac 8086 OTOOL=$ac_ct_OTOOL 8087 fi 8088else 8089 OTOOL="$ac_cv_prog_OTOOL" 8090fi 8091 8092 if test -n "$ac_tool_prefix"; then 8093 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8094set dummy ${ac_tool_prefix}otool64; ac_word=$2 8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8096$as_echo_n "checking for $ac_word... " >&6; } 8097if ${ac_cv_prog_OTOOL64+:} false; then : 8098 $as_echo_n "(cached) " >&6 8099else 8100 if test -n "$OTOOL64"; then 8101 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8102else 8103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8104for as_dir in $PATH 8105do 8106 IFS=$as_save_IFS 8107 test -z "$as_dir" && as_dir=. 8108 for ac_exec_ext in '' $ac_executable_extensions; do 8109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8110 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8112 break 2 8113 fi 8114done 8115 done 8116IFS=$as_save_IFS 8117 8118fi 8119fi 8120OTOOL64=$ac_cv_prog_OTOOL64 8121if test -n "$OTOOL64"; then 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8123$as_echo "$OTOOL64" >&6; } 8124else 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8126$as_echo "no" >&6; } 8127fi 8128 8129 8130fi 8131if test -z "$ac_cv_prog_OTOOL64"; then 8132 ac_ct_OTOOL64=$OTOOL64 8133 # Extract the first word of "otool64", so it can be a program name with args. 8134set dummy otool64; ac_word=$2 8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8136$as_echo_n "checking for $ac_word... " >&6; } 8137if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8138 $as_echo_n "(cached) " >&6 8139else 8140 if test -n "$ac_ct_OTOOL64"; then 8141 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8142else 8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8144for as_dir in $PATH 8145do 8146 IFS=$as_save_IFS 8147 test -z "$as_dir" && as_dir=. 8148 for ac_exec_ext in '' $ac_executable_extensions; do 8149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8150 ac_cv_prog_ac_ct_OTOOL64="otool64" 8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8152 break 2 8153 fi 8154done 8155 done 8156IFS=$as_save_IFS 8157 8158fi 8159fi 8160ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8161if test -n "$ac_ct_OTOOL64"; then 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8163$as_echo "$ac_ct_OTOOL64" >&6; } 8164else 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8166$as_echo "no" >&6; } 8167fi 8168 8169 if test "x$ac_ct_OTOOL64" = x; then 8170 OTOOL64=":" 8171 else 8172 case $cross_compiling:$ac_tool_warned in 8173yes:) 8174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8176ac_tool_warned=yes ;; 8177esac 8178 OTOOL64=$ac_ct_OTOOL64 8179 fi 8180else 8181 OTOOL64="$ac_cv_prog_OTOOL64" 8182fi 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8211$as_echo_n "checking for -single_module linker flag... " >&6; } 8212if ${lt_cv_apple_cc_single_mod+:} false; then : 8213 $as_echo_n "(cached) " >&6 8214else 8215 lt_cv_apple_cc_single_mod=no 8216 if test -z "$LT_MULTI_MODULE"; then 8217 # By default we will add the -single_module flag. You can override 8218 # by either setting the environment variable LT_MULTI_MODULE 8219 # non-empty at configure time, or by adding -multi_module to the 8220 # link flags. 8221 rm -rf libconftest.dylib* 8222 echo "int foo(void){return 1;}" > conftest.c 8223 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8224-dynamiclib -Wl,-single_module conftest.c" >&5 8225 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8226 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8227 _lt_result=$? 8228 # If there is a non-empty error log, and "single_module" 8229 # appears in it, assume the flag caused a linker warning 8230 if test -s conftest.err && $GREP single_module conftest.err; then 8231 cat conftest.err >&5 8232 # Otherwise, if the output was created with a 0 exit code from 8233 # the compiler, it worked. 8234 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8235 lt_cv_apple_cc_single_mod=yes 8236 else 8237 cat conftest.err >&5 8238 fi 8239 rm -rf libconftest.dylib* 8240 rm -f conftest.* 8241 fi 8242fi 8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8244$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8245 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8247$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8248if ${lt_cv_ld_exported_symbols_list+:} false; then : 8249 $as_echo_n "(cached) " >&6 8250else 8251 lt_cv_ld_exported_symbols_list=no 8252 save_LDFLAGS=$LDFLAGS 8253 echo "_main" > conftest.sym 8254 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8256/* end confdefs.h. */ 8257 8258int 8259main () 8260{ 8261 8262 ; 8263 return 0; 8264} 8265_ACEOF 8266if ac_fn_c_try_link "$LINENO"; then : 8267 lt_cv_ld_exported_symbols_list=yes 8268else 8269 lt_cv_ld_exported_symbols_list=no 8270fi 8271rm -f core conftest.err conftest.$ac_objext \ 8272 conftest$ac_exeext conftest.$ac_ext 8273 LDFLAGS=$save_LDFLAGS 8274 8275fi 8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8277$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8278 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8280$as_echo_n "checking for -force_load linker flag... " >&6; } 8281if ${lt_cv_ld_force_load+:} false; then : 8282 $as_echo_n "(cached) " >&6 8283else 8284 lt_cv_ld_force_load=no 8285 cat > conftest.c << _LT_EOF 8286int forced_loaded() { return 2;} 8287_LT_EOF 8288 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8289 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8290 echo "$AR cru libconftest.a conftest.o" >&5 8291 $AR cru libconftest.a conftest.o 2>&5 8292 echo "$RANLIB libconftest.a" >&5 8293 $RANLIB libconftest.a 2>&5 8294 cat > conftest.c << _LT_EOF 8295int main() { return 0;} 8296_LT_EOF 8297 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8298 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8299 _lt_result=$? 8300 if test -s conftest.err && $GREP force_load conftest.err; then 8301 cat conftest.err >&5 8302 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8303 lt_cv_ld_force_load=yes 8304 else 8305 cat conftest.err >&5 8306 fi 8307 rm -f conftest.err libconftest.a conftest conftest.c 8308 rm -rf conftest.dSYM 8309 8310fi 8311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8312$as_echo "$lt_cv_ld_force_load" >&6; } 8313 case $host_os in 8314 rhapsody* | darwin1.[012]) 8315 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8316 darwin1.*) 8317 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8318 darwin*) # darwin 5.x on 8319 # if running on 10.5 or later, the deployment target defaults 8320 # to the OS version, if on x86, and 10.4, the deployment 8321 # target defaults to 10.4. Don't you love it? 8322 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8323 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8324 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8325 10.[012][,.]*) 8326 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8327 10.*) 8328 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8329 esac 8330 ;; 8331 esac 8332 if test yes = "$lt_cv_apple_cc_single_mod"; then 8333 _lt_dar_single_mod='$single_module' 8334 fi 8335 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8336 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8337 else 8338 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8339 fi 8340 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8341 _lt_dsymutil='~$DSYMUTIL $lib || :' 8342 else 8343 _lt_dsymutil= 8344 fi 8345 ;; 8346 esac 8347 8348# func_munge_path_list VARIABLE PATH 8349# ----------------------------------- 8350# VARIABLE is name of variable containing _space_ separated list of 8351# directories to be munged by the contents of PATH, which is string 8352# having a format: 8353# "DIR[:DIR]:" 8354# string "DIR[ DIR]" will be prepended to VARIABLE 8355# ":DIR[:DIR]" 8356# string "DIR[ DIR]" will be appended to VARIABLE 8357# "DIRP[:DIRP]::[DIRA:]DIRA" 8358# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8359# "DIRA[ DIRA]" will be appended to VARIABLE 8360# "DIR[:DIR]" 8361# VARIABLE will be replaced by "DIR[ DIR]" 8362func_munge_path_list () 8363{ 8364 case x$2 in 8365 x) 8366 ;; 8367 *:) 8368 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8369 ;; 8370 x:*) 8371 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8372 ;; 8373 *::*) 8374 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8375 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8376 ;; 8377 *) 8378 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8379 ;; 8380 esac 8381} 8382 8383for ac_header in dlfcn.h 8384do : 8385 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8386" 8387if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8388 cat >>confdefs.h <<_ACEOF 8389#define HAVE_DLFCN_H 1 8390_ACEOF 8391 8392fi 8393 8394done 8395 8396 8397 8398 8399 8400# Set options 8401enable_win32_dll=yes 8402 8403case $host in 8404*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8405 if test -n "$ac_tool_prefix"; then 8406 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8407set dummy ${ac_tool_prefix}as; ac_word=$2 8408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8409$as_echo_n "checking for $ac_word... " >&6; } 8410if ${ac_cv_prog_AS+:} false; then : 8411 $as_echo_n "(cached) " >&6 8412else 8413 if test -n "$AS"; then 8414 ac_cv_prog_AS="$AS" # Let the user override the test. 8415else 8416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8417for as_dir in $PATH 8418do 8419 IFS=$as_save_IFS 8420 test -z "$as_dir" && as_dir=. 8421 for ac_exec_ext in '' $ac_executable_extensions; do 8422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8423 ac_cv_prog_AS="${ac_tool_prefix}as" 8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8425 break 2 8426 fi 8427done 8428 done 8429IFS=$as_save_IFS 8430 8431fi 8432fi 8433AS=$ac_cv_prog_AS 8434if test -n "$AS"; then 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8436$as_echo "$AS" >&6; } 8437else 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8439$as_echo "no" >&6; } 8440fi 8441 8442 8443fi 8444if test -z "$ac_cv_prog_AS"; then 8445 ac_ct_AS=$AS 8446 # Extract the first word of "as", so it can be a program name with args. 8447set dummy as; ac_word=$2 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8449$as_echo_n "checking for $ac_word... " >&6; } 8450if ${ac_cv_prog_ac_ct_AS+:} false; then : 8451 $as_echo_n "(cached) " >&6 8452else 8453 if test -n "$ac_ct_AS"; then 8454 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8455else 8456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8457for as_dir in $PATH 8458do 8459 IFS=$as_save_IFS 8460 test -z "$as_dir" && as_dir=. 8461 for ac_exec_ext in '' $ac_executable_extensions; do 8462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8463 ac_cv_prog_ac_ct_AS="as" 8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8465 break 2 8466 fi 8467done 8468 done 8469IFS=$as_save_IFS 8470 8471fi 8472fi 8473ac_ct_AS=$ac_cv_prog_ac_ct_AS 8474if test -n "$ac_ct_AS"; then 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8476$as_echo "$ac_ct_AS" >&6; } 8477else 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8479$as_echo "no" >&6; } 8480fi 8481 8482 if test "x$ac_ct_AS" = x; then 8483 AS="false" 8484 else 8485 case $cross_compiling:$ac_tool_warned in 8486yes:) 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8489ac_tool_warned=yes ;; 8490esac 8491 AS=$ac_ct_AS 8492 fi 8493else 8494 AS="$ac_cv_prog_AS" 8495fi 8496 8497 if test -n "$ac_tool_prefix"; then 8498 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8499set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8501$as_echo_n "checking for $ac_word... " >&6; } 8502if ${ac_cv_prog_DLLTOOL+:} false; then : 8503 $as_echo_n "(cached) " >&6 8504else 8505 if test -n "$DLLTOOL"; then 8506 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8507else 8508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8509for as_dir in $PATH 8510do 8511 IFS=$as_save_IFS 8512 test -z "$as_dir" && as_dir=. 8513 for ac_exec_ext in '' $ac_executable_extensions; do 8514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8515 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8517 break 2 8518 fi 8519done 8520 done 8521IFS=$as_save_IFS 8522 8523fi 8524fi 8525DLLTOOL=$ac_cv_prog_DLLTOOL 8526if test -n "$DLLTOOL"; then 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8528$as_echo "$DLLTOOL" >&6; } 8529else 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8531$as_echo "no" >&6; } 8532fi 8533 8534 8535fi 8536if test -z "$ac_cv_prog_DLLTOOL"; then 8537 ac_ct_DLLTOOL=$DLLTOOL 8538 # Extract the first word of "dlltool", so it can be a program name with args. 8539set dummy dlltool; ac_word=$2 8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8541$as_echo_n "checking for $ac_word... " >&6; } 8542if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8543 $as_echo_n "(cached) " >&6 8544else 8545 if test -n "$ac_ct_DLLTOOL"; then 8546 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8547else 8548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8549for as_dir in $PATH 8550do 8551 IFS=$as_save_IFS 8552 test -z "$as_dir" && as_dir=. 8553 for ac_exec_ext in '' $ac_executable_extensions; do 8554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8555 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8557 break 2 8558 fi 8559done 8560 done 8561IFS=$as_save_IFS 8562 8563fi 8564fi 8565ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8566if test -n "$ac_ct_DLLTOOL"; then 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8568$as_echo "$ac_ct_DLLTOOL" >&6; } 8569else 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8571$as_echo "no" >&6; } 8572fi 8573 8574 if test "x$ac_ct_DLLTOOL" = x; then 8575 DLLTOOL="false" 8576 else 8577 case $cross_compiling:$ac_tool_warned in 8578yes:) 8579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8581ac_tool_warned=yes ;; 8582esac 8583 DLLTOOL=$ac_ct_DLLTOOL 8584 fi 8585else 8586 DLLTOOL="$ac_cv_prog_DLLTOOL" 8587fi 8588 8589 if test -n "$ac_tool_prefix"; then 8590 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8591set dummy ${ac_tool_prefix}objdump; ac_word=$2 8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8593$as_echo_n "checking for $ac_word... " >&6; } 8594if ${ac_cv_prog_OBJDUMP+:} false; then : 8595 $as_echo_n "(cached) " >&6 8596else 8597 if test -n "$OBJDUMP"; then 8598 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8599else 8600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8601for as_dir in $PATH 8602do 8603 IFS=$as_save_IFS 8604 test -z "$as_dir" && as_dir=. 8605 for ac_exec_ext in '' $ac_executable_extensions; do 8606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8607 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8609 break 2 8610 fi 8611done 8612 done 8613IFS=$as_save_IFS 8614 8615fi 8616fi 8617OBJDUMP=$ac_cv_prog_OBJDUMP 8618if test -n "$OBJDUMP"; then 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8620$as_echo "$OBJDUMP" >&6; } 8621else 8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8623$as_echo "no" >&6; } 8624fi 8625 8626 8627fi 8628if test -z "$ac_cv_prog_OBJDUMP"; then 8629 ac_ct_OBJDUMP=$OBJDUMP 8630 # Extract the first word of "objdump", so it can be a program name with args. 8631set dummy objdump; ac_word=$2 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8633$as_echo_n "checking for $ac_word... " >&6; } 8634if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8635 $as_echo_n "(cached) " >&6 8636else 8637 if test -n "$ac_ct_OBJDUMP"; then 8638 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8639else 8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8641for as_dir in $PATH 8642do 8643 IFS=$as_save_IFS 8644 test -z "$as_dir" && as_dir=. 8645 for ac_exec_ext in '' $ac_executable_extensions; do 8646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8647 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8649 break 2 8650 fi 8651done 8652 done 8653IFS=$as_save_IFS 8654 8655fi 8656fi 8657ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8658if test -n "$ac_ct_OBJDUMP"; then 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8660$as_echo "$ac_ct_OBJDUMP" >&6; } 8661else 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8663$as_echo "no" >&6; } 8664fi 8665 8666 if test "x$ac_ct_OBJDUMP" = x; then 8667 OBJDUMP="false" 8668 else 8669 case $cross_compiling:$ac_tool_warned in 8670yes:) 8671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8673ac_tool_warned=yes ;; 8674esac 8675 OBJDUMP=$ac_ct_OBJDUMP 8676 fi 8677else 8678 OBJDUMP="$ac_cv_prog_OBJDUMP" 8679fi 8680 8681 ;; 8682esac 8683 8684test -z "$AS" && AS=as 8685 8686 8687 8688 8689 8690test -z "$DLLTOOL" && DLLTOOL=dlltool 8691 8692 8693 8694 8695 8696test -z "$OBJDUMP" && OBJDUMP=objdump 8697 8698 8699 8700 8701 8702 8703 8704 enable_dlopen=no 8705 8706 8707 8708 # Check whether --enable-shared was given. 8709if test "${enable_shared+set}" = set; then : 8710 enableval=$enable_shared; p=${PACKAGE-default} 8711 case $enableval in 8712 yes) enable_shared=yes ;; 8713 no) enable_shared=no ;; 8714 *) 8715 enable_shared=no 8716 # Look at the argument we got. We use all the common list separators. 8717 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8718 for pkg in $enableval; do 8719 IFS=$lt_save_ifs 8720 if test "X$pkg" = "X$p"; then 8721 enable_shared=yes 8722 fi 8723 done 8724 IFS=$lt_save_ifs 8725 ;; 8726 esac 8727else 8728 enable_shared=yes 8729fi 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 # Check whether --enable-static was given. 8740if test "${enable_static+set}" = set; then : 8741 enableval=$enable_static; p=${PACKAGE-default} 8742 case $enableval in 8743 yes) enable_static=yes ;; 8744 no) enable_static=no ;; 8745 *) 8746 enable_static=no 8747 # Look at the argument we got. We use all the common list separators. 8748 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8749 for pkg in $enableval; do 8750 IFS=$lt_save_ifs 8751 if test "X$pkg" = "X$p"; then 8752 enable_static=yes 8753 fi 8754 done 8755 IFS=$lt_save_ifs 8756 ;; 8757 esac 8758else 8759 enable_static=yes 8760fi 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771# Check whether --with-pic was given. 8772if test "${with_pic+set}" = set; then : 8773 withval=$with_pic; lt_p=${PACKAGE-default} 8774 case $withval in 8775 yes|no) pic_mode=$withval ;; 8776 *) 8777 pic_mode=default 8778 # Look at the argument we got. We use all the common list separators. 8779 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8780 for lt_pkg in $withval; do 8781 IFS=$lt_save_ifs 8782 if test "X$lt_pkg" = "X$lt_p"; then 8783 pic_mode=yes 8784 fi 8785 done 8786 IFS=$lt_save_ifs 8787 ;; 8788 esac 8789else 8790 pic_mode=default 8791fi 8792 8793 8794 8795 8796 8797 8798 8799 8800 # Check whether --enable-fast-install was given. 8801if test "${enable_fast_install+set}" = set; then : 8802 enableval=$enable_fast_install; p=${PACKAGE-default} 8803 case $enableval in 8804 yes) enable_fast_install=yes ;; 8805 no) enable_fast_install=no ;; 8806 *) 8807 enable_fast_install=no 8808 # Look at the argument we got. We use all the common list separators. 8809 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8810 for pkg in $enableval; do 8811 IFS=$lt_save_ifs 8812 if test "X$pkg" = "X$p"; then 8813 enable_fast_install=yes 8814 fi 8815 done 8816 IFS=$lt_save_ifs 8817 ;; 8818 esac 8819else 8820 enable_fast_install=yes 8821fi 8822 8823 8824 8825 8826 8827 8828 8829 8830 shared_archive_member_spec= 8831case $host,$enable_shared in 8832power*-*-aix[5-9]*,yes) 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8834$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8835 8836# Check whether --with-aix-soname was given. 8837if test "${with_aix_soname+set}" = set; then : 8838 withval=$with_aix_soname; case $withval in 8839 aix|svr4|both) 8840 ;; 8841 *) 8842 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8843 ;; 8844 esac 8845 lt_cv_with_aix_soname=$with_aix_soname 8846else 8847 if ${lt_cv_with_aix_soname+:} false; then : 8848 $as_echo_n "(cached) " >&6 8849else 8850 lt_cv_with_aix_soname=aix 8851fi 8852 8853 with_aix_soname=$lt_cv_with_aix_soname 8854fi 8855 8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8857$as_echo "$with_aix_soname" >&6; } 8858 if test aix != "$with_aix_soname"; then 8859 # For the AIX way of multilib, we name the shared archive member 8860 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8861 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8862 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8863 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8864 if test 64 = "${OBJECT_MODE-32}"; then 8865 shared_archive_member_spec=shr_64 8866 else 8867 shared_archive_member_spec=shr 8868 fi 8869 fi 8870 ;; 8871*) 8872 with_aix_soname=aix 8873 ;; 8874esac 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885# This can be used to rebuild libtool when needed 8886LIBTOOL_DEPS=$ltmain 8887 8888# Always use our own libtool. 8889LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920test -z "$LN_S" && LN_S="ln -s" 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935if test -n "${ZSH_VERSION+set}"; then 8936 setopt NO_GLOB_SUBST 8937fi 8938 8939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8940$as_echo_n "checking for objdir... " >&6; } 8941if ${lt_cv_objdir+:} false; then : 8942 $as_echo_n "(cached) " >&6 8943else 8944 rm -f .libs 2>/dev/null 8945mkdir .libs 2>/dev/null 8946if test -d .libs; then 8947 lt_cv_objdir=.libs 8948else 8949 # MS-DOS does not allow filenames that begin with a dot. 8950 lt_cv_objdir=_libs 8951fi 8952rmdir .libs 2>/dev/null 8953fi 8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8955$as_echo "$lt_cv_objdir" >&6; } 8956objdir=$lt_cv_objdir 8957 8958 8959 8960 8961 8962cat >>confdefs.h <<_ACEOF 8963#define LT_OBJDIR "$lt_cv_objdir/" 8964_ACEOF 8965 8966 8967 8968 8969case $host_os in 8970aix3*) 8971 # AIX sometimes has problems with the GCC collect2 program. For some 8972 # reason, if we set the COLLECT_NAMES environment variable, the problems 8973 # vanish in a puff of smoke. 8974 if test set != "${COLLECT_NAMES+set}"; then 8975 COLLECT_NAMES= 8976 export COLLECT_NAMES 8977 fi 8978 ;; 8979esac 8980 8981# Global variables: 8982ofile=libtool 8983can_build_shared=yes 8984 8985# All known linkers require a '.a' archive for static linking (except MSVC, 8986# which needs '.lib'). 8987libext=a 8988 8989with_gnu_ld=$lt_cv_prog_gnu_ld 8990 8991old_CC=$CC 8992old_CFLAGS=$CFLAGS 8993 8994# Set sane defaults for various variables 8995test -z "$CC" && CC=cc 8996test -z "$LTCC" && LTCC=$CC 8997test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8998test -z "$LD" && LD=ld 8999test -z "$ac_objext" && ac_objext=o 9000 9001func_cc_basename $compiler 9002cc_basename=$func_cc_basename_result 9003 9004 9005# Only perform the check for file, if the check method requires it 9006test -z "$MAGIC_CMD" && MAGIC_CMD=file 9007case $deplibs_check_method in 9008file_magic*) 9009 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9011$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9012if ${lt_cv_path_MAGIC_CMD+:} false; then : 9013 $as_echo_n "(cached) " >&6 9014else 9015 case $MAGIC_CMD in 9016[\\/*] | ?:[\\/]*) 9017 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9018 ;; 9019*) 9020 lt_save_MAGIC_CMD=$MAGIC_CMD 9021 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9022 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9023 for ac_dir in $ac_dummy; do 9024 IFS=$lt_save_ifs 9025 test -z "$ac_dir" && ac_dir=. 9026 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9027 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9028 if test -n "$file_magic_test_file"; then 9029 case $deplibs_check_method in 9030 "file_magic "*) 9031 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9032 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9033 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9034 $EGREP "$file_magic_regex" > /dev/null; then 9035 : 9036 else 9037 cat <<_LT_EOF 1>&2 9038 9039*** Warning: the command libtool uses to detect shared libraries, 9040*** $file_magic_cmd, produces output that libtool cannot recognize. 9041*** The result is that libtool may fail to recognize shared libraries 9042*** as such. This will affect the creation of libtool libraries that 9043*** depend on shared libraries, but programs linked with such libtool 9044*** libraries will work regardless of this problem. Nevertheless, you 9045*** may want to report the problem to your system manager and/or to 9046*** bug-libtool@gnu.org 9047 9048_LT_EOF 9049 fi ;; 9050 esac 9051 fi 9052 break 9053 fi 9054 done 9055 IFS=$lt_save_ifs 9056 MAGIC_CMD=$lt_save_MAGIC_CMD 9057 ;; 9058esac 9059fi 9060 9061MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9062if test -n "$MAGIC_CMD"; then 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9064$as_echo "$MAGIC_CMD" >&6; } 9065else 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9067$as_echo "no" >&6; } 9068fi 9069 9070 9071 9072 9073 9074if test -z "$lt_cv_path_MAGIC_CMD"; then 9075 if test -n "$ac_tool_prefix"; then 9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9077$as_echo_n "checking for file... " >&6; } 9078if ${lt_cv_path_MAGIC_CMD+:} false; then : 9079 $as_echo_n "(cached) " >&6 9080else 9081 case $MAGIC_CMD in 9082[\\/*] | ?:[\\/]*) 9083 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9084 ;; 9085*) 9086 lt_save_MAGIC_CMD=$MAGIC_CMD 9087 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9088 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9089 for ac_dir in $ac_dummy; do 9090 IFS=$lt_save_ifs 9091 test -z "$ac_dir" && ac_dir=. 9092 if test -f "$ac_dir/file"; then 9093 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9094 if test -n "$file_magic_test_file"; then 9095 case $deplibs_check_method in 9096 "file_magic "*) 9097 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9098 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9099 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9100 $EGREP "$file_magic_regex" > /dev/null; then 9101 : 9102 else 9103 cat <<_LT_EOF 1>&2 9104 9105*** Warning: the command libtool uses to detect shared libraries, 9106*** $file_magic_cmd, produces output that libtool cannot recognize. 9107*** The result is that libtool may fail to recognize shared libraries 9108*** as such. This will affect the creation of libtool libraries that 9109*** depend on shared libraries, but programs linked with such libtool 9110*** libraries will work regardless of this problem. Nevertheless, you 9111*** may want to report the problem to your system manager and/or to 9112*** bug-libtool@gnu.org 9113 9114_LT_EOF 9115 fi ;; 9116 esac 9117 fi 9118 break 9119 fi 9120 done 9121 IFS=$lt_save_ifs 9122 MAGIC_CMD=$lt_save_MAGIC_CMD 9123 ;; 9124esac 9125fi 9126 9127MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9128if test -n "$MAGIC_CMD"; then 9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9130$as_echo "$MAGIC_CMD" >&6; } 9131else 9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9133$as_echo "no" >&6; } 9134fi 9135 9136 9137 else 9138 MAGIC_CMD=: 9139 fi 9140fi 9141 9142 fi 9143 ;; 9144esac 9145 9146# Use C for the default configuration in the libtool script 9147 9148lt_save_CC=$CC 9149ac_ext=c 9150ac_cpp='$CPP $CPPFLAGS' 9151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9153ac_compiler_gnu=$ac_cv_c_compiler_gnu 9154 9155 9156# Source file extension for C test sources. 9157ac_ext=c 9158 9159# Object file extension for compiled C test sources. 9160objext=o 9161objext=$objext 9162 9163# Code to be used in simple compile tests 9164lt_simple_compile_test_code="int some_variable = 0;" 9165 9166# Code to be used in simple link tests 9167lt_simple_link_test_code='int main(){return(0);}' 9168 9169 9170 9171 9172 9173 9174 9175# If no C compiler was specified, use CC. 9176LTCC=${LTCC-"$CC"} 9177 9178# If no C compiler flags were specified, use CFLAGS. 9179LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9180 9181# Allow CC to be a program name with arguments. 9182compiler=$CC 9183 9184# Save the default compiler, since it gets overwritten when the other 9185# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9186compiler_DEFAULT=$CC 9187 9188# save warnings/boilerplate of simple test code 9189ac_outfile=conftest.$ac_objext 9190echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9191eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9192_lt_compiler_boilerplate=`cat conftest.err` 9193$RM conftest* 9194 9195ac_outfile=conftest.$ac_objext 9196echo "$lt_simple_link_test_code" >conftest.$ac_ext 9197eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9198_lt_linker_boilerplate=`cat conftest.err` 9199$RM -r conftest* 9200 9201 9202## CAVEAT EMPTOR: 9203## There is no encapsulation within the following macros, do not change 9204## the running order or otherwise move them around unless you know exactly 9205## what you are doing... 9206if test -n "$compiler"; then 9207 9208lt_prog_compiler_no_builtin_flag= 9209 9210if test yes = "$GCC"; then 9211 case $cc_basename in 9212 nvcc*) 9213 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9214 *) 9215 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9216 esac 9217 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9219$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9220if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9221 $as_echo_n "(cached) " >&6 9222else 9223 lt_cv_prog_compiler_rtti_exceptions=no 9224 ac_outfile=conftest.$ac_objext 9225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9226 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9227 # Insert the option either (1) after the last *FLAGS variable, or 9228 # (2) before a word containing "conftest.", or (3) at the end. 9229 # Note that $ac_compile itself does not contain backslashes and begins 9230 # with a dollar sign (not a hyphen), so the echo should work correctly. 9231 # The option is referenced via a variable to avoid confusing sed. 9232 lt_compile=`echo "$ac_compile" | $SED \ 9233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9235 -e 's:$: $lt_compiler_flag:'` 9236 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9237 (eval "$lt_compile" 2>conftest.err) 9238 ac_status=$? 9239 cat conftest.err >&5 9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9241 if (exit $ac_status) && test -s "$ac_outfile"; then 9242 # The compiler can only warn and ignore the option if not recognized 9243 # So say no if there are warnings other than the usual output. 9244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9246 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9247 lt_cv_prog_compiler_rtti_exceptions=yes 9248 fi 9249 fi 9250 $RM conftest* 9251 9252fi 9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9254$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9255 9256if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9257 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9258else 9259 : 9260fi 9261 9262fi 9263 9264 9265 9266 9267 9268 9269 lt_prog_compiler_wl= 9270lt_prog_compiler_pic= 9271lt_prog_compiler_static= 9272 9273 9274 if test yes = "$GCC"; then 9275 lt_prog_compiler_wl='-Wl,' 9276 lt_prog_compiler_static='-static' 9277 9278 case $host_os in 9279 aix*) 9280 # All AIX code is PIC. 9281 if test ia64 = "$host_cpu"; then 9282 # AIX 5 now supports IA64 processor 9283 lt_prog_compiler_static='-Bstatic' 9284 fi 9285 lt_prog_compiler_pic='-fPIC' 9286 ;; 9287 9288 amigaos*) 9289 case $host_cpu in 9290 powerpc) 9291 # see comment about AmigaOS4 .so support 9292 lt_prog_compiler_pic='-fPIC' 9293 ;; 9294 m68k) 9295 # FIXME: we need at least 68020 code to build shared libraries, but 9296 # adding the '-m68020' flag to GCC prevents building anything better, 9297 # like '-m68040'. 9298 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9299 ;; 9300 esac 9301 ;; 9302 9303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9304 # PIC is the default for these OSes. 9305 ;; 9306 9307 mingw* | cygwin* | pw32* | os2* | cegcc*) 9308 # This hack is so that the source file can tell whether it is being 9309 # built for inclusion in a dll (and should export symbols for example). 9310 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9311 # (--disable-auto-import) libraries 9312 lt_prog_compiler_pic='-DDLL_EXPORT' 9313 case $host_os in 9314 os2*) 9315 lt_prog_compiler_static='$wl-static' 9316 ;; 9317 esac 9318 ;; 9319 9320 darwin* | rhapsody*) 9321 # PIC is the default on this platform 9322 # Common symbols not allowed in MH_DYLIB files 9323 lt_prog_compiler_pic='-fno-common' 9324 ;; 9325 9326 haiku*) 9327 # PIC is the default for Haiku. 9328 # The "-static" flag exists, but is broken. 9329 lt_prog_compiler_static= 9330 ;; 9331 9332 hpux*) 9333 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9334 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9335 # sets the default TLS model and affects inlining. 9336 case $host_cpu in 9337 hppa*64*) 9338 # +Z the default 9339 ;; 9340 *) 9341 lt_prog_compiler_pic='-fPIC' 9342 ;; 9343 esac 9344 ;; 9345 9346 interix[3-9]*) 9347 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9348 # Instead, we relocate shared libraries at runtime. 9349 ;; 9350 9351 msdosdjgpp*) 9352 # Just because we use GCC doesn't mean we suddenly get shared libraries 9353 # on systems that don't support them. 9354 lt_prog_compiler_can_build_shared=no 9355 enable_shared=no 9356 ;; 9357 9358 *nto* | *qnx*) 9359 # QNX uses GNU C++, but need to define -shared option too, otherwise 9360 # it will coredump. 9361 lt_prog_compiler_pic='-fPIC -shared' 9362 ;; 9363 9364 sysv4*MP*) 9365 if test -d /usr/nec; then 9366 lt_prog_compiler_pic=-Kconform_pic 9367 fi 9368 ;; 9369 9370 *) 9371 lt_prog_compiler_pic='-fPIC' 9372 ;; 9373 esac 9374 9375 case $cc_basename in 9376 nvcc*) # Cuda Compiler Driver 2.2 9377 lt_prog_compiler_wl='-Xlinker ' 9378 if test -n "$lt_prog_compiler_pic"; then 9379 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9380 fi 9381 ;; 9382 esac 9383 else 9384 # PORTME Check for flag to pass linker flags through the system compiler. 9385 case $host_os in 9386 aix*) 9387 lt_prog_compiler_wl='-Wl,' 9388 if test ia64 = "$host_cpu"; then 9389 # AIX 5 now supports IA64 processor 9390 lt_prog_compiler_static='-Bstatic' 9391 else 9392 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9393 fi 9394 ;; 9395 9396 darwin* | rhapsody*) 9397 # PIC is the default on this platform 9398 # Common symbols not allowed in MH_DYLIB files 9399 lt_prog_compiler_pic='-fno-common' 9400 case $cc_basename in 9401 nagfor*) 9402 # NAG Fortran compiler 9403 lt_prog_compiler_wl='-Wl,-Wl,,' 9404 lt_prog_compiler_pic='-PIC' 9405 lt_prog_compiler_static='-Bstatic' 9406 ;; 9407 esac 9408 ;; 9409 9410 mingw* | cygwin* | pw32* | os2* | cegcc*) 9411 # This hack is so that the source file can tell whether it is being 9412 # built for inclusion in a dll (and should export symbols for example). 9413 lt_prog_compiler_pic='-DDLL_EXPORT' 9414 case $host_os in 9415 os2*) 9416 lt_prog_compiler_static='$wl-static' 9417 ;; 9418 esac 9419 ;; 9420 9421 hpux9* | hpux10* | hpux11*) 9422 lt_prog_compiler_wl='-Wl,' 9423 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9424 # not for PA HP-UX. 9425 case $host_cpu in 9426 hppa*64*|ia64*) 9427 # +Z the default 9428 ;; 9429 *) 9430 lt_prog_compiler_pic='+Z' 9431 ;; 9432 esac 9433 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9434 lt_prog_compiler_static='$wl-a ${wl}archive' 9435 ;; 9436 9437 irix5* | irix6* | nonstopux*) 9438 lt_prog_compiler_wl='-Wl,' 9439 # PIC (with -KPIC) is the default. 9440 lt_prog_compiler_static='-non_shared' 9441 ;; 9442 9443 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9444 case $cc_basename in 9445 # old Intel for x86_64, which still supported -KPIC. 9446 ecc*) 9447 lt_prog_compiler_wl='-Wl,' 9448 lt_prog_compiler_pic='-KPIC' 9449 lt_prog_compiler_static='-static' 9450 ;; 9451 # icc used to be incompatible with GCC. 9452 # ICC 10 doesn't accept -KPIC any more. 9453 icc* | ifort*) 9454 lt_prog_compiler_wl='-Wl,' 9455 lt_prog_compiler_pic='-fPIC' 9456 lt_prog_compiler_static='-static' 9457 ;; 9458 # Lahey Fortran 8.1. 9459 lf95*) 9460 lt_prog_compiler_wl='-Wl,' 9461 lt_prog_compiler_pic='--shared' 9462 lt_prog_compiler_static='--static' 9463 ;; 9464 nagfor*) 9465 # NAG Fortran compiler 9466 lt_prog_compiler_wl='-Wl,-Wl,,' 9467 lt_prog_compiler_pic='-PIC' 9468 lt_prog_compiler_static='-Bstatic' 9469 ;; 9470 tcc*) 9471 # Fabrice Bellard et al's Tiny C Compiler 9472 lt_prog_compiler_wl='-Wl,' 9473 lt_prog_compiler_pic='-fPIC' 9474 lt_prog_compiler_static='-static' 9475 ;; 9476 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9477 # Portland Group compilers (*not* the Pentium gcc compiler, 9478 # which looks to be a dead project) 9479 lt_prog_compiler_wl='-Wl,' 9480 lt_prog_compiler_pic='-fpic' 9481 lt_prog_compiler_static='-Bstatic' 9482 ;; 9483 ccc*) 9484 lt_prog_compiler_wl='-Wl,' 9485 # All Alpha code is PIC. 9486 lt_prog_compiler_static='-non_shared' 9487 ;; 9488 xl* | bgxl* | bgf* | mpixl*) 9489 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9490 lt_prog_compiler_wl='-Wl,' 9491 lt_prog_compiler_pic='-qpic' 9492 lt_prog_compiler_static='-qstaticlink' 9493 ;; 9494 *) 9495 case `$CC -V 2>&1 | sed 5q` in 9496 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9497 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9498 lt_prog_compiler_pic='-KPIC' 9499 lt_prog_compiler_static='-Bstatic' 9500 lt_prog_compiler_wl='' 9501 ;; 9502 *Sun\ F* | *Sun*Fortran*) 9503 lt_prog_compiler_pic='-KPIC' 9504 lt_prog_compiler_static='-Bstatic' 9505 lt_prog_compiler_wl='-Qoption ld ' 9506 ;; 9507 *Sun\ C*) 9508 # Sun C 5.9 9509 lt_prog_compiler_pic='-KPIC' 9510 lt_prog_compiler_static='-Bstatic' 9511 lt_prog_compiler_wl='-Wl,' 9512 ;; 9513 *Intel*\ [CF]*Compiler*) 9514 lt_prog_compiler_wl='-Wl,' 9515 lt_prog_compiler_pic='-fPIC' 9516 lt_prog_compiler_static='-static' 9517 ;; 9518 *Portland\ Group*) 9519 lt_prog_compiler_wl='-Wl,' 9520 lt_prog_compiler_pic='-fpic' 9521 lt_prog_compiler_static='-Bstatic' 9522 ;; 9523 esac 9524 ;; 9525 esac 9526 ;; 9527 9528 newsos6) 9529 lt_prog_compiler_pic='-KPIC' 9530 lt_prog_compiler_static='-Bstatic' 9531 ;; 9532 9533 *nto* | *qnx*) 9534 # QNX uses GNU C++, but need to define -shared option too, otherwise 9535 # it will coredump. 9536 lt_prog_compiler_pic='-fPIC -shared' 9537 ;; 9538 9539 osf3* | osf4* | osf5*) 9540 lt_prog_compiler_wl='-Wl,' 9541 # All OSF/1 code is PIC. 9542 lt_prog_compiler_static='-non_shared' 9543 ;; 9544 9545 rdos*) 9546 lt_prog_compiler_static='-non_shared' 9547 ;; 9548 9549 solaris*) 9550 lt_prog_compiler_pic='-KPIC' 9551 lt_prog_compiler_static='-Bstatic' 9552 case $cc_basename in 9553 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9554 lt_prog_compiler_wl='-Qoption ld ';; 9555 *) 9556 lt_prog_compiler_wl='-Wl,';; 9557 esac 9558 ;; 9559 9560 sunos4*) 9561 lt_prog_compiler_wl='-Qoption ld ' 9562 lt_prog_compiler_pic='-PIC' 9563 lt_prog_compiler_static='-Bstatic' 9564 ;; 9565 9566 sysv4 | sysv4.2uw2* | sysv4.3*) 9567 lt_prog_compiler_wl='-Wl,' 9568 lt_prog_compiler_pic='-KPIC' 9569 lt_prog_compiler_static='-Bstatic' 9570 ;; 9571 9572 sysv4*MP*) 9573 if test -d /usr/nec; then 9574 lt_prog_compiler_pic='-Kconform_pic' 9575 lt_prog_compiler_static='-Bstatic' 9576 fi 9577 ;; 9578 9579 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9580 lt_prog_compiler_wl='-Wl,' 9581 lt_prog_compiler_pic='-KPIC' 9582 lt_prog_compiler_static='-Bstatic' 9583 ;; 9584 9585 unicos*) 9586 lt_prog_compiler_wl='-Wl,' 9587 lt_prog_compiler_can_build_shared=no 9588 ;; 9589 9590 uts4*) 9591 lt_prog_compiler_pic='-pic' 9592 lt_prog_compiler_static='-Bstatic' 9593 ;; 9594 9595 *) 9596 lt_prog_compiler_can_build_shared=no 9597 ;; 9598 esac 9599 fi 9600 9601case $host_os in 9602 # For platforms that do not support PIC, -DPIC is meaningless: 9603 *djgpp*) 9604 lt_prog_compiler_pic= 9605 ;; 9606 *) 9607 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9608 ;; 9609esac 9610 9611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9612$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9613if ${lt_cv_prog_compiler_pic+:} false; then : 9614 $as_echo_n "(cached) " >&6 9615else 9616 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9617fi 9618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9619$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9620lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9621 9622# 9623# Check to make sure the PIC flag actually works. 9624# 9625if test -n "$lt_prog_compiler_pic"; then 9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9627$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9628if ${lt_cv_prog_compiler_pic_works+:} false; then : 9629 $as_echo_n "(cached) " >&6 9630else 9631 lt_cv_prog_compiler_pic_works=no 9632 ac_outfile=conftest.$ac_objext 9633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9634 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9635 # Insert the option either (1) after the last *FLAGS variable, or 9636 # (2) before a word containing "conftest.", or (3) at the end. 9637 # Note that $ac_compile itself does not contain backslashes and begins 9638 # with a dollar sign (not a hyphen), so the echo should work correctly. 9639 # The option is referenced via a variable to avoid confusing sed. 9640 lt_compile=`echo "$ac_compile" | $SED \ 9641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9643 -e 's:$: $lt_compiler_flag:'` 9644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9645 (eval "$lt_compile" 2>conftest.err) 9646 ac_status=$? 9647 cat conftest.err >&5 9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9649 if (exit $ac_status) && test -s "$ac_outfile"; then 9650 # The compiler can only warn and ignore the option if not recognized 9651 # So say no if there are warnings other than the usual output. 9652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9655 lt_cv_prog_compiler_pic_works=yes 9656 fi 9657 fi 9658 $RM conftest* 9659 9660fi 9661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9662$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9663 9664if test yes = "$lt_cv_prog_compiler_pic_works"; then 9665 case $lt_prog_compiler_pic in 9666 "" | " "*) ;; 9667 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9668 esac 9669else 9670 lt_prog_compiler_pic= 9671 lt_prog_compiler_can_build_shared=no 9672fi 9673 9674fi 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686# 9687# Check to make sure the static flag actually works. 9688# 9689wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9691$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9692if ${lt_cv_prog_compiler_static_works+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694else 9695 lt_cv_prog_compiler_static_works=no 9696 save_LDFLAGS=$LDFLAGS 9697 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9698 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9700 # The linker can only warn and ignore the option if not recognized 9701 # So say no if there are warnings 9702 if test -s conftest.err; then 9703 # Append any errors to the config.log. 9704 cat conftest.err 1>&5 9705 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9707 if diff conftest.exp conftest.er2 >/dev/null; then 9708 lt_cv_prog_compiler_static_works=yes 9709 fi 9710 else 9711 lt_cv_prog_compiler_static_works=yes 9712 fi 9713 fi 9714 $RM -r conftest* 9715 LDFLAGS=$save_LDFLAGS 9716 9717fi 9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9719$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9720 9721if test yes = "$lt_cv_prog_compiler_static_works"; then 9722 : 9723else 9724 lt_prog_compiler_static= 9725fi 9726 9727 9728 9729 9730 9731 9732 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9734$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9735if ${lt_cv_prog_compiler_c_o+:} false; then : 9736 $as_echo_n "(cached) " >&6 9737else 9738 lt_cv_prog_compiler_c_o=no 9739 $RM -r conftest 2>/dev/null 9740 mkdir conftest 9741 cd conftest 9742 mkdir out 9743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9744 9745 lt_compiler_flag="-o out/conftest2.$ac_objext" 9746 # Insert the option either (1) after the last *FLAGS variable, or 9747 # (2) before a word containing "conftest.", or (3) at the end. 9748 # Note that $ac_compile itself does not contain backslashes and begins 9749 # with a dollar sign (not a hyphen), so the echo should work correctly. 9750 lt_compile=`echo "$ac_compile" | $SED \ 9751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9753 -e 's:$: $lt_compiler_flag:'` 9754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9755 (eval "$lt_compile" 2>out/conftest.err) 9756 ac_status=$? 9757 cat out/conftest.err >&5 9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9759 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9760 then 9761 # The compiler can only warn and ignore the option if not recognized 9762 # So say no if there are warnings 9763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9766 lt_cv_prog_compiler_c_o=yes 9767 fi 9768 fi 9769 chmod u+w . 2>&5 9770 $RM conftest* 9771 # SGI C++ compiler will create directory out/ii_files/ for 9772 # template instantiation 9773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9774 $RM out/* && rmdir out 9775 cd .. 9776 $RM -r conftest 9777 $RM conftest* 9778 9779fi 9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9781$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9782 9783 9784 9785 9786 9787 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9789$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9790if ${lt_cv_prog_compiler_c_o+:} false; then : 9791 $as_echo_n "(cached) " >&6 9792else 9793 lt_cv_prog_compiler_c_o=no 9794 $RM -r conftest 2>/dev/null 9795 mkdir conftest 9796 cd conftest 9797 mkdir out 9798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9799 9800 lt_compiler_flag="-o out/conftest2.$ac_objext" 9801 # Insert the option either (1) after the last *FLAGS variable, or 9802 # (2) before a word containing "conftest.", or (3) at the end. 9803 # Note that $ac_compile itself does not contain backslashes and begins 9804 # with a dollar sign (not a hyphen), so the echo should work correctly. 9805 lt_compile=`echo "$ac_compile" | $SED \ 9806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9808 -e 's:$: $lt_compiler_flag:'` 9809 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9810 (eval "$lt_compile" 2>out/conftest.err) 9811 ac_status=$? 9812 cat out/conftest.err >&5 9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9814 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9815 then 9816 # The compiler can only warn and ignore the option if not recognized 9817 # So say no if there are warnings 9818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9819 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9820 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9821 lt_cv_prog_compiler_c_o=yes 9822 fi 9823 fi 9824 chmod u+w . 2>&5 9825 $RM conftest* 9826 # SGI C++ compiler will create directory out/ii_files/ for 9827 # template instantiation 9828 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9829 $RM out/* && rmdir out 9830 cd .. 9831 $RM -r conftest 9832 $RM conftest* 9833 9834fi 9835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9836$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9837 9838 9839 9840 9841hard_links=nottested 9842if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9843 # do not overwrite the value of need_locks provided by the user 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9845$as_echo_n "checking if we can lock with hard links... " >&6; } 9846 hard_links=yes 9847 $RM conftest* 9848 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9849 touch conftest.a 9850 ln conftest.a conftest.b 2>&5 || hard_links=no 9851 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9853$as_echo "$hard_links" >&6; } 9854 if test no = "$hard_links"; then 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9856$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9857 need_locks=warn 9858 fi 9859else 9860 need_locks=no 9861fi 9862 9863 9864 9865 9866 9867 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9869$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9870 9871 runpath_var= 9872 allow_undefined_flag= 9873 always_export_symbols=no 9874 archive_cmds= 9875 archive_expsym_cmds= 9876 compiler_needs_object=no 9877 enable_shared_with_static_runtimes=no 9878 export_dynamic_flag_spec= 9879 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9880 hardcode_automatic=no 9881 hardcode_direct=no 9882 hardcode_direct_absolute=no 9883 hardcode_libdir_flag_spec= 9884 hardcode_libdir_separator= 9885 hardcode_minus_L=no 9886 hardcode_shlibpath_var=unsupported 9887 inherit_rpath=no 9888 link_all_deplibs=unknown 9889 module_cmds= 9890 module_expsym_cmds= 9891 old_archive_from_new_cmds= 9892 old_archive_from_expsyms_cmds= 9893 thread_safe_flag_spec= 9894 whole_archive_flag_spec= 9895 # include_expsyms should be a list of space-separated symbols to be *always* 9896 # included in the symbol list 9897 include_expsyms= 9898 # exclude_expsyms can be an extended regexp of symbols to exclude 9899 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9900 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9901 # as well as any symbol that contains 'd'. 9902 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9903 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9904 # platforms (ab)use it in PIC code, but their linkers get confused if 9905 # the symbol is explicitly referenced. Since portable code cannot 9906 # rely on this symbol name, it's probably fine to never include it in 9907 # preloaded symbol tables. 9908 # Exclude shared library initialization/finalization symbols. 9909 extract_expsyms_cmds= 9910 9911 case $host_os in 9912 cygwin* | mingw* | pw32* | cegcc*) 9913 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9914 # When not using gcc, we currently assume that we are using 9915 # Microsoft Visual C++. 9916 if test yes != "$GCC"; then 9917 with_gnu_ld=no 9918 fi 9919 ;; 9920 interix*) 9921 # we just hope/assume this is gcc and not c89 (= MSVC++) 9922 with_gnu_ld=yes 9923 ;; 9924 openbsd* | bitrig*) 9925 with_gnu_ld=no 9926 ;; 9927 linux* | k*bsd*-gnu | gnu*) 9928 link_all_deplibs=no 9929 ;; 9930 esac 9931 9932 ld_shlibs=yes 9933 9934 # On some targets, GNU ld is compatible enough with the native linker 9935 # that we're better off using the native interface for both. 9936 lt_use_gnu_ld_interface=no 9937 if test yes = "$with_gnu_ld"; then 9938 case $host_os in 9939 aix*) 9940 # The AIX port of GNU ld has always aspired to compatibility 9941 # with the native linker. However, as the warning in the GNU ld 9942 # block says, versions before 2.19.5* couldn't really create working 9943 # shared libraries, regardless of the interface used. 9944 case `$LD -v 2>&1` in 9945 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9946 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9947 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9948 *) 9949 lt_use_gnu_ld_interface=yes 9950 ;; 9951 esac 9952 ;; 9953 *) 9954 lt_use_gnu_ld_interface=yes 9955 ;; 9956 esac 9957 fi 9958 9959 if test yes = "$lt_use_gnu_ld_interface"; then 9960 # If archive_cmds runs LD, not CC, wlarc should be empty 9961 wlarc='$wl' 9962 9963 # Set some defaults for GNU ld with shared library support. These 9964 # are reset later if shared libraries are not supported. Putting them 9965 # here allows them to be overridden if necessary. 9966 runpath_var=LD_RUN_PATH 9967 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9968 export_dynamic_flag_spec='$wl--export-dynamic' 9969 # ancient GNU ld didn't support --whole-archive et. al. 9970 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9971 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9972 else 9973 whole_archive_flag_spec= 9974 fi 9975 supports_anon_versioning=no 9976 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9977 *GNU\ gold*) supports_anon_versioning=yes ;; 9978 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9979 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9980 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9981 *\ 2.11.*) ;; # other 2.11 versions 9982 *) supports_anon_versioning=yes ;; 9983 esac 9984 9985 # See if GNU ld supports shared libraries. 9986 case $host_os in 9987 aix[3-9]*) 9988 # On AIX/PPC, the GNU linker is very broken 9989 if test ia64 != "$host_cpu"; then 9990 ld_shlibs=no 9991 cat <<_LT_EOF 1>&2 9992 9993*** Warning: the GNU linker, at least up to release 2.19, is reported 9994*** to be unable to reliably create shared libraries on AIX. 9995*** Therefore, libtool is disabling shared libraries support. If you 9996*** really care for shared libraries, you may want to install binutils 9997*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9998*** You will then need to restart the configuration process. 9999 10000_LT_EOF 10001 fi 10002 ;; 10003 10004 amigaos*) 10005 case $host_cpu in 10006 powerpc) 10007 # see comment about AmigaOS4 .so support 10008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10009 archive_expsym_cmds='' 10010 ;; 10011 m68k) 10012 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)' 10013 hardcode_libdir_flag_spec='-L$libdir' 10014 hardcode_minus_L=yes 10015 ;; 10016 esac 10017 ;; 10018 10019 beos*) 10020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10021 allow_undefined_flag=unsupported 10022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10023 # support --undefined. This deserves some investigation. FIXME 10024 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10025 else 10026 ld_shlibs=no 10027 fi 10028 ;; 10029 10030 cygwin* | mingw* | pw32* | cegcc*) 10031 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10032 # as there is no search path for DLLs. 10033 hardcode_libdir_flag_spec='-L$libdir' 10034 export_dynamic_flag_spec='$wl--export-all-symbols' 10035 allow_undefined_flag=unsupported 10036 always_export_symbols=no 10037 enable_shared_with_static_runtimes=yes 10038 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' 10039 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10040 10041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10043 # If the export-symbols file already is a .def file, use it as 10044 # is; otherwise, prepend EXPORTS... 10045 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10046 cp $export_symbols $output_objdir/$soname.def; 10047 else 10048 echo EXPORTS > $output_objdir/$soname.def; 10049 cat $export_symbols >> $output_objdir/$soname.def; 10050 fi~ 10051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10052 else 10053 ld_shlibs=no 10054 fi 10055 ;; 10056 10057 haiku*) 10058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10059 link_all_deplibs=yes 10060 ;; 10061 10062 os2*) 10063 hardcode_libdir_flag_spec='-L$libdir' 10064 hardcode_minus_L=yes 10065 allow_undefined_flag=unsupported 10066 shrext_cmds=.dll 10067 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10068 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10069 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10070 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10071 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10072 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10073 emximp -o $lib $output_objdir/$libname.def' 10074 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10075 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10076 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10077 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10078 prefix_cmds="$SED"~ 10079 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10080 prefix_cmds="$prefix_cmds -e 1d"; 10081 fi~ 10082 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10083 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10084 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10085 emximp -o $lib $output_objdir/$libname.def' 10086 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10087 enable_shared_with_static_runtimes=yes 10088 ;; 10089 10090 interix[3-9]*) 10091 hardcode_direct=no 10092 hardcode_shlibpath_var=no 10093 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10094 export_dynamic_flag_spec='$wl-E' 10095 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10096 # Instead, shared libraries are loaded at an image base (0x10000000 by 10097 # default) and relocated if they conflict, which is a slow very memory 10098 # consuming and fragmenting process. To avoid this, we pick a random, 10099 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10100 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10101 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10102 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' 10103 ;; 10104 10105 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10106 tmp_diet=no 10107 if test linux-dietlibc = "$host_os"; then 10108 case $cc_basename in 10109 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10110 esac 10111 fi 10112 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10113 && test no = "$tmp_diet" 10114 then 10115 tmp_addflag=' $pic_flag' 10116 tmp_sharedflag='-shared' 10117 case $cc_basename,$host_cpu in 10118 pgcc*) # Portland Group C compiler 10119 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' 10120 tmp_addflag=' $pic_flag' 10121 ;; 10122 pgf77* | pgf90* | pgf95* | pgfortran*) 10123 # Portland Group f77 and f90 compilers 10124 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' 10125 tmp_addflag=' $pic_flag -Mnomain' ;; 10126 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10127 tmp_addflag=' -i_dynamic' ;; 10128 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10129 tmp_addflag=' -i_dynamic -nofor_main' ;; 10130 ifc* | ifort*) # Intel Fortran compiler 10131 tmp_addflag=' -nofor_main' ;; 10132 lf95*) # Lahey Fortran 8.1 10133 whole_archive_flag_spec= 10134 tmp_sharedflag='--shared' ;; 10135 nagfor*) # NAGFOR 5.3 10136 tmp_sharedflag='-Wl,-shared' ;; 10137 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10138 tmp_sharedflag='-qmkshrobj' 10139 tmp_addflag= ;; 10140 nvcc*) # Cuda Compiler Driver 2.2 10141 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' 10142 compiler_needs_object=yes 10143 ;; 10144 esac 10145 case `$CC -V 2>&1 | sed 5q` in 10146 *Sun\ C*) # Sun C 5.9 10147 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' 10148 compiler_needs_object=yes 10149 tmp_sharedflag='-G' ;; 10150 *Sun\ F*) # Sun Fortran 8.3 10151 tmp_sharedflag='-G' ;; 10152 esac 10153 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10154 10155 if test yes = "$supports_anon_versioning"; then 10156 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10157 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10158 echo "local: *; };" >> $output_objdir/$libname.ver~ 10159 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10160 fi 10161 10162 case $cc_basename in 10163 tcc*) 10164 export_dynamic_flag_spec='-rdynamic' 10165 ;; 10166 xlf* | bgf* | bgxlf* | mpixlf*) 10167 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10168 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10169 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10170 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10171 if test yes = "$supports_anon_versioning"; then 10172 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10174 echo "local: *; };" >> $output_objdir/$libname.ver~ 10175 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10176 fi 10177 ;; 10178 esac 10179 else 10180 ld_shlibs=no 10181 fi 10182 ;; 10183 10184 netbsd* | netbsdelf*-gnu) 10185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10186 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10187 wlarc= 10188 else 10189 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10190 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10191 fi 10192 ;; 10193 10194 solaris*) 10195 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10196 ld_shlibs=no 10197 cat <<_LT_EOF 1>&2 10198 10199*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10200*** create shared libraries on Solaris systems. Therefore, libtool 10201*** is disabling shared libraries support. We urge you to upgrade GNU 10202*** binutils to release 2.9.1 or newer. Another option is to modify 10203*** your PATH or compiler configuration so that the native linker is 10204*** used, and then restart. 10205 10206_LT_EOF 10207 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10209 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10210 else 10211 ld_shlibs=no 10212 fi 10213 ;; 10214 10215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10216 case `$LD -v 2>&1` in 10217 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10218 ld_shlibs=no 10219 cat <<_LT_EOF 1>&2 10220 10221*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10222*** reliably create shared libraries on SCO systems. Therefore, libtool 10223*** is disabling shared libraries support. We urge you to upgrade GNU 10224*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10225*** your PATH or compiler configuration so that the native linker is 10226*** used, and then restart. 10227 10228_LT_EOF 10229 ;; 10230 *) 10231 # For security reasons, it is highly recommended that you always 10232 # use absolute paths for naming shared libraries, and exclude the 10233 # DT_RUNPATH tag from executables and libraries. But doing so 10234 # requires that you compile everything twice, which is a pain. 10235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10238 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10239 else 10240 ld_shlibs=no 10241 fi 10242 ;; 10243 esac 10244 ;; 10245 10246 sunos4*) 10247 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10248 wlarc= 10249 hardcode_direct=yes 10250 hardcode_shlibpath_var=no 10251 ;; 10252 10253 *) 10254 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10255 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10256 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10257 else 10258 ld_shlibs=no 10259 fi 10260 ;; 10261 esac 10262 10263 if test no = "$ld_shlibs"; then 10264 runpath_var= 10265 hardcode_libdir_flag_spec= 10266 export_dynamic_flag_spec= 10267 whole_archive_flag_spec= 10268 fi 10269 else 10270 # PORTME fill in a description of your system's linker (not GNU ld) 10271 case $host_os in 10272 aix3*) 10273 allow_undefined_flag=unsupported 10274 always_export_symbols=yes 10275 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' 10276 # Note: this linker hardcodes the directories in LIBPATH if there 10277 # are no directories specified by -L. 10278 hardcode_minus_L=yes 10279 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10280 # Neither direct hardcoding nor static linking is supported with a 10281 # broken collect2. 10282 hardcode_direct=unsupported 10283 fi 10284 ;; 10285 10286 aix[4-9]*) 10287 if test ia64 = "$host_cpu"; then 10288 # On IA64, the linker does run time linking by default, so we don't 10289 # have to do anything special. 10290 aix_use_runtimelinking=no 10291 exp_sym_flag='-Bexport' 10292 no_entry_flag= 10293 else 10294 # If we're using GNU nm, then we don't want the "-C" option. 10295 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10296 # Without the "-l" option, or with the "-B" option, AIX nm treats 10297 # weak defined symbols like other global defined symbols, whereas 10298 # GNU nm marks them as "W". 10299 # While the 'weak' keyword is ignored in the Export File, we need 10300 # it in the Import File for the 'aix-soname' feature, so we have 10301 # to replace the "-B" option with "-P" for AIX nm. 10302 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10303 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' 10304 else 10305 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' 10306 fi 10307 aix_use_runtimelinking=no 10308 10309 # Test if we are trying to use run time linking or normal 10310 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10311 # have runtime linking enabled, and use it for executables. 10312 # For shared libraries, we enable/disable runtime linking 10313 # depending on the kind of the shared library created - 10314 # when "with_aix_soname,aix_use_runtimelinking" is: 10315 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10316 # "aix,yes" lib.so shared, rtl:yes, for executables 10317 # lib.a static archive 10318 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10319 # lib.a(lib.so.V) shared, rtl:no, for executables 10320 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10321 # lib.a(lib.so.V) shared, rtl:no 10322 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10323 # lib.a static archive 10324 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10325 for ld_flag in $LDFLAGS; do 10326 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10327 aix_use_runtimelinking=yes 10328 break 10329 fi 10330 done 10331 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10332 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10333 # so we don't have lib.a shared libs to link our executables. 10334 # We have to force runtime linking in this case. 10335 aix_use_runtimelinking=yes 10336 LDFLAGS="$LDFLAGS -Wl,-brtl" 10337 fi 10338 ;; 10339 esac 10340 10341 exp_sym_flag='-bexport' 10342 no_entry_flag='-bnoentry' 10343 fi 10344 10345 # When large executables or shared objects are built, AIX ld can 10346 # have problems creating the table of contents. If linking a library 10347 # or program results in "error TOC overflow" add -mminimal-toc to 10348 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10349 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10350 10351 archive_cmds='' 10352 hardcode_direct=yes 10353 hardcode_direct_absolute=yes 10354 hardcode_libdir_separator=':' 10355 link_all_deplibs=yes 10356 file_list_spec='$wl-f,' 10357 case $with_aix_soname,$aix_use_runtimelinking in 10358 aix,*) ;; # traditional, no import file 10359 svr4,* | *,yes) # use import file 10360 # The Import File defines what to hardcode. 10361 hardcode_direct=no 10362 hardcode_direct_absolute=no 10363 ;; 10364 esac 10365 10366 if test yes = "$GCC"; then 10367 case $host_os in aix4.[012]|aix4.[012].*) 10368 # We only want to do this on AIX 4.2 and lower, the check 10369 # below for broken collect2 doesn't work under 4.3+ 10370 collect2name=`$CC -print-prog-name=collect2` 10371 if test -f "$collect2name" && 10372 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10373 then 10374 # We have reworked collect2 10375 : 10376 else 10377 # We have old collect2 10378 hardcode_direct=unsupported 10379 # It fails to find uninstalled libraries when the uninstalled 10380 # path is not listed in the libpath. Setting hardcode_minus_L 10381 # to unsupported forces relinking 10382 hardcode_minus_L=yes 10383 hardcode_libdir_flag_spec='-L$libdir' 10384 hardcode_libdir_separator= 10385 fi 10386 ;; 10387 esac 10388 shared_flag='-shared' 10389 if test yes = "$aix_use_runtimelinking"; then 10390 shared_flag="$shared_flag "'$wl-G' 10391 fi 10392 # Need to ensure runtime linking is disabled for the traditional 10393 # shared library, or the linker may eventually find shared libraries 10394 # /with/ Import File - we do not want to mix them. 10395 shared_flag_aix='-shared' 10396 shared_flag_svr4='-shared $wl-G' 10397 else 10398 # not using gcc 10399 if test ia64 = "$host_cpu"; then 10400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10401 # chokes on -Wl,-G. The following line is correct: 10402 shared_flag='-G' 10403 else 10404 if test yes = "$aix_use_runtimelinking"; then 10405 shared_flag='$wl-G' 10406 else 10407 shared_flag='$wl-bM:SRE' 10408 fi 10409 shared_flag_aix='$wl-bM:SRE' 10410 shared_flag_svr4='$wl-G' 10411 fi 10412 fi 10413 10414 export_dynamic_flag_spec='$wl-bexpall' 10415 # It seems that -bexpall does not export symbols beginning with 10416 # underscore (_), so it is better to generate a list of symbols to export. 10417 always_export_symbols=yes 10418 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10419 # Warning - without using the other runtime loading flags (-brtl), 10420 # -berok will link without error, but may produce a broken library. 10421 allow_undefined_flag='-berok' 10422 # Determine the default libpath from the value encoded in an 10423 # empty executable. 10424 if test set = "${lt_cv_aix_libpath+set}"; then 10425 aix_libpath=$lt_cv_aix_libpath 10426else 10427 if ${lt_cv_aix_libpath_+:} false; then : 10428 $as_echo_n "(cached) " >&6 10429else 10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10431/* end confdefs.h. */ 10432 10433int 10434main () 10435{ 10436 10437 ; 10438 return 0; 10439} 10440_ACEOF 10441if ac_fn_c_try_link "$LINENO"; then : 10442 10443 lt_aix_libpath_sed=' 10444 /Import File Strings/,/^$/ { 10445 /^0/ { 10446 s/^0 *\([^ ]*\) *$/\1/ 10447 p 10448 } 10449 }' 10450 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10451 # Check for a 64-bit object if we didn't find anything. 10452 if test -z "$lt_cv_aix_libpath_"; then 10453 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10454 fi 10455fi 10456rm -f core conftest.err conftest.$ac_objext \ 10457 conftest$ac_exeext conftest.$ac_ext 10458 if test -z "$lt_cv_aix_libpath_"; then 10459 lt_cv_aix_libpath_=/usr/lib:/lib 10460 fi 10461 10462fi 10463 10464 aix_libpath=$lt_cv_aix_libpath_ 10465fi 10466 10467 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10468 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 10469 else 10470 if test ia64 = "$host_cpu"; then 10471 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10472 allow_undefined_flag="-z nodefs" 10473 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" 10474 else 10475 # Determine the default libpath from the value encoded in an 10476 # empty executable. 10477 if test set = "${lt_cv_aix_libpath+set}"; then 10478 aix_libpath=$lt_cv_aix_libpath 10479else 10480 if ${lt_cv_aix_libpath_+:} false; then : 10481 $as_echo_n "(cached) " >&6 10482else 10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10484/* end confdefs.h. */ 10485 10486int 10487main () 10488{ 10489 10490 ; 10491 return 0; 10492} 10493_ACEOF 10494if ac_fn_c_try_link "$LINENO"; then : 10495 10496 lt_aix_libpath_sed=' 10497 /Import File Strings/,/^$/ { 10498 /^0/ { 10499 s/^0 *\([^ ]*\) *$/\1/ 10500 p 10501 } 10502 }' 10503 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10504 # Check for a 64-bit object if we didn't find anything. 10505 if test -z "$lt_cv_aix_libpath_"; then 10506 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10507 fi 10508fi 10509rm -f core conftest.err conftest.$ac_objext \ 10510 conftest$ac_exeext conftest.$ac_ext 10511 if test -z "$lt_cv_aix_libpath_"; then 10512 lt_cv_aix_libpath_=/usr/lib:/lib 10513 fi 10514 10515fi 10516 10517 aix_libpath=$lt_cv_aix_libpath_ 10518fi 10519 10520 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10521 # Warning - without using the other run time loading flags, 10522 # -berok will link without error, but may produce a broken library. 10523 no_undefined_flag=' $wl-bernotok' 10524 allow_undefined_flag=' $wl-berok' 10525 if test yes = "$with_gnu_ld"; then 10526 # We only use this code for GNU lds that support --whole-archive. 10527 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10528 else 10529 # Exported symbols can be pulled into shared objects from archives 10530 whole_archive_flag_spec='$convenience' 10531 fi 10532 archive_cmds_need_lc=yes 10533 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10534 # -brtl affects multiple linker settings, -berok does not and is overridden later 10535 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10536 if test svr4 != "$with_aix_soname"; then 10537 # This is similar to how AIX traditionally builds its shared libraries. 10538 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' 10539 fi 10540 if test aix != "$with_aix_soname"; then 10541 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' 10542 else 10543 # used by -dlpreopen to get the symbols 10544 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10545 fi 10546 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10547 fi 10548 fi 10549 ;; 10550 10551 amigaos*) 10552 case $host_cpu in 10553 powerpc) 10554 # see comment about AmigaOS4 .so support 10555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10556 archive_expsym_cmds='' 10557 ;; 10558 m68k) 10559 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)' 10560 hardcode_libdir_flag_spec='-L$libdir' 10561 hardcode_minus_L=yes 10562 ;; 10563 esac 10564 ;; 10565 10566 bsdi[45]*) 10567 export_dynamic_flag_spec=-rdynamic 10568 ;; 10569 10570 cygwin* | mingw* | pw32* | cegcc*) 10571 # When not using gcc, we currently assume that we are using 10572 # Microsoft Visual C++. 10573 # hardcode_libdir_flag_spec is actually meaningless, as there is 10574 # no search path for DLLs. 10575 case $cc_basename in 10576 cl*) 10577 # Native MSVC 10578 hardcode_libdir_flag_spec=' ' 10579 allow_undefined_flag=unsupported 10580 always_export_symbols=yes 10581 file_list_spec='@' 10582 # Tell ltmain to make .lib files, not .a files. 10583 libext=lib 10584 # Tell ltmain to make .dll files, not .so files. 10585 shrext_cmds=.dll 10586 # FIXME: Setting linknames here is a bad hack. 10587 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10588 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10589 cp "$export_symbols" "$output_objdir/$soname.def"; 10590 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10591 else 10592 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10593 fi~ 10594 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10595 linknames=' 10596 # The linker will not automatically build a static lib if we build a DLL. 10597 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10598 enable_shared_with_static_runtimes=yes 10599 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10601 # Don't use ranlib 10602 old_postinstall_cmds='chmod 644 $oldlib' 10603 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10604 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10605 case $lt_outputfile in 10606 *.exe|*.EXE) ;; 10607 *) 10608 lt_outputfile=$lt_outputfile.exe 10609 lt_tool_outputfile=$lt_tool_outputfile.exe 10610 ;; 10611 esac~ 10612 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10613 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10614 $RM "$lt_outputfile.manifest"; 10615 fi' 10616 ;; 10617 *) 10618 # Assume MSVC wrapper 10619 hardcode_libdir_flag_spec=' ' 10620 allow_undefined_flag=unsupported 10621 # Tell ltmain to make .lib files, not .a files. 10622 libext=lib 10623 # Tell ltmain to make .dll files, not .so files. 10624 shrext_cmds=.dll 10625 # FIXME: Setting linknames here is a bad hack. 10626 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10627 # The linker will automatically build a .lib file if we build a DLL. 10628 old_archive_from_new_cmds='true' 10629 # FIXME: Should let the user specify the lib program. 10630 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10631 enable_shared_with_static_runtimes=yes 10632 ;; 10633 esac 10634 ;; 10635 10636 darwin* | rhapsody*) 10637 10638 10639 archive_cmds_need_lc=no 10640 hardcode_direct=no 10641 hardcode_automatic=yes 10642 hardcode_shlibpath_var=unsupported 10643 if test yes = "$lt_cv_ld_force_load"; then 10644 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\"`' 10645 10646 else 10647 whole_archive_flag_spec='' 10648 fi 10649 link_all_deplibs=yes 10650 allow_undefined_flag=$_lt_dar_allow_undefined 10651 case $cc_basename in 10652 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10653 *) _lt_dar_can_shared=$GCC ;; 10654 esac 10655 if test yes = "$_lt_dar_can_shared"; then 10656 output_verbose_link_cmd=func_echo_all 10657 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10658 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10659 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" 10660 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" 10661 10662 else 10663 ld_shlibs=no 10664 fi 10665 10666 ;; 10667 10668 dgux*) 10669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10670 hardcode_libdir_flag_spec='-L$libdir' 10671 hardcode_shlibpath_var=no 10672 ;; 10673 10674 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10675 # support. Future versions do this automatically, but an explicit c++rt0.o 10676 # does not break anything, and helps significantly (at the cost of a little 10677 # extra space). 10678 freebsd2.2*) 10679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10680 hardcode_libdir_flag_spec='-R$libdir' 10681 hardcode_direct=yes 10682 hardcode_shlibpath_var=no 10683 ;; 10684 10685 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10686 freebsd2.*) 10687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10688 hardcode_direct=yes 10689 hardcode_minus_L=yes 10690 hardcode_shlibpath_var=no 10691 ;; 10692 10693 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10694 freebsd* | dragonfly*) 10695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10696 hardcode_libdir_flag_spec='-R$libdir' 10697 hardcode_direct=yes 10698 hardcode_shlibpath_var=no 10699 ;; 10700 10701 hpux9*) 10702 if test yes = "$GCC"; then 10703 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' 10704 else 10705 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' 10706 fi 10707 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10708 hardcode_libdir_separator=: 10709 hardcode_direct=yes 10710 10711 # hardcode_minus_L: Not really in the search PATH, 10712 # but as the default location of the library. 10713 hardcode_minus_L=yes 10714 export_dynamic_flag_spec='$wl-E' 10715 ;; 10716 10717 hpux10*) 10718 if test yes,no = "$GCC,$with_gnu_ld"; then 10719 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10720 else 10721 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10722 fi 10723 if test no = "$with_gnu_ld"; then 10724 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10725 hardcode_libdir_separator=: 10726 hardcode_direct=yes 10727 hardcode_direct_absolute=yes 10728 export_dynamic_flag_spec='$wl-E' 10729 # hardcode_minus_L: Not really in the search PATH, 10730 # but as the default location of the library. 10731 hardcode_minus_L=yes 10732 fi 10733 ;; 10734 10735 hpux11*) 10736 if test yes,no = "$GCC,$with_gnu_ld"; then 10737 case $host_cpu in 10738 hppa*64*) 10739 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10740 ;; 10741 ia64*) 10742 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10743 ;; 10744 *) 10745 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10746 ;; 10747 esac 10748 else 10749 case $host_cpu in 10750 hppa*64*) 10751 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10752 ;; 10753 ia64*) 10754 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10755 ;; 10756 *) 10757 10758 # Older versions of the 11.00 compiler do not understand -b yet 10759 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10761$as_echo_n "checking if $CC understands -b... " >&6; } 10762if ${lt_cv_prog_compiler__b+:} false; then : 10763 $as_echo_n "(cached) " >&6 10764else 10765 lt_cv_prog_compiler__b=no 10766 save_LDFLAGS=$LDFLAGS 10767 LDFLAGS="$LDFLAGS -b" 10768 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10770 # The linker can only warn and ignore the option if not recognized 10771 # So say no if there are warnings 10772 if test -s conftest.err; then 10773 # Append any errors to the config.log. 10774 cat conftest.err 1>&5 10775 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10777 if diff conftest.exp conftest.er2 >/dev/null; then 10778 lt_cv_prog_compiler__b=yes 10779 fi 10780 else 10781 lt_cv_prog_compiler__b=yes 10782 fi 10783 fi 10784 $RM -r conftest* 10785 LDFLAGS=$save_LDFLAGS 10786 10787fi 10788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10789$as_echo "$lt_cv_prog_compiler__b" >&6; } 10790 10791if test yes = "$lt_cv_prog_compiler__b"; then 10792 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10793else 10794 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10795fi 10796 10797 ;; 10798 esac 10799 fi 10800 if test no = "$with_gnu_ld"; then 10801 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10802 hardcode_libdir_separator=: 10803 10804 case $host_cpu in 10805 hppa*64*|ia64*) 10806 hardcode_direct=no 10807 hardcode_shlibpath_var=no 10808 ;; 10809 *) 10810 hardcode_direct=yes 10811 hardcode_direct_absolute=yes 10812 export_dynamic_flag_spec='$wl-E' 10813 10814 # hardcode_minus_L: Not really in the search PATH, 10815 # but as the default location of the library. 10816 hardcode_minus_L=yes 10817 ;; 10818 esac 10819 fi 10820 ;; 10821 10822 irix5* | irix6* | nonstopux*) 10823 if test yes = "$GCC"; then 10824 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' 10825 # Try to use the -exported_symbol ld option, if it does not 10826 # work, assume that -exports_file does not work either and 10827 # implicitly export all symbols. 10828 # This should be the same for all languages, so no per-tag cache variable. 10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10830$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10831if ${lt_cv_irix_exported_symbol+:} false; then : 10832 $as_echo_n "(cached) " >&6 10833else 10834 save_LDFLAGS=$LDFLAGS 10835 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10837/* end confdefs.h. */ 10838int foo (void) { return 0; } 10839_ACEOF 10840if ac_fn_c_try_link "$LINENO"; then : 10841 lt_cv_irix_exported_symbol=yes 10842else 10843 lt_cv_irix_exported_symbol=no 10844fi 10845rm -f core conftest.err conftest.$ac_objext \ 10846 conftest$ac_exeext conftest.$ac_ext 10847 LDFLAGS=$save_LDFLAGS 10848fi 10849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10850$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10851 if test yes = "$lt_cv_irix_exported_symbol"; then 10852 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' 10853 fi 10854 link_all_deplibs=no 10855 else 10856 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' 10857 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' 10858 fi 10859 archive_cmds_need_lc='no' 10860 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10861 hardcode_libdir_separator=: 10862 inherit_rpath=yes 10863 link_all_deplibs=yes 10864 ;; 10865 10866 linux*) 10867 case $cc_basename in 10868 tcc*) 10869 # Fabrice Bellard et al's Tiny C Compiler 10870 ld_shlibs=yes 10871 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10872 ;; 10873 esac 10874 ;; 10875 10876 netbsd* | netbsdelf*-gnu) 10877 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10878 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10879 else 10880 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10881 fi 10882 hardcode_libdir_flag_spec='-R$libdir' 10883 hardcode_direct=yes 10884 hardcode_shlibpath_var=no 10885 ;; 10886 10887 newsos6) 10888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10889 hardcode_direct=yes 10890 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10891 hardcode_libdir_separator=: 10892 hardcode_shlibpath_var=no 10893 ;; 10894 10895 *nto* | *qnx*) 10896 ;; 10897 10898 openbsd* | bitrig*) 10899 if test -f /usr/libexec/ld.so; then 10900 hardcode_direct=yes 10901 hardcode_shlibpath_var=no 10902 hardcode_direct_absolute=yes 10903 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10905 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10906 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10907 export_dynamic_flag_spec='$wl-E' 10908 else 10909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10910 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10911 fi 10912 else 10913 ld_shlibs=no 10914 fi 10915 ;; 10916 10917 os2*) 10918 hardcode_libdir_flag_spec='-L$libdir' 10919 hardcode_minus_L=yes 10920 allow_undefined_flag=unsupported 10921 shrext_cmds=.dll 10922 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10923 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10924 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10925 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10926 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10927 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10928 emximp -o $lib $output_objdir/$libname.def' 10929 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10930 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10931 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10932 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10933 prefix_cmds="$SED"~ 10934 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10935 prefix_cmds="$prefix_cmds -e 1d"; 10936 fi~ 10937 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10938 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10939 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10940 emximp -o $lib $output_objdir/$libname.def' 10941 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10942 enable_shared_with_static_runtimes=yes 10943 ;; 10944 10945 osf3*) 10946 if test yes = "$GCC"; then 10947 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10948 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' 10949 else 10950 allow_undefined_flag=' -expect_unresolved \*' 10951 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' 10952 fi 10953 archive_cmds_need_lc='no' 10954 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10955 hardcode_libdir_separator=: 10956 ;; 10957 10958 osf4* | osf5*) # as osf3* with the addition of -msym flag 10959 if test yes = "$GCC"; then 10960 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10961 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' 10962 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10963 else 10964 allow_undefined_flag=' -expect_unresolved \*' 10965 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' 10966 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~ 10967 $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' 10968 10969 # Both c and cxx compiler support -rpath directly 10970 hardcode_libdir_flag_spec='-rpath $libdir' 10971 fi 10972 archive_cmds_need_lc='no' 10973 hardcode_libdir_separator=: 10974 ;; 10975 10976 solaris*) 10977 no_undefined_flag=' -z defs' 10978 if test yes = "$GCC"; then 10979 wlarc='$wl' 10980 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10981 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10982 $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' 10983 else 10984 case `$CC -V 2>&1` in 10985 *"Compilers 5.0"*) 10986 wlarc='' 10987 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10988 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10989 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10990 ;; 10991 *) 10992 wlarc='$wl' 10993 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10994 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10995 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10996 ;; 10997 esac 10998 fi 10999 hardcode_libdir_flag_spec='-R$libdir' 11000 hardcode_shlibpath_var=no 11001 case $host_os in 11002 solaris2.[0-5] | solaris2.[0-5].*) ;; 11003 *) 11004 # The compiler driver will combine and reorder linker options, 11005 # but understands '-z linker_flag'. GCC discards it without '$wl', 11006 # but is careful enough not to reorder. 11007 # Supported since Solaris 2.6 (maybe 2.5.1?) 11008 if test yes = "$GCC"; then 11009 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11010 else 11011 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11012 fi 11013 ;; 11014 esac 11015 link_all_deplibs=yes 11016 ;; 11017 11018 sunos4*) 11019 if test sequent = "$host_vendor"; then 11020 # Use $CC to link under sequent, because it throws in some extra .o 11021 # files that make .init and .fini sections work. 11022 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11023 else 11024 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11025 fi 11026 hardcode_libdir_flag_spec='-L$libdir' 11027 hardcode_direct=yes 11028 hardcode_minus_L=yes 11029 hardcode_shlibpath_var=no 11030 ;; 11031 11032 sysv4) 11033 case $host_vendor in 11034 sni) 11035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11036 hardcode_direct=yes # is this really true??? 11037 ;; 11038 siemens) 11039 ## LD is ld it makes a PLAMLIB 11040 ## CC just makes a GrossModule. 11041 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11042 reload_cmds='$CC -r -o $output$reload_objs' 11043 hardcode_direct=no 11044 ;; 11045 motorola) 11046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11047 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11048 ;; 11049 esac 11050 runpath_var='LD_RUN_PATH' 11051 hardcode_shlibpath_var=no 11052 ;; 11053 11054 sysv4.3*) 11055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11056 hardcode_shlibpath_var=no 11057 export_dynamic_flag_spec='-Bexport' 11058 ;; 11059 11060 sysv4*MP*) 11061 if test -d /usr/nec; then 11062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11063 hardcode_shlibpath_var=no 11064 runpath_var=LD_RUN_PATH 11065 hardcode_runpath_var=yes 11066 ld_shlibs=yes 11067 fi 11068 ;; 11069 11070 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11071 no_undefined_flag='$wl-z,text' 11072 archive_cmds_need_lc=no 11073 hardcode_shlibpath_var=no 11074 runpath_var='LD_RUN_PATH' 11075 11076 if test yes = "$GCC"; then 11077 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11078 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11079 else 11080 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11081 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11082 fi 11083 ;; 11084 11085 sysv5* | sco3.2v5* | sco5v6*) 11086 # Note: We CANNOT use -z defs as we might desire, because we do not 11087 # link with -lc, and that would cause any symbols used from libc to 11088 # always be unresolved, which means just about no library would 11089 # ever link correctly. If we're not using GNU ld we use -z text 11090 # though, which does catch some bad symbols but isn't as heavy-handed 11091 # as -z defs. 11092 no_undefined_flag='$wl-z,text' 11093 allow_undefined_flag='$wl-z,nodefs' 11094 archive_cmds_need_lc=no 11095 hardcode_shlibpath_var=no 11096 hardcode_libdir_flag_spec='$wl-R,$libdir' 11097 hardcode_libdir_separator=':' 11098 link_all_deplibs=yes 11099 export_dynamic_flag_spec='$wl-Bexport' 11100 runpath_var='LD_RUN_PATH' 11101 11102 if test yes = "$GCC"; then 11103 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11104 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11105 else 11106 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11107 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11108 fi 11109 ;; 11110 11111 uts4*) 11112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11113 hardcode_libdir_flag_spec='-L$libdir' 11114 hardcode_shlibpath_var=no 11115 ;; 11116 11117 *) 11118 ld_shlibs=no 11119 ;; 11120 esac 11121 11122 if test sni = "$host_vendor"; then 11123 case $host in 11124 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11125 export_dynamic_flag_spec='$wl-Blargedynsym' 11126 ;; 11127 esac 11128 fi 11129 fi 11130 11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11132$as_echo "$ld_shlibs" >&6; } 11133test no = "$ld_shlibs" && can_build_shared=no 11134 11135with_gnu_ld=$with_gnu_ld 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151# 11152# Do we need to explicitly link libc? 11153# 11154case "x$archive_cmds_need_lc" in 11155x|xyes) 11156 # Assume -lc should be added 11157 archive_cmds_need_lc=yes 11158 11159 if test yes,yes = "$GCC,$enable_shared"; then 11160 case $archive_cmds in 11161 *'~'*) 11162 # FIXME: we may have to deal with multi-command sequences. 11163 ;; 11164 '$CC '*) 11165 # Test whether the compiler implicitly links with -lc since on some 11166 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11167 # to ld, don't add -lc before -lgcc. 11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11169$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11170if ${lt_cv_archive_cmds_need_lc+:} false; then : 11171 $as_echo_n "(cached) " >&6 11172else 11173 $RM conftest* 11174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11175 11176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11177 (eval $ac_compile) 2>&5 11178 ac_status=$? 11179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11180 test $ac_status = 0; } 2>conftest.err; then 11181 soname=conftest 11182 lib=conftest 11183 libobjs=conftest.$ac_objext 11184 deplibs= 11185 wl=$lt_prog_compiler_wl 11186 pic_flag=$lt_prog_compiler_pic 11187 compiler_flags=-v 11188 linker_flags=-v 11189 verstring= 11190 output_objdir=. 11191 libname=conftest 11192 lt_save_allow_undefined_flag=$allow_undefined_flag 11193 allow_undefined_flag= 11194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11195 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11196 ac_status=$? 11197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11198 test $ac_status = 0; } 11199 then 11200 lt_cv_archive_cmds_need_lc=no 11201 else 11202 lt_cv_archive_cmds_need_lc=yes 11203 fi 11204 allow_undefined_flag=$lt_save_allow_undefined_flag 11205 else 11206 cat conftest.err 1>&5 11207 fi 11208 $RM conftest* 11209 11210fi 11211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11212$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11213 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11214 ;; 11215 esac 11216 fi 11217 ;; 11218esac 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11372$as_echo_n "checking dynamic linker characteristics... " >&6; } 11373 11374if test yes = "$GCC"; then 11375 case $host_os in 11376 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11377 *) lt_awk_arg='/^libraries:/' ;; 11378 esac 11379 case $host_os in 11380 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11381 *) lt_sed_strip_eq='s|=/|/|g' ;; 11382 esac 11383 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11384 case $lt_search_path_spec in 11385 *\;*) 11386 # if the path contains ";" then we assume it to be the separator 11387 # otherwise default to the standard path separator (i.e. ":") - it is 11388 # assumed that no part of a normal pathname contains ";" but that should 11389 # okay in the real world where ";" in dirpaths is itself problematic. 11390 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11391 ;; 11392 *) 11393 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11394 ;; 11395 esac 11396 # Ok, now we have the path, separated by spaces, we can step through it 11397 # and add multilib dir if necessary... 11398 lt_tmp_lt_search_path_spec= 11399 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11400 # ...but if some path component already ends with the multilib dir we assume 11401 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11402 case "$lt_multi_os_dir; $lt_search_path_spec " in 11403 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11404 lt_multi_os_dir= 11405 ;; 11406 esac 11407 for lt_sys_path in $lt_search_path_spec; do 11408 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11409 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11410 elif test -n "$lt_multi_os_dir"; then 11411 test -d "$lt_sys_path" && \ 11412 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11413 fi 11414 done 11415 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11416BEGIN {RS = " "; FS = "/|\n";} { 11417 lt_foo = ""; 11418 lt_count = 0; 11419 for (lt_i = NF; lt_i > 0; lt_i--) { 11420 if ($lt_i != "" && $lt_i != ".") { 11421 if ($lt_i == "..") { 11422 lt_count++; 11423 } else { 11424 if (lt_count == 0) { 11425 lt_foo = "/" $lt_i lt_foo; 11426 } else { 11427 lt_count--; 11428 } 11429 } 11430 } 11431 } 11432 if (lt_foo != "") { lt_freq[lt_foo]++; } 11433 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11434}'` 11435 # AWK program above erroneously prepends '/' to C:/dos/paths 11436 # for these hosts. 11437 case $host_os in 11438 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11439 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11440 esac 11441 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11442else 11443 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11444fi 11445library_names_spec= 11446libname_spec='lib$name' 11447soname_spec= 11448shrext_cmds=.so 11449postinstall_cmds= 11450postuninstall_cmds= 11451finish_cmds= 11452finish_eval= 11453shlibpath_var= 11454shlibpath_overrides_runpath=unknown 11455version_type=none 11456dynamic_linker="$host_os ld.so" 11457sys_lib_dlsearch_path_spec="/lib /usr/lib" 11458need_lib_prefix=unknown 11459hardcode_into_libs=no 11460 11461# when you set need_version to no, make sure it does not cause -set_version 11462# flags to be left without arguments 11463need_version=unknown 11464 11465 11466 11467case $host_os in 11468aix3*) 11469 version_type=linux # correct to gnu/linux during the next big refactor 11470 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11471 shlibpath_var=LIBPATH 11472 11473 # AIX 3 has no versioning support, so we append a major version to the name. 11474 soname_spec='$libname$release$shared_ext$major' 11475 ;; 11476 11477aix[4-9]*) 11478 version_type=linux # correct to gnu/linux during the next big refactor 11479 need_lib_prefix=no 11480 need_version=no 11481 hardcode_into_libs=yes 11482 if test ia64 = "$host_cpu"; then 11483 # AIX 5 supports IA64 11484 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11485 shlibpath_var=LD_LIBRARY_PATH 11486 else 11487 # With GCC up to 2.95.x, collect2 would create an import file 11488 # for dependence libraries. The import file would start with 11489 # the line '#! .'. This would cause the generated library to 11490 # depend on '.', always an invalid library. This was fixed in 11491 # development snapshots of GCC prior to 3.0. 11492 case $host_os in 11493 aix4 | aix4.[01] | aix4.[01].*) 11494 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11495 echo ' yes ' 11496 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11497 : 11498 else 11499 can_build_shared=no 11500 fi 11501 ;; 11502 esac 11503 # Using Import Files as archive members, it is possible to support 11504 # filename-based versioning of shared library archives on AIX. While 11505 # this would work for both with and without runtime linking, it will 11506 # prevent static linking of such archives. So we do filename-based 11507 # shared library versioning with .so extension only, which is used 11508 # when both runtime linking and shared linking is enabled. 11509 # Unfortunately, runtime linking may impact performance, so we do 11510 # not want this to be the default eventually. Also, we use the 11511 # versioned .so libs for executables only if there is the -brtl 11512 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11513 # To allow for filename-based versioning support, we need to create 11514 # libNAME.so.V as an archive file, containing: 11515 # *) an Import File, referring to the versioned filename of the 11516 # archive as well as the shared archive member, telling the 11517 # bitwidth (32 or 64) of that shared object, and providing the 11518 # list of exported symbols of that shared object, eventually 11519 # decorated with the 'weak' keyword 11520 # *) the shared object with the F_LOADONLY flag set, to really avoid 11521 # it being seen by the linker. 11522 # At run time we better use the real file rather than another symlink, 11523 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11524 11525 case $with_aix_soname,$aix_use_runtimelinking in 11526 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11527 # soname into executable. Probably we can add versioning support to 11528 # collect2, so additional links can be useful in future. 11529 aix,yes) # traditional libtool 11530 dynamic_linker='AIX unversionable lib.so' 11531 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11532 # instead of lib<name>.a to let people know that these are not 11533 # typical AIX shared libraries. 11534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11535 ;; 11536 aix,no) # traditional AIX only 11537 dynamic_linker='AIX lib.a(lib.so.V)' 11538 # We preserve .a as extension for shared libraries through AIX4.2 11539 # and later when we are not doing run time linking. 11540 library_names_spec='$libname$release.a $libname.a' 11541 soname_spec='$libname$release$shared_ext$major' 11542 ;; 11543 svr4,*) # full svr4 only 11544 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11545 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11546 # We do not specify a path in Import Files, so LIBPATH fires. 11547 shlibpath_overrides_runpath=yes 11548 ;; 11549 *,yes) # both, prefer svr4 11550 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11551 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11552 # unpreferred sharedlib libNAME.a needs extra handling 11553 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"' 11554 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"' 11555 # We do not specify a path in Import Files, so LIBPATH fires. 11556 shlibpath_overrides_runpath=yes 11557 ;; 11558 *,no) # both, prefer aix 11559 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11560 library_names_spec='$libname$release.a $libname.a' 11561 soname_spec='$libname$release$shared_ext$major' 11562 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11563 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)' 11564 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"' 11565 ;; 11566 esac 11567 shlibpath_var=LIBPATH 11568 fi 11569 ;; 11570 11571amigaos*) 11572 case $host_cpu in 11573 powerpc) 11574 # Since July 2007 AmigaOS4 officially supports .so libraries. 11575 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11577 ;; 11578 m68k) 11579 library_names_spec='$libname.ixlibrary $libname.a' 11580 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11581 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' 11582 ;; 11583 esac 11584 ;; 11585 11586beos*) 11587 library_names_spec='$libname$shared_ext' 11588 dynamic_linker="$host_os ld.so" 11589 shlibpath_var=LIBRARY_PATH 11590 ;; 11591 11592bsdi[45]*) 11593 version_type=linux # correct to gnu/linux during the next big refactor 11594 need_version=no 11595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11596 soname_spec='$libname$release$shared_ext$major' 11597 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11598 shlibpath_var=LD_LIBRARY_PATH 11599 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11600 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11601 # the default ld.so.conf also contains /usr/contrib/lib and 11602 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11603 # libtool to hard-code these into programs 11604 ;; 11605 11606cygwin* | mingw* | pw32* | cegcc*) 11607 version_type=windows 11608 shrext_cmds=.dll 11609 need_version=no 11610 need_lib_prefix=no 11611 11612 case $GCC,$cc_basename in 11613 yes,*) 11614 # gcc 11615 library_names_spec='$libname.dll.a' 11616 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11617 postinstall_cmds='base_file=`basename \$file`~ 11618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11619 dldir=$destdir/`dirname \$dlpath`~ 11620 test -d \$dldir || mkdir -p \$dldir~ 11621 $install_prog $dir/$dlname \$dldir/$dlname~ 11622 chmod a+x \$dldir/$dlname~ 11623 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11624 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11625 fi' 11626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11627 dlpath=$dir/\$dldll~ 11628 $RM \$dlpath' 11629 shlibpath_overrides_runpath=yes 11630 11631 case $host_os in 11632 cygwin*) 11633 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11634 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11635 11636 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11637 ;; 11638 mingw* | cegcc*) 11639 # MinGW DLLs use traditional 'lib' prefix 11640 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11641 ;; 11642 pw32*) 11643 # pw32 DLLs use 'pw' prefix rather than 'lib' 11644 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11645 ;; 11646 esac 11647 dynamic_linker='Win32 ld.exe' 11648 ;; 11649 11650 *,cl*) 11651 # Native MSVC 11652 libname_spec='$name' 11653 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11654 library_names_spec='$libname.dll.lib' 11655 11656 case $build_os in 11657 mingw*) 11658 sys_lib_search_path_spec= 11659 lt_save_ifs=$IFS 11660 IFS=';' 11661 for lt_path in $LIB 11662 do 11663 IFS=$lt_save_ifs 11664 # Let DOS variable expansion print the short 8.3 style file name. 11665 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11666 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11667 done 11668 IFS=$lt_save_ifs 11669 # Convert to MSYS style. 11670 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11671 ;; 11672 cygwin*) 11673 # Convert to unix form, then to dos form, then back to unix form 11674 # but this time dos style (no spaces!) so that the unix form looks 11675 # like /cygdrive/c/PROGRA~1:/cygdr... 11676 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11677 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11678 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11679 ;; 11680 *) 11681 sys_lib_search_path_spec=$LIB 11682 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11683 # It is most probably a Windows format PATH. 11684 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11685 else 11686 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11687 fi 11688 # FIXME: find the short name or the path components, as spaces are 11689 # common. (e.g. "Program Files" -> "PROGRA~1") 11690 ;; 11691 esac 11692 11693 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11694 postinstall_cmds='base_file=`basename \$file`~ 11695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11696 dldir=$destdir/`dirname \$dlpath`~ 11697 test -d \$dldir || mkdir -p \$dldir~ 11698 $install_prog $dir/$dlname \$dldir/$dlname' 11699 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11700 dlpath=$dir/\$dldll~ 11701 $RM \$dlpath' 11702 shlibpath_overrides_runpath=yes 11703 dynamic_linker='Win32 link.exe' 11704 ;; 11705 11706 *) 11707 # Assume MSVC wrapper 11708 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11709 dynamic_linker='Win32 ld.exe' 11710 ;; 11711 esac 11712 # FIXME: first we should search . and the directory the executable is in 11713 shlibpath_var=PATH 11714 ;; 11715 11716darwin* | rhapsody*) 11717 dynamic_linker="$host_os dyld" 11718 version_type=darwin 11719 need_lib_prefix=no 11720 need_version=no 11721 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11722 soname_spec='$libname$release$major$shared_ext' 11723 shlibpath_overrides_runpath=yes 11724 shlibpath_var=DYLD_LIBRARY_PATH 11725 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11726 11727 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11728 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11729 ;; 11730 11731dgux*) 11732 version_type=linux # correct to gnu/linux during the next big refactor 11733 need_lib_prefix=no 11734 need_version=no 11735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11736 soname_spec='$libname$release$shared_ext$major' 11737 shlibpath_var=LD_LIBRARY_PATH 11738 ;; 11739 11740freebsd* | dragonfly*) 11741 # DragonFly does not have aout. When/if they implement a new 11742 # versioning mechanism, adjust this. 11743 if test -x /usr/bin/objformat; then 11744 objformat=`/usr/bin/objformat` 11745 else 11746 case $host_os in 11747 freebsd[23].*) objformat=aout ;; 11748 *) objformat=elf ;; 11749 esac 11750 fi 11751 version_type=freebsd-$objformat 11752 case $version_type in 11753 freebsd-elf*) 11754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11755 soname_spec='$libname$release$shared_ext$major' 11756 need_version=no 11757 need_lib_prefix=no 11758 ;; 11759 freebsd-*) 11760 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11761 need_version=yes 11762 ;; 11763 esac 11764 shlibpath_var=LD_LIBRARY_PATH 11765 case $host_os in 11766 freebsd2.*) 11767 shlibpath_overrides_runpath=yes 11768 ;; 11769 freebsd3.[01]* | freebsdelf3.[01]*) 11770 shlibpath_overrides_runpath=yes 11771 hardcode_into_libs=yes 11772 ;; 11773 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11774 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11775 shlibpath_overrides_runpath=no 11776 hardcode_into_libs=yes 11777 ;; 11778 *) # from 4.6 on, and DragonFly 11779 shlibpath_overrides_runpath=yes 11780 hardcode_into_libs=yes 11781 ;; 11782 esac 11783 ;; 11784 11785haiku*) 11786 version_type=linux # correct to gnu/linux during the next big refactor 11787 need_lib_prefix=no 11788 need_version=no 11789 dynamic_linker="$host_os runtime_loader" 11790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11791 soname_spec='$libname$release$shared_ext$major' 11792 shlibpath_var=LIBRARY_PATH 11793 shlibpath_overrides_runpath=no 11794 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11795 hardcode_into_libs=yes 11796 ;; 11797 11798hpux9* | hpux10* | hpux11*) 11799 # Give a soname corresponding to the major version so that dld.sl refuses to 11800 # link against other versions. 11801 version_type=sunos 11802 need_lib_prefix=no 11803 need_version=no 11804 case $host_cpu in 11805 ia64*) 11806 shrext_cmds='.so' 11807 hardcode_into_libs=yes 11808 dynamic_linker="$host_os dld.so" 11809 shlibpath_var=LD_LIBRARY_PATH 11810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11812 soname_spec='$libname$release$shared_ext$major' 11813 if test 32 = "$HPUX_IA64_MODE"; then 11814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11815 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11816 else 11817 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11818 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11819 fi 11820 ;; 11821 hppa*64*) 11822 shrext_cmds='.sl' 11823 hardcode_into_libs=yes 11824 dynamic_linker="$host_os dld.sl" 11825 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11828 soname_spec='$libname$release$shared_ext$major' 11829 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11831 ;; 11832 *) 11833 shrext_cmds='.sl' 11834 dynamic_linker="$host_os dld.sl" 11835 shlibpath_var=SHLIB_PATH 11836 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11838 soname_spec='$libname$release$shared_ext$major' 11839 ;; 11840 esac 11841 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11842 postinstall_cmds='chmod 555 $lib' 11843 # or fails outright, so override atomically: 11844 install_override_mode=555 11845 ;; 11846 11847interix[3-9]*) 11848 version_type=linux # correct to gnu/linux during the next big refactor 11849 need_lib_prefix=no 11850 need_version=no 11851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11852 soname_spec='$libname$release$shared_ext$major' 11853 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11854 shlibpath_var=LD_LIBRARY_PATH 11855 shlibpath_overrides_runpath=no 11856 hardcode_into_libs=yes 11857 ;; 11858 11859irix5* | irix6* | nonstopux*) 11860 case $host_os in 11861 nonstopux*) version_type=nonstopux ;; 11862 *) 11863 if test yes = "$lt_cv_prog_gnu_ld"; then 11864 version_type=linux # correct to gnu/linux during the next big refactor 11865 else 11866 version_type=irix 11867 fi ;; 11868 esac 11869 need_lib_prefix=no 11870 need_version=no 11871 soname_spec='$libname$release$shared_ext$major' 11872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11873 case $host_os in 11874 irix5* | nonstopux*) 11875 libsuff= shlibsuff= 11876 ;; 11877 *) 11878 case $LD in # libtool.m4 will add one of these switches to LD 11879 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11880 libsuff= shlibsuff= libmagic=32-bit;; 11881 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11882 libsuff=32 shlibsuff=N32 libmagic=N32;; 11883 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11884 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11885 *) libsuff= shlibsuff= libmagic=never-match;; 11886 esac 11887 ;; 11888 esac 11889 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11890 shlibpath_overrides_runpath=no 11891 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11892 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11893 hardcode_into_libs=yes 11894 ;; 11895 11896# No shared lib support for Linux oldld, aout, or coff. 11897linux*oldld* | linux*aout* | linux*coff*) 11898 dynamic_linker=no 11899 ;; 11900 11901linux*android*) 11902 version_type=none # Android doesn't support versioned libraries. 11903 need_lib_prefix=no 11904 need_version=no 11905 library_names_spec='$libname$release$shared_ext' 11906 soname_spec='$libname$release$shared_ext' 11907 finish_cmds= 11908 shlibpath_var=LD_LIBRARY_PATH 11909 shlibpath_overrides_runpath=yes 11910 11911 # This implies no fast_install, which is unacceptable. 11912 # Some rework will be needed to allow for fast_install 11913 # before this can be enabled. 11914 hardcode_into_libs=yes 11915 11916 dynamic_linker='Android linker' 11917 # Don't embed -rpath directories since the linker doesn't support them. 11918 hardcode_libdir_flag_spec='-L$libdir' 11919 ;; 11920 11921# This must be glibc/ELF. 11922linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11923 version_type=linux # correct to gnu/linux during the next big refactor 11924 need_lib_prefix=no 11925 need_version=no 11926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11927 soname_spec='$libname$release$shared_ext$major' 11928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11929 shlibpath_var=LD_LIBRARY_PATH 11930 shlibpath_overrides_runpath=no 11931 11932 # Some binutils ld are patched to set DT_RUNPATH 11933 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11934 $as_echo_n "(cached) " >&6 11935else 11936 lt_cv_shlibpath_overrides_runpath=no 11937 save_LDFLAGS=$LDFLAGS 11938 save_libdir=$libdir 11939 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11940 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11942/* end confdefs.h. */ 11943 11944int 11945main () 11946{ 11947 11948 ; 11949 return 0; 11950} 11951_ACEOF 11952if ac_fn_c_try_link "$LINENO"; then : 11953 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11954 lt_cv_shlibpath_overrides_runpath=yes 11955fi 11956fi 11957rm -f core conftest.err conftest.$ac_objext \ 11958 conftest$ac_exeext conftest.$ac_ext 11959 LDFLAGS=$save_LDFLAGS 11960 libdir=$save_libdir 11961 11962fi 11963 11964 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11965 11966 # This implies no fast_install, which is unacceptable. 11967 # Some rework will be needed to allow for fast_install 11968 # before this can be enabled. 11969 hardcode_into_libs=yes 11970 11971 # Ideally, we could use ldconfig to report *all* directores which are 11972 # searched for libraries, however this is still not possible. Aside from not 11973 # being certain /sbin/ldconfig is available, command 11974 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11975 # even though it is searched at run-time. Try to do the best guess by 11976 # appending ld.so.conf contents (and includes) to the search path. 11977 if test -f /etc/ld.so.conf; then 11978 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' ' '` 11979 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11980 fi 11981 11982 # We used to test for /lib/ld.so.1 and disable shared libraries on 11983 # powerpc, because MkLinux only supported shared libraries with the 11984 # GNU dynamic linker. Since this was broken with cross compilers, 11985 # most powerpc-linux boxes support dynamic linking these days and 11986 # people can always --disable-shared, the test was removed, and we 11987 # assume the GNU/Linux dynamic linker is in use. 11988 dynamic_linker='GNU/Linux ld.so' 11989 ;; 11990 11991netbsdelf*-gnu) 11992 version_type=linux 11993 need_lib_prefix=no 11994 need_version=no 11995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11996 soname_spec='${libname}${release}${shared_ext}$major' 11997 shlibpath_var=LD_LIBRARY_PATH 11998 shlibpath_overrides_runpath=no 11999 hardcode_into_libs=yes 12000 dynamic_linker='NetBSD ld.elf_so' 12001 ;; 12002 12003netbsd*) 12004 version_type=sunos 12005 need_lib_prefix=no 12006 need_version=no 12007 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12008 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12010 dynamic_linker='NetBSD (a.out) ld.so' 12011 else 12012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12013 soname_spec='$libname$release$shared_ext$major' 12014 dynamic_linker='NetBSD ld.elf_so' 12015 fi 12016 shlibpath_var=LD_LIBRARY_PATH 12017 shlibpath_overrides_runpath=yes 12018 hardcode_into_libs=yes 12019 ;; 12020 12021newsos6) 12022 version_type=linux # correct to gnu/linux during the next big refactor 12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12024 shlibpath_var=LD_LIBRARY_PATH 12025 shlibpath_overrides_runpath=yes 12026 ;; 12027 12028*nto* | *qnx*) 12029 version_type=qnx 12030 need_lib_prefix=no 12031 need_version=no 12032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12033 soname_spec='$libname$release$shared_ext$major' 12034 shlibpath_var=LD_LIBRARY_PATH 12035 shlibpath_overrides_runpath=no 12036 hardcode_into_libs=yes 12037 dynamic_linker='ldqnx.so' 12038 ;; 12039 12040openbsd* | bitrig*) 12041 version_type=sunos 12042 sys_lib_dlsearch_path_spec=/usr/lib 12043 need_lib_prefix=no 12044 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12045 need_version=no 12046 else 12047 need_version=yes 12048 fi 12049 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12051 shlibpath_var=LD_LIBRARY_PATH 12052 shlibpath_overrides_runpath=yes 12053 ;; 12054 12055os2*) 12056 libname_spec='$name' 12057 version_type=windows 12058 shrext_cmds=.dll 12059 need_version=no 12060 need_lib_prefix=no 12061 # OS/2 can only load a DLL with a base name of 8 characters or less. 12062 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12063 v=$($ECHO $release$versuffix | tr -d .-); 12064 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12065 $ECHO $n$v`$shared_ext' 12066 library_names_spec='${libname}_dll.$libext' 12067 dynamic_linker='OS/2 ld.exe' 12068 shlibpath_var=BEGINLIBPATH 12069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12071 postinstall_cmds='base_file=`basename \$file`~ 12072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12073 dldir=$destdir/`dirname \$dlpath`~ 12074 test -d \$dldir || mkdir -p \$dldir~ 12075 $install_prog $dir/$dlname \$dldir/$dlname~ 12076 chmod a+x \$dldir/$dlname~ 12077 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12078 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12079 fi' 12080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12081 dlpath=$dir/\$dldll~ 12082 $RM \$dlpath' 12083 ;; 12084 12085osf3* | osf4* | osf5*) 12086 version_type=osf 12087 need_lib_prefix=no 12088 need_version=no 12089 soname_spec='$libname$release$shared_ext$major' 12090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12091 shlibpath_var=LD_LIBRARY_PATH 12092 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12094 ;; 12095 12096rdos*) 12097 dynamic_linker=no 12098 ;; 12099 12100solaris*) 12101 version_type=linux # correct to gnu/linux during the next big refactor 12102 need_lib_prefix=no 12103 need_version=no 12104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12105 soname_spec='$libname$release$shared_ext$major' 12106 shlibpath_var=LD_LIBRARY_PATH 12107 shlibpath_overrides_runpath=yes 12108 hardcode_into_libs=yes 12109 # ldd complains unless libraries are executable 12110 postinstall_cmds='chmod +x $lib' 12111 ;; 12112 12113sunos4*) 12114 version_type=sunos 12115 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12116 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12117 shlibpath_var=LD_LIBRARY_PATH 12118 shlibpath_overrides_runpath=yes 12119 if test yes = "$with_gnu_ld"; then 12120 need_lib_prefix=no 12121 fi 12122 need_version=yes 12123 ;; 12124 12125sysv4 | sysv4.3*) 12126 version_type=linux # correct to gnu/linux during the next big refactor 12127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12128 soname_spec='$libname$release$shared_ext$major' 12129 shlibpath_var=LD_LIBRARY_PATH 12130 case $host_vendor in 12131 sni) 12132 shlibpath_overrides_runpath=no 12133 need_lib_prefix=no 12134 runpath_var=LD_RUN_PATH 12135 ;; 12136 siemens) 12137 need_lib_prefix=no 12138 ;; 12139 motorola) 12140 need_lib_prefix=no 12141 need_version=no 12142 shlibpath_overrides_runpath=no 12143 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12144 ;; 12145 esac 12146 ;; 12147 12148sysv4*MP*) 12149 if test -d /usr/nec; then 12150 version_type=linux # correct to gnu/linux during the next big refactor 12151 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12152 soname_spec='$libname$shared_ext.$major' 12153 shlibpath_var=LD_LIBRARY_PATH 12154 fi 12155 ;; 12156 12157sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12158 version_type=sco 12159 need_lib_prefix=no 12160 need_version=no 12161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12162 soname_spec='$libname$release$shared_ext$major' 12163 shlibpath_var=LD_LIBRARY_PATH 12164 shlibpath_overrides_runpath=yes 12165 hardcode_into_libs=yes 12166 if test yes = "$with_gnu_ld"; then 12167 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12168 else 12169 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12170 case $host_os in 12171 sco3.2v5*) 12172 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12173 ;; 12174 esac 12175 fi 12176 sys_lib_dlsearch_path_spec='/usr/lib' 12177 ;; 12178 12179tpf*) 12180 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12181 version_type=linux # correct to gnu/linux during the next big refactor 12182 need_lib_prefix=no 12183 need_version=no 12184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12185 shlibpath_var=LD_LIBRARY_PATH 12186 shlibpath_overrides_runpath=no 12187 hardcode_into_libs=yes 12188 ;; 12189 12190uts4*) 12191 version_type=linux # correct to gnu/linux during the next big refactor 12192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12193 soname_spec='$libname$release$shared_ext$major' 12194 shlibpath_var=LD_LIBRARY_PATH 12195 ;; 12196 12197*) 12198 dynamic_linker=no 12199 ;; 12200esac 12201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12202$as_echo "$dynamic_linker" >&6; } 12203test no = "$dynamic_linker" && can_build_shared=no 12204 12205variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12206if test yes = "$GCC"; then 12207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12208fi 12209 12210if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12211 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12212fi 12213 12214if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12215 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12216fi 12217 12218# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12219configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12220 12221# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12222func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12223 12224# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12225configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12324$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12325hardcode_action= 12326if test -n "$hardcode_libdir_flag_spec" || 12327 test -n "$runpath_var" || 12328 test yes = "$hardcode_automatic"; then 12329 12330 # We can hardcode non-existent directories. 12331 if test no != "$hardcode_direct" && 12332 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12333 # have to relink, otherwise we might link with an installed library 12334 # when we should be linking with a yet-to-be-installed one 12335 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12336 test no != "$hardcode_minus_L"; then 12337 # Linking always hardcodes the temporary library directory. 12338 hardcode_action=relink 12339 else 12340 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12341 hardcode_action=immediate 12342 fi 12343else 12344 # We cannot hardcode anything, or else we can only hardcode existing 12345 # directories. 12346 hardcode_action=unsupported 12347fi 12348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12349$as_echo "$hardcode_action" >&6; } 12350 12351if test relink = "$hardcode_action" || 12352 test yes = "$inherit_rpath"; then 12353 # Fast installation is not supported 12354 enable_fast_install=no 12355elif test yes = "$shlibpath_overrides_runpath" || 12356 test no = "$enable_shared"; then 12357 # Fast installation is not necessary 12358 enable_fast_install=needless 12359fi 12360 12361 12362 12363 12364 12365 12366 if test yes != "$enable_dlopen"; then 12367 enable_dlopen=unknown 12368 enable_dlopen_self=unknown 12369 enable_dlopen_self_static=unknown 12370else 12371 lt_cv_dlopen=no 12372 lt_cv_dlopen_libs= 12373 12374 case $host_os in 12375 beos*) 12376 lt_cv_dlopen=load_add_on 12377 lt_cv_dlopen_libs= 12378 lt_cv_dlopen_self=yes 12379 ;; 12380 12381 mingw* | pw32* | cegcc*) 12382 lt_cv_dlopen=LoadLibrary 12383 lt_cv_dlopen_libs= 12384 ;; 12385 12386 cygwin*) 12387 lt_cv_dlopen=dlopen 12388 lt_cv_dlopen_libs= 12389 ;; 12390 12391 darwin*) 12392 # if libdl is installed we need to link against it 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12394$as_echo_n "checking for dlopen in -ldl... " >&6; } 12395if ${ac_cv_lib_dl_dlopen+:} false; then : 12396 $as_echo_n "(cached) " >&6 12397else 12398 ac_check_lib_save_LIBS=$LIBS 12399LIBS="-ldl $LIBS" 12400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12401/* end confdefs.h. */ 12402 12403/* Override any GCC internal prototype to avoid an error. 12404 Use char because int might match the return type of a GCC 12405 builtin and then its argument prototype would still apply. */ 12406#ifdef __cplusplus 12407extern "C" 12408#endif 12409char dlopen (); 12410int 12411main () 12412{ 12413return dlopen (); 12414 ; 12415 return 0; 12416} 12417_ACEOF 12418if ac_fn_c_try_link "$LINENO"; then : 12419 ac_cv_lib_dl_dlopen=yes 12420else 12421 ac_cv_lib_dl_dlopen=no 12422fi 12423rm -f core conftest.err conftest.$ac_objext \ 12424 conftest$ac_exeext conftest.$ac_ext 12425LIBS=$ac_check_lib_save_LIBS 12426fi 12427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12428$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12429if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12430 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12431else 12432 12433 lt_cv_dlopen=dyld 12434 lt_cv_dlopen_libs= 12435 lt_cv_dlopen_self=yes 12436 12437fi 12438 12439 ;; 12440 12441 tpf*) 12442 # Don't try to run any link tests for TPF. We know it's impossible 12443 # because TPF is a cross-compiler, and we know how we open DSOs. 12444 lt_cv_dlopen=dlopen 12445 lt_cv_dlopen_libs= 12446 lt_cv_dlopen_self=no 12447 ;; 12448 12449 *) 12450 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12451if test "x$ac_cv_func_shl_load" = xyes; then : 12452 lt_cv_dlopen=shl_load 12453else 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12455$as_echo_n "checking for shl_load in -ldld... " >&6; } 12456if ${ac_cv_lib_dld_shl_load+:} false; then : 12457 $as_echo_n "(cached) " >&6 12458else 12459 ac_check_lib_save_LIBS=$LIBS 12460LIBS="-ldld $LIBS" 12461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12462/* end confdefs.h. */ 12463 12464/* Override any GCC internal prototype to avoid an error. 12465 Use char because int might match the return type of a GCC 12466 builtin and then its argument prototype would still apply. */ 12467#ifdef __cplusplus 12468extern "C" 12469#endif 12470char shl_load (); 12471int 12472main () 12473{ 12474return shl_load (); 12475 ; 12476 return 0; 12477} 12478_ACEOF 12479if ac_fn_c_try_link "$LINENO"; then : 12480 ac_cv_lib_dld_shl_load=yes 12481else 12482 ac_cv_lib_dld_shl_load=no 12483fi 12484rm -f core conftest.err conftest.$ac_objext \ 12485 conftest$ac_exeext conftest.$ac_ext 12486LIBS=$ac_check_lib_save_LIBS 12487fi 12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12489$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12490if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12491 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12492else 12493 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12494if test "x$ac_cv_func_dlopen" = xyes; then : 12495 lt_cv_dlopen=dlopen 12496else 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12498$as_echo_n "checking for dlopen in -ldl... " >&6; } 12499if ${ac_cv_lib_dl_dlopen+:} false; then : 12500 $as_echo_n "(cached) " >&6 12501else 12502 ac_check_lib_save_LIBS=$LIBS 12503LIBS="-ldl $LIBS" 12504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12505/* end confdefs.h. */ 12506 12507/* Override any GCC internal prototype to avoid an error. 12508 Use char because int might match the return type of a GCC 12509 builtin and then its argument prototype would still apply. */ 12510#ifdef __cplusplus 12511extern "C" 12512#endif 12513char dlopen (); 12514int 12515main () 12516{ 12517return dlopen (); 12518 ; 12519 return 0; 12520} 12521_ACEOF 12522if ac_fn_c_try_link "$LINENO"; then : 12523 ac_cv_lib_dl_dlopen=yes 12524else 12525 ac_cv_lib_dl_dlopen=no 12526fi 12527rm -f core conftest.err conftest.$ac_objext \ 12528 conftest$ac_exeext conftest.$ac_ext 12529LIBS=$ac_check_lib_save_LIBS 12530fi 12531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12532$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12533if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12534 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12535else 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12537$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12538if ${ac_cv_lib_svld_dlopen+:} false; then : 12539 $as_echo_n "(cached) " >&6 12540else 12541 ac_check_lib_save_LIBS=$LIBS 12542LIBS="-lsvld $LIBS" 12543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12544/* end confdefs.h. */ 12545 12546/* Override any GCC internal prototype to avoid an error. 12547 Use char because int might match the return type of a GCC 12548 builtin and then its argument prototype would still apply. */ 12549#ifdef __cplusplus 12550extern "C" 12551#endif 12552char dlopen (); 12553int 12554main () 12555{ 12556return dlopen (); 12557 ; 12558 return 0; 12559} 12560_ACEOF 12561if ac_fn_c_try_link "$LINENO"; then : 12562 ac_cv_lib_svld_dlopen=yes 12563else 12564 ac_cv_lib_svld_dlopen=no 12565fi 12566rm -f core conftest.err conftest.$ac_objext \ 12567 conftest$ac_exeext conftest.$ac_ext 12568LIBS=$ac_check_lib_save_LIBS 12569fi 12570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12571$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12572if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12573 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12574else 12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12576$as_echo_n "checking for dld_link in -ldld... " >&6; } 12577if ${ac_cv_lib_dld_dld_link+:} false; then : 12578 $as_echo_n "(cached) " >&6 12579else 12580 ac_check_lib_save_LIBS=$LIBS 12581LIBS="-ldld $LIBS" 12582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12583/* end confdefs.h. */ 12584 12585/* Override any GCC internal prototype to avoid an error. 12586 Use char because int might match the return type of a GCC 12587 builtin and then its argument prototype would still apply. */ 12588#ifdef __cplusplus 12589extern "C" 12590#endif 12591char dld_link (); 12592int 12593main () 12594{ 12595return dld_link (); 12596 ; 12597 return 0; 12598} 12599_ACEOF 12600if ac_fn_c_try_link "$LINENO"; then : 12601 ac_cv_lib_dld_dld_link=yes 12602else 12603 ac_cv_lib_dld_dld_link=no 12604fi 12605rm -f core conftest.err conftest.$ac_objext \ 12606 conftest$ac_exeext conftest.$ac_ext 12607LIBS=$ac_check_lib_save_LIBS 12608fi 12609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12610$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12611if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12612 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12613fi 12614 12615 12616fi 12617 12618 12619fi 12620 12621 12622fi 12623 12624 12625fi 12626 12627 12628fi 12629 12630 ;; 12631 esac 12632 12633 if test no = "$lt_cv_dlopen"; then 12634 enable_dlopen=no 12635 else 12636 enable_dlopen=yes 12637 fi 12638 12639 case $lt_cv_dlopen in 12640 dlopen) 12641 save_CPPFLAGS=$CPPFLAGS 12642 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12643 12644 save_LDFLAGS=$LDFLAGS 12645 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12646 12647 save_LIBS=$LIBS 12648 LIBS="$lt_cv_dlopen_libs $LIBS" 12649 12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12651$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12652if ${lt_cv_dlopen_self+:} false; then : 12653 $as_echo_n "(cached) " >&6 12654else 12655 if test yes = "$cross_compiling"; then : 12656 lt_cv_dlopen_self=cross 12657else 12658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12659 lt_status=$lt_dlunknown 12660 cat > conftest.$ac_ext <<_LT_EOF 12661#line $LINENO "configure" 12662#include "confdefs.h" 12663 12664#if HAVE_DLFCN_H 12665#include <dlfcn.h> 12666#endif 12667 12668#include <stdio.h> 12669 12670#ifdef RTLD_GLOBAL 12671# define LT_DLGLOBAL RTLD_GLOBAL 12672#else 12673# ifdef DL_GLOBAL 12674# define LT_DLGLOBAL DL_GLOBAL 12675# else 12676# define LT_DLGLOBAL 0 12677# endif 12678#endif 12679 12680/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12681 find out it does not work in some platform. */ 12682#ifndef LT_DLLAZY_OR_NOW 12683# ifdef RTLD_LAZY 12684# define LT_DLLAZY_OR_NOW RTLD_LAZY 12685# else 12686# ifdef DL_LAZY 12687# define LT_DLLAZY_OR_NOW DL_LAZY 12688# else 12689# ifdef RTLD_NOW 12690# define LT_DLLAZY_OR_NOW RTLD_NOW 12691# else 12692# ifdef DL_NOW 12693# define LT_DLLAZY_OR_NOW DL_NOW 12694# else 12695# define LT_DLLAZY_OR_NOW 0 12696# endif 12697# endif 12698# endif 12699# endif 12700#endif 12701 12702/* When -fvisibility=hidden is used, assume the code has been annotated 12703 correspondingly for the symbols needed. */ 12704#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12705int fnord () __attribute__((visibility("default"))); 12706#endif 12707 12708int fnord () { return 42; } 12709int main () 12710{ 12711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12712 int status = $lt_dlunknown; 12713 12714 if (self) 12715 { 12716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12717 else 12718 { 12719 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12720 else puts (dlerror ()); 12721 } 12722 /* dlclose (self); */ 12723 } 12724 else 12725 puts (dlerror ()); 12726 12727 return status; 12728} 12729_LT_EOF 12730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12731 (eval $ac_link) 2>&5 12732 ac_status=$? 12733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12734 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12735 (./conftest; exit; ) >&5 2>/dev/null 12736 lt_status=$? 12737 case x$lt_status in 12738 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12739 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12740 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12741 esac 12742 else : 12743 # compilation failed 12744 lt_cv_dlopen_self=no 12745 fi 12746fi 12747rm -fr conftest* 12748 12749 12750fi 12751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12752$as_echo "$lt_cv_dlopen_self" >&6; } 12753 12754 if test yes = "$lt_cv_dlopen_self"; then 12755 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12757$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12758if ${lt_cv_dlopen_self_static+:} false; then : 12759 $as_echo_n "(cached) " >&6 12760else 12761 if test yes = "$cross_compiling"; then : 12762 lt_cv_dlopen_self_static=cross 12763else 12764 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12765 lt_status=$lt_dlunknown 12766 cat > conftest.$ac_ext <<_LT_EOF 12767#line $LINENO "configure" 12768#include "confdefs.h" 12769 12770#if HAVE_DLFCN_H 12771#include <dlfcn.h> 12772#endif 12773 12774#include <stdio.h> 12775 12776#ifdef RTLD_GLOBAL 12777# define LT_DLGLOBAL RTLD_GLOBAL 12778#else 12779# ifdef DL_GLOBAL 12780# define LT_DLGLOBAL DL_GLOBAL 12781# else 12782# define LT_DLGLOBAL 0 12783# endif 12784#endif 12785 12786/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12787 find out it does not work in some platform. */ 12788#ifndef LT_DLLAZY_OR_NOW 12789# ifdef RTLD_LAZY 12790# define LT_DLLAZY_OR_NOW RTLD_LAZY 12791# else 12792# ifdef DL_LAZY 12793# define LT_DLLAZY_OR_NOW DL_LAZY 12794# else 12795# ifdef RTLD_NOW 12796# define LT_DLLAZY_OR_NOW RTLD_NOW 12797# else 12798# ifdef DL_NOW 12799# define LT_DLLAZY_OR_NOW DL_NOW 12800# else 12801# define LT_DLLAZY_OR_NOW 0 12802# endif 12803# endif 12804# endif 12805# endif 12806#endif 12807 12808/* When -fvisibility=hidden is used, assume the code has been annotated 12809 correspondingly for the symbols needed. */ 12810#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12811int fnord () __attribute__((visibility("default"))); 12812#endif 12813 12814int fnord () { return 42; } 12815int main () 12816{ 12817 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12818 int status = $lt_dlunknown; 12819 12820 if (self) 12821 { 12822 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12823 else 12824 { 12825 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12826 else puts (dlerror ()); 12827 } 12828 /* dlclose (self); */ 12829 } 12830 else 12831 puts (dlerror ()); 12832 12833 return status; 12834} 12835_LT_EOF 12836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12837 (eval $ac_link) 2>&5 12838 ac_status=$? 12839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12840 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12841 (./conftest; exit; ) >&5 2>/dev/null 12842 lt_status=$? 12843 case x$lt_status in 12844 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12845 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12846 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12847 esac 12848 else : 12849 # compilation failed 12850 lt_cv_dlopen_self_static=no 12851 fi 12852fi 12853rm -fr conftest* 12854 12855 12856fi 12857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12858$as_echo "$lt_cv_dlopen_self_static" >&6; } 12859 fi 12860 12861 CPPFLAGS=$save_CPPFLAGS 12862 LDFLAGS=$save_LDFLAGS 12863 LIBS=$save_LIBS 12864 ;; 12865 esac 12866 12867 case $lt_cv_dlopen_self in 12868 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12869 *) enable_dlopen_self=unknown ;; 12870 esac 12871 12872 case $lt_cv_dlopen_self_static in 12873 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12874 *) enable_dlopen_self_static=unknown ;; 12875 esac 12876fi 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894striplib= 12895old_striplib= 12896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12897$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12898if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12899 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12900 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12902$as_echo "yes" >&6; } 12903else 12904# FIXME - insert some real tests, host_os isn't really good enough 12905 case $host_os in 12906 darwin*) 12907 if test -n "$STRIP"; then 12908 striplib="$STRIP -x" 12909 old_striplib="$STRIP -S" 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12911$as_echo "yes" >&6; } 12912 else 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12914$as_echo "no" >&6; } 12915 fi 12916 ;; 12917 *) 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12919$as_echo "no" >&6; } 12920 ;; 12921 esac 12922fi 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 # Report what library types will actually be built 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12937$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12939$as_echo "$can_build_shared" >&6; } 12940 12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12942$as_echo_n "checking whether to build shared libraries... " >&6; } 12943 test no = "$can_build_shared" && enable_shared=no 12944 12945 # On AIX, shared libraries and static libraries use the same namespace, and 12946 # are all built from PIC. 12947 case $host_os in 12948 aix3*) 12949 test yes = "$enable_shared" && enable_static=no 12950 if test -n "$RANLIB"; then 12951 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12952 postinstall_cmds='$RANLIB $lib' 12953 fi 12954 ;; 12955 12956 aix[4-9]*) 12957 if test ia64 != "$host_cpu"; then 12958 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12959 yes,aix,yes) ;; # shared object as lib.so file only 12960 yes,svr4,*) ;; # shared object as lib.so archive member only 12961 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12962 esac 12963 fi 12964 ;; 12965 esac 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12967$as_echo "$enable_shared" >&6; } 12968 12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12970$as_echo_n "checking whether to build static libraries... " >&6; } 12971 # Make sure either enable_shared or enable_static is yes. 12972 test yes = "$enable_shared" || enable_static=yes 12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12974$as_echo "$enable_static" >&6; } 12975 12976 12977 12978 12979fi 12980ac_ext=c 12981ac_cpp='$CPP $CPPFLAGS' 12982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12984ac_compiler_gnu=$ac_cv_c_compiler_gnu 12985 12986CC=$lt_save_CC 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 ac_config_commands="$ac_config_commands libtool" 13003 13004 13005 13006 13007# Only expand once: 13008 13009 13010 13011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 13012$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 13013 # Check whether --enable-maintainer-mode was given. 13014if test "${enable_maintainer_mode+set}" = set; then : 13015 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 13016else 13017 USE_MAINTAINER_MODE=no 13018fi 13019 13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 13021$as_echo "$USE_MAINTAINER_MODE" >&6; } 13022 if test $USE_MAINTAINER_MODE = yes; then 13023 MAINTAINER_MODE_TRUE= 13024 MAINTAINER_MODE_FALSE='#' 13025else 13026 MAINTAINER_MODE_TRUE='#' 13027 MAINTAINER_MODE_FALSE= 13028fi 13029 13030 MAINT=$MAINTAINER_MODE_TRUE 13031 13032 13033 13034 13035# Check we're in the right directory 13036 13037ac_config_headers="$ac_config_headers config.h" 13038 13039 13040 13041# Checks for programs. 13042ac_ext=cpp 13043ac_cpp='$CXXCPP $CPPFLAGS' 13044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13047if test -z "$CXX"; then 13048 if test -n "$CCC"; then 13049 CXX=$CCC 13050 else 13051 if test -n "$ac_tool_prefix"; then 13052 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13053 do 13054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13055set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13057$as_echo_n "checking for $ac_word... " >&6; } 13058if ${ac_cv_prog_CXX+:} false; then : 13059 $as_echo_n "(cached) " >&6 13060else 13061 if test -n "$CXX"; then 13062 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13063else 13064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13065for as_dir in $PATH 13066do 13067 IFS=$as_save_IFS 13068 test -z "$as_dir" && as_dir=. 13069 for ac_exec_ext in '' $ac_executable_extensions; do 13070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13071 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13073 break 2 13074 fi 13075done 13076 done 13077IFS=$as_save_IFS 13078 13079fi 13080fi 13081CXX=$ac_cv_prog_CXX 13082if test -n "$CXX"; then 13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13084$as_echo "$CXX" >&6; } 13085else 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13087$as_echo "no" >&6; } 13088fi 13089 13090 13091 test -n "$CXX" && break 13092 done 13093fi 13094if test -z "$CXX"; then 13095 ac_ct_CXX=$CXX 13096 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13097do 13098 # Extract the first word of "$ac_prog", so it can be a program name with args. 13099set dummy $ac_prog; ac_word=$2 13100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13101$as_echo_n "checking for $ac_word... " >&6; } 13102if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13103 $as_echo_n "(cached) " >&6 13104else 13105 if test -n "$ac_ct_CXX"; then 13106 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13107else 13108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13109for as_dir in $PATH 13110do 13111 IFS=$as_save_IFS 13112 test -z "$as_dir" && as_dir=. 13113 for ac_exec_ext in '' $ac_executable_extensions; do 13114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13115 ac_cv_prog_ac_ct_CXX="$ac_prog" 13116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13117 break 2 13118 fi 13119done 13120 done 13121IFS=$as_save_IFS 13122 13123fi 13124fi 13125ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13126if test -n "$ac_ct_CXX"; then 13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13128$as_echo "$ac_ct_CXX" >&6; } 13129else 13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13131$as_echo "no" >&6; } 13132fi 13133 13134 13135 test -n "$ac_ct_CXX" && break 13136done 13137 13138 if test "x$ac_ct_CXX" = x; then 13139 CXX="g++" 13140 else 13141 case $cross_compiling:$ac_tool_warned in 13142yes:) 13143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13145ac_tool_warned=yes ;; 13146esac 13147 CXX=$ac_ct_CXX 13148 fi 13149fi 13150 13151 fi 13152fi 13153# Provide some information about the compiler. 13154$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13155set X $ac_compile 13156ac_compiler=$2 13157for ac_option in --version -v -V -qversion; do 13158 { { ac_try="$ac_compiler $ac_option >&5" 13159case "(($ac_try" in 13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13161 *) ac_try_echo=$ac_try;; 13162esac 13163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13164$as_echo "$ac_try_echo"; } >&5 13165 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13166 ac_status=$? 13167 if test -s conftest.err; then 13168 sed '10a\ 13169... rest of stderr output deleted ... 13170 10q' conftest.err >conftest.er1 13171 cat conftest.er1 >&5 13172 fi 13173 rm -f conftest.er1 conftest.err 13174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13175 test $ac_status = 0; } 13176done 13177 13178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13179$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13180if ${ac_cv_cxx_compiler_gnu+:} false; then : 13181 $as_echo_n "(cached) " >&6 13182else 13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184/* end confdefs.h. */ 13185 13186int 13187main () 13188{ 13189#ifndef __GNUC__ 13190 choke me 13191#endif 13192 13193 ; 13194 return 0; 13195} 13196_ACEOF 13197if ac_fn_cxx_try_compile "$LINENO"; then : 13198 ac_compiler_gnu=yes 13199else 13200 ac_compiler_gnu=no 13201fi 13202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13203ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13204 13205fi 13206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13207$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13208if test $ac_compiler_gnu = yes; then 13209 GXX=yes 13210else 13211 GXX= 13212fi 13213ac_test_CXXFLAGS=${CXXFLAGS+set} 13214ac_save_CXXFLAGS=$CXXFLAGS 13215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13216$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13217if ${ac_cv_prog_cxx_g+:} false; then : 13218 $as_echo_n "(cached) " >&6 13219else 13220 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13221 ac_cxx_werror_flag=yes 13222 ac_cv_prog_cxx_g=no 13223 CXXFLAGS="-g" 13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13225/* end confdefs.h. */ 13226 13227int 13228main () 13229{ 13230 13231 ; 13232 return 0; 13233} 13234_ACEOF 13235if ac_fn_cxx_try_compile "$LINENO"; then : 13236 ac_cv_prog_cxx_g=yes 13237else 13238 CXXFLAGS="" 13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13240/* end confdefs.h. */ 13241 13242int 13243main () 13244{ 13245 13246 ; 13247 return 0; 13248} 13249_ACEOF 13250if ac_fn_cxx_try_compile "$LINENO"; then : 13251 13252else 13253 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13254 CXXFLAGS="-g" 13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13256/* end confdefs.h. */ 13257 13258int 13259main () 13260{ 13261 13262 ; 13263 return 0; 13264} 13265_ACEOF 13266if ac_fn_cxx_try_compile "$LINENO"; then : 13267 ac_cv_prog_cxx_g=yes 13268fi 13269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13270fi 13271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13272fi 13273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13274 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13275fi 13276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13277$as_echo "$ac_cv_prog_cxx_g" >&6; } 13278if test "$ac_test_CXXFLAGS" = set; then 13279 CXXFLAGS=$ac_save_CXXFLAGS 13280elif test $ac_cv_prog_cxx_g = yes; then 13281 if test "$GXX" = yes; then 13282 CXXFLAGS="-g -O2" 13283 else 13284 CXXFLAGS="-g" 13285 fi 13286else 13287 if test "$GXX" = yes; then 13288 CXXFLAGS="-O2" 13289 else 13290 CXXFLAGS= 13291 fi 13292fi 13293ac_ext=c 13294ac_cpp='$CPP $CPPFLAGS' 13295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13297ac_compiler_gnu=$ac_cv_c_compiler_gnu 13298 13299depcc="$CXX" am_compiler_list= 13300 13301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13302$as_echo_n "checking dependency style of $depcc... " >&6; } 13303if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13304 $as_echo_n "(cached) " >&6 13305else 13306 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13307 # We make a subdir and do the tests there. Otherwise we can end up 13308 # making bogus files that we don't know about and never remove. For 13309 # instance it was reported that on HP-UX the gcc test will end up 13310 # making a dummy file named 'D' -- because '-MD' means "put the output 13311 # in D". 13312 rm -rf conftest.dir 13313 mkdir conftest.dir 13314 # Copy depcomp to subdir because otherwise we won't find it if we're 13315 # using a relative directory. 13316 cp "$am_depcomp" conftest.dir 13317 cd conftest.dir 13318 # We will build objects and dependencies in a subdirectory because 13319 # it helps to detect inapplicable dependency modes. For instance 13320 # both Tru64's cc and ICC support -MD to output dependencies as a 13321 # side effect of compilation, but ICC will put the dependencies in 13322 # the current directory while Tru64 will put them in the object 13323 # directory. 13324 mkdir sub 13325 13326 am_cv_CXX_dependencies_compiler_type=none 13327 if test "$am_compiler_list" = ""; then 13328 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13329 fi 13330 am__universal=false 13331 case " $depcc " in #( 13332 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13333 esac 13334 13335 for depmode in $am_compiler_list; do 13336 # Setup a source with many dependencies, because some compilers 13337 # like to wrap large dependency lists on column 80 (with \), and 13338 # we should not choose a depcomp mode which is confused by this. 13339 # 13340 # We need to recreate these files for each test, as the compiler may 13341 # overwrite some of them when testing with obscure command lines. 13342 # This happens at least with the AIX C compiler. 13343 : > sub/conftest.c 13344 for i in 1 2 3 4 5 6; do 13345 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13346 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13347 # Solaris 10 /bin/sh. 13348 echo '/* dummy */' > sub/conftst$i.h 13349 done 13350 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13351 13352 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13353 # mode. It turns out that the SunPro C++ compiler does not properly 13354 # handle '-M -o', and we need to detect this. Also, some Intel 13355 # versions had trouble with output in subdirs. 13356 am__obj=sub/conftest.${OBJEXT-o} 13357 am__minus_obj="-o $am__obj" 13358 case $depmode in 13359 gcc) 13360 # This depmode causes a compiler race in universal mode. 13361 test "$am__universal" = false || continue 13362 ;; 13363 nosideeffect) 13364 # After this tag, mechanisms are not by side-effect, so they'll 13365 # only be used when explicitly requested. 13366 if test "x$enable_dependency_tracking" = xyes; then 13367 continue 13368 else 13369 break 13370 fi 13371 ;; 13372 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13373 # This compiler won't grok '-c -o', but also, the minuso test has 13374 # not run yet. These depmodes are late enough in the game, and 13375 # so weak that their functioning should not be impacted. 13376 am__obj=conftest.${OBJEXT-o} 13377 am__minus_obj= 13378 ;; 13379 none) break ;; 13380 esac 13381 if depmode=$depmode \ 13382 source=sub/conftest.c object=$am__obj \ 13383 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13384 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13385 >/dev/null 2>conftest.err && 13386 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13387 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13388 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13389 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13390 # icc doesn't choke on unknown options, it will just issue warnings 13391 # or remarks (even with -Werror). So we grep stderr for any message 13392 # that says an option was ignored or not supported. 13393 # When given -MP, icc 7.0 and 7.1 complain thusly: 13394 # icc: Command line warning: ignoring option '-M'; no argument required 13395 # The diagnosis changed in icc 8.0: 13396 # icc: Command line remark: option '-MP' not supported 13397 if (grep 'ignoring option' conftest.err || 13398 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13399 am_cv_CXX_dependencies_compiler_type=$depmode 13400 break 13401 fi 13402 fi 13403 done 13404 13405 cd .. 13406 rm -rf conftest.dir 13407else 13408 am_cv_CXX_dependencies_compiler_type=none 13409fi 13410 13411fi 13412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13413$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13414CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13415 13416 if 13417 test "x$enable_dependency_tracking" != xno \ 13418 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13419 am__fastdepCXX_TRUE= 13420 am__fastdepCXX_FALSE='#' 13421else 13422 am__fastdepCXX_TRUE='#' 13423 am__fastdepCXX_FALSE= 13424fi 13425 13426 13427 13428 13429func_stripname_cnf () 13430{ 13431 case $2 in 13432 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13433 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13434 esac 13435} # func_stripname_cnf 13436 13437 if test -n "$CXX" && ( test no != "$CXX" && 13438 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13439 (test g++ != "$CXX"))); then 13440 ac_ext=cpp 13441ac_cpp='$CXXCPP $CPPFLAGS' 13442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13446$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13447if test -z "$CXXCPP"; then 13448 if ${ac_cv_prog_CXXCPP+:} false; then : 13449 $as_echo_n "(cached) " >&6 13450else 13451 # Double quotes because CXXCPP needs to be expanded 13452 for CXXCPP in "$CXX -E" "/lib/cpp" 13453 do 13454 ac_preproc_ok=false 13455for ac_cxx_preproc_warn_flag in '' yes 13456do 13457 # Use a header file that comes with gcc, so configuring glibc 13458 # with a fresh cross-compiler works. 13459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13460 # <limits.h> exists even on freestanding compilers. 13461 # On the NeXT, cc -E runs the code through the compiler's parser, 13462 # not just through cpp. "Syntax error" is here to catch this case. 13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13464/* end confdefs.h. */ 13465#ifdef __STDC__ 13466# include <limits.h> 13467#else 13468# include <assert.h> 13469#endif 13470 Syntax error 13471_ACEOF 13472if ac_fn_cxx_try_cpp "$LINENO"; then : 13473 13474else 13475 # Broken: fails on valid input. 13476continue 13477fi 13478rm -f conftest.err conftest.i conftest.$ac_ext 13479 13480 # OK, works on sane cases. Now check whether nonexistent headers 13481 # can be detected and how. 13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13483/* end confdefs.h. */ 13484#include <ac_nonexistent.h> 13485_ACEOF 13486if ac_fn_cxx_try_cpp "$LINENO"; then : 13487 # Broken: success on invalid input. 13488continue 13489else 13490 # Passes both tests. 13491ac_preproc_ok=: 13492break 13493fi 13494rm -f conftest.err conftest.i conftest.$ac_ext 13495 13496done 13497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13498rm -f conftest.i conftest.err conftest.$ac_ext 13499if $ac_preproc_ok; then : 13500 break 13501fi 13502 13503 done 13504 ac_cv_prog_CXXCPP=$CXXCPP 13505 13506fi 13507 CXXCPP=$ac_cv_prog_CXXCPP 13508else 13509 ac_cv_prog_CXXCPP=$CXXCPP 13510fi 13511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13512$as_echo "$CXXCPP" >&6; } 13513ac_preproc_ok=false 13514for ac_cxx_preproc_warn_flag in '' yes 13515do 13516 # Use a header file that comes with gcc, so configuring glibc 13517 # with a fresh cross-compiler works. 13518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13519 # <limits.h> exists even on freestanding compilers. 13520 # On the NeXT, cc -E runs the code through the compiler's parser, 13521 # not just through cpp. "Syntax error" is here to catch this case. 13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13523/* end confdefs.h. */ 13524#ifdef __STDC__ 13525# include <limits.h> 13526#else 13527# include <assert.h> 13528#endif 13529 Syntax error 13530_ACEOF 13531if ac_fn_cxx_try_cpp "$LINENO"; then : 13532 13533else 13534 # Broken: fails on valid input. 13535continue 13536fi 13537rm -f conftest.err conftest.i conftest.$ac_ext 13538 13539 # OK, works on sane cases. Now check whether nonexistent headers 13540 # can be detected and how. 13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13542/* end confdefs.h. */ 13543#include <ac_nonexistent.h> 13544_ACEOF 13545if ac_fn_cxx_try_cpp "$LINENO"; then : 13546 # Broken: success on invalid input. 13547continue 13548else 13549 # Passes both tests. 13550ac_preproc_ok=: 13551break 13552fi 13553rm -f conftest.err conftest.i conftest.$ac_ext 13554 13555done 13556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13557rm -f conftest.i conftest.err conftest.$ac_ext 13558if $ac_preproc_ok; then : 13559 13560else 13561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13563as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13564See \`config.log' for more details" "$LINENO" 5; } 13565fi 13566 13567ac_ext=c 13568ac_cpp='$CPP $CPPFLAGS' 13569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13571ac_compiler_gnu=$ac_cv_c_compiler_gnu 13572 13573else 13574 _lt_caught_CXX_error=yes 13575fi 13576 13577ac_ext=cpp 13578ac_cpp='$CXXCPP $CPPFLAGS' 13579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13582 13583archive_cmds_need_lc_CXX=no 13584allow_undefined_flag_CXX= 13585always_export_symbols_CXX=no 13586archive_expsym_cmds_CXX= 13587compiler_needs_object_CXX=no 13588export_dynamic_flag_spec_CXX= 13589hardcode_direct_CXX=no 13590hardcode_direct_absolute_CXX=no 13591hardcode_libdir_flag_spec_CXX= 13592hardcode_libdir_separator_CXX= 13593hardcode_minus_L_CXX=no 13594hardcode_shlibpath_var_CXX=unsupported 13595hardcode_automatic_CXX=no 13596inherit_rpath_CXX=no 13597module_cmds_CXX= 13598module_expsym_cmds_CXX= 13599link_all_deplibs_CXX=unknown 13600old_archive_cmds_CXX=$old_archive_cmds 13601reload_flag_CXX=$reload_flag 13602reload_cmds_CXX=$reload_cmds 13603no_undefined_flag_CXX= 13604whole_archive_flag_spec_CXX= 13605enable_shared_with_static_runtimes_CXX=no 13606 13607# Source file extension for C++ test sources. 13608ac_ext=cpp 13609 13610# Object file extension for compiled C++ test sources. 13611objext=o 13612objext_CXX=$objext 13613 13614# No sense in running all these tests if we already determined that 13615# the CXX compiler isn't working. Some variables (like enable_shared) 13616# are currently assumed to apply to all compilers on this platform, 13617# and will be corrupted by setting them based on a non-working compiler. 13618if test yes != "$_lt_caught_CXX_error"; then 13619 # Code to be used in simple compile tests 13620 lt_simple_compile_test_code="int some_variable = 0;" 13621 13622 # Code to be used in simple link tests 13623 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13624 13625 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13626 13627 13628 13629 13630 13631 13632# If no C compiler was specified, use CC. 13633LTCC=${LTCC-"$CC"} 13634 13635# If no C compiler flags were specified, use CFLAGS. 13636LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13637 13638# Allow CC to be a program name with arguments. 13639compiler=$CC 13640 13641 13642 # save warnings/boilerplate of simple test code 13643 ac_outfile=conftest.$ac_objext 13644echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13645eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13646_lt_compiler_boilerplate=`cat conftest.err` 13647$RM conftest* 13648 13649 ac_outfile=conftest.$ac_objext 13650echo "$lt_simple_link_test_code" >conftest.$ac_ext 13651eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13652_lt_linker_boilerplate=`cat conftest.err` 13653$RM -r conftest* 13654 13655 13656 # Allow CC to be a program name with arguments. 13657 lt_save_CC=$CC 13658 lt_save_CFLAGS=$CFLAGS 13659 lt_save_LD=$LD 13660 lt_save_GCC=$GCC 13661 GCC=$GXX 13662 lt_save_with_gnu_ld=$with_gnu_ld 13663 lt_save_path_LD=$lt_cv_path_LD 13664 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13665 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13666 else 13667 $as_unset lt_cv_prog_gnu_ld 13668 fi 13669 if test -n "${lt_cv_path_LDCXX+set}"; then 13670 lt_cv_path_LD=$lt_cv_path_LDCXX 13671 else 13672 $as_unset lt_cv_path_LD 13673 fi 13674 test -z "${LDCXX+set}" || LD=$LDCXX 13675 CC=${CXX-"c++"} 13676 CFLAGS=$CXXFLAGS 13677 compiler=$CC 13678 compiler_CXX=$CC 13679 func_cc_basename $compiler 13680cc_basename=$func_cc_basename_result 13681 13682 13683 if test -n "$compiler"; then 13684 # We don't want -fno-exception when compiling C++ code, so set the 13685 # no_builtin_flag separately 13686 if test yes = "$GXX"; then 13687 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13688 else 13689 lt_prog_compiler_no_builtin_flag_CXX= 13690 fi 13691 13692 if test yes = "$GXX"; then 13693 # Set up default GNU C++ configuration 13694 13695 13696 13697# Check whether --with-gnu-ld was given. 13698if test "${with_gnu_ld+set}" = set; then : 13699 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13700else 13701 with_gnu_ld=no 13702fi 13703 13704ac_prog=ld 13705if test yes = "$GCC"; then 13706 # Check if gcc -print-prog-name=ld gives a path. 13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13708$as_echo_n "checking for ld used by $CC... " >&6; } 13709 case $host in 13710 *-*-mingw*) 13711 # gcc leaves a trailing carriage return, which upsets mingw 13712 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13713 *) 13714 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13715 esac 13716 case $ac_prog in 13717 # Accept absolute paths. 13718 [\\/]* | ?:[\\/]*) 13719 re_direlt='/[^/][^/]*/\.\./' 13720 # Canonicalize the pathname of ld 13721 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13722 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13723 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13724 done 13725 test -z "$LD" && LD=$ac_prog 13726 ;; 13727 "") 13728 # If it fails, then pretend we aren't using GCC. 13729 ac_prog=ld 13730 ;; 13731 *) 13732 # If it is relative, then search for the first ld in PATH. 13733 with_gnu_ld=unknown 13734 ;; 13735 esac 13736elif test yes = "$with_gnu_ld"; then 13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13738$as_echo_n "checking for GNU ld... " >&6; } 13739else 13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13741$as_echo_n "checking for non-GNU ld... " >&6; } 13742fi 13743if ${lt_cv_path_LD+:} false; then : 13744 $as_echo_n "(cached) " >&6 13745else 13746 if test -z "$LD"; then 13747 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13748 for ac_dir in $PATH; do 13749 IFS=$lt_save_ifs 13750 test -z "$ac_dir" && ac_dir=. 13751 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13752 lt_cv_path_LD=$ac_dir/$ac_prog 13753 # Check to see if the program is GNU ld. I'd rather use --version, 13754 # but apparently some variants of GNU ld only accept -v. 13755 # Break only if it was the GNU/non-GNU ld that we prefer. 13756 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13757 *GNU* | *'with BFD'*) 13758 test no != "$with_gnu_ld" && break 13759 ;; 13760 *) 13761 test yes != "$with_gnu_ld" && break 13762 ;; 13763 esac 13764 fi 13765 done 13766 IFS=$lt_save_ifs 13767else 13768 lt_cv_path_LD=$LD # Let the user override the test with a path. 13769fi 13770fi 13771 13772LD=$lt_cv_path_LD 13773if test -n "$LD"; then 13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13775$as_echo "$LD" >&6; } 13776else 13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13778$as_echo "no" >&6; } 13779fi 13780test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13782$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13783if ${lt_cv_prog_gnu_ld+:} false; then : 13784 $as_echo_n "(cached) " >&6 13785else 13786 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13787case `$LD -v 2>&1 </dev/null` in 13788*GNU* | *'with BFD'*) 13789 lt_cv_prog_gnu_ld=yes 13790 ;; 13791*) 13792 lt_cv_prog_gnu_ld=no 13793 ;; 13794esac 13795fi 13796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13797$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13798with_gnu_ld=$lt_cv_prog_gnu_ld 13799 13800 13801 13802 13803 13804 13805 13806 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13807 # archiving commands below assume that GNU ld is being used. 13808 if test yes = "$with_gnu_ld"; then 13809 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13810 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' 13811 13812 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13813 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13814 13815 # If archive_cmds runs LD, not CC, wlarc should be empty 13816 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13817 # investigate it a little bit more. (MM) 13818 wlarc='$wl' 13819 13820 # ancient GNU ld didn't support --whole-archive et. al. 13821 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13822 $GREP 'no-whole-archive' > /dev/null; then 13823 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13824 else 13825 whole_archive_flag_spec_CXX= 13826 fi 13827 else 13828 with_gnu_ld=no 13829 wlarc= 13830 13831 # A generic and very simple default shared library creation 13832 # command for GNU C++ for the case where it uses the native 13833 # linker, instead of GNU ld. If possible, this setting should 13834 # overridden to take advantage of the native linker features on 13835 # the platform it is being used on. 13836 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13837 fi 13838 13839 # Commands to make compiler produce verbose output that lists 13840 # what "hidden" libraries, object files and flags are used when 13841 # linking a shared library. 13842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13843 13844 else 13845 GXX=no 13846 with_gnu_ld=no 13847 wlarc= 13848 fi 13849 13850 # PORTME: fill in a description of your system's C++ link characteristics 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13852$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13853 ld_shlibs_CXX=yes 13854 case $host_os in 13855 aix3*) 13856 # FIXME: insert proper C++ library support 13857 ld_shlibs_CXX=no 13858 ;; 13859 aix[4-9]*) 13860 if test ia64 = "$host_cpu"; then 13861 # On IA64, the linker does run time linking by default, so we don't 13862 # have to do anything special. 13863 aix_use_runtimelinking=no 13864 exp_sym_flag='-Bexport' 13865 no_entry_flag= 13866 else 13867 aix_use_runtimelinking=no 13868 13869 # Test if we are trying to use run time linking or normal 13870 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13871 # have runtime linking enabled, and use it for executables. 13872 # For shared libraries, we enable/disable runtime linking 13873 # depending on the kind of the shared library created - 13874 # when "with_aix_soname,aix_use_runtimelinking" is: 13875 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13876 # "aix,yes" lib.so shared, rtl:yes, for executables 13877 # lib.a static archive 13878 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13879 # lib.a(lib.so.V) shared, rtl:no, for executables 13880 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13881 # lib.a(lib.so.V) shared, rtl:no 13882 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13883 # lib.a static archive 13884 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13885 for ld_flag in $LDFLAGS; do 13886 case $ld_flag in 13887 *-brtl*) 13888 aix_use_runtimelinking=yes 13889 break 13890 ;; 13891 esac 13892 done 13893 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13894 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13895 # so we don't have lib.a shared libs to link our executables. 13896 # We have to force runtime linking in this case. 13897 aix_use_runtimelinking=yes 13898 LDFLAGS="$LDFLAGS -Wl,-brtl" 13899 fi 13900 ;; 13901 esac 13902 13903 exp_sym_flag='-bexport' 13904 no_entry_flag='-bnoentry' 13905 fi 13906 13907 # When large executables or shared objects are built, AIX ld can 13908 # have problems creating the table of contents. If linking a library 13909 # or program results in "error TOC overflow" add -mminimal-toc to 13910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13912 13913 archive_cmds_CXX='' 13914 hardcode_direct_CXX=yes 13915 hardcode_direct_absolute_CXX=yes 13916 hardcode_libdir_separator_CXX=':' 13917 link_all_deplibs_CXX=yes 13918 file_list_spec_CXX='$wl-f,' 13919 case $with_aix_soname,$aix_use_runtimelinking in 13920 aix,*) ;; # no import file 13921 svr4,* | *,yes) # use import file 13922 # The Import File defines what to hardcode. 13923 hardcode_direct_CXX=no 13924 hardcode_direct_absolute_CXX=no 13925 ;; 13926 esac 13927 13928 if test yes = "$GXX"; then 13929 case $host_os in aix4.[012]|aix4.[012].*) 13930 # We only want to do this on AIX 4.2 and lower, the check 13931 # below for broken collect2 doesn't work under 4.3+ 13932 collect2name=`$CC -print-prog-name=collect2` 13933 if test -f "$collect2name" && 13934 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13935 then 13936 # We have reworked collect2 13937 : 13938 else 13939 # We have old collect2 13940 hardcode_direct_CXX=unsupported 13941 # It fails to find uninstalled libraries when the uninstalled 13942 # path is not listed in the libpath. Setting hardcode_minus_L 13943 # to unsupported forces relinking 13944 hardcode_minus_L_CXX=yes 13945 hardcode_libdir_flag_spec_CXX='-L$libdir' 13946 hardcode_libdir_separator_CXX= 13947 fi 13948 esac 13949 shared_flag='-shared' 13950 if test yes = "$aix_use_runtimelinking"; then 13951 shared_flag=$shared_flag' $wl-G' 13952 fi 13953 # Need to ensure runtime linking is disabled for the traditional 13954 # shared library, or the linker may eventually find shared libraries 13955 # /with/ Import File - we do not want to mix them. 13956 shared_flag_aix='-shared' 13957 shared_flag_svr4='-shared $wl-G' 13958 else 13959 # not using gcc 13960 if test ia64 = "$host_cpu"; then 13961 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13962 # chokes on -Wl,-G. The following line is correct: 13963 shared_flag='-G' 13964 else 13965 if test yes = "$aix_use_runtimelinking"; then 13966 shared_flag='$wl-G' 13967 else 13968 shared_flag='$wl-bM:SRE' 13969 fi 13970 shared_flag_aix='$wl-bM:SRE' 13971 shared_flag_svr4='$wl-G' 13972 fi 13973 fi 13974 13975 export_dynamic_flag_spec_CXX='$wl-bexpall' 13976 # It seems that -bexpall does not export symbols beginning with 13977 # underscore (_), so it is better to generate a list of symbols to 13978 # export. 13979 always_export_symbols_CXX=yes 13980 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13981 # Warning - without using the other runtime loading flags (-brtl), 13982 # -berok will link without error, but may produce a broken library. 13983 # The "-G" linker flag allows undefined symbols. 13984 no_undefined_flag_CXX='-bernotok' 13985 # Determine the default libpath from the value encoded in an empty 13986 # executable. 13987 if test set = "${lt_cv_aix_libpath+set}"; then 13988 aix_libpath=$lt_cv_aix_libpath 13989else 13990 if ${lt_cv_aix_libpath__CXX+:} false; then : 13991 $as_echo_n "(cached) " >&6 13992else 13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13994/* end confdefs.h. */ 13995 13996int 13997main () 13998{ 13999 14000 ; 14001 return 0; 14002} 14003_ACEOF 14004if ac_fn_cxx_try_link "$LINENO"; then : 14005 14006 lt_aix_libpath_sed=' 14007 /Import File Strings/,/^$/ { 14008 /^0/ { 14009 s/^0 *\([^ ]*\) *$/\1/ 14010 p 14011 } 14012 }' 14013 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14014 # Check for a 64-bit object if we didn't find anything. 14015 if test -z "$lt_cv_aix_libpath__CXX"; then 14016 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14017 fi 14018fi 14019rm -f core conftest.err conftest.$ac_objext \ 14020 conftest$ac_exeext conftest.$ac_ext 14021 if test -z "$lt_cv_aix_libpath__CXX"; then 14022 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14023 fi 14024 14025fi 14026 14027 aix_libpath=$lt_cv_aix_libpath__CXX 14028fi 14029 14030 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14031 14032 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 14033 else 14034 if test ia64 = "$host_cpu"; then 14035 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14036 allow_undefined_flag_CXX="-z nodefs" 14037 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" 14038 else 14039 # Determine the default libpath from the value encoded in an 14040 # empty executable. 14041 if test set = "${lt_cv_aix_libpath+set}"; then 14042 aix_libpath=$lt_cv_aix_libpath 14043else 14044 if ${lt_cv_aix_libpath__CXX+:} false; then : 14045 $as_echo_n "(cached) " >&6 14046else 14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14048/* end confdefs.h. */ 14049 14050int 14051main () 14052{ 14053 14054 ; 14055 return 0; 14056} 14057_ACEOF 14058if ac_fn_cxx_try_link "$LINENO"; then : 14059 14060 lt_aix_libpath_sed=' 14061 /Import File Strings/,/^$/ { 14062 /^0/ { 14063 s/^0 *\([^ ]*\) *$/\1/ 14064 p 14065 } 14066 }' 14067 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14068 # Check for a 64-bit object if we didn't find anything. 14069 if test -z "$lt_cv_aix_libpath__CXX"; then 14070 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14071 fi 14072fi 14073rm -f core conftest.err conftest.$ac_objext \ 14074 conftest$ac_exeext conftest.$ac_ext 14075 if test -z "$lt_cv_aix_libpath__CXX"; then 14076 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14077 fi 14078 14079fi 14080 14081 aix_libpath=$lt_cv_aix_libpath__CXX 14082fi 14083 14084 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14085 # Warning - without using the other run time loading flags, 14086 # -berok will link without error, but may produce a broken library. 14087 no_undefined_flag_CXX=' $wl-bernotok' 14088 allow_undefined_flag_CXX=' $wl-berok' 14089 if test yes = "$with_gnu_ld"; then 14090 # We only use this code for GNU lds that support --whole-archive. 14091 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14092 else 14093 # Exported symbols can be pulled into shared objects from archives 14094 whole_archive_flag_spec_CXX='$convenience' 14095 fi 14096 archive_cmds_need_lc_CXX=yes 14097 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14098 # -brtl affects multiple linker settings, -berok does not and is overridden later 14099 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14100 if test svr4 != "$with_aix_soname"; then 14101 # This is similar to how AIX traditionally builds its shared 14102 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14103 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' 14104 fi 14105 if test aix != "$with_aix_soname"; then 14106 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' 14107 else 14108 # used by -dlpreopen to get the symbols 14109 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14110 fi 14111 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14112 fi 14113 fi 14114 ;; 14115 14116 beos*) 14117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14118 allow_undefined_flag_CXX=unsupported 14119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14120 # support --undefined. This deserves some investigation. FIXME 14121 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14122 else 14123 ld_shlibs_CXX=no 14124 fi 14125 ;; 14126 14127 chorus*) 14128 case $cc_basename in 14129 *) 14130 # FIXME: insert proper C++ library support 14131 ld_shlibs_CXX=no 14132 ;; 14133 esac 14134 ;; 14135 14136 cygwin* | mingw* | pw32* | cegcc*) 14137 case $GXX,$cc_basename in 14138 ,cl* | no,cl*) 14139 # Native MSVC 14140 # hardcode_libdir_flag_spec is actually meaningless, as there is 14141 # no search path for DLLs. 14142 hardcode_libdir_flag_spec_CXX=' ' 14143 allow_undefined_flag_CXX=unsupported 14144 always_export_symbols_CXX=yes 14145 file_list_spec_CXX='@' 14146 # Tell ltmain to make .lib files, not .a files. 14147 libext=lib 14148 # Tell ltmain to make .dll files, not .so files. 14149 shrext_cmds=.dll 14150 # FIXME: Setting linknames here is a bad hack. 14151 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14152 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14153 cp "$export_symbols" "$output_objdir/$soname.def"; 14154 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14155 else 14156 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14157 fi~ 14158 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14159 linknames=' 14160 # The linker will not automatically build a static lib if we build a DLL. 14161 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14162 enable_shared_with_static_runtimes_CXX=yes 14163 # Don't use ranlib 14164 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14165 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14166 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14167 case $lt_outputfile in 14168 *.exe|*.EXE) ;; 14169 *) 14170 lt_outputfile=$lt_outputfile.exe 14171 lt_tool_outputfile=$lt_tool_outputfile.exe 14172 ;; 14173 esac~ 14174 func_to_tool_file "$lt_outputfile"~ 14175 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14176 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14177 $RM "$lt_outputfile.manifest"; 14178 fi' 14179 ;; 14180 *) 14181 # g++ 14182 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14183 # as there is no search path for DLLs. 14184 hardcode_libdir_flag_spec_CXX='-L$libdir' 14185 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14186 allow_undefined_flag_CXX=unsupported 14187 always_export_symbols_CXX=no 14188 enable_shared_with_static_runtimes_CXX=yes 14189 14190 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14191 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' 14192 # If the export-symbols file already is a .def file, use it as 14193 # is; otherwise, prepend EXPORTS... 14194 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14195 cp $export_symbols $output_objdir/$soname.def; 14196 else 14197 echo EXPORTS > $output_objdir/$soname.def; 14198 cat $export_symbols >> $output_objdir/$soname.def; 14199 fi~ 14200 $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' 14201 else 14202 ld_shlibs_CXX=no 14203 fi 14204 ;; 14205 esac 14206 ;; 14207 darwin* | rhapsody*) 14208 14209 14210 archive_cmds_need_lc_CXX=no 14211 hardcode_direct_CXX=no 14212 hardcode_automatic_CXX=yes 14213 hardcode_shlibpath_var_CXX=unsupported 14214 if test yes = "$lt_cv_ld_force_load"; then 14215 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\"`' 14216 14217 else 14218 whole_archive_flag_spec_CXX='' 14219 fi 14220 link_all_deplibs_CXX=yes 14221 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14222 case $cc_basename in 14223 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14224 *) _lt_dar_can_shared=$GCC ;; 14225 esac 14226 if test yes = "$_lt_dar_can_shared"; then 14227 output_verbose_link_cmd=func_echo_all 14228 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" 14229 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14230 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" 14231 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" 14232 if test yes != "$lt_cv_apple_cc_single_mod"; then 14233 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" 14234 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" 14235 fi 14236 14237 else 14238 ld_shlibs_CXX=no 14239 fi 14240 14241 ;; 14242 14243 os2*) 14244 hardcode_libdir_flag_spec_CXX='-L$libdir' 14245 hardcode_minus_L_CXX=yes 14246 allow_undefined_flag_CXX=unsupported 14247 shrext_cmds=.dll 14248 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14249 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14250 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14251 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14252 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14253 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14254 emximp -o $lib $output_objdir/$libname.def' 14255 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14256 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14257 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14258 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14259 prefix_cmds="$SED"~ 14260 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14261 prefix_cmds="$prefix_cmds -e 1d"; 14262 fi~ 14263 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14264 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14265 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14266 emximp -o $lib $output_objdir/$libname.def' 14267 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14268 enable_shared_with_static_runtimes_CXX=yes 14269 ;; 14270 14271 dgux*) 14272 case $cc_basename in 14273 ec++*) 14274 # FIXME: insert proper C++ library support 14275 ld_shlibs_CXX=no 14276 ;; 14277 ghcx*) 14278 # Green Hills C++ Compiler 14279 # FIXME: insert proper C++ library support 14280 ld_shlibs_CXX=no 14281 ;; 14282 *) 14283 # FIXME: insert proper C++ library support 14284 ld_shlibs_CXX=no 14285 ;; 14286 esac 14287 ;; 14288 14289 freebsd2.*) 14290 # C++ shared libraries reported to be fairly broken before 14291 # switch to ELF 14292 ld_shlibs_CXX=no 14293 ;; 14294 14295 freebsd-elf*) 14296 archive_cmds_need_lc_CXX=no 14297 ;; 14298 14299 freebsd* | dragonfly*) 14300 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14301 # conventions 14302 ld_shlibs_CXX=yes 14303 ;; 14304 14305 haiku*) 14306 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14307 link_all_deplibs_CXX=yes 14308 ;; 14309 14310 hpux9*) 14311 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14312 hardcode_libdir_separator_CXX=: 14313 export_dynamic_flag_spec_CXX='$wl-E' 14314 hardcode_direct_CXX=yes 14315 hardcode_minus_L_CXX=yes # Not in the search PATH, 14316 # but as the default 14317 # location of the library. 14318 14319 case $cc_basename in 14320 CC*) 14321 # FIXME: insert proper C++ library support 14322 ld_shlibs_CXX=no 14323 ;; 14324 aCC*) 14325 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' 14326 # Commands to make compiler produce verbose output that lists 14327 # what "hidden" libraries, object files and flags are used when 14328 # linking a shared library. 14329 # 14330 # There doesn't appear to be a way to prevent this compiler from 14331 # explicitly linking system object files so we need to strip them 14332 # from the output so that they don't get included in the library 14333 # dependencies. 14334 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"' 14335 ;; 14336 *) 14337 if test yes = "$GXX"; then 14338 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' 14339 else 14340 # FIXME: insert proper C++ library support 14341 ld_shlibs_CXX=no 14342 fi 14343 ;; 14344 esac 14345 ;; 14346 14347 hpux10*|hpux11*) 14348 if test no = "$with_gnu_ld"; then 14349 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14350 hardcode_libdir_separator_CXX=: 14351 14352 case $host_cpu in 14353 hppa*64*|ia64*) 14354 ;; 14355 *) 14356 export_dynamic_flag_spec_CXX='$wl-E' 14357 ;; 14358 esac 14359 fi 14360 case $host_cpu in 14361 hppa*64*|ia64*) 14362 hardcode_direct_CXX=no 14363 hardcode_shlibpath_var_CXX=no 14364 ;; 14365 *) 14366 hardcode_direct_CXX=yes 14367 hardcode_direct_absolute_CXX=yes 14368 hardcode_minus_L_CXX=yes # Not in the search PATH, 14369 # but as the default 14370 # location of the library. 14371 ;; 14372 esac 14373 14374 case $cc_basename in 14375 CC*) 14376 # FIXME: insert proper C++ library support 14377 ld_shlibs_CXX=no 14378 ;; 14379 aCC*) 14380 case $host_cpu in 14381 hppa*64*) 14382 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14383 ;; 14384 ia64*) 14385 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14386 ;; 14387 *) 14388 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14389 ;; 14390 esac 14391 # Commands to make compiler produce verbose output that lists 14392 # what "hidden" libraries, object files and flags are used when 14393 # linking a shared library. 14394 # 14395 # There doesn't appear to be a way to prevent this compiler from 14396 # explicitly linking system object files so we need to strip them 14397 # from the output so that they don't get included in the library 14398 # dependencies. 14399 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"' 14400 ;; 14401 *) 14402 if test yes = "$GXX"; then 14403 if test no = "$with_gnu_ld"; then 14404 case $host_cpu in 14405 hppa*64*) 14406 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14407 ;; 14408 ia64*) 14409 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14410 ;; 14411 *) 14412 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' 14413 ;; 14414 esac 14415 fi 14416 else 14417 # FIXME: insert proper C++ library support 14418 ld_shlibs_CXX=no 14419 fi 14420 ;; 14421 esac 14422 ;; 14423 14424 interix[3-9]*) 14425 hardcode_direct_CXX=no 14426 hardcode_shlibpath_var_CXX=no 14427 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14428 export_dynamic_flag_spec_CXX='$wl-E' 14429 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14430 # Instead, shared libraries are loaded at an image base (0x10000000 by 14431 # default) and relocated if they conflict, which is a slow very memory 14432 # consuming and fragmenting process. To avoid this, we pick a random, 14433 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14434 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14435 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' 14436 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' 14437 ;; 14438 irix5* | irix6*) 14439 case $cc_basename in 14440 CC*) 14441 # SGI C++ 14442 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' 14443 14444 # Archives containing C++ object files must be created using 14445 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14446 # necessary to make sure instantiated templates are included 14447 # in the archive. 14448 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14449 ;; 14450 *) 14451 if test yes = "$GXX"; then 14452 if test no = "$with_gnu_ld"; then 14453 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' 14454 else 14455 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' 14456 fi 14457 fi 14458 link_all_deplibs_CXX=yes 14459 ;; 14460 esac 14461 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14462 hardcode_libdir_separator_CXX=: 14463 inherit_rpath_CXX=yes 14464 ;; 14465 14466 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14467 case $cc_basename in 14468 KCC*) 14469 # Kuck and Associates, Inc. (KAI) C++ Compiler 14470 14471 # KCC will only create a shared library if the output file 14472 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14473 # to its proper name (with version) after linking. 14474 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' 14475 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' 14476 # Commands to make compiler produce verbose output that lists 14477 # what "hidden" libraries, object files and flags are used when 14478 # linking a shared library. 14479 # 14480 # There doesn't appear to be a way to prevent this compiler from 14481 # explicitly linking system object files so we need to strip them 14482 # from the output so that they don't get included in the library 14483 # dependencies. 14484 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"' 14485 14486 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14487 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14488 14489 # Archives containing C++ object files must be created using 14490 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14491 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14492 ;; 14493 icpc* | ecpc* ) 14494 # Intel C++ 14495 with_gnu_ld=yes 14496 # version 8.0 and above of icpc choke on multiply defined symbols 14497 # if we add $predep_objects and $postdep_objects, however 7.1 and 14498 # earlier do not add the objects themselves. 14499 case `$CC -V 2>&1` in 14500 *"Version 7."*) 14501 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14502 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' 14503 ;; 14504 *) # Version 8.0 or newer 14505 tmp_idyn= 14506 case $host_cpu in 14507 ia64*) tmp_idyn=' -i_dynamic';; 14508 esac 14509 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14510 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' 14511 ;; 14512 esac 14513 archive_cmds_need_lc_CXX=no 14514 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14515 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14516 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14517 ;; 14518 pgCC* | pgcpp*) 14519 # Portland Group C++ compiler 14520 case `$CC -V` in 14521 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14522 prelink_cmds_CXX='tpldir=Template.dir~ 14523 rm -rf $tpldir~ 14524 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14525 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14526 old_archive_cmds_CXX='tpldir=Template.dir~ 14527 rm -rf $tpldir~ 14528 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14529 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14530 $RANLIB $oldlib' 14531 archive_cmds_CXX='tpldir=Template.dir~ 14532 rm -rf $tpldir~ 14533 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14534 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14535 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14536 rm -rf $tpldir~ 14537 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14538 $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' 14539 ;; 14540 *) # Version 6 and above use weak symbols 14541 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14542 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' 14543 ;; 14544 esac 14545 14546 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14547 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14548 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' 14549 ;; 14550 cxx*) 14551 # Compaq C++ 14552 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14553 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' 14554 14555 runpath_var=LD_RUN_PATH 14556 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14557 hardcode_libdir_separator_CXX=: 14558 14559 # Commands to make compiler produce verbose output that lists 14560 # what "hidden" libraries, object files and flags are used when 14561 # linking a shared library. 14562 # 14563 # There doesn't appear to be a way to prevent this compiler from 14564 # explicitly linking system object files so we need to strip them 14565 # from the output so that they don't get included in the library 14566 # dependencies. 14567 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' 14568 ;; 14569 xl* | mpixl* | bgxl*) 14570 # IBM XL 8.0 on PPC, with GNU ld 14571 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14572 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14573 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14574 if test yes = "$supports_anon_versioning"; then 14575 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14576 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14577 echo "local: *; };" >> $output_objdir/$libname.ver~ 14578 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14579 fi 14580 ;; 14581 *) 14582 case `$CC -V 2>&1 | sed 5q` in 14583 *Sun\ C*) 14584 # Sun C++ 5.9 14585 no_undefined_flag_CXX=' -zdefs' 14586 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14587 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' 14588 hardcode_libdir_flag_spec_CXX='-R$libdir' 14589 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' 14590 compiler_needs_object_CXX=yes 14591 14592 # Not sure whether something based on 14593 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14594 # would be better. 14595 output_verbose_link_cmd='func_echo_all' 14596 14597 # Archives containing C++ object files must be created using 14598 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14599 # necessary to make sure instantiated templates are included 14600 # in the archive. 14601 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14602 ;; 14603 esac 14604 ;; 14605 esac 14606 ;; 14607 14608 lynxos*) 14609 # FIXME: insert proper C++ library support 14610 ld_shlibs_CXX=no 14611 ;; 14612 14613 m88k*) 14614 # FIXME: insert proper C++ library support 14615 ld_shlibs_CXX=no 14616 ;; 14617 14618 mvs*) 14619 case $cc_basename in 14620 cxx*) 14621 # FIXME: insert proper C++ library support 14622 ld_shlibs_CXX=no 14623 ;; 14624 *) 14625 # FIXME: insert proper C++ library support 14626 ld_shlibs_CXX=no 14627 ;; 14628 esac 14629 ;; 14630 14631 netbsd*) 14632 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14633 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14634 wlarc= 14635 hardcode_libdir_flag_spec_CXX='-R$libdir' 14636 hardcode_direct_CXX=yes 14637 hardcode_shlibpath_var_CXX=no 14638 fi 14639 # Workaround some broken pre-1.5 toolchains 14640 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14641 ;; 14642 14643 *nto* | *qnx*) 14644 ld_shlibs_CXX=yes 14645 ;; 14646 14647 openbsd* | bitrig*) 14648 if test -f /usr/libexec/ld.so; then 14649 hardcode_direct_CXX=yes 14650 hardcode_shlibpath_var_CXX=no 14651 hardcode_direct_absolute_CXX=yes 14652 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14653 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14655 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14656 export_dynamic_flag_spec_CXX='$wl-E' 14657 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14658 fi 14659 output_verbose_link_cmd=func_echo_all 14660 else 14661 ld_shlibs_CXX=no 14662 fi 14663 ;; 14664 14665 osf3* | osf4* | osf5*) 14666 case $cc_basename in 14667 KCC*) 14668 # Kuck and Associates, Inc. (KAI) C++ Compiler 14669 14670 # KCC will only create a shared library if the output file 14671 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14672 # to its proper name (with version) after linking. 14673 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' 14674 14675 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14676 hardcode_libdir_separator_CXX=: 14677 14678 # Archives containing C++ object files must be created using 14679 # the KAI C++ compiler. 14680 case $host in 14681 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14682 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14683 esac 14684 ;; 14685 RCC*) 14686 # Rational C++ 2.4.1 14687 # FIXME: insert proper C++ library support 14688 ld_shlibs_CXX=no 14689 ;; 14690 cxx*) 14691 case $host in 14692 osf3*) 14693 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14694 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' 14695 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14696 ;; 14697 *) 14698 allow_undefined_flag_CXX=' -expect_unresolved \*' 14699 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' 14700 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14701 echo "-hidden">> $lib.exp~ 14702 $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~ 14703 $RM $lib.exp' 14704 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14705 ;; 14706 esac 14707 14708 hardcode_libdir_separator_CXX=: 14709 14710 # Commands to make compiler produce verbose output that lists 14711 # what "hidden" libraries, object files and flags are used when 14712 # linking a shared library. 14713 # 14714 # There doesn't appear to be a way to prevent this compiler from 14715 # explicitly linking system object files so we need to strip them 14716 # from the output so that they don't get included in the library 14717 # dependencies. 14718 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"' 14719 ;; 14720 *) 14721 if test yes,no = "$GXX,$with_gnu_ld"; then 14722 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14723 case $host in 14724 osf3*) 14725 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' 14726 ;; 14727 *) 14728 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' 14729 ;; 14730 esac 14731 14732 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14733 hardcode_libdir_separator_CXX=: 14734 14735 # Commands to make compiler produce verbose output that lists 14736 # what "hidden" libraries, object files and flags are used when 14737 # linking a shared library. 14738 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14739 14740 else 14741 # FIXME: insert proper C++ library support 14742 ld_shlibs_CXX=no 14743 fi 14744 ;; 14745 esac 14746 ;; 14747 14748 psos*) 14749 # FIXME: insert proper C++ library support 14750 ld_shlibs_CXX=no 14751 ;; 14752 14753 sunos4*) 14754 case $cc_basename in 14755 CC*) 14756 # Sun C++ 4.x 14757 # FIXME: insert proper C++ library support 14758 ld_shlibs_CXX=no 14759 ;; 14760 lcc*) 14761 # Lucid 14762 # FIXME: insert proper C++ library support 14763 ld_shlibs_CXX=no 14764 ;; 14765 *) 14766 # FIXME: insert proper C++ library support 14767 ld_shlibs_CXX=no 14768 ;; 14769 esac 14770 ;; 14771 14772 solaris*) 14773 case $cc_basename in 14774 CC* | sunCC*) 14775 # Sun C++ 4.2, 5.x and Centerline C++ 14776 archive_cmds_need_lc_CXX=yes 14777 no_undefined_flag_CXX=' -zdefs' 14778 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14779 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14780 $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' 14781 14782 hardcode_libdir_flag_spec_CXX='-R$libdir' 14783 hardcode_shlibpath_var_CXX=no 14784 case $host_os in 14785 solaris2.[0-5] | solaris2.[0-5].*) ;; 14786 *) 14787 # The compiler driver will combine and reorder linker options, 14788 # but understands '-z linker_flag'. 14789 # Supported since Solaris 2.6 (maybe 2.5.1?) 14790 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14791 ;; 14792 esac 14793 link_all_deplibs_CXX=yes 14794 14795 output_verbose_link_cmd='func_echo_all' 14796 14797 # Archives containing C++ object files must be created using 14798 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14799 # necessary to make sure instantiated templates are included 14800 # in the archive. 14801 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14802 ;; 14803 gcx*) 14804 # Green Hills C++ Compiler 14805 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14806 14807 # The C++ compiler must be used to create the archive. 14808 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14809 ;; 14810 *) 14811 # GNU C++ compiler with Solaris linker 14812 if test yes,no = "$GXX,$with_gnu_ld"; then 14813 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14814 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14815 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14816 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14817 $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' 14818 14819 # Commands to make compiler produce verbose output that lists 14820 # what "hidden" libraries, object files and flags are used when 14821 # linking a shared library. 14822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14823 else 14824 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14825 # platform. 14826 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14827 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14828 $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' 14829 14830 # Commands to make compiler produce verbose output that lists 14831 # what "hidden" libraries, object files and flags are used when 14832 # linking a shared library. 14833 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14834 fi 14835 14836 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14837 case $host_os in 14838 solaris2.[0-5] | solaris2.[0-5].*) ;; 14839 *) 14840 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14841 ;; 14842 esac 14843 fi 14844 ;; 14845 esac 14846 ;; 14847 14848 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14849 no_undefined_flag_CXX='$wl-z,text' 14850 archive_cmds_need_lc_CXX=no 14851 hardcode_shlibpath_var_CXX=no 14852 runpath_var='LD_RUN_PATH' 14853 14854 case $cc_basename in 14855 CC*) 14856 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14857 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14858 ;; 14859 *) 14860 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14861 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14862 ;; 14863 esac 14864 ;; 14865 14866 sysv5* | sco3.2v5* | sco5v6*) 14867 # Note: We CANNOT use -z defs as we might desire, because we do not 14868 # link with -lc, and that would cause any symbols used from libc to 14869 # always be unresolved, which means just about no library would 14870 # ever link correctly. If we're not using GNU ld we use -z text 14871 # though, which does catch some bad symbols but isn't as heavy-handed 14872 # as -z defs. 14873 no_undefined_flag_CXX='$wl-z,text' 14874 allow_undefined_flag_CXX='$wl-z,nodefs' 14875 archive_cmds_need_lc_CXX=no 14876 hardcode_shlibpath_var_CXX=no 14877 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14878 hardcode_libdir_separator_CXX=':' 14879 link_all_deplibs_CXX=yes 14880 export_dynamic_flag_spec_CXX='$wl-Bexport' 14881 runpath_var='LD_RUN_PATH' 14882 14883 case $cc_basename in 14884 CC*) 14885 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14886 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14887 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14888 '"$old_archive_cmds_CXX" 14889 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14890 '"$reload_cmds_CXX" 14891 ;; 14892 *) 14893 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14894 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14895 ;; 14896 esac 14897 ;; 14898 14899 tandem*) 14900 case $cc_basename in 14901 NCC*) 14902 # NonStop-UX NCC 3.20 14903 # FIXME: insert proper C++ library support 14904 ld_shlibs_CXX=no 14905 ;; 14906 *) 14907 # FIXME: insert proper C++ library support 14908 ld_shlibs_CXX=no 14909 ;; 14910 esac 14911 ;; 14912 14913 vxworks*) 14914 # FIXME: insert proper C++ library support 14915 ld_shlibs_CXX=no 14916 ;; 14917 14918 *) 14919 # FIXME: insert proper C++ library support 14920 ld_shlibs_CXX=no 14921 ;; 14922 esac 14923 14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14925$as_echo "$ld_shlibs_CXX" >&6; } 14926 test no = "$ld_shlibs_CXX" && can_build_shared=no 14927 14928 GCC_CXX=$GXX 14929 LD_CXX=$LD 14930 14931 ## CAVEAT EMPTOR: 14932 ## There is no encapsulation within the following macros, do not change 14933 ## the running order or otherwise move them around unless you know exactly 14934 ## what you are doing... 14935 # Dependencies to place before and after the object being linked: 14936predep_objects_CXX= 14937postdep_objects_CXX= 14938predeps_CXX= 14939postdeps_CXX= 14940compiler_lib_search_path_CXX= 14941 14942cat > conftest.$ac_ext <<_LT_EOF 14943class Foo 14944{ 14945public: 14946 Foo (void) { a = 0; } 14947private: 14948 int a; 14949}; 14950_LT_EOF 14951 14952 14953_lt_libdeps_save_CFLAGS=$CFLAGS 14954case "$CC $CFLAGS " in #( 14955*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14956*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14957*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14958esac 14959 14960if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14961 (eval $ac_compile) 2>&5 14962 ac_status=$? 14963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14964 test $ac_status = 0; }; then 14965 # Parse the compiler output and extract the necessary 14966 # objects, libraries and library flags. 14967 14968 # Sentinel used to keep track of whether or not we are before 14969 # the conftest object file. 14970 pre_test_object_deps_done=no 14971 14972 for p in `eval "$output_verbose_link_cmd"`; do 14973 case $prev$p in 14974 14975 -L* | -R* | -l*) 14976 # Some compilers place space between "-{L,R}" and the path. 14977 # Remove the space. 14978 if test x-L = "$p" || 14979 test x-R = "$p"; then 14980 prev=$p 14981 continue 14982 fi 14983 14984 # Expand the sysroot to ease extracting the directories later. 14985 if test -z "$prev"; then 14986 case $p in 14987 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14988 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14989 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14990 esac 14991 fi 14992 case $p in 14993 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14994 esac 14995 if test no = "$pre_test_object_deps_done"; then 14996 case $prev in 14997 -L | -R) 14998 # Internal compiler library paths should come after those 14999 # provided the user. The postdeps already come after the 15000 # user supplied libs so there is no need to process them. 15001 if test -z "$compiler_lib_search_path_CXX"; then 15002 compiler_lib_search_path_CXX=$prev$p 15003 else 15004 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15005 fi 15006 ;; 15007 # The "-l" case would never come before the object being 15008 # linked, so don't bother handling this case. 15009 esac 15010 else 15011 if test -z "$postdeps_CXX"; then 15012 postdeps_CXX=$prev$p 15013 else 15014 postdeps_CXX="${postdeps_CXX} $prev$p" 15015 fi 15016 fi 15017 prev= 15018 ;; 15019 15020 *.lto.$objext) ;; # Ignore GCC LTO objects 15021 *.$objext) 15022 # This assumes that the test object file only shows up 15023 # once in the compiler output. 15024 if test "$p" = "conftest.$objext"; then 15025 pre_test_object_deps_done=yes 15026 continue 15027 fi 15028 15029 if test no = "$pre_test_object_deps_done"; then 15030 if test -z "$predep_objects_CXX"; then 15031 predep_objects_CXX=$p 15032 else 15033 predep_objects_CXX="$predep_objects_CXX $p" 15034 fi 15035 else 15036 if test -z "$postdep_objects_CXX"; then 15037 postdep_objects_CXX=$p 15038 else 15039 postdep_objects_CXX="$postdep_objects_CXX $p" 15040 fi 15041 fi 15042 ;; 15043 15044 *) ;; # Ignore the rest. 15045 15046 esac 15047 done 15048 15049 # Clean up. 15050 rm -f a.out a.exe 15051else 15052 echo "libtool.m4: error: problem compiling CXX test program" 15053fi 15054 15055$RM -f confest.$objext 15056CFLAGS=$_lt_libdeps_save_CFLAGS 15057 15058# PORTME: override above test on systems where it is broken 15059case $host_os in 15060interix[3-9]*) 15061 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15062 # hack all around it, let's just trust "g++" to DTRT. 15063 predep_objects_CXX= 15064 postdep_objects_CXX= 15065 postdeps_CXX= 15066 ;; 15067esac 15068 15069 15070case " $postdeps_CXX " in 15071*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15072esac 15073 compiler_lib_search_dirs_CXX= 15074if test -n "${compiler_lib_search_path_CXX}"; then 15075 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15076fi 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 lt_prog_compiler_wl_CXX= 15109lt_prog_compiler_pic_CXX= 15110lt_prog_compiler_static_CXX= 15111 15112 15113 # C++ specific cases for pic, static, wl, etc. 15114 if test yes = "$GXX"; then 15115 lt_prog_compiler_wl_CXX='-Wl,' 15116 lt_prog_compiler_static_CXX='-static' 15117 15118 case $host_os in 15119 aix*) 15120 # All AIX code is PIC. 15121 if test ia64 = "$host_cpu"; then 15122 # AIX 5 now supports IA64 processor 15123 lt_prog_compiler_static_CXX='-Bstatic' 15124 fi 15125 lt_prog_compiler_pic_CXX='-fPIC' 15126 ;; 15127 15128 amigaos*) 15129 case $host_cpu in 15130 powerpc) 15131 # see comment about AmigaOS4 .so support 15132 lt_prog_compiler_pic_CXX='-fPIC' 15133 ;; 15134 m68k) 15135 # FIXME: we need at least 68020 code to build shared libraries, but 15136 # adding the '-m68020' flag to GCC prevents building anything better, 15137 # like '-m68040'. 15138 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15139 ;; 15140 esac 15141 ;; 15142 15143 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15144 # PIC is the default for these OSes. 15145 ;; 15146 mingw* | cygwin* | os2* | pw32* | cegcc*) 15147 # This hack is so that the source file can tell whether it is being 15148 # built for inclusion in a dll (and should export symbols for example). 15149 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15150 # (--disable-auto-import) libraries 15151 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15152 case $host_os in 15153 os2*) 15154 lt_prog_compiler_static_CXX='$wl-static' 15155 ;; 15156 esac 15157 ;; 15158 darwin* | rhapsody*) 15159 # PIC is the default on this platform 15160 # Common symbols not allowed in MH_DYLIB files 15161 lt_prog_compiler_pic_CXX='-fno-common' 15162 ;; 15163 *djgpp*) 15164 # DJGPP does not support shared libraries at all 15165 lt_prog_compiler_pic_CXX= 15166 ;; 15167 haiku*) 15168 # PIC is the default for Haiku. 15169 # The "-static" flag exists, but is broken. 15170 lt_prog_compiler_static_CXX= 15171 ;; 15172 interix[3-9]*) 15173 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15174 # Instead, we relocate shared libraries at runtime. 15175 ;; 15176 sysv4*MP*) 15177 if test -d /usr/nec; then 15178 lt_prog_compiler_pic_CXX=-Kconform_pic 15179 fi 15180 ;; 15181 hpux*) 15182 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15183 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15184 # sets the default TLS model and affects inlining. 15185 case $host_cpu in 15186 hppa*64*) 15187 ;; 15188 *) 15189 lt_prog_compiler_pic_CXX='-fPIC' 15190 ;; 15191 esac 15192 ;; 15193 *qnx* | *nto*) 15194 # QNX uses GNU C++, but need to define -shared option too, otherwise 15195 # it will coredump. 15196 lt_prog_compiler_pic_CXX='-fPIC -shared' 15197 ;; 15198 *) 15199 lt_prog_compiler_pic_CXX='-fPIC' 15200 ;; 15201 esac 15202 else 15203 case $host_os in 15204 aix[4-9]*) 15205 # All AIX code is PIC. 15206 if test ia64 = "$host_cpu"; then 15207 # AIX 5 now supports IA64 processor 15208 lt_prog_compiler_static_CXX='-Bstatic' 15209 else 15210 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15211 fi 15212 ;; 15213 chorus*) 15214 case $cc_basename in 15215 cxch68*) 15216 # Green Hills C++ Compiler 15217 # _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" 15218 ;; 15219 esac 15220 ;; 15221 mingw* | cygwin* | os2* | pw32* | cegcc*) 15222 # This hack is so that the source file can tell whether it is being 15223 # built for inclusion in a dll (and should export symbols for example). 15224 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15225 ;; 15226 dgux*) 15227 case $cc_basename in 15228 ec++*) 15229 lt_prog_compiler_pic_CXX='-KPIC' 15230 ;; 15231 ghcx*) 15232 # Green Hills C++ Compiler 15233 lt_prog_compiler_pic_CXX='-pic' 15234 ;; 15235 *) 15236 ;; 15237 esac 15238 ;; 15239 freebsd* | dragonfly*) 15240 # FreeBSD uses GNU C++ 15241 ;; 15242 hpux9* | hpux10* | hpux11*) 15243 case $cc_basename in 15244 CC*) 15245 lt_prog_compiler_wl_CXX='-Wl,' 15246 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15247 if test ia64 != "$host_cpu"; then 15248 lt_prog_compiler_pic_CXX='+Z' 15249 fi 15250 ;; 15251 aCC*) 15252 lt_prog_compiler_wl_CXX='-Wl,' 15253 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15254 case $host_cpu in 15255 hppa*64*|ia64*) 15256 # +Z the default 15257 ;; 15258 *) 15259 lt_prog_compiler_pic_CXX='+Z' 15260 ;; 15261 esac 15262 ;; 15263 *) 15264 ;; 15265 esac 15266 ;; 15267 interix*) 15268 # This is c89, which is MS Visual C++ (no shared libs) 15269 # Anyone wants to do a port? 15270 ;; 15271 irix5* | irix6* | nonstopux*) 15272 case $cc_basename in 15273 CC*) 15274 lt_prog_compiler_wl_CXX='-Wl,' 15275 lt_prog_compiler_static_CXX='-non_shared' 15276 # CC pic flag -KPIC is the default. 15277 ;; 15278 *) 15279 ;; 15280 esac 15281 ;; 15282 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15283 case $cc_basename in 15284 KCC*) 15285 # KAI C++ Compiler 15286 lt_prog_compiler_wl_CXX='--backend -Wl,' 15287 lt_prog_compiler_pic_CXX='-fPIC' 15288 ;; 15289 ecpc* ) 15290 # old Intel C++ for x86_64, which still supported -KPIC. 15291 lt_prog_compiler_wl_CXX='-Wl,' 15292 lt_prog_compiler_pic_CXX='-KPIC' 15293 lt_prog_compiler_static_CXX='-static' 15294 ;; 15295 icpc* ) 15296 # Intel C++, used to be incompatible with GCC. 15297 # ICC 10 doesn't accept -KPIC any more. 15298 lt_prog_compiler_wl_CXX='-Wl,' 15299 lt_prog_compiler_pic_CXX='-fPIC' 15300 lt_prog_compiler_static_CXX='-static' 15301 ;; 15302 pgCC* | pgcpp*) 15303 # Portland Group C++ compiler 15304 lt_prog_compiler_wl_CXX='-Wl,' 15305 lt_prog_compiler_pic_CXX='-fpic' 15306 lt_prog_compiler_static_CXX='-Bstatic' 15307 ;; 15308 cxx*) 15309 # Compaq C++ 15310 # Make sure the PIC flag is empty. It appears that all Alpha 15311 # Linux and Compaq Tru64 Unix objects are PIC. 15312 lt_prog_compiler_pic_CXX= 15313 lt_prog_compiler_static_CXX='-non_shared' 15314 ;; 15315 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15316 # IBM XL 8.0, 9.0 on PPC and BlueGene 15317 lt_prog_compiler_wl_CXX='-Wl,' 15318 lt_prog_compiler_pic_CXX='-qpic' 15319 lt_prog_compiler_static_CXX='-qstaticlink' 15320 ;; 15321 *) 15322 case `$CC -V 2>&1 | sed 5q` in 15323 *Sun\ C*) 15324 # Sun C++ 5.9 15325 lt_prog_compiler_pic_CXX='-KPIC' 15326 lt_prog_compiler_static_CXX='-Bstatic' 15327 lt_prog_compiler_wl_CXX='-Qoption ld ' 15328 ;; 15329 esac 15330 ;; 15331 esac 15332 ;; 15333 lynxos*) 15334 ;; 15335 m88k*) 15336 ;; 15337 mvs*) 15338 case $cc_basename in 15339 cxx*) 15340 lt_prog_compiler_pic_CXX='-W c,exportall' 15341 ;; 15342 *) 15343 ;; 15344 esac 15345 ;; 15346 netbsd* | netbsdelf*-gnu) 15347 ;; 15348 *qnx* | *nto*) 15349 # QNX uses GNU C++, but need to define -shared option too, otherwise 15350 # it will coredump. 15351 lt_prog_compiler_pic_CXX='-fPIC -shared' 15352 ;; 15353 osf3* | osf4* | osf5*) 15354 case $cc_basename in 15355 KCC*) 15356 lt_prog_compiler_wl_CXX='--backend -Wl,' 15357 ;; 15358 RCC*) 15359 # Rational C++ 2.4.1 15360 lt_prog_compiler_pic_CXX='-pic' 15361 ;; 15362 cxx*) 15363 # Digital/Compaq C++ 15364 lt_prog_compiler_wl_CXX='-Wl,' 15365 # Make sure the PIC flag is empty. It appears that all Alpha 15366 # Linux and Compaq Tru64 Unix objects are PIC. 15367 lt_prog_compiler_pic_CXX= 15368 lt_prog_compiler_static_CXX='-non_shared' 15369 ;; 15370 *) 15371 ;; 15372 esac 15373 ;; 15374 psos*) 15375 ;; 15376 solaris*) 15377 case $cc_basename in 15378 CC* | sunCC*) 15379 # Sun C++ 4.2, 5.x and Centerline C++ 15380 lt_prog_compiler_pic_CXX='-KPIC' 15381 lt_prog_compiler_static_CXX='-Bstatic' 15382 lt_prog_compiler_wl_CXX='-Qoption ld ' 15383 ;; 15384 gcx*) 15385 # Green Hills C++ Compiler 15386 lt_prog_compiler_pic_CXX='-PIC' 15387 ;; 15388 *) 15389 ;; 15390 esac 15391 ;; 15392 sunos4*) 15393 case $cc_basename in 15394 CC*) 15395 # Sun C++ 4.x 15396 lt_prog_compiler_pic_CXX='-pic' 15397 lt_prog_compiler_static_CXX='-Bstatic' 15398 ;; 15399 lcc*) 15400 # Lucid 15401 lt_prog_compiler_pic_CXX='-pic' 15402 ;; 15403 *) 15404 ;; 15405 esac 15406 ;; 15407 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15408 case $cc_basename in 15409 CC*) 15410 lt_prog_compiler_wl_CXX='-Wl,' 15411 lt_prog_compiler_pic_CXX='-KPIC' 15412 lt_prog_compiler_static_CXX='-Bstatic' 15413 ;; 15414 esac 15415 ;; 15416 tandem*) 15417 case $cc_basename in 15418 NCC*) 15419 # NonStop-UX NCC 3.20 15420 lt_prog_compiler_pic_CXX='-KPIC' 15421 ;; 15422 *) 15423 ;; 15424 esac 15425 ;; 15426 vxworks*) 15427 ;; 15428 *) 15429 lt_prog_compiler_can_build_shared_CXX=no 15430 ;; 15431 esac 15432 fi 15433 15434case $host_os in 15435 # For platforms that do not support PIC, -DPIC is meaningless: 15436 *djgpp*) 15437 lt_prog_compiler_pic_CXX= 15438 ;; 15439 *) 15440 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15441 ;; 15442esac 15443 15444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15445$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15446if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15447 $as_echo_n "(cached) " >&6 15448else 15449 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15450fi 15451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15452$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15453lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15454 15455# 15456# Check to make sure the PIC flag actually works. 15457# 15458if test -n "$lt_prog_compiler_pic_CXX"; then 15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15460$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15461if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15462 $as_echo_n "(cached) " >&6 15463else 15464 lt_cv_prog_compiler_pic_works_CXX=no 15465 ac_outfile=conftest.$ac_objext 15466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15467 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15468 # Insert the option either (1) after the last *FLAGS variable, or 15469 # (2) before a word containing "conftest.", or (3) at the end. 15470 # Note that $ac_compile itself does not contain backslashes and begins 15471 # with a dollar sign (not a hyphen), so the echo should work correctly. 15472 # The option is referenced via a variable to avoid confusing sed. 15473 lt_compile=`echo "$ac_compile" | $SED \ 15474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15476 -e 's:$: $lt_compiler_flag:'` 15477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15478 (eval "$lt_compile" 2>conftest.err) 15479 ac_status=$? 15480 cat conftest.err >&5 15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15482 if (exit $ac_status) && test -s "$ac_outfile"; then 15483 # The compiler can only warn and ignore the option if not recognized 15484 # So say no if there are warnings other than the usual output. 15485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15487 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15488 lt_cv_prog_compiler_pic_works_CXX=yes 15489 fi 15490 fi 15491 $RM conftest* 15492 15493fi 15494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15495$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15496 15497if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15498 case $lt_prog_compiler_pic_CXX in 15499 "" | " "*) ;; 15500 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15501 esac 15502else 15503 lt_prog_compiler_pic_CXX= 15504 lt_prog_compiler_can_build_shared_CXX=no 15505fi 15506 15507fi 15508 15509 15510 15511 15512 15513# 15514# Check to make sure the static flag actually works. 15515# 15516wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15518$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15519if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15520 $as_echo_n "(cached) " >&6 15521else 15522 lt_cv_prog_compiler_static_works_CXX=no 15523 save_LDFLAGS=$LDFLAGS 15524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15525 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15527 # The linker can only warn and ignore the option if not recognized 15528 # So say no if there are warnings 15529 if test -s conftest.err; then 15530 # Append any errors to the config.log. 15531 cat conftest.err 1>&5 15532 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15534 if diff conftest.exp conftest.er2 >/dev/null; then 15535 lt_cv_prog_compiler_static_works_CXX=yes 15536 fi 15537 else 15538 lt_cv_prog_compiler_static_works_CXX=yes 15539 fi 15540 fi 15541 $RM -r conftest* 15542 LDFLAGS=$save_LDFLAGS 15543 15544fi 15545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15546$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15547 15548if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15549 : 15550else 15551 lt_prog_compiler_static_CXX= 15552fi 15553 15554 15555 15556 15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15558$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15559if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15560 $as_echo_n "(cached) " >&6 15561else 15562 lt_cv_prog_compiler_c_o_CXX=no 15563 $RM -r conftest 2>/dev/null 15564 mkdir conftest 15565 cd conftest 15566 mkdir out 15567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15568 15569 lt_compiler_flag="-o out/conftest2.$ac_objext" 15570 # Insert the option either (1) after the last *FLAGS variable, or 15571 # (2) before a word containing "conftest.", or (3) at the end. 15572 # Note that $ac_compile itself does not contain backslashes and begins 15573 # with a dollar sign (not a hyphen), so the echo should work correctly. 15574 lt_compile=`echo "$ac_compile" | $SED \ 15575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15577 -e 's:$: $lt_compiler_flag:'` 15578 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15579 (eval "$lt_compile" 2>out/conftest.err) 15580 ac_status=$? 15581 cat out/conftest.err >&5 15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15583 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15584 then 15585 # The compiler can only warn and ignore the option if not recognized 15586 # So say no if there are warnings 15587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15588 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15589 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15590 lt_cv_prog_compiler_c_o_CXX=yes 15591 fi 15592 fi 15593 chmod u+w . 2>&5 15594 $RM conftest* 15595 # SGI C++ compiler will create directory out/ii_files/ for 15596 # template instantiation 15597 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15598 $RM out/* && rmdir out 15599 cd .. 15600 $RM -r conftest 15601 $RM conftest* 15602 15603fi 15604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15605$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15606 15607 15608 15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15610$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15611if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15612 $as_echo_n "(cached) " >&6 15613else 15614 lt_cv_prog_compiler_c_o_CXX=no 15615 $RM -r conftest 2>/dev/null 15616 mkdir conftest 15617 cd conftest 15618 mkdir out 15619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15620 15621 lt_compiler_flag="-o out/conftest2.$ac_objext" 15622 # Insert the option either (1) after the last *FLAGS variable, or 15623 # (2) before a word containing "conftest.", or (3) at the end. 15624 # Note that $ac_compile itself does not contain backslashes and begins 15625 # with a dollar sign (not a hyphen), so the echo should work correctly. 15626 lt_compile=`echo "$ac_compile" | $SED \ 15627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15629 -e 's:$: $lt_compiler_flag:'` 15630 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15631 (eval "$lt_compile" 2>out/conftest.err) 15632 ac_status=$? 15633 cat out/conftest.err >&5 15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15635 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15636 then 15637 # The compiler can only warn and ignore the option if not recognized 15638 # So say no if there are warnings 15639 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15640 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15641 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15642 lt_cv_prog_compiler_c_o_CXX=yes 15643 fi 15644 fi 15645 chmod u+w . 2>&5 15646 $RM conftest* 15647 # SGI C++ compiler will create directory out/ii_files/ for 15648 # template instantiation 15649 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15650 $RM out/* && rmdir out 15651 cd .. 15652 $RM -r conftest 15653 $RM conftest* 15654 15655fi 15656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15657$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15658 15659 15660 15661 15662hard_links=nottested 15663if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15664 # do not overwrite the value of need_locks provided by the user 15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15666$as_echo_n "checking if we can lock with hard links... " >&6; } 15667 hard_links=yes 15668 $RM conftest* 15669 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15670 touch conftest.a 15671 ln conftest.a conftest.b 2>&5 || hard_links=no 15672 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15674$as_echo "$hard_links" >&6; } 15675 if test no = "$hard_links"; then 15676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15677$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15678 need_locks=warn 15679 fi 15680else 15681 need_locks=no 15682fi 15683 15684 15685 15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15687$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15688 15689 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15690 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15691 case $host_os in 15692 aix[4-9]*) 15693 # If we're using GNU nm, then we don't want the "-C" option. 15694 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15695 # Without the "-l" option, or with the "-B" option, AIX nm treats 15696 # weak defined symbols like other global defined symbols, whereas 15697 # GNU nm marks them as "W". 15698 # While the 'weak' keyword is ignored in the Export File, we need 15699 # it in the Import File for the 'aix-soname' feature, so we have 15700 # to replace the "-B" option with "-P" for AIX nm. 15701 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15702 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' 15703 else 15704 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' 15705 fi 15706 ;; 15707 pw32*) 15708 export_symbols_cmds_CXX=$ltdll_cmds 15709 ;; 15710 cygwin* | mingw* | cegcc*) 15711 case $cc_basename in 15712 cl*) 15713 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15714 ;; 15715 *) 15716 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' 15717 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15718 ;; 15719 esac 15720 ;; 15721 linux* | k*bsd*-gnu | gnu*) 15722 link_all_deplibs_CXX=no 15723 ;; 15724 *) 15725 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15726 ;; 15727 esac 15728 15729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15730$as_echo "$ld_shlibs_CXX" >&6; } 15731test no = "$ld_shlibs_CXX" && can_build_shared=no 15732 15733with_gnu_ld_CXX=$with_gnu_ld 15734 15735 15736 15737 15738 15739 15740# 15741# Do we need to explicitly link libc? 15742# 15743case "x$archive_cmds_need_lc_CXX" in 15744x|xyes) 15745 # Assume -lc should be added 15746 archive_cmds_need_lc_CXX=yes 15747 15748 if test yes,yes = "$GCC,$enable_shared"; then 15749 case $archive_cmds_CXX in 15750 *'~'*) 15751 # FIXME: we may have to deal with multi-command sequences. 15752 ;; 15753 '$CC '*) 15754 # Test whether the compiler implicitly links with -lc since on some 15755 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15756 # to ld, don't add -lc before -lgcc. 15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15758$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15759if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15760 $as_echo_n "(cached) " >&6 15761else 15762 $RM conftest* 15763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15764 15765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15766 (eval $ac_compile) 2>&5 15767 ac_status=$? 15768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15769 test $ac_status = 0; } 2>conftest.err; then 15770 soname=conftest 15771 lib=conftest 15772 libobjs=conftest.$ac_objext 15773 deplibs= 15774 wl=$lt_prog_compiler_wl_CXX 15775 pic_flag=$lt_prog_compiler_pic_CXX 15776 compiler_flags=-v 15777 linker_flags=-v 15778 verstring= 15779 output_objdir=. 15780 libname=conftest 15781 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15782 allow_undefined_flag_CXX= 15783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15784 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15785 ac_status=$? 15786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15787 test $ac_status = 0; } 15788 then 15789 lt_cv_archive_cmds_need_lc_CXX=no 15790 else 15791 lt_cv_archive_cmds_need_lc_CXX=yes 15792 fi 15793 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15794 else 15795 cat conftest.err 1>&5 15796 fi 15797 $RM conftest* 15798 15799fi 15800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15801$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15802 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15803 ;; 15804 esac 15805 fi 15806 ;; 15807esac 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15871$as_echo_n "checking dynamic linker characteristics... " >&6; } 15872 15873library_names_spec= 15874libname_spec='lib$name' 15875soname_spec= 15876shrext_cmds=.so 15877postinstall_cmds= 15878postuninstall_cmds= 15879finish_cmds= 15880finish_eval= 15881shlibpath_var= 15882shlibpath_overrides_runpath=unknown 15883version_type=none 15884dynamic_linker="$host_os ld.so" 15885sys_lib_dlsearch_path_spec="/lib /usr/lib" 15886need_lib_prefix=unknown 15887hardcode_into_libs=no 15888 15889# when you set need_version to no, make sure it does not cause -set_version 15890# flags to be left without arguments 15891need_version=unknown 15892 15893 15894 15895case $host_os in 15896aix3*) 15897 version_type=linux # correct to gnu/linux during the next big refactor 15898 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15899 shlibpath_var=LIBPATH 15900 15901 # AIX 3 has no versioning support, so we append a major version to the name. 15902 soname_spec='$libname$release$shared_ext$major' 15903 ;; 15904 15905aix[4-9]*) 15906 version_type=linux # correct to gnu/linux during the next big refactor 15907 need_lib_prefix=no 15908 need_version=no 15909 hardcode_into_libs=yes 15910 if test ia64 = "$host_cpu"; then 15911 # AIX 5 supports IA64 15912 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15913 shlibpath_var=LD_LIBRARY_PATH 15914 else 15915 # With GCC up to 2.95.x, collect2 would create an import file 15916 # for dependence libraries. The import file would start with 15917 # the line '#! .'. This would cause the generated library to 15918 # depend on '.', always an invalid library. This was fixed in 15919 # development snapshots of GCC prior to 3.0. 15920 case $host_os in 15921 aix4 | aix4.[01] | aix4.[01].*) 15922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15923 echo ' yes ' 15924 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15925 : 15926 else 15927 can_build_shared=no 15928 fi 15929 ;; 15930 esac 15931 # Using Import Files as archive members, it is possible to support 15932 # filename-based versioning of shared library archives on AIX. While 15933 # this would work for both with and without runtime linking, it will 15934 # prevent static linking of such archives. So we do filename-based 15935 # shared library versioning with .so extension only, which is used 15936 # when both runtime linking and shared linking is enabled. 15937 # Unfortunately, runtime linking may impact performance, so we do 15938 # not want this to be the default eventually. Also, we use the 15939 # versioned .so libs for executables only if there is the -brtl 15940 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15941 # To allow for filename-based versioning support, we need to create 15942 # libNAME.so.V as an archive file, containing: 15943 # *) an Import File, referring to the versioned filename of the 15944 # archive as well as the shared archive member, telling the 15945 # bitwidth (32 or 64) of that shared object, and providing the 15946 # list of exported symbols of that shared object, eventually 15947 # decorated with the 'weak' keyword 15948 # *) the shared object with the F_LOADONLY flag set, to really avoid 15949 # it being seen by the linker. 15950 # At run time we better use the real file rather than another symlink, 15951 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15952 15953 case $with_aix_soname,$aix_use_runtimelinking in 15954 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15955 # soname into executable. Probably we can add versioning support to 15956 # collect2, so additional links can be useful in future. 15957 aix,yes) # traditional libtool 15958 dynamic_linker='AIX unversionable lib.so' 15959 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15960 # instead of lib<name>.a to let people know that these are not 15961 # typical AIX shared libraries. 15962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15963 ;; 15964 aix,no) # traditional AIX only 15965 dynamic_linker='AIX lib.a(lib.so.V)' 15966 # We preserve .a as extension for shared libraries through AIX4.2 15967 # and later when we are not doing run time linking. 15968 library_names_spec='$libname$release.a $libname.a' 15969 soname_spec='$libname$release$shared_ext$major' 15970 ;; 15971 svr4,*) # full svr4 only 15972 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15973 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15974 # We do not specify a path in Import Files, so LIBPATH fires. 15975 shlibpath_overrides_runpath=yes 15976 ;; 15977 *,yes) # both, prefer svr4 15978 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15979 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15980 # unpreferred sharedlib libNAME.a needs extra handling 15981 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"' 15982 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"' 15983 # We do not specify a path in Import Files, so LIBPATH fires. 15984 shlibpath_overrides_runpath=yes 15985 ;; 15986 *,no) # both, prefer aix 15987 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15988 library_names_spec='$libname$release.a $libname.a' 15989 soname_spec='$libname$release$shared_ext$major' 15990 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15991 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)' 15992 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"' 15993 ;; 15994 esac 15995 shlibpath_var=LIBPATH 15996 fi 15997 ;; 15998 15999amigaos*) 16000 case $host_cpu in 16001 powerpc) 16002 # Since July 2007 AmigaOS4 officially supports .so libraries. 16003 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16005 ;; 16006 m68k) 16007 library_names_spec='$libname.ixlibrary $libname.a' 16008 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16009 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' 16010 ;; 16011 esac 16012 ;; 16013 16014beos*) 16015 library_names_spec='$libname$shared_ext' 16016 dynamic_linker="$host_os ld.so" 16017 shlibpath_var=LIBRARY_PATH 16018 ;; 16019 16020bsdi[45]*) 16021 version_type=linux # correct to gnu/linux during the next big refactor 16022 need_version=no 16023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16024 soname_spec='$libname$release$shared_ext$major' 16025 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16026 shlibpath_var=LD_LIBRARY_PATH 16027 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16028 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16029 # the default ld.so.conf also contains /usr/contrib/lib and 16030 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16031 # libtool to hard-code these into programs 16032 ;; 16033 16034cygwin* | mingw* | pw32* | cegcc*) 16035 version_type=windows 16036 shrext_cmds=.dll 16037 need_version=no 16038 need_lib_prefix=no 16039 16040 case $GCC,$cc_basename in 16041 yes,*) 16042 # gcc 16043 library_names_spec='$libname.dll.a' 16044 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16045 postinstall_cmds='base_file=`basename \$file`~ 16046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16047 dldir=$destdir/`dirname \$dlpath`~ 16048 test -d \$dldir || mkdir -p \$dldir~ 16049 $install_prog $dir/$dlname \$dldir/$dlname~ 16050 chmod a+x \$dldir/$dlname~ 16051 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16052 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16053 fi' 16054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16055 dlpath=$dir/\$dldll~ 16056 $RM \$dlpath' 16057 shlibpath_overrides_runpath=yes 16058 16059 case $host_os in 16060 cygwin*) 16061 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16062 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16063 16064 ;; 16065 mingw* | cegcc*) 16066 # MinGW DLLs use traditional 'lib' prefix 16067 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16068 ;; 16069 pw32*) 16070 # pw32 DLLs use 'pw' prefix rather than 'lib' 16071 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16072 ;; 16073 esac 16074 dynamic_linker='Win32 ld.exe' 16075 ;; 16076 16077 *,cl*) 16078 # Native MSVC 16079 libname_spec='$name' 16080 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16081 library_names_spec='$libname.dll.lib' 16082 16083 case $build_os in 16084 mingw*) 16085 sys_lib_search_path_spec= 16086 lt_save_ifs=$IFS 16087 IFS=';' 16088 for lt_path in $LIB 16089 do 16090 IFS=$lt_save_ifs 16091 # Let DOS variable expansion print the short 8.3 style file name. 16092 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16093 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16094 done 16095 IFS=$lt_save_ifs 16096 # Convert to MSYS style. 16097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16098 ;; 16099 cygwin*) 16100 # Convert to unix form, then to dos form, then back to unix form 16101 # but this time dos style (no spaces!) so that the unix form looks 16102 # like /cygdrive/c/PROGRA~1:/cygdr... 16103 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16104 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16105 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16106 ;; 16107 *) 16108 sys_lib_search_path_spec=$LIB 16109 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16110 # It is most probably a Windows format PATH. 16111 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16112 else 16113 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16114 fi 16115 # FIXME: find the short name or the path components, as spaces are 16116 # common. (e.g. "Program Files" -> "PROGRA~1") 16117 ;; 16118 esac 16119 16120 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16121 postinstall_cmds='base_file=`basename \$file`~ 16122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16123 dldir=$destdir/`dirname \$dlpath`~ 16124 test -d \$dldir || mkdir -p \$dldir~ 16125 $install_prog $dir/$dlname \$dldir/$dlname' 16126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16127 dlpath=$dir/\$dldll~ 16128 $RM \$dlpath' 16129 shlibpath_overrides_runpath=yes 16130 dynamic_linker='Win32 link.exe' 16131 ;; 16132 16133 *) 16134 # Assume MSVC wrapper 16135 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16136 dynamic_linker='Win32 ld.exe' 16137 ;; 16138 esac 16139 # FIXME: first we should search . and the directory the executable is in 16140 shlibpath_var=PATH 16141 ;; 16142 16143darwin* | rhapsody*) 16144 dynamic_linker="$host_os dyld" 16145 version_type=darwin 16146 need_lib_prefix=no 16147 need_version=no 16148 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16149 soname_spec='$libname$release$major$shared_ext' 16150 shlibpath_overrides_runpath=yes 16151 shlibpath_var=DYLD_LIBRARY_PATH 16152 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16153 16154 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16155 ;; 16156 16157dgux*) 16158 version_type=linux # correct to gnu/linux during the next big refactor 16159 need_lib_prefix=no 16160 need_version=no 16161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16162 soname_spec='$libname$release$shared_ext$major' 16163 shlibpath_var=LD_LIBRARY_PATH 16164 ;; 16165 16166freebsd* | dragonfly*) 16167 # DragonFly does not have aout. When/if they implement a new 16168 # versioning mechanism, adjust this. 16169 if test -x /usr/bin/objformat; then 16170 objformat=`/usr/bin/objformat` 16171 else 16172 case $host_os in 16173 freebsd[23].*) objformat=aout ;; 16174 *) objformat=elf ;; 16175 esac 16176 fi 16177 version_type=freebsd-$objformat 16178 case $version_type in 16179 freebsd-elf*) 16180 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16181 soname_spec='$libname$release$shared_ext$major' 16182 need_version=no 16183 need_lib_prefix=no 16184 ;; 16185 freebsd-*) 16186 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16187 need_version=yes 16188 ;; 16189 esac 16190 shlibpath_var=LD_LIBRARY_PATH 16191 case $host_os in 16192 freebsd2.*) 16193 shlibpath_overrides_runpath=yes 16194 ;; 16195 freebsd3.[01]* | freebsdelf3.[01]*) 16196 shlibpath_overrides_runpath=yes 16197 hardcode_into_libs=yes 16198 ;; 16199 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16200 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16201 shlibpath_overrides_runpath=no 16202 hardcode_into_libs=yes 16203 ;; 16204 *) # from 4.6 on, and DragonFly 16205 shlibpath_overrides_runpath=yes 16206 hardcode_into_libs=yes 16207 ;; 16208 esac 16209 ;; 16210 16211haiku*) 16212 version_type=linux # correct to gnu/linux during the next big refactor 16213 need_lib_prefix=no 16214 need_version=no 16215 dynamic_linker="$host_os runtime_loader" 16216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16217 soname_spec='$libname$release$shared_ext$major' 16218 shlibpath_var=LIBRARY_PATH 16219 shlibpath_overrides_runpath=no 16220 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16221 hardcode_into_libs=yes 16222 ;; 16223 16224hpux9* | hpux10* | hpux11*) 16225 # Give a soname corresponding to the major version so that dld.sl refuses to 16226 # link against other versions. 16227 version_type=sunos 16228 need_lib_prefix=no 16229 need_version=no 16230 case $host_cpu in 16231 ia64*) 16232 shrext_cmds='.so' 16233 hardcode_into_libs=yes 16234 dynamic_linker="$host_os dld.so" 16235 shlibpath_var=LD_LIBRARY_PATH 16236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16238 soname_spec='$libname$release$shared_ext$major' 16239 if test 32 = "$HPUX_IA64_MODE"; then 16240 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16241 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16242 else 16243 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16244 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16245 fi 16246 ;; 16247 hppa*64*) 16248 shrext_cmds='.sl' 16249 hardcode_into_libs=yes 16250 dynamic_linker="$host_os dld.sl" 16251 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16252 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16254 soname_spec='$libname$release$shared_ext$major' 16255 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16256 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16257 ;; 16258 *) 16259 shrext_cmds='.sl' 16260 dynamic_linker="$host_os dld.sl" 16261 shlibpath_var=SHLIB_PATH 16262 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16264 soname_spec='$libname$release$shared_ext$major' 16265 ;; 16266 esac 16267 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16268 postinstall_cmds='chmod 555 $lib' 16269 # or fails outright, so override atomically: 16270 install_override_mode=555 16271 ;; 16272 16273interix[3-9]*) 16274 version_type=linux # correct to gnu/linux during the next big refactor 16275 need_lib_prefix=no 16276 need_version=no 16277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16278 soname_spec='$libname$release$shared_ext$major' 16279 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16280 shlibpath_var=LD_LIBRARY_PATH 16281 shlibpath_overrides_runpath=no 16282 hardcode_into_libs=yes 16283 ;; 16284 16285irix5* | irix6* | nonstopux*) 16286 case $host_os in 16287 nonstopux*) version_type=nonstopux ;; 16288 *) 16289 if test yes = "$lt_cv_prog_gnu_ld"; then 16290 version_type=linux # correct to gnu/linux during the next big refactor 16291 else 16292 version_type=irix 16293 fi ;; 16294 esac 16295 need_lib_prefix=no 16296 need_version=no 16297 soname_spec='$libname$release$shared_ext$major' 16298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16299 case $host_os in 16300 irix5* | nonstopux*) 16301 libsuff= shlibsuff= 16302 ;; 16303 *) 16304 case $LD in # libtool.m4 will add one of these switches to LD 16305 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16306 libsuff= shlibsuff= libmagic=32-bit;; 16307 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16308 libsuff=32 shlibsuff=N32 libmagic=N32;; 16309 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16310 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16311 *) libsuff= shlibsuff= libmagic=never-match;; 16312 esac 16313 ;; 16314 esac 16315 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16316 shlibpath_overrides_runpath=no 16317 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16318 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16319 hardcode_into_libs=yes 16320 ;; 16321 16322# No shared lib support for Linux oldld, aout, or coff. 16323linux*oldld* | linux*aout* | linux*coff*) 16324 dynamic_linker=no 16325 ;; 16326 16327linux*android*) 16328 version_type=none # Android doesn't support versioned libraries. 16329 need_lib_prefix=no 16330 need_version=no 16331 library_names_spec='$libname$release$shared_ext' 16332 soname_spec='$libname$release$shared_ext' 16333 finish_cmds= 16334 shlibpath_var=LD_LIBRARY_PATH 16335 shlibpath_overrides_runpath=yes 16336 16337 # This implies no fast_install, which is unacceptable. 16338 # Some rework will be needed to allow for fast_install 16339 # before this can be enabled. 16340 hardcode_into_libs=yes 16341 16342 dynamic_linker='Android linker' 16343 # Don't embed -rpath directories since the linker doesn't support them. 16344 hardcode_libdir_flag_spec_CXX='-L$libdir' 16345 ;; 16346 16347# This must be glibc/ELF. 16348linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16349 version_type=linux # correct to gnu/linux during the next big refactor 16350 need_lib_prefix=no 16351 need_version=no 16352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16353 soname_spec='$libname$release$shared_ext$major' 16354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16355 shlibpath_var=LD_LIBRARY_PATH 16356 shlibpath_overrides_runpath=no 16357 16358 # Some binutils ld are patched to set DT_RUNPATH 16359 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16360 $as_echo_n "(cached) " >&6 16361else 16362 lt_cv_shlibpath_overrides_runpath=no 16363 save_LDFLAGS=$LDFLAGS 16364 save_libdir=$libdir 16365 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16366 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16368/* end confdefs.h. */ 16369 16370int 16371main () 16372{ 16373 16374 ; 16375 return 0; 16376} 16377_ACEOF 16378if ac_fn_cxx_try_link "$LINENO"; then : 16379 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16380 lt_cv_shlibpath_overrides_runpath=yes 16381fi 16382fi 16383rm -f core conftest.err conftest.$ac_objext \ 16384 conftest$ac_exeext conftest.$ac_ext 16385 LDFLAGS=$save_LDFLAGS 16386 libdir=$save_libdir 16387 16388fi 16389 16390 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16391 16392 # This implies no fast_install, which is unacceptable. 16393 # Some rework will be needed to allow for fast_install 16394 # before this can be enabled. 16395 hardcode_into_libs=yes 16396 16397 # Ideally, we could use ldconfig to report *all* directores which are 16398 # searched for libraries, however this is still not possible. Aside from not 16399 # being certain /sbin/ldconfig is available, command 16400 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16401 # even though it is searched at run-time. Try to do the best guess by 16402 # appending ld.so.conf contents (and includes) to the search path. 16403 if test -f /etc/ld.so.conf; then 16404 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' ' '` 16405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16406 fi 16407 16408 # We used to test for /lib/ld.so.1 and disable shared libraries on 16409 # powerpc, because MkLinux only supported shared libraries with the 16410 # GNU dynamic linker. Since this was broken with cross compilers, 16411 # most powerpc-linux boxes support dynamic linking these days and 16412 # people can always --disable-shared, the test was removed, and we 16413 # assume the GNU/Linux dynamic linker is in use. 16414 dynamic_linker='GNU/Linux ld.so' 16415 ;; 16416 16417netbsdelf*-gnu) 16418 version_type=linux 16419 need_lib_prefix=no 16420 need_version=no 16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16422 soname_spec='${libname}${release}${shared_ext}$major' 16423 shlibpath_var=LD_LIBRARY_PATH 16424 shlibpath_overrides_runpath=no 16425 hardcode_into_libs=yes 16426 dynamic_linker='NetBSD ld.elf_so' 16427 ;; 16428 16429netbsd*) 16430 version_type=sunos 16431 need_lib_prefix=no 16432 need_version=no 16433 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16434 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16436 dynamic_linker='NetBSD (a.out) ld.so' 16437 else 16438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16439 soname_spec='$libname$release$shared_ext$major' 16440 dynamic_linker='NetBSD ld.elf_so' 16441 fi 16442 shlibpath_var=LD_LIBRARY_PATH 16443 shlibpath_overrides_runpath=yes 16444 hardcode_into_libs=yes 16445 ;; 16446 16447newsos6) 16448 version_type=linux # correct to gnu/linux during the next big refactor 16449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16450 shlibpath_var=LD_LIBRARY_PATH 16451 shlibpath_overrides_runpath=yes 16452 ;; 16453 16454*nto* | *qnx*) 16455 version_type=qnx 16456 need_lib_prefix=no 16457 need_version=no 16458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16459 soname_spec='$libname$release$shared_ext$major' 16460 shlibpath_var=LD_LIBRARY_PATH 16461 shlibpath_overrides_runpath=no 16462 hardcode_into_libs=yes 16463 dynamic_linker='ldqnx.so' 16464 ;; 16465 16466openbsd* | bitrig*) 16467 version_type=sunos 16468 sys_lib_dlsearch_path_spec=/usr/lib 16469 need_lib_prefix=no 16470 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16471 need_version=no 16472 else 16473 need_version=yes 16474 fi 16475 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16477 shlibpath_var=LD_LIBRARY_PATH 16478 shlibpath_overrides_runpath=yes 16479 ;; 16480 16481os2*) 16482 libname_spec='$name' 16483 version_type=windows 16484 shrext_cmds=.dll 16485 need_version=no 16486 need_lib_prefix=no 16487 # OS/2 can only load a DLL with a base name of 8 characters or less. 16488 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16489 v=$($ECHO $release$versuffix | tr -d .-); 16490 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16491 $ECHO $n$v`$shared_ext' 16492 library_names_spec='${libname}_dll.$libext' 16493 dynamic_linker='OS/2 ld.exe' 16494 shlibpath_var=BEGINLIBPATH 16495 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16496 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16497 postinstall_cmds='base_file=`basename \$file`~ 16498 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16499 dldir=$destdir/`dirname \$dlpath`~ 16500 test -d \$dldir || mkdir -p \$dldir~ 16501 $install_prog $dir/$dlname \$dldir/$dlname~ 16502 chmod a+x \$dldir/$dlname~ 16503 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16504 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16505 fi' 16506 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16507 dlpath=$dir/\$dldll~ 16508 $RM \$dlpath' 16509 ;; 16510 16511osf3* | osf4* | osf5*) 16512 version_type=osf 16513 need_lib_prefix=no 16514 need_version=no 16515 soname_spec='$libname$release$shared_ext$major' 16516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16517 shlibpath_var=LD_LIBRARY_PATH 16518 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16520 ;; 16521 16522rdos*) 16523 dynamic_linker=no 16524 ;; 16525 16526solaris*) 16527 version_type=linux # correct to gnu/linux during the next big refactor 16528 need_lib_prefix=no 16529 need_version=no 16530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16531 soname_spec='$libname$release$shared_ext$major' 16532 shlibpath_var=LD_LIBRARY_PATH 16533 shlibpath_overrides_runpath=yes 16534 hardcode_into_libs=yes 16535 # ldd complains unless libraries are executable 16536 postinstall_cmds='chmod +x $lib' 16537 ;; 16538 16539sunos4*) 16540 version_type=sunos 16541 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16542 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16543 shlibpath_var=LD_LIBRARY_PATH 16544 shlibpath_overrides_runpath=yes 16545 if test yes = "$with_gnu_ld"; then 16546 need_lib_prefix=no 16547 fi 16548 need_version=yes 16549 ;; 16550 16551sysv4 | sysv4.3*) 16552 version_type=linux # correct to gnu/linux during the next big refactor 16553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16554 soname_spec='$libname$release$shared_ext$major' 16555 shlibpath_var=LD_LIBRARY_PATH 16556 case $host_vendor in 16557 sni) 16558 shlibpath_overrides_runpath=no 16559 need_lib_prefix=no 16560 runpath_var=LD_RUN_PATH 16561 ;; 16562 siemens) 16563 need_lib_prefix=no 16564 ;; 16565 motorola) 16566 need_lib_prefix=no 16567 need_version=no 16568 shlibpath_overrides_runpath=no 16569 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16570 ;; 16571 esac 16572 ;; 16573 16574sysv4*MP*) 16575 if test -d /usr/nec; then 16576 version_type=linux # correct to gnu/linux during the next big refactor 16577 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16578 soname_spec='$libname$shared_ext.$major' 16579 shlibpath_var=LD_LIBRARY_PATH 16580 fi 16581 ;; 16582 16583sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16584 version_type=sco 16585 need_lib_prefix=no 16586 need_version=no 16587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16588 soname_spec='$libname$release$shared_ext$major' 16589 shlibpath_var=LD_LIBRARY_PATH 16590 shlibpath_overrides_runpath=yes 16591 hardcode_into_libs=yes 16592 if test yes = "$with_gnu_ld"; then 16593 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16594 else 16595 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16596 case $host_os in 16597 sco3.2v5*) 16598 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16599 ;; 16600 esac 16601 fi 16602 sys_lib_dlsearch_path_spec='/usr/lib' 16603 ;; 16604 16605tpf*) 16606 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16607 version_type=linux # correct to gnu/linux during the next big refactor 16608 need_lib_prefix=no 16609 need_version=no 16610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16611 shlibpath_var=LD_LIBRARY_PATH 16612 shlibpath_overrides_runpath=no 16613 hardcode_into_libs=yes 16614 ;; 16615 16616uts4*) 16617 version_type=linux # correct to gnu/linux during the next big refactor 16618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16619 soname_spec='$libname$release$shared_ext$major' 16620 shlibpath_var=LD_LIBRARY_PATH 16621 ;; 16622 16623*) 16624 dynamic_linker=no 16625 ;; 16626esac 16627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16628$as_echo "$dynamic_linker" >&6; } 16629test no = "$dynamic_linker" && can_build_shared=no 16630 16631variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16632if test yes = "$GCC"; then 16633 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16634fi 16635 16636if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16637 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16638fi 16639 16640if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16641 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16642fi 16643 16644# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16645configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16646 16647# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16648func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16649 16650# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16651configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16693$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16694hardcode_action_CXX= 16695if test -n "$hardcode_libdir_flag_spec_CXX" || 16696 test -n "$runpath_var_CXX" || 16697 test yes = "$hardcode_automatic_CXX"; then 16698 16699 # We can hardcode non-existent directories. 16700 if test no != "$hardcode_direct_CXX" && 16701 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16702 # have to relink, otherwise we might link with an installed library 16703 # when we should be linking with a yet-to-be-installed one 16704 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16705 test no != "$hardcode_minus_L_CXX"; then 16706 # Linking always hardcodes the temporary library directory. 16707 hardcode_action_CXX=relink 16708 else 16709 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16710 hardcode_action_CXX=immediate 16711 fi 16712else 16713 # We cannot hardcode anything, or else we can only hardcode existing 16714 # directories. 16715 hardcode_action_CXX=unsupported 16716fi 16717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16718$as_echo "$hardcode_action_CXX" >&6; } 16719 16720if test relink = "$hardcode_action_CXX" || 16721 test yes = "$inherit_rpath_CXX"; then 16722 # Fast installation is not supported 16723 enable_fast_install=no 16724elif test yes = "$shlibpath_overrides_runpath" || 16725 test no = "$enable_shared"; then 16726 # Fast installation is not necessary 16727 enable_fast_install=needless 16728fi 16729 16730 16731 16732 16733 16734 16735 16736 fi # test -n "$compiler" 16737 16738 CC=$lt_save_CC 16739 CFLAGS=$lt_save_CFLAGS 16740 LDCXX=$LD 16741 LD=$lt_save_LD 16742 GCC=$lt_save_GCC 16743 with_gnu_ld=$lt_save_with_gnu_ld 16744 lt_cv_path_LDCXX=$lt_cv_path_LD 16745 lt_cv_path_LD=$lt_save_path_LD 16746 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16747 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16748fi # test yes != "$_lt_caught_CXX_error" 16749 16750ac_ext=c 16751ac_cpp='$CPP $CPPFLAGS' 16752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16754ac_compiler_gnu=$ac_cv_c_compiler_gnu 16755 16756 16757# The following check was supposed to check that there was actually a 16758# C++ compiler but doesn't work properly if CXX is set by the user. 16759#AC_CHECK_PROG(check_cpp, $CXX, "yes", "no") 16760#if test "$check_cpp" != "yes"; then 16761# AC_MSG_ERROR([No C++ compiler found. Unable to build Poly/ML.]) 16762#fi 16763 16764ac_ext=c 16765ac_cpp='$CPP $CPPFLAGS' 16766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16768ac_compiler_gnu=$ac_cv_c_compiler_gnu 16769if test -n "$ac_tool_prefix"; then 16770 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 16771set dummy ${ac_tool_prefix}gcc; ac_word=$2 16772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16773$as_echo_n "checking for $ac_word... " >&6; } 16774if ${ac_cv_prog_CC+:} false; then : 16775 $as_echo_n "(cached) " >&6 16776else 16777 if test -n "$CC"; then 16778 ac_cv_prog_CC="$CC" # Let the user override the test. 16779else 16780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16781for as_dir in $PATH 16782do 16783 IFS=$as_save_IFS 16784 test -z "$as_dir" && as_dir=. 16785 for ac_exec_ext in '' $ac_executable_extensions; do 16786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16787 ac_cv_prog_CC="${ac_tool_prefix}gcc" 16788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16789 break 2 16790 fi 16791done 16792 done 16793IFS=$as_save_IFS 16794 16795fi 16796fi 16797CC=$ac_cv_prog_CC 16798if test -n "$CC"; then 16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16800$as_echo "$CC" >&6; } 16801else 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16803$as_echo "no" >&6; } 16804fi 16805 16806 16807fi 16808if test -z "$ac_cv_prog_CC"; then 16809 ac_ct_CC=$CC 16810 # Extract the first word of "gcc", so it can be a program name with args. 16811set dummy gcc; ac_word=$2 16812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16813$as_echo_n "checking for $ac_word... " >&6; } 16814if ${ac_cv_prog_ac_ct_CC+:} false; then : 16815 $as_echo_n "(cached) " >&6 16816else 16817 if test -n "$ac_ct_CC"; then 16818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 16819else 16820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16821for as_dir in $PATH 16822do 16823 IFS=$as_save_IFS 16824 test -z "$as_dir" && as_dir=. 16825 for ac_exec_ext in '' $ac_executable_extensions; do 16826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16827 ac_cv_prog_ac_ct_CC="gcc" 16828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16829 break 2 16830 fi 16831done 16832 done 16833IFS=$as_save_IFS 16834 16835fi 16836fi 16837ac_ct_CC=$ac_cv_prog_ac_ct_CC 16838if test -n "$ac_ct_CC"; then 16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 16840$as_echo "$ac_ct_CC" >&6; } 16841else 16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16843$as_echo "no" >&6; } 16844fi 16845 16846 if test "x$ac_ct_CC" = x; then 16847 CC="" 16848 else 16849 case $cross_compiling:$ac_tool_warned in 16850yes:) 16851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16853ac_tool_warned=yes ;; 16854esac 16855 CC=$ac_ct_CC 16856 fi 16857else 16858 CC="$ac_cv_prog_CC" 16859fi 16860 16861if test -z "$CC"; then 16862 if test -n "$ac_tool_prefix"; then 16863 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 16864set dummy ${ac_tool_prefix}cc; ac_word=$2 16865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16866$as_echo_n "checking for $ac_word... " >&6; } 16867if ${ac_cv_prog_CC+:} false; then : 16868 $as_echo_n "(cached) " >&6 16869else 16870 if test -n "$CC"; then 16871 ac_cv_prog_CC="$CC" # Let the user override the test. 16872else 16873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16874for as_dir in $PATH 16875do 16876 IFS=$as_save_IFS 16877 test -z "$as_dir" && as_dir=. 16878 for ac_exec_ext in '' $ac_executable_extensions; do 16879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16880 ac_cv_prog_CC="${ac_tool_prefix}cc" 16881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16882 break 2 16883 fi 16884done 16885 done 16886IFS=$as_save_IFS 16887 16888fi 16889fi 16890CC=$ac_cv_prog_CC 16891if test -n "$CC"; then 16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16893$as_echo "$CC" >&6; } 16894else 16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16896$as_echo "no" >&6; } 16897fi 16898 16899 16900 fi 16901fi 16902if test -z "$CC"; then 16903 # Extract the first word of "cc", so it can be a program name with args. 16904set dummy cc; ac_word=$2 16905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16906$as_echo_n "checking for $ac_word... " >&6; } 16907if ${ac_cv_prog_CC+:} false; then : 16908 $as_echo_n "(cached) " >&6 16909else 16910 if test -n "$CC"; then 16911 ac_cv_prog_CC="$CC" # Let the user override the test. 16912else 16913 ac_prog_rejected=no 16914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16915for as_dir in $PATH 16916do 16917 IFS=$as_save_IFS 16918 test -z "$as_dir" && as_dir=. 16919 for ac_exec_ext in '' $ac_executable_extensions; do 16920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16921 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 16922 ac_prog_rejected=yes 16923 continue 16924 fi 16925 ac_cv_prog_CC="cc" 16926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16927 break 2 16928 fi 16929done 16930 done 16931IFS=$as_save_IFS 16932 16933if test $ac_prog_rejected = yes; then 16934 # We found a bogon in the path, so make sure we never use it. 16935 set dummy $ac_cv_prog_CC 16936 shift 16937 if test $# != 0; then 16938 # We chose a different compiler from the bogus one. 16939 # However, it has the same basename, so the bogon will be chosen 16940 # first if we set CC to just the basename; use the full file name. 16941 shift 16942 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 16943 fi 16944fi 16945fi 16946fi 16947CC=$ac_cv_prog_CC 16948if test -n "$CC"; then 16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16950$as_echo "$CC" >&6; } 16951else 16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16953$as_echo "no" >&6; } 16954fi 16955 16956 16957fi 16958if test -z "$CC"; then 16959 if test -n "$ac_tool_prefix"; then 16960 for ac_prog in cl.exe 16961 do 16962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16963set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16965$as_echo_n "checking for $ac_word... " >&6; } 16966if ${ac_cv_prog_CC+:} false; then : 16967 $as_echo_n "(cached) " >&6 16968else 16969 if test -n "$CC"; then 16970 ac_cv_prog_CC="$CC" # Let the user override the test. 16971else 16972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16973for as_dir in $PATH 16974do 16975 IFS=$as_save_IFS 16976 test -z "$as_dir" && as_dir=. 16977 for ac_exec_ext in '' $ac_executable_extensions; do 16978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 16980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16981 break 2 16982 fi 16983done 16984 done 16985IFS=$as_save_IFS 16986 16987fi 16988fi 16989CC=$ac_cv_prog_CC 16990if test -n "$CC"; then 16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 16992$as_echo "$CC" >&6; } 16993else 16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16995$as_echo "no" >&6; } 16996fi 16997 16998 16999 test -n "$CC" && break 17000 done 17001fi 17002if test -z "$CC"; then 17003 ac_ct_CC=$CC 17004 for ac_prog in cl.exe 17005do 17006 # Extract the first word of "$ac_prog", so it can be a program name with args. 17007set dummy $ac_prog; ac_word=$2 17008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17009$as_echo_n "checking for $ac_word... " >&6; } 17010if ${ac_cv_prog_ac_ct_CC+:} false; then : 17011 $as_echo_n "(cached) " >&6 17012else 17013 if test -n "$ac_ct_CC"; then 17014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 17015else 17016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17017for as_dir in $PATH 17018do 17019 IFS=$as_save_IFS 17020 test -z "$as_dir" && as_dir=. 17021 for ac_exec_ext in '' $ac_executable_extensions; do 17022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17023 ac_cv_prog_ac_ct_CC="$ac_prog" 17024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17025 break 2 17026 fi 17027done 17028 done 17029IFS=$as_save_IFS 17030 17031fi 17032fi 17033ac_ct_CC=$ac_cv_prog_ac_ct_CC 17034if test -n "$ac_ct_CC"; then 17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 17036$as_echo "$ac_ct_CC" >&6; } 17037else 17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17039$as_echo "no" >&6; } 17040fi 17041 17042 17043 test -n "$ac_ct_CC" && break 17044done 17045 17046 if test "x$ac_ct_CC" = x; then 17047 CC="" 17048 else 17049 case $cross_compiling:$ac_tool_warned in 17050yes:) 17051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17053ac_tool_warned=yes ;; 17054esac 17055 CC=$ac_ct_CC 17056 fi 17057fi 17058 17059fi 17060 17061 17062test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17064as_fn_error $? "no acceptable C compiler found in \$PATH 17065See \`config.log' for more details" "$LINENO" 5; } 17066 17067# Provide some information about the compiler. 17068$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 17069set X $ac_compile 17070ac_compiler=$2 17071for ac_option in --version -v -V -qversion; do 17072 { { ac_try="$ac_compiler $ac_option >&5" 17073case "(($ac_try" in 17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17075 *) ac_try_echo=$ac_try;; 17076esac 17077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17078$as_echo "$ac_try_echo"; } >&5 17079 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 17080 ac_status=$? 17081 if test -s conftest.err; then 17082 sed '10a\ 17083... rest of stderr output deleted ... 17084 10q' conftest.err >conftest.er1 17085 cat conftest.er1 >&5 17086 fi 17087 rm -f conftest.er1 conftest.err 17088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17089 test $ac_status = 0; } 17090done 17091 17092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 17093$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 17094if ${ac_cv_c_compiler_gnu+:} false; then : 17095 $as_echo_n "(cached) " >&6 17096else 17097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17098/* end confdefs.h. */ 17099 17100int 17101main () 17102{ 17103#ifndef __GNUC__ 17104 choke me 17105#endif 17106 17107 ; 17108 return 0; 17109} 17110_ACEOF 17111if ac_fn_c_try_compile "$LINENO"; then : 17112 ac_compiler_gnu=yes 17113else 17114 ac_compiler_gnu=no 17115fi 17116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17117ac_cv_c_compiler_gnu=$ac_compiler_gnu 17118 17119fi 17120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 17121$as_echo "$ac_cv_c_compiler_gnu" >&6; } 17122if test $ac_compiler_gnu = yes; then 17123 GCC=yes 17124else 17125 GCC= 17126fi 17127ac_test_CFLAGS=${CFLAGS+set} 17128ac_save_CFLAGS=$CFLAGS 17129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 17130$as_echo_n "checking whether $CC accepts -g... " >&6; } 17131if ${ac_cv_prog_cc_g+:} false; then : 17132 $as_echo_n "(cached) " >&6 17133else 17134 ac_save_c_werror_flag=$ac_c_werror_flag 17135 ac_c_werror_flag=yes 17136 ac_cv_prog_cc_g=no 17137 CFLAGS="-g" 17138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17139/* end confdefs.h. */ 17140 17141int 17142main () 17143{ 17144 17145 ; 17146 return 0; 17147} 17148_ACEOF 17149if ac_fn_c_try_compile "$LINENO"; then : 17150 ac_cv_prog_cc_g=yes 17151else 17152 CFLAGS="" 17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17154/* end confdefs.h. */ 17155 17156int 17157main () 17158{ 17159 17160 ; 17161 return 0; 17162} 17163_ACEOF 17164if ac_fn_c_try_compile "$LINENO"; then : 17165 17166else 17167 ac_c_werror_flag=$ac_save_c_werror_flag 17168 CFLAGS="-g" 17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17170/* end confdefs.h. */ 17171 17172int 17173main () 17174{ 17175 17176 ; 17177 return 0; 17178} 17179_ACEOF 17180if ac_fn_c_try_compile "$LINENO"; then : 17181 ac_cv_prog_cc_g=yes 17182fi 17183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17184fi 17185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17186fi 17187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17188 ac_c_werror_flag=$ac_save_c_werror_flag 17189fi 17190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 17191$as_echo "$ac_cv_prog_cc_g" >&6; } 17192if test "$ac_test_CFLAGS" = set; then 17193 CFLAGS=$ac_save_CFLAGS 17194elif test $ac_cv_prog_cc_g = yes; then 17195 if test "$GCC" = yes; then 17196 CFLAGS="-g -O2" 17197 else 17198 CFLAGS="-g" 17199 fi 17200else 17201 if test "$GCC" = yes; then 17202 CFLAGS="-O2" 17203 else 17204 CFLAGS= 17205 fi 17206fi 17207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 17208$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 17209if ${ac_cv_prog_cc_c89+:} false; then : 17210 $as_echo_n "(cached) " >&6 17211else 17212 ac_cv_prog_cc_c89=no 17213ac_save_CC=$CC 17214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17215/* end confdefs.h. */ 17216#include <stdarg.h> 17217#include <stdio.h> 17218struct stat; 17219/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 17220struct buf { int x; }; 17221FILE * (*rcsopen) (struct buf *, struct stat *, int); 17222static char *e (p, i) 17223 char **p; 17224 int i; 17225{ 17226 return p[i]; 17227} 17228static char *f (char * (*g) (char **, int), char **p, ...) 17229{ 17230 char *s; 17231 va_list v; 17232 va_start (v,p); 17233 s = g (p, va_arg (v,int)); 17234 va_end (v); 17235 return s; 17236} 17237 17238/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 17239 function prototypes and stuff, but not '\xHH' hex character constants. 17240 These don't provoke an error unfortunately, instead are silently treated 17241 as 'x'. The following induces an error, until -std is added to get 17242 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 17243 array size at least. It's necessary to write '\x00'==0 to get something 17244 that's true only with -std. */ 17245int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 17246 17247/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 17248 inside strings and character constants. */ 17249#define FOO(x) 'x' 17250int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 17251 17252int test (int i, double x); 17253struct s1 {int (*f) (int a);}; 17254struct s2 {int (*f) (double a);}; 17255int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 17256int argc; 17257char **argv; 17258int 17259main () 17260{ 17261return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 17262 ; 17263 return 0; 17264} 17265_ACEOF 17266for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 17267 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 17268do 17269 CC="$ac_save_CC $ac_arg" 17270 if ac_fn_c_try_compile "$LINENO"; then : 17271 ac_cv_prog_cc_c89=$ac_arg 17272fi 17273rm -f core conftest.err conftest.$ac_objext 17274 test "x$ac_cv_prog_cc_c89" != "xno" && break 17275done 17276rm -f conftest.$ac_ext 17277CC=$ac_save_CC 17278 17279fi 17280# AC_CACHE_VAL 17281case "x$ac_cv_prog_cc_c89" in 17282 x) 17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 17284$as_echo "none needed" >&6; } ;; 17285 xno) 17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 17287$as_echo "unsupported" >&6; } ;; 17288 *) 17289 CC="$CC $ac_cv_prog_cc_c89" 17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 17291$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 17292esac 17293if test "x$ac_cv_prog_cc_c89" != xno; then : 17294 17295fi 17296 17297ac_ext=c 17298ac_cpp='$CPP $CPPFLAGS' 17299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17301ac_compiler_gnu=$ac_cv_c_compiler_gnu 17302 17303ac_ext=c 17304ac_cpp='$CPP $CPPFLAGS' 17305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17307ac_compiler_gnu=$ac_cv_c_compiler_gnu 17308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 17309$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 17310if ${am_cv_prog_cc_c_o+:} false; then : 17311 $as_echo_n "(cached) " >&6 17312else 17313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17314/* end confdefs.h. */ 17315 17316int 17317main () 17318{ 17319 17320 ; 17321 return 0; 17322} 17323_ACEOF 17324 # Make sure it works both with $CC and with simple cc. 17325 # Following AC_PROG_CC_C_O, we do the test twice because some 17326 # compilers refuse to overwrite an existing .o file with -o, 17327 # though they will create one. 17328 am_cv_prog_cc_c_o=yes 17329 for am_i in 1 2; do 17330 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 17331 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 17332 ac_status=$? 17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17334 (exit $ac_status); } \ 17335 && test -f conftest2.$ac_objext; then 17336 : OK 17337 else 17338 am_cv_prog_cc_c_o=no 17339 break 17340 fi 17341 done 17342 rm -f core conftest* 17343 unset am_i 17344fi 17345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 17346$as_echo "$am_cv_prog_cc_c_o" >&6; } 17347if test "$am_cv_prog_cc_c_o" != yes; then 17348 # Losing compiler, so override with the script. 17349 # FIXME: It is wrong to rewrite CC. 17350 # But if we don't then we get into trouble of one sort or another. 17351 # A longer-term fix would be to have automake use am__CC in this case, 17352 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 17353 CC="$am_aux_dir/compile $CC" 17354fi 17355ac_ext=c 17356ac_cpp='$CPP $CPPFLAGS' 17357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17359ac_compiler_gnu=$ac_cv_c_compiler_gnu 17360 17361 17362depcc="$CC" am_compiler_list= 17363 17364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 17365$as_echo_n "checking dependency style of $depcc... " >&6; } 17366if ${am_cv_CC_dependencies_compiler_type+:} false; then : 17367 $as_echo_n "(cached) " >&6 17368else 17369 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 17370 # We make a subdir and do the tests there. Otherwise we can end up 17371 # making bogus files that we don't know about and never remove. For 17372 # instance it was reported that on HP-UX the gcc test will end up 17373 # making a dummy file named 'D' -- because '-MD' means "put the output 17374 # in D". 17375 rm -rf conftest.dir 17376 mkdir conftest.dir 17377 # Copy depcomp to subdir because otherwise we won't find it if we're 17378 # using a relative directory. 17379 cp "$am_depcomp" conftest.dir 17380 cd conftest.dir 17381 # We will build objects and dependencies in a subdirectory because 17382 # it helps to detect inapplicable dependency modes. For instance 17383 # both Tru64's cc and ICC support -MD to output dependencies as a 17384 # side effect of compilation, but ICC will put the dependencies in 17385 # the current directory while Tru64 will put them in the object 17386 # directory. 17387 mkdir sub 17388 17389 am_cv_CC_dependencies_compiler_type=none 17390 if test "$am_compiler_list" = ""; then 17391 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 17392 fi 17393 am__universal=false 17394 case " $depcc " in #( 17395 *\ -arch\ *\ -arch\ *) am__universal=true ;; 17396 esac 17397 17398 for depmode in $am_compiler_list; do 17399 # Setup a source with many dependencies, because some compilers 17400 # like to wrap large dependency lists on column 80 (with \), and 17401 # we should not choose a depcomp mode which is confused by this. 17402 # 17403 # We need to recreate these files for each test, as the compiler may 17404 # overwrite some of them when testing with obscure command lines. 17405 # This happens at least with the AIX C compiler. 17406 : > sub/conftest.c 17407 for i in 1 2 3 4 5 6; do 17408 echo '#include "conftst'$i'.h"' >> sub/conftest.c 17409 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 17410 # Solaris 10 /bin/sh. 17411 echo '/* dummy */' > sub/conftst$i.h 17412 done 17413 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 17414 17415 # We check with '-c' and '-o' for the sake of the "dashmstdout" 17416 # mode. It turns out that the SunPro C++ compiler does not properly 17417 # handle '-M -o', and we need to detect this. Also, some Intel 17418 # versions had trouble with output in subdirs. 17419 am__obj=sub/conftest.${OBJEXT-o} 17420 am__minus_obj="-o $am__obj" 17421 case $depmode in 17422 gcc) 17423 # This depmode causes a compiler race in universal mode. 17424 test "$am__universal" = false || continue 17425 ;; 17426 nosideeffect) 17427 # After this tag, mechanisms are not by side-effect, so they'll 17428 # only be used when explicitly requested. 17429 if test "x$enable_dependency_tracking" = xyes; then 17430 continue 17431 else 17432 break 17433 fi 17434 ;; 17435 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 17436 # This compiler won't grok '-c -o', but also, the minuso test has 17437 # not run yet. These depmodes are late enough in the game, and 17438 # so weak that their functioning should not be impacted. 17439 am__obj=conftest.${OBJEXT-o} 17440 am__minus_obj= 17441 ;; 17442 none) break ;; 17443 esac 17444 if depmode=$depmode \ 17445 source=sub/conftest.c object=$am__obj \ 17446 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 17447 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 17448 >/dev/null 2>conftest.err && 17449 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 17450 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 17451 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 17452 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 17453 # icc doesn't choke on unknown options, it will just issue warnings 17454 # or remarks (even with -Werror). So we grep stderr for any message 17455 # that says an option was ignored or not supported. 17456 # When given -MP, icc 7.0 and 7.1 complain thusly: 17457 # icc: Command line warning: ignoring option '-M'; no argument required 17458 # The diagnosis changed in icc 8.0: 17459 # icc: Command line remark: option '-MP' not supported 17460 if (grep 'ignoring option' conftest.err || 17461 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 17462 am_cv_CC_dependencies_compiler_type=$depmode 17463 break 17464 fi 17465 fi 17466 done 17467 17468 cd .. 17469 rm -rf conftest.dir 17470else 17471 am_cv_CC_dependencies_compiler_type=none 17472fi 17473 17474fi 17475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 17476$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 17477CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 17478 17479 if 17480 test "x$enable_dependency_tracking" != xno \ 17481 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 17482 am__fastdepCC_TRUE= 17483 am__fastdepCC_FALSE='#' 17484else 17485 am__fastdepCC_TRUE='#' 17486 am__fastdepCC_FALSE= 17487fi 17488 17489 17490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 17491$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 17492set x ${MAKE-make} 17493ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 17494if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 17495 $as_echo_n "(cached) " >&6 17496else 17497 cat >conftest.make <<\_ACEOF 17498SHELL = /bin/sh 17499all: 17500 @echo '@@@%%%=$(MAKE)=@@@%%%' 17501_ACEOF 17502# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 17503case `${MAKE-make} -f conftest.make 2>/dev/null` in 17504 *@@@%%%=?*=@@@%%%*) 17505 eval ac_cv_prog_make_${ac_make}_set=yes;; 17506 *) 17507 eval ac_cv_prog_make_${ac_make}_set=no;; 17508esac 17509rm -f conftest.make 17510fi 17511if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17513$as_echo "yes" >&6; } 17514 SET_MAKE= 17515else 17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17517$as_echo "no" >&6; } 17518 SET_MAKE="MAKE=${MAKE-make}" 17519fi 17520 17521ac_ext=c 17522ac_cpp='$CPP $CPPFLAGS' 17523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17525ac_compiler_gnu=$ac_cv_c_compiler_gnu 17526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 17527$as_echo_n "checking how to run the C preprocessor... " >&6; } 17528# On Suns, sometimes $CPP names a directory. 17529if test -n "$CPP" && test -d "$CPP"; then 17530 CPP= 17531fi 17532if test -z "$CPP"; then 17533 if ${ac_cv_prog_CPP+:} false; then : 17534 $as_echo_n "(cached) " >&6 17535else 17536 # Double quotes because CPP needs to be expanded 17537 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 17538 do 17539 ac_preproc_ok=false 17540for ac_c_preproc_warn_flag in '' yes 17541do 17542 # Use a header file that comes with gcc, so configuring glibc 17543 # with a fresh cross-compiler works. 17544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17545 # <limits.h> exists even on freestanding compilers. 17546 # On the NeXT, cc -E runs the code through the compiler's parser, 17547 # not just through cpp. "Syntax error" is here to catch this case. 17548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17549/* end confdefs.h. */ 17550#ifdef __STDC__ 17551# include <limits.h> 17552#else 17553# include <assert.h> 17554#endif 17555 Syntax error 17556_ACEOF 17557if ac_fn_c_try_cpp "$LINENO"; then : 17558 17559else 17560 # Broken: fails on valid input. 17561continue 17562fi 17563rm -f conftest.err conftest.i conftest.$ac_ext 17564 17565 # OK, works on sane cases. Now check whether nonexistent headers 17566 # can be detected and how. 17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17568/* end confdefs.h. */ 17569#include <ac_nonexistent.h> 17570_ACEOF 17571if ac_fn_c_try_cpp "$LINENO"; then : 17572 # Broken: success on invalid input. 17573continue 17574else 17575 # Passes both tests. 17576ac_preproc_ok=: 17577break 17578fi 17579rm -f conftest.err conftest.i conftest.$ac_ext 17580 17581done 17582# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17583rm -f conftest.i conftest.err conftest.$ac_ext 17584if $ac_preproc_ok; then : 17585 break 17586fi 17587 17588 done 17589 ac_cv_prog_CPP=$CPP 17590 17591fi 17592 CPP=$ac_cv_prog_CPP 17593else 17594 ac_cv_prog_CPP=$CPP 17595fi 17596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 17597$as_echo "$CPP" >&6; } 17598ac_preproc_ok=false 17599for ac_c_preproc_warn_flag in '' yes 17600do 17601 # Use a header file that comes with gcc, so configuring glibc 17602 # with a fresh cross-compiler works. 17603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17604 # <limits.h> exists even on freestanding compilers. 17605 # On the NeXT, cc -E runs the code through the compiler's parser, 17606 # not just through cpp. "Syntax error" is here to catch this case. 17607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17608/* end confdefs.h. */ 17609#ifdef __STDC__ 17610# include <limits.h> 17611#else 17612# include <assert.h> 17613#endif 17614 Syntax error 17615_ACEOF 17616if ac_fn_c_try_cpp "$LINENO"; then : 17617 17618else 17619 # Broken: fails on valid input. 17620continue 17621fi 17622rm -f conftest.err conftest.i conftest.$ac_ext 17623 17624 # OK, works on sane cases. Now check whether nonexistent headers 17625 # can be detected and how. 17626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17627/* end confdefs.h. */ 17628#include <ac_nonexistent.h> 17629_ACEOF 17630if ac_fn_c_try_cpp "$LINENO"; then : 17631 # Broken: success on invalid input. 17632continue 17633else 17634 # Passes both tests. 17635ac_preproc_ok=: 17636break 17637fi 17638rm -f conftest.err conftest.i conftest.$ac_ext 17639 17640done 17641# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17642rm -f conftest.i conftest.err conftest.$ac_ext 17643if $ac_preproc_ok; then : 17644 17645else 17646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17648as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 17649See \`config.log' for more details" "$LINENO" 5; } 17650fi 17651 17652ac_ext=c 17653ac_cpp='$CPP $CPPFLAGS' 17654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17656ac_compiler_gnu=$ac_cv_c_compiler_gnu 17657 17658 17659# By default we simply use the C compiler to build assembly code. 17660 17661test "${CCAS+set}" = set || CCAS=$CC 17662test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 17663 17664 17665 17666depcc="$CCAS" am_compiler_list= 17667 17668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 17669$as_echo_n "checking dependency style of $depcc... " >&6; } 17670if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 17671 $as_echo_n "(cached) " >&6 17672else 17673 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 17674 # We make a subdir and do the tests there. Otherwise we can end up 17675 # making bogus files that we don't know about and never remove. For 17676 # instance it was reported that on HP-UX the gcc test will end up 17677 # making a dummy file named 'D' -- because '-MD' means "put the output 17678 # in D". 17679 rm -rf conftest.dir 17680 mkdir conftest.dir 17681 # Copy depcomp to subdir because otherwise we won't find it if we're 17682 # using a relative directory. 17683 cp "$am_depcomp" conftest.dir 17684 cd conftest.dir 17685 # We will build objects and dependencies in a subdirectory because 17686 # it helps to detect inapplicable dependency modes. For instance 17687 # both Tru64's cc and ICC support -MD to output dependencies as a 17688 # side effect of compilation, but ICC will put the dependencies in 17689 # the current directory while Tru64 will put them in the object 17690 # directory. 17691 mkdir sub 17692 17693 am_cv_CCAS_dependencies_compiler_type=none 17694 if test "$am_compiler_list" = ""; then 17695 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 17696 fi 17697 am__universal=false 17698 17699 17700 for depmode in $am_compiler_list; do 17701 # Setup a source with many dependencies, because some compilers 17702 # like to wrap large dependency lists on column 80 (with \), and 17703 # we should not choose a depcomp mode which is confused by this. 17704 # 17705 # We need to recreate these files for each test, as the compiler may 17706 # overwrite some of them when testing with obscure command lines. 17707 # This happens at least with the AIX C compiler. 17708 : > sub/conftest.c 17709 for i in 1 2 3 4 5 6; do 17710 echo '#include "conftst'$i'.h"' >> sub/conftest.c 17711 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 17712 # Solaris 10 /bin/sh. 17713 echo '/* dummy */' > sub/conftst$i.h 17714 done 17715 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 17716 17717 # We check with '-c' and '-o' for the sake of the "dashmstdout" 17718 # mode. It turns out that the SunPro C++ compiler does not properly 17719 # handle '-M -o', and we need to detect this. Also, some Intel 17720 # versions had trouble with output in subdirs. 17721 am__obj=sub/conftest.${OBJEXT-o} 17722 am__minus_obj="-o $am__obj" 17723 case $depmode in 17724 gcc) 17725 # This depmode causes a compiler race in universal mode. 17726 test "$am__universal" = false || continue 17727 ;; 17728 nosideeffect) 17729 # After this tag, mechanisms are not by side-effect, so they'll 17730 # only be used when explicitly requested. 17731 if test "x$enable_dependency_tracking" = xyes; then 17732 continue 17733 else 17734 break 17735 fi 17736 ;; 17737 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 17738 # This compiler won't grok '-c -o', but also, the minuso test has 17739 # not run yet. These depmodes are late enough in the game, and 17740 # so weak that their functioning should not be impacted. 17741 am__obj=conftest.${OBJEXT-o} 17742 am__minus_obj= 17743 ;; 17744 none) break ;; 17745 esac 17746 if depmode=$depmode \ 17747 source=sub/conftest.c object=$am__obj \ 17748 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 17749 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 17750 >/dev/null 2>conftest.err && 17751 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 17752 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 17753 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 17754 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 17755 # icc doesn't choke on unknown options, it will just issue warnings 17756 # or remarks (even with -Werror). So we grep stderr for any message 17757 # that says an option was ignored or not supported. 17758 # When given -MP, icc 7.0 and 7.1 complain thusly: 17759 # icc: Command line warning: ignoring option '-M'; no argument required 17760 # The diagnosis changed in icc 8.0: 17761 # icc: Command line remark: option '-MP' not supported 17762 if (grep 'ignoring option' conftest.err || 17763 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 17764 am_cv_CCAS_dependencies_compiler_type=$depmode 17765 break 17766 fi 17767 fi 17768 done 17769 17770 cd .. 17771 rm -rf conftest.dir 17772else 17773 am_cv_CCAS_dependencies_compiler_type=none 17774fi 17775 17776fi 17777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 17778$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 17779CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 17780 17781 if 17782 test "x$enable_dependency_tracking" != xno \ 17783 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 17784 am__fastdepCCAS_TRUE= 17785 am__fastdepCCAS_FALSE='#' 17786else 17787 am__fastdepCCAS_TRUE='#' 17788 am__fastdepCCAS_FALSE= 17789fi 17790 17791 17792 17793# Activate large file mode if needed 17794# Check whether --enable-largefile was given. 17795if test "${enable_largefile+set}" = set; then : 17796 enableval=$enable_largefile; 17797fi 17798 17799if test "$enable_largefile" != no; then 17800 17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 17802$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 17803if ${ac_cv_sys_largefile_CC+:} false; then : 17804 $as_echo_n "(cached) " >&6 17805else 17806 ac_cv_sys_largefile_CC=no 17807 if test "$GCC" != yes; then 17808 ac_save_CC=$CC 17809 while :; do 17810 # IRIX 6.2 and later do not support large files by default, 17811 # so use the C compiler's -n32 option if that helps. 17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17813/* end confdefs.h. */ 17814#include <sys/types.h> 17815 /* Check that off_t can represent 2**63 - 1 correctly. 17816 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17817 since some C++ compilers masquerading as C compilers 17818 incorrectly reject 9223372036854775807. */ 17819#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 17820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17821 && LARGE_OFF_T % 2147483647 == 1) 17822 ? 1 : -1]; 17823int 17824main () 17825{ 17826 17827 ; 17828 return 0; 17829} 17830_ACEOF 17831 if ac_fn_c_try_compile "$LINENO"; then : 17832 break 17833fi 17834rm -f core conftest.err conftest.$ac_objext 17835 CC="$CC -n32" 17836 if ac_fn_c_try_compile "$LINENO"; then : 17837 ac_cv_sys_largefile_CC=' -n32'; break 17838fi 17839rm -f core conftest.err conftest.$ac_objext 17840 break 17841 done 17842 CC=$ac_save_CC 17843 rm -f conftest.$ac_ext 17844 fi 17845fi 17846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 17847$as_echo "$ac_cv_sys_largefile_CC" >&6; } 17848 if test "$ac_cv_sys_largefile_CC" != no; then 17849 CC=$CC$ac_cv_sys_largefile_CC 17850 fi 17851 17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 17853$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 17854if ${ac_cv_sys_file_offset_bits+:} false; then : 17855 $as_echo_n "(cached) " >&6 17856else 17857 while :; do 17858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17859/* end confdefs.h. */ 17860#include <sys/types.h> 17861 /* Check that off_t can represent 2**63 - 1 correctly. 17862 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17863 since some C++ compilers masquerading as C compilers 17864 incorrectly reject 9223372036854775807. */ 17865#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 17866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17867 && LARGE_OFF_T % 2147483647 == 1) 17868 ? 1 : -1]; 17869int 17870main () 17871{ 17872 17873 ; 17874 return 0; 17875} 17876_ACEOF 17877if ac_fn_c_try_compile "$LINENO"; then : 17878 ac_cv_sys_file_offset_bits=no; break 17879fi 17880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17882/* end confdefs.h. */ 17883#define _FILE_OFFSET_BITS 64 17884#include <sys/types.h> 17885 /* Check that off_t can represent 2**63 - 1 correctly. 17886 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17887 since some C++ compilers masquerading as C compilers 17888 incorrectly reject 9223372036854775807. */ 17889#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 17890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17891 && LARGE_OFF_T % 2147483647 == 1) 17892 ? 1 : -1]; 17893int 17894main () 17895{ 17896 17897 ; 17898 return 0; 17899} 17900_ACEOF 17901if ac_fn_c_try_compile "$LINENO"; then : 17902 ac_cv_sys_file_offset_bits=64; break 17903fi 17904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17905 ac_cv_sys_file_offset_bits=unknown 17906 break 17907done 17908fi 17909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 17910$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 17911case $ac_cv_sys_file_offset_bits in #( 17912 no | unknown) ;; 17913 *) 17914cat >>confdefs.h <<_ACEOF 17915#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 17916_ACEOF 17917;; 17918esac 17919rm -rf conftest* 17920 if test $ac_cv_sys_file_offset_bits = unknown; then 17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 17922$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 17923if ${ac_cv_sys_large_files+:} false; then : 17924 $as_echo_n "(cached) " >&6 17925else 17926 while :; do 17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17928/* end confdefs.h. */ 17929#include <sys/types.h> 17930 /* Check that off_t can represent 2**63 - 1 correctly. 17931 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17932 since some C++ compilers masquerading as C compilers 17933 incorrectly reject 9223372036854775807. */ 17934#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 17935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17936 && LARGE_OFF_T % 2147483647 == 1) 17937 ? 1 : -1]; 17938int 17939main () 17940{ 17941 17942 ; 17943 return 0; 17944} 17945_ACEOF 17946if ac_fn_c_try_compile "$LINENO"; then : 17947 ac_cv_sys_large_files=no; break 17948fi 17949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17951/* end confdefs.h. */ 17952#define _LARGE_FILES 1 17953#include <sys/types.h> 17954 /* Check that off_t can represent 2**63 - 1 correctly. 17955 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17956 since some C++ compilers masquerading as C compilers 17957 incorrectly reject 9223372036854775807. */ 17958#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 17959 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17960 && LARGE_OFF_T % 2147483647 == 1) 17961 ? 1 : -1]; 17962int 17963main () 17964{ 17965 17966 ; 17967 return 0; 17968} 17969_ACEOF 17970if ac_fn_c_try_compile "$LINENO"; then : 17971 ac_cv_sys_large_files=1; break 17972fi 17973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17974 ac_cv_sys_large_files=unknown 17975 break 17976done 17977fi 17978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 17979$as_echo "$ac_cv_sys_large_files" >&6; } 17980case $ac_cv_sys_large_files in #( 17981 no | unknown) ;; 17982 *) 17983cat >>confdefs.h <<_ACEOF 17984#define _LARGE_FILES $ac_cv_sys_large_files 17985_ACEOF 17986;; 17987esac 17988rm -rf conftest* 17989 fi 17990 17991 17992fi 17993 17994 17995# Checks for libraries. 17996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgcc" >&5 17997$as_echo_n "checking for main in -lgcc... " >&6; } 17998if ${ac_cv_lib_gcc_main+:} false; then : 17999 $as_echo_n "(cached) " >&6 18000else 18001 ac_check_lib_save_LIBS=$LIBS 18002LIBS="-lgcc $LIBS" 18003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18004/* end confdefs.h. */ 18005 18006 18007int 18008main () 18009{ 18010return main (); 18011 ; 18012 return 0; 18013} 18014_ACEOF 18015if ac_fn_c_try_link "$LINENO"; then : 18016 ac_cv_lib_gcc_main=yes 18017else 18018 ac_cv_lib_gcc_main=no 18019fi 18020rm -f core conftest.err conftest.$ac_objext \ 18021 conftest$ac_exeext conftest.$ac_ext 18022LIBS=$ac_check_lib_save_LIBS 18023fi 18024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_main" >&5 18025$as_echo "$ac_cv_lib_gcc_main" >&6; } 18026if test "x$ac_cv_lib_gcc_main" = xyes; then : 18027 cat >>confdefs.h <<_ACEOF 18028#define HAVE_LIBGCC 1 18029_ACEOF 18030 18031 LIBS="-lgcc $LIBS" 18032 18033fi 18034 18035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgcc_s" >&5 18036$as_echo_n "checking for main in -lgcc_s... " >&6; } 18037if ${ac_cv_lib_gcc_s_main+:} false; then : 18038 $as_echo_n "(cached) " >&6 18039else 18040 ac_check_lib_save_LIBS=$LIBS 18041LIBS="-lgcc_s $LIBS" 18042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18043/* end confdefs.h. */ 18044 18045 18046int 18047main () 18048{ 18049return main (); 18050 ; 18051 return 0; 18052} 18053_ACEOF 18054if ac_fn_c_try_link "$LINENO"; then : 18055 ac_cv_lib_gcc_s_main=yes 18056else 18057 ac_cv_lib_gcc_s_main=no 18058fi 18059rm -f core conftest.err conftest.$ac_objext \ 18060 conftest$ac_exeext conftest.$ac_ext 18061LIBS=$ac_check_lib_save_LIBS 18062fi 18063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_main" >&5 18064$as_echo "$ac_cv_lib_gcc_s_main" >&6; } 18065if test "x$ac_cv_lib_gcc_s_main" = xyes; then : 18066 cat >>confdefs.h <<_ACEOF 18067#define HAVE_LIBGCC_S 1 18068_ACEOF 18069 18070 LIBS="-lgcc_s $LIBS" 18071 18072fi 18073 18074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 18075$as_echo_n "checking for main in -lstdc++... " >&6; } 18076if ${ac_cv_lib_stdcpp_main+:} false; then : 18077 $as_echo_n "(cached) " >&6 18078else 18079 ac_check_lib_save_LIBS=$LIBS 18080LIBS=" $LIBS" 18081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18082/* end confdefs.h. */ 18083 18084 18085int 18086main () 18087{ 18088return main (); 18089 ; 18090 return 0; 18091} 18092_ACEOF 18093if ac_fn_c_try_link "$LINENO"; then : 18094 ac_cv_lib_stdcpp_main=yes 18095else 18096 ac_cv_lib_stdcpp_main=no 18097fi 18098rm -f core conftest.err conftest.$ac_objext \ 18099 conftest$ac_exeext conftest.$ac_ext 18100LIBS=$ac_check_lib_save_LIBS 18101fi 18102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 18103$as_echo "$ac_cv_lib_stdcpp_main" >&6; } 18104if test "x$ac_cv_lib_stdcpp_main" = xyes; then : 18105 cat >>confdefs.h <<_ACEOF 18106#define HAVE_LIBSTDC__ 1 18107_ACEOF 18108 18109 LIBS="$LIBS" 18110 18111fi 18112 18113 18114# These can sometimes be in the standard libraries 18115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 18116$as_echo_n "checking for library containing dlopen... " >&6; } 18117if ${ac_cv_search_dlopen+:} false; then : 18118 $as_echo_n "(cached) " >&6 18119else 18120 ac_func_search_save_LIBS=$LIBS 18121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18122/* end confdefs.h. */ 18123 18124/* Override any GCC internal prototype to avoid an error. 18125 Use char because int might match the return type of a GCC 18126 builtin and then its argument prototype would still apply. */ 18127#ifdef __cplusplus 18128extern "C" 18129#endif 18130char dlopen (); 18131int 18132main () 18133{ 18134return dlopen (); 18135 ; 18136 return 0; 18137} 18138_ACEOF 18139for ac_lib in '' dl dld; do 18140 if test -z "$ac_lib"; then 18141 ac_res="none required" 18142 else 18143 ac_res=-l$ac_lib 18144 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18145 fi 18146 if ac_fn_c_try_link "$LINENO"; then : 18147 ac_cv_search_dlopen=$ac_res 18148fi 18149rm -f core conftest.err conftest.$ac_objext \ 18150 conftest$ac_exeext 18151 if ${ac_cv_search_dlopen+:} false; then : 18152 break 18153fi 18154done 18155if ${ac_cv_search_dlopen+:} false; then : 18156 18157else 18158 ac_cv_search_dlopen=no 18159fi 18160rm conftest.$ac_ext 18161LIBS=$ac_func_search_save_LIBS 18162fi 18163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 18164$as_echo "$ac_cv_search_dlopen" >&6; } 18165ac_res=$ac_cv_search_dlopen 18166if test "$ac_res" != no; then : 18167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18168 18169fi 18170 18171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 18172$as_echo_n "checking for library containing floor... " >&6; } 18173if ${ac_cv_search_floor+:} false; then : 18174 $as_echo_n "(cached) " >&6 18175else 18176 ac_func_search_save_LIBS=$LIBS 18177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18178/* end confdefs.h. */ 18179 18180/* Override any GCC internal prototype to avoid an error. 18181 Use char because int might match the return type of a GCC 18182 builtin and then its argument prototype would still apply. */ 18183#ifdef __cplusplus 18184extern "C" 18185#endif 18186char floor (); 18187int 18188main () 18189{ 18190return floor (); 18191 ; 18192 return 0; 18193} 18194_ACEOF 18195for ac_lib in '' m; do 18196 if test -z "$ac_lib"; then 18197 ac_res="none required" 18198 else 18199 ac_res=-l$ac_lib 18200 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18201 fi 18202 if ac_fn_c_try_link "$LINENO"; then : 18203 ac_cv_search_floor=$ac_res 18204fi 18205rm -f core conftest.err conftest.$ac_objext \ 18206 conftest$ac_exeext 18207 if ${ac_cv_search_floor+:} false; then : 18208 break 18209fi 18210done 18211if ${ac_cv_search_floor+:} false; then : 18212 18213else 18214 ac_cv_search_floor=no 18215fi 18216rm conftest.$ac_ext 18217LIBS=$ac_func_search_save_LIBS 18218fi 18219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 18220$as_echo "$ac_cv_search_floor" >&6; } 18221ac_res=$ac_cv_search_floor 18222if test "$ac_res" != no; then : 18223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18224 18225fi 18226 18227 18228## External names on Win64. They have no leading underscores as per 18229## the X64 ABI published by MS. Earlier versions of GCC (anything 18230## prior to 4.5.0) were faulty. 18231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 18232$as_echo_n "checking for _ prefix in compiled symbols... " >&6; } 18233if ${lt_cv_sys_symbol_underscore+:} false; then : 18234 $as_echo_n "(cached) " >&6 18235else 18236 lt_cv_sys_symbol_underscore=no 18237 cat > conftest.$ac_ext <<_LT_EOF 18238void nm_test_func(){} 18239int main(){nm_test_func;return 0;} 18240_LT_EOF 18241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18242 (eval $ac_compile) 2>&5 18243 ac_status=$? 18244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18245 test $ac_status = 0; }; then 18246 # Now try to grab the symbols. 18247 ac_nlist=conftest.nm 18248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 18249 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 18250 ac_status=$? 18251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18252 test $ac_status = 0; } && test -s "$ac_nlist"; then 18253 # See whether the symbols have a leading underscore. 18254 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 18255 lt_cv_sys_symbol_underscore=yes 18256 else 18257 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 18258 : 18259 else 18260 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 18261 fi 18262 fi 18263 else 18264 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 18265 fi 18266 else 18267 echo "configure: failed program was:" >&5 18268 cat conftest.c >&5 18269 fi 18270 rm -rf conftest* 18271 18272fi 18273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 18274$as_echo "$lt_cv_sys_symbol_underscore" >&6; } 18275 sys_symbol_underscore=$lt_cv_sys_symbol_underscore 18276 18277 18278if test x$sys_symbol_underscore = xyes; then 18279 18280$as_echo "#define SYMBOLS_REQUIRE_UNDERSCORE 1" >>confdefs.h 18281 18282fi 18283 18284# Check for headers 18285 18286ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18287if test "x$ac_cv_type_size_t" = xyes; then : 18288 18289else 18290 18291cat >>confdefs.h <<_ACEOF 18292#define size_t unsigned int 18293_ACEOF 18294 18295fi 18296 18297# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 18298# for constant arguments. Useless! 18299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 18300$as_echo_n "checking for working alloca.h... " >&6; } 18301if ${ac_cv_working_alloca_h+:} false; then : 18302 $as_echo_n "(cached) " >&6 18303else 18304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18305/* end confdefs.h. */ 18306#include <alloca.h> 18307int 18308main () 18309{ 18310char *p = (char *) alloca (2 * sizeof (int)); 18311 if (p) return 0; 18312 ; 18313 return 0; 18314} 18315_ACEOF 18316if ac_fn_c_try_link "$LINENO"; then : 18317 ac_cv_working_alloca_h=yes 18318else 18319 ac_cv_working_alloca_h=no 18320fi 18321rm -f core conftest.err conftest.$ac_objext \ 18322 conftest$ac_exeext conftest.$ac_ext 18323fi 18324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 18325$as_echo "$ac_cv_working_alloca_h" >&6; } 18326if test $ac_cv_working_alloca_h = yes; then 18327 18328$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 18329 18330fi 18331 18332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 18333$as_echo_n "checking for alloca... " >&6; } 18334if ${ac_cv_func_alloca_works+:} false; then : 18335 $as_echo_n "(cached) " >&6 18336else 18337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18338/* end confdefs.h. */ 18339#ifdef __GNUC__ 18340# define alloca __builtin_alloca 18341#else 18342# ifdef _MSC_VER 18343# include <malloc.h> 18344# define alloca _alloca 18345# else 18346# ifdef HAVE_ALLOCA_H 18347# include <alloca.h> 18348# else 18349# ifdef _AIX 18350 #pragma alloca 18351# else 18352# ifndef alloca /* predefined by HP cc +Olibcalls */ 18353void *alloca (size_t); 18354# endif 18355# endif 18356# endif 18357# endif 18358#endif 18359 18360int 18361main () 18362{ 18363char *p = (char *) alloca (1); 18364 if (p) return 0; 18365 ; 18366 return 0; 18367} 18368_ACEOF 18369if ac_fn_c_try_link "$LINENO"; then : 18370 ac_cv_func_alloca_works=yes 18371else 18372 ac_cv_func_alloca_works=no 18373fi 18374rm -f core conftest.err conftest.$ac_objext \ 18375 conftest$ac_exeext conftest.$ac_ext 18376fi 18377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 18378$as_echo "$ac_cv_func_alloca_works" >&6; } 18379 18380if test $ac_cv_func_alloca_works = yes; then 18381 18382$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 18383 18384else 18385 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 18386# that cause trouble. Some versions do not even contain alloca or 18387# contain a buggy version. If you still want to use their alloca, 18388# use ar to extract alloca.o from them instead of compiling alloca.c. 18389 18390ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 18391 18392$as_echo "#define C_ALLOCA 1" >>confdefs.h 18393 18394 18395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 18396$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 18397if ${ac_cv_os_cray+:} false; then : 18398 $as_echo_n "(cached) " >&6 18399else 18400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18401/* end confdefs.h. */ 18402#if defined CRAY && ! defined CRAY2 18403webecray 18404#else 18405wenotbecray 18406#endif 18407 18408_ACEOF 18409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18410 $EGREP "webecray" >/dev/null 2>&1; then : 18411 ac_cv_os_cray=yes 18412else 18413 ac_cv_os_cray=no 18414fi 18415rm -f conftest* 18416 18417fi 18418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 18419$as_echo "$ac_cv_os_cray" >&6; } 18420if test $ac_cv_os_cray = yes; then 18421 for ac_func in _getb67 GETB67 getb67; do 18422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18423ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18424if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18425 18426cat >>confdefs.h <<_ACEOF 18427#define CRAY_STACKSEG_END $ac_func 18428_ACEOF 18429 18430 break 18431fi 18432 18433 done 18434fi 18435 18436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 18437$as_echo_n "checking stack direction for C alloca... " >&6; } 18438if ${ac_cv_c_stack_direction+:} false; then : 18439 $as_echo_n "(cached) " >&6 18440else 18441 if test "$cross_compiling" = yes; then : 18442 ac_cv_c_stack_direction=0 18443else 18444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18445/* end confdefs.h. */ 18446$ac_includes_default 18447int 18448find_stack_direction (int *addr, int depth) 18449{ 18450 int dir, dummy = 0; 18451 if (! addr) 18452 addr = &dummy; 18453 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 18454 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 18455 return dir + dummy; 18456} 18457 18458int 18459main (int argc, char **argv) 18460{ 18461 return find_stack_direction (0, argc + !argv + 20) < 0; 18462} 18463_ACEOF 18464if ac_fn_c_try_run "$LINENO"; then : 18465 ac_cv_c_stack_direction=1 18466else 18467 ac_cv_c_stack_direction=-1 18468fi 18469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18470 conftest.$ac_objext conftest.beam conftest.$ac_ext 18471fi 18472 18473fi 18474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 18475$as_echo "$ac_cv_c_stack_direction" >&6; } 18476cat >>confdefs.h <<_ACEOF 18477#define STACK_DIRECTION $ac_cv_c_stack_direction 18478_ACEOF 18479 18480 18481fi 18482 18483ac_header_dirent=no 18484for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 18485 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 18486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 18487$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 18488if eval \${$as_ac_Header+:} false; then : 18489 $as_echo_n "(cached) " >&6 18490else 18491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18492/* end confdefs.h. */ 18493#include <sys/types.h> 18494#include <$ac_hdr> 18495 18496int 18497main () 18498{ 18499if ((DIR *) 0) 18500return 0; 18501 ; 18502 return 0; 18503} 18504_ACEOF 18505if ac_fn_c_try_compile "$LINENO"; then : 18506 eval "$as_ac_Header=yes" 18507else 18508 eval "$as_ac_Header=no" 18509fi 18510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18511fi 18512eval ac_res=\$$as_ac_Header 18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18514$as_echo "$ac_res" >&6; } 18515if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18516 cat >>confdefs.h <<_ACEOF 18517#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 18518_ACEOF 18519 18520ac_header_dirent=$ac_hdr; break 18521fi 18522 18523done 18524# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 18525if test $ac_header_dirent = dirent.h; then 18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18527$as_echo_n "checking for library containing opendir... " >&6; } 18528if ${ac_cv_search_opendir+:} false; then : 18529 $as_echo_n "(cached) " >&6 18530else 18531 ac_func_search_save_LIBS=$LIBS 18532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18533/* end confdefs.h. */ 18534 18535/* Override any GCC internal prototype to avoid an error. 18536 Use char because int might match the return type of a GCC 18537 builtin and then its argument prototype would still apply. */ 18538#ifdef __cplusplus 18539extern "C" 18540#endif 18541char opendir (); 18542int 18543main () 18544{ 18545return opendir (); 18546 ; 18547 return 0; 18548} 18549_ACEOF 18550for ac_lib in '' dir; do 18551 if test -z "$ac_lib"; then 18552 ac_res="none required" 18553 else 18554 ac_res=-l$ac_lib 18555 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18556 fi 18557 if ac_fn_c_try_link "$LINENO"; then : 18558 ac_cv_search_opendir=$ac_res 18559fi 18560rm -f core conftest.err conftest.$ac_objext \ 18561 conftest$ac_exeext 18562 if ${ac_cv_search_opendir+:} false; then : 18563 break 18564fi 18565done 18566if ${ac_cv_search_opendir+:} false; then : 18567 18568else 18569 ac_cv_search_opendir=no 18570fi 18571rm conftest.$ac_ext 18572LIBS=$ac_func_search_save_LIBS 18573fi 18574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18575$as_echo "$ac_cv_search_opendir" >&6; } 18576ac_res=$ac_cv_search_opendir 18577if test "$ac_res" != no; then : 18578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18579 18580fi 18581 18582else 18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18584$as_echo_n "checking for library containing opendir... " >&6; } 18585if ${ac_cv_search_opendir+:} false; then : 18586 $as_echo_n "(cached) " >&6 18587else 18588 ac_func_search_save_LIBS=$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 opendir (); 18599int 18600main () 18601{ 18602return opendir (); 18603 ; 18604 return 0; 18605} 18606_ACEOF 18607for ac_lib in '' x; do 18608 if test -z "$ac_lib"; then 18609 ac_res="none required" 18610 else 18611 ac_res=-l$ac_lib 18612 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18613 fi 18614 if ac_fn_c_try_link "$LINENO"; then : 18615 ac_cv_search_opendir=$ac_res 18616fi 18617rm -f core conftest.err conftest.$ac_objext \ 18618 conftest$ac_exeext 18619 if ${ac_cv_search_opendir+:} false; then : 18620 break 18621fi 18622done 18623if ${ac_cv_search_opendir+:} false; then : 18624 18625else 18626 ac_cv_search_opendir=no 18627fi 18628rm conftest.$ac_ext 18629LIBS=$ac_func_search_save_LIBS 18630fi 18631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18632$as_echo "$ac_cv_search_opendir" >&6; } 18633ac_res=$ac_cv_search_opendir 18634if test "$ac_res" != no; then : 18635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18636 18637fi 18638 18639fi 18640 18641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 18642$as_echo_n "checking for ANSI C header files... " >&6; } 18643if ${ac_cv_header_stdc+:} false; then : 18644 $as_echo_n "(cached) " >&6 18645else 18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18647/* end confdefs.h. */ 18648#include <stdlib.h> 18649#include <stdarg.h> 18650#include <string.h> 18651#include <float.h> 18652 18653int 18654main () 18655{ 18656 18657 ; 18658 return 0; 18659} 18660_ACEOF 18661if ac_fn_c_try_compile "$LINENO"; then : 18662 ac_cv_header_stdc=yes 18663else 18664 ac_cv_header_stdc=no 18665fi 18666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18667 18668if test $ac_cv_header_stdc = yes; then 18669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18671/* end confdefs.h. */ 18672#include <string.h> 18673 18674_ACEOF 18675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18676 $EGREP "memchr" >/dev/null 2>&1; then : 18677 18678else 18679 ac_cv_header_stdc=no 18680fi 18681rm -f conftest* 18682 18683fi 18684 18685if test $ac_cv_header_stdc = yes; then 18686 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18688/* end confdefs.h. */ 18689#include <stdlib.h> 18690 18691_ACEOF 18692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18693 $EGREP "free" >/dev/null 2>&1; then : 18694 18695else 18696 ac_cv_header_stdc=no 18697fi 18698rm -f conftest* 18699 18700fi 18701 18702if test $ac_cv_header_stdc = yes; then 18703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18704 if test "$cross_compiling" = yes; then : 18705 : 18706else 18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18708/* end confdefs.h. */ 18709#include <ctype.h> 18710#include <stdlib.h> 18711#if ((' ' & 0x0FF) == 0x020) 18712# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18713# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18714#else 18715# define ISLOWER(c) \ 18716 (('a' <= (c) && (c) <= 'i') \ 18717 || ('j' <= (c) && (c) <= 'r') \ 18718 || ('s' <= (c) && (c) <= 'z')) 18719# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18720#endif 18721 18722#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18723int 18724main () 18725{ 18726 int i; 18727 for (i = 0; i < 256; i++) 18728 if (XOR (islower (i), ISLOWER (i)) 18729 || toupper (i) != TOUPPER (i)) 18730 return 2; 18731 return 0; 18732} 18733_ACEOF 18734if ac_fn_c_try_run "$LINENO"; then : 18735 18736else 18737 ac_cv_header_stdc=no 18738fi 18739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18740 conftest.$ac_objext conftest.beam conftest.$ac_ext 18741fi 18742 18743fi 18744fi 18745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 18746$as_echo "$ac_cv_header_stdc" >&6; } 18747if test $ac_cv_header_stdc = yes; then 18748 18749$as_echo "#define STDC_HEADERS 1" >>confdefs.h 18750 18751fi 18752 18753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 18754$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 18755if ${ac_cv_header_sys_wait_h+:} false; then : 18756 $as_echo_n "(cached) " >&6 18757else 18758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18759/* end confdefs.h. */ 18760#include <sys/types.h> 18761#include <sys/wait.h> 18762#ifndef WEXITSTATUS 18763# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 18764#endif 18765#ifndef WIFEXITED 18766# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 18767#endif 18768 18769int 18770main () 18771{ 18772 int s; 18773 wait (&s); 18774 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 18775 ; 18776 return 0; 18777} 18778_ACEOF 18779if ac_fn_c_try_compile "$LINENO"; then : 18780 ac_cv_header_sys_wait_h=yes 18781else 18782 ac_cv_header_sys_wait_h=no 18783fi 18784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18785fi 18786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 18787$as_echo "$ac_cv_header_sys_wait_h" >&6; } 18788if test $ac_cv_header_sys_wait_h = yes; then 18789 18790$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 18791 18792fi 18793 18794for ac_header in stdio.h time.h fcntl.h float.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h 18795do : 18796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18797ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18798if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18799 cat >>confdefs.h <<_ACEOF 18800#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18801_ACEOF 18802 18803fi 18804 18805done 18806 18807for ac_header in stdlib.h string.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/systeminfo.h 18808do : 18809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18810ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18811if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18812 cat >>confdefs.h <<_ACEOF 18813#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18814_ACEOF 18815 18816fi 18817 18818done 18819 18820for ac_header in sys/time.h unistd.h values.h dlfcn.h signal.h ucontext.h 18821do : 18822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18823ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18824if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18825 cat >>confdefs.h <<_ACEOF 18826#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18827_ACEOF 18828 18829fi 18830 18831done 18832 18833for ac_header in assert.h ctype.h direct.h errno.h excpt.h fenv.h fpu_control.h grp.h 18834do : 18835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18836ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18837if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18838 cat >>confdefs.h <<_ACEOF 18839#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18840_ACEOF 18841 18842fi 18843 18844done 18845 18846for ac_header in ieeefp.h io.h math.h memory.h netinet/tcp.h arpa/inet.h poll.h pwd.h siginfo.h 18847do : 18848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18849ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18850if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18851 cat >>confdefs.h <<_ACEOF 18852#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18853_ACEOF 18854 18855fi 18856 18857done 18858 18859for ac_header in stdarg.h sys/errno.h sys/filio.h sys/mman.h sys/resource.h 18860do : 18861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18862ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18863if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18864 cat >>confdefs.h <<_ACEOF 18865#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18866_ACEOF 18867 18868fi 18869 18870done 18871 18872for ac_header in sys/sockio.h sys/stat.h termios.h sys/times.h 18873do : 18874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18875ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18876if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18877 cat >>confdefs.h <<_ACEOF 18878#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18879_ACEOF 18880 18881fi 18882 18883done 18884 18885for ac_header in sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/select.h sys/sysctl.h 18886do : 18887 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18888ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18889if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18890 cat >>confdefs.h <<_ACEOF 18891#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18892_ACEOF 18893 18894fi 18895 18896done 18897 18898for ac_header in sys/elf_SPARC.h sys/elf_386.h sys/elf_amd64.h asm/elf.h machine/reloc.h 18899do : 18900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18901ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18902if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18903 cat >>confdefs.h <<_ACEOF 18904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18905_ACEOF 18906 18907fi 18908 18909done 18910 18911for ac_header in windows.h tchar.h semaphore.h 18912do : 18913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18914ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18915if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18916 cat >>confdefs.h <<_ACEOF 18917#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18918_ACEOF 18919 18920fi 18921 18922done 18923 18924for ac_header in stdint.h inttypes.h 18925do : 18926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18927ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18928if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18929 cat >>confdefs.h <<_ACEOF 18930#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18931_ACEOF 18932 18933fi 18934 18935done 18936 18937 18938# Only check for the X headers if the user said --with-x. 18939if test "${with_x+set}" = set; then 18940 for ac_header in X11/Xlib.h Xm/Xm.h 18941do : 18942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18943ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18944if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18945 cat >>confdefs.h <<_ACEOF 18946#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18947_ACEOF 18948 18949fi 18950 18951done 18952 18953fi 18954 18955 18956 18957 18958 18959 18960 18961 18962if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18963 if test -n "$ac_tool_prefix"; then 18964 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18965set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18967$as_echo_n "checking for $ac_word... " >&6; } 18968if ${ac_cv_path_PKG_CONFIG+:} false; then : 18969 $as_echo_n "(cached) " >&6 18970else 18971 case $PKG_CONFIG in 18972 [\\/]* | ?:[\\/]*) 18973 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18974 ;; 18975 *) 18976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18977for as_dir in $PATH 18978do 18979 IFS=$as_save_IFS 18980 test -z "$as_dir" && as_dir=. 18981 for ac_exec_ext in '' $ac_executable_extensions; do 18982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18983 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18985 break 2 18986 fi 18987done 18988 done 18989IFS=$as_save_IFS 18990 18991 ;; 18992esac 18993fi 18994PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18995if test -n "$PKG_CONFIG"; then 18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18997$as_echo "$PKG_CONFIG" >&6; } 18998else 18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19000$as_echo "no" >&6; } 19001fi 19002 19003 19004fi 19005if test -z "$ac_cv_path_PKG_CONFIG"; then 19006 ac_pt_PKG_CONFIG=$PKG_CONFIG 19007 # Extract the first word of "pkg-config", so it can be a program name with args. 19008set dummy pkg-config; ac_word=$2 19009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19010$as_echo_n "checking for $ac_word... " >&6; } 19011if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19012 $as_echo_n "(cached) " >&6 19013else 19014 case $ac_pt_PKG_CONFIG in 19015 [\\/]* | ?:[\\/]*) 19016 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19017 ;; 19018 *) 19019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19020for as_dir in $PATH 19021do 19022 IFS=$as_save_IFS 19023 test -z "$as_dir" && as_dir=. 19024 for ac_exec_ext in '' $ac_executable_extensions; do 19025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19026 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19028 break 2 19029 fi 19030done 19031 done 19032IFS=$as_save_IFS 19033 19034 ;; 19035esac 19036fi 19037ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19038if test -n "$ac_pt_PKG_CONFIG"; then 19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19040$as_echo "$ac_pt_PKG_CONFIG" >&6; } 19041else 19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19043$as_echo "no" >&6; } 19044fi 19045 19046 if test "x$ac_pt_PKG_CONFIG" = x; then 19047 PKG_CONFIG="" 19048 else 19049 case $cross_compiling:$ac_tool_warned in 19050yes:) 19051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19053ac_tool_warned=yes ;; 19054esac 19055 PKG_CONFIG=$ac_pt_PKG_CONFIG 19056 fi 19057else 19058 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19059fi 19060 19061fi 19062if test -n "$PKG_CONFIG"; then 19063 _pkg_min_version=0.9.0 19064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19065$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19066 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19068$as_echo "yes" >&6; } 19069 else 19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19071$as_echo "no" >&6; } 19072 PKG_CONFIG="" 19073 fi 19074fi 19075 19076# Check for GMP 19077 19078# Check whether --with-gmp was given. 19079if test "${with_gmp+set}" = set; then : 19080 withval=$with_gmp; 19081else 19082 with_gmp=check 19083fi 19084 19085 19086# If we want GMP check that the library and headers are installed. 19087if test "x$with_gmp" != "xno"; then 19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpn_tdiv_qr in -lgmp" >&5 19089$as_echo_n "checking for __gmpn_tdiv_qr in -lgmp... " >&6; } 19090if ${ac_cv_lib_gmp___gmpn_tdiv_qr+:} false; then : 19091 $as_echo_n "(cached) " >&6 19092else 19093 ac_check_lib_save_LIBS=$LIBS 19094LIBS="-lgmp $LIBS" 19095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19096/* end confdefs.h. */ 19097 19098/* Override any GCC internal prototype to avoid an error. 19099 Use char because int might match the return type of a GCC 19100 builtin and then its argument prototype would still apply. */ 19101#ifdef __cplusplus 19102extern "C" 19103#endif 19104char __gmpn_tdiv_qr (); 19105int 19106main () 19107{ 19108return __gmpn_tdiv_qr (); 19109 ; 19110 return 0; 19111} 19112_ACEOF 19113if ac_fn_c_try_link "$LINENO"; then : 19114 ac_cv_lib_gmp___gmpn_tdiv_qr=yes 19115else 19116 ac_cv_lib_gmp___gmpn_tdiv_qr=no 19117fi 19118rm -f core conftest.err conftest.$ac_objext \ 19119 conftest$ac_exeext conftest.$ac_ext 19120LIBS=$ac_check_lib_save_LIBS 19121fi 19122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpn_tdiv_qr" >&5 19123$as_echo "$ac_cv_lib_gmp___gmpn_tdiv_qr" >&6; } 19124if test "x$ac_cv_lib_gmp___gmpn_tdiv_qr" = xyes; then : 19125 19126$as_echo "#define HAVE_LIBGMP 1" >>confdefs.h 19127 19128 LIBS="-lgmp $LIBS" 19129 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" 19130if test "x$ac_cv_header_gmp_h" = xyes; then : 19131 19132$as_echo "#define HAVE_GMP_H 1" >>confdefs.h 19133 19134else 19135 if test "x$with_gmp" != "xcheck"; then 19136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19138as_fn_error $? "--with-gmp was given, but gmp.h header file is not installed 19139See \`config.log' for more details" "$LINENO" 5; } 19140 fi 19141 19142fi 19143 19144 19145 19146else 19147 if test "x$with_gmp" != "xcheck"; then 19148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19150as_fn_error $? "--with-gmp was given, but gmp library (version 4 or later) is not installed 19151See \`config.log' for more details" "$LINENO" 5; } 19152 fi 19153 19154fi 19155 19156fi 19157 19158# Special configuration for Windows or Unix. 19159poly_windows_enablegui=false 19160 19161if test "x$poly_native_windows" = xyes; then 19162 # The next two are only used with mingw. We mustn't include ws2_32 in Cygwin64 because 19163 # the "select" function gets used instead of Cygwin's own. 19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 19165$as_echo_n "checking for main in -lws2_32... " >&6; } 19166if ${ac_cv_lib_ws2_32_main+:} false; then : 19167 $as_echo_n "(cached) " >&6 19168else 19169 ac_check_lib_save_LIBS=$LIBS 19170LIBS="-lws2_32 $LIBS" 19171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19172/* end confdefs.h. */ 19173 19174 19175int 19176main () 19177{ 19178return main (); 19179 ; 19180 return 0; 19181} 19182_ACEOF 19183if ac_fn_c_try_link "$LINENO"; then : 19184 ac_cv_lib_ws2_32_main=yes 19185else 19186 ac_cv_lib_ws2_32_main=no 19187fi 19188rm -f core conftest.err conftest.$ac_objext \ 19189 conftest$ac_exeext conftest.$ac_ext 19190LIBS=$ac_check_lib_save_LIBS 19191fi 19192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 19193$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 19194if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 19195 cat >>confdefs.h <<_ACEOF 19196#define HAVE_LIBWS2_32 1 19197_ACEOF 19198 19199 LIBS="-lws2_32 $LIBS" 19200 19201fi 19202 19203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5 19204$as_echo_n "checking for main in -lgdi32... " >&6; } 19205if ${ac_cv_lib_gdi32_main+:} false; then : 19206 $as_echo_n "(cached) " >&6 19207else 19208 ac_check_lib_save_LIBS=$LIBS 19209LIBS="-lgdi32 $LIBS" 19210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19211/* end confdefs.h. */ 19212 19213 19214int 19215main () 19216{ 19217return main (); 19218 ; 19219 return 0; 19220} 19221_ACEOF 19222if ac_fn_c_try_link "$LINENO"; then : 19223 ac_cv_lib_gdi32_main=yes 19224else 19225 ac_cv_lib_gdi32_main=no 19226fi 19227rm -f core conftest.err conftest.$ac_objext \ 19228 conftest$ac_exeext conftest.$ac_ext 19229LIBS=$ac_check_lib_save_LIBS 19230fi 19231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5 19232$as_echo "$ac_cv_lib_gdi32_main" >&6; } 19233if test "x$ac_cv_lib_gdi32_main" = xyes; then : 19234 cat >>confdefs.h <<_ACEOF 19235#define HAVE_LIBGDI32 1 19236_ACEOF 19237 19238 LIBS="-lgdi32 $LIBS" 19239 19240fi 19241 19242 19243 CFLAGS="$CFLAGS -mthreads" 19244 CXXFLAGS="$CXXFLAGS -mthreads" 19245 OSFLAG="-DUNICODE -D_UNICODE -D_WIN32_WINNT=0x600" 19246 19247 if test -n "$ac_tool_prefix"; then 19248 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 19249set dummy ${ac_tool_prefix}windres; ac_word=$2 19250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19251$as_echo_n "checking for $ac_word... " >&6; } 19252if ${ac_cv_prog_WINDRES+:} false; then : 19253 $as_echo_n "(cached) " >&6 19254else 19255 if test -n "$WINDRES"; then 19256 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 19257else 19258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19259for as_dir in $PATH 19260do 19261 IFS=$as_save_IFS 19262 test -z "$as_dir" && as_dir=. 19263 for ac_exec_ext in '' $ac_executable_extensions; do 19264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19265 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 19266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19267 break 2 19268 fi 19269done 19270 done 19271IFS=$as_save_IFS 19272 19273fi 19274fi 19275WINDRES=$ac_cv_prog_WINDRES 19276if test -n "$WINDRES"; then 19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 19278$as_echo "$WINDRES" >&6; } 19279else 19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19281$as_echo "no" >&6; } 19282fi 19283 19284 19285fi 19286if test -z "$ac_cv_prog_WINDRES"; then 19287 ac_ct_WINDRES=$WINDRES 19288 # Extract the first word of "windres", so it can be a program name with args. 19289set dummy windres; ac_word=$2 19290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19291$as_echo_n "checking for $ac_word... " >&6; } 19292if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 19293 $as_echo_n "(cached) " >&6 19294else 19295 if test -n "$ac_ct_WINDRES"; then 19296 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 19297else 19298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19299for as_dir in $PATH 19300do 19301 IFS=$as_save_IFS 19302 test -z "$as_dir" && as_dir=. 19303 for ac_exec_ext in '' $ac_executable_extensions; do 19304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19305 ac_cv_prog_ac_ct_WINDRES="windres" 19306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19307 break 2 19308 fi 19309done 19310 done 19311IFS=$as_save_IFS 19312 19313fi 19314fi 19315ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 19316if test -n "$ac_ct_WINDRES"; then 19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 19318$as_echo "$ac_ct_WINDRES" >&6; } 19319else 19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19321$as_echo "no" >&6; } 19322fi 19323 19324 if test "x$ac_ct_WINDRES" = x; then 19325 WINDRES="" 19326 else 19327 case $cross_compiling:$ac_tool_warned in 19328yes:) 19329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19331ac_tool_warned=yes ;; 19332esac 19333 WINDRES=$ac_ct_WINDRES 19334 fi 19335else 19336 WINDRES="$ac_cv_prog_WINDRES" 19337fi 19338 19339 19340 # Enable/Disable the GUI in Windows. 19341 # Check whether --enable-windows-gui was given. 19342if test "${enable_windows_gui+set}" = set; then : 19343 enableval=$enable_windows_gui; case "${enableval}" in 19344 yes) poly_windows_enablegui=true ;; 19345 no) poly_windows_enablegui=false ;; 19346 *) as_fn_error $? "bad value ${enableval} for --enable-windows-gui" "$LINENO" 5 ;; 19347 esac 19348else 19349 poly_windows_enablegui=true 19350fi 19351 19352 19353else 19354 # Unix or similar e.g. Cygwin. We need pthreads. 19355 # On Android pthread_create is in the standard library 19356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 19357$as_echo_n "checking for library containing pthread_create... " >&6; } 19358if ${ac_cv_search_pthread_create+:} false; then : 19359 $as_echo_n "(cached) " >&6 19360else 19361 ac_func_search_save_LIBS=$LIBS 19362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19363/* end confdefs.h. */ 19364 19365/* Override any GCC internal prototype to avoid an error. 19366 Use char because int might match the return type of a GCC 19367 builtin and then its argument prototype would still apply. */ 19368#ifdef __cplusplus 19369extern "C" 19370#endif 19371char pthread_create (); 19372int 19373main () 19374{ 19375return pthread_create (); 19376 ; 19377 return 0; 19378} 19379_ACEOF 19380for ac_lib in '' pthread; do 19381 if test -z "$ac_lib"; then 19382 ac_res="none required" 19383 else 19384 ac_res=-l$ac_lib 19385 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19386 fi 19387 if ac_fn_c_try_link "$LINENO"; then : 19388 ac_cv_search_pthread_create=$ac_res 19389fi 19390rm -f core conftest.err conftest.$ac_objext \ 19391 conftest$ac_exeext 19392 if ${ac_cv_search_pthread_create+:} false; then : 19393 break 19394fi 19395done 19396if ${ac_cv_search_pthread_create+:} false; then : 19397 19398else 19399 ac_cv_search_pthread_create=no 19400fi 19401rm conftest.$ac_ext 19402LIBS=$ac_func_search_save_LIBS 19403fi 19404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 19405$as_echo "$ac_cv_search_pthread_create" >&6; } 19406ac_res=$ac_cv_search_pthread_create 19407if test "$ac_res" != no; then : 19408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19409 19410$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h 19411 19412 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 19413if test "x$ac_cv_header_pthread_h" = xyes; then : 19414 19415$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h 19416 19417else 19418 19419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19421as_fn_error $? "pthread.h header file is not installed 19422See \`config.log' for more details" "$LINENO" 5; } 19423 19424fi 19425 19426 19427 19428else 19429 19430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19432as_fn_error $? "pthread library is not installed 19433See \`config.log' for more details" "$LINENO" 5; } 19434 19435fi 19436 19437 19438 # Solaris needs -lsocket, -lnsl and -lrt 19439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 19440$as_echo_n "checking for library containing gethostbyname... " >&6; } 19441if ${ac_cv_search_gethostbyname+:} false; then : 19442 $as_echo_n "(cached) " >&6 19443else 19444 ac_func_search_save_LIBS=$LIBS 19445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19446/* end confdefs.h. */ 19447 19448/* Override any GCC internal prototype to avoid an error. 19449 Use char because int might match the return type of a GCC 19450 builtin and then its argument prototype would still apply. */ 19451#ifdef __cplusplus 19452extern "C" 19453#endif 19454char gethostbyname (); 19455int 19456main () 19457{ 19458return gethostbyname (); 19459 ; 19460 return 0; 19461} 19462_ACEOF 19463for ac_lib in '' nsl; do 19464 if test -z "$ac_lib"; then 19465 ac_res="none required" 19466 else 19467 ac_res=-l$ac_lib 19468 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19469 fi 19470 if ac_fn_c_try_link "$LINENO"; then : 19471 ac_cv_search_gethostbyname=$ac_res 19472fi 19473rm -f core conftest.err conftest.$ac_objext \ 19474 conftest$ac_exeext 19475 if ${ac_cv_search_gethostbyname+:} false; then : 19476 break 19477fi 19478done 19479if ${ac_cv_search_gethostbyname+:} false; then : 19480 19481else 19482 ac_cv_search_gethostbyname=no 19483fi 19484rm conftest.$ac_ext 19485LIBS=$ac_func_search_save_LIBS 19486fi 19487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 19488$as_echo "$ac_cv_search_gethostbyname" >&6; } 19489ac_res=$ac_cv_search_gethostbyname 19490if test "$ac_res" != no; then : 19491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19492 19493fi 19494 19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5 19496$as_echo_n "checking for library containing getsockopt... " >&6; } 19497if ${ac_cv_search_getsockopt+:} false; then : 19498 $as_echo_n "(cached) " >&6 19499else 19500 ac_func_search_save_LIBS=$LIBS 19501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19502/* end confdefs.h. */ 19503 19504/* Override any GCC internal prototype to avoid an error. 19505 Use char because int might match the return type of a GCC 19506 builtin and then its argument prototype would still apply. */ 19507#ifdef __cplusplus 19508extern "C" 19509#endif 19510char getsockopt (); 19511int 19512main () 19513{ 19514return getsockopt (); 19515 ; 19516 return 0; 19517} 19518_ACEOF 19519for ac_lib in '' socket; do 19520 if test -z "$ac_lib"; then 19521 ac_res="none required" 19522 else 19523 ac_res=-l$ac_lib 19524 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19525 fi 19526 if ac_fn_c_try_link "$LINENO"; then : 19527 ac_cv_search_getsockopt=$ac_res 19528fi 19529rm -f core conftest.err conftest.$ac_objext \ 19530 conftest$ac_exeext 19531 if ${ac_cv_search_getsockopt+:} false; then : 19532 break 19533fi 19534done 19535if ${ac_cv_search_getsockopt+:} false; then : 19536 19537else 19538 ac_cv_search_getsockopt=no 19539fi 19540rm conftest.$ac_ext 19541LIBS=$ac_func_search_save_LIBS 19542fi 19543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5 19544$as_echo "$ac_cv_search_getsockopt" >&6; } 19545ac_res=$ac_cv_search_getsockopt 19546if test "$ac_res" != no; then : 19547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19548 19549fi 19550 19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_wait" >&5 19552$as_echo_n "checking for library containing sem_wait... " >&6; } 19553if ${ac_cv_search_sem_wait+:} false; then : 19554 $as_echo_n "(cached) " >&6 19555else 19556 ac_func_search_save_LIBS=$LIBS 19557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19558/* end confdefs.h. */ 19559 19560/* Override any GCC internal prototype to avoid an error. 19561 Use char because int might match the return type of a GCC 19562 builtin and then its argument prototype would still apply. */ 19563#ifdef __cplusplus 19564extern "C" 19565#endif 19566char sem_wait (); 19567int 19568main () 19569{ 19570return sem_wait (); 19571 ; 19572 return 0; 19573} 19574_ACEOF 19575for ac_lib in '' rt; do 19576 if test -z "$ac_lib"; then 19577 ac_res="none required" 19578 else 19579 ac_res=-l$ac_lib 19580 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19581 fi 19582 if ac_fn_c_try_link "$LINENO"; then : 19583 ac_cv_search_sem_wait=$ac_res 19584fi 19585rm -f core conftest.err conftest.$ac_objext \ 19586 conftest$ac_exeext 19587 if ${ac_cv_search_sem_wait+:} false; then : 19588 break 19589fi 19590done 19591if ${ac_cv_search_sem_wait+:} false; then : 19592 19593else 19594 ac_cv_search_sem_wait=no 19595fi 19596rm conftest.$ac_ext 19597LIBS=$ac_func_search_save_LIBS 19598fi 19599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_wait" >&5 19600$as_echo "$ac_cv_search_sem_wait" >&6; } 19601ac_res=$ac_cv_search_sem_wait 19602if test "$ac_res" != no; then : 19603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19604 19605fi 19606 19607 19608 # Check for X and Motif headers and libraries 19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 19610$as_echo_n "checking for X... " >&6; } 19611 19612 19613# Check whether --with-x was given. 19614if test "${with_x+set}" = set; then : 19615 withval=$with_x; 19616fi 19617 19618# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 19619if test "x$with_x" = xno; then 19620 # The user explicitly disabled X. 19621 have_x=disabled 19622else 19623 case $x_includes,$x_libraries in #( 19624 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 19625 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 19626 $as_echo_n "(cached) " >&6 19627else 19628 # One or both of the vars are not set, and there is no cached value. 19629ac_x_includes=no ac_x_libraries=no 19630rm -f -r conftest.dir 19631if mkdir conftest.dir; then 19632 cd conftest.dir 19633 cat >Imakefile <<'_ACEOF' 19634incroot: 19635 @echo incroot='${INCROOT}' 19636usrlibdir: 19637 @echo usrlibdir='${USRLIBDIR}' 19638libdir: 19639 @echo libdir='${LIBDIR}' 19640_ACEOF 19641 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 19642 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 19643 for ac_var in incroot usrlibdir libdir; do 19644 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 19645 done 19646 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 19647 for ac_extension in a so sl dylib la dll; do 19648 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 19649 test -f "$ac_im_libdir/libX11.$ac_extension"; then 19650 ac_im_usrlibdir=$ac_im_libdir; break 19651 fi 19652 done 19653 # Screen out bogus values from the imake configuration. They are 19654 # bogus both because they are the default anyway, and because 19655 # using them would break gcc on systems where it needs fixed includes. 19656 case $ac_im_incroot in 19657 /usr/include) ac_x_includes= ;; 19658 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 19659 esac 19660 case $ac_im_usrlibdir in 19661 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 19662 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 19663 esac 19664 fi 19665 cd .. 19666 rm -f -r conftest.dir 19667fi 19668 19669# Standard set of common directories for X headers. 19670# Check X11 before X11Rn because it is often a symlink to the current release. 19671ac_x_header_dirs=' 19672/usr/X11/include 19673/usr/X11R7/include 19674/usr/X11R6/include 19675/usr/X11R5/include 19676/usr/X11R4/include 19677 19678/usr/include/X11 19679/usr/include/X11R7 19680/usr/include/X11R6 19681/usr/include/X11R5 19682/usr/include/X11R4 19683 19684/usr/local/X11/include 19685/usr/local/X11R7/include 19686/usr/local/X11R6/include 19687/usr/local/X11R5/include 19688/usr/local/X11R4/include 19689 19690/usr/local/include/X11 19691/usr/local/include/X11R7 19692/usr/local/include/X11R6 19693/usr/local/include/X11R5 19694/usr/local/include/X11R4 19695 19696/usr/X386/include 19697/usr/x386/include 19698/usr/XFree86/include/X11 19699 19700/usr/include 19701/usr/local/include 19702/usr/unsupported/include 19703/usr/athena/include 19704/usr/local/x11r5/include 19705/usr/lpp/Xamples/include 19706 19707/usr/openwin/include 19708/usr/openwin/share/include' 19709 19710if test "$ac_x_includes" = no; then 19711 # Guess where to find include files, by looking for Xlib.h. 19712 # First, try using that file with no special directory specified. 19713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19714/* end confdefs.h. */ 19715#include <X11/Xlib.h> 19716_ACEOF 19717if ac_fn_c_try_cpp "$LINENO"; then : 19718 # We can compile using X headers with no special include directory. 19719ac_x_includes= 19720else 19721 for ac_dir in $ac_x_header_dirs; do 19722 if test -r "$ac_dir/X11/Xlib.h"; then 19723 ac_x_includes=$ac_dir 19724 break 19725 fi 19726done 19727fi 19728rm -f conftest.err conftest.i conftest.$ac_ext 19729fi # $ac_x_includes = no 19730 19731if test "$ac_x_libraries" = no; then 19732 # Check for the libraries. 19733 # See if we find them without any special options. 19734 # Don't add to $LIBS permanently. 19735 ac_save_LIBS=$LIBS 19736 LIBS="-lX11 $LIBS" 19737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19738/* end confdefs.h. */ 19739#include <X11/Xlib.h> 19740int 19741main () 19742{ 19743XrmInitialize () 19744 ; 19745 return 0; 19746} 19747_ACEOF 19748if ac_fn_c_try_link "$LINENO"; then : 19749 LIBS=$ac_save_LIBS 19750# We can link X programs with no special library path. 19751ac_x_libraries= 19752else 19753 LIBS=$ac_save_LIBS 19754for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 19755do 19756 # Don't even attempt the hair of trying to link an X program! 19757 for ac_extension in a so sl dylib la dll; do 19758 if test -r "$ac_dir/libX11.$ac_extension"; then 19759 ac_x_libraries=$ac_dir 19760 break 2 19761 fi 19762 done 19763done 19764fi 19765rm -f core conftest.err conftest.$ac_objext \ 19766 conftest$ac_exeext conftest.$ac_ext 19767fi # $ac_x_libraries = no 19768 19769case $ac_x_includes,$ac_x_libraries in #( 19770 no,* | *,no | *\'*) 19771 # Didn't find X, or a directory has "'" in its name. 19772 ac_cv_have_x="have_x=no";; #( 19773 *) 19774 # Record where we found X for the cache. 19775 ac_cv_have_x="have_x=yes\ 19776 ac_x_includes='$ac_x_includes'\ 19777 ac_x_libraries='$ac_x_libraries'" 19778esac 19779fi 19780;; #( 19781 *) have_x=yes;; 19782 esac 19783 eval "$ac_cv_have_x" 19784fi # $with_x != no 19785 19786if test "$have_x" != yes; then 19787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 19788$as_echo "$have_x" >&6; } 19789 no_x=yes 19790else 19791 # If each of the values was on the command line, it overrides each guess. 19792 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 19793 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 19794 # Update the cache value to reflect the command line values. 19795 ac_cv_have_x="have_x=yes\ 19796 ac_x_includes='$x_includes'\ 19797 ac_x_libraries='$x_libraries'" 19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 19799$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 19800fi 19801 19802 19803 if test "x${with_x}" = "xyes"; then 19804 19805 19806$as_echo "#define WITH_XWINDOWS 1" >>confdefs.h 19807 19808 19809 if test "$x_includes" != "" ; then 19810 if test "$x_includes" != "NONE" ; then 19811 CFLAGS="$CFLAGS -I$x_includes" 19812 CXXFLAGS="$CXXFLAGS -I$x_includes" 19813 CPPFLAGS="$CPPFLAGS -I$x_includes" 19814 fi 19815 fi 19816 if test "$x_libraries" != "" ; then 19817 if test "$x_libraries" != "NONE" ; then 19818 LIBS="-L$x_libraries $LIBS" 19819 fi 19820 fi 19821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateGC in -lX11" >&5 19822$as_echo_n "checking for XCreateGC in -lX11... " >&6; } 19823if ${ac_cv_lib_X11_XCreateGC+:} false; then : 19824 $as_echo_n "(cached) " >&6 19825else 19826 ac_check_lib_save_LIBS=$LIBS 19827LIBS="-lX11 $LIBS" 19828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19829/* end confdefs.h. */ 19830 19831/* Override any GCC internal prototype to avoid an error. 19832 Use char because int might match the return type of a GCC 19833 builtin and then its argument prototype would still apply. */ 19834#ifdef __cplusplus 19835extern "C" 19836#endif 19837char XCreateGC (); 19838int 19839main () 19840{ 19841return XCreateGC (); 19842 ; 19843 return 0; 19844} 19845_ACEOF 19846if ac_fn_c_try_link "$LINENO"; then : 19847 ac_cv_lib_X11_XCreateGC=yes 19848else 19849 ac_cv_lib_X11_XCreateGC=no 19850fi 19851rm -f core conftest.err conftest.$ac_objext \ 19852 conftest$ac_exeext conftest.$ac_ext 19853LIBS=$ac_check_lib_save_LIBS 19854fi 19855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateGC" >&5 19856$as_echo "$ac_cv_lib_X11_XCreateGC" >&6; } 19857if test "x$ac_cv_lib_X11_XCreateGC" = xyes; then : 19858 cat >>confdefs.h <<_ACEOF 19859#define HAVE_LIBX11 1 19860_ACEOF 19861 19862 LIBS="-lX11 $LIBS" 19863 19864fi 19865 19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtMalloc in -lXt" >&5 19867$as_echo_n "checking for XtMalloc in -lXt... " >&6; } 19868if ${ac_cv_lib_Xt_XtMalloc+:} false; then : 19869 $as_echo_n "(cached) " >&6 19870else 19871 ac_check_lib_save_LIBS=$LIBS 19872LIBS="-lXt $LIBS" 19873cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19874/* end confdefs.h. */ 19875 19876/* Override any GCC internal prototype to avoid an error. 19877 Use char because int might match the return type of a GCC 19878 builtin and then its argument prototype would still apply. */ 19879#ifdef __cplusplus 19880extern "C" 19881#endif 19882char XtMalloc (); 19883int 19884main () 19885{ 19886return XtMalloc (); 19887 ; 19888 return 0; 19889} 19890_ACEOF 19891if ac_fn_c_try_link "$LINENO"; then : 19892 ac_cv_lib_Xt_XtMalloc=yes 19893else 19894 ac_cv_lib_Xt_XtMalloc=no 19895fi 19896rm -f core conftest.err conftest.$ac_objext \ 19897 conftest$ac_exeext conftest.$ac_ext 19898LIBS=$ac_check_lib_save_LIBS 19899fi 19900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtMalloc" >&5 19901$as_echo "$ac_cv_lib_Xt_XtMalloc" >&6; } 19902if test "x$ac_cv_lib_Xt_XtMalloc" = xyes; then : 19903 cat >>confdefs.h <<_ACEOF 19904#define HAVE_LIBXT 1 19905_ACEOF 19906 19907 LIBS="-lXt $LIBS" 19908 19909fi 19910 19911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XextAddDisplay in -lXext" >&5 19912$as_echo_n "checking for XextAddDisplay in -lXext... " >&6; } 19913if ${ac_cv_lib_Xext_XextAddDisplay+:} false; then : 19914 $as_echo_n "(cached) " >&6 19915else 19916 ac_check_lib_save_LIBS=$LIBS 19917LIBS="-lXext $LIBS" 19918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19919/* end confdefs.h. */ 19920 19921/* Override any GCC internal prototype to avoid an error. 19922 Use char because int might match the return type of a GCC 19923 builtin and then its argument prototype would still apply. */ 19924#ifdef __cplusplus 19925extern "C" 19926#endif 19927char XextAddDisplay (); 19928int 19929main () 19930{ 19931return XextAddDisplay (); 19932 ; 19933 return 0; 19934} 19935_ACEOF 19936if ac_fn_c_try_link "$LINENO"; then : 19937 ac_cv_lib_Xext_XextAddDisplay=yes 19938else 19939 ac_cv_lib_Xext_XextAddDisplay=no 19940fi 19941rm -f core conftest.err conftest.$ac_objext \ 19942 conftest$ac_exeext conftest.$ac_ext 19943LIBS=$ac_check_lib_save_LIBS 19944fi 19945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XextAddDisplay" >&5 19946$as_echo "$ac_cv_lib_Xext_XextAddDisplay" >&6; } 19947if test "x$ac_cv_lib_Xext_XextAddDisplay" = xyes; then : 19948 cat >>confdefs.h <<_ACEOF 19949#define HAVE_LIBXEXT 1 19950_ACEOF 19951 19952 LIBS="-lXext $LIBS" 19953 19954fi 19955 19956 19957 if test "$xm_includes" != "" ; then 19958 if test "$xm_includes" != "NONE" ; then 19959 CFLAGS="$CFLAGS -I$xm_includes" 19960 CXXFLAGS="$CXXFLAGS -I$xm_includes" 19961 CPPFLAGS="$CPPFLAGS -I$xm_includes" 19962 fi 19963 fi 19964 if test "$xm_libraries" != "" ; then 19965 if test "$xm_libraries" != "NONE" ; then 19966 LIBS="-L$xm_libraries $LIBS" 19967 fi 19968 fi 19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmGetDestination in -lXm" >&5 19970$as_echo_n "checking for XmGetDestination in -lXm... " >&6; } 19971if ${ac_cv_lib_Xm_XmGetDestination+:} false; then : 19972 $as_echo_n "(cached) " >&6 19973else 19974 ac_check_lib_save_LIBS=$LIBS 19975LIBS="-lXm $LIBS" 19976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19977/* end confdefs.h. */ 19978 19979/* Override any GCC internal prototype to avoid an error. 19980 Use char because int might match the return type of a GCC 19981 builtin and then its argument prototype would still apply. */ 19982#ifdef __cplusplus 19983extern "C" 19984#endif 19985char XmGetDestination (); 19986int 19987main () 19988{ 19989return XmGetDestination (); 19990 ; 19991 return 0; 19992} 19993_ACEOF 19994if ac_fn_c_try_link "$LINENO"; then : 19995 ac_cv_lib_Xm_XmGetDestination=yes 19996else 19997 ac_cv_lib_Xm_XmGetDestination=no 19998fi 19999rm -f core conftest.err conftest.$ac_objext \ 20000 conftest$ac_exeext conftest.$ac_ext 20001LIBS=$ac_check_lib_save_LIBS 20002fi 20003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_XmGetDestination" >&5 20004$as_echo "$ac_cv_lib_Xm_XmGetDestination" >&6; } 20005if test "x$ac_cv_lib_Xm_XmGetDestination" = xyes; then : 20006 cat >>confdefs.h <<_ACEOF 20007#define HAVE_LIBXM 1 20008_ACEOF 20009 20010 LIBS="-lXm $LIBS" 20011 20012fi 20013 20014 20015 fi 20016 20017 # TODO: May need AC_PATH_XTRA for Solaris 20018 20019fi 20020# End of Windows/Unix configuration. 20021 20022# Find out which type of object code exporter to use. 20023# If we have winnt use PECOFF. This really only applies to cygwin here. 20024# If we have elf.h use ELF. 20025# If we have mach-o/reloc.h use Mach-O 20026# Otherwise use the C source code exporter. 20027ac_fn_c_check_type "$LINENO" "IMAGE_FILE_HEADER" "ac_cv_type_IMAGE_FILE_HEADER" "#include <windows.h> 20028 20029" 20030if test "x$ac_cv_type_IMAGE_FILE_HEADER" = xyes; then : 20031 20032cat >>confdefs.h <<_ACEOF 20033#define HAVE_IMAGE_FILE_HEADER 1 20034_ACEOF 20035 20036 20037$as_echo "#define HAVE_PECOFF /**/" >>confdefs.h 20038 20039 polyexport=pecoff 20040else 20041 ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 20042if test "x$ac_cv_header_elf_h" = xyes; then : 20043 20044$as_echo "#define HAVE_ELF_H /**/" >>confdefs.h 20045 20046 polyexport=elf 20047else 20048 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/reloc.h" "ac_cv_header_mach_o_reloc_h" "$ac_includes_default" 20049if test "x$ac_cv_header_mach_o_reloc_h" = xyes; then : 20050 20051$as_echo "#define HAVE_MACH_O_RELOC_H /**/" >>confdefs.h 20052 20053 polyexport=macho 20054else 20055 for ac_header in elf_abi.h machine/reloc.h 20056do : 20057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20058ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20059if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20060 cat >>confdefs.h <<_ACEOF 20061#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20062_ACEOF 20063 20064$as_echo "#define HAVE_ELF_ABI_H /**/" >>confdefs.h 20065 20066 polyexport=elf 20067fi 20068 20069done 20070 20071 20072fi 20073 20074 20075 20076fi 20077 20078 20079fi 20080 20081 20082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __sync_add_and_fetch" >&5 20083$as_echo_n "checking whether the compiler supports __sync_add_and_fetch... " >&6; } 20084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20085/* end confdefs.h. */ 20086int main(void) { long i=0; return __sync_fetch_and_add(&i, 0) + __sync_sub_and_fetch(&i, 0); } 20087_ACEOF 20088if ac_fn_c_try_link "$LINENO"; then : 20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20090$as_echo "yes" >&6; } 20091$as_echo "#define HAVE_SYNC_FETCH 1" >>confdefs.h 20092 20093else 20094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20095$as_echo "no" >&6; } 20096fi 20097rm -f core conftest.err conftest.$ac_objext \ 20098 conftest$ac_exeext conftest.$ac_ext 20099 20100 20101 if test "$polyexport" = pecoff; then 20102 EXPPECOFF_TRUE= 20103 EXPPECOFF_FALSE='#' 20104else 20105 EXPPECOFF_TRUE='#' 20106 EXPPECOFF_FALSE= 20107fi 20108 20109 if test "$polyexport" = elf; then 20110 EXPELF_TRUE= 20111 EXPELF_FALSE='#' 20112else 20113 EXPELF_TRUE='#' 20114 EXPELF_FALSE= 20115fi 20116 20117 if test "$polyexport" = macho; then 20118 EXPMACHO_TRUE= 20119 EXPMACHO_FALSE='#' 20120else 20121 EXPMACHO_TRUE='#' 20122 EXPMACHO_FALSE= 20123fi 20124 20125 20126# Checks for typedefs, structures, and compiler characteristics. 20127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 20128$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 20129if ${ac_cv_header_stdbool_h+:} false; then : 20130 $as_echo_n "(cached) " >&6 20131else 20132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20133/* end confdefs.h. */ 20134 20135 #include <stdbool.h> 20136 #ifndef bool 20137 "error: bool is not defined" 20138 #endif 20139 #ifndef false 20140 "error: false is not defined" 20141 #endif 20142 #if false 20143 "error: false is not 0" 20144 #endif 20145 #ifndef true 20146 "error: true is not defined" 20147 #endif 20148 #if true != 1 20149 "error: true is not 1" 20150 #endif 20151 #ifndef __bool_true_false_are_defined 20152 "error: __bool_true_false_are_defined is not defined" 20153 #endif 20154 20155 struct s { _Bool s: 1; _Bool t; } s; 20156 20157 char a[true == 1 ? 1 : -1]; 20158 char b[false == 0 ? 1 : -1]; 20159 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 20160 char d[(bool) 0.5 == true ? 1 : -1]; 20161 /* See body of main program for 'e'. */ 20162 char f[(_Bool) 0.0 == false ? 1 : -1]; 20163 char g[true]; 20164 char h[sizeof (_Bool)]; 20165 char i[sizeof s.t]; 20166 enum { j = false, k = true, l = false * true, m = true * 256 }; 20167 /* The following fails for 20168 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 20169 _Bool n[m]; 20170 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 20171 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 20172 /* Catch a bug in an HP-UX C compiler. See 20173 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 20174 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 20175 */ 20176 _Bool q = true; 20177 _Bool *pq = &q; 20178 20179int 20180main () 20181{ 20182 20183 bool e = &s; 20184 *pq |= q; 20185 *pq |= ! q; 20186 /* Refer to every declared value, to avoid compiler optimizations. */ 20187 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 20188 + !m + !n + !o + !p + !q + !pq); 20189 20190 ; 20191 return 0; 20192} 20193_ACEOF 20194if ac_fn_c_try_compile "$LINENO"; then : 20195 ac_cv_header_stdbool_h=yes 20196else 20197 ac_cv_header_stdbool_h=no 20198fi 20199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20200fi 20201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 20202$as_echo "$ac_cv_header_stdbool_h" >&6; } 20203 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 20204if test "x$ac_cv_type__Bool" = xyes; then : 20205 20206cat >>confdefs.h <<_ACEOF 20207#define HAVE__BOOL 1 20208_ACEOF 20209 20210 20211fi 20212 20213 20214if test $ac_cv_header_stdbool_h = yes; then 20215 20216$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 20217 20218fi 20219 20220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20221$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20222if ${ac_cv_c_const+:} false; then : 20223 $as_echo_n "(cached) " >&6 20224else 20225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20226/* end confdefs.h. */ 20227 20228int 20229main () 20230{ 20231 20232#ifndef __cplusplus 20233 /* Ultrix mips cc rejects this sort of thing. */ 20234 typedef int charset[2]; 20235 const charset cs = { 0, 0 }; 20236 /* SunOS 4.1.1 cc rejects this. */ 20237 char const *const *pcpcc; 20238 char **ppc; 20239 /* NEC SVR4.0.2 mips cc rejects this. */ 20240 struct point {int x, y;}; 20241 static struct point const zero = {0,0}; 20242 /* AIX XL C 1.02.0.0 rejects this. 20243 It does not let you subtract one const X* pointer from another in 20244 an arm of an if-expression whose if-part is not a constant 20245 expression */ 20246 const char *g = "string"; 20247 pcpcc = &g + (g ? g-g : 0); 20248 /* HPUX 7.0 cc rejects these. */ 20249 ++pcpcc; 20250 ppc = (char**) pcpcc; 20251 pcpcc = (char const *const *) ppc; 20252 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20253 char tx; 20254 char *t = &tx; 20255 char const *s = 0 ? (char *) 0 : (char const *) 0; 20256 20257 *t++ = 0; 20258 if (s) return 0; 20259 } 20260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20261 int x[] = {25, 17}; 20262 const int *foo = &x[0]; 20263 ++foo; 20264 } 20265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20266 typedef const int *iptr; 20267 iptr p = 0; 20268 ++p; 20269 } 20270 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20272 struct s { int j; const int *ap[3]; } bx; 20273 struct s *b = &bx; b->j = 5; 20274 } 20275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20276 const int foo = 10; 20277 if (!foo) return 0; 20278 } 20279 return !cs[0] && !zero.x; 20280#endif 20281 20282 ; 20283 return 0; 20284} 20285_ACEOF 20286if ac_fn_c_try_compile "$LINENO"; then : 20287 ac_cv_c_const=yes 20288else 20289 ac_cv_c_const=no 20290fi 20291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20292fi 20293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20294$as_echo "$ac_cv_c_const" >&6; } 20295if test $ac_cv_c_const = no; then 20296 20297$as_echo "#define const /**/" >>confdefs.h 20298 20299fi 20300 20301ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 20302case $ac_cv_c_int16_t in #( 20303 no|yes) ;; #( 20304 *) 20305 20306cat >>confdefs.h <<_ACEOF 20307#define int16_t $ac_cv_c_int16_t 20308_ACEOF 20309;; 20310esac 20311 20312ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 20313case $ac_cv_c_uint16_t in #( 20314 no|yes) ;; #( 20315 *) 20316 20317 20318cat >>confdefs.h <<_ACEOF 20319#define uint16_t $ac_cv_c_uint16_t 20320_ACEOF 20321;; 20322 esac 20323 20324ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 20325case $ac_cv_c_int32_t in #( 20326 no|yes) ;; #( 20327 *) 20328 20329cat >>confdefs.h <<_ACEOF 20330#define int32_t $ac_cv_c_int32_t 20331_ACEOF 20332;; 20333esac 20334 20335ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 20336case $ac_cv_c_uint32_t in #( 20337 no|yes) ;; #( 20338 *) 20339 20340$as_echo "#define _UINT32_T 1" >>confdefs.h 20341 20342 20343cat >>confdefs.h <<_ACEOF 20344#define uint32_t $ac_cv_c_uint32_t 20345_ACEOF 20346;; 20347 esac 20348 20349ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 20350case $ac_cv_c_int64_t in #( 20351 no|yes) ;; #( 20352 *) 20353 20354cat >>confdefs.h <<_ACEOF 20355#define int64_t $ac_cv_c_int64_t 20356_ACEOF 20357;; 20358esac 20359 20360ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 20361case $ac_cv_c_uint64_t in #( 20362 no|yes) ;; #( 20363 *) 20364 20365$as_echo "#define _UINT64_T 1" >>confdefs.h 20366 20367 20368cat >>confdefs.h <<_ACEOF 20369#define uint64_t $ac_cv_c_uint64_t 20370_ACEOF 20371;; 20372 esac 20373 20374 20375 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 20376if test "x$ac_cv_type_intptr_t" = xyes; then : 20377 20378$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 20379 20380else 20381 for ac_type in 'int' 'long int' 'long long int'; do 20382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20383/* end confdefs.h. */ 20384$ac_includes_default 20385int 20386main () 20387{ 20388static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 20389test_array [0] = 0; 20390return test_array [0]; 20391 20392 ; 20393 return 0; 20394} 20395_ACEOF 20396if ac_fn_c_try_compile "$LINENO"; then : 20397 20398cat >>confdefs.h <<_ACEOF 20399#define intptr_t $ac_type 20400_ACEOF 20401 20402 ac_type= 20403fi 20404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20405 test -z "$ac_type" && break 20406 done 20407fi 20408 20409 20410 20411 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 20412if test "x$ac_cv_type_uintptr_t" = xyes; then : 20413 20414$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 20415 20416else 20417 for ac_type in 'unsigned int' 'unsigned long int' \ 20418 'unsigned long long int'; do 20419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20420/* end confdefs.h. */ 20421$ac_includes_default 20422int 20423main () 20424{ 20425static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 20426test_array [0] = 0; 20427return test_array [0]; 20428 20429 ; 20430 return 0; 20431} 20432_ACEOF 20433if ac_fn_c_try_compile "$LINENO"; then : 20434 20435cat >>confdefs.h <<_ACEOF 20436#define uintptr_t $ac_type 20437_ACEOF 20438 20439 ac_type= 20440fi 20441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20442 test -z "$ac_type" && break 20443 done 20444fi 20445 20446 20447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 20448$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 20449if ${ac_cv_type_uid_t+:} false; then : 20450 $as_echo_n "(cached) " >&6 20451else 20452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20453/* end confdefs.h. */ 20454#include <sys/types.h> 20455 20456_ACEOF 20457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20458 $EGREP "uid_t" >/dev/null 2>&1; then : 20459 ac_cv_type_uid_t=yes 20460else 20461 ac_cv_type_uid_t=no 20462fi 20463rm -f conftest* 20464 20465fi 20466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 20467$as_echo "$ac_cv_type_uid_t" >&6; } 20468if test $ac_cv_type_uid_t = no; then 20469 20470$as_echo "#define uid_t int" >>confdefs.h 20471 20472 20473$as_echo "#define gid_t int" >>confdefs.h 20474 20475fi 20476 20477ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 20478if test "x$ac_cv_type_mode_t" = xyes; then : 20479 20480else 20481 20482cat >>confdefs.h <<_ACEOF 20483#define mode_t int 20484_ACEOF 20485 20486fi 20487 20488ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 20489if test "x$ac_cv_type_off_t" = xyes; then : 20490 20491else 20492 20493cat >>confdefs.h <<_ACEOF 20494#define off_t long int 20495_ACEOF 20496 20497fi 20498 20499ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 20500if test "x$ac_cv_type_pid_t" = xyes; then : 20501 20502else 20503 20504cat >>confdefs.h <<_ACEOF 20505#define pid_t int 20506_ACEOF 20507 20508fi 20509 20510ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20511if test "x$ac_cv_type_size_t" = xyes; then : 20512 20513else 20514 20515cat >>confdefs.h <<_ACEOF 20516#define size_t unsigned int 20517_ACEOF 20518 20519fi 20520 20521ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 20522if test "x$ac_cv_type_ssize_t" = xyes; then : 20523 20524else 20525 20526cat >>confdefs.h <<_ACEOF 20527#define ssize_t int 20528_ACEOF 20529 20530fi 20531 20532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 20533$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 20534if ${ac_cv_header_time+:} false; then : 20535 $as_echo_n "(cached) " >&6 20536else 20537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20538/* end confdefs.h. */ 20539#include <sys/types.h> 20540#include <sys/time.h> 20541#include <time.h> 20542 20543int 20544main () 20545{ 20546if ((struct tm *) 0) 20547return 0; 20548 ; 20549 return 0; 20550} 20551_ACEOF 20552if ac_fn_c_try_compile "$LINENO"; then : 20553 ac_cv_header_time=yes 20554else 20555 ac_cv_header_time=no 20556fi 20557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20558fi 20559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 20560$as_echo "$ac_cv_header_time" >&6; } 20561if test $ac_cv_header_time = yes; then 20562 20563$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 20564 20565fi 20566 20567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 20568$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 20569if ${ac_cv_struct_tm+:} false; then : 20570 $as_echo_n "(cached) " >&6 20571else 20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20573/* end confdefs.h. */ 20574#include <sys/types.h> 20575#include <time.h> 20576 20577int 20578main () 20579{ 20580struct tm tm; 20581 int *p = &tm.tm_sec; 20582 return !p; 20583 ; 20584 return 0; 20585} 20586_ACEOF 20587if ac_fn_c_try_compile "$LINENO"; then : 20588 ac_cv_struct_tm=time.h 20589else 20590 ac_cv_struct_tm=sys/time.h 20591fi 20592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20593fi 20594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 20595$as_echo "$ac_cv_struct_tm" >&6; } 20596if test $ac_cv_struct_tm = sys/time.h; then 20597 20598$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 20599 20600fi 20601 20602 20603# Check for the various sub-second fields of the stat structure. 20604ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" 20605if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : 20606 20607cat >>confdefs.h <<_ACEOF 20608#define HAVE_STRUCT_STAT_ST_ATIM 1 20609_ACEOF 20610 20611 20612fi 20613ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default" 20614if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then : 20615 20616cat >>confdefs.h <<_ACEOF 20617#define HAVE_STRUCT_STAT_ST_ATIMESPEC 1 20618_ACEOF 20619 20620 20621fi 20622ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default" 20623if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then : 20624 20625cat >>confdefs.h <<_ACEOF 20626#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 20627_ACEOF 20628 20629 20630fi 20631ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "$ac_includes_default" 20632if test "x$ac_cv_member_struct_stat_st_atime_n" = xyes; then : 20633 20634cat >>confdefs.h <<_ACEOF 20635#define HAVE_STRUCT_STAT_ST_ATIME_N 1 20636_ACEOF 20637 20638 20639fi 20640ac_fn_c_check_member "$LINENO" "struct stat" "st_uatime" "ac_cv_member_struct_stat_st_uatime" "$ac_includes_default" 20641if test "x$ac_cv_member_struct_stat_st_uatime" = xyes; then : 20642 20643cat >>confdefs.h <<_ACEOF 20644#define HAVE_STRUCT_STAT_ST_UATIME 1 20645_ACEOF 20646 20647 20648fi 20649 20650 20651# Mac OS X, at any rate, needs signal.h to be included first. 20652ac_fn_c_check_type "$LINENO" "ucontext_t" "ac_cv_type_ucontext_t" "#include \"signal.h\" 20653#include \"ucontext.h\" 20654" 20655if test "x$ac_cv_type_ucontext_t" = xyes; then : 20656 20657cat >>confdefs.h <<_ACEOF 20658#define HAVE_UCONTEXT_T 1 20659_ACEOF 20660 20661 20662fi 20663 20664ac_fn_c_check_type "$LINENO" "struct sigcontext" "ac_cv_type_struct_sigcontext" "#include \"signal.h\" 20665" 20666if test "x$ac_cv_type_struct_sigcontext" = xyes; then : 20667 20668cat >>confdefs.h <<_ACEOF 20669#define HAVE_STRUCT_SIGCONTEXT 1 20670_ACEOF 20671 20672 20673fi 20674ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include \"signal.h\" 20675" 20676if test "x$ac_cv_type_stack_t" = xyes; then : 20677 20678cat >>confdefs.h <<_ACEOF 20679#define HAVE_STACK_T 1 20680_ACEOF 20681 20682 20683fi 20684ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "#include \"signal.h\" 20685" 20686if test "x$ac_cv_type_sighandler_t" = xyes; then : 20687 20688cat >>confdefs.h <<_ACEOF 20689#define HAVE_SIGHANDLER_T 1 20690_ACEOF 20691 20692 20693fi 20694ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include \"signal.h\" 20695" 20696if test "x$ac_cv_type_sig_t" = xyes; then : 20697 20698cat >>confdefs.h <<_ACEOF 20699#define HAVE_SIG_T 1 20700_ACEOF 20701 20702 20703fi 20704 20705ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include \"sys/types.h\" 20706#include \"sys/socket.h\" 20707" 20708if test "x$ac_cv_type_socklen_t" = xyes; then : 20709 20710cat >>confdefs.h <<_ACEOF 20711#define HAVE_SOCKLEN_T 1 20712_ACEOF 20713 20714 20715fi 20716 20717 20718ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "#include \"windows.h\" 20719" 20720if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" = xyes; then : 20721 20722cat >>confdefs.h <<_ACEOF 20723#define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION 1 20724_ACEOF 20725 20726 20727fi 20728 20729 20730ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 20731if test "x$ac_cv_type_long_long" = xyes; then : 20732 20733cat >>confdefs.h <<_ACEOF 20734#define HAVE_LONG_LONG 1 20735_ACEOF 20736 20737 20738fi 20739 20740ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 20741if test "x$ac_cv_type_ssize_t" = xyes; then : 20742 20743cat >>confdefs.h <<_ACEOF 20744#define HAVE_SSIZE_T 1 20745_ACEOF 20746 20747 20748fi 20749 20750 20751# The cast to long int works around a bug in the HP C Compiler 20752# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20753# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20754# This bug is HP SR number 8606223364. 20755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 20756$as_echo_n "checking size of void*... " >&6; } 20757if ${ac_cv_sizeof_voidp+:} false; then : 20758 $as_echo_n "(cached) " >&6 20759else 20760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 20761 20762else 20763 if test "$ac_cv_type_voidp" = yes; then 20764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20766as_fn_error 77 "cannot compute sizeof (void*) 20767See \`config.log' for more details" "$LINENO" 5; } 20768 else 20769 ac_cv_sizeof_voidp=0 20770 fi 20771fi 20772 20773fi 20774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 20775$as_echo "$ac_cv_sizeof_voidp" >&6; } 20776 20777 20778 20779cat >>confdefs.h <<_ACEOF 20780#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 20781_ACEOF 20782 20783 20784# The cast to long int works around a bug in the HP C Compiler 20785# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20786# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20787# This bug is HP SR number 8606223364. 20788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 20789$as_echo_n "checking size of long... " >&6; } 20790if ${ac_cv_sizeof_long+:} false; then : 20791 $as_echo_n "(cached) " >&6 20792else 20793 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 20794 20795else 20796 if test "$ac_cv_type_long" = yes; then 20797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20799as_fn_error 77 "cannot compute sizeof (long) 20800See \`config.log' for more details" "$LINENO" 5; } 20801 else 20802 ac_cv_sizeof_long=0 20803 fi 20804fi 20805 20806fi 20807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 20808$as_echo "$ac_cv_sizeof_long" >&6; } 20809 20810 20811 20812cat >>confdefs.h <<_ACEOF 20813#define SIZEOF_LONG $ac_cv_sizeof_long 20814_ACEOF 20815 20816 20817# The cast to long int works around a bug in the HP C Compiler 20818# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20819# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20820# This bug is HP SR number 8606223364. 20821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 20822$as_echo_n "checking size of int... " >&6; } 20823if ${ac_cv_sizeof_int+:} false; then : 20824 $as_echo_n "(cached) " >&6 20825else 20826 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 20827 20828else 20829 if test "$ac_cv_type_int" = yes; then 20830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20832as_fn_error 77 "cannot compute sizeof (int) 20833See \`config.log' for more details" "$LINENO" 5; } 20834 else 20835 ac_cv_sizeof_int=0 20836 fi 20837fi 20838 20839fi 20840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 20841$as_echo "$ac_cv_sizeof_int" >&6; } 20842 20843 20844 20845cat >>confdefs.h <<_ACEOF 20846#define SIZEOF_INT $ac_cv_sizeof_int 20847_ACEOF 20848 20849 20850# The cast to long int works around a bug in the HP C Compiler 20851# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20852# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20853# This bug is HP SR number 8606223364. 20854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 20855$as_echo_n "checking size of long long... " >&6; } 20856if ${ac_cv_sizeof_long_long+:} false; then : 20857 $as_echo_n "(cached) " >&6 20858else 20859 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 20860 20861else 20862 if test "$ac_cv_type_long_long" = yes; then 20863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20865as_fn_error 77 "cannot compute sizeof (long long) 20866See \`config.log' for more details" "$LINENO" 5; } 20867 else 20868 ac_cv_sizeof_long_long=0 20869 fi 20870fi 20871 20872fi 20873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 20874$as_echo "$ac_cv_sizeof_long_long" >&6; } 20875 20876 20877 20878cat >>confdefs.h <<_ACEOF 20879#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 20880_ACEOF 20881 20882 20883# The cast to long int works around a bug in the HP C Compiler 20884# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20885# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20886# This bug is HP SR number 8606223364. 20887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 20888$as_echo_n "checking size of double... " >&6; } 20889if ${ac_cv_sizeof_double+:} false; then : 20890 $as_echo_n "(cached) " >&6 20891else 20892 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 20893 20894else 20895 if test "$ac_cv_type_double" = yes; then 20896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20898as_fn_error 77 "cannot compute sizeof (double) 20899See \`config.log' for more details" "$LINENO" 5; } 20900 else 20901 ac_cv_sizeof_double=0 20902 fi 20903fi 20904 20905fi 20906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 20907$as_echo "$ac_cv_sizeof_double" >&6; } 20908 20909 20910 20911cat >>confdefs.h <<_ACEOF 20912#define SIZEOF_DOUBLE $ac_cv_sizeof_double 20913_ACEOF 20914 20915 20916# The cast to long int works around a bug in the HP C Compiler 20917# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20918# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20919# This bug is HP SR number 8606223364. 20920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 20921$as_echo_n "checking size of float... " >&6; } 20922if ${ac_cv_sizeof_float+:} false; then : 20923 $as_echo_n "(cached) " >&6 20924else 20925 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 20926 20927else 20928 if test "$ac_cv_type_float" = yes; then 20929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20931as_fn_error 77 "cannot compute sizeof (float) 20932See \`config.log' for more details" "$LINENO" 5; } 20933 else 20934 ac_cv_sizeof_float=0 20935 fi 20936fi 20937 20938fi 20939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 20940$as_echo "$ac_cv_sizeof_float" >&6; } 20941 20942 20943 20944cat >>confdefs.h <<_ACEOF 20945#define SIZEOF_FLOAT $ac_cv_sizeof_float 20946_ACEOF 20947 20948 20949 20950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 20951$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 20952if ${ac_cv_c_bigendian+:} false; then : 20953 $as_echo_n "(cached) " >&6 20954else 20955 ac_cv_c_bigendian=unknown 20956 # See if we're dealing with a universal compiler. 20957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20958/* end confdefs.h. */ 20959#ifndef __APPLE_CC__ 20960 not a universal capable compiler 20961 #endif 20962 typedef int dummy; 20963 20964_ACEOF 20965if ac_fn_c_try_compile "$LINENO"; then : 20966 20967 # Check for potential -arch flags. It is not universal unless 20968 # there are at least two -arch flags with different values. 20969 ac_arch= 20970 ac_prev= 20971 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 20972 if test -n "$ac_prev"; then 20973 case $ac_word in 20974 i?86 | x86_64 | ppc | ppc64) 20975 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 20976 ac_arch=$ac_word 20977 else 20978 ac_cv_c_bigendian=universal 20979 break 20980 fi 20981 ;; 20982 esac 20983 ac_prev= 20984 elif test "x$ac_word" = "x-arch"; then 20985 ac_prev=arch 20986 fi 20987 done 20988fi 20989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20990 if test $ac_cv_c_bigendian = unknown; then 20991 # See if sys/param.h defines the BYTE_ORDER macro. 20992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20993/* end confdefs.h. */ 20994#include <sys/types.h> 20995 #include <sys/param.h> 20996 20997int 20998main () 20999{ 21000#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 21001 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 21002 && LITTLE_ENDIAN) 21003 bogus endian macros 21004 #endif 21005 21006 ; 21007 return 0; 21008} 21009_ACEOF 21010if ac_fn_c_try_compile "$LINENO"; then : 21011 # It does; now see whether it defined to BIG_ENDIAN or not. 21012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21013/* end confdefs.h. */ 21014#include <sys/types.h> 21015 #include <sys/param.h> 21016 21017int 21018main () 21019{ 21020#if BYTE_ORDER != BIG_ENDIAN 21021 not big endian 21022 #endif 21023 21024 ; 21025 return 0; 21026} 21027_ACEOF 21028if ac_fn_c_try_compile "$LINENO"; then : 21029 ac_cv_c_bigendian=yes 21030else 21031 ac_cv_c_bigendian=no 21032fi 21033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21034fi 21035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21036 fi 21037 if test $ac_cv_c_bigendian = unknown; then 21038 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 21039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21040/* end confdefs.h. */ 21041#include <limits.h> 21042 21043int 21044main () 21045{ 21046#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 21047 bogus endian macros 21048 #endif 21049 21050 ; 21051 return 0; 21052} 21053_ACEOF 21054if ac_fn_c_try_compile "$LINENO"; then : 21055 # It does; now see whether it defined to _BIG_ENDIAN or not. 21056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21057/* end confdefs.h. */ 21058#include <limits.h> 21059 21060int 21061main () 21062{ 21063#ifndef _BIG_ENDIAN 21064 not big endian 21065 #endif 21066 21067 ; 21068 return 0; 21069} 21070_ACEOF 21071if ac_fn_c_try_compile "$LINENO"; then : 21072 ac_cv_c_bigendian=yes 21073else 21074 ac_cv_c_bigendian=no 21075fi 21076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21077fi 21078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21079 fi 21080 if test $ac_cv_c_bigendian = unknown; then 21081 # Compile a test program. 21082 if test "$cross_compiling" = yes; then : 21083 # Try to guess by grepping values from an object file. 21084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21085/* end confdefs.h. */ 21086short int ascii_mm[] = 21087 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 21088 short int ascii_ii[] = 21089 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 21090 int use_ascii (int i) { 21091 return ascii_mm[i] + ascii_ii[i]; 21092 } 21093 short int ebcdic_ii[] = 21094 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 21095 short int ebcdic_mm[] = 21096 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 21097 int use_ebcdic (int i) { 21098 return ebcdic_mm[i] + ebcdic_ii[i]; 21099 } 21100 extern int foo; 21101 21102int 21103main () 21104{ 21105return use_ascii (foo) == use_ebcdic (foo); 21106 ; 21107 return 0; 21108} 21109_ACEOF 21110if ac_fn_c_try_compile "$LINENO"; then : 21111 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 21112 ac_cv_c_bigendian=yes 21113 fi 21114 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 21115 if test "$ac_cv_c_bigendian" = unknown; then 21116 ac_cv_c_bigendian=no 21117 else 21118 # finding both strings is unlikely to happen, but who knows? 21119 ac_cv_c_bigendian=unknown 21120 fi 21121 fi 21122fi 21123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21124else 21125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21126/* end confdefs.h. */ 21127$ac_includes_default 21128int 21129main () 21130{ 21131 21132 /* Are we little or big endian? From Harbison&Steele. */ 21133 union 21134 { 21135 long int l; 21136 char c[sizeof (long int)]; 21137 } u; 21138 u.l = 1; 21139 return u.c[sizeof (long int) - 1] == 1; 21140 21141 ; 21142 return 0; 21143} 21144_ACEOF 21145if ac_fn_c_try_run "$LINENO"; then : 21146 ac_cv_c_bigendian=no 21147else 21148 ac_cv_c_bigendian=yes 21149fi 21150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21151 conftest.$ac_objext conftest.beam conftest.$ac_ext 21152fi 21153 21154 fi 21155fi 21156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 21157$as_echo "$ac_cv_c_bigendian" >&6; } 21158 case $ac_cv_c_bigendian in #( 21159 yes) 21160 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 21161;; #( 21162 no) 21163 ;; #( 21164 universal) 21165 21166$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 21167 21168 ;; #( 21169 *) 21170 as_fn_error $? "unknown endianness 21171 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 21172 esac 21173 21174 21175# Checks for library functions. 21176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 21177$as_echo_n "checking for error_at_line... " >&6; } 21178if ${ac_cv_lib_error_at_line+:} false; then : 21179 $as_echo_n "(cached) " >&6 21180else 21181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21182/* end confdefs.h. */ 21183#include <error.h> 21184int 21185main () 21186{ 21187error_at_line (0, 0, "", 0, "an error occurred"); 21188 ; 21189 return 0; 21190} 21191_ACEOF 21192if ac_fn_c_try_link "$LINENO"; then : 21193 ac_cv_lib_error_at_line=yes 21194else 21195 ac_cv_lib_error_at_line=no 21196fi 21197rm -f core conftest.err conftest.$ac_objext \ 21198 conftest$ac_exeext conftest.$ac_ext 21199fi 21200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 21201$as_echo "$ac_cv_lib_error_at_line" >&6; } 21202if test $ac_cv_lib_error_at_line = no; then 21203 case " $LIBOBJS " in 21204 *" error.$ac_objext "* ) ;; 21205 *) LIBOBJS="$LIBOBJS error.$ac_objext" 21206 ;; 21207esac 21208 21209fi 21210 21211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 21212$as_echo_n "checking type of array argument to getgroups... " >&6; } 21213if ${ac_cv_type_getgroups+:} false; then : 21214 $as_echo_n "(cached) " >&6 21215else 21216 if test "$cross_compiling" = yes; then : 21217 ac_cv_type_getgroups=cross 21218else 21219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21220/* end confdefs.h. */ 21221/* Thanks to Mike Rendell for this test. */ 21222$ac_includes_default 21223#define NGID 256 21224#undef MAX 21225#define MAX(x, y) ((x) > (y) ? (x) : (y)) 21226 21227int 21228main () 21229{ 21230 gid_t gidset[NGID]; 21231 int i, n; 21232 union { gid_t gval; long int lval; } val; 21233 21234 val.lval = -1; 21235 for (i = 0; i < NGID; i++) 21236 gidset[i] = val.gval; 21237 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, 21238 gidset); 21239 /* Exit non-zero if getgroups seems to require an array of ints. This 21240 happens when gid_t is short int but getgroups modifies an array 21241 of ints. */ 21242 return n > 0 && gidset[n] != val.gval; 21243} 21244_ACEOF 21245if ac_fn_c_try_run "$LINENO"; then : 21246 ac_cv_type_getgroups=gid_t 21247else 21248 ac_cv_type_getgroups=int 21249fi 21250rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21251 conftest.$ac_objext conftest.beam conftest.$ac_ext 21252fi 21253 21254if test $ac_cv_type_getgroups = cross; then 21255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21256/* end confdefs.h. */ 21257#include <unistd.h> 21258 21259_ACEOF 21260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21261 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : 21262 ac_cv_type_getgroups=gid_t 21263else 21264 ac_cv_type_getgroups=int 21265fi 21266rm -f conftest* 21267 21268fi 21269fi 21270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 21271$as_echo "$ac_cv_type_getgroups" >&6; } 21272 21273cat >>confdefs.h <<_ACEOF 21274#define GETGROUPS_T $ac_cv_type_getgroups 21275_ACEOF 21276 21277 21278ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups" 21279if test "x$ac_cv_func_getgroups" = xyes; then : 21280 21281fi 21282 21283 21284# If we don't yet have getgroups, see if it's in -lbsd. 21285# This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1. 21286ac_save_LIBS=$LIBS 21287if test $ac_cv_func_getgroups = no; then 21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5 21289$as_echo_n "checking for getgroups in -lbsd... " >&6; } 21290if ${ac_cv_lib_bsd_getgroups+:} false; then : 21291 $as_echo_n "(cached) " >&6 21292else 21293 ac_check_lib_save_LIBS=$LIBS 21294LIBS="-lbsd $LIBS" 21295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21296/* end confdefs.h. */ 21297 21298/* Override any GCC internal prototype to avoid an error. 21299 Use char because int might match the return type of a GCC 21300 builtin and then its argument prototype would still apply. */ 21301#ifdef __cplusplus 21302extern "C" 21303#endif 21304char getgroups (); 21305int 21306main () 21307{ 21308return getgroups (); 21309 ; 21310 return 0; 21311} 21312_ACEOF 21313if ac_fn_c_try_link "$LINENO"; then : 21314 ac_cv_lib_bsd_getgroups=yes 21315else 21316 ac_cv_lib_bsd_getgroups=no 21317fi 21318rm -f core conftest.err conftest.$ac_objext \ 21319 conftest$ac_exeext conftest.$ac_ext 21320LIBS=$ac_check_lib_save_LIBS 21321fi 21322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5 21323$as_echo "$ac_cv_lib_bsd_getgroups" >&6; } 21324if test "x$ac_cv_lib_bsd_getgroups" = xyes; then : 21325 GETGROUPS_LIB=-lbsd 21326fi 21327 21328fi 21329 21330# Run the program to test the functionality of the system-supplied 21331# getgroups function only if there is such a function. 21332if test $ac_cv_func_getgroups = yes; then 21333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5 21334$as_echo_n "checking for working getgroups... " >&6; } 21335if ${ac_cv_func_getgroups_works+:} false; then : 21336 $as_echo_n "(cached) " >&6 21337else 21338 if test "$cross_compiling" = yes; then : 21339 ac_cv_func_getgroups_works=no 21340else 21341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21342/* end confdefs.h. */ 21343$ac_includes_default 21344int 21345main () 21346{ 21347/* On Ultrix 4.3, getgroups (0, 0) always fails. */ 21348 return getgroups (0, 0) == -1; 21349 ; 21350 return 0; 21351} 21352_ACEOF 21353if ac_fn_c_try_run "$LINENO"; then : 21354 ac_cv_func_getgroups_works=yes 21355else 21356 ac_cv_func_getgroups_works=no 21357fi 21358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21359 conftest.$ac_objext conftest.beam conftest.$ac_ext 21360fi 21361 21362 21363fi 21364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5 21365$as_echo "$ac_cv_func_getgroups_works" >&6; } 21366else 21367 ac_cv_func_getgroups_works=no 21368fi 21369if test $ac_cv_func_getgroups_works = yes; then 21370 21371$as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h 21372 21373fi 21374LIBS=$ac_save_LIBS 21375 21376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 21377$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 21378if ${ac_cv_func_getpgrp_void+:} false; then : 21379 $as_echo_n "(cached) " >&6 21380else 21381 # Use it with a single arg. 21382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21383/* end confdefs.h. */ 21384$ac_includes_default 21385int 21386main () 21387{ 21388getpgrp (0); 21389 ; 21390 return 0; 21391} 21392_ACEOF 21393if ac_fn_c_try_compile "$LINENO"; then : 21394 ac_cv_func_getpgrp_void=no 21395else 21396 ac_cv_func_getpgrp_void=yes 21397fi 21398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21399 21400fi 21401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 21402$as_echo "$ac_cv_func_getpgrp_void" >&6; } 21403if test $ac_cv_func_getpgrp_void = yes; then 21404 21405$as_echo "#define GETPGRP_VOID 1" >>confdefs.h 21406 21407fi 21408 21409if test $ac_cv_c_compiler_gnu = yes; then 21410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 21411$as_echo_n "checking whether $CC needs -traditional... " >&6; } 21412if ${ac_cv_prog_gcc_traditional+:} false; then : 21413 $as_echo_n "(cached) " >&6 21414else 21415 ac_pattern="Autoconf.*'x'" 21416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21417/* end confdefs.h. */ 21418#include <sgtty.h> 21419Autoconf TIOCGETP 21420_ACEOF 21421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21422 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 21423 ac_cv_prog_gcc_traditional=yes 21424else 21425 ac_cv_prog_gcc_traditional=no 21426fi 21427rm -f conftest* 21428 21429 21430 if test $ac_cv_prog_gcc_traditional = no; then 21431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21432/* end confdefs.h. */ 21433#include <termio.h> 21434Autoconf TCGETA 21435_ACEOF 21436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21437 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 21438 ac_cv_prog_gcc_traditional=yes 21439fi 21440rm -f conftest* 21441 21442 fi 21443fi 21444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 21445$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 21446 if test $ac_cv_prog_gcc_traditional = yes; then 21447 CC="$CC -traditional" 21448 fi 21449fi 21450 21451for ac_header in sys/select.h sys/socket.h 21452do : 21453 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21454ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21455if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21456 cat >>confdefs.h <<_ACEOF 21457#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21458_ACEOF 21459 21460fi 21461 21462done 21463 21464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 21465$as_echo_n "checking types of arguments for select... " >&6; } 21466if ${ac_cv_func_select_args+:} false; then : 21467 $as_echo_n "(cached) " >&6 21468else 21469 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 21470 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 21471 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 21472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21473/* end confdefs.h. */ 21474$ac_includes_default 21475#ifdef HAVE_SYS_SELECT_H 21476# include <sys/select.h> 21477#endif 21478#ifdef HAVE_SYS_SOCKET_H 21479# include <sys/socket.h> 21480#endif 21481 21482int 21483main () 21484{ 21485extern int select ($ac_arg1, 21486 $ac_arg234, $ac_arg234, $ac_arg234, 21487 $ac_arg5); 21488 ; 21489 return 0; 21490} 21491_ACEOF 21492if ac_fn_c_try_compile "$LINENO"; then : 21493 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 21494fi 21495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21496 done 21497 done 21498done 21499# Provide a safe default value. 21500: "${ac_cv_func_select_args=int,int *,struct timeval *}" 21501 21502fi 21503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 21504$as_echo "$ac_cv_func_select_args" >&6; } 21505ac_save_IFS=$IFS; IFS=',' 21506set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 21507IFS=$ac_save_IFS 21508shift 21509 21510cat >>confdefs.h <<_ACEOF 21511#define SELECT_TYPE_ARG1 $1 21512_ACEOF 21513 21514 21515cat >>confdefs.h <<_ACEOF 21516#define SELECT_TYPE_ARG234 ($2) 21517_ACEOF 21518 21519 21520cat >>confdefs.h <<_ACEOF 21521#define SELECT_TYPE_ARG5 ($3) 21522_ACEOF 21523 21524rm -f conftest* 21525 21526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 21527$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 21528if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 21529 $as_echo_n "(cached) " >&6 21530else 21531 rm -f conftest.sym conftest.file 21532echo >conftest.file 21533if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 21534 if test "$cross_compiling" = yes; then : 21535 ac_cv_func_lstat_dereferences_slashed_symlink=no 21536else 21537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21538/* end confdefs.h. */ 21539$ac_includes_default 21540int 21541main () 21542{ 21543struct stat sbuf; 21544 /* Linux will dereference the symlink and fail, as required by POSIX. 21545 That is better in the sense that it means we will not 21546 have to compile and use the lstat wrapper. */ 21547 return lstat ("conftest.sym/", &sbuf) == 0; 21548 ; 21549 return 0; 21550} 21551_ACEOF 21552if ac_fn_c_try_run "$LINENO"; then : 21553 ac_cv_func_lstat_dereferences_slashed_symlink=yes 21554else 21555 ac_cv_func_lstat_dereferences_slashed_symlink=no 21556fi 21557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21558 conftest.$ac_objext conftest.beam conftest.$ac_ext 21559fi 21560 21561else 21562 # If the `ln -s' command failed, then we probably don't even 21563 # have an lstat function. 21564 ac_cv_func_lstat_dereferences_slashed_symlink=no 21565fi 21566rm -f conftest.sym conftest.file 21567 21568fi 21569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 21570$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 21571 21572test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 21573 21574cat >>confdefs.h <<_ACEOF 21575#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 21576_ACEOF 21577 21578 21579if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 21580 case " $LIBOBJS " in 21581 *" lstat.$ac_objext "* ) ;; 21582 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 21583 ;; 21584esac 21585 21586fi 21587 21588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 21589$as_echo_n "checking whether stat accepts an empty string... " >&6; } 21590if ${ac_cv_func_stat_empty_string_bug+:} false; then : 21591 $as_echo_n "(cached) " >&6 21592else 21593 if test "$cross_compiling" = yes; then : 21594 ac_cv_func_stat_empty_string_bug=yes 21595else 21596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21597/* end confdefs.h. */ 21598$ac_includes_default 21599int 21600main () 21601{ 21602struct stat sbuf; 21603 return stat ("", &sbuf) == 0; 21604 ; 21605 return 0; 21606} 21607_ACEOF 21608if ac_fn_c_try_run "$LINENO"; then : 21609 ac_cv_func_stat_empty_string_bug=no 21610else 21611 ac_cv_func_stat_empty_string_bug=yes 21612fi 21613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21614 conftest.$ac_objext conftest.beam conftest.$ac_ext 21615fi 21616 21617fi 21618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 21619$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 21620if test $ac_cv_func_stat_empty_string_bug = yes; then 21621 case " $LIBOBJS " in 21622 *" stat.$ac_objext "* ) ;; 21623 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 21624 ;; 21625esac 21626 21627 21628cat >>confdefs.h <<_ACEOF 21629#define HAVE_STAT_EMPTY_STRING_BUG 1 21630_ACEOF 21631 21632fi 21633 21634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 21635$as_echo_n "checking for working strtod... " >&6; } 21636if ${ac_cv_func_strtod+:} false; then : 21637 $as_echo_n "(cached) " >&6 21638else 21639 if test "$cross_compiling" = yes; then : 21640 ac_cv_func_strtod=no 21641else 21642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21643/* end confdefs.h. */ 21644 21645$ac_includes_default 21646#ifndef strtod 21647double strtod (); 21648#endif 21649int 21650main() 21651{ 21652 { 21653 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 21654 char *string = " +69"; 21655 char *term; 21656 double value; 21657 value = strtod (string, &term); 21658 if (value != 69 || term != (string + 4)) 21659 return 1; 21660 } 21661 21662 { 21663 /* Under Solaris 2.4, strtod returns the wrong value for the 21664 terminating character under some conditions. */ 21665 char *string = "NaN"; 21666 char *term; 21667 strtod (string, &term); 21668 if (term != string && *(term - 1) == 0) 21669 return 1; 21670 } 21671 return 0; 21672} 21673 21674_ACEOF 21675if ac_fn_c_try_run "$LINENO"; then : 21676 ac_cv_func_strtod=yes 21677else 21678 ac_cv_func_strtod=no 21679fi 21680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21681 conftest.$ac_objext conftest.beam conftest.$ac_ext 21682fi 21683 21684fi 21685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 21686$as_echo "$ac_cv_func_strtod" >&6; } 21687if test $ac_cv_func_strtod = no; then 21688 case " $LIBOBJS " in 21689 *" strtod.$ac_objext "* ) ;; 21690 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 21691 ;; 21692esac 21693 21694ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 21695if test "x$ac_cv_func_pow" = xyes; then : 21696 21697fi 21698 21699if test $ac_cv_func_pow = no; then 21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 21701$as_echo_n "checking for pow in -lm... " >&6; } 21702if ${ac_cv_lib_m_pow+:} false; then : 21703 $as_echo_n "(cached) " >&6 21704else 21705 ac_check_lib_save_LIBS=$LIBS 21706LIBS="-lm $LIBS" 21707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21708/* end confdefs.h. */ 21709 21710/* Override any GCC internal prototype to avoid an error. 21711 Use char because int might match the return type of a GCC 21712 builtin and then its argument prototype would still apply. */ 21713#ifdef __cplusplus 21714extern "C" 21715#endif 21716char pow (); 21717int 21718main () 21719{ 21720return pow (); 21721 ; 21722 return 0; 21723} 21724_ACEOF 21725if ac_fn_c_try_link "$LINENO"; then : 21726 ac_cv_lib_m_pow=yes 21727else 21728 ac_cv_lib_m_pow=no 21729fi 21730rm -f core conftest.err conftest.$ac_objext \ 21731 conftest$ac_exeext conftest.$ac_ext 21732LIBS=$ac_check_lib_save_LIBS 21733fi 21734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 21735$as_echo "$ac_cv_lib_m_pow" >&6; } 21736if test "x$ac_cv_lib_m_pow" = xyes; then : 21737 POW_LIB=-lm 21738else 21739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 21740$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 21741fi 21742 21743fi 21744 21745fi 21746 21747for ac_func in dlopen strtod dtoa getpagesize sigaltstack mmap mkstemp 21748do : 21749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21750ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21751if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21752 cat >>confdefs.h <<_ACEOF 21753#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21754_ACEOF 21755 21756fi 21757done 21758 21759## There does not seem to be a declaration for fpsetmask in mingw64. 21760ac_fn_c_check_decl "$LINENO" "fpsetmask" "ac_cv_have_decl_fpsetmask" "#include <ieeefp.h> 21761" 21762if test "x$ac_cv_have_decl_fpsetmask" = xyes; then : 21763 ac_have_decl=1 21764else 21765 ac_have_decl=0 21766fi 21767 21768cat >>confdefs.h <<_ACEOF 21769#define HAVE_DECL_FPSETMASK $ac_have_decl 21770_ACEOF 21771 21772for ac_func in sysctl sysctlbyname 21773do : 21774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21775ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21776if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21777 cat >>confdefs.h <<_ACEOF 21778#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21779_ACEOF 21780 21781fi 21782done 21783 21784for ac_func in localtime_r gmtime_r 21785do : 21786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21787ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21788if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21789 cat >>confdefs.h <<_ACEOF 21790#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21791_ACEOF 21792 21793fi 21794done 21795 21796for ac_func in ctermid tcdrain 21797do : 21798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21799ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21800if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21801 cat >>confdefs.h <<_ACEOF 21802#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21803_ACEOF 21804 21805fi 21806done 21807 21808for ac_func in _ftelli64 21809do : 21810 ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64" 21811if test "x$ac_cv_func__ftelli64" = xyes; then : 21812 cat >>confdefs.h <<_ACEOF 21813#define HAVE__FTELLI64 1 21814_ACEOF 21815 21816fi 21817done 21818 21819 21820# Where are the registers when we get a signal? Used in time profiling. 21821#Linux: 21822ac_fn_c_check_member "$LINENO" "mcontext_t" "gregs" "ac_cv_member_mcontext_t_gregs" "#include \"ucontext.h\" 21823" 21824if test "x$ac_cv_member_mcontext_t_gregs" = xyes; then : 21825 21826cat >>confdefs.h <<_ACEOF 21827#define HAVE_MCONTEXT_T_GREGS 1 21828_ACEOF 21829 21830 21831fi 21832ac_fn_c_check_member "$LINENO" "mcontext_t" "regs" "ac_cv_member_mcontext_t_regs" "#include \"ucontext.h\" 21833" 21834if test "x$ac_cv_member_mcontext_t_regs" = xyes; then : 21835 21836cat >>confdefs.h <<_ACEOF 21837#define HAVE_MCONTEXT_T_REGS 1 21838_ACEOF 21839 21840 21841fi 21842ac_fn_c_check_member "$LINENO" "mcontext_t" "mc_esp" "ac_cv_member_mcontext_t_mc_esp" "#include \"ucontext.h\" 21843" 21844if test "x$ac_cv_member_mcontext_t_mc_esp" = xyes; then : 21845 21846cat >>confdefs.h <<_ACEOF 21847#define HAVE_MCONTEXT_T_MC_ESP 1 21848_ACEOF 21849 21850 21851fi 21852 21853#Mac OS X: 21854ac_fn_c_check_member "$LINENO" "struct mcontext" "ss" "ac_cv_member_struct_mcontext_ss" "#include \"signal.h\" 21855#include \"ucontext.h\" 21856" 21857if test "x$ac_cv_member_struct_mcontext_ss" = xyes; then : 21858 21859cat >>confdefs.h <<_ACEOF 21860#define HAVE_STRUCT_MCONTEXT_SS 1 21861_ACEOF 21862 21863 21864fi 21865ac_fn_c_check_member "$LINENO" "struct __darwin_mcontext" "ss" "ac_cv_member_struct___darwin_mcontext_ss" "#include \"signal.h\" 21866#include \"ucontext.h\" 21867" 21868if test "x$ac_cv_member_struct___darwin_mcontext_ss" = xyes; then : 21869 21870cat >>confdefs.h <<_ACEOF 21871#define HAVE_STRUCT___DARWIN_MCONTEXT_SS 1 21872_ACEOF 21873 21874 21875fi 21876ac_fn_c_check_member "$LINENO" "struct __darwin_mcontext" "__ss" "ac_cv_member_struct___darwin_mcontext___ss" "#include \"signal.h\" 21877#include \"ucontext.h\" 21878" 21879if test "x$ac_cv_member_struct___darwin_mcontext___ss" = xyes; then : 21880 21881cat >>confdefs.h <<_ACEOF 21882#define HAVE_STRUCT___DARWIN_MCONTEXT___SS 1 21883_ACEOF 21884 21885 21886fi 21887ac_fn_c_check_member "$LINENO" "struct __darwin_mcontext32" "ss" "ac_cv_member_struct___darwin_mcontext32_ss" "#include \"signal.h\" 21888#include \"ucontext.h\" 21889" 21890if test "x$ac_cv_member_struct___darwin_mcontext32_ss" = xyes; then : 21891 21892cat >>confdefs.h <<_ACEOF 21893#define HAVE_STRUCT___DARWIN_MCONTEXT32_SS 1 21894_ACEOF 21895 21896 21897fi 21898ac_fn_c_check_member "$LINENO" "struct __darwin_mcontext32" "__ss" "ac_cv_member_struct___darwin_mcontext32___ss" "#include \"signal.h\" 21899#include \"ucontext.h\" 21900" 21901if test "x$ac_cv_member_struct___darwin_mcontext32___ss" = xyes; then : 21902 21903cat >>confdefs.h <<_ACEOF 21904#define HAVE_STRUCT___DARWIN_MCONTEXT32___SS 1 21905_ACEOF 21906 21907 21908fi 21909ac_fn_c_check_member "$LINENO" "struct __darwin_mcontext64" "ss" "ac_cv_member_struct___darwin_mcontext64_ss" "#include \"signal.h\" 21910#include \"ucontext.h\" 21911" 21912if test "x$ac_cv_member_struct___darwin_mcontext64_ss" = xyes; then : 21913 21914cat >>confdefs.h <<_ACEOF 21915#define HAVE_STRUCT___DARWIN_MCONTEXT64_SS 1 21916_ACEOF 21917 21918 21919fi 21920ac_fn_c_check_member "$LINENO" "struct __darwin_mcontext64" "__ss" "ac_cv_member_struct___darwin_mcontext64___ss" "#include \"signal.h\" 21921#include \"ucontext.h\" 21922" 21923if test "x$ac_cv_member_struct___darwin_mcontext64___ss" = xyes; then : 21924 21925cat >>confdefs.h <<_ACEOF 21926#define HAVE_STRUCT___DARWIN_MCONTEXT64___SS 1 21927_ACEOF 21928 21929 21930fi 21931 21932 21933# FreeBSD includes a sun_len member in struct sockaddr_un 21934ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/un.h> 21935" 21936if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 21937 21938cat >>confdefs.h <<_ACEOF 21939#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 21940_ACEOF 21941 21942 21943fi 21944 21945 21946# This option enables the native code generator. More precisely it allows 21947# the byte code interpreter to be built on X86. 21948 21949# Check whether --enable-native-codegeneration was given. 21950if test "${enable_native_codegeneration+set}" = set; then : 21951 enableval=$enable_native_codegeneration; case "${enableval}" in 21952 no) with_portable=yes ;; 21953 yes) with_portable=no ;; 21954 *) as_fn_error $? "bad value ${enableval} for --enable-native-codegeneration" "$LINENO" 5 ;; 21955 esac 21956else 21957 with_portable=check 21958fi 21959 21960 21961# Check which CPU we're building for. Can we use a native pre-built compiler 21962# or do we need to fall back to the interpreter? Most of these settings are to tweak 21963# the ELF exporter. 21964 21965case "${host_cpu}" in 21966 i[3456]86*) 21967 21968$as_echo "#define HOSTARCHITECTURE_X86 1" >>confdefs.h 21969 21970 polyarch=i386 21971 ;; 21972 x86_64* | amd64*) 21973 if test X"$ac_cv_sizeof_voidp" = X8; then 21974 21975$as_echo "#define HOSTARCHITECTURE_X86_64 1" >>confdefs.h 21976 21977 polyarch=x86_64 21978 else 21979 21980$as_echo "#define HOSTARCHITECTURE_X32 1" >>confdefs.h 21981 21982 polyarch=interpret 21983 fi 21984 ;; 21985 sparc64*) 21986 21987$as_echo "#define HOSTARCHITECTURE_SPARC64 1" >>confdefs.h 21988 21989 polyarch=interpret 21990 ;; 21991 sparc*) 21992 21993$as_echo "#define HOSTARCHITECTURE_SPARC 1" >>confdefs.h 21994 21995 polyarch=interpret 21996 ;; 21997 powerpc64* | ppc64*) 21998 21999$as_echo "#define HOSTARCHITECTURE_PPC64 1" >>confdefs.h 22000 22001 polyarch=interpret 22002 ;; 22003 power* | ppc*) 22004 22005$as_echo "#define HOSTARCHITECTURE_PPC 1" >>confdefs.h 22006 22007 polyarch=interpret 22008 ;; 22009 arm*) 22010 22011$as_echo "#define HOSTARCHITECTURE_ARM 1" >>confdefs.h 22012 22013 polyarch=interpret 22014 ;; 22015 aarch64*) 22016 22017$as_echo "#define HOSTARCHITECTURE_AARCH64 1" >>confdefs.h 22018 22019 polyarch=interpret 22020 ;; 22021 hppa*) 22022 22023$as_echo "#define HOSTARCHITECTURE_HPPA 1" >>confdefs.h 22024 22025 polyarch=interpret 22026 ;; 22027 ia64*) 22028 22029$as_echo "#define HOSTARCHITECTURE_IA64 1" >>confdefs.h 22030 22031 polyarch=interpret 22032 ;; 22033 m68k*) 22034 22035$as_echo "#define HOSTARCHITECTURE_M68K 1" >>confdefs.h 22036 22037 polyarch=interpret 22038 ;; 22039 mips64*) 22040 22041$as_echo "#define HOSTARCHITECTURE_MIPS64 1" >>confdefs.h 22042 22043 polyarch=interpret 22044 ;; 22045 mips*) 22046 22047$as_echo "#define HOSTARCHITECTURE_MIPS 1" >>confdefs.h 22048 22049 polyarch=interpret 22050 ;; 22051 s390x*) 22052 22053$as_echo "#define HOSTARCHITECTURE_S390X 1" >>confdefs.h 22054 22055 polyarch=interpret 22056 ;; 22057 s390*) 22058 22059$as_echo "#define HOSTARCHITECTURE_S390 1" >>confdefs.h 22060 22061 polyarch=interpret 22062 ;; 22063 sh*) 22064 22065$as_echo "#define HOSTARCHITECTURE_SH 1" >>confdefs.h 22066 22067 polyarch=interpret 22068 ;; 22069 alpha*) 22070 22071$as_echo "#define HOSTARCHITECTURE_ALPHA 1" >>confdefs.h 22072 22073 polyarch=interpret 22074 # GCC defaults to non-conforming floating-point, and does not respect the rounding mode 22075 # in the floating-point control register, so we force it to conform to IEEE and use the 22076 # dynamic suffix on the floating-point instructions it produces. 22077 CFLAGS="$CFLAGS -mieee -mfp-rounding-mode=d" 22078 CXXFLAGS="$CXXFLAGS -mieee -mfp-rounding-mode=d" 22079 ;; 22080 riscv32) 22081 22082$as_echo "#define HOSTARCHITECTURE_RISCV32 1" >>confdefs.h 22083 22084 polyarch=interpret 22085 ;; 22086 riscv64) 22087 22088$as_echo "#define HOSTARCHITECTURE_RISCV64 1" >>confdefs.h 22089 22090 polyarch=interpret 22091 ;; 22092 *) as_fn_error $? "Poly/ML is not supported for this architecture" "$LINENO" 5 ;; 22093esac 22094 22095# If we explicitly asked to use the interpreter set the architecture to interpreted. 22096if test "x$with_portable" = "xyes" ; then 22097 if test "x$polyarch" != "xinterpret" ; then 22098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *******You have disabled native code generation. Are you really sure you want to do that?*******" >&5 22099$as_echo "$as_me: WARNING: *******You have disabled native code generation. Are you really sure you want to do that?*******" >&2;} 22100 fi 22101 polyarch=interpret 22102fi 22103 22104# If we asked not to use the interpreter check we have native code support. 22105if test "x$with_portable" = "xno" ; then 22106 if test "x$polyarch" = "xinterpret" ; then 22107 as_fn_error $? "--enable-native-codegeneration was given but native code is not supported on this platform" "$LINENO" 5 22108 fi 22109fi 22110 22111# Check for libffi only if we're building the interpreted version 22112if test "x$polyarch" = "xinterpret" ; then 22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_closure_loc in -lffi" >&5 22114$as_echo_n "checking for ffi_prep_closure_loc in -lffi... " >&6; } 22115if ${ac_cv_lib_ffi_ffi_prep_closure_loc+:} false; then : 22116 $as_echo_n "(cached) " >&6 22117else 22118 ac_check_lib_save_LIBS=$LIBS 22119LIBS="-lffi $LIBS" 22120cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22121/* end confdefs.h. */ 22122 22123/* Override any GCC internal prototype to avoid an error. 22124 Use char because int might match the return type of a GCC 22125 builtin and then its argument prototype would still apply. */ 22126#ifdef __cplusplus 22127extern "C" 22128#endif 22129char ffi_prep_closure_loc (); 22130int 22131main () 22132{ 22133return ffi_prep_closure_loc (); 22134 ; 22135 return 0; 22136} 22137_ACEOF 22138if ac_fn_c_try_link "$LINENO"; then : 22139 ac_cv_lib_ffi_ffi_prep_closure_loc=yes 22140else 22141 ac_cv_lib_ffi_ffi_prep_closure_loc=no 22142fi 22143rm -f core conftest.err conftest.$ac_objext \ 22144 conftest$ac_exeext conftest.$ac_ext 22145LIBS=$ac_check_lib_save_LIBS 22146fi 22147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_prep_closure_loc" >&5 22148$as_echo "$ac_cv_lib_ffi_ffi_prep_closure_loc" >&6; } 22149if test "x$ac_cv_lib_ffi_ffi_prep_closure_loc" = xyes; then : 22150 cat >>confdefs.h <<_ACEOF 22151#define HAVE_LIBFFI 1 22152_ACEOF 22153 22154 LIBS="-lffi $LIBS" 22155 22156fi 22157 22158 for ac_header in ffi.h 22159do : 22160 ac_fn_c_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 22161if test "x$ac_cv_header_ffi_h" = xyes; then : 22162 cat >>confdefs.h <<_ACEOF 22163#define HAVE_FFI_H 1 22164_ACEOF 22165 22166fi 22167 22168done 22169 22170fi 22171 22172# Build 32-bit in 64-bits. This is only allowed when building on native 64-bit X86. 22173# Check whether --enable-compact32bit was given. 22174if test "${enable_compact32bit+set}" = set; then : 22175 enableval=$enable_compact32bit; 22176fi 22177 22178 22179if test "x$enable_compact32bit" = "xyes"; then 22180 if test X"$polyarch" = "Xx86_64" ; then 22181 22182$as_echo "#define POLYML32IN64 1" >>confdefs.h 22183 22184 polyarch=x86_32in64 22185 else 22186 as_fn_error $? "--enable-compact32bit is only available on X86/64" "$LINENO" 5 22187 fi 22188fi 22189 22190# Put this test at the end where it's less likely to be missed. 22191# If we're compiling on Cygwin (and mingw?) and /usr/bin/file is not present 22192# the link step will produce some strange warning messages of the form: 22193# "Warning: linker path does not have real file for library -lXXX". I think 22194# that's really a bug in autoconf but to explain what's happening to the user 22195# add a test here. 22196if test "$lt_cv_file_magic_cmd" = "func_win32_libid"; 22197then 22198 if test \! -x /usr/bin/file; 22199 then 22200 echo "" 22201 echo "*** Warning: You are building Poly/ML on Cygwin/Mingw but '/usr/bin/file' cannot be found." 22202 echo "*** You can still go ahead and build Poly/ML but libpolyml will not be built as a" 22203 echo "*** shared library and you may get strange warning messages from the linker step." 22204 echo "*** Install the 'file' package to correct this problem." 22205 echo "" 22206 fi 22207fi 22208 22209 if test "$polyarch" = i386; then 22210 ARCHI386_TRUE= 22211 ARCHI386_FALSE='#' 22212else 22213 ARCHI386_TRUE='#' 22214 ARCHI386_FALSE= 22215fi 22216 22217 if test "$polyarch" = x86_64; then 22218 ARCHX86_64_TRUE= 22219 ARCHX86_64_FALSE='#' 22220else 22221 ARCHX86_64_TRUE='#' 22222 ARCHX86_64_FALSE= 22223fi 22224 22225 if test "$polyarch" = interpret -a X"$ac_cv_sizeof_voidp" = X4; then 22226 ARCHINTERPRET_TRUE= 22227 ARCHINTERPRET_FALSE='#' 22228else 22229 ARCHINTERPRET_TRUE='#' 22230 ARCHINTERPRET_FALSE= 22231fi 22232 22233 if test "$polyarch" = interpret -a X"$ac_cv_sizeof_voidp" = X8; then 22234 ARCHINTERPRET64_TRUE= 22235 ARCHINTERPRET64_FALSE='#' 22236else 22237 ARCHINTERPRET64_TRUE='#' 22238 ARCHINTERPRET64_FALSE= 22239fi 22240 22241 if test "$polyarch" = x86_32in64; then 22242 ARCHX8632IN64_TRUE= 22243 ARCHX8632IN64_FALSE='#' 22244else 22245 ARCHX8632IN64_TRUE='#' 22246 ARCHX8632IN64_FALSE= 22247fi 22248 22249# If we are targeting Windows rather than *nix we need the pre=built compiler with Windows conventions. 22250 if test "$poly_use_windowscc" = yes; then 22251 WINDOWSCALLCONV_TRUE= 22252 WINDOWSCALLCONV_FALSE='#' 22253else 22254 WINDOWSCALLCONV_TRUE='#' 22255 WINDOWSCALLCONV_FALSE= 22256fi 22257 22258 22259# This is true if we are building for native Windows rather than Cygwin 22260 if test "$poly_native_windows" = yes; then 22261 NATIVE_WINDOWS_TRUE= 22262 NATIVE_WINDOWS_FALSE='#' 22263else 22264 NATIVE_WINDOWS_TRUE='#' 22265 NATIVE_WINDOWS_FALSE= 22266fi 22267 22268 if test "$poly_no_undefined" = yes; then 22269 NO_UNDEFINED_TRUE= 22270 NO_UNDEFINED_FALSE='#' 22271else 22272 NO_UNDEFINED_TRUE='#' 22273 NO_UNDEFINED_FALSE= 22274fi 22275 22276 if test x$poly_windows_enablegui = xtrue; then 22277 WINDOWSGUI_TRUE= 22278 WINDOWSGUI_FALSE='#' 22279else 22280 WINDOWSGUI_TRUE='#' 22281 WINDOWSGUI_FALSE= 22282fi 22283 22284 22285 if test "$poly_need_macosopt" = yes ; then 22286 MACOSLDOPTS_TRUE= 22287 MACOSLDOPTS_FALSE='#' 22288else 22289 MACOSLDOPTS_TRUE='#' 22290 MACOSLDOPTS_FALSE= 22291fi 22292 22293 22294# If we're building only the static version of libpolyml 22295# then polyc and polyml.pc have to include the dependent libraries. 22296dependentlibs="" 22297if test "${enable_shared}" != yes; then 22298 dependentlibs=${LIBS} 22299fi 22300 22301dependentlibs="$dependentlibs" 22302 22303 22304# Test whether this is a git directory and set the version if possible 22305# Extract the first word of "git", so it can be a program name with args. 22306set dummy git; ac_word=$2 22307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22308$as_echo_n "checking for $ac_word... " >&6; } 22309if ${ac_cv_prog_gitinstalled+:} false; then : 22310 $as_echo_n "(cached) " >&6 22311else 22312 if test -n "$gitinstalled"; then 22313 ac_cv_prog_gitinstalled="$gitinstalled" # Let the user override the test. 22314else 22315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22316for as_dir in $PATH 22317do 22318 IFS=$as_save_IFS 22319 test -z "$as_dir" && as_dir=. 22320 for ac_exec_ext in '' $ac_executable_extensions; do 22321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22322 ac_cv_prog_gitinstalled="yes" 22323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22324 break 2 22325 fi 22326done 22327 done 22328IFS=$as_save_IFS 22329 22330 test -z "$ac_cv_prog_gitinstalled" && ac_cv_prog_gitinstalled="no" 22331fi 22332fi 22333gitinstalled=$ac_cv_prog_gitinstalled 22334if test -n "$gitinstalled"; then 22335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gitinstalled" >&5 22336$as_echo "$gitinstalled" >&6; } 22337else 22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22339$as_echo "no" >&6; } 22340fi 22341 22342 22343if test X"$gitinstalled" = "Xyes" -a -d ".git"; then 22344 GIT_VERSION='-DGIT_VERSION=\"$(shell git describe --tags --always)\"' 22345 22346fi 22347 22348# Strip -fdebug-prefix-map= from CFLAGS; it's meaningless for users of polyc, 22349# and hurts reproducibility. 22350polyc_CFLAGS= 22351for cflag in $CFLAGS; do 22352 cflag="${cflag##-fdebug-prefix-map=*}" 22353 if test -n "$cflag"; then 22354 if test -n "$polyc_CFLAGS"; then 22355 polyc_CFLAGS="$polyc_CFLAGS $cflag" 22356 else 22357 polyc_CFLAGS="$cflag" 22358 fi 22359 fi 22360done 22361polyc_CFLAGS="$polyc_CFLAGS" 22362 22363 22364# Modules directory 22365 22366# Check whether --with-moduledir was given. 22367if test "${with_moduledir+set}" = set; then : 22368 withval=$with_moduledir; moduledir=$withval 22369else 22370 moduledir="\${libdir}/polyml/modules" 22371fi 22372 22373moduledir=$moduledir 22374 22375 22376# Control whether to build the basis library with arbitrary precision as the default int 22377# Check whether --enable-intinf-as-int was given. 22378if test "${enable_intinf_as_int+set}" = set; then : 22379 enableval=$enable_intinf_as_int; case "${enableval}" in 22380 no) intisintinf=no ;; 22381 yes) intisintinf=yes ;; 22382 *) as_fn_error $? "bad value ${enableval} for --enable-intinf-as-int" "$LINENO" 5 ;; 22383 esac 22384else 22385 intisintinf=no 22386fi 22387 22388 22389 if test "$intisintinf" = "yes"; then 22390 INTINFISINT_TRUE= 22391 INTINFISINT_FALSE='#' 22392else 22393 INTINFISINT_TRUE='#' 22394 INTINFISINT_FALSE= 22395fi 22396 22397 22398# These are needed for building in a separate build directory, as they are 22399# referenced from exportPoly.sml. 22400ac_config_commands="$ac_config_commands basis" 22401 22402ac_config_commands="$ac_config_commands mlsource" 22403 22404 22405ac_config_files="$ac_config_files Makefile libpolyml/Makefile libpolyml/polyml.pc libpolymain/Makefile modules/Makefile modules/IntInfAsInt/Makefile" 22406 22407ac_config_files="$ac_config_files polyc" 22408 22409 22410cat >confcache <<\_ACEOF 22411# This file is a shell script that caches the results of configure 22412# tests run on this system so they can be shared between configure 22413# scripts and configure runs, see configure's option --config-cache. 22414# It is not useful on other systems. If it contains results you don't 22415# want to keep, you may remove or edit it. 22416# 22417# config.status only pays attention to the cache file if you give it 22418# the --recheck option to rerun configure. 22419# 22420# `ac_cv_env_foo' variables (set or unset) will be overridden when 22421# loading this file, other *unset* `ac_cv_foo' will be assigned the 22422# following values. 22423 22424_ACEOF 22425 22426# The following way of writing the cache mishandles newlines in values, 22427# but we know of no workaround that is simple, portable, and efficient. 22428# So, we kill variables containing newlines. 22429# Ultrix sh set writes to stderr and can't be redirected directly, 22430# and sets the high bit in the cache file unless we assign to the vars. 22431( 22432 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22433 eval ac_val=\$$ac_var 22434 case $ac_val in #( 22435 *${as_nl}*) 22436 case $ac_var in #( 22437 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22438$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22439 esac 22440 case $ac_var in #( 22441 _ | IFS | as_nl) ;; #( 22442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22443 *) { eval $ac_var=; unset $ac_var;} ;; 22444 esac ;; 22445 esac 22446 done 22447 22448 (set) 2>&1 | 22449 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22450 *${as_nl}ac_space=\ *) 22451 # `set' does not quote correctly, so add quotes: double-quote 22452 # substitution turns \\\\ into \\, and sed turns \\ into \. 22453 sed -n \ 22454 "s/'/'\\\\''/g; 22455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22456 ;; #( 22457 *) 22458 # `set' quotes correctly as required by POSIX, so do not add quotes. 22459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22460 ;; 22461 esac | 22462 sort 22463) | 22464 sed ' 22465 /^ac_cv_env_/b end 22466 t clear 22467 :clear 22468 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22469 t end 22470 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22471 :end' >>confcache 22472if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22473 if test -w "$cache_file"; then 22474 if test "x$cache_file" != "x/dev/null"; then 22475 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22476$as_echo "$as_me: updating cache $cache_file" >&6;} 22477 if test ! -f "$cache_file" || test -h "$cache_file"; then 22478 cat confcache >"$cache_file" 22479 else 22480 case $cache_file in #( 22481 */* | ?:*) 22482 mv -f confcache "$cache_file"$$ && 22483 mv -f "$cache_file"$$ "$cache_file" ;; #( 22484 *) 22485 mv -f confcache "$cache_file" ;; 22486 esac 22487 fi 22488 fi 22489 else 22490 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22491$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22492 fi 22493fi 22494rm -f confcache 22495 22496test "x$prefix" = xNONE && prefix=$ac_default_prefix 22497# Let make expand exec_prefix. 22498test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22499 22500DEFS=-DHAVE_CONFIG_H 22501 22502ac_libobjs= 22503ac_ltlibobjs= 22504U= 22505for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22506 # 1. Remove the extension, and $U if already installed. 22507 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22508 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22509 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22510 # will be set to the directory where LIBOBJS objects are built. 22511 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22512 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22513done 22514LIBOBJS=$ac_libobjs 22515 22516LTLIBOBJS=$ac_ltlibobjs 22517 22518 22519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22520$as_echo_n "checking that generated files are newer than configure... " >&6; } 22521 if test -n "$am_sleep_pid"; then 22522 # Hide warnings about reused PIDs. 22523 wait $am_sleep_pid 2>/dev/null 22524 fi 22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 22526$as_echo "done" >&6; } 22527 if test -n "$EXEEXT"; then 22528 am__EXEEXT_TRUE= 22529 am__EXEEXT_FALSE='#' 22530else 22531 am__EXEEXT_TRUE='#' 22532 am__EXEEXT_FALSE= 22533fi 22534 22535if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22536 as_fn_error $? "conditional \"AMDEP\" was never defined. 22537Usually this means the macro was only invoked conditionally." "$LINENO" 5 22538fi 22539if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22540 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22541Usually this means the macro was only invoked conditionally." "$LINENO" 5 22542fi 22543if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22544 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 22545Usually this means the macro was only invoked conditionally." "$LINENO" 5 22546fi 22547if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22548 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 22549Usually this means the macro was only invoked conditionally." "$LINENO" 5 22550fi 22551if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22552 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22553Usually this means the macro was only invoked conditionally." "$LINENO" 5 22554fi 22555if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 22556 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 22557Usually this means the macro was only invoked conditionally." "$LINENO" 5 22558fi 22559if test -z "${EXPPECOFF_TRUE}" && test -z "${EXPPECOFF_FALSE}"; then 22560 as_fn_error $? "conditional \"EXPPECOFF\" was never defined. 22561Usually this means the macro was only invoked conditionally." "$LINENO" 5 22562fi 22563if test -z "${EXPELF_TRUE}" && test -z "${EXPELF_FALSE}"; then 22564 as_fn_error $? "conditional \"EXPELF\" was never defined. 22565Usually this means the macro was only invoked conditionally." "$LINENO" 5 22566fi 22567if test -z "${EXPMACHO_TRUE}" && test -z "${EXPMACHO_FALSE}"; then 22568 as_fn_error $? "conditional \"EXPMACHO\" was never defined. 22569Usually this means the macro was only invoked conditionally." "$LINENO" 5 22570fi 22571 22572if test -z "${ARCHI386_TRUE}" && test -z "${ARCHI386_FALSE}"; then 22573 as_fn_error $? "conditional \"ARCHI386\" was never defined. 22574Usually this means the macro was only invoked conditionally." "$LINENO" 5 22575fi 22576if test -z "${ARCHX86_64_TRUE}" && test -z "${ARCHX86_64_FALSE}"; then 22577 as_fn_error $? "conditional \"ARCHX86_64\" was never defined. 22578Usually this means the macro was only invoked conditionally." "$LINENO" 5 22579fi 22580if test -z "${ARCHINTERPRET_TRUE}" && test -z "${ARCHINTERPRET_FALSE}"; then 22581 as_fn_error $? "conditional \"ARCHINTERPRET\" was never defined. 22582Usually this means the macro was only invoked conditionally." "$LINENO" 5 22583fi 22584if test -z "${ARCHINTERPRET64_TRUE}" && test -z "${ARCHINTERPRET64_FALSE}"; then 22585 as_fn_error $? "conditional \"ARCHINTERPRET64\" was never defined. 22586Usually this means the macro was only invoked conditionally." "$LINENO" 5 22587fi 22588if test -z "${ARCHX8632IN64_TRUE}" && test -z "${ARCHX8632IN64_FALSE}"; then 22589 as_fn_error $? "conditional \"ARCHX8632IN64\" was never defined. 22590Usually this means the macro was only invoked conditionally." "$LINENO" 5 22591fi 22592if test -z "${WINDOWSCALLCONV_TRUE}" && test -z "${WINDOWSCALLCONV_FALSE}"; then 22593 as_fn_error $? "conditional \"WINDOWSCALLCONV\" was never defined. 22594Usually this means the macro was only invoked conditionally." "$LINENO" 5 22595fi 22596if test -z "${NATIVE_WINDOWS_TRUE}" && test -z "${NATIVE_WINDOWS_FALSE}"; then 22597 as_fn_error $? "conditional \"NATIVE_WINDOWS\" was never defined. 22598Usually this means the macro was only invoked conditionally." "$LINENO" 5 22599fi 22600if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then 22601 as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined. 22602Usually this means the macro was only invoked conditionally." "$LINENO" 5 22603fi 22604if test -z "${WINDOWSGUI_TRUE}" && test -z "${WINDOWSGUI_FALSE}"; then 22605 as_fn_error $? "conditional \"WINDOWSGUI\" was never defined. 22606Usually this means the macro was only invoked conditionally." "$LINENO" 5 22607fi 22608if test -z "${MACOSLDOPTS_TRUE}" && test -z "${MACOSLDOPTS_FALSE}"; then 22609 as_fn_error $? "conditional \"MACOSLDOPTS\" was never defined. 22610Usually this means the macro was only invoked conditionally." "$LINENO" 5 22611fi 22612if test -z "${INTINFISINT_TRUE}" && test -z "${INTINFISINT_FALSE}"; then 22613 as_fn_error $? "conditional \"INTINFISINT\" was never defined. 22614Usually this means the macro was only invoked conditionally." "$LINENO" 5 22615fi 22616 22617: "${CONFIG_STATUS=./config.status}" 22618ac_write_fail=0 22619ac_clean_files_save=$ac_clean_files 22620ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22621{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22622$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22623as_write_fail=0 22624cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22625#! $SHELL 22626# Generated by $as_me. 22627# Run this file to recreate the current configuration. 22628# Compiler output produced by configure, useful for debugging 22629# configure, is in config.log if it exists. 22630 22631debug=false 22632ac_cs_recheck=false 22633ac_cs_silent=false 22634 22635SHELL=\${CONFIG_SHELL-$SHELL} 22636export SHELL 22637_ASEOF 22638cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22639## -------------------- ## 22640## M4sh Initialization. ## 22641## -------------------- ## 22642 22643# Be more Bourne compatible 22644DUALCASE=1; export DUALCASE # for MKS sh 22645if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22646 emulate sh 22647 NULLCMD=: 22648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22649 # is contrary to our usage. Disable this feature. 22650 alias -g '${1+"$@"}'='"$@"' 22651 setopt NO_GLOB_SUBST 22652else 22653 case `(set -o) 2>/dev/null` in #( 22654 *posix*) : 22655 set -o posix ;; #( 22656 *) : 22657 ;; 22658esac 22659fi 22660 22661 22662as_nl=' 22663' 22664export as_nl 22665# Printing a long string crashes Solaris 7 /usr/bin/printf. 22666as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22667as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22668as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22669# Prefer a ksh shell builtin over an external printf program on Solaris, 22670# but without wasting forks for bash or zsh. 22671if test -z "$BASH_VERSION$ZSH_VERSION" \ 22672 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22673 as_echo='print -r --' 22674 as_echo_n='print -rn --' 22675elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22676 as_echo='printf %s\n' 22677 as_echo_n='printf %s' 22678else 22679 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22680 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22681 as_echo_n='/usr/ucb/echo -n' 22682 else 22683 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22684 as_echo_n_body='eval 22685 arg=$1; 22686 case $arg in #( 22687 *"$as_nl"*) 22688 expr "X$arg" : "X\\(.*\\)$as_nl"; 22689 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22690 esac; 22691 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22692 ' 22693 export as_echo_n_body 22694 as_echo_n='sh -c $as_echo_n_body as_echo' 22695 fi 22696 export as_echo_body 22697 as_echo='sh -c $as_echo_body as_echo' 22698fi 22699 22700# The user is always right. 22701if test "${PATH_SEPARATOR+set}" != set; then 22702 PATH_SEPARATOR=: 22703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22705 PATH_SEPARATOR=';' 22706 } 22707fi 22708 22709 22710# IFS 22711# We need space, tab and new line, in precisely that order. Quoting is 22712# there to prevent editors from complaining about space-tab. 22713# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22714# splitting by setting IFS to empty value.) 22715IFS=" "" $as_nl" 22716 22717# Find who we are. Look in the path if we contain no directory separator. 22718as_myself= 22719case $0 in #(( 22720 *[\\/]* ) as_myself=$0 ;; 22721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22722for as_dir in $PATH 22723do 22724 IFS=$as_save_IFS 22725 test -z "$as_dir" && as_dir=. 22726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22727 done 22728IFS=$as_save_IFS 22729 22730 ;; 22731esac 22732# We did not find ourselves, most probably we were run as `sh COMMAND' 22733# in which case we are not to be found in the path. 22734if test "x$as_myself" = x; then 22735 as_myself=$0 22736fi 22737if test ! -f "$as_myself"; then 22738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22739 exit 1 22740fi 22741 22742# Unset variables that we do not need and which cause bugs (e.g. in 22743# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22744# suppresses any "Segmentation fault" message there. '((' could 22745# trigger a bug in pdksh 5.2.14. 22746for as_var in BASH_ENV ENV MAIL MAILPATH 22747do eval test x\${$as_var+set} = xset \ 22748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22749done 22750PS1='$ ' 22751PS2='> ' 22752PS4='+ ' 22753 22754# NLS nuisances. 22755LC_ALL=C 22756export LC_ALL 22757LANGUAGE=C 22758export LANGUAGE 22759 22760# CDPATH. 22761(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22762 22763 22764# as_fn_error STATUS ERROR [LINENO LOG_FD] 22765# ---------------------------------------- 22766# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22767# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22768# script with STATUS, using 1 if that was 0. 22769as_fn_error () 22770{ 22771 as_status=$1; test $as_status -eq 0 && as_status=1 22772 if test "$4"; then 22773 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22775 fi 22776 $as_echo "$as_me: error: $2" >&2 22777 as_fn_exit $as_status 22778} # as_fn_error 22779 22780 22781# as_fn_set_status STATUS 22782# ----------------------- 22783# Set $? to STATUS, without forking. 22784as_fn_set_status () 22785{ 22786 return $1 22787} # as_fn_set_status 22788 22789# as_fn_exit STATUS 22790# ----------------- 22791# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22792as_fn_exit () 22793{ 22794 set +e 22795 as_fn_set_status $1 22796 exit $1 22797} # as_fn_exit 22798 22799# as_fn_unset VAR 22800# --------------- 22801# Portably unset VAR. 22802as_fn_unset () 22803{ 22804 { eval $1=; unset $1;} 22805} 22806as_unset=as_fn_unset 22807# as_fn_append VAR VALUE 22808# ---------------------- 22809# Append the text in VALUE to the end of the definition contained in VAR. Take 22810# advantage of any shell optimizations that allow amortized linear growth over 22811# repeated appends, instead of the typical quadratic growth present in naive 22812# implementations. 22813if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22814 eval 'as_fn_append () 22815 { 22816 eval $1+=\$2 22817 }' 22818else 22819 as_fn_append () 22820 { 22821 eval $1=\$$1\$2 22822 } 22823fi # as_fn_append 22824 22825# as_fn_arith ARG... 22826# ------------------ 22827# Perform arithmetic evaluation on the ARGs, and store the result in the 22828# global $as_val. Take advantage of shells that can avoid forks. The arguments 22829# must be portable across $(()) and expr. 22830if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22831 eval 'as_fn_arith () 22832 { 22833 as_val=$(( $* )) 22834 }' 22835else 22836 as_fn_arith () 22837 { 22838 as_val=`expr "$@" || test $? -eq 1` 22839 } 22840fi # as_fn_arith 22841 22842 22843if expr a : '\(a\)' >/dev/null 2>&1 && 22844 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22845 as_expr=expr 22846else 22847 as_expr=false 22848fi 22849 22850if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22851 as_basename=basename 22852else 22853 as_basename=false 22854fi 22855 22856if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22857 as_dirname=dirname 22858else 22859 as_dirname=false 22860fi 22861 22862as_me=`$as_basename -- "$0" || 22863$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22864 X"$0" : 'X\(//\)$' \| \ 22865 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22866$as_echo X/"$0" | 22867 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22868 s//\1/ 22869 q 22870 } 22871 /^X\/\(\/\/\)$/{ 22872 s//\1/ 22873 q 22874 } 22875 /^X\/\(\/\).*/{ 22876 s//\1/ 22877 q 22878 } 22879 s/.*/./; q'` 22880 22881# Avoid depending upon Character Ranges. 22882as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22883as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22884as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22885as_cr_digits='0123456789' 22886as_cr_alnum=$as_cr_Letters$as_cr_digits 22887 22888ECHO_C= ECHO_N= ECHO_T= 22889case `echo -n x` in #((((( 22890-n*) 22891 case `echo 'xy\c'` in 22892 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22893 xy) ECHO_C='\c';; 22894 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22895 ECHO_T=' ';; 22896 esac;; 22897*) 22898 ECHO_N='-n';; 22899esac 22900 22901rm -f conf$$ conf$$.exe conf$$.file 22902if test -d conf$$.dir; then 22903 rm -f conf$$.dir/conf$$.file 22904else 22905 rm -f conf$$.dir 22906 mkdir conf$$.dir 2>/dev/null 22907fi 22908if (echo >conf$$.file) 2>/dev/null; then 22909 if ln -s conf$$.file conf$$ 2>/dev/null; then 22910 as_ln_s='ln -s' 22911 # ... but there are two gotchas: 22912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22914 # In both cases, we have to default to `cp -pR'. 22915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22916 as_ln_s='cp -pR' 22917 elif ln conf$$.file conf$$ 2>/dev/null; then 22918 as_ln_s=ln 22919 else 22920 as_ln_s='cp -pR' 22921 fi 22922else 22923 as_ln_s='cp -pR' 22924fi 22925rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22926rmdir conf$$.dir 2>/dev/null 22927 22928 22929# as_fn_mkdir_p 22930# ------------- 22931# Create "$as_dir" as a directory, including parents if necessary. 22932as_fn_mkdir_p () 22933{ 22934 22935 case $as_dir in #( 22936 -*) as_dir=./$as_dir;; 22937 esac 22938 test -d "$as_dir" || eval $as_mkdir_p || { 22939 as_dirs= 22940 while :; do 22941 case $as_dir in #( 22942 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22943 *) as_qdir=$as_dir;; 22944 esac 22945 as_dirs="'$as_qdir' $as_dirs" 22946 as_dir=`$as_dirname -- "$as_dir" || 22947$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22948 X"$as_dir" : 'X\(//\)[^/]' \| \ 22949 X"$as_dir" : 'X\(//\)$' \| \ 22950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22951$as_echo X"$as_dir" | 22952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22953 s//\1/ 22954 q 22955 } 22956 /^X\(\/\/\)[^/].*/{ 22957 s//\1/ 22958 q 22959 } 22960 /^X\(\/\/\)$/{ 22961 s//\1/ 22962 q 22963 } 22964 /^X\(\/\).*/{ 22965 s//\1/ 22966 q 22967 } 22968 s/.*/./; q'` 22969 test -d "$as_dir" && break 22970 done 22971 test -z "$as_dirs" || eval "mkdir $as_dirs" 22972 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22973 22974 22975} # as_fn_mkdir_p 22976if mkdir -p . 2>/dev/null; then 22977 as_mkdir_p='mkdir -p "$as_dir"' 22978else 22979 test -d ./-p && rmdir ./-p 22980 as_mkdir_p=false 22981fi 22982 22983 22984# as_fn_executable_p FILE 22985# ----------------------- 22986# Test if FILE is an executable regular file. 22987as_fn_executable_p () 22988{ 22989 test -f "$1" && test -x "$1" 22990} # as_fn_executable_p 22991as_test_x='test -x' 22992as_executable_p=as_fn_executable_p 22993 22994# Sed expression to map a string onto a valid CPP name. 22995as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22996 22997# Sed expression to map a string onto a valid variable name. 22998as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22999 23000 23001exec 6>&1 23002## ----------------------------------- ## 23003## Main body of $CONFIG_STATUS script. ## 23004## ----------------------------------- ## 23005_ASEOF 23006test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 23007 23008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23009# Save the log message, to keep $0 and so on meaningful, and to 23010# report actual input values of CONFIG_FILES etc. instead of their 23011# values after options handling. 23012ac_log=" 23013This file was extended by Poly/ML $as_me 5.8.2, which was 23014generated by GNU Autoconf 2.69. Invocation command line was 23015 23016 CONFIG_FILES = $CONFIG_FILES 23017 CONFIG_HEADERS = $CONFIG_HEADERS 23018 CONFIG_LINKS = $CONFIG_LINKS 23019 CONFIG_COMMANDS = $CONFIG_COMMANDS 23020 $ $0 $@ 23021 23022on `(hostname || uname -n) 2>/dev/null | sed 1q` 23023" 23024 23025_ACEOF 23026 23027case $ac_config_files in *" 23028"*) set x $ac_config_files; shift; ac_config_files=$*;; 23029esac 23030 23031case $ac_config_headers in *" 23032"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23033esac 23034 23035 23036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23037# Files that config.status was made for. 23038config_files="$ac_config_files" 23039config_headers="$ac_config_headers" 23040config_commands="$ac_config_commands" 23041 23042_ACEOF 23043 23044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23045ac_cs_usage="\ 23046\`$as_me' instantiates files and other configuration actions 23047from templates according to the current configuration. Unless the files 23048and actions are specified as TAGs, all are instantiated by default. 23049 23050Usage: $0 [OPTION]... [TAG]... 23051 23052 -h, --help print this help, then exit 23053 -V, --version print version number and configuration settings, then exit 23054 --config print configuration, then exit 23055 -q, --quiet, --silent 23056 do not print progress messages 23057 -d, --debug don't remove temporary files 23058 --recheck update $as_me by reconfiguring in the same conditions 23059 --file=FILE[:TEMPLATE] 23060 instantiate the configuration file FILE 23061 --header=FILE[:TEMPLATE] 23062 instantiate the configuration header FILE 23063 23064Configuration files: 23065$config_files 23066 23067Configuration headers: 23068$config_headers 23069 23070Configuration commands: 23071$config_commands 23072 23073Report bugs to <polyml AT polyml DOT org>." 23074 23075_ACEOF 23076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23077ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 23078ac_cs_version="\\ 23079Poly/ML config.status 5.8.2 23080configured by $0, generated by GNU Autoconf 2.69, 23081 with options \\"\$ac_cs_config\\" 23082 23083Copyright (C) 2012 Free Software Foundation, Inc. 23084This config.status script is free software; the Free Software Foundation 23085gives unlimited permission to copy, distribute and modify it." 23086 23087ac_pwd='$ac_pwd' 23088srcdir='$srcdir' 23089INSTALL='$INSTALL' 23090MKDIR_P='$MKDIR_P' 23091AWK='$AWK' 23092test -n "\$AWK" || AWK=awk 23093_ACEOF 23094 23095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23096# The default lists apply if the user does not specify any file. 23097ac_need_defaults=: 23098while test $# != 0 23099do 23100 case $1 in 23101 --*=?*) 23102 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23103 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23104 ac_shift=: 23105 ;; 23106 --*=) 23107 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23108 ac_optarg= 23109 ac_shift=: 23110 ;; 23111 *) 23112 ac_option=$1 23113 ac_optarg=$2 23114 ac_shift=shift 23115 ;; 23116 esac 23117 23118 case $ac_option in 23119 # Handling of the options. 23120 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23121 ac_cs_recheck=: ;; 23122 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23123 $as_echo "$ac_cs_version"; exit ;; 23124 --config | --confi | --conf | --con | --co | --c ) 23125 $as_echo "$ac_cs_config"; exit ;; 23126 --debug | --debu | --deb | --de | --d | -d ) 23127 debug=: ;; 23128 --file | --fil | --fi | --f ) 23129 $ac_shift 23130 case $ac_optarg in 23131 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23132 '') as_fn_error $? "missing file argument" ;; 23133 esac 23134 as_fn_append CONFIG_FILES " '$ac_optarg'" 23135 ac_need_defaults=false;; 23136 --header | --heade | --head | --hea ) 23137 $ac_shift 23138 case $ac_optarg in 23139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23140 esac 23141 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 23142 ac_need_defaults=false;; 23143 --he | --h) 23144 # Conflict between --help and --header 23145 as_fn_error $? "ambiguous option: \`$1' 23146Try \`$0 --help' for more information.";; 23147 --help | --hel | -h ) 23148 $as_echo "$ac_cs_usage"; exit ;; 23149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23150 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23151 ac_cs_silent=: ;; 23152 23153 # This is an error. 23154 -*) as_fn_error $? "unrecognized option: \`$1' 23155Try \`$0 --help' for more information." ;; 23156 23157 *) as_fn_append ac_config_targets " $1" 23158 ac_need_defaults=false ;; 23159 23160 esac 23161 shift 23162done 23163 23164ac_configure_extra_args= 23165 23166if $ac_cs_silent; then 23167 exec 6>/dev/null 23168 ac_configure_extra_args="$ac_configure_extra_args --silent" 23169fi 23170 23171_ACEOF 23172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23173if \$ac_cs_recheck; then 23174 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23175 shift 23176 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 23177 CONFIG_SHELL='$SHELL' 23178 export CONFIG_SHELL 23179 exec "\$@" 23180fi 23181 23182_ACEOF 23183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23184exec 5>>config.log 23185{ 23186 echo 23187 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23188## Running $as_me. ## 23189_ASBOX 23190 $as_echo "$ac_log" 23191} >&5 23192 23193_ACEOF 23194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23195# 23196# INIT-COMMANDS 23197# 23198AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 23199 23200 23201# The HP-UX ksh and POSIX shell print the target directory to stdout 23202# if CDPATH is set. 23203(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23204 23205sed_quote_subst='$sed_quote_subst' 23206double_quote_subst='$double_quote_subst' 23207delay_variable_subst='$delay_variable_subst' 23208macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 23209macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 23210AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 23211DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23212OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23213enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 23214enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 23215pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 23216enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 23217shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 23218SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 23219ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23220PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 23221host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23222host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23223host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23224build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23225build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23226build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23227SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23228Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23229GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23230EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23231FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23232LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23233NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23234LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23235max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23236ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23237exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23238lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23239lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23240lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23241lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23242lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23243reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23244reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23245deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23246file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23247file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23248want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23249sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23250AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23251AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23252archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23253STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23254RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23255old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23256old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23257old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23258lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23259CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23260CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23261compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23262GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23263lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23264lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23265lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 23266lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23267lt_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"`' 23268lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23269nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23270lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23271lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23272objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23273MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23274lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23275lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23276lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23277lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23278lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23279need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23280MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23281DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23282NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23283LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23284OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23285OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23286libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23287shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23288extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23289archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23290enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23291export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23292whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23293compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23294old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23295old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23296archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23297archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23298module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23299module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23300with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23301allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23302no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23303hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23304hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23305hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23306hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23307hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23308hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23309hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23310inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23311link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23312always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23313export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23314exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23315include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23316prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23317postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23318file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23319variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23320need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23321need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23322version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23323runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23324shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23325shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23326libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23327library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23328soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23329install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23330postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23331postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23332finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23333finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23334hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23335sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23336configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 23337configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 23338hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23339enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23340enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23341enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23342old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23343striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23344compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 23345predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 23346postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 23347predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 23348postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 23349compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 23350LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 23351reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 23352reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23353old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23354compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 23355GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 23356lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 23357lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 23358lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 23359lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 23360lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 23361archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 23362enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 23363export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 23364whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 23365compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 23366old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23367old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23368archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23369archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23370module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23371module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23372with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 23373allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 23374no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 23375hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 23376hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 23377hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 23378hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 23379hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 23380hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 23381hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 23382inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 23383link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 23384always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 23385export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23386exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 23387include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 23388prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23389postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23390file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 23391hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 23392compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 23393predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 23394postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 23395predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 23396postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 23397compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 23398 23399LTCC='$LTCC' 23400LTCFLAGS='$LTCFLAGS' 23401compiler='$compiler_DEFAULT' 23402 23403# A function that is used when there is no print builtin or printf. 23404func_fallback_echo () 23405{ 23406 eval 'cat <<_LTECHO_EOF 23407\$1 23408_LTECHO_EOF' 23409} 23410 23411# Quote evaled strings. 23412for var in AS \ 23413DLLTOOL \ 23414OBJDUMP \ 23415SHELL \ 23416ECHO \ 23417PATH_SEPARATOR \ 23418SED \ 23419GREP \ 23420EGREP \ 23421FGREP \ 23422LD \ 23423NM \ 23424LN_S \ 23425lt_SP2NL \ 23426lt_NL2SP \ 23427reload_flag \ 23428deplibs_check_method \ 23429file_magic_cmd \ 23430file_magic_glob \ 23431want_nocaseglob \ 23432sharedlib_from_linklib_cmd \ 23433AR \ 23434AR_FLAGS \ 23435archiver_list_spec \ 23436STRIP \ 23437RANLIB \ 23438CC \ 23439CFLAGS \ 23440compiler \ 23441lt_cv_sys_global_symbol_pipe \ 23442lt_cv_sys_global_symbol_to_cdecl \ 23443lt_cv_sys_global_symbol_to_import \ 23444lt_cv_sys_global_symbol_to_c_name_address \ 23445lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23446lt_cv_nm_interface \ 23447nm_file_list_spec \ 23448lt_cv_truncate_bin \ 23449lt_prog_compiler_no_builtin_flag \ 23450lt_prog_compiler_pic \ 23451lt_prog_compiler_wl \ 23452lt_prog_compiler_static \ 23453lt_cv_prog_compiler_c_o \ 23454need_locks \ 23455MANIFEST_TOOL \ 23456DSYMUTIL \ 23457NMEDIT \ 23458LIPO \ 23459OTOOL \ 23460OTOOL64 \ 23461shrext_cmds \ 23462export_dynamic_flag_spec \ 23463whole_archive_flag_spec \ 23464compiler_needs_object \ 23465with_gnu_ld \ 23466allow_undefined_flag \ 23467no_undefined_flag \ 23468hardcode_libdir_flag_spec \ 23469hardcode_libdir_separator \ 23470exclude_expsyms \ 23471include_expsyms \ 23472file_list_spec \ 23473variables_saved_for_relink \ 23474libname_spec \ 23475library_names_spec \ 23476soname_spec \ 23477install_override_mode \ 23478finish_eval \ 23479old_striplib \ 23480striplib \ 23481compiler_lib_search_dirs \ 23482predep_objects \ 23483postdep_objects \ 23484predeps \ 23485postdeps \ 23486compiler_lib_search_path \ 23487LD_CXX \ 23488reload_flag_CXX \ 23489compiler_CXX \ 23490lt_prog_compiler_no_builtin_flag_CXX \ 23491lt_prog_compiler_pic_CXX \ 23492lt_prog_compiler_wl_CXX \ 23493lt_prog_compiler_static_CXX \ 23494lt_cv_prog_compiler_c_o_CXX \ 23495export_dynamic_flag_spec_CXX \ 23496whole_archive_flag_spec_CXX \ 23497compiler_needs_object_CXX \ 23498with_gnu_ld_CXX \ 23499allow_undefined_flag_CXX \ 23500no_undefined_flag_CXX \ 23501hardcode_libdir_flag_spec_CXX \ 23502hardcode_libdir_separator_CXX \ 23503exclude_expsyms_CXX \ 23504include_expsyms_CXX \ 23505file_list_spec_CXX \ 23506compiler_lib_search_dirs_CXX \ 23507predep_objects_CXX \ 23508postdep_objects_CXX \ 23509predeps_CXX \ 23510postdeps_CXX \ 23511compiler_lib_search_path_CXX; do 23512 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23513 *[\\\\\\\`\\"\\\$]*) 23514 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23515 ;; 23516 *) 23517 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23518 ;; 23519 esac 23520done 23521 23522# Double-quote double-evaled strings. 23523for var in reload_cmds \ 23524old_postinstall_cmds \ 23525old_postuninstall_cmds \ 23526old_archive_cmds \ 23527extract_expsyms_cmds \ 23528old_archive_from_new_cmds \ 23529old_archive_from_expsyms_cmds \ 23530archive_cmds \ 23531archive_expsym_cmds \ 23532module_cmds \ 23533module_expsym_cmds \ 23534export_symbols_cmds \ 23535prelink_cmds \ 23536postlink_cmds \ 23537postinstall_cmds \ 23538postuninstall_cmds \ 23539finish_cmds \ 23540sys_lib_search_path_spec \ 23541configure_time_dlsearch_path \ 23542configure_time_lt_sys_library_path \ 23543reload_cmds_CXX \ 23544old_archive_cmds_CXX \ 23545old_archive_from_new_cmds_CXX \ 23546old_archive_from_expsyms_cmds_CXX \ 23547archive_cmds_CXX \ 23548archive_expsym_cmds_CXX \ 23549module_cmds_CXX \ 23550module_expsym_cmds_CXX \ 23551export_symbols_cmds_CXX \ 23552prelink_cmds_CXX \ 23553postlink_cmds_CXX; do 23554 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23555 *[\\\\\\\`\\"\\\$]*) 23556 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23557 ;; 23558 *) 23559 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23560 ;; 23561 esac 23562done 23563 23564ac_aux_dir='$ac_aux_dir' 23565 23566# See if we are running on zsh, and set the options that allow our 23567# commands through without removal of \ escapes INIT. 23568if test -n "\${ZSH_VERSION+set}"; then 23569 setopt NO_GLOB_SUBST 23570fi 23571 23572 23573 PACKAGE='$PACKAGE' 23574 VERSION='$VERSION' 23575 RM='$RM' 23576 ofile='$ofile' 23577 23578 23579 23580 23581 23582 23583_ACEOF 23584 23585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23586 23587# Handling of arguments. 23588for ac_config_target in $ac_config_targets 23589do 23590 case $ac_config_target in 23591 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23592 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23593 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23594 "basis") CONFIG_COMMANDS="$CONFIG_COMMANDS basis" ;; 23595 "mlsource") CONFIG_COMMANDS="$CONFIG_COMMANDS mlsource" ;; 23596 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23597 "libpolyml/Makefile") CONFIG_FILES="$CONFIG_FILES libpolyml/Makefile" ;; 23598 "libpolyml/polyml.pc") CONFIG_FILES="$CONFIG_FILES libpolyml/polyml.pc" ;; 23599 "libpolymain/Makefile") CONFIG_FILES="$CONFIG_FILES libpolymain/Makefile" ;; 23600 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 23601 "modules/IntInfAsInt/Makefile") CONFIG_FILES="$CONFIG_FILES modules/IntInfAsInt/Makefile" ;; 23602 "polyc") CONFIG_FILES="$CONFIG_FILES polyc" ;; 23603 23604 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 23605 esac 23606done 23607 23608 23609# If the user did not use the arguments to specify the items to instantiate, 23610# then the envvar interface is used. Set only those that are not. 23611# We use the long form for the default assignment because of an extremely 23612# bizarre bug on SunOS 4.1.3. 23613if $ac_need_defaults; then 23614 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23615 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23616 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23617fi 23618 23619# Have a temporary directory for convenience. Make it in the build tree 23620# simply because there is no reason against having it here, and in addition, 23621# creating and moving files from /tmp can sometimes cause problems. 23622# Hook for its removal unless debugging. 23623# Note that there is a small window in which the directory will not be cleaned: 23624# after its creation but before its name has been assigned to `$tmp'. 23625$debug || 23626{ 23627 tmp= ac_tmp= 23628 trap 'exit_status=$? 23629 : "${ac_tmp:=$tmp}" 23630 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23631' 0 23632 trap 'as_fn_exit 1' 1 2 13 15 23633} 23634# Create a (secure) tmp directory for tmp files. 23635 23636{ 23637 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23638 test -d "$tmp" 23639} || 23640{ 23641 tmp=./conf$$-$RANDOM 23642 (umask 077 && mkdir "$tmp") 23643} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23644ac_tmp=$tmp 23645 23646# Set up the scripts for CONFIG_FILES section. 23647# No need to generate them if there are no CONFIG_FILES. 23648# This happens for instance with `./config.status config.h'. 23649if test -n "$CONFIG_FILES"; then 23650 23651 23652ac_cr=`echo X | tr X '\015'` 23653# On cygwin, bash can eat \r inside `` if the user requested igncr. 23654# But we know of no other shell where ac_cr would be empty at this 23655# point, so we can use a bashism as a fallback. 23656if test "x$ac_cr" = x; then 23657 eval ac_cr=\$\'\\r\' 23658fi 23659ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23660if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23661 ac_cs_awk_cr='\\r' 23662else 23663 ac_cs_awk_cr=$ac_cr 23664fi 23665 23666echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23667_ACEOF 23668 23669 23670{ 23671 echo "cat >conf$$subs.awk <<_ACEOF" && 23672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23673 echo "_ACEOF" 23674} >conf$$subs.sh || 23675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23676ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23677ac_delim='%!_!# ' 23678for ac_last_try in false false false false false :; do 23679 . ./conf$$subs.sh || 23680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23681 23682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23683 if test $ac_delim_n = $ac_delim_num; then 23684 break 23685 elif $ac_last_try; then 23686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23687 else 23688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23689 fi 23690done 23691rm -f conf$$subs.sh 23692 23693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23694cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23695_ACEOF 23696sed -n ' 23697h 23698s/^/S["/; s/!.*/"]=/ 23699p 23700g 23701s/^[^!]*!// 23702:repl 23703t repl 23704s/'"$ac_delim"'$// 23705t delim 23706:nl 23707h 23708s/\(.\{148\}\)..*/\1/ 23709t more1 23710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23711p 23712n 23713b repl 23714:more1 23715s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23716p 23717g 23718s/.\{148\}// 23719t nl 23720:delim 23721h 23722s/\(.\{148\}\)..*/\1/ 23723t more2 23724s/["\\]/\\&/g; s/^/"/; s/$/"/ 23725p 23726b 23727:more2 23728s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23729p 23730g 23731s/.\{148\}// 23732t delim 23733' <conf$$subs.awk | sed ' 23734/^[^""]/{ 23735 N 23736 s/\n// 23737} 23738' >>$CONFIG_STATUS || ac_write_fail=1 23739rm -f conf$$subs.awk 23740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23741_ACAWK 23742cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23743 for (key in S) S_is_set[key] = 1 23744 FS = "" 23745 23746} 23747{ 23748 line = $ 0 23749 nfields = split(line, field, "@") 23750 substed = 0 23751 len = length(field[1]) 23752 for (i = 2; i < nfields; i++) { 23753 key = field[i] 23754 keylen = length(key) 23755 if (S_is_set[key]) { 23756 value = S[key] 23757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23758 len += length(value) + length(field[++i]) 23759 substed = 1 23760 } else 23761 len += 1 + keylen 23762 } 23763 23764 print line 23765} 23766 23767_ACAWK 23768_ACEOF 23769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23772else 23773 cat 23774fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23775 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23776_ACEOF 23777 23778# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23779# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23780# trailing colons and then remove the whole line if VPATH becomes empty 23781# (actually we leave an empty line to preserve line numbers). 23782if test "x$srcdir" = x.; then 23783 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23784h 23785s/// 23786s/^/:/ 23787s/[ ]*$/:/ 23788s/:\$(srcdir):/:/g 23789s/:\${srcdir}:/:/g 23790s/:@srcdir@:/:/g 23791s/^:*// 23792s/:*$// 23793x 23794s/\(=[ ]*\).*/\1/ 23795G 23796s/\n// 23797s/^[^=]*=[ ]*$// 23798}' 23799fi 23800 23801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23802fi # test -n "$CONFIG_FILES" 23803 23804# Set up the scripts for CONFIG_HEADERS section. 23805# No need to generate them if there are no CONFIG_HEADERS. 23806# This happens for instance with `./config.status Makefile'. 23807if test -n "$CONFIG_HEADERS"; then 23808cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23809BEGIN { 23810_ACEOF 23811 23812# Transform confdefs.h into an awk script `defines.awk', embedded as 23813# here-document in config.status, that substitutes the proper values into 23814# config.h.in to produce config.h. 23815 23816# Create a delimiter string that does not exist in confdefs.h, to ease 23817# handling of long lines. 23818ac_delim='%!_!# ' 23819for ac_last_try in false false :; do 23820 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23821 if test -z "$ac_tt"; then 23822 break 23823 elif $ac_last_try; then 23824 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23825 else 23826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23827 fi 23828done 23829 23830# For the awk script, D is an array of macro values keyed by name, 23831# likewise P contains macro parameters if any. Preserve backslash 23832# newline sequences. 23833 23834ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23835sed -n ' 23836s/.\{148\}/&'"$ac_delim"'/g 23837t rset 23838:rset 23839s/^[ ]*#[ ]*define[ ][ ]*/ / 23840t def 23841d 23842:def 23843s/\\$// 23844t bsnl 23845s/["\\]/\\&/g 23846s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23847D["\1"]=" \3"/p 23848s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23849d 23850:bsnl 23851s/["\\]/\\&/g 23852s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23853D["\1"]=" \3\\\\\\n"\\/p 23854t cont 23855s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23856t cont 23857d 23858:cont 23859n 23860s/.\{148\}/&'"$ac_delim"'/g 23861t clear 23862:clear 23863s/\\$// 23864t bsnlc 23865s/["\\]/\\&/g; s/^/"/; s/$/"/p 23866d 23867:bsnlc 23868s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23869b cont 23870' <confdefs.h | sed ' 23871s/'"$ac_delim"'/"\\\ 23872"/g' >>$CONFIG_STATUS || ac_write_fail=1 23873 23874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23875 for (key in D) D_is_set[key] = 1 23876 FS = "" 23877} 23878/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23879 line = \$ 0 23880 split(line, arg, " ") 23881 if (arg[1] == "#") { 23882 defundef = arg[2] 23883 mac1 = arg[3] 23884 } else { 23885 defundef = substr(arg[1], 2) 23886 mac1 = arg[2] 23887 } 23888 split(mac1, mac2, "(") #) 23889 macro = mac2[1] 23890 prefix = substr(line, 1, index(line, defundef) - 1) 23891 if (D_is_set[macro]) { 23892 # Preserve the white space surrounding the "#". 23893 print prefix "define", macro P[macro] D[macro] 23894 next 23895 } else { 23896 # Replace #undef with comments. This is necessary, for example, 23897 # in the case of _POSIX_SOURCE, which is predefined and required 23898 # on some systems where configure will not decide to define it. 23899 if (defundef == "undef") { 23900 print "/*", prefix defundef, macro, "*/" 23901 next 23902 } 23903 } 23904} 23905{ print } 23906_ACAWK 23907_ACEOF 23908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23909 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23910fi # test -n "$CONFIG_HEADERS" 23911 23912 23913eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23914shift 23915for ac_tag 23916do 23917 case $ac_tag in 23918 :[FHLC]) ac_mode=$ac_tag; continue;; 23919 esac 23920 case $ac_mode$ac_tag in 23921 :[FHL]*:*);; 23922 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23923 :[FH]-) ac_tag=-:-;; 23924 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23925 esac 23926 ac_save_IFS=$IFS 23927 IFS=: 23928 set x $ac_tag 23929 IFS=$ac_save_IFS 23930 shift 23931 ac_file=$1 23932 shift 23933 23934 case $ac_mode in 23935 :L) ac_source=$1;; 23936 :[FH]) 23937 ac_file_inputs= 23938 for ac_f 23939 do 23940 case $ac_f in 23941 -) ac_f="$ac_tmp/stdin";; 23942 *) # Look for the file first in the build tree, then in the source tree 23943 # (if the path is not absolute). The absolute path cannot be DOS-style, 23944 # because $ac_f cannot contain `:'. 23945 test -f "$ac_f" || 23946 case $ac_f in 23947 [\\/$]*) false;; 23948 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23949 esac || 23950 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23951 esac 23952 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23953 as_fn_append ac_file_inputs " '$ac_f'" 23954 done 23955 23956 # Let's still pretend it is `configure' which instantiates (i.e., don't 23957 # use $as_me), people would be surprised to read: 23958 # /* config.h. Generated by config.status. */ 23959 configure_input='Generated from '` 23960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23961 `' by configure.' 23962 if test x"$ac_file" != x-; then 23963 configure_input="$ac_file. $configure_input" 23964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23965$as_echo "$as_me: creating $ac_file" >&6;} 23966 fi 23967 # Neutralize special characters interpreted by sed in replacement strings. 23968 case $configure_input in #( 23969 *\&* | *\|* | *\\* ) 23970 ac_sed_conf_input=`$as_echo "$configure_input" | 23971 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23972 *) ac_sed_conf_input=$configure_input;; 23973 esac 23974 23975 case $ac_tag in 23976 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23978 esac 23979 ;; 23980 esac 23981 23982 ac_dir=`$as_dirname -- "$ac_file" || 23983$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23984 X"$ac_file" : 'X\(//\)[^/]' \| \ 23985 X"$ac_file" : 'X\(//\)$' \| \ 23986 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23987$as_echo X"$ac_file" | 23988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23989 s//\1/ 23990 q 23991 } 23992 /^X\(\/\/\)[^/].*/{ 23993 s//\1/ 23994 q 23995 } 23996 /^X\(\/\/\)$/{ 23997 s//\1/ 23998 q 23999 } 24000 /^X\(\/\).*/{ 24001 s//\1/ 24002 q 24003 } 24004 s/.*/./; q'` 24005 as_dir="$ac_dir"; as_fn_mkdir_p 24006 ac_builddir=. 24007 24008case "$ac_dir" in 24009.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24010*) 24011 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24012 # A ".." for each directory in $ac_dir_suffix. 24013 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24014 case $ac_top_builddir_sub in 24015 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24016 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24017 esac ;; 24018esac 24019ac_abs_top_builddir=$ac_pwd 24020ac_abs_builddir=$ac_pwd$ac_dir_suffix 24021# for backward compatibility: 24022ac_top_builddir=$ac_top_build_prefix 24023 24024case $srcdir in 24025 .) # We are building in place. 24026 ac_srcdir=. 24027 ac_top_srcdir=$ac_top_builddir_sub 24028 ac_abs_top_srcdir=$ac_pwd ;; 24029 [\\/]* | ?:[\\/]* ) # Absolute name. 24030 ac_srcdir=$srcdir$ac_dir_suffix; 24031 ac_top_srcdir=$srcdir 24032 ac_abs_top_srcdir=$srcdir ;; 24033 *) # Relative name. 24034 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24035 ac_top_srcdir=$ac_top_build_prefix$srcdir 24036 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24037esac 24038ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24039 24040 24041 case $ac_mode in 24042 :F) 24043 # 24044 # CONFIG_FILE 24045 # 24046 24047 case $INSTALL in 24048 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24049 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24050 esac 24051 ac_MKDIR_P=$MKDIR_P 24052 case $MKDIR_P in 24053 [\\/$]* | ?:[\\/]* ) ;; 24054 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24055 esac 24056_ACEOF 24057 24058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24059# If the template does not know about datarootdir, expand it. 24060# FIXME: This hack should be removed a few years after 2.60. 24061ac_datarootdir_hack=; ac_datarootdir_seen= 24062ac_sed_dataroot=' 24063/datarootdir/ { 24064 p 24065 q 24066} 24067/@datadir@/p 24068/@docdir@/p 24069/@infodir@/p 24070/@localedir@/p 24071/@mandir@/p' 24072case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24073*datarootdir*) ac_datarootdir_seen=yes;; 24074*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24076$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24077_ACEOF 24078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24079 ac_datarootdir_hack=' 24080 s&@datadir@&$datadir&g 24081 s&@docdir@&$docdir&g 24082 s&@infodir@&$infodir&g 24083 s&@localedir@&$localedir&g 24084 s&@mandir@&$mandir&g 24085 s&\\\${datarootdir}&$datarootdir&g' ;; 24086esac 24087_ACEOF 24088 24089# Neutralize VPATH when `$srcdir' = `.'. 24090# Shell code in configure.ac might set extrasub. 24091# FIXME: do we really want to maintain this feature? 24092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24093ac_sed_extra="$ac_vpsub 24094$extrasub 24095_ACEOF 24096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24097:t 24098/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24099s|@configure_input@|$ac_sed_conf_input|;t t 24100s&@top_builddir@&$ac_top_builddir_sub&;t t 24101s&@top_build_prefix@&$ac_top_build_prefix&;t t 24102s&@srcdir@&$ac_srcdir&;t t 24103s&@abs_srcdir@&$ac_abs_srcdir&;t t 24104s&@top_srcdir@&$ac_top_srcdir&;t t 24105s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24106s&@builddir@&$ac_builddir&;t t 24107s&@abs_builddir@&$ac_abs_builddir&;t t 24108s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24109s&@INSTALL@&$ac_INSTALL&;t t 24110s&@MKDIR_P@&$ac_MKDIR_P&;t t 24111$ac_datarootdir_hack 24112" 24113eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 24114 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24115 24116test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24117 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 24118 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 24119 "$ac_tmp/out"`; test -z "$ac_out"; } && 24120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24121which seems to be undefined. Please make sure it is defined" >&5 24122$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24123which seems to be undefined. Please make sure it is defined" >&2;} 24124 24125 rm -f "$ac_tmp/stdin" 24126 case $ac_file in 24127 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 24128 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 24129 esac \ 24130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24131 ;; 24132 :H) 24133 # 24134 # CONFIG_HEADER 24135 # 24136 if test x"$ac_file" != x-; then 24137 { 24138 $as_echo "/* $configure_input */" \ 24139 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 24140 } >"$ac_tmp/config.h" \ 24141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24142 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 24143 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 24144$as_echo "$as_me: $ac_file is unchanged" >&6;} 24145 else 24146 rm -f "$ac_file" 24147 mv "$ac_tmp/config.h" "$ac_file" \ 24148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24149 fi 24150 else 24151 $as_echo "/* $configure_input */" \ 24152 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 24153 || as_fn_error $? "could not create -" "$LINENO" 5 24154 fi 24155# Compute "$ac_file"'s index in $config_headers. 24156_am_arg="$ac_file" 24157_am_stamp_count=1 24158for _am_header in $config_headers :; do 24159 case $_am_header in 24160 $_am_arg | $_am_arg:* ) 24161 break ;; 24162 * ) 24163 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24164 esac 24165done 24166echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24167$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24168 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24169 X"$_am_arg" : 'X\(//\)$' \| \ 24170 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24171$as_echo X"$_am_arg" | 24172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24173 s//\1/ 24174 q 24175 } 24176 /^X\(\/\/\)[^/].*/{ 24177 s//\1/ 24178 q 24179 } 24180 /^X\(\/\/\)$/{ 24181 s//\1/ 24182 q 24183 } 24184 /^X\(\/\).*/{ 24185 s//\1/ 24186 q 24187 } 24188 s/.*/./; q'`/stamp-h$_am_stamp_count 24189 ;; 24190 24191 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 24192$as_echo "$as_me: executing $ac_file commands" >&6;} 24193 ;; 24194 esac 24195 24196 24197 case $ac_file$ac_mode in 24198 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 24199 # Older Autoconf quotes --file arguments for eval, but not when files 24200 # are listed without --file. Let's play safe and only enable the eval 24201 # if we detect the quoting. 24202 # TODO: see whether this extra hack can be removed once we start 24203 # requiring Autoconf 2.70 or later. 24204 case $CONFIG_FILES in #( 24205 *\'*) : 24206 eval set x "$CONFIG_FILES" ;; #( 24207 *) : 24208 set x $CONFIG_FILES ;; #( 24209 *) : 24210 ;; 24211esac 24212 shift 24213 # Used to flag and report bootstrapping failures. 24214 am_rc=0 24215 for am_mf 24216 do 24217 # Strip MF so we end up with the name of the file. 24218 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 24219 # Check whether this is an Automake generated Makefile which includes 24220 # dependency-tracking related rules and includes. 24221 # Grep'ing the whole file directly is not great: AIX grep has a line 24222 # limit of 2048, but all sed's we know have understand at least 4000. 24223 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 24224 || continue 24225 am_dirpart=`$as_dirname -- "$am_mf" || 24226$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24227 X"$am_mf" : 'X\(//\)[^/]' \| \ 24228 X"$am_mf" : 'X\(//\)$' \| \ 24229 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 24230$as_echo X"$am_mf" | 24231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24232 s//\1/ 24233 q 24234 } 24235 /^X\(\/\/\)[^/].*/{ 24236 s//\1/ 24237 q 24238 } 24239 /^X\(\/\/\)$/{ 24240 s//\1/ 24241 q 24242 } 24243 /^X\(\/\).*/{ 24244 s//\1/ 24245 q 24246 } 24247 s/.*/./; q'` 24248 am_filepart=`$as_basename -- "$am_mf" || 24249$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 24250 X"$am_mf" : 'X\(//\)$' \| \ 24251 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 24252$as_echo X/"$am_mf" | 24253 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24254 s//\1/ 24255 q 24256 } 24257 /^X\/\(\/\/\)$/{ 24258 s//\1/ 24259 q 24260 } 24261 /^X\/\(\/\).*/{ 24262 s//\1/ 24263 q 24264 } 24265 s/.*/./; q'` 24266 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 24267 && sed -e '/# am--include-marker/d' "$am_filepart" \ 24268 | $MAKE -f - am--depfiles" >&5 24269 (cd "$am_dirpart" \ 24270 && sed -e '/# am--include-marker/d' "$am_filepart" \ 24271 | $MAKE -f - am--depfiles) >&5 2>&5 24272 ac_status=$? 24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24274 (exit $ac_status); } || am_rc=$? 24275 done 24276 if test $am_rc -ne 0; then 24277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24279as_fn_error $? "Something went wrong bootstrapping makefile fragments 24280 for automatic dependency tracking. Try re-running configure with the 24281 '--disable-dependency-tracking' option to at least be able to build 24282 the package (albeit without support for automatic dependency tracking). 24283See \`config.log' for more details" "$LINENO" 5; } 24284 fi 24285 { am_dirpart=; unset am_dirpart;} 24286 { am_filepart=; unset am_filepart;} 24287 { am_mf=; unset am_mf;} 24288 { am_rc=; unset am_rc;} 24289 rm -f conftest-deps.mk 24290} 24291 ;; 24292 "libtool":C) 24293 24294 # See if we are running on zsh, and set the options that allow our 24295 # commands through without removal of \ escapes. 24296 if test -n "${ZSH_VERSION+set}"; then 24297 setopt NO_GLOB_SUBST 24298 fi 24299 24300 cfgfile=${ofile}T 24301 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 24302 $RM "$cfgfile" 24303 24304 cat <<_LT_EOF >> "$cfgfile" 24305#! $SHELL 24306# Generated automatically by $as_me ($PACKAGE) $VERSION 24307# NOTE: Changes made to this file will be lost: look at ltmain.sh. 24308 24309# Provide generalized library-building support services. 24310# Written by Gordon Matzigkeit, 1996 24311 24312# Copyright (C) 2014 Free Software Foundation, Inc. 24313# This is free software; see the source for copying conditions. There is NO 24314# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 24315 24316# GNU Libtool is free software; you can redistribute it and/or modify 24317# it under the terms of the GNU General Public License as published by 24318# the Free Software Foundation; either version 2 of of the License, or 24319# (at your option) any later version. 24320# 24321# As a special exception to the GNU General Public License, if you 24322# distribute this file as part of a program or library that is built 24323# using GNU Libtool, you may include this file under the same 24324# distribution terms that you use for the rest of that program. 24325# 24326# GNU Libtool is distributed in the hope that it will be useful, but 24327# WITHOUT ANY WARRANTY; without even the implied warranty of 24328# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24329# GNU General Public License for more details. 24330# 24331# You should have received a copy of the GNU General Public License 24332# along with this program. If not, see <http://www.gnu.org/licenses/>. 24333 24334 24335# The names of the tagged configurations supported by this script. 24336available_tags='CXX ' 24337 24338# Configured defaults for sys_lib_dlsearch_path munging. 24339: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24340 24341# ### BEGIN LIBTOOL CONFIG 24342 24343# Which release of libtool.m4 was used? 24344macro_version=$macro_version 24345macro_revision=$macro_revision 24346 24347# Assembler program. 24348AS=$lt_AS 24349 24350# DLL creation program. 24351DLLTOOL=$lt_DLLTOOL 24352 24353# Object dumper program. 24354OBJDUMP=$lt_OBJDUMP 24355 24356# Whether or not to build shared libraries. 24357build_libtool_libs=$enable_shared 24358 24359# Whether or not to build static libraries. 24360build_old_libs=$enable_static 24361 24362# What type of objects to build. 24363pic_mode=$pic_mode 24364 24365# Whether or not to optimize for fast installation. 24366fast_install=$enable_fast_install 24367 24368# Shared archive member basename,for filename based shared library versioning on AIX. 24369shared_archive_member_spec=$shared_archive_member_spec 24370 24371# Shell to use when invoking shell scripts. 24372SHELL=$lt_SHELL 24373 24374# An echo program that protects backslashes. 24375ECHO=$lt_ECHO 24376 24377# The PATH separator for the build system. 24378PATH_SEPARATOR=$lt_PATH_SEPARATOR 24379 24380# The host system. 24381host_alias=$host_alias 24382host=$host 24383host_os=$host_os 24384 24385# The build system. 24386build_alias=$build_alias 24387build=$build 24388build_os=$build_os 24389 24390# A sed program that does not truncate output. 24391SED=$lt_SED 24392 24393# Sed that helps us avoid accidentally triggering echo(1) options like -n. 24394Xsed="\$SED -e 1s/^X//" 24395 24396# A grep program that handles long lines. 24397GREP=$lt_GREP 24398 24399# An ERE matcher. 24400EGREP=$lt_EGREP 24401 24402# A literal string matcher. 24403FGREP=$lt_FGREP 24404 24405# A BSD- or MS-compatible name lister. 24406NM=$lt_NM 24407 24408# Whether we need soft or hard links. 24409LN_S=$lt_LN_S 24410 24411# What is the maximum length of a command? 24412max_cmd_len=$max_cmd_len 24413 24414# Object file suffix (normally "o"). 24415objext=$ac_objext 24416 24417# Executable file suffix (normally ""). 24418exeext=$exeext 24419 24420# whether the shell understands "unset". 24421lt_unset=$lt_unset 24422 24423# turn spaces into newlines. 24424SP2NL=$lt_lt_SP2NL 24425 24426# turn newlines into spaces. 24427NL2SP=$lt_lt_NL2SP 24428 24429# convert \$build file names to \$host format. 24430to_host_file_cmd=$lt_cv_to_host_file_cmd 24431 24432# convert \$build files to toolchain format. 24433to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24434 24435# Method to check whether dependent libraries are shared objects. 24436deplibs_check_method=$lt_deplibs_check_method 24437 24438# Command to use when deplibs_check_method = "file_magic". 24439file_magic_cmd=$lt_file_magic_cmd 24440 24441# How to find potential files when deplibs_check_method = "file_magic". 24442file_magic_glob=$lt_file_magic_glob 24443 24444# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24445want_nocaseglob=$lt_want_nocaseglob 24446 24447# Command to associate shared and link libraries. 24448sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24449 24450# The archiver. 24451AR=$lt_AR 24452 24453# Flags to create an archive. 24454AR_FLAGS=$lt_AR_FLAGS 24455 24456# How to feed a file listing to the archiver. 24457archiver_list_spec=$lt_archiver_list_spec 24458 24459# A symbol stripping program. 24460STRIP=$lt_STRIP 24461 24462# Commands used to install an old-style archive. 24463RANLIB=$lt_RANLIB 24464old_postinstall_cmds=$lt_old_postinstall_cmds 24465old_postuninstall_cmds=$lt_old_postuninstall_cmds 24466 24467# Whether to use a lock for old archive extraction. 24468lock_old_archive_extraction=$lock_old_archive_extraction 24469 24470# A C compiler. 24471LTCC=$lt_CC 24472 24473# LTCC compiler flags. 24474LTCFLAGS=$lt_CFLAGS 24475 24476# Take the output of nm and produce a listing of raw symbols and C names. 24477global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24478 24479# Transform the output of nm in a proper C declaration. 24480global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24481 24482# Transform the output of nm into a list of symbols to manually relocate. 24483global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 24484 24485# Transform the output of nm in a C name address pair. 24486global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24487 24488# Transform the output of nm in a C name address pair when lib prefix is needed. 24489global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24490 24491# The name lister interface. 24492nm_interface=$lt_lt_cv_nm_interface 24493 24494# Specify filename containing input files for \$NM. 24495nm_file_list_spec=$lt_nm_file_list_spec 24496 24497# The root where to search for dependent libraries,and where our libraries should be installed. 24498lt_sysroot=$lt_sysroot 24499 24500# Command to truncate a binary pipe. 24501lt_truncate_bin=$lt_lt_cv_truncate_bin 24502 24503# The name of the directory that contains temporary libtool files. 24504objdir=$objdir 24505 24506# Used to examine libraries when file_magic_cmd begins with "file". 24507MAGIC_CMD=$MAGIC_CMD 24508 24509# Must we lock files when doing compilation? 24510need_locks=$lt_need_locks 24511 24512# Manifest tool. 24513MANIFEST_TOOL=$lt_MANIFEST_TOOL 24514 24515# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24516DSYMUTIL=$lt_DSYMUTIL 24517 24518# Tool to change global to local symbols on Mac OS X. 24519NMEDIT=$lt_NMEDIT 24520 24521# Tool to manipulate fat objects and archives on Mac OS X. 24522LIPO=$lt_LIPO 24523 24524# ldd/readelf like tool for Mach-O binaries on Mac OS X. 24525OTOOL=$lt_OTOOL 24526 24527# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24528OTOOL64=$lt_OTOOL64 24529 24530# Old archive suffix (normally "a"). 24531libext=$libext 24532 24533# Shared library suffix (normally ".so"). 24534shrext_cmds=$lt_shrext_cmds 24535 24536# The commands to extract the exported symbol list from a shared archive. 24537extract_expsyms_cmds=$lt_extract_expsyms_cmds 24538 24539# Variables whose values should be saved in libtool wrapper scripts and 24540# restored at link time. 24541variables_saved_for_relink=$lt_variables_saved_for_relink 24542 24543# Do we need the "lib" prefix for modules? 24544need_lib_prefix=$need_lib_prefix 24545 24546# Do we need a version for libraries? 24547need_version=$need_version 24548 24549# Library versioning type. 24550version_type=$version_type 24551 24552# Shared library runtime path variable. 24553runpath_var=$runpath_var 24554 24555# Shared library path variable. 24556shlibpath_var=$shlibpath_var 24557 24558# Is shlibpath searched before the hard-coded library search path? 24559shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24560 24561# Format of library name prefix. 24562libname_spec=$lt_libname_spec 24563 24564# List of archive names. First name is the real one, the rest are links. 24565# The last name is the one that the linker finds with -lNAME 24566library_names_spec=$lt_library_names_spec 24567 24568# The coded name of the library, if different from the real name. 24569soname_spec=$lt_soname_spec 24570 24571# Permission mode override for installation of shared libraries. 24572install_override_mode=$lt_install_override_mode 24573 24574# Command to use after installation of a shared archive. 24575postinstall_cmds=$lt_postinstall_cmds 24576 24577# Command to use after uninstallation of a shared archive. 24578postuninstall_cmds=$lt_postuninstall_cmds 24579 24580# Commands used to finish a libtool library installation in a directory. 24581finish_cmds=$lt_finish_cmds 24582 24583# As "finish_cmds", except a single script fragment to be evaled but 24584# not shown. 24585finish_eval=$lt_finish_eval 24586 24587# Whether we should hardcode library paths into libraries. 24588hardcode_into_libs=$hardcode_into_libs 24589 24590# Compile-time system search path for libraries. 24591sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24592 24593# Detected run-time system search path for libraries. 24594sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24595 24596# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24597configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24598 24599# Whether dlopen is supported. 24600dlopen_support=$enable_dlopen 24601 24602# Whether dlopen of programs is supported. 24603dlopen_self=$enable_dlopen_self 24604 24605# Whether dlopen of statically linked programs is supported. 24606dlopen_self_static=$enable_dlopen_self_static 24607 24608# Commands to strip libraries. 24609old_striplib=$lt_old_striplib 24610striplib=$lt_striplib 24611 24612 24613# The linker used to build libraries. 24614LD=$lt_LD 24615 24616# How to create reloadable object files. 24617reload_flag=$lt_reload_flag 24618reload_cmds=$lt_reload_cmds 24619 24620# Commands used to build an old-style archive. 24621old_archive_cmds=$lt_old_archive_cmds 24622 24623# A language specific compiler. 24624CC=$lt_compiler 24625 24626# Is the compiler the GNU compiler? 24627with_gcc=$GCC 24628 24629# Compiler flag to turn off builtin functions. 24630no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24631 24632# Additional compiler flags for building library objects. 24633pic_flag=$lt_lt_prog_compiler_pic 24634 24635# How to pass a linker flag through the compiler. 24636wl=$lt_lt_prog_compiler_wl 24637 24638# Compiler flag to prevent dynamic linking. 24639link_static_flag=$lt_lt_prog_compiler_static 24640 24641# Does compiler simultaneously support -c and -o options? 24642compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24643 24644# Whether or not to add -lc for building shared libraries. 24645build_libtool_need_lc=$archive_cmds_need_lc 24646 24647# Whether or not to disallow shared libs when runtime libs are static. 24648allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24649 24650# Compiler flag to allow reflexive dlopens. 24651export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24652 24653# Compiler flag to generate shared objects directly from archives. 24654whole_archive_flag_spec=$lt_whole_archive_flag_spec 24655 24656# Whether the compiler copes with passing no objects directly. 24657compiler_needs_object=$lt_compiler_needs_object 24658 24659# Create an old-style archive from a shared archive. 24660old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24661 24662# Create a temporary old-style archive to link instead of a shared archive. 24663old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24664 24665# Commands used to build a shared archive. 24666archive_cmds=$lt_archive_cmds 24667archive_expsym_cmds=$lt_archive_expsym_cmds 24668 24669# Commands used to build a loadable module if different from building 24670# a shared archive. 24671module_cmds=$lt_module_cmds 24672module_expsym_cmds=$lt_module_expsym_cmds 24673 24674# Whether we are building with GNU ld or not. 24675with_gnu_ld=$lt_with_gnu_ld 24676 24677# Flag that allows shared libraries with undefined symbols to be built. 24678allow_undefined_flag=$lt_allow_undefined_flag 24679 24680# Flag that enforces no undefined symbols. 24681no_undefined_flag=$lt_no_undefined_flag 24682 24683# Flag to hardcode \$libdir into a binary during linking. 24684# This must work even if \$libdir does not exist 24685hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24686 24687# Whether we need a single "-rpath" flag with a separated argument. 24688hardcode_libdir_separator=$lt_hardcode_libdir_separator 24689 24690# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24691# DIR into the resulting binary. 24692hardcode_direct=$hardcode_direct 24693 24694# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24695# DIR into the resulting binary and the resulting library dependency is 24696# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24697# library is relocated. 24698hardcode_direct_absolute=$hardcode_direct_absolute 24699 24700# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24701# into the resulting binary. 24702hardcode_minus_L=$hardcode_minus_L 24703 24704# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24705# into the resulting binary. 24706hardcode_shlibpath_var=$hardcode_shlibpath_var 24707 24708# Set to "yes" if building a shared library automatically hardcodes DIR 24709# into the library and all subsequent libraries and executables linked 24710# against it. 24711hardcode_automatic=$hardcode_automatic 24712 24713# Set to yes if linker adds runtime paths of dependent libraries 24714# to runtime path list. 24715inherit_rpath=$inherit_rpath 24716 24717# Whether libtool must link a program against all its dependency libraries. 24718link_all_deplibs=$link_all_deplibs 24719 24720# Set to "yes" if exported symbols are required. 24721always_export_symbols=$always_export_symbols 24722 24723# The commands to list exported symbols. 24724export_symbols_cmds=$lt_export_symbols_cmds 24725 24726# Symbols that should not be listed in the preloaded symbols. 24727exclude_expsyms=$lt_exclude_expsyms 24728 24729# Symbols that must always be exported. 24730include_expsyms=$lt_include_expsyms 24731 24732# Commands necessary for linking programs (against libraries) with templates. 24733prelink_cmds=$lt_prelink_cmds 24734 24735# Commands necessary for finishing linking programs. 24736postlink_cmds=$lt_postlink_cmds 24737 24738# Specify filename containing input files. 24739file_list_spec=$lt_file_list_spec 24740 24741# How to hardcode a shared library path into an executable. 24742hardcode_action=$hardcode_action 24743 24744# The directories searched by this compiler when creating a shared library. 24745compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 24746 24747# Dependencies to place before and after the objects being linked to 24748# create a shared library. 24749predep_objects=$lt_predep_objects 24750postdep_objects=$lt_postdep_objects 24751predeps=$lt_predeps 24752postdeps=$lt_postdeps 24753 24754# The library search path used internally by the compiler when linking 24755# a shared library. 24756compiler_lib_search_path=$lt_compiler_lib_search_path 24757 24758# ### END LIBTOOL CONFIG 24759 24760_LT_EOF 24761 24762 cat <<'_LT_EOF' >> "$cfgfile" 24763 24764# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24765 24766# func_munge_path_list VARIABLE PATH 24767# ----------------------------------- 24768# VARIABLE is name of variable containing _space_ separated list of 24769# directories to be munged by the contents of PATH, which is string 24770# having a format: 24771# "DIR[:DIR]:" 24772# string "DIR[ DIR]" will be prepended to VARIABLE 24773# ":DIR[:DIR]" 24774# string "DIR[ DIR]" will be appended to VARIABLE 24775# "DIRP[:DIRP]::[DIRA:]DIRA" 24776# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24777# "DIRA[ DIRA]" will be appended to VARIABLE 24778# "DIR[:DIR]" 24779# VARIABLE will be replaced by "DIR[ DIR]" 24780func_munge_path_list () 24781{ 24782 case x$2 in 24783 x) 24784 ;; 24785 *:) 24786 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24787 ;; 24788 x:*) 24789 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24790 ;; 24791 *::*) 24792 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24793 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24794 ;; 24795 *) 24796 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24797 ;; 24798 esac 24799} 24800 24801 24802# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24803func_cc_basename () 24804{ 24805 for cc_temp in $*""; do 24806 case $cc_temp in 24807 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24808 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24809 \-*) ;; 24810 *) break;; 24811 esac 24812 done 24813 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24814} 24815 24816 24817# ### END FUNCTIONS SHARED WITH CONFIGURE 24818 24819_LT_EOF 24820 24821 case $host_os in 24822 aix3*) 24823 cat <<\_LT_EOF >> "$cfgfile" 24824# AIX sometimes has problems with the GCC collect2 program. For some 24825# reason, if we set the COLLECT_NAMES environment variable, the problems 24826# vanish in a puff of smoke. 24827if test set != "${COLLECT_NAMES+set}"; then 24828 COLLECT_NAMES= 24829 export COLLECT_NAMES 24830fi 24831_LT_EOF 24832 ;; 24833 esac 24834 24835 24836ltmain=$ac_aux_dir/ltmain.sh 24837 24838 24839 # We use sed instead of cat because bash on DJGPP gets confused if 24840 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24841 # text mode, it properly converts lines to CR/LF. This bash problem 24842 # is reportedly fixed, but why not run on old versions too? 24843 sed '$q' "$ltmain" >> "$cfgfile" \ 24844 || (rm -f "$cfgfile"; exit 1) 24845 24846 mv -f "$cfgfile" "$ofile" || 24847 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24848 chmod +x "$ofile" 24849 24850 24851 cat <<_LT_EOF >> "$ofile" 24852 24853# ### BEGIN LIBTOOL TAG CONFIG: CXX 24854 24855# The linker used to build libraries. 24856LD=$lt_LD_CXX 24857 24858# How to create reloadable object files. 24859reload_flag=$lt_reload_flag_CXX 24860reload_cmds=$lt_reload_cmds_CXX 24861 24862# Commands used to build an old-style archive. 24863old_archive_cmds=$lt_old_archive_cmds_CXX 24864 24865# A language specific compiler. 24866CC=$lt_compiler_CXX 24867 24868# Is the compiler the GNU compiler? 24869with_gcc=$GCC_CXX 24870 24871# Compiler flag to turn off builtin functions. 24872no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 24873 24874# Additional compiler flags for building library objects. 24875pic_flag=$lt_lt_prog_compiler_pic_CXX 24876 24877# How to pass a linker flag through the compiler. 24878wl=$lt_lt_prog_compiler_wl_CXX 24879 24880# Compiler flag to prevent dynamic linking. 24881link_static_flag=$lt_lt_prog_compiler_static_CXX 24882 24883# Does compiler simultaneously support -c and -o options? 24884compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 24885 24886# Whether or not to add -lc for building shared libraries. 24887build_libtool_need_lc=$archive_cmds_need_lc_CXX 24888 24889# Whether or not to disallow shared libs when runtime libs are static. 24890allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 24891 24892# Compiler flag to allow reflexive dlopens. 24893export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 24894 24895# Compiler flag to generate shared objects directly from archives. 24896whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 24897 24898# Whether the compiler copes with passing no objects directly. 24899compiler_needs_object=$lt_compiler_needs_object_CXX 24900 24901# Create an old-style archive from a shared archive. 24902old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 24903 24904# Create a temporary old-style archive to link instead of a shared archive. 24905old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 24906 24907# Commands used to build a shared archive. 24908archive_cmds=$lt_archive_cmds_CXX 24909archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 24910 24911# Commands used to build a loadable module if different from building 24912# a shared archive. 24913module_cmds=$lt_module_cmds_CXX 24914module_expsym_cmds=$lt_module_expsym_cmds_CXX 24915 24916# Whether we are building with GNU ld or not. 24917with_gnu_ld=$lt_with_gnu_ld_CXX 24918 24919# Flag that allows shared libraries with undefined symbols to be built. 24920allow_undefined_flag=$lt_allow_undefined_flag_CXX 24921 24922# Flag that enforces no undefined symbols. 24923no_undefined_flag=$lt_no_undefined_flag_CXX 24924 24925# Flag to hardcode \$libdir into a binary during linking. 24926# This must work even if \$libdir does not exist 24927hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 24928 24929# Whether we need a single "-rpath" flag with a separated argument. 24930hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 24931 24932# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24933# DIR into the resulting binary. 24934hardcode_direct=$hardcode_direct_CXX 24935 24936# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24937# DIR into the resulting binary and the resulting library dependency is 24938# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24939# library is relocated. 24940hardcode_direct_absolute=$hardcode_direct_absolute_CXX 24941 24942# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24943# into the resulting binary. 24944hardcode_minus_L=$hardcode_minus_L_CXX 24945 24946# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24947# into the resulting binary. 24948hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 24949 24950# Set to "yes" if building a shared library automatically hardcodes DIR 24951# into the library and all subsequent libraries and executables linked 24952# against it. 24953hardcode_automatic=$hardcode_automatic_CXX 24954 24955# Set to yes if linker adds runtime paths of dependent libraries 24956# to runtime path list. 24957inherit_rpath=$inherit_rpath_CXX 24958 24959# Whether libtool must link a program against all its dependency libraries. 24960link_all_deplibs=$link_all_deplibs_CXX 24961 24962# Set to "yes" if exported symbols are required. 24963always_export_symbols=$always_export_symbols_CXX 24964 24965# The commands to list exported symbols. 24966export_symbols_cmds=$lt_export_symbols_cmds_CXX 24967 24968# Symbols that should not be listed in the preloaded symbols. 24969exclude_expsyms=$lt_exclude_expsyms_CXX 24970 24971# Symbols that must always be exported. 24972include_expsyms=$lt_include_expsyms_CXX 24973 24974# Commands necessary for linking programs (against libraries) with templates. 24975prelink_cmds=$lt_prelink_cmds_CXX 24976 24977# Commands necessary for finishing linking programs. 24978postlink_cmds=$lt_postlink_cmds_CXX 24979 24980# Specify filename containing input files. 24981file_list_spec=$lt_file_list_spec_CXX 24982 24983# How to hardcode a shared library path into an executable. 24984hardcode_action=$hardcode_action_CXX 24985 24986# The directories searched by this compiler when creating a shared library. 24987compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 24988 24989# Dependencies to place before and after the objects being linked to 24990# create a shared library. 24991predep_objects=$lt_predep_objects_CXX 24992postdep_objects=$lt_postdep_objects_CXX 24993predeps=$lt_predeps_CXX 24994postdeps=$lt_postdeps_CXX 24995 24996# The library search path used internally by the compiler when linking 24997# a shared library. 24998compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 24999 25000# ### END LIBTOOL TAG CONFIG: CXX 25001_LT_EOF 25002 25003 ;; 25004 "basis":C) test -e basis || ln -sf ${ac_top_srcdir}/basis . ;; 25005 "mlsource":C) test -e mlsource || ln -sf ${ac_top_srcdir}/mlsource . ;; 25006 "polyc":F) chmod +x polyc ;; 25007 25008 esac 25009done # for ac_tag 25010 25011 25012as_fn_exit 0 25013_ACEOF 25014ac_clean_files=$ac_clean_files_save 25015 25016test $ac_write_fail = 0 || 25017 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25018 25019 25020# configure is writing to config.log, and then calls config.status. 25021# config.status does its own redirection, appending to config.log. 25022# Unfortunately, on DOS this fails, as config.log is still kept open 25023# by configure, so config.status won't be able to write to it; its 25024# output is simply discarded. So we exec the FD to /dev/null, 25025# effectively closing config.log, so it can be properly (re)opened and 25026# appended to by config.status. When coming back to configure, we 25027# need to make the FD available again. 25028if test "$no_create" != yes; then 25029 ac_cs_success=: 25030 ac_config_status_args= 25031 test "$silent" = yes && 25032 ac_config_status_args="$ac_config_status_args --quiet" 25033 exec 5>/dev/null 25034 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25035 exec 5>>config.log 25036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25037 # would make configure fail if this is the last instruction. 25038 $ac_cs_success || as_fn_exit 1 25039fi 25040if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25042$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25043fi 25044 25045