1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for isl 0.22.1. 4# 5# Report bugs to <isl-development@googlegroups.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: isl-development@googlegroups.com about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='isl' 592PACKAGE_TARNAME='isl' 593PACKAGE_VERSION='0.22.1' 594PACKAGE_STRING='isl 0.22.1' 595PACKAGE_BUGREPORT='isl-development@googlegroups.com' 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 634enable_option_checking=no 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639subdirs 640GIT_HEAD_VERSION 641GIT_HEAD 642GIT_HEAD_ID 643pkgconfig_libfile 644pkgconfig_libdir 645WARNING_FLAGS 646HAVE_CPP_ISL_H_FALSE 647HAVE_CPP_ISL_H_TRUE 648HAVE_CLANG_FALSE 649HAVE_CLANG_TRUE 650SMALL_INT_OPT_FALSE 651SMALL_INT_OPT_TRUE 652HAVE_CXX11_FALSE 653HAVE_CXX11_TRUE 654GMP_FOR_MP_FALSE 655GMP_FOR_MP_TRUE 656IMATH_FOR_MP_FALSE 657IMATH_FOR_MP_TRUE 658NEED_GET_MEMORY_FUNCTIONS_FALSE 659NEED_GET_MEMORY_FUNCTIONS_TRUE 660MP_LIBS 661MP_LDFLAGS 662MP_CFLAGS 663MP_CPPFLAGS 664GENERATE_DOC_FALSE 665GENERATE_DOC_TRUE 666OS_SRCDIR 667POD2HTML 668PDFLATEX 669PERL 670CYGPATH 671HAVE_PYTHON_FALSE 672HAVE_PYTHON_TRUE 673pkgpyexecdir 674pyexecdir 675pkgpythondir 676pythondir 677PYTHON_PLATFORM 678PYTHON_EXEC_PREFIX 679PYTHON_PREFIX 680PYTHON_VERSION 681PYTHON 682CXXCPP 683LT_SYS_LIBRARY_PATH 684OTOOL64 685OTOOL 686LIPO 687NMEDIT 688DSYMUTIL 689MANIFEST_TOOL 690RANLIB 691ac_ct_AR 692AR 693DLLTOOL 694OBJDUMP 695LN_S 696NM 697ac_ct_DUMPBIN 698DUMPBIN 699LD 700FGREP 701EGREP 702SED 703LIBTOOL 704HAVE_CXX11 705GREP 706PRTDIAG 707host_os 708host_vendor 709host_cpu 710host 711LDFLAGS_FOR_BUILD 712CPPFLAGS_FOR_BUILD 713CFLAGS_FOR_BUILD 714BUILD_OBJEXT 715BUILD_EXEEXT 716CPP_FOR_BUILD 717ac_ct_CC_FOR_BUILD 718CC_FOR_BUILD 719build_os 720build_vendor 721build_cpu 722build 723CPP 724am__fastdepCXX_FALSE 725am__fastdepCXX_TRUE 726CXXDEPMODE 727ac_ct_CXX 728CXXFLAGS 729CXX 730am__fastdepCC_FALSE 731am__fastdepCC_TRUE 732CCDEPMODE 733am__nodep 734AMDEPBACKSLASH 735AMDEP_FALSE 736AMDEP_TRUE 737am__quote 738am__include 739DEPDIR 740OBJEXT 741EXEEXT 742ac_ct_CC 743CPPFLAGS 744LDFLAGS 745CFLAGS 746CC 747versioninfo 748AM_BACKSLASH 749AM_DEFAULT_VERBOSITY 750AM_DEFAULT_V 751AM_V 752am__untar 753am__tar 754AMTAR 755am__leading_dot 756SET_MAKE 757AWK 758mkdir_p 759MKDIR_P 760INSTALL_STRIP_PROGRAM 761STRIP 762install_sh 763MAKEINFO 764AUTOHEADER 765AUTOMAKE 766AUTOCONF 767ACLOCAL 768VERSION 769PACKAGE 770CYGPATH_W 771am__isrc 772INSTALL_DATA 773INSTALL_SCRIPT 774INSTALL_PROGRAM 775target_alias 776host_alias 777build_alias 778LIBS 779ECHO_T 780ECHO_N 781ECHO_C 782DEFS 783mandir 784localedir 785libdir 786psdir 787pdfdir 788dvidir 789htmldir 790infodir 791docdir 792oldincludedir 793includedir 794runstatedir 795localstatedir 796sharedstatedir 797sysconfdir 798datadir 799datarootdir 800libexecdir 801sbindir 802bindir 803program_transform_name 804prefix 805exec_prefix 806PACKAGE_URL 807PACKAGE_BUGREPORT 808PACKAGE_STRING 809PACKAGE_VERSION 810PACKAGE_TARNAME 811PACKAGE_NAME 812PATH_SEPARATOR 813SHELL' 814ac_subst_files='' 815ac_user_opts=' 816enable_option_checking 817enable_silent_rules 818enable_dependency_tracking 819enable_portable_binary 820with_gcc_arch 821enable_shared 822enable_static 823with_pic 824enable_fast_install 825with_aix_soname 826with_gnu_ld 827with_sysroot 828enable_libtool_lock 829with_int 830with_gmp 831with_gmp_prefix 832with_gmp_exec_prefix 833with_gmp_builddir 834with_clang 835with_clang_prefix 836with_clang_exec_prefix 837' 838 ac_precious_vars='build_alias 839host_alias 840target_alias 841CC 842CFLAGS 843LDFLAGS 844LIBS 845CPPFLAGS 846CXX 847CXXFLAGS 848CCC 849CPP 850LT_SYS_LIBRARY_PATH 851CXXCPP 852PYTHON' 853ac_subdirs_all='interface' 854 855# Initialize some variables set by options. 856ac_init_help= 857ac_init_version=false 858ac_unrecognized_opts= 859ac_unrecognized_sep= 860# The variables have the same names as the options, with 861# dashes changed to underlines. 862cache_file=/dev/null 863exec_prefix=NONE 864no_create= 865no_recursion= 866prefix=NONE 867program_prefix=NONE 868program_suffix=NONE 869program_transform_name=s,x,x, 870silent= 871site= 872srcdir= 873verbose= 874x_includes=NONE 875x_libraries=NONE 876 877# Installation directory options. 878# These are left unexpanded so users can "make install exec_prefix=/foo" 879# and all the variables that are supposed to be based on exec_prefix 880# by default will actually change. 881# Use braces instead of parens because sh, perl, etc. also accept them. 882# (The list follows the same order as the GNU Coding Standards.) 883bindir='${exec_prefix}/bin' 884sbindir='${exec_prefix}/sbin' 885libexecdir='${exec_prefix}/libexec' 886datarootdir='${prefix}/share' 887datadir='${datarootdir}' 888sysconfdir='${prefix}/etc' 889sharedstatedir='${prefix}/com' 890localstatedir='${prefix}/var' 891runstatedir='${localstatedir}/run' 892includedir='${prefix}/include' 893oldincludedir='/usr/include' 894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 895infodir='${datarootdir}/info' 896htmldir='${docdir}' 897dvidir='${docdir}' 898pdfdir='${docdir}' 899psdir='${docdir}' 900libdir='${exec_prefix}/lib' 901localedir='${datarootdir}/locale' 902mandir='${datarootdir}/man' 903 904ac_prev= 905ac_dashdash= 906for ac_option 907do 908 # If the previous option needs an argument, assign it. 909 if test -n "$ac_prev"; then 910 eval $ac_prev=\$ac_option 911 ac_prev= 912 continue 913 fi 914 915 case $ac_option in 916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 917 *=) ac_optarg= ;; 918 *) ac_optarg=yes ;; 919 esac 920 921 # Accept the important Cygnus configure options, so we can diagnose typos. 922 923 case $ac_dashdash$ac_option in 924 --) 925 ac_dashdash=yes ;; 926 927 -bindir | --bindir | --bindi | --bind | --bin | --bi) 928 ac_prev=bindir ;; 929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 930 bindir=$ac_optarg ;; 931 932 -build | --build | --buil | --bui | --bu) 933 ac_prev=build_alias ;; 934 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 935 build_alias=$ac_optarg ;; 936 937 -cache-file | --cache-file | --cache-fil | --cache-fi \ 938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 939 ac_prev=cache_file ;; 940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 942 cache_file=$ac_optarg ;; 943 944 --config-cache | -C) 945 cache_file=config.cache ;; 946 947 -datadir | --datadir | --datadi | --datad) 948 ac_prev=datadir ;; 949 -datadir=* | --datadir=* | --datadi=* | --datad=*) 950 datadir=$ac_optarg ;; 951 952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 953 | --dataroo | --dataro | --datar) 954 ac_prev=datarootdir ;; 955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 957 datarootdir=$ac_optarg ;; 958 959 -disable-* | --disable-*) 960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 961 # Reject names that are not valid shell variable names. 962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 963 as_fn_error $? "invalid feature name: $ac_useropt" 964 ac_useropt_orig=$ac_useropt 965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 966 case $ac_user_opts in 967 *" 968"enable_$ac_useropt" 969"*) ;; 970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 971 ac_unrecognized_sep=', ';; 972 esac 973 eval enable_$ac_useropt=no ;; 974 975 -docdir | --docdir | --docdi | --doc | --do) 976 ac_prev=docdir ;; 977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 978 docdir=$ac_optarg ;; 979 980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 981 ac_prev=dvidir ;; 982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 983 dvidir=$ac_optarg ;; 984 985 -enable-* | --enable-*) 986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 987 # Reject names that are not valid shell variable names. 988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 989 as_fn_error $? "invalid feature name: $ac_useropt" 990 ac_useropt_orig=$ac_useropt 991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 992 case $ac_user_opts in 993 *" 994"enable_$ac_useropt" 995"*) ;; 996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 997 ac_unrecognized_sep=', ';; 998 esac 999 eval enable_$ac_useropt=\$ac_optarg ;; 1000 1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1003 | --exec | --exe | --ex) 1004 ac_prev=exec_prefix ;; 1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1007 | --exec=* | --exe=* | --ex=*) 1008 exec_prefix=$ac_optarg ;; 1009 1010 -gas | --gas | --ga | --g) 1011 # Obsolete; use --with-gas. 1012 with_gas=yes ;; 1013 1014 -help | --help | --hel | --he | -h) 1015 ac_init_help=long ;; 1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1017 ac_init_help=recursive ;; 1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1019 ac_init_help=short ;; 1020 1021 -host | --host | --hos | --ho) 1022 ac_prev=host_alias ;; 1023 -host=* | --host=* | --hos=* | --ho=*) 1024 host_alias=$ac_optarg ;; 1025 1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1027 ac_prev=htmldir ;; 1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1029 | --ht=*) 1030 htmldir=$ac_optarg ;; 1031 1032 -includedir | --includedir | --includedi | --included | --include \ 1033 | --includ | --inclu | --incl | --inc) 1034 ac_prev=includedir ;; 1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1036 | --includ=* | --inclu=* | --incl=* | --inc=*) 1037 includedir=$ac_optarg ;; 1038 1039 -infodir | --infodir | --infodi | --infod | --info | --inf) 1040 ac_prev=infodir ;; 1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1042 infodir=$ac_optarg ;; 1043 1044 -libdir | --libdir | --libdi | --libd) 1045 ac_prev=libdir ;; 1046 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1047 libdir=$ac_optarg ;; 1048 1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1050 | --libexe | --libex | --libe) 1051 ac_prev=libexecdir ;; 1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1053 | --libexe=* | --libex=* | --libe=*) 1054 libexecdir=$ac_optarg ;; 1055 1056 -localedir | --localedir | --localedi | --localed | --locale) 1057 ac_prev=localedir ;; 1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1059 localedir=$ac_optarg ;; 1060 1061 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1062 | --localstate | --localstat | --localsta | --localst | --locals) 1063 ac_prev=localstatedir ;; 1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1066 localstatedir=$ac_optarg ;; 1067 1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1069 ac_prev=mandir ;; 1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1071 mandir=$ac_optarg ;; 1072 1073 -nfp | --nfp | --nf) 1074 # Obsolete; use --without-fp. 1075 with_fp=no ;; 1076 1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1078 | --no-cr | --no-c | -n) 1079 no_create=yes ;; 1080 1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1083 no_recursion=yes ;; 1084 1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1087 | --oldin | --oldi | --old | --ol | --o) 1088 ac_prev=oldincludedir ;; 1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1092 oldincludedir=$ac_optarg ;; 1093 1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1095 ac_prev=prefix ;; 1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1097 prefix=$ac_optarg ;; 1098 1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1100 | --program-pre | --program-pr | --program-p) 1101 ac_prev=program_prefix ;; 1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1104 program_prefix=$ac_optarg ;; 1105 1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1107 | --program-suf | --program-su | --program-s) 1108 ac_prev=program_suffix ;; 1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1111 program_suffix=$ac_optarg ;; 1112 1113 -program-transform-name | --program-transform-name \ 1114 | --program-transform-nam | --program-transform-na \ 1115 | --program-transform-n | --program-transform- \ 1116 | --program-transform | --program-transfor \ 1117 | --program-transfo | --program-transf \ 1118 | --program-trans | --program-tran \ 1119 | --progr-tra | --program-tr | --program-t) 1120 ac_prev=program_transform_name ;; 1121 -program-transform-name=* | --program-transform-name=* \ 1122 | --program-transform-nam=* | --program-transform-na=* \ 1123 | --program-transform-n=* | --program-transform-=* \ 1124 | --program-transform=* | --program-transfor=* \ 1125 | --program-transfo=* | --program-transf=* \ 1126 | --program-trans=* | --program-tran=* \ 1127 | --progr-tra=* | --program-tr=* | --program-t=*) 1128 program_transform_name=$ac_optarg ;; 1129 1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1131 ac_prev=pdfdir ;; 1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1133 pdfdir=$ac_optarg ;; 1134 1135 -psdir | --psdir | --psdi | --psd | --ps) 1136 ac_prev=psdir ;; 1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1138 psdir=$ac_optarg ;; 1139 1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1141 | -silent | --silent | --silen | --sile | --sil) 1142 silent=yes ;; 1143 1144 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1145 | --runstate | --runstat | --runsta | --runst | --runs \ 1146 | --run | --ru | --r) 1147 ac_prev=runstatedir ;; 1148 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1149 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1150 | --run=* | --ru=* | --r=*) 1151 runstatedir=$ac_optarg ;; 1152 1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1154 ac_prev=sbindir ;; 1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1156 | --sbi=* | --sb=*) 1157 sbindir=$ac_optarg ;; 1158 1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1161 | --sharedst | --shareds | --shared | --share | --shar \ 1162 | --sha | --sh) 1163 ac_prev=sharedstatedir ;; 1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1167 | --sha=* | --sh=*) 1168 sharedstatedir=$ac_optarg ;; 1169 1170 -site | --site | --sit) 1171 ac_prev=site ;; 1172 -site=* | --site=* | --sit=*) 1173 site=$ac_optarg ;; 1174 1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1176 ac_prev=srcdir ;; 1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1178 srcdir=$ac_optarg ;; 1179 1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1181 | --syscon | --sysco | --sysc | --sys | --sy) 1182 ac_prev=sysconfdir ;; 1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1185 sysconfdir=$ac_optarg ;; 1186 1187 -target | --target | --targe | --targ | --tar | --ta | --t) 1188 ac_prev=target_alias ;; 1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1190 target_alias=$ac_optarg ;; 1191 1192 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1193 verbose=yes ;; 1194 1195 -version | --version | --versio | --versi | --vers | -V) 1196 ac_init_version=: ;; 1197 1198 -with-* | --with-*) 1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1200 # Reject names that are not valid shell variable names. 1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1202 as_fn_error $? "invalid package name: $ac_useropt" 1203 ac_useropt_orig=$ac_useropt 1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1205 case $ac_user_opts in 1206 *" 1207"with_$ac_useropt" 1208"*) ;; 1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1210 ac_unrecognized_sep=', ';; 1211 esac 1212 eval with_$ac_useropt=\$ac_optarg ;; 1213 1214 -without-* | --without-*) 1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1216 # Reject names that are not valid shell variable names. 1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1218 as_fn_error $? "invalid package name: $ac_useropt" 1219 ac_useropt_orig=$ac_useropt 1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1221 case $ac_user_opts in 1222 *" 1223"with_$ac_useropt" 1224"*) ;; 1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1226 ac_unrecognized_sep=', ';; 1227 esac 1228 eval with_$ac_useropt=no ;; 1229 1230 --x) 1231 # Obsolete; use --with-x. 1232 with_x=yes ;; 1233 1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1235 | --x-incl | --x-inc | --x-in | --x-i) 1236 ac_prev=x_includes ;; 1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1239 x_includes=$ac_optarg ;; 1240 1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1243 ac_prev=x_libraries ;; 1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1246 x_libraries=$ac_optarg ;; 1247 1248 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1249Try \`$0 --help' for more information" 1250 ;; 1251 1252 *=*) 1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1254 # Reject names that are not valid shell variable names. 1255 case $ac_envvar in #( 1256 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1258 esac 1259 eval $ac_envvar=\$ac_optarg 1260 export $ac_envvar ;; 1261 1262 *) 1263 # FIXME: should be removed in autoconf 3.0. 1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1268 ;; 1269 1270 esac 1271done 1272 1273if test -n "$ac_prev"; then 1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1275 as_fn_error $? "missing argument to $ac_option" 1276fi 1277 1278if test -n "$ac_unrecognized_opts"; then 1279 case $enable_option_checking in 1280 no) ;; 1281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1282 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1283 esac 1284fi 1285 1286# Check all directory arguments for consistency. 1287for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1288 datadir sysconfdir sharedstatedir localstatedir includedir \ 1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1290 libdir localedir mandir runstatedir 1291do 1292 eval ac_val=\$$ac_var 1293 # Remove trailing slashes. 1294 case $ac_val in 1295 */ ) 1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1297 eval $ac_var=\$ac_val;; 1298 esac 1299 # Be sure to have absolute directory names. 1300 case $ac_val in 1301 [\\/$]* | ?:[\\/]* ) continue;; 1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1303 esac 1304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1305done 1306 1307# There might be people who depend on the old broken behavior: `$host' 1308# used to hold the argument of --host etc. 1309# FIXME: To remove some day. 1310build=$build_alias 1311host=$host_alias 1312target=$target_alias 1313 1314# FIXME: To remove some day. 1315if test "x$host_alias" != x; then 1316 if test "x$build_alias" = x; then 1317 cross_compiling=maybe 1318 elif test "x$build_alias" != "x$host_alias"; then 1319 cross_compiling=yes 1320 fi 1321fi 1322 1323ac_tool_prefix= 1324test -n "$host_alias" && ac_tool_prefix=$host_alias- 1325 1326test "$silent" = yes && exec 6>/dev/null 1327 1328 1329ac_pwd=`pwd` && test -n "$ac_pwd" && 1330ac_ls_di=`ls -di .` && 1331ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1332 as_fn_error $? "working directory cannot be determined" 1333test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1334 as_fn_error $? "pwd does not report name of working directory" 1335 1336 1337# Find the source files, if location was not specified. 1338if test -z "$srcdir"; then 1339 ac_srcdir_defaulted=yes 1340 # Try the directory containing this script, then the parent directory. 1341 ac_confdir=`$as_dirname -- "$as_myself" || 1342$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1343 X"$as_myself" : 'X\(//\)[^/]' \| \ 1344 X"$as_myself" : 'X\(//\)$' \| \ 1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1346$as_echo X"$as_myself" | 1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\/\)[^/].*/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\/\)$/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\).*/{ 1360 s//\1/ 1361 q 1362 } 1363 s/.*/./; q'` 1364 srcdir=$ac_confdir 1365 if test ! -r "$srcdir/$ac_unique_file"; then 1366 srcdir=.. 1367 fi 1368else 1369 ac_srcdir_defaulted=no 1370fi 1371if test ! -r "$srcdir/$ac_unique_file"; then 1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1374fi 1375ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1376ac_abs_confdir=`( 1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1378 pwd)` 1379# When building in place, set srcdir=. 1380if test "$ac_abs_confdir" = "$ac_pwd"; then 1381 srcdir=. 1382fi 1383# Remove unnecessary trailing slashes from srcdir. 1384# Double slashes in file names in object file debugging info 1385# mess up M-x gdb in Emacs. 1386case $srcdir in 1387*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1388esac 1389for ac_var in $ac_precious_vars; do 1390 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1391 eval ac_env_${ac_var}_value=\$${ac_var} 1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1393 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1394done 1395 1396# 1397# Report the --help message. 1398# 1399if test "$ac_init_help" = "long"; then 1400 # Omit some internal or obsolete options to make the list less imposing. 1401 # This message is too long to be a string in the A/UX 3.1 sh. 1402 cat <<_ACEOF 1403\`configure' configures isl 0.22.1 to adapt to many kinds of systems. 1404 1405Usage: $0 [OPTION]... [VAR=VALUE]... 1406 1407To assign environment variables (e.g., CC, CFLAGS...), specify them as 1408VAR=VALUE. See below for descriptions of some of the useful variables. 1409 1410Defaults for the options are specified in brackets. 1411 1412Configuration: 1413 -h, --help display this help and exit 1414 --help=short display options specific to this package 1415 --help=recursive display the short help of all the included packages 1416 -V, --version display version information and exit 1417 -q, --quiet, --silent do not print \`checking ...' messages 1418 --cache-file=FILE cache test results in FILE [disabled] 1419 -C, --config-cache alias for \`--cache-file=config.cache' 1420 -n, --no-create do not create output files 1421 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1422 1423Installation directories: 1424 --prefix=PREFIX install architecture-independent files in PREFIX 1425 [$ac_default_prefix] 1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1427 [PREFIX] 1428 1429By default, \`make install' will install all the files in 1430\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1431an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1432for instance \`--prefix=\$HOME'. 1433 1434For better control, use the options below. 1435 1436Fine tuning of the installation directories: 1437 --bindir=DIR user executables [EPREFIX/bin] 1438 --sbindir=DIR system admin executables [EPREFIX/sbin] 1439 --libexecdir=DIR program executables [EPREFIX/libexec] 1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1443 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1444 --libdir=DIR object code libraries [EPREFIX/lib] 1445 --includedir=DIR C header files [PREFIX/include] 1446 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1449 --infodir=DIR info documentation [DATAROOTDIR/info] 1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1451 --mandir=DIR man documentation [DATAROOTDIR/man] 1452 --docdir=DIR documentation root [DATAROOTDIR/doc/isl] 1453 --htmldir=DIR html documentation [DOCDIR] 1454 --dvidir=DIR dvi documentation [DOCDIR] 1455 --pdfdir=DIR pdf documentation [DOCDIR] 1456 --psdir=DIR ps documentation [DOCDIR] 1457_ACEOF 1458 1459 cat <<\_ACEOF 1460 1461Program names: 1462 --program-prefix=PREFIX prepend PREFIX to installed program names 1463 --program-suffix=SUFFIX append SUFFIX to installed program names 1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1465 1466System types: 1467 --build=BUILD configure for building on BUILD [guessed] 1468 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1469_ACEOF 1470fi 1471 1472if test -n "$ac_init_help"; then 1473 case $ac_init_help in 1474 short | recursive ) echo "Configuration of isl 0.22.1:";; 1475 esac 1476 cat <<\_ACEOF 1477 1478Optional Features: 1479 --disable-option-checking ignore unrecognized --enable/--with options 1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1482 --enable-silent-rules less verbose build output (undo: "make V=1") 1483 --disable-silent-rules verbose build output (undo: "make V=0") 1484 --enable-dependency-tracking 1485 do not reject slow dependency extractors 1486 --disable-dependency-tracking 1487 speeds up one-time build 1488 --enable-portable-binary 1489 disable compiler optimizations that would produce 1490 unportable binaries 1491 --enable-shared[=PKGS] build shared libraries [default=yes] 1492 --enable-static[=PKGS] build static libraries [default=yes] 1493 --enable-fast-install[=PKGS] 1494 optimize for fast installation [default=yes] 1495 --disable-libtool-lock avoid locking (might break parallel builds) 1496 1497Optional Packages: 1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1500 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune, 1501 instead of guessing 1502 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1503 both] 1504 --with-aix-soname=aix|svr4|both 1505 shared library versioning (aka "SONAME") variant to 1506 provide on AIX, [default=aix]. 1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1508 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1509 compiler's sysroot if not specified). 1510 --with-int=gmp|imath|imath-32 1511 Which package to use to represent multi-precision 1512 integers [default=gmp] 1513 --with-gmp=system|build Which gmp to use [default=system] 1514 --with-gmp-prefix=DIR Prefix of gmp installation 1515 --with-gmp-exec-prefix=DIR 1516 Exec prefix of gmp installation 1517 --with-gmp-builddir=DIR Location of gmp builddir 1518 --with-clang=system|no Which clang to use [default=no] 1519 --with-clang-prefix=DIR Prefix of clang installation 1520 --with-clang-exec-prefix=DIR 1521 Exec prefix of clang installation 1522 1523Some influential environment variables: 1524 CC C compiler command 1525 CFLAGS C compiler flags 1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1527 nonstandard directory <lib dir> 1528 LIBS libraries to pass to the linker, e.g. -l<library> 1529 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1530 you have headers in a nonstandard directory <include dir> 1531 CXX C++ compiler command 1532 CXXFLAGS C++ compiler flags 1533 CPP C preprocessor 1534 LT_SYS_LIBRARY_PATH 1535 User-defined run-time library search path. 1536 CXXCPP C++ preprocessor 1537 PYTHON the Python interpreter 1538 1539Use these variables to override the choices made by `configure' or to help 1540it to find libraries and programs with nonstandard names/locations. 1541 1542Report bugs to <isl-development@googlegroups.com>. 1543_ACEOF 1544ac_status=$? 1545fi 1546 1547if test "$ac_init_help" = "recursive"; then 1548 # If there are subdirs, report their specific --help. 1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1550 test -d "$ac_dir" || 1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1552 continue 1553 ac_builddir=. 1554 1555case "$ac_dir" in 1556.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1557*) 1558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1559 # A ".." for each directory in $ac_dir_suffix. 1560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1561 case $ac_top_builddir_sub in 1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1564 esac ;; 1565esac 1566ac_abs_top_builddir=$ac_pwd 1567ac_abs_builddir=$ac_pwd$ac_dir_suffix 1568# for backward compatibility: 1569ac_top_builddir=$ac_top_build_prefix 1570 1571case $srcdir in 1572 .) # We are building in place. 1573 ac_srcdir=. 1574 ac_top_srcdir=$ac_top_builddir_sub 1575 ac_abs_top_srcdir=$ac_pwd ;; 1576 [\\/]* | ?:[\\/]* ) # Absolute name. 1577 ac_srcdir=$srcdir$ac_dir_suffix; 1578 ac_top_srcdir=$srcdir 1579 ac_abs_top_srcdir=$srcdir ;; 1580 *) # Relative name. 1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1582 ac_top_srcdir=$ac_top_build_prefix$srcdir 1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1584esac 1585ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1586 1587 cd "$ac_dir" || { ac_status=$?; continue; } 1588 # Check for guested configure. 1589 if test -f "$ac_srcdir/configure.gnu"; then 1590 echo && 1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1592 elif test -f "$ac_srcdir/configure"; then 1593 echo && 1594 $SHELL "$ac_srcdir/configure" --help=recursive 1595 else 1596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1597 fi || ac_status=$? 1598 cd "$ac_pwd" || { ac_status=$?; break; } 1599 done 1600fi 1601 1602test -n "$ac_init_help" && exit $ac_status 1603if $ac_init_version; then 1604 cat <<\_ACEOF 1605isl configure 0.22.1 1606generated by GNU Autoconf 2.69 1607 1608Copyright (C) 2012 Free Software Foundation, Inc. 1609This configure script is free software; the Free Software Foundation 1610gives unlimited permission to copy, distribute and modify it. 1611_ACEOF 1612 exit 1613fi 1614 1615## ------------------------ ## 1616## Autoconf initialization. ## 1617## ------------------------ ## 1618 1619# ac_fn_c_try_compile LINENO 1620# -------------------------- 1621# Try to compile conftest.$ac_ext, and return whether this succeeded. 1622ac_fn_c_try_compile () 1623{ 1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1625 rm -f conftest.$ac_objext 1626 if { { ac_try="$ac_compile" 1627case "(($ac_try" in 1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1629 *) ac_try_echo=$ac_try;; 1630esac 1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1632$as_echo "$ac_try_echo"; } >&5 1633 (eval "$ac_compile") 2>conftest.err 1634 ac_status=$? 1635 if test -s conftest.err; then 1636 grep -v '^ *+' conftest.err >conftest.er1 1637 cat conftest.er1 >&5 1638 mv -f conftest.er1 conftest.err 1639 fi 1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1641 test $ac_status = 0; } && { 1642 test -z "$ac_c_werror_flag" || 1643 test ! -s conftest.err 1644 } && test -s conftest.$ac_objext; then : 1645 ac_retval=0 1646else 1647 $as_echo "$as_me: failed program was:" >&5 1648sed 's/^/| /' conftest.$ac_ext >&5 1649 1650 ac_retval=1 1651fi 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 as_fn_set_status $ac_retval 1654 1655} # ac_fn_c_try_compile 1656 1657# ac_fn_cxx_try_compile LINENO 1658# ---------------------------- 1659# Try to compile conftest.$ac_ext, and return whether this succeeded. 1660ac_fn_cxx_try_compile () 1661{ 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 rm -f conftest.$ac_objext 1664 if { { ac_try="$ac_compile" 1665case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668esac 1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670$as_echo "$ac_try_echo"; } >&5 1671 (eval "$ac_compile") 2>conftest.err 1672 ac_status=$? 1673 if test -s conftest.err; then 1674 grep -v '^ *+' conftest.err >conftest.er1 1675 cat conftest.er1 >&5 1676 mv -f conftest.er1 conftest.err 1677 fi 1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1679 test $ac_status = 0; } && { 1680 test -z "$ac_cxx_werror_flag" || 1681 test ! -s conftest.err 1682 } && test -s conftest.$ac_objext; then : 1683 ac_retval=0 1684else 1685 $as_echo "$as_me: failed program was:" >&5 1686sed 's/^/| /' conftest.$ac_ext >&5 1687 1688 ac_retval=1 1689fi 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691 as_fn_set_status $ac_retval 1692 1693} # ac_fn_cxx_try_compile 1694 1695# ac_fn_c_try_cpp LINENO 1696# ---------------------- 1697# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1698ac_fn_c_try_cpp () 1699{ 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 if { { ac_try="$ac_cpp conftest.$ac_ext" 1702case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707$as_echo "$ac_try_echo"; } >&5 1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1709 ac_status=$? 1710 if test -s conftest.err; then 1711 grep -v '^ *+' conftest.err >conftest.er1 1712 cat conftest.er1 >&5 1713 mv -f conftest.er1 conftest.err 1714 fi 1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1716 test $ac_status = 0; } > conftest.i && { 1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1718 test ! -s conftest.err 1719 }; then : 1720 ac_retval=0 1721else 1722 $as_echo "$as_me: failed program was:" >&5 1723sed 's/^/| /' conftest.$ac_ext >&5 1724 1725 ac_retval=1 1726fi 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 as_fn_set_status $ac_retval 1729 1730} # ac_fn_c_try_cpp 1731 1732# ac_fn_c_try_run LINENO 1733# ---------------------- 1734# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1735# that executables *can* be run. 1736ac_fn_c_try_run () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 if { { ac_try="$ac_link" 1740case "(($ac_try" in 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1742 *) ac_try_echo=$ac_try;; 1743esac 1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1745$as_echo "$ac_try_echo"; } >&5 1746 (eval "$ac_link") 2>&5 1747 ac_status=$? 1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1750 { { case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755$as_echo "$ac_try_echo"; } >&5 1756 (eval "$ac_try") 2>&5 1757 ac_status=$? 1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1759 test $ac_status = 0; }; }; then : 1760 ac_retval=0 1761else 1762 $as_echo "$as_me: program exited with status $ac_status" >&5 1763 $as_echo "$as_me: failed program was:" >&5 1764sed 's/^/| /' conftest.$ac_ext >&5 1765 1766 ac_retval=$ac_status 1767fi 1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1770 as_fn_set_status $ac_retval 1771 1772} # ac_fn_c_try_run 1773 1774# ac_fn_c_try_link LINENO 1775# ----------------------- 1776# Try to link conftest.$ac_ext, and return whether this succeeded. 1777ac_fn_c_try_link () 1778{ 1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1780 rm -f conftest.$ac_objext conftest$ac_exeext 1781 if { { ac_try="$ac_link" 1782case "(($ac_try" in 1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1784 *) ac_try_echo=$ac_try;; 1785esac 1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1787$as_echo "$ac_try_echo"; } >&5 1788 (eval "$ac_link") 2>conftest.err 1789 ac_status=$? 1790 if test -s conftest.err; then 1791 grep -v '^ *+' conftest.err >conftest.er1 1792 cat conftest.er1 >&5 1793 mv -f conftest.er1 conftest.err 1794 fi 1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1796 test $ac_status = 0; } && { 1797 test -z "$ac_c_werror_flag" || 1798 test ! -s conftest.err 1799 } && test -s conftest$ac_exeext && { 1800 test "$cross_compiling" = yes || 1801 test -x conftest$ac_exeext 1802 }; then : 1803 ac_retval=0 1804else 1805 $as_echo "$as_me: failed program was:" >&5 1806sed 's/^/| /' conftest.$ac_ext >&5 1807 1808 ac_retval=1 1809fi 1810 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1811 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1812 # interfere with the next link command; also delete a directory that is 1813 # left behind by Apple's compiler. We do this before executing the actions. 1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1816 as_fn_set_status $ac_retval 1817 1818} # ac_fn_c_try_link 1819 1820# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1821# ------------------------------------------------------- 1822# Tests whether HEADER exists and can be compiled using the include files in 1823# INCLUDES, setting the cache variable VAR accordingly. 1824ac_fn_c_check_header_compile () 1825{ 1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1828$as_echo_n "checking for $2... " >&6; } 1829if eval \${$3+:} false; then : 1830 $as_echo_n "(cached) " >&6 1831else 1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1833/* end confdefs.h. */ 1834$4 1835#include <$2> 1836_ACEOF 1837if ac_fn_c_try_compile "$LINENO"; then : 1838 eval "$3=yes" 1839else 1840 eval "$3=no" 1841fi 1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1843fi 1844eval ac_res=\$$3 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1846$as_echo "$ac_res" >&6; } 1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1848 1849} # ac_fn_c_check_header_compile 1850 1851# ac_fn_c_check_func LINENO FUNC VAR 1852# ---------------------------------- 1853# Tests whether FUNC exists, setting the cache variable VAR accordingly 1854ac_fn_c_check_func () 1855{ 1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1858$as_echo_n "checking for $2... " >&6; } 1859if eval \${$3+:} false; then : 1860 $as_echo_n "(cached) " >&6 1861else 1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1863/* end confdefs.h. */ 1864/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1865 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1866#define $2 innocuous_$2 1867 1868/* System header to define __stub macros and hopefully few prototypes, 1869 which can conflict with char $2 (); below. 1870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1871 <limits.h> exists even on freestanding compilers. */ 1872 1873#ifdef __STDC__ 1874# include <limits.h> 1875#else 1876# include <assert.h> 1877#endif 1878 1879#undef $2 1880 1881/* Override any GCC internal prototype to avoid an error. 1882 Use char because int might match the return type of a GCC 1883 builtin and then its argument prototype would still apply. */ 1884#ifdef __cplusplus 1885extern "C" 1886#endif 1887char $2 (); 1888/* The GNU C library defines this for functions which it implements 1889 to always fail with ENOSYS. Some functions are actually named 1890 something starting with __ and the normal name is an alias. */ 1891#if defined __stub_$2 || defined __stub___$2 1892choke me 1893#endif 1894 1895int 1896main () 1897{ 1898return $2 (); 1899 ; 1900 return 0; 1901} 1902_ACEOF 1903if ac_fn_c_try_link "$LINENO"; then : 1904 eval "$3=yes" 1905else 1906 eval "$3=no" 1907fi 1908rm -f core conftest.err conftest.$ac_objext \ 1909 conftest$ac_exeext conftest.$ac_ext 1910fi 1911eval ac_res=\$$3 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1913$as_echo "$ac_res" >&6; } 1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1915 1916} # ac_fn_c_check_func 1917 1918# ac_fn_cxx_try_cpp LINENO 1919# ------------------------ 1920# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1921ac_fn_cxx_try_cpp () 1922{ 1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1924 if { { ac_try="$ac_cpp conftest.$ac_ext" 1925case "(($ac_try" in 1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1927 *) ac_try_echo=$ac_try;; 1928esac 1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1930$as_echo "$ac_try_echo"; } >&5 1931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1932 ac_status=$? 1933 if test -s conftest.err; then 1934 grep -v '^ *+' conftest.err >conftest.er1 1935 cat conftest.er1 >&5 1936 mv -f conftest.er1 conftest.err 1937 fi 1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1939 test $ac_status = 0; } > conftest.i && { 1940 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1941 test ! -s conftest.err 1942 }; then : 1943 ac_retval=0 1944else 1945 $as_echo "$as_me: failed program was:" >&5 1946sed 's/^/| /' conftest.$ac_ext >&5 1947 1948 ac_retval=1 1949fi 1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1951 as_fn_set_status $ac_retval 1952 1953} # ac_fn_cxx_try_cpp 1954 1955# ac_fn_cxx_try_link LINENO 1956# ------------------------- 1957# Try to link conftest.$ac_ext, and return whether this succeeded. 1958ac_fn_cxx_try_link () 1959{ 1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1961 rm -f conftest.$ac_objext conftest$ac_exeext 1962 if { { ac_try="$ac_link" 1963case "(($ac_try" in 1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1965 *) ac_try_echo=$ac_try;; 1966esac 1967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1968$as_echo "$ac_try_echo"; } >&5 1969 (eval "$ac_link") 2>conftest.err 1970 ac_status=$? 1971 if test -s conftest.err; then 1972 grep -v '^ *+' conftest.err >conftest.er1 1973 cat conftest.er1 >&5 1974 mv -f conftest.er1 conftest.err 1975 fi 1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1977 test $ac_status = 0; } && { 1978 test -z "$ac_cxx_werror_flag" || 1979 test ! -s conftest.err 1980 } && test -s conftest$ac_exeext && { 1981 test "$cross_compiling" = yes || 1982 test -x conftest$ac_exeext 1983 }; then : 1984 ac_retval=0 1985else 1986 $as_echo "$as_me: failed program was:" >&5 1987sed 's/^/| /' conftest.$ac_ext >&5 1988 1989 ac_retval=1 1990fi 1991 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1992 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1993 # interfere with the next link command; also delete a directory that is 1994 # left behind by Apple's compiler. We do this before executing the actions. 1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1997 as_fn_set_status $ac_retval 1998 1999} # ac_fn_cxx_try_link 2000 2001# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2002# ------------------------------------------- 2003# Tests whether TYPE exists after having included INCLUDES, setting cache 2004# variable VAR accordingly. 2005ac_fn_c_check_type () 2006{ 2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2009$as_echo_n "checking for $2... " >&6; } 2010if eval \${$3+:} false; then : 2011 $as_echo_n "(cached) " >&6 2012else 2013 eval "$3=no" 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2015/* end confdefs.h. */ 2016$4 2017int 2018main () 2019{ 2020if (sizeof ($2)) 2021 return 0; 2022 ; 2023 return 0; 2024} 2025_ACEOF 2026if ac_fn_c_try_compile "$LINENO"; then : 2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2028/* end confdefs.h. */ 2029$4 2030int 2031main () 2032{ 2033if (sizeof (($2))) 2034 return 0; 2035 ; 2036 return 0; 2037} 2038_ACEOF 2039if ac_fn_c_try_compile "$LINENO"; then : 2040 2041else 2042 eval "$3=yes" 2043fi 2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2045fi 2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2047fi 2048eval ac_res=\$$3 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2050$as_echo "$ac_res" >&6; } 2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2052 2053} # ac_fn_c_check_type 2054 2055# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2056# -------------------------------------------- 2057# Tries to find the compile-time value of EXPR in a program that includes 2058# INCLUDES, setting VAR accordingly. Returns whether the value could be 2059# computed 2060ac_fn_c_compute_int () 2061{ 2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2063 if test "$cross_compiling" = yes; then 2064 # Depending upon the size, compute the lo and hi bounds. 2065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2066/* end confdefs.h. */ 2067$4 2068int 2069main () 2070{ 2071static int test_array [1 - 2 * !(($2) >= 0)]; 2072test_array [0] = 0; 2073return test_array [0]; 2074 2075 ; 2076 return 0; 2077} 2078_ACEOF 2079if ac_fn_c_try_compile "$LINENO"; then : 2080 ac_lo=0 ac_mid=0 2081 while :; do 2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2083/* end confdefs.h. */ 2084$4 2085int 2086main () 2087{ 2088static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2089test_array [0] = 0; 2090return test_array [0]; 2091 2092 ; 2093 return 0; 2094} 2095_ACEOF 2096if ac_fn_c_try_compile "$LINENO"; then : 2097 ac_hi=$ac_mid; break 2098else 2099 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2100 if test $ac_lo -le $ac_mid; then 2101 ac_lo= ac_hi= 2102 break 2103 fi 2104 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2105fi 2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2107 done 2108else 2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110/* end confdefs.h. */ 2111$4 2112int 2113main () 2114{ 2115static int test_array [1 - 2 * !(($2) < 0)]; 2116test_array [0] = 0; 2117return test_array [0]; 2118 2119 ; 2120 return 0; 2121} 2122_ACEOF 2123if ac_fn_c_try_compile "$LINENO"; then : 2124 ac_hi=-1 ac_mid=-1 2125 while :; do 2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2127/* end confdefs.h. */ 2128$4 2129int 2130main () 2131{ 2132static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2133test_array [0] = 0; 2134return test_array [0]; 2135 2136 ; 2137 return 0; 2138} 2139_ACEOF 2140if ac_fn_c_try_compile "$LINENO"; then : 2141 ac_lo=$ac_mid; break 2142else 2143 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2144 if test $ac_mid -le $ac_hi; then 2145 ac_lo= ac_hi= 2146 break 2147 fi 2148 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2149fi 2150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2151 done 2152else 2153 ac_lo= ac_hi= 2154fi 2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2156fi 2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2158# Binary search between lo and hi bounds. 2159while test "x$ac_lo" != "x$ac_hi"; do 2160 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2162/* end confdefs.h. */ 2163$4 2164int 2165main () 2166{ 2167static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2168test_array [0] = 0; 2169return test_array [0]; 2170 2171 ; 2172 return 0; 2173} 2174_ACEOF 2175if ac_fn_c_try_compile "$LINENO"; then : 2176 ac_hi=$ac_mid 2177else 2178 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2179fi 2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2181done 2182case $ac_lo in #(( 2183?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2184'') ac_retval=1 ;; 2185esac 2186 else 2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2188/* end confdefs.h. */ 2189$4 2190static long int longval () { return $2; } 2191static unsigned long int ulongval () { return $2; } 2192#include <stdio.h> 2193#include <stdlib.h> 2194int 2195main () 2196{ 2197 2198 FILE *f = fopen ("conftest.val", "w"); 2199 if (! f) 2200 return 1; 2201 if (($2) < 0) 2202 { 2203 long int i = longval (); 2204 if (i != ($2)) 2205 return 1; 2206 fprintf (f, "%ld", i); 2207 } 2208 else 2209 { 2210 unsigned long int i = ulongval (); 2211 if (i != ($2)) 2212 return 1; 2213 fprintf (f, "%lu", i); 2214 } 2215 /* Do not output a trailing newline, as this causes \r\n confusion 2216 on some platforms. */ 2217 return ferror (f) || fclose (f) != 0; 2218 2219 ; 2220 return 0; 2221} 2222_ACEOF 2223if ac_fn_c_try_run "$LINENO"; then : 2224 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2225else 2226 ac_retval=1 2227fi 2228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2229 conftest.$ac_objext conftest.beam conftest.$ac_ext 2230rm -f conftest.val 2231 2232 fi 2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2234 as_fn_set_status $ac_retval 2235 2236} # ac_fn_c_compute_int 2237 2238# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2239# ------------------------------------------------------- 2240# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2241# the include files in INCLUDES and setting the cache variable VAR 2242# accordingly. 2243ac_fn_c_check_header_mongrel () 2244{ 2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2246 if eval \${$3+:} false; then : 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2248$as_echo_n "checking for $2... " >&6; } 2249if eval \${$3+:} false; then : 2250 $as_echo_n "(cached) " >&6 2251fi 2252eval ac_res=\$$3 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2254$as_echo "$ac_res" >&6; } 2255else 2256 # Is the header compilable? 2257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2258$as_echo_n "checking $2 usability... " >&6; } 2259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2260/* end confdefs.h. */ 2261$4 2262#include <$2> 2263_ACEOF 2264if ac_fn_c_try_compile "$LINENO"; then : 2265 ac_header_compiler=yes 2266else 2267 ac_header_compiler=no 2268fi 2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2271$as_echo "$ac_header_compiler" >&6; } 2272 2273# Is the header present? 2274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2275$as_echo_n "checking $2 presence... " >&6; } 2276cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2277/* end confdefs.h. */ 2278#include <$2> 2279_ACEOF 2280if ac_fn_c_try_cpp "$LINENO"; then : 2281 ac_header_preproc=yes 2282else 2283 ac_header_preproc=no 2284fi 2285rm -f conftest.err conftest.i conftest.$ac_ext 2286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2287$as_echo "$ac_header_preproc" >&6; } 2288 2289# So? What about this header? 2290case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2291 yes:no: ) 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2293$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2295$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2296 ;; 2297 no:yes:* ) 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2299$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2301$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2303$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2305$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2307$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2308( $as_echo "## ----------------------------------------------- ## 2309## Report this to isl-development@googlegroups.com ## 2310## ----------------------------------------------- ##" 2311 ) | sed "s/^/$as_me: WARNING: /" >&2 2312 ;; 2313esac 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2315$as_echo_n "checking for $2... " >&6; } 2316if eval \${$3+:} false; then : 2317 $as_echo_n "(cached) " >&6 2318else 2319 eval "$3=\$ac_header_compiler" 2320fi 2321eval ac_res=\$$3 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2323$as_echo "$ac_res" >&6; } 2324fi 2325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2326 2327} # ac_fn_c_check_header_mongrel 2328 2329# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2330# --------------------------------------------- 2331# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2332# accordingly. 2333ac_fn_c_check_decl () 2334{ 2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2336 as_decl_name=`echo $2|sed 's/ *(.*//'` 2337 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2339$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2340if eval \${$3+:} false; then : 2341 $as_echo_n "(cached) " >&6 2342else 2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2344/* end confdefs.h. */ 2345$4 2346int 2347main () 2348{ 2349#ifndef $as_decl_name 2350#ifdef __cplusplus 2351 (void) $as_decl_use; 2352#else 2353 (void) $as_decl_name; 2354#endif 2355#endif 2356 2357 ; 2358 return 0; 2359} 2360_ACEOF 2361if ac_fn_c_try_compile "$LINENO"; then : 2362 eval "$3=yes" 2363else 2364 eval "$3=no" 2365fi 2366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2367fi 2368eval ac_res=\$$3 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2370$as_echo "$ac_res" >&6; } 2371 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2372 2373} # ac_fn_c_check_decl 2374cat >config.log <<_ACEOF 2375This file contains any messages produced by compilers while 2376running configure, to aid debugging if configure makes a mistake. 2377 2378It was created by isl $as_me 0.22.1, which was 2379generated by GNU Autoconf 2.69. Invocation command line was 2380 2381 $ $0 $@ 2382 2383_ACEOF 2384exec 5>>config.log 2385{ 2386cat <<_ASUNAME 2387## --------- ## 2388## Platform. ## 2389## --------- ## 2390 2391hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2392uname -m = `(uname -m) 2>/dev/null || echo unknown` 2393uname -r = `(uname -r) 2>/dev/null || echo unknown` 2394uname -s = `(uname -s) 2>/dev/null || echo unknown` 2395uname -v = `(uname -v) 2>/dev/null || echo unknown` 2396 2397/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2398/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2399 2400/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2401/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2402/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2403/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2404/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2405/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2406/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2407 2408_ASUNAME 2409 2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2411for as_dir in $PATH 2412do 2413 IFS=$as_save_IFS 2414 test -z "$as_dir" && as_dir=. 2415 $as_echo "PATH: $as_dir" 2416 done 2417IFS=$as_save_IFS 2418 2419} >&5 2420 2421cat >&5 <<_ACEOF 2422 2423 2424## ----------- ## 2425## Core tests. ## 2426## ----------- ## 2427 2428_ACEOF 2429 2430 2431# Keep a trace of the command line. 2432# Strip out --no-create and --no-recursion so they do not pile up. 2433# Strip out --silent because we don't want to record it for future runs. 2434# Also quote any args containing shell meta-characters. 2435# Make two passes to allow for proper duplicate-argument suppression. 2436ac_configure_args= 2437ac_configure_args0= 2438ac_configure_args1= 2439ac_must_keep_next=false 2440for ac_pass in 1 2 2441do 2442 for ac_arg 2443 do 2444 case $ac_arg in 2445 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2447 | -silent | --silent | --silen | --sile | --sil) 2448 continue ;; 2449 *\'*) 2450 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2451 esac 2452 case $ac_pass in 2453 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2454 2) 2455 as_fn_append ac_configure_args1 " '$ac_arg'" 2456 if test $ac_must_keep_next = true; then 2457 ac_must_keep_next=false # Got value, back to normal. 2458 else 2459 case $ac_arg in 2460 *=* | --config-cache | -C | -disable-* | --disable-* \ 2461 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2462 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2463 | -with-* | --with-* | -without-* | --without-* | --x) 2464 case "$ac_configure_args0 " in 2465 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2466 esac 2467 ;; 2468 -* ) ac_must_keep_next=true ;; 2469 esac 2470 fi 2471 as_fn_append ac_configure_args " '$ac_arg'" 2472 ;; 2473 esac 2474 done 2475done 2476{ ac_configure_args0=; unset ac_configure_args0;} 2477{ ac_configure_args1=; unset ac_configure_args1;} 2478 2479# When interrupted or exit'd, cleanup temporary files, and complete 2480# config.log. We remove comments because anyway the quotes in there 2481# would cause problems or look ugly. 2482# WARNING: Use '\'' to represent an apostrophe within the trap. 2483# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2484trap 'exit_status=$? 2485 # Save into config.log some information that might help in debugging. 2486 { 2487 echo 2488 2489 $as_echo "## ---------------- ## 2490## Cache variables. ## 2491## ---------------- ##" 2492 echo 2493 # The following way of writing the cache mishandles newlines in values, 2494( 2495 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2496 eval ac_val=\$$ac_var 2497 case $ac_val in #( 2498 *${as_nl}*) 2499 case $ac_var in #( 2500 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2501$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2502 esac 2503 case $ac_var in #( 2504 _ | IFS | as_nl) ;; #( 2505 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2506 *) { eval $ac_var=; unset $ac_var;} ;; 2507 esac ;; 2508 esac 2509 done 2510 (set) 2>&1 | 2511 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2512 *${as_nl}ac_space=\ *) 2513 sed -n \ 2514 "s/'\''/'\''\\\\'\'''\''/g; 2515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2516 ;; #( 2517 *) 2518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2519 ;; 2520 esac | 2521 sort 2522) 2523 echo 2524 2525 $as_echo "## ----------------- ## 2526## Output variables. ## 2527## ----------------- ##" 2528 echo 2529 for ac_var in $ac_subst_vars 2530 do 2531 eval ac_val=\$$ac_var 2532 case $ac_val in 2533 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2534 esac 2535 $as_echo "$ac_var='\''$ac_val'\''" 2536 done | sort 2537 echo 2538 2539 if test -n "$ac_subst_files"; then 2540 $as_echo "## ------------------- ## 2541## File substitutions. ## 2542## ------------------- ##" 2543 echo 2544 for ac_var in $ac_subst_files 2545 do 2546 eval ac_val=\$$ac_var 2547 case $ac_val in 2548 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2549 esac 2550 $as_echo "$ac_var='\''$ac_val'\''" 2551 done | sort 2552 echo 2553 fi 2554 2555 if test -s confdefs.h; then 2556 $as_echo "## ----------- ## 2557## confdefs.h. ## 2558## ----------- ##" 2559 echo 2560 cat confdefs.h 2561 echo 2562 fi 2563 test "$ac_signal" != 0 && 2564 $as_echo "$as_me: caught signal $ac_signal" 2565 $as_echo "$as_me: exit $exit_status" 2566 } >&5 2567 rm -f core *.core core.conftest.* && 2568 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2569 exit $exit_status 2570' 0 2571for ac_signal in 1 2 13 15; do 2572 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2573done 2574ac_signal=0 2575 2576# confdefs.h avoids OS command line length limits that DEFS can exceed. 2577rm -f -r conftest* confdefs.h 2578 2579$as_echo "/* confdefs.h */" > confdefs.h 2580 2581# Predefined preprocessor variables. 2582 2583cat >>confdefs.h <<_ACEOF 2584#define PACKAGE_NAME "$PACKAGE_NAME" 2585_ACEOF 2586 2587cat >>confdefs.h <<_ACEOF 2588#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2589_ACEOF 2590 2591cat >>confdefs.h <<_ACEOF 2592#define PACKAGE_VERSION "$PACKAGE_VERSION" 2593_ACEOF 2594 2595cat >>confdefs.h <<_ACEOF 2596#define PACKAGE_STRING "$PACKAGE_STRING" 2597_ACEOF 2598 2599cat >>confdefs.h <<_ACEOF 2600#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2601_ACEOF 2602 2603cat >>confdefs.h <<_ACEOF 2604#define PACKAGE_URL "$PACKAGE_URL" 2605_ACEOF 2606 2607 2608# Let the site file select an alternate cache file if it wants to. 2609# Prefer an explicitly selected file to automatically selected ones. 2610ac_site_file1=NONE 2611ac_site_file2=NONE 2612if test -n "$CONFIG_SITE"; then 2613 # We do not want a PATH search for config.site. 2614 case $CONFIG_SITE in #(( 2615 -*) ac_site_file1=./$CONFIG_SITE;; 2616 */*) ac_site_file1=$CONFIG_SITE;; 2617 *) ac_site_file1=./$CONFIG_SITE;; 2618 esac 2619elif test "x$prefix" != xNONE; then 2620 ac_site_file1=$prefix/share/config.site 2621 ac_site_file2=$prefix/etc/config.site 2622else 2623 ac_site_file1=$ac_default_prefix/share/config.site 2624 ac_site_file2=$ac_default_prefix/etc/config.site 2625fi 2626for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2627do 2628 test "x$ac_site_file" = xNONE && continue 2629 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2631$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2632 sed 's/^/| /' "$ac_site_file" >&5 2633 . "$ac_site_file" \ 2634 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2636as_fn_error $? "failed to load site script $ac_site_file 2637See \`config.log' for more details" "$LINENO" 5; } 2638 fi 2639done 2640 2641if test -r "$cache_file"; then 2642 # Some versions of bash will fail to source /dev/null (special files 2643 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2644 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2646$as_echo "$as_me: loading cache $cache_file" >&6;} 2647 case $cache_file in 2648 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2649 *) . "./$cache_file";; 2650 esac 2651 fi 2652else 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2654$as_echo "$as_me: creating cache $cache_file" >&6;} 2655 >$cache_file 2656fi 2657 2658# Check that the precious variables saved in the cache have kept the same 2659# value. 2660ac_cache_corrupted=false 2661for ac_var in $ac_precious_vars; do 2662 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2663 eval ac_new_set=\$ac_env_${ac_var}_set 2664 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2665 eval ac_new_val=\$ac_env_${ac_var}_value 2666 case $ac_old_set,$ac_new_set in 2667 set,) 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2669$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2670 ac_cache_corrupted=: ;; 2671 ,set) 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2673$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2674 ac_cache_corrupted=: ;; 2675 ,);; 2676 *) 2677 if test "x$ac_old_val" != "x$ac_new_val"; then 2678 # differences in whitespace do not lead to failure. 2679 ac_old_val_w=`echo x $ac_old_val` 2680 ac_new_val_w=`echo x $ac_new_val` 2681 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2683$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2684 ac_cache_corrupted=: 2685 else 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2687$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2688 eval $ac_var=\$ac_old_val 2689 fi 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2691$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2693$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2694 fi;; 2695 esac 2696 # Pass precious variables to config.status. 2697 if test "$ac_new_set" = set; then 2698 case $ac_new_val in 2699 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2700 *) ac_arg=$ac_var=$ac_new_val ;; 2701 esac 2702 case " $ac_configure_args " in 2703 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2704 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2705 esac 2706 fi 2707done 2708if $ac_cache_corrupted; then 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2712$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2713 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2714fi 2715## -------------------- ## 2716## Main body of script. ## 2717## -------------------- ## 2718 2719ac_ext=c 2720ac_cpp='$CPP $CPPFLAGS' 2721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2723ac_compiler_gnu=$ac_cv_c_compiler_gnu 2724 2725 2726ac_aux_dir= 2727for ac_dir in . "$srcdir"/.; do 2728 if test -f "$ac_dir/install-sh"; then 2729 ac_aux_dir=$ac_dir 2730 ac_install_sh="$ac_aux_dir/install-sh -c" 2731 break 2732 elif test -f "$ac_dir/install.sh"; then 2733 ac_aux_dir=$ac_dir 2734 ac_install_sh="$ac_aux_dir/install.sh -c" 2735 break 2736 elif test -f "$ac_dir/shtool"; then 2737 ac_aux_dir=$ac_dir 2738 ac_install_sh="$ac_aux_dir/shtool install -c" 2739 break 2740 fi 2741done 2742if test -z "$ac_aux_dir"; then 2743 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2744fi 2745 2746# These three variables are undocumented and unsupported, 2747# and are intended to be withdrawn in a future Autoconf release. 2748# They can cause serious problems if a builder's source tree is in a directory 2749# whose full name contains unusual characters. 2750ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2751ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2752ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2753 2754 2755 2756am__api_version='1.15' 2757 2758# Find a good install program. We prefer a C program (faster), 2759# so one script is as good as another. But avoid the broken or 2760# incompatible versions: 2761# SysV /etc/install, /usr/sbin/install 2762# SunOS /usr/etc/install 2763# IRIX /sbin/install 2764# AIX /bin/install 2765# AmigaOS /C/install, which installs bootblocks on floppy discs 2766# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2767# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2768# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2769# OS/2's system install, which has a completely different semantic 2770# ./install, which can be erroneously created by make from ./install.sh. 2771# Reject install programs that cannot install multiple files. 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2773$as_echo_n "checking for a BSD-compatible install... " >&6; } 2774if test -z "$INSTALL"; then 2775if ${ac_cv_path_install+:} false; then : 2776 $as_echo_n "(cached) " >&6 2777else 2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2779for as_dir in $PATH 2780do 2781 IFS=$as_save_IFS 2782 test -z "$as_dir" && as_dir=. 2783 # Account for people who put trailing slashes in PATH elements. 2784case $as_dir/ in #(( 2785 ./ | .// | /[cC]/* | \ 2786 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2787 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2788 /usr/ucb/* ) ;; 2789 *) 2790 # OSF1 and SCO ODT 3.0 have their own names for install. 2791 # Don't use installbsd from OSF since it installs stuff as root 2792 # by default. 2793 for ac_prog in ginstall scoinst install; do 2794 for ac_exec_ext in '' $ac_executable_extensions; do 2795 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2796 if test $ac_prog = install && 2797 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2798 # AIX install. It has an incompatible calling convention. 2799 : 2800 elif test $ac_prog = install && 2801 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2802 # program-specific install script used by HP pwplus--don't use. 2803 : 2804 else 2805 rm -rf conftest.one conftest.two conftest.dir 2806 echo one > conftest.one 2807 echo two > conftest.two 2808 mkdir conftest.dir 2809 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2810 test -s conftest.one && test -s conftest.two && 2811 test -s conftest.dir/conftest.one && 2812 test -s conftest.dir/conftest.two 2813 then 2814 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2815 break 3 2816 fi 2817 fi 2818 fi 2819 done 2820 done 2821 ;; 2822esac 2823 2824 done 2825IFS=$as_save_IFS 2826 2827rm -rf conftest.one conftest.two conftest.dir 2828 2829fi 2830 if test "${ac_cv_path_install+set}" = set; then 2831 INSTALL=$ac_cv_path_install 2832 else 2833 # As a last resort, use the slow shell script. Don't cache a 2834 # value for INSTALL within a source directory, because that will 2835 # break other packages using the cache if that directory is 2836 # removed, or if the value is a relative name. 2837 INSTALL=$ac_install_sh 2838 fi 2839fi 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2841$as_echo "$INSTALL" >&6; } 2842 2843# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2844# It thinks the first close brace ends the variable substitution. 2845test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2846 2847test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2848 2849test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2850 2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2852$as_echo_n "checking whether build environment is sane... " >&6; } 2853# Reject unsafe characters in $srcdir or the absolute working directory 2854# name. Accept space and tab only in the latter. 2855am_lf=' 2856' 2857case `pwd` in 2858 *[\\\"\#\$\&\'\`$am_lf]*) 2859 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2860esac 2861case $srcdir in 2862 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2863 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2864esac 2865 2866# Do 'set' in a subshell so we don't clobber the current shell's 2867# arguments. Must try -L first in case configure is actually a 2868# symlink; some systems play weird games with the mod time of symlinks 2869# (eg FreeBSD returns the mod time of the symlink's containing 2870# directory). 2871if ( 2872 am_has_slept=no 2873 for am_try in 1 2; do 2874 echo "timestamp, slept: $am_has_slept" > conftest.file 2875 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2876 if test "$*" = "X"; then 2877 # -L didn't work. 2878 set X `ls -t "$srcdir/configure" conftest.file` 2879 fi 2880 if test "$*" != "X $srcdir/configure conftest.file" \ 2881 && test "$*" != "X conftest.file $srcdir/configure"; then 2882 2883 # If neither matched, then we have a broken ls. This can happen 2884 # if, for instance, CONFIG_SHELL is bash and it inherits a 2885 # broken ls alias from the environment. This has actually 2886 # happened. Such a system could not be considered "sane". 2887 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2888 alias in your environment" "$LINENO" 5 2889 fi 2890 if test "$2" = conftest.file || test $am_try -eq 2; then 2891 break 2892 fi 2893 # Just in case. 2894 sleep 1 2895 am_has_slept=yes 2896 done 2897 test "$2" = conftest.file 2898 ) 2899then 2900 # Ok. 2901 : 2902else 2903 as_fn_error $? "newly created file is older than distributed files! 2904Check your system clock" "$LINENO" 5 2905fi 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2907$as_echo "yes" >&6; } 2908# If we didn't sleep, we still need to ensure time stamps of config.status and 2909# generated files are strictly newer. 2910am_sleep_pid= 2911if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2912 ( sleep 1 ) & 2913 am_sleep_pid=$! 2914fi 2915 2916rm -f conftest.file 2917 2918test "$program_prefix" != NONE && 2919 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2920# Use a double $ so make ignores it. 2921test "$program_suffix" != NONE && 2922 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2923# Double any \ or $. 2924# By default was `s,x,x', remove it if useless. 2925ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2926program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2927 2928# Expand $ac_aux_dir to an absolute path. 2929am_aux_dir=`cd "$ac_aux_dir" && pwd` 2930 2931if test x"${MISSING+set}" != xset; then 2932 case $am_aux_dir in 2933 *\ * | *\ *) 2934 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2935 *) 2936 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2937 esac 2938fi 2939# Use eval to expand $SHELL 2940if eval "$MISSING --is-lightweight"; then 2941 am_missing_run="$MISSING " 2942else 2943 am_missing_run= 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2945$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2946fi 2947 2948if test x"${install_sh+set}" != xset; then 2949 case $am_aux_dir in 2950 *\ * | *\ *) 2951 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2952 *) 2953 install_sh="\${SHELL} $am_aux_dir/install-sh" 2954 esac 2955fi 2956 2957# Installed binaries are usually stripped using 'strip' when the user 2958# run "make install-strip". However 'strip' might not be the right 2959# tool to use in cross-compilation environments, therefore Automake 2960# will honor the 'STRIP' environment variable to overrule this program. 2961if test "$cross_compiling" != no; then 2962 if test -n "$ac_tool_prefix"; then 2963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2964set dummy ${ac_tool_prefix}strip; ac_word=$2 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2966$as_echo_n "checking for $ac_word... " >&6; } 2967if ${ac_cv_prog_STRIP+:} false; then : 2968 $as_echo_n "(cached) " >&6 2969else 2970 if test -n "$STRIP"; then 2971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2972else 2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2974for as_dir in $PATH 2975do 2976 IFS=$as_save_IFS 2977 test -z "$as_dir" && as_dir=. 2978 for ac_exec_ext in '' $ac_executable_extensions; do 2979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2980 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2982 break 2 2983 fi 2984done 2985 done 2986IFS=$as_save_IFS 2987 2988fi 2989fi 2990STRIP=$ac_cv_prog_STRIP 2991if test -n "$STRIP"; then 2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2993$as_echo "$STRIP" >&6; } 2994else 2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2996$as_echo "no" >&6; } 2997fi 2998 2999 3000fi 3001if test -z "$ac_cv_prog_STRIP"; then 3002 ac_ct_STRIP=$STRIP 3003 # Extract the first word of "strip", so it can be a program name with args. 3004set dummy strip; ac_word=$2 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3006$as_echo_n "checking for $ac_word... " >&6; } 3007if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3008 $as_echo_n "(cached) " >&6 3009else 3010 if test -n "$ac_ct_STRIP"; then 3011 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3012else 3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3014for as_dir in $PATH 3015do 3016 IFS=$as_save_IFS 3017 test -z "$as_dir" && as_dir=. 3018 for ac_exec_ext in '' $ac_executable_extensions; do 3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3020 ac_cv_prog_ac_ct_STRIP="strip" 3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3022 break 2 3023 fi 3024done 3025 done 3026IFS=$as_save_IFS 3027 3028fi 3029fi 3030ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3031if test -n "$ac_ct_STRIP"; then 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3033$as_echo "$ac_ct_STRIP" >&6; } 3034else 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3036$as_echo "no" >&6; } 3037fi 3038 3039 if test "x$ac_ct_STRIP" = x; then 3040 STRIP=":" 3041 else 3042 case $cross_compiling:$ac_tool_warned in 3043yes:) 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3046ac_tool_warned=yes ;; 3047esac 3048 STRIP=$ac_ct_STRIP 3049 fi 3050else 3051 STRIP="$ac_cv_prog_STRIP" 3052fi 3053 3054fi 3055INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3056 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3058$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3059if test -z "$MKDIR_P"; then 3060 if ${ac_cv_path_mkdir+:} false; then : 3061 $as_echo_n "(cached) " >&6 3062else 3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3064for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3065do 3066 IFS=$as_save_IFS 3067 test -z "$as_dir" && as_dir=. 3068 for ac_prog in mkdir gmkdir; do 3069 for ac_exec_ext in '' $ac_executable_extensions; do 3070 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3071 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3072 'mkdir (GNU coreutils) '* | \ 3073 'mkdir (coreutils) '* | \ 3074 'mkdir (fileutils) '4.1*) 3075 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3076 break 3;; 3077 esac 3078 done 3079 done 3080 done 3081IFS=$as_save_IFS 3082 3083fi 3084 3085 test -d ./--version && rmdir ./--version 3086 if test "${ac_cv_path_mkdir+set}" = set; then 3087 MKDIR_P="$ac_cv_path_mkdir -p" 3088 else 3089 # As a last resort, use the slow shell script. Don't cache a 3090 # value for MKDIR_P within a source directory, because that will 3091 # break other packages using the cache if that directory is 3092 # removed, or if the value is a relative name. 3093 MKDIR_P="$ac_install_sh -d" 3094 fi 3095fi 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3097$as_echo "$MKDIR_P" >&6; } 3098 3099for ac_prog in gawk mawk nawk awk 3100do 3101 # Extract the first word of "$ac_prog", so it can be a program name with args. 3102set dummy $ac_prog; ac_word=$2 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3104$as_echo_n "checking for $ac_word... " >&6; } 3105if ${ac_cv_prog_AWK+:} false; then : 3106 $as_echo_n "(cached) " >&6 3107else 3108 if test -n "$AWK"; then 3109 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3110else 3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3112for as_dir in $PATH 3113do 3114 IFS=$as_save_IFS 3115 test -z "$as_dir" && as_dir=. 3116 for ac_exec_ext in '' $ac_executable_extensions; do 3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3118 ac_cv_prog_AWK="$ac_prog" 3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3120 break 2 3121 fi 3122done 3123 done 3124IFS=$as_save_IFS 3125 3126fi 3127fi 3128AWK=$ac_cv_prog_AWK 3129if test -n "$AWK"; then 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3131$as_echo "$AWK" >&6; } 3132else 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3134$as_echo "no" >&6; } 3135fi 3136 3137 3138 test -n "$AWK" && break 3139done 3140 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3142$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3143set x ${MAKE-make} 3144ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3145if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3146 $as_echo_n "(cached) " >&6 3147else 3148 cat >conftest.make <<\_ACEOF 3149SHELL = /bin/sh 3150all: 3151 @echo '@@@%%%=$(MAKE)=@@@%%%' 3152_ACEOF 3153# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3154case `${MAKE-make} -f conftest.make 2>/dev/null` in 3155 *@@@%%%=?*=@@@%%%*) 3156 eval ac_cv_prog_make_${ac_make}_set=yes;; 3157 *) 3158 eval ac_cv_prog_make_${ac_make}_set=no;; 3159esac 3160rm -f conftest.make 3161fi 3162if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3164$as_echo "yes" >&6; } 3165 SET_MAKE= 3166else 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3168$as_echo "no" >&6; } 3169 SET_MAKE="MAKE=${MAKE-make}" 3170fi 3171 3172rm -rf .tst 2>/dev/null 3173mkdir .tst 2>/dev/null 3174if test -d .tst; then 3175 am__leading_dot=. 3176else 3177 am__leading_dot=_ 3178fi 3179rmdir .tst 2>/dev/null 3180 3181# Check whether --enable-silent-rules was given. 3182if test "${enable_silent_rules+set}" = set; then : 3183 enableval=$enable_silent_rules; 3184fi 3185 3186case $enable_silent_rules in # ((( 3187 yes) AM_DEFAULT_VERBOSITY=0;; 3188 no) AM_DEFAULT_VERBOSITY=1;; 3189 *) AM_DEFAULT_VERBOSITY=1;; 3190esac 3191am_make=${MAKE-make} 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3193$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3194if ${am_cv_make_support_nested_variables+:} false; then : 3195 $as_echo_n "(cached) " >&6 3196else 3197 if $as_echo 'TRUE=$(BAR$(V)) 3198BAR0=false 3199BAR1=true 3200V=1 3201am__doit: 3202 @$(TRUE) 3203.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3204 am_cv_make_support_nested_variables=yes 3205else 3206 am_cv_make_support_nested_variables=no 3207fi 3208fi 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3210$as_echo "$am_cv_make_support_nested_variables" >&6; } 3211if test $am_cv_make_support_nested_variables = yes; then 3212 AM_V='$(V)' 3213 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3214else 3215 AM_V=$AM_DEFAULT_VERBOSITY 3216 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3217fi 3218AM_BACKSLASH='\' 3219 3220if test "`cd $srcdir && pwd`" != "`pwd`"; then 3221 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3222 # is not polluted with repeated "-I." 3223 am__isrc=' -I$(srcdir)' 3224 # test to see if srcdir already configured 3225 if test -f $srcdir/config.status; then 3226 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3227 fi 3228fi 3229 3230# test whether we have cygpath 3231if test -z "$CYGPATH_W"; then 3232 if (cygpath --version) >/dev/null 2>/dev/null; then 3233 CYGPATH_W='cygpath -w' 3234 else 3235 CYGPATH_W=echo 3236 fi 3237fi 3238 3239 3240# Define the identity of the package. 3241 PACKAGE='isl' 3242 VERSION='0.22.1' 3243 3244 3245cat >>confdefs.h <<_ACEOF 3246#define PACKAGE "$PACKAGE" 3247_ACEOF 3248 3249 3250cat >>confdefs.h <<_ACEOF 3251#define VERSION "$VERSION" 3252_ACEOF 3253 3254# Some tools Automake needs. 3255 3256ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3257 3258 3259AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3260 3261 3262AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3263 3264 3265AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3266 3267 3268MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3269 3270# For better backward compatibility. To be removed once Automake 1.9.x 3271# dies out for good. For more background, see: 3272# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3273# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3274mkdir_p='$(MKDIR_P)' 3275 3276# We need awk for the "check" target (and possibly the TAP driver). The 3277# system "awk" is bad on some platforms. 3278# Always define AMTAR for backward compatibility. Yes, it's still used 3279# in the wild :-( We should find a proper way to deprecate it ... 3280AMTAR='$${TAR-tar}' 3281 3282 3283# We'll loop over all known methods to create a tar archive until one works. 3284_am_tools='gnutar pax cpio none' 3285 3286am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3287 3288 3289 3290 3291 3292 3293# POSIX will say in a future version that running "rm -f" with no argument 3294# is OK; and we want to be able to make that assumption in our Makefile 3295# recipes. So use an aggressive probe to check that the usage we want is 3296# actually supported "in the wild" to an acceptable degree. 3297# See automake bug#10828. 3298# To make any issue more visible, cause the running configure to be aborted 3299# by default if the 'rm' program in use doesn't match our expectations; the 3300# user can still override this though. 3301if rm -f && rm -fr && rm -rf; then : OK; else 3302 cat >&2 <<'END' 3303Oops! 3304 3305Your 'rm' program seems unable to run without file operands specified 3306on the command line, even when the '-f' option is present. This is contrary 3307to the behaviour of most rm programs out there, and not conforming with 3308the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3309 3310Please tell bug-automake@gnu.org about your system, including the value 3311of your $PATH and any error possibly output before this message. This 3312can help us improve future automake versions. 3313 3314END 3315 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3316 echo 'Configuration will proceed anyway, since you have set the' >&2 3317 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3318 echo >&2 3319 else 3320 cat >&2 <<'END' 3321Aborting the configuration process, to ensure you take notice of the issue. 3322 3323You can download and install GNU coreutils to get an 'rm' implementation 3324that behaves properly: <http://www.gnu.org/software/coreutils/>. 3325 3326If you want to complete the configuration process using your problematic 3327'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3328to "yes", and re-run configure. 3329 3330END 3331 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3332 fi 3333fi 3334 3335# Check whether --enable-silent-rules was given. 3336if test "${enable_silent_rules+set}" = set; then : 3337 enableval=$enable_silent_rules; 3338fi 3339 3340case $enable_silent_rules in # ((( 3341 yes) AM_DEFAULT_VERBOSITY=0;; 3342 no) AM_DEFAULT_VERBOSITY=1;; 3343 *) AM_DEFAULT_VERBOSITY=0;; 3344esac 3345am_make=${MAKE-make} 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3347$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3348if ${am_cv_make_support_nested_variables+:} false; then : 3349 $as_echo_n "(cached) " >&6 3350else 3351 if $as_echo 'TRUE=$(BAR$(V)) 3352BAR0=false 3353BAR1=true 3354V=1 3355am__doit: 3356 @$(TRUE) 3357.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3358 am_cv_make_support_nested_variables=yes 3359else 3360 am_cv_make_support_nested_variables=no 3361fi 3362fi 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3364$as_echo "$am_cv_make_support_nested_variables" >&6; } 3365if test $am_cv_make_support_nested_variables = yes; then 3366 AM_V='$(V)' 3367 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3368else 3369 AM_V=$AM_DEFAULT_VERBOSITY 3370 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3371fi 3372AM_BACKSLASH='\' 3373 3374 3375versioninfo=22:1:0 3376 3377if test "x$prefix" != "xNONE"; then 3378 prefix_wd=`cd $prefix && pwd` 3379 srcdir_wd=`cd $srcdir && pwd` 3380 wd=`pwd` 3381 if test "x$prefix_wd" = "x$srcdir_wd"; then 3382 as_fn_error $? "Installation in source directory not supported" "$LINENO" 5 3383 fi 3384 if test "x$prefix_wd" = "x$wd"; then 3385 as_fn_error $? "Installation in build directory not supported" "$LINENO" 5 3386 fi 3387fi 3388 3389ac_ext=c 3390ac_cpp='$CPP $CPPFLAGS' 3391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3393ac_compiler_gnu=$ac_cv_c_compiler_gnu 3394if test -n "$ac_tool_prefix"; then 3395 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3396set dummy ${ac_tool_prefix}gcc; ac_word=$2 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3398$as_echo_n "checking for $ac_word... " >&6; } 3399if ${ac_cv_prog_CC+:} false; then : 3400 $as_echo_n "(cached) " >&6 3401else 3402 if test -n "$CC"; then 3403 ac_cv_prog_CC="$CC" # Let the user override the test. 3404else 3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3406for as_dir in $PATH 3407do 3408 IFS=$as_save_IFS 3409 test -z "$as_dir" && as_dir=. 3410 for ac_exec_ext in '' $ac_executable_extensions; do 3411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3412 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3414 break 2 3415 fi 3416done 3417 done 3418IFS=$as_save_IFS 3419 3420fi 3421fi 3422CC=$ac_cv_prog_CC 3423if test -n "$CC"; then 3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3425$as_echo "$CC" >&6; } 3426else 3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3428$as_echo "no" >&6; } 3429fi 3430 3431 3432fi 3433if test -z "$ac_cv_prog_CC"; then 3434 ac_ct_CC=$CC 3435 # Extract the first word of "gcc", so it can be a program name with args. 3436set dummy gcc; ac_word=$2 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3438$as_echo_n "checking for $ac_word... " >&6; } 3439if ${ac_cv_prog_ac_ct_CC+:} false; then : 3440 $as_echo_n "(cached) " >&6 3441else 3442 if test -n "$ac_ct_CC"; then 3443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3444else 3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3446for as_dir in $PATH 3447do 3448 IFS=$as_save_IFS 3449 test -z "$as_dir" && as_dir=. 3450 for ac_exec_ext in '' $ac_executable_extensions; do 3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3452 ac_cv_prog_ac_ct_CC="gcc" 3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3454 break 2 3455 fi 3456done 3457 done 3458IFS=$as_save_IFS 3459 3460fi 3461fi 3462ac_ct_CC=$ac_cv_prog_ac_ct_CC 3463if test -n "$ac_ct_CC"; then 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3465$as_echo "$ac_ct_CC" >&6; } 3466else 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3468$as_echo "no" >&6; } 3469fi 3470 3471 if test "x$ac_ct_CC" = x; then 3472 CC="" 3473 else 3474 case $cross_compiling:$ac_tool_warned in 3475yes:) 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3478ac_tool_warned=yes ;; 3479esac 3480 CC=$ac_ct_CC 3481 fi 3482else 3483 CC="$ac_cv_prog_CC" 3484fi 3485 3486if test -z "$CC"; then 3487 if test -n "$ac_tool_prefix"; then 3488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3489set dummy ${ac_tool_prefix}cc; ac_word=$2 3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3491$as_echo_n "checking for $ac_word... " >&6; } 3492if ${ac_cv_prog_CC+:} false; then : 3493 $as_echo_n "(cached) " >&6 3494else 3495 if test -n "$CC"; then 3496 ac_cv_prog_CC="$CC" # Let the user override the test. 3497else 3498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3499for as_dir in $PATH 3500do 3501 IFS=$as_save_IFS 3502 test -z "$as_dir" && as_dir=. 3503 for ac_exec_ext in '' $ac_executable_extensions; do 3504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3505 ac_cv_prog_CC="${ac_tool_prefix}cc" 3506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3507 break 2 3508 fi 3509done 3510 done 3511IFS=$as_save_IFS 3512 3513fi 3514fi 3515CC=$ac_cv_prog_CC 3516if test -n "$CC"; then 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3518$as_echo "$CC" >&6; } 3519else 3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3521$as_echo "no" >&6; } 3522fi 3523 3524 3525 fi 3526fi 3527if test -z "$CC"; then 3528 # Extract the first word of "cc", so it can be a program name with args. 3529set dummy cc; ac_word=$2 3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3531$as_echo_n "checking for $ac_word... " >&6; } 3532if ${ac_cv_prog_CC+:} false; then : 3533 $as_echo_n "(cached) " >&6 3534else 3535 if test -n "$CC"; then 3536 ac_cv_prog_CC="$CC" # Let the user override the test. 3537else 3538 ac_prog_rejected=no 3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3540for as_dir in $PATH 3541do 3542 IFS=$as_save_IFS 3543 test -z "$as_dir" && as_dir=. 3544 for ac_exec_ext in '' $ac_executable_extensions; do 3545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3547 ac_prog_rejected=yes 3548 continue 3549 fi 3550 ac_cv_prog_CC="cc" 3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3552 break 2 3553 fi 3554done 3555 done 3556IFS=$as_save_IFS 3557 3558if test $ac_prog_rejected = yes; then 3559 # We found a bogon in the path, so make sure we never use it. 3560 set dummy $ac_cv_prog_CC 3561 shift 3562 if test $# != 0; then 3563 # We chose a different compiler from the bogus one. 3564 # However, it has the same basename, so the bogon will be chosen 3565 # first if we set CC to just the basename; use the full file name. 3566 shift 3567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3568 fi 3569fi 3570fi 3571fi 3572CC=$ac_cv_prog_CC 3573if test -n "$CC"; then 3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3575$as_echo "$CC" >&6; } 3576else 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3578$as_echo "no" >&6; } 3579fi 3580 3581 3582fi 3583if test -z "$CC"; then 3584 if test -n "$ac_tool_prefix"; then 3585 for ac_prog in cl.exe 3586 do 3587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3588set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3590$as_echo_n "checking for $ac_word... " >&6; } 3591if ${ac_cv_prog_CC+:} false; then : 3592 $as_echo_n "(cached) " >&6 3593else 3594 if test -n "$CC"; then 3595 ac_cv_prog_CC="$CC" # Let the user override the test. 3596else 3597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3598for as_dir in $PATH 3599do 3600 IFS=$as_save_IFS 3601 test -z "$as_dir" && as_dir=. 3602 for ac_exec_ext in '' $ac_executable_extensions; do 3603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3606 break 2 3607 fi 3608done 3609 done 3610IFS=$as_save_IFS 3611 3612fi 3613fi 3614CC=$ac_cv_prog_CC 3615if test -n "$CC"; then 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3617$as_echo "$CC" >&6; } 3618else 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3620$as_echo "no" >&6; } 3621fi 3622 3623 3624 test -n "$CC" && break 3625 done 3626fi 3627if test -z "$CC"; then 3628 ac_ct_CC=$CC 3629 for ac_prog in cl.exe 3630do 3631 # Extract the first word of "$ac_prog", so it can be a program name with args. 3632set dummy $ac_prog; ac_word=$2 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3634$as_echo_n "checking for $ac_word... " >&6; } 3635if ${ac_cv_prog_ac_ct_CC+:} false; then : 3636 $as_echo_n "(cached) " >&6 3637else 3638 if test -n "$ac_ct_CC"; then 3639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3640else 3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3642for as_dir in $PATH 3643do 3644 IFS=$as_save_IFS 3645 test -z "$as_dir" && as_dir=. 3646 for ac_exec_ext in '' $ac_executable_extensions; do 3647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3648 ac_cv_prog_ac_ct_CC="$ac_prog" 3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3650 break 2 3651 fi 3652done 3653 done 3654IFS=$as_save_IFS 3655 3656fi 3657fi 3658ac_ct_CC=$ac_cv_prog_ac_ct_CC 3659if test -n "$ac_ct_CC"; then 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3661$as_echo "$ac_ct_CC" >&6; } 3662else 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3664$as_echo "no" >&6; } 3665fi 3666 3667 3668 test -n "$ac_ct_CC" && break 3669done 3670 3671 if test "x$ac_ct_CC" = x; then 3672 CC="" 3673 else 3674 case $cross_compiling:$ac_tool_warned in 3675yes:) 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3678ac_tool_warned=yes ;; 3679esac 3680 CC=$ac_ct_CC 3681 fi 3682fi 3683 3684fi 3685 3686 3687test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3689as_fn_error $? "no acceptable C compiler found in \$PATH 3690See \`config.log' for more details" "$LINENO" 5; } 3691 3692# Provide some information about the compiler. 3693$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3694set X $ac_compile 3695ac_compiler=$2 3696for ac_option in --version -v -V -qversion; do 3697 { { ac_try="$ac_compiler $ac_option >&5" 3698case "(($ac_try" in 3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3700 *) ac_try_echo=$ac_try;; 3701esac 3702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3703$as_echo "$ac_try_echo"; } >&5 3704 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3705 ac_status=$? 3706 if test -s conftest.err; then 3707 sed '10a\ 3708... rest of stderr output deleted ... 3709 10q' conftest.err >conftest.er1 3710 cat conftest.er1 >&5 3711 fi 3712 rm -f conftest.er1 conftest.err 3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3714 test $ac_status = 0; } 3715done 3716 3717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3718/* end confdefs.h. */ 3719 3720int 3721main () 3722{ 3723 3724 ; 3725 return 0; 3726} 3727_ACEOF 3728ac_clean_files_save=$ac_clean_files 3729ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3730# Try to create an executable without -o first, disregard a.out. 3731# It will help us diagnose broken compilers, and finding out an intuition 3732# of exeext. 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3734$as_echo_n "checking whether the C compiler works... " >&6; } 3735ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3736 3737# The possible output files: 3738ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3739 3740ac_rmfiles= 3741for ac_file in $ac_files 3742do 3743 case $ac_file in 3744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3745 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3746 esac 3747done 3748rm -f $ac_rmfiles 3749 3750if { { ac_try="$ac_link_default" 3751case "(($ac_try" in 3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3753 *) ac_try_echo=$ac_try;; 3754esac 3755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3756$as_echo "$ac_try_echo"; } >&5 3757 (eval "$ac_link_default") 2>&5 3758 ac_status=$? 3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3760 test $ac_status = 0; }; then : 3761 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3762# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3763# in a Makefile. We should not override ac_cv_exeext if it was cached, 3764# so that the user can short-circuit this test for compilers unknown to 3765# Autoconf. 3766for ac_file in $ac_files '' 3767do 3768 test -f "$ac_file" || continue 3769 case $ac_file in 3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3771 ;; 3772 [ab].out ) 3773 # We found the default executable, but exeext='' is most 3774 # certainly right. 3775 break;; 3776 *.* ) 3777 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3778 then :; else 3779 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3780 fi 3781 # We set ac_cv_exeext here because the later test for it is not 3782 # safe: cross compilers may not add the suffix if given an `-o' 3783 # argument, so we may need to know it at that point already. 3784 # Even if this section looks crufty: it has the advantage of 3785 # actually working. 3786 break;; 3787 * ) 3788 break;; 3789 esac 3790done 3791test "$ac_cv_exeext" = no && ac_cv_exeext= 3792 3793else 3794 ac_file='' 3795fi 3796if test -z "$ac_file"; then : 3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3798$as_echo "no" >&6; } 3799$as_echo "$as_me: failed program was:" >&5 3800sed 's/^/| /' conftest.$ac_ext >&5 3801 3802{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3804as_fn_error 77 "C compiler cannot create executables 3805See \`config.log' for more details" "$LINENO" 5; } 3806else 3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3808$as_echo "yes" >&6; } 3809fi 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3811$as_echo_n "checking for C compiler default output file name... " >&6; } 3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3813$as_echo "$ac_file" >&6; } 3814ac_exeext=$ac_cv_exeext 3815 3816rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3817ac_clean_files=$ac_clean_files_save 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3819$as_echo_n "checking for suffix of executables... " >&6; } 3820if { { ac_try="$ac_link" 3821case "(($ac_try" in 3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3823 *) ac_try_echo=$ac_try;; 3824esac 3825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3826$as_echo "$ac_try_echo"; } >&5 3827 (eval "$ac_link") 2>&5 3828 ac_status=$? 3829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3830 test $ac_status = 0; }; then : 3831 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3832# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3833# work properly (i.e., refer to `conftest.exe'), while it won't with 3834# `rm'. 3835for ac_file in conftest.exe conftest conftest.*; do 3836 test -f "$ac_file" || continue 3837 case $ac_file in 3838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3839 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3840 break;; 3841 * ) break;; 3842 esac 3843done 3844else 3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3847as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3848See \`config.log' for more details" "$LINENO" 5; } 3849fi 3850rm -f conftest conftest$ac_cv_exeext 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3852$as_echo "$ac_cv_exeext" >&6; } 3853 3854rm -f conftest.$ac_ext 3855EXEEXT=$ac_cv_exeext 3856ac_exeext=$EXEEXT 3857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3858/* end confdefs.h. */ 3859#include <stdio.h> 3860int 3861main () 3862{ 3863FILE *f = fopen ("conftest.out", "w"); 3864 return ferror (f) || fclose (f) != 0; 3865 3866 ; 3867 return 0; 3868} 3869_ACEOF 3870ac_clean_files="$ac_clean_files conftest.out" 3871# Check that the compiler produces executables we can run. If not, either 3872# the compiler is broken, or we cross compile. 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3874$as_echo_n "checking whether we are cross compiling... " >&6; } 3875if test "$cross_compiling" != yes; then 3876 { { ac_try="$ac_link" 3877case "(($ac_try" in 3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3879 *) ac_try_echo=$ac_try;; 3880esac 3881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3882$as_echo "$ac_try_echo"; } >&5 3883 (eval "$ac_link") 2>&5 3884 ac_status=$? 3885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3886 test $ac_status = 0; } 3887 if { ac_try='./conftest$ac_cv_exeext' 3888 { { case "(($ac_try" in 3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3890 *) ac_try_echo=$ac_try;; 3891esac 3892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3893$as_echo "$ac_try_echo"; } >&5 3894 (eval "$ac_try") 2>&5 3895 ac_status=$? 3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3897 test $ac_status = 0; }; }; then 3898 cross_compiling=no 3899 else 3900 if test "$cross_compiling" = maybe; then 3901 cross_compiling=yes 3902 else 3903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3905as_fn_error $? "cannot run C compiled programs. 3906If you meant to cross compile, use \`--host'. 3907See \`config.log' for more details" "$LINENO" 5; } 3908 fi 3909 fi 3910fi 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3912$as_echo "$cross_compiling" >&6; } 3913 3914rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3915ac_clean_files=$ac_clean_files_save 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3917$as_echo_n "checking for suffix of object files... " >&6; } 3918if ${ac_cv_objext+:} false; then : 3919 $as_echo_n "(cached) " >&6 3920else 3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922/* end confdefs.h. */ 3923 3924int 3925main () 3926{ 3927 3928 ; 3929 return 0; 3930} 3931_ACEOF 3932rm -f conftest.o conftest.obj 3933if { { ac_try="$ac_compile" 3934case "(($ac_try" in 3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3936 *) ac_try_echo=$ac_try;; 3937esac 3938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3939$as_echo "$ac_try_echo"; } >&5 3940 (eval "$ac_compile") 2>&5 3941 ac_status=$? 3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3943 test $ac_status = 0; }; then : 3944 for ac_file in conftest.o conftest.obj conftest.*; do 3945 test -f "$ac_file" || continue; 3946 case $ac_file in 3947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3949 break;; 3950 esac 3951done 3952else 3953 $as_echo "$as_me: failed program was:" >&5 3954sed 's/^/| /' conftest.$ac_ext >&5 3955 3956{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3958as_fn_error $? "cannot compute suffix of object files: cannot compile 3959See \`config.log' for more details" "$LINENO" 5; } 3960fi 3961rm -f conftest.$ac_cv_objext conftest.$ac_ext 3962fi 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3964$as_echo "$ac_cv_objext" >&6; } 3965OBJEXT=$ac_cv_objext 3966ac_objext=$OBJEXT 3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3968$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3969if ${ac_cv_c_compiler_gnu+:} false; then : 3970 $as_echo_n "(cached) " >&6 3971else 3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3973/* end confdefs.h. */ 3974 3975int 3976main () 3977{ 3978#ifndef __GNUC__ 3979 choke me 3980#endif 3981 3982 ; 3983 return 0; 3984} 3985_ACEOF 3986if ac_fn_c_try_compile "$LINENO"; then : 3987 ac_compiler_gnu=yes 3988else 3989 ac_compiler_gnu=no 3990fi 3991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3992ac_cv_c_compiler_gnu=$ac_compiler_gnu 3993 3994fi 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3996$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3997if test $ac_compiler_gnu = yes; then 3998 GCC=yes 3999else 4000 GCC= 4001fi 4002ac_test_CFLAGS=${CFLAGS+set} 4003ac_save_CFLAGS=$CFLAGS 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4005$as_echo_n "checking whether $CC accepts -g... " >&6; } 4006if ${ac_cv_prog_cc_g+:} false; then : 4007 $as_echo_n "(cached) " >&6 4008else 4009 ac_save_c_werror_flag=$ac_c_werror_flag 4010 ac_c_werror_flag=yes 4011 ac_cv_prog_cc_g=no 4012 CFLAGS="-g" 4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4014/* end confdefs.h. */ 4015 4016int 4017main () 4018{ 4019 4020 ; 4021 return 0; 4022} 4023_ACEOF 4024if ac_fn_c_try_compile "$LINENO"; then : 4025 ac_cv_prog_cc_g=yes 4026else 4027 CFLAGS="" 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029/* end confdefs.h. */ 4030 4031int 4032main () 4033{ 4034 4035 ; 4036 return 0; 4037} 4038_ACEOF 4039if ac_fn_c_try_compile "$LINENO"; then : 4040 4041else 4042 ac_c_werror_flag=$ac_save_c_werror_flag 4043 CFLAGS="-g" 4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4045/* end confdefs.h. */ 4046 4047int 4048main () 4049{ 4050 4051 ; 4052 return 0; 4053} 4054_ACEOF 4055if ac_fn_c_try_compile "$LINENO"; then : 4056 ac_cv_prog_cc_g=yes 4057fi 4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4059fi 4060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4061fi 4062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4063 ac_c_werror_flag=$ac_save_c_werror_flag 4064fi 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4066$as_echo "$ac_cv_prog_cc_g" >&6; } 4067if test "$ac_test_CFLAGS" = set; then 4068 CFLAGS=$ac_save_CFLAGS 4069elif test $ac_cv_prog_cc_g = yes; then 4070 if test "$GCC" = yes; then 4071 CFLAGS="-g -O2" 4072 else 4073 CFLAGS="-g" 4074 fi 4075else 4076 if test "$GCC" = yes; then 4077 CFLAGS="-O2" 4078 else 4079 CFLAGS= 4080 fi 4081fi 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4083$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4084if ${ac_cv_prog_cc_c89+:} false; then : 4085 $as_echo_n "(cached) " >&6 4086else 4087 ac_cv_prog_cc_c89=no 4088ac_save_CC=$CC 4089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4090/* end confdefs.h. */ 4091#include <stdarg.h> 4092#include <stdio.h> 4093struct stat; 4094/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4095struct buf { int x; }; 4096FILE * (*rcsopen) (struct buf *, struct stat *, int); 4097static char *e (p, i) 4098 char **p; 4099 int i; 4100{ 4101 return p[i]; 4102} 4103static char *f (char * (*g) (char **, int), char **p, ...) 4104{ 4105 char *s; 4106 va_list v; 4107 va_start (v,p); 4108 s = g (p, va_arg (v,int)); 4109 va_end (v); 4110 return s; 4111} 4112 4113/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4114 function prototypes and stuff, but not '\xHH' hex character constants. 4115 These don't provoke an error unfortunately, instead are silently treated 4116 as 'x'. The following induces an error, until -std is added to get 4117 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4118 array size at least. It's necessary to write '\x00'==0 to get something 4119 that's true only with -std. */ 4120int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4121 4122/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4123 inside strings and character constants. */ 4124#define FOO(x) 'x' 4125int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4126 4127int test (int i, double x); 4128struct s1 {int (*f) (int a);}; 4129struct s2 {int (*f) (double a);}; 4130int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4131int argc; 4132char **argv; 4133int 4134main () 4135{ 4136return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4137 ; 4138 return 0; 4139} 4140_ACEOF 4141for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4142 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4143do 4144 CC="$ac_save_CC $ac_arg" 4145 if ac_fn_c_try_compile "$LINENO"; then : 4146 ac_cv_prog_cc_c89=$ac_arg 4147fi 4148rm -f core conftest.err conftest.$ac_objext 4149 test "x$ac_cv_prog_cc_c89" != "xno" && break 4150done 4151rm -f conftest.$ac_ext 4152CC=$ac_save_CC 4153 4154fi 4155# AC_CACHE_VAL 4156case "x$ac_cv_prog_cc_c89" in 4157 x) 4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4159$as_echo "none needed" >&6; } ;; 4160 xno) 4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4162$as_echo "unsupported" >&6; } ;; 4163 *) 4164 CC="$CC $ac_cv_prog_cc_c89" 4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4166$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4167esac 4168if test "x$ac_cv_prog_cc_c89" != xno; then : 4169 4170fi 4171 4172ac_ext=c 4173ac_cpp='$CPP $CPPFLAGS' 4174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4176ac_compiler_gnu=$ac_cv_c_compiler_gnu 4177 4178ac_ext=c 4179ac_cpp='$CPP $CPPFLAGS' 4180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4182ac_compiler_gnu=$ac_cv_c_compiler_gnu 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4184$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4185if ${am_cv_prog_cc_c_o+:} false; then : 4186 $as_echo_n "(cached) " >&6 4187else 4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4189/* end confdefs.h. */ 4190 4191int 4192main () 4193{ 4194 4195 ; 4196 return 0; 4197} 4198_ACEOF 4199 # Make sure it works both with $CC and with simple cc. 4200 # Following AC_PROG_CC_C_O, we do the test twice because some 4201 # compilers refuse to overwrite an existing .o file with -o, 4202 # though they will create one. 4203 am_cv_prog_cc_c_o=yes 4204 for am_i in 1 2; do 4205 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4206 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4207 ac_status=$? 4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4209 (exit $ac_status); } \ 4210 && test -f conftest2.$ac_objext; then 4211 : OK 4212 else 4213 am_cv_prog_cc_c_o=no 4214 break 4215 fi 4216 done 4217 rm -f core conftest* 4218 unset am_i 4219fi 4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4221$as_echo "$am_cv_prog_cc_c_o" >&6; } 4222if test "$am_cv_prog_cc_c_o" != yes; then 4223 # Losing compiler, so override with the script. 4224 # FIXME: It is wrong to rewrite CC. 4225 # But if we don't then we get into trouble of one sort or another. 4226 # A longer-term fix would be to have automake use am__CC in this case, 4227 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4228 CC="$am_aux_dir/compile $CC" 4229fi 4230ac_ext=c 4231ac_cpp='$CPP $CPPFLAGS' 4232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4234ac_compiler_gnu=$ac_cv_c_compiler_gnu 4235 4236DEPDIR="${am__leading_dot}deps" 4237 4238ac_config_commands="$ac_config_commands depfiles" 4239 4240 4241am_make=${MAKE-make} 4242cat > confinc << 'END' 4243am__doit: 4244 @echo this is the am__doit target 4245.PHONY: am__doit 4246END 4247# If we don't find an include directive, just comment out the code. 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4249$as_echo_n "checking for style of include used by $am_make... " >&6; } 4250am__include="#" 4251am__quote= 4252_am_result=none 4253# First try GNU make style include. 4254echo "include confinc" > confmf 4255# Ignore all kinds of additional output from 'make'. 4256case `$am_make -s -f confmf 2> /dev/null` in #( 4257*the\ am__doit\ target*) 4258 am__include=include 4259 am__quote= 4260 _am_result=GNU 4261 ;; 4262esac 4263# Now try BSD make style include. 4264if test "$am__include" = "#"; then 4265 echo '.include "confinc"' > confmf 4266 case `$am_make -s -f confmf 2> /dev/null` in #( 4267 *the\ am__doit\ target*) 4268 am__include=.include 4269 am__quote="\"" 4270 _am_result=BSD 4271 ;; 4272 esac 4273fi 4274 4275 4276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4277$as_echo "$_am_result" >&6; } 4278rm -f confinc confmf 4279 4280# Check whether --enable-dependency-tracking was given. 4281if test "${enable_dependency_tracking+set}" = set; then : 4282 enableval=$enable_dependency_tracking; 4283fi 4284 4285if test "x$enable_dependency_tracking" != xno; then 4286 am_depcomp="$ac_aux_dir/depcomp" 4287 AMDEPBACKSLASH='\' 4288 am__nodep='_no' 4289fi 4290 if test "x$enable_dependency_tracking" != xno; then 4291 AMDEP_TRUE= 4292 AMDEP_FALSE='#' 4293else 4294 AMDEP_TRUE='#' 4295 AMDEP_FALSE= 4296fi 4297 4298 4299 4300depcc="$CC" am_compiler_list= 4301 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4303$as_echo_n "checking dependency style of $depcc... " >&6; } 4304if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4305 $as_echo_n "(cached) " >&6 4306else 4307 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4308 # We make a subdir and do the tests there. Otherwise we can end up 4309 # making bogus files that we don't know about and never remove. For 4310 # instance it was reported that on HP-UX the gcc test will end up 4311 # making a dummy file named 'D' -- because '-MD' means "put the output 4312 # in D". 4313 rm -rf conftest.dir 4314 mkdir conftest.dir 4315 # Copy depcomp to subdir because otherwise we won't find it if we're 4316 # using a relative directory. 4317 cp "$am_depcomp" conftest.dir 4318 cd conftest.dir 4319 # We will build objects and dependencies in a subdirectory because 4320 # it helps to detect inapplicable dependency modes. For instance 4321 # both Tru64's cc and ICC support -MD to output dependencies as a 4322 # side effect of compilation, but ICC will put the dependencies in 4323 # the current directory while Tru64 will put them in the object 4324 # directory. 4325 mkdir sub 4326 4327 am_cv_CC_dependencies_compiler_type=none 4328 if test "$am_compiler_list" = ""; then 4329 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4330 fi 4331 am__universal=false 4332 case " $depcc " in #( 4333 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4334 esac 4335 4336 for depmode in $am_compiler_list; do 4337 # Setup a source with many dependencies, because some compilers 4338 # like to wrap large dependency lists on column 80 (with \), and 4339 # we should not choose a depcomp mode which is confused by this. 4340 # 4341 # We need to recreate these files for each test, as the compiler may 4342 # overwrite some of them when testing with obscure command lines. 4343 # This happens at least with the AIX C compiler. 4344 : > sub/conftest.c 4345 for i in 1 2 3 4 5 6; do 4346 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4347 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4348 # Solaris 10 /bin/sh. 4349 echo '/* dummy */' > sub/conftst$i.h 4350 done 4351 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4352 4353 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4354 # mode. It turns out that the SunPro C++ compiler does not properly 4355 # handle '-M -o', and we need to detect this. Also, some Intel 4356 # versions had trouble with output in subdirs. 4357 am__obj=sub/conftest.${OBJEXT-o} 4358 am__minus_obj="-o $am__obj" 4359 case $depmode in 4360 gcc) 4361 # This depmode causes a compiler race in universal mode. 4362 test "$am__universal" = false || continue 4363 ;; 4364 nosideeffect) 4365 # After this tag, mechanisms are not by side-effect, so they'll 4366 # only be used when explicitly requested. 4367 if test "x$enable_dependency_tracking" = xyes; then 4368 continue 4369 else 4370 break 4371 fi 4372 ;; 4373 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4374 # This compiler won't grok '-c -o', but also, the minuso test has 4375 # not run yet. These depmodes are late enough in the game, and 4376 # so weak that their functioning should not be impacted. 4377 am__obj=conftest.${OBJEXT-o} 4378 am__minus_obj= 4379 ;; 4380 none) break ;; 4381 esac 4382 if depmode=$depmode \ 4383 source=sub/conftest.c object=$am__obj \ 4384 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4385 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4386 >/dev/null 2>conftest.err && 4387 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4388 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4389 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4390 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4391 # icc doesn't choke on unknown options, it will just issue warnings 4392 # or remarks (even with -Werror). So we grep stderr for any message 4393 # that says an option was ignored or not supported. 4394 # When given -MP, icc 7.0 and 7.1 complain thusly: 4395 # icc: Command line warning: ignoring option '-M'; no argument required 4396 # The diagnosis changed in icc 8.0: 4397 # icc: Command line remark: option '-MP' not supported 4398 if (grep 'ignoring option' conftest.err || 4399 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4400 am_cv_CC_dependencies_compiler_type=$depmode 4401 break 4402 fi 4403 fi 4404 done 4405 4406 cd .. 4407 rm -rf conftest.dir 4408else 4409 am_cv_CC_dependencies_compiler_type=none 4410fi 4411 4412fi 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4414$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4415CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4416 4417 if 4418 test "x$enable_dependency_tracking" != xno \ 4419 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4420 am__fastdepCC_TRUE= 4421 am__fastdepCC_FALSE='#' 4422else 4423 am__fastdepCC_TRUE='#' 4424 am__fastdepCC_FALSE= 4425fi 4426 4427 4428ac_ext=cpp 4429ac_cpp='$CXXCPP $CPPFLAGS' 4430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4433if test -z "$CXX"; then 4434 if test -n "$CCC"; then 4435 CXX=$CCC 4436 else 4437 if test -n "$ac_tool_prefix"; then 4438 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4439 do 4440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4441set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4443$as_echo_n "checking for $ac_word... " >&6; } 4444if ${ac_cv_prog_CXX+:} false; then : 4445 $as_echo_n "(cached) " >&6 4446else 4447 if test -n "$CXX"; then 4448 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4449else 4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4451for as_dir in $PATH 4452do 4453 IFS=$as_save_IFS 4454 test -z "$as_dir" && as_dir=. 4455 for ac_exec_ext in '' $ac_executable_extensions; do 4456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4457 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4459 break 2 4460 fi 4461done 4462 done 4463IFS=$as_save_IFS 4464 4465fi 4466fi 4467CXX=$ac_cv_prog_CXX 4468if test -n "$CXX"; then 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4470$as_echo "$CXX" >&6; } 4471else 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4473$as_echo "no" >&6; } 4474fi 4475 4476 4477 test -n "$CXX" && break 4478 done 4479fi 4480if test -z "$CXX"; then 4481 ac_ct_CXX=$CXX 4482 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4483do 4484 # Extract the first word of "$ac_prog", so it can be a program name with args. 4485set dummy $ac_prog; ac_word=$2 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4487$as_echo_n "checking for $ac_word... " >&6; } 4488if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4489 $as_echo_n "(cached) " >&6 4490else 4491 if test -n "$ac_ct_CXX"; then 4492 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4493else 4494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4495for as_dir in $PATH 4496do 4497 IFS=$as_save_IFS 4498 test -z "$as_dir" && as_dir=. 4499 for ac_exec_ext in '' $ac_executable_extensions; do 4500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4501 ac_cv_prog_ac_ct_CXX="$ac_prog" 4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4503 break 2 4504 fi 4505done 4506 done 4507IFS=$as_save_IFS 4508 4509fi 4510fi 4511ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4512if test -n "$ac_ct_CXX"; then 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4514$as_echo "$ac_ct_CXX" >&6; } 4515else 4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4517$as_echo "no" >&6; } 4518fi 4519 4520 4521 test -n "$ac_ct_CXX" && break 4522done 4523 4524 if test "x$ac_ct_CXX" = x; then 4525 CXX="g++" 4526 else 4527 case $cross_compiling:$ac_tool_warned in 4528yes:) 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4531ac_tool_warned=yes ;; 4532esac 4533 CXX=$ac_ct_CXX 4534 fi 4535fi 4536 4537 fi 4538fi 4539# Provide some information about the compiler. 4540$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4541set X $ac_compile 4542ac_compiler=$2 4543for ac_option in --version -v -V -qversion; do 4544 { { ac_try="$ac_compiler $ac_option >&5" 4545case "(($ac_try" in 4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4547 *) ac_try_echo=$ac_try;; 4548esac 4549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4550$as_echo "$ac_try_echo"; } >&5 4551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4552 ac_status=$? 4553 if test -s conftest.err; then 4554 sed '10a\ 4555... rest of stderr output deleted ... 4556 10q' conftest.err >conftest.er1 4557 cat conftest.er1 >&5 4558 fi 4559 rm -f conftest.er1 conftest.err 4560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4561 test $ac_status = 0; } 4562done 4563 4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4565$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4566if ${ac_cv_cxx_compiler_gnu+:} false; then : 4567 $as_echo_n "(cached) " >&6 4568else 4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4570/* end confdefs.h. */ 4571 4572int 4573main () 4574{ 4575#ifndef __GNUC__ 4576 choke me 4577#endif 4578 4579 ; 4580 return 0; 4581} 4582_ACEOF 4583if ac_fn_cxx_try_compile "$LINENO"; then : 4584 ac_compiler_gnu=yes 4585else 4586 ac_compiler_gnu=no 4587fi 4588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4589ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4590 4591fi 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4593$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4594if test $ac_compiler_gnu = yes; then 4595 GXX=yes 4596else 4597 GXX= 4598fi 4599ac_test_CXXFLAGS=${CXXFLAGS+set} 4600ac_save_CXXFLAGS=$CXXFLAGS 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4602$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4603if ${ac_cv_prog_cxx_g+:} false; then : 4604 $as_echo_n "(cached) " >&6 4605else 4606 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4607 ac_cxx_werror_flag=yes 4608 ac_cv_prog_cxx_g=no 4609 CXXFLAGS="-g" 4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4611/* end confdefs.h. */ 4612 4613int 4614main () 4615{ 4616 4617 ; 4618 return 0; 4619} 4620_ACEOF 4621if ac_fn_cxx_try_compile "$LINENO"; then : 4622 ac_cv_prog_cxx_g=yes 4623else 4624 CXXFLAGS="" 4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4626/* end confdefs.h. */ 4627 4628int 4629main () 4630{ 4631 4632 ; 4633 return 0; 4634} 4635_ACEOF 4636if ac_fn_cxx_try_compile "$LINENO"; then : 4637 4638else 4639 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4640 CXXFLAGS="-g" 4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4642/* end confdefs.h. */ 4643 4644int 4645main () 4646{ 4647 4648 ; 4649 return 0; 4650} 4651_ACEOF 4652if ac_fn_cxx_try_compile "$LINENO"; then : 4653 ac_cv_prog_cxx_g=yes 4654fi 4655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4656fi 4657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4658fi 4659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4660 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4661fi 4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4663$as_echo "$ac_cv_prog_cxx_g" >&6; } 4664if test "$ac_test_CXXFLAGS" = set; then 4665 CXXFLAGS=$ac_save_CXXFLAGS 4666elif test $ac_cv_prog_cxx_g = yes; then 4667 if test "$GXX" = yes; then 4668 CXXFLAGS="-g -O2" 4669 else 4670 CXXFLAGS="-g" 4671 fi 4672else 4673 if test "$GXX" = yes; then 4674 CXXFLAGS="-O2" 4675 else 4676 CXXFLAGS= 4677 fi 4678fi 4679ac_ext=c 4680ac_cpp='$CPP $CPPFLAGS' 4681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4683ac_compiler_gnu=$ac_cv_c_compiler_gnu 4684 4685depcc="$CXX" am_compiler_list= 4686 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4688$as_echo_n "checking dependency style of $depcc... " >&6; } 4689if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4690 $as_echo_n "(cached) " >&6 4691else 4692 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4693 # We make a subdir and do the tests there. Otherwise we can end up 4694 # making bogus files that we don't know about and never remove. For 4695 # instance it was reported that on HP-UX the gcc test will end up 4696 # making a dummy file named 'D' -- because '-MD' means "put the output 4697 # in D". 4698 rm -rf conftest.dir 4699 mkdir conftest.dir 4700 # Copy depcomp to subdir because otherwise we won't find it if we're 4701 # using a relative directory. 4702 cp "$am_depcomp" conftest.dir 4703 cd conftest.dir 4704 # We will build objects and dependencies in a subdirectory because 4705 # it helps to detect inapplicable dependency modes. For instance 4706 # both Tru64's cc and ICC support -MD to output dependencies as a 4707 # side effect of compilation, but ICC will put the dependencies in 4708 # the current directory while Tru64 will put them in the object 4709 # directory. 4710 mkdir sub 4711 4712 am_cv_CXX_dependencies_compiler_type=none 4713 if test "$am_compiler_list" = ""; then 4714 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4715 fi 4716 am__universal=false 4717 case " $depcc " in #( 4718 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4719 esac 4720 4721 for depmode in $am_compiler_list; do 4722 # Setup a source with many dependencies, because some compilers 4723 # like to wrap large dependency lists on column 80 (with \), and 4724 # we should not choose a depcomp mode which is confused by this. 4725 # 4726 # We need to recreate these files for each test, as the compiler may 4727 # overwrite some of them when testing with obscure command lines. 4728 # This happens at least with the AIX C compiler. 4729 : > sub/conftest.c 4730 for i in 1 2 3 4 5 6; do 4731 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4732 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4733 # Solaris 10 /bin/sh. 4734 echo '/* dummy */' > sub/conftst$i.h 4735 done 4736 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4737 4738 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4739 # mode. It turns out that the SunPro C++ compiler does not properly 4740 # handle '-M -o', and we need to detect this. Also, some Intel 4741 # versions had trouble with output in subdirs. 4742 am__obj=sub/conftest.${OBJEXT-o} 4743 am__minus_obj="-o $am__obj" 4744 case $depmode in 4745 gcc) 4746 # This depmode causes a compiler race in universal mode. 4747 test "$am__universal" = false || continue 4748 ;; 4749 nosideeffect) 4750 # After this tag, mechanisms are not by side-effect, so they'll 4751 # only be used when explicitly requested. 4752 if test "x$enable_dependency_tracking" = xyes; then 4753 continue 4754 else 4755 break 4756 fi 4757 ;; 4758 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4759 # This compiler won't grok '-c -o', but also, the minuso test has 4760 # not run yet. These depmodes are late enough in the game, and 4761 # so weak that their functioning should not be impacted. 4762 am__obj=conftest.${OBJEXT-o} 4763 am__minus_obj= 4764 ;; 4765 none) break ;; 4766 esac 4767 if depmode=$depmode \ 4768 source=sub/conftest.c object=$am__obj \ 4769 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4770 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4771 >/dev/null 2>conftest.err && 4772 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4773 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4774 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4775 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4776 # icc doesn't choke on unknown options, it will just issue warnings 4777 # or remarks (even with -Werror). So we grep stderr for any message 4778 # that says an option was ignored or not supported. 4779 # When given -MP, icc 7.0 and 7.1 complain thusly: 4780 # icc: Command line warning: ignoring option '-M'; no argument required 4781 # The diagnosis changed in icc 8.0: 4782 # icc: Command line remark: option '-MP' not supported 4783 if (grep 'ignoring option' conftest.err || 4784 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4785 am_cv_CXX_dependencies_compiler_type=$depmode 4786 break 4787 fi 4788 fi 4789 done 4790 4791 cd .. 4792 rm -rf conftest.dir 4793else 4794 am_cv_CXX_dependencies_compiler_type=none 4795fi 4796 4797fi 4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4799$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4800CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4801 4802 if 4803 test "x$enable_dependency_tracking" != xno \ 4804 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4805 am__fastdepCXX_TRUE= 4806 am__fastdepCXX_FALSE='#' 4807else 4808 am__fastdepCXX_TRUE='#' 4809 am__fastdepCXX_FALSE= 4810fi 4811 4812 4813ac_ext=c 4814ac_cpp='$CPP $CPPFLAGS' 4815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4817ac_compiler_gnu=$ac_cv_c_compiler_gnu 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4819$as_echo_n "checking how to run the C preprocessor... " >&6; } 4820# On Suns, sometimes $CPP names a directory. 4821if test -n "$CPP" && test -d "$CPP"; then 4822 CPP= 4823fi 4824if test -z "$CPP"; then 4825 if ${ac_cv_prog_CPP+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 # Double quotes because CPP needs to be expanded 4829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4830 do 4831 ac_preproc_ok=false 4832for ac_c_preproc_warn_flag in '' yes 4833do 4834 # Use a header file that comes with gcc, so configuring glibc 4835 # with a fresh cross-compiler works. 4836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4837 # <limits.h> exists even on freestanding compilers. 4838 # On the NeXT, cc -E runs the code through the compiler's parser, 4839 # not just through cpp. "Syntax error" is here to catch this case. 4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4841/* end confdefs.h. */ 4842#ifdef __STDC__ 4843# include <limits.h> 4844#else 4845# include <assert.h> 4846#endif 4847 Syntax error 4848_ACEOF 4849if ac_fn_c_try_cpp "$LINENO"; then : 4850 4851else 4852 # Broken: fails on valid input. 4853continue 4854fi 4855rm -f conftest.err conftest.i conftest.$ac_ext 4856 4857 # OK, works on sane cases. Now check whether nonexistent headers 4858 # can be detected and how. 4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4860/* end confdefs.h. */ 4861#include <ac_nonexistent.h> 4862_ACEOF 4863if ac_fn_c_try_cpp "$LINENO"; then : 4864 # Broken: success on invalid input. 4865continue 4866else 4867 # Passes both tests. 4868ac_preproc_ok=: 4869break 4870fi 4871rm -f conftest.err conftest.i conftest.$ac_ext 4872 4873done 4874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4875rm -f conftest.i conftest.err conftest.$ac_ext 4876if $ac_preproc_ok; then : 4877 break 4878fi 4879 4880 done 4881 ac_cv_prog_CPP=$CPP 4882 4883fi 4884 CPP=$ac_cv_prog_CPP 4885else 4886 ac_cv_prog_CPP=$CPP 4887fi 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4889$as_echo "$CPP" >&6; } 4890ac_preproc_ok=false 4891for ac_c_preproc_warn_flag in '' yes 4892do 4893 # Use a header file that comes with gcc, so configuring glibc 4894 # with a fresh cross-compiler works. 4895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4896 # <limits.h> exists even on freestanding compilers. 4897 # On the NeXT, cc -E runs the code through the compiler's parser, 4898 # not just through cpp. "Syntax error" is here to catch this case. 4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4900/* end confdefs.h. */ 4901#ifdef __STDC__ 4902# include <limits.h> 4903#else 4904# include <assert.h> 4905#endif 4906 Syntax error 4907_ACEOF 4908if ac_fn_c_try_cpp "$LINENO"; then : 4909 4910else 4911 # Broken: fails on valid input. 4912continue 4913fi 4914rm -f conftest.err conftest.i conftest.$ac_ext 4915 4916 # OK, works on sane cases. Now check whether nonexistent headers 4917 # can be detected and how. 4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4919/* end confdefs.h. */ 4920#include <ac_nonexistent.h> 4921_ACEOF 4922if ac_fn_c_try_cpp "$LINENO"; then : 4923 # Broken: success on invalid input. 4924continue 4925else 4926 # Passes both tests. 4927ac_preproc_ok=: 4928break 4929fi 4930rm -f conftest.err conftest.i conftest.$ac_ext 4931 4932done 4933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4934rm -f conftest.i conftest.err conftest.$ac_ext 4935if $ac_preproc_ok; then : 4936 4937else 4938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4940as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4941See \`config.log' for more details" "$LINENO" 5; } 4942fi 4943 4944ac_ext=c 4945ac_cpp='$CPP $CPPFLAGS' 4946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4948ac_compiler_gnu=$ac_cv_c_compiler_gnu 4949 4950# Make sure we can run config.sub. 4951$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4952 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4953 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4955$as_echo_n "checking build system type... " >&6; } 4956if ${ac_cv_build+:} false; then : 4957 $as_echo_n "(cached) " >&6 4958else 4959 ac_build_alias=$build_alias 4960test "x$ac_build_alias" = x && 4961 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4962test "x$ac_build_alias" = x && 4963 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4964ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4965 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4966 4967fi 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4969$as_echo "$ac_cv_build" >&6; } 4970case $ac_cv_build in 4971*-*-*) ;; 4972*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4973esac 4974build=$ac_cv_build 4975ac_save_IFS=$IFS; IFS='-' 4976set x $ac_cv_build 4977shift 4978build_cpu=$1 4979build_vendor=$2 4980shift; shift 4981# Remember, the first character of IFS is used to create $*, 4982# except with old shells: 4983build_os=$* 4984IFS=$ac_save_IFS 4985case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4986 4987 4988 4989 4990cross_compiling_build=no 4991 4992ac_build_tool_prefix= 4993if test -n "$build"; then : 4994 ac_build_tool_prefix="$build-" 4995elif test -n "$build_alias"; then : 4996 ac_build_tool_prefix="$build_alias-" 4997fi 4998 4999ac_ext=c 5000ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5001ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5002ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5003ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 5004 5005ac_ext=c 5006ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5007ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5008ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5009ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 5010if test -n "$ac_build_tool_prefix"; then 5011 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5012set dummy ${ac_build_tool_prefix}gcc; ac_word=$2 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5014$as_echo_n "checking for $ac_word... " >&6; } 5015if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 if test -n "$CC_FOR_BUILD"; then 5019 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 5020else 5021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5022for as_dir in $PATH 5023do 5024 IFS=$as_save_IFS 5025 test -z "$as_dir" && as_dir=. 5026 for ac_exec_ext in '' $ac_executable_extensions; do 5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5028 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc" 5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5030 break 2 5031 fi 5032done 5033 done 5034IFS=$as_save_IFS 5035 5036fi 5037fi 5038CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 5039if test -n "$CC_FOR_BUILD"; then 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 5041$as_echo "$CC_FOR_BUILD" >&6; } 5042else 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5044$as_echo "no" >&6; } 5045fi 5046 5047 5048fi 5049if test -z "$ac_cv_prog_CC_FOR_BUILD"; then 5050 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 5051 # Extract the first word of "gcc", so it can be a program name with args. 5052set dummy gcc; ac_word=$2 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5054$as_echo_n "checking for $ac_word... " >&6; } 5055if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 if test -n "$ac_ct_CC_FOR_BUILD"; then 5059 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 5060else 5061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5062for as_dir in $PATH 5063do 5064 IFS=$as_save_IFS 5065 test -z "$as_dir" && as_dir=. 5066 for ac_exec_ext in '' $ac_executable_extensions; do 5067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5068 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc" 5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5070 break 2 5071 fi 5072done 5073 done 5074IFS=$as_save_IFS 5075 5076fi 5077fi 5078ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 5079if test -n "$ac_ct_CC_FOR_BUILD"; then 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 5081$as_echo "$ac_ct_CC_FOR_BUILD" >&6; } 5082else 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5084$as_echo "no" >&6; } 5085fi 5086 5087 if test "x$ac_ct_CC_FOR_BUILD" = x; then 5088 CC_FOR_BUILD="" 5089 else 5090 case $cross_compiling_build:$ac_tool_warned in 5091yes:) 5092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 5093$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 5094ac_tool_warned=yes ;; 5095esac 5096 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 5097 fi 5098else 5099 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD" 5100fi 5101 5102if test -z "$CC_FOR_BUILD"; then 5103 if test -n "$ac_build_tool_prefix"; then 5104 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5105set dummy ${ac_build_tool_prefix}cc; ac_word=$2 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5107$as_echo_n "checking for $ac_word... " >&6; } 5108if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 5109 $as_echo_n "(cached) " >&6 5110else 5111 if test -n "$CC_FOR_BUILD"; then 5112 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 5113else 5114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5115for as_dir in $PATH 5116do 5117 IFS=$as_save_IFS 5118 test -z "$as_dir" && as_dir=. 5119 for ac_exec_ext in '' $ac_executable_extensions; do 5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5121 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc" 5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5123 break 2 5124 fi 5125done 5126 done 5127IFS=$as_save_IFS 5128 5129fi 5130fi 5131CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 5132if test -n "$CC_FOR_BUILD"; then 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 5134$as_echo "$CC_FOR_BUILD" >&6; } 5135else 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5137$as_echo "no" >&6; } 5138fi 5139 5140 5141 fi 5142fi 5143if test -z "$CC_FOR_BUILD"; then 5144 # Extract the first word of "cc", so it can be a program name with args. 5145set dummy cc; ac_word=$2 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5147$as_echo_n "checking for $ac_word... " >&6; } 5148if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 if test -n "$CC_FOR_BUILD"; then 5152 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 5153else 5154 ac_prog_rejected=no 5155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5156for as_dir in $PATH 5157do 5158 IFS=$as_save_IFS 5159 test -z "$as_dir" && as_dir=. 5160 for ac_exec_ext in '' $ac_executable_extensions; do 5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5163 ac_prog_rejected=yes 5164 continue 5165 fi 5166 ac_cv_prog_CC_FOR_BUILD="cc" 5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5168 break 2 5169 fi 5170done 5171 done 5172IFS=$as_save_IFS 5173 5174if test $ac_prog_rejected = yes; then 5175 # We found a bogon in the path, so make sure we never use it. 5176 set dummy $ac_cv_prog_CC_FOR_BUILD 5177 shift 5178 if test $# != 0; then 5179 # We chose a different compiler from the bogus one. 5180 # However, it has the same basename, so the bogon will be chosen 5181 # first if we set CC_FOR_BUILD to just the basename; use the full file name. 5182 shift 5183 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@" 5184 fi 5185fi 5186fi 5187fi 5188CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 5189if test -n "$CC_FOR_BUILD"; then 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 5191$as_echo "$CC_FOR_BUILD" >&6; } 5192else 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5194$as_echo "no" >&6; } 5195fi 5196 5197 5198fi 5199if test -z "$CC_FOR_BUILD"; then 5200 if test -n "$ac_build_tool_prefix"; then 5201 for ac_prog in cl.exe 5202 do 5203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5204set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5206$as_echo_n "checking for $ac_word... " >&6; } 5207if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 5208 $as_echo_n "(cached) " >&6 5209else 5210 if test -n "$CC_FOR_BUILD"; then 5211 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 5212else 5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5214for as_dir in $PATH 5215do 5216 IFS=$as_save_IFS 5217 test -z "$as_dir" && as_dir=. 5218 for ac_exec_ext in '' $ac_executable_extensions; do 5219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5220 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog" 5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5222 break 2 5223 fi 5224done 5225 done 5226IFS=$as_save_IFS 5227 5228fi 5229fi 5230CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 5231if test -n "$CC_FOR_BUILD"; then 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 5233$as_echo "$CC_FOR_BUILD" >&6; } 5234else 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5236$as_echo "no" >&6; } 5237fi 5238 5239 5240 test -n "$CC_FOR_BUILD" && break 5241 done 5242fi 5243if test -z "$CC_FOR_BUILD"; then 5244 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 5245 for ac_prog in cl.exe 5246do 5247 # Extract the first word of "$ac_prog", so it can be a program name with args. 5248set dummy $ac_prog; ac_word=$2 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5250$as_echo_n "checking for $ac_word... " >&6; } 5251if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then : 5252 $as_echo_n "(cached) " >&6 5253else 5254 if test -n "$ac_ct_CC_FOR_BUILD"; then 5255 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 5256else 5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5258for as_dir in $PATH 5259do 5260 IFS=$as_save_IFS 5261 test -z "$as_dir" && as_dir=. 5262 for ac_exec_ext in '' $ac_executable_extensions; do 5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5264 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog" 5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5266 break 2 5267 fi 5268done 5269 done 5270IFS=$as_save_IFS 5271 5272fi 5273fi 5274ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 5275if test -n "$ac_ct_CC_FOR_BUILD"; then 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 5277$as_echo "$ac_ct_CC_FOR_BUILD" >&6; } 5278else 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5280$as_echo "no" >&6; } 5281fi 5282 5283 5284 test -n "$ac_ct_CC_FOR_BUILD" && break 5285done 5286 5287 if test "x$ac_ct_CC_FOR_BUILD" = x; then 5288 CC_FOR_BUILD="" 5289 else 5290 case $cross_compiling_build:$ac_tool_warned in 5291yes:) 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 5293$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 5294ac_tool_warned=yes ;; 5295esac 5296 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 5297 fi 5298fi 5299 5300fi 5301 5302 5303test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5305as_fn_error $? "no acceptable C compiler found in \$PATH 5306See \`config.log' for more details" "$LINENO" 5; } 5307 5308# Provide some information about the compiler. 5309$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5310set X $ac_compile 5311ac_compiler=$2 5312for ac_option in --version -v -V -qversion; do 5313 { { ac_try="$ac_compiler $ac_option >&5" 5314case "(($ac_try" in 5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5316 *) ac_try_echo=$ac_try;; 5317esac 5318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5319$as_echo "$ac_try_echo"; } >&5 5320 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5321 ac_status=$? 5322 if test -s conftest.err; then 5323 sed '10a\ 5324... rest of stderr output deleted ... 5325 10q' conftest.err >conftest.er1 5326 cat conftest.er1 >&5 5327 fi 5328 rm -f conftest.er1 conftest.err 5329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5330 test $ac_status = 0; } 5331done 5332 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5334$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5335if ${ac_cv_c_compiler_gnu+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5339/* end confdefs.h. */ 5340 5341int 5342main () 5343{ 5344#ifndef __GNUC__ 5345 choke me 5346#endif 5347 5348 ; 5349 return 0; 5350} 5351_ACEOF 5352if ac_fn_c_try_compile "$LINENO"; then : 5353 ac_compiler_gnu=yes 5354else 5355 ac_compiler_gnu=no 5356fi 5357rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 5358ac_cv_c_compiler_gnu=$ac_compiler_gnu 5359 5360fi 5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5362$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5363if test $ac_compiler_gnu = yes; then 5364 GCC_FOR_BUILD=yes 5365else 5366 GCC_FOR_BUILD= 5367fi 5368ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set} 5369ac_save_CFLAGS=$CFLAGS_FOR_BUILD 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5 5371$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; } 5372if ${ac_cv_build_prog_cc_g+:} false; then : 5373 $as_echo_n "(cached) " >&6 5374else 5375 ac_save_c_werror_flag=$ac_c_werror_flag 5376 ac_c_werror_flag=yes 5377 ac_cv_build_prog_cc_g=no 5378 CFLAGS_FOR_BUILD="-g" 5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5380/* end confdefs.h. */ 5381 5382int 5383main () 5384{ 5385 5386 ; 5387 return 0; 5388} 5389_ACEOF 5390if ac_fn_c_try_compile "$LINENO"; then : 5391 ac_cv_build_prog_cc_g=yes 5392else 5393 CFLAGS_FOR_BUILD="" 5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5395/* end confdefs.h. */ 5396 5397int 5398main () 5399{ 5400 5401 ; 5402 return 0; 5403} 5404_ACEOF 5405if ac_fn_c_try_compile "$LINENO"; then : 5406 5407else 5408 ac_c_werror_flag=$ac_save_c_werror_flag 5409 CFLAGS_FOR_BUILD="-g" 5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5411/* end confdefs.h. */ 5412 5413int 5414main () 5415{ 5416 5417 ; 5418 return 0; 5419} 5420_ACEOF 5421if ac_fn_c_try_compile "$LINENO"; then : 5422 ac_cv_build_prog_cc_g=yes 5423fi 5424rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 5425fi 5426rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 5427fi 5428rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 5429 ac_c_werror_flag=$ac_save_c_werror_flag 5430fi 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5 5432$as_echo "$ac_cv_build_prog_cc_g" >&6; } 5433if test "$ac_test_CFLAGS" = set; then 5434 CFLAGS_FOR_BUILD=$ac_save_CFLAGS 5435elif test $ac_cv_build_prog_cc_g = yes; then 5436 if test "$GCC_FOR_BUILD" = yes; then 5437 CFLAGS_FOR_BUILD="-g -O2" 5438 else 5439 CFLAGS_FOR_BUILD="-g" 5440 fi 5441else 5442 if test "$GCC_FOR_BUILD" = yes; then 5443 CFLAGS_FOR_BUILD="-O2" 5444 else 5445 CFLAGS_FOR_BUILD= 5446 fi 5447fi 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5 5449$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; } 5450if ${ac_cv_build_prog_cc_c89+:} false; then : 5451 $as_echo_n "(cached) " >&6 5452else 5453 ac_cv_build_prog_cc_c89=no 5454ac_save_CC=$CC_FOR_BUILD 5455cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5456/* end confdefs.h. */ 5457#include <stdarg.h> 5458#include <stdio.h> 5459struct stat; 5460/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5461struct buf { int x; }; 5462FILE * (*rcsopen) (struct buf *, struct stat *, int); 5463static char *e (p, i) 5464 char **p; 5465 int i; 5466{ 5467 return p[i]; 5468} 5469static char *f (char * (*g) (char **, int), char **p, ...) 5470{ 5471 char *s; 5472 va_list v; 5473 va_start (v,p); 5474 s = g (p, va_arg (v,int)); 5475 va_end (v); 5476 return s; 5477} 5478 5479/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5480 function prototypes and stuff, but not '\xHH' hex character constants. 5481 These don't provoke an error unfortunately, instead are silently treated 5482 as 'x'. The following induces an error, until -std is added to get 5483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5484 array size at least. It's necessary to write '\x00'==0 to get something 5485 that's true only with -std. */ 5486int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5487 5488/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5489 inside strings and character constants. */ 5490#define FOO(x) 'x' 5491int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5492 5493int test (int i, double x); 5494struct s1 {int (*f) (int a);}; 5495struct s2 {int (*f) (double a);}; 5496int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5497int argc; 5498char **argv; 5499int 5500main () 5501{ 5502return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5503 ; 5504 return 0; 5505} 5506_ACEOF 5507for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5508 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5509do 5510 CC_FOR_BUILD="$ac_save_CC $ac_arg" 5511 if ac_fn_c_try_compile "$LINENO"; then : 5512 ac_cv_build_prog_cc_c89=$ac_arg 5513fi 5514rm -f core conftest.err conftest.$ac_build_objext 5515 test "x$ac_cv_build_prog_cc_c89" != "xno" && break 5516done 5517rm -f conftest.$ac_ext 5518CC_FOR_BUILD=$ac_save_CC 5519 5520fi 5521# AC_CACHE_VAL 5522case "x$ac_cv_build_prog_cc_c89" in 5523 x) 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5525$as_echo "none needed" >&6; } ;; 5526 xno) 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5528$as_echo "unsupported" >&6; } ;; 5529 *) 5530 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89" 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5 5532$as_echo "$ac_cv_build_prog_cc_c89" >&6; } ;; 5533esac 5534if test "x$ac_cv_build_prog_cc_c89" != xno; then : 5535 5536fi 5537 5538ac_ext=c 5539ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5540ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5541ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5542ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 5543 5544ac_ext=c 5545ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5546ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5547ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5548ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5 5550$as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; } 5551if ${am_cv_build_prog_cc_c_o+:} false; then : 5552 $as_echo_n "(cached) " >&6 5553else 5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5555/* end confdefs.h. */ 5556 5557int 5558main () 5559{ 5560 5561 ; 5562 return 0; 5563} 5564_ACEOF 5565 # Make sure it works both with $CC and with simple cc. 5566 # Following AC_PROG_CC_C_O, we do the test twice because some 5567 # compilers refuse to overwrite an existing .o file with -o, 5568 # though they will create one. 5569 am_cv_build_prog_cc_c_o=yes 5570 for am_i in 1 2; do 5571 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5 5572 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5 5573 ac_status=$? 5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5575 (exit $ac_status); } \ 5576 && test -f conftest2.$ac_build_objext; then 5577 : OK 5578 else 5579 am_cv_build_prog_cc_c_o=no 5580 break 5581 fi 5582 done 5583 rm -f core conftest* 5584 unset am_i 5585fi 5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5 5587$as_echo "$am_cv_build_prog_cc_c_o" >&6; } 5588if test "$am_cv_build_prog_cc_c_o" != yes; then 5589 # Losing compiler, so override with the script. 5590 # FIXME: It is wrong to rewrite CC. 5591 # But if we don't then we get into trouble of one sort or another. 5592 # A longer-term fix would be to have automake use am__CC in this case, 5593 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5594 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD" 5595fi 5596ac_ext=c 5597ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5598ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5599ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5600ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 5601 5602 5603depcc="$CC_FOR_BUILD" am_compiler_list= 5604 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5606$as_echo_n "checking dependency style of $depcc... " >&6; } 5607if ${am_cv_build_CC_dependencies_compiler_type+:} false; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5611 # We make a subdir and do the tests there. Otherwise we can end up 5612 # making bogus files that we don't know about and never remove. For 5613 # instance it was reported that on HP-UX the gcc test will end up 5614 # making a dummy file named 'D' -- because '-MD' means "put the output 5615 # in D". 5616 rm -rf conftest.dir 5617 mkdir conftest.dir 5618 # Copy depcomp to subdir because otherwise we won't find it if we're 5619 # using a relative directory. 5620 cp "$am_depcomp" conftest.dir 5621 cd conftest.dir 5622 # We will build objects and dependencies in a subdirectory because 5623 # it helps to detect inapplicable dependency modes. For instance 5624 # both Tru64's cc and ICC support -MD to output dependencies as a 5625 # side effect of compilation, but ICC will put the dependencies in 5626 # the current directory while Tru64 will put them in the object 5627 # directory. 5628 mkdir sub 5629 5630 am_cv_build_CC_dependencies_compiler_type=none 5631 if test "$am_compiler_list" = ""; then 5632 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5633 fi 5634 am__universal=false 5635 case " $depcc " in #( 5636 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5637 esac 5638 5639 for depmode in $am_compiler_list; do 5640 # Setup a source with many dependencies, because some compilers 5641 # like to wrap large dependency lists on column 80 (with \), and 5642 # we should not choose a depcomp mode which is confused by this. 5643 # 5644 # We need to recreate these files for each test, as the compiler may 5645 # overwrite some of them when testing with obscure command lines. 5646 # This happens at least with the AIX C compiler. 5647 : > sub/conftest.c 5648 for i in 1 2 3 4 5 6; do 5649 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5650 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5651 # Solaris 10 /bin/sh. 5652 echo '/* dummy */' > sub/conftst$i.h 5653 done 5654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5655 5656 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5657 # mode. It turns out that the SunPro C++ compiler does not properly 5658 # handle '-M -o', and we need to detect this. Also, some Intel 5659 # versions had trouble with output in subdirs. 5660 am__obj=sub/conftest.${BUILD_OBJEXT-o} 5661 am__minus_obj="-o $am__obj" 5662 case $depmode in 5663 gcc) 5664 # This depmode causes a compiler race in universal mode. 5665 test "$am__universal" = false || continue 5666 ;; 5667 nosideeffect) 5668 # After this tag, mechanisms are not by side-effect, so they'll 5669 # only be used when explicitly requested. 5670 if test "x$enable_dependency_tracking" = xyes; then 5671 continue 5672 else 5673 break 5674 fi 5675 ;; 5676 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5677 # This compiler won't grok '-c -o', but also, the minuso test has 5678 # not run yet. These depmodes are late enough in the game, and 5679 # so weak that their functioning should not be impacted. 5680 am__obj=conftest.${BUILD_OBJEXT-o} 5681 am__minus_obj= 5682 ;; 5683 none) break ;; 5684 esac 5685 if depmode=$depmode \ 5686 source=sub/conftest.c object=$am__obj \ 5687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5688 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5689 >/dev/null 2>conftest.err && 5690 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5691 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5692 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5693 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5694 # icc doesn't choke on unknown options, it will just issue warnings 5695 # or remarks (even with -Werror). So we grep stderr for any message 5696 # that says an option was ignored or not supported. 5697 # When given -MP, icc 7.0 and 7.1 complain thusly: 5698 # icc: Command line warning: ignoring option '-M'; no argument required 5699 # The diagnosis changed in icc 8.0: 5700 # icc: Command line remark: option '-MP' not supported 5701 if (grep 'ignoring option' conftest.err || 5702 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5703 am_cv_build_CC_dependencies_compiler_type=$depmode 5704 break 5705 fi 5706 fi 5707 done 5708 5709 cd .. 5710 rm -rf conftest.dir 5711else 5712 am_cv_build_CC_dependencies_compiler_type=none 5713fi 5714 5715fi 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5 5717$as_echo "$am_cv_build_CC_dependencies_compiler_type" >&6; } 5718CCDEPMODE_FOR_BUILD=depmode=$am_cv_build_CC_dependencies_compiler_type 5719 5720 if 5721 test "x$enable_dependency_tracking" != xno \ 5722 && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then 5723 am__fastdepCC_build_TRUE= 5724 am__fastdepCC_build_FALSE='#' 5725else 5726 am__fastdepCC_build_TRUE='#' 5727 am__fastdepCC_build_FALSE= 5728fi 5729 5730 5731cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5732/* end confdefs.h. */ 5733 5734int 5735main () 5736{ 5737 5738 ; 5739 return 0; 5740} 5741_ACEOF 5742ac_clean_files_save=$ac_clean_files 5743ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5744# Try to create an executable without -o first, disregard a.out. 5745# It will help us diagnose broken compilers, and finding out an intuition 5746# of exeext. 5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5748$as_echo_n "checking whether the C compiler works... " >&6; } 5749ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5750 5751# The possible output files: 5752ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5753 5754ac_rmfiles= 5755for ac_file in $ac_files 5756do 5757 case $ac_file in 5758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5759 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5760 esac 5761done 5762rm -f $ac_rmfiles 5763 5764if { { ac_try="$ac_link_default" 5765case "(($ac_try" in 5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5767 *) ac_try_echo=$ac_try;; 5768esac 5769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5770$as_echo "$ac_try_echo"; } >&5 5771 (eval "$ac_link_default") 2>&5 5772 ac_status=$? 5773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5774 test $ac_status = 0; }; then : 5775 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5776# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5777# in a Makefile. We should not override ac_cv_exeext if it was cached, 5778# so that the user can short-circuit this test for compilers unknown to 5779# Autoconf. 5780for ac_file in $ac_files '' 5781do 5782 test -f "$ac_file" || continue 5783 case $ac_file in 5784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5785 ;; 5786 [ab].out ) 5787 # We found the default executable, but exeext='' is most 5788 # certainly right. 5789 break;; 5790 *.* ) 5791 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no; 5792 then :; else 5793 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5794 fi 5795 # We set ac_cv_exeext here because the later test for it is not 5796 # safe: cross compilers may not add the suffix if given an `-o' 5797 # argument, so we may need to know it at that point already. 5798 # Even if this section looks crufty: it has the advantage of 5799 # actually working. 5800 break;; 5801 * ) 5802 break;; 5803 esac 5804done 5805test "$ac_cv_build_exeext" = no && ac_cv_build_exeext= 5806 5807else 5808 ac_file='' 5809fi 5810if test -z "$ac_file"; then : 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5812$as_echo "no" >&6; } 5813$as_echo "$as_me: failed program was:" >&5 5814sed 's/^/| /' conftest.$ac_ext >&5 5815 5816{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5818as_fn_error 77 "C compiler cannot create executables 5819See \`config.log' for more details" "$LINENO" 5; } 5820else 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5822$as_echo "yes" >&6; } 5823fi 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5825$as_echo_n "checking for C compiler default output file name... " >&6; } 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5827$as_echo "$ac_file" >&6; } 5828ac_build_exeext=$ac_cv_build_exeext 5829 5830rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out 5831ac_clean_files=$ac_clean_files_save 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5833$as_echo_n "checking for suffix of executables... " >&6; } 5834if { { ac_try="$ac_link" 5835case "(($ac_try" in 5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5837 *) ac_try_echo=$ac_try;; 5838esac 5839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5840$as_echo "$ac_try_echo"; } >&5 5841 (eval "$ac_link") 2>&5 5842 ac_status=$? 5843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5844 test $ac_status = 0; }; then : 5845 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5846# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5847# work properly (i.e., refer to `conftest.exe'), while it won't with 5848# `rm'. 5849for ac_file in conftest.exe conftest conftest.*; do 5850 test -f "$ac_file" || continue 5851 case $ac_file in 5852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5853 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5854 break;; 5855 * ) break;; 5856 esac 5857done 5858else 5859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5861as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5862See \`config.log' for more details" "$LINENO" 5; } 5863fi 5864rm -f conftest conftest$ac_cv_build_exeext 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5 5866$as_echo "$ac_cv_build_exeext" >&6; } 5867 5868rm -f conftest.$ac_ext 5869BUILD_EXEEXT=$ac_cv_build_exeext 5870ac_build_exeext=$BUILD_EXEEXT 5871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5872/* end confdefs.h. */ 5873#include <stdio.h> 5874int 5875main () 5876{ 5877FILE *f = fopen ("conftest.out", "w"); 5878 return ferror (f) || fclose (f) != 0; 5879 5880 ; 5881 return 0; 5882} 5883_ACEOF 5884ac_clean_files="$ac_clean_files conftest.out" 5885# Check that the compiler produces executables we can run. If not, either 5886# the compiler is broken, or we cross compile. 5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5888$as_echo_n "checking whether we are cross compiling... " >&6; } 5889if test "$cross_compiling_build" != yes; then 5890 { { ac_try="$ac_link" 5891case "(($ac_try" in 5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5893 *) ac_try_echo=$ac_try;; 5894esac 5895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5896$as_echo "$ac_try_echo"; } >&5 5897 (eval "$ac_link") 2>&5 5898 ac_status=$? 5899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5900 test $ac_status = 0; } 5901 if { ac_try='./conftest$ac_cv_build_exeext' 5902 { { case "(($ac_try" in 5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5904 *) ac_try_echo=$ac_try;; 5905esac 5906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5907$as_echo "$ac_try_echo"; } >&5 5908 (eval "$ac_try") 2>&5 5909 ac_status=$? 5910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5911 test $ac_status = 0; }; }; then 5912 cross_compiling_build=no 5913 else 5914 if test "$cross_compiling_build" = maybe; then 5915 cross_compiling_build=yes 5916 else 5917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5919as_fn_error $? "cannot run C compiled programs. 5920If you meant to cross compile, use \`--build'. 5921See \`config.log' for more details" "$LINENO" 5; } 5922 fi 5923 fi 5924fi 5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5 5926$as_echo "$cross_compiling_build" >&6; } 5927 5928rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out 5929ac_clean_files=$ac_clean_files_save 5930 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5932$as_echo_n "checking for suffix of object files... " >&6; } 5933if ${ac_cv_build_objext+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5937/* end confdefs.h. */ 5938 5939int 5940main () 5941{ 5942 5943 ; 5944 return 0; 5945} 5946_ACEOF 5947rm -f conftest.o conftest.obj 5948if { { ac_try="$ac_compile" 5949case "(($ac_try" in 5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5951 *) ac_try_echo=$ac_try;; 5952esac 5953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5954$as_echo "$ac_try_echo"; } >&5 5955 (eval "$ac_compile") 2>&5 5956 ac_status=$? 5957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5958 test $ac_status = 0; }; then : 5959 for ac_file in conftest.o conftest.obj conftest.*; do 5960 test -f "$ac_file" || continue; 5961 case $ac_file in 5962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5963 *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5964 break;; 5965 esac 5966done 5967else 5968 $as_echo "$as_me: failed program was:" >&5 5969sed 's/^/| /' conftest.$ac_ext >&5 5970 5971{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5973as_fn_error $? "cannot compute suffix of object files: cannot compile 5974See \`config.log' for more details" "$LINENO" 5; } 5975fi 5976rm -f conftest.$ac_cv_build_objext conftest.$ac_ext 5977fi 5978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5 5979$as_echo "$ac_cv_build_objext" >&6; } 5980BUILD_OBJEXT=$ac_cv_build_objext 5981ac_build_objext=$BUILD_OBJEXT 5982 5983ac_ext=c 5984ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5985ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5986ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5987ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5989$as_echo_n "checking how to run the C preprocessor... " >&6; } 5990# On Suns, sometimes $CPP names a directory. 5991if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then 5992 CPP_FOR_BUILD= 5993fi 5994if test -z "$CPP_FOR_BUILD"; then 5995 if ${ac_cv_build_prog_CPP+:} false; then : 5996 $as_echo_n "(cached) " >&6 5997else 5998 # Double quotes because CPP needs to be expanded 5999 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp" 6000 do 6001 ac_preproc_ok=false 6002for ac_c_preproc_warn_flag in '' yes 6003do 6004 # Use a header file that comes with gcc, so configuring glibc 6005 # with a fresh cross-compiler works. 6006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6007 # <limits.h> exists even on freestanding compilers. 6008 # On the NeXT, cc -E runs the code through the compiler's parser, 6009 # not just through cpp. "Syntax error" is here to catch this case. 6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6011/* end confdefs.h. */ 6012#ifdef __STDC__ 6013# include <limits.h> 6014#else 6015# include <assert.h> 6016#endif 6017 Syntax error 6018_ACEOF 6019if ac_fn_c_try_cpp "$LINENO"; then : 6020 6021else 6022 # Broken: fails on valid input. 6023continue 6024fi 6025rm -f conftest.err conftest.i conftest.$ac_ext 6026 6027 # OK, works on sane cases. Now check whether nonexistent headers 6028 # can be detected and how. 6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6030/* end confdefs.h. */ 6031#include <ac_nonexistent.h> 6032_ACEOF 6033if ac_fn_c_try_cpp "$LINENO"; then : 6034 # Broken: success on invalid input. 6035continue 6036else 6037 # Passes both tests. 6038ac_preproc_ok=: 6039break 6040fi 6041rm -f conftest.err conftest.i conftest.$ac_ext 6042 6043done 6044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6045rm -f conftest.i conftest.err conftest.$ac_ext 6046if $ac_preproc_ok; then : 6047 break 6048fi 6049 6050 done 6051 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 6052 6053fi 6054 CPP_FOR_BUILD=$ac_cv_build_prog_CPP 6055else 6056 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 6057fi 6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5 6059$as_echo "$CPP_FOR_BUILD" >&6; } 6060ac_preproc_ok=false 6061for ac_c_preproc_warn_flag in '' yes 6062do 6063 # Use a header file that comes with gcc, so configuring glibc 6064 # with a fresh cross-compiler works. 6065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6066 # <limits.h> exists even on freestanding compilers. 6067 # On the NeXT, cc -E runs the code through the compiler's parser, 6068 # not just through cpp. "Syntax error" is here to catch this case. 6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6070/* end confdefs.h. */ 6071#ifdef __STDC__ 6072# include <limits.h> 6073#else 6074# include <assert.h> 6075#endif 6076 Syntax error 6077_ACEOF 6078if ac_fn_c_try_cpp "$LINENO"; then : 6079 6080else 6081 # Broken: fails on valid input. 6082continue 6083fi 6084rm -f conftest.err conftest.i conftest.$ac_ext 6085 6086 # OK, works on sane cases. Now check whether nonexistent headers 6087 # can be detected and how. 6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6089/* end confdefs.h. */ 6090#include <ac_nonexistent.h> 6091_ACEOF 6092if ac_fn_c_try_cpp "$LINENO"; then : 6093 # Broken: success on invalid input. 6094continue 6095else 6096 # Passes both tests. 6097ac_preproc_ok=: 6098break 6099fi 6100rm -f conftest.err conftest.i conftest.$ac_ext 6101 6102done 6103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6104rm -f conftest.i conftest.err conftest.$ac_ext 6105if $ac_preproc_ok; then : 6106 6107else 6108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6110as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check 6111See \`config.log' for more details" "$LINENO" 5; } 6112fi 6113 6114ac_ext=c 6115ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6116ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6117ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 6118ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 6119 6120 6121 6122ac_ext=c 6123ac_cpp='$CPP $CPPFLAGS' 6124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6126ac_compiler_gnu=$ac_cv_c_compiler_gnu 6127 6128 6129 6130 6131 6132 6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 6134$as_echo_n "checking for C compiler vendor... " >&6; } 6135if ${ax_cv_c_compiler_vendor+:} false; then : 6136 $as_echo_n "(cached) " >&6 6137else 6138 ax_cv_c_compiler_vendor=unknown 6139 # note: don't check for gcc first since some other compilers define __GNUC__ 6140 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ clang:__clang__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do 6141 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" 6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6143/* end confdefs.h. */ 6144 6145int 6146main () 6147{ 6148 6149#if !($vencpp) 6150 thisisanerror; 6151#endif 6152 6153 ; 6154 return 0; 6155} 6156_ACEOF 6157if ac_fn_c_try_compile "$LINENO"; then : 6158 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break 6159fi 6160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6161 done 6162 6163fi 6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 6165$as_echo "$ax_cv_c_compiler_vendor" >&6; } 6166 6167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6168$as_echo_n "checking host system type... " >&6; } 6169if ${ac_cv_host+:} false; then : 6170 $as_echo_n "(cached) " >&6 6171else 6172 if test "x$host_alias" = x; then 6173 ac_cv_host=$ac_cv_build 6174else 6175 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6176 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6177fi 6178 6179fi 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6181$as_echo "$ac_cv_host" >&6; } 6182case $ac_cv_host in 6183*-*-*) ;; 6184*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6185esac 6186host=$ac_cv_host 6187ac_save_IFS=$IFS; IFS='-' 6188set x $ac_cv_host 6189shift 6190host_cpu=$1 6191host_vendor=$2 6192shift; shift 6193# Remember, the first character of IFS is used to create $*, 6194# except with old shells: 6195host_os=$* 6196IFS=$ac_save_IFS 6197case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6198 6199 6200 6201 6202 6203 6204 6205# Check whether --enable-portable-binary was given. 6206if test "${enable_portable_binary+set}" = set; then : 6207 enableval=$enable_portable_binary; acx_maxopt_portable=$withval 6208else 6209 acx_maxopt_portable=no 6210fi 6211 6212 6213# Try to determine "good" native compiler flags if none specified via CFLAGS 6214if test "$ac_test_CFLAGS" != "set"; then 6215 CFLAGS="" 6216 case $ax_cv_c_compiler_vendor in 6217 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host" 6218 if test "x$acx_maxopt_portable" = xno; then 6219 CFLAGS="$CFLAGS -arch host" 6220 fi;; 6221 6222 sun) CFLAGS="-native -fast -xO5 -dalign" 6223 if test "x$acx_maxopt_portable" = xyes; then 6224 CFLAGS="$CFLAGS -xarch=generic" 6225 fi;; 6226 6227 hp) CFLAGS="+Oall +Optrs_ansi +DSnative" 6228 if test "x$acx_maxopt_portable" = xyes; then 6229 CFLAGS="$CFLAGS +DAportable" 6230 fi;; 6231 6232 ibm) if test "x$acx_maxopt_portable" = xno; then 6233 xlc_opt="-qarch=auto -qtune=auto" 6234 else 6235 xlc_opt="-qtune=auto" 6236 fi 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5 6238$as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; } 6239ax_save_FLAGS=$CFLAGS 6240 CFLAGS="$xlc_opt" 6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6242/* end confdefs.h. */ 6243 6244int 6245main () 6246{ 6247 6248 ; 6249 return 0; 6250} 6251_ACEOF 6252if ac_fn_c_try_compile "$LINENO"; then : 6253 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes 6254else 6255 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no 6256fi 6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6258 CFLAGS=$ax_save_FLAGS 6259eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh` 6260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 6261$as_echo "$ax_check_compiler_flags" >&6; } 6262if test "x$ax_check_compiler_flags" = xyes; then 6263 CFLAGS="-O3 -qansialias -w $xlc_opt" 6264else 6265 CFLAGS="-O3 -qansialias -w" 6266 echo "******************************************************" 6267 echo "* You seem to have the IBM C compiler. It is *" 6268 echo "* recommended for best performance that you use: *" 6269 echo "* *" 6270 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *" 6271 echo "* ^^^ ^^^ *" 6272 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *" 6273 echo "* CPU you have. (Set the CFLAGS environment var. *" 6274 echo "* and re-run configure.) For more info, man cc. *" 6275 echo "******************************************************" 6276fi 6277 6278 ;; 6279 6280 intel) CFLAGS="-O3 -ansi_alias" 6281 if test "x$acx_maxopt_portable" = xno; then 6282 icc_archflag=unknown 6283 icc_flags="" 6284 case $host_cpu in 6285 i686*|x86_64*) 6286 # icc accepts gcc assembly syntax, so these should work: 6287 6288ac_ext=c 6289ac_cpp='$CPP $CPPFLAGS' 6290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6292ac_compiler_gnu=$ac_cv_c_compiler_gnu 6293 6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 6295$as_echo_n "checking for x86 cpuid 0 output... " >&6; } 6296if ${ax_cv_gcc_x86_cpuid_0+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298else 6299 if test "$cross_compiling" = yes; then : 6300 ax_cv_gcc_x86_cpuid_0=unknown 6301else 6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6303/* end confdefs.h. */ 6304#include <stdio.h> 6305int 6306main () 6307{ 6308 6309 int op = 0, eax, ebx, ecx, edx; 6310 FILE *f; 6311 __asm__("cpuid" 6312 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 6313 : "a" (op)); 6314 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 6315 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 6316 fclose(f); 6317 return 0; 6318 6319 ; 6320 return 0; 6321} 6322_ACEOF 6323if ac_fn_c_try_run "$LINENO"; then : 6324 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 6325else 6326 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 6327fi 6328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6329 conftest.$ac_objext conftest.beam conftest.$ac_ext 6330fi 6331 6332fi 6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 6334$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } 6335ac_ext=c 6336ac_cpp='$CPP $CPPFLAGS' 6337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6339ac_compiler_gnu=$ac_cv_c_compiler_gnu 6340 6341 6342 6343ac_ext=c 6344ac_cpp='$CPP $CPPFLAGS' 6345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6347ac_compiler_gnu=$ac_cv_c_compiler_gnu 6348 6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 6350$as_echo_n "checking for x86 cpuid 1 output... " >&6; } 6351if ${ax_cv_gcc_x86_cpuid_1+:} false; then : 6352 $as_echo_n "(cached) " >&6 6353else 6354 if test "$cross_compiling" = yes; then : 6355 ax_cv_gcc_x86_cpuid_1=unknown 6356else 6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6358/* end confdefs.h. */ 6359#include <stdio.h> 6360int 6361main () 6362{ 6363 6364 int op = 1, eax, ebx, ecx, edx; 6365 FILE *f; 6366 __asm__("cpuid" 6367 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 6368 : "a" (op)); 6369 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 6370 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 6371 fclose(f); 6372 return 0; 6373 6374 ; 6375 return 0; 6376} 6377_ACEOF 6378if ac_fn_c_try_run "$LINENO"; then : 6379 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 6380else 6381 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 6382fi 6383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6384 conftest.$ac_objext conftest.beam conftest.$ac_ext 6385fi 6386 6387fi 6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 6389$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } 6390ac_ext=c 6391ac_cpp='$CPP $CPPFLAGS' 6392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6394ac_compiler_gnu=$ac_cv_c_compiler_gnu 6395 6396 6397 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG 6398 *:756e6547:*:*) # Intel 6399 case $ax_cv_gcc_x86_cpuid_1 in 6400 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";; 6401 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";; 6402 *f??:*:*:*) icc_flags="-xN -xW -xK";; 6403 esac ;; 6404 esac ;; 6405 esac 6406 if test "x$icc_flags" != x; then 6407 for flag in $icc_flags; do 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 6409$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 6410ax_save_FLAGS=$CFLAGS 6411 CFLAGS="$flag" 6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413/* end confdefs.h. */ 6414 6415int 6416main () 6417{ 6418 6419 ; 6420 return 0; 6421} 6422_ACEOF 6423if ac_fn_c_try_compile "$LINENO"; then : 6424 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes 6425else 6426 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no 6427fi 6428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6429 CFLAGS=$ax_save_FLAGS 6430eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh` 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 6432$as_echo "$ax_check_compiler_flags" >&6; } 6433if test "x$ax_check_compiler_flags" = xyes; then 6434 icc_archflag=$flag; break 6435else 6436 : 6437fi 6438 6439 done 6440 fi 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5 6442$as_echo_n "checking for icc architecture flag... " >&6; } 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5 6444$as_echo "$icc_archflag" >&6; } 6445 if test "x$icc_archflag" != xunknown; then 6446 CFLAGS="$CFLAGS $icc_archflag" 6447 fi 6448 fi 6449 ;; 6450 6451 gnu) 6452 # default optimization flags for gcc on all systems 6453 CFLAGS="-O3 -fomit-frame-pointer" 6454 6455 # -malign-double for x86 systems 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 6457$as_echo_n "checking whether C compiler accepts -malign-double... " >&6; } 6458if ${ax_cv_c_flags__malign_double+:} false; then : 6459 $as_echo_n "(cached) " >&6 6460else 6461 6462 ax_save_FLAGS=$CFLAGS 6463 CFLAGS="-malign-double" 6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6465/* end confdefs.h. */ 6466 6467int 6468main () 6469{ 6470 6471 ; 6472 return 0; 6473} 6474_ACEOF 6475if ac_fn_c_try_compile "$LINENO"; then : 6476 ax_cv_c_flags__malign_double=yes 6477else 6478 ax_cv_c_flags__malign_double=no 6479fi 6480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6481 CFLAGS=$ax_save_FLAGS 6482fi 6483 6484eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double 6485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 6486$as_echo "$ax_check_compiler_flags" >&6; } 6487if test "x$ax_check_compiler_flags" = xyes; then 6488 CFLAGS="$CFLAGS -malign-double" 6489else 6490 : 6491fi 6492 6493 6494 # -fstrict-aliasing for gcc-2.95+ 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5 6496$as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; } 6497if ${ax_cv_c_flags__fstrict_aliasing+:} false; then : 6498 $as_echo_n "(cached) " >&6 6499else 6500 6501 ax_save_FLAGS=$CFLAGS 6502 CFLAGS="-fstrict-aliasing" 6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6504/* end confdefs.h. */ 6505 6506int 6507main () 6508{ 6509 6510 ; 6511 return 0; 6512} 6513_ACEOF 6514if ac_fn_c_try_compile "$LINENO"; then : 6515 ax_cv_c_flags__fstrict_aliasing=yes 6516else 6517 ax_cv_c_flags__fstrict_aliasing=no 6518fi 6519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6520 CFLAGS=$ax_save_FLAGS 6521fi 6522 6523eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 6525$as_echo "$ax_check_compiler_flags" >&6; } 6526if test "x$ax_check_compiler_flags" = xyes; then 6527 CFLAGS="$CFLAGS -fstrict-aliasing" 6528else 6529 : 6530fi 6531 6532 6533 # note that we enable "unsafe" fp optimization with other compilers, too 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5 6535$as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; } 6536if ${ax_cv_c_flags__ffast_math+:} false; then : 6537 $as_echo_n "(cached) " >&6 6538else 6539 6540 ax_save_FLAGS=$CFLAGS 6541 CFLAGS="-ffast-math" 6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6543/* end confdefs.h. */ 6544 6545int 6546main () 6547{ 6548 6549 ; 6550 return 0; 6551} 6552_ACEOF 6553if ac_fn_c_try_compile "$LINENO"; then : 6554 ax_cv_c_flags__ffast_math=yes 6555else 6556 ax_cv_c_flags__ffast_math=no 6557fi 6558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6559 CFLAGS=$ax_save_FLAGS 6560fi 6561 6562eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 6564$as_echo "$ax_check_compiler_flags" >&6; } 6565if test "x$ax_check_compiler_flags" = xyes; then 6566 CFLAGS="$CFLAGS -ffast-math" 6567else 6568 : 6569fi 6570 6571 6572 6573 6574 6575 6576# Check whether --with-gcc-arch was given. 6577if test "${with_gcc_arch+set}" = set; then : 6578 withval=$with_gcc_arch; ax_gcc_arch=$withval 6579else 6580 ax_gcc_arch=yes 6581fi 6582 6583 6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 6585$as_echo_n "checking for gcc architecture flag... " >&6; } 6586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 6587$as_echo "" >&6; } 6588if ${ax_cv_gcc_archflag+:} false; then : 6589 $as_echo_n "(cached) " >&6 6590else 6591 6592ax_cv_gcc_archflag="unknown" 6593 6594if test "$GCC" = yes; then 6595 6596if test "x$ax_gcc_arch" = xyes; then 6597ax_gcc_arch="" 6598if test "$cross_compiling" = no; then 6599case $host_cpu in 6600 i[3456]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones 6601 6602ac_ext=c 6603ac_cpp='$CPP $CPPFLAGS' 6604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6606ac_compiler_gnu=$ac_cv_c_compiler_gnu 6607 6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 6609$as_echo_n "checking for x86 cpuid 0 output... " >&6; } 6610if ${ax_cv_gcc_x86_cpuid_0+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 if test "$cross_compiling" = yes; then : 6614 ax_cv_gcc_x86_cpuid_0=unknown 6615else 6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6617/* end confdefs.h. */ 6618#include <stdio.h> 6619int 6620main () 6621{ 6622 6623 int op = 0, eax, ebx, ecx, edx; 6624 FILE *f; 6625 __asm__("cpuid" 6626 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 6627 : "a" (op)); 6628 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 6629 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 6630 fclose(f); 6631 return 0; 6632 6633 ; 6634 return 0; 6635} 6636_ACEOF 6637if ac_fn_c_try_run "$LINENO"; then : 6638 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 6639else 6640 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 6641fi 6642rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6643 conftest.$ac_objext conftest.beam conftest.$ac_ext 6644fi 6645 6646fi 6647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 6648$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } 6649ac_ext=c 6650ac_cpp='$CPP $CPPFLAGS' 6651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6653ac_compiler_gnu=$ac_cv_c_compiler_gnu 6654 6655 6656 6657ac_ext=c 6658ac_cpp='$CPP $CPPFLAGS' 6659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6661ac_compiler_gnu=$ac_cv_c_compiler_gnu 6662 6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 6664$as_echo_n "checking for x86 cpuid 1 output... " >&6; } 6665if ${ax_cv_gcc_x86_cpuid_1+:} false; then : 6666 $as_echo_n "(cached) " >&6 6667else 6668 if test "$cross_compiling" = yes; then : 6669 ax_cv_gcc_x86_cpuid_1=unknown 6670else 6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672/* end confdefs.h. */ 6673#include <stdio.h> 6674int 6675main () 6676{ 6677 6678 int op = 1, eax, ebx, ecx, edx; 6679 FILE *f; 6680 __asm__("cpuid" 6681 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 6682 : "a" (op)); 6683 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 6684 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 6685 fclose(f); 6686 return 0; 6687 6688 ; 6689 return 0; 6690} 6691_ACEOF 6692if ac_fn_c_try_run "$LINENO"; then : 6693 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 6694else 6695 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 6696fi 6697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6698 conftest.$ac_objext conftest.beam conftest.$ac_ext 6699fi 6700 6701fi 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 6703$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } 6704ac_ext=c 6705ac_cpp='$CPP $CPPFLAGS' 6706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6708ac_compiler_gnu=$ac_cv_c_compiler_gnu 6709 6710 6711 case $ax_cv_gcc_x86_cpuid_0 in 6712 *:756e6547:*:*) # Intel 6713 case $ax_cv_gcc_x86_cpuid_1 in 6714 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; 6715 *5??:*:*:*) ax_gcc_arch=pentium ;; 6716 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 6717 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 6718 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 6719 *6[9d]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; 6720 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 6721 *6??:*:*:*) ax_gcc_arch=pentiumpro ;; 6722 *f3[347]:*:*:*|*f41347:*:*:*) 6723 case $host_cpu in 6724 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;; 6725 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;; 6726 esac ;; 6727 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";; 6728 esac ;; 6729 *:68747541:*:*) # AMD 6730 case $ax_cv_gcc_x86_cpuid_1 in 6731 *5[67]?:*:*:*) ax_gcc_arch=k6 ;; 6732 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; 6733 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; 6734 *60?:*:*:*) ax_gcc_arch=k7 ;; 6735 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;; 6736 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; 6737 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;; 6738 *6[68a]?:*:*:*) 6739 6740ac_ext=c 6741ac_cpp='$CPP $CPPFLAGS' 6742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6744ac_compiler_gnu=$ac_cv_c_compiler_gnu 6745 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5 6747$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; } 6748if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then : 6749 $as_echo_n "(cached) " >&6 6750else 6751 if test "$cross_compiling" = yes; then : 6752 ax_cv_gcc_x86_cpuid_0x80000006=unknown 6753else 6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6755/* end confdefs.h. */ 6756#include <stdio.h> 6757int 6758main () 6759{ 6760 6761 int op = 0x80000006, eax, ebx, ecx, edx; 6762 FILE *f; 6763 __asm__("cpuid" 6764 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 6765 : "a" (op)); 6766 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 6767 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 6768 fclose(f); 6769 return 0; 6770 6771 ; 6772 return 0; 6773} 6774_ACEOF 6775if ac_fn_c_try_run "$LINENO"; then : 6776 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid 6777else 6778 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid 6779fi 6780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6781 conftest.$ac_objext conftest.beam conftest.$ac_ext 6782fi 6783 6784fi 6785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5 6786$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; } 6787ac_ext=c 6788ac_cpp='$CPP $CPPFLAGS' 6789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6791ac_compiler_gnu=$ac_cv_c_compiler_gnu 6792 6793 # L2 cache size 6794 case $ax_cv_gcc_x86_cpuid_0x80000006 in 6795 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256 6796 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; 6797 *) ax_gcc_arch="athlon-4 athlon k7" ;; 6798 esac ;; 6799 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; 6800 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;; 6801 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;; 6802 *f??:*:*:*) ax_gcc_arch="k8" ;; 6803 esac ;; 6804 *:746e6543:*:*) # IDT 6805 case $ax_cv_gcc_x86_cpuid_1 in 6806 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; 6807 *58?:*:*:*) ax_gcc_arch=winchip2 ;; 6808 *6[78]?:*:*:*) ax_gcc_arch=c3 ;; 6809 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;; 6810 esac ;; 6811 esac 6812 if test x"$ax_gcc_arch" = x; then # fallback 6813 case $host_cpu in 6814 i586*) ax_gcc_arch=pentium ;; 6815 i686*) ax_gcc_arch=pentiumpro ;; 6816 esac 6817 fi 6818 ;; 6819 6820 sparc*) 6821 # Extract the first word of "prtdiag", so it can be a program name with args. 6822set dummy prtdiag; ac_word=$2 6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6824$as_echo_n "checking for $ac_word... " >&6; } 6825if ${ac_cv_path_PRTDIAG+:} false; then : 6826 $as_echo_n "(cached) " >&6 6827else 6828 case $PRTDIAG in 6829 [\\/]* | ?:[\\/]*) 6830 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path. 6831 ;; 6832 *) 6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6834as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/" 6835for as_dir in $as_dummy 6836do 6837 IFS=$as_save_IFS 6838 test -z "$as_dir" && as_dir=. 6839 for ac_exec_ext in '' $ac_executable_extensions; do 6840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6841 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext" 6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6843 break 2 6844 fi 6845done 6846 done 6847IFS=$as_save_IFS 6848 6849 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag" 6850 ;; 6851esac 6852fi 6853PRTDIAG=$ac_cv_path_PRTDIAG 6854if test -n "$PRTDIAG"; then 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5 6856$as_echo "$PRTDIAG" >&6; } 6857else 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6859$as_echo "no" >&6; } 6860fi 6861 6862 6863 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null` 6864 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters` 6865 case $cputype in 6866 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; 6867 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; 6868 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; 6869 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;; 6870 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;; 6871 *cypress*) ax_gcc_arch=cypress ;; 6872 esac ;; 6873 6874 alphaev5) ax_gcc_arch=ev5 ;; 6875 alphaev56) ax_gcc_arch=ev56 ;; 6876 alphapca56) ax_gcc_arch="pca56 ev56" ;; 6877 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; 6878 alphaev6) ax_gcc_arch=ev6 ;; 6879 alphaev67) ax_gcc_arch=ev67 ;; 6880 alphaev68) ax_gcc_arch="ev68 ev67" ;; 6881 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; 6882 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; 6883 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; 6884 6885 powerpc*) 6886 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null` 6887 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'` 6888 case $cputype in 6889 *750*) ax_gcc_arch="750 G3" ;; 6890 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;; 6891 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;; 6892 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;; 6893 *970*) ax_gcc_arch="970 G5 power4";; 6894 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; 6895 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; 6896 603ev|8240) ax_gcc_arch="$cputype 603e 603";; 6897 *) ax_gcc_arch=$cputype ;; 6898 esac 6899 ax_gcc_arch="$ax_gcc_arch powerpc" 6900 ;; 6901esac 6902fi # not cross-compiling 6903fi # guess arch 6904 6905if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then 6906for arch in $ax_gcc_arch; do 6907 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code 6908 flags="-mtune=$arch" 6909 # -mcpu=$arch and m$arch generate nonportable code on every arch except 6910 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. 6911 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac 6912 else 6913 flags="-march=$arch -mcpu=$arch -m$arch" 6914 fi 6915 for flag in $flags; do 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 6917$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 6918ax_save_FLAGS=$CFLAGS 6919 CFLAGS="$flag" 6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6921/* end confdefs.h. */ 6922 6923int 6924main () 6925{ 6926 6927 ; 6928 return 0; 6929} 6930_ACEOF 6931if ac_fn_c_try_compile "$LINENO"; then : 6932 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes 6933else 6934 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no 6935fi 6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6937 CFLAGS=$ax_save_FLAGS 6938eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh` 6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 6940$as_echo "$ax_check_compiler_flags" >&6; } 6941if test "x$ax_check_compiler_flags" = xyes; then 6942 ax_cv_gcc_archflag=$flag; break 6943else 6944 : 6945fi 6946 6947 done 6948 test "x$ax_cv_gcc_archflag" = xunknown || break 6949done 6950fi 6951 6952fi # $GCC=yes 6953 6954fi 6955 6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 6957$as_echo_n "checking for gcc architecture flag... " >&6; } 6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5 6959$as_echo "$ax_cv_gcc_archflag" >&6; } 6960if test "x$ax_cv_gcc_archflag" = xunknown; then 6961 : 6962else 6963 CFLAGS="$CFLAGS $ax_cv_gcc_archflag" 6964fi 6965 6966 6967 # drop to -O1 for gcc 4.2 6968 $CC --version | 6969 sed -e 's/.* \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1 \2/' | 6970 (read major minor 6971 if test $major -eq 4 -a $minor -eq 2; then 6972 exit 0 6973 fi 6974 exit 1 6975 ) && CFLAGS="-O1" 6976 ;; 6977 esac 6978 6979 if test -z "$CFLAGS"; then 6980 echo "" 6981 echo "********************************************************" 6982 echo "* WARNING: Don't know the best CFLAGS for this system *" 6983 echo "* Use ./configure CFLAGS=... to specify your own flags *" 6984 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" 6985 echo "********************************************************" 6986 echo "" 6987 CFLAGS="-O3" 6988 fi 6989 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5 6991$as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; } 6992ax_save_FLAGS=$CFLAGS 6993 CFLAGS="$CFLAGS" 6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6995/* end confdefs.h. */ 6996 6997int 6998main () 6999{ 7000 7001 ; 7002 return 0; 7003} 7004_ACEOF 7005if ac_fn_c_try_compile "$LINENO"; then : 7006 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes 7007else 7008 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no 7009fi 7010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7011 CFLAGS=$ax_save_FLAGS 7012eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh` 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 7014$as_echo "$ax_check_compiler_flags" >&6; } 7015if test "x$ax_check_compiler_flags" = xyes; then 7016 : 7017else 7018 7019 echo "" 7020 echo "********************************************************" 7021 echo "* WARNING: The guessed CFLAGS don't seem to work with *" 7022 echo "* your compiler. *" 7023 echo "* Use ./configure CFLAGS=... to specify your own flags *" 7024 echo "********************************************************" 7025 echo "" 7026 CFLAGS="" 7027 7028fi 7029 7030 7031fi 7032 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports function __attribute__((__warn_unused_result__))" >&5 7034$as_echo_n "checking whether the compiler supports function __attribute__((__warn_unused_result__))... " >&6; } 7035if ${ax_cv_gcc_warn_unused_result+:} false; then : 7036 $as_echo_n "(cached) " >&6 7037else 7038 7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7040/* end confdefs.h. */ 7041__attribute__((__warn_unused_result__)) 7042 int f(int i) { return i; } 7043int 7044main () 7045{ 7046 7047 ; 7048 return 0; 7049} 7050_ACEOF 7051if ac_fn_c_try_compile "$LINENO"; then : 7052 ax_cv_gcc_warn_unused_result=yes 7053else 7054 ax_cv_gcc_warn_unused_result=no 7055fi 7056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7057fi 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_warn_unused_result" >&5 7059$as_echo "$ax_cv_gcc_warn_unused_result" >&6; } 7060 if test "$ax_cv_gcc_warn_unused_result" = yes; then 7061 7062$as_echo "#define GCC_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))" >>confdefs.h 7063 7064 fi 7065 7066 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 7068$as_echo_n "checking for __attribute__... " >&6; } 7069if ${ax_cv___attribute__+:} false; then : 7070 $as_echo_n "(cached) " >&6 7071else 7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7073/* end confdefs.h. */ 7074#include <stdlib.h> 7075 static void foo(void) __attribute__ ((unused)); 7076 static void 7077 foo(void) { 7078 exit(1); 7079 } 7080 7081int 7082main () 7083{ 7084 7085 ; 7086 return 0; 7087} 7088_ACEOF 7089if ac_fn_c_try_compile "$LINENO"; then : 7090 ax_cv___attribute__=yes 7091else 7092 ax_cv___attribute__=no 7093 7094fi 7095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7096 7097fi 7098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 7099$as_echo "$ax_cv___attribute__" >&6; } 7100 if test "$ax_cv___attribute__" = "yes"; then 7101 7102$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 7103 7104 fi 7105 7106 7107 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7109$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 7110if ${ac_cv_path_GREP+:} false; then : 7111 $as_echo_n "(cached) " >&6 7112else 7113 if test -z "$GREP"; then 7114 ac_path_GREP_found=false 7115 # Loop through the user's path and test for each of PROGNAME-LIST 7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7117for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7118do 7119 IFS=$as_save_IFS 7120 test -z "$as_dir" && as_dir=. 7121 for ac_prog in grep ggrep; do 7122 for ac_exec_ext in '' $ac_executable_extensions; do 7123 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7124 as_fn_executable_p "$ac_path_GREP" || continue 7125# Check for GNU ac_path_GREP and select it if it is found. 7126 # Check for GNU $ac_path_GREP 7127case `"$ac_path_GREP" --version 2>&1` in 7128*GNU*) 7129 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7130*) 7131 ac_count=0 7132 $as_echo_n 0123456789 >"conftest.in" 7133 while : 7134 do 7135 cat "conftest.in" "conftest.in" >"conftest.tmp" 7136 mv "conftest.tmp" "conftest.in" 7137 cp "conftest.in" "conftest.nl" 7138 $as_echo 'GREP' >> "conftest.nl" 7139 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7141 as_fn_arith $ac_count + 1 && ac_count=$as_val 7142 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7143 # Best one so far, save it but keep looking for a better one 7144 ac_cv_path_GREP="$ac_path_GREP" 7145 ac_path_GREP_max=$ac_count 7146 fi 7147 # 10*(2^10) chars as input seems more than enough 7148 test $ac_count -gt 10 && break 7149 done 7150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7151esac 7152 7153 $ac_path_GREP_found && break 3 7154 done 7155 done 7156 done 7157IFS=$as_save_IFS 7158 if test -z "$ac_cv_path_GREP"; then 7159 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7160 fi 7161else 7162 ac_cv_path_GREP=$GREP 7163fi 7164 7165fi 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7167$as_echo "$ac_cv_path_GREP" >&6; } 7168 GREP="$ac_cv_path_GREP" 7169 7170 7171 echo $CXX | $GREP -e "-std=" > /dev/null 2> /dev/null 7172 if test $? -eq 0; then 7173 ac_ext=cpp 7174ac_cpp='$CXXCPP $CPPFLAGS' 7175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7178 ac_success=no 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 7180$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 7181if ${ax_cv_cxx_compile_cxx11+:} false; then : 7182 $as_echo_n "(cached) " >&6 7183else 7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185/* end confdefs.h. */ 7186 7187 7188// If the compiler admits that it is not ready for C++11, why torture it? 7189// Hopefully, this will speed up the test. 7190 7191#ifndef __cplusplus 7192 7193#error "This is not a C++ compiler" 7194 7195#elif __cplusplus < 201103L 7196 7197#error "This is not a C++11 compiler" 7198 7199#else 7200 7201namespace cxx11 7202{ 7203 7204 namespace test_static_assert 7205 { 7206 7207 template <typename T> 7208 struct check 7209 { 7210 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 7211 }; 7212 7213 } 7214 7215 namespace test_final_override 7216 { 7217 7218 struct Base 7219 { 7220 virtual void f() {} 7221 }; 7222 7223 struct Derived : public Base 7224 { 7225 virtual void f() override {} 7226 }; 7227 7228 } 7229 7230 namespace test_double_right_angle_brackets 7231 { 7232 7233 template < typename T > 7234 struct check {}; 7235 7236 typedef check<void> single_type; 7237 typedef check<check<void>> double_type; 7238 typedef check<check<check<void>>> triple_type; 7239 typedef check<check<check<check<void>>>> quadruple_type; 7240 7241 } 7242 7243 namespace test_decltype 7244 { 7245 7246 int 7247 f() 7248 { 7249 int a = 1; 7250 decltype(a) b = 2; 7251 return a + b; 7252 } 7253 7254 } 7255 7256 namespace test_type_deduction 7257 { 7258 7259 template < typename T1, typename T2 > 7260 struct is_same 7261 { 7262 static const bool value = false; 7263 }; 7264 7265 template < typename T > 7266 struct is_same<T, T> 7267 { 7268 static const bool value = true; 7269 }; 7270 7271 template < typename T1, typename T2 > 7272 auto 7273 add(T1 a1, T2 a2) -> decltype(a1 + a2) 7274 { 7275 return a1 + a2; 7276 } 7277 7278 int 7279 test(const int c, volatile int v) 7280 { 7281 static_assert(is_same<int, decltype(0)>::value == true, ""); 7282 static_assert(is_same<int, decltype(c)>::value == false, ""); 7283 static_assert(is_same<int, decltype(v)>::value == false, ""); 7284 auto ac = c; 7285 auto av = v; 7286 auto sumi = ac + av + 'x'; 7287 auto sumf = ac + av + 1.0; 7288 static_assert(is_same<int, decltype(ac)>::value == true, ""); 7289 static_assert(is_same<int, decltype(av)>::value == true, ""); 7290 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 7291 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 7292 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 7293 return (sumf > 0.0) ? sumi : add(c, v); 7294 } 7295 7296 } 7297 7298 namespace test_noexcept 7299 { 7300 7301 int f() { return 0; } 7302 int g() noexcept { return 0; } 7303 7304 static_assert(noexcept(f()) == false, ""); 7305 static_assert(noexcept(g()) == true, ""); 7306 7307 } 7308 7309 namespace test_constexpr 7310 { 7311 7312 template < typename CharT > 7313 unsigned long constexpr 7314 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 7315 { 7316 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 7317 } 7318 7319 template < typename CharT > 7320 unsigned long constexpr 7321 strlen_c(const CharT *const s) noexcept 7322 { 7323 return strlen_c_r(s, 0UL); 7324 } 7325 7326 static_assert(strlen_c("") == 0UL, ""); 7327 static_assert(strlen_c("1") == 1UL, ""); 7328 static_assert(strlen_c("example") == 7UL, ""); 7329 static_assert(strlen_c("another\0example") == 7UL, ""); 7330 7331 } 7332 7333 namespace test_rvalue_references 7334 { 7335 7336 template < int N > 7337 struct answer 7338 { 7339 static constexpr int value = N; 7340 }; 7341 7342 answer<1> f(int&) { return answer<1>(); } 7343 answer<2> f(const int&) { return answer<2>(); } 7344 answer<3> f(int&&) { return answer<3>(); } 7345 7346 void 7347 test() 7348 { 7349 int i = 0; 7350 const int c = 0; 7351 static_assert(decltype(f(i))::value == 1, ""); 7352 static_assert(decltype(f(c))::value == 2, ""); 7353 static_assert(decltype(f(0))::value == 3, ""); 7354 } 7355 7356 } 7357 7358 namespace test_uniform_initialization 7359 { 7360 7361 struct test 7362 { 7363 static const int zero {}; 7364 static const int one {1}; 7365 }; 7366 7367 static_assert(test::zero == 0, ""); 7368 static_assert(test::one == 1, ""); 7369 7370 } 7371 7372 namespace test_lambdas 7373 { 7374 7375 void 7376 test1() 7377 { 7378 auto lambda1 = [](){}; 7379 auto lambda2 = lambda1; 7380 lambda1(); 7381 lambda2(); 7382 } 7383 7384 int 7385 test2() 7386 { 7387 auto a = [](int i, int j){ return i + j; }(1, 2); 7388 auto b = []() -> int { return '0'; }(); 7389 auto c = [=](){ return a + b; }(); 7390 auto d = [&](){ return c; }(); 7391 auto e = [a, &b](int x) mutable { 7392 const auto identity = [](int y){ return y; }; 7393 for (auto i = 0; i < a; ++i) 7394 a += b--; 7395 return x + identity(a + b); 7396 }(0); 7397 return a + b + c + d + e; 7398 } 7399 7400 int 7401 test3() 7402 { 7403 const auto nullary = [](){ return 0; }; 7404 const auto unary = [](int x){ return x; }; 7405 using nullary_t = decltype(nullary); 7406 using unary_t = decltype(unary); 7407 const auto higher1st = [](nullary_t f){ return f(); }; 7408 const auto higher2nd = [unary](nullary_t f1){ 7409 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 7410 }; 7411 return higher1st(nullary) + higher2nd(nullary)(unary); 7412 } 7413 7414 } 7415 7416 namespace test_variadic_templates 7417 { 7418 7419 template <int...> 7420 struct sum; 7421 7422 template <int N0, int... N1toN> 7423 struct sum<N0, N1toN...> 7424 { 7425 static constexpr auto value = N0 + sum<N1toN...>::value; 7426 }; 7427 7428 template <> 7429 struct sum<> 7430 { 7431 static constexpr auto value = 0; 7432 }; 7433 7434 static_assert(sum<>::value == 0, ""); 7435 static_assert(sum<1>::value == 1, ""); 7436 static_assert(sum<23>::value == 23, ""); 7437 static_assert(sum<1, 2>::value == 3, ""); 7438 static_assert(sum<5, 5, 11>::value == 21, ""); 7439 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 7440 7441 } 7442 7443 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 7444 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 7445 // because of this. 7446 namespace test_template_alias_sfinae 7447 { 7448 7449 struct foo {}; 7450 7451 template<typename T> 7452 using member = typename T::member_type; 7453 7454 template<typename T> 7455 void func(...) {} 7456 7457 template<typename T> 7458 void func(member<T>*) {} 7459 7460 void test(); 7461 7462 void test() { func<foo>(0); } 7463 7464 } 7465 7466} // namespace cxx11 7467 7468#endif // __cplusplus >= 201103L 7469 7470 7471 7472_ACEOF 7473if ac_fn_cxx_try_compile "$LINENO"; then : 7474 ax_cv_cxx_compile_cxx11=yes 7475else 7476 ax_cv_cxx_compile_cxx11=no 7477fi 7478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7479fi 7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 7481$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 7482 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 7483 ac_success=yes 7484 fi 7485 ac_ext=c 7486ac_cpp='$CPP $CPPFLAGS' 7487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7489ac_compiler_gnu=$ac_cv_c_compiler_gnu 7490 7491 if test x$ac_success = xno; then 7492 HAVE_CXX11=0 7493 else 7494 HAVE_CXX11=1 7495 7496$as_echo "#define HAVE_CXX11 1" >>confdefs.h 7497 7498 fi 7499 7500 7501 else 7502 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=false 7503 ac_ext=cpp 7504ac_cpp='$CXXCPP $CPPFLAGS' 7505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7508 ac_success=no 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 7510$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 7511if ${ax_cv_cxx_compile_cxx11+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513else 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515/* end confdefs.h. */ 7516 7517 7518// If the compiler admits that it is not ready for C++11, why torture it? 7519// Hopefully, this will speed up the test. 7520 7521#ifndef __cplusplus 7522 7523#error "This is not a C++ compiler" 7524 7525#elif __cplusplus < 201103L 7526 7527#error "This is not a C++11 compiler" 7528 7529#else 7530 7531namespace cxx11 7532{ 7533 7534 namespace test_static_assert 7535 { 7536 7537 template <typename T> 7538 struct check 7539 { 7540 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 7541 }; 7542 7543 } 7544 7545 namespace test_final_override 7546 { 7547 7548 struct Base 7549 { 7550 virtual void f() {} 7551 }; 7552 7553 struct Derived : public Base 7554 { 7555 virtual void f() override {} 7556 }; 7557 7558 } 7559 7560 namespace test_double_right_angle_brackets 7561 { 7562 7563 template < typename T > 7564 struct check {}; 7565 7566 typedef check<void> single_type; 7567 typedef check<check<void>> double_type; 7568 typedef check<check<check<void>>> triple_type; 7569 typedef check<check<check<check<void>>>> quadruple_type; 7570 7571 } 7572 7573 namespace test_decltype 7574 { 7575 7576 int 7577 f() 7578 { 7579 int a = 1; 7580 decltype(a) b = 2; 7581 return a + b; 7582 } 7583 7584 } 7585 7586 namespace test_type_deduction 7587 { 7588 7589 template < typename T1, typename T2 > 7590 struct is_same 7591 { 7592 static const bool value = false; 7593 }; 7594 7595 template < typename T > 7596 struct is_same<T, T> 7597 { 7598 static const bool value = true; 7599 }; 7600 7601 template < typename T1, typename T2 > 7602 auto 7603 add(T1 a1, T2 a2) -> decltype(a1 + a2) 7604 { 7605 return a1 + a2; 7606 } 7607 7608 int 7609 test(const int c, volatile int v) 7610 { 7611 static_assert(is_same<int, decltype(0)>::value == true, ""); 7612 static_assert(is_same<int, decltype(c)>::value == false, ""); 7613 static_assert(is_same<int, decltype(v)>::value == false, ""); 7614 auto ac = c; 7615 auto av = v; 7616 auto sumi = ac + av + 'x'; 7617 auto sumf = ac + av + 1.0; 7618 static_assert(is_same<int, decltype(ac)>::value == true, ""); 7619 static_assert(is_same<int, decltype(av)>::value == true, ""); 7620 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 7621 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 7622 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 7623 return (sumf > 0.0) ? sumi : add(c, v); 7624 } 7625 7626 } 7627 7628 namespace test_noexcept 7629 { 7630 7631 int f() { return 0; } 7632 int g() noexcept { return 0; } 7633 7634 static_assert(noexcept(f()) == false, ""); 7635 static_assert(noexcept(g()) == true, ""); 7636 7637 } 7638 7639 namespace test_constexpr 7640 { 7641 7642 template < typename CharT > 7643 unsigned long constexpr 7644 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 7645 { 7646 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 7647 } 7648 7649 template < typename CharT > 7650 unsigned long constexpr 7651 strlen_c(const CharT *const s) noexcept 7652 { 7653 return strlen_c_r(s, 0UL); 7654 } 7655 7656 static_assert(strlen_c("") == 0UL, ""); 7657 static_assert(strlen_c("1") == 1UL, ""); 7658 static_assert(strlen_c("example") == 7UL, ""); 7659 static_assert(strlen_c("another\0example") == 7UL, ""); 7660 7661 } 7662 7663 namespace test_rvalue_references 7664 { 7665 7666 template < int N > 7667 struct answer 7668 { 7669 static constexpr int value = N; 7670 }; 7671 7672 answer<1> f(int&) { return answer<1>(); } 7673 answer<2> f(const int&) { return answer<2>(); } 7674 answer<3> f(int&&) { return answer<3>(); } 7675 7676 void 7677 test() 7678 { 7679 int i = 0; 7680 const int c = 0; 7681 static_assert(decltype(f(i))::value == 1, ""); 7682 static_assert(decltype(f(c))::value == 2, ""); 7683 static_assert(decltype(f(0))::value == 3, ""); 7684 } 7685 7686 } 7687 7688 namespace test_uniform_initialization 7689 { 7690 7691 struct test 7692 { 7693 static const int zero {}; 7694 static const int one {1}; 7695 }; 7696 7697 static_assert(test::zero == 0, ""); 7698 static_assert(test::one == 1, ""); 7699 7700 } 7701 7702 namespace test_lambdas 7703 { 7704 7705 void 7706 test1() 7707 { 7708 auto lambda1 = [](){}; 7709 auto lambda2 = lambda1; 7710 lambda1(); 7711 lambda2(); 7712 } 7713 7714 int 7715 test2() 7716 { 7717 auto a = [](int i, int j){ return i + j; }(1, 2); 7718 auto b = []() -> int { return '0'; }(); 7719 auto c = [=](){ return a + b; }(); 7720 auto d = [&](){ return c; }(); 7721 auto e = [a, &b](int x) mutable { 7722 const auto identity = [](int y){ return y; }; 7723 for (auto i = 0; i < a; ++i) 7724 a += b--; 7725 return x + identity(a + b); 7726 }(0); 7727 return a + b + c + d + e; 7728 } 7729 7730 int 7731 test3() 7732 { 7733 const auto nullary = [](){ return 0; }; 7734 const auto unary = [](int x){ return x; }; 7735 using nullary_t = decltype(nullary); 7736 using unary_t = decltype(unary); 7737 const auto higher1st = [](nullary_t f){ return f(); }; 7738 const auto higher2nd = [unary](nullary_t f1){ 7739 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 7740 }; 7741 return higher1st(nullary) + higher2nd(nullary)(unary); 7742 } 7743 7744 } 7745 7746 namespace test_variadic_templates 7747 { 7748 7749 template <int...> 7750 struct sum; 7751 7752 template <int N0, int... N1toN> 7753 struct sum<N0, N1toN...> 7754 { 7755 static constexpr auto value = N0 + sum<N1toN...>::value; 7756 }; 7757 7758 template <> 7759 struct sum<> 7760 { 7761 static constexpr auto value = 0; 7762 }; 7763 7764 static_assert(sum<>::value == 0, ""); 7765 static_assert(sum<1>::value == 1, ""); 7766 static_assert(sum<23>::value == 23, ""); 7767 static_assert(sum<1, 2>::value == 3, ""); 7768 static_assert(sum<5, 5, 11>::value == 21, ""); 7769 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 7770 7771 } 7772 7773 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 7774 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 7775 // because of this. 7776 namespace test_template_alias_sfinae 7777 { 7778 7779 struct foo {}; 7780 7781 template<typename T> 7782 using member = typename T::member_type; 7783 7784 template<typename T> 7785 void func(...) {} 7786 7787 template<typename T> 7788 void func(member<T>*) {} 7789 7790 void test(); 7791 7792 void test() { func<foo>(0); } 7793 7794 } 7795 7796} // namespace cxx11 7797 7798#endif // __cplusplus >= 201103L 7799 7800 7801 7802_ACEOF 7803if ac_fn_cxx_try_compile "$LINENO"; then : 7804 ax_cv_cxx_compile_cxx11=yes 7805else 7806 ax_cv_cxx_compile_cxx11=no 7807fi 7808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7809fi 7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 7811$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 7812 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 7813 ac_success=yes 7814 fi 7815 7816 7817 7818 if test x$ac_success = xno; then 7819 for alternative in ${ax_cxx_compile_alternatives}; do 7820 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 7821 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 7823$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 7824if eval \${$cachevar+:} false; then : 7825 $as_echo_n "(cached) " >&6 7826else 7827 ac_save_CXX="$CXX" 7828 CXX="$CXX $switch" 7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7830/* end confdefs.h. */ 7831 7832 7833// If the compiler admits that it is not ready for C++11, why torture it? 7834// Hopefully, this will speed up the test. 7835 7836#ifndef __cplusplus 7837 7838#error "This is not a C++ compiler" 7839 7840#elif __cplusplus < 201103L 7841 7842#error "This is not a C++11 compiler" 7843 7844#else 7845 7846namespace cxx11 7847{ 7848 7849 namespace test_static_assert 7850 { 7851 7852 template <typename T> 7853 struct check 7854 { 7855 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 7856 }; 7857 7858 } 7859 7860 namespace test_final_override 7861 { 7862 7863 struct Base 7864 { 7865 virtual void f() {} 7866 }; 7867 7868 struct Derived : public Base 7869 { 7870 virtual void f() override {} 7871 }; 7872 7873 } 7874 7875 namespace test_double_right_angle_brackets 7876 { 7877 7878 template < typename T > 7879 struct check {}; 7880 7881 typedef check<void> single_type; 7882 typedef check<check<void>> double_type; 7883 typedef check<check<check<void>>> triple_type; 7884 typedef check<check<check<check<void>>>> quadruple_type; 7885 7886 } 7887 7888 namespace test_decltype 7889 { 7890 7891 int 7892 f() 7893 { 7894 int a = 1; 7895 decltype(a) b = 2; 7896 return a + b; 7897 } 7898 7899 } 7900 7901 namespace test_type_deduction 7902 { 7903 7904 template < typename T1, typename T2 > 7905 struct is_same 7906 { 7907 static const bool value = false; 7908 }; 7909 7910 template < typename T > 7911 struct is_same<T, T> 7912 { 7913 static const bool value = true; 7914 }; 7915 7916 template < typename T1, typename T2 > 7917 auto 7918 add(T1 a1, T2 a2) -> decltype(a1 + a2) 7919 { 7920 return a1 + a2; 7921 } 7922 7923 int 7924 test(const int c, volatile int v) 7925 { 7926 static_assert(is_same<int, decltype(0)>::value == true, ""); 7927 static_assert(is_same<int, decltype(c)>::value == false, ""); 7928 static_assert(is_same<int, decltype(v)>::value == false, ""); 7929 auto ac = c; 7930 auto av = v; 7931 auto sumi = ac + av + 'x'; 7932 auto sumf = ac + av + 1.0; 7933 static_assert(is_same<int, decltype(ac)>::value == true, ""); 7934 static_assert(is_same<int, decltype(av)>::value == true, ""); 7935 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 7936 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 7937 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 7938 return (sumf > 0.0) ? sumi : add(c, v); 7939 } 7940 7941 } 7942 7943 namespace test_noexcept 7944 { 7945 7946 int f() { return 0; } 7947 int g() noexcept { return 0; } 7948 7949 static_assert(noexcept(f()) == false, ""); 7950 static_assert(noexcept(g()) == true, ""); 7951 7952 } 7953 7954 namespace test_constexpr 7955 { 7956 7957 template < typename CharT > 7958 unsigned long constexpr 7959 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 7960 { 7961 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 7962 } 7963 7964 template < typename CharT > 7965 unsigned long constexpr 7966 strlen_c(const CharT *const s) noexcept 7967 { 7968 return strlen_c_r(s, 0UL); 7969 } 7970 7971 static_assert(strlen_c("") == 0UL, ""); 7972 static_assert(strlen_c("1") == 1UL, ""); 7973 static_assert(strlen_c("example") == 7UL, ""); 7974 static_assert(strlen_c("another\0example") == 7UL, ""); 7975 7976 } 7977 7978 namespace test_rvalue_references 7979 { 7980 7981 template < int N > 7982 struct answer 7983 { 7984 static constexpr int value = N; 7985 }; 7986 7987 answer<1> f(int&) { return answer<1>(); } 7988 answer<2> f(const int&) { return answer<2>(); } 7989 answer<3> f(int&&) { return answer<3>(); } 7990 7991 void 7992 test() 7993 { 7994 int i = 0; 7995 const int c = 0; 7996 static_assert(decltype(f(i))::value == 1, ""); 7997 static_assert(decltype(f(c))::value == 2, ""); 7998 static_assert(decltype(f(0))::value == 3, ""); 7999 } 8000 8001 } 8002 8003 namespace test_uniform_initialization 8004 { 8005 8006 struct test 8007 { 8008 static const int zero {}; 8009 static const int one {1}; 8010 }; 8011 8012 static_assert(test::zero == 0, ""); 8013 static_assert(test::one == 1, ""); 8014 8015 } 8016 8017 namespace test_lambdas 8018 { 8019 8020 void 8021 test1() 8022 { 8023 auto lambda1 = [](){}; 8024 auto lambda2 = lambda1; 8025 lambda1(); 8026 lambda2(); 8027 } 8028 8029 int 8030 test2() 8031 { 8032 auto a = [](int i, int j){ return i + j; }(1, 2); 8033 auto b = []() -> int { return '0'; }(); 8034 auto c = [=](){ return a + b; }(); 8035 auto d = [&](){ return c; }(); 8036 auto e = [a, &b](int x) mutable { 8037 const auto identity = [](int y){ return y; }; 8038 for (auto i = 0; i < a; ++i) 8039 a += b--; 8040 return x + identity(a + b); 8041 }(0); 8042 return a + b + c + d + e; 8043 } 8044 8045 int 8046 test3() 8047 { 8048 const auto nullary = [](){ return 0; }; 8049 const auto unary = [](int x){ return x; }; 8050 using nullary_t = decltype(nullary); 8051 using unary_t = decltype(unary); 8052 const auto higher1st = [](nullary_t f){ return f(); }; 8053 const auto higher2nd = [unary](nullary_t f1){ 8054 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 8055 }; 8056 return higher1st(nullary) + higher2nd(nullary)(unary); 8057 } 8058 8059 } 8060 8061 namespace test_variadic_templates 8062 { 8063 8064 template <int...> 8065 struct sum; 8066 8067 template <int N0, int... N1toN> 8068 struct sum<N0, N1toN...> 8069 { 8070 static constexpr auto value = N0 + sum<N1toN...>::value; 8071 }; 8072 8073 template <> 8074 struct sum<> 8075 { 8076 static constexpr auto value = 0; 8077 }; 8078 8079 static_assert(sum<>::value == 0, ""); 8080 static_assert(sum<1>::value == 1, ""); 8081 static_assert(sum<23>::value == 23, ""); 8082 static_assert(sum<1, 2>::value == 3, ""); 8083 static_assert(sum<5, 5, 11>::value == 21, ""); 8084 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 8085 8086 } 8087 8088 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 8089 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 8090 // because of this. 8091 namespace test_template_alias_sfinae 8092 { 8093 8094 struct foo {}; 8095 8096 template<typename T> 8097 using member = typename T::member_type; 8098 8099 template<typename T> 8100 void func(...) {} 8101 8102 template<typename T> 8103 void func(member<T>*) {} 8104 8105 void test(); 8106 8107 void test() { func<foo>(0); } 8108 8109 } 8110 8111} // namespace cxx11 8112 8113#endif // __cplusplus >= 201103L 8114 8115 8116 8117_ACEOF 8118if ac_fn_cxx_try_compile "$LINENO"; then : 8119 eval $cachevar=yes 8120else 8121 eval $cachevar=no 8122fi 8123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8124 CXX="$ac_save_CXX" 8125fi 8126eval ac_res=\$$cachevar 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8128$as_echo "$ac_res" >&6; } 8129 if eval test x\$$cachevar = xyes; then 8130 CXX="$CXX $switch" 8131 if test -n "$CXXCPP" ; then 8132 CXXCPP="$CXXCPP $switch" 8133 fi 8134 ac_success=yes 8135 break 8136 fi 8137 done 8138 if test x$ac_success = xyes; then 8139 break 8140 fi 8141 done 8142 fi 8143 ac_ext=c 8144ac_cpp='$CPP $CPPFLAGS' 8145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8147ac_compiler_gnu=$ac_cv_c_compiler_gnu 8148 8149 if test x$ax_cxx_compile_cxx11_required = xtrue; then 8150 if test x$ac_success = xno; then 8151 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 8152 fi 8153 fi 8154 if test x$ac_success = xno; then 8155 HAVE_CXX11=0 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 8157$as_echo "$as_me: No compiler with C++11 support was found" >&6;} 8158 else 8159 HAVE_CXX11=1 8160 8161$as_echo "#define HAVE_CXX11 1" >>confdefs.h 8162 8163 fi 8164 8165 8166 8167 fi 8168 8169 8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 8171$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 8172if ${ac_cv_path_GREP+:} false; then : 8173 $as_echo_n "(cached) " >&6 8174else 8175 if test -z "$GREP"; then 8176 ac_path_GREP_found=false 8177 # Loop through the user's path and test for each of PROGNAME-LIST 8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8179for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8180do 8181 IFS=$as_save_IFS 8182 test -z "$as_dir" && as_dir=. 8183 for ac_prog in grep ggrep; do 8184 for ac_exec_ext in '' $ac_executable_extensions; do 8185 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 8186 as_fn_executable_p "$ac_path_GREP" || continue 8187# Check for GNU ac_path_GREP and select it if it is found. 8188 # Check for GNU $ac_path_GREP 8189case `"$ac_path_GREP" --version 2>&1` in 8190*GNU*) 8191 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 8192*) 8193 ac_count=0 8194 $as_echo_n 0123456789 >"conftest.in" 8195 while : 8196 do 8197 cat "conftest.in" "conftest.in" >"conftest.tmp" 8198 mv "conftest.tmp" "conftest.in" 8199 cp "conftest.in" "conftest.nl" 8200 $as_echo 'GREP' >> "conftest.nl" 8201 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 8202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8203 as_fn_arith $ac_count + 1 && ac_count=$as_val 8204 if test $ac_count -gt ${ac_path_GREP_max-0}; then 8205 # Best one so far, save it but keep looking for a better one 8206 ac_cv_path_GREP="$ac_path_GREP" 8207 ac_path_GREP_max=$ac_count 8208 fi 8209 # 10*(2^10) chars as input seems more than enough 8210 test $ac_count -gt 10 && break 8211 done 8212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8213esac 8214 8215 $ac_path_GREP_found && break 3 8216 done 8217 done 8218 done 8219IFS=$as_save_IFS 8220 if test -z "$ac_cv_path_GREP"; then 8221 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8222 fi 8223else 8224 ac_cv_path_GREP=$GREP 8225fi 8226 8227fi 8228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 8229$as_echo "$ac_cv_path_GREP" >&6; } 8230 GREP="$ac_cv_path_GREP" 8231 8232 8233case `pwd` in 8234 *\ * | *\ *) 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8236$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8237esac 8238 8239 8240 8241macro_version='2.4.6' 8242macro_revision='2.4.6' 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256ltmain=$ac_aux_dir/ltmain.sh 8257 8258# Backslashify metacharacters that are still active within 8259# double-quoted strings. 8260sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8261 8262# Same as above, but do not quote variable references. 8263double_quote_subst='s/\(["`\\]\)/\\\1/g' 8264 8265# Sed substitution to delay expansion of an escaped shell variable in a 8266# double_quote_subst'ed string. 8267delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8268 8269# Sed substitution to delay expansion of an escaped single quote. 8270delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8271 8272# Sed substitution to avoid accidental globbing in evaled expressions 8273no_glob_subst='s/\*/\\\*/g' 8274 8275ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8276ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8277ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8278 8279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8280$as_echo_n "checking how to print strings... " >&6; } 8281# Test print first, because it will be a builtin if present. 8282if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8283 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8284 ECHO='print -r --' 8285elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8286 ECHO='printf %s\n' 8287else 8288 # Use this function as a fallback that always works. 8289 func_fallback_echo () 8290 { 8291 eval 'cat <<_LTECHO_EOF 8292$1 8293_LTECHO_EOF' 8294 } 8295 ECHO='func_fallback_echo' 8296fi 8297 8298# func_echo_all arg... 8299# Invoke $ECHO with all args, space-separated. 8300func_echo_all () 8301{ 8302 $ECHO "" 8303} 8304 8305case $ECHO in 8306 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8307$as_echo "printf" >&6; } ;; 8308 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8309$as_echo "print -r" >&6; } ;; 8310 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8311$as_echo "cat" >&6; } ;; 8312esac 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8328$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8329if ${ac_cv_path_SED+:} false; then : 8330 $as_echo_n "(cached) " >&6 8331else 8332 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8333 for ac_i in 1 2 3 4 5 6 7; do 8334 ac_script="$ac_script$as_nl$ac_script" 8335 done 8336 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8337 { ac_script=; unset ac_script;} 8338 if test -z "$SED"; then 8339 ac_path_SED_found=false 8340 # Loop through the user's path and test for each of PROGNAME-LIST 8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8342for as_dir in $PATH 8343do 8344 IFS=$as_save_IFS 8345 test -z "$as_dir" && as_dir=. 8346 for ac_prog in sed gsed; do 8347 for ac_exec_ext in '' $ac_executable_extensions; do 8348 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8349 as_fn_executable_p "$ac_path_SED" || continue 8350# Check for GNU ac_path_SED and select it if it is found. 8351 # Check for GNU $ac_path_SED 8352case `"$ac_path_SED" --version 2>&1` in 8353*GNU*) 8354 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8355*) 8356 ac_count=0 8357 $as_echo_n 0123456789 >"conftest.in" 8358 while : 8359 do 8360 cat "conftest.in" "conftest.in" >"conftest.tmp" 8361 mv "conftest.tmp" "conftest.in" 8362 cp "conftest.in" "conftest.nl" 8363 $as_echo '' >> "conftest.nl" 8364 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8366 as_fn_arith $ac_count + 1 && ac_count=$as_val 8367 if test $ac_count -gt ${ac_path_SED_max-0}; then 8368 # Best one so far, save it but keep looking for a better one 8369 ac_cv_path_SED="$ac_path_SED" 8370 ac_path_SED_max=$ac_count 8371 fi 8372 # 10*(2^10) chars as input seems more than enough 8373 test $ac_count -gt 10 && break 8374 done 8375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8376esac 8377 8378 $ac_path_SED_found && break 3 8379 done 8380 done 8381 done 8382IFS=$as_save_IFS 8383 if test -z "$ac_cv_path_SED"; then 8384 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8385 fi 8386else 8387 ac_cv_path_SED=$SED 8388fi 8389 8390fi 8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8392$as_echo "$ac_cv_path_SED" >&6; } 8393 SED="$ac_cv_path_SED" 8394 rm -f conftest.sed 8395 8396test -z "$SED" && SED=sed 8397Xsed="$SED -e 1s/^X//" 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 8410$as_echo_n "checking for egrep... " >&6; } 8411if ${ac_cv_path_EGREP+:} false; then : 8412 $as_echo_n "(cached) " >&6 8413else 8414 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 8415 then ac_cv_path_EGREP="$GREP -E" 8416 else 8417 if test -z "$EGREP"; then 8418 ac_path_EGREP_found=false 8419 # Loop through the user's path and test for each of PROGNAME-LIST 8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8421for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8422do 8423 IFS=$as_save_IFS 8424 test -z "$as_dir" && as_dir=. 8425 for ac_prog in egrep; do 8426 for ac_exec_ext in '' $ac_executable_extensions; do 8427 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 8428 as_fn_executable_p "$ac_path_EGREP" || continue 8429# Check for GNU ac_path_EGREP and select it if it is found. 8430 # Check for GNU $ac_path_EGREP 8431case `"$ac_path_EGREP" --version 2>&1` in 8432*GNU*) 8433 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 8434*) 8435 ac_count=0 8436 $as_echo_n 0123456789 >"conftest.in" 8437 while : 8438 do 8439 cat "conftest.in" "conftest.in" >"conftest.tmp" 8440 mv "conftest.tmp" "conftest.in" 8441 cp "conftest.in" "conftest.nl" 8442 $as_echo 'EGREP' >> "conftest.nl" 8443 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 8444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8445 as_fn_arith $ac_count + 1 && ac_count=$as_val 8446 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 8447 # Best one so far, save it but keep looking for a better one 8448 ac_cv_path_EGREP="$ac_path_EGREP" 8449 ac_path_EGREP_max=$ac_count 8450 fi 8451 # 10*(2^10) chars as input seems more than enough 8452 test $ac_count -gt 10 && break 8453 done 8454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8455esac 8456 8457 $ac_path_EGREP_found && break 3 8458 done 8459 done 8460 done 8461IFS=$as_save_IFS 8462 if test -z "$ac_cv_path_EGREP"; then 8463 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8464 fi 8465else 8466 ac_cv_path_EGREP=$EGREP 8467fi 8468 8469 fi 8470fi 8471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 8472$as_echo "$ac_cv_path_EGREP" >&6; } 8473 EGREP="$ac_cv_path_EGREP" 8474 8475 8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8477$as_echo_n "checking for fgrep... " >&6; } 8478if ${ac_cv_path_FGREP+:} false; then : 8479 $as_echo_n "(cached) " >&6 8480else 8481 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8482 then ac_cv_path_FGREP="$GREP -F" 8483 else 8484 if test -z "$FGREP"; then 8485 ac_path_FGREP_found=false 8486 # Loop through the user's path and test for each of PROGNAME-LIST 8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8488for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8489do 8490 IFS=$as_save_IFS 8491 test -z "$as_dir" && as_dir=. 8492 for ac_prog in fgrep; do 8493 for ac_exec_ext in '' $ac_executable_extensions; do 8494 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 8495 as_fn_executable_p "$ac_path_FGREP" || continue 8496# Check for GNU ac_path_FGREP and select it if it is found. 8497 # Check for GNU $ac_path_FGREP 8498case `"$ac_path_FGREP" --version 2>&1` in 8499*GNU*) 8500 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8501*) 8502 ac_count=0 8503 $as_echo_n 0123456789 >"conftest.in" 8504 while : 8505 do 8506 cat "conftest.in" "conftest.in" >"conftest.tmp" 8507 mv "conftest.tmp" "conftest.in" 8508 cp "conftest.in" "conftest.nl" 8509 $as_echo 'FGREP' >> "conftest.nl" 8510 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8512 as_fn_arith $ac_count + 1 && ac_count=$as_val 8513 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8514 # Best one so far, save it but keep looking for a better one 8515 ac_cv_path_FGREP="$ac_path_FGREP" 8516 ac_path_FGREP_max=$ac_count 8517 fi 8518 # 10*(2^10) chars as input seems more than enough 8519 test $ac_count -gt 10 && break 8520 done 8521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8522esac 8523 8524 $ac_path_FGREP_found && break 3 8525 done 8526 done 8527 done 8528IFS=$as_save_IFS 8529 if test -z "$ac_cv_path_FGREP"; then 8530 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8531 fi 8532else 8533 ac_cv_path_FGREP=$FGREP 8534fi 8535 8536 fi 8537fi 8538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8539$as_echo "$ac_cv_path_FGREP" >&6; } 8540 FGREP="$ac_cv_path_FGREP" 8541 8542 8543test -z "$GREP" && GREP=grep 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563# Check whether --with-gnu-ld was given. 8564if test "${with_gnu_ld+set}" = set; then : 8565 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8566else 8567 with_gnu_ld=no 8568fi 8569 8570ac_prog=ld 8571if test yes = "$GCC"; then 8572 # Check if gcc -print-prog-name=ld gives a path. 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8574$as_echo_n "checking for ld used by $CC... " >&6; } 8575 case $host in 8576 *-*-mingw*) 8577 # gcc leaves a trailing carriage return, which upsets mingw 8578 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8579 *) 8580 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8581 esac 8582 case $ac_prog in 8583 # Accept absolute paths. 8584 [\\/]* | ?:[\\/]*) 8585 re_direlt='/[^/][^/]*/\.\./' 8586 # Canonicalize the pathname of ld 8587 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8588 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8589 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8590 done 8591 test -z "$LD" && LD=$ac_prog 8592 ;; 8593 "") 8594 # If it fails, then pretend we aren't using GCC. 8595 ac_prog=ld 8596 ;; 8597 *) 8598 # If it is relative, then search for the first ld in PATH. 8599 with_gnu_ld=unknown 8600 ;; 8601 esac 8602elif test yes = "$with_gnu_ld"; then 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8604$as_echo_n "checking for GNU ld... " >&6; } 8605else 8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8607$as_echo_n "checking for non-GNU ld... " >&6; } 8608fi 8609if ${lt_cv_path_LD+:} false; then : 8610 $as_echo_n "(cached) " >&6 8611else 8612 if test -z "$LD"; then 8613 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8614 for ac_dir in $PATH; do 8615 IFS=$lt_save_ifs 8616 test -z "$ac_dir" && ac_dir=. 8617 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8618 lt_cv_path_LD=$ac_dir/$ac_prog 8619 # Check to see if the program is GNU ld. I'd rather use --version, 8620 # but apparently some variants of GNU ld only accept -v. 8621 # Break only if it was the GNU/non-GNU ld that we prefer. 8622 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8623 *GNU* | *'with BFD'*) 8624 test no != "$with_gnu_ld" && break 8625 ;; 8626 *) 8627 test yes != "$with_gnu_ld" && break 8628 ;; 8629 esac 8630 fi 8631 done 8632 IFS=$lt_save_ifs 8633else 8634 lt_cv_path_LD=$LD # Let the user override the test with a path. 8635fi 8636fi 8637 8638LD=$lt_cv_path_LD 8639if test -n "$LD"; then 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8641$as_echo "$LD" >&6; } 8642else 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8644$as_echo "no" >&6; } 8645fi 8646test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8648$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8649if ${lt_cv_prog_gnu_ld+:} false; then : 8650 $as_echo_n "(cached) " >&6 8651else 8652 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8653case `$LD -v 2>&1 </dev/null` in 8654*GNU* | *'with BFD'*) 8655 lt_cv_prog_gnu_ld=yes 8656 ;; 8657*) 8658 lt_cv_prog_gnu_ld=no 8659 ;; 8660esac 8661fi 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8663$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8664with_gnu_ld=$lt_cv_prog_gnu_ld 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8675$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8676if ${lt_cv_path_NM+:} false; then : 8677 $as_echo_n "(cached) " >&6 8678else 8679 if test -n "$NM"; then 8680 # Let the user override the test. 8681 lt_cv_path_NM=$NM 8682else 8683 lt_nm_to_check=${ac_tool_prefix}nm 8684 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8685 lt_nm_to_check="$lt_nm_to_check nm" 8686 fi 8687 for lt_tmp_nm in $lt_nm_to_check; do 8688 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8689 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8690 IFS=$lt_save_ifs 8691 test -z "$ac_dir" && ac_dir=. 8692 tmp_nm=$ac_dir/$lt_tmp_nm 8693 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 8694 # Check to see if the nm accepts a BSD-compat flag. 8695 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 8696 # nm: unknown option "B" ignored 8697 # Tru64's nm complains that /dev/null is an invalid object file 8698 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 8699 case $build_os in 8700 mingw*) lt_bad_file=conftest.nm/nofile ;; 8701 *) lt_bad_file=/dev/null ;; 8702 esac 8703 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 8704 *$lt_bad_file* | *'Invalid file or object type'*) 8705 lt_cv_path_NM="$tmp_nm -B" 8706 break 2 8707 ;; 8708 *) 8709 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8710 */dev/null*) 8711 lt_cv_path_NM="$tmp_nm -p" 8712 break 2 8713 ;; 8714 *) 8715 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8716 continue # so that we can try to find one that supports BSD flags 8717 ;; 8718 esac 8719 ;; 8720 esac 8721 fi 8722 done 8723 IFS=$lt_save_ifs 8724 done 8725 : ${lt_cv_path_NM=no} 8726fi 8727fi 8728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8729$as_echo "$lt_cv_path_NM" >&6; } 8730if test no != "$lt_cv_path_NM"; then 8731 NM=$lt_cv_path_NM 8732else 8733 # Didn't find any BSD compatible name lister, look for dumpbin. 8734 if test -n "$DUMPBIN"; then : 8735 # Let the user override the test. 8736 else 8737 if test -n "$ac_tool_prefix"; then 8738 for ac_prog in dumpbin "link -dump" 8739 do 8740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8741set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8743$as_echo_n "checking for $ac_word... " >&6; } 8744if ${ac_cv_prog_DUMPBIN+:} false; then : 8745 $as_echo_n "(cached) " >&6 8746else 8747 if test -n "$DUMPBIN"; then 8748 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8749else 8750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8751for as_dir in $PATH 8752do 8753 IFS=$as_save_IFS 8754 test -z "$as_dir" && as_dir=. 8755 for ac_exec_ext in '' $ac_executable_extensions; do 8756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8757 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8759 break 2 8760 fi 8761done 8762 done 8763IFS=$as_save_IFS 8764 8765fi 8766fi 8767DUMPBIN=$ac_cv_prog_DUMPBIN 8768if test -n "$DUMPBIN"; then 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8770$as_echo "$DUMPBIN" >&6; } 8771else 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8773$as_echo "no" >&6; } 8774fi 8775 8776 8777 test -n "$DUMPBIN" && break 8778 done 8779fi 8780if test -z "$DUMPBIN"; then 8781 ac_ct_DUMPBIN=$DUMPBIN 8782 for ac_prog in dumpbin "link -dump" 8783do 8784 # Extract the first word of "$ac_prog", so it can be a program name with args. 8785set dummy $ac_prog; ac_word=$2 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8787$as_echo_n "checking for $ac_word... " >&6; } 8788if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 8789 $as_echo_n "(cached) " >&6 8790else 8791 if test -n "$ac_ct_DUMPBIN"; then 8792 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8793else 8794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8795for as_dir in $PATH 8796do 8797 IFS=$as_save_IFS 8798 test -z "$as_dir" && as_dir=. 8799 for ac_exec_ext in '' $ac_executable_extensions; do 8800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8801 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8803 break 2 8804 fi 8805done 8806 done 8807IFS=$as_save_IFS 8808 8809fi 8810fi 8811ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8812if test -n "$ac_ct_DUMPBIN"; then 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8814$as_echo "$ac_ct_DUMPBIN" >&6; } 8815else 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8817$as_echo "no" >&6; } 8818fi 8819 8820 8821 test -n "$ac_ct_DUMPBIN" && break 8822done 8823 8824 if test "x$ac_ct_DUMPBIN" = x; then 8825 DUMPBIN=":" 8826 else 8827 case $cross_compiling:$ac_tool_warned in 8828yes:) 8829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8831ac_tool_warned=yes ;; 8832esac 8833 DUMPBIN=$ac_ct_DUMPBIN 8834 fi 8835fi 8836 8837 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 8838 *COFF*) 8839 DUMPBIN="$DUMPBIN -symbols -headers" 8840 ;; 8841 *) 8842 DUMPBIN=: 8843 ;; 8844 esac 8845 fi 8846 8847 if test : != "$DUMPBIN"; then 8848 NM=$DUMPBIN 8849 fi 8850fi 8851test -z "$NM" && NM=nm 8852 8853 8854 8855 8856 8857 8858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8859$as_echo_n "checking the name lister ($NM) interface... " >&6; } 8860if ${lt_cv_nm_interface+:} false; then : 8861 $as_echo_n "(cached) " >&6 8862else 8863 lt_cv_nm_interface="BSD nm" 8864 echo "int some_variable = 0;" > conftest.$ac_ext 8865 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8866 (eval "$ac_compile" 2>conftest.err) 8867 cat conftest.err >&5 8868 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8869 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8870 cat conftest.err >&5 8871 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8872 cat conftest.out >&5 8873 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8874 lt_cv_nm_interface="MS dumpbin" 8875 fi 8876 rm -f conftest* 8877fi 8878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8879$as_echo "$lt_cv_nm_interface" >&6; } 8880 8881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8882$as_echo_n "checking whether ln -s works... " >&6; } 8883LN_S=$as_ln_s 8884if test "$LN_S" = "ln -s"; then 8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8886$as_echo "yes" >&6; } 8887else 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8889$as_echo "no, using $LN_S" >&6; } 8890fi 8891 8892# find the maximum length of command line arguments 8893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8894$as_echo_n "checking the maximum length of command line arguments... " >&6; } 8895if ${lt_cv_sys_max_cmd_len+:} false; then : 8896 $as_echo_n "(cached) " >&6 8897else 8898 i=0 8899 teststring=ABCD 8900 8901 case $build_os in 8902 msdosdjgpp*) 8903 # On DJGPP, this test can blow up pretty badly due to problems in libc 8904 # (any single argument exceeding 2000 bytes causes a buffer overrun 8905 # during glob expansion). Even if it were fixed, the result of this 8906 # check would be larger than it should be. 8907 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8908 ;; 8909 8910 gnu*) 8911 # Under GNU Hurd, this test is not required because there is 8912 # no limit to the length of command line arguments. 8913 # Libtool will interpret -1 as no limit whatsoever 8914 lt_cv_sys_max_cmd_len=-1; 8915 ;; 8916 8917 cygwin* | mingw* | cegcc*) 8918 # On Win9x/ME, this test blows up -- it succeeds, but takes 8919 # about 5 minutes as the teststring grows exponentially. 8920 # Worse, since 9x/ME are not pre-emptively multitasking, 8921 # you end up with a "frozen" computer, even though with patience 8922 # the test eventually succeeds (with a max line length of 256k). 8923 # Instead, let's just punt: use the minimum linelength reported by 8924 # all of the supported platforms: 8192 (on NT/2K/XP). 8925 lt_cv_sys_max_cmd_len=8192; 8926 ;; 8927 8928 mint*) 8929 # On MiNT this can take a long time and run out of memory. 8930 lt_cv_sys_max_cmd_len=8192; 8931 ;; 8932 8933 amigaos*) 8934 # On AmigaOS with pdksh, this test takes hours, literally. 8935 # So we just punt and use a minimum line length of 8192. 8936 lt_cv_sys_max_cmd_len=8192; 8937 ;; 8938 8939 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 8940 # This has been around since 386BSD, at least. Likely further. 8941 if test -x /sbin/sysctl; then 8942 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8943 elif test -x /usr/sbin/sysctl; then 8944 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8945 else 8946 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8947 fi 8948 # And add a safety zone 8949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8951 ;; 8952 8953 interix*) 8954 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8955 lt_cv_sys_max_cmd_len=196608 8956 ;; 8957 8958 os2*) 8959 # The test takes a long time on OS/2. 8960 lt_cv_sys_max_cmd_len=8192 8961 ;; 8962 8963 osf*) 8964 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8965 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8966 # nice to cause kernel panics so lets avoid the loop below. 8967 # First set a reasonable default. 8968 lt_cv_sys_max_cmd_len=16384 8969 # 8970 if test -x /sbin/sysconfig; then 8971 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8972 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8973 esac 8974 fi 8975 ;; 8976 sco3.2v5*) 8977 lt_cv_sys_max_cmd_len=102400 8978 ;; 8979 sysv5* | sco5v6* | sysv4.2uw2*) 8980 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8981 if test -n "$kargmax"; then 8982 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8983 else 8984 lt_cv_sys_max_cmd_len=32768 8985 fi 8986 ;; 8987 *) 8988 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8989 if test -n "$lt_cv_sys_max_cmd_len" && \ 8990 test undefined != "$lt_cv_sys_max_cmd_len"; then 8991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8993 else 8994 # Make teststring a little bigger before we do anything with it. 8995 # a 1K string should be a reasonable start. 8996 for i in 1 2 3 4 5 6 7 8; do 8997 teststring=$teststring$teststring 8998 done 8999 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9000 # If test is not a shell built-in, we'll probably end up computing a 9001 # maximum length that is only half of the actual maximum length, but 9002 # we can't tell. 9003 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 9004 = "X$teststring$teststring"; } >/dev/null 2>&1 && 9005 test 17 != "$i" # 1/2 MB should be enough 9006 do 9007 i=`expr $i + 1` 9008 teststring=$teststring$teststring 9009 done 9010 # Only check the string length outside the loop. 9011 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 9012 teststring= 9013 # Add a significant safety factor because C++ compilers can tack on 9014 # massive amounts of additional arguments before passing them to the 9015 # linker. It appears as though 1/2 is a usable value. 9016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9017 fi 9018 ;; 9019 esac 9020 9021fi 9022 9023if test -n "$lt_cv_sys_max_cmd_len"; then 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 9025$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 9026else 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 9028$as_echo "none" >&6; } 9029fi 9030max_cmd_len=$lt_cv_sys_max_cmd_len 9031 9032 9033 9034 9035 9036 9037: ${CP="cp -f"} 9038: ${MV="mv -f"} 9039: ${RM="rm -f"} 9040 9041if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9042 lt_unset=unset 9043else 9044 lt_unset=false 9045fi 9046 9047 9048 9049 9050 9051# test EBCDIC or ASCII 9052case `echo X|tr X '\101'` in 9053 A) # ASCII based system 9054 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9055 lt_SP2NL='tr \040 \012' 9056 lt_NL2SP='tr \015\012 \040\040' 9057 ;; 9058 *) # EBCDIC based system 9059 lt_SP2NL='tr \100 \n' 9060 lt_NL2SP='tr \r\n \100\100' 9061 ;; 9062esac 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 9073$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 9074if ${lt_cv_to_host_file_cmd+:} false; then : 9075 $as_echo_n "(cached) " >&6 9076else 9077 case $host in 9078 *-*-mingw* ) 9079 case $build in 9080 *-*-mingw* ) # actually msys 9081 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9082 ;; 9083 *-*-cygwin* ) 9084 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9085 ;; 9086 * ) # otherwise, assume *nix 9087 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9088 ;; 9089 esac 9090 ;; 9091 *-*-cygwin* ) 9092 case $build in 9093 *-*-mingw* ) # actually msys 9094 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9095 ;; 9096 *-*-cygwin* ) 9097 lt_cv_to_host_file_cmd=func_convert_file_noop 9098 ;; 9099 * ) # otherwise, assume *nix 9100 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9101 ;; 9102 esac 9103 ;; 9104 * ) # unhandled hosts (and "normal" native builds) 9105 lt_cv_to_host_file_cmd=func_convert_file_noop 9106 ;; 9107esac 9108 9109fi 9110 9111to_host_file_cmd=$lt_cv_to_host_file_cmd 9112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 9113$as_echo "$lt_cv_to_host_file_cmd" >&6; } 9114 9115 9116 9117 9118 9119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 9120$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 9121if ${lt_cv_to_tool_file_cmd+:} false; then : 9122 $as_echo_n "(cached) " >&6 9123else 9124 #assume ordinary cross tools, or native build. 9125lt_cv_to_tool_file_cmd=func_convert_file_noop 9126case $host in 9127 *-*-mingw* ) 9128 case $build in 9129 *-*-mingw* ) # actually msys 9130 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9131 ;; 9132 esac 9133 ;; 9134esac 9135 9136fi 9137 9138to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 9140$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 9141 9142 9143 9144 9145 9146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9147$as_echo_n "checking for $LD option to reload object files... " >&6; } 9148if ${lt_cv_ld_reload_flag+:} false; then : 9149 $as_echo_n "(cached) " >&6 9150else 9151 lt_cv_ld_reload_flag='-r' 9152fi 9153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9154$as_echo "$lt_cv_ld_reload_flag" >&6; } 9155reload_flag=$lt_cv_ld_reload_flag 9156case $reload_flag in 9157"" | " "*) ;; 9158*) reload_flag=" $reload_flag" ;; 9159esac 9160reload_cmds='$LD$reload_flag -o $output$reload_objs' 9161case $host_os in 9162 cygwin* | mingw* | pw32* | cegcc*) 9163 if test yes != "$GCC"; then 9164 reload_cmds=false 9165 fi 9166 ;; 9167 darwin*) 9168 if test yes = "$GCC"; then 9169 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 9170 else 9171 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9172 fi 9173 ;; 9174esac 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184if test -n "$ac_tool_prefix"; then 9185 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9186set dummy ${ac_tool_prefix}objdump; ac_word=$2 9187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9188$as_echo_n "checking for $ac_word... " >&6; } 9189if ${ac_cv_prog_OBJDUMP+:} false; then : 9190 $as_echo_n "(cached) " >&6 9191else 9192 if test -n "$OBJDUMP"; then 9193 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9194else 9195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9196for as_dir in $PATH 9197do 9198 IFS=$as_save_IFS 9199 test -z "$as_dir" && as_dir=. 9200 for ac_exec_ext in '' $ac_executable_extensions; do 9201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9202 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9204 break 2 9205 fi 9206done 9207 done 9208IFS=$as_save_IFS 9209 9210fi 9211fi 9212OBJDUMP=$ac_cv_prog_OBJDUMP 9213if test -n "$OBJDUMP"; then 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9215$as_echo "$OBJDUMP" >&6; } 9216else 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9218$as_echo "no" >&6; } 9219fi 9220 9221 9222fi 9223if test -z "$ac_cv_prog_OBJDUMP"; then 9224 ac_ct_OBJDUMP=$OBJDUMP 9225 # Extract the first word of "objdump", so it can be a program name with args. 9226set dummy objdump; ac_word=$2 9227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9228$as_echo_n "checking for $ac_word... " >&6; } 9229if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9230 $as_echo_n "(cached) " >&6 9231else 9232 if test -n "$ac_ct_OBJDUMP"; then 9233 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9234else 9235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9236for as_dir in $PATH 9237do 9238 IFS=$as_save_IFS 9239 test -z "$as_dir" && as_dir=. 9240 for ac_exec_ext in '' $ac_executable_extensions; do 9241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9242 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9244 break 2 9245 fi 9246done 9247 done 9248IFS=$as_save_IFS 9249 9250fi 9251fi 9252ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9253if test -n "$ac_ct_OBJDUMP"; then 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9255$as_echo "$ac_ct_OBJDUMP" >&6; } 9256else 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9258$as_echo "no" >&6; } 9259fi 9260 9261 if test "x$ac_ct_OBJDUMP" = x; then 9262 OBJDUMP="false" 9263 else 9264 case $cross_compiling:$ac_tool_warned in 9265yes:) 9266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9268ac_tool_warned=yes ;; 9269esac 9270 OBJDUMP=$ac_ct_OBJDUMP 9271 fi 9272else 9273 OBJDUMP="$ac_cv_prog_OBJDUMP" 9274fi 9275 9276test -z "$OBJDUMP" && OBJDUMP=objdump 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 9287$as_echo_n "checking how to recognize dependent libraries... " >&6; } 9288if ${lt_cv_deplibs_check_method+:} false; then : 9289 $as_echo_n "(cached) " >&6 9290else 9291 lt_cv_file_magic_cmd='$MAGIC_CMD' 9292lt_cv_file_magic_test_file= 9293lt_cv_deplibs_check_method='unknown' 9294# Need to set the preceding variable on all platforms that support 9295# interlibrary dependencies. 9296# 'none' -- dependencies not supported. 9297# 'unknown' -- same as none, but documents that we really don't know. 9298# 'pass_all' -- all dependencies passed with no checks. 9299# 'test_compile' -- check by making test program. 9300# 'file_magic [[regex]]' -- check by looking for files in library path 9301# that responds to the $file_magic_cmd with a given extended regex. 9302# If you have 'file' or equivalent on your system and you're not sure 9303# whether 'pass_all' will *always* work, you probably want this one. 9304 9305case $host_os in 9306aix[4-9]*) 9307 lt_cv_deplibs_check_method=pass_all 9308 ;; 9309 9310beos*) 9311 lt_cv_deplibs_check_method=pass_all 9312 ;; 9313 9314bsdi[45]*) 9315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9316 lt_cv_file_magic_cmd='/usr/bin/file -L' 9317 lt_cv_file_magic_test_file=/shlib/libc.so 9318 ;; 9319 9320cygwin*) 9321 # func_win32_libid is a shell function defined in ltmain.sh 9322 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9323 lt_cv_file_magic_cmd='func_win32_libid' 9324 ;; 9325 9326mingw* | pw32*) 9327 # Base MSYS/MinGW do not provide the 'file' command needed by 9328 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9329 # unless we find 'file', for example because we are cross-compiling. 9330 if ( file / ) >/dev/null 2>&1; then 9331 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9332 lt_cv_file_magic_cmd='func_win32_libid' 9333 else 9334 # Keep this pattern in sync with the one in func_win32_libid. 9335 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 9336 lt_cv_file_magic_cmd='$OBJDUMP -f' 9337 fi 9338 ;; 9339 9340cegcc*) 9341 # use the weaker test based on 'objdump'. See mingw*. 9342 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9343 lt_cv_file_magic_cmd='$OBJDUMP -f' 9344 ;; 9345 9346darwin* | rhapsody*) 9347 lt_cv_deplibs_check_method=pass_all 9348 ;; 9349 9350freebsd* | dragonfly*) 9351 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9352 case $host_cpu in 9353 i*86 ) 9354 # Not sure whether the presence of OpenBSD here was a mistake. 9355 # Let's accept both of them until this is cleared up. 9356 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 9357 lt_cv_file_magic_cmd=/usr/bin/file 9358 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 9359 ;; 9360 esac 9361 else 9362 lt_cv_deplibs_check_method=pass_all 9363 fi 9364 ;; 9365 9366haiku*) 9367 lt_cv_deplibs_check_method=pass_all 9368 ;; 9369 9370hpux10.20* | hpux11*) 9371 lt_cv_file_magic_cmd=/usr/bin/file 9372 case $host_cpu in 9373 ia64*) 9374 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 9375 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 9376 ;; 9377 hppa*64*) 9378 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]' 9379 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 9380 ;; 9381 *) 9382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 9383 lt_cv_file_magic_test_file=/usr/lib/libc.sl 9384 ;; 9385 esac 9386 ;; 9387 9388interix[3-9]*) 9389 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 9390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 9391 ;; 9392 9393irix5* | irix6* | nonstopux*) 9394 case $LD in 9395 *-32|*"-32 ") libmagic=32-bit;; 9396 *-n32|*"-n32 ") libmagic=N32;; 9397 *-64|*"-64 ") libmagic=64-bit;; 9398 *) libmagic=never-match;; 9399 esac 9400 lt_cv_deplibs_check_method=pass_all 9401 ;; 9402 9403# This must be glibc/ELF. 9404linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9405 lt_cv_deplibs_check_method=pass_all 9406 ;; 9407 9408netbsd* | netbsdelf*-gnu) 9409 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9411 else 9412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 9413 fi 9414 ;; 9415 9416newos6*) 9417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 9418 lt_cv_file_magic_cmd=/usr/bin/file 9419 lt_cv_file_magic_test_file=/usr/lib/libnls.so 9420 ;; 9421 9422*nto* | *qnx*) 9423 lt_cv_deplibs_check_method=pass_all 9424 ;; 9425 9426openbsd* | bitrig*) 9427 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 9429 else 9430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9431 fi 9432 ;; 9433 9434osf3* | osf4* | osf5*) 9435 lt_cv_deplibs_check_method=pass_all 9436 ;; 9437 9438rdos*) 9439 lt_cv_deplibs_check_method=pass_all 9440 ;; 9441 9442solaris*) 9443 lt_cv_deplibs_check_method=pass_all 9444 ;; 9445 9446sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9447 lt_cv_deplibs_check_method=pass_all 9448 ;; 9449 9450sysv4 | sysv4.3*) 9451 case $host_vendor in 9452 motorola) 9453 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]' 9454 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9455 ;; 9456 ncr) 9457 lt_cv_deplibs_check_method=pass_all 9458 ;; 9459 sequent) 9460 lt_cv_file_magic_cmd='/bin/file' 9461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9462 ;; 9463 sni) 9464 lt_cv_file_magic_cmd='/bin/file' 9465 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9466 lt_cv_file_magic_test_file=/lib/libc.so 9467 ;; 9468 siemens) 9469 lt_cv_deplibs_check_method=pass_all 9470 ;; 9471 pc) 9472 lt_cv_deplibs_check_method=pass_all 9473 ;; 9474 esac 9475 ;; 9476 9477tpf*) 9478 lt_cv_deplibs_check_method=pass_all 9479 ;; 9480os2*) 9481 lt_cv_deplibs_check_method=pass_all 9482 ;; 9483esac 9484 9485fi 9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9487$as_echo "$lt_cv_deplibs_check_method" >&6; } 9488 9489file_magic_glob= 9490want_nocaseglob=no 9491if test "$build" = "$host"; then 9492 case $host_os in 9493 mingw* | pw32*) 9494 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 9495 want_nocaseglob=yes 9496 else 9497 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 9498 fi 9499 ;; 9500 esac 9501fi 9502 9503file_magic_cmd=$lt_cv_file_magic_cmd 9504deplibs_check_method=$lt_cv_deplibs_check_method 9505test -z "$deplibs_check_method" && deplibs_check_method=unknown 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528if test -n "$ac_tool_prefix"; then 9529 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9530set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9532$as_echo_n "checking for $ac_word... " >&6; } 9533if ${ac_cv_prog_DLLTOOL+:} false; then : 9534 $as_echo_n "(cached) " >&6 9535else 9536 if test -n "$DLLTOOL"; then 9537 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9538else 9539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9540for as_dir in $PATH 9541do 9542 IFS=$as_save_IFS 9543 test -z "$as_dir" && as_dir=. 9544 for ac_exec_ext in '' $ac_executable_extensions; do 9545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9546 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9548 break 2 9549 fi 9550done 9551 done 9552IFS=$as_save_IFS 9553 9554fi 9555fi 9556DLLTOOL=$ac_cv_prog_DLLTOOL 9557if test -n "$DLLTOOL"; then 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9559$as_echo "$DLLTOOL" >&6; } 9560else 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9562$as_echo "no" >&6; } 9563fi 9564 9565 9566fi 9567if test -z "$ac_cv_prog_DLLTOOL"; then 9568 ac_ct_DLLTOOL=$DLLTOOL 9569 # Extract the first word of "dlltool", so it can be a program name with args. 9570set dummy dlltool; ac_word=$2 9571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9572$as_echo_n "checking for $ac_word... " >&6; } 9573if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 9574 $as_echo_n "(cached) " >&6 9575else 9576 if test -n "$ac_ct_DLLTOOL"; then 9577 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9578else 9579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9580for as_dir in $PATH 9581do 9582 IFS=$as_save_IFS 9583 test -z "$as_dir" && as_dir=. 9584 for ac_exec_ext in '' $ac_executable_extensions; do 9585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9586 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9588 break 2 9589 fi 9590done 9591 done 9592IFS=$as_save_IFS 9593 9594fi 9595fi 9596ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9597if test -n "$ac_ct_DLLTOOL"; then 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9599$as_echo "$ac_ct_DLLTOOL" >&6; } 9600else 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9602$as_echo "no" >&6; } 9603fi 9604 9605 if test "x$ac_ct_DLLTOOL" = x; then 9606 DLLTOOL="false" 9607 else 9608 case $cross_compiling:$ac_tool_warned in 9609yes:) 9610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9612ac_tool_warned=yes ;; 9613esac 9614 DLLTOOL=$ac_ct_DLLTOOL 9615 fi 9616else 9617 DLLTOOL="$ac_cv_prog_DLLTOOL" 9618fi 9619 9620test -z "$DLLTOOL" && DLLTOOL=dlltool 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9632$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 9633if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 9634 $as_echo_n "(cached) " >&6 9635else 9636 lt_cv_sharedlib_from_linklib_cmd='unknown' 9637 9638case $host_os in 9639cygwin* | mingw* | pw32* | cegcc*) 9640 # two different shell functions defined in ltmain.sh; 9641 # decide which one to use based on capabilities of $DLLTOOL 9642 case `$DLLTOOL --help 2>&1` in 9643 *--identify-strict*) 9644 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9645 ;; 9646 *) 9647 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9648 ;; 9649 esac 9650 ;; 9651*) 9652 # fallback: assume linklib IS sharedlib 9653 lt_cv_sharedlib_from_linklib_cmd=$ECHO 9654 ;; 9655esac 9656 9657fi 9658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9659$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9660sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9661test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9662 9663 9664 9665 9666 9667 9668 9669if test -n "$ac_tool_prefix"; then 9670 for ac_prog in ar 9671 do 9672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9673set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9675$as_echo_n "checking for $ac_word... " >&6; } 9676if ${ac_cv_prog_AR+:} false; then : 9677 $as_echo_n "(cached) " >&6 9678else 9679 if test -n "$AR"; then 9680 ac_cv_prog_AR="$AR" # Let the user override the test. 9681else 9682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9683for as_dir in $PATH 9684do 9685 IFS=$as_save_IFS 9686 test -z "$as_dir" && as_dir=. 9687 for ac_exec_ext in '' $ac_executable_extensions; do 9688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9689 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9691 break 2 9692 fi 9693done 9694 done 9695IFS=$as_save_IFS 9696 9697fi 9698fi 9699AR=$ac_cv_prog_AR 9700if test -n "$AR"; then 9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9702$as_echo "$AR" >&6; } 9703else 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9705$as_echo "no" >&6; } 9706fi 9707 9708 9709 test -n "$AR" && break 9710 done 9711fi 9712if test -z "$AR"; then 9713 ac_ct_AR=$AR 9714 for ac_prog in ar 9715do 9716 # Extract the first word of "$ac_prog", so it can be a program name with args. 9717set dummy $ac_prog; ac_word=$2 9718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9719$as_echo_n "checking for $ac_word... " >&6; } 9720if ${ac_cv_prog_ac_ct_AR+:} false; then : 9721 $as_echo_n "(cached) " >&6 9722else 9723 if test -n "$ac_ct_AR"; then 9724 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9725else 9726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9727for as_dir in $PATH 9728do 9729 IFS=$as_save_IFS 9730 test -z "$as_dir" && as_dir=. 9731 for ac_exec_ext in '' $ac_executable_extensions; do 9732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9733 ac_cv_prog_ac_ct_AR="$ac_prog" 9734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9735 break 2 9736 fi 9737done 9738 done 9739IFS=$as_save_IFS 9740 9741fi 9742fi 9743ac_ct_AR=$ac_cv_prog_ac_ct_AR 9744if test -n "$ac_ct_AR"; then 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9746$as_echo "$ac_ct_AR" >&6; } 9747else 9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9749$as_echo "no" >&6; } 9750fi 9751 9752 9753 test -n "$ac_ct_AR" && break 9754done 9755 9756 if test "x$ac_ct_AR" = x; then 9757 AR="false" 9758 else 9759 case $cross_compiling:$ac_tool_warned in 9760yes:) 9761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9763ac_tool_warned=yes ;; 9764esac 9765 AR=$ac_ct_AR 9766 fi 9767fi 9768 9769: ${AR=ar} 9770: ${AR_FLAGS=cru} 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9783$as_echo_n "checking for archiver @FILE support... " >&6; } 9784if ${lt_cv_ar_at_file+:} false; then : 9785 $as_echo_n "(cached) " >&6 9786else 9787 lt_cv_ar_at_file=no 9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9789/* end confdefs.h. */ 9790 9791int 9792main () 9793{ 9794 9795 ; 9796 return 0; 9797} 9798_ACEOF 9799if ac_fn_c_try_compile "$LINENO"; then : 9800 echo conftest.$ac_objext > conftest.lst 9801 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9803 (eval $lt_ar_try) 2>&5 9804 ac_status=$? 9805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9806 test $ac_status = 0; } 9807 if test 0 -eq "$ac_status"; then 9808 # Ensure the archiver fails upon bogus file names. 9809 rm -f conftest.$ac_objext libconftest.a 9810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9811 (eval $lt_ar_try) 2>&5 9812 ac_status=$? 9813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9814 test $ac_status = 0; } 9815 if test 0 -ne "$ac_status"; then 9816 lt_cv_ar_at_file=@ 9817 fi 9818 fi 9819 rm -f conftest.* libconftest.a 9820 9821fi 9822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9823 9824fi 9825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9826$as_echo "$lt_cv_ar_at_file" >&6; } 9827 9828if test no = "$lt_cv_ar_at_file"; then 9829 archiver_list_spec= 9830else 9831 archiver_list_spec=$lt_cv_ar_at_file 9832fi 9833 9834 9835 9836 9837 9838 9839 9840if test -n "$ac_tool_prefix"; then 9841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9842set dummy ${ac_tool_prefix}strip; ac_word=$2 9843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9844$as_echo_n "checking for $ac_word... " >&6; } 9845if ${ac_cv_prog_STRIP+:} false; then : 9846 $as_echo_n "(cached) " >&6 9847else 9848 if test -n "$STRIP"; then 9849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9850else 9851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9852for as_dir in $PATH 9853do 9854 IFS=$as_save_IFS 9855 test -z "$as_dir" && as_dir=. 9856 for ac_exec_ext in '' $ac_executable_extensions; do 9857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9858 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9860 break 2 9861 fi 9862done 9863 done 9864IFS=$as_save_IFS 9865 9866fi 9867fi 9868STRIP=$ac_cv_prog_STRIP 9869if test -n "$STRIP"; then 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9871$as_echo "$STRIP" >&6; } 9872else 9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9874$as_echo "no" >&6; } 9875fi 9876 9877 9878fi 9879if test -z "$ac_cv_prog_STRIP"; then 9880 ac_ct_STRIP=$STRIP 9881 # Extract the first word of "strip", so it can be a program name with args. 9882set dummy strip; ac_word=$2 9883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9884$as_echo_n "checking for $ac_word... " >&6; } 9885if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 9886 $as_echo_n "(cached) " >&6 9887else 9888 if test -n "$ac_ct_STRIP"; then 9889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9890else 9891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9892for as_dir in $PATH 9893do 9894 IFS=$as_save_IFS 9895 test -z "$as_dir" && as_dir=. 9896 for ac_exec_ext in '' $ac_executable_extensions; do 9897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9898 ac_cv_prog_ac_ct_STRIP="strip" 9899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9900 break 2 9901 fi 9902done 9903 done 9904IFS=$as_save_IFS 9905 9906fi 9907fi 9908ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9909if test -n "$ac_ct_STRIP"; then 9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9911$as_echo "$ac_ct_STRIP" >&6; } 9912else 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9914$as_echo "no" >&6; } 9915fi 9916 9917 if test "x$ac_ct_STRIP" = x; then 9918 STRIP=":" 9919 else 9920 case $cross_compiling:$ac_tool_warned in 9921yes:) 9922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9924ac_tool_warned=yes ;; 9925esac 9926 STRIP=$ac_ct_STRIP 9927 fi 9928else 9929 STRIP="$ac_cv_prog_STRIP" 9930fi 9931 9932test -z "$STRIP" && STRIP=: 9933 9934 9935 9936 9937 9938 9939if test -n "$ac_tool_prefix"; then 9940 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9941set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9943$as_echo_n "checking for $ac_word... " >&6; } 9944if ${ac_cv_prog_RANLIB+:} false; then : 9945 $as_echo_n "(cached) " >&6 9946else 9947 if test -n "$RANLIB"; then 9948 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9949else 9950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9951for as_dir in $PATH 9952do 9953 IFS=$as_save_IFS 9954 test -z "$as_dir" && as_dir=. 9955 for ac_exec_ext in '' $ac_executable_extensions; do 9956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9957 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9959 break 2 9960 fi 9961done 9962 done 9963IFS=$as_save_IFS 9964 9965fi 9966fi 9967RANLIB=$ac_cv_prog_RANLIB 9968if test -n "$RANLIB"; then 9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9970$as_echo "$RANLIB" >&6; } 9971else 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9973$as_echo "no" >&6; } 9974fi 9975 9976 9977fi 9978if test -z "$ac_cv_prog_RANLIB"; then 9979 ac_ct_RANLIB=$RANLIB 9980 # Extract the first word of "ranlib", so it can be a program name with args. 9981set dummy ranlib; ac_word=$2 9982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9983$as_echo_n "checking for $ac_word... " >&6; } 9984if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9985 $as_echo_n "(cached) " >&6 9986else 9987 if test -n "$ac_ct_RANLIB"; then 9988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9989else 9990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9991for as_dir in $PATH 9992do 9993 IFS=$as_save_IFS 9994 test -z "$as_dir" && as_dir=. 9995 for ac_exec_ext in '' $ac_executable_extensions; do 9996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9997 ac_cv_prog_ac_ct_RANLIB="ranlib" 9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9999 break 2 10000 fi 10001done 10002 done 10003IFS=$as_save_IFS 10004 10005fi 10006fi 10007ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10008if test -n "$ac_ct_RANLIB"; then 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10010$as_echo "$ac_ct_RANLIB" >&6; } 10011else 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10013$as_echo "no" >&6; } 10014fi 10015 10016 if test "x$ac_ct_RANLIB" = x; then 10017 RANLIB=":" 10018 else 10019 case $cross_compiling:$ac_tool_warned in 10020yes:) 10021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10023ac_tool_warned=yes ;; 10024esac 10025 RANLIB=$ac_ct_RANLIB 10026 fi 10027else 10028 RANLIB="$ac_cv_prog_RANLIB" 10029fi 10030 10031test -z "$RANLIB" && RANLIB=: 10032 10033 10034 10035 10036 10037 10038# Determine commands to create old-style static archives. 10039old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 10040old_postinstall_cmds='chmod 644 $oldlib' 10041old_postuninstall_cmds= 10042 10043if test -n "$RANLIB"; then 10044 case $host_os in 10045 bitrig* | openbsd*) 10046 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 10047 ;; 10048 *) 10049 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 10050 ;; 10051 esac 10052 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 10053fi 10054 10055case $host_os in 10056 darwin*) 10057 lock_old_archive_extraction=yes ;; 10058 *) 10059 lock_old_archive_extraction=no ;; 10060esac 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100# If no C compiler was specified, use CC. 10101LTCC=${LTCC-"$CC"} 10102 10103# If no C compiler flags were specified, use CFLAGS. 10104LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10105 10106# Allow CC to be a program name with arguments. 10107compiler=$CC 10108 10109 10110# Check for command to grab the raw symbol name followed by C symbol from nm. 10111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 10112$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 10113if ${lt_cv_sys_global_symbol_pipe+:} false; then : 10114 $as_echo_n "(cached) " >&6 10115else 10116 10117# These are sane defaults that work on at least a few old systems. 10118# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10119 10120# Character class describing NM global symbol codes. 10121symcode='[BCDEGRST]' 10122 10123# Regexp to match symbols that can be accessed directly from C. 10124sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10125 10126# Define system-specific variables. 10127case $host_os in 10128aix*) 10129 symcode='[BCDT]' 10130 ;; 10131cygwin* | mingw* | pw32* | cegcc*) 10132 symcode='[ABCDGISTW]' 10133 ;; 10134hpux*) 10135 if test ia64 = "$host_cpu"; then 10136 symcode='[ABCDEGRST]' 10137 fi 10138 ;; 10139irix* | nonstopux*) 10140 symcode='[BCDEGRST]' 10141 ;; 10142osf*) 10143 symcode='[BCDEGQRST]' 10144 ;; 10145solaris*) 10146 symcode='[BDRT]' 10147 ;; 10148sco3.2v5*) 10149 symcode='[DT]' 10150 ;; 10151sysv4.2uw2*) 10152 symcode='[DT]' 10153 ;; 10154sysv5* | sco5v6* | unixware* | OpenUNIX*) 10155 symcode='[ABDT]' 10156 ;; 10157sysv4) 10158 symcode='[DFNSTU]' 10159 ;; 10160esac 10161 10162# If we're using GNU nm, then use its standard symbol codes. 10163case `$NM -V 2>&1` in 10164*GNU* | *'with BFD'*) 10165 symcode='[ABCDGIRSTW]' ;; 10166esac 10167 10168if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10169 # Gets list of data symbols to import. 10170 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 10171 # Adjust the below global symbol transforms to fixup imported variables. 10172 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 10173 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 10174 lt_c_name_lib_hook="\ 10175 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 10176 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 10177else 10178 # Disable hooks by default. 10179 lt_cv_sys_global_symbol_to_import= 10180 lt_cdecl_hook= 10181 lt_c_name_hook= 10182 lt_c_name_lib_hook= 10183fi 10184 10185# Transform an extracted symbol line into a proper C declaration. 10186# Some systems (esp. on ia64) link data and code symbols differently, 10187# so use this general approach. 10188lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 10189$lt_cdecl_hook\ 10190" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 10191" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 10192 10193# Transform an extracted symbol line into symbol name and symbol address 10194lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 10195$lt_c_name_hook\ 10196" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10197" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 10198 10199# Transform an extracted symbol line into symbol name with lib prefix and 10200# symbol address. 10201lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 10202$lt_c_name_lib_hook\ 10203" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10204" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 10205" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 10206 10207# Handle CRLF in mingw tool chain 10208opt_cr= 10209case $build_os in 10210mingw*) 10211 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10212 ;; 10213esac 10214 10215# Try without a prefix underscore, then with it. 10216for ac_symprfx in "" "_"; do 10217 10218 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10219 symxfrm="\\1 $ac_symprfx\\2 \\2" 10220 10221 # Write the raw and C identifiers. 10222 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10223 # Fake it for dumpbin and say T for any non-static function, 10224 # D for any global variable and I for any imported variable. 10225 # Also find C++ and __fastcall symbols from MSVC++, 10226 # which start with @ or ?. 10227 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10228" {last_section=section; section=\$ 3};"\ 10229" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 10230" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10231" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 10232" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 10233" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 10234" \$ 0!~/External *\|/{next};"\ 10235" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10236" {if(hide[section]) next};"\ 10237" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 10238" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 10239" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 10240" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 10241" ' prfx=^$ac_symprfx" 10242 else 10243 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10244 fi 10245 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 10246 10247 # Check to see that the pipe works correctly. 10248 pipe_works=no 10249 10250 rm -f conftest* 10251 cat > conftest.$ac_ext <<_LT_EOF 10252#ifdef __cplusplus 10253extern "C" { 10254#endif 10255char nm_test_var; 10256void nm_test_func(void); 10257void nm_test_func(void){} 10258#ifdef __cplusplus 10259} 10260#endif 10261int main(){nm_test_var='a';nm_test_func();return(0);} 10262_LT_EOF 10263 10264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10265 (eval $ac_compile) 2>&5 10266 ac_status=$? 10267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10268 test $ac_status = 0; }; then 10269 # Now try to grab the symbols. 10270 nlist=conftest.nm 10271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 10272 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 10273 ac_status=$? 10274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10275 test $ac_status = 0; } && test -s "$nlist"; then 10276 # Try sorting and uniquifying the output. 10277 if sort "$nlist" | uniq > "$nlist"T; then 10278 mv -f "$nlist"T "$nlist" 10279 else 10280 rm -f "$nlist"T 10281 fi 10282 10283 # Make sure that we snagged all the symbols we need. 10284 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10285 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10286 cat <<_LT_EOF > conftest.$ac_ext 10287/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10288#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 10289/* DATA imports from DLLs on WIN32 can't be const, because runtime 10290 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10291# define LT_DLSYM_CONST 10292#elif defined __osf__ 10293/* This system does not cope well with relocations in const data. */ 10294# define LT_DLSYM_CONST 10295#else 10296# define LT_DLSYM_CONST const 10297#endif 10298 10299#ifdef __cplusplus 10300extern "C" { 10301#endif 10302 10303_LT_EOF 10304 # Now generate the symbol file. 10305 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10306 10307 cat <<_LT_EOF >> conftest.$ac_ext 10308 10309/* The mapping between symbol names and symbols. */ 10310LT_DLSYM_CONST struct { 10311 const char *name; 10312 void *address; 10313} 10314lt__PROGRAM__LTX_preloaded_symbols[] = 10315{ 10316 { "@PROGRAM@", (void *) 0 }, 10317_LT_EOF 10318 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10319 cat <<\_LT_EOF >> conftest.$ac_ext 10320 {0, (void *) 0} 10321}; 10322 10323/* This works around a problem in FreeBSD linker */ 10324#ifdef FREEBSD_WORKAROUND 10325static const void *lt_preloaded_setup() { 10326 return lt__PROGRAM__LTX_preloaded_symbols; 10327} 10328#endif 10329 10330#ifdef __cplusplus 10331} 10332#endif 10333_LT_EOF 10334 # Now try linking the two files. 10335 mv conftest.$ac_objext conftstm.$ac_objext 10336 lt_globsym_save_LIBS=$LIBS 10337 lt_globsym_save_CFLAGS=$CFLAGS 10338 LIBS=conftstm.$ac_objext 10339 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10341 (eval $ac_link) 2>&5 10342 ac_status=$? 10343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10344 test $ac_status = 0; } && test -s conftest$ac_exeext; then 10345 pipe_works=yes 10346 fi 10347 LIBS=$lt_globsym_save_LIBS 10348 CFLAGS=$lt_globsym_save_CFLAGS 10349 else 10350 echo "cannot find nm_test_func in $nlist" >&5 10351 fi 10352 else 10353 echo "cannot find nm_test_var in $nlist" >&5 10354 fi 10355 else 10356 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10357 fi 10358 else 10359 echo "$progname: failed program was:" >&5 10360 cat conftest.$ac_ext >&5 10361 fi 10362 rm -rf conftest* conftst* 10363 10364 # Do not use the global_symbol_pipe unless it works. 10365 if test yes = "$pipe_works"; then 10366 break 10367 else 10368 lt_cv_sys_global_symbol_pipe= 10369 fi 10370done 10371 10372fi 10373 10374if test -z "$lt_cv_sys_global_symbol_pipe"; then 10375 lt_cv_sys_global_symbol_to_cdecl= 10376fi 10377if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10379$as_echo "failed" >&6; } 10380else 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10382$as_echo "ok" >&6; } 10383fi 10384 10385# Response file support. 10386if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10387 nm_file_list_spec='@' 10388elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 10389 nm_file_list_spec='@' 10390fi 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 10429$as_echo_n "checking for sysroot... " >&6; } 10430 10431# Check whether --with-sysroot was given. 10432if test "${with_sysroot+set}" = set; then : 10433 withval=$with_sysroot; 10434else 10435 with_sysroot=no 10436fi 10437 10438 10439lt_sysroot= 10440case $with_sysroot in #( 10441 yes) 10442 if test yes = "$GCC"; then 10443 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 10444 fi 10445 ;; #( 10446 /*) 10447 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 10448 ;; #( 10449 no|'') 10450 ;; #( 10451 *) 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 10453$as_echo "$with_sysroot" >&6; } 10454 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10455 ;; 10456esac 10457 10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10459$as_echo "${lt_sysroot:-no}" >&6; } 10460 10461 10462 10463 10464 10465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 10466$as_echo_n "checking for a working dd... " >&6; } 10467if ${ac_cv_path_lt_DD+:} false; then : 10468 $as_echo_n "(cached) " >&6 10469else 10470 printf 0123456789abcdef0123456789abcdef >conftest.i 10471cat conftest.i conftest.i >conftest2.i 10472: ${lt_DD:=$DD} 10473if test -z "$lt_DD"; then 10474 ac_path_lt_DD_found=false 10475 # Loop through the user's path and test for each of PROGNAME-LIST 10476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10477for as_dir in $PATH 10478do 10479 IFS=$as_save_IFS 10480 test -z "$as_dir" && as_dir=. 10481 for ac_prog in dd; do 10482 for ac_exec_ext in '' $ac_executable_extensions; do 10483 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 10484 as_fn_executable_p "$ac_path_lt_DD" || continue 10485if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10486 cmp -s conftest.i conftest.out \ 10487 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 10488fi 10489 $ac_path_lt_DD_found && break 3 10490 done 10491 done 10492 done 10493IFS=$as_save_IFS 10494 if test -z "$ac_cv_path_lt_DD"; then 10495 : 10496 fi 10497else 10498 ac_cv_path_lt_DD=$lt_DD 10499fi 10500 10501rm -f conftest.i conftest2.i conftest.out 10502fi 10503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 10504$as_echo "$ac_cv_path_lt_DD" >&6; } 10505 10506 10507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 10508$as_echo_n "checking how to truncate binary pipes... " >&6; } 10509if ${lt_cv_truncate_bin+:} false; then : 10510 $as_echo_n "(cached) " >&6 10511else 10512 printf 0123456789abcdef0123456789abcdef >conftest.i 10513cat conftest.i conftest.i >conftest2.i 10514lt_cv_truncate_bin= 10515if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10516 cmp -s conftest.i conftest.out \ 10517 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 10518fi 10519rm -f conftest.i conftest2.i conftest.out 10520test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 10521fi 10522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 10523$as_echo "$lt_cv_truncate_bin" >&6; } 10524 10525 10526 10527 10528 10529 10530 10531# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 10532func_cc_basename () 10533{ 10534 for cc_temp in $*""; do 10535 case $cc_temp in 10536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10538 \-*) ;; 10539 *) break;; 10540 esac 10541 done 10542 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10543} 10544 10545# Check whether --enable-libtool-lock was given. 10546if test "${enable_libtool_lock+set}" = set; then : 10547 enableval=$enable_libtool_lock; 10548fi 10549 10550test no = "$enable_libtool_lock" || enable_libtool_lock=yes 10551 10552# Some flags need to be propagated to the compiler or linker for good 10553# libtool support. 10554case $host in 10555ia64-*-hpux*) 10556 # Find out what ABI is being produced by ac_compile, and set mode 10557 # options accordingly. 10558 echo 'int i;' > conftest.$ac_ext 10559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10560 (eval $ac_compile) 2>&5 10561 ac_status=$? 10562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10563 test $ac_status = 0; }; then 10564 case `/usr/bin/file conftest.$ac_objext` in 10565 *ELF-32*) 10566 HPUX_IA64_MODE=32 10567 ;; 10568 *ELF-64*) 10569 HPUX_IA64_MODE=64 10570 ;; 10571 esac 10572 fi 10573 rm -rf conftest* 10574 ;; 10575*-*-irix6*) 10576 # Find out what ABI is being produced by ac_compile, and set linker 10577 # options accordingly. 10578 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10580 (eval $ac_compile) 2>&5 10581 ac_status=$? 10582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10583 test $ac_status = 0; }; then 10584 if test yes = "$lt_cv_prog_gnu_ld"; then 10585 case `/usr/bin/file conftest.$ac_objext` in 10586 *32-bit*) 10587 LD="${LD-ld} -melf32bsmip" 10588 ;; 10589 *N32*) 10590 LD="${LD-ld} -melf32bmipn32" 10591 ;; 10592 *64-bit*) 10593 LD="${LD-ld} -melf64bmip" 10594 ;; 10595 esac 10596 else 10597 case `/usr/bin/file conftest.$ac_objext` in 10598 *32-bit*) 10599 LD="${LD-ld} -32" 10600 ;; 10601 *N32*) 10602 LD="${LD-ld} -n32" 10603 ;; 10604 *64-bit*) 10605 LD="${LD-ld} -64" 10606 ;; 10607 esac 10608 fi 10609 fi 10610 rm -rf conftest* 10611 ;; 10612 10613mips64*-*linux*) 10614 # Find out what ABI is being produced by ac_compile, and set linker 10615 # options accordingly. 10616 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10618 (eval $ac_compile) 2>&5 10619 ac_status=$? 10620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10621 test $ac_status = 0; }; then 10622 emul=elf 10623 case `/usr/bin/file conftest.$ac_objext` in 10624 *32-bit*) 10625 emul="${emul}32" 10626 ;; 10627 *64-bit*) 10628 emul="${emul}64" 10629 ;; 10630 esac 10631 case `/usr/bin/file conftest.$ac_objext` in 10632 *MSB*) 10633 emul="${emul}btsmip" 10634 ;; 10635 *LSB*) 10636 emul="${emul}ltsmip" 10637 ;; 10638 esac 10639 case `/usr/bin/file conftest.$ac_objext` in 10640 *N32*) 10641 emul="${emul}n32" 10642 ;; 10643 esac 10644 LD="${LD-ld} -m $emul" 10645 fi 10646 rm -rf conftest* 10647 ;; 10648 10649x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 10650s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10651 # Find out what ABI is being produced by ac_compile, and set linker 10652 # options accordingly. Note that the listed cases only cover the 10653 # situations where additional linker options are needed (such as when 10654 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 10655 # vice versa); the common cases where no linker options are needed do 10656 # not appear in the list. 10657 echo 'int i;' > conftest.$ac_ext 10658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10659 (eval $ac_compile) 2>&5 10660 ac_status=$? 10661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10662 test $ac_status = 0; }; then 10663 case `/usr/bin/file conftest.o` in 10664 *32-bit*) 10665 case $host in 10666 x86_64-*kfreebsd*-gnu) 10667 LD="${LD-ld} -m elf_i386_fbsd" 10668 ;; 10669 x86_64-*linux*) 10670 case `/usr/bin/file conftest.o` in 10671 *x86-64*) 10672 LD="${LD-ld} -m elf32_x86_64" 10673 ;; 10674 *) 10675 LD="${LD-ld} -m elf_i386" 10676 ;; 10677 esac 10678 ;; 10679 powerpc64le-*linux*) 10680 LD="${LD-ld} -m elf32lppclinux" 10681 ;; 10682 powerpc64-*linux*) 10683 LD="${LD-ld} -m elf32ppclinux" 10684 ;; 10685 s390x-*linux*) 10686 LD="${LD-ld} -m elf_s390" 10687 ;; 10688 sparc64-*linux*) 10689 LD="${LD-ld} -m elf32_sparc" 10690 ;; 10691 esac 10692 ;; 10693 *64-bit*) 10694 case $host in 10695 x86_64-*kfreebsd*-gnu) 10696 LD="${LD-ld} -m elf_x86_64_fbsd" 10697 ;; 10698 x86_64-*linux*) 10699 LD="${LD-ld} -m elf_x86_64" 10700 ;; 10701 powerpcle-*linux*) 10702 LD="${LD-ld} -m elf64lppc" 10703 ;; 10704 powerpc-*linux*) 10705 LD="${LD-ld} -m elf64ppc" 10706 ;; 10707 s390*-*linux*|s390*-*tpf*) 10708 LD="${LD-ld} -m elf64_s390" 10709 ;; 10710 sparc*-*linux*) 10711 LD="${LD-ld} -m elf64_sparc" 10712 ;; 10713 esac 10714 ;; 10715 esac 10716 fi 10717 rm -rf conftest* 10718 ;; 10719 10720*-*-sco3.2v5*) 10721 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10722 SAVE_CFLAGS=$CFLAGS 10723 CFLAGS="$CFLAGS -belf" 10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10725$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 10726if ${lt_cv_cc_needs_belf+:} false; then : 10727 $as_echo_n "(cached) " >&6 10728else 10729 ac_ext=c 10730ac_cpp='$CPP $CPPFLAGS' 10731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10733ac_compiler_gnu=$ac_cv_c_compiler_gnu 10734 10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10736/* end confdefs.h. */ 10737 10738int 10739main () 10740{ 10741 10742 ; 10743 return 0; 10744} 10745_ACEOF 10746if ac_fn_c_try_link "$LINENO"; then : 10747 lt_cv_cc_needs_belf=yes 10748else 10749 lt_cv_cc_needs_belf=no 10750fi 10751rm -f core conftest.err conftest.$ac_objext \ 10752 conftest$ac_exeext conftest.$ac_ext 10753 ac_ext=c 10754ac_cpp='$CPP $CPPFLAGS' 10755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10757ac_compiler_gnu=$ac_cv_c_compiler_gnu 10758 10759fi 10760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10761$as_echo "$lt_cv_cc_needs_belf" >&6; } 10762 if test yes != "$lt_cv_cc_needs_belf"; then 10763 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10764 CFLAGS=$SAVE_CFLAGS 10765 fi 10766 ;; 10767*-*solaris*) 10768 # Find out what ABI is being produced by ac_compile, and set linker 10769 # options accordingly. 10770 echo 'int i;' > conftest.$ac_ext 10771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10772 (eval $ac_compile) 2>&5 10773 ac_status=$? 10774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10775 test $ac_status = 0; }; then 10776 case `/usr/bin/file conftest.o` in 10777 *64-bit*) 10778 case $lt_cv_prog_gnu_ld in 10779 yes*) 10780 case $host in 10781 i?86-*-solaris*|x86_64-*-solaris*) 10782 LD="${LD-ld} -m elf_x86_64" 10783 ;; 10784 sparc*-*-solaris*) 10785 LD="${LD-ld} -m elf64_sparc" 10786 ;; 10787 esac 10788 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 10789 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 10790 LD=${LD-ld}_sol2 10791 fi 10792 ;; 10793 *) 10794 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10795 LD="${LD-ld} -64" 10796 fi 10797 ;; 10798 esac 10799 ;; 10800 esac 10801 fi 10802 rm -rf conftest* 10803 ;; 10804esac 10805 10806need_locks=$enable_libtool_lock 10807 10808if test -n "$ac_tool_prefix"; then 10809 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10810set dummy ${ac_tool_prefix}mt; ac_word=$2 10811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10812$as_echo_n "checking for $ac_word... " >&6; } 10813if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 10814 $as_echo_n "(cached) " >&6 10815else 10816 if test -n "$MANIFEST_TOOL"; then 10817 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10818else 10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10820for as_dir in $PATH 10821do 10822 IFS=$as_save_IFS 10823 test -z "$as_dir" && as_dir=. 10824 for ac_exec_ext in '' $ac_executable_extensions; do 10825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10826 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10828 break 2 10829 fi 10830done 10831 done 10832IFS=$as_save_IFS 10833 10834fi 10835fi 10836MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10837if test -n "$MANIFEST_TOOL"; then 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10839$as_echo "$MANIFEST_TOOL" >&6; } 10840else 10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10842$as_echo "no" >&6; } 10843fi 10844 10845 10846fi 10847if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10848 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10849 # Extract the first word of "mt", so it can be a program name with args. 10850set dummy mt; ac_word=$2 10851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10852$as_echo_n "checking for $ac_word... " >&6; } 10853if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 10854 $as_echo_n "(cached) " >&6 10855else 10856 if test -n "$ac_ct_MANIFEST_TOOL"; then 10857 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10858else 10859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10860for as_dir in $PATH 10861do 10862 IFS=$as_save_IFS 10863 test -z "$as_dir" && as_dir=. 10864 for ac_exec_ext in '' $ac_executable_extensions; do 10865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10866 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10868 break 2 10869 fi 10870done 10871 done 10872IFS=$as_save_IFS 10873 10874fi 10875fi 10876ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10877if test -n "$ac_ct_MANIFEST_TOOL"; then 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10879$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 10880else 10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10882$as_echo "no" >&6; } 10883fi 10884 10885 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10886 MANIFEST_TOOL=":" 10887 else 10888 case $cross_compiling:$ac_tool_warned in 10889yes:) 10890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10892ac_tool_warned=yes ;; 10893esac 10894 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10895 fi 10896else 10897 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10898fi 10899 10900test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10902$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10903if ${lt_cv_path_mainfest_tool+:} false; then : 10904 $as_echo_n "(cached) " >&6 10905else 10906 lt_cv_path_mainfest_tool=no 10907 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10908 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10909 cat conftest.err >&5 10910 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10911 lt_cv_path_mainfest_tool=yes 10912 fi 10913 rm -f conftest* 10914fi 10915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10916$as_echo "$lt_cv_path_mainfest_tool" >&6; } 10917if test yes != "$lt_cv_path_mainfest_tool"; then 10918 MANIFEST_TOOL=: 10919fi 10920 10921 10922 10923 10924 10925 10926 case $host_os in 10927 rhapsody* | darwin*) 10928 if test -n "$ac_tool_prefix"; then 10929 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10930set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10932$as_echo_n "checking for $ac_word... " >&6; } 10933if ${ac_cv_prog_DSYMUTIL+:} false; then : 10934 $as_echo_n "(cached) " >&6 10935else 10936 if test -n "$DSYMUTIL"; then 10937 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10938else 10939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10940for as_dir in $PATH 10941do 10942 IFS=$as_save_IFS 10943 test -z "$as_dir" && as_dir=. 10944 for ac_exec_ext in '' $ac_executable_extensions; do 10945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10946 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10948 break 2 10949 fi 10950done 10951 done 10952IFS=$as_save_IFS 10953 10954fi 10955fi 10956DSYMUTIL=$ac_cv_prog_DSYMUTIL 10957if test -n "$DSYMUTIL"; then 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10959$as_echo "$DSYMUTIL" >&6; } 10960else 10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10962$as_echo "no" >&6; } 10963fi 10964 10965 10966fi 10967if test -z "$ac_cv_prog_DSYMUTIL"; then 10968 ac_ct_DSYMUTIL=$DSYMUTIL 10969 # Extract the first word of "dsymutil", so it can be a program name with args. 10970set dummy dsymutil; ac_word=$2 10971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10972$as_echo_n "checking for $ac_word... " >&6; } 10973if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 10974 $as_echo_n "(cached) " >&6 10975else 10976 if test -n "$ac_ct_DSYMUTIL"; then 10977 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10978else 10979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10980for as_dir in $PATH 10981do 10982 IFS=$as_save_IFS 10983 test -z "$as_dir" && as_dir=. 10984 for ac_exec_ext in '' $ac_executable_extensions; do 10985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10986 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10988 break 2 10989 fi 10990done 10991 done 10992IFS=$as_save_IFS 10993 10994fi 10995fi 10996ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10997if test -n "$ac_ct_DSYMUTIL"; then 10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10999$as_echo "$ac_ct_DSYMUTIL" >&6; } 11000else 11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11002$as_echo "no" >&6; } 11003fi 11004 11005 if test "x$ac_ct_DSYMUTIL" = x; then 11006 DSYMUTIL=":" 11007 else 11008 case $cross_compiling:$ac_tool_warned in 11009yes:) 11010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11012ac_tool_warned=yes ;; 11013esac 11014 DSYMUTIL=$ac_ct_DSYMUTIL 11015 fi 11016else 11017 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 11018fi 11019 11020 if test -n "$ac_tool_prefix"; then 11021 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 11022set dummy ${ac_tool_prefix}nmedit; ac_word=$2 11023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11024$as_echo_n "checking for $ac_word... " >&6; } 11025if ${ac_cv_prog_NMEDIT+:} false; then : 11026 $as_echo_n "(cached) " >&6 11027else 11028 if test -n "$NMEDIT"; then 11029 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 11030else 11031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11032for as_dir in $PATH 11033do 11034 IFS=$as_save_IFS 11035 test -z "$as_dir" && as_dir=. 11036 for ac_exec_ext in '' $ac_executable_extensions; do 11037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11038 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 11039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11040 break 2 11041 fi 11042done 11043 done 11044IFS=$as_save_IFS 11045 11046fi 11047fi 11048NMEDIT=$ac_cv_prog_NMEDIT 11049if test -n "$NMEDIT"; then 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 11051$as_echo "$NMEDIT" >&6; } 11052else 11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11054$as_echo "no" >&6; } 11055fi 11056 11057 11058fi 11059if test -z "$ac_cv_prog_NMEDIT"; then 11060 ac_ct_NMEDIT=$NMEDIT 11061 # Extract the first word of "nmedit", so it can be a program name with args. 11062set dummy nmedit; ac_word=$2 11063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11064$as_echo_n "checking for $ac_word... " >&6; } 11065if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 11066 $as_echo_n "(cached) " >&6 11067else 11068 if test -n "$ac_ct_NMEDIT"; then 11069 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 11070else 11071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11072for as_dir in $PATH 11073do 11074 IFS=$as_save_IFS 11075 test -z "$as_dir" && as_dir=. 11076 for ac_exec_ext in '' $ac_executable_extensions; do 11077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11078 ac_cv_prog_ac_ct_NMEDIT="nmedit" 11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11080 break 2 11081 fi 11082done 11083 done 11084IFS=$as_save_IFS 11085 11086fi 11087fi 11088ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 11089if test -n "$ac_ct_NMEDIT"; then 11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 11091$as_echo "$ac_ct_NMEDIT" >&6; } 11092else 11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11094$as_echo "no" >&6; } 11095fi 11096 11097 if test "x$ac_ct_NMEDIT" = x; then 11098 NMEDIT=":" 11099 else 11100 case $cross_compiling:$ac_tool_warned in 11101yes:) 11102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11104ac_tool_warned=yes ;; 11105esac 11106 NMEDIT=$ac_ct_NMEDIT 11107 fi 11108else 11109 NMEDIT="$ac_cv_prog_NMEDIT" 11110fi 11111 11112 if test -n "$ac_tool_prefix"; then 11113 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 11114set dummy ${ac_tool_prefix}lipo; ac_word=$2 11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11116$as_echo_n "checking for $ac_word... " >&6; } 11117if ${ac_cv_prog_LIPO+:} false; then : 11118 $as_echo_n "(cached) " >&6 11119else 11120 if test -n "$LIPO"; then 11121 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 11122else 11123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11124for as_dir in $PATH 11125do 11126 IFS=$as_save_IFS 11127 test -z "$as_dir" && as_dir=. 11128 for ac_exec_ext in '' $ac_executable_extensions; do 11129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11130 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 11131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11132 break 2 11133 fi 11134done 11135 done 11136IFS=$as_save_IFS 11137 11138fi 11139fi 11140LIPO=$ac_cv_prog_LIPO 11141if test -n "$LIPO"; then 11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 11143$as_echo "$LIPO" >&6; } 11144else 11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11146$as_echo "no" >&6; } 11147fi 11148 11149 11150fi 11151if test -z "$ac_cv_prog_LIPO"; then 11152 ac_ct_LIPO=$LIPO 11153 # Extract the first word of "lipo", so it can be a program name with args. 11154set dummy lipo; ac_word=$2 11155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11156$as_echo_n "checking for $ac_word... " >&6; } 11157if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 11158 $as_echo_n "(cached) " >&6 11159else 11160 if test -n "$ac_ct_LIPO"; then 11161 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 11162else 11163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11164for as_dir in $PATH 11165do 11166 IFS=$as_save_IFS 11167 test -z "$as_dir" && as_dir=. 11168 for ac_exec_ext in '' $ac_executable_extensions; do 11169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11170 ac_cv_prog_ac_ct_LIPO="lipo" 11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11172 break 2 11173 fi 11174done 11175 done 11176IFS=$as_save_IFS 11177 11178fi 11179fi 11180ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 11181if test -n "$ac_ct_LIPO"; then 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 11183$as_echo "$ac_ct_LIPO" >&6; } 11184else 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11186$as_echo "no" >&6; } 11187fi 11188 11189 if test "x$ac_ct_LIPO" = x; then 11190 LIPO=":" 11191 else 11192 case $cross_compiling:$ac_tool_warned in 11193yes:) 11194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11196ac_tool_warned=yes ;; 11197esac 11198 LIPO=$ac_ct_LIPO 11199 fi 11200else 11201 LIPO="$ac_cv_prog_LIPO" 11202fi 11203 11204 if test -n "$ac_tool_prefix"; then 11205 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 11206set dummy ${ac_tool_prefix}otool; ac_word=$2 11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11208$as_echo_n "checking for $ac_word... " >&6; } 11209if ${ac_cv_prog_OTOOL+:} false; then : 11210 $as_echo_n "(cached) " >&6 11211else 11212 if test -n "$OTOOL"; then 11213 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 11214else 11215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11216for as_dir in $PATH 11217do 11218 IFS=$as_save_IFS 11219 test -z "$as_dir" && as_dir=. 11220 for ac_exec_ext in '' $ac_executable_extensions; do 11221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11222 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11224 break 2 11225 fi 11226done 11227 done 11228IFS=$as_save_IFS 11229 11230fi 11231fi 11232OTOOL=$ac_cv_prog_OTOOL 11233if test -n "$OTOOL"; then 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11235$as_echo "$OTOOL" >&6; } 11236else 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11238$as_echo "no" >&6; } 11239fi 11240 11241 11242fi 11243if test -z "$ac_cv_prog_OTOOL"; then 11244 ac_ct_OTOOL=$OTOOL 11245 # Extract the first word of "otool", so it can be a program name with args. 11246set dummy otool; ac_word=$2 11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11248$as_echo_n "checking for $ac_word... " >&6; } 11249if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 11250 $as_echo_n "(cached) " >&6 11251else 11252 if test -n "$ac_ct_OTOOL"; then 11253 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 11254else 11255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11256for as_dir in $PATH 11257do 11258 IFS=$as_save_IFS 11259 test -z "$as_dir" && as_dir=. 11260 for ac_exec_ext in '' $ac_executable_extensions; do 11261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11262 ac_cv_prog_ac_ct_OTOOL="otool" 11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11264 break 2 11265 fi 11266done 11267 done 11268IFS=$as_save_IFS 11269 11270fi 11271fi 11272ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 11273if test -n "$ac_ct_OTOOL"; then 11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 11275$as_echo "$ac_ct_OTOOL" >&6; } 11276else 11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11278$as_echo "no" >&6; } 11279fi 11280 11281 if test "x$ac_ct_OTOOL" = x; then 11282 OTOOL=":" 11283 else 11284 case $cross_compiling:$ac_tool_warned in 11285yes:) 11286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11288ac_tool_warned=yes ;; 11289esac 11290 OTOOL=$ac_ct_OTOOL 11291 fi 11292else 11293 OTOOL="$ac_cv_prog_OTOOL" 11294fi 11295 11296 if test -n "$ac_tool_prefix"; then 11297 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 11298set dummy ${ac_tool_prefix}otool64; ac_word=$2 11299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11300$as_echo_n "checking for $ac_word... " >&6; } 11301if ${ac_cv_prog_OTOOL64+:} false; then : 11302 $as_echo_n "(cached) " >&6 11303else 11304 if test -n "$OTOOL64"; then 11305 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 11306else 11307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11308for as_dir in $PATH 11309do 11310 IFS=$as_save_IFS 11311 test -z "$as_dir" && as_dir=. 11312 for ac_exec_ext in '' $ac_executable_extensions; do 11313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11314 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 11315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11316 break 2 11317 fi 11318done 11319 done 11320IFS=$as_save_IFS 11321 11322fi 11323fi 11324OTOOL64=$ac_cv_prog_OTOOL64 11325if test -n "$OTOOL64"; then 11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 11327$as_echo "$OTOOL64" >&6; } 11328else 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11330$as_echo "no" >&6; } 11331fi 11332 11333 11334fi 11335if test -z "$ac_cv_prog_OTOOL64"; then 11336 ac_ct_OTOOL64=$OTOOL64 11337 # Extract the first word of "otool64", so it can be a program name with args. 11338set dummy otool64; ac_word=$2 11339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11340$as_echo_n "checking for $ac_word... " >&6; } 11341if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 11342 $as_echo_n "(cached) " >&6 11343else 11344 if test -n "$ac_ct_OTOOL64"; then 11345 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 11346else 11347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11348for as_dir in $PATH 11349do 11350 IFS=$as_save_IFS 11351 test -z "$as_dir" && as_dir=. 11352 for ac_exec_ext in '' $ac_executable_extensions; do 11353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11354 ac_cv_prog_ac_ct_OTOOL64="otool64" 11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11356 break 2 11357 fi 11358done 11359 done 11360IFS=$as_save_IFS 11361 11362fi 11363fi 11364ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 11365if test -n "$ac_ct_OTOOL64"; then 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 11367$as_echo "$ac_ct_OTOOL64" >&6; } 11368else 11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11370$as_echo "no" >&6; } 11371fi 11372 11373 if test "x$ac_ct_OTOOL64" = x; then 11374 OTOOL64=":" 11375 else 11376 case $cross_compiling:$ac_tool_warned in 11377yes:) 11378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11380ac_tool_warned=yes ;; 11381esac 11382 OTOOL64=$ac_ct_OTOOL64 11383 fi 11384else 11385 OTOOL64="$ac_cv_prog_OTOOL64" 11386fi 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11415$as_echo_n "checking for -single_module linker flag... " >&6; } 11416if ${lt_cv_apple_cc_single_mod+:} false; then : 11417 $as_echo_n "(cached) " >&6 11418else 11419 lt_cv_apple_cc_single_mod=no 11420 if test -z "$LT_MULTI_MODULE"; then 11421 # By default we will add the -single_module flag. You can override 11422 # by either setting the environment variable LT_MULTI_MODULE 11423 # non-empty at configure time, or by adding -multi_module to the 11424 # link flags. 11425 rm -rf libconftest.dylib* 11426 echo "int foo(void){return 1;}" > conftest.c 11427 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11428-dynamiclib -Wl,-single_module conftest.c" >&5 11429 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11430 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11431 _lt_result=$? 11432 # If there is a non-empty error log, and "single_module" 11433 # appears in it, assume the flag caused a linker warning 11434 if test -s conftest.err && $GREP single_module conftest.err; then 11435 cat conftest.err >&5 11436 # Otherwise, if the output was created with a 0 exit code from 11437 # the compiler, it worked. 11438 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 11439 lt_cv_apple_cc_single_mod=yes 11440 else 11441 cat conftest.err >&5 11442 fi 11443 rm -rf libconftest.dylib* 11444 rm -f conftest.* 11445 fi 11446fi 11447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11448$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 11449 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11451$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 11452if ${lt_cv_ld_exported_symbols_list+:} false; then : 11453 $as_echo_n "(cached) " >&6 11454else 11455 lt_cv_ld_exported_symbols_list=no 11456 save_LDFLAGS=$LDFLAGS 11457 echo "_main" > conftest.sym 11458 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11460/* end confdefs.h. */ 11461 11462int 11463main () 11464{ 11465 11466 ; 11467 return 0; 11468} 11469_ACEOF 11470if ac_fn_c_try_link "$LINENO"; then : 11471 lt_cv_ld_exported_symbols_list=yes 11472else 11473 lt_cv_ld_exported_symbols_list=no 11474fi 11475rm -f core conftest.err conftest.$ac_objext \ 11476 conftest$ac_exeext conftest.$ac_ext 11477 LDFLAGS=$save_LDFLAGS 11478 11479fi 11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11481$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 11482 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11484$as_echo_n "checking for -force_load linker flag... " >&6; } 11485if ${lt_cv_ld_force_load+:} false; then : 11486 $as_echo_n "(cached) " >&6 11487else 11488 lt_cv_ld_force_load=no 11489 cat > conftest.c << _LT_EOF 11490int forced_loaded() { return 2;} 11491_LT_EOF 11492 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11493 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11494 echo "$AR cru libconftest.a conftest.o" >&5 11495 $AR cru libconftest.a conftest.o 2>&5 11496 echo "$RANLIB libconftest.a" >&5 11497 $RANLIB libconftest.a 2>&5 11498 cat > conftest.c << _LT_EOF 11499int main() { return 0;} 11500_LT_EOF 11501 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11502 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11503 _lt_result=$? 11504 if test -s conftest.err && $GREP force_load conftest.err; then 11505 cat conftest.err >&5 11506 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 11507 lt_cv_ld_force_load=yes 11508 else 11509 cat conftest.err >&5 11510 fi 11511 rm -f conftest.err libconftest.a conftest conftest.c 11512 rm -rf conftest.dSYM 11513 11514fi 11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11516$as_echo "$lt_cv_ld_force_load" >&6; } 11517 case $host_os in 11518 rhapsody* | darwin1.[012]) 11519 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 11520 darwin1.*) 11521 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11522 darwin*) # darwin 5.x on 11523 # if running on 10.5 or later, the deployment target defaults 11524 # to the OS version, if on x86, and 10.4, the deployment 11525 # target defaults to 10.4. Don't you love it? 11526 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 11527 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 11528 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11529 10.[012][,.]*) 11530 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11531 10.*) 11532 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11533 esac 11534 ;; 11535 esac 11536 if test yes = "$lt_cv_apple_cc_single_mod"; then 11537 _lt_dar_single_mod='$single_module' 11538 fi 11539 if test yes = "$lt_cv_ld_exported_symbols_list"; then 11540 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 11541 else 11542 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 11543 fi 11544 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 11545 _lt_dsymutil='~$DSYMUTIL $lib || :' 11546 else 11547 _lt_dsymutil= 11548 fi 11549 ;; 11550 esac 11551 11552# func_munge_path_list VARIABLE PATH 11553# ----------------------------------- 11554# VARIABLE is name of variable containing _space_ separated list of 11555# directories to be munged by the contents of PATH, which is string 11556# having a format: 11557# "DIR[:DIR]:" 11558# string "DIR[ DIR]" will be prepended to VARIABLE 11559# ":DIR[:DIR]" 11560# string "DIR[ DIR]" will be appended to VARIABLE 11561# "DIRP[:DIRP]::[DIRA:]DIRA" 11562# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 11563# "DIRA[ DIRA]" will be appended to VARIABLE 11564# "DIR[:DIR]" 11565# VARIABLE will be replaced by "DIR[ DIR]" 11566func_munge_path_list () 11567{ 11568 case x$2 in 11569 x) 11570 ;; 11571 *:) 11572 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 11573 ;; 11574 x:*) 11575 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 11576 ;; 11577 *::*) 11578 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 11579 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 11580 ;; 11581 *) 11582 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 11583 ;; 11584 esac 11585} 11586 11587 11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11589$as_echo_n "checking for ANSI C header files... " >&6; } 11590if ${ac_cv_header_stdc+:} false; then : 11591 $as_echo_n "(cached) " >&6 11592else 11593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11594/* end confdefs.h. */ 11595#include <stdlib.h> 11596#include <stdarg.h> 11597#include <string.h> 11598#include <float.h> 11599 11600int 11601main () 11602{ 11603 11604 ; 11605 return 0; 11606} 11607_ACEOF 11608if ac_fn_c_try_compile "$LINENO"; then : 11609 ac_cv_header_stdc=yes 11610else 11611 ac_cv_header_stdc=no 11612fi 11613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11614 11615if test $ac_cv_header_stdc = yes; then 11616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11618/* end confdefs.h. */ 11619#include <string.h> 11620 11621_ACEOF 11622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11623 $EGREP "memchr" >/dev/null 2>&1; then : 11624 11625else 11626 ac_cv_header_stdc=no 11627fi 11628rm -f conftest* 11629 11630fi 11631 11632if test $ac_cv_header_stdc = yes; then 11633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11635/* end confdefs.h. */ 11636#include <stdlib.h> 11637 11638_ACEOF 11639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11640 $EGREP "free" >/dev/null 2>&1; then : 11641 11642else 11643 ac_cv_header_stdc=no 11644fi 11645rm -f conftest* 11646 11647fi 11648 11649if test $ac_cv_header_stdc = yes; then 11650 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11651 if test "$cross_compiling" = yes; then : 11652 : 11653else 11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11655/* end confdefs.h. */ 11656#include <ctype.h> 11657#include <stdlib.h> 11658#if ((' ' & 0x0FF) == 0x020) 11659# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11660# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11661#else 11662# define ISLOWER(c) \ 11663 (('a' <= (c) && (c) <= 'i') \ 11664 || ('j' <= (c) && (c) <= 'r') \ 11665 || ('s' <= (c) && (c) <= 'z')) 11666# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11667#endif 11668 11669#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11670int 11671main () 11672{ 11673 int i; 11674 for (i = 0; i < 256; i++) 11675 if (XOR (islower (i), ISLOWER (i)) 11676 || toupper (i) != TOUPPER (i)) 11677 return 2; 11678 return 0; 11679} 11680_ACEOF 11681if ac_fn_c_try_run "$LINENO"; then : 11682 11683else 11684 ac_cv_header_stdc=no 11685fi 11686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11687 conftest.$ac_objext conftest.beam conftest.$ac_ext 11688fi 11689 11690fi 11691fi 11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11693$as_echo "$ac_cv_header_stdc" >&6; } 11694if test $ac_cv_header_stdc = yes; then 11695 11696$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11697 11698fi 11699 11700# On IRIX 5.3, sys/types and inttypes.h are conflicting. 11701for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 11702 inttypes.h stdint.h unistd.h 11703do : 11704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11705ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 11706" 11707if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11708 cat >>confdefs.h <<_ACEOF 11709#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11710_ACEOF 11711 11712fi 11713 11714done 11715 11716 11717for ac_header in dlfcn.h 11718do : 11719 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11720" 11721if test "x$ac_cv_header_dlfcn_h" = xyes; then : 11722 cat >>confdefs.h <<_ACEOF 11723#define HAVE_DLFCN_H 1 11724_ACEOF 11725 11726fi 11727 11728done 11729 11730 11731 11732func_stripname_cnf () 11733{ 11734 case $2 in 11735 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 11736 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 11737 esac 11738} # func_stripname_cnf 11739 11740 11741 11742 11743 11744# Set options 11745 11746 11747 11748 enable_dlopen=no 11749 11750 11751 enable_win32_dll=no 11752 11753 11754 # Check whether --enable-shared was given. 11755if test "${enable_shared+set}" = set; then : 11756 enableval=$enable_shared; p=${PACKAGE-default} 11757 case $enableval in 11758 yes) enable_shared=yes ;; 11759 no) enable_shared=no ;; 11760 *) 11761 enable_shared=no 11762 # Look at the argument we got. We use all the common list separators. 11763 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11764 for pkg in $enableval; do 11765 IFS=$lt_save_ifs 11766 if test "X$pkg" = "X$p"; then 11767 enable_shared=yes 11768 fi 11769 done 11770 IFS=$lt_save_ifs 11771 ;; 11772 esac 11773else 11774 enable_shared=yes 11775fi 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 # Check whether --enable-static was given. 11786if test "${enable_static+set}" = set; then : 11787 enableval=$enable_static; p=${PACKAGE-default} 11788 case $enableval in 11789 yes) enable_static=yes ;; 11790 no) enable_static=no ;; 11791 *) 11792 enable_static=no 11793 # Look at the argument we got. We use all the common list separators. 11794 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11795 for pkg in $enableval; do 11796 IFS=$lt_save_ifs 11797 if test "X$pkg" = "X$p"; then 11798 enable_static=yes 11799 fi 11800 done 11801 IFS=$lt_save_ifs 11802 ;; 11803 esac 11804else 11805 enable_static=yes 11806fi 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817# Check whether --with-pic was given. 11818if test "${with_pic+set}" = set; then : 11819 withval=$with_pic; lt_p=${PACKAGE-default} 11820 case $withval in 11821 yes|no) pic_mode=$withval ;; 11822 *) 11823 pic_mode=default 11824 # Look at the argument we got. We use all the common list separators. 11825 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11826 for lt_pkg in $withval; do 11827 IFS=$lt_save_ifs 11828 if test "X$lt_pkg" = "X$lt_p"; then 11829 pic_mode=yes 11830 fi 11831 done 11832 IFS=$lt_save_ifs 11833 ;; 11834 esac 11835else 11836 pic_mode=default 11837fi 11838 11839 11840 11841 11842 11843 11844 11845 11846 # Check whether --enable-fast-install was given. 11847if test "${enable_fast_install+set}" = set; then : 11848 enableval=$enable_fast_install; p=${PACKAGE-default} 11849 case $enableval in 11850 yes) enable_fast_install=yes ;; 11851 no) enable_fast_install=no ;; 11852 *) 11853 enable_fast_install=no 11854 # Look at the argument we got. We use all the common list separators. 11855 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11856 for pkg in $enableval; do 11857 IFS=$lt_save_ifs 11858 if test "X$pkg" = "X$p"; then 11859 enable_fast_install=yes 11860 fi 11861 done 11862 IFS=$lt_save_ifs 11863 ;; 11864 esac 11865else 11866 enable_fast_install=yes 11867fi 11868 11869 11870 11871 11872 11873 11874 11875 11876 shared_archive_member_spec= 11877case $host,$enable_shared in 11878power*-*-aix[5-9]*,yes) 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 11880$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 11881 11882# Check whether --with-aix-soname was given. 11883if test "${with_aix_soname+set}" = set; then : 11884 withval=$with_aix_soname; case $withval in 11885 aix|svr4|both) 11886 ;; 11887 *) 11888 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11889 ;; 11890 esac 11891 lt_cv_with_aix_soname=$with_aix_soname 11892else 11893 if ${lt_cv_with_aix_soname+:} false; then : 11894 $as_echo_n "(cached) " >&6 11895else 11896 lt_cv_with_aix_soname=aix 11897fi 11898 11899 with_aix_soname=$lt_cv_with_aix_soname 11900fi 11901 11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11903$as_echo "$with_aix_soname" >&6; } 11904 if test aix != "$with_aix_soname"; then 11905 # For the AIX way of multilib, we name the shared archive member 11906 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11907 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11908 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11909 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11910 if test 64 = "${OBJECT_MODE-32}"; then 11911 shared_archive_member_spec=shr_64 11912 else 11913 shared_archive_member_spec=shr 11914 fi 11915 fi 11916 ;; 11917*) 11918 with_aix_soname=aix 11919 ;; 11920esac 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931# This can be used to rebuild libtool when needed 11932LIBTOOL_DEPS=$ltmain 11933 11934# Always use our own libtool. 11935LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966test -z "$LN_S" && LN_S="ln -s" 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981if test -n "${ZSH_VERSION+set}"; then 11982 setopt NO_GLOB_SUBST 11983fi 11984 11985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11986$as_echo_n "checking for objdir... " >&6; } 11987if ${lt_cv_objdir+:} false; then : 11988 $as_echo_n "(cached) " >&6 11989else 11990 rm -f .libs 2>/dev/null 11991mkdir .libs 2>/dev/null 11992if test -d .libs; then 11993 lt_cv_objdir=.libs 11994else 11995 # MS-DOS does not allow filenames that begin with a dot. 11996 lt_cv_objdir=_libs 11997fi 11998rmdir .libs 2>/dev/null 11999fi 12000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 12001$as_echo "$lt_cv_objdir" >&6; } 12002objdir=$lt_cv_objdir 12003 12004 12005 12006 12007 12008cat >>confdefs.h <<_ACEOF 12009#define LT_OBJDIR "$lt_cv_objdir/" 12010_ACEOF 12011 12012 12013 12014 12015case $host_os in 12016aix3*) 12017 # AIX sometimes has problems with the GCC collect2 program. For some 12018 # reason, if we set the COLLECT_NAMES environment variable, the problems 12019 # vanish in a puff of smoke. 12020 if test set != "${COLLECT_NAMES+set}"; then 12021 COLLECT_NAMES= 12022 export COLLECT_NAMES 12023 fi 12024 ;; 12025esac 12026 12027# Global variables: 12028ofile=libtool 12029can_build_shared=yes 12030 12031# All known linkers require a '.a' archive for static linking (except MSVC, 12032# which needs '.lib'). 12033libext=a 12034 12035with_gnu_ld=$lt_cv_prog_gnu_ld 12036 12037old_CC=$CC 12038old_CFLAGS=$CFLAGS 12039 12040# Set sane defaults for various variables 12041test -z "$CC" && CC=cc 12042test -z "$LTCC" && LTCC=$CC 12043test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 12044test -z "$LD" && LD=ld 12045test -z "$ac_objext" && ac_objext=o 12046 12047func_cc_basename $compiler 12048cc_basename=$func_cc_basename_result 12049 12050 12051# Only perform the check for file, if the check method requires it 12052test -z "$MAGIC_CMD" && MAGIC_CMD=file 12053case $deplibs_check_method in 12054file_magic*) 12055 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 12057$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 12058if ${lt_cv_path_MAGIC_CMD+:} false; then : 12059 $as_echo_n "(cached) " >&6 12060else 12061 case $MAGIC_CMD in 12062[\\/*] | ?:[\\/]*) 12063 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 12064 ;; 12065*) 12066 lt_save_MAGIC_CMD=$MAGIC_CMD 12067 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12068 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12069 for ac_dir in $ac_dummy; do 12070 IFS=$lt_save_ifs 12071 test -z "$ac_dir" && ac_dir=. 12072 if test -f "$ac_dir/${ac_tool_prefix}file"; then 12073 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 12074 if test -n "$file_magic_test_file"; then 12075 case $deplibs_check_method in 12076 "file_magic "*) 12077 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12078 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12079 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12080 $EGREP "$file_magic_regex" > /dev/null; then 12081 : 12082 else 12083 cat <<_LT_EOF 1>&2 12084 12085*** Warning: the command libtool uses to detect shared libraries, 12086*** $file_magic_cmd, produces output that libtool cannot recognize. 12087*** The result is that libtool may fail to recognize shared libraries 12088*** as such. This will affect the creation of libtool libraries that 12089*** depend on shared libraries, but programs linked with such libtool 12090*** libraries will work regardless of this problem. Nevertheless, you 12091*** may want to report the problem to your system manager and/or to 12092*** bug-libtool@gnu.org 12093 12094_LT_EOF 12095 fi ;; 12096 esac 12097 fi 12098 break 12099 fi 12100 done 12101 IFS=$lt_save_ifs 12102 MAGIC_CMD=$lt_save_MAGIC_CMD 12103 ;; 12104esac 12105fi 12106 12107MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12108if test -n "$MAGIC_CMD"; then 12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12110$as_echo "$MAGIC_CMD" >&6; } 12111else 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12113$as_echo "no" >&6; } 12114fi 12115 12116 12117 12118 12119 12120if test -z "$lt_cv_path_MAGIC_CMD"; then 12121 if test -n "$ac_tool_prefix"; then 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 12123$as_echo_n "checking for file... " >&6; } 12124if ${lt_cv_path_MAGIC_CMD+:} false; then : 12125 $as_echo_n "(cached) " >&6 12126else 12127 case $MAGIC_CMD in 12128[\\/*] | ?:[\\/]*) 12129 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 12130 ;; 12131*) 12132 lt_save_MAGIC_CMD=$MAGIC_CMD 12133 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12134 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12135 for ac_dir in $ac_dummy; do 12136 IFS=$lt_save_ifs 12137 test -z "$ac_dir" && ac_dir=. 12138 if test -f "$ac_dir/file"; then 12139 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 12140 if test -n "$file_magic_test_file"; then 12141 case $deplibs_check_method in 12142 "file_magic "*) 12143 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12144 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12145 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12146 $EGREP "$file_magic_regex" > /dev/null; then 12147 : 12148 else 12149 cat <<_LT_EOF 1>&2 12150 12151*** Warning: the command libtool uses to detect shared libraries, 12152*** $file_magic_cmd, produces output that libtool cannot recognize. 12153*** The result is that libtool may fail to recognize shared libraries 12154*** as such. This will affect the creation of libtool libraries that 12155*** depend on shared libraries, but programs linked with such libtool 12156*** libraries will work regardless of this problem. Nevertheless, you 12157*** may want to report the problem to your system manager and/or to 12158*** bug-libtool@gnu.org 12159 12160_LT_EOF 12161 fi ;; 12162 esac 12163 fi 12164 break 12165 fi 12166 done 12167 IFS=$lt_save_ifs 12168 MAGIC_CMD=$lt_save_MAGIC_CMD 12169 ;; 12170esac 12171fi 12172 12173MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12174if test -n "$MAGIC_CMD"; then 12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12176$as_echo "$MAGIC_CMD" >&6; } 12177else 12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12179$as_echo "no" >&6; } 12180fi 12181 12182 12183 else 12184 MAGIC_CMD=: 12185 fi 12186fi 12187 12188 fi 12189 ;; 12190esac 12191 12192# Use C for the default configuration in the libtool script 12193 12194lt_save_CC=$CC 12195ac_ext=c 12196ac_cpp='$CPP $CPPFLAGS' 12197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12199ac_compiler_gnu=$ac_cv_c_compiler_gnu 12200 12201 12202# Source file extension for C test sources. 12203ac_ext=c 12204 12205# Object file extension for compiled C test sources. 12206objext=o 12207objext=$objext 12208 12209# Code to be used in simple compile tests 12210lt_simple_compile_test_code="int some_variable = 0;" 12211 12212# Code to be used in simple link tests 12213lt_simple_link_test_code='int main(){return(0);}' 12214 12215 12216 12217 12218 12219 12220 12221# If no C compiler was specified, use CC. 12222LTCC=${LTCC-"$CC"} 12223 12224# If no C compiler flags were specified, use CFLAGS. 12225LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12226 12227# Allow CC to be a program name with arguments. 12228compiler=$CC 12229 12230# Save the default compiler, since it gets overwritten when the other 12231# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 12232compiler_DEFAULT=$CC 12233 12234# save warnings/boilerplate of simple test code 12235ac_outfile=conftest.$ac_objext 12236echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12237eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12238_lt_compiler_boilerplate=`cat conftest.err` 12239$RM conftest* 12240 12241ac_outfile=conftest.$ac_objext 12242echo "$lt_simple_link_test_code" >conftest.$ac_ext 12243eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12244_lt_linker_boilerplate=`cat conftest.err` 12245$RM -r conftest* 12246 12247 12248## CAVEAT EMPTOR: 12249## There is no encapsulation within the following macros, do not change 12250## the running order or otherwise move them around unless you know exactly 12251## what you are doing... 12252if test -n "$compiler"; then 12253 12254lt_prog_compiler_no_builtin_flag= 12255 12256if test yes = "$GCC"; then 12257 case $cc_basename in 12258 nvcc*) 12259 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 12260 *) 12261 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 12262 esac 12263 12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 12265$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 12266if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 12267 $as_echo_n "(cached) " >&6 12268else 12269 lt_cv_prog_compiler_rtti_exceptions=no 12270 ac_outfile=conftest.$ac_objext 12271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12272 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 12273 # Insert the option either (1) after the last *FLAGS variable, or 12274 # (2) before a word containing "conftest.", or (3) at the end. 12275 # Note that $ac_compile itself does not contain backslashes and begins 12276 # with a dollar sign (not a hyphen), so the echo should work correctly. 12277 # The option is referenced via a variable to avoid confusing sed. 12278 lt_compile=`echo "$ac_compile" | $SED \ 12279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12281 -e 's:$: $lt_compiler_flag:'` 12282 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12283 (eval "$lt_compile" 2>conftest.err) 12284 ac_status=$? 12285 cat conftest.err >&5 12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12287 if (exit $ac_status) && test -s "$ac_outfile"; then 12288 # The compiler can only warn and ignore the option if not recognized 12289 # So say no if there are warnings other than the usual output. 12290 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12292 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12293 lt_cv_prog_compiler_rtti_exceptions=yes 12294 fi 12295 fi 12296 $RM conftest* 12297 12298fi 12299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 12300$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 12301 12302if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 12303 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 12304else 12305 : 12306fi 12307 12308fi 12309 12310 12311 12312 12313 12314 12315 lt_prog_compiler_wl= 12316lt_prog_compiler_pic= 12317lt_prog_compiler_static= 12318 12319 12320 if test yes = "$GCC"; then 12321 lt_prog_compiler_wl='-Wl,' 12322 lt_prog_compiler_static='-static' 12323 12324 case $host_os in 12325 aix*) 12326 # All AIX code is PIC. 12327 if test ia64 = "$host_cpu"; then 12328 # AIX 5 now supports IA64 processor 12329 lt_prog_compiler_static='-Bstatic' 12330 fi 12331 lt_prog_compiler_pic='-fPIC' 12332 ;; 12333 12334 amigaos*) 12335 case $host_cpu in 12336 powerpc) 12337 # see comment about AmigaOS4 .so support 12338 lt_prog_compiler_pic='-fPIC' 12339 ;; 12340 m68k) 12341 # FIXME: we need at least 68020 code to build shared libraries, but 12342 # adding the '-m68020' flag to GCC prevents building anything better, 12343 # like '-m68040'. 12344 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12345 ;; 12346 esac 12347 ;; 12348 12349 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12350 # PIC is the default for these OSes. 12351 ;; 12352 12353 mingw* | cygwin* | pw32* | os2* | cegcc*) 12354 # This hack is so that the source file can tell whether it is being 12355 # built for inclusion in a dll (and should export symbols for example). 12356 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12357 # (--disable-auto-import) libraries 12358 lt_prog_compiler_pic='-DDLL_EXPORT' 12359 case $host_os in 12360 os2*) 12361 lt_prog_compiler_static='$wl-static' 12362 ;; 12363 esac 12364 ;; 12365 12366 darwin* | rhapsody*) 12367 # PIC is the default on this platform 12368 # Common symbols not allowed in MH_DYLIB files 12369 lt_prog_compiler_pic='-fno-common' 12370 ;; 12371 12372 haiku*) 12373 # PIC is the default for Haiku. 12374 # The "-static" flag exists, but is broken. 12375 lt_prog_compiler_static= 12376 ;; 12377 12378 hpux*) 12379 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12380 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12381 # sets the default TLS model and affects inlining. 12382 case $host_cpu in 12383 hppa*64*) 12384 # +Z the default 12385 ;; 12386 *) 12387 lt_prog_compiler_pic='-fPIC' 12388 ;; 12389 esac 12390 ;; 12391 12392 interix[3-9]*) 12393 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12394 # Instead, we relocate shared libraries at runtime. 12395 ;; 12396 12397 msdosdjgpp*) 12398 # Just because we use GCC doesn't mean we suddenly get shared libraries 12399 # on systems that don't support them. 12400 lt_prog_compiler_can_build_shared=no 12401 enable_shared=no 12402 ;; 12403 12404 *nto* | *qnx*) 12405 # QNX uses GNU C++, but need to define -shared option too, otherwise 12406 # it will coredump. 12407 lt_prog_compiler_pic='-fPIC -shared' 12408 ;; 12409 12410 sysv4*MP*) 12411 if test -d /usr/nec; then 12412 lt_prog_compiler_pic=-Kconform_pic 12413 fi 12414 ;; 12415 12416 *) 12417 lt_prog_compiler_pic='-fPIC' 12418 ;; 12419 esac 12420 12421 case $cc_basename in 12422 nvcc*) # Cuda Compiler Driver 2.2 12423 lt_prog_compiler_wl='-Xlinker ' 12424 if test -n "$lt_prog_compiler_pic"; then 12425 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12426 fi 12427 ;; 12428 esac 12429 else 12430 # PORTME Check for flag to pass linker flags through the system compiler. 12431 case $host_os in 12432 aix*) 12433 lt_prog_compiler_wl='-Wl,' 12434 if test ia64 = "$host_cpu"; then 12435 # AIX 5 now supports IA64 processor 12436 lt_prog_compiler_static='-Bstatic' 12437 else 12438 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12439 fi 12440 ;; 12441 12442 darwin* | rhapsody*) 12443 # PIC is the default on this platform 12444 # Common symbols not allowed in MH_DYLIB files 12445 lt_prog_compiler_pic='-fno-common' 12446 case $cc_basename in 12447 nagfor*) 12448 # NAG Fortran compiler 12449 lt_prog_compiler_wl='-Wl,-Wl,,' 12450 lt_prog_compiler_pic='-PIC' 12451 lt_prog_compiler_static='-Bstatic' 12452 ;; 12453 esac 12454 ;; 12455 12456 mingw* | cygwin* | pw32* | os2* | cegcc*) 12457 # This hack is so that the source file can tell whether it is being 12458 # built for inclusion in a dll (and should export symbols for example). 12459 lt_prog_compiler_pic='-DDLL_EXPORT' 12460 case $host_os in 12461 os2*) 12462 lt_prog_compiler_static='$wl-static' 12463 ;; 12464 esac 12465 ;; 12466 12467 hpux9* | hpux10* | hpux11*) 12468 lt_prog_compiler_wl='-Wl,' 12469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12470 # not for PA HP-UX. 12471 case $host_cpu in 12472 hppa*64*|ia64*) 12473 # +Z the default 12474 ;; 12475 *) 12476 lt_prog_compiler_pic='+Z' 12477 ;; 12478 esac 12479 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12480 lt_prog_compiler_static='$wl-a ${wl}archive' 12481 ;; 12482 12483 irix5* | irix6* | nonstopux*) 12484 lt_prog_compiler_wl='-Wl,' 12485 # PIC (with -KPIC) is the default. 12486 lt_prog_compiler_static='-non_shared' 12487 ;; 12488 12489 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12490 case $cc_basename in 12491 # old Intel for x86_64, which still supported -KPIC. 12492 ecc*) 12493 lt_prog_compiler_wl='-Wl,' 12494 lt_prog_compiler_pic='-KPIC' 12495 lt_prog_compiler_static='-static' 12496 ;; 12497 # icc used to be incompatible with GCC. 12498 # ICC 10 doesn't accept -KPIC any more. 12499 icc* | ifort*) 12500 lt_prog_compiler_wl='-Wl,' 12501 lt_prog_compiler_pic='-fPIC' 12502 lt_prog_compiler_static='-static' 12503 ;; 12504 # Lahey Fortran 8.1. 12505 lf95*) 12506 lt_prog_compiler_wl='-Wl,' 12507 lt_prog_compiler_pic='--shared' 12508 lt_prog_compiler_static='--static' 12509 ;; 12510 nagfor*) 12511 # NAG Fortran compiler 12512 lt_prog_compiler_wl='-Wl,-Wl,,' 12513 lt_prog_compiler_pic='-PIC' 12514 lt_prog_compiler_static='-Bstatic' 12515 ;; 12516 tcc*) 12517 # Fabrice Bellard et al's Tiny C Compiler 12518 lt_prog_compiler_wl='-Wl,' 12519 lt_prog_compiler_pic='-fPIC' 12520 lt_prog_compiler_static='-static' 12521 ;; 12522 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12523 # Portland Group compilers (*not* the Pentium gcc compiler, 12524 # which looks to be a dead project) 12525 lt_prog_compiler_wl='-Wl,' 12526 lt_prog_compiler_pic='-fpic' 12527 lt_prog_compiler_static='-Bstatic' 12528 ;; 12529 ccc*) 12530 lt_prog_compiler_wl='-Wl,' 12531 # All Alpha code is PIC. 12532 lt_prog_compiler_static='-non_shared' 12533 ;; 12534 xl* | bgxl* | bgf* | mpixl*) 12535 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12536 lt_prog_compiler_wl='-Wl,' 12537 lt_prog_compiler_pic='-qpic' 12538 lt_prog_compiler_static='-qstaticlink' 12539 ;; 12540 *) 12541 case `$CC -V 2>&1 | sed 5q` in 12542 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12543 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12544 lt_prog_compiler_pic='-KPIC' 12545 lt_prog_compiler_static='-Bstatic' 12546 lt_prog_compiler_wl='' 12547 ;; 12548 *Sun\ F* | *Sun*Fortran*) 12549 lt_prog_compiler_pic='-KPIC' 12550 lt_prog_compiler_static='-Bstatic' 12551 lt_prog_compiler_wl='-Qoption ld ' 12552 ;; 12553 *Sun\ C*) 12554 # Sun C 5.9 12555 lt_prog_compiler_pic='-KPIC' 12556 lt_prog_compiler_static='-Bstatic' 12557 lt_prog_compiler_wl='-Wl,' 12558 ;; 12559 *Intel*\ [CF]*Compiler*) 12560 lt_prog_compiler_wl='-Wl,' 12561 lt_prog_compiler_pic='-fPIC' 12562 lt_prog_compiler_static='-static' 12563 ;; 12564 *Portland\ Group*) 12565 lt_prog_compiler_wl='-Wl,' 12566 lt_prog_compiler_pic='-fpic' 12567 lt_prog_compiler_static='-Bstatic' 12568 ;; 12569 esac 12570 ;; 12571 esac 12572 ;; 12573 12574 newsos6) 12575 lt_prog_compiler_pic='-KPIC' 12576 lt_prog_compiler_static='-Bstatic' 12577 ;; 12578 12579 *nto* | *qnx*) 12580 # QNX uses GNU C++, but need to define -shared option too, otherwise 12581 # it will coredump. 12582 lt_prog_compiler_pic='-fPIC -shared' 12583 ;; 12584 12585 osf3* | osf4* | osf5*) 12586 lt_prog_compiler_wl='-Wl,' 12587 # All OSF/1 code is PIC. 12588 lt_prog_compiler_static='-non_shared' 12589 ;; 12590 12591 rdos*) 12592 lt_prog_compiler_static='-non_shared' 12593 ;; 12594 12595 solaris*) 12596 lt_prog_compiler_pic='-KPIC' 12597 lt_prog_compiler_static='-Bstatic' 12598 case $cc_basename in 12599 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12600 lt_prog_compiler_wl='-Qoption ld ';; 12601 *) 12602 lt_prog_compiler_wl='-Wl,';; 12603 esac 12604 ;; 12605 12606 sunos4*) 12607 lt_prog_compiler_wl='-Qoption ld ' 12608 lt_prog_compiler_pic='-PIC' 12609 lt_prog_compiler_static='-Bstatic' 12610 ;; 12611 12612 sysv4 | sysv4.2uw2* | sysv4.3*) 12613 lt_prog_compiler_wl='-Wl,' 12614 lt_prog_compiler_pic='-KPIC' 12615 lt_prog_compiler_static='-Bstatic' 12616 ;; 12617 12618 sysv4*MP*) 12619 if test -d /usr/nec; then 12620 lt_prog_compiler_pic='-Kconform_pic' 12621 lt_prog_compiler_static='-Bstatic' 12622 fi 12623 ;; 12624 12625 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12626 lt_prog_compiler_wl='-Wl,' 12627 lt_prog_compiler_pic='-KPIC' 12628 lt_prog_compiler_static='-Bstatic' 12629 ;; 12630 12631 unicos*) 12632 lt_prog_compiler_wl='-Wl,' 12633 lt_prog_compiler_can_build_shared=no 12634 ;; 12635 12636 uts4*) 12637 lt_prog_compiler_pic='-pic' 12638 lt_prog_compiler_static='-Bstatic' 12639 ;; 12640 12641 *) 12642 lt_prog_compiler_can_build_shared=no 12643 ;; 12644 esac 12645 fi 12646 12647case $host_os in 12648 # For platforms that do not support PIC, -DPIC is meaningless: 12649 *djgpp*) 12650 lt_prog_compiler_pic= 12651 ;; 12652 *) 12653 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12654 ;; 12655esac 12656 12657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12658$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12659if ${lt_cv_prog_compiler_pic+:} false; then : 12660 $as_echo_n "(cached) " >&6 12661else 12662 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 12663fi 12664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12665$as_echo "$lt_cv_prog_compiler_pic" >&6; } 12666lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12667 12668# 12669# Check to make sure the PIC flag actually works. 12670# 12671if test -n "$lt_prog_compiler_pic"; then 12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12673$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12674if ${lt_cv_prog_compiler_pic_works+:} false; then : 12675 $as_echo_n "(cached) " >&6 12676else 12677 lt_cv_prog_compiler_pic_works=no 12678 ac_outfile=conftest.$ac_objext 12679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12680 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12681 # Insert the option either (1) after the last *FLAGS variable, or 12682 # (2) before a word containing "conftest.", or (3) at the end. 12683 # Note that $ac_compile itself does not contain backslashes and begins 12684 # with a dollar sign (not a hyphen), so the echo should work correctly. 12685 # The option is referenced via a variable to avoid confusing sed. 12686 lt_compile=`echo "$ac_compile" | $SED \ 12687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12689 -e 's:$: $lt_compiler_flag:'` 12690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12691 (eval "$lt_compile" 2>conftest.err) 12692 ac_status=$? 12693 cat conftest.err >&5 12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12695 if (exit $ac_status) && test -s "$ac_outfile"; then 12696 # The compiler can only warn and ignore the option if not recognized 12697 # So say no if there are warnings other than the usual output. 12698 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12700 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12701 lt_cv_prog_compiler_pic_works=yes 12702 fi 12703 fi 12704 $RM conftest* 12705 12706fi 12707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12708$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 12709 12710if test yes = "$lt_cv_prog_compiler_pic_works"; then 12711 case $lt_prog_compiler_pic in 12712 "" | " "*) ;; 12713 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12714 esac 12715else 12716 lt_prog_compiler_pic= 12717 lt_prog_compiler_can_build_shared=no 12718fi 12719 12720fi 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732# 12733# Check to make sure the static flag actually works. 12734# 12735wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12737$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12738if ${lt_cv_prog_compiler_static_works+:} false; then : 12739 $as_echo_n "(cached) " >&6 12740else 12741 lt_cv_prog_compiler_static_works=no 12742 save_LDFLAGS=$LDFLAGS 12743 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12744 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12745 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12746 # The linker can only warn and ignore the option if not recognized 12747 # So say no if there are warnings 12748 if test -s conftest.err; then 12749 # Append any errors to the config.log. 12750 cat conftest.err 1>&5 12751 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12753 if diff conftest.exp conftest.er2 >/dev/null; then 12754 lt_cv_prog_compiler_static_works=yes 12755 fi 12756 else 12757 lt_cv_prog_compiler_static_works=yes 12758 fi 12759 fi 12760 $RM -r conftest* 12761 LDFLAGS=$save_LDFLAGS 12762 12763fi 12764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12765$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 12766 12767if test yes = "$lt_cv_prog_compiler_static_works"; then 12768 : 12769else 12770 lt_prog_compiler_static= 12771fi 12772 12773 12774 12775 12776 12777 12778 12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12780$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12781if ${lt_cv_prog_compiler_c_o+:} false; then : 12782 $as_echo_n "(cached) " >&6 12783else 12784 lt_cv_prog_compiler_c_o=no 12785 $RM -r conftest 2>/dev/null 12786 mkdir conftest 12787 cd conftest 12788 mkdir out 12789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12790 12791 lt_compiler_flag="-o out/conftest2.$ac_objext" 12792 # Insert the option either (1) after the last *FLAGS variable, or 12793 # (2) before a word containing "conftest.", or (3) at the end. 12794 # Note that $ac_compile itself does not contain backslashes and begins 12795 # with a dollar sign (not a hyphen), so the echo should work correctly. 12796 lt_compile=`echo "$ac_compile" | $SED \ 12797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12799 -e 's:$: $lt_compiler_flag:'` 12800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12801 (eval "$lt_compile" 2>out/conftest.err) 12802 ac_status=$? 12803 cat out/conftest.err >&5 12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12805 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12806 then 12807 # The compiler can only warn and ignore the option if not recognized 12808 # So say no if there are warnings 12809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12812 lt_cv_prog_compiler_c_o=yes 12813 fi 12814 fi 12815 chmod u+w . 2>&5 12816 $RM conftest* 12817 # SGI C++ compiler will create directory out/ii_files/ for 12818 # template instantiation 12819 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12820 $RM out/* && rmdir out 12821 cd .. 12822 $RM -r conftest 12823 $RM conftest* 12824 12825fi 12826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12827$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12828 12829 12830 12831 12832 12833 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12835$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12836if ${lt_cv_prog_compiler_c_o+:} false; then : 12837 $as_echo_n "(cached) " >&6 12838else 12839 lt_cv_prog_compiler_c_o=no 12840 $RM -r conftest 2>/dev/null 12841 mkdir conftest 12842 cd conftest 12843 mkdir out 12844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12845 12846 lt_compiler_flag="-o out/conftest2.$ac_objext" 12847 # Insert the option either (1) after the last *FLAGS variable, or 12848 # (2) before a word containing "conftest.", or (3) at the end. 12849 # Note that $ac_compile itself does not contain backslashes and begins 12850 # with a dollar sign (not a hyphen), so the echo should work correctly. 12851 lt_compile=`echo "$ac_compile" | $SED \ 12852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12854 -e 's:$: $lt_compiler_flag:'` 12855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12856 (eval "$lt_compile" 2>out/conftest.err) 12857 ac_status=$? 12858 cat out/conftest.err >&5 12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12860 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12861 then 12862 # The compiler can only warn and ignore the option if not recognized 12863 # So say no if there are warnings 12864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12865 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12866 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12867 lt_cv_prog_compiler_c_o=yes 12868 fi 12869 fi 12870 chmod u+w . 2>&5 12871 $RM conftest* 12872 # SGI C++ compiler will create directory out/ii_files/ for 12873 # template instantiation 12874 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12875 $RM out/* && rmdir out 12876 cd .. 12877 $RM -r conftest 12878 $RM conftest* 12879 12880fi 12881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12882$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12883 12884 12885 12886 12887hard_links=nottested 12888if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12889 # do not overwrite the value of need_locks provided by the user 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12891$as_echo_n "checking if we can lock with hard links... " >&6; } 12892 hard_links=yes 12893 $RM conftest* 12894 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12895 touch conftest.a 12896 ln conftest.a conftest.b 2>&5 || hard_links=no 12897 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12899$as_echo "$hard_links" >&6; } 12900 if test no = "$hard_links"; then 12901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12902$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12903 need_locks=warn 12904 fi 12905else 12906 need_locks=no 12907fi 12908 12909 12910 12911 12912 12913 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12915$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12916 12917 runpath_var= 12918 allow_undefined_flag= 12919 always_export_symbols=no 12920 archive_cmds= 12921 archive_expsym_cmds= 12922 compiler_needs_object=no 12923 enable_shared_with_static_runtimes=no 12924 export_dynamic_flag_spec= 12925 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12926 hardcode_automatic=no 12927 hardcode_direct=no 12928 hardcode_direct_absolute=no 12929 hardcode_libdir_flag_spec= 12930 hardcode_libdir_separator= 12931 hardcode_minus_L=no 12932 hardcode_shlibpath_var=unsupported 12933 inherit_rpath=no 12934 link_all_deplibs=unknown 12935 module_cmds= 12936 module_expsym_cmds= 12937 old_archive_from_new_cmds= 12938 old_archive_from_expsyms_cmds= 12939 thread_safe_flag_spec= 12940 whole_archive_flag_spec= 12941 # include_expsyms should be a list of space-separated symbols to be *always* 12942 # included in the symbol list 12943 include_expsyms= 12944 # exclude_expsyms can be an extended regexp of symbols to exclude 12945 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12946 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12947 # as well as any symbol that contains 'd'. 12948 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12949 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12950 # platforms (ab)use it in PIC code, but their linkers get confused if 12951 # the symbol is explicitly referenced. Since portable code cannot 12952 # rely on this symbol name, it's probably fine to never include it in 12953 # preloaded symbol tables. 12954 # Exclude shared library initialization/finalization symbols. 12955 extract_expsyms_cmds= 12956 12957 case $host_os in 12958 cygwin* | mingw* | pw32* | cegcc*) 12959 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12960 # When not using gcc, we currently assume that we are using 12961 # Microsoft Visual C++. 12962 if test yes != "$GCC"; then 12963 with_gnu_ld=no 12964 fi 12965 ;; 12966 interix*) 12967 # we just hope/assume this is gcc and not c89 (= MSVC++) 12968 with_gnu_ld=yes 12969 ;; 12970 openbsd* | bitrig*) 12971 with_gnu_ld=no 12972 ;; 12973 linux* | k*bsd*-gnu | gnu*) 12974 link_all_deplibs=no 12975 ;; 12976 esac 12977 12978 ld_shlibs=yes 12979 12980 # On some targets, GNU ld is compatible enough with the native linker 12981 # that we're better off using the native interface for both. 12982 lt_use_gnu_ld_interface=no 12983 if test yes = "$with_gnu_ld"; then 12984 case $host_os in 12985 aix*) 12986 # The AIX port of GNU ld has always aspired to compatibility 12987 # with the native linker. However, as the warning in the GNU ld 12988 # block says, versions before 2.19.5* couldn't really create working 12989 # shared libraries, regardless of the interface used. 12990 case `$LD -v 2>&1` in 12991 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12992 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12993 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12994 *) 12995 lt_use_gnu_ld_interface=yes 12996 ;; 12997 esac 12998 ;; 12999 *) 13000 lt_use_gnu_ld_interface=yes 13001 ;; 13002 esac 13003 fi 13004 13005 if test yes = "$lt_use_gnu_ld_interface"; then 13006 # If archive_cmds runs LD, not CC, wlarc should be empty 13007 wlarc='$wl' 13008 13009 # Set some defaults for GNU ld with shared library support. These 13010 # are reset later if shared libraries are not supported. Putting them 13011 # here allows them to be overridden if necessary. 13012 runpath_var=LD_RUN_PATH 13013 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13014 export_dynamic_flag_spec='$wl--export-dynamic' 13015 # ancient GNU ld didn't support --whole-archive et. al. 13016 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 13017 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13018 else 13019 whole_archive_flag_spec= 13020 fi 13021 supports_anon_versioning=no 13022 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 13023 *GNU\ gold*) supports_anon_versioning=yes ;; 13024 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13025 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13026 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13027 *\ 2.11.*) ;; # other 2.11 versions 13028 *) supports_anon_versioning=yes ;; 13029 esac 13030 13031 # See if GNU ld supports shared libraries. 13032 case $host_os in 13033 aix[3-9]*) 13034 # On AIX/PPC, the GNU linker is very broken 13035 if test ia64 != "$host_cpu"; then 13036 ld_shlibs=no 13037 cat <<_LT_EOF 1>&2 13038 13039*** Warning: the GNU linker, at least up to release 2.19, is reported 13040*** to be unable to reliably create shared libraries on AIX. 13041*** Therefore, libtool is disabling shared libraries support. If you 13042*** really care for shared libraries, you may want to install binutils 13043*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 13044*** You will then need to restart the configuration process. 13045 13046_LT_EOF 13047 fi 13048 ;; 13049 13050 amigaos*) 13051 case $host_cpu in 13052 powerpc) 13053 # see comment about AmigaOS4 .so support 13054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13055 archive_expsym_cmds='' 13056 ;; 13057 m68k) 13058 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)' 13059 hardcode_libdir_flag_spec='-L$libdir' 13060 hardcode_minus_L=yes 13061 ;; 13062 esac 13063 ;; 13064 13065 beos*) 13066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13067 allow_undefined_flag=unsupported 13068 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13069 # support --undefined. This deserves some investigation. FIXME 13070 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13071 else 13072 ld_shlibs=no 13073 fi 13074 ;; 13075 13076 cygwin* | mingw* | pw32* | cegcc*) 13077 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 13078 # as there is no search path for DLLs. 13079 hardcode_libdir_flag_spec='-L$libdir' 13080 export_dynamic_flag_spec='$wl--export-all-symbols' 13081 allow_undefined_flag=unsupported 13082 always_export_symbols=no 13083 enable_shared_with_static_runtimes=yes 13084 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' 13085 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 13086 13087 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13089 # If the export-symbols file already is a .def file, use it as 13090 # is; otherwise, prepend EXPORTS... 13091 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13092 cp $export_symbols $output_objdir/$soname.def; 13093 else 13094 echo EXPORTS > $output_objdir/$soname.def; 13095 cat $export_symbols >> $output_objdir/$soname.def; 13096 fi~ 13097 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13098 else 13099 ld_shlibs=no 13100 fi 13101 ;; 13102 13103 haiku*) 13104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13105 link_all_deplibs=yes 13106 ;; 13107 13108 os2*) 13109 hardcode_libdir_flag_spec='-L$libdir' 13110 hardcode_minus_L=yes 13111 allow_undefined_flag=unsupported 13112 shrext_cmds=.dll 13113 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13114 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13115 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13116 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13117 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13118 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13119 emximp -o $lib $output_objdir/$libname.def' 13120 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13121 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13122 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13123 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13124 prefix_cmds="$SED"~ 13125 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13126 prefix_cmds="$prefix_cmds -e 1d"; 13127 fi~ 13128 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13129 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13130 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13131 emximp -o $lib $output_objdir/$libname.def' 13132 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13133 enable_shared_with_static_runtimes=yes 13134 ;; 13135 13136 interix[3-9]*) 13137 hardcode_direct=no 13138 hardcode_shlibpath_var=no 13139 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13140 export_dynamic_flag_spec='$wl-E' 13141 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13142 # Instead, shared libraries are loaded at an image base (0x10000000 by 13143 # default) and relocated if they conflict, which is a slow very memory 13144 # consuming and fragmenting process. To avoid this, we pick a random, 13145 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13146 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13147 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13148 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' 13149 ;; 13150 13151 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 13152 tmp_diet=no 13153 if test linux-dietlibc = "$host_os"; then 13154 case $cc_basename in 13155 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13156 esac 13157 fi 13158 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13159 && test no = "$tmp_diet" 13160 then 13161 tmp_addflag=' $pic_flag' 13162 tmp_sharedflag='-shared' 13163 case $cc_basename,$host_cpu in 13164 pgcc*) # Portland Group C compiler 13165 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' 13166 tmp_addflag=' $pic_flag' 13167 ;; 13168 pgf77* | pgf90* | pgf95* | pgfortran*) 13169 # Portland Group f77 and f90 compilers 13170 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' 13171 tmp_addflag=' $pic_flag -Mnomain' ;; 13172 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13173 tmp_addflag=' -i_dynamic' ;; 13174 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13175 tmp_addflag=' -i_dynamic -nofor_main' ;; 13176 ifc* | ifort*) # Intel Fortran compiler 13177 tmp_addflag=' -nofor_main' ;; 13178 lf95*) # Lahey Fortran 8.1 13179 whole_archive_flag_spec= 13180 tmp_sharedflag='--shared' ;; 13181 nagfor*) # NAGFOR 5.3 13182 tmp_sharedflag='-Wl,-shared' ;; 13183 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13184 tmp_sharedflag='-qmkshrobj' 13185 tmp_addflag= ;; 13186 nvcc*) # Cuda Compiler Driver 2.2 13187 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' 13188 compiler_needs_object=yes 13189 ;; 13190 esac 13191 case `$CC -V 2>&1 | sed 5q` in 13192 *Sun\ C*) # Sun C 5.9 13193 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' 13194 compiler_needs_object=yes 13195 tmp_sharedflag='-G' ;; 13196 *Sun\ F*) # Sun Fortran 8.3 13197 tmp_sharedflag='-G' ;; 13198 esac 13199 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13200 13201 if test yes = "$supports_anon_versioning"; then 13202 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13204 echo "local: *; };" >> $output_objdir/$libname.ver~ 13205 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13206 fi 13207 13208 case $cc_basename in 13209 tcc*) 13210 export_dynamic_flag_spec='-rdynamic' 13211 ;; 13212 xlf* | bgf* | bgxlf* | mpixlf*) 13213 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13214 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 13215 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13216 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 13217 if test yes = "$supports_anon_versioning"; then 13218 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13219 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13220 echo "local: *; };" >> $output_objdir/$libname.ver~ 13221 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13222 fi 13223 ;; 13224 esac 13225 else 13226 ld_shlibs=no 13227 fi 13228 ;; 13229 13230 netbsd* | netbsdelf*-gnu) 13231 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13232 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13233 wlarc= 13234 else 13235 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13236 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13237 fi 13238 ;; 13239 13240 solaris*) 13241 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 13242 ld_shlibs=no 13243 cat <<_LT_EOF 1>&2 13244 13245*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13246*** create shared libraries on Solaris systems. Therefore, libtool 13247*** is disabling shared libraries support. We urge you to upgrade GNU 13248*** binutils to release 2.9.1 or newer. Another option is to modify 13249*** your PATH or compiler configuration so that the native linker is 13250*** used, and then restart. 13251 13252_LT_EOF 13253 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13254 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13255 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13256 else 13257 ld_shlibs=no 13258 fi 13259 ;; 13260 13261 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13262 case `$LD -v 2>&1` in 13263 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13264 ld_shlibs=no 13265 cat <<_LT_EOF 1>&2 13266 13267*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 13268*** reliably create shared libraries on SCO systems. Therefore, libtool 13269*** is disabling shared libraries support. We urge you to upgrade GNU 13270*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13271*** your PATH or compiler configuration so that the native linker is 13272*** used, and then restart. 13273 13274_LT_EOF 13275 ;; 13276 *) 13277 # For security reasons, it is highly recommended that you always 13278 # use absolute paths for naming shared libraries, and exclude the 13279 # DT_RUNPATH tag from executables and libraries. But doing so 13280 # requires that you compile everything twice, which is a pain. 13281 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13282 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13284 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13285 else 13286 ld_shlibs=no 13287 fi 13288 ;; 13289 esac 13290 ;; 13291 13292 sunos4*) 13293 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13294 wlarc= 13295 hardcode_direct=yes 13296 hardcode_shlibpath_var=no 13297 ;; 13298 13299 *) 13300 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13301 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13302 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13303 else 13304 ld_shlibs=no 13305 fi 13306 ;; 13307 esac 13308 13309 if test no = "$ld_shlibs"; then 13310 runpath_var= 13311 hardcode_libdir_flag_spec= 13312 export_dynamic_flag_spec= 13313 whole_archive_flag_spec= 13314 fi 13315 else 13316 # PORTME fill in a description of your system's linker (not GNU ld) 13317 case $host_os in 13318 aix3*) 13319 allow_undefined_flag=unsupported 13320 always_export_symbols=yes 13321 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' 13322 # Note: this linker hardcodes the directories in LIBPATH if there 13323 # are no directories specified by -L. 13324 hardcode_minus_L=yes 13325 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 13326 # Neither direct hardcoding nor static linking is supported with a 13327 # broken collect2. 13328 hardcode_direct=unsupported 13329 fi 13330 ;; 13331 13332 aix[4-9]*) 13333 if test ia64 = "$host_cpu"; then 13334 # On IA64, the linker does run time linking by default, so we don't 13335 # have to do anything special. 13336 aix_use_runtimelinking=no 13337 exp_sym_flag='-Bexport' 13338 no_entry_flag= 13339 else 13340 # If we're using GNU nm, then we don't want the "-C" option. 13341 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 13342 # Without the "-l" option, or with the "-B" option, AIX nm treats 13343 # weak defined symbols like other global defined symbols, whereas 13344 # GNU nm marks them as "W". 13345 # While the 'weak' keyword is ignored in the Export File, we need 13346 # it in the Import File for the 'aix-soname' feature, so we have 13347 # to replace the "-B" option with "-P" for AIX nm. 13348 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13349 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' 13350 else 13351 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' 13352 fi 13353 aix_use_runtimelinking=no 13354 13355 # Test if we are trying to use run time linking or normal 13356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13357 # have runtime linking enabled, and use it for executables. 13358 # For shared libraries, we enable/disable runtime linking 13359 # depending on the kind of the shared library created - 13360 # when "with_aix_soname,aix_use_runtimelinking" is: 13361 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13362 # "aix,yes" lib.so shared, rtl:yes, for executables 13363 # lib.a static archive 13364 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13365 # lib.a(lib.so.V) shared, rtl:no, for executables 13366 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13367 # lib.a(lib.so.V) shared, rtl:no 13368 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13369 # lib.a static archive 13370 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13371 for ld_flag in $LDFLAGS; do 13372 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 13373 aix_use_runtimelinking=yes 13374 break 13375 fi 13376 done 13377 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13378 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13379 # so we don't have lib.a shared libs to link our executables. 13380 # We have to force runtime linking in this case. 13381 aix_use_runtimelinking=yes 13382 LDFLAGS="$LDFLAGS -Wl,-brtl" 13383 fi 13384 ;; 13385 esac 13386 13387 exp_sym_flag='-bexport' 13388 no_entry_flag='-bnoentry' 13389 fi 13390 13391 # When large executables or shared objects are built, AIX ld can 13392 # have problems creating the table of contents. If linking a library 13393 # or program results in "error TOC overflow" add -mminimal-toc to 13394 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13395 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13396 13397 archive_cmds='' 13398 hardcode_direct=yes 13399 hardcode_direct_absolute=yes 13400 hardcode_libdir_separator=':' 13401 link_all_deplibs=yes 13402 file_list_spec='$wl-f,' 13403 case $with_aix_soname,$aix_use_runtimelinking in 13404 aix,*) ;; # traditional, no import file 13405 svr4,* | *,yes) # use import file 13406 # The Import File defines what to hardcode. 13407 hardcode_direct=no 13408 hardcode_direct_absolute=no 13409 ;; 13410 esac 13411 13412 if test yes = "$GCC"; then 13413 case $host_os in aix4.[012]|aix4.[012].*) 13414 # We only want to do this on AIX 4.2 and lower, the check 13415 # below for broken collect2 doesn't work under 4.3+ 13416 collect2name=`$CC -print-prog-name=collect2` 13417 if test -f "$collect2name" && 13418 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13419 then 13420 # We have reworked collect2 13421 : 13422 else 13423 # We have old collect2 13424 hardcode_direct=unsupported 13425 # It fails to find uninstalled libraries when the uninstalled 13426 # path is not listed in the libpath. Setting hardcode_minus_L 13427 # to unsupported forces relinking 13428 hardcode_minus_L=yes 13429 hardcode_libdir_flag_spec='-L$libdir' 13430 hardcode_libdir_separator= 13431 fi 13432 ;; 13433 esac 13434 shared_flag='-shared' 13435 if test yes = "$aix_use_runtimelinking"; then 13436 shared_flag="$shared_flag "'$wl-G' 13437 fi 13438 # Need to ensure runtime linking is disabled for the traditional 13439 # shared library, or the linker may eventually find shared libraries 13440 # /with/ Import File - we do not want to mix them. 13441 shared_flag_aix='-shared' 13442 shared_flag_svr4='-shared $wl-G' 13443 else 13444 # not using gcc 13445 if test ia64 = "$host_cpu"; then 13446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13447 # chokes on -Wl,-G. The following line is correct: 13448 shared_flag='-G' 13449 else 13450 if test yes = "$aix_use_runtimelinking"; then 13451 shared_flag='$wl-G' 13452 else 13453 shared_flag='$wl-bM:SRE' 13454 fi 13455 shared_flag_aix='$wl-bM:SRE' 13456 shared_flag_svr4='$wl-G' 13457 fi 13458 fi 13459 13460 export_dynamic_flag_spec='$wl-bexpall' 13461 # It seems that -bexpall does not export symbols beginning with 13462 # underscore (_), so it is better to generate a list of symbols to export. 13463 always_export_symbols=yes 13464 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13465 # Warning - without using the other runtime loading flags (-brtl), 13466 # -berok will link without error, but may produce a broken library. 13467 allow_undefined_flag='-berok' 13468 # Determine the default libpath from the value encoded in an 13469 # empty executable. 13470 if test set = "${lt_cv_aix_libpath+set}"; then 13471 aix_libpath=$lt_cv_aix_libpath 13472else 13473 if ${lt_cv_aix_libpath_+:} false; then : 13474 $as_echo_n "(cached) " >&6 13475else 13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13477/* end confdefs.h. */ 13478 13479int 13480main () 13481{ 13482 13483 ; 13484 return 0; 13485} 13486_ACEOF 13487if ac_fn_c_try_link "$LINENO"; then : 13488 13489 lt_aix_libpath_sed=' 13490 /Import File Strings/,/^$/ { 13491 /^0/ { 13492 s/^0 *\([^ ]*\) *$/\1/ 13493 p 13494 } 13495 }' 13496 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13497 # Check for a 64-bit object if we didn't find anything. 13498 if test -z "$lt_cv_aix_libpath_"; then 13499 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13500 fi 13501fi 13502rm -f core conftest.err conftest.$ac_objext \ 13503 conftest$ac_exeext conftest.$ac_ext 13504 if test -z "$lt_cv_aix_libpath_"; then 13505 lt_cv_aix_libpath_=/usr/lib:/lib 13506 fi 13507 13508fi 13509 13510 aix_libpath=$lt_cv_aix_libpath_ 13511fi 13512 13513 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13514 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 13515 else 13516 if test ia64 = "$host_cpu"; then 13517 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 13518 allow_undefined_flag="-z nodefs" 13519 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" 13520 else 13521 # Determine the default libpath from the value encoded in an 13522 # empty executable. 13523 if test set = "${lt_cv_aix_libpath+set}"; then 13524 aix_libpath=$lt_cv_aix_libpath 13525else 13526 if ${lt_cv_aix_libpath_+:} false; then : 13527 $as_echo_n "(cached) " >&6 13528else 13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13530/* end confdefs.h. */ 13531 13532int 13533main () 13534{ 13535 13536 ; 13537 return 0; 13538} 13539_ACEOF 13540if ac_fn_c_try_link "$LINENO"; then : 13541 13542 lt_aix_libpath_sed=' 13543 /Import File Strings/,/^$/ { 13544 /^0/ { 13545 s/^0 *\([^ ]*\) *$/\1/ 13546 p 13547 } 13548 }' 13549 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13550 # Check for a 64-bit object if we didn't find anything. 13551 if test -z "$lt_cv_aix_libpath_"; then 13552 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13553 fi 13554fi 13555rm -f core conftest.err conftest.$ac_objext \ 13556 conftest$ac_exeext conftest.$ac_ext 13557 if test -z "$lt_cv_aix_libpath_"; then 13558 lt_cv_aix_libpath_=/usr/lib:/lib 13559 fi 13560 13561fi 13562 13563 aix_libpath=$lt_cv_aix_libpath_ 13564fi 13565 13566 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13567 # Warning - without using the other run time loading flags, 13568 # -berok will link without error, but may produce a broken library. 13569 no_undefined_flag=' $wl-bernotok' 13570 allow_undefined_flag=' $wl-berok' 13571 if test yes = "$with_gnu_ld"; then 13572 # We only use this code for GNU lds that support --whole-archive. 13573 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 13574 else 13575 # Exported symbols can be pulled into shared objects from archives 13576 whole_archive_flag_spec='$convenience' 13577 fi 13578 archive_cmds_need_lc=yes 13579 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13580 # -brtl affects multiple linker settings, -berok does not and is overridden later 13581 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13582 if test svr4 != "$with_aix_soname"; then 13583 # This is similar to how AIX traditionally builds its shared libraries. 13584 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' 13585 fi 13586 if test aix != "$with_aix_soname"; then 13587 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' 13588 else 13589 # used by -dlpreopen to get the symbols 13590 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13591 fi 13592 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 13593 fi 13594 fi 13595 ;; 13596 13597 amigaos*) 13598 case $host_cpu in 13599 powerpc) 13600 # see comment about AmigaOS4 .so support 13601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13602 archive_expsym_cmds='' 13603 ;; 13604 m68k) 13605 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)' 13606 hardcode_libdir_flag_spec='-L$libdir' 13607 hardcode_minus_L=yes 13608 ;; 13609 esac 13610 ;; 13611 13612 bsdi[45]*) 13613 export_dynamic_flag_spec=-rdynamic 13614 ;; 13615 13616 cygwin* | mingw* | pw32* | cegcc*) 13617 # When not using gcc, we currently assume that we are using 13618 # Microsoft Visual C++. 13619 # hardcode_libdir_flag_spec is actually meaningless, as there is 13620 # no search path for DLLs. 13621 case $cc_basename in 13622 cl*) 13623 # Native MSVC 13624 hardcode_libdir_flag_spec=' ' 13625 allow_undefined_flag=unsupported 13626 always_export_symbols=yes 13627 file_list_spec='@' 13628 # Tell ltmain to make .lib files, not .a files. 13629 libext=lib 13630 # Tell ltmain to make .dll files, not .so files. 13631 shrext_cmds=.dll 13632 # FIXME: Setting linknames here is a bad hack. 13633 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13634 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13635 cp "$export_symbols" "$output_objdir/$soname.def"; 13636 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13637 else 13638 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13639 fi~ 13640 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13641 linknames=' 13642 # The linker will not automatically build a static lib if we build a DLL. 13643 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 13644 enable_shared_with_static_runtimes=yes 13645 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 13646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13647 # Don't use ranlib 13648 old_postinstall_cmds='chmod 644 $oldlib' 13649 postlink_cmds='lt_outputfile="@OUTPUT@"~ 13650 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13651 case $lt_outputfile in 13652 *.exe|*.EXE) ;; 13653 *) 13654 lt_outputfile=$lt_outputfile.exe 13655 lt_tool_outputfile=$lt_tool_outputfile.exe 13656 ;; 13657 esac~ 13658 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13659 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13660 $RM "$lt_outputfile.manifest"; 13661 fi' 13662 ;; 13663 *) 13664 # Assume MSVC wrapper 13665 hardcode_libdir_flag_spec=' ' 13666 allow_undefined_flag=unsupported 13667 # Tell ltmain to make .lib files, not .a files. 13668 libext=lib 13669 # Tell ltmain to make .dll files, not .so files. 13670 shrext_cmds=.dll 13671 # FIXME: Setting linknames here is a bad hack. 13672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13673 # The linker will automatically build a .lib file if we build a DLL. 13674 old_archive_from_new_cmds='true' 13675 # FIXME: Should let the user specify the lib program. 13676 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13677 enable_shared_with_static_runtimes=yes 13678 ;; 13679 esac 13680 ;; 13681 13682 darwin* | rhapsody*) 13683 13684 13685 archive_cmds_need_lc=no 13686 hardcode_direct=no 13687 hardcode_automatic=yes 13688 hardcode_shlibpath_var=unsupported 13689 if test yes = "$lt_cv_ld_force_load"; then 13690 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\"`' 13691 13692 else 13693 whole_archive_flag_spec='' 13694 fi 13695 link_all_deplibs=yes 13696 allow_undefined_flag=$_lt_dar_allow_undefined 13697 case $cc_basename in 13698 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13699 *) _lt_dar_can_shared=$GCC ;; 13700 esac 13701 if test yes = "$_lt_dar_can_shared"; then 13702 output_verbose_link_cmd=func_echo_all 13703 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13704 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13705 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" 13706 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" 13707 13708 else 13709 ld_shlibs=no 13710 fi 13711 13712 ;; 13713 13714 dgux*) 13715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13716 hardcode_libdir_flag_spec='-L$libdir' 13717 hardcode_shlibpath_var=no 13718 ;; 13719 13720 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13721 # support. Future versions do this automatically, but an explicit c++rt0.o 13722 # does not break anything, and helps significantly (at the cost of a little 13723 # extra space). 13724 freebsd2.2*) 13725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13726 hardcode_libdir_flag_spec='-R$libdir' 13727 hardcode_direct=yes 13728 hardcode_shlibpath_var=no 13729 ;; 13730 13731 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13732 freebsd2.*) 13733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13734 hardcode_direct=yes 13735 hardcode_minus_L=yes 13736 hardcode_shlibpath_var=no 13737 ;; 13738 13739 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13740 freebsd* | dragonfly*) 13741 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13742 hardcode_libdir_flag_spec='-R$libdir' 13743 hardcode_direct=yes 13744 hardcode_shlibpath_var=no 13745 ;; 13746 13747 hpux9*) 13748 if test yes = "$GCC"; then 13749 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' 13750 else 13751 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' 13752 fi 13753 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13754 hardcode_libdir_separator=: 13755 hardcode_direct=yes 13756 13757 # hardcode_minus_L: Not really in the search PATH, 13758 # but as the default location of the library. 13759 hardcode_minus_L=yes 13760 export_dynamic_flag_spec='$wl-E' 13761 ;; 13762 13763 hpux10*) 13764 if test yes,no = "$GCC,$with_gnu_ld"; then 13765 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13766 else 13767 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13768 fi 13769 if test no = "$with_gnu_ld"; then 13770 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13771 hardcode_libdir_separator=: 13772 hardcode_direct=yes 13773 hardcode_direct_absolute=yes 13774 export_dynamic_flag_spec='$wl-E' 13775 # hardcode_minus_L: Not really in the search PATH, 13776 # but as the default location of the library. 13777 hardcode_minus_L=yes 13778 fi 13779 ;; 13780 13781 hpux11*) 13782 if test yes,no = "$GCC,$with_gnu_ld"; then 13783 case $host_cpu in 13784 hppa*64*) 13785 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13786 ;; 13787 ia64*) 13788 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13789 ;; 13790 *) 13791 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13792 ;; 13793 esac 13794 else 13795 case $host_cpu in 13796 hppa*64*) 13797 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13798 ;; 13799 ia64*) 13800 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13801 ;; 13802 *) 13803 13804 # Older versions of the 11.00 compiler do not understand -b yet 13805 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13807$as_echo_n "checking if $CC understands -b... " >&6; } 13808if ${lt_cv_prog_compiler__b+:} false; then : 13809 $as_echo_n "(cached) " >&6 13810else 13811 lt_cv_prog_compiler__b=no 13812 save_LDFLAGS=$LDFLAGS 13813 LDFLAGS="$LDFLAGS -b" 13814 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13816 # The linker can only warn and ignore the option if not recognized 13817 # So say no if there are warnings 13818 if test -s conftest.err; then 13819 # Append any errors to the config.log. 13820 cat conftest.err 1>&5 13821 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13823 if diff conftest.exp conftest.er2 >/dev/null; then 13824 lt_cv_prog_compiler__b=yes 13825 fi 13826 else 13827 lt_cv_prog_compiler__b=yes 13828 fi 13829 fi 13830 $RM -r conftest* 13831 LDFLAGS=$save_LDFLAGS 13832 13833fi 13834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13835$as_echo "$lt_cv_prog_compiler__b" >&6; } 13836 13837if test yes = "$lt_cv_prog_compiler__b"; then 13838 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13839else 13840 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13841fi 13842 13843 ;; 13844 esac 13845 fi 13846 if test no = "$with_gnu_ld"; then 13847 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13848 hardcode_libdir_separator=: 13849 13850 case $host_cpu in 13851 hppa*64*|ia64*) 13852 hardcode_direct=no 13853 hardcode_shlibpath_var=no 13854 ;; 13855 *) 13856 hardcode_direct=yes 13857 hardcode_direct_absolute=yes 13858 export_dynamic_flag_spec='$wl-E' 13859 13860 # hardcode_minus_L: Not really in the search PATH, 13861 # but as the default location of the library. 13862 hardcode_minus_L=yes 13863 ;; 13864 esac 13865 fi 13866 ;; 13867 13868 irix5* | irix6* | nonstopux*) 13869 if test yes = "$GCC"; then 13870 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' 13871 # Try to use the -exported_symbol ld option, if it does not 13872 # work, assume that -exports_file does not work either and 13873 # implicitly export all symbols. 13874 # This should be the same for all languages, so no per-tag cache variable. 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13876$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13877if ${lt_cv_irix_exported_symbol+:} false; then : 13878 $as_echo_n "(cached) " >&6 13879else 13880 save_LDFLAGS=$LDFLAGS 13881 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13883/* end confdefs.h. */ 13884int foo (void) { return 0; } 13885_ACEOF 13886if ac_fn_c_try_link "$LINENO"; then : 13887 lt_cv_irix_exported_symbol=yes 13888else 13889 lt_cv_irix_exported_symbol=no 13890fi 13891rm -f core conftest.err conftest.$ac_objext \ 13892 conftest$ac_exeext conftest.$ac_ext 13893 LDFLAGS=$save_LDFLAGS 13894fi 13895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13896$as_echo "$lt_cv_irix_exported_symbol" >&6; } 13897 if test yes = "$lt_cv_irix_exported_symbol"; then 13898 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' 13899 fi 13900 link_all_deplibs=no 13901 else 13902 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' 13903 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' 13904 fi 13905 archive_cmds_need_lc='no' 13906 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13907 hardcode_libdir_separator=: 13908 inherit_rpath=yes 13909 link_all_deplibs=yes 13910 ;; 13911 13912 linux*) 13913 case $cc_basename in 13914 tcc*) 13915 # Fabrice Bellard et al's Tiny C Compiler 13916 ld_shlibs=yes 13917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13918 ;; 13919 esac 13920 ;; 13921 13922 netbsd* | netbsdelf*-gnu) 13923 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13925 else 13926 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13927 fi 13928 hardcode_libdir_flag_spec='-R$libdir' 13929 hardcode_direct=yes 13930 hardcode_shlibpath_var=no 13931 ;; 13932 13933 newsos6) 13934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13935 hardcode_direct=yes 13936 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13937 hardcode_libdir_separator=: 13938 hardcode_shlibpath_var=no 13939 ;; 13940 13941 *nto* | *qnx*) 13942 ;; 13943 13944 openbsd* | bitrig*) 13945 if test -f /usr/libexec/ld.so; then 13946 hardcode_direct=yes 13947 hardcode_shlibpath_var=no 13948 hardcode_direct_absolute=yes 13949 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13950 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13951 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13952 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13953 export_dynamic_flag_spec='$wl-E' 13954 else 13955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13956 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13957 fi 13958 else 13959 ld_shlibs=no 13960 fi 13961 ;; 13962 13963 os2*) 13964 hardcode_libdir_flag_spec='-L$libdir' 13965 hardcode_minus_L=yes 13966 allow_undefined_flag=unsupported 13967 shrext_cmds=.dll 13968 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13969 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13970 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13971 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13972 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13973 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13974 emximp -o $lib $output_objdir/$libname.def' 13975 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13976 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13977 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13978 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13979 prefix_cmds="$SED"~ 13980 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13981 prefix_cmds="$prefix_cmds -e 1d"; 13982 fi~ 13983 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13984 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13985 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13986 emximp -o $lib $output_objdir/$libname.def' 13987 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13988 enable_shared_with_static_runtimes=yes 13989 ;; 13990 13991 osf3*) 13992 if test yes = "$GCC"; then 13993 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13994 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' 13995 else 13996 allow_undefined_flag=' -expect_unresolved \*' 13997 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' 13998 fi 13999 archive_cmds_need_lc='no' 14000 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14001 hardcode_libdir_separator=: 14002 ;; 14003 14004 osf4* | osf5*) # as osf3* with the addition of -msym flag 14005 if test yes = "$GCC"; then 14006 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 14007 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' 14008 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14009 else 14010 allow_undefined_flag=' -expect_unresolved \*' 14011 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' 14012 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~ 14013 $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' 14014 14015 # Both c and cxx compiler support -rpath directly 14016 hardcode_libdir_flag_spec='-rpath $libdir' 14017 fi 14018 archive_cmds_need_lc='no' 14019 hardcode_libdir_separator=: 14020 ;; 14021 14022 solaris*) 14023 no_undefined_flag=' -z defs' 14024 if test yes = "$GCC"; then 14025 wlarc='$wl' 14026 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14027 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14028 $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' 14029 else 14030 case `$CC -V 2>&1` in 14031 *"Compilers 5.0"*) 14032 wlarc='' 14033 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 14034 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14035 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 14036 ;; 14037 *) 14038 wlarc='$wl' 14039 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 14040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14041 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 14042 ;; 14043 esac 14044 fi 14045 hardcode_libdir_flag_spec='-R$libdir' 14046 hardcode_shlibpath_var=no 14047 case $host_os in 14048 solaris2.[0-5] | solaris2.[0-5].*) ;; 14049 *) 14050 # The compiler driver will combine and reorder linker options, 14051 # but understands '-z linker_flag'. GCC discards it without '$wl', 14052 # but is careful enough not to reorder. 14053 # Supported since Solaris 2.6 (maybe 2.5.1?) 14054 if test yes = "$GCC"; then 14055 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14056 else 14057 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 14058 fi 14059 ;; 14060 esac 14061 link_all_deplibs=yes 14062 ;; 14063 14064 sunos4*) 14065 if test sequent = "$host_vendor"; then 14066 # Use $CC to link under sequent, because it throws in some extra .o 14067 # files that make .init and .fini sections work. 14068 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14069 else 14070 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14071 fi 14072 hardcode_libdir_flag_spec='-L$libdir' 14073 hardcode_direct=yes 14074 hardcode_minus_L=yes 14075 hardcode_shlibpath_var=no 14076 ;; 14077 14078 sysv4) 14079 case $host_vendor in 14080 sni) 14081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14082 hardcode_direct=yes # is this really true??? 14083 ;; 14084 siemens) 14085 ## LD is ld it makes a PLAMLIB 14086 ## CC just makes a GrossModule. 14087 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14088 reload_cmds='$CC -r -o $output$reload_objs' 14089 hardcode_direct=no 14090 ;; 14091 motorola) 14092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14093 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 14094 ;; 14095 esac 14096 runpath_var='LD_RUN_PATH' 14097 hardcode_shlibpath_var=no 14098 ;; 14099 14100 sysv4.3*) 14101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14102 hardcode_shlibpath_var=no 14103 export_dynamic_flag_spec='-Bexport' 14104 ;; 14105 14106 sysv4*MP*) 14107 if test -d /usr/nec; then 14108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14109 hardcode_shlibpath_var=no 14110 runpath_var=LD_RUN_PATH 14111 hardcode_runpath_var=yes 14112 ld_shlibs=yes 14113 fi 14114 ;; 14115 14116 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14117 no_undefined_flag='$wl-z,text' 14118 archive_cmds_need_lc=no 14119 hardcode_shlibpath_var=no 14120 runpath_var='LD_RUN_PATH' 14121 14122 if test yes = "$GCC"; then 14123 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14124 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14125 else 14126 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14127 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14128 fi 14129 ;; 14130 14131 sysv5* | sco3.2v5* | sco5v6*) 14132 # Note: We CANNOT use -z defs as we might desire, because we do not 14133 # link with -lc, and that would cause any symbols used from libc to 14134 # always be unresolved, which means just about no library would 14135 # ever link correctly. If we're not using GNU ld we use -z text 14136 # though, which does catch some bad symbols but isn't as heavy-handed 14137 # as -z defs. 14138 no_undefined_flag='$wl-z,text' 14139 allow_undefined_flag='$wl-z,nodefs' 14140 archive_cmds_need_lc=no 14141 hardcode_shlibpath_var=no 14142 hardcode_libdir_flag_spec='$wl-R,$libdir' 14143 hardcode_libdir_separator=':' 14144 link_all_deplibs=yes 14145 export_dynamic_flag_spec='$wl-Bexport' 14146 runpath_var='LD_RUN_PATH' 14147 14148 if test yes = "$GCC"; then 14149 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14150 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14151 else 14152 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14153 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14154 fi 14155 ;; 14156 14157 uts4*) 14158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14159 hardcode_libdir_flag_spec='-L$libdir' 14160 hardcode_shlibpath_var=no 14161 ;; 14162 14163 *) 14164 ld_shlibs=no 14165 ;; 14166 esac 14167 14168 if test sni = "$host_vendor"; then 14169 case $host in 14170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14171 export_dynamic_flag_spec='$wl-Blargedynsym' 14172 ;; 14173 esac 14174 fi 14175 fi 14176 14177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 14178$as_echo "$ld_shlibs" >&6; } 14179test no = "$ld_shlibs" && can_build_shared=no 14180 14181with_gnu_ld=$with_gnu_ld 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197# 14198# Do we need to explicitly link libc? 14199# 14200case "x$archive_cmds_need_lc" in 14201x|xyes) 14202 # Assume -lc should be added 14203 archive_cmds_need_lc=yes 14204 14205 if test yes,yes = "$GCC,$enable_shared"; then 14206 case $archive_cmds in 14207 *'~'*) 14208 # FIXME: we may have to deal with multi-command sequences. 14209 ;; 14210 '$CC '*) 14211 # Test whether the compiler implicitly links with -lc since on some 14212 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14213 # to ld, don't add -lc before -lgcc. 14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14215$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14216if ${lt_cv_archive_cmds_need_lc+:} false; then : 14217 $as_echo_n "(cached) " >&6 14218else 14219 $RM conftest* 14220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14221 14222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14223 (eval $ac_compile) 2>&5 14224 ac_status=$? 14225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14226 test $ac_status = 0; } 2>conftest.err; then 14227 soname=conftest 14228 lib=conftest 14229 libobjs=conftest.$ac_objext 14230 deplibs= 14231 wl=$lt_prog_compiler_wl 14232 pic_flag=$lt_prog_compiler_pic 14233 compiler_flags=-v 14234 linker_flags=-v 14235 verstring= 14236 output_objdir=. 14237 libname=conftest 14238 lt_save_allow_undefined_flag=$allow_undefined_flag 14239 allow_undefined_flag= 14240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14241 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14242 ac_status=$? 14243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14244 test $ac_status = 0; } 14245 then 14246 lt_cv_archive_cmds_need_lc=no 14247 else 14248 lt_cv_archive_cmds_need_lc=yes 14249 fi 14250 allow_undefined_flag=$lt_save_allow_undefined_flag 14251 else 14252 cat conftest.err 1>&5 14253 fi 14254 $RM conftest* 14255 14256fi 14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 14258$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 14259 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 14260 ;; 14261 esac 14262 fi 14263 ;; 14264esac 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14418$as_echo_n "checking dynamic linker characteristics... " >&6; } 14419 14420if test yes = "$GCC"; then 14421 case $host_os in 14422 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 14423 *) lt_awk_arg='/^libraries:/' ;; 14424 esac 14425 case $host_os in 14426 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 14427 *) lt_sed_strip_eq='s|=/|/|g' ;; 14428 esac 14429 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 14430 case $lt_search_path_spec in 14431 *\;*) 14432 # if the path contains ";" then we assume it to be the separator 14433 # otherwise default to the standard path separator (i.e. ":") - it is 14434 # assumed that no part of a normal pathname contains ";" but that should 14435 # okay in the real world where ";" in dirpaths is itself problematic. 14436 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 14437 ;; 14438 *) 14439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 14440 ;; 14441 esac 14442 # Ok, now we have the path, separated by spaces, we can step through it 14443 # and add multilib dir if necessary... 14444 lt_tmp_lt_search_path_spec= 14445 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 14446 # ...but if some path component already ends with the multilib dir we assume 14447 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 14448 case "$lt_multi_os_dir; $lt_search_path_spec " in 14449 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 14450 lt_multi_os_dir= 14451 ;; 14452 esac 14453 for lt_sys_path in $lt_search_path_spec; do 14454 if test -d "$lt_sys_path$lt_multi_os_dir"; then 14455 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 14456 elif test -n "$lt_multi_os_dir"; then 14457 test -d "$lt_sys_path" && \ 14458 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 14459 fi 14460 done 14461 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 14462BEGIN {RS = " "; FS = "/|\n";} { 14463 lt_foo = ""; 14464 lt_count = 0; 14465 for (lt_i = NF; lt_i > 0; lt_i--) { 14466 if ($lt_i != "" && $lt_i != ".") { 14467 if ($lt_i == "..") { 14468 lt_count++; 14469 } else { 14470 if (lt_count == 0) { 14471 lt_foo = "/" $lt_i lt_foo; 14472 } else { 14473 lt_count--; 14474 } 14475 } 14476 } 14477 } 14478 if (lt_foo != "") { lt_freq[lt_foo]++; } 14479 if (lt_freq[lt_foo] == 1) { print lt_foo; } 14480}'` 14481 # AWK program above erroneously prepends '/' to C:/dos/paths 14482 # for these hosts. 14483 case $host_os in 14484 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 14485 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 14486 esac 14487 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 14488else 14489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14490fi 14491library_names_spec= 14492libname_spec='lib$name' 14493soname_spec= 14494shrext_cmds=.so 14495postinstall_cmds= 14496postuninstall_cmds= 14497finish_cmds= 14498finish_eval= 14499shlibpath_var= 14500shlibpath_overrides_runpath=unknown 14501version_type=none 14502dynamic_linker="$host_os ld.so" 14503sys_lib_dlsearch_path_spec="/lib /usr/lib" 14504need_lib_prefix=unknown 14505hardcode_into_libs=no 14506 14507# when you set need_version to no, make sure it does not cause -set_version 14508# flags to be left without arguments 14509need_version=unknown 14510 14511 14512 14513case $host_os in 14514aix3*) 14515 version_type=linux # correct to gnu/linux during the next big refactor 14516 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14517 shlibpath_var=LIBPATH 14518 14519 # AIX 3 has no versioning support, so we append a major version to the name. 14520 soname_spec='$libname$release$shared_ext$major' 14521 ;; 14522 14523aix[4-9]*) 14524 version_type=linux # correct to gnu/linux during the next big refactor 14525 need_lib_prefix=no 14526 need_version=no 14527 hardcode_into_libs=yes 14528 if test ia64 = "$host_cpu"; then 14529 # AIX 5 supports IA64 14530 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14531 shlibpath_var=LD_LIBRARY_PATH 14532 else 14533 # With GCC up to 2.95.x, collect2 would create an import file 14534 # for dependence libraries. The import file would start with 14535 # the line '#! .'. This would cause the generated library to 14536 # depend on '.', always an invalid library. This was fixed in 14537 # development snapshots of GCC prior to 3.0. 14538 case $host_os in 14539 aix4 | aix4.[01] | aix4.[01].*) 14540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14541 echo ' yes ' 14542 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14543 : 14544 else 14545 can_build_shared=no 14546 fi 14547 ;; 14548 esac 14549 # Using Import Files as archive members, it is possible to support 14550 # filename-based versioning of shared library archives on AIX. While 14551 # this would work for both with and without runtime linking, it will 14552 # prevent static linking of such archives. So we do filename-based 14553 # shared library versioning with .so extension only, which is used 14554 # when both runtime linking and shared linking is enabled. 14555 # Unfortunately, runtime linking may impact performance, so we do 14556 # not want this to be the default eventually. Also, we use the 14557 # versioned .so libs for executables only if there is the -brtl 14558 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14559 # To allow for filename-based versioning support, we need to create 14560 # libNAME.so.V as an archive file, containing: 14561 # *) an Import File, referring to the versioned filename of the 14562 # archive as well as the shared archive member, telling the 14563 # bitwidth (32 or 64) of that shared object, and providing the 14564 # list of exported symbols of that shared object, eventually 14565 # decorated with the 'weak' keyword 14566 # *) the shared object with the F_LOADONLY flag set, to really avoid 14567 # it being seen by the linker. 14568 # At run time we better use the real file rather than another symlink, 14569 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14570 14571 case $with_aix_soname,$aix_use_runtimelinking in 14572 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14573 # soname into executable. Probably we can add versioning support to 14574 # collect2, so additional links can be useful in future. 14575 aix,yes) # traditional libtool 14576 dynamic_linker='AIX unversionable lib.so' 14577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14578 # instead of lib<name>.a to let people know that these are not 14579 # typical AIX shared libraries. 14580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14581 ;; 14582 aix,no) # traditional AIX only 14583 dynamic_linker='AIX lib.a(lib.so.V)' 14584 # We preserve .a as extension for shared libraries through AIX4.2 14585 # and later when we are not doing run time linking. 14586 library_names_spec='$libname$release.a $libname.a' 14587 soname_spec='$libname$release$shared_ext$major' 14588 ;; 14589 svr4,*) # full svr4 only 14590 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14591 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14592 # We do not specify a path in Import Files, so LIBPATH fires. 14593 shlibpath_overrides_runpath=yes 14594 ;; 14595 *,yes) # both, prefer svr4 14596 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14597 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14598 # unpreferred sharedlib libNAME.a needs extra handling 14599 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"' 14600 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"' 14601 # We do not specify a path in Import Files, so LIBPATH fires. 14602 shlibpath_overrides_runpath=yes 14603 ;; 14604 *,no) # both, prefer aix 14605 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 14606 library_names_spec='$libname$release.a $libname.a' 14607 soname_spec='$libname$release$shared_ext$major' 14608 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 14609 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)' 14610 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"' 14611 ;; 14612 esac 14613 shlibpath_var=LIBPATH 14614 fi 14615 ;; 14616 14617amigaos*) 14618 case $host_cpu in 14619 powerpc) 14620 # Since July 2007 AmigaOS4 officially supports .so libraries. 14621 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14623 ;; 14624 m68k) 14625 library_names_spec='$libname.ixlibrary $libname.a' 14626 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14627 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' 14628 ;; 14629 esac 14630 ;; 14631 14632beos*) 14633 library_names_spec='$libname$shared_ext' 14634 dynamic_linker="$host_os ld.so" 14635 shlibpath_var=LIBRARY_PATH 14636 ;; 14637 14638bsdi[45]*) 14639 version_type=linux # correct to gnu/linux during the next big refactor 14640 need_version=no 14641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14642 soname_spec='$libname$release$shared_ext$major' 14643 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14644 shlibpath_var=LD_LIBRARY_PATH 14645 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14646 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14647 # the default ld.so.conf also contains /usr/contrib/lib and 14648 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14649 # libtool to hard-code these into programs 14650 ;; 14651 14652cygwin* | mingw* | pw32* | cegcc*) 14653 version_type=windows 14654 shrext_cmds=.dll 14655 need_version=no 14656 need_lib_prefix=no 14657 14658 case $GCC,$cc_basename in 14659 yes,*) 14660 # gcc 14661 library_names_spec='$libname.dll.a' 14662 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14663 postinstall_cmds='base_file=`basename \$file`~ 14664 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14665 dldir=$destdir/`dirname \$dlpath`~ 14666 test -d \$dldir || mkdir -p \$dldir~ 14667 $install_prog $dir/$dlname \$dldir/$dlname~ 14668 chmod a+x \$dldir/$dlname~ 14669 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14670 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14671 fi' 14672 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14673 dlpath=$dir/\$dldll~ 14674 $RM \$dlpath' 14675 shlibpath_overrides_runpath=yes 14676 14677 case $host_os in 14678 cygwin*) 14679 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14680 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14681 14682 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14683 ;; 14684 mingw* | cegcc*) 14685 # MinGW DLLs use traditional 'lib' prefix 14686 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14687 ;; 14688 pw32*) 14689 # pw32 DLLs use 'pw' prefix rather than 'lib' 14690 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14691 ;; 14692 esac 14693 dynamic_linker='Win32 ld.exe' 14694 ;; 14695 14696 *,cl*) 14697 # Native MSVC 14698 libname_spec='$name' 14699 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14700 library_names_spec='$libname.dll.lib' 14701 14702 case $build_os in 14703 mingw*) 14704 sys_lib_search_path_spec= 14705 lt_save_ifs=$IFS 14706 IFS=';' 14707 for lt_path in $LIB 14708 do 14709 IFS=$lt_save_ifs 14710 # Let DOS variable expansion print the short 8.3 style file name. 14711 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14712 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14713 done 14714 IFS=$lt_save_ifs 14715 # Convert to MSYS style. 14716 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14717 ;; 14718 cygwin*) 14719 # Convert to unix form, then to dos form, then back to unix form 14720 # but this time dos style (no spaces!) so that the unix form looks 14721 # like /cygdrive/c/PROGRA~1:/cygdr... 14722 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14723 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14724 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14725 ;; 14726 *) 14727 sys_lib_search_path_spec=$LIB 14728 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14729 # It is most probably a Windows format PATH. 14730 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14731 else 14732 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14733 fi 14734 # FIXME: find the short name or the path components, as spaces are 14735 # common. (e.g. "Program Files" -> "PROGRA~1") 14736 ;; 14737 esac 14738 14739 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14740 postinstall_cmds='base_file=`basename \$file`~ 14741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14742 dldir=$destdir/`dirname \$dlpath`~ 14743 test -d \$dldir || mkdir -p \$dldir~ 14744 $install_prog $dir/$dlname \$dldir/$dlname' 14745 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14746 dlpath=$dir/\$dldll~ 14747 $RM \$dlpath' 14748 shlibpath_overrides_runpath=yes 14749 dynamic_linker='Win32 link.exe' 14750 ;; 14751 14752 *) 14753 # Assume MSVC wrapper 14754 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14755 dynamic_linker='Win32 ld.exe' 14756 ;; 14757 esac 14758 # FIXME: first we should search . and the directory the executable is in 14759 shlibpath_var=PATH 14760 ;; 14761 14762darwin* | rhapsody*) 14763 dynamic_linker="$host_os dyld" 14764 version_type=darwin 14765 need_lib_prefix=no 14766 need_version=no 14767 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 14768 soname_spec='$libname$release$major$shared_ext' 14769 shlibpath_overrides_runpath=yes 14770 shlibpath_var=DYLD_LIBRARY_PATH 14771 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14772 14773 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14774 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14775 ;; 14776 14777dgux*) 14778 version_type=linux # correct to gnu/linux during the next big refactor 14779 need_lib_prefix=no 14780 need_version=no 14781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14782 soname_spec='$libname$release$shared_ext$major' 14783 shlibpath_var=LD_LIBRARY_PATH 14784 ;; 14785 14786freebsd* | dragonfly*) 14787 # DragonFly does not have aout. When/if they implement a new 14788 # versioning mechanism, adjust this. 14789 if test -x /usr/bin/objformat; then 14790 objformat=`/usr/bin/objformat` 14791 else 14792 case $host_os in 14793 freebsd[23].*) objformat=aout ;; 14794 *) objformat=elf ;; 14795 esac 14796 fi 14797 version_type=freebsd-$objformat 14798 case $version_type in 14799 freebsd-elf*) 14800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14801 soname_spec='$libname$release$shared_ext$major' 14802 need_version=no 14803 need_lib_prefix=no 14804 ;; 14805 freebsd-*) 14806 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14807 need_version=yes 14808 ;; 14809 esac 14810 shlibpath_var=LD_LIBRARY_PATH 14811 case $host_os in 14812 freebsd2.*) 14813 shlibpath_overrides_runpath=yes 14814 ;; 14815 freebsd3.[01]* | freebsdelf3.[01]*) 14816 shlibpath_overrides_runpath=yes 14817 hardcode_into_libs=yes 14818 ;; 14819 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14820 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14821 shlibpath_overrides_runpath=no 14822 hardcode_into_libs=yes 14823 ;; 14824 *) # from 4.6 on, and DragonFly 14825 shlibpath_overrides_runpath=yes 14826 hardcode_into_libs=yes 14827 ;; 14828 esac 14829 ;; 14830 14831haiku*) 14832 version_type=linux # correct to gnu/linux during the next big refactor 14833 need_lib_prefix=no 14834 need_version=no 14835 dynamic_linker="$host_os runtime_loader" 14836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14837 soname_spec='$libname$release$shared_ext$major' 14838 shlibpath_var=LIBRARY_PATH 14839 shlibpath_overrides_runpath=no 14840 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14841 hardcode_into_libs=yes 14842 ;; 14843 14844hpux9* | hpux10* | hpux11*) 14845 # Give a soname corresponding to the major version so that dld.sl refuses to 14846 # link against other versions. 14847 version_type=sunos 14848 need_lib_prefix=no 14849 need_version=no 14850 case $host_cpu in 14851 ia64*) 14852 shrext_cmds='.so' 14853 hardcode_into_libs=yes 14854 dynamic_linker="$host_os dld.so" 14855 shlibpath_var=LD_LIBRARY_PATH 14856 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14858 soname_spec='$libname$release$shared_ext$major' 14859 if test 32 = "$HPUX_IA64_MODE"; then 14860 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14861 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14862 else 14863 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14864 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14865 fi 14866 ;; 14867 hppa*64*) 14868 shrext_cmds='.sl' 14869 hardcode_into_libs=yes 14870 dynamic_linker="$host_os dld.sl" 14871 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14874 soname_spec='$libname$release$shared_ext$major' 14875 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14877 ;; 14878 *) 14879 shrext_cmds='.sl' 14880 dynamic_linker="$host_os dld.sl" 14881 shlibpath_var=SHLIB_PATH 14882 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14884 soname_spec='$libname$release$shared_ext$major' 14885 ;; 14886 esac 14887 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14888 postinstall_cmds='chmod 555 $lib' 14889 # or fails outright, so override atomically: 14890 install_override_mode=555 14891 ;; 14892 14893interix[3-9]*) 14894 version_type=linux # correct to gnu/linux during the next big refactor 14895 need_lib_prefix=no 14896 need_version=no 14897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14898 soname_spec='$libname$release$shared_ext$major' 14899 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14900 shlibpath_var=LD_LIBRARY_PATH 14901 shlibpath_overrides_runpath=no 14902 hardcode_into_libs=yes 14903 ;; 14904 14905irix5* | irix6* | nonstopux*) 14906 case $host_os in 14907 nonstopux*) version_type=nonstopux ;; 14908 *) 14909 if test yes = "$lt_cv_prog_gnu_ld"; then 14910 version_type=linux # correct to gnu/linux during the next big refactor 14911 else 14912 version_type=irix 14913 fi ;; 14914 esac 14915 need_lib_prefix=no 14916 need_version=no 14917 soname_spec='$libname$release$shared_ext$major' 14918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14919 case $host_os in 14920 irix5* | nonstopux*) 14921 libsuff= shlibsuff= 14922 ;; 14923 *) 14924 case $LD in # libtool.m4 will add one of these switches to LD 14925 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14926 libsuff= shlibsuff= libmagic=32-bit;; 14927 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14928 libsuff=32 shlibsuff=N32 libmagic=N32;; 14929 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14930 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14931 *) libsuff= shlibsuff= libmagic=never-match;; 14932 esac 14933 ;; 14934 esac 14935 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14936 shlibpath_overrides_runpath=no 14937 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14938 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14939 hardcode_into_libs=yes 14940 ;; 14941 14942# No shared lib support for Linux oldld, aout, or coff. 14943linux*oldld* | linux*aout* | linux*coff*) 14944 dynamic_linker=no 14945 ;; 14946 14947linux*android*) 14948 version_type=none # Android doesn't support versioned libraries. 14949 need_lib_prefix=no 14950 need_version=no 14951 library_names_spec='$libname$release$shared_ext' 14952 soname_spec='$libname$release$shared_ext' 14953 finish_cmds= 14954 shlibpath_var=LD_LIBRARY_PATH 14955 shlibpath_overrides_runpath=yes 14956 14957 # This implies no fast_install, which is unacceptable. 14958 # Some rework will be needed to allow for fast_install 14959 # before this can be enabled. 14960 hardcode_into_libs=yes 14961 14962 dynamic_linker='Android linker' 14963 # Don't embed -rpath directories since the linker doesn't support them. 14964 hardcode_libdir_flag_spec='-L$libdir' 14965 ;; 14966 14967# This must be glibc/ELF. 14968linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14969 version_type=linux # correct to gnu/linux during the next big refactor 14970 need_lib_prefix=no 14971 need_version=no 14972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14973 soname_spec='$libname$release$shared_ext$major' 14974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14975 shlibpath_var=LD_LIBRARY_PATH 14976 shlibpath_overrides_runpath=no 14977 14978 # Some binutils ld are patched to set DT_RUNPATH 14979 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14980 $as_echo_n "(cached) " >&6 14981else 14982 lt_cv_shlibpath_overrides_runpath=no 14983 save_LDFLAGS=$LDFLAGS 14984 save_libdir=$libdir 14985 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14986 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14988/* end confdefs.h. */ 14989 14990int 14991main () 14992{ 14993 14994 ; 14995 return 0; 14996} 14997_ACEOF 14998if ac_fn_c_try_link "$LINENO"; then : 14999 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15000 lt_cv_shlibpath_overrides_runpath=yes 15001fi 15002fi 15003rm -f core conftest.err conftest.$ac_objext \ 15004 conftest$ac_exeext conftest.$ac_ext 15005 LDFLAGS=$save_LDFLAGS 15006 libdir=$save_libdir 15007 15008fi 15009 15010 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15011 15012 # This implies no fast_install, which is unacceptable. 15013 # Some rework will be needed to allow for fast_install 15014 # before this can be enabled. 15015 hardcode_into_libs=yes 15016 15017 # Ideally, we could use ldconfig to report *all* directores which are 15018 # searched for libraries, however this is still not possible. Aside from not 15019 # being certain /sbin/ldconfig is available, command 15020 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15021 # even though it is searched at run-time. Try to do the best guess by 15022 # appending ld.so.conf contents (and includes) to the search path. 15023 if test -f /etc/ld.so.conf; then 15024 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' ' '` 15025 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15026 fi 15027 15028 # We used to test for /lib/ld.so.1 and disable shared libraries on 15029 # powerpc, because MkLinux only supported shared libraries with the 15030 # GNU dynamic linker. Since this was broken with cross compilers, 15031 # most powerpc-linux boxes support dynamic linking these days and 15032 # people can always --disable-shared, the test was removed, and we 15033 # assume the GNU/Linux dynamic linker is in use. 15034 dynamic_linker='GNU/Linux ld.so' 15035 ;; 15036 15037netbsdelf*-gnu) 15038 version_type=linux 15039 need_lib_prefix=no 15040 need_version=no 15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15042 soname_spec='${libname}${release}${shared_ext}$major' 15043 shlibpath_var=LD_LIBRARY_PATH 15044 shlibpath_overrides_runpath=no 15045 hardcode_into_libs=yes 15046 dynamic_linker='NetBSD ld.elf_so' 15047 ;; 15048 15049netbsd*) 15050 version_type=sunos 15051 need_lib_prefix=no 15052 need_version=no 15053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15054 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15056 dynamic_linker='NetBSD (a.out) ld.so' 15057 else 15058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15059 soname_spec='$libname$release$shared_ext$major' 15060 dynamic_linker='NetBSD ld.elf_so' 15061 fi 15062 shlibpath_var=LD_LIBRARY_PATH 15063 shlibpath_overrides_runpath=yes 15064 hardcode_into_libs=yes 15065 ;; 15066 15067newsos6) 15068 version_type=linux # correct to gnu/linux during the next big refactor 15069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15070 shlibpath_var=LD_LIBRARY_PATH 15071 shlibpath_overrides_runpath=yes 15072 ;; 15073 15074*nto* | *qnx*) 15075 version_type=qnx 15076 need_lib_prefix=no 15077 need_version=no 15078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15079 soname_spec='$libname$release$shared_ext$major' 15080 shlibpath_var=LD_LIBRARY_PATH 15081 shlibpath_overrides_runpath=no 15082 hardcode_into_libs=yes 15083 dynamic_linker='ldqnx.so' 15084 ;; 15085 15086openbsd* | bitrig*) 15087 version_type=sunos 15088 sys_lib_dlsearch_path_spec=/usr/lib 15089 need_lib_prefix=no 15090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15091 need_version=no 15092 else 15093 need_version=yes 15094 fi 15095 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15097 shlibpath_var=LD_LIBRARY_PATH 15098 shlibpath_overrides_runpath=yes 15099 ;; 15100 15101os2*) 15102 libname_spec='$name' 15103 version_type=windows 15104 shrext_cmds=.dll 15105 need_version=no 15106 need_lib_prefix=no 15107 # OS/2 can only load a DLL with a base name of 8 characters or less. 15108 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15109 v=$($ECHO $release$versuffix | tr -d .-); 15110 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15111 $ECHO $n$v`$shared_ext' 15112 library_names_spec='${libname}_dll.$libext' 15113 dynamic_linker='OS/2 ld.exe' 15114 shlibpath_var=BEGINLIBPATH 15115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15117 postinstall_cmds='base_file=`basename \$file`~ 15118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15119 dldir=$destdir/`dirname \$dlpath`~ 15120 test -d \$dldir || mkdir -p \$dldir~ 15121 $install_prog $dir/$dlname \$dldir/$dlname~ 15122 chmod a+x \$dldir/$dlname~ 15123 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15124 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15125 fi' 15126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15127 dlpath=$dir/\$dldll~ 15128 $RM \$dlpath' 15129 ;; 15130 15131osf3* | osf4* | osf5*) 15132 version_type=osf 15133 need_lib_prefix=no 15134 need_version=no 15135 soname_spec='$libname$release$shared_ext$major' 15136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15137 shlibpath_var=LD_LIBRARY_PATH 15138 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15140 ;; 15141 15142rdos*) 15143 dynamic_linker=no 15144 ;; 15145 15146solaris*) 15147 version_type=linux # correct to gnu/linux during the next big refactor 15148 need_lib_prefix=no 15149 need_version=no 15150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15151 soname_spec='$libname$release$shared_ext$major' 15152 shlibpath_var=LD_LIBRARY_PATH 15153 shlibpath_overrides_runpath=yes 15154 hardcode_into_libs=yes 15155 # ldd complains unless libraries are executable 15156 postinstall_cmds='chmod +x $lib' 15157 ;; 15158 15159sunos4*) 15160 version_type=sunos 15161 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15162 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15163 shlibpath_var=LD_LIBRARY_PATH 15164 shlibpath_overrides_runpath=yes 15165 if test yes = "$with_gnu_ld"; then 15166 need_lib_prefix=no 15167 fi 15168 need_version=yes 15169 ;; 15170 15171sysv4 | sysv4.3*) 15172 version_type=linux # correct to gnu/linux during the next big refactor 15173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15174 soname_spec='$libname$release$shared_ext$major' 15175 shlibpath_var=LD_LIBRARY_PATH 15176 case $host_vendor in 15177 sni) 15178 shlibpath_overrides_runpath=no 15179 need_lib_prefix=no 15180 runpath_var=LD_RUN_PATH 15181 ;; 15182 siemens) 15183 need_lib_prefix=no 15184 ;; 15185 motorola) 15186 need_lib_prefix=no 15187 need_version=no 15188 shlibpath_overrides_runpath=no 15189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15190 ;; 15191 esac 15192 ;; 15193 15194sysv4*MP*) 15195 if test -d /usr/nec; then 15196 version_type=linux # correct to gnu/linux during the next big refactor 15197 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15198 soname_spec='$libname$shared_ext.$major' 15199 shlibpath_var=LD_LIBRARY_PATH 15200 fi 15201 ;; 15202 15203sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15204 version_type=sco 15205 need_lib_prefix=no 15206 need_version=no 15207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15208 soname_spec='$libname$release$shared_ext$major' 15209 shlibpath_var=LD_LIBRARY_PATH 15210 shlibpath_overrides_runpath=yes 15211 hardcode_into_libs=yes 15212 if test yes = "$with_gnu_ld"; then 15213 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15214 else 15215 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15216 case $host_os in 15217 sco3.2v5*) 15218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15219 ;; 15220 esac 15221 fi 15222 sys_lib_dlsearch_path_spec='/usr/lib' 15223 ;; 15224 15225tpf*) 15226 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15227 version_type=linux # correct to gnu/linux during the next big refactor 15228 need_lib_prefix=no 15229 need_version=no 15230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15231 shlibpath_var=LD_LIBRARY_PATH 15232 shlibpath_overrides_runpath=no 15233 hardcode_into_libs=yes 15234 ;; 15235 15236uts4*) 15237 version_type=linux # correct to gnu/linux during the next big refactor 15238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15239 soname_spec='$libname$release$shared_ext$major' 15240 shlibpath_var=LD_LIBRARY_PATH 15241 ;; 15242 15243*) 15244 dynamic_linker=no 15245 ;; 15246esac 15247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15248$as_echo "$dynamic_linker" >&6; } 15249test no = "$dynamic_linker" && can_build_shared=no 15250 15251variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15252if test yes = "$GCC"; then 15253 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15254fi 15255 15256if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15257 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15258fi 15259 15260if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15261 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15262fi 15263 15264# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15265configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15266 15267# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15268func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15269 15270# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15271configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15370$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15371hardcode_action= 15372if test -n "$hardcode_libdir_flag_spec" || 15373 test -n "$runpath_var" || 15374 test yes = "$hardcode_automatic"; then 15375 15376 # We can hardcode non-existent directories. 15377 if test no != "$hardcode_direct" && 15378 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15379 # have to relink, otherwise we might link with an installed library 15380 # when we should be linking with a yet-to-be-installed one 15381 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 15382 test no != "$hardcode_minus_L"; then 15383 # Linking always hardcodes the temporary library directory. 15384 hardcode_action=relink 15385 else 15386 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15387 hardcode_action=immediate 15388 fi 15389else 15390 # We cannot hardcode anything, or else we can only hardcode existing 15391 # directories. 15392 hardcode_action=unsupported 15393fi 15394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 15395$as_echo "$hardcode_action" >&6; } 15396 15397if test relink = "$hardcode_action" || 15398 test yes = "$inherit_rpath"; then 15399 # Fast installation is not supported 15400 enable_fast_install=no 15401elif test yes = "$shlibpath_overrides_runpath" || 15402 test no = "$enable_shared"; then 15403 # Fast installation is not necessary 15404 enable_fast_install=needless 15405fi 15406 15407 15408 15409 15410 15411 15412 if test yes != "$enable_dlopen"; then 15413 enable_dlopen=unknown 15414 enable_dlopen_self=unknown 15415 enable_dlopen_self_static=unknown 15416else 15417 lt_cv_dlopen=no 15418 lt_cv_dlopen_libs= 15419 15420 case $host_os in 15421 beos*) 15422 lt_cv_dlopen=load_add_on 15423 lt_cv_dlopen_libs= 15424 lt_cv_dlopen_self=yes 15425 ;; 15426 15427 mingw* | pw32* | cegcc*) 15428 lt_cv_dlopen=LoadLibrary 15429 lt_cv_dlopen_libs= 15430 ;; 15431 15432 cygwin*) 15433 lt_cv_dlopen=dlopen 15434 lt_cv_dlopen_libs= 15435 ;; 15436 15437 darwin*) 15438 # if libdl is installed we need to link against it 15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15440$as_echo_n "checking for dlopen in -ldl... " >&6; } 15441if ${ac_cv_lib_dl_dlopen+:} false; then : 15442 $as_echo_n "(cached) " >&6 15443else 15444 ac_check_lib_save_LIBS=$LIBS 15445LIBS="-ldl $LIBS" 15446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15447/* end confdefs.h. */ 15448 15449/* Override any GCC internal prototype to avoid an error. 15450 Use char because int might match the return type of a GCC 15451 builtin and then its argument prototype would still apply. */ 15452#ifdef __cplusplus 15453extern "C" 15454#endif 15455char dlopen (); 15456int 15457main () 15458{ 15459return dlopen (); 15460 ; 15461 return 0; 15462} 15463_ACEOF 15464if ac_fn_c_try_link "$LINENO"; then : 15465 ac_cv_lib_dl_dlopen=yes 15466else 15467 ac_cv_lib_dl_dlopen=no 15468fi 15469rm -f core conftest.err conftest.$ac_objext \ 15470 conftest$ac_exeext conftest.$ac_ext 15471LIBS=$ac_check_lib_save_LIBS 15472fi 15473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15474$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15475if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15476 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15477else 15478 15479 lt_cv_dlopen=dyld 15480 lt_cv_dlopen_libs= 15481 lt_cv_dlopen_self=yes 15482 15483fi 15484 15485 ;; 15486 15487 tpf*) 15488 # Don't try to run any link tests for TPF. We know it's impossible 15489 # because TPF is a cross-compiler, and we know how we open DSOs. 15490 lt_cv_dlopen=dlopen 15491 lt_cv_dlopen_libs= 15492 lt_cv_dlopen_self=no 15493 ;; 15494 15495 *) 15496 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 15497if test "x$ac_cv_func_shl_load" = xyes; then : 15498 lt_cv_dlopen=shl_load 15499else 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15501$as_echo_n "checking for shl_load in -ldld... " >&6; } 15502if ${ac_cv_lib_dld_shl_load+:} false; then : 15503 $as_echo_n "(cached) " >&6 15504else 15505 ac_check_lib_save_LIBS=$LIBS 15506LIBS="-ldld $LIBS" 15507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15508/* end confdefs.h. */ 15509 15510/* Override any GCC internal prototype to avoid an error. 15511 Use char because int might match the return type of a GCC 15512 builtin and then its argument prototype would still apply. */ 15513#ifdef __cplusplus 15514extern "C" 15515#endif 15516char shl_load (); 15517int 15518main () 15519{ 15520return shl_load (); 15521 ; 15522 return 0; 15523} 15524_ACEOF 15525if ac_fn_c_try_link "$LINENO"; then : 15526 ac_cv_lib_dld_shl_load=yes 15527else 15528 ac_cv_lib_dld_shl_load=no 15529fi 15530rm -f core conftest.err conftest.$ac_objext \ 15531 conftest$ac_exeext conftest.$ac_ext 15532LIBS=$ac_check_lib_save_LIBS 15533fi 15534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15535$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 15536if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 15537 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 15538else 15539 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15540if test "x$ac_cv_func_dlopen" = xyes; then : 15541 lt_cv_dlopen=dlopen 15542else 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15544$as_echo_n "checking for dlopen in -ldl... " >&6; } 15545if ${ac_cv_lib_dl_dlopen+:} false; then : 15546 $as_echo_n "(cached) " >&6 15547else 15548 ac_check_lib_save_LIBS=$LIBS 15549LIBS="-ldl $LIBS" 15550cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15551/* end confdefs.h. */ 15552 15553/* Override any GCC internal prototype to avoid an error. 15554 Use char because int might match the return type of a GCC 15555 builtin and then its argument prototype would still apply. */ 15556#ifdef __cplusplus 15557extern "C" 15558#endif 15559char dlopen (); 15560int 15561main () 15562{ 15563return dlopen (); 15564 ; 15565 return 0; 15566} 15567_ACEOF 15568if ac_fn_c_try_link "$LINENO"; then : 15569 ac_cv_lib_dl_dlopen=yes 15570else 15571 ac_cv_lib_dl_dlopen=no 15572fi 15573rm -f core conftest.err conftest.$ac_objext \ 15574 conftest$ac_exeext conftest.$ac_ext 15575LIBS=$ac_check_lib_save_LIBS 15576fi 15577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15578$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15579if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15580 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15581else 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 15583$as_echo_n "checking for dlopen in -lsvld... " >&6; } 15584if ${ac_cv_lib_svld_dlopen+:} false; then : 15585 $as_echo_n "(cached) " >&6 15586else 15587 ac_check_lib_save_LIBS=$LIBS 15588LIBS="-lsvld $LIBS" 15589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15590/* end confdefs.h. */ 15591 15592/* Override any GCC internal prototype to avoid an error. 15593 Use char because int might match the return type of a GCC 15594 builtin and then its argument prototype would still apply. */ 15595#ifdef __cplusplus 15596extern "C" 15597#endif 15598char dlopen (); 15599int 15600main () 15601{ 15602return dlopen (); 15603 ; 15604 return 0; 15605} 15606_ACEOF 15607if ac_fn_c_try_link "$LINENO"; then : 15608 ac_cv_lib_svld_dlopen=yes 15609else 15610 ac_cv_lib_svld_dlopen=no 15611fi 15612rm -f core conftest.err conftest.$ac_objext \ 15613 conftest$ac_exeext conftest.$ac_ext 15614LIBS=$ac_check_lib_save_LIBS 15615fi 15616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15617$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 15618if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 15619 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 15620else 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15622$as_echo_n "checking for dld_link in -ldld... " >&6; } 15623if ${ac_cv_lib_dld_dld_link+:} false; then : 15624 $as_echo_n "(cached) " >&6 15625else 15626 ac_check_lib_save_LIBS=$LIBS 15627LIBS="-ldld $LIBS" 15628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15629/* end confdefs.h. */ 15630 15631/* Override any GCC internal prototype to avoid an error. 15632 Use char because int might match the return type of a GCC 15633 builtin and then its argument prototype would still apply. */ 15634#ifdef __cplusplus 15635extern "C" 15636#endif 15637char dld_link (); 15638int 15639main () 15640{ 15641return dld_link (); 15642 ; 15643 return 0; 15644} 15645_ACEOF 15646if ac_fn_c_try_link "$LINENO"; then : 15647 ac_cv_lib_dld_dld_link=yes 15648else 15649 ac_cv_lib_dld_dld_link=no 15650fi 15651rm -f core conftest.err conftest.$ac_objext \ 15652 conftest$ac_exeext conftest.$ac_ext 15653LIBS=$ac_check_lib_save_LIBS 15654fi 15655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15656$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 15657if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 15658 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 15659fi 15660 15661 15662fi 15663 15664 15665fi 15666 15667 15668fi 15669 15670 15671fi 15672 15673 15674fi 15675 15676 ;; 15677 esac 15678 15679 if test no = "$lt_cv_dlopen"; then 15680 enable_dlopen=no 15681 else 15682 enable_dlopen=yes 15683 fi 15684 15685 case $lt_cv_dlopen in 15686 dlopen) 15687 save_CPPFLAGS=$CPPFLAGS 15688 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15689 15690 save_LDFLAGS=$LDFLAGS 15691 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15692 15693 save_LIBS=$LIBS 15694 LIBS="$lt_cv_dlopen_libs $LIBS" 15695 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15697$as_echo_n "checking whether a program can dlopen itself... " >&6; } 15698if ${lt_cv_dlopen_self+:} false; then : 15699 $as_echo_n "(cached) " >&6 15700else 15701 if test yes = "$cross_compiling"; then : 15702 lt_cv_dlopen_self=cross 15703else 15704 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15705 lt_status=$lt_dlunknown 15706 cat > conftest.$ac_ext <<_LT_EOF 15707#line $LINENO "configure" 15708#include "confdefs.h" 15709 15710#if HAVE_DLFCN_H 15711#include <dlfcn.h> 15712#endif 15713 15714#include <stdio.h> 15715 15716#ifdef RTLD_GLOBAL 15717# define LT_DLGLOBAL RTLD_GLOBAL 15718#else 15719# ifdef DL_GLOBAL 15720# define LT_DLGLOBAL DL_GLOBAL 15721# else 15722# define LT_DLGLOBAL 0 15723# endif 15724#endif 15725 15726/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15727 find out it does not work in some platform. */ 15728#ifndef LT_DLLAZY_OR_NOW 15729# ifdef RTLD_LAZY 15730# define LT_DLLAZY_OR_NOW RTLD_LAZY 15731# else 15732# ifdef DL_LAZY 15733# define LT_DLLAZY_OR_NOW DL_LAZY 15734# else 15735# ifdef RTLD_NOW 15736# define LT_DLLAZY_OR_NOW RTLD_NOW 15737# else 15738# ifdef DL_NOW 15739# define LT_DLLAZY_OR_NOW DL_NOW 15740# else 15741# define LT_DLLAZY_OR_NOW 0 15742# endif 15743# endif 15744# endif 15745# endif 15746#endif 15747 15748/* When -fvisibility=hidden is used, assume the code has been annotated 15749 correspondingly for the symbols needed. */ 15750#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15751int fnord () __attribute__((visibility("default"))); 15752#endif 15753 15754int fnord () { return 42; } 15755int main () 15756{ 15757 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15758 int status = $lt_dlunknown; 15759 15760 if (self) 15761 { 15762 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15763 else 15764 { 15765 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15766 else puts (dlerror ()); 15767 } 15768 /* dlclose (self); */ 15769 } 15770 else 15771 puts (dlerror ()); 15772 15773 return status; 15774} 15775_LT_EOF 15776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15777 (eval $ac_link) 2>&5 15778 ac_status=$? 15779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15780 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15781 (./conftest; exit; ) >&5 2>/dev/null 15782 lt_status=$? 15783 case x$lt_status in 15784 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15785 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15786 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15787 esac 15788 else : 15789 # compilation failed 15790 lt_cv_dlopen_self=no 15791 fi 15792fi 15793rm -fr conftest* 15794 15795 15796fi 15797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15798$as_echo "$lt_cv_dlopen_self" >&6; } 15799 15800 if test yes = "$lt_cv_dlopen_self"; then 15801 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15803$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 15804if ${lt_cv_dlopen_self_static+:} false; then : 15805 $as_echo_n "(cached) " >&6 15806else 15807 if test yes = "$cross_compiling"; then : 15808 lt_cv_dlopen_self_static=cross 15809else 15810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15811 lt_status=$lt_dlunknown 15812 cat > conftest.$ac_ext <<_LT_EOF 15813#line $LINENO "configure" 15814#include "confdefs.h" 15815 15816#if HAVE_DLFCN_H 15817#include <dlfcn.h> 15818#endif 15819 15820#include <stdio.h> 15821 15822#ifdef RTLD_GLOBAL 15823# define LT_DLGLOBAL RTLD_GLOBAL 15824#else 15825# ifdef DL_GLOBAL 15826# define LT_DLGLOBAL DL_GLOBAL 15827# else 15828# define LT_DLGLOBAL 0 15829# endif 15830#endif 15831 15832/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15833 find out it does not work in some platform. */ 15834#ifndef LT_DLLAZY_OR_NOW 15835# ifdef RTLD_LAZY 15836# define LT_DLLAZY_OR_NOW RTLD_LAZY 15837# else 15838# ifdef DL_LAZY 15839# define LT_DLLAZY_OR_NOW DL_LAZY 15840# else 15841# ifdef RTLD_NOW 15842# define LT_DLLAZY_OR_NOW RTLD_NOW 15843# else 15844# ifdef DL_NOW 15845# define LT_DLLAZY_OR_NOW DL_NOW 15846# else 15847# define LT_DLLAZY_OR_NOW 0 15848# endif 15849# endif 15850# endif 15851# endif 15852#endif 15853 15854/* When -fvisibility=hidden is used, assume the code has been annotated 15855 correspondingly for the symbols needed. */ 15856#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15857int fnord () __attribute__((visibility("default"))); 15858#endif 15859 15860int fnord () { return 42; } 15861int main () 15862{ 15863 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15864 int status = $lt_dlunknown; 15865 15866 if (self) 15867 { 15868 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15869 else 15870 { 15871 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15872 else puts (dlerror ()); 15873 } 15874 /* dlclose (self); */ 15875 } 15876 else 15877 puts (dlerror ()); 15878 15879 return status; 15880} 15881_LT_EOF 15882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15883 (eval $ac_link) 2>&5 15884 ac_status=$? 15885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15886 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15887 (./conftest; exit; ) >&5 2>/dev/null 15888 lt_status=$? 15889 case x$lt_status in 15890 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15891 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15892 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15893 esac 15894 else : 15895 # compilation failed 15896 lt_cv_dlopen_self_static=no 15897 fi 15898fi 15899rm -fr conftest* 15900 15901 15902fi 15903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15904$as_echo "$lt_cv_dlopen_self_static" >&6; } 15905 fi 15906 15907 CPPFLAGS=$save_CPPFLAGS 15908 LDFLAGS=$save_LDFLAGS 15909 LIBS=$save_LIBS 15910 ;; 15911 esac 15912 15913 case $lt_cv_dlopen_self in 15914 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15915 *) enable_dlopen_self=unknown ;; 15916 esac 15917 15918 case $lt_cv_dlopen_self_static in 15919 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15920 *) enable_dlopen_self_static=unknown ;; 15921 esac 15922fi 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940striplib= 15941old_striplib= 15942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15943$as_echo_n "checking whether stripping libraries is possible... " >&6; } 15944if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15945 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15946 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15948$as_echo "yes" >&6; } 15949else 15950# FIXME - insert some real tests, host_os isn't really good enough 15951 case $host_os in 15952 darwin*) 15953 if test -n "$STRIP"; then 15954 striplib="$STRIP -x" 15955 old_striplib="$STRIP -S" 15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15957$as_echo "yes" >&6; } 15958 else 15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15960$as_echo "no" >&6; } 15961 fi 15962 ;; 15963 *) 15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15965$as_echo "no" >&6; } 15966 ;; 15967 esac 15968fi 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 # Report what library types will actually be built 15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15983$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15985$as_echo "$can_build_shared" >&6; } 15986 15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15988$as_echo_n "checking whether to build shared libraries... " >&6; } 15989 test no = "$can_build_shared" && enable_shared=no 15990 15991 # On AIX, shared libraries and static libraries use the same namespace, and 15992 # are all built from PIC. 15993 case $host_os in 15994 aix3*) 15995 test yes = "$enable_shared" && enable_static=no 15996 if test -n "$RANLIB"; then 15997 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15998 postinstall_cmds='$RANLIB $lib' 15999 fi 16000 ;; 16001 16002 aix[4-9]*) 16003 if test ia64 != "$host_cpu"; then 16004 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 16005 yes,aix,yes) ;; # shared object as lib.so file only 16006 yes,svr4,*) ;; # shared object as lib.so archive member only 16007 yes,*) enable_static=no ;; # shared object in lib.a archive as well 16008 esac 16009 fi 16010 ;; 16011 esac 16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 16013$as_echo "$enable_shared" >&6; } 16014 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 16016$as_echo_n "checking whether to build static libraries... " >&6; } 16017 # Make sure either enable_shared or enable_static is yes. 16018 test yes = "$enable_shared" || enable_static=yes 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 16020$as_echo "$enable_static" >&6; } 16021 16022 16023 16024 16025fi 16026ac_ext=c 16027ac_cpp='$CPP $CPPFLAGS' 16028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16030ac_compiler_gnu=$ac_cv_c_compiler_gnu 16031 16032CC=$lt_save_CC 16033 16034 if test -n "$CXX" && ( test no != "$CXX" && 16035 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 16036 (test g++ != "$CXX"))); then 16037 ac_ext=cpp 16038ac_cpp='$CXXCPP $CPPFLAGS' 16039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 16043$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 16044if test -z "$CXXCPP"; then 16045 if ${ac_cv_prog_CXXCPP+:} false; then : 16046 $as_echo_n "(cached) " >&6 16047else 16048 # Double quotes because CXXCPP needs to be expanded 16049 for CXXCPP in "$CXX -E" "/lib/cpp" 16050 do 16051 ac_preproc_ok=false 16052for ac_cxx_preproc_warn_flag in '' yes 16053do 16054 # Use a header file that comes with gcc, so configuring glibc 16055 # with a fresh cross-compiler works. 16056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16057 # <limits.h> exists even on freestanding compilers. 16058 # On the NeXT, cc -E runs the code through the compiler's parser, 16059 # not just through cpp. "Syntax error" is here to catch this case. 16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16061/* end confdefs.h. */ 16062#ifdef __STDC__ 16063# include <limits.h> 16064#else 16065# include <assert.h> 16066#endif 16067 Syntax error 16068_ACEOF 16069if ac_fn_cxx_try_cpp "$LINENO"; then : 16070 16071else 16072 # Broken: fails on valid input. 16073continue 16074fi 16075rm -f conftest.err conftest.i conftest.$ac_ext 16076 16077 # OK, works on sane cases. Now check whether nonexistent headers 16078 # can be detected and how. 16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16080/* end confdefs.h. */ 16081#include <ac_nonexistent.h> 16082_ACEOF 16083if ac_fn_cxx_try_cpp "$LINENO"; then : 16084 # Broken: success on invalid input. 16085continue 16086else 16087 # Passes both tests. 16088ac_preproc_ok=: 16089break 16090fi 16091rm -f conftest.err conftest.i conftest.$ac_ext 16092 16093done 16094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16095rm -f conftest.i conftest.err conftest.$ac_ext 16096if $ac_preproc_ok; then : 16097 break 16098fi 16099 16100 done 16101 ac_cv_prog_CXXCPP=$CXXCPP 16102 16103fi 16104 CXXCPP=$ac_cv_prog_CXXCPP 16105else 16106 ac_cv_prog_CXXCPP=$CXXCPP 16107fi 16108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 16109$as_echo "$CXXCPP" >&6; } 16110ac_preproc_ok=false 16111for ac_cxx_preproc_warn_flag in '' yes 16112do 16113 # Use a header file that comes with gcc, so configuring glibc 16114 # with a fresh cross-compiler works. 16115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16116 # <limits.h> exists even on freestanding compilers. 16117 # On the NeXT, cc -E runs the code through the compiler's parser, 16118 # not just through cpp. "Syntax error" is here to catch this case. 16119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16120/* end confdefs.h. */ 16121#ifdef __STDC__ 16122# include <limits.h> 16123#else 16124# include <assert.h> 16125#endif 16126 Syntax error 16127_ACEOF 16128if ac_fn_cxx_try_cpp "$LINENO"; then : 16129 16130else 16131 # Broken: fails on valid input. 16132continue 16133fi 16134rm -f conftest.err conftest.i conftest.$ac_ext 16135 16136 # OK, works on sane cases. Now check whether nonexistent headers 16137 # can be detected and how. 16138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16139/* end confdefs.h. */ 16140#include <ac_nonexistent.h> 16141_ACEOF 16142if ac_fn_cxx_try_cpp "$LINENO"; then : 16143 # Broken: success on invalid input. 16144continue 16145else 16146 # Passes both tests. 16147ac_preproc_ok=: 16148break 16149fi 16150rm -f conftest.err conftest.i conftest.$ac_ext 16151 16152done 16153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16154rm -f conftest.i conftest.err conftest.$ac_ext 16155if $ac_preproc_ok; then : 16156 16157else 16158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16160as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 16161See \`config.log' for more details" "$LINENO" 5; } 16162fi 16163 16164ac_ext=c 16165ac_cpp='$CPP $CPPFLAGS' 16166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16168ac_compiler_gnu=$ac_cv_c_compiler_gnu 16169 16170else 16171 _lt_caught_CXX_error=yes 16172fi 16173 16174ac_ext=cpp 16175ac_cpp='$CXXCPP $CPPFLAGS' 16176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16179 16180archive_cmds_need_lc_CXX=no 16181allow_undefined_flag_CXX= 16182always_export_symbols_CXX=no 16183archive_expsym_cmds_CXX= 16184compiler_needs_object_CXX=no 16185export_dynamic_flag_spec_CXX= 16186hardcode_direct_CXX=no 16187hardcode_direct_absolute_CXX=no 16188hardcode_libdir_flag_spec_CXX= 16189hardcode_libdir_separator_CXX= 16190hardcode_minus_L_CXX=no 16191hardcode_shlibpath_var_CXX=unsupported 16192hardcode_automatic_CXX=no 16193inherit_rpath_CXX=no 16194module_cmds_CXX= 16195module_expsym_cmds_CXX= 16196link_all_deplibs_CXX=unknown 16197old_archive_cmds_CXX=$old_archive_cmds 16198reload_flag_CXX=$reload_flag 16199reload_cmds_CXX=$reload_cmds 16200no_undefined_flag_CXX= 16201whole_archive_flag_spec_CXX= 16202enable_shared_with_static_runtimes_CXX=no 16203 16204# Source file extension for C++ test sources. 16205ac_ext=cpp 16206 16207# Object file extension for compiled C++ test sources. 16208objext=o 16209objext_CXX=$objext 16210 16211# No sense in running all these tests if we already determined that 16212# the CXX compiler isn't working. Some variables (like enable_shared) 16213# are currently assumed to apply to all compilers on this platform, 16214# and will be corrupted by setting them based on a non-working compiler. 16215if test yes != "$_lt_caught_CXX_error"; then 16216 # Code to be used in simple compile tests 16217 lt_simple_compile_test_code="int some_variable = 0;" 16218 16219 # Code to be used in simple link tests 16220 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 16221 16222 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 16223 16224 16225 16226 16227 16228 16229# If no C compiler was specified, use CC. 16230LTCC=${LTCC-"$CC"} 16231 16232# If no C compiler flags were specified, use CFLAGS. 16233LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16234 16235# Allow CC to be a program name with arguments. 16236compiler=$CC 16237 16238 16239 # save warnings/boilerplate of simple test code 16240 ac_outfile=conftest.$ac_objext 16241echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16242eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16243_lt_compiler_boilerplate=`cat conftest.err` 16244$RM conftest* 16245 16246 ac_outfile=conftest.$ac_objext 16247echo "$lt_simple_link_test_code" >conftest.$ac_ext 16248eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16249_lt_linker_boilerplate=`cat conftest.err` 16250$RM -r conftest* 16251 16252 16253 # Allow CC to be a program name with arguments. 16254 lt_save_CC=$CC 16255 lt_save_CFLAGS=$CFLAGS 16256 lt_save_LD=$LD 16257 lt_save_GCC=$GCC 16258 GCC=$GXX 16259 lt_save_with_gnu_ld=$with_gnu_ld 16260 lt_save_path_LD=$lt_cv_path_LD 16261 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 16262 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 16263 else 16264 $as_unset lt_cv_prog_gnu_ld 16265 fi 16266 if test -n "${lt_cv_path_LDCXX+set}"; then 16267 lt_cv_path_LD=$lt_cv_path_LDCXX 16268 else 16269 $as_unset lt_cv_path_LD 16270 fi 16271 test -z "${LDCXX+set}" || LD=$LDCXX 16272 CC=${CXX-"c++"} 16273 CFLAGS=$CXXFLAGS 16274 compiler=$CC 16275 compiler_CXX=$CC 16276 func_cc_basename $compiler 16277cc_basename=$func_cc_basename_result 16278 16279 16280 if test -n "$compiler"; then 16281 # We don't want -fno-exception when compiling C++ code, so set the 16282 # no_builtin_flag separately 16283 if test yes = "$GXX"; then 16284 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 16285 else 16286 lt_prog_compiler_no_builtin_flag_CXX= 16287 fi 16288 16289 if test yes = "$GXX"; then 16290 # Set up default GNU C++ configuration 16291 16292 16293 16294# Check whether --with-gnu-ld was given. 16295if test "${with_gnu_ld+set}" = set; then : 16296 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 16297else 16298 with_gnu_ld=no 16299fi 16300 16301ac_prog=ld 16302if test yes = "$GCC"; then 16303 # Check if gcc -print-prog-name=ld gives a path. 16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 16305$as_echo_n "checking for ld used by $CC... " >&6; } 16306 case $host in 16307 *-*-mingw*) 16308 # gcc leaves a trailing carriage return, which upsets mingw 16309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 16310 *) 16311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 16312 esac 16313 case $ac_prog in 16314 # Accept absolute paths. 16315 [\\/]* | ?:[\\/]*) 16316 re_direlt='/[^/][^/]*/\.\./' 16317 # Canonicalize the pathname of ld 16318 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 16319 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 16320 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 16321 done 16322 test -z "$LD" && LD=$ac_prog 16323 ;; 16324 "") 16325 # If it fails, then pretend we aren't using GCC. 16326 ac_prog=ld 16327 ;; 16328 *) 16329 # If it is relative, then search for the first ld in PATH. 16330 with_gnu_ld=unknown 16331 ;; 16332 esac 16333elif test yes = "$with_gnu_ld"; then 16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 16335$as_echo_n "checking for GNU ld... " >&6; } 16336else 16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 16338$as_echo_n "checking for non-GNU ld... " >&6; } 16339fi 16340if ${lt_cv_path_LD+:} false; then : 16341 $as_echo_n "(cached) " >&6 16342else 16343 if test -z "$LD"; then 16344 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 16345 for ac_dir in $PATH; do 16346 IFS=$lt_save_ifs 16347 test -z "$ac_dir" && ac_dir=. 16348 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 16349 lt_cv_path_LD=$ac_dir/$ac_prog 16350 # Check to see if the program is GNU ld. I'd rather use --version, 16351 # but apparently some variants of GNU ld only accept -v. 16352 # Break only if it was the GNU/non-GNU ld that we prefer. 16353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 16354 *GNU* | *'with BFD'*) 16355 test no != "$with_gnu_ld" && break 16356 ;; 16357 *) 16358 test yes != "$with_gnu_ld" && break 16359 ;; 16360 esac 16361 fi 16362 done 16363 IFS=$lt_save_ifs 16364else 16365 lt_cv_path_LD=$LD # Let the user override the test with a path. 16366fi 16367fi 16368 16369LD=$lt_cv_path_LD 16370if test -n "$LD"; then 16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 16372$as_echo "$LD" >&6; } 16373else 16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16375$as_echo "no" >&6; } 16376fi 16377test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 16378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 16379$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 16380if ${lt_cv_prog_gnu_ld+:} false; then : 16381 $as_echo_n "(cached) " >&6 16382else 16383 # I'd rather use --version here, but apparently some GNU lds only accept -v. 16384case `$LD -v 2>&1 </dev/null` in 16385*GNU* | *'with BFD'*) 16386 lt_cv_prog_gnu_ld=yes 16387 ;; 16388*) 16389 lt_cv_prog_gnu_ld=no 16390 ;; 16391esac 16392fi 16393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 16394$as_echo "$lt_cv_prog_gnu_ld" >&6; } 16395with_gnu_ld=$lt_cv_prog_gnu_ld 16396 16397 16398 16399 16400 16401 16402 16403 # Check if GNU C++ uses GNU ld as the underlying linker, since the 16404 # archiving commands below assume that GNU ld is being used. 16405 if test yes = "$with_gnu_ld"; then 16406 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16407 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' 16408 16409 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16410 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16411 16412 # If archive_cmds runs LD, not CC, wlarc should be empty 16413 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 16414 # investigate it a little bit more. (MM) 16415 wlarc='$wl' 16416 16417 # ancient GNU ld didn't support --whole-archive et. al. 16418 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 16419 $GREP 'no-whole-archive' > /dev/null; then 16420 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16421 else 16422 whole_archive_flag_spec_CXX= 16423 fi 16424 else 16425 with_gnu_ld=no 16426 wlarc= 16427 16428 # A generic and very simple default shared library creation 16429 # command for GNU C++ for the case where it uses the native 16430 # linker, instead of GNU ld. If possible, this setting should 16431 # overridden to take advantage of the native linker features on 16432 # the platform it is being used on. 16433 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16434 fi 16435 16436 # Commands to make compiler produce verbose output that lists 16437 # what "hidden" libraries, object files and flags are used when 16438 # linking a shared library. 16439 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16440 16441 else 16442 GXX=no 16443 with_gnu_ld=no 16444 wlarc= 16445 fi 16446 16447 # PORTME: fill in a description of your system's C++ link characteristics 16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16449$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16450 ld_shlibs_CXX=yes 16451 case $host_os in 16452 aix3*) 16453 # FIXME: insert proper C++ library support 16454 ld_shlibs_CXX=no 16455 ;; 16456 aix[4-9]*) 16457 if test ia64 = "$host_cpu"; then 16458 # On IA64, the linker does run time linking by default, so we don't 16459 # have to do anything special. 16460 aix_use_runtimelinking=no 16461 exp_sym_flag='-Bexport' 16462 no_entry_flag= 16463 else 16464 aix_use_runtimelinking=no 16465 16466 # Test if we are trying to use run time linking or normal 16467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16468 # have runtime linking enabled, and use it for executables. 16469 # For shared libraries, we enable/disable runtime linking 16470 # depending on the kind of the shared library created - 16471 # when "with_aix_soname,aix_use_runtimelinking" is: 16472 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16473 # "aix,yes" lib.so shared, rtl:yes, for executables 16474 # lib.a static archive 16475 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16476 # lib.a(lib.so.V) shared, rtl:no, for executables 16477 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16478 # lib.a(lib.so.V) shared, rtl:no 16479 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16480 # lib.a static archive 16481 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16482 for ld_flag in $LDFLAGS; do 16483 case $ld_flag in 16484 *-brtl*) 16485 aix_use_runtimelinking=yes 16486 break 16487 ;; 16488 esac 16489 done 16490 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16491 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16492 # so we don't have lib.a shared libs to link our executables. 16493 # We have to force runtime linking in this case. 16494 aix_use_runtimelinking=yes 16495 LDFLAGS="$LDFLAGS -Wl,-brtl" 16496 fi 16497 ;; 16498 esac 16499 16500 exp_sym_flag='-bexport' 16501 no_entry_flag='-bnoentry' 16502 fi 16503 16504 # When large executables or shared objects are built, AIX ld can 16505 # have problems creating the table of contents. If linking a library 16506 # or program results in "error TOC overflow" add -mminimal-toc to 16507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16509 16510 archive_cmds_CXX='' 16511 hardcode_direct_CXX=yes 16512 hardcode_direct_absolute_CXX=yes 16513 hardcode_libdir_separator_CXX=':' 16514 link_all_deplibs_CXX=yes 16515 file_list_spec_CXX='$wl-f,' 16516 case $with_aix_soname,$aix_use_runtimelinking in 16517 aix,*) ;; # no import file 16518 svr4,* | *,yes) # use import file 16519 # The Import File defines what to hardcode. 16520 hardcode_direct_CXX=no 16521 hardcode_direct_absolute_CXX=no 16522 ;; 16523 esac 16524 16525 if test yes = "$GXX"; then 16526 case $host_os in aix4.[012]|aix4.[012].*) 16527 # We only want to do this on AIX 4.2 and lower, the check 16528 # below for broken collect2 doesn't work under 4.3+ 16529 collect2name=`$CC -print-prog-name=collect2` 16530 if test -f "$collect2name" && 16531 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16532 then 16533 # We have reworked collect2 16534 : 16535 else 16536 # We have old collect2 16537 hardcode_direct_CXX=unsupported 16538 # It fails to find uninstalled libraries when the uninstalled 16539 # path is not listed in the libpath. Setting hardcode_minus_L 16540 # to unsupported forces relinking 16541 hardcode_minus_L_CXX=yes 16542 hardcode_libdir_flag_spec_CXX='-L$libdir' 16543 hardcode_libdir_separator_CXX= 16544 fi 16545 esac 16546 shared_flag='-shared' 16547 if test yes = "$aix_use_runtimelinking"; then 16548 shared_flag=$shared_flag' $wl-G' 16549 fi 16550 # Need to ensure runtime linking is disabled for the traditional 16551 # shared library, or the linker may eventually find shared libraries 16552 # /with/ Import File - we do not want to mix them. 16553 shared_flag_aix='-shared' 16554 shared_flag_svr4='-shared $wl-G' 16555 else 16556 # not using gcc 16557 if test ia64 = "$host_cpu"; then 16558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16559 # chokes on -Wl,-G. The following line is correct: 16560 shared_flag='-G' 16561 else 16562 if test yes = "$aix_use_runtimelinking"; then 16563 shared_flag='$wl-G' 16564 else 16565 shared_flag='$wl-bM:SRE' 16566 fi 16567 shared_flag_aix='$wl-bM:SRE' 16568 shared_flag_svr4='$wl-G' 16569 fi 16570 fi 16571 16572 export_dynamic_flag_spec_CXX='$wl-bexpall' 16573 # It seems that -bexpall does not export symbols beginning with 16574 # underscore (_), so it is better to generate a list of symbols to 16575 # export. 16576 always_export_symbols_CXX=yes 16577 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16578 # Warning - without using the other runtime loading flags (-brtl), 16579 # -berok will link without error, but may produce a broken library. 16580 # The "-G" linker flag allows undefined symbols. 16581 no_undefined_flag_CXX='-bernotok' 16582 # Determine the default libpath from the value encoded in an empty 16583 # executable. 16584 if test set = "${lt_cv_aix_libpath+set}"; then 16585 aix_libpath=$lt_cv_aix_libpath 16586else 16587 if ${lt_cv_aix_libpath__CXX+:} false; then : 16588 $as_echo_n "(cached) " >&6 16589else 16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16591/* end confdefs.h. */ 16592 16593int 16594main () 16595{ 16596 16597 ; 16598 return 0; 16599} 16600_ACEOF 16601if ac_fn_cxx_try_link "$LINENO"; then : 16602 16603 lt_aix_libpath_sed=' 16604 /Import File Strings/,/^$/ { 16605 /^0/ { 16606 s/^0 *\([^ ]*\) *$/\1/ 16607 p 16608 } 16609 }' 16610 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16611 # Check for a 64-bit object if we didn't find anything. 16612 if test -z "$lt_cv_aix_libpath__CXX"; then 16613 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16614 fi 16615fi 16616rm -f core conftest.err conftest.$ac_objext \ 16617 conftest$ac_exeext conftest.$ac_ext 16618 if test -z "$lt_cv_aix_libpath__CXX"; then 16619 lt_cv_aix_libpath__CXX=/usr/lib:/lib 16620 fi 16621 16622fi 16623 16624 aix_libpath=$lt_cv_aix_libpath__CXX 16625fi 16626 16627 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 16628 16629 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 16630 else 16631 if test ia64 = "$host_cpu"; then 16632 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 16633 allow_undefined_flag_CXX="-z nodefs" 16634 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" 16635 else 16636 # Determine the default libpath from the value encoded in an 16637 # empty executable. 16638 if test set = "${lt_cv_aix_libpath+set}"; then 16639 aix_libpath=$lt_cv_aix_libpath 16640else 16641 if ${lt_cv_aix_libpath__CXX+:} false; then : 16642 $as_echo_n "(cached) " >&6 16643else 16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16645/* end confdefs.h. */ 16646 16647int 16648main () 16649{ 16650 16651 ; 16652 return 0; 16653} 16654_ACEOF 16655if ac_fn_cxx_try_link "$LINENO"; then : 16656 16657 lt_aix_libpath_sed=' 16658 /Import File Strings/,/^$/ { 16659 /^0/ { 16660 s/^0 *\([^ ]*\) *$/\1/ 16661 p 16662 } 16663 }' 16664 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16665 # Check for a 64-bit object if we didn't find anything. 16666 if test -z "$lt_cv_aix_libpath__CXX"; then 16667 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16668 fi 16669fi 16670rm -f core conftest.err conftest.$ac_objext \ 16671 conftest$ac_exeext conftest.$ac_ext 16672 if test -z "$lt_cv_aix_libpath__CXX"; then 16673 lt_cv_aix_libpath__CXX=/usr/lib:/lib 16674 fi 16675 16676fi 16677 16678 aix_libpath=$lt_cv_aix_libpath__CXX 16679fi 16680 16681 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 16682 # Warning - without using the other run time loading flags, 16683 # -berok will link without error, but may produce a broken library. 16684 no_undefined_flag_CXX=' $wl-bernotok' 16685 allow_undefined_flag_CXX=' $wl-berok' 16686 if test yes = "$with_gnu_ld"; then 16687 # We only use this code for GNU lds that support --whole-archive. 16688 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16689 else 16690 # Exported symbols can be pulled into shared objects from archives 16691 whole_archive_flag_spec_CXX='$convenience' 16692 fi 16693 archive_cmds_need_lc_CXX=yes 16694 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16695 # -brtl affects multiple linker settings, -berok does not and is overridden later 16696 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16697 if test svr4 != "$with_aix_soname"; then 16698 # This is similar to how AIX traditionally builds its shared 16699 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 16700 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' 16701 fi 16702 if test aix != "$with_aix_soname"; then 16703 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' 16704 else 16705 # used by -dlpreopen to get the symbols 16706 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16707 fi 16708 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 16709 fi 16710 fi 16711 ;; 16712 16713 beos*) 16714 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16715 allow_undefined_flag_CXX=unsupported 16716 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16717 # support --undefined. This deserves some investigation. FIXME 16718 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16719 else 16720 ld_shlibs_CXX=no 16721 fi 16722 ;; 16723 16724 chorus*) 16725 case $cc_basename in 16726 *) 16727 # FIXME: insert proper C++ library support 16728 ld_shlibs_CXX=no 16729 ;; 16730 esac 16731 ;; 16732 16733 cygwin* | mingw* | pw32* | cegcc*) 16734 case $GXX,$cc_basename in 16735 ,cl* | no,cl*) 16736 # Native MSVC 16737 # hardcode_libdir_flag_spec is actually meaningless, as there is 16738 # no search path for DLLs. 16739 hardcode_libdir_flag_spec_CXX=' ' 16740 allow_undefined_flag_CXX=unsupported 16741 always_export_symbols_CXX=yes 16742 file_list_spec_CXX='@' 16743 # Tell ltmain to make .lib files, not .a files. 16744 libext=lib 16745 # Tell ltmain to make .dll files, not .so files. 16746 shrext_cmds=.dll 16747 # FIXME: Setting linknames here is a bad hack. 16748 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16749 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16750 cp "$export_symbols" "$output_objdir/$soname.def"; 16751 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16752 else 16753 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16754 fi~ 16755 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16756 linknames=' 16757 # The linker will not automatically build a static lib if we build a DLL. 16758 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 16759 enable_shared_with_static_runtimes_CXX=yes 16760 # Don't use ranlib 16761 old_postinstall_cmds_CXX='chmod 644 $oldlib' 16762 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 16763 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16764 case $lt_outputfile in 16765 *.exe|*.EXE) ;; 16766 *) 16767 lt_outputfile=$lt_outputfile.exe 16768 lt_tool_outputfile=$lt_tool_outputfile.exe 16769 ;; 16770 esac~ 16771 func_to_tool_file "$lt_outputfile"~ 16772 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16773 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16774 $RM "$lt_outputfile.manifest"; 16775 fi' 16776 ;; 16777 *) 16778 # g++ 16779 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 16780 # as there is no search path for DLLs. 16781 hardcode_libdir_flag_spec_CXX='-L$libdir' 16782 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 16783 allow_undefined_flag_CXX=unsupported 16784 always_export_symbols_CXX=no 16785 enable_shared_with_static_runtimes_CXX=yes 16786 16787 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16788 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' 16789 # If the export-symbols file already is a .def file, use it as 16790 # is; otherwise, prepend EXPORTS... 16791 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16792 cp $export_symbols $output_objdir/$soname.def; 16793 else 16794 echo EXPORTS > $output_objdir/$soname.def; 16795 cat $export_symbols >> $output_objdir/$soname.def; 16796 fi~ 16797 $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' 16798 else 16799 ld_shlibs_CXX=no 16800 fi 16801 ;; 16802 esac 16803 ;; 16804 darwin* | rhapsody*) 16805 16806 16807 archive_cmds_need_lc_CXX=no 16808 hardcode_direct_CXX=no 16809 hardcode_automatic_CXX=yes 16810 hardcode_shlibpath_var_CXX=unsupported 16811 if test yes = "$lt_cv_ld_force_load"; then 16812 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\"`' 16813 16814 else 16815 whole_archive_flag_spec_CXX='' 16816 fi 16817 link_all_deplibs_CXX=yes 16818 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 16819 case $cc_basename in 16820 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16821 *) _lt_dar_can_shared=$GCC ;; 16822 esac 16823 if test yes = "$_lt_dar_can_shared"; then 16824 output_verbose_link_cmd=func_echo_all 16825 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" 16826 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16827 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" 16828 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" 16829 if test yes != "$lt_cv_apple_cc_single_mod"; then 16830 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" 16831 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" 16832 fi 16833 16834 else 16835 ld_shlibs_CXX=no 16836 fi 16837 16838 ;; 16839 16840 os2*) 16841 hardcode_libdir_flag_spec_CXX='-L$libdir' 16842 hardcode_minus_L_CXX=yes 16843 allow_undefined_flag_CXX=unsupported 16844 shrext_cmds=.dll 16845 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16846 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16847 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16848 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16849 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16850 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16851 emximp -o $lib $output_objdir/$libname.def' 16852 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16853 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16854 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16855 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16856 prefix_cmds="$SED"~ 16857 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16858 prefix_cmds="$prefix_cmds -e 1d"; 16859 fi~ 16860 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16861 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16862 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16863 emximp -o $lib $output_objdir/$libname.def' 16864 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16865 enable_shared_with_static_runtimes_CXX=yes 16866 ;; 16867 16868 dgux*) 16869 case $cc_basename in 16870 ec++*) 16871 # FIXME: insert proper C++ library support 16872 ld_shlibs_CXX=no 16873 ;; 16874 ghcx*) 16875 # Green Hills C++ Compiler 16876 # FIXME: insert proper C++ library support 16877 ld_shlibs_CXX=no 16878 ;; 16879 *) 16880 # FIXME: insert proper C++ library support 16881 ld_shlibs_CXX=no 16882 ;; 16883 esac 16884 ;; 16885 16886 freebsd2.*) 16887 # C++ shared libraries reported to be fairly broken before 16888 # switch to ELF 16889 ld_shlibs_CXX=no 16890 ;; 16891 16892 freebsd-elf*) 16893 archive_cmds_need_lc_CXX=no 16894 ;; 16895 16896 freebsd* | dragonfly*) 16897 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 16898 # conventions 16899 ld_shlibs_CXX=yes 16900 ;; 16901 16902 haiku*) 16903 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16904 link_all_deplibs_CXX=yes 16905 ;; 16906 16907 hpux9*) 16908 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16909 hardcode_libdir_separator_CXX=: 16910 export_dynamic_flag_spec_CXX='$wl-E' 16911 hardcode_direct_CXX=yes 16912 hardcode_minus_L_CXX=yes # Not in the search PATH, 16913 # but as the default 16914 # location of the library. 16915 16916 case $cc_basename in 16917 CC*) 16918 # FIXME: insert proper C++ library support 16919 ld_shlibs_CXX=no 16920 ;; 16921 aCC*) 16922 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' 16923 # Commands to make compiler produce verbose output that lists 16924 # what "hidden" libraries, object files and flags are used when 16925 # linking a shared library. 16926 # 16927 # There doesn't appear to be a way to prevent this compiler from 16928 # explicitly linking system object files so we need to strip them 16929 # from the output so that they don't get included in the library 16930 # dependencies. 16931 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"' 16932 ;; 16933 *) 16934 if test yes = "$GXX"; then 16935 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' 16936 else 16937 # FIXME: insert proper C++ library support 16938 ld_shlibs_CXX=no 16939 fi 16940 ;; 16941 esac 16942 ;; 16943 16944 hpux10*|hpux11*) 16945 if test no = "$with_gnu_ld"; then 16946 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16947 hardcode_libdir_separator_CXX=: 16948 16949 case $host_cpu in 16950 hppa*64*|ia64*) 16951 ;; 16952 *) 16953 export_dynamic_flag_spec_CXX='$wl-E' 16954 ;; 16955 esac 16956 fi 16957 case $host_cpu in 16958 hppa*64*|ia64*) 16959 hardcode_direct_CXX=no 16960 hardcode_shlibpath_var_CXX=no 16961 ;; 16962 *) 16963 hardcode_direct_CXX=yes 16964 hardcode_direct_absolute_CXX=yes 16965 hardcode_minus_L_CXX=yes # Not in the search PATH, 16966 # but as the default 16967 # location of the library. 16968 ;; 16969 esac 16970 16971 case $cc_basename in 16972 CC*) 16973 # FIXME: insert proper C++ library support 16974 ld_shlibs_CXX=no 16975 ;; 16976 aCC*) 16977 case $host_cpu in 16978 hppa*64*) 16979 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16980 ;; 16981 ia64*) 16982 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16983 ;; 16984 *) 16985 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16986 ;; 16987 esac 16988 # Commands to make compiler produce verbose output that lists 16989 # what "hidden" libraries, object files and flags are used when 16990 # linking a shared library. 16991 # 16992 # There doesn't appear to be a way to prevent this compiler from 16993 # explicitly linking system object files so we need to strip them 16994 # from the output so that they don't get included in the library 16995 # dependencies. 16996 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"' 16997 ;; 16998 *) 16999 if test yes = "$GXX"; then 17000 if test no = "$with_gnu_ld"; then 17001 case $host_cpu in 17002 hppa*64*) 17003 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17004 ;; 17005 ia64*) 17006 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17007 ;; 17008 *) 17009 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' 17010 ;; 17011 esac 17012 fi 17013 else 17014 # FIXME: insert proper C++ library support 17015 ld_shlibs_CXX=no 17016 fi 17017 ;; 17018 esac 17019 ;; 17020 17021 interix[3-9]*) 17022 hardcode_direct_CXX=no 17023 hardcode_shlibpath_var_CXX=no 17024 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 17025 export_dynamic_flag_spec_CXX='$wl-E' 17026 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17027 # Instead, shared libraries are loaded at an image base (0x10000000 by 17028 # default) and relocated if they conflict, which is a slow very memory 17029 # consuming and fragmenting process. To avoid this, we pick a random, 17030 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17031 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17032 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' 17033 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' 17034 ;; 17035 irix5* | irix6*) 17036 case $cc_basename in 17037 CC*) 17038 # SGI C++ 17039 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' 17040 17041 # Archives containing C++ object files must be created using 17042 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 17043 # necessary to make sure instantiated templates are included 17044 # in the archive. 17045 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 17046 ;; 17047 *) 17048 if test yes = "$GXX"; then 17049 if test no = "$with_gnu_ld"; then 17050 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' 17051 else 17052 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' 17053 fi 17054 fi 17055 link_all_deplibs_CXX=yes 17056 ;; 17057 esac 17058 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 17059 hardcode_libdir_separator_CXX=: 17060 inherit_rpath_CXX=yes 17061 ;; 17062 17063 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17064 case $cc_basename in 17065 KCC*) 17066 # Kuck and Associates, Inc. (KAI) C++ Compiler 17067 17068 # KCC will only create a shared library if the output file 17069 # ends with ".so" (or ".sl" for HP-UX), so rename the library 17070 # to its proper name (with version) after linking. 17071 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' 17072 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' 17073 # Commands to make compiler produce verbose output that lists 17074 # what "hidden" libraries, object files and flags are used when 17075 # linking a shared library. 17076 # 17077 # There doesn't appear to be a way to prevent this compiler from 17078 # explicitly linking system object files so we need to strip them 17079 # from the output so that they don't get included in the library 17080 # dependencies. 17081 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"' 17082 17083 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 17084 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 17085 17086 # Archives containing C++ object files must be created using 17087 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 17088 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 17089 ;; 17090 icpc* | ecpc* ) 17091 # Intel C++ 17092 with_gnu_ld=yes 17093 # version 8.0 and above of icpc choke on multiply defined symbols 17094 # if we add $predep_objects and $postdep_objects, however 7.1 and 17095 # earlier do not add the objects themselves. 17096 case `$CC -V 2>&1` in 17097 *"Version 7."*) 17098 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 17099 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' 17100 ;; 17101 *) # Version 8.0 or newer 17102 tmp_idyn= 17103 case $host_cpu in 17104 ia64*) tmp_idyn=' -i_dynamic';; 17105 esac 17106 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17107 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' 17108 ;; 17109 esac 17110 archive_cmds_need_lc_CXX=no 17111 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 17112 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 17113 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 17114 ;; 17115 pgCC* | pgcpp*) 17116 # Portland Group C++ compiler 17117 case `$CC -V` in 17118 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 17119 prelink_cmds_CXX='tpldir=Template.dir~ 17120 rm -rf $tpldir~ 17121 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 17122 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 17123 old_archive_cmds_CXX='tpldir=Template.dir~ 17124 rm -rf $tpldir~ 17125 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 17126 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 17127 $RANLIB $oldlib' 17128 archive_cmds_CXX='tpldir=Template.dir~ 17129 rm -rf $tpldir~ 17130 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 17131 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 17132 archive_expsym_cmds_CXX='tpldir=Template.dir~ 17133 rm -rf $tpldir~ 17134 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 17135 $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' 17136 ;; 17137 *) # Version 6 and above use weak symbols 17138 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 17139 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' 17140 ;; 17141 esac 17142 17143 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 17144 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 17145 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' 17146 ;; 17147 cxx*) 17148 # Compaq C++ 17149 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 17150 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' 17151 17152 runpath_var=LD_RUN_PATH 17153 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 17154 hardcode_libdir_separator_CXX=: 17155 17156 # Commands to make compiler produce verbose output that lists 17157 # what "hidden" libraries, object files and flags are used when 17158 # linking a shared library. 17159 # 17160 # There doesn't appear to be a way to prevent this compiler from 17161 # explicitly linking system object files so we need to strip them 17162 # from the output so that they don't get included in the library 17163 # dependencies. 17164 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' 17165 ;; 17166 xl* | mpixl* | bgxl*) 17167 # IBM XL 8.0 on PPC, with GNU ld 17168 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 17169 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 17170 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17171 if test yes = "$supports_anon_versioning"; then 17172 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 17173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17174 echo "local: *; };" >> $output_objdir/$libname.ver~ 17175 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 17176 fi 17177 ;; 17178 *) 17179 case `$CC -V 2>&1 | sed 5q` in 17180 *Sun\ C*) 17181 # Sun C++ 5.9 17182 no_undefined_flag_CXX=' -zdefs' 17183 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17184 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' 17185 hardcode_libdir_flag_spec_CXX='-R$libdir' 17186 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' 17187 compiler_needs_object_CXX=yes 17188 17189 # Not sure whether something based on 17190 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 17191 # would be better. 17192 output_verbose_link_cmd='func_echo_all' 17193 17194 # Archives containing C++ object files must be created using 17195 # "CC -xar", where "CC" is the Sun C++ compiler. This is 17196 # necessary to make sure instantiated templates are included 17197 # in the archive. 17198 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 17199 ;; 17200 esac 17201 ;; 17202 esac 17203 ;; 17204 17205 lynxos*) 17206 # FIXME: insert proper C++ library support 17207 ld_shlibs_CXX=no 17208 ;; 17209 17210 m88k*) 17211 # FIXME: insert proper C++ library support 17212 ld_shlibs_CXX=no 17213 ;; 17214 17215 mvs*) 17216 case $cc_basename in 17217 cxx*) 17218 # FIXME: insert proper C++ library support 17219 ld_shlibs_CXX=no 17220 ;; 17221 *) 17222 # FIXME: insert proper C++ library support 17223 ld_shlibs_CXX=no 17224 ;; 17225 esac 17226 ;; 17227 17228 netbsd*) 17229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17230 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 17231 wlarc= 17232 hardcode_libdir_flag_spec_CXX='-R$libdir' 17233 hardcode_direct_CXX=yes 17234 hardcode_shlibpath_var_CXX=no 17235 fi 17236 # Workaround some broken pre-1.5 toolchains 17237 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 17238 ;; 17239 17240 *nto* | *qnx*) 17241 ld_shlibs_CXX=yes 17242 ;; 17243 17244 openbsd* | bitrig*) 17245 if test -f /usr/libexec/ld.so; then 17246 hardcode_direct_CXX=yes 17247 hardcode_shlibpath_var_CXX=no 17248 hardcode_direct_absolute_CXX=yes 17249 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 17250 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 17251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 17252 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 17253 export_dynamic_flag_spec_CXX='$wl-E' 17254 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 17255 fi 17256 output_verbose_link_cmd=func_echo_all 17257 else 17258 ld_shlibs_CXX=no 17259 fi 17260 ;; 17261 17262 osf3* | osf4* | osf5*) 17263 case $cc_basename in 17264 KCC*) 17265 # Kuck and Associates, Inc. (KAI) C++ Compiler 17266 17267 # KCC will only create a shared library if the output file 17268 # ends with ".so" (or ".sl" for HP-UX), so rename the library 17269 # to its proper name (with version) after linking. 17270 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' 17271 17272 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 17273 hardcode_libdir_separator_CXX=: 17274 17275 # Archives containing C++ object files must be created using 17276 # the KAI C++ compiler. 17277 case $host in 17278 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 17279 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 17280 esac 17281 ;; 17282 RCC*) 17283 # Rational C++ 2.4.1 17284 # FIXME: insert proper C++ library support 17285 ld_shlibs_CXX=no 17286 ;; 17287 cxx*) 17288 case $host in 17289 osf3*) 17290 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 17291 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' 17292 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 17293 ;; 17294 *) 17295 allow_undefined_flag_CXX=' -expect_unresolved \*' 17296 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' 17297 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 17298 echo "-hidden">> $lib.exp~ 17299 $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~ 17300 $RM $lib.exp' 17301 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 17302 ;; 17303 esac 17304 17305 hardcode_libdir_separator_CXX=: 17306 17307 # Commands to make compiler produce verbose output that lists 17308 # what "hidden" libraries, object files and flags are used when 17309 # linking a shared library. 17310 # 17311 # There doesn't appear to be a way to prevent this compiler from 17312 # explicitly linking system object files so we need to strip them 17313 # from the output so that they don't get included in the library 17314 # dependencies. 17315 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"' 17316 ;; 17317 *) 17318 if test yes,no = "$GXX,$with_gnu_ld"; then 17319 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 17320 case $host in 17321 osf3*) 17322 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' 17323 ;; 17324 *) 17325 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' 17326 ;; 17327 esac 17328 17329 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 17330 hardcode_libdir_separator_CXX=: 17331 17332 # Commands to make compiler produce verbose output that lists 17333 # what "hidden" libraries, object files and flags are used when 17334 # linking a shared library. 17335 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17336 17337 else 17338 # FIXME: insert proper C++ library support 17339 ld_shlibs_CXX=no 17340 fi 17341 ;; 17342 esac 17343 ;; 17344 17345 psos*) 17346 # FIXME: insert proper C++ library support 17347 ld_shlibs_CXX=no 17348 ;; 17349 17350 sunos4*) 17351 case $cc_basename in 17352 CC*) 17353 # Sun C++ 4.x 17354 # FIXME: insert proper C++ library support 17355 ld_shlibs_CXX=no 17356 ;; 17357 lcc*) 17358 # Lucid 17359 # FIXME: insert proper C++ library support 17360 ld_shlibs_CXX=no 17361 ;; 17362 *) 17363 # FIXME: insert proper C++ library support 17364 ld_shlibs_CXX=no 17365 ;; 17366 esac 17367 ;; 17368 17369 solaris*) 17370 case $cc_basename in 17371 CC* | sunCC*) 17372 # Sun C++ 4.2, 5.x and Centerline C++ 17373 archive_cmds_need_lc_CXX=yes 17374 no_undefined_flag_CXX=' -zdefs' 17375 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17376 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17377 $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' 17378 17379 hardcode_libdir_flag_spec_CXX='-R$libdir' 17380 hardcode_shlibpath_var_CXX=no 17381 case $host_os in 17382 solaris2.[0-5] | solaris2.[0-5].*) ;; 17383 *) 17384 # The compiler driver will combine and reorder linker options, 17385 # but understands '-z linker_flag'. 17386 # Supported since Solaris 2.6 (maybe 2.5.1?) 17387 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 17388 ;; 17389 esac 17390 link_all_deplibs_CXX=yes 17391 17392 output_verbose_link_cmd='func_echo_all' 17393 17394 # Archives containing C++ object files must be created using 17395 # "CC -xar", where "CC" is the Sun C++ compiler. This is 17396 # necessary to make sure instantiated templates are included 17397 # in the archive. 17398 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 17399 ;; 17400 gcx*) 17401 # Green Hills C++ Compiler 17402 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 17403 17404 # The C++ compiler must be used to create the archive. 17405 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 17406 ;; 17407 *) 17408 # GNU C++ compiler with Solaris linker 17409 if test yes,no = "$GXX,$with_gnu_ld"; then 17410 no_undefined_flag_CXX=' $wl-z ${wl}defs' 17411 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 17412 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 17413 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17414 $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' 17415 17416 # Commands to make compiler produce verbose output that lists 17417 # what "hidden" libraries, object files and flags are used when 17418 # linking a shared library. 17419 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17420 else 17421 # g++ 2.7 appears to require '-G' NOT '-shared' on this 17422 # platform. 17423 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 17424 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17425 $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' 17426 17427 # Commands to make compiler produce verbose output that lists 17428 # what "hidden" libraries, object files and flags are used when 17429 # linking a shared library. 17430 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17431 fi 17432 17433 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 17434 case $host_os in 17435 solaris2.[0-5] | solaris2.[0-5].*) ;; 17436 *) 17437 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17438 ;; 17439 esac 17440 fi 17441 ;; 17442 esac 17443 ;; 17444 17445 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17446 no_undefined_flag_CXX='$wl-z,text' 17447 archive_cmds_need_lc_CXX=no 17448 hardcode_shlibpath_var_CXX=no 17449 runpath_var='LD_RUN_PATH' 17450 17451 case $cc_basename in 17452 CC*) 17453 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17454 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17455 ;; 17456 *) 17457 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17458 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17459 ;; 17460 esac 17461 ;; 17462 17463 sysv5* | sco3.2v5* | sco5v6*) 17464 # Note: We CANNOT use -z defs as we might desire, because we do not 17465 # link with -lc, and that would cause any symbols used from libc to 17466 # always be unresolved, which means just about no library would 17467 # ever link correctly. If we're not using GNU ld we use -z text 17468 # though, which does catch some bad symbols but isn't as heavy-handed 17469 # as -z defs. 17470 no_undefined_flag_CXX='$wl-z,text' 17471 allow_undefined_flag_CXX='$wl-z,nodefs' 17472 archive_cmds_need_lc_CXX=no 17473 hardcode_shlibpath_var_CXX=no 17474 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 17475 hardcode_libdir_separator_CXX=':' 17476 link_all_deplibs_CXX=yes 17477 export_dynamic_flag_spec_CXX='$wl-Bexport' 17478 runpath_var='LD_RUN_PATH' 17479 17480 case $cc_basename in 17481 CC*) 17482 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17483 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17484 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 17485 '"$old_archive_cmds_CXX" 17486 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 17487 '"$reload_cmds_CXX" 17488 ;; 17489 *) 17490 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17491 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17492 ;; 17493 esac 17494 ;; 17495 17496 tandem*) 17497 case $cc_basename in 17498 NCC*) 17499 # NonStop-UX NCC 3.20 17500 # FIXME: insert proper C++ library support 17501 ld_shlibs_CXX=no 17502 ;; 17503 *) 17504 # FIXME: insert proper C++ library support 17505 ld_shlibs_CXX=no 17506 ;; 17507 esac 17508 ;; 17509 17510 vxworks*) 17511 # FIXME: insert proper C++ library support 17512 ld_shlibs_CXX=no 17513 ;; 17514 17515 *) 17516 # FIXME: insert proper C++ library support 17517 ld_shlibs_CXX=no 17518 ;; 17519 esac 17520 17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17522$as_echo "$ld_shlibs_CXX" >&6; } 17523 test no = "$ld_shlibs_CXX" && can_build_shared=no 17524 17525 GCC_CXX=$GXX 17526 LD_CXX=$LD 17527 17528 ## CAVEAT EMPTOR: 17529 ## There is no encapsulation within the following macros, do not change 17530 ## the running order or otherwise move them around unless you know exactly 17531 ## what you are doing... 17532 # Dependencies to place before and after the object being linked: 17533predep_objects_CXX= 17534postdep_objects_CXX= 17535predeps_CXX= 17536postdeps_CXX= 17537compiler_lib_search_path_CXX= 17538 17539cat > conftest.$ac_ext <<_LT_EOF 17540class Foo 17541{ 17542public: 17543 Foo (void) { a = 0; } 17544private: 17545 int a; 17546}; 17547_LT_EOF 17548 17549 17550_lt_libdeps_save_CFLAGS=$CFLAGS 17551case "$CC $CFLAGS " in #( 17552*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 17553*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 17554*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 17555esac 17556 17557if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17558 (eval $ac_compile) 2>&5 17559 ac_status=$? 17560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17561 test $ac_status = 0; }; then 17562 # Parse the compiler output and extract the necessary 17563 # objects, libraries and library flags. 17564 17565 # Sentinel used to keep track of whether or not we are before 17566 # the conftest object file. 17567 pre_test_object_deps_done=no 17568 17569 for p in `eval "$output_verbose_link_cmd"`; do 17570 case $prev$p in 17571 17572 -L* | -R* | -l*) 17573 # Some compilers place space between "-{L,R}" and the path. 17574 # Remove the space. 17575 if test x-L = "$p" || 17576 test x-R = "$p"; then 17577 prev=$p 17578 continue 17579 fi 17580 17581 # Expand the sysroot to ease extracting the directories later. 17582 if test -z "$prev"; then 17583 case $p in 17584 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 17585 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 17586 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 17587 esac 17588 fi 17589 case $p in 17590 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 17591 esac 17592 if test no = "$pre_test_object_deps_done"; then 17593 case $prev in 17594 -L | -R) 17595 # Internal compiler library paths should come after those 17596 # provided the user. The postdeps already come after the 17597 # user supplied libs so there is no need to process them. 17598 if test -z "$compiler_lib_search_path_CXX"; then 17599 compiler_lib_search_path_CXX=$prev$p 17600 else 17601 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 17602 fi 17603 ;; 17604 # The "-l" case would never come before the object being 17605 # linked, so don't bother handling this case. 17606 esac 17607 else 17608 if test -z "$postdeps_CXX"; then 17609 postdeps_CXX=$prev$p 17610 else 17611 postdeps_CXX="${postdeps_CXX} $prev$p" 17612 fi 17613 fi 17614 prev= 17615 ;; 17616 17617 *.lto.$objext) ;; # Ignore GCC LTO objects 17618 *.$objext) 17619 # This assumes that the test object file only shows up 17620 # once in the compiler output. 17621 if test "$p" = "conftest.$objext"; then 17622 pre_test_object_deps_done=yes 17623 continue 17624 fi 17625 17626 if test no = "$pre_test_object_deps_done"; then 17627 if test -z "$predep_objects_CXX"; then 17628 predep_objects_CXX=$p 17629 else 17630 predep_objects_CXX="$predep_objects_CXX $p" 17631 fi 17632 else 17633 if test -z "$postdep_objects_CXX"; then 17634 postdep_objects_CXX=$p 17635 else 17636 postdep_objects_CXX="$postdep_objects_CXX $p" 17637 fi 17638 fi 17639 ;; 17640 17641 *) ;; # Ignore the rest. 17642 17643 esac 17644 done 17645 17646 # Clean up. 17647 rm -f a.out a.exe 17648else 17649 echo "libtool.m4: error: problem compiling CXX test program" 17650fi 17651 17652$RM -f confest.$objext 17653CFLAGS=$_lt_libdeps_save_CFLAGS 17654 17655# PORTME: override above test on systems where it is broken 17656case $host_os in 17657interix[3-9]*) 17658 # Interix 3.5 installs completely hosed .la files for C++, so rather than 17659 # hack all around it, let's just trust "g++" to DTRT. 17660 predep_objects_CXX= 17661 postdep_objects_CXX= 17662 postdeps_CXX= 17663 ;; 17664esac 17665 17666 17667case " $postdeps_CXX " in 17668*" -lc "*) archive_cmds_need_lc_CXX=no ;; 17669esac 17670 compiler_lib_search_dirs_CXX= 17671if test -n "${compiler_lib_search_path_CXX}"; then 17672 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 17673fi 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 lt_prog_compiler_wl_CXX= 17706lt_prog_compiler_pic_CXX= 17707lt_prog_compiler_static_CXX= 17708 17709 17710 # C++ specific cases for pic, static, wl, etc. 17711 if test yes = "$GXX"; then 17712 lt_prog_compiler_wl_CXX='-Wl,' 17713 lt_prog_compiler_static_CXX='-static' 17714 17715 case $host_os in 17716 aix*) 17717 # All AIX code is PIC. 17718 if test ia64 = "$host_cpu"; then 17719 # AIX 5 now supports IA64 processor 17720 lt_prog_compiler_static_CXX='-Bstatic' 17721 fi 17722 lt_prog_compiler_pic_CXX='-fPIC' 17723 ;; 17724 17725 amigaos*) 17726 case $host_cpu in 17727 powerpc) 17728 # see comment about AmigaOS4 .so support 17729 lt_prog_compiler_pic_CXX='-fPIC' 17730 ;; 17731 m68k) 17732 # FIXME: we need at least 68020 code to build shared libraries, but 17733 # adding the '-m68020' flag to GCC prevents building anything better, 17734 # like '-m68040'. 17735 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 17736 ;; 17737 esac 17738 ;; 17739 17740 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17741 # PIC is the default for these OSes. 17742 ;; 17743 mingw* | cygwin* | os2* | pw32* | cegcc*) 17744 # This hack is so that the source file can tell whether it is being 17745 # built for inclusion in a dll (and should export symbols for example). 17746 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17747 # (--disable-auto-import) libraries 17748 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17749 case $host_os in 17750 os2*) 17751 lt_prog_compiler_static_CXX='$wl-static' 17752 ;; 17753 esac 17754 ;; 17755 darwin* | rhapsody*) 17756 # PIC is the default on this platform 17757 # Common symbols not allowed in MH_DYLIB files 17758 lt_prog_compiler_pic_CXX='-fno-common' 17759 ;; 17760 *djgpp*) 17761 # DJGPP does not support shared libraries at all 17762 lt_prog_compiler_pic_CXX= 17763 ;; 17764 haiku*) 17765 # PIC is the default for Haiku. 17766 # The "-static" flag exists, but is broken. 17767 lt_prog_compiler_static_CXX= 17768 ;; 17769 interix[3-9]*) 17770 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17771 # Instead, we relocate shared libraries at runtime. 17772 ;; 17773 sysv4*MP*) 17774 if test -d /usr/nec; then 17775 lt_prog_compiler_pic_CXX=-Kconform_pic 17776 fi 17777 ;; 17778 hpux*) 17779 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 17780 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 17781 # sets the default TLS model and affects inlining. 17782 case $host_cpu in 17783 hppa*64*) 17784 ;; 17785 *) 17786 lt_prog_compiler_pic_CXX='-fPIC' 17787 ;; 17788 esac 17789 ;; 17790 *qnx* | *nto*) 17791 # QNX uses GNU C++, but need to define -shared option too, otherwise 17792 # it will coredump. 17793 lt_prog_compiler_pic_CXX='-fPIC -shared' 17794 ;; 17795 *) 17796 lt_prog_compiler_pic_CXX='-fPIC' 17797 ;; 17798 esac 17799 else 17800 case $host_os in 17801 aix[4-9]*) 17802 # All AIX code is PIC. 17803 if test ia64 = "$host_cpu"; then 17804 # AIX 5 now supports IA64 processor 17805 lt_prog_compiler_static_CXX='-Bstatic' 17806 else 17807 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 17808 fi 17809 ;; 17810 chorus*) 17811 case $cc_basename in 17812 cxch68*) 17813 # Green Hills C++ Compiler 17814 # _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" 17815 ;; 17816 esac 17817 ;; 17818 mingw* | cygwin* | os2* | pw32* | cegcc*) 17819 # This hack is so that the source file can tell whether it is being 17820 # built for inclusion in a dll (and should export symbols for example). 17821 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17822 ;; 17823 dgux*) 17824 case $cc_basename in 17825 ec++*) 17826 lt_prog_compiler_pic_CXX='-KPIC' 17827 ;; 17828 ghcx*) 17829 # Green Hills C++ Compiler 17830 lt_prog_compiler_pic_CXX='-pic' 17831 ;; 17832 *) 17833 ;; 17834 esac 17835 ;; 17836 freebsd* | dragonfly*) 17837 # FreeBSD uses GNU C++ 17838 ;; 17839 hpux9* | hpux10* | hpux11*) 17840 case $cc_basename in 17841 CC*) 17842 lt_prog_compiler_wl_CXX='-Wl,' 17843 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17844 if test ia64 != "$host_cpu"; then 17845 lt_prog_compiler_pic_CXX='+Z' 17846 fi 17847 ;; 17848 aCC*) 17849 lt_prog_compiler_wl_CXX='-Wl,' 17850 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17851 case $host_cpu in 17852 hppa*64*|ia64*) 17853 # +Z the default 17854 ;; 17855 *) 17856 lt_prog_compiler_pic_CXX='+Z' 17857 ;; 17858 esac 17859 ;; 17860 *) 17861 ;; 17862 esac 17863 ;; 17864 interix*) 17865 # This is c89, which is MS Visual C++ (no shared libs) 17866 # Anyone wants to do a port? 17867 ;; 17868 irix5* | irix6* | nonstopux*) 17869 case $cc_basename in 17870 CC*) 17871 lt_prog_compiler_wl_CXX='-Wl,' 17872 lt_prog_compiler_static_CXX='-non_shared' 17873 # CC pic flag -KPIC is the default. 17874 ;; 17875 *) 17876 ;; 17877 esac 17878 ;; 17879 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17880 case $cc_basename in 17881 KCC*) 17882 # KAI C++ Compiler 17883 lt_prog_compiler_wl_CXX='--backend -Wl,' 17884 lt_prog_compiler_pic_CXX='-fPIC' 17885 ;; 17886 ecpc* ) 17887 # old Intel C++ for x86_64, which still supported -KPIC. 17888 lt_prog_compiler_wl_CXX='-Wl,' 17889 lt_prog_compiler_pic_CXX='-KPIC' 17890 lt_prog_compiler_static_CXX='-static' 17891 ;; 17892 icpc* ) 17893 # Intel C++, used to be incompatible with GCC. 17894 # ICC 10 doesn't accept -KPIC any more. 17895 lt_prog_compiler_wl_CXX='-Wl,' 17896 lt_prog_compiler_pic_CXX='-fPIC' 17897 lt_prog_compiler_static_CXX='-static' 17898 ;; 17899 pgCC* | pgcpp*) 17900 # Portland Group C++ compiler 17901 lt_prog_compiler_wl_CXX='-Wl,' 17902 lt_prog_compiler_pic_CXX='-fpic' 17903 lt_prog_compiler_static_CXX='-Bstatic' 17904 ;; 17905 cxx*) 17906 # Compaq C++ 17907 # Make sure the PIC flag is empty. It appears that all Alpha 17908 # Linux and Compaq Tru64 Unix objects are PIC. 17909 lt_prog_compiler_pic_CXX= 17910 lt_prog_compiler_static_CXX='-non_shared' 17911 ;; 17912 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 17913 # IBM XL 8.0, 9.0 on PPC and BlueGene 17914 lt_prog_compiler_wl_CXX='-Wl,' 17915 lt_prog_compiler_pic_CXX='-qpic' 17916 lt_prog_compiler_static_CXX='-qstaticlink' 17917 ;; 17918 *) 17919 case `$CC -V 2>&1 | sed 5q` in 17920 *Sun\ C*) 17921 # Sun C++ 5.9 17922 lt_prog_compiler_pic_CXX='-KPIC' 17923 lt_prog_compiler_static_CXX='-Bstatic' 17924 lt_prog_compiler_wl_CXX='-Qoption ld ' 17925 ;; 17926 esac 17927 ;; 17928 esac 17929 ;; 17930 lynxos*) 17931 ;; 17932 m88k*) 17933 ;; 17934 mvs*) 17935 case $cc_basename in 17936 cxx*) 17937 lt_prog_compiler_pic_CXX='-W c,exportall' 17938 ;; 17939 *) 17940 ;; 17941 esac 17942 ;; 17943 netbsd* | netbsdelf*-gnu) 17944 ;; 17945 *qnx* | *nto*) 17946 # QNX uses GNU C++, but need to define -shared option too, otherwise 17947 # it will coredump. 17948 lt_prog_compiler_pic_CXX='-fPIC -shared' 17949 ;; 17950 osf3* | osf4* | osf5*) 17951 case $cc_basename in 17952 KCC*) 17953 lt_prog_compiler_wl_CXX='--backend -Wl,' 17954 ;; 17955 RCC*) 17956 # Rational C++ 2.4.1 17957 lt_prog_compiler_pic_CXX='-pic' 17958 ;; 17959 cxx*) 17960 # Digital/Compaq C++ 17961 lt_prog_compiler_wl_CXX='-Wl,' 17962 # Make sure the PIC flag is empty. It appears that all Alpha 17963 # Linux and Compaq Tru64 Unix objects are PIC. 17964 lt_prog_compiler_pic_CXX= 17965 lt_prog_compiler_static_CXX='-non_shared' 17966 ;; 17967 *) 17968 ;; 17969 esac 17970 ;; 17971 psos*) 17972 ;; 17973 solaris*) 17974 case $cc_basename in 17975 CC* | sunCC*) 17976 # Sun C++ 4.2, 5.x and Centerline C++ 17977 lt_prog_compiler_pic_CXX='-KPIC' 17978 lt_prog_compiler_static_CXX='-Bstatic' 17979 lt_prog_compiler_wl_CXX='-Qoption ld ' 17980 ;; 17981 gcx*) 17982 # Green Hills C++ Compiler 17983 lt_prog_compiler_pic_CXX='-PIC' 17984 ;; 17985 *) 17986 ;; 17987 esac 17988 ;; 17989 sunos4*) 17990 case $cc_basename in 17991 CC*) 17992 # Sun C++ 4.x 17993 lt_prog_compiler_pic_CXX='-pic' 17994 lt_prog_compiler_static_CXX='-Bstatic' 17995 ;; 17996 lcc*) 17997 # Lucid 17998 lt_prog_compiler_pic_CXX='-pic' 17999 ;; 18000 *) 18001 ;; 18002 esac 18003 ;; 18004 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 18005 case $cc_basename in 18006 CC*) 18007 lt_prog_compiler_wl_CXX='-Wl,' 18008 lt_prog_compiler_pic_CXX='-KPIC' 18009 lt_prog_compiler_static_CXX='-Bstatic' 18010 ;; 18011 esac 18012 ;; 18013 tandem*) 18014 case $cc_basename in 18015 NCC*) 18016 # NonStop-UX NCC 3.20 18017 lt_prog_compiler_pic_CXX='-KPIC' 18018 ;; 18019 *) 18020 ;; 18021 esac 18022 ;; 18023 vxworks*) 18024 ;; 18025 *) 18026 lt_prog_compiler_can_build_shared_CXX=no 18027 ;; 18028 esac 18029 fi 18030 18031case $host_os in 18032 # For platforms that do not support PIC, -DPIC is meaningless: 18033 *djgpp*) 18034 lt_prog_compiler_pic_CXX= 18035 ;; 18036 *) 18037 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 18038 ;; 18039esac 18040 18041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 18042$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 18043if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 18044 $as_echo_n "(cached) " >&6 18045else 18046 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 18047fi 18048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 18049$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 18050lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 18051 18052# 18053# Check to make sure the PIC flag actually works. 18054# 18055if test -n "$lt_prog_compiler_pic_CXX"; then 18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 18057$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 18058if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 18059 $as_echo_n "(cached) " >&6 18060else 18061 lt_cv_prog_compiler_pic_works_CXX=no 18062 ac_outfile=conftest.$ac_objext 18063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18064 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 18065 # Insert the option either (1) after the last *FLAGS variable, or 18066 # (2) before a word containing "conftest.", or (3) at the end. 18067 # Note that $ac_compile itself does not contain backslashes and begins 18068 # with a dollar sign (not a hyphen), so the echo should work correctly. 18069 # The option is referenced via a variable to avoid confusing sed. 18070 lt_compile=`echo "$ac_compile" | $SED \ 18071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18073 -e 's:$: $lt_compiler_flag:'` 18074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18075 (eval "$lt_compile" 2>conftest.err) 18076 ac_status=$? 18077 cat conftest.err >&5 18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18079 if (exit $ac_status) && test -s "$ac_outfile"; then 18080 # The compiler can only warn and ignore the option if not recognized 18081 # So say no if there are warnings other than the usual output. 18082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 18083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18085 lt_cv_prog_compiler_pic_works_CXX=yes 18086 fi 18087 fi 18088 $RM conftest* 18089 18090fi 18091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 18092$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 18093 18094if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 18095 case $lt_prog_compiler_pic_CXX in 18096 "" | " "*) ;; 18097 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 18098 esac 18099else 18100 lt_prog_compiler_pic_CXX= 18101 lt_prog_compiler_can_build_shared_CXX=no 18102fi 18103 18104fi 18105 18106 18107 18108 18109 18110# 18111# Check to make sure the static flag actually works. 18112# 18113wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 18114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 18115$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 18116if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 18117 $as_echo_n "(cached) " >&6 18118else 18119 lt_cv_prog_compiler_static_works_CXX=no 18120 save_LDFLAGS=$LDFLAGS 18121 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 18122 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18123 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18124 # The linker can only warn and ignore the option if not recognized 18125 # So say no if there are warnings 18126 if test -s conftest.err; then 18127 # Append any errors to the config.log. 18128 cat conftest.err 1>&5 18129 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18131 if diff conftest.exp conftest.er2 >/dev/null; then 18132 lt_cv_prog_compiler_static_works_CXX=yes 18133 fi 18134 else 18135 lt_cv_prog_compiler_static_works_CXX=yes 18136 fi 18137 fi 18138 $RM -r conftest* 18139 LDFLAGS=$save_LDFLAGS 18140 18141fi 18142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 18143$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 18144 18145if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 18146 : 18147else 18148 lt_prog_compiler_static_CXX= 18149fi 18150 18151 18152 18153 18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 18155$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 18156if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 18157 $as_echo_n "(cached) " >&6 18158else 18159 lt_cv_prog_compiler_c_o_CXX=no 18160 $RM -r conftest 2>/dev/null 18161 mkdir conftest 18162 cd conftest 18163 mkdir out 18164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18165 18166 lt_compiler_flag="-o out/conftest2.$ac_objext" 18167 # Insert the option either (1) after the last *FLAGS variable, or 18168 # (2) before a word containing "conftest.", or (3) at the end. 18169 # Note that $ac_compile itself does not contain backslashes and begins 18170 # with a dollar sign (not a hyphen), so the echo should work correctly. 18171 lt_compile=`echo "$ac_compile" | $SED \ 18172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18174 -e 's:$: $lt_compiler_flag:'` 18175 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18176 (eval "$lt_compile" 2>out/conftest.err) 18177 ac_status=$? 18178 cat out/conftest.err >&5 18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18180 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18181 then 18182 # The compiler can only warn and ignore the option if not recognized 18183 # So say no if there are warnings 18184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18187 lt_cv_prog_compiler_c_o_CXX=yes 18188 fi 18189 fi 18190 chmod u+w . 2>&5 18191 $RM conftest* 18192 # SGI C++ compiler will create directory out/ii_files/ for 18193 # template instantiation 18194 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18195 $RM out/* && rmdir out 18196 cd .. 18197 $RM -r conftest 18198 $RM conftest* 18199 18200fi 18201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 18202$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 18203 18204 18205 18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 18207$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 18208if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 18209 $as_echo_n "(cached) " >&6 18210else 18211 lt_cv_prog_compiler_c_o_CXX=no 18212 $RM -r conftest 2>/dev/null 18213 mkdir conftest 18214 cd conftest 18215 mkdir out 18216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18217 18218 lt_compiler_flag="-o out/conftest2.$ac_objext" 18219 # Insert the option either (1) after the last *FLAGS variable, or 18220 # (2) before a word containing "conftest.", or (3) at the end. 18221 # Note that $ac_compile itself does not contain backslashes and begins 18222 # with a dollar sign (not a hyphen), so the echo should work correctly. 18223 lt_compile=`echo "$ac_compile" | $SED \ 18224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18226 -e 's:$: $lt_compiler_flag:'` 18227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18228 (eval "$lt_compile" 2>out/conftest.err) 18229 ac_status=$? 18230 cat out/conftest.err >&5 18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18232 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18233 then 18234 # The compiler can only warn and ignore the option if not recognized 18235 # So say no if there are warnings 18236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18239 lt_cv_prog_compiler_c_o_CXX=yes 18240 fi 18241 fi 18242 chmod u+w . 2>&5 18243 $RM conftest* 18244 # SGI C++ compiler will create directory out/ii_files/ for 18245 # template instantiation 18246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18247 $RM out/* && rmdir out 18248 cd .. 18249 $RM -r conftest 18250 $RM conftest* 18251 18252fi 18253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 18254$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 18255 18256 18257 18258 18259hard_links=nottested 18260if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 18261 # do not overwrite the value of need_locks provided by the user 18262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 18263$as_echo_n "checking if we can lock with hard links... " >&6; } 18264 hard_links=yes 18265 $RM conftest* 18266 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18267 touch conftest.a 18268 ln conftest.a conftest.b 2>&5 || hard_links=no 18269 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 18271$as_echo "$hard_links" >&6; } 18272 if test no = "$hard_links"; then 18273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 18274$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 18275 need_locks=warn 18276 fi 18277else 18278 need_locks=no 18279fi 18280 18281 18282 18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18284$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 18285 18286 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18287 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 18288 case $host_os in 18289 aix[4-9]*) 18290 # If we're using GNU nm, then we don't want the "-C" option. 18291 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 18292 # Without the "-l" option, or with the "-B" option, AIX nm treats 18293 # weak defined symbols like other global defined symbols, whereas 18294 # GNU nm marks them as "W". 18295 # While the 'weak' keyword is ignored in the Export File, we need 18296 # it in the Import File for the 'aix-soname' feature, so we have 18297 # to replace the "-B" option with "-P" for AIX nm. 18298 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 18299 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' 18300 else 18301 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' 18302 fi 18303 ;; 18304 pw32*) 18305 export_symbols_cmds_CXX=$ltdll_cmds 18306 ;; 18307 cygwin* | mingw* | cegcc*) 18308 case $cc_basename in 18309 cl*) 18310 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 18311 ;; 18312 *) 18313 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' 18314 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 18315 ;; 18316 esac 18317 ;; 18318 linux* | k*bsd*-gnu | gnu*) 18319 link_all_deplibs_CXX=no 18320 ;; 18321 *) 18322 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18323 ;; 18324 esac 18325 18326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 18327$as_echo "$ld_shlibs_CXX" >&6; } 18328test no = "$ld_shlibs_CXX" && can_build_shared=no 18329 18330with_gnu_ld_CXX=$with_gnu_ld 18331 18332 18333 18334 18335 18336 18337# 18338# Do we need to explicitly link libc? 18339# 18340case "x$archive_cmds_need_lc_CXX" in 18341x|xyes) 18342 # Assume -lc should be added 18343 archive_cmds_need_lc_CXX=yes 18344 18345 if test yes,yes = "$GCC,$enable_shared"; then 18346 case $archive_cmds_CXX in 18347 *'~'*) 18348 # FIXME: we may have to deal with multi-command sequences. 18349 ;; 18350 '$CC '*) 18351 # Test whether the compiler implicitly links with -lc since on some 18352 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18353 # to ld, don't add -lc before -lgcc. 18354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 18355$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18356if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 18357 $as_echo_n "(cached) " >&6 18358else 18359 $RM conftest* 18360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18361 18362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18363 (eval $ac_compile) 2>&5 18364 ac_status=$? 18365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18366 test $ac_status = 0; } 2>conftest.err; then 18367 soname=conftest 18368 lib=conftest 18369 libobjs=conftest.$ac_objext 18370 deplibs= 18371 wl=$lt_prog_compiler_wl_CXX 18372 pic_flag=$lt_prog_compiler_pic_CXX 18373 compiler_flags=-v 18374 linker_flags=-v 18375 verstring= 18376 output_objdir=. 18377 libname=conftest 18378 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 18379 allow_undefined_flag_CXX= 18380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 18381 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 18382 ac_status=$? 18383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18384 test $ac_status = 0; } 18385 then 18386 lt_cv_archive_cmds_need_lc_CXX=no 18387 else 18388 lt_cv_archive_cmds_need_lc_CXX=yes 18389 fi 18390 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 18391 else 18392 cat conftest.err 1>&5 18393 fi 18394 $RM conftest* 18395 18396fi 18397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 18398$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 18399 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 18400 ;; 18401 esac 18402 fi 18403 ;; 18404esac 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18468$as_echo_n "checking dynamic linker characteristics... " >&6; } 18469 18470library_names_spec= 18471libname_spec='lib$name' 18472soname_spec= 18473shrext_cmds=.so 18474postinstall_cmds= 18475postuninstall_cmds= 18476finish_cmds= 18477finish_eval= 18478shlibpath_var= 18479shlibpath_overrides_runpath=unknown 18480version_type=none 18481dynamic_linker="$host_os ld.so" 18482sys_lib_dlsearch_path_spec="/lib /usr/lib" 18483need_lib_prefix=unknown 18484hardcode_into_libs=no 18485 18486# when you set need_version to no, make sure it does not cause -set_version 18487# flags to be left without arguments 18488need_version=unknown 18489 18490 18491 18492case $host_os in 18493aix3*) 18494 version_type=linux # correct to gnu/linux during the next big refactor 18495 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18496 shlibpath_var=LIBPATH 18497 18498 # AIX 3 has no versioning support, so we append a major version to the name. 18499 soname_spec='$libname$release$shared_ext$major' 18500 ;; 18501 18502aix[4-9]*) 18503 version_type=linux # correct to gnu/linux during the next big refactor 18504 need_lib_prefix=no 18505 need_version=no 18506 hardcode_into_libs=yes 18507 if test ia64 = "$host_cpu"; then 18508 # AIX 5 supports IA64 18509 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18510 shlibpath_var=LD_LIBRARY_PATH 18511 else 18512 # With GCC up to 2.95.x, collect2 would create an import file 18513 # for dependence libraries. The import file would start with 18514 # the line '#! .'. This would cause the generated library to 18515 # depend on '.', always an invalid library. This was fixed in 18516 # development snapshots of GCC prior to 3.0. 18517 case $host_os in 18518 aix4 | aix4.[01] | aix4.[01].*) 18519 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18520 echo ' yes ' 18521 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18522 : 18523 else 18524 can_build_shared=no 18525 fi 18526 ;; 18527 esac 18528 # Using Import Files as archive members, it is possible to support 18529 # filename-based versioning of shared library archives on AIX. While 18530 # this would work for both with and without runtime linking, it will 18531 # prevent static linking of such archives. So we do filename-based 18532 # shared library versioning with .so extension only, which is used 18533 # when both runtime linking and shared linking is enabled. 18534 # Unfortunately, runtime linking may impact performance, so we do 18535 # not want this to be the default eventually. Also, we use the 18536 # versioned .so libs for executables only if there is the -brtl 18537 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18538 # To allow for filename-based versioning support, we need to create 18539 # libNAME.so.V as an archive file, containing: 18540 # *) an Import File, referring to the versioned filename of the 18541 # archive as well as the shared archive member, telling the 18542 # bitwidth (32 or 64) of that shared object, and providing the 18543 # list of exported symbols of that shared object, eventually 18544 # decorated with the 'weak' keyword 18545 # *) the shared object with the F_LOADONLY flag set, to really avoid 18546 # it being seen by the linker. 18547 # At run time we better use the real file rather than another symlink, 18548 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18549 18550 case $with_aix_soname,$aix_use_runtimelinking in 18551 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18552 # soname into executable. Probably we can add versioning support to 18553 # collect2, so additional links can be useful in future. 18554 aix,yes) # traditional libtool 18555 dynamic_linker='AIX unversionable lib.so' 18556 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18557 # instead of lib<name>.a to let people know that these are not 18558 # typical AIX shared libraries. 18559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18560 ;; 18561 aix,no) # traditional AIX only 18562 dynamic_linker='AIX lib.a(lib.so.V)' 18563 # We preserve .a as extension for shared libraries through AIX4.2 18564 # and later when we are not doing run time linking. 18565 library_names_spec='$libname$release.a $libname.a' 18566 soname_spec='$libname$release$shared_ext$major' 18567 ;; 18568 svr4,*) # full svr4 only 18569 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18570 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18571 # We do not specify a path in Import Files, so LIBPATH fires. 18572 shlibpath_overrides_runpath=yes 18573 ;; 18574 *,yes) # both, prefer svr4 18575 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18576 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18577 # unpreferred sharedlib libNAME.a needs extra handling 18578 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"' 18579 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"' 18580 # We do not specify a path in Import Files, so LIBPATH fires. 18581 shlibpath_overrides_runpath=yes 18582 ;; 18583 *,no) # both, prefer aix 18584 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18585 library_names_spec='$libname$release.a $libname.a' 18586 soname_spec='$libname$release$shared_ext$major' 18587 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18588 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)' 18589 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"' 18590 ;; 18591 esac 18592 shlibpath_var=LIBPATH 18593 fi 18594 ;; 18595 18596amigaos*) 18597 case $host_cpu in 18598 powerpc) 18599 # Since July 2007 AmigaOS4 officially supports .so libraries. 18600 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18602 ;; 18603 m68k) 18604 library_names_spec='$libname.ixlibrary $libname.a' 18605 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18606 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' 18607 ;; 18608 esac 18609 ;; 18610 18611beos*) 18612 library_names_spec='$libname$shared_ext' 18613 dynamic_linker="$host_os ld.so" 18614 shlibpath_var=LIBRARY_PATH 18615 ;; 18616 18617bsdi[45]*) 18618 version_type=linux # correct to gnu/linux during the next big refactor 18619 need_version=no 18620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18621 soname_spec='$libname$release$shared_ext$major' 18622 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18623 shlibpath_var=LD_LIBRARY_PATH 18624 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18625 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18626 # the default ld.so.conf also contains /usr/contrib/lib and 18627 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18628 # libtool to hard-code these into programs 18629 ;; 18630 18631cygwin* | mingw* | pw32* | cegcc*) 18632 version_type=windows 18633 shrext_cmds=.dll 18634 need_version=no 18635 need_lib_prefix=no 18636 18637 case $GCC,$cc_basename in 18638 yes,*) 18639 # gcc 18640 library_names_spec='$libname.dll.a' 18641 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18642 postinstall_cmds='base_file=`basename \$file`~ 18643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18644 dldir=$destdir/`dirname \$dlpath`~ 18645 test -d \$dldir || mkdir -p \$dldir~ 18646 $install_prog $dir/$dlname \$dldir/$dlname~ 18647 chmod a+x \$dldir/$dlname~ 18648 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18649 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18650 fi' 18651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18652 dlpath=$dir/\$dldll~ 18653 $RM \$dlpath' 18654 shlibpath_overrides_runpath=yes 18655 18656 case $host_os in 18657 cygwin*) 18658 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18659 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18660 18661 ;; 18662 mingw* | cegcc*) 18663 # MinGW DLLs use traditional 'lib' prefix 18664 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18665 ;; 18666 pw32*) 18667 # pw32 DLLs use 'pw' prefix rather than 'lib' 18668 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18669 ;; 18670 esac 18671 dynamic_linker='Win32 ld.exe' 18672 ;; 18673 18674 *,cl*) 18675 # Native MSVC 18676 libname_spec='$name' 18677 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18678 library_names_spec='$libname.dll.lib' 18679 18680 case $build_os in 18681 mingw*) 18682 sys_lib_search_path_spec= 18683 lt_save_ifs=$IFS 18684 IFS=';' 18685 for lt_path in $LIB 18686 do 18687 IFS=$lt_save_ifs 18688 # Let DOS variable expansion print the short 8.3 style file name. 18689 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18690 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18691 done 18692 IFS=$lt_save_ifs 18693 # Convert to MSYS style. 18694 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18695 ;; 18696 cygwin*) 18697 # Convert to unix form, then to dos form, then back to unix form 18698 # but this time dos style (no spaces!) so that the unix form looks 18699 # like /cygdrive/c/PROGRA~1:/cygdr... 18700 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18701 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18702 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18703 ;; 18704 *) 18705 sys_lib_search_path_spec=$LIB 18706 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18707 # It is most probably a Windows format PATH. 18708 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18709 else 18710 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18711 fi 18712 # FIXME: find the short name or the path components, as spaces are 18713 # common. (e.g. "Program Files" -> "PROGRA~1") 18714 ;; 18715 esac 18716 18717 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18718 postinstall_cmds='base_file=`basename \$file`~ 18719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18720 dldir=$destdir/`dirname \$dlpath`~ 18721 test -d \$dldir || mkdir -p \$dldir~ 18722 $install_prog $dir/$dlname \$dldir/$dlname' 18723 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18724 dlpath=$dir/\$dldll~ 18725 $RM \$dlpath' 18726 shlibpath_overrides_runpath=yes 18727 dynamic_linker='Win32 link.exe' 18728 ;; 18729 18730 *) 18731 # Assume MSVC wrapper 18732 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18733 dynamic_linker='Win32 ld.exe' 18734 ;; 18735 esac 18736 # FIXME: first we should search . and the directory the executable is in 18737 shlibpath_var=PATH 18738 ;; 18739 18740darwin* | rhapsody*) 18741 dynamic_linker="$host_os dyld" 18742 version_type=darwin 18743 need_lib_prefix=no 18744 need_version=no 18745 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18746 soname_spec='$libname$release$major$shared_ext' 18747 shlibpath_overrides_runpath=yes 18748 shlibpath_var=DYLD_LIBRARY_PATH 18749 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18750 18751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18752 ;; 18753 18754dgux*) 18755 version_type=linux # correct to gnu/linux during the next big refactor 18756 need_lib_prefix=no 18757 need_version=no 18758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18759 soname_spec='$libname$release$shared_ext$major' 18760 shlibpath_var=LD_LIBRARY_PATH 18761 ;; 18762 18763freebsd* | dragonfly*) 18764 # DragonFly does not have aout. When/if they implement a new 18765 # versioning mechanism, adjust this. 18766 if test -x /usr/bin/objformat; then 18767 objformat=`/usr/bin/objformat` 18768 else 18769 case $host_os in 18770 freebsd[23].*) objformat=aout ;; 18771 *) objformat=elf ;; 18772 esac 18773 fi 18774 version_type=freebsd-$objformat 18775 case $version_type in 18776 freebsd-elf*) 18777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18778 soname_spec='$libname$release$shared_ext$major' 18779 need_version=no 18780 need_lib_prefix=no 18781 ;; 18782 freebsd-*) 18783 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18784 need_version=yes 18785 ;; 18786 esac 18787 shlibpath_var=LD_LIBRARY_PATH 18788 case $host_os in 18789 freebsd2.*) 18790 shlibpath_overrides_runpath=yes 18791 ;; 18792 freebsd3.[01]* | freebsdelf3.[01]*) 18793 shlibpath_overrides_runpath=yes 18794 hardcode_into_libs=yes 18795 ;; 18796 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18797 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18798 shlibpath_overrides_runpath=no 18799 hardcode_into_libs=yes 18800 ;; 18801 *) # from 4.6 on, and DragonFly 18802 shlibpath_overrides_runpath=yes 18803 hardcode_into_libs=yes 18804 ;; 18805 esac 18806 ;; 18807 18808haiku*) 18809 version_type=linux # correct to gnu/linux during the next big refactor 18810 need_lib_prefix=no 18811 need_version=no 18812 dynamic_linker="$host_os runtime_loader" 18813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18814 soname_spec='$libname$release$shared_ext$major' 18815 shlibpath_var=LIBRARY_PATH 18816 shlibpath_overrides_runpath=no 18817 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18818 hardcode_into_libs=yes 18819 ;; 18820 18821hpux9* | hpux10* | hpux11*) 18822 # Give a soname corresponding to the major version so that dld.sl refuses to 18823 # link against other versions. 18824 version_type=sunos 18825 need_lib_prefix=no 18826 need_version=no 18827 case $host_cpu in 18828 ia64*) 18829 shrext_cmds='.so' 18830 hardcode_into_libs=yes 18831 dynamic_linker="$host_os dld.so" 18832 shlibpath_var=LD_LIBRARY_PATH 18833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18835 soname_spec='$libname$release$shared_ext$major' 18836 if test 32 = "$HPUX_IA64_MODE"; then 18837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18838 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18839 else 18840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18841 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18842 fi 18843 ;; 18844 hppa*64*) 18845 shrext_cmds='.sl' 18846 hardcode_into_libs=yes 18847 dynamic_linker="$host_os dld.sl" 18848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18851 soname_spec='$libname$release$shared_ext$major' 18852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18854 ;; 18855 *) 18856 shrext_cmds='.sl' 18857 dynamic_linker="$host_os dld.sl" 18858 shlibpath_var=SHLIB_PATH 18859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18861 soname_spec='$libname$release$shared_ext$major' 18862 ;; 18863 esac 18864 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18865 postinstall_cmds='chmod 555 $lib' 18866 # or fails outright, so override atomically: 18867 install_override_mode=555 18868 ;; 18869 18870interix[3-9]*) 18871 version_type=linux # correct to gnu/linux during the next big refactor 18872 need_lib_prefix=no 18873 need_version=no 18874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18875 soname_spec='$libname$release$shared_ext$major' 18876 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18877 shlibpath_var=LD_LIBRARY_PATH 18878 shlibpath_overrides_runpath=no 18879 hardcode_into_libs=yes 18880 ;; 18881 18882irix5* | irix6* | nonstopux*) 18883 case $host_os in 18884 nonstopux*) version_type=nonstopux ;; 18885 *) 18886 if test yes = "$lt_cv_prog_gnu_ld"; then 18887 version_type=linux # correct to gnu/linux during the next big refactor 18888 else 18889 version_type=irix 18890 fi ;; 18891 esac 18892 need_lib_prefix=no 18893 need_version=no 18894 soname_spec='$libname$release$shared_ext$major' 18895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18896 case $host_os in 18897 irix5* | nonstopux*) 18898 libsuff= shlibsuff= 18899 ;; 18900 *) 18901 case $LD in # libtool.m4 will add one of these switches to LD 18902 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18903 libsuff= shlibsuff= libmagic=32-bit;; 18904 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18905 libsuff=32 shlibsuff=N32 libmagic=N32;; 18906 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18907 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18908 *) libsuff= shlibsuff= libmagic=never-match;; 18909 esac 18910 ;; 18911 esac 18912 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18913 shlibpath_overrides_runpath=no 18914 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18915 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18916 hardcode_into_libs=yes 18917 ;; 18918 18919# No shared lib support for Linux oldld, aout, or coff. 18920linux*oldld* | linux*aout* | linux*coff*) 18921 dynamic_linker=no 18922 ;; 18923 18924linux*android*) 18925 version_type=none # Android doesn't support versioned libraries. 18926 need_lib_prefix=no 18927 need_version=no 18928 library_names_spec='$libname$release$shared_ext' 18929 soname_spec='$libname$release$shared_ext' 18930 finish_cmds= 18931 shlibpath_var=LD_LIBRARY_PATH 18932 shlibpath_overrides_runpath=yes 18933 18934 # This implies no fast_install, which is unacceptable. 18935 # Some rework will be needed to allow for fast_install 18936 # before this can be enabled. 18937 hardcode_into_libs=yes 18938 18939 dynamic_linker='Android linker' 18940 # Don't embed -rpath directories since the linker doesn't support them. 18941 hardcode_libdir_flag_spec_CXX='-L$libdir' 18942 ;; 18943 18944# This must be glibc/ELF. 18945linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18946 version_type=linux # correct to gnu/linux during the next big refactor 18947 need_lib_prefix=no 18948 need_version=no 18949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18950 soname_spec='$libname$release$shared_ext$major' 18951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18952 shlibpath_var=LD_LIBRARY_PATH 18953 shlibpath_overrides_runpath=no 18954 18955 # Some binutils ld are patched to set DT_RUNPATH 18956 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18957 $as_echo_n "(cached) " >&6 18958else 18959 lt_cv_shlibpath_overrides_runpath=no 18960 save_LDFLAGS=$LDFLAGS 18961 save_libdir=$libdir 18962 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 18963 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 18964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18965/* end confdefs.h. */ 18966 18967int 18968main () 18969{ 18970 18971 ; 18972 return 0; 18973} 18974_ACEOF 18975if ac_fn_cxx_try_link "$LINENO"; then : 18976 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18977 lt_cv_shlibpath_overrides_runpath=yes 18978fi 18979fi 18980rm -f core conftest.err conftest.$ac_objext \ 18981 conftest$ac_exeext conftest.$ac_ext 18982 LDFLAGS=$save_LDFLAGS 18983 libdir=$save_libdir 18984 18985fi 18986 18987 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18988 18989 # This implies no fast_install, which is unacceptable. 18990 # Some rework will be needed to allow for fast_install 18991 # before this can be enabled. 18992 hardcode_into_libs=yes 18993 18994 # Ideally, we could use ldconfig to report *all* directores which are 18995 # searched for libraries, however this is still not possible. Aside from not 18996 # being certain /sbin/ldconfig is available, command 18997 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18998 # even though it is searched at run-time. Try to do the best guess by 18999 # appending ld.so.conf contents (and includes) to the search path. 19000 if test -f /etc/ld.so.conf; then 19001 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' ' '` 19002 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19003 fi 19004 19005 # We used to test for /lib/ld.so.1 and disable shared libraries on 19006 # powerpc, because MkLinux only supported shared libraries with the 19007 # GNU dynamic linker. Since this was broken with cross compilers, 19008 # most powerpc-linux boxes support dynamic linking these days and 19009 # people can always --disable-shared, the test was removed, and we 19010 # assume the GNU/Linux dynamic linker is in use. 19011 dynamic_linker='GNU/Linux ld.so' 19012 ;; 19013 19014netbsdelf*-gnu) 19015 version_type=linux 19016 need_lib_prefix=no 19017 need_version=no 19018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19019 soname_spec='${libname}${release}${shared_ext}$major' 19020 shlibpath_var=LD_LIBRARY_PATH 19021 shlibpath_overrides_runpath=no 19022 hardcode_into_libs=yes 19023 dynamic_linker='NetBSD ld.elf_so' 19024 ;; 19025 19026netbsd*) 19027 version_type=sunos 19028 need_lib_prefix=no 19029 need_version=no 19030 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19031 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19033 dynamic_linker='NetBSD (a.out) ld.so' 19034 else 19035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19036 soname_spec='$libname$release$shared_ext$major' 19037 dynamic_linker='NetBSD ld.elf_so' 19038 fi 19039 shlibpath_var=LD_LIBRARY_PATH 19040 shlibpath_overrides_runpath=yes 19041 hardcode_into_libs=yes 19042 ;; 19043 19044newsos6) 19045 version_type=linux # correct to gnu/linux during the next big refactor 19046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19047 shlibpath_var=LD_LIBRARY_PATH 19048 shlibpath_overrides_runpath=yes 19049 ;; 19050 19051*nto* | *qnx*) 19052 version_type=qnx 19053 need_lib_prefix=no 19054 need_version=no 19055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19056 soname_spec='$libname$release$shared_ext$major' 19057 shlibpath_var=LD_LIBRARY_PATH 19058 shlibpath_overrides_runpath=no 19059 hardcode_into_libs=yes 19060 dynamic_linker='ldqnx.so' 19061 ;; 19062 19063openbsd* | bitrig*) 19064 version_type=sunos 19065 sys_lib_dlsearch_path_spec=/usr/lib 19066 need_lib_prefix=no 19067 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 19068 need_version=no 19069 else 19070 need_version=yes 19071 fi 19072 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19074 shlibpath_var=LD_LIBRARY_PATH 19075 shlibpath_overrides_runpath=yes 19076 ;; 19077 19078os2*) 19079 libname_spec='$name' 19080 version_type=windows 19081 shrext_cmds=.dll 19082 need_version=no 19083 need_lib_prefix=no 19084 # OS/2 can only load a DLL with a base name of 8 characters or less. 19085 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 19086 v=$($ECHO $release$versuffix | tr -d .-); 19087 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 19088 $ECHO $n$v`$shared_ext' 19089 library_names_spec='${libname}_dll.$libext' 19090 dynamic_linker='OS/2 ld.exe' 19091 shlibpath_var=BEGINLIBPATH 19092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19094 postinstall_cmds='base_file=`basename \$file`~ 19095 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 19096 dldir=$destdir/`dirname \$dlpath`~ 19097 test -d \$dldir || mkdir -p \$dldir~ 19098 $install_prog $dir/$dlname \$dldir/$dlname~ 19099 chmod a+x \$dldir/$dlname~ 19100 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 19101 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 19102 fi' 19103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 19104 dlpath=$dir/\$dldll~ 19105 $RM \$dlpath' 19106 ;; 19107 19108osf3* | osf4* | osf5*) 19109 version_type=osf 19110 need_lib_prefix=no 19111 need_version=no 19112 soname_spec='$libname$release$shared_ext$major' 19113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19114 shlibpath_var=LD_LIBRARY_PATH 19115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19117 ;; 19118 19119rdos*) 19120 dynamic_linker=no 19121 ;; 19122 19123solaris*) 19124 version_type=linux # correct to gnu/linux during the next big refactor 19125 need_lib_prefix=no 19126 need_version=no 19127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19128 soname_spec='$libname$release$shared_ext$major' 19129 shlibpath_var=LD_LIBRARY_PATH 19130 shlibpath_overrides_runpath=yes 19131 hardcode_into_libs=yes 19132 # ldd complains unless libraries are executable 19133 postinstall_cmds='chmod +x $lib' 19134 ;; 19135 19136sunos4*) 19137 version_type=sunos 19138 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19139 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19140 shlibpath_var=LD_LIBRARY_PATH 19141 shlibpath_overrides_runpath=yes 19142 if test yes = "$with_gnu_ld"; then 19143 need_lib_prefix=no 19144 fi 19145 need_version=yes 19146 ;; 19147 19148sysv4 | sysv4.3*) 19149 version_type=linux # correct to gnu/linux during the next big refactor 19150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19151 soname_spec='$libname$release$shared_ext$major' 19152 shlibpath_var=LD_LIBRARY_PATH 19153 case $host_vendor in 19154 sni) 19155 shlibpath_overrides_runpath=no 19156 need_lib_prefix=no 19157 runpath_var=LD_RUN_PATH 19158 ;; 19159 siemens) 19160 need_lib_prefix=no 19161 ;; 19162 motorola) 19163 need_lib_prefix=no 19164 need_version=no 19165 shlibpath_overrides_runpath=no 19166 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19167 ;; 19168 esac 19169 ;; 19170 19171sysv4*MP*) 19172 if test -d /usr/nec; then 19173 version_type=linux # correct to gnu/linux during the next big refactor 19174 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 19175 soname_spec='$libname$shared_ext.$major' 19176 shlibpath_var=LD_LIBRARY_PATH 19177 fi 19178 ;; 19179 19180sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19181 version_type=sco 19182 need_lib_prefix=no 19183 need_version=no 19184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 19185 soname_spec='$libname$release$shared_ext$major' 19186 shlibpath_var=LD_LIBRARY_PATH 19187 shlibpath_overrides_runpath=yes 19188 hardcode_into_libs=yes 19189 if test yes = "$with_gnu_ld"; then 19190 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19191 else 19192 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19193 case $host_os in 19194 sco3.2v5*) 19195 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19196 ;; 19197 esac 19198 fi 19199 sys_lib_dlsearch_path_spec='/usr/lib' 19200 ;; 19201 19202tpf*) 19203 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 19204 version_type=linux # correct to gnu/linux during the next big refactor 19205 need_lib_prefix=no 19206 need_version=no 19207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19208 shlibpath_var=LD_LIBRARY_PATH 19209 shlibpath_overrides_runpath=no 19210 hardcode_into_libs=yes 19211 ;; 19212 19213uts4*) 19214 version_type=linux # correct to gnu/linux during the next big refactor 19215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19216 soname_spec='$libname$release$shared_ext$major' 19217 shlibpath_var=LD_LIBRARY_PATH 19218 ;; 19219 19220*) 19221 dynamic_linker=no 19222 ;; 19223esac 19224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19225$as_echo "$dynamic_linker" >&6; } 19226test no = "$dynamic_linker" && can_build_shared=no 19227 19228variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19229if test yes = "$GCC"; then 19230 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19231fi 19232 19233if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 19234 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 19235fi 19236 19237if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 19238 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 19239fi 19240 19241# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 19242configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 19243 19244# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 19245func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 19246 19247# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 19248configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19290$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19291hardcode_action_CXX= 19292if test -n "$hardcode_libdir_flag_spec_CXX" || 19293 test -n "$runpath_var_CXX" || 19294 test yes = "$hardcode_automatic_CXX"; then 19295 19296 # We can hardcode non-existent directories. 19297 if test no != "$hardcode_direct_CXX" && 19298 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19299 # have to relink, otherwise we might link with an installed library 19300 # when we should be linking with a yet-to-be-installed one 19301 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 19302 test no != "$hardcode_minus_L_CXX"; then 19303 # Linking always hardcodes the temporary library directory. 19304 hardcode_action_CXX=relink 19305 else 19306 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19307 hardcode_action_CXX=immediate 19308 fi 19309else 19310 # We cannot hardcode anything, or else we can only hardcode existing 19311 # directories. 19312 hardcode_action_CXX=unsupported 19313fi 19314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 19315$as_echo "$hardcode_action_CXX" >&6; } 19316 19317if test relink = "$hardcode_action_CXX" || 19318 test yes = "$inherit_rpath_CXX"; then 19319 # Fast installation is not supported 19320 enable_fast_install=no 19321elif test yes = "$shlibpath_overrides_runpath" || 19322 test no = "$enable_shared"; then 19323 # Fast installation is not necessary 19324 enable_fast_install=needless 19325fi 19326 19327 19328 19329 19330 19331 19332 19333 fi # test -n "$compiler" 19334 19335 CC=$lt_save_CC 19336 CFLAGS=$lt_save_CFLAGS 19337 LDCXX=$LD 19338 LD=$lt_save_LD 19339 GCC=$lt_save_GCC 19340 with_gnu_ld=$lt_save_with_gnu_ld 19341 lt_cv_path_LDCXX=$lt_cv_path_LD 19342 lt_cv_path_LD=$lt_save_path_LD 19343 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 19344 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 19345fi # test yes != "$_lt_caught_CXX_error" 19346 19347ac_ext=c 19348ac_cpp='$CPP $CPPFLAGS' 19349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19351ac_compiler_gnu=$ac_cv_c_compiler_gnu 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 ac_config_commands="$ac_config_commands libtool" 19368 19369 19370 19371 19372# Only expand once: 19373 19374 19375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 19376$as_echo_n "checking for a sed that does not truncate output... " >&6; } 19377if ${ac_cv_path_SED+:} false; then : 19378 $as_echo_n "(cached) " >&6 19379else 19380 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 19381 for ac_i in 1 2 3 4 5 6 7; do 19382 ac_script="$ac_script$as_nl$ac_script" 19383 done 19384 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 19385 { ac_script=; unset ac_script;} 19386 if test -z "$SED"; then 19387 ac_path_SED_found=false 19388 # Loop through the user's path and test for each of PROGNAME-LIST 19389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19390for as_dir in $PATH 19391do 19392 IFS=$as_save_IFS 19393 test -z "$as_dir" && as_dir=. 19394 for ac_prog in sed gsed; do 19395 for ac_exec_ext in '' $ac_executable_extensions; do 19396 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 19397 as_fn_executable_p "$ac_path_SED" || continue 19398# Check for GNU ac_path_SED and select it if it is found. 19399 # Check for GNU $ac_path_SED 19400case `"$ac_path_SED" --version 2>&1` in 19401*GNU*) 19402 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 19403*) 19404 ac_count=0 19405 $as_echo_n 0123456789 >"conftest.in" 19406 while : 19407 do 19408 cat "conftest.in" "conftest.in" >"conftest.tmp" 19409 mv "conftest.tmp" "conftest.in" 19410 cp "conftest.in" "conftest.nl" 19411 $as_echo '' >> "conftest.nl" 19412 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 19413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 19414 as_fn_arith $ac_count + 1 && ac_count=$as_val 19415 if test $ac_count -gt ${ac_path_SED_max-0}; then 19416 # Best one so far, save it but keep looking for a better one 19417 ac_cv_path_SED="$ac_path_SED" 19418 ac_path_SED_max=$ac_count 19419 fi 19420 # 10*(2^10) chars as input seems more than enough 19421 test $ac_count -gt 10 && break 19422 done 19423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 19424esac 19425 19426 $ac_path_SED_found && break 3 19427 done 19428 done 19429 done 19430IFS=$as_save_IFS 19431 if test -z "$ac_cv_path_SED"; then 19432 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 19433 fi 19434else 19435 ac_cv_path_SED=$SED 19436fi 19437 19438fi 19439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 19440$as_echo "$ac_cv_path_SED" >&6; } 19441 SED="$ac_cv_path_SED" 19442 rm -f conftest.sed 19443 19444 19445 19446 19447 19448 19449 19450 if test -n "$PYTHON"; then 19451 # If the user set $PYTHON, use it and don't search something else. 19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5 19453$as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; } 19454 prog="import sys 19455# split strings by '.' and convert to numeric. Append some zeros 19456# because we need at least 4 digits for the hex conversion. 19457# map returns an iterator in Python 3.0 and a list in 2.x 19458minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0] 19459minverhex = 0 19460# xrange is not present in Python 3.0 and range returns an iterator 19461for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 19462sys.exit(sys.hexversion < minverhex)" 19463 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 19464 ($PYTHON -c "$prog") >&5 2>&5 19465 ac_status=$? 19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19467 (exit $ac_status); }; then : 19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19469$as_echo "yes" >&6; } 19470else 19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19472$as_echo "no" >&6; } 19473 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 19474fi 19475 am_display_PYTHON=$PYTHON 19476 else 19477 # Otherwise, try each interpreter until we find one that satisfies 19478 # VERSION. 19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5 19480$as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; } 19481if ${am_cv_pathless_PYTHON+:} false; then : 19482 $as_echo_n "(cached) " >&6 19483else 19484 19485 for am_cv_pathless_PYTHON in python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 19486 test "$am_cv_pathless_PYTHON" = none && break 19487 prog="import sys 19488# split strings by '.' and convert to numeric. Append some zeros 19489# because we need at least 4 digits for the hex conversion. 19490# map returns an iterator in Python 3.0 and a list in 2.x 19491minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0] 19492minverhex = 0 19493# xrange is not present in Python 3.0 and range returns an iterator 19494for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 19495sys.exit(sys.hexversion < minverhex)" 19496 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 19497 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 19498 ac_status=$? 19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19500 (exit $ac_status); }; then : 19501 break 19502fi 19503 done 19504fi 19505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 19506$as_echo "$am_cv_pathless_PYTHON" >&6; } 19507 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 19508 if test "$am_cv_pathless_PYTHON" = none; then 19509 PYTHON=: 19510 else 19511 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 19512set dummy $am_cv_pathless_PYTHON; ac_word=$2 19513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19514$as_echo_n "checking for $ac_word... " >&6; } 19515if ${ac_cv_path_PYTHON+:} false; then : 19516 $as_echo_n "(cached) " >&6 19517else 19518 case $PYTHON in 19519 [\\/]* | ?:[\\/]*) 19520 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 19521 ;; 19522 *) 19523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19524for as_dir in $PATH 19525do 19526 IFS=$as_save_IFS 19527 test -z "$as_dir" && as_dir=. 19528 for ac_exec_ext in '' $ac_executable_extensions; do 19529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19530 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 19531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19532 break 2 19533 fi 19534done 19535 done 19536IFS=$as_save_IFS 19537 19538 ;; 19539esac 19540fi 19541PYTHON=$ac_cv_path_PYTHON 19542if test -n "$PYTHON"; then 19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 19544$as_echo "$PYTHON" >&6; } 19545else 19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19547$as_echo "no" >&6; } 19548fi 19549 19550 19551 fi 19552 am_display_PYTHON=$am_cv_pathless_PYTHON 19553 fi 19554 19555 19556 if test "$PYTHON" = :; then 19557 : 19558 else 19559 19560 19561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 19562$as_echo_n "checking for $am_display_PYTHON version... " >&6; } 19563if ${am_cv_python_version+:} false; then : 19564 $as_echo_n "(cached) " >&6 19565else 19566 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` 19567fi 19568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 19569$as_echo "$am_cv_python_version" >&6; } 19570 PYTHON_VERSION=$am_cv_python_version 19571 19572 19573 19574 PYTHON_PREFIX='${prefix}' 19575 19576 PYTHON_EXEC_PREFIX='${exec_prefix}' 19577 19578 19579 19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 19581$as_echo_n "checking for $am_display_PYTHON platform... " >&6; } 19582if ${am_cv_python_platform+:} false; then : 19583 $as_echo_n "(cached) " >&6 19584else 19585 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 19586fi 19587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 19588$as_echo "$am_cv_python_platform" >&6; } 19589 PYTHON_PLATFORM=$am_cv_python_platform 19590 19591 19592 # Just factor out some code duplication. 19593 am_python_setup_sysconfig="\ 19594import sys 19595# Prefer sysconfig over distutils.sysconfig, for better compatibility 19596# with python 3.x. See automake bug#10227. 19597try: 19598 import sysconfig 19599except ImportError: 19600 can_use_sysconfig = 0 19601else: 19602 can_use_sysconfig = 1 19603# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 19604# <https://github.com/pypa/virtualenv/issues/118> 19605try: 19606 from platform import python_implementation 19607 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 19608 can_use_sysconfig = 0 19609except ImportError: 19610 pass" 19611 19612 19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 19614$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } 19615if ${am_cv_python_pythondir+:} false; then : 19616 $as_echo_n "(cached) " >&6 19617else 19618 if test "x$prefix" = xNONE 19619 then 19620 am_py_prefix=$ac_default_prefix 19621 else 19622 am_py_prefix=$prefix 19623 fi 19624 am_cv_python_pythondir=`$PYTHON -c " 19625$am_python_setup_sysconfig 19626if can_use_sysconfig: 19627 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 19628else: 19629 from distutils import sysconfig 19630 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 19631sys.stdout.write(sitedir)"` 19632 case $am_cv_python_pythondir in 19633 $am_py_prefix*) 19634 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 19635 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` 19636 ;; 19637 *) 19638 case $am_py_prefix in 19639 /usr|/System*) ;; 19640 *) 19641 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages 19642 ;; 19643 esac 19644 ;; 19645 esac 19646 19647fi 19648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 19649$as_echo "$am_cv_python_pythondir" >&6; } 19650 pythondir=$am_cv_python_pythondir 19651 19652 19653 19654 pkgpythondir=\${pythondir}/$PACKAGE 19655 19656 19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 19658$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } 19659if ${am_cv_python_pyexecdir+:} false; then : 19660 $as_echo_n "(cached) " >&6 19661else 19662 if test "x$exec_prefix" = xNONE 19663 then 19664 am_py_exec_prefix=$am_py_prefix 19665 else 19666 am_py_exec_prefix=$exec_prefix 19667 fi 19668 am_cv_python_pyexecdir=`$PYTHON -c " 19669$am_python_setup_sysconfig 19670if can_use_sysconfig: 19671 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) 19672else: 19673 from distutils import sysconfig 19674 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') 19675sys.stdout.write(sitedir)"` 19676 case $am_cv_python_pyexecdir in 19677 $am_py_exec_prefix*) 19678 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 19679 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` 19680 ;; 19681 *) 19682 case $am_py_exec_prefix in 19683 /usr|/System*) ;; 19684 *) 19685 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages 19686 ;; 19687 esac 19688 ;; 19689 esac 19690 19691fi 19692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 19693$as_echo "$am_cv_python_pyexecdir" >&6; } 19694 pyexecdir=$am_cv_python_pyexecdir 19695 19696 19697 19698 pkgpyexecdir=\${pyexecdir}/$PACKAGE 19699 19700 19701 19702 fi 19703 19704 19705 if test "$PYTHON" != :; then 19706 HAVE_PYTHON_TRUE= 19707 HAVE_PYTHON_FALSE='#' 19708else 19709 HAVE_PYTHON_TRUE='#' 19710 HAVE_PYTHON_FALSE= 19711fi 19712 19713 19714# Extract the first word of "cygpath", so it can be a program name with args. 19715set dummy cygpath; ac_word=$2 19716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19717$as_echo_n "checking for $ac_word... " >&6; } 19718if ${ac_cv_prog_CYGPATH+:} false; then : 19719 $as_echo_n "(cached) " >&6 19720else 19721 if test -n "$CYGPATH"; then 19722 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 19723else 19724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19725for as_dir in $PATH 19726do 19727 IFS=$as_save_IFS 19728 test -z "$as_dir" && as_dir=. 19729 for ac_exec_ext in '' $ac_executable_extensions; do 19730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19731 ac_cv_prog_CYGPATH="cygpath" 19732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19733 break 2 19734 fi 19735done 19736 done 19737IFS=$as_save_IFS 19738 19739fi 19740fi 19741CYGPATH=$ac_cv_prog_CYGPATH 19742if test -n "$CYGPATH"; then 19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 19744$as_echo "$CYGPATH" >&6; } 19745else 19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19747$as_echo "no" >&6; } 19748fi 19749 19750 19751# Extract the first word of "perl", so it can be a program name with args. 19752set dummy perl; ac_word=$2 19753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19754$as_echo_n "checking for $ac_word... " >&6; } 19755if ${ac_cv_prog_PERL+:} false; then : 19756 $as_echo_n "(cached) " >&6 19757else 19758 if test -n "$PERL"; then 19759 ac_cv_prog_PERL="$PERL" # Let the user override the test. 19760else 19761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19762for as_dir in $PATH 19763do 19764 IFS=$as_save_IFS 19765 test -z "$as_dir" && as_dir=. 19766 for ac_exec_ext in '' $ac_executable_extensions; do 19767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19768 ac_cv_prog_PERL="perl" 19769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19770 break 2 19771 fi 19772done 19773 done 19774IFS=$as_save_IFS 19775 19776fi 19777fi 19778PERL=$ac_cv_prog_PERL 19779if test -n "$PERL"; then 19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 19781$as_echo "$PERL" >&6; } 19782else 19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19784$as_echo "no" >&6; } 19785fi 19786 19787 19788# Extract the first word of "pdflatex", so it can be a program name with args. 19789set dummy pdflatex; ac_word=$2 19790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19791$as_echo_n "checking for $ac_word... " >&6; } 19792if ${ac_cv_prog_PDFLATEX+:} false; then : 19793 $as_echo_n "(cached) " >&6 19794else 19795 if test -n "$PDFLATEX"; then 19796 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test. 19797else 19798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19799for as_dir in $PATH 19800do 19801 IFS=$as_save_IFS 19802 test -z "$as_dir" && as_dir=. 19803 for ac_exec_ext in '' $ac_executable_extensions; do 19804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19805 ac_cv_prog_PDFLATEX="pdflatex" 19806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19807 break 2 19808 fi 19809done 19810 done 19811IFS=$as_save_IFS 19812 19813fi 19814fi 19815PDFLATEX=$ac_cv_prog_PDFLATEX 19816if test -n "$PDFLATEX"; then 19817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 19818$as_echo "$PDFLATEX" >&6; } 19819else 19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19821$as_echo "no" >&6; } 19822fi 19823 19824 19825# Extract the first word of "pod2html", so it can be a program name with args. 19826set dummy pod2html; ac_word=$2 19827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19828$as_echo_n "checking for $ac_word... " >&6; } 19829if ${ac_cv_prog_POD2HTML+:} false; then : 19830 $as_echo_n "(cached) " >&6 19831else 19832 if test -n "$POD2HTML"; then 19833 ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test. 19834else 19835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19836for as_dir in $PATH 19837do 19838 IFS=$as_save_IFS 19839 test -z "$as_dir" && as_dir=. 19840 for ac_exec_ext in '' $ac_executable_extensions; do 19841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19842 ac_cv_prog_POD2HTML="pod2html" 19843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19844 break 2 19845 fi 19846done 19847 done 19848IFS=$as_save_IFS 19849 19850fi 19851fi 19852POD2HTML=$ac_cv_prog_POD2HTML 19853if test -n "$POD2HTML"; then 19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5 19855$as_echo "$POD2HTML" >&6; } 19856else 19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19858$as_echo "no" >&6; } 19859fi 19860 19861 19862 19863 19864if test "$host_os" = "mingw32" -a -n "$CYGPATH"; then 19865 OS_SRCDIR=`$CYGPATH -m "$srcdir"` 19866else 19867 OS_SRCDIR="$srcdir" 19868fi 19869 19870 if test -n "$PERL" -a -n "$PDFLATEX" -a -n "$POD2HTML"; then 19871 GENERATE_DOC_TRUE= 19872 GENERATE_DOC_FALSE='#' 19873else 19874 GENERATE_DOC_TRUE='#' 19875 GENERATE_DOC_FALSE= 19876fi 19877 19878 19879# ------ AX CREATE STDINT H ------------------------------------- 19880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5 19881$as_echo_n "checking for stdint types... " >&6; } 19882ac_stdint_h=`echo include/isl/stdint.h` 19883# try to shortcircuit - if the default include path of the compiler 19884# can find a "stdint.h" header then we assume that all compilers can. 19885if ${ac_cv_header_stdint_t+:} false; then : 19886 $as_echo_n "(cached) " >&6 19887else 19888 19889old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS="" 19890old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="" 19891old_CFLAGS="$CFLAGS" ; CFLAGS="" 19892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19893/* end confdefs.h. */ 19894#include <stdint.h> 19895int 19896main () 19897{ 19898int_least32_t v = 0; 19899 ; 19900 return 0; 19901} 19902_ACEOF 19903if ac_fn_c_try_compile "$LINENO"; then : 19904 ac_cv_stdint_result="(assuming C99 compatible system)" 19905 ac_cv_header_stdint_t="stdint.h"; 19906else 19907 ac_cv_header_stdint_t="" 19908fi 19909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19910if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then 19911CFLAGS="-std=c99" 19912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19913/* end confdefs.h. */ 19914#include <stdint.h> 19915int 19916main () 19917{ 19918int_least32_t v = 0; 19919 ; 19920 return 0; 19921} 19922_ACEOF 19923if ac_fn_c_try_compile "$LINENO"; then : 19924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5 19925$as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;} 19926fi 19927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19928fi 19929CXXFLAGS="$old_CXXFLAGS" 19930CPPFLAGS="$old_CPPFLAGS" 19931CFLAGS="$old_CFLAGS" 19932fi 19933 19934 19935v="... $ac_cv_header_stdint_h" 19936if test "$ac_stdint_h" = "stdint.h" ; then 19937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5 19938$as_echo "(are you sure you want them in ./stdint.h?)" >&6; } 19939elif test "$ac_stdint_h" = "inttypes.h" ; then 19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5 19941$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; } 19942elif test "_$ac_cv_header_stdint_t" = "_" ; then 19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5 19944$as_echo "(putting them into $ac_stdint_h)$v" >&6; } 19945else 19946 ac_cv_header_stdint="$ac_cv_header_stdint_t" 19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5 19948$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; } 19949fi 19950 19951if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit.. 19952 19953 19954inttype_headers=`echo | sed -e 's/,/ /g'` 19955 19956ac_cv_stdint_result="(no helpful system typedefs seen)" 19957 19958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 19959$as_echo_n "checking for stdint uintptr_t... " >&6; } 19960if ${ac_cv_header_stdint_x+:} false; then : 19961 $as_echo_n "(cached) " >&6 19962else 19963 19964 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h) 19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 19966$as_echo "(..)" >&6; } 19967 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers 19968 do 19969 unset ac_cv_type_uintptr_t 19970 unset ac_cv_type_uint64_t 19971 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i> 19972" 19973if test "x$ac_cv_type_uintptr_t" = xyes; then : 19974 ac_cv_header_stdint_x=$i 19975else 19976 continue 19977fi 19978 19979 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> 19980" 19981if test "x$ac_cv_type_uint64_t" = xyes; then : 19982 and64="/uint64_t" 19983else 19984 and64="" 19985fi 19986 19987 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)" 19988 break 19989 done 19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 19991$as_echo_n "checking for stdint uintptr_t... " >&6; } 19992 19993fi 19994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5 19995$as_echo "$ac_cv_header_stdint_x" >&6; } 19996 19997 19998if test "_$ac_cv_header_stdint_x" = "_" ; then 19999 20000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 20001$as_echo_n "checking for stdint uint32_t... " >&6; } 20002if ${ac_cv_header_stdint_o+:} false; then : 20003 $as_echo_n "(cached) " >&6 20004else 20005 20006 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h) 20007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 20008$as_echo "(..)" >&6; } 20009 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers 20010 do 20011 unset ac_cv_type_uint32_t 20012 unset ac_cv_type_uint64_t 20013 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i> 20014" 20015if test "x$ac_cv_type_uint32_t" = xyes; then : 20016 ac_cv_header_stdint_o=$i 20017else 20018 continue 20019fi 20020 20021 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> 20022" 20023if test "x$ac_cv_type_uint64_t" = xyes; then : 20024 and64="/uint64_t" 20025else 20026 and64="" 20027fi 20028 20029 ac_cv_stdint_result="(seen uint32_t$and64 in $i)" 20030 break 20031 break; 20032 done 20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 20034$as_echo_n "checking for stdint uint32_t... " >&6; } 20035 20036fi 20037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5 20038$as_echo "$ac_cv_header_stdint_o" >&6; } 20039 20040fi 20041 20042if test "_$ac_cv_header_stdint_x" = "_" ; then 20043if test "_$ac_cv_header_stdint_o" = "_" ; then 20044 20045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 20046$as_echo_n "checking for stdint u_int32_t... " >&6; } 20047if ${ac_cv_header_stdint_u+:} false; then : 20048 $as_echo_n "(cached) " >&6 20049else 20050 20051 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h) 20052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 20053$as_echo "(..)" >&6; } 20054 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do 20055 unset ac_cv_type_u_int32_t 20056 unset ac_cv_type_u_int64_t 20057 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i> 20058" 20059if test "x$ac_cv_type_u_int32_t" = xyes; then : 20060 ac_cv_header_stdint_u=$i 20061else 20062 continue 20063fi 20064 20065 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i> 20066" 20067if test "x$ac_cv_type_u_int64_t" = xyes; then : 20068 and64="/u_int64_t" 20069else 20070 and64="" 20071fi 20072 20073 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)" 20074 break 20075 break; 20076 done 20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 20078$as_echo_n "checking for stdint u_int32_t... " >&6; } 20079 20080fi 20081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5 20082$as_echo "$ac_cv_header_stdint_u" >&6; } 20083 20084fi fi 20085 20086if test "_$ac_cv_header_stdint_x" = "_" ; then 20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5 20088$as_echo_n "checking for stdint datatype model... " >&6; } 20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 20090$as_echo "(..)" >&6; } 20091 20092 # The cast to long int works around a bug in the HP C Compiler 20093# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20094# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20095# This bug is HP SR number 8606223364. 20096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 20097$as_echo_n "checking size of char... " >&6; } 20098if ${ac_cv_sizeof_char+:} false; then : 20099 $as_echo_n "(cached) " >&6 20100else 20101 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 20102 20103else 20104 if test "$ac_cv_type_char" = yes; then 20105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20107as_fn_error 77 "cannot compute sizeof (char) 20108See \`config.log' for more details" "$LINENO" 5; } 20109 else 20110 ac_cv_sizeof_char=0 20111 fi 20112fi 20113 20114fi 20115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 20116$as_echo "$ac_cv_sizeof_char" >&6; } 20117 20118 20119 20120cat >>confdefs.h <<_ACEOF 20121#define SIZEOF_CHAR $ac_cv_sizeof_char 20122_ACEOF 20123 20124 20125 # The cast to long int works around a bug in the HP C Compiler 20126# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20127# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20128# This bug is HP SR number 8606223364. 20129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 20130$as_echo_n "checking size of short... " >&6; } 20131if ${ac_cv_sizeof_short+:} false; then : 20132 $as_echo_n "(cached) " >&6 20133else 20134 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 20135 20136else 20137 if test "$ac_cv_type_short" = yes; then 20138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20140as_fn_error 77 "cannot compute sizeof (short) 20141See \`config.log' for more details" "$LINENO" 5; } 20142 else 20143 ac_cv_sizeof_short=0 20144 fi 20145fi 20146 20147fi 20148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 20149$as_echo "$ac_cv_sizeof_short" >&6; } 20150 20151 20152 20153cat >>confdefs.h <<_ACEOF 20154#define SIZEOF_SHORT $ac_cv_sizeof_short 20155_ACEOF 20156 20157 20158 # The cast to long int works around a bug in the HP C Compiler 20159# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20160# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20161# This bug is HP SR number 8606223364. 20162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 20163$as_echo_n "checking size of int... " >&6; } 20164if ${ac_cv_sizeof_int+:} false; then : 20165 $as_echo_n "(cached) " >&6 20166else 20167 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 20168 20169else 20170 if test "$ac_cv_type_int" = yes; then 20171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20173as_fn_error 77 "cannot compute sizeof (int) 20174See \`config.log' for more details" "$LINENO" 5; } 20175 else 20176 ac_cv_sizeof_int=0 20177 fi 20178fi 20179 20180fi 20181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 20182$as_echo "$ac_cv_sizeof_int" >&6; } 20183 20184 20185 20186cat >>confdefs.h <<_ACEOF 20187#define SIZEOF_INT $ac_cv_sizeof_int 20188_ACEOF 20189 20190 20191 # The cast to long int works around a bug in the HP C Compiler 20192# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20193# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20194# This bug is HP SR number 8606223364. 20195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 20196$as_echo_n "checking size of long... " >&6; } 20197if ${ac_cv_sizeof_long+:} false; then : 20198 $as_echo_n "(cached) " >&6 20199else 20200 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 20201 20202else 20203 if test "$ac_cv_type_long" = yes; then 20204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20206as_fn_error 77 "cannot compute sizeof (long) 20207See \`config.log' for more details" "$LINENO" 5; } 20208 else 20209 ac_cv_sizeof_long=0 20210 fi 20211fi 20212 20213fi 20214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 20215$as_echo "$ac_cv_sizeof_long" >&6; } 20216 20217 20218 20219cat >>confdefs.h <<_ACEOF 20220#define SIZEOF_LONG $ac_cv_sizeof_long 20221_ACEOF 20222 20223 20224 # The cast to long int works around a bug in the HP C Compiler 20225# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20226# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20227# This bug is HP SR number 8606223364. 20228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 20229$as_echo_n "checking size of void*... " >&6; } 20230if ${ac_cv_sizeof_voidp+:} false; then : 20231 $as_echo_n "(cached) " >&6 20232else 20233 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 20234 20235else 20236 if test "$ac_cv_type_voidp" = yes; then 20237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20239as_fn_error 77 "cannot compute sizeof (void*) 20240See \`config.log' for more details" "$LINENO" 5; } 20241 else 20242 ac_cv_sizeof_voidp=0 20243 fi 20244fi 20245 20246fi 20247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 20248$as_echo "$ac_cv_sizeof_voidp" >&6; } 20249 20250 20251 20252cat >>confdefs.h <<_ACEOF 20253#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 20254_ACEOF 20255 20256 20257 ac_cv_char_data_model="" 20258 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char" 20259 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short" 20260 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int" 20261 ac_cv_long_data_model="" 20262 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int" 20263 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long" 20264 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp" 20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5 20266$as_echo_n "checking data model... " >&6; } 20267 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in 20268 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;; 20269 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;; 20270 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;; 20271 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;; 20272 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;; 20273 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;; 20274 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;; 20275 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;; 20276 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;; 20277 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;; 20278 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;; 20279 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;; 20280 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;; 20281 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;; 20282 222/*|333/*|444/*|666/*|888/*) : 20283 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;; 20284 *) ac_cv_data_model="none" ; n="very unusual model" ;; 20285 esac 20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5 20287$as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; } 20288 20289fi 20290 20291if test "_$ac_cv_header_stdint_x" != "_" ; then 20292 ac_cv_header_stdint="$ac_cv_header_stdint_x" 20293elif test "_$ac_cv_header_stdint_o" != "_" ; then 20294 ac_cv_header_stdint="$ac_cv_header_stdint_o" 20295elif test "_$ac_cv_header_stdint_u" != "_" ; then 20296 ac_cv_header_stdint="$ac_cv_header_stdint_u" 20297else 20298 ac_cv_header_stdint="stddef.h" 20299fi 20300 20301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5 20302$as_echo_n "checking for extra inttypes in chosen header... " >&6; } 20303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5 20304$as_echo "($ac_cv_header_stdint)" >&6; } 20305unset ac_cv_type_int_least32_t 20306unset ac_cv_type_int_fast32_t 20307ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint> 20308" 20309if test "x$ac_cv_type_int_least32_t" = xyes; then : 20310 20311fi 20312 20313ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint> 20314" 20315if test "x$ac_cv_type_int_fast32_t" = xyes; then : 20316 20317fi 20318 20319ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint> 20320" 20321if test "x$ac_cv_type_intmax_t" = xyes; then : 20322 20323fi 20324 20325 20326fi # shortcircut to system "stdint.h" 20327# ------------------ PREPARE VARIABLES ------------------------------ 20328if test "$GCC" = "yes" ; then 20329ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` 20330else 20331ac_cv_stdint_message="using $CC" 20332fi 20333 20334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5 20335$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; } 20336 20337# ----------------- DONE inttypes.h checks START header ------------- 20338ac_config_commands="$ac_config_commands $ac_stdint_h" 20339 20340 20341 20342 20343# Check whether --with-int was given. 20344if test "${with_int+set}" = set; then : 20345 withval=$with_int; 20346else 20347 with_int=gmp 20348fi 20349 20350case "$with_int" in 20351gmp|imath|imath-32) 20352 ;; 20353*) 20354 as_fn_error $? "bad value ${withval} for --with-int (use gmp, imath or imath-32)" "$LINENO" 5 20355esac 20356 20357 20358 20359 20360 20361case "$with_int" in 20362gmp) 20363 20364 20365$as_echo "#define USE_GMP_FOR_MP /**/" >>confdefs.h 20366 20367 20368 20369 20370# Check whether --with-gmp was given. 20371if test "${with_gmp+set}" = set; then : 20372 withval=$with_gmp; 20373fi 20374 20375case "system" in 20376system|build) 20377 20378# Check whether --with-gmp_prefix was given. 20379if test "${with_gmp_prefix+set}" = set; then : 20380 withval=$with_gmp_prefix; 20381fi 20382 20383 20384# Check whether --with-gmp_exec_prefix was given. 20385if test "${with_gmp_exec_prefix+set}" = set; then : 20386 withval=$with_gmp_exec_prefix; 20387fi 20388 20389esac 20390 20391# Check whether --with-gmp_builddir was given. 20392if test "${with_gmp_builddir+set}" = set; then : 20393 withval=$with_gmp_builddir; 20394fi 20395 20396if test "x$with_gmp_prefix" != "x" -a "x$with_gmp_exec_prefix" = "x"; then 20397 with_gmp_exec_prefix=$with_gmp_prefix 20398fi 20399if test "x$with_gmp_prefix" != "x" -o "x$with_gmp_exec_prefix" != "x"; then 20400 if test "x$with_gmp" != "x" -a "x$with_gmp" != "xyes" -a "x$with_gmp" != "xsystem"; then 20401 as_fn_error $? "Setting $with_gmp_prefix implies use of system gmp" "$LINENO" 5 20402 fi 20403 with_gmp="system" 20404fi 20405if test "x$with_gmp_builddir" != "x"; then 20406 if test "x$with_gmp" != "x" -a "x$with_gmp" != "xyes" -a "x$with_gmp" != "xbuild"; then 20407 as_fn_error $? "Setting $with_gmp_builddir implies use of build gmp" "$LINENO" 5 20408 fi 20409 with_gmp="build" 20410 gmp_srcdir=`echo @abs_srcdir@ | $with_gmp_builddir/config.status --file=-` 20411 { $as_echo "$as_me:${as_lineno-$LINENO}: gmp sources in $gmp_srcdir" >&5 20412$as_echo "$as_me: gmp sources in $gmp_srcdir" >&6;} 20413fi 20414if test "x$with_gmp_exec_prefix" != "x"; then 20415 export PKG_CONFIG_PATH="$with_gmp_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}" 20416fi 20417case "$with_gmp" in 20418system|build) 20419 ;; 20420*) 20421 case "system" in 20422 bundled) 20423 if test -d $srcdir/.git -a \ 20424 -d $srcdir/gmp -a \ 20425 ! -d $srcdir/gmp/.git; then 20426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule gmp not initialized" >&5 20427$as_echo "$as_me: WARNING: git repo detected, but submodule gmp not initialized" >&2;} 20428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5 20429$as_echo "$as_me: WARNING: You may want to run" >&2;} 20430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5 20431$as_echo "$as_me: WARNING: git submodule init" >&2;} 20432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5 20433$as_echo "$as_me: WARNING: git submodule update" >&2;} 20434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5 20435$as_echo "$as_me: WARNING: sh autogen.sh" >&2;} 20436 fi 20437 if test -f $srcdir/gmp/configure; then 20438 with_gmp="bundled" 20439 else 20440 with_gmp="no" 20441 fi 20442 ;; 20443 *) 20444 with_gmp="system" 20445 ;; 20446 esac 20447 ;; 20448esac 20449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which gmp to use" >&5 20450$as_echo_n "checking which gmp to use... " >&6; } 20451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gmp" >&5 20452$as_echo "$with_gmp" >&6; } 20453 20454 20455case "$with_gmp" in 20456system) 20457 if test "x$with_gmp_prefix" != "x"; then 20458 MP_CPPFLAGS="-I$with_gmp_prefix/include" 20459 MP_LDFLAGS="-L$with_gmp_prefix/lib" 20460 fi 20461 MP_LIBS=-lgmp 20462 SAVE_CPPFLAGS="$CPPFLAGS" 20463 SAVE_LDFLAGS="$LDFLAGS" 20464 SAVE_LIBS="$LIBS" 20465 CPPFLAGS="$MP_CPPFLAGS $CPPFLAGS" 20466 LDFLAGS="$MP_LDFLAGS $LDFLAGS" 20467 LIBS="$MP_LIBS $LIBS" 20468 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" 20469if test "x$ac_cv_header_gmp_h" = xyes; then : 20470 20471else 20472 as_fn_error $? "gmp.h header not found" "$LINENO" 5 20473fi 20474 20475 20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5 20477$as_echo_n "checking for main in -lgmp... " >&6; } 20478if ${ac_cv_lib_gmp_main+:} false; then : 20479 $as_echo_n "(cached) " >&6 20480else 20481 ac_check_lib_save_LIBS=$LIBS 20482LIBS="-lgmp $LIBS" 20483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20484/* end confdefs.h. */ 20485 20486 20487int 20488main () 20489{ 20490return main (); 20491 ; 20492 return 0; 20493} 20494_ACEOF 20495if ac_fn_c_try_link "$LINENO"; then : 20496 ac_cv_lib_gmp_main=yes 20497else 20498 ac_cv_lib_gmp_main=no 20499fi 20500rm -f core conftest.err conftest.$ac_objext \ 20501 conftest$ac_exeext conftest.$ac_ext 20502LIBS=$ac_check_lib_save_LIBS 20503fi 20504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5 20505$as_echo "$ac_cv_lib_gmp_main" >&6; } 20506if test "x$ac_cv_lib_gmp_main" = xyes; then : 20507 cat >>confdefs.h <<_ACEOF 20508#define HAVE_LIBGMP 1 20509_ACEOF 20510 20511 LIBS="-lgmp $LIBS" 20512 20513else 20514 as_fn_error $? "gmp library not found" "$LINENO" 5 20515fi 20516 20517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20518/* end confdefs.h. */ 20519#include <gmp.h> 20520int 20521main () 20522{ 20523 20524 mpz_t n, d; 20525 if (mpz_divisible_p(n, d)) 20526 mpz_divexact_ui(n, n, 4); 20527 20528 ; 20529 return 0; 20530} 20531_ACEOF 20532if ac_fn_c_try_link "$LINENO"; then : 20533 20534else 20535 as_fn_error $? "gmp library too old" "$LINENO" 5 20536fi 20537rm -f core conftest.err conftest.$ac_objext \ 20538 conftest$ac_exeext conftest.$ac_ext 20539 CPPFLAGS="$SAVE_CPPFLAGS" 20540 LDFLAGS="$SAVE_LDFLAGS" 20541 LIBS="$SAVE_LIBS" 20542 ;; 20543build) 20544 MP_CPPFLAGS="-I$gmp_srcdir -I$with_gmp_builddir" 20545 MP_LIBS="$with_gmp_builddir/libgmp.la" 20546 ;; 20547esac 20548SAVE_CPPFLAGS="$CPPFLAGS" 20549SAVE_LDFLAGS="$LDFLAGS" 20550SAVE_LIBS="$LIBS" 20551CPPFLAGS="$MP_CPPFLAGS $CPPFLAGS" 20552LDFLAGS="$MP_LDFLAGS $LDFLAGS" 20553LIBS="$MP_LIBS $LIBS" 20554need_get_memory_functions=false 20555ac_fn_c_check_decl "$LINENO" "mp_get_memory_functions" "ac_cv_have_decl_mp_get_memory_functions" "#include <gmp.h> 20556" 20557if test "x$ac_cv_have_decl_mp_get_memory_functions" = xyes; then : 20558 ac_have_decl=1 20559else 20560 ac_have_decl=0 20561fi 20562 20563cat >>confdefs.h <<_ACEOF 20564#define HAVE_DECL_MP_GET_MEMORY_FUNCTIONS $ac_have_decl 20565_ACEOF 20566if test $ac_have_decl = 1; then : 20567 20568else 20569 20570 need_get_memory_functions=true 20571 20572fi 20573 20574CPPFLAGS="$SAVE_CPPFLAGS" 20575LDFLAGS="$SAVE_LDFLAGS" 20576LIBS="$SAVE_LIBS" 20577 if test x$need_get_memory_functions = xtrue; then 20578 NEED_GET_MEMORY_FUNCTIONS_TRUE= 20579 NEED_GET_MEMORY_FUNCTIONS_FALSE='#' 20580else 20581 NEED_GET_MEMORY_FUNCTIONS_TRUE='#' 20582 NEED_GET_MEMORY_FUNCTIONS_FALSE= 20583fi 20584 20585 20586 ;; 20587imath|imath-32) 20588 20589 20590$as_echo "#define USE_IMATH_FOR_MP /**/" >>confdefs.h 20591 20592 20593MP_CPPFLAGS="-I$srcdir/imath_wrap" 20594MP_LDFLAGS="" 20595MP_LIBS="" 20596 20597SAVE_CPPFLAGS="$CPPFLAGS" 20598CPPFLAGS="$MP_CPPFLAGS $CPPFLAGS" 20599ac_fn_c_check_header_mongrel "$LINENO" "imath.h" "ac_cv_header_imath_h" "$ac_includes_default" 20600if test "x$ac_cv_header_imath_h" = xyes; then : 20601 20602else 20603 as_fn_error $? "imath.h header not found" "$LINENO" 5 20604fi 20605 20606 20607ac_fn_c_check_header_mongrel "$LINENO" "gmp_compat.h" "ac_cv_header_gmp_compat_h" "$ac_includes_default" 20608if test "x$ac_cv_header_gmp_compat_h" = xyes; then : 20609 20610else 20611 as_fn_error $? "gmp_compat.h header not found" "$LINENO" 5 20612fi 20613 20614 20615CPPFLAGS="$SAVE_CPPFLAGS" 20616 20617 if test x = xfalse; then 20618 NEED_GET_MEMORY_FUNCTIONS_TRUE= 20619 NEED_GET_MEMORY_FUNCTIONS_FALSE='#' 20620else 20621 NEED_GET_MEMORY_FUNCTIONS_TRUE='#' 20622 NEED_GET_MEMORY_FUNCTIONS_FALSE= 20623fi 20624 20625 20626 ;; 20627esac 20628if test "x$with_int" = "ximath-32" -a "x$GCC" = "xyes"; then 20629 MP_CFLAGS="-std=gnu99 $MP_CFLAGS" 20630fi 20631 20632 if test x$with_int = ximath -o x$with_int = ximath-32; then 20633 IMATH_FOR_MP_TRUE= 20634 IMATH_FOR_MP_FALSE='#' 20635else 20636 IMATH_FOR_MP_TRUE='#' 20637 IMATH_FOR_MP_FALSE= 20638fi 20639 20640 if test x$with_int = xgmp; then 20641 GMP_FOR_MP_TRUE= 20642 GMP_FOR_MP_FALSE='#' 20643else 20644 GMP_FOR_MP_TRUE='#' 20645 GMP_FOR_MP_FALSE= 20646fi 20647 20648 20649 if test "x$HAVE_CXX11" = "x1"; then 20650 HAVE_CXX11_TRUE= 20651 HAVE_CXX11_FALSE='#' 20652else 20653 HAVE_CXX11_TRUE='#' 20654 HAVE_CXX11_FALSE= 20655fi 20656 20657 if test "x$with_int" == "ximath-32"; then 20658 SMALL_INT_OPT_TRUE= 20659 SMALL_INT_OPT_FALSE='#' 20660else 20661 SMALL_INT_OPT_TRUE='#' 20662 SMALL_INT_OPT_FALSE= 20663fi 20664 20665if test "x$with_int" == "ximath-32"; then : 20666 20667 20668$as_echo "#define USE_SMALL_INT_OPT /**/" >>confdefs.h 20669 20670 20671fi 20672 20673ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "#include <strings.h> 20674" 20675if test "x$ac_cv_have_decl_ffs" = xyes; then : 20676 ac_have_decl=1 20677else 20678 ac_have_decl=0 20679fi 20680 20681cat >>confdefs.h <<_ACEOF 20682#define HAVE_DECL_FFS $ac_have_decl 20683_ACEOF 20684 20685ac_fn_c_check_decl "$LINENO" "__builtin_ffs" "ac_cv_have_decl___builtin_ffs" "$ac_includes_default" 20686if test "x$ac_cv_have_decl___builtin_ffs" = xyes; then : 20687 ac_have_decl=1 20688else 20689 ac_have_decl=0 20690fi 20691 20692cat >>confdefs.h <<_ACEOF 20693#define HAVE_DECL___BUILTIN_FFS $ac_have_decl 20694_ACEOF 20695 20696ac_fn_c_check_decl "$LINENO" "_BitScanForward" "ac_cv_have_decl__BitScanForward" "#include <intrin.h> 20697" 20698if test "x$ac_cv_have_decl__BitScanForward" = xyes; then : 20699 ac_have_decl=1 20700else 20701 ac_have_decl=0 20702fi 20703 20704cat >>confdefs.h <<_ACEOF 20705#define HAVE_DECL__BITSCANFORWARD $ac_have_decl 20706_ACEOF 20707 20708if test "x$ac_cv_have_decl_ffs" = xno -a \ 20709 "x$ac_cv_have_decl___builtin_ffs" = xno -a \ 20710 "x$ac_cv_have_decl__BitScanForward" = xno; then 20711 as_fn_error $? "No ffs implementation found" "$LINENO" 5 20712fi 20713ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "#include <strings.h> 20714" 20715if test "x$ac_cv_have_decl_strcasecmp" = xyes; then : 20716 ac_have_decl=1 20717else 20718 ac_have_decl=0 20719fi 20720 20721cat >>confdefs.h <<_ACEOF 20722#define HAVE_DECL_STRCASECMP $ac_have_decl 20723_ACEOF 20724ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "#include <strings.h> 20725" 20726if test "x$ac_cv_have_decl_strncasecmp" = xyes; then : 20727 ac_have_decl=1 20728else 20729 ac_have_decl=0 20730fi 20731 20732cat >>confdefs.h <<_ACEOF 20733#define HAVE_DECL_STRNCASECMP $ac_have_decl 20734_ACEOF 20735 20736ac_fn_c_check_decl "$LINENO" "_stricmp" "ac_cv_have_decl__stricmp" "#include <string.h> 20737" 20738if test "x$ac_cv_have_decl__stricmp" = xyes; then : 20739 ac_have_decl=1 20740else 20741 ac_have_decl=0 20742fi 20743 20744cat >>confdefs.h <<_ACEOF 20745#define HAVE_DECL__STRICMP $ac_have_decl 20746_ACEOF 20747ac_fn_c_check_decl "$LINENO" "_strnicmp" "ac_cv_have_decl__strnicmp" "#include <string.h> 20748" 20749if test "x$ac_cv_have_decl__strnicmp" = xyes; then : 20750 ac_have_decl=1 20751else 20752 ac_have_decl=0 20753fi 20754 20755cat >>confdefs.h <<_ACEOF 20756#define HAVE_DECL__STRNICMP $ac_have_decl 20757_ACEOF 20758 20759if test "x$ac_cv_have_decl_strcasecmp" = xno -a \ 20760 "x$ac_cv_have_decl__stricmp" = xno; then 20761 as_fn_error $? "No strcasecmp implementation found" "$LINENO" 5 20762fi 20763if test "x$ac_cv_have_decl_strncasecmp" = xno -a \ 20764 "x$ac_cv_have_decl__strnicmp" = xno; then 20765 as_fn_error $? "No strncasecmp implementation found" "$LINENO" 5 20766fi 20767ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "#include <stdio.h> 20768" 20769if test "x$ac_cv_have_decl_snprintf" = xyes; then : 20770 ac_have_decl=1 20771else 20772 ac_have_decl=0 20773fi 20774 20775cat >>confdefs.h <<_ACEOF 20776#define HAVE_DECL_SNPRINTF $ac_have_decl 20777_ACEOF 20778ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> 20779" 20780if test "x$ac_cv_have_decl__snprintf" = xyes; then : 20781 ac_have_decl=1 20782else 20783 ac_have_decl=0 20784fi 20785 20786cat >>confdefs.h <<_ACEOF 20787#define HAVE_DECL__SNPRINTF $ac_have_decl 20788_ACEOF 20789 20790if test "x$ac_cv_have_decl_snprintf" = xno -a \ 20791 "x$ac_cv_have_decl__snprintf" = xno; then 20792 as_fn_error $? "No snprintf implementation found" "$LINENO" 5 20793fi 20794 20795 20796 20797 20798# Check whether --with-clang was given. 20799if test "${with_clang+set}" = set; then : 20800 withval=$with_clang; 20801fi 20802 20803case "system" in 20804system|no) 20805 20806# Check whether --with-clang_prefix was given. 20807if test "${with_clang_prefix+set}" = set; then : 20808 withval=$with_clang_prefix; 20809fi 20810 20811 20812# Check whether --with-clang_exec_prefix was given. 20813if test "${with_clang_exec_prefix+set}" = set; then : 20814 withval=$with_clang_exec_prefix; 20815fi 20816 20817esac 20818 20819if test "x$with_clang_prefix" != "x" -a "x$with_clang_exec_prefix" = "x"; then 20820 with_clang_exec_prefix=$with_clang_prefix 20821fi 20822if test "x$with_clang_prefix" != "x" -o "x$with_clang_exec_prefix" != "x"; then 20823 if test "x$with_clang" != "x" -a "x$with_clang" != "xyes" -a "x$with_clang" != "xsystem"; then 20824 as_fn_error $? "Setting $with_clang_prefix implies use of system clang" "$LINENO" 5 20825 fi 20826 with_clang="system" 20827fi 20828if test "x$with_clang_builddir" != "x"; then 20829 if test "x$with_clang" != "x" -a "x$with_clang" != "xyes" -a "x$with_clang" != "xbuild"; then 20830 as_fn_error $? "Setting $with_clang_builddir implies use of build clang" "$LINENO" 5 20831 fi 20832 with_clang="build" 20833 clang_srcdir=`echo @abs_srcdir@ | $with_clang_builddir/config.status --file=-` 20834 { $as_echo "$as_me:${as_lineno-$LINENO}: clang sources in $clang_srcdir" >&5 20835$as_echo "$as_me: clang sources in $clang_srcdir" >&6;} 20836fi 20837if test "x$with_clang_exec_prefix" != "x"; then 20838 export PKG_CONFIG_PATH="$with_clang_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}" 20839fi 20840case "$with_clang" in 20841system|no) 20842 ;; 20843*) 20844 case "no" in 20845 bundled) 20846 if test -d $srcdir/.git -a \ 20847 -d $srcdir/clang -a \ 20848 ! -d $srcdir/clang/.git; then 20849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule clang not initialized" >&5 20850$as_echo "$as_me: WARNING: git repo detected, but submodule clang not initialized" >&2;} 20851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5 20852$as_echo "$as_me: WARNING: You may want to run" >&2;} 20853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5 20854$as_echo "$as_me: WARNING: git submodule init" >&2;} 20855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5 20856$as_echo "$as_me: WARNING: git submodule update" >&2;} 20857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5 20858$as_echo "$as_me: WARNING: sh autogen.sh" >&2;} 20859 fi 20860 if test -f $srcdir/clang/configure; then 20861 with_clang="bundled" 20862 else 20863 with_clang="no" 20864 fi 20865 ;; 20866 *) 20867 with_clang="no" 20868 ;; 20869 esac 20870 ;; 20871esac 20872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which clang to use" >&5 20873$as_echo_n "checking which clang to use... " >&6; } 20874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_clang" >&5 20875$as_echo "$with_clang" >&6; } 20876 20877 20878 if test $with_clang = system; then 20879 HAVE_CLANG_TRUE= 20880 HAVE_CLANG_FALSE='#' 20881else 20882 HAVE_CLANG_TRUE='#' 20883 HAVE_CLANG_FALSE= 20884fi 20885 20886 if (test $with_clang = system -a "x$HAVE_CXX11" = "x1") || \ 20887 test -f $srcdir/include/isl/cpp.h; then 20888 HAVE_CPP_ISL_H_TRUE= 20889 HAVE_CPP_ISL_H_FALSE='#' 20890else 20891 HAVE_CPP_ISL_H_TRUE='#' 20892 HAVE_CPP_ISL_H_FALSE= 20893fi 20894 20895 20896 20897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 20898$as_echo_n "checking for C compiler vendor... " >&6; } 20899if ${ax_cv_c_compiler_vendor+:} false; then : 20900 $as_echo_n "(cached) " >&6 20901else 20902 ax_cv_c_compiler_vendor=unknown 20903 # note: don't check for gcc first since some other compilers define __GNUC__ 20904 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ clang:__clang__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do 20905 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" 20906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20907/* end confdefs.h. */ 20908 20909int 20910main () 20911{ 20912 20913#if !($vencpp) 20914 thisisanerror; 20915#endif 20916 20917 ; 20918 return 0; 20919} 20920_ACEOF 20921if ac_fn_c_try_compile "$LINENO"; then : 20922 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break 20923fi 20924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20925 done 20926 20927fi 20928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 20929$as_echo "$ax_cv_c_compiler_vendor" >&6; } 20930 20931 20932 WARNING_FLAGS="" 20933 20934 if test "${ax_cv_c_compiler_vendor}" = "clang"; then 20935 WARNING_FLAGS="-Wall" 20936 fi 20937 20938 20939 20940 20941PACKAGE_CFLAGS="$MP_CPPFLAGS" 20942PACKAGE_LDFLAGS="$MP_LDFLAGS" 20943PACKAGE_LIBS="-lisl $MP_LIBS" 20944 20945# we need the expanded forms... 20946test "x$prefix" = xNONE && prefix=$ac_default_prefix 20947test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20948 20949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5 20950$as_echo_n "checking our pkgconfig libname... " >&6; } 20951test ".$ax_create_pkgconfig_libname" != "." || \ 20952ax_create_pkgconfig_libname="${PACKAGE_NAME}" 20953test ".$ax_create_pkgconfig_libname" != "." || \ 20954ax_create_pkgconfig_libname="$PACKAGE" 20955ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"` 20956ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"` 20957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5 20958$as_echo "$ax_create_pkgconfig_libname" >&6; } 20959 20960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5 20961$as_echo_n "checking our pkgconfig version... " >&6; } 20962test ".$ax_create_pkgconfig_version" != "." || \ 20963ax_create_pkgconfig_version="${PACKAGE_VERSION}" 20964test ".$ax_create_pkgconfig_version" != "." || \ 20965ax_create_pkgconfig_version="$VERSION" 20966ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"` 20967ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"` 20968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5 20969$as_echo "$ax_create_pkgconfig_version" >&6; } 20970 20971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5 20972$as_echo_n "checking our pkgconfig_libdir... " >&6; } 20973test ".$pkgconfig_libdir" = "." && \ 20974pkgconfig_libdir='${libdir}/pkgconfig' 20975ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"` 20976ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"` 20977ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"` 20978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5 20979$as_echo "$pkgconfig_libdir" >&6; } 20980test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && ( 20981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5 20982$as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; }) 20983 20984 20985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5 20986$as_echo_n "checking our pkgconfig_libfile... " >&6; } 20987test ".$pkgconfig_libfile" != "." || \ 20988pkgconfig_libfile="$ax_create_pkgconfig_libname.pc" 20989ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"` 20990ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"` 20991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5 20992$as_echo "$pkgconfig_libfile" >&6; } 20993test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && ( 20994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5 20995$as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; }) 20996 20997 20998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5 20999$as_echo_n "checking our package / suffix... " >&6; } 21000ax_create_pkgconfig_suffix="$program_suffix" 21001test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix="" 21002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5 21003$as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; } 21004 21005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5 21006$as_echo_n "checking our pkgconfig description... " >&6; } 21007ax_create_pkgconfig_description="$PACKAGE_SUMMARY" 21008test ".$ax_create_pkgconfig_description" != "." || \ 21009ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library" 21010ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"` 21011ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"` 21012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5 21013$as_echo "$ax_create_pkgconfig_description" >&6; } 21014 21015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5 21016$as_echo_n "checking our pkgconfig requires... " >&6; } 21017ax_create_pkgconfig_requires="$PACKAGE_REQUIRES" 21018ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"` 21019ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"` 21020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5 21021$as_echo "$ax_create_pkgconfig_requires" >&6; } 21022 21023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5 21024$as_echo_n "checking our pkgconfig ext libs... " >&6; } 21025ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS" 21026test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname" 21027ax_create_pkgconfig_libs="$ax_create_pkgconfig_pkglibs $LIBS" 21028ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"` 21029ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"` 21030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5 21031$as_echo "$ax_create_pkgconfig_libs" >&6; } 21032 21033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5 21034$as_echo_n "checking our pkgconfig cppflags... " >&6; } 21035ax_create_pkgconfig_cppflags="$PACKAGE_CFLAGS" 21036ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"` 21037ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"` 21038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5 21039$as_echo "$ax_create_pkgconfig_cppflags" >&6; } 21040 21041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5 21042$as_echo_n "checking our pkgconfig ldflags... " >&6; } 21043ax_create_pkgconfig_ldflags="$PACKAGE_LDFLAGS" 21044ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"` 21045ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"` 21046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5 21047$as_echo "$ax_create_pkgconfig_ldflags" >&6; } 21048 21049test ".$ax_create_pkgconfig_generate" != "." || \ 21050ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc" 21051ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"` 21052ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"` 21053test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && ( 21054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5 21055$as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; }) 21056 21057if test ".$ax_create_pkgconfig_src_libdir" = "." ; then 21058ax_create_pkgconfig_src_libdir=`pwd` 21059ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" || 21060$as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21061 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \ 21062 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \ 21063 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null || 21064$as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" | 21065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21066 s//\1/ 21067 q 21068 } 21069 /^X\(\/\/\)[^/].*/{ 21070 s//\1/ 21071 q 21072 } 21073 /^X\(\/\/\)$/{ 21074 s//\1/ 21075 q 21076 } 21077 /^X\(\/\).*/{ 21078 s//\1/ 21079 q 21080 } 21081 s/.*/./; q'` 21082test ! -d $ax_create_pkgconfig_src_libdir/src || \ 21083ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src" 21084case ".$objdir" in 21085*libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac 21086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5 21087$as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; } 21088fi 21089 21090if test ".$ax_create_pkgconfig_src_headers" = "." ; then 21091ax_create_pkgconfig_src_headers=`pwd` 21092v="$ac_top_srcdir" ; 21093test ".$v" != "." || v="$ax_spec_dir" 21094test ".$v" != "." || v="$srcdir" 21095case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac 21096ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" || 21097$as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21098 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \ 21099 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \ 21100 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null || 21101$as_echo X"$ax_create_pkgconfig_src_headers/$v/x" | 21102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21103 s//\1/ 21104 q 21105 } 21106 /^X\(\/\/\)[^/].*/{ 21107 s//\1/ 21108 q 21109 } 21110 /^X\(\/\/\)$/{ 21111 s//\1/ 21112 q 21113 } 21114 /^X\(\/\).*/{ 21115 s//\1/ 21116 q 21117 } 21118 s/.*/./; q'` 21119test ! -d $ax_create_pkgconfig_src_headers/include || \ 21120ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include" 21121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5 21122$as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; } 21123fi 21124 21125 21126ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate" 21127 21128 21129 21130 21131 21132 21133 if test -f $srcdir/.git; then 21134 gitdir=`GIT_DIR=$srcdir/.git git rev-parse --git-dir` 21135 GIT_HEAD="$gitdir/index" 21136 GIT_REPO="$gitdir" 21137 GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe --always` 21138 elif test -f $srcdir/.git/HEAD; then 21139 GIT_HEAD="$srcdir/.git/index" 21140 GIT_REPO="$srcdir/.git" 21141 GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe --always` 21142 elif test -f $srcdir/GIT_HEAD_ID; then 21143 GIT_HEAD_ID=`cat $srcdir/GIT_HEAD_ID` 21144 else 21145 mysrcdir=`(cd $srcdir; pwd)` 21146 head=`basename $mysrcdir | sed -e 's/.*-//'` 21147 head2=`echo $head | sed -e 's/^0-9a-f//'` 21148 head3=`echo $head2 | sed -e 's/........................................//'` 21149 if test "x$head3" = "x" -a "x$head" = "x$head2"; then 21150 GIT_HEAD_ID="$head" 21151 else 21152 GIT_HEAD_ID="UNKNOWN" 21153 fi 21154 fi 21155 if test -z "$GIT_REPO" ; then 21156 GIT_HEAD_VERSION="$GIT_HEAD_ID" 21157 else 21158 GIT_HEAD_VERSION="\`GIT_DIR=$GIT_REPO git describe --always\`" 21159 fi 21160 21161 21162 21163ac_config_headers="$ac_config_headers isl_config.h" 21164 21165ac_config_files="$ac_config_files isl_srcdir.c" 21166 21167ac_config_files="$ac_config_files Makefile" 21168 21169ac_config_files="$ac_config_files doc/Makefile" 21170 21171if test $with_clang = system; then 21172 21173 21174subdirs="$subdirs interface" 21175 21176fi 21177ac_config_files="$ac_config_files bound_test.sh" 21178 21179ac_config_files="$ac_config_files codegen_test.sh" 21180 21181ac_config_files="$ac_config_files pip_test.sh" 21182 21183ac_config_files="$ac_config_files flow_test.sh" 21184 21185ac_config_files="$ac_config_files schedule_test.sh" 21186 21187cat >confcache <<\_ACEOF 21188# This file is a shell script that caches the results of configure 21189# tests run on this system so they can be shared between configure 21190# scripts and configure runs, see configure's option --config-cache. 21191# It is not useful on other systems. If it contains results you don't 21192# want to keep, you may remove or edit it. 21193# 21194# config.status only pays attention to the cache file if you give it 21195# the --recheck option to rerun configure. 21196# 21197# `ac_cv_env_foo' variables (set or unset) will be overridden when 21198# loading this file, other *unset* `ac_cv_foo' will be assigned the 21199# following values. 21200 21201_ACEOF 21202 21203# The following way of writing the cache mishandles newlines in values, 21204# but we know of no workaround that is simple, portable, and efficient. 21205# So, we kill variables containing newlines. 21206# Ultrix sh set writes to stderr and can't be redirected directly, 21207# and sets the high bit in the cache file unless we assign to the vars. 21208( 21209 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21210 eval ac_val=\$$ac_var 21211 case $ac_val in #( 21212 *${as_nl}*) 21213 case $ac_var in #( 21214 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21215$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21216 esac 21217 case $ac_var in #( 21218 _ | IFS | as_nl) ;; #( 21219 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21220 *) { eval $ac_var=; unset $ac_var;} ;; 21221 esac ;; 21222 esac 21223 done 21224 21225 (set) 2>&1 | 21226 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21227 *${as_nl}ac_space=\ *) 21228 # `set' does not quote correctly, so add quotes: double-quote 21229 # substitution turns \\\\ into \\, and sed turns \\ into \. 21230 sed -n \ 21231 "s/'/'\\\\''/g; 21232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21233 ;; #( 21234 *) 21235 # `set' quotes correctly as required by POSIX, so do not add quotes. 21236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21237 ;; 21238 esac | 21239 sort 21240) | 21241 sed ' 21242 /^ac_cv_env_/b end 21243 t clear 21244 :clear 21245 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21246 t end 21247 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21248 :end' >>confcache 21249if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21250 if test -w "$cache_file"; then 21251 if test "x$cache_file" != "x/dev/null"; then 21252 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21253$as_echo "$as_me: updating cache $cache_file" >&6;} 21254 if test ! -f "$cache_file" || test -h "$cache_file"; then 21255 cat confcache >"$cache_file" 21256 else 21257 case $cache_file in #( 21258 */* | ?:*) 21259 mv -f confcache "$cache_file"$$ && 21260 mv -f "$cache_file"$$ "$cache_file" ;; #( 21261 *) 21262 mv -f confcache "$cache_file" ;; 21263 esac 21264 fi 21265 fi 21266 else 21267 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21268$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21269 fi 21270fi 21271rm -f confcache 21272 21273test "x$prefix" = xNONE && prefix=$ac_default_prefix 21274# Let make expand exec_prefix. 21275test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21276 21277DEFS=-DHAVE_CONFIG_H 21278 21279ac_libobjs= 21280ac_ltlibobjs= 21281U= 21282for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21283 # 1. Remove the extension, and $U if already installed. 21284 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21285 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21286 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21287 # will be set to the directory where LIBOBJS objects are built. 21288 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21289 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21290done 21291LIBOBJS=$ac_libobjs 21292 21293LTLIBOBJS=$ac_ltlibobjs 21294 21295 21296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21297$as_echo_n "checking that generated files are newer than configure... " >&6; } 21298 if test -n "$am_sleep_pid"; then 21299 # Hide warnings about reused PIDs. 21300 wait $am_sleep_pid 2>/dev/null 21301 fi 21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21303$as_echo "done" >&6; } 21304 if test -n "$EXEEXT"; then 21305 am__EXEEXT_TRUE= 21306 am__EXEEXT_FALSE='#' 21307else 21308 am__EXEEXT_TRUE='#' 21309 am__EXEEXT_FALSE= 21310fi 21311 21312if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21313 as_fn_error $? "conditional \"AMDEP\" was never defined. 21314Usually this means the macro was only invoked conditionally." "$LINENO" 5 21315fi 21316if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21317 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21318Usually this means the macro was only invoked conditionally." "$LINENO" 5 21319fi 21320if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21321 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 21322Usually this means the macro was only invoked conditionally." "$LINENO" 5 21323fi 21324if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21325 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21326Usually this means the macro was only invoked conditionally." "$LINENO" 5 21327fi 21328if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then 21329 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. 21330Usually this means the macro was only invoked conditionally." "$LINENO" 5 21331fi 21332if test -z "${GENERATE_DOC_TRUE}" && test -z "${GENERATE_DOC_FALSE}"; then 21333 as_fn_error $? "conditional \"GENERATE_DOC\" was never defined. 21334Usually this means the macro was only invoked conditionally." "$LINENO" 5 21335fi 21336if test -z "${NEED_GET_MEMORY_FUNCTIONS_TRUE}" && test -z "${NEED_GET_MEMORY_FUNCTIONS_FALSE}"; then 21337 as_fn_error $? "conditional \"NEED_GET_MEMORY_FUNCTIONS\" was never defined. 21338Usually this means the macro was only invoked conditionally." "$LINENO" 5 21339fi 21340if test -z "${NEED_GET_MEMORY_FUNCTIONS_TRUE}" && test -z "${NEED_GET_MEMORY_FUNCTIONS_FALSE}"; then 21341 as_fn_error $? "conditional \"NEED_GET_MEMORY_FUNCTIONS\" was never defined. 21342Usually this means the macro was only invoked conditionally." "$LINENO" 5 21343fi 21344if test -z "${IMATH_FOR_MP_TRUE}" && test -z "${IMATH_FOR_MP_FALSE}"; then 21345 as_fn_error $? "conditional \"IMATH_FOR_MP\" was never defined. 21346Usually this means the macro was only invoked conditionally." "$LINENO" 5 21347fi 21348if test -z "${GMP_FOR_MP_TRUE}" && test -z "${GMP_FOR_MP_FALSE}"; then 21349 as_fn_error $? "conditional \"GMP_FOR_MP\" was never defined. 21350Usually this means the macro was only invoked conditionally." "$LINENO" 5 21351fi 21352if test -z "${HAVE_CXX11_TRUE}" && test -z "${HAVE_CXX11_FALSE}"; then 21353 as_fn_error $? "conditional \"HAVE_CXX11\" was never defined. 21354Usually this means the macro was only invoked conditionally." "$LINENO" 5 21355fi 21356if test -z "${SMALL_INT_OPT_TRUE}" && test -z "${SMALL_INT_OPT_FALSE}"; then 21357 as_fn_error $? "conditional \"SMALL_INT_OPT\" was never defined. 21358Usually this means the macro was only invoked conditionally." "$LINENO" 5 21359fi 21360if test -z "${HAVE_CLANG_TRUE}" && test -z "${HAVE_CLANG_FALSE}"; then 21361 as_fn_error $? "conditional \"HAVE_CLANG\" was never defined. 21362Usually this means the macro was only invoked conditionally." "$LINENO" 5 21363fi 21364if test -z "${HAVE_CPP_ISL_H_TRUE}" && test -z "${HAVE_CPP_ISL_H_FALSE}"; then 21365 as_fn_error $? "conditional \"HAVE_CPP_ISL_H\" was never defined. 21366Usually this means the macro was only invoked conditionally." "$LINENO" 5 21367fi 21368 21369: "${CONFIG_STATUS=./config.status}" 21370ac_write_fail=0 21371ac_clean_files_save=$ac_clean_files 21372ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21373{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21374$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21375as_write_fail=0 21376cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21377#! $SHELL 21378# Generated by $as_me. 21379# Run this file to recreate the current configuration. 21380# Compiler output produced by configure, useful for debugging 21381# configure, is in config.log if it exists. 21382 21383debug=false 21384ac_cs_recheck=false 21385ac_cs_silent=false 21386 21387SHELL=\${CONFIG_SHELL-$SHELL} 21388export SHELL 21389_ASEOF 21390cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21391## -------------------- ## 21392## M4sh Initialization. ## 21393## -------------------- ## 21394 21395# Be more Bourne compatible 21396DUALCASE=1; export DUALCASE # for MKS sh 21397if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21398 emulate sh 21399 NULLCMD=: 21400 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21401 # is contrary to our usage. Disable this feature. 21402 alias -g '${1+"$@"}'='"$@"' 21403 setopt NO_GLOB_SUBST 21404else 21405 case `(set -o) 2>/dev/null` in #( 21406 *posix*) : 21407 set -o posix ;; #( 21408 *) : 21409 ;; 21410esac 21411fi 21412 21413 21414as_nl=' 21415' 21416export as_nl 21417# Printing a long string crashes Solaris 7 /usr/bin/printf. 21418as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21419as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21420as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21421# Prefer a ksh shell builtin over an external printf program on Solaris, 21422# but without wasting forks for bash or zsh. 21423if test -z "$BASH_VERSION$ZSH_VERSION" \ 21424 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21425 as_echo='print -r --' 21426 as_echo_n='print -rn --' 21427elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21428 as_echo='printf %s\n' 21429 as_echo_n='printf %s' 21430else 21431 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21432 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21433 as_echo_n='/usr/ucb/echo -n' 21434 else 21435 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21436 as_echo_n_body='eval 21437 arg=$1; 21438 case $arg in #( 21439 *"$as_nl"*) 21440 expr "X$arg" : "X\\(.*\\)$as_nl"; 21441 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21442 esac; 21443 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21444 ' 21445 export as_echo_n_body 21446 as_echo_n='sh -c $as_echo_n_body as_echo' 21447 fi 21448 export as_echo_body 21449 as_echo='sh -c $as_echo_body as_echo' 21450fi 21451 21452# The user is always right. 21453if test "${PATH_SEPARATOR+set}" != set; then 21454 PATH_SEPARATOR=: 21455 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21456 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21457 PATH_SEPARATOR=';' 21458 } 21459fi 21460 21461 21462# IFS 21463# We need space, tab and new line, in precisely that order. Quoting is 21464# there to prevent editors from complaining about space-tab. 21465# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21466# splitting by setting IFS to empty value.) 21467IFS=" "" $as_nl" 21468 21469# Find who we are. Look in the path if we contain no directory separator. 21470as_myself= 21471case $0 in #(( 21472 *[\\/]* ) as_myself=$0 ;; 21473 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21474for as_dir in $PATH 21475do 21476 IFS=$as_save_IFS 21477 test -z "$as_dir" && as_dir=. 21478 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21479 done 21480IFS=$as_save_IFS 21481 21482 ;; 21483esac 21484# We did not find ourselves, most probably we were run as `sh COMMAND' 21485# in which case we are not to be found in the path. 21486if test "x$as_myself" = x; then 21487 as_myself=$0 21488fi 21489if test ! -f "$as_myself"; then 21490 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21491 exit 1 21492fi 21493 21494# Unset variables that we do not need and which cause bugs (e.g. in 21495# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21496# suppresses any "Segmentation fault" message there. '((' could 21497# trigger a bug in pdksh 5.2.14. 21498for as_var in BASH_ENV ENV MAIL MAILPATH 21499do eval test x\${$as_var+set} = xset \ 21500 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21501done 21502PS1='$ ' 21503PS2='> ' 21504PS4='+ ' 21505 21506# NLS nuisances. 21507LC_ALL=C 21508export LC_ALL 21509LANGUAGE=C 21510export LANGUAGE 21511 21512# CDPATH. 21513(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21514 21515 21516# as_fn_error STATUS ERROR [LINENO LOG_FD] 21517# ---------------------------------------- 21518# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21519# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21520# script with STATUS, using 1 if that was 0. 21521as_fn_error () 21522{ 21523 as_status=$1; test $as_status -eq 0 && as_status=1 21524 if test "$4"; then 21525 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21526 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21527 fi 21528 $as_echo "$as_me: error: $2" >&2 21529 as_fn_exit $as_status 21530} # as_fn_error 21531 21532 21533# as_fn_set_status STATUS 21534# ----------------------- 21535# Set $? to STATUS, without forking. 21536as_fn_set_status () 21537{ 21538 return $1 21539} # as_fn_set_status 21540 21541# as_fn_exit STATUS 21542# ----------------- 21543# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21544as_fn_exit () 21545{ 21546 set +e 21547 as_fn_set_status $1 21548 exit $1 21549} # as_fn_exit 21550 21551# as_fn_unset VAR 21552# --------------- 21553# Portably unset VAR. 21554as_fn_unset () 21555{ 21556 { eval $1=; unset $1;} 21557} 21558as_unset=as_fn_unset 21559# as_fn_append VAR VALUE 21560# ---------------------- 21561# Append the text in VALUE to the end of the definition contained in VAR. Take 21562# advantage of any shell optimizations that allow amortized linear growth over 21563# repeated appends, instead of the typical quadratic growth present in naive 21564# implementations. 21565if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21566 eval 'as_fn_append () 21567 { 21568 eval $1+=\$2 21569 }' 21570else 21571 as_fn_append () 21572 { 21573 eval $1=\$$1\$2 21574 } 21575fi # as_fn_append 21576 21577# as_fn_arith ARG... 21578# ------------------ 21579# Perform arithmetic evaluation on the ARGs, and store the result in the 21580# global $as_val. Take advantage of shells that can avoid forks. The arguments 21581# must be portable across $(()) and expr. 21582if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21583 eval 'as_fn_arith () 21584 { 21585 as_val=$(( $* )) 21586 }' 21587else 21588 as_fn_arith () 21589 { 21590 as_val=`expr "$@" || test $? -eq 1` 21591 } 21592fi # as_fn_arith 21593 21594 21595if expr a : '\(a\)' >/dev/null 2>&1 && 21596 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21597 as_expr=expr 21598else 21599 as_expr=false 21600fi 21601 21602if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21603 as_basename=basename 21604else 21605 as_basename=false 21606fi 21607 21608if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21609 as_dirname=dirname 21610else 21611 as_dirname=false 21612fi 21613 21614as_me=`$as_basename -- "$0" || 21615$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21616 X"$0" : 'X\(//\)$' \| \ 21617 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21618$as_echo X/"$0" | 21619 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21620 s//\1/ 21621 q 21622 } 21623 /^X\/\(\/\/\)$/{ 21624 s//\1/ 21625 q 21626 } 21627 /^X\/\(\/\).*/{ 21628 s//\1/ 21629 q 21630 } 21631 s/.*/./; q'` 21632 21633# Avoid depending upon Character Ranges. 21634as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21635as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21636as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21637as_cr_digits='0123456789' 21638as_cr_alnum=$as_cr_Letters$as_cr_digits 21639 21640ECHO_C= ECHO_N= ECHO_T= 21641case `echo -n x` in #((((( 21642-n*) 21643 case `echo 'xy\c'` in 21644 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21645 xy) ECHO_C='\c';; 21646 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21647 ECHO_T=' ';; 21648 esac;; 21649*) 21650 ECHO_N='-n';; 21651esac 21652 21653rm -f conf$$ conf$$.exe conf$$.file 21654if test -d conf$$.dir; then 21655 rm -f conf$$.dir/conf$$.file 21656else 21657 rm -f conf$$.dir 21658 mkdir conf$$.dir 2>/dev/null 21659fi 21660if (echo >conf$$.file) 2>/dev/null; then 21661 if ln -s conf$$.file conf$$ 2>/dev/null; then 21662 as_ln_s='ln -s' 21663 # ... but there are two gotchas: 21664 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21665 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21666 # In both cases, we have to default to `cp -pR'. 21667 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21668 as_ln_s='cp -pR' 21669 elif ln conf$$.file conf$$ 2>/dev/null; then 21670 as_ln_s=ln 21671 else 21672 as_ln_s='cp -pR' 21673 fi 21674else 21675 as_ln_s='cp -pR' 21676fi 21677rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21678rmdir conf$$.dir 2>/dev/null 21679 21680 21681# as_fn_mkdir_p 21682# ------------- 21683# Create "$as_dir" as a directory, including parents if necessary. 21684as_fn_mkdir_p () 21685{ 21686 21687 case $as_dir in #( 21688 -*) as_dir=./$as_dir;; 21689 esac 21690 test -d "$as_dir" || eval $as_mkdir_p || { 21691 as_dirs= 21692 while :; do 21693 case $as_dir in #( 21694 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21695 *) as_qdir=$as_dir;; 21696 esac 21697 as_dirs="'$as_qdir' $as_dirs" 21698 as_dir=`$as_dirname -- "$as_dir" || 21699$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21700 X"$as_dir" : 'X\(//\)[^/]' \| \ 21701 X"$as_dir" : 'X\(//\)$' \| \ 21702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21703$as_echo X"$as_dir" | 21704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21705 s//\1/ 21706 q 21707 } 21708 /^X\(\/\/\)[^/].*/{ 21709 s//\1/ 21710 q 21711 } 21712 /^X\(\/\/\)$/{ 21713 s//\1/ 21714 q 21715 } 21716 /^X\(\/\).*/{ 21717 s//\1/ 21718 q 21719 } 21720 s/.*/./; q'` 21721 test -d "$as_dir" && break 21722 done 21723 test -z "$as_dirs" || eval "mkdir $as_dirs" 21724 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21725 21726 21727} # as_fn_mkdir_p 21728if mkdir -p . 2>/dev/null; then 21729 as_mkdir_p='mkdir -p "$as_dir"' 21730else 21731 test -d ./-p && rmdir ./-p 21732 as_mkdir_p=false 21733fi 21734 21735 21736# as_fn_executable_p FILE 21737# ----------------------- 21738# Test if FILE is an executable regular file. 21739as_fn_executable_p () 21740{ 21741 test -f "$1" && test -x "$1" 21742} # as_fn_executable_p 21743as_test_x='test -x' 21744as_executable_p=as_fn_executable_p 21745 21746# Sed expression to map a string onto a valid CPP name. 21747as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21748 21749# Sed expression to map a string onto a valid variable name. 21750as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21751 21752 21753exec 6>&1 21754## ----------------------------------- ## 21755## Main body of $CONFIG_STATUS script. ## 21756## ----------------------------------- ## 21757_ASEOF 21758test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21759 21760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21761# Save the log message, to keep $0 and so on meaningful, and to 21762# report actual input values of CONFIG_FILES etc. instead of their 21763# values after options handling. 21764ac_log=" 21765This file was extended by isl $as_me 0.22.1, which was 21766generated by GNU Autoconf 2.69. Invocation command line was 21767 21768 CONFIG_FILES = $CONFIG_FILES 21769 CONFIG_HEADERS = $CONFIG_HEADERS 21770 CONFIG_LINKS = $CONFIG_LINKS 21771 CONFIG_COMMANDS = $CONFIG_COMMANDS 21772 $ $0 $@ 21773 21774on `(hostname || uname -n) 2>/dev/null | sed 1q` 21775" 21776 21777_ACEOF 21778 21779case $ac_config_files in *" 21780"*) set x $ac_config_files; shift; ac_config_files=$*;; 21781esac 21782 21783case $ac_config_headers in *" 21784"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21785esac 21786 21787 21788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21789# Files that config.status was made for. 21790config_files="$ac_config_files" 21791config_headers="$ac_config_headers" 21792config_commands="$ac_config_commands" 21793 21794_ACEOF 21795 21796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21797ac_cs_usage="\ 21798\`$as_me' instantiates files and other configuration actions 21799from templates according to the current configuration. Unless the files 21800and actions are specified as TAGs, all are instantiated by default. 21801 21802Usage: $0 [OPTION]... [TAG]... 21803 21804 -h, --help print this help, then exit 21805 -V, --version print version number and configuration settings, then exit 21806 --config print configuration, then exit 21807 -q, --quiet, --silent 21808 do not print progress messages 21809 -d, --debug don't remove temporary files 21810 --recheck update $as_me by reconfiguring in the same conditions 21811 --file=FILE[:TEMPLATE] 21812 instantiate the configuration file FILE 21813 --header=FILE[:TEMPLATE] 21814 instantiate the configuration header FILE 21815 21816Configuration files: 21817$config_files 21818 21819Configuration headers: 21820$config_headers 21821 21822Configuration commands: 21823$config_commands 21824 21825Report bugs to <isl-development@googlegroups.com>." 21826 21827_ACEOF 21828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21829ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21830ac_cs_version="\\ 21831isl config.status 0.22.1 21832configured by $0, generated by GNU Autoconf 2.69, 21833 with options \\"\$ac_cs_config\\" 21834 21835Copyright (C) 2012 Free Software Foundation, Inc. 21836This config.status script is free software; the Free Software Foundation 21837gives unlimited permission to copy, distribute and modify it." 21838 21839ac_pwd='$ac_pwd' 21840srcdir='$srcdir' 21841INSTALL='$INSTALL' 21842MKDIR_P='$MKDIR_P' 21843AWK='$AWK' 21844test -n "\$AWK" || AWK=awk 21845_ACEOF 21846 21847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21848# The default lists apply if the user does not specify any file. 21849ac_need_defaults=: 21850while test $# != 0 21851do 21852 case $1 in 21853 --*=?*) 21854 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21855 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21856 ac_shift=: 21857 ;; 21858 --*=) 21859 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21860 ac_optarg= 21861 ac_shift=: 21862 ;; 21863 *) 21864 ac_option=$1 21865 ac_optarg=$2 21866 ac_shift=shift 21867 ;; 21868 esac 21869 21870 case $ac_option in 21871 # Handling of the options. 21872 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21873 ac_cs_recheck=: ;; 21874 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21875 $as_echo "$ac_cs_version"; exit ;; 21876 --config | --confi | --conf | --con | --co | --c ) 21877 $as_echo "$ac_cs_config"; exit ;; 21878 --debug | --debu | --deb | --de | --d | -d ) 21879 debug=: ;; 21880 --file | --fil | --fi | --f ) 21881 $ac_shift 21882 case $ac_optarg in 21883 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21884 '') as_fn_error $? "missing file argument" ;; 21885 esac 21886 as_fn_append CONFIG_FILES " '$ac_optarg'" 21887 ac_need_defaults=false;; 21888 --header | --heade | --head | --hea ) 21889 $ac_shift 21890 case $ac_optarg in 21891 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21892 esac 21893 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21894 ac_need_defaults=false;; 21895 --he | --h) 21896 # Conflict between --help and --header 21897 as_fn_error $? "ambiguous option: \`$1' 21898Try \`$0 --help' for more information.";; 21899 --help | --hel | -h ) 21900 $as_echo "$ac_cs_usage"; exit ;; 21901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21902 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21903 ac_cs_silent=: ;; 21904 21905 # This is an error. 21906 -*) as_fn_error $? "unrecognized option: \`$1' 21907Try \`$0 --help' for more information." ;; 21908 21909 *) as_fn_append ac_config_targets " $1" 21910 ac_need_defaults=false ;; 21911 21912 esac 21913 shift 21914done 21915 21916ac_configure_extra_args= 21917 21918if $ac_cs_silent; then 21919 exec 6>/dev/null 21920 ac_configure_extra_args="$ac_configure_extra_args --silent" 21921fi 21922 21923_ACEOF 21924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21925if \$ac_cs_recheck; then 21926 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21927 shift 21928 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21929 CONFIG_SHELL='$SHELL' 21930 export CONFIG_SHELL 21931 exec "\$@" 21932fi 21933 21934_ACEOF 21935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21936exec 5>>config.log 21937{ 21938 echo 21939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21940## Running $as_me. ## 21941_ASBOX 21942 $as_echo "$ac_log" 21943} >&5 21944 21945_ACEOF 21946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21947# 21948# INIT-COMMANDS 21949# 21950AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21951 21952 21953# The HP-UX ksh and POSIX shell print the target directory to stdout 21954# if CDPATH is set. 21955(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21956 21957sed_quote_subst='$sed_quote_subst' 21958double_quote_subst='$double_quote_subst' 21959delay_variable_subst='$delay_variable_subst' 21960macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21961macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21962enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21963enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21964pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21965enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21966shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21967SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21968ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21969PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21970host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21971host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21972host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21973build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21974build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21975build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21976SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21977Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21978GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21979EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21980FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21981LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21982NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21983LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21984max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21985ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21986exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21987lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21988lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21989lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21990lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21991lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21992reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21993reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21994OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21995deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21996file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21997file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21998want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21999DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22000sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22001AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22002AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22003archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22004STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22005RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22006old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22007old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22008old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22009lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22010CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22011CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22012compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22013GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22014lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22015lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22016lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22017lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22018lt_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"`' 22019lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22020nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22021lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22022lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22023objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22024MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22025lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22026lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22027lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22028lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22029lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22030need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22031MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22032DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22033NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22034LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22035OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22036OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22037libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22038shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22039extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22040archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22041enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22042export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22043whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22044compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22045old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22046old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22047archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22048archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22049module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22050module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22051with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22052allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22053no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22054hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22055hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22056hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22057hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22058hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22059hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22060hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22061inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22062link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22063always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22064export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22065exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22066include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22067prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22068postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22069file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22070variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22071need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22072need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22073version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22074runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22075shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22076shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22077libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22078library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22079soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22080install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22081postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22082postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22083finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22084finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22085hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22086sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22087configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22088configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22089hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22090enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22091enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22092enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22093old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22094striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22095compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 22096predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 22097postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 22098predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 22099postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 22100compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 22101LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 22102reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 22103reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22104old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22105compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 22106GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 22107lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 22108lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 22109lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 22110lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 22111lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 22112archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 22113enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 22114export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22115whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22116compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 22117old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22118old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22119archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22120archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22121module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22122module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22123with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 22124allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 22125no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 22126hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22127hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 22128hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 22129hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 22130hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 22131hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 22132hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 22133inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 22134link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 22135always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 22136export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22137exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 22138include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 22139prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22140postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22141file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 22142hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 22143compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 22144predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 22145postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 22146predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 22147postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 22148compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 22149 22150LTCC='$LTCC' 22151LTCFLAGS='$LTCFLAGS' 22152compiler='$compiler_DEFAULT' 22153 22154# A function that is used when there is no print builtin or printf. 22155func_fallback_echo () 22156{ 22157 eval 'cat <<_LTECHO_EOF 22158\$1 22159_LTECHO_EOF' 22160} 22161 22162# Quote evaled strings. 22163for var in SHELL \ 22164ECHO \ 22165PATH_SEPARATOR \ 22166SED \ 22167GREP \ 22168EGREP \ 22169FGREP \ 22170LD \ 22171NM \ 22172LN_S \ 22173lt_SP2NL \ 22174lt_NL2SP \ 22175reload_flag \ 22176OBJDUMP \ 22177deplibs_check_method \ 22178file_magic_cmd \ 22179file_magic_glob \ 22180want_nocaseglob \ 22181DLLTOOL \ 22182sharedlib_from_linklib_cmd \ 22183AR \ 22184AR_FLAGS \ 22185archiver_list_spec \ 22186STRIP \ 22187RANLIB \ 22188CC \ 22189CFLAGS \ 22190compiler \ 22191lt_cv_sys_global_symbol_pipe \ 22192lt_cv_sys_global_symbol_to_cdecl \ 22193lt_cv_sys_global_symbol_to_import \ 22194lt_cv_sys_global_symbol_to_c_name_address \ 22195lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22196lt_cv_nm_interface \ 22197nm_file_list_spec \ 22198lt_cv_truncate_bin \ 22199lt_prog_compiler_no_builtin_flag \ 22200lt_prog_compiler_pic \ 22201lt_prog_compiler_wl \ 22202lt_prog_compiler_static \ 22203lt_cv_prog_compiler_c_o \ 22204need_locks \ 22205MANIFEST_TOOL \ 22206DSYMUTIL \ 22207NMEDIT \ 22208LIPO \ 22209OTOOL \ 22210OTOOL64 \ 22211shrext_cmds \ 22212export_dynamic_flag_spec \ 22213whole_archive_flag_spec \ 22214compiler_needs_object \ 22215with_gnu_ld \ 22216allow_undefined_flag \ 22217no_undefined_flag \ 22218hardcode_libdir_flag_spec \ 22219hardcode_libdir_separator \ 22220exclude_expsyms \ 22221include_expsyms \ 22222file_list_spec \ 22223variables_saved_for_relink \ 22224libname_spec \ 22225library_names_spec \ 22226soname_spec \ 22227install_override_mode \ 22228finish_eval \ 22229old_striplib \ 22230striplib \ 22231compiler_lib_search_dirs \ 22232predep_objects \ 22233postdep_objects \ 22234predeps \ 22235postdeps \ 22236compiler_lib_search_path \ 22237LD_CXX \ 22238reload_flag_CXX \ 22239compiler_CXX \ 22240lt_prog_compiler_no_builtin_flag_CXX \ 22241lt_prog_compiler_pic_CXX \ 22242lt_prog_compiler_wl_CXX \ 22243lt_prog_compiler_static_CXX \ 22244lt_cv_prog_compiler_c_o_CXX \ 22245export_dynamic_flag_spec_CXX \ 22246whole_archive_flag_spec_CXX \ 22247compiler_needs_object_CXX \ 22248with_gnu_ld_CXX \ 22249allow_undefined_flag_CXX \ 22250no_undefined_flag_CXX \ 22251hardcode_libdir_flag_spec_CXX \ 22252hardcode_libdir_separator_CXX \ 22253exclude_expsyms_CXX \ 22254include_expsyms_CXX \ 22255file_list_spec_CXX \ 22256compiler_lib_search_dirs_CXX \ 22257predep_objects_CXX \ 22258postdep_objects_CXX \ 22259predeps_CXX \ 22260postdeps_CXX \ 22261compiler_lib_search_path_CXX; do 22262 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22263 *[\\\\\\\`\\"\\\$]*) 22264 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22265 ;; 22266 *) 22267 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22268 ;; 22269 esac 22270done 22271 22272# Double-quote double-evaled strings. 22273for var in reload_cmds \ 22274old_postinstall_cmds \ 22275old_postuninstall_cmds \ 22276old_archive_cmds \ 22277extract_expsyms_cmds \ 22278old_archive_from_new_cmds \ 22279old_archive_from_expsyms_cmds \ 22280archive_cmds \ 22281archive_expsym_cmds \ 22282module_cmds \ 22283module_expsym_cmds \ 22284export_symbols_cmds \ 22285prelink_cmds \ 22286postlink_cmds \ 22287postinstall_cmds \ 22288postuninstall_cmds \ 22289finish_cmds \ 22290sys_lib_search_path_spec \ 22291configure_time_dlsearch_path \ 22292configure_time_lt_sys_library_path \ 22293reload_cmds_CXX \ 22294old_archive_cmds_CXX \ 22295old_archive_from_new_cmds_CXX \ 22296old_archive_from_expsyms_cmds_CXX \ 22297archive_cmds_CXX \ 22298archive_expsym_cmds_CXX \ 22299module_cmds_CXX \ 22300module_expsym_cmds_CXX \ 22301export_symbols_cmds_CXX \ 22302prelink_cmds_CXX \ 22303postlink_cmds_CXX; do 22304 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22305 *[\\\\\\\`\\"\\\$]*) 22306 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22307 ;; 22308 *) 22309 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22310 ;; 22311 esac 22312done 22313 22314ac_aux_dir='$ac_aux_dir' 22315 22316# See if we are running on zsh, and set the options that allow our 22317# commands through without removal of \ escapes INIT. 22318if test -n "\${ZSH_VERSION+set}"; then 22319 setopt NO_GLOB_SUBST 22320fi 22321 22322 22323 PACKAGE='$PACKAGE' 22324 VERSION='$VERSION' 22325 RM='$RM' 22326 ofile='$ofile' 22327 22328 22329 22330 22331 22332# variables for create stdint.h replacement 22333PACKAGE="$PACKAGE" 22334VERSION="$VERSION" 22335ac_stdint_h="$ac_stdint_h" 22336_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp` 22337ac_cv_stdint_message="$ac_cv_stdint_message" 22338ac_cv_header_stdint_t="$ac_cv_header_stdint_t" 22339ac_cv_header_stdint_x="$ac_cv_header_stdint_x" 22340ac_cv_header_stdint_o="$ac_cv_header_stdint_o" 22341ac_cv_header_stdint_u="$ac_cv_header_stdint_u" 22342ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 22343ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 22344ac_cv_char_data_model="$ac_cv_char_data_model" 22345ac_cv_long_data_model="$ac_cv_long_data_model" 22346ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 22347ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 22348ac_cv_type_intmax_t="$ac_cv_type_intmax_t" 22349 22350 22351ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate" 22352pkgconfig_prefix='$prefix' 22353pkgconfig_execprefix='$exec_prefix' 22354pkgconfig_bindir='$bindir' 22355pkgconfig_libdir='$libdir' 22356pkgconfig_includedir='$includedir' 22357pkgconfig_datarootdir='$datarootdir' 22358pkgconfig_datadir='$datadir' 22359pkgconfig_sysconfdir='$sysconfdir' 22360pkgconfig_suffix='$ax_create_pkgconfig_suffix' 22361pkgconfig_package='$PACKAGE_NAME' 22362pkgconfig_libname='$ax_create_pkgconfig_libname' 22363pkgconfig_description='$ax_create_pkgconfig_description' 22364pkgconfig_version='$ax_create_pkgconfig_version' 22365pkgconfig_requires='$ax_create_pkgconfig_requires' 22366pkgconfig_libs='$ax_create_pkgconfig_libs' 22367pkgconfig_ldflags='$ax_create_pkgconfig_ldflags' 22368pkgconfig_cppflags='$ax_create_pkgconfig_cppflags' 22369pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir' 22370pkgconfig_src_headers='$ax_create_pkgconfig_src_headers' 22371 22372 22373_ACEOF 22374 22375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22376 22377# Handling of arguments. 22378for ac_config_target in $ac_config_targets 22379do 22380 case $ac_config_target in 22381 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22382 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22383 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;; 22384 "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;; 22385 "isl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS isl_config.h" ;; 22386 "isl_srcdir.c") CONFIG_FILES="$CONFIG_FILES isl_srcdir.c" ;; 22387 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22388 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22389 "bound_test.sh") CONFIG_FILES="$CONFIG_FILES bound_test.sh" ;; 22390 "codegen_test.sh") CONFIG_FILES="$CONFIG_FILES codegen_test.sh" ;; 22391 "pip_test.sh") CONFIG_FILES="$CONFIG_FILES pip_test.sh" ;; 22392 "flow_test.sh") CONFIG_FILES="$CONFIG_FILES flow_test.sh" ;; 22393 "schedule_test.sh") CONFIG_FILES="$CONFIG_FILES schedule_test.sh" ;; 22394 22395 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22396 esac 22397done 22398 22399 22400# If the user did not use the arguments to specify the items to instantiate, 22401# then the envvar interface is used. Set only those that are not. 22402# We use the long form for the default assignment because of an extremely 22403# bizarre bug on SunOS 4.1.3. 22404if $ac_need_defaults; then 22405 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22406 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22407 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22408fi 22409 22410# Have a temporary directory for convenience. Make it in the build tree 22411# simply because there is no reason against having it here, and in addition, 22412# creating and moving files from /tmp can sometimes cause problems. 22413# Hook for its removal unless debugging. 22414# Note that there is a small window in which the directory will not be cleaned: 22415# after its creation but before its name has been assigned to `$tmp'. 22416$debug || 22417{ 22418 tmp= ac_tmp= 22419 trap 'exit_status=$? 22420 : "${ac_tmp:=$tmp}" 22421 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22422' 0 22423 trap 'as_fn_exit 1' 1 2 13 15 22424} 22425# Create a (secure) tmp directory for tmp files. 22426 22427{ 22428 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22429 test -d "$tmp" 22430} || 22431{ 22432 tmp=./conf$$-$RANDOM 22433 (umask 077 && mkdir "$tmp") 22434} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22435ac_tmp=$tmp 22436 22437# Set up the scripts for CONFIG_FILES section. 22438# No need to generate them if there are no CONFIG_FILES. 22439# This happens for instance with `./config.status config.h'. 22440if test -n "$CONFIG_FILES"; then 22441 22442 22443ac_cr=`echo X | tr X '\015'` 22444# On cygwin, bash can eat \r inside `` if the user requested igncr. 22445# But we know of no other shell where ac_cr would be empty at this 22446# point, so we can use a bashism as a fallback. 22447if test "x$ac_cr" = x; then 22448 eval ac_cr=\$\'\\r\' 22449fi 22450ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22451if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22452 ac_cs_awk_cr='\\r' 22453else 22454 ac_cs_awk_cr=$ac_cr 22455fi 22456 22457echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22458_ACEOF 22459 22460 22461{ 22462 echo "cat >conf$$subs.awk <<_ACEOF" && 22463 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22464 echo "_ACEOF" 22465} >conf$$subs.sh || 22466 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22467ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22468ac_delim='%!_!# ' 22469for ac_last_try in false false false false false :; do 22470 . ./conf$$subs.sh || 22471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22472 22473 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22474 if test $ac_delim_n = $ac_delim_num; then 22475 break 22476 elif $ac_last_try; then 22477 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22478 else 22479 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22480 fi 22481done 22482rm -f conf$$subs.sh 22483 22484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22485cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22486_ACEOF 22487sed -n ' 22488h 22489s/^/S["/; s/!.*/"]=/ 22490p 22491g 22492s/^[^!]*!// 22493:repl 22494t repl 22495s/'"$ac_delim"'$// 22496t delim 22497:nl 22498h 22499s/\(.\{148\}\)..*/\1/ 22500t more1 22501s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22502p 22503n 22504b repl 22505:more1 22506s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22507p 22508g 22509s/.\{148\}// 22510t nl 22511:delim 22512h 22513s/\(.\{148\}\)..*/\1/ 22514t more2 22515s/["\\]/\\&/g; s/^/"/; s/$/"/ 22516p 22517b 22518:more2 22519s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22520p 22521g 22522s/.\{148\}// 22523t delim 22524' <conf$$subs.awk | sed ' 22525/^[^""]/{ 22526 N 22527 s/\n// 22528} 22529' >>$CONFIG_STATUS || ac_write_fail=1 22530rm -f conf$$subs.awk 22531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22532_ACAWK 22533cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22534 for (key in S) S_is_set[key] = 1 22535 FS = "" 22536 22537} 22538{ 22539 line = $ 0 22540 nfields = split(line, field, "@") 22541 substed = 0 22542 len = length(field[1]) 22543 for (i = 2; i < nfields; i++) { 22544 key = field[i] 22545 keylen = length(key) 22546 if (S_is_set[key]) { 22547 value = S[key] 22548 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22549 len += length(value) + length(field[++i]) 22550 substed = 1 22551 } else 22552 len += 1 + keylen 22553 } 22554 22555 print line 22556} 22557 22558_ACAWK 22559_ACEOF 22560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22561if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22562 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22563else 22564 cat 22565fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22566 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22567_ACEOF 22568 22569# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22570# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22571# trailing colons and then remove the whole line if VPATH becomes empty 22572# (actually we leave an empty line to preserve line numbers). 22573if test "x$srcdir" = x.; then 22574 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22575h 22576s/// 22577s/^/:/ 22578s/[ ]*$/:/ 22579s/:\$(srcdir):/:/g 22580s/:\${srcdir}:/:/g 22581s/:@srcdir@:/:/g 22582s/^:*// 22583s/:*$// 22584x 22585s/\(=[ ]*\).*/\1/ 22586G 22587s/\n// 22588s/^[^=]*=[ ]*$// 22589}' 22590fi 22591 22592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22593fi # test -n "$CONFIG_FILES" 22594 22595# Set up the scripts for CONFIG_HEADERS section. 22596# No need to generate them if there are no CONFIG_HEADERS. 22597# This happens for instance with `./config.status Makefile'. 22598if test -n "$CONFIG_HEADERS"; then 22599cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22600BEGIN { 22601_ACEOF 22602 22603# Transform confdefs.h into an awk script `defines.awk', embedded as 22604# here-document in config.status, that substitutes the proper values into 22605# config.h.in to produce config.h. 22606 22607# Create a delimiter string that does not exist in confdefs.h, to ease 22608# handling of long lines. 22609ac_delim='%!_!# ' 22610for ac_last_try in false false :; do 22611 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22612 if test -z "$ac_tt"; then 22613 break 22614 elif $ac_last_try; then 22615 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22616 else 22617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22618 fi 22619done 22620 22621# For the awk script, D is an array of macro values keyed by name, 22622# likewise P contains macro parameters if any. Preserve backslash 22623# newline sequences. 22624 22625ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22626sed -n ' 22627s/.\{148\}/&'"$ac_delim"'/g 22628t rset 22629:rset 22630s/^[ ]*#[ ]*define[ ][ ]*/ / 22631t def 22632d 22633:def 22634s/\\$// 22635t bsnl 22636s/["\\]/\\&/g 22637s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22638D["\1"]=" \3"/p 22639s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22640d 22641:bsnl 22642s/["\\]/\\&/g 22643s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22644D["\1"]=" \3\\\\\\n"\\/p 22645t cont 22646s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22647t cont 22648d 22649:cont 22650n 22651s/.\{148\}/&'"$ac_delim"'/g 22652t clear 22653:clear 22654s/\\$// 22655t bsnlc 22656s/["\\]/\\&/g; s/^/"/; s/$/"/p 22657d 22658:bsnlc 22659s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22660b cont 22661' <confdefs.h | sed ' 22662s/'"$ac_delim"'/"\\\ 22663"/g' >>$CONFIG_STATUS || ac_write_fail=1 22664 22665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22666 for (key in D) D_is_set[key] = 1 22667 FS = "" 22668} 22669/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22670 line = \$ 0 22671 split(line, arg, " ") 22672 if (arg[1] == "#") { 22673 defundef = arg[2] 22674 mac1 = arg[3] 22675 } else { 22676 defundef = substr(arg[1], 2) 22677 mac1 = arg[2] 22678 } 22679 split(mac1, mac2, "(") #) 22680 macro = mac2[1] 22681 prefix = substr(line, 1, index(line, defundef) - 1) 22682 if (D_is_set[macro]) { 22683 # Preserve the white space surrounding the "#". 22684 print prefix "define", macro P[macro] D[macro] 22685 next 22686 } else { 22687 # Replace #undef with comments. This is necessary, for example, 22688 # in the case of _POSIX_SOURCE, which is predefined and required 22689 # on some systems where configure will not decide to define it. 22690 if (defundef == "undef") { 22691 print "/*", prefix defundef, macro, "*/" 22692 next 22693 } 22694 } 22695} 22696{ print } 22697_ACAWK 22698_ACEOF 22699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22700 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22701fi # test -n "$CONFIG_HEADERS" 22702 22703 22704eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22705shift 22706for ac_tag 22707do 22708 case $ac_tag in 22709 :[FHLC]) ac_mode=$ac_tag; continue;; 22710 esac 22711 case $ac_mode$ac_tag in 22712 :[FHL]*:*);; 22713 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22714 :[FH]-) ac_tag=-:-;; 22715 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22716 esac 22717 ac_save_IFS=$IFS 22718 IFS=: 22719 set x $ac_tag 22720 IFS=$ac_save_IFS 22721 shift 22722 ac_file=$1 22723 shift 22724 22725 case $ac_mode in 22726 :L) ac_source=$1;; 22727 :[FH]) 22728 ac_file_inputs= 22729 for ac_f 22730 do 22731 case $ac_f in 22732 -) ac_f="$ac_tmp/stdin";; 22733 *) # Look for the file first in the build tree, then in the source tree 22734 # (if the path is not absolute). The absolute path cannot be DOS-style, 22735 # because $ac_f cannot contain `:'. 22736 test -f "$ac_f" || 22737 case $ac_f in 22738 [\\/$]*) false;; 22739 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22740 esac || 22741 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22742 esac 22743 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22744 as_fn_append ac_file_inputs " '$ac_f'" 22745 done 22746 22747 # Let's still pretend it is `configure' which instantiates (i.e., don't 22748 # use $as_me), people would be surprised to read: 22749 # /* config.h. Generated by config.status. */ 22750 configure_input='Generated from '` 22751 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22752 `' by configure.' 22753 if test x"$ac_file" != x-; then 22754 configure_input="$ac_file. $configure_input" 22755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22756$as_echo "$as_me: creating $ac_file" >&6;} 22757 fi 22758 # Neutralize special characters interpreted by sed in replacement strings. 22759 case $configure_input in #( 22760 *\&* | *\|* | *\\* ) 22761 ac_sed_conf_input=`$as_echo "$configure_input" | 22762 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22763 *) ac_sed_conf_input=$configure_input;; 22764 esac 22765 22766 case $ac_tag in 22767 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22769 esac 22770 ;; 22771 esac 22772 22773 ac_dir=`$as_dirname -- "$ac_file" || 22774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22775 X"$ac_file" : 'X\(//\)[^/]' \| \ 22776 X"$ac_file" : 'X\(//\)$' \| \ 22777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22778$as_echo X"$ac_file" | 22779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22780 s//\1/ 22781 q 22782 } 22783 /^X\(\/\/\)[^/].*/{ 22784 s//\1/ 22785 q 22786 } 22787 /^X\(\/\/\)$/{ 22788 s//\1/ 22789 q 22790 } 22791 /^X\(\/\).*/{ 22792 s//\1/ 22793 q 22794 } 22795 s/.*/./; q'` 22796 as_dir="$ac_dir"; as_fn_mkdir_p 22797 ac_builddir=. 22798 22799case "$ac_dir" in 22800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22801*) 22802 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22803 # A ".." for each directory in $ac_dir_suffix. 22804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22805 case $ac_top_builddir_sub in 22806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22808 esac ;; 22809esac 22810ac_abs_top_builddir=$ac_pwd 22811ac_abs_builddir=$ac_pwd$ac_dir_suffix 22812# for backward compatibility: 22813ac_top_builddir=$ac_top_build_prefix 22814 22815case $srcdir in 22816 .) # We are building in place. 22817 ac_srcdir=. 22818 ac_top_srcdir=$ac_top_builddir_sub 22819 ac_abs_top_srcdir=$ac_pwd ;; 22820 [\\/]* | ?:[\\/]* ) # Absolute name. 22821 ac_srcdir=$srcdir$ac_dir_suffix; 22822 ac_top_srcdir=$srcdir 22823 ac_abs_top_srcdir=$srcdir ;; 22824 *) # Relative name. 22825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22826 ac_top_srcdir=$ac_top_build_prefix$srcdir 22827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22828esac 22829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22830 22831 22832 case $ac_mode in 22833 :F) 22834 # 22835 # CONFIG_FILE 22836 # 22837 22838 case $INSTALL in 22839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22841 esac 22842 ac_MKDIR_P=$MKDIR_P 22843 case $MKDIR_P in 22844 [\\/$]* | ?:[\\/]* ) ;; 22845 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22846 esac 22847_ACEOF 22848 22849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22850# If the template does not know about datarootdir, expand it. 22851# FIXME: This hack should be removed a few years after 2.60. 22852ac_datarootdir_hack=; ac_datarootdir_seen= 22853ac_sed_dataroot=' 22854/datarootdir/ { 22855 p 22856 q 22857} 22858/@datadir@/p 22859/@docdir@/p 22860/@infodir@/p 22861/@localedir@/p 22862/@mandir@/p' 22863case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22864*datarootdir*) ac_datarootdir_seen=yes;; 22865*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22867$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22868_ACEOF 22869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22870 ac_datarootdir_hack=' 22871 s&@datadir@&$datadir&g 22872 s&@docdir@&$docdir&g 22873 s&@infodir@&$infodir&g 22874 s&@localedir@&$localedir&g 22875 s&@mandir@&$mandir&g 22876 s&\\\${datarootdir}&$datarootdir&g' ;; 22877esac 22878_ACEOF 22879 22880# Neutralize VPATH when `$srcdir' = `.'. 22881# Shell code in configure.ac might set extrasub. 22882# FIXME: do we really want to maintain this feature? 22883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22884ac_sed_extra="$ac_vpsub 22885$extrasub 22886_ACEOF 22887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22888:t 22889/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22890s|@configure_input@|$ac_sed_conf_input|;t t 22891s&@top_builddir@&$ac_top_builddir_sub&;t t 22892s&@top_build_prefix@&$ac_top_build_prefix&;t t 22893s&@srcdir@&$ac_srcdir&;t t 22894s&@abs_srcdir@&$ac_abs_srcdir&;t t 22895s&@top_srcdir@&$ac_top_srcdir&;t t 22896s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22897s&@builddir@&$ac_builddir&;t t 22898s&@abs_builddir@&$ac_abs_builddir&;t t 22899s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22900s&@INSTALL@&$ac_INSTALL&;t t 22901s&@MKDIR_P@&$ac_MKDIR_P&;t t 22902$ac_datarootdir_hack 22903" 22904eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22905 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22906 22907test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22908 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22909 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22910 "$ac_tmp/out"`; test -z "$ac_out"; } && 22911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22912which seems to be undefined. Please make sure it is defined" >&5 22913$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22914which seems to be undefined. Please make sure it is defined" >&2;} 22915 22916 rm -f "$ac_tmp/stdin" 22917 case $ac_file in 22918 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22919 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22920 esac \ 22921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22922 ;; 22923 :H) 22924 # 22925 # CONFIG_HEADER 22926 # 22927 if test x"$ac_file" != x-; then 22928 { 22929 $as_echo "/* $configure_input */" \ 22930 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22931 } >"$ac_tmp/config.h" \ 22932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22933 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22934 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22935$as_echo "$as_me: $ac_file is unchanged" >&6;} 22936 else 22937 rm -f "$ac_file" 22938 mv "$ac_tmp/config.h" "$ac_file" \ 22939 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22940 fi 22941 else 22942 $as_echo "/* $configure_input */" \ 22943 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22944 || as_fn_error $? "could not create -" "$LINENO" 5 22945 fi 22946# Compute "$ac_file"'s index in $config_headers. 22947_am_arg="$ac_file" 22948_am_stamp_count=1 22949for _am_header in $config_headers :; do 22950 case $_am_header in 22951 $_am_arg | $_am_arg:* ) 22952 break ;; 22953 * ) 22954 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22955 esac 22956done 22957echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22958$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22959 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22960 X"$_am_arg" : 'X\(//\)$' \| \ 22961 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22962$as_echo X"$_am_arg" | 22963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22964 s//\1/ 22965 q 22966 } 22967 /^X\(\/\/\)[^/].*/{ 22968 s//\1/ 22969 q 22970 } 22971 /^X\(\/\/\)$/{ 22972 s//\1/ 22973 q 22974 } 22975 /^X\(\/\).*/{ 22976 s//\1/ 22977 q 22978 } 22979 s/.*/./; q'`/stamp-h$_am_stamp_count 22980 ;; 22981 22982 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22983$as_echo "$as_me: executing $ac_file commands" >&6;} 22984 ;; 22985 esac 22986 22987 22988 case $ac_file$ac_mode in 22989 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22990 # Older Autoconf quotes --file arguments for eval, but not when files 22991 # are listed without --file. Let's play safe and only enable the eval 22992 # if we detect the quoting. 22993 case $CONFIG_FILES in 22994 *\'*) eval set x "$CONFIG_FILES" ;; 22995 *) set x $CONFIG_FILES ;; 22996 esac 22997 shift 22998 for mf 22999 do 23000 # Strip MF so we end up with the name of the file. 23001 mf=`echo "$mf" | sed -e 's/:.*$//'` 23002 # Check whether this is an Automake generated Makefile or not. 23003 # We used to match only the files named 'Makefile.in', but 23004 # some people rename them; so instead we look at the file content. 23005 # Grep'ing the first line is not enough: some people post-process 23006 # each Makefile.in and add a new line on top of each file to say so. 23007 # Grep'ing the whole file is not good either: AIX grep has a line 23008 # limit of 2048, but all sed's we know have understand at least 4000. 23009 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23010 dirpart=`$as_dirname -- "$mf" || 23011$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23012 X"$mf" : 'X\(//\)[^/]' \| \ 23013 X"$mf" : 'X\(//\)$' \| \ 23014 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23015$as_echo X"$mf" | 23016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23017 s//\1/ 23018 q 23019 } 23020 /^X\(\/\/\)[^/].*/{ 23021 s//\1/ 23022 q 23023 } 23024 /^X\(\/\/\)$/{ 23025 s//\1/ 23026 q 23027 } 23028 /^X\(\/\).*/{ 23029 s//\1/ 23030 q 23031 } 23032 s/.*/./; q'` 23033 else 23034 continue 23035 fi 23036 # Extract the definition of DEPDIR, am__include, and am__quote 23037 # from the Makefile without running 'make'. 23038 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23039 test -z "$DEPDIR" && continue 23040 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23041 test -z "$am__include" && continue 23042 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23043 # Find all dependency output files, they are included files with 23044 # $(DEPDIR) in their names. We invoke sed twice because it is the 23045 # simplest approach to changing $(DEPDIR) to its actual value in the 23046 # expansion. 23047 for file in `sed -n " 23048 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23049 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 23050 # Make sure the directory exists. 23051 test -f "$dirpart/$file" && continue 23052 fdir=`$as_dirname -- "$file" || 23053$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23054 X"$file" : 'X\(//\)[^/]' \| \ 23055 X"$file" : 'X\(//\)$' \| \ 23056 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23057$as_echo X"$file" | 23058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23059 s//\1/ 23060 q 23061 } 23062 /^X\(\/\/\)[^/].*/{ 23063 s//\1/ 23064 q 23065 } 23066 /^X\(\/\/\)$/{ 23067 s//\1/ 23068 q 23069 } 23070 /^X\(\/\).*/{ 23071 s//\1/ 23072 q 23073 } 23074 s/.*/./; q'` 23075 as_dir=$dirpart/$fdir; as_fn_mkdir_p 23076 # echo "creating $dirpart/$file" 23077 echo '# dummy' > "$dirpart/$file" 23078 done 23079 done 23080} 23081 ;; 23082 "libtool":C) 23083 23084 # See if we are running on zsh, and set the options that allow our 23085 # commands through without removal of \ escapes. 23086 if test -n "${ZSH_VERSION+set}"; then 23087 setopt NO_GLOB_SUBST 23088 fi 23089 23090 cfgfile=${ofile}T 23091 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23092 $RM "$cfgfile" 23093 23094 cat <<_LT_EOF >> "$cfgfile" 23095#! $SHELL 23096# Generated automatically by $as_me ($PACKAGE) $VERSION 23097# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23098 23099# Provide generalized library-building support services. 23100# Written by Gordon Matzigkeit, 1996 23101 23102# Copyright (C) 2014 Free Software Foundation, Inc. 23103# This is free software; see the source for copying conditions. There is NO 23104# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23105 23106# GNU Libtool is free software; you can redistribute it and/or modify 23107# it under the terms of the GNU General Public License as published by 23108# the Free Software Foundation; either version 2 of of the License, or 23109# (at your option) any later version. 23110# 23111# As a special exception to the GNU General Public License, if you 23112# distribute this file as part of a program or library that is built 23113# using GNU Libtool, you may include this file under the same 23114# distribution terms that you use for the rest of that program. 23115# 23116# GNU Libtool is distributed in the hope that it will be useful, but 23117# WITHOUT ANY WARRANTY; without even the implied warranty of 23118# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23119# GNU General Public License for more details. 23120# 23121# You should have received a copy of the GNU General Public License 23122# along with this program. If not, see <http://www.gnu.org/licenses/>. 23123 23124 23125# The names of the tagged configurations supported by this script. 23126available_tags='CXX ' 23127 23128# Configured defaults for sys_lib_dlsearch_path munging. 23129: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23130 23131# ### BEGIN LIBTOOL CONFIG 23132 23133# Which release of libtool.m4 was used? 23134macro_version=$macro_version 23135macro_revision=$macro_revision 23136 23137# Whether or not to build shared libraries. 23138build_libtool_libs=$enable_shared 23139 23140# Whether or not to build static libraries. 23141build_old_libs=$enable_static 23142 23143# What type of objects to build. 23144pic_mode=$pic_mode 23145 23146# Whether or not to optimize for fast installation. 23147fast_install=$enable_fast_install 23148 23149# Shared archive member basename,for filename based shared library versioning on AIX. 23150shared_archive_member_spec=$shared_archive_member_spec 23151 23152# Shell to use when invoking shell scripts. 23153SHELL=$lt_SHELL 23154 23155# An echo program that protects backslashes. 23156ECHO=$lt_ECHO 23157 23158# The PATH separator for the build system. 23159PATH_SEPARATOR=$lt_PATH_SEPARATOR 23160 23161# The host system. 23162host_alias=$host_alias 23163host=$host 23164host_os=$host_os 23165 23166# The build system. 23167build_alias=$build_alias 23168build=$build 23169build_os=$build_os 23170 23171# A sed program that does not truncate output. 23172SED=$lt_SED 23173 23174# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23175Xsed="\$SED -e 1s/^X//" 23176 23177# A grep program that handles long lines. 23178GREP=$lt_GREP 23179 23180# An ERE matcher. 23181EGREP=$lt_EGREP 23182 23183# A literal string matcher. 23184FGREP=$lt_FGREP 23185 23186# A BSD- or MS-compatible name lister. 23187NM=$lt_NM 23188 23189# Whether we need soft or hard links. 23190LN_S=$lt_LN_S 23191 23192# What is the maximum length of a command? 23193max_cmd_len=$max_cmd_len 23194 23195# Object file suffix (normally "o"). 23196objext=$ac_objext 23197 23198# Executable file suffix (normally ""). 23199exeext=$exeext 23200 23201# whether the shell understands "unset". 23202lt_unset=$lt_unset 23203 23204# turn spaces into newlines. 23205SP2NL=$lt_lt_SP2NL 23206 23207# turn newlines into spaces. 23208NL2SP=$lt_lt_NL2SP 23209 23210# convert \$build file names to \$host format. 23211to_host_file_cmd=$lt_cv_to_host_file_cmd 23212 23213# convert \$build files to toolchain format. 23214to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23215 23216# An object symbol dumper. 23217OBJDUMP=$lt_OBJDUMP 23218 23219# Method to check whether dependent libraries are shared objects. 23220deplibs_check_method=$lt_deplibs_check_method 23221 23222# Command to use when deplibs_check_method = "file_magic". 23223file_magic_cmd=$lt_file_magic_cmd 23224 23225# How to find potential files when deplibs_check_method = "file_magic". 23226file_magic_glob=$lt_file_magic_glob 23227 23228# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23229want_nocaseglob=$lt_want_nocaseglob 23230 23231# DLL creation program. 23232DLLTOOL=$lt_DLLTOOL 23233 23234# Command to associate shared and link libraries. 23235sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23236 23237# The archiver. 23238AR=$lt_AR 23239 23240# Flags to create an archive. 23241AR_FLAGS=$lt_AR_FLAGS 23242 23243# How to feed a file listing to the archiver. 23244archiver_list_spec=$lt_archiver_list_spec 23245 23246# A symbol stripping program. 23247STRIP=$lt_STRIP 23248 23249# Commands used to install an old-style archive. 23250RANLIB=$lt_RANLIB 23251old_postinstall_cmds=$lt_old_postinstall_cmds 23252old_postuninstall_cmds=$lt_old_postuninstall_cmds 23253 23254# Whether to use a lock for old archive extraction. 23255lock_old_archive_extraction=$lock_old_archive_extraction 23256 23257# A C compiler. 23258LTCC=$lt_CC 23259 23260# LTCC compiler flags. 23261LTCFLAGS=$lt_CFLAGS 23262 23263# Take the output of nm and produce a listing of raw symbols and C names. 23264global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23265 23266# Transform the output of nm in a proper C declaration. 23267global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23268 23269# Transform the output of nm into a list of symbols to manually relocate. 23270global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23271 23272# Transform the output of nm in a C name address pair. 23273global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23274 23275# Transform the output of nm in a C name address pair when lib prefix is needed. 23276global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23277 23278# The name lister interface. 23279nm_interface=$lt_lt_cv_nm_interface 23280 23281# Specify filename containing input files for \$NM. 23282nm_file_list_spec=$lt_nm_file_list_spec 23283 23284# The root where to search for dependent libraries,and where our libraries should be installed. 23285lt_sysroot=$lt_sysroot 23286 23287# Command to truncate a binary pipe. 23288lt_truncate_bin=$lt_lt_cv_truncate_bin 23289 23290# The name of the directory that contains temporary libtool files. 23291objdir=$objdir 23292 23293# Used to examine libraries when file_magic_cmd begins with "file". 23294MAGIC_CMD=$MAGIC_CMD 23295 23296# Must we lock files when doing compilation? 23297need_locks=$lt_need_locks 23298 23299# Manifest tool. 23300MANIFEST_TOOL=$lt_MANIFEST_TOOL 23301 23302# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23303DSYMUTIL=$lt_DSYMUTIL 23304 23305# Tool to change global to local symbols on Mac OS X. 23306NMEDIT=$lt_NMEDIT 23307 23308# Tool to manipulate fat objects and archives on Mac OS X. 23309LIPO=$lt_LIPO 23310 23311# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23312OTOOL=$lt_OTOOL 23313 23314# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23315OTOOL64=$lt_OTOOL64 23316 23317# Old archive suffix (normally "a"). 23318libext=$libext 23319 23320# Shared library suffix (normally ".so"). 23321shrext_cmds=$lt_shrext_cmds 23322 23323# The commands to extract the exported symbol list from a shared archive. 23324extract_expsyms_cmds=$lt_extract_expsyms_cmds 23325 23326# Variables whose values should be saved in libtool wrapper scripts and 23327# restored at link time. 23328variables_saved_for_relink=$lt_variables_saved_for_relink 23329 23330# Do we need the "lib" prefix for modules? 23331need_lib_prefix=$need_lib_prefix 23332 23333# Do we need a version for libraries? 23334need_version=$need_version 23335 23336# Library versioning type. 23337version_type=$version_type 23338 23339# Shared library runtime path variable. 23340runpath_var=$runpath_var 23341 23342# Shared library path variable. 23343shlibpath_var=$shlibpath_var 23344 23345# Is shlibpath searched before the hard-coded library search path? 23346shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23347 23348# Format of library name prefix. 23349libname_spec=$lt_libname_spec 23350 23351# List of archive names. First name is the real one, the rest are links. 23352# The last name is the one that the linker finds with -lNAME 23353library_names_spec=$lt_library_names_spec 23354 23355# The coded name of the library, if different from the real name. 23356soname_spec=$lt_soname_spec 23357 23358# Permission mode override for installation of shared libraries. 23359install_override_mode=$lt_install_override_mode 23360 23361# Command to use after installation of a shared archive. 23362postinstall_cmds=$lt_postinstall_cmds 23363 23364# Command to use after uninstallation of a shared archive. 23365postuninstall_cmds=$lt_postuninstall_cmds 23366 23367# Commands used to finish a libtool library installation in a directory. 23368finish_cmds=$lt_finish_cmds 23369 23370# As "finish_cmds", except a single script fragment to be evaled but 23371# not shown. 23372finish_eval=$lt_finish_eval 23373 23374# Whether we should hardcode library paths into libraries. 23375hardcode_into_libs=$hardcode_into_libs 23376 23377# Compile-time system search path for libraries. 23378sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23379 23380# Detected run-time system search path for libraries. 23381sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23382 23383# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23384configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23385 23386# Whether dlopen is supported. 23387dlopen_support=$enable_dlopen 23388 23389# Whether dlopen of programs is supported. 23390dlopen_self=$enable_dlopen_self 23391 23392# Whether dlopen of statically linked programs is supported. 23393dlopen_self_static=$enable_dlopen_self_static 23394 23395# Commands to strip libraries. 23396old_striplib=$lt_old_striplib 23397striplib=$lt_striplib 23398 23399 23400# The linker used to build libraries. 23401LD=$lt_LD 23402 23403# How to create reloadable object files. 23404reload_flag=$lt_reload_flag 23405reload_cmds=$lt_reload_cmds 23406 23407# Commands used to build an old-style archive. 23408old_archive_cmds=$lt_old_archive_cmds 23409 23410# A language specific compiler. 23411CC=$lt_compiler 23412 23413# Is the compiler the GNU compiler? 23414with_gcc=$GCC 23415 23416# Compiler flag to turn off builtin functions. 23417no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23418 23419# Additional compiler flags for building library objects. 23420pic_flag=$lt_lt_prog_compiler_pic 23421 23422# How to pass a linker flag through the compiler. 23423wl=$lt_lt_prog_compiler_wl 23424 23425# Compiler flag to prevent dynamic linking. 23426link_static_flag=$lt_lt_prog_compiler_static 23427 23428# Does compiler simultaneously support -c and -o options? 23429compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23430 23431# Whether or not to add -lc for building shared libraries. 23432build_libtool_need_lc=$archive_cmds_need_lc 23433 23434# Whether or not to disallow shared libs when runtime libs are static. 23435allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23436 23437# Compiler flag to allow reflexive dlopens. 23438export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23439 23440# Compiler flag to generate shared objects directly from archives. 23441whole_archive_flag_spec=$lt_whole_archive_flag_spec 23442 23443# Whether the compiler copes with passing no objects directly. 23444compiler_needs_object=$lt_compiler_needs_object 23445 23446# Create an old-style archive from a shared archive. 23447old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23448 23449# Create a temporary old-style archive to link instead of a shared archive. 23450old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23451 23452# Commands used to build a shared archive. 23453archive_cmds=$lt_archive_cmds 23454archive_expsym_cmds=$lt_archive_expsym_cmds 23455 23456# Commands used to build a loadable module if different from building 23457# a shared archive. 23458module_cmds=$lt_module_cmds 23459module_expsym_cmds=$lt_module_expsym_cmds 23460 23461# Whether we are building with GNU ld or not. 23462with_gnu_ld=$lt_with_gnu_ld 23463 23464# Flag that allows shared libraries with undefined symbols to be built. 23465allow_undefined_flag=$lt_allow_undefined_flag 23466 23467# Flag that enforces no undefined symbols. 23468no_undefined_flag=$lt_no_undefined_flag 23469 23470# Flag to hardcode \$libdir into a binary during linking. 23471# This must work even if \$libdir does not exist 23472hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23473 23474# Whether we need a single "-rpath" flag with a separated argument. 23475hardcode_libdir_separator=$lt_hardcode_libdir_separator 23476 23477# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23478# DIR into the resulting binary. 23479hardcode_direct=$hardcode_direct 23480 23481# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23482# DIR into the resulting binary and the resulting library dependency is 23483# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23484# library is relocated. 23485hardcode_direct_absolute=$hardcode_direct_absolute 23486 23487# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23488# into the resulting binary. 23489hardcode_minus_L=$hardcode_minus_L 23490 23491# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23492# into the resulting binary. 23493hardcode_shlibpath_var=$hardcode_shlibpath_var 23494 23495# Set to "yes" if building a shared library automatically hardcodes DIR 23496# into the library and all subsequent libraries and executables linked 23497# against it. 23498hardcode_automatic=$hardcode_automatic 23499 23500# Set to yes if linker adds runtime paths of dependent libraries 23501# to runtime path list. 23502inherit_rpath=$inherit_rpath 23503 23504# Whether libtool must link a program against all its dependency libraries. 23505link_all_deplibs=$link_all_deplibs 23506 23507# Set to "yes" if exported symbols are required. 23508always_export_symbols=$always_export_symbols 23509 23510# The commands to list exported symbols. 23511export_symbols_cmds=$lt_export_symbols_cmds 23512 23513# Symbols that should not be listed in the preloaded symbols. 23514exclude_expsyms=$lt_exclude_expsyms 23515 23516# Symbols that must always be exported. 23517include_expsyms=$lt_include_expsyms 23518 23519# Commands necessary for linking programs (against libraries) with templates. 23520prelink_cmds=$lt_prelink_cmds 23521 23522# Commands necessary for finishing linking programs. 23523postlink_cmds=$lt_postlink_cmds 23524 23525# Specify filename containing input files. 23526file_list_spec=$lt_file_list_spec 23527 23528# How to hardcode a shared library path into an executable. 23529hardcode_action=$hardcode_action 23530 23531# The directories searched by this compiler when creating a shared library. 23532compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 23533 23534# Dependencies to place before and after the objects being linked to 23535# create a shared library. 23536predep_objects=$lt_predep_objects 23537postdep_objects=$lt_postdep_objects 23538predeps=$lt_predeps 23539postdeps=$lt_postdeps 23540 23541# The library search path used internally by the compiler when linking 23542# a shared library. 23543compiler_lib_search_path=$lt_compiler_lib_search_path 23544 23545# ### END LIBTOOL CONFIG 23546 23547_LT_EOF 23548 23549 cat <<'_LT_EOF' >> "$cfgfile" 23550 23551# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23552 23553# func_munge_path_list VARIABLE PATH 23554# ----------------------------------- 23555# VARIABLE is name of variable containing _space_ separated list of 23556# directories to be munged by the contents of PATH, which is string 23557# having a format: 23558# "DIR[:DIR]:" 23559# string "DIR[ DIR]" will be prepended to VARIABLE 23560# ":DIR[:DIR]" 23561# string "DIR[ DIR]" will be appended to VARIABLE 23562# "DIRP[:DIRP]::[DIRA:]DIRA" 23563# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23564# "DIRA[ DIRA]" will be appended to VARIABLE 23565# "DIR[:DIR]" 23566# VARIABLE will be replaced by "DIR[ DIR]" 23567func_munge_path_list () 23568{ 23569 case x$2 in 23570 x) 23571 ;; 23572 *:) 23573 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23574 ;; 23575 x:*) 23576 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23577 ;; 23578 *::*) 23579 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23580 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23581 ;; 23582 *) 23583 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23584 ;; 23585 esac 23586} 23587 23588 23589# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23590func_cc_basename () 23591{ 23592 for cc_temp in $*""; do 23593 case $cc_temp in 23594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23596 \-*) ;; 23597 *) break;; 23598 esac 23599 done 23600 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23601} 23602 23603 23604# ### END FUNCTIONS SHARED WITH CONFIGURE 23605 23606_LT_EOF 23607 23608 case $host_os in 23609 aix3*) 23610 cat <<\_LT_EOF >> "$cfgfile" 23611# AIX sometimes has problems with the GCC collect2 program. For some 23612# reason, if we set the COLLECT_NAMES environment variable, the problems 23613# vanish in a puff of smoke. 23614if test set != "${COLLECT_NAMES+set}"; then 23615 COLLECT_NAMES= 23616 export COLLECT_NAMES 23617fi 23618_LT_EOF 23619 ;; 23620 esac 23621 23622 23623ltmain=$ac_aux_dir/ltmain.sh 23624 23625 23626 # We use sed instead of cat because bash on DJGPP gets confused if 23627 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23628 # text mode, it properly converts lines to CR/LF. This bash problem 23629 # is reportedly fixed, but why not run on old versions too? 23630 sed '$q' "$ltmain" >> "$cfgfile" \ 23631 || (rm -f "$cfgfile"; exit 1) 23632 23633 mv -f "$cfgfile" "$ofile" || 23634 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23635 chmod +x "$ofile" 23636 23637 23638 cat <<_LT_EOF >> "$ofile" 23639 23640# ### BEGIN LIBTOOL TAG CONFIG: CXX 23641 23642# The linker used to build libraries. 23643LD=$lt_LD_CXX 23644 23645# How to create reloadable object files. 23646reload_flag=$lt_reload_flag_CXX 23647reload_cmds=$lt_reload_cmds_CXX 23648 23649# Commands used to build an old-style archive. 23650old_archive_cmds=$lt_old_archive_cmds_CXX 23651 23652# A language specific compiler. 23653CC=$lt_compiler_CXX 23654 23655# Is the compiler the GNU compiler? 23656with_gcc=$GCC_CXX 23657 23658# Compiler flag to turn off builtin functions. 23659no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23660 23661# Additional compiler flags for building library objects. 23662pic_flag=$lt_lt_prog_compiler_pic_CXX 23663 23664# How to pass a linker flag through the compiler. 23665wl=$lt_lt_prog_compiler_wl_CXX 23666 23667# Compiler flag to prevent dynamic linking. 23668link_static_flag=$lt_lt_prog_compiler_static_CXX 23669 23670# Does compiler simultaneously support -c and -o options? 23671compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23672 23673# Whether or not to add -lc for building shared libraries. 23674build_libtool_need_lc=$archive_cmds_need_lc_CXX 23675 23676# Whether or not to disallow shared libs when runtime libs are static. 23677allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23678 23679# Compiler flag to allow reflexive dlopens. 23680export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23681 23682# Compiler flag to generate shared objects directly from archives. 23683whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23684 23685# Whether the compiler copes with passing no objects directly. 23686compiler_needs_object=$lt_compiler_needs_object_CXX 23687 23688# Create an old-style archive from a shared archive. 23689old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23690 23691# Create a temporary old-style archive to link instead of a shared archive. 23692old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23693 23694# Commands used to build a shared archive. 23695archive_cmds=$lt_archive_cmds_CXX 23696archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23697 23698# Commands used to build a loadable module if different from building 23699# a shared archive. 23700module_cmds=$lt_module_cmds_CXX 23701module_expsym_cmds=$lt_module_expsym_cmds_CXX 23702 23703# Whether we are building with GNU ld or not. 23704with_gnu_ld=$lt_with_gnu_ld_CXX 23705 23706# Flag that allows shared libraries with undefined symbols to be built. 23707allow_undefined_flag=$lt_allow_undefined_flag_CXX 23708 23709# Flag that enforces no undefined symbols. 23710no_undefined_flag=$lt_no_undefined_flag_CXX 23711 23712# Flag to hardcode \$libdir into a binary during linking. 23713# This must work even if \$libdir does not exist 23714hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23715 23716# Whether we need a single "-rpath" flag with a separated argument. 23717hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23718 23719# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23720# DIR into the resulting binary. 23721hardcode_direct=$hardcode_direct_CXX 23722 23723# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23724# DIR into the resulting binary and the resulting library dependency is 23725# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23726# library is relocated. 23727hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23728 23729# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23730# into the resulting binary. 23731hardcode_minus_L=$hardcode_minus_L_CXX 23732 23733# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23734# into the resulting binary. 23735hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23736 23737# Set to "yes" if building a shared library automatically hardcodes DIR 23738# into the library and all subsequent libraries and executables linked 23739# against it. 23740hardcode_automatic=$hardcode_automatic_CXX 23741 23742# Set to yes if linker adds runtime paths of dependent libraries 23743# to runtime path list. 23744inherit_rpath=$inherit_rpath_CXX 23745 23746# Whether libtool must link a program against all its dependency libraries. 23747link_all_deplibs=$link_all_deplibs_CXX 23748 23749# Set to "yes" if exported symbols are required. 23750always_export_symbols=$always_export_symbols_CXX 23751 23752# The commands to list exported symbols. 23753export_symbols_cmds=$lt_export_symbols_cmds_CXX 23754 23755# Symbols that should not be listed in the preloaded symbols. 23756exclude_expsyms=$lt_exclude_expsyms_CXX 23757 23758# Symbols that must always be exported. 23759include_expsyms=$lt_include_expsyms_CXX 23760 23761# Commands necessary for linking programs (against libraries) with templates. 23762prelink_cmds=$lt_prelink_cmds_CXX 23763 23764# Commands necessary for finishing linking programs. 23765postlink_cmds=$lt_postlink_cmds_CXX 23766 23767# Specify filename containing input files. 23768file_list_spec=$lt_file_list_spec_CXX 23769 23770# How to hardcode a shared library path into an executable. 23771hardcode_action=$hardcode_action_CXX 23772 23773# The directories searched by this compiler when creating a shared library. 23774compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23775 23776# Dependencies to place before and after the objects being linked to 23777# create a shared library. 23778predep_objects=$lt_predep_objects_CXX 23779postdep_objects=$lt_postdep_objects_CXX 23780predeps=$lt_predeps_CXX 23781postdeps=$lt_postdeps_CXX 23782 23783# The library search path used internally by the compiler when linking 23784# a shared library. 23785compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23786 23787# ### END LIBTOOL TAG CONFIG: CXX 23788_LT_EOF 23789 23790 ;; 23791 "$ac_stdint_h":C) 23792{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5 23793$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;} 23794ac_stdint=$tmp/_stdint.h 23795 23796echo "#ifndef" $_ac_stdint_h >$ac_stdint 23797echo "#define" $_ac_stdint_h "1" >>$ac_stdint 23798echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint 23799echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint 23800echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint 23801if test "_$ac_cv_header_stdint_t" != "_" ; then 23802echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint 23803echo "#include <stdint.h>" >>$ac_stdint 23804echo "#endif" >>$ac_stdint 23805echo "#endif" >>$ac_stdint 23806else 23807 23808cat >>$ac_stdint <<STDINT_EOF 23809 23810/* ................... shortcircuit part ........................... */ 23811 23812#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H 23813#include <stdint.h> 23814#else 23815#include <stddef.h> 23816 23817/* .................... configured part ............................ */ 23818 23819STDINT_EOF 23820 23821echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint 23822if test "_$ac_cv_header_stdint_x" != "_" ; then 23823 ac_header="$ac_cv_header_stdint_x" 23824 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint 23825else 23826 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint 23827fi 23828 23829echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint 23830if test "_$ac_cv_header_stdint_o" != "_" ; then 23831 ac_header="$ac_cv_header_stdint_o" 23832 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint 23833else 23834 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint 23835fi 23836 23837echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint 23838if test "_$ac_cv_header_stdint_u" != "_" ; then 23839 ac_header="$ac_cv_header_stdint_u" 23840 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint 23841else 23842 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint 23843fi 23844 23845echo "" >>$ac_stdint 23846 23847if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then 23848 echo "#include <$ac_header>" >>$ac_stdint 23849 echo "" >>$ac_stdint 23850fi fi 23851 23852echo "/* which 64bit typedef has been found */" >>$ac_stdint 23853if test "$ac_cv_type_uint64_t" = "yes" ; then 23854echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint 23855else 23856echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint 23857fi 23858if test "$ac_cv_type_u_int64_t" = "yes" ; then 23859echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint 23860else 23861echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint 23862fi 23863echo "" >>$ac_stdint 23864 23865echo "/* which type model has been detected */" >>$ac_stdint 23866if test "_$ac_cv_char_data_model" != "_" ; then 23867echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint 23868echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint 23869else 23870echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint 23871echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint 23872fi 23873echo "" >>$ac_stdint 23874 23875echo "/* whether int_least types were detected */" >>$ac_stdint 23876if test "$ac_cv_type_int_least32_t" = "yes"; then 23877echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint 23878else 23879echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint 23880fi 23881echo "/* whether int_fast types were detected */" >>$ac_stdint 23882if test "$ac_cv_type_int_fast32_t" = "yes"; then 23883echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint 23884else 23885echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint 23886fi 23887echo "/* whether intmax_t type was detected */" >>$ac_stdint 23888if test "$ac_cv_type_intmax_t" = "yes"; then 23889echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint 23890else 23891echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint 23892fi 23893echo "" >>$ac_stdint 23894 23895 cat >>$ac_stdint <<STDINT_EOF 23896/* .................... detections part ............................ */ 23897 23898/* whether we need to define bitspecific types from compiler base types */ 23899#ifndef _STDINT_HEADER_INTPTR 23900#ifndef _STDINT_HEADER_UINT32 23901#ifndef _STDINT_HEADER_U_INT32 23902#define _STDINT_NEED_INT_MODEL_T 23903#else 23904#define _STDINT_HAVE_U_INT_TYPES 23905#endif 23906#endif 23907#endif 23908 23909#ifdef _STDINT_HAVE_U_INT_TYPES 23910#undef _STDINT_NEED_INT_MODEL_T 23911#endif 23912 23913#ifdef _STDINT_CHAR_MODEL 23914#if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124 23915#ifndef _STDINT_BYTE_MODEL 23916#define _STDINT_BYTE_MODEL 12 23917#endif 23918#endif 23919#endif 23920 23921#ifndef _STDINT_HAVE_INT_LEAST32_T 23922#define _STDINT_NEED_INT_LEAST_T 23923#endif 23924 23925#ifndef _STDINT_HAVE_INT_FAST32_T 23926#define _STDINT_NEED_INT_FAST_T 23927#endif 23928 23929#ifndef _STDINT_HEADER_INTPTR 23930#define _STDINT_NEED_INTPTR_T 23931#ifndef _STDINT_HAVE_INTMAX_T 23932#define _STDINT_NEED_INTMAX_T 23933#endif 23934#endif 23935 23936 23937/* .................... definition part ............................ */ 23938 23939/* some system headers have good uint64_t */ 23940#ifndef _HAVE_UINT64_T 23941#if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T 23942#define _HAVE_UINT64_T 23943#elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T 23944#define _HAVE_UINT64_T 23945typedef u_int64_t uint64_t; 23946#endif 23947#endif 23948 23949#ifndef _HAVE_UINT64_T 23950/* .. here are some common heuristics using compiler runtime specifics */ 23951#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L 23952#define _HAVE_UINT64_T 23953#define _HAVE_LONGLONG_UINT64_T 23954typedef long long int64_t; 23955typedef unsigned long long uint64_t; 23956 23957#elif !defined __STRICT_ANSI__ 23958#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 23959#define _HAVE_UINT64_T 23960typedef __int64 int64_t; 23961typedef unsigned __int64 uint64_t; 23962 23963#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__ 23964/* note: all ELF-systems seem to have loff-support which needs 64-bit */ 23965#if !defined _NO_LONGLONG 23966#define _HAVE_UINT64_T 23967#define _HAVE_LONGLONG_UINT64_T 23968typedef long long int64_t; 23969typedef unsigned long long uint64_t; 23970#endif 23971 23972#elif defined __alpha || (defined __mips && defined _ABIN32) 23973#if !defined _NO_LONGLONG 23974typedef long int64_t; 23975typedef unsigned long uint64_t; 23976#endif 23977 /* compiler/cpu type to define int64_t */ 23978#endif 23979#endif 23980#endif 23981 23982#if defined _STDINT_HAVE_U_INT_TYPES 23983/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ 23984typedef u_int8_t uint8_t; 23985typedef u_int16_t uint16_t; 23986typedef u_int32_t uint32_t; 23987 23988/* glibc compatibility */ 23989#ifndef __int8_t_defined 23990#define __int8_t_defined 23991#endif 23992#endif 23993 23994#ifdef _STDINT_NEED_INT_MODEL_T 23995/* we must guess all the basic types. Apart from byte-adressable system, */ 23996/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */ 23997/* (btw, those nibble-addressable systems are way off, or so we assume) */ 23998 23999 24000#if defined _STDINT_BYTE_MODEL 24001#if _STDINT_LONG_MODEL+0 == 242 24002/* 2:4:2 = IP16 = a normal 16-bit system */ 24003typedef unsigned char uint8_t; 24004typedef unsigned short uint16_t; 24005typedef unsigned long uint32_t; 24006#ifndef __int8_t_defined 24007#define __int8_t_defined 24008typedef char int8_t; 24009typedef short int16_t; 24010typedef long int32_t; 24011#endif 24012#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444 24013/* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */ 24014/* 4:4:4 = ILP32 = a normal 32-bit system */ 24015typedef unsigned char uint8_t; 24016typedef unsigned short uint16_t; 24017typedef unsigned int uint32_t; 24018#ifndef __int8_t_defined 24019#define __int8_t_defined 24020typedef char int8_t; 24021typedef short int16_t; 24022typedef int int32_t; 24023#endif 24024#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488 24025/* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */ 24026/* 4:8:8 = LP64 = a normal 64-bit system */ 24027typedef unsigned char uint8_t; 24028typedef unsigned short uint16_t; 24029typedef unsigned int uint32_t; 24030#ifndef __int8_t_defined 24031#define __int8_t_defined 24032typedef char int8_t; 24033typedef short int16_t; 24034typedef int int32_t; 24035#endif 24036/* this system has a "long" of 64bit */ 24037#ifndef _HAVE_UINT64_T 24038#define _HAVE_UINT64_T 24039typedef unsigned long uint64_t; 24040typedef long int64_t; 24041#endif 24042#elif _STDINT_LONG_MODEL+0 == 448 24043/* LLP64 a 64-bit system derived from a 32-bit system */ 24044typedef unsigned char uint8_t; 24045typedef unsigned short uint16_t; 24046typedef unsigned int uint32_t; 24047#ifndef __int8_t_defined 24048#define __int8_t_defined 24049typedef char int8_t; 24050typedef short int16_t; 24051typedef int int32_t; 24052#endif 24053/* assuming the system has a "long long" */ 24054#ifndef _HAVE_UINT64_T 24055#define _HAVE_UINT64_T 24056#define _HAVE_LONGLONG_UINT64_T 24057typedef unsigned long long uint64_t; 24058typedef long long int64_t; 24059#endif 24060#else 24061#define _STDINT_NO_INT32_T 24062#endif 24063#else 24064#define _STDINT_NO_INT8_T 24065#define _STDINT_NO_INT32_T 24066#endif 24067#endif 24068 24069/* 24070 * quote from SunOS-5.8 sys/inttypes.h: 24071 * Use at your own risk. As of February 1996, the committee is squarely 24072 * behind the fixed sized types; the "least" and "fast" types are still being 24073 * discussed. The probability that the "fast" types may be removed before 24074 * the standard is finalized is high enough that they are not currently 24075 * implemented. 24076 */ 24077 24078#if defined _STDINT_NEED_INT_LEAST_T 24079typedef int8_t int_least8_t; 24080typedef int16_t int_least16_t; 24081typedef int32_t int_least32_t; 24082#ifdef _HAVE_UINT64_T 24083typedef int64_t int_least64_t; 24084#endif 24085 24086typedef uint8_t uint_least8_t; 24087typedef uint16_t uint_least16_t; 24088typedef uint32_t uint_least32_t; 24089#ifdef _HAVE_UINT64_T 24090typedef uint64_t uint_least64_t; 24091#endif 24092 /* least types */ 24093#endif 24094 24095#if defined _STDINT_NEED_INT_FAST_T 24096typedef int8_t int_fast8_t; 24097typedef int int_fast16_t; 24098typedef int32_t int_fast32_t; 24099#ifdef _HAVE_UINT64_T 24100typedef int64_t int_fast64_t; 24101#endif 24102 24103typedef uint8_t uint_fast8_t; 24104typedef unsigned uint_fast16_t; 24105typedef uint32_t uint_fast32_t; 24106#ifdef _HAVE_UINT64_T 24107typedef uint64_t uint_fast64_t; 24108#endif 24109 /* fast types */ 24110#endif 24111 24112#ifdef _STDINT_NEED_INTMAX_T 24113#ifdef _HAVE_UINT64_T 24114typedef int64_t intmax_t; 24115typedef uint64_t uintmax_t; 24116#else 24117typedef long intmax_t; 24118typedef unsigned long uintmax_t; 24119#endif 24120#endif 24121 24122#ifdef _STDINT_NEED_INTPTR_T 24123#ifndef __intptr_t_defined 24124#define __intptr_t_defined 24125/* we encourage using "long" to store pointer values, never use "int" ! */ 24126#if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484 24127typedef unsigned int uintptr_t; 24128typedef int intptr_t; 24129#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444 24130typedef unsigned long uintptr_t; 24131typedef long intptr_t; 24132#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T 24133typedef uint64_t uintptr_t; 24134typedef int64_t intptr_t; 24135#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */ 24136typedef unsigned long uintptr_t; 24137typedef long intptr_t; 24138#endif 24139#endif 24140#endif 24141 24142/* The ISO C99 standard specifies that in C++ implementations these 24143 should only be defined if explicitly requested. */ 24144#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS 24145#ifndef UINT32_C 24146 24147/* Signed. */ 24148# define INT8_C(c) c 24149# define INT16_C(c) c 24150# define INT32_C(c) c 24151# ifdef _HAVE_LONGLONG_UINT64_T 24152# define INT64_C(c) c ## L 24153# else 24154# define INT64_C(c) c ## LL 24155# endif 24156 24157/* Unsigned. */ 24158# define UINT8_C(c) c ## U 24159# define UINT16_C(c) c ## U 24160# define UINT32_C(c) c ## U 24161# ifdef _HAVE_LONGLONG_UINT64_T 24162# define UINT64_C(c) c ## UL 24163# else 24164# define UINT64_C(c) c ## ULL 24165# endif 24166 24167/* Maximal type. */ 24168# ifdef _HAVE_LONGLONG_UINT64_T 24169# define INTMAX_C(c) c ## L 24170# define UINTMAX_C(c) c ## UL 24171# else 24172# define INTMAX_C(c) c ## LL 24173# define UINTMAX_C(c) c ## ULL 24174# endif 24175 24176 /* literalnumbers */ 24177#endif 24178#endif 24179 24180/* These limits are merily those of a two complement byte-oriented system */ 24181 24182/* Minimum of signed integral types. */ 24183# define INT8_MIN (-128) 24184# define INT16_MIN (-32767-1) 24185# define INT32_MIN (-2147483647-1) 24186#ifndef INT64_MIN 24187# define INT64_MIN (-__INT64_C(9223372036854775807)-1) 24188#endif 24189/* Maximum of signed integral types. */ 24190# define INT8_MAX (127) 24191# define INT16_MAX (32767) 24192# define INT32_MAX (2147483647) 24193#ifndef INT64_MAX 24194# define INT64_MAX (__INT64_C(9223372036854775807)) 24195#endif 24196 24197/* Maximum of unsigned integral types. */ 24198#ifndef UINT8_MAX 24199# define UINT8_MAX (255) 24200#endif 24201#ifndef UINT16_MAX 24202# define UINT16_MAX (65535) 24203#endif 24204# define UINT32_MAX (4294967295U) 24205#ifndef UINT64_MAX 24206# define UINT64_MAX (__UINT64_C(18446744073709551615)) 24207#endif 24208 24209/* Minimum of signed integral types having a minimum size. */ 24210# define INT_LEAST8_MIN INT8_MIN 24211# define INT_LEAST16_MIN INT16_MIN 24212# define INT_LEAST32_MIN INT32_MIN 24213# define INT_LEAST64_MIN INT64_MIN 24214/* Maximum of signed integral types having a minimum size. */ 24215# define INT_LEAST8_MAX INT8_MAX 24216# define INT_LEAST16_MAX INT16_MAX 24217# define INT_LEAST32_MAX INT32_MAX 24218# define INT_LEAST64_MAX INT64_MAX 24219 24220/* Maximum of unsigned integral types having a minimum size. */ 24221# define UINT_LEAST8_MAX UINT8_MAX 24222# define UINT_LEAST16_MAX UINT16_MAX 24223# define UINT_LEAST32_MAX UINT32_MAX 24224# define UINT_LEAST64_MAX UINT64_MAX 24225 24226 /* shortcircuit*/ 24227#endif 24228 /* once */ 24229#endif 24230#endif 24231STDINT_EOF 24232fi 24233 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then 24234 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5 24235$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;} 24236 else 24237 ac_dir=`$as_dirname -- "$ac_stdint_h" || 24238$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24239 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \ 24240 X"$ac_stdint_h" : 'X\(//\)$' \| \ 24241 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null || 24242$as_echo X"$ac_stdint_h" | 24243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24244 s//\1/ 24245 q 24246 } 24247 /^X\(\/\/\)[^/].*/{ 24248 s//\1/ 24249 q 24250 } 24251 /^X\(\/\/\)$/{ 24252 s//\1/ 24253 q 24254 } 24255 /^X\(\/\).*/{ 24256 s//\1/ 24257 q 24258 } 24259 s/.*/./; q'` 24260 as_dir="$ac_dir"; as_fn_mkdir_p 24261 rm -f $ac_stdint_h 24262 mv $ac_stdint $ac_stdint_h 24263 fi 24264 ;; 24265 "$ax_create_pkgconfig_generate":C) 24266pkgconfig_generate="$ax_create_pkgconfig_generate" 24267if test ! -f "$pkgconfig_generate.in" 24268then generate="true" 24269elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null 24270then generate="true" 24271else generate="false"; 24272fi 24273if $generate ; then 24274{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5 24275$as_echo "$as_me: creating $pkgconfig_generate.in" >&6;} 24276cat > $pkgconfig_generate.in <<AXEOF 24277# generated by configure / remove this line to disable regeneration 24278prefix=@prefix@ 24279exec_prefix=@exec_prefix@ 24280bindir=@bindir@ 24281libdir=@libdir@ 24282datarootdir=@datarootdir@ 24283datadir=@datadir@ 24284sysconfdir=@sysconfdir@ 24285includedir=@includedir@ 24286package=@PACKAGE@ 24287suffix=@suffix@ 24288 24289Name: @PACKAGE_NAME@ 24290Description: @PACKAGE_DESCRIPTION@ 24291Version: @PACKAGE_VERSION@ 24292Requires: @PACKAGE_REQUIRES@ 24293Libs: -L\${libdir} @LDFLAGS@ @LIBS@ 24294Cflags: -I\${includedir} @CPPFLAGS@ 24295AXEOF 24296fi # DONE generate $pkgconfig_generate.in 24297{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5 24298$as_echo "$as_me: creating $pkgconfig_generate" >&6;} 24299cat >conftest.sed <<AXEOF 24300s|@prefix@|${pkgconfig_prefix}| 24301s|@exec_prefix@|${pkgconfig_execprefix}| 24302s|@bindir@|${pkgconfig_bindir}| 24303s|@libdir@|${pkgconfig_libdir}| 24304s|@datarootdir@|${pkgconfig_datarootdir}| 24305s|@datadir@|${pkgconfig_datadir}| 24306s|@sysconfdir@|${pkgconfig_sysconfdir}| 24307s|@includedir@|${pkgconfig_includedir}| 24308s|@suffix@|${pkgconfig_suffix}| 24309s|@PACKAGE@|${pkgconfig_package}| 24310s|@PACKAGE_NAME@|${pkgconfig_libname}| 24311s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}| 24312s|@PACKAGE_VERSION@|${pkgconfig_version}| 24313s|@PACKAGE_REQUIRES@|${pkgconfig_requires}| 24314s|@LIBS@|${pkgconfig_libs}| 24315s|@LDFLAGS@|${pkgconfig_ldflags}| 24316s|@CPPFLAGS@|${pkgconfig_cppflags}| 24317AXEOF 24318sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_generate 24319if test ! -s $pkgconfig_generate ; then 24320 as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5 24321fi ; rm conftest.sed # DONE generate $pkgconfig_generate 24322pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'` 24323{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5 24324$as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;} 24325cat >conftest.sed <<AXEOF 24326s|@prefix@|${pkgconfig_prefix}| 24327s|@exec_prefix@|${pkgconfig_execprefix}| 24328s|@bindir@|${pkgconfig_bindir}| 24329s|@libdir@|${pkgconfig_src_libdir}| 24330s|@datarootdir@|${pkgconfig_datarootdir}| 24331s|@datadir@|${pkgconfig_datadir}| 24332s|@sysconfdir@|${pkgconfig_sysconfdir}| 24333s|@includedir@|${pkgconfig_src_headers}| 24334s|@suffix@|${pkgconfig_suffix}| 24335s|@PACKAGE@|${pkgconfig_package}| 24336s|@PACKAGE_NAME@|${pkgconfig_libname}| 24337s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}| 24338s|@PACKAGE_VERSION@|${pkgconfig_version}| 24339s|@PACKAGE_REQUIRES@|${pkgconfig_requires}| 24340s|@LIBS@|${pkgconfig_libs}| 24341s|@LDFLAGS@|${pkgconfig_ldflags}| 24342s|@CPPFLAGS@|${pkgconfig_cppflags}| 24343AXEOF 24344sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled 24345if test ! -s $pkgconfig_uninstalled ; then 24346 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5 24347fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled 24348 pkgconfig_requires_add=`echo ${pkgconfig_requires}` 24349if test ".$pkgconfig_requires_add" != "." ; then 24350 pkgconfig_requires_add="pkg-config $pkgconfig_requires_add" 24351 else pkgconfig_requires_add=":" ; fi 24352pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'` 24353{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5 24354$as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;} 24355cat >conftest.sed <<AXEOF 24356s|@prefix@|\"${pkgconfig_prefix}\"| 24357s|@exec_prefix@|\"${pkgconfig_execprefix}\"| 24358s|@bindir@|\"${pkgconfig_bindir}\"| 24359s|@libdir@|\"${pkgconfig_src_libdir}\"| 24360s|@datarootdir@|\"${pkgconfig_datarootdir}\"| 24361s|@datadir@|\"${pkgconfig_datadir}\"| 24362s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"| 24363s|@includedir@|\"${pkgconfig_src_headers}\"| 24364s|@suffix@|\"${pkgconfig_suffix}\"| 24365s|@PACKAGE@|\"${pkgconfig_package}\"| 24366s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"| 24367s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"| 24368s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"| 24369s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"| 24370s|@LIBS@|\"${pkgconfig_libs}\"| 24371s|@LDFLAGS@|\"${pkgconfig_ldflags}\"| 24372s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"| 24373s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo > 24374s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of > 24375s>Version: *>\\;\\; --modversion|--version) echo > 24376s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add> 24377s>Libs: *>\\;\\; --libs) echo > 24378s>Cflags: *>\\;\\; --cflags) echo > 24379/--libs)/a\\ 24380 $pkgconfig_requires_add 24381/--cflags)/a\\ 24382 $pkgconfig_requires_add\\ 24383;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\ 24384;; --uninstalled) exit 0 \\ 24385;; *) ;; esac done 24386AXEOF 24387sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled 24388if test ! -s $pkgconfig_uninstalled ; then 24389 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5 24390fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled 24391 ;; 24392 "bound_test.sh":F) chmod +x bound_test.sh ;; 24393 "codegen_test.sh":F) chmod +x codegen_test.sh ;; 24394 "pip_test.sh":F) chmod +x pip_test.sh ;; 24395 "flow_test.sh":F) chmod +x flow_test.sh ;; 24396 "schedule_test.sh":F) chmod +x schedule_test.sh ;; 24397 24398 esac 24399done # for ac_tag 24400 24401 24402as_fn_exit 0 24403_ACEOF 24404ac_clean_files=$ac_clean_files_save 24405 24406test $ac_write_fail = 0 || 24407 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24408 24409 24410# configure is writing to config.log, and then calls config.status. 24411# config.status does its own redirection, appending to config.log. 24412# Unfortunately, on DOS this fails, as config.log is still kept open 24413# by configure, so config.status won't be able to write to it; its 24414# output is simply discarded. So we exec the FD to /dev/null, 24415# effectively closing config.log, so it can be properly (re)opened and 24416# appended to by config.status. When coming back to configure, we 24417# need to make the FD available again. 24418if test "$no_create" != yes; then 24419 ac_cs_success=: 24420 ac_config_status_args= 24421 test "$silent" = yes && 24422 ac_config_status_args="$ac_config_status_args --quiet" 24423 exec 5>/dev/null 24424 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24425 exec 5>>config.log 24426 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24427 # would make configure fail if this is the last instruction. 24428 $ac_cs_success || as_fn_exit 1 24429fi 24430 24431# 24432# CONFIG_SUBDIRS section. 24433# 24434if test "$no_recursion" != yes; then 24435 24436 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 24437 # so they do not pile up. 24438 ac_sub_configure_args= 24439 ac_prev= 24440 eval "set x $ac_configure_args" 24441 shift 24442 for ac_arg 24443 do 24444 if test -n "$ac_prev"; then 24445 ac_prev= 24446 continue 24447 fi 24448 case $ac_arg in 24449 -cache-file | --cache-file | --cache-fil | --cache-fi \ 24450 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 24451 ac_prev=cache_file ;; 24452 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 24453 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 24454 | --c=*) 24455 ;; 24456 --config-cache | -C) 24457 ;; 24458 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 24459 ac_prev=srcdir ;; 24460 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 24461 ;; 24462 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 24463 ac_prev=prefix ;; 24464 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 24465 ;; 24466 --disable-option-checking) 24467 ;; 24468 *) 24469 case $ac_arg in 24470 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 24471 esac 24472 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 24473 esac 24474 done 24475 24476 # Always prepend --prefix to ensure using the same prefix 24477 # in subdir configurations. 24478 ac_arg="--prefix=$prefix" 24479 case $ac_arg in 24480 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 24481 esac 24482 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 24483 24484 # Pass --silent 24485 if test "$silent" = yes; then 24486 ac_sub_configure_args="--silent $ac_sub_configure_args" 24487 fi 24488 24489 # Always prepend --disable-option-checking to silence warnings, since 24490 # different subdirs can have different --enable and --with options. 24491 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 24492 24493 ac_popdir=`pwd` 24494 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 24495 24496 # Do not complain, so a configure script can configure whichever 24497 # parts of a large source tree are present. 24498 test -d "$srcdir/$ac_dir" || continue 24499 24500 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 24501 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 24502 $as_echo "$ac_msg" >&6 24503 as_dir="$ac_dir"; as_fn_mkdir_p 24504 ac_builddir=. 24505 24506case "$ac_dir" in 24507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24508*) 24509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24510 # A ".." for each directory in $ac_dir_suffix. 24511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24512 case $ac_top_builddir_sub in 24513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24515 esac ;; 24516esac 24517ac_abs_top_builddir=$ac_pwd 24518ac_abs_builddir=$ac_pwd$ac_dir_suffix 24519# for backward compatibility: 24520ac_top_builddir=$ac_top_build_prefix 24521 24522case $srcdir in 24523 .) # We are building in place. 24524 ac_srcdir=. 24525 ac_top_srcdir=$ac_top_builddir_sub 24526 ac_abs_top_srcdir=$ac_pwd ;; 24527 [\\/]* | ?:[\\/]* ) # Absolute name. 24528 ac_srcdir=$srcdir$ac_dir_suffix; 24529 ac_top_srcdir=$srcdir 24530 ac_abs_top_srcdir=$srcdir ;; 24531 *) # Relative name. 24532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24533 ac_top_srcdir=$ac_top_build_prefix$srcdir 24534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24535esac 24536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24537 24538 24539 cd "$ac_dir" 24540 24541 # Check for guested configure; otherwise get Cygnus style configure. 24542 if test -f "$ac_srcdir/configure.gnu"; then 24543 ac_sub_configure=$ac_srcdir/configure.gnu 24544 elif test -f "$ac_srcdir/configure"; then 24545 ac_sub_configure=$ac_srcdir/configure 24546 elif test -f "$ac_srcdir/configure.in"; then 24547 # This should be Cygnus configure. 24548 ac_sub_configure=$ac_aux_dir/configure 24549 else 24550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 24551$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 24552 ac_sub_configure= 24553 fi 24554 24555 # The recursion is here. 24556 if test -n "$ac_sub_configure"; then 24557 # Make the cache file name correct relative to the subdirectory. 24558 case $cache_file in 24559 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 24560 *) # Relative name. 24561 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 24562 esac 24563 24564 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 24565$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 24566 # The eval makes quoting arguments work. 24567 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 24568 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 24569 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 24570 fi 24571 24572 cd "$ac_popdir" 24573 done 24574fi 24575if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24577$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24578fi 24579 24580