1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for isl 0.26. 4# 5# Report bugs to <isl-development@googlegroups.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 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'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: isl-development@googlegroups.com about your system, 280$0: including any error possibly output before this 281$0: message. Then install a modern shell, or manually run 282$0: the script under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306 307# as_fn_set_status STATUS 308# ----------------------- 309# Set $? to STATUS, without forking. 310as_fn_set_status () 311{ 312 return $1 313} # as_fn_set_status 314 315# as_fn_exit STATUS 316# ----------------- 317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 318as_fn_exit () 319{ 320 set +e 321 as_fn_set_status $1 322 exit $1 323} # as_fn_exit 324# as_fn_nop 325# --------- 326# Do nothing but, unlike ":", preserve the value of $?. 327as_fn_nop () 328{ 329 return $? 330} 331as_nop=as_fn_nop 332 333# as_fn_mkdir_p 334# ------------- 335# Create "$as_dir" as a directory, including parents if necessary. 336as_fn_mkdir_p () 337{ 338 339 case $as_dir in #( 340 -*) as_dir=./$as_dir;; 341 esac 342 test -d "$as_dir" || eval $as_mkdir_p || { 343 as_dirs= 344 while :; do 345 case $as_dir in #( 346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 347 *) as_qdir=$as_dir;; 348 esac 349 as_dirs="'$as_qdir' $as_dirs" 350 as_dir=`$as_dirname -- "$as_dir" || 351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 352 X"$as_dir" : 'X\(//\)[^/]' \| \ 353 X"$as_dir" : 'X\(//\)$' \| \ 354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 355printf "%s\n" X"$as_dir" | 356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)[^/].*/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\/\)$/{ 365 s//\1/ 366 q 367 } 368 /^X\(\/\).*/{ 369 s//\1/ 370 q 371 } 372 s/.*/./; q'` 373 test -d "$as_dir" && break 374 done 375 test -z "$as_dirs" || eval "mkdir $as_dirs" 376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 377 378 379} # as_fn_mkdir_p 380 381# as_fn_executable_p FILE 382# ----------------------- 383# Test if FILE is an executable regular file. 384as_fn_executable_p () 385{ 386 test -f "$1" && test -x "$1" 387} # as_fn_executable_p 388# as_fn_append VAR VALUE 389# ---------------------- 390# Append the text in VALUE to the end of the definition contained in VAR. Take 391# advantage of any shell optimizations that allow amortized linear growth over 392# repeated appends, instead of the typical quadratic growth present in naive 393# implementations. 394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 395then : 396 eval 'as_fn_append () 397 { 398 eval $1+=\$2 399 }' 400else $as_nop 401 as_fn_append () 402 { 403 eval $1=\$$1\$2 404 } 405fi # as_fn_append 406 407# as_fn_arith ARG... 408# ------------------ 409# Perform arithmetic evaluation on the ARGs, and store the result in the 410# global $as_val. Take advantage of shells that can avoid forks. The arguments 411# must be portable across $(()) and expr. 412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 413then : 414 eval 'as_fn_arith () 415 { 416 as_val=$(( $* )) 417 }' 418else $as_nop 419 as_fn_arith () 420 { 421 as_val=`expr "$@" || test $? -eq 1` 422 } 423fi # as_fn_arith 424 425# as_fn_nop 426# --------- 427# Do nothing but, unlike ":", preserve the value of $?. 428as_fn_nop () 429{ 430 return $? 431} 432as_nop=as_fn_nop 433 434# as_fn_error STATUS ERROR [LINENO LOG_FD] 435# ---------------------------------------- 436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 438# script with STATUS, using 1 if that was 0. 439as_fn_error () 440{ 441 as_status=$1; test $as_status -eq 0 && as_status=1 442 if test "$4"; then 443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 445 fi 446 printf "%s\n" "$as_me: error: $2" >&2 447 as_fn_exit $as_status 448} # as_fn_error 449 450if expr a : '\(a\)' >/dev/null 2>&1 && 451 test "X`expr 00001 : '.*\(...\)'`" = X001; then 452 as_expr=expr 453else 454 as_expr=false 455fi 456 457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 458 as_basename=basename 459else 460 as_basename=false 461fi 462 463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 464 as_dirname=dirname 465else 466 as_dirname=false 467fi 468 469as_me=`$as_basename -- "$0" || 470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 471 X"$0" : 'X\(//\)$' \| \ 472 X"$0" : 'X\(/\)' \| . 2>/dev/null || 473printf "%s\n" X/"$0" | 474 sed '/^.*\/\([^/][^/]*\)\/*$/{ 475 s//\1/ 476 q 477 } 478 /^X\/\(\/\/\)$/{ 479 s//\1/ 480 q 481 } 482 /^X\/\(\/\).*/{ 483 s//\1/ 484 q 485 } 486 s/.*/./; q'` 487 488# Avoid depending upon Character Ranges. 489as_cr_letters='abcdefghijklmnopqrstuvwxyz' 490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 491as_cr_Letters=$as_cr_letters$as_cr_LETTERS 492as_cr_digits='0123456789' 493as_cr_alnum=$as_cr_Letters$as_cr_digits 494 495 496 as_lineno_1=$LINENO as_lineno_1a=$LINENO 497 as_lineno_2=$LINENO as_lineno_2a=$LINENO 498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 501 sed -n ' 502 p 503 /[$]LINENO/= 504 ' <$as_myself | 505 sed ' 506 s/[$]LINENO.*/&-/ 507 t lineno 508 b 509 :lineno 510 N 511 :loop 512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 513 t loop 514 s/-\n.*// 515 ' >$as_me.lineno && 516 chmod +x "$as_me.lineno" || 517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 518 519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 520 # already done that, so ensure we don't try to do so again and fall 521 # in an infinite loop. This has already happened in practice. 522 _as_can_reexec=no; export _as_can_reexec 523 # Don't try to exec as it changes $[0], causing all sort of problems 524 # (the dirname of $[0] is not the place where we might find the 525 # original and so on. Autoconf is especially sensitive to this). 526 . "./$as_me.lineno" 527 # Exit status is that of the last command. 528 exit 529} 530 531 532# Determine whether it's possible to make 'echo' print without a newline. 533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 534# for compatibility with existing Makefiles. 535ECHO_C= ECHO_N= ECHO_T= 536case `echo -n x` in #((((( 537-n*) 538 case `echo 'xy\c'` in 539 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 540 xy) ECHO_C='\c';; 541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 542 ECHO_T=' ';; 543 esac;; 544*) 545 ECHO_N='-n';; 546esac 547 548# For backward compatibility with old third-party macros, we provide 549# the shell variables $as_echo and $as_echo_n. New code should use 550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 551as_echo='printf %s\n' 552as_echo_n='printf %s' 553 554 555rm -f conf$$ conf$$.exe conf$$.file 556if test -d conf$$.dir; then 557 rm -f conf$$.dir/conf$$.file 558else 559 rm -f conf$$.dir 560 mkdir conf$$.dir 2>/dev/null 561fi 562if (echo >conf$$.file) 2>/dev/null; then 563 if ln -s conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s='ln -s' 565 # ... but there are two gotchas: 566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 568 # In both cases, we have to default to `cp -pR'. 569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 570 as_ln_s='cp -pR' 571 elif ln conf$$.file conf$$ 2>/dev/null; then 572 as_ln_s=ln 573 else 574 as_ln_s='cp -pR' 575 fi 576else 577 as_ln_s='cp -pR' 578fi 579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 580rmdir conf$$.dir 2>/dev/null 581 582if mkdir -p . 2>/dev/null; then 583 as_mkdir_p='mkdir -p "$as_dir"' 584else 585 test -d ./-p && rmdir ./-p 586 as_mkdir_p=false 587fi 588 589as_test_x='test -x' 590as_executable_p=as_fn_executable_p 591 592# Sed expression to map a string onto a valid CPP name. 593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 594 595# Sed expression to map a string onto a valid variable name. 596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 597 598SHELL=${CONFIG_SHELL-/bin/sh} 599 600 601test -n "$DJDIR" || exec 7<&0 </dev/null 602exec 6>&1 603 604# Name of the host. 605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 606# so uname gets run too. 607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 608 609# 610# Initializations. 611# 612ac_default_prefix=/usr/local 613ac_clean_files= 614ac_config_libobj_dir=. 615LIBOBJS= 616cross_compiling=no 617subdirs= 618MFLAGS= 619MAKEFLAGS= 620 621# Identity of this package. 622PACKAGE_NAME='isl' 623PACKAGE_TARNAME='isl' 624PACKAGE_VERSION='0.26' 625PACKAGE_STRING='isl 0.26' 626PACKAGE_BUGREPORT='isl-development@googlegroups.com' 627PACKAGE_URL='' 628 629# Factoring default headers for most tests. 630ac_includes_default="\ 631#include <stddef.h> 632#ifdef HAVE_STDIO_H 633# include <stdio.h> 634#endif 635#ifdef HAVE_STDLIB_H 636# include <stdlib.h> 637#endif 638#ifdef HAVE_STRING_H 639# include <string.h> 640#endif 641#ifdef HAVE_INTTYPES_H 642# include <inttypes.h> 643#endif 644#ifdef HAVE_STDINT_H 645# include <stdint.h> 646#endif 647#ifdef HAVE_STRINGS_H 648# include <strings.h> 649#endif 650#ifdef HAVE_SYS_TYPES_H 651# include <sys/types.h> 652#endif 653#ifdef HAVE_SYS_STAT_H 654# include <sys/stat.h> 655#endif 656#ifdef HAVE_UNISTD_H 657# include <unistd.h> 658#endif" 659 660ac_header_c_list= 661enable_option_checking=no 662ac_subst_vars='am__EXEEXT_FALSE 663am__EXEEXT_TRUE 664LTLIBOBJS 665LIBOBJS 666subdirs 667GIT_HEAD_VERSION 668GIT_HEAD 669GIT_HEAD_ID 670pkgconfig_libfile 671pkgconfig_libdir 672WARNING_FLAGS 673HAVE_CPP_ISL_H_FALSE 674HAVE_CPP_ISL_H_TRUE 675HAVE_CLANG_FALSE 676HAVE_CLANG_TRUE 677SMALL_INT_OPT_FALSE 678SMALL_INT_OPT_TRUE 679HAVE_CXX17_FALSE 680HAVE_CXX17_TRUE 681HAVE_CXX11_FALSE 682HAVE_CXX11_TRUE 683GMP_FOR_MP_FALSE 684GMP_FOR_MP_TRUE 685IMATH_FOR_MP_FALSE 686IMATH_FOR_MP_TRUE 687NEED_GET_MEMORY_FUNCTIONS_FALSE 688NEED_GET_MEMORY_FUNCTIONS_TRUE 689MP_LIBS 690MP_LDFLAGS 691MP_CFLAGS 692MP_CPPFLAGS 693GENERATE_DOC_FALSE 694GENERATE_DOC_TRUE 695OS_SRCDIR 696POD2HTML 697PDFLATEX 698PERL 699CYGPATH 700HAVE_PYTHON_FALSE 701HAVE_PYTHON_TRUE 702pkgpyexecdir 703pyexecdir 704pkgpythondir 705pythondir 706PYTHON_EXEC_PREFIX 707PYTHON_PREFIX 708PYTHON_PLATFORM 709PYTHON_VERSION 710PYTHON 711CXXCPP 712LT_SYS_LIBRARY_PATH 713OTOOL64 714OTOOL 715LIPO 716NMEDIT 717DSYMUTIL 718MANIFEST_TOOL 719RANLIB 720ac_ct_AR 721AR 722DLLTOOL 723OBJDUMP 724LN_S 725NM 726ac_ct_DUMPBIN 727DUMPBIN 728LD 729FGREP 730EGREP 731LIBTOOL 732HAVE_CXX17 733HAVE_CXX11 734GREP 735PRTDIAG 736SED 737host_os 738host_vendor 739host_cpu 740host 741LDFLAGS_FOR_BUILD 742CPPFLAGS_FOR_BUILD 743CFLAGS_FOR_BUILD 744CCDEPMODE_FOR_BUILD 745BUILD_OBJEXT 746BUILD_EXEEXT 747CPP_FOR_BUILD 748ac_ct_CC_FOR_BUILD 749CC_FOR_BUILD 750build_os 751build_vendor 752build_cpu 753build 754CPP 755am__fastdepCXX_FALSE 756am__fastdepCXX_TRUE 757CXXDEPMODE 758ac_ct_CXX 759CXXFLAGS 760CXX 761am__fastdepCC_FALSE 762am__fastdepCC_TRUE 763CCDEPMODE 764am__nodep 765AMDEPBACKSLASH 766AMDEP_FALSE 767AMDEP_TRUE 768am__include 769DEPDIR 770OBJEXT 771EXEEXT 772ac_ct_CC 773CPPFLAGS 774LDFLAGS 775CFLAGS 776CC 777versioninfo 778AM_BACKSLASH 779AM_DEFAULT_VERBOSITY 780AM_DEFAULT_V 781AM_V 782CSCOPE 783ETAGS 784CTAGS 785am__untar 786am__tar 787AMTAR 788am__leading_dot 789SET_MAKE 790AWK 791mkdir_p 792MKDIR_P 793INSTALL_STRIP_PROGRAM 794STRIP 795install_sh 796MAKEINFO 797AUTOHEADER 798AUTOMAKE 799AUTOCONF 800ACLOCAL 801VERSION 802PACKAGE 803CYGPATH_W 804am__isrc 805INSTALL_DATA 806INSTALL_SCRIPT 807INSTALL_PROGRAM 808target_alias 809host_alias 810build_alias 811LIBS 812ECHO_T 813ECHO_N 814ECHO_C 815DEFS 816mandir 817localedir 818libdir 819psdir 820pdfdir 821dvidir 822htmldir 823infodir 824docdir 825oldincludedir 826includedir 827runstatedir 828localstatedir 829sharedstatedir 830sysconfdir 831datadir 832datarootdir 833libexecdir 834sbindir 835bindir 836program_transform_name 837prefix 838exec_prefix 839PACKAGE_URL 840PACKAGE_BUGREPORT 841PACKAGE_STRING 842PACKAGE_VERSION 843PACKAGE_TARNAME 844PACKAGE_NAME 845PATH_SEPARATOR 846SHELL 847am__quote' 848ac_subst_files='' 849ac_user_opts=' 850enable_option_checking 851enable_silent_rules 852enable_dependency_tracking 853enable_portable_binary 854with_gcc_arch 855enable_shared 856enable_static 857with_pic 858enable_fast_install 859with_aix_soname 860with_gnu_ld 861with_sysroot 862enable_libtool_lock 863with_python_sys_prefix 864with_python_prefix 865with_python_exec_prefix 866with_int 867with_gmp 868with_gmp_prefix 869with_gmp_exec_prefix 870with_gmp_builddir 871with_clang 872with_clang_prefix 873with_clang_exec_prefix 874' 875 ac_precious_vars='build_alias 876host_alias 877target_alias 878CC 879CFLAGS 880LDFLAGS 881LIBS 882CPPFLAGS 883CXX 884CXXFLAGS 885CCC 886CPP 887LT_SYS_LIBRARY_PATH 888CXXCPP 889PYTHON' 890ac_subdirs_all='interface' 891 892# Initialize some variables set by options. 893ac_init_help= 894ac_init_version=false 895ac_unrecognized_opts= 896ac_unrecognized_sep= 897# The variables have the same names as the options, with 898# dashes changed to underlines. 899cache_file=/dev/null 900exec_prefix=NONE 901no_create= 902no_recursion= 903prefix=NONE 904program_prefix=NONE 905program_suffix=NONE 906program_transform_name=s,x,x, 907silent= 908site= 909srcdir= 910verbose= 911x_includes=NONE 912x_libraries=NONE 913 914# Installation directory options. 915# These are left unexpanded so users can "make install exec_prefix=/foo" 916# and all the variables that are supposed to be based on exec_prefix 917# by default will actually change. 918# Use braces instead of parens because sh, perl, etc. also accept them. 919# (The list follows the same order as the GNU Coding Standards.) 920bindir='${exec_prefix}/bin' 921sbindir='${exec_prefix}/sbin' 922libexecdir='${exec_prefix}/libexec' 923datarootdir='${prefix}/share' 924datadir='${datarootdir}' 925sysconfdir='${prefix}/etc' 926sharedstatedir='${prefix}/com' 927localstatedir='${prefix}/var' 928runstatedir='${localstatedir}/run' 929includedir='${prefix}/include' 930oldincludedir='/usr/include' 931docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 932infodir='${datarootdir}/info' 933htmldir='${docdir}' 934dvidir='${docdir}' 935pdfdir='${docdir}' 936psdir='${docdir}' 937libdir='${exec_prefix}/lib' 938localedir='${datarootdir}/locale' 939mandir='${datarootdir}/man' 940 941ac_prev= 942ac_dashdash= 943for ac_option 944do 945 # If the previous option needs an argument, assign it. 946 if test -n "$ac_prev"; then 947 eval $ac_prev=\$ac_option 948 ac_prev= 949 continue 950 fi 951 952 case $ac_option in 953 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 954 *=) ac_optarg= ;; 955 *) ac_optarg=yes ;; 956 esac 957 958 case $ac_dashdash$ac_option in 959 --) 960 ac_dashdash=yes ;; 961 962 -bindir | --bindir | --bindi | --bind | --bin | --bi) 963 ac_prev=bindir ;; 964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 965 bindir=$ac_optarg ;; 966 967 -build | --build | --buil | --bui | --bu) 968 ac_prev=build_alias ;; 969 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 970 build_alias=$ac_optarg ;; 971 972 -cache-file | --cache-file | --cache-fil | --cache-fi \ 973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 974 ac_prev=cache_file ;; 975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 977 cache_file=$ac_optarg ;; 978 979 --config-cache | -C) 980 cache_file=config.cache ;; 981 982 -datadir | --datadir | --datadi | --datad) 983 ac_prev=datadir ;; 984 -datadir=* | --datadir=* | --datadi=* | --datad=*) 985 datadir=$ac_optarg ;; 986 987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 988 | --dataroo | --dataro | --datar) 989 ac_prev=datarootdir ;; 990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 992 datarootdir=$ac_optarg ;; 993 994 -disable-* | --disable-*) 995 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 996 # Reject names that are not valid shell variable names. 997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 998 as_fn_error $? "invalid feature name: \`$ac_useropt'" 999 ac_useropt_orig=$ac_useropt 1000 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1001 case $ac_user_opts in 1002 *" 1003"enable_$ac_useropt" 1004"*) ;; 1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1006 ac_unrecognized_sep=', ';; 1007 esac 1008 eval enable_$ac_useropt=no ;; 1009 1010 -docdir | --docdir | --docdi | --doc | --do) 1011 ac_prev=docdir ;; 1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1013 docdir=$ac_optarg ;; 1014 1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1016 ac_prev=dvidir ;; 1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1018 dvidir=$ac_optarg ;; 1019 1020 -enable-* | --enable-*) 1021 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1022 # Reject names that are not valid shell variable names. 1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1024 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1025 ac_useropt_orig=$ac_useropt 1026 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1027 case $ac_user_opts in 1028 *" 1029"enable_$ac_useropt" 1030"*) ;; 1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1032 ac_unrecognized_sep=', ';; 1033 esac 1034 eval enable_$ac_useropt=\$ac_optarg ;; 1035 1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1038 | --exec | --exe | --ex) 1039 ac_prev=exec_prefix ;; 1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1042 | --exec=* | --exe=* | --ex=*) 1043 exec_prefix=$ac_optarg ;; 1044 1045 -gas | --gas | --ga | --g) 1046 # Obsolete; use --with-gas. 1047 with_gas=yes ;; 1048 1049 -help | --help | --hel | --he | -h) 1050 ac_init_help=long ;; 1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1052 ac_init_help=recursive ;; 1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1054 ac_init_help=short ;; 1055 1056 -host | --host | --hos | --ho) 1057 ac_prev=host_alias ;; 1058 -host=* | --host=* | --hos=* | --ho=*) 1059 host_alias=$ac_optarg ;; 1060 1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1062 ac_prev=htmldir ;; 1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1064 | --ht=*) 1065 htmldir=$ac_optarg ;; 1066 1067 -includedir | --includedir | --includedi | --included | --include \ 1068 | --includ | --inclu | --incl | --inc) 1069 ac_prev=includedir ;; 1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1071 | --includ=* | --inclu=* | --incl=* | --inc=*) 1072 includedir=$ac_optarg ;; 1073 1074 -infodir | --infodir | --infodi | --infod | --info | --inf) 1075 ac_prev=infodir ;; 1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1077 infodir=$ac_optarg ;; 1078 1079 -libdir | --libdir | --libdi | --libd) 1080 ac_prev=libdir ;; 1081 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1082 libdir=$ac_optarg ;; 1083 1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1085 | --libexe | --libex | --libe) 1086 ac_prev=libexecdir ;; 1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1088 | --libexe=* | --libex=* | --libe=*) 1089 libexecdir=$ac_optarg ;; 1090 1091 -localedir | --localedir | --localedi | --localed | --locale) 1092 ac_prev=localedir ;; 1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1094 localedir=$ac_optarg ;; 1095 1096 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1097 | --localstate | --localstat | --localsta | --localst | --locals) 1098 ac_prev=localstatedir ;; 1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1101 localstatedir=$ac_optarg ;; 1102 1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1104 ac_prev=mandir ;; 1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1106 mandir=$ac_optarg ;; 1107 1108 -nfp | --nfp | --nf) 1109 # Obsolete; use --without-fp. 1110 with_fp=no ;; 1111 1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1113 | --no-cr | --no-c | -n) 1114 no_create=yes ;; 1115 1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1118 no_recursion=yes ;; 1119 1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1122 | --oldin | --oldi | --old | --ol | --o) 1123 ac_prev=oldincludedir ;; 1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1127 oldincludedir=$ac_optarg ;; 1128 1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1130 ac_prev=prefix ;; 1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1132 prefix=$ac_optarg ;; 1133 1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1135 | --program-pre | --program-pr | --program-p) 1136 ac_prev=program_prefix ;; 1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1139 program_prefix=$ac_optarg ;; 1140 1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1142 | --program-suf | --program-su | --program-s) 1143 ac_prev=program_suffix ;; 1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1146 program_suffix=$ac_optarg ;; 1147 1148 -program-transform-name | --program-transform-name \ 1149 | --program-transform-nam | --program-transform-na \ 1150 | --program-transform-n | --program-transform- \ 1151 | --program-transform | --program-transfor \ 1152 | --program-transfo | --program-transf \ 1153 | --program-trans | --program-tran \ 1154 | --progr-tra | --program-tr | --program-t) 1155 ac_prev=program_transform_name ;; 1156 -program-transform-name=* | --program-transform-name=* \ 1157 | --program-transform-nam=* | --program-transform-na=* \ 1158 | --program-transform-n=* | --program-transform-=* \ 1159 | --program-transform=* | --program-transfor=* \ 1160 | --program-transfo=* | --program-transf=* \ 1161 | --program-trans=* | --program-tran=* \ 1162 | --progr-tra=* | --program-tr=* | --program-t=*) 1163 program_transform_name=$ac_optarg ;; 1164 1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1166 ac_prev=pdfdir ;; 1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1168 pdfdir=$ac_optarg ;; 1169 1170 -psdir | --psdir | --psdi | --psd | --ps) 1171 ac_prev=psdir ;; 1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1173 psdir=$ac_optarg ;; 1174 1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1176 | -silent | --silent | --silen | --sile | --sil) 1177 silent=yes ;; 1178 1179 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1180 | --runstate | --runstat | --runsta | --runst | --runs \ 1181 | --run | --ru | --r) 1182 ac_prev=runstatedir ;; 1183 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1184 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1185 | --run=* | --ru=* | --r=*) 1186 runstatedir=$ac_optarg ;; 1187 1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1189 ac_prev=sbindir ;; 1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1191 | --sbi=* | --sb=*) 1192 sbindir=$ac_optarg ;; 1193 1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1196 | --sharedst | --shareds | --shared | --share | --shar \ 1197 | --sha | --sh) 1198 ac_prev=sharedstatedir ;; 1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1202 | --sha=* | --sh=*) 1203 sharedstatedir=$ac_optarg ;; 1204 1205 -site | --site | --sit) 1206 ac_prev=site ;; 1207 -site=* | --site=* | --sit=*) 1208 site=$ac_optarg ;; 1209 1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1211 ac_prev=srcdir ;; 1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1213 srcdir=$ac_optarg ;; 1214 1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1216 | --syscon | --sysco | --sysc | --sys | --sy) 1217 ac_prev=sysconfdir ;; 1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1220 sysconfdir=$ac_optarg ;; 1221 1222 -target | --target | --targe | --targ | --tar | --ta | --t) 1223 ac_prev=target_alias ;; 1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1225 target_alias=$ac_optarg ;; 1226 1227 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1228 verbose=yes ;; 1229 1230 -version | --version | --versio | --versi | --vers | -V) 1231 ac_init_version=: ;; 1232 1233 -with-* | --with-*) 1234 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1235 # Reject names that are not valid shell variable names. 1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1237 as_fn_error $? "invalid package name: \`$ac_useropt'" 1238 ac_useropt_orig=$ac_useropt 1239 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1240 case $ac_user_opts in 1241 *" 1242"with_$ac_useropt" 1243"*) ;; 1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1245 ac_unrecognized_sep=', ';; 1246 esac 1247 eval with_$ac_useropt=\$ac_optarg ;; 1248 1249 -without-* | --without-*) 1250 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1251 # Reject names that are not valid shell variable names. 1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1253 as_fn_error $? "invalid package name: \`$ac_useropt'" 1254 ac_useropt_orig=$ac_useropt 1255 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1256 case $ac_user_opts in 1257 *" 1258"with_$ac_useropt" 1259"*) ;; 1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1261 ac_unrecognized_sep=', ';; 1262 esac 1263 eval with_$ac_useropt=no ;; 1264 1265 --x) 1266 # Obsolete; use --with-x. 1267 with_x=yes ;; 1268 1269 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1270 | --x-incl | --x-inc | --x-in | --x-i) 1271 ac_prev=x_includes ;; 1272 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1273 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1274 x_includes=$ac_optarg ;; 1275 1276 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1277 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1278 ac_prev=x_libraries ;; 1279 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1280 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1281 x_libraries=$ac_optarg ;; 1282 1283 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1284Try \`$0 --help' for more information" 1285 ;; 1286 1287 *=*) 1288 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1289 # Reject names that are not valid shell variable names. 1290 case $ac_envvar in #( 1291 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1292 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1293 esac 1294 eval $ac_envvar=\$ac_optarg 1295 export $ac_envvar ;; 1296 1297 *) 1298 # FIXME: should be removed in autoconf 3.0. 1299 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1301 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1302 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1303 ;; 1304 1305 esac 1306done 1307 1308if test -n "$ac_prev"; then 1309 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1310 as_fn_error $? "missing argument to $ac_option" 1311fi 1312 1313if test -n "$ac_unrecognized_opts"; then 1314 case $enable_option_checking in 1315 no) ;; 1316 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1317 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1318 esac 1319fi 1320 1321# Check all directory arguments for consistency. 1322for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1323 datadir sysconfdir sharedstatedir localstatedir includedir \ 1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1325 libdir localedir mandir runstatedir 1326do 1327 eval ac_val=\$$ac_var 1328 # Remove trailing slashes. 1329 case $ac_val in 1330 */ ) 1331 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1332 eval $ac_var=\$ac_val;; 1333 esac 1334 # Be sure to have absolute directory names. 1335 case $ac_val in 1336 [\\/$]* | ?:[\\/]* ) continue;; 1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1338 esac 1339 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1340done 1341 1342# There might be people who depend on the old broken behavior: `$host' 1343# used to hold the argument of --host etc. 1344# FIXME: To remove some day. 1345build=$build_alias 1346host=$host_alias 1347target=$target_alias 1348 1349# FIXME: To remove some day. 1350if test "x$host_alias" != x; then 1351 if test "x$build_alias" = x; then 1352 cross_compiling=maybe 1353 elif test "x$build_alias" != "x$host_alias"; then 1354 cross_compiling=yes 1355 fi 1356fi 1357 1358ac_tool_prefix= 1359test -n "$host_alias" && ac_tool_prefix=$host_alias- 1360 1361test "$silent" = yes && exec 6>/dev/null 1362 1363 1364ac_pwd=`pwd` && test -n "$ac_pwd" && 1365ac_ls_di=`ls -di .` && 1366ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1367 as_fn_error $? "working directory cannot be determined" 1368test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1369 as_fn_error $? "pwd does not report name of working directory" 1370 1371 1372# Find the source files, if location was not specified. 1373if test -z "$srcdir"; then 1374 ac_srcdir_defaulted=yes 1375 # Try the directory containing this script, then the parent directory. 1376 ac_confdir=`$as_dirname -- "$as_myself" || 1377$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1378 X"$as_myself" : 'X\(//\)[^/]' \| \ 1379 X"$as_myself" : 'X\(//\)$' \| \ 1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1381printf "%s\n" X"$as_myself" | 1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1383 s//\1/ 1384 q 1385 } 1386 /^X\(\/\/\)[^/].*/{ 1387 s//\1/ 1388 q 1389 } 1390 /^X\(\/\/\)$/{ 1391 s//\1/ 1392 q 1393 } 1394 /^X\(\/\).*/{ 1395 s//\1/ 1396 q 1397 } 1398 s/.*/./; q'` 1399 srcdir=$ac_confdir 1400 if test ! -r "$srcdir/$ac_unique_file"; then 1401 srcdir=.. 1402 fi 1403else 1404 ac_srcdir_defaulted=no 1405fi 1406if test ! -r "$srcdir/$ac_unique_file"; then 1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1408 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1409fi 1410ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1411ac_abs_confdir=`( 1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1413 pwd)` 1414# When building in place, set srcdir=. 1415if test "$ac_abs_confdir" = "$ac_pwd"; then 1416 srcdir=. 1417fi 1418# Remove unnecessary trailing slashes from srcdir. 1419# Double slashes in file names in object file debugging info 1420# mess up M-x gdb in Emacs. 1421case $srcdir in 1422*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1423esac 1424for ac_var in $ac_precious_vars; do 1425 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1426 eval ac_env_${ac_var}_value=\$${ac_var} 1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1428 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1429done 1430 1431# 1432# Report the --help message. 1433# 1434if test "$ac_init_help" = "long"; then 1435 # Omit some internal or obsolete options to make the list less imposing. 1436 # This message is too long to be a string in the A/UX 3.1 sh. 1437 cat <<_ACEOF 1438\`configure' configures isl 0.26 to adapt to many kinds of systems. 1439 1440Usage: $0 [OPTION]... [VAR=VALUE]... 1441 1442To assign environment variables (e.g., CC, CFLAGS...), specify them as 1443VAR=VALUE. See below for descriptions of some of the useful variables. 1444 1445Defaults for the options are specified in brackets. 1446 1447Configuration: 1448 -h, --help display this help and exit 1449 --help=short display options specific to this package 1450 --help=recursive display the short help of all the included packages 1451 -V, --version display version information and exit 1452 -q, --quiet, --silent do not print \`checking ...' messages 1453 --cache-file=FILE cache test results in FILE [disabled] 1454 -C, --config-cache alias for \`--cache-file=config.cache' 1455 -n, --no-create do not create output files 1456 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1457 1458Installation directories: 1459 --prefix=PREFIX install architecture-independent files in PREFIX 1460 [$ac_default_prefix] 1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1462 [PREFIX] 1463 1464By default, \`make install' will install all the files in 1465\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1466an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1467for instance \`--prefix=\$HOME'. 1468 1469For better control, use the options below. 1470 1471Fine tuning of the installation directories: 1472 --bindir=DIR user executables [EPREFIX/bin] 1473 --sbindir=DIR system admin executables [EPREFIX/sbin] 1474 --libexecdir=DIR program executables [EPREFIX/libexec] 1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1478 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1479 --libdir=DIR object code libraries [EPREFIX/lib] 1480 --includedir=DIR C header files [PREFIX/include] 1481 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1484 --infodir=DIR info documentation [DATAROOTDIR/info] 1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1486 --mandir=DIR man documentation [DATAROOTDIR/man] 1487 --docdir=DIR documentation root [DATAROOTDIR/doc/isl] 1488 --htmldir=DIR html documentation [DOCDIR] 1489 --dvidir=DIR dvi documentation [DOCDIR] 1490 --pdfdir=DIR pdf documentation [DOCDIR] 1491 --psdir=DIR ps documentation [DOCDIR] 1492_ACEOF 1493 1494 cat <<\_ACEOF 1495 1496Program names: 1497 --program-prefix=PREFIX prepend PREFIX to installed program names 1498 --program-suffix=SUFFIX append SUFFIX to installed program names 1499 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1500 1501System types: 1502 --build=BUILD configure for building on BUILD [guessed] 1503 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1504_ACEOF 1505fi 1506 1507if test -n "$ac_init_help"; then 1508 case $ac_init_help in 1509 short | recursive ) echo "Configuration of isl 0.26:";; 1510 esac 1511 cat <<\_ACEOF 1512 1513Optional Features: 1514 --disable-option-checking ignore unrecognized --enable/--with options 1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1517 --enable-silent-rules less verbose build output (undo: "make V=1") 1518 --disable-silent-rules verbose build output (undo: "make V=0") 1519 --enable-dependency-tracking 1520 do not reject slow dependency extractors 1521 --disable-dependency-tracking 1522 speeds up one-time build 1523 --enable-portable-binary 1524 disable compiler optimizations that would produce 1525 unportable binaries 1526 --enable-shared[=PKGS] build shared libraries [default=yes] 1527 --enable-static[=PKGS] build static libraries [default=yes] 1528 --enable-fast-install[=PKGS] 1529 optimize for fast installation [default=yes] 1530 --disable-libtool-lock avoid locking (might break parallel builds) 1531 1532Optional Packages: 1533 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1534 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1535 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune, 1536 instead of guessing 1537 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1538 both] 1539 --with-aix-soname=aix|svr4|both 1540 shared library versioning (aka "SONAME") variant to 1541 provide on AIX, [default=aix]. 1542 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1543 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1544 compiler's sysroot if not specified). 1545 --with-python-sys-prefix 1546 use Python's sys.prefix and sys.exec_prefix values 1547 --with-python_prefix override the default PYTHON_PREFIX 1548 --with-python_exec_prefix 1549 override the default PYTHON_EXEC_PREFIX 1550 --with-int=gmp|imath|imath-32 1551 Which package to use to represent multi-precision 1552 integers [default=gmp] 1553 --with-gmp=system|build Which gmp to use [default=system] 1554 --with-gmp-prefix=DIR Prefix of gmp installation 1555 --with-gmp-exec-prefix=DIR 1556 Exec prefix of gmp installation 1557 --with-gmp-builddir=DIR Location of gmp builddir 1558 --with-clang=system|no Which clang to use [default=no] 1559 --with-clang-prefix=DIR Prefix of clang installation 1560 --with-clang-exec-prefix=DIR 1561 Exec prefix of clang installation 1562 1563Some influential environment variables: 1564 CC C compiler command 1565 CFLAGS C compiler flags 1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1567 nonstandard directory <lib dir> 1568 LIBS libraries to pass to the linker, e.g. -l<library> 1569 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1570 you have headers in a nonstandard directory <include dir> 1571 CXX C++ compiler command 1572 CXXFLAGS C++ compiler flags 1573 CPP C preprocessor 1574 LT_SYS_LIBRARY_PATH 1575 User-defined run-time library search path. 1576 CXXCPP C++ preprocessor 1577 PYTHON the Python interpreter 1578 1579Use these variables to override the choices made by `configure' or to help 1580it to find libraries and programs with nonstandard names/locations. 1581 1582Report bugs to <isl-development@googlegroups.com>. 1583_ACEOF 1584ac_status=$? 1585fi 1586 1587if test "$ac_init_help" = "recursive"; then 1588 # If there are subdirs, report their specific --help. 1589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1590 test -d "$ac_dir" || 1591 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1592 continue 1593 ac_builddir=. 1594 1595case "$ac_dir" in 1596.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1597*) 1598 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1599 # A ".." for each directory in $ac_dir_suffix. 1600 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1601 case $ac_top_builddir_sub in 1602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1604 esac ;; 1605esac 1606ac_abs_top_builddir=$ac_pwd 1607ac_abs_builddir=$ac_pwd$ac_dir_suffix 1608# for backward compatibility: 1609ac_top_builddir=$ac_top_build_prefix 1610 1611case $srcdir in 1612 .) # We are building in place. 1613 ac_srcdir=. 1614 ac_top_srcdir=$ac_top_builddir_sub 1615 ac_abs_top_srcdir=$ac_pwd ;; 1616 [\\/]* | ?:[\\/]* ) # Absolute name. 1617 ac_srcdir=$srcdir$ac_dir_suffix; 1618 ac_top_srcdir=$srcdir 1619 ac_abs_top_srcdir=$srcdir ;; 1620 *) # Relative name. 1621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1622 ac_top_srcdir=$ac_top_build_prefix$srcdir 1623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1624esac 1625ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1626 1627 cd "$ac_dir" || { ac_status=$?; continue; } 1628 # Check for configure.gnu first; this name is used for a wrapper for 1629 # Metaconfig's "Configure" on case-insensitive file systems. 1630 if test -f "$ac_srcdir/configure.gnu"; then 1631 echo && 1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1633 elif test -f "$ac_srcdir/configure"; then 1634 echo && 1635 $SHELL "$ac_srcdir/configure" --help=recursive 1636 else 1637 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1638 fi || ac_status=$? 1639 cd "$ac_pwd" || { ac_status=$?; break; } 1640 done 1641fi 1642 1643test -n "$ac_init_help" && exit $ac_status 1644if $ac_init_version; then 1645 cat <<\_ACEOF 1646isl configure 0.26 1647generated by GNU Autoconf 2.71 1648 1649Copyright (C) 2021 Free Software Foundation, Inc. 1650This configure script is free software; the Free Software Foundation 1651gives unlimited permission to copy, distribute and modify it. 1652_ACEOF 1653 exit 1654fi 1655 1656## ------------------------ ## 1657## Autoconf initialization. ## 1658## ------------------------ ## 1659 1660# ac_fn_c_try_compile LINENO 1661# -------------------------- 1662# Try to compile conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_compile () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext conftest.beam 1667 if { { ac_try="$ac_compile" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673printf "%s\n" "$ac_try_echo"; } >&5 1674 (eval "$ac_compile") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest.$ac_objext 1686then : 1687 ac_retval=0 1688else $as_nop 1689 printf "%s\n" "$as_me: failed program was:" >&5 1690sed 's/^/| /' conftest.$ac_ext >&5 1691 1692 ac_retval=1 1693fi 1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1695 as_fn_set_status $ac_retval 1696 1697} # ac_fn_c_try_compile 1698 1699# ac_fn_cxx_try_compile LINENO 1700# ---------------------------- 1701# Try to compile conftest.$ac_ext, and return whether this succeeded. 1702ac_fn_cxx_try_compile () 1703{ 1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1705 rm -f conftest.$ac_objext conftest.beam 1706 if { { ac_try="$ac_compile" 1707case "(($ac_try" in 1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1709 *) ac_try_echo=$ac_try;; 1710esac 1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1712printf "%s\n" "$ac_try_echo"; } >&5 1713 (eval "$ac_compile") 2>conftest.err 1714 ac_status=$? 1715 if test -s conftest.err; then 1716 grep -v '^ *+' conftest.err >conftest.er1 1717 cat conftest.er1 >&5 1718 mv -f conftest.er1 conftest.err 1719 fi 1720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1721 test $ac_status = 0; } && { 1722 test -z "$ac_cxx_werror_flag" || 1723 test ! -s conftest.err 1724 } && test -s conftest.$ac_objext 1725then : 1726 ac_retval=0 1727else $as_nop 1728 printf "%s\n" "$as_me: failed program was:" >&5 1729sed 's/^/| /' conftest.$ac_ext >&5 1730 1731 ac_retval=1 1732fi 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1734 as_fn_set_status $ac_retval 1735 1736} # ac_fn_cxx_try_compile 1737 1738# ac_fn_c_try_cpp LINENO 1739# ---------------------- 1740# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1741ac_fn_c_try_cpp () 1742{ 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 if { { ac_try="$ac_cpp conftest.$ac_ext" 1745case "(($ac_try" in 1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1747 *) ac_try_echo=$ac_try;; 1748esac 1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1750printf "%s\n" "$ac_try_echo"; } >&5 1751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1752 ac_status=$? 1753 if test -s conftest.err; then 1754 grep -v '^ *+' conftest.err >conftest.er1 1755 cat conftest.er1 >&5 1756 mv -f conftest.er1 conftest.err 1757 fi 1758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1759 test $ac_status = 0; } > conftest.i && { 1760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1761 test ! -s conftest.err 1762 } 1763then : 1764 ac_retval=0 1765else $as_nop 1766 printf "%s\n" "$as_me: failed program was:" >&5 1767sed 's/^/| /' conftest.$ac_ext >&5 1768 1769 ac_retval=1 1770fi 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1772 as_fn_set_status $ac_retval 1773 1774} # ac_fn_c_try_cpp 1775 1776# ac_fn_c_try_run LINENO 1777# ---------------------- 1778# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1779# executables *can* be run. 1780ac_fn_c_try_run () 1781{ 1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1783 if { { ac_try="$ac_link" 1784case "(($ac_try" in 1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1786 *) ac_try_echo=$ac_try;; 1787esac 1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1789printf "%s\n" "$ac_try_echo"; } >&5 1790 (eval "$ac_link") 2>&5 1791 ac_status=$? 1792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1794 { { case "(($ac_try" in 1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1796 *) ac_try_echo=$ac_try;; 1797esac 1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1799printf "%s\n" "$ac_try_echo"; } >&5 1800 (eval "$ac_try") 2>&5 1801 ac_status=$? 1802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1803 test $ac_status = 0; }; } 1804then : 1805 ac_retval=0 1806else $as_nop 1807 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1808 printf "%s\n" "$as_me: failed program was:" >&5 1809sed 's/^/| /' conftest.$ac_ext >&5 1810 1811 ac_retval=$ac_status 1812fi 1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1815 as_fn_set_status $ac_retval 1816 1817} # ac_fn_c_try_run 1818 1819# ac_fn_c_try_link LINENO 1820# ----------------------- 1821# Try to link conftest.$ac_ext, and return whether this succeeded. 1822ac_fn_c_try_link () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1826 if { { ac_try="$ac_link" 1827case "(($ac_try" in 1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1829 *) ac_try_echo=$ac_try;; 1830esac 1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1832printf "%s\n" "$ac_try_echo"; } >&5 1833 (eval "$ac_link") 2>conftest.err 1834 ac_status=$? 1835 if test -s conftest.err; then 1836 grep -v '^ *+' conftest.err >conftest.er1 1837 cat conftest.er1 >&5 1838 mv -f conftest.er1 conftest.err 1839 fi 1840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1841 test $ac_status = 0; } && { 1842 test -z "$ac_c_werror_flag" || 1843 test ! -s conftest.err 1844 } && test -s conftest$ac_exeext && { 1845 test "$cross_compiling" = yes || 1846 test -x conftest$ac_exeext 1847 } 1848then : 1849 ac_retval=0 1850else $as_nop 1851 printf "%s\n" "$as_me: failed program was:" >&5 1852sed 's/^/| /' conftest.$ac_ext >&5 1853 1854 ac_retval=1 1855fi 1856 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1857 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1858 # interfere with the next link command; also delete a directory that is 1859 # left behind by Apple's compiler. We do this before executing the actions. 1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 as_fn_set_status $ac_retval 1863 1864} # ac_fn_c_try_link 1865 1866# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1867# ------------------------------------------------------- 1868# Tests whether HEADER exists and can be compiled using the include files in 1869# INCLUDES, setting the cache variable VAR accordingly. 1870ac_fn_c_check_header_compile () 1871{ 1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1874printf %s "checking for $2... " >&6; } 1875if eval test \${$3+y} 1876then : 1877 printf %s "(cached) " >&6 1878else $as_nop 1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1880/* end confdefs.h. */ 1881$4 1882#include <$2> 1883_ACEOF 1884if ac_fn_c_try_compile "$LINENO" 1885then : 1886 eval "$3=yes" 1887else $as_nop 1888 eval "$3=no" 1889fi 1890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1891fi 1892eval ac_res=\$$3 1893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1894printf "%s\n" "$ac_res" >&6; } 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 1897} # ac_fn_c_check_header_compile 1898 1899# ac_fn_c_check_func LINENO FUNC VAR 1900# ---------------------------------- 1901# Tests whether FUNC exists, setting the cache variable VAR accordingly 1902ac_fn_c_check_func () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1906printf %s "checking for $2... " >&6; } 1907if eval test \${$3+y} 1908then : 1909 printf %s "(cached) " >&6 1910else $as_nop 1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1912/* end confdefs.h. */ 1913/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1914 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1915#define $2 innocuous_$2 1916 1917/* System header to define __stub macros and hopefully few prototypes, 1918 which can conflict with char $2 (); below. */ 1919 1920#include <limits.h> 1921#undef $2 1922 1923/* Override any GCC internal prototype to avoid an error. 1924 Use char because int might match the return type of a GCC 1925 builtin and then its argument prototype would still apply. */ 1926#ifdef __cplusplus 1927extern "C" 1928#endif 1929char $2 (); 1930/* The GNU C library defines this for functions which it implements 1931 to always fail with ENOSYS. Some functions are actually named 1932 something starting with __ and the normal name is an alias. */ 1933#if defined __stub_$2 || defined __stub___$2 1934choke me 1935#endif 1936 1937int 1938main (void) 1939{ 1940return $2 (); 1941 ; 1942 return 0; 1943} 1944_ACEOF 1945if ac_fn_c_try_link "$LINENO" 1946then : 1947 eval "$3=yes" 1948else $as_nop 1949 eval "$3=no" 1950fi 1951rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1952 conftest$ac_exeext conftest.$ac_ext 1953fi 1954eval ac_res=\$$3 1955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1956printf "%s\n" "$ac_res" >&6; } 1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1958 1959} # ac_fn_c_check_func 1960 1961# ac_fn_cxx_try_cpp LINENO 1962# ------------------------ 1963# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1964ac_fn_cxx_try_cpp () 1965{ 1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1967 if { { ac_try="$ac_cpp conftest.$ac_ext" 1968case "(($ac_try" in 1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1970 *) ac_try_echo=$ac_try;; 1971esac 1972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1973printf "%s\n" "$ac_try_echo"; } >&5 1974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1975 ac_status=$? 1976 if test -s conftest.err; then 1977 grep -v '^ *+' conftest.err >conftest.er1 1978 cat conftest.er1 >&5 1979 mv -f conftest.er1 conftest.err 1980 fi 1981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1982 test $ac_status = 0; } > conftest.i && { 1983 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1984 test ! -s conftest.err 1985 } 1986then : 1987 ac_retval=0 1988else $as_nop 1989 printf "%s\n" "$as_me: failed program was:" >&5 1990sed 's/^/| /' conftest.$ac_ext >&5 1991 1992 ac_retval=1 1993fi 1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1995 as_fn_set_status $ac_retval 1996 1997} # ac_fn_cxx_try_cpp 1998 1999# ac_fn_cxx_try_link LINENO 2000# ------------------------- 2001# Try to link conftest.$ac_ext, and return whether this succeeded. 2002ac_fn_cxx_try_link () 2003{ 2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2005 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2006 if { { ac_try="$ac_link" 2007case "(($ac_try" in 2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2009 *) ac_try_echo=$ac_try;; 2010esac 2011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2012printf "%s\n" "$ac_try_echo"; } >&5 2013 (eval "$ac_link") 2>conftest.err 2014 ac_status=$? 2015 if test -s conftest.err; then 2016 grep -v '^ *+' conftest.err >conftest.er1 2017 cat conftest.er1 >&5 2018 mv -f conftest.er1 conftest.err 2019 fi 2020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2021 test $ac_status = 0; } && { 2022 test -z "$ac_cxx_werror_flag" || 2023 test ! -s conftest.err 2024 } && test -s conftest$ac_exeext && { 2025 test "$cross_compiling" = yes || 2026 test -x conftest$ac_exeext 2027 } 2028then : 2029 ac_retval=0 2030else $as_nop 2031 printf "%s\n" "$as_me: failed program was:" >&5 2032sed 's/^/| /' conftest.$ac_ext >&5 2033 2034 ac_retval=1 2035fi 2036 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2037 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2038 # interfere with the next link command; also delete a directory that is 2039 # left behind by Apple's compiler. We do this before executing the actions. 2040 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2042 as_fn_set_status $ac_retval 2043 2044} # ac_fn_cxx_try_link 2045 2046# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2047# ------------------------------------------- 2048# Tests whether TYPE exists after having included INCLUDES, setting cache 2049# variable VAR accordingly. 2050ac_fn_c_check_type () 2051{ 2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2054printf %s "checking for $2... " >&6; } 2055if eval test \${$3+y} 2056then : 2057 printf %s "(cached) " >&6 2058else $as_nop 2059 eval "$3=no" 2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2061/* end confdefs.h. */ 2062$4 2063int 2064main (void) 2065{ 2066if (sizeof ($2)) 2067 return 0; 2068 ; 2069 return 0; 2070} 2071_ACEOF 2072if ac_fn_c_try_compile "$LINENO" 2073then : 2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2075/* end confdefs.h. */ 2076$4 2077int 2078main (void) 2079{ 2080if (sizeof (($2))) 2081 return 0; 2082 ; 2083 return 0; 2084} 2085_ACEOF 2086if ac_fn_c_try_compile "$LINENO" 2087then : 2088 2089else $as_nop 2090 eval "$3=yes" 2091fi 2092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2093fi 2094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2095fi 2096eval ac_res=\$$3 2097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2098printf "%s\n" "$ac_res" >&6; } 2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2100 2101} # ac_fn_c_check_type 2102 2103# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2104# -------------------------------------------- 2105# Tries to find the compile-time value of EXPR in a program that includes 2106# INCLUDES, setting VAR accordingly. Returns whether the value could be 2107# computed 2108ac_fn_c_compute_int () 2109{ 2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2111 if test "$cross_compiling" = yes; then 2112 # Depending upon the size, compute the lo and hi bounds. 2113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2114/* end confdefs.h. */ 2115$4 2116int 2117main (void) 2118{ 2119static int test_array [1 - 2 * !(($2) >= 0)]; 2120test_array [0] = 0; 2121return test_array [0]; 2122 2123 ; 2124 return 0; 2125} 2126_ACEOF 2127if ac_fn_c_try_compile "$LINENO" 2128then : 2129 ac_lo=0 ac_mid=0 2130 while :; do 2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2132/* end confdefs.h. */ 2133$4 2134int 2135main (void) 2136{ 2137static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2138test_array [0] = 0; 2139return test_array [0]; 2140 2141 ; 2142 return 0; 2143} 2144_ACEOF 2145if ac_fn_c_try_compile "$LINENO" 2146then : 2147 ac_hi=$ac_mid; break 2148else $as_nop 2149 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2150 if test $ac_lo -le $ac_mid; then 2151 ac_lo= ac_hi= 2152 break 2153 fi 2154 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2155fi 2156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2157 done 2158else $as_nop 2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2160/* end confdefs.h. */ 2161$4 2162int 2163main (void) 2164{ 2165static int test_array [1 - 2 * !(($2) < 0)]; 2166test_array [0] = 0; 2167return test_array [0]; 2168 2169 ; 2170 return 0; 2171} 2172_ACEOF 2173if ac_fn_c_try_compile "$LINENO" 2174then : 2175 ac_hi=-1 ac_mid=-1 2176 while :; do 2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2178/* end confdefs.h. */ 2179$4 2180int 2181main (void) 2182{ 2183static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2184test_array [0] = 0; 2185return test_array [0]; 2186 2187 ; 2188 return 0; 2189} 2190_ACEOF 2191if ac_fn_c_try_compile "$LINENO" 2192then : 2193 ac_lo=$ac_mid; break 2194else $as_nop 2195 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2196 if test $ac_mid -le $ac_hi; then 2197 ac_lo= ac_hi= 2198 break 2199 fi 2200 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2201fi 2202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2203 done 2204else $as_nop 2205 ac_lo= ac_hi= 2206fi 2207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2208fi 2209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2210# Binary search between lo and hi bounds. 2211while test "x$ac_lo" != "x$ac_hi"; do 2212 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2214/* end confdefs.h. */ 2215$4 2216int 2217main (void) 2218{ 2219static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2220test_array [0] = 0; 2221return test_array [0]; 2222 2223 ; 2224 return 0; 2225} 2226_ACEOF 2227if ac_fn_c_try_compile "$LINENO" 2228then : 2229 ac_hi=$ac_mid 2230else $as_nop 2231 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2232fi 2233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2234done 2235case $ac_lo in #(( 2236?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2237'') ac_retval=1 ;; 2238esac 2239 else 2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2241/* end confdefs.h. */ 2242$4 2243static long int longval (void) { return $2; } 2244static unsigned long int ulongval (void) { return $2; } 2245#include <stdio.h> 2246#include <stdlib.h> 2247int 2248main (void) 2249{ 2250 2251 FILE *f = fopen ("conftest.val", "w"); 2252 if (! f) 2253 return 1; 2254 if (($2) < 0) 2255 { 2256 long int i = longval (); 2257 if (i != ($2)) 2258 return 1; 2259 fprintf (f, "%ld", i); 2260 } 2261 else 2262 { 2263 unsigned long int i = ulongval (); 2264 if (i != ($2)) 2265 return 1; 2266 fprintf (f, "%lu", i); 2267 } 2268 /* Do not output a trailing newline, as this causes \r\n confusion 2269 on some platforms. */ 2270 return ferror (f) || fclose (f) != 0; 2271 2272 ; 2273 return 0; 2274} 2275_ACEOF 2276if ac_fn_c_try_run "$LINENO" 2277then : 2278 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2279else $as_nop 2280 ac_retval=1 2281fi 2282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2283 conftest.$ac_objext conftest.beam conftest.$ac_ext 2284rm -f conftest.val 2285 2286 fi 2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2288 as_fn_set_status $ac_retval 2289 2290} # ac_fn_c_compute_int 2291 2292# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2293# ------------------------------------------------------------------ 2294# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2295# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2296ac_fn_check_decl () 2297{ 2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2299 as_decl_name=`echo $2|sed 's/ *(.*//'` 2300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2301printf %s "checking whether $as_decl_name is declared... " >&6; } 2302if eval test \${$3+y} 2303then : 2304 printf %s "(cached) " >&6 2305else $as_nop 2306 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2307 eval ac_save_FLAGS=\$$6 2308 as_fn_append $6 " $5" 2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2310/* end confdefs.h. */ 2311$4 2312int 2313main (void) 2314{ 2315#ifndef $as_decl_name 2316#ifdef __cplusplus 2317 (void) $as_decl_use; 2318#else 2319 (void) $as_decl_name; 2320#endif 2321#endif 2322 2323 ; 2324 return 0; 2325} 2326_ACEOF 2327if ac_fn_c_try_compile "$LINENO" 2328then : 2329 eval "$3=yes" 2330else $as_nop 2331 eval "$3=no" 2332fi 2333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2334 eval $6=\$ac_save_FLAGS 2335 2336fi 2337eval ac_res=\$$3 2338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2339printf "%s\n" "$ac_res" >&6; } 2340 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2341 2342} # ac_fn_check_decl 2343ac_configure_args_raw= 2344for ac_arg 2345do 2346 case $ac_arg in 2347 *\'*) 2348 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2349 esac 2350 as_fn_append ac_configure_args_raw " '$ac_arg'" 2351done 2352 2353case $ac_configure_args_raw in 2354 *$as_nl*) 2355 ac_safe_unquote= ;; 2356 *) 2357 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2358 ac_unsafe_a="$ac_unsafe_z#~" 2359 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2360 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2361esac 2362 2363cat >config.log <<_ACEOF 2364This file contains any messages produced by compilers while 2365running configure, to aid debugging if configure makes a mistake. 2366 2367It was created by isl $as_me 0.26, which was 2368generated by GNU Autoconf 2.71. Invocation command line was 2369 2370 $ $0$ac_configure_args_raw 2371 2372_ACEOF 2373exec 5>>config.log 2374{ 2375cat <<_ASUNAME 2376## --------- ## 2377## Platform. ## 2378## --------- ## 2379 2380hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2381uname -m = `(uname -m) 2>/dev/null || echo unknown` 2382uname -r = `(uname -r) 2>/dev/null || echo unknown` 2383uname -s = `(uname -s) 2>/dev/null || echo unknown` 2384uname -v = `(uname -v) 2>/dev/null || echo unknown` 2385 2386/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2387/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2388 2389/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2390/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2391/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2392/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2393/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2394/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2395/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2396 2397_ASUNAME 2398 2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2400for as_dir in $PATH 2401do 2402 IFS=$as_save_IFS 2403 case $as_dir in #((( 2404 '') as_dir=./ ;; 2405 */) ;; 2406 *) as_dir=$as_dir/ ;; 2407 esac 2408 printf "%s\n" "PATH: $as_dir" 2409 done 2410IFS=$as_save_IFS 2411 2412} >&5 2413 2414cat >&5 <<_ACEOF 2415 2416 2417## ----------- ## 2418## Core tests. ## 2419## ----------- ## 2420 2421_ACEOF 2422 2423 2424# Keep a trace of the command line. 2425# Strip out --no-create and --no-recursion so they do not pile up. 2426# Strip out --silent because we don't want to record it for future runs. 2427# Also quote any args containing shell meta-characters. 2428# Make two passes to allow for proper duplicate-argument suppression. 2429ac_configure_args= 2430ac_configure_args0= 2431ac_configure_args1= 2432ac_must_keep_next=false 2433for ac_pass in 1 2 2434do 2435 for ac_arg 2436 do 2437 case $ac_arg in 2438 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2440 | -silent | --silent | --silen | --sile | --sil) 2441 continue ;; 2442 *\'*) 2443 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2444 esac 2445 case $ac_pass in 2446 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2447 2) 2448 as_fn_append ac_configure_args1 " '$ac_arg'" 2449 if test $ac_must_keep_next = true; then 2450 ac_must_keep_next=false # Got value, back to normal. 2451 else 2452 case $ac_arg in 2453 *=* | --config-cache | -C | -disable-* | --disable-* \ 2454 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2455 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2456 | -with-* | --with-* | -without-* | --without-* | --x) 2457 case "$ac_configure_args0 " in 2458 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2459 esac 2460 ;; 2461 -* ) ac_must_keep_next=true ;; 2462 esac 2463 fi 2464 as_fn_append ac_configure_args " '$ac_arg'" 2465 ;; 2466 esac 2467 done 2468done 2469{ ac_configure_args0=; unset ac_configure_args0;} 2470{ ac_configure_args1=; unset ac_configure_args1;} 2471 2472# When interrupted or exit'd, cleanup temporary files, and complete 2473# config.log. We remove comments because anyway the quotes in there 2474# would cause problems or look ugly. 2475# WARNING: Use '\'' to represent an apostrophe within the trap. 2476# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2477trap 'exit_status=$? 2478 # Sanitize IFS. 2479 IFS=" "" $as_nl" 2480 # Save into config.log some information that might help in debugging. 2481 { 2482 echo 2483 2484 printf "%s\n" "## ---------------- ## 2485## Cache variables. ## 2486## ---------------- ##" 2487 echo 2488 # The following way of writing the cache mishandles newlines in values, 2489( 2490 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2491 eval ac_val=\$$ac_var 2492 case $ac_val in #( 2493 *${as_nl}*) 2494 case $ac_var in #( 2495 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2496printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2497 esac 2498 case $ac_var in #( 2499 _ | IFS | as_nl) ;; #( 2500 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2501 *) { eval $ac_var=; unset $ac_var;} ;; 2502 esac ;; 2503 esac 2504 done 2505 (set) 2>&1 | 2506 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2507 *${as_nl}ac_space=\ *) 2508 sed -n \ 2509 "s/'\''/'\''\\\\'\'''\''/g; 2510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2511 ;; #( 2512 *) 2513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2514 ;; 2515 esac | 2516 sort 2517) 2518 echo 2519 2520 printf "%s\n" "## ----------------- ## 2521## Output variables. ## 2522## ----------------- ##" 2523 echo 2524 for ac_var in $ac_subst_vars 2525 do 2526 eval ac_val=\$$ac_var 2527 case $ac_val in 2528 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2529 esac 2530 printf "%s\n" "$ac_var='\''$ac_val'\''" 2531 done | sort 2532 echo 2533 2534 if test -n "$ac_subst_files"; then 2535 printf "%s\n" "## ------------------- ## 2536## File substitutions. ## 2537## ------------------- ##" 2538 echo 2539 for ac_var in $ac_subst_files 2540 do 2541 eval ac_val=\$$ac_var 2542 case $ac_val in 2543 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2544 esac 2545 printf "%s\n" "$ac_var='\''$ac_val'\''" 2546 done | sort 2547 echo 2548 fi 2549 2550 if test -s confdefs.h; then 2551 printf "%s\n" "## ----------- ## 2552## confdefs.h. ## 2553## ----------- ##" 2554 echo 2555 cat confdefs.h 2556 echo 2557 fi 2558 test "$ac_signal" != 0 && 2559 printf "%s\n" "$as_me: caught signal $ac_signal" 2560 printf "%s\n" "$as_me: exit $exit_status" 2561 } >&5 2562 rm -f core *.core core.conftest.* && 2563 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2564 exit $exit_status 2565' 0 2566for ac_signal in 1 2 13 15; do 2567 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2568done 2569ac_signal=0 2570 2571# confdefs.h avoids OS command line length limits that DEFS can exceed. 2572rm -f -r conftest* confdefs.h 2573 2574printf "%s\n" "/* confdefs.h */" > confdefs.h 2575 2576# Predefined preprocessor variables. 2577 2578printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2579 2580printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2581 2582printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2583 2584printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2585 2586printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2587 2588printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2589 2590 2591# Let the site file select an alternate cache file if it wants to. 2592# Prefer an explicitly selected file to automatically selected ones. 2593if test -n "$CONFIG_SITE"; then 2594 ac_site_files="$CONFIG_SITE" 2595elif test "x$prefix" != xNONE; then 2596 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2597else 2598 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2599fi 2600 2601for ac_site_file in $ac_site_files 2602do 2603 case $ac_site_file in #( 2604 */*) : 2605 ;; #( 2606 *) : 2607 ac_site_file=./$ac_site_file ;; 2608esac 2609 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2611printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2612 sed 's/^/| /' "$ac_site_file" >&5 2613 . "$ac_site_file" \ 2614 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2615printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2616as_fn_error $? "failed to load site script $ac_site_file 2617See \`config.log' for more details" "$LINENO" 5; } 2618 fi 2619done 2620 2621if test -r "$cache_file"; then 2622 # Some versions of bash will fail to source /dev/null (special files 2623 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2624 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2626printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2627 case $cache_file in 2628 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2629 *) . "./$cache_file";; 2630 esac 2631 fi 2632else 2633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2634printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2635 >$cache_file 2636fi 2637 2638# Test code for whether the C compiler supports C89 (global declarations) 2639ac_c_conftest_c89_globals=' 2640/* Does the compiler advertise C89 conformance? 2641 Do not test the value of __STDC__, because some compilers set it to 0 2642 while being otherwise adequately conformant. */ 2643#if !defined __STDC__ 2644# error "Compiler does not advertise C89 conformance" 2645#endif 2646 2647#include <stddef.h> 2648#include <stdarg.h> 2649struct stat; 2650/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2651struct buf { int x; }; 2652struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2653static char *e (p, i) 2654 char **p; 2655 int i; 2656{ 2657 return p[i]; 2658} 2659static char *f (char * (*g) (char **, int), char **p, ...) 2660{ 2661 char *s; 2662 va_list v; 2663 va_start (v,p); 2664 s = g (p, va_arg (v,int)); 2665 va_end (v); 2666 return s; 2667} 2668 2669/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2670 function prototypes and stuff, but not \xHH hex character constants. 2671 These do not provoke an error unfortunately, instead are silently treated 2672 as an "x". The following induces an error, until -std is added to get 2673 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2674 array size at least. It is necessary to write \x00 == 0 to get something 2675 that is true only with -std. */ 2676int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2677 2678/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2679 inside strings and character constants. */ 2680#define FOO(x) '\''x'\'' 2681int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2682 2683int test (int i, double x); 2684struct s1 {int (*f) (int a);}; 2685struct s2 {int (*f) (double a);}; 2686int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2687 int, int);' 2688 2689# Test code for whether the C compiler supports C89 (body of main). 2690ac_c_conftest_c89_main=' 2691ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2692' 2693 2694# Test code for whether the C compiler supports C99 (global declarations) 2695ac_c_conftest_c99_globals=' 2696// Does the compiler advertise C99 conformance? 2697#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2698# error "Compiler does not advertise C99 conformance" 2699#endif 2700 2701#include <stdbool.h> 2702extern int puts (const char *); 2703extern int printf (const char *, ...); 2704extern int dprintf (int, const char *, ...); 2705extern void *malloc (size_t); 2706 2707// Check varargs macros. These examples are taken from C99 6.10.3.5. 2708// dprintf is used instead of fprintf to avoid needing to declare 2709// FILE and stderr. 2710#define debug(...) dprintf (2, __VA_ARGS__) 2711#define showlist(...) puts (#__VA_ARGS__) 2712#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2713static void 2714test_varargs_macros (void) 2715{ 2716 int x = 1234; 2717 int y = 5678; 2718 debug ("Flag"); 2719 debug ("X = %d\n", x); 2720 showlist (The first, second, and third items.); 2721 report (x>y, "x is %d but y is %d", x, y); 2722} 2723 2724// Check long long types. 2725#define BIG64 18446744073709551615ull 2726#define BIG32 4294967295ul 2727#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2728#if !BIG_OK 2729 #error "your preprocessor is broken" 2730#endif 2731#if BIG_OK 2732#else 2733 #error "your preprocessor is broken" 2734#endif 2735static long long int bignum = -9223372036854775807LL; 2736static unsigned long long int ubignum = BIG64; 2737 2738struct incomplete_array 2739{ 2740 int datasize; 2741 double data[]; 2742}; 2743 2744struct named_init { 2745 int number; 2746 const wchar_t *name; 2747 double average; 2748}; 2749 2750typedef const char *ccp; 2751 2752static inline int 2753test_restrict (ccp restrict text) 2754{ 2755 // See if C++-style comments work. 2756 // Iterate through items via the restricted pointer. 2757 // Also check for declarations in for loops. 2758 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2759 continue; 2760 return 0; 2761} 2762 2763// Check varargs and va_copy. 2764static bool 2765test_varargs (const char *format, ...) 2766{ 2767 va_list args; 2768 va_start (args, format); 2769 va_list args_copy; 2770 va_copy (args_copy, args); 2771 2772 const char *str = ""; 2773 int number = 0; 2774 float fnumber = 0; 2775 2776 while (*format) 2777 { 2778 switch (*format++) 2779 { 2780 case '\''s'\'': // string 2781 str = va_arg (args_copy, const char *); 2782 break; 2783 case '\''d'\'': // int 2784 number = va_arg (args_copy, int); 2785 break; 2786 case '\''f'\'': // float 2787 fnumber = va_arg (args_copy, double); 2788 break; 2789 default: 2790 break; 2791 } 2792 } 2793 va_end (args_copy); 2794 va_end (args); 2795 2796 return *str && number && fnumber; 2797} 2798' 2799 2800# Test code for whether the C compiler supports C99 (body of main). 2801ac_c_conftest_c99_main=' 2802 // Check bool. 2803 _Bool success = false; 2804 success |= (argc != 0); 2805 2806 // Check restrict. 2807 if (test_restrict ("String literal") == 0) 2808 success = true; 2809 char *restrict newvar = "Another string"; 2810 2811 // Check varargs. 2812 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2813 test_varargs_macros (); 2814 2815 // Check flexible array members. 2816 struct incomplete_array *ia = 2817 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2818 ia->datasize = 10; 2819 for (int i = 0; i < ia->datasize; ++i) 2820 ia->data[i] = i * 1.234; 2821 2822 // Check named initializers. 2823 struct named_init ni = { 2824 .number = 34, 2825 .name = L"Test wide string", 2826 .average = 543.34343, 2827 }; 2828 2829 ni.number = 58; 2830 2831 int dynamic_array[ni.number]; 2832 dynamic_array[0] = argv[0][0]; 2833 dynamic_array[ni.number - 1] = 543; 2834 2835 // work around unused variable warnings 2836 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2837 || dynamic_array[ni.number - 1] != 543); 2838' 2839 2840# Test code for whether the C compiler supports C11 (global declarations) 2841ac_c_conftest_c11_globals=' 2842// Does the compiler advertise C11 conformance? 2843#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2844# error "Compiler does not advertise C11 conformance" 2845#endif 2846 2847// Check _Alignas. 2848char _Alignas (double) aligned_as_double; 2849char _Alignas (0) no_special_alignment; 2850extern char aligned_as_int; 2851char _Alignas (0) _Alignas (int) aligned_as_int; 2852 2853// Check _Alignof. 2854enum 2855{ 2856 int_alignment = _Alignof (int), 2857 int_array_alignment = _Alignof (int[100]), 2858 char_alignment = _Alignof (char) 2859}; 2860_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2861 2862// Check _Noreturn. 2863int _Noreturn does_not_return (void) { for (;;) continue; } 2864 2865// Check _Static_assert. 2866struct test_static_assert 2867{ 2868 int x; 2869 _Static_assert (sizeof (int) <= sizeof (long int), 2870 "_Static_assert does not work in struct"); 2871 long int y; 2872}; 2873 2874// Check UTF-8 literals. 2875#define u8 syntax error! 2876char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2877 2878// Check duplicate typedefs. 2879typedef long *long_ptr; 2880typedef long int *long_ptr; 2881typedef long_ptr long_ptr; 2882 2883// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2884struct anonymous 2885{ 2886 union { 2887 struct { int i; int j; }; 2888 struct { int k; long int l; } w; 2889 }; 2890 int m; 2891} v1; 2892' 2893 2894# Test code for whether the C compiler supports C11 (body of main). 2895ac_c_conftest_c11_main=' 2896 _Static_assert ((offsetof (struct anonymous, i) 2897 == offsetof (struct anonymous, w.k)), 2898 "Anonymous union alignment botch"); 2899 v1.i = 2; 2900 v1.w.k = 5; 2901 ok |= v1.i != 5; 2902' 2903 2904# Test code for whether the C compiler supports C11 (complete). 2905ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2906${ac_c_conftest_c99_globals} 2907${ac_c_conftest_c11_globals} 2908 2909int 2910main (int argc, char **argv) 2911{ 2912 int ok = 0; 2913 ${ac_c_conftest_c89_main} 2914 ${ac_c_conftest_c99_main} 2915 ${ac_c_conftest_c11_main} 2916 return ok; 2917} 2918" 2919 2920# Test code for whether the C compiler supports C99 (complete). 2921ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2922${ac_c_conftest_c99_globals} 2923 2924int 2925main (int argc, char **argv) 2926{ 2927 int ok = 0; 2928 ${ac_c_conftest_c89_main} 2929 ${ac_c_conftest_c99_main} 2930 return ok; 2931} 2932" 2933 2934# Test code for whether the C compiler supports C89 (complete). 2935ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2936 2937int 2938main (int argc, char **argv) 2939{ 2940 int ok = 0; 2941 ${ac_c_conftest_c89_main} 2942 return ok; 2943} 2944" 2945 2946# Test code for whether the C++ compiler supports C++98 (global declarations) 2947ac_cxx_conftest_cxx98_globals=' 2948// Does the compiler advertise C++98 conformance? 2949#if !defined __cplusplus || __cplusplus < 199711L 2950# error "Compiler does not advertise C++98 conformance" 2951#endif 2952 2953// These inclusions are to reject old compilers that 2954// lack the unsuffixed header files. 2955#include <cstdlib> 2956#include <exception> 2957 2958// <cassert> and <cstring> are *not* freestanding headers in C++98. 2959extern void assert (int); 2960namespace std { 2961 extern int strcmp (const char *, const char *); 2962} 2963 2964// Namespaces, exceptions, and templates were all added after "C++ 2.0". 2965using std::exception; 2966using std::strcmp; 2967 2968namespace { 2969 2970void test_exception_syntax() 2971{ 2972 try { 2973 throw "test"; 2974 } catch (const char *s) { 2975 // Extra parentheses suppress a warning when building autoconf itself, 2976 // due to lint rules shared with more typical C programs. 2977 assert (!(strcmp) (s, "test")); 2978 } 2979} 2980 2981template <typename T> struct test_template 2982{ 2983 T const val; 2984 explicit test_template(T t) : val(t) {} 2985 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 2986}; 2987 2988} // anonymous namespace 2989' 2990 2991# Test code for whether the C++ compiler supports C++98 (body of main) 2992ac_cxx_conftest_cxx98_main=' 2993 assert (argc); 2994 assert (! argv[0]); 2995{ 2996 test_exception_syntax (); 2997 test_template<double> tt (2.0); 2998 assert (tt.add (4) == 6.0); 2999 assert (true && !false); 3000} 3001' 3002 3003# Test code for whether the C++ compiler supports C++11 (global declarations) 3004ac_cxx_conftest_cxx11_globals=' 3005// Does the compiler advertise C++ 2011 conformance? 3006#if !defined __cplusplus || __cplusplus < 201103L 3007# error "Compiler does not advertise C++11 conformance" 3008#endif 3009 3010namespace cxx11test 3011{ 3012 constexpr int get_val() { return 20; } 3013 3014 struct testinit 3015 { 3016 int i; 3017 double d; 3018 }; 3019 3020 class delegate 3021 { 3022 public: 3023 delegate(int n) : n(n) {} 3024 delegate(): delegate(2354) {} 3025 3026 virtual int getval() { return this->n; }; 3027 protected: 3028 int n; 3029 }; 3030 3031 class overridden : public delegate 3032 { 3033 public: 3034 overridden(int n): delegate(n) {} 3035 virtual int getval() override final { return this->n * 2; } 3036 }; 3037 3038 class nocopy 3039 { 3040 public: 3041 nocopy(int i): i(i) {} 3042 nocopy() = default; 3043 nocopy(const nocopy&) = delete; 3044 nocopy & operator=(const nocopy&) = delete; 3045 private: 3046 int i; 3047 }; 3048 3049 // for testing lambda expressions 3050 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 3051 { 3052 return f(v); 3053 } 3054 3055 // for testing variadic templates and trailing return types 3056 template <typename V> auto sum(V first) -> V 3057 { 3058 return first; 3059 } 3060 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 3061 { 3062 return first + sum(rest...); 3063 } 3064} 3065' 3066 3067# Test code for whether the C++ compiler supports C++11 (body of main) 3068ac_cxx_conftest_cxx11_main=' 3069{ 3070 // Test auto and decltype 3071 auto a1 = 6538; 3072 auto a2 = 48573953.4; 3073 auto a3 = "String literal"; 3074 3075 int total = 0; 3076 for (auto i = a3; *i; ++i) { total += *i; } 3077 3078 decltype(a2) a4 = 34895.034; 3079} 3080{ 3081 // Test constexpr 3082 short sa[cxx11test::get_val()] = { 0 }; 3083} 3084{ 3085 // Test initializer lists 3086 cxx11test::testinit il = { 4323, 435234.23544 }; 3087} 3088{ 3089 // Test range-based for 3090 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 3091 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 3092 for (auto &x : array) { x += 23; } 3093} 3094{ 3095 // Test lambda expressions 3096 using cxx11test::eval; 3097 assert (eval ([](int x) { return x*2; }, 21) == 42); 3098 double d = 2.0; 3099 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 3100 assert (d == 5.0); 3101 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 3102 assert (d == 5.0); 3103} 3104{ 3105 // Test use of variadic templates 3106 using cxx11test::sum; 3107 auto a = sum(1); 3108 auto b = sum(1, 2); 3109 auto c = sum(1.0, 2.0, 3.0); 3110} 3111{ 3112 // Test constructor delegation 3113 cxx11test::delegate d1; 3114 cxx11test::delegate d2(); 3115 cxx11test::delegate d3(45); 3116} 3117{ 3118 // Test override and final 3119 cxx11test::overridden o1(55464); 3120} 3121{ 3122 // Test nullptr 3123 char *c = nullptr; 3124} 3125{ 3126 // Test template brackets 3127 test_template<::test_template<int>> v(test_template<int>(12)); 3128} 3129{ 3130 // Unicode literals 3131 char const *utf8 = u8"UTF-8 string \u2500"; 3132 char16_t const *utf16 = u"UTF-8 string \u2500"; 3133 char32_t const *utf32 = U"UTF-32 string \u2500"; 3134} 3135' 3136 3137# Test code for whether the C compiler supports C++11 (complete). 3138ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 3139${ac_cxx_conftest_cxx11_globals} 3140 3141int 3142main (int argc, char **argv) 3143{ 3144 int ok = 0; 3145 ${ac_cxx_conftest_cxx98_main} 3146 ${ac_cxx_conftest_cxx11_main} 3147 return ok; 3148} 3149" 3150 3151# Test code for whether the C compiler supports C++98 (complete). 3152ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 3153int 3154main (int argc, char **argv) 3155{ 3156 int ok = 0; 3157 ${ac_cxx_conftest_cxx98_main} 3158 return ok; 3159} 3160" 3161 3162as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3163as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3164as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3165as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3166as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3167as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3168as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3169as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3170as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3171 3172# Auxiliary files required by this configure script. 3173ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 3174 3175# Locations in which to look for auxiliary files. 3176ac_aux_dir_candidates="${srcdir}/." 3177 3178# Search for a directory containing all of the required auxiliary files, 3179# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3180# If we don't find one directory that contains all the files we need, 3181# we report the set of missing files from the *first* directory in 3182# $ac_aux_dir_candidates and give up. 3183ac_missing_aux_files="" 3184ac_first_candidate=: 3185printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3187as_found=false 3188for as_dir in $ac_aux_dir_candidates 3189do 3190 IFS=$as_save_IFS 3191 case $as_dir in #((( 3192 '') as_dir=./ ;; 3193 */) ;; 3194 *) as_dir=$as_dir/ ;; 3195 esac 3196 as_found=: 3197 3198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3199 ac_aux_dir_found=yes 3200 ac_install_sh= 3201 for ac_aux in $ac_aux_files 3202 do 3203 # As a special case, if "install-sh" is required, that requirement 3204 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3205 # and $ac_install_sh is set appropriately for whichever one is found. 3206 if test x"$ac_aux" = x"install-sh" 3207 then 3208 if test -f "${as_dir}install-sh"; then 3209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3210 ac_install_sh="${as_dir}install-sh -c" 3211 elif test -f "${as_dir}install.sh"; then 3212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3213 ac_install_sh="${as_dir}install.sh -c" 3214 elif test -f "${as_dir}shtool"; then 3215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3216 ac_install_sh="${as_dir}shtool install -c" 3217 else 3218 ac_aux_dir_found=no 3219 if $ac_first_candidate; then 3220 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3221 else 3222 break 3223 fi 3224 fi 3225 else 3226 if test -f "${as_dir}${ac_aux}"; then 3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3228 else 3229 ac_aux_dir_found=no 3230 if $ac_first_candidate; then 3231 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3232 else 3233 break 3234 fi 3235 fi 3236 fi 3237 done 3238 if test "$ac_aux_dir_found" = yes; then 3239 ac_aux_dir="$as_dir" 3240 break 3241 fi 3242 ac_first_candidate=false 3243 3244 as_found=false 3245done 3246IFS=$as_save_IFS 3247if $as_found 3248then : 3249 3250else $as_nop 3251 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3252fi 3253 3254 3255# These three variables are undocumented and unsupported, 3256# and are intended to be withdrawn in a future Autoconf release. 3257# They can cause serious problems if a builder's source tree is in a directory 3258# whose full name contains unusual characters. 3259if test -f "${ac_aux_dir}config.guess"; then 3260 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3261fi 3262if test -f "${ac_aux_dir}config.sub"; then 3263 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3264fi 3265if test -f "$ac_aux_dir/configure"; then 3266 ac_configure="$SHELL ${ac_aux_dir}configure" 3267fi 3268 3269# Check that the precious variables saved in the cache have kept the same 3270# value. 3271ac_cache_corrupted=false 3272for ac_var in $ac_precious_vars; do 3273 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3274 eval ac_new_set=\$ac_env_${ac_var}_set 3275 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3276 eval ac_new_val=\$ac_env_${ac_var}_value 3277 case $ac_old_set,$ac_new_set in 3278 set,) 3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3280printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3281 ac_cache_corrupted=: ;; 3282 ,set) 3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3284printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3285 ac_cache_corrupted=: ;; 3286 ,);; 3287 *) 3288 if test "x$ac_old_val" != "x$ac_new_val"; then 3289 # differences in whitespace do not lead to failure. 3290 ac_old_val_w=`echo x $ac_old_val` 3291 ac_new_val_w=`echo x $ac_new_val` 3292 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3294printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3295 ac_cache_corrupted=: 3296 else 3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3298printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3299 eval $ac_var=\$ac_old_val 3300 fi 3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3302printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3304printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3305 fi;; 3306 esac 3307 # Pass precious variables to config.status. 3308 if test "$ac_new_set" = set; then 3309 case $ac_new_val in 3310 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3311 *) ac_arg=$ac_var=$ac_new_val ;; 3312 esac 3313 case " $ac_configure_args " in 3314 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3315 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3316 esac 3317 fi 3318done 3319if $ac_cache_corrupted; then 3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3321printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3323printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3324 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3325 and start over" "$LINENO" 5 3326fi 3327## -------------------- ## 3328## Main body of script. ## 3329## -------------------- ## 3330 3331ac_ext=c 3332ac_cpp='$CPP $CPPFLAGS' 3333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3335ac_compiler_gnu=$ac_cv_c_compiler_gnu 3336 3337 3338 3339 3340am__api_version='1.16' 3341 3342 3343 3344 # Find a good install program. We prefer a C program (faster), 3345# so one script is as good as another. But avoid the broken or 3346# incompatible versions: 3347# SysV /etc/install, /usr/sbin/install 3348# SunOS /usr/etc/install 3349# IRIX /sbin/install 3350# AIX /bin/install 3351# AmigaOS /C/install, which installs bootblocks on floppy discs 3352# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3353# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3354# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3355# OS/2's system install, which has a completely different semantic 3356# ./install, which can be erroneously created by make from ./install.sh. 3357# Reject install programs that cannot install multiple files. 3358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3359printf %s "checking for a BSD-compatible install... " >&6; } 3360if test -z "$INSTALL"; then 3361if test ${ac_cv_path_install+y} 3362then : 3363 printf %s "(cached) " >&6 3364else $as_nop 3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3366for as_dir in $PATH 3367do 3368 IFS=$as_save_IFS 3369 case $as_dir in #((( 3370 '') as_dir=./ ;; 3371 */) ;; 3372 *) as_dir=$as_dir/ ;; 3373 esac 3374 # Account for fact that we put trailing slashes in our PATH walk. 3375case $as_dir in #(( 3376 ./ | /[cC]/* | \ 3377 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3378 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3379 /usr/ucb/* ) ;; 3380 *) 3381 # OSF1 and SCO ODT 3.0 have their own names for install. 3382 # Don't use installbsd from OSF since it installs stuff as root 3383 # by default. 3384 for ac_prog in ginstall scoinst install; do 3385 for ac_exec_ext in '' $ac_executable_extensions; do 3386 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3387 if test $ac_prog = install && 3388 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3389 # AIX install. It has an incompatible calling convention. 3390 : 3391 elif test $ac_prog = install && 3392 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3393 # program-specific install script used by HP pwplus--don't use. 3394 : 3395 else 3396 rm -rf conftest.one conftest.two conftest.dir 3397 echo one > conftest.one 3398 echo two > conftest.two 3399 mkdir conftest.dir 3400 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3401 test -s conftest.one && test -s conftest.two && 3402 test -s conftest.dir/conftest.one && 3403 test -s conftest.dir/conftest.two 3404 then 3405 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3406 break 3 3407 fi 3408 fi 3409 fi 3410 done 3411 done 3412 ;; 3413esac 3414 3415 done 3416IFS=$as_save_IFS 3417 3418rm -rf conftest.one conftest.two conftest.dir 3419 3420fi 3421 if test ${ac_cv_path_install+y}; then 3422 INSTALL=$ac_cv_path_install 3423 else 3424 # As a last resort, use the slow shell script. Don't cache a 3425 # value for INSTALL within a source directory, because that will 3426 # break other packages using the cache if that directory is 3427 # removed, or if the value is a relative name. 3428 INSTALL=$ac_install_sh 3429 fi 3430fi 3431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3432printf "%s\n" "$INSTALL" >&6; } 3433 3434# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3435# It thinks the first close brace ends the variable substitution. 3436test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3437 3438test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3439 3440test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3441 3442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3443printf %s "checking whether build environment is sane... " >&6; } 3444# Reject unsafe characters in $srcdir or the absolute working directory 3445# name. Accept space and tab only in the latter. 3446am_lf=' 3447' 3448case `pwd` in 3449 *[\\\"\#\$\&\'\`$am_lf]*) 3450 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3451esac 3452case $srcdir in 3453 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3454 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3455esac 3456 3457# Do 'set' in a subshell so we don't clobber the current shell's 3458# arguments. Must try -L first in case configure is actually a 3459# symlink; some systems play weird games with the mod time of symlinks 3460# (eg FreeBSD returns the mod time of the symlink's containing 3461# directory). 3462if ( 3463 am_has_slept=no 3464 for am_try in 1 2; do 3465 echo "timestamp, slept: $am_has_slept" > conftest.file 3466 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3467 if test "$*" = "X"; then 3468 # -L didn't work. 3469 set X `ls -t "$srcdir/configure" conftest.file` 3470 fi 3471 if test "$*" != "X $srcdir/configure conftest.file" \ 3472 && test "$*" != "X conftest.file $srcdir/configure"; then 3473 3474 # If neither matched, then we have a broken ls. This can happen 3475 # if, for instance, CONFIG_SHELL is bash and it inherits a 3476 # broken ls alias from the environment. This has actually 3477 # happened. Such a system could not be considered "sane". 3478 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3479 alias in your environment" "$LINENO" 5 3480 fi 3481 if test "$2" = conftest.file || test $am_try -eq 2; then 3482 break 3483 fi 3484 # Just in case. 3485 sleep 1 3486 am_has_slept=yes 3487 done 3488 test "$2" = conftest.file 3489 ) 3490then 3491 # Ok. 3492 : 3493else 3494 as_fn_error $? "newly created file is older than distributed files! 3495Check your system clock" "$LINENO" 5 3496fi 3497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3498printf "%s\n" "yes" >&6; } 3499# If we didn't sleep, we still need to ensure time stamps of config.status and 3500# generated files are strictly newer. 3501am_sleep_pid= 3502if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3503 ( sleep 1 ) & 3504 am_sleep_pid=$! 3505fi 3506 3507rm -f conftest.file 3508 3509test "$program_prefix" != NONE && 3510 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3511# Use a double $ so make ignores it. 3512test "$program_suffix" != NONE && 3513 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3514# Double any \ or $. 3515# By default was `s,x,x', remove it if useless. 3516ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3517program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3518 3519 3520# Expand $ac_aux_dir to an absolute path. 3521am_aux_dir=`cd "$ac_aux_dir" && pwd` 3522 3523 3524 if test x"${MISSING+set}" != xset; then 3525 MISSING="\${SHELL} '$am_aux_dir/missing'" 3526fi 3527# Use eval to expand $SHELL 3528if eval "$MISSING --is-lightweight"; then 3529 am_missing_run="$MISSING " 3530else 3531 am_missing_run= 3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3533printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3534fi 3535 3536if test x"${install_sh+set}" != xset; then 3537 case $am_aux_dir in 3538 *\ * | *\ *) 3539 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3540 *) 3541 install_sh="\${SHELL} $am_aux_dir/install-sh" 3542 esac 3543fi 3544 3545# Installed binaries are usually stripped using 'strip' when the user 3546# run "make install-strip". However 'strip' might not be the right 3547# tool to use in cross-compilation environments, therefore Automake 3548# will honor the 'STRIP' environment variable to overrule this program. 3549if test "$cross_compiling" != no; then 3550 if test -n "$ac_tool_prefix"; then 3551 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3552set dummy ${ac_tool_prefix}strip; ac_word=$2 3553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3554printf %s "checking for $ac_word... " >&6; } 3555if test ${ac_cv_prog_STRIP+y} 3556then : 3557 printf %s "(cached) " >&6 3558else $as_nop 3559 if test -n "$STRIP"; then 3560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3561else 3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3563for as_dir in $PATH 3564do 3565 IFS=$as_save_IFS 3566 case $as_dir in #((( 3567 '') as_dir=./ ;; 3568 */) ;; 3569 *) as_dir=$as_dir/ ;; 3570 esac 3571 for ac_exec_ext in '' $ac_executable_extensions; do 3572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3573 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3575 break 2 3576 fi 3577done 3578 done 3579IFS=$as_save_IFS 3580 3581fi 3582fi 3583STRIP=$ac_cv_prog_STRIP 3584if test -n "$STRIP"; then 3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3586printf "%s\n" "$STRIP" >&6; } 3587else 3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3589printf "%s\n" "no" >&6; } 3590fi 3591 3592 3593fi 3594if test -z "$ac_cv_prog_STRIP"; then 3595 ac_ct_STRIP=$STRIP 3596 # Extract the first word of "strip", so it can be a program name with args. 3597set dummy strip; ac_word=$2 3598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3599printf %s "checking for $ac_word... " >&6; } 3600if test ${ac_cv_prog_ac_ct_STRIP+y} 3601then : 3602 printf %s "(cached) " >&6 3603else $as_nop 3604 if test -n "$ac_ct_STRIP"; then 3605 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3606else 3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608for as_dir in $PATH 3609do 3610 IFS=$as_save_IFS 3611 case $as_dir in #((( 3612 '') as_dir=./ ;; 3613 */) ;; 3614 *) as_dir=$as_dir/ ;; 3615 esac 3616 for ac_exec_ext in '' $ac_executable_extensions; do 3617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3618 ac_cv_prog_ac_ct_STRIP="strip" 3619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3620 break 2 3621 fi 3622done 3623 done 3624IFS=$as_save_IFS 3625 3626fi 3627fi 3628ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3629if test -n "$ac_ct_STRIP"; then 3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3631printf "%s\n" "$ac_ct_STRIP" >&6; } 3632else 3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3634printf "%s\n" "no" >&6; } 3635fi 3636 3637 if test "x$ac_ct_STRIP" = x; then 3638 STRIP=":" 3639 else 3640 case $cross_compiling:$ac_tool_warned in 3641yes:) 3642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3643printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3644ac_tool_warned=yes ;; 3645esac 3646 STRIP=$ac_ct_STRIP 3647 fi 3648else 3649 STRIP="$ac_cv_prog_STRIP" 3650fi 3651 3652fi 3653INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3654 3655 3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3657printf %s "checking for a race-free mkdir -p... " >&6; } 3658if test -z "$MKDIR_P"; then 3659 if test ${ac_cv_path_mkdir+y} 3660then : 3661 printf %s "(cached) " >&6 3662else $as_nop 3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3664for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3665do 3666 IFS=$as_save_IFS 3667 case $as_dir in #((( 3668 '') as_dir=./ ;; 3669 */) ;; 3670 *) as_dir=$as_dir/ ;; 3671 esac 3672 for ac_prog in mkdir gmkdir; do 3673 for ac_exec_ext in '' $ac_executable_extensions; do 3674 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3675 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3676 'mkdir ('*'coreutils) '* | \ 3677 'BusyBox '* | \ 3678 'mkdir (fileutils) '4.1*) 3679 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3680 break 3;; 3681 esac 3682 done 3683 done 3684 done 3685IFS=$as_save_IFS 3686 3687fi 3688 3689 test -d ./--version && rmdir ./--version 3690 if test ${ac_cv_path_mkdir+y}; then 3691 MKDIR_P="$ac_cv_path_mkdir -p" 3692 else 3693 # As a last resort, use the slow shell script. Don't cache a 3694 # value for MKDIR_P within a source directory, because that will 3695 # break other packages using the cache if that directory is 3696 # removed, or if the value is a relative name. 3697 MKDIR_P="$ac_install_sh -d" 3698 fi 3699fi 3700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3701printf "%s\n" "$MKDIR_P" >&6; } 3702 3703for ac_prog in gawk mawk nawk awk 3704do 3705 # Extract the first word of "$ac_prog", so it can be a program name with args. 3706set dummy $ac_prog; ac_word=$2 3707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3708printf %s "checking for $ac_word... " >&6; } 3709if test ${ac_cv_prog_AWK+y} 3710then : 3711 printf %s "(cached) " >&6 3712else $as_nop 3713 if test -n "$AWK"; then 3714 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3715else 3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3717for as_dir in $PATH 3718do 3719 IFS=$as_save_IFS 3720 case $as_dir in #((( 3721 '') as_dir=./ ;; 3722 */) ;; 3723 *) as_dir=$as_dir/ ;; 3724 esac 3725 for ac_exec_ext in '' $ac_executable_extensions; do 3726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3727 ac_cv_prog_AWK="$ac_prog" 3728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3729 break 2 3730 fi 3731done 3732 done 3733IFS=$as_save_IFS 3734 3735fi 3736fi 3737AWK=$ac_cv_prog_AWK 3738if test -n "$AWK"; then 3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3740printf "%s\n" "$AWK" >&6; } 3741else 3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3743printf "%s\n" "no" >&6; } 3744fi 3745 3746 3747 test -n "$AWK" && break 3748done 3749 3750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3751printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3752set x ${MAKE-make} 3753ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3754if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3755then : 3756 printf %s "(cached) " >&6 3757else $as_nop 3758 cat >conftest.make <<\_ACEOF 3759SHELL = /bin/sh 3760all: 3761 @echo '@@@%%%=$(MAKE)=@@@%%%' 3762_ACEOF 3763# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3764case `${MAKE-make} -f conftest.make 2>/dev/null` in 3765 *@@@%%%=?*=@@@%%%*) 3766 eval ac_cv_prog_make_${ac_make}_set=yes;; 3767 *) 3768 eval ac_cv_prog_make_${ac_make}_set=no;; 3769esac 3770rm -f conftest.make 3771fi 3772if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3774printf "%s\n" "yes" >&6; } 3775 SET_MAKE= 3776else 3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3778printf "%s\n" "no" >&6; } 3779 SET_MAKE="MAKE=${MAKE-make}" 3780fi 3781 3782rm -rf .tst 2>/dev/null 3783mkdir .tst 2>/dev/null 3784if test -d .tst; then 3785 am__leading_dot=. 3786else 3787 am__leading_dot=_ 3788fi 3789rmdir .tst 2>/dev/null 3790 3791# Check whether --enable-silent-rules was given. 3792if test ${enable_silent_rules+y} 3793then : 3794 enableval=$enable_silent_rules; 3795fi 3796 3797case $enable_silent_rules in # ((( 3798 yes) AM_DEFAULT_VERBOSITY=0;; 3799 no) AM_DEFAULT_VERBOSITY=1;; 3800 *) AM_DEFAULT_VERBOSITY=1;; 3801esac 3802am_make=${MAKE-make} 3803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3804printf %s "checking whether $am_make supports nested variables... " >&6; } 3805if test ${am_cv_make_support_nested_variables+y} 3806then : 3807 printf %s "(cached) " >&6 3808else $as_nop 3809 if printf "%s\n" 'TRUE=$(BAR$(V)) 3810BAR0=false 3811BAR1=true 3812V=1 3813am__doit: 3814 @$(TRUE) 3815.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3816 am_cv_make_support_nested_variables=yes 3817else 3818 am_cv_make_support_nested_variables=no 3819fi 3820fi 3821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3822printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3823if test $am_cv_make_support_nested_variables = yes; then 3824 AM_V='$(V)' 3825 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3826else 3827 AM_V=$AM_DEFAULT_VERBOSITY 3828 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3829fi 3830AM_BACKSLASH='\' 3831 3832if test "`cd $srcdir && pwd`" != "`pwd`"; then 3833 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3834 # is not polluted with repeated "-I." 3835 am__isrc=' -I$(srcdir)' 3836 # test to see if srcdir already configured 3837 if test -f $srcdir/config.status; then 3838 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3839 fi 3840fi 3841 3842# test whether we have cygpath 3843if test -z "$CYGPATH_W"; then 3844 if (cygpath --version) >/dev/null 2>/dev/null; then 3845 CYGPATH_W='cygpath -w' 3846 else 3847 CYGPATH_W=echo 3848 fi 3849fi 3850 3851 3852# Define the identity of the package. 3853 PACKAGE='isl' 3854 VERSION='0.26' 3855 3856 3857printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3858 3859 3860printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3861 3862# Some tools Automake needs. 3863 3864ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3865 3866 3867AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3868 3869 3870AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3871 3872 3873AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3874 3875 3876MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3877 3878# For better backward compatibility. To be removed once Automake 1.9.x 3879# dies out for good. For more background, see: 3880# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3881# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3882mkdir_p='$(MKDIR_P)' 3883 3884# We need awk for the "check" target (and possibly the TAP driver). The 3885# system "awk" is bad on some platforms. 3886# Always define AMTAR for backward compatibility. Yes, it's still used 3887# in the wild :-( We should find a proper way to deprecate it ... 3888AMTAR='$${TAR-tar}' 3889 3890 3891# We'll loop over all known methods to create a tar archive until one works. 3892_am_tools='gnutar pax cpio none' 3893 3894am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3895 3896 3897 3898 3899 3900# Variables for tags utilities; see am/tags.am 3901if test -z "$CTAGS"; then 3902 CTAGS=ctags 3903fi 3904 3905if test -z "$ETAGS"; then 3906 ETAGS=etags 3907fi 3908 3909if test -z "$CSCOPE"; then 3910 CSCOPE=cscope 3911fi 3912 3913 3914 3915# POSIX will say in a future version that running "rm -f" with no argument 3916# is OK; and we want to be able to make that assumption in our Makefile 3917# recipes. So use an aggressive probe to check that the usage we want is 3918# actually supported "in the wild" to an acceptable degree. 3919# See automake bug#10828. 3920# To make any issue more visible, cause the running configure to be aborted 3921# by default if the 'rm' program in use doesn't match our expectations; the 3922# user can still override this though. 3923if rm -f && rm -fr && rm -rf; then : OK; else 3924 cat >&2 <<'END' 3925Oops! 3926 3927Your 'rm' program seems unable to run without file operands specified 3928on the command line, even when the '-f' option is present. This is contrary 3929to the behaviour of most rm programs out there, and not conforming with 3930the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3931 3932Please tell bug-automake@gnu.org about your system, including the value 3933of your $PATH and any error possibly output before this message. This 3934can help us improve future automake versions. 3935 3936END 3937 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3938 echo 'Configuration will proceed anyway, since you have set the' >&2 3939 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3940 echo >&2 3941 else 3942 cat >&2 <<'END' 3943Aborting the configuration process, to ensure you take notice of the issue. 3944 3945You can download and install GNU coreutils to get an 'rm' implementation 3946that behaves properly: <https://www.gnu.org/software/coreutils/>. 3947 3948If you want to complete the configuration process using your problematic 3949'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3950to "yes", and re-run configure. 3951 3952END 3953 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3954 fi 3955fi 3956 3957# Check whether --enable-silent-rules was given. 3958if test ${enable_silent_rules+y} 3959then : 3960 enableval=$enable_silent_rules; 3961fi 3962 3963case $enable_silent_rules in # ((( 3964 yes) AM_DEFAULT_VERBOSITY=0;; 3965 no) AM_DEFAULT_VERBOSITY=1;; 3966 *) AM_DEFAULT_VERBOSITY=0;; 3967esac 3968am_make=${MAKE-make} 3969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3970printf %s "checking whether $am_make supports nested variables... " >&6; } 3971if test ${am_cv_make_support_nested_variables+y} 3972then : 3973 printf %s "(cached) " >&6 3974else $as_nop 3975 if printf "%s\n" 'TRUE=$(BAR$(V)) 3976BAR0=false 3977BAR1=true 3978V=1 3979am__doit: 3980 @$(TRUE) 3981.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3982 am_cv_make_support_nested_variables=yes 3983else 3984 am_cv_make_support_nested_variables=no 3985fi 3986fi 3987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3988printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3989if test $am_cv_make_support_nested_variables = yes; then 3990 AM_V='$(V)' 3991 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3992else 3993 AM_V=$AM_DEFAULT_VERBOSITY 3994 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3995fi 3996AM_BACKSLASH='\' 3997 3998 3999versioninfo=26:0:3 4000 4001if test "x$prefix" != "xNONE"; then 4002 prefix_wd=`cd $prefix && pwd` 4003 srcdir_wd=`cd $srcdir && pwd` 4004 wd=`pwd` 4005 if test "x$prefix_wd" = "x$srcdir_wd"; then 4006 as_fn_error $? "Installation in source directory not supported" "$LINENO" 5 4007 fi 4008 if test "x$prefix_wd" = "x$wd"; then 4009 as_fn_error $? "Installation in build directory not supported" "$LINENO" 5 4010 fi 4011fi 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022ac_ext=c 4023ac_cpp='$CPP $CPPFLAGS' 4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4026ac_compiler_gnu=$ac_cv_c_compiler_gnu 4027if test -n "$ac_tool_prefix"; then 4028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4029set dummy ${ac_tool_prefix}gcc; ac_word=$2 4030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4031printf %s "checking for $ac_word... " >&6; } 4032if test ${ac_cv_prog_CC+y} 4033then : 4034 printf %s "(cached) " >&6 4035else $as_nop 4036 if test -n "$CC"; then 4037 ac_cv_prog_CC="$CC" # Let the user override the test. 4038else 4039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4040for as_dir in $PATH 4041do 4042 IFS=$as_save_IFS 4043 case $as_dir in #((( 4044 '') as_dir=./ ;; 4045 */) ;; 4046 *) as_dir=$as_dir/ ;; 4047 esac 4048 for ac_exec_ext in '' $ac_executable_extensions; do 4049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4050 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4052 break 2 4053 fi 4054done 4055 done 4056IFS=$as_save_IFS 4057 4058fi 4059fi 4060CC=$ac_cv_prog_CC 4061if test -n "$CC"; then 4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4063printf "%s\n" "$CC" >&6; } 4064else 4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4066printf "%s\n" "no" >&6; } 4067fi 4068 4069 4070fi 4071if test -z "$ac_cv_prog_CC"; then 4072 ac_ct_CC=$CC 4073 # Extract the first word of "gcc", so it can be a program name with args. 4074set dummy gcc; ac_word=$2 4075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4076printf %s "checking for $ac_word... " >&6; } 4077if test ${ac_cv_prog_ac_ct_CC+y} 4078then : 4079 printf %s "(cached) " >&6 4080else $as_nop 4081 if test -n "$ac_ct_CC"; then 4082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4083else 4084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4085for as_dir in $PATH 4086do 4087 IFS=$as_save_IFS 4088 case $as_dir in #((( 4089 '') as_dir=./ ;; 4090 */) ;; 4091 *) as_dir=$as_dir/ ;; 4092 esac 4093 for ac_exec_ext in '' $ac_executable_extensions; do 4094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4095 ac_cv_prog_ac_ct_CC="gcc" 4096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4097 break 2 4098 fi 4099done 4100 done 4101IFS=$as_save_IFS 4102 4103fi 4104fi 4105ac_ct_CC=$ac_cv_prog_ac_ct_CC 4106if test -n "$ac_ct_CC"; then 4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4108printf "%s\n" "$ac_ct_CC" >&6; } 4109else 4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4111printf "%s\n" "no" >&6; } 4112fi 4113 4114 if test "x$ac_ct_CC" = x; then 4115 CC="" 4116 else 4117 case $cross_compiling:$ac_tool_warned in 4118yes:) 4119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4120printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4121ac_tool_warned=yes ;; 4122esac 4123 CC=$ac_ct_CC 4124 fi 4125else 4126 CC="$ac_cv_prog_CC" 4127fi 4128 4129if test -z "$CC"; then 4130 if test -n "$ac_tool_prefix"; then 4131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4132set dummy ${ac_tool_prefix}cc; ac_word=$2 4133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4134printf %s "checking for $ac_word... " >&6; } 4135if test ${ac_cv_prog_CC+y} 4136then : 4137 printf %s "(cached) " >&6 4138else $as_nop 4139 if test -n "$CC"; then 4140 ac_cv_prog_CC="$CC" # Let the user override the test. 4141else 4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4143for as_dir in $PATH 4144do 4145 IFS=$as_save_IFS 4146 case $as_dir in #((( 4147 '') as_dir=./ ;; 4148 */) ;; 4149 *) as_dir=$as_dir/ ;; 4150 esac 4151 for ac_exec_ext in '' $ac_executable_extensions; do 4152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4153 ac_cv_prog_CC="${ac_tool_prefix}cc" 4154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4155 break 2 4156 fi 4157done 4158 done 4159IFS=$as_save_IFS 4160 4161fi 4162fi 4163CC=$ac_cv_prog_CC 4164if test -n "$CC"; then 4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4166printf "%s\n" "$CC" >&6; } 4167else 4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4169printf "%s\n" "no" >&6; } 4170fi 4171 4172 4173 fi 4174fi 4175if test -z "$CC"; then 4176 # Extract the first word of "cc", so it can be a program name with args. 4177set dummy cc; ac_word=$2 4178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4179printf %s "checking for $ac_word... " >&6; } 4180if test ${ac_cv_prog_CC+y} 4181then : 4182 printf %s "(cached) " >&6 4183else $as_nop 4184 if test -n "$CC"; then 4185 ac_cv_prog_CC="$CC" # Let the user override the test. 4186else 4187 ac_prog_rejected=no 4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4189for as_dir in $PATH 4190do 4191 IFS=$as_save_IFS 4192 case $as_dir in #((( 4193 '') as_dir=./ ;; 4194 */) ;; 4195 *) as_dir=$as_dir/ ;; 4196 esac 4197 for ac_exec_ext in '' $ac_executable_extensions; do 4198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4199 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4200 ac_prog_rejected=yes 4201 continue 4202 fi 4203 ac_cv_prog_CC="cc" 4204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4205 break 2 4206 fi 4207done 4208 done 4209IFS=$as_save_IFS 4210 4211if test $ac_prog_rejected = yes; then 4212 # We found a bogon in the path, so make sure we never use it. 4213 set dummy $ac_cv_prog_CC 4214 shift 4215 if test $# != 0; then 4216 # We chose a different compiler from the bogus one. 4217 # However, it has the same basename, so the bogon will be chosen 4218 # first if we set CC to just the basename; use the full file name. 4219 shift 4220 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4221 fi 4222fi 4223fi 4224fi 4225CC=$ac_cv_prog_CC 4226if test -n "$CC"; then 4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4228printf "%s\n" "$CC" >&6; } 4229else 4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4231printf "%s\n" "no" >&6; } 4232fi 4233 4234 4235fi 4236if test -z "$CC"; then 4237 if test -n "$ac_tool_prefix"; then 4238 for ac_prog in cl.exe 4239 do 4240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4241set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4243printf %s "checking for $ac_word... " >&6; } 4244if test ${ac_cv_prog_CC+y} 4245then : 4246 printf %s "(cached) " >&6 4247else $as_nop 4248 if test -n "$CC"; then 4249 ac_cv_prog_CC="$CC" # Let the user override the test. 4250else 4251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4252for as_dir in $PATH 4253do 4254 IFS=$as_save_IFS 4255 case $as_dir in #((( 4256 '') as_dir=./ ;; 4257 */) ;; 4258 *) as_dir=$as_dir/ ;; 4259 esac 4260 for ac_exec_ext in '' $ac_executable_extensions; do 4261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4262 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4264 break 2 4265 fi 4266done 4267 done 4268IFS=$as_save_IFS 4269 4270fi 4271fi 4272CC=$ac_cv_prog_CC 4273if test -n "$CC"; then 4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4275printf "%s\n" "$CC" >&6; } 4276else 4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4278printf "%s\n" "no" >&6; } 4279fi 4280 4281 4282 test -n "$CC" && break 4283 done 4284fi 4285if test -z "$CC"; then 4286 ac_ct_CC=$CC 4287 for ac_prog in cl.exe 4288do 4289 # Extract the first word of "$ac_prog", so it can be a program name with args. 4290set dummy $ac_prog; ac_word=$2 4291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4292printf %s "checking for $ac_word... " >&6; } 4293if test ${ac_cv_prog_ac_ct_CC+y} 4294then : 4295 printf %s "(cached) " >&6 4296else $as_nop 4297 if test -n "$ac_ct_CC"; then 4298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4299else 4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4301for as_dir in $PATH 4302do 4303 IFS=$as_save_IFS 4304 case $as_dir in #((( 4305 '') as_dir=./ ;; 4306 */) ;; 4307 *) as_dir=$as_dir/ ;; 4308 esac 4309 for ac_exec_ext in '' $ac_executable_extensions; do 4310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4311 ac_cv_prog_ac_ct_CC="$ac_prog" 4312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4313 break 2 4314 fi 4315done 4316 done 4317IFS=$as_save_IFS 4318 4319fi 4320fi 4321ac_ct_CC=$ac_cv_prog_ac_ct_CC 4322if test -n "$ac_ct_CC"; then 4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4324printf "%s\n" "$ac_ct_CC" >&6; } 4325else 4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4327printf "%s\n" "no" >&6; } 4328fi 4329 4330 4331 test -n "$ac_ct_CC" && break 4332done 4333 4334 if test "x$ac_ct_CC" = x; then 4335 CC="" 4336 else 4337 case $cross_compiling:$ac_tool_warned in 4338yes:) 4339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4340printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4341ac_tool_warned=yes ;; 4342esac 4343 CC=$ac_ct_CC 4344 fi 4345fi 4346 4347fi 4348if test -z "$CC"; then 4349 if test -n "$ac_tool_prefix"; then 4350 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4351set dummy ${ac_tool_prefix}clang; ac_word=$2 4352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4353printf %s "checking for $ac_word... " >&6; } 4354if test ${ac_cv_prog_CC+y} 4355then : 4356 printf %s "(cached) " >&6 4357else $as_nop 4358 if test -n "$CC"; then 4359 ac_cv_prog_CC="$CC" # Let the user override the test. 4360else 4361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4362for as_dir in $PATH 4363do 4364 IFS=$as_save_IFS 4365 case $as_dir in #((( 4366 '') as_dir=./ ;; 4367 */) ;; 4368 *) as_dir=$as_dir/ ;; 4369 esac 4370 for ac_exec_ext in '' $ac_executable_extensions; do 4371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4372 ac_cv_prog_CC="${ac_tool_prefix}clang" 4373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4374 break 2 4375 fi 4376done 4377 done 4378IFS=$as_save_IFS 4379 4380fi 4381fi 4382CC=$ac_cv_prog_CC 4383if test -n "$CC"; then 4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4385printf "%s\n" "$CC" >&6; } 4386else 4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4388printf "%s\n" "no" >&6; } 4389fi 4390 4391 4392fi 4393if test -z "$ac_cv_prog_CC"; then 4394 ac_ct_CC=$CC 4395 # Extract the first word of "clang", so it can be a program name with args. 4396set dummy clang; ac_word=$2 4397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4398printf %s "checking for $ac_word... " >&6; } 4399if test ${ac_cv_prog_ac_ct_CC+y} 4400then : 4401 printf %s "(cached) " >&6 4402else $as_nop 4403 if test -n "$ac_ct_CC"; then 4404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4405else 4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4407for as_dir in $PATH 4408do 4409 IFS=$as_save_IFS 4410 case $as_dir in #((( 4411 '') as_dir=./ ;; 4412 */) ;; 4413 *) as_dir=$as_dir/ ;; 4414 esac 4415 for ac_exec_ext in '' $ac_executable_extensions; do 4416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4417 ac_cv_prog_ac_ct_CC="clang" 4418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4419 break 2 4420 fi 4421done 4422 done 4423IFS=$as_save_IFS 4424 4425fi 4426fi 4427ac_ct_CC=$ac_cv_prog_ac_ct_CC 4428if test -n "$ac_ct_CC"; then 4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4430printf "%s\n" "$ac_ct_CC" >&6; } 4431else 4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4433printf "%s\n" "no" >&6; } 4434fi 4435 4436 if test "x$ac_ct_CC" = x; then 4437 CC="" 4438 else 4439 case $cross_compiling:$ac_tool_warned in 4440yes:) 4441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4442printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4443ac_tool_warned=yes ;; 4444esac 4445 CC=$ac_ct_CC 4446 fi 4447else 4448 CC="$ac_cv_prog_CC" 4449fi 4450 4451fi 4452 4453 4454test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4455printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4456as_fn_error $? "no acceptable C compiler found in \$PATH 4457See \`config.log' for more details" "$LINENO" 5; } 4458 4459# Provide some information about the compiler. 4460printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4461set X $ac_compile 4462ac_compiler=$2 4463for ac_option in --version -v -V -qversion -version; do 4464 { { ac_try="$ac_compiler $ac_option >&5" 4465case "(($ac_try" in 4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4467 *) ac_try_echo=$ac_try;; 4468esac 4469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4470printf "%s\n" "$ac_try_echo"; } >&5 4471 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4472 ac_status=$? 4473 if test -s conftest.err; then 4474 sed '10a\ 4475... rest of stderr output deleted ... 4476 10q' conftest.err >conftest.er1 4477 cat conftest.er1 >&5 4478 fi 4479 rm -f conftest.er1 conftest.err 4480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4481 test $ac_status = 0; } 4482done 4483 4484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4485/* end confdefs.h. */ 4486 4487int 4488main (void) 4489{ 4490 4491 ; 4492 return 0; 4493} 4494_ACEOF 4495ac_clean_files_save=$ac_clean_files 4496ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4497# Try to create an executable without -o first, disregard a.out. 4498# It will help us diagnose broken compilers, and finding out an intuition 4499# of exeext. 4500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4501printf %s "checking whether the C compiler works... " >&6; } 4502ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4503 4504# The possible output files: 4505ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4506 4507ac_rmfiles= 4508for ac_file in $ac_files 4509do 4510 case $ac_file in 4511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4512 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4513 esac 4514done 4515rm -f $ac_rmfiles 4516 4517if { { ac_try="$ac_link_default" 4518case "(($ac_try" in 4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4520 *) ac_try_echo=$ac_try;; 4521esac 4522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4523printf "%s\n" "$ac_try_echo"; } >&5 4524 (eval "$ac_link_default") 2>&5 4525 ac_status=$? 4526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4527 test $ac_status = 0; } 4528then : 4529 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4530# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4531# in a Makefile. We should not override ac_cv_exeext if it was cached, 4532# so that the user can short-circuit this test for compilers unknown to 4533# Autoconf. 4534for ac_file in $ac_files '' 4535do 4536 test -f "$ac_file" || continue 4537 case $ac_file in 4538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4539 ;; 4540 [ab].out ) 4541 # We found the default executable, but exeext='' is most 4542 # certainly right. 4543 break;; 4544 *.* ) 4545 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4546 then :; else 4547 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4548 fi 4549 # We set ac_cv_exeext here because the later test for it is not 4550 # safe: cross compilers may not add the suffix if given an `-o' 4551 # argument, so we may need to know it at that point already. 4552 # Even if this section looks crufty: it has the advantage of 4553 # actually working. 4554 break;; 4555 * ) 4556 break;; 4557 esac 4558done 4559test "$ac_cv_exeext" = no && ac_cv_exeext= 4560 4561else $as_nop 4562 ac_file='' 4563fi 4564if test -z "$ac_file" 4565then : 4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4567printf "%s\n" "no" >&6; } 4568printf "%s\n" "$as_me: failed program was:" >&5 4569sed 's/^/| /' conftest.$ac_ext >&5 4570 4571{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4572printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4573as_fn_error 77 "C compiler cannot create executables 4574See \`config.log' for more details" "$LINENO" 5; } 4575else $as_nop 4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4577printf "%s\n" "yes" >&6; } 4578fi 4579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4580printf %s "checking for C compiler default output file name... " >&6; } 4581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4582printf "%s\n" "$ac_file" >&6; } 4583ac_exeext=$ac_cv_exeext 4584 4585rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4586ac_clean_files=$ac_clean_files_save 4587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4588printf %s "checking for suffix of executables... " >&6; } 4589if { { ac_try="$ac_link" 4590case "(($ac_try" in 4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4592 *) ac_try_echo=$ac_try;; 4593esac 4594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4595printf "%s\n" "$ac_try_echo"; } >&5 4596 (eval "$ac_link") 2>&5 4597 ac_status=$? 4598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4599 test $ac_status = 0; } 4600then : 4601 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4602# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4603# work properly (i.e., refer to `conftest.exe'), while it won't with 4604# `rm'. 4605for ac_file in conftest.exe conftest conftest.*; do 4606 test -f "$ac_file" || continue 4607 case $ac_file in 4608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4609 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4610 break;; 4611 * ) break;; 4612 esac 4613done 4614else $as_nop 4615 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4616printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4617as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4618See \`config.log' for more details" "$LINENO" 5; } 4619fi 4620rm -f conftest conftest$ac_cv_exeext 4621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4622printf "%s\n" "$ac_cv_exeext" >&6; } 4623 4624rm -f conftest.$ac_ext 4625EXEEXT=$ac_cv_exeext 4626ac_exeext=$EXEEXT 4627cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4628/* end confdefs.h. */ 4629#include <stdio.h> 4630int 4631main (void) 4632{ 4633FILE *f = fopen ("conftest.out", "w"); 4634 return ferror (f) || fclose (f) != 0; 4635 4636 ; 4637 return 0; 4638} 4639_ACEOF 4640ac_clean_files="$ac_clean_files conftest.out" 4641# Check that the compiler produces executables we can run. If not, either 4642# the compiler is broken, or we cross compile. 4643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4644printf %s "checking whether we are cross compiling... " >&6; } 4645if test "$cross_compiling" != yes; then 4646 { { ac_try="$ac_link" 4647case "(($ac_try" in 4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4649 *) ac_try_echo=$ac_try;; 4650esac 4651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4652printf "%s\n" "$ac_try_echo"; } >&5 4653 (eval "$ac_link") 2>&5 4654 ac_status=$? 4655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4656 test $ac_status = 0; } 4657 if { ac_try='./conftest$ac_cv_exeext' 4658 { { case "(($ac_try" in 4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4660 *) ac_try_echo=$ac_try;; 4661esac 4662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4663printf "%s\n" "$ac_try_echo"; } >&5 4664 (eval "$ac_try") 2>&5 4665 ac_status=$? 4666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4667 test $ac_status = 0; }; }; then 4668 cross_compiling=no 4669 else 4670 if test "$cross_compiling" = maybe; then 4671 cross_compiling=yes 4672 else 4673 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4674printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4675as_fn_error 77 "cannot run C compiled programs. 4676If you meant to cross compile, use \`--host'. 4677See \`config.log' for more details" "$LINENO" 5; } 4678 fi 4679 fi 4680fi 4681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4682printf "%s\n" "$cross_compiling" >&6; } 4683 4684rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4685ac_clean_files=$ac_clean_files_save 4686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4687printf %s "checking for suffix of object files... " >&6; } 4688if test ${ac_cv_objext+y} 4689then : 4690 printf %s "(cached) " >&6 4691else $as_nop 4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4693/* end confdefs.h. */ 4694 4695int 4696main (void) 4697{ 4698 4699 ; 4700 return 0; 4701} 4702_ACEOF 4703rm -f conftest.o conftest.obj 4704if { { ac_try="$ac_compile" 4705case "(($ac_try" in 4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4707 *) ac_try_echo=$ac_try;; 4708esac 4709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4710printf "%s\n" "$ac_try_echo"; } >&5 4711 (eval "$ac_compile") 2>&5 4712 ac_status=$? 4713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4714 test $ac_status = 0; } 4715then : 4716 for ac_file in conftest.o conftest.obj conftest.*; do 4717 test -f "$ac_file" || continue; 4718 case $ac_file in 4719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4721 break;; 4722 esac 4723done 4724else $as_nop 4725 printf "%s\n" "$as_me: failed program was:" >&5 4726sed 's/^/| /' conftest.$ac_ext >&5 4727 4728{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4729printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4730as_fn_error $? "cannot compute suffix of object files: cannot compile 4731See \`config.log' for more details" "$LINENO" 5; } 4732fi 4733rm -f conftest.$ac_cv_objext conftest.$ac_ext 4734fi 4735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4736printf "%s\n" "$ac_cv_objext" >&6; } 4737OBJEXT=$ac_cv_objext 4738ac_objext=$OBJEXT 4739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4740printf %s "checking whether the compiler supports GNU C... " >&6; } 4741if test ${ac_cv_c_compiler_gnu+y} 4742then : 4743 printf %s "(cached) " >&6 4744else $as_nop 4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4746/* end confdefs.h. */ 4747 4748int 4749main (void) 4750{ 4751#ifndef __GNUC__ 4752 choke me 4753#endif 4754 4755 ; 4756 return 0; 4757} 4758_ACEOF 4759if ac_fn_c_try_compile "$LINENO" 4760then : 4761 ac_compiler_gnu=yes 4762else $as_nop 4763 ac_compiler_gnu=no 4764fi 4765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4766ac_cv_c_compiler_gnu=$ac_compiler_gnu 4767 4768fi 4769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4770printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4771ac_compiler_gnu=$ac_cv_c_compiler_gnu 4772 4773if test $ac_compiler_gnu = yes; then 4774 GCC=yes 4775else 4776 GCC= 4777fi 4778ac_test_CFLAGS=${CFLAGS+y} 4779ac_save_CFLAGS=$CFLAGS 4780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4781printf %s "checking whether $CC accepts -g... " >&6; } 4782if test ${ac_cv_prog_cc_g+y} 4783then : 4784 printf %s "(cached) " >&6 4785else $as_nop 4786 ac_save_c_werror_flag=$ac_c_werror_flag 4787 ac_c_werror_flag=yes 4788 ac_cv_prog_cc_g=no 4789 CFLAGS="-g" 4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4791/* end confdefs.h. */ 4792 4793int 4794main (void) 4795{ 4796 4797 ; 4798 return 0; 4799} 4800_ACEOF 4801if ac_fn_c_try_compile "$LINENO" 4802then : 4803 ac_cv_prog_cc_g=yes 4804else $as_nop 4805 CFLAGS="" 4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4807/* end confdefs.h. */ 4808 4809int 4810main (void) 4811{ 4812 4813 ; 4814 return 0; 4815} 4816_ACEOF 4817if ac_fn_c_try_compile "$LINENO" 4818then : 4819 4820else $as_nop 4821 ac_c_werror_flag=$ac_save_c_werror_flag 4822 CFLAGS="-g" 4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4824/* end confdefs.h. */ 4825 4826int 4827main (void) 4828{ 4829 4830 ; 4831 return 0; 4832} 4833_ACEOF 4834if ac_fn_c_try_compile "$LINENO" 4835then : 4836 ac_cv_prog_cc_g=yes 4837fi 4838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4839fi 4840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4841fi 4842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4843 ac_c_werror_flag=$ac_save_c_werror_flag 4844fi 4845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4846printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4847if test $ac_test_CFLAGS; then 4848 CFLAGS=$ac_save_CFLAGS 4849elif test $ac_cv_prog_cc_g = yes; then 4850 if test "$GCC" = yes; then 4851 CFLAGS="-g -O2" 4852 else 4853 CFLAGS="-g" 4854 fi 4855else 4856 if test "$GCC" = yes; then 4857 CFLAGS="-O2" 4858 else 4859 CFLAGS= 4860 fi 4861fi 4862ac_prog_cc_stdc=no 4863if test x$ac_prog_cc_stdc = xno 4864then : 4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4866printf %s "checking for $CC option to enable C11 features... " >&6; } 4867if test ${ac_cv_prog_cc_c11+y} 4868then : 4869 printf %s "(cached) " >&6 4870else $as_nop 4871 ac_cv_prog_cc_c11=no 4872ac_save_CC=$CC 4873cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4874/* end confdefs.h. */ 4875$ac_c_conftest_c11_program 4876_ACEOF 4877for ac_arg in '' -std=gnu11 4878do 4879 CC="$ac_save_CC $ac_arg" 4880 if ac_fn_c_try_compile "$LINENO" 4881then : 4882 ac_cv_prog_cc_c11=$ac_arg 4883fi 4884rm -f core conftest.err conftest.$ac_objext conftest.beam 4885 test "x$ac_cv_prog_cc_c11" != "xno" && break 4886done 4887rm -f conftest.$ac_ext 4888CC=$ac_save_CC 4889fi 4890 4891if test "x$ac_cv_prog_cc_c11" = xno 4892then : 4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4894printf "%s\n" "unsupported" >&6; } 4895else $as_nop 4896 if test "x$ac_cv_prog_cc_c11" = x 4897then : 4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4899printf "%s\n" "none needed" >&6; } 4900else $as_nop 4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4902printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4903 CC="$CC $ac_cv_prog_cc_c11" 4904fi 4905 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4906 ac_prog_cc_stdc=c11 4907fi 4908fi 4909if test x$ac_prog_cc_stdc = xno 4910then : 4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4912printf %s "checking for $CC option to enable C99 features... " >&6; } 4913if test ${ac_cv_prog_cc_c99+y} 4914then : 4915 printf %s "(cached) " >&6 4916else $as_nop 4917 ac_cv_prog_cc_c99=no 4918ac_save_CC=$CC 4919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4920/* end confdefs.h. */ 4921$ac_c_conftest_c99_program 4922_ACEOF 4923for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4924do 4925 CC="$ac_save_CC $ac_arg" 4926 if ac_fn_c_try_compile "$LINENO" 4927then : 4928 ac_cv_prog_cc_c99=$ac_arg 4929fi 4930rm -f core conftest.err conftest.$ac_objext conftest.beam 4931 test "x$ac_cv_prog_cc_c99" != "xno" && break 4932done 4933rm -f conftest.$ac_ext 4934CC=$ac_save_CC 4935fi 4936 4937if test "x$ac_cv_prog_cc_c99" = xno 4938then : 4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4940printf "%s\n" "unsupported" >&6; } 4941else $as_nop 4942 if test "x$ac_cv_prog_cc_c99" = x 4943then : 4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4945printf "%s\n" "none needed" >&6; } 4946else $as_nop 4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4948printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4949 CC="$CC $ac_cv_prog_cc_c99" 4950fi 4951 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4952 ac_prog_cc_stdc=c99 4953fi 4954fi 4955if test x$ac_prog_cc_stdc = xno 4956then : 4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4958printf %s "checking for $CC option to enable C89 features... " >&6; } 4959if test ${ac_cv_prog_cc_c89+y} 4960then : 4961 printf %s "(cached) " >&6 4962else $as_nop 4963 ac_cv_prog_cc_c89=no 4964ac_save_CC=$CC 4965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4966/* end confdefs.h. */ 4967$ac_c_conftest_c89_program 4968_ACEOF 4969for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4970do 4971 CC="$ac_save_CC $ac_arg" 4972 if ac_fn_c_try_compile "$LINENO" 4973then : 4974 ac_cv_prog_cc_c89=$ac_arg 4975fi 4976rm -f core conftest.err conftest.$ac_objext conftest.beam 4977 test "x$ac_cv_prog_cc_c89" != "xno" && break 4978done 4979rm -f conftest.$ac_ext 4980CC=$ac_save_CC 4981fi 4982 4983if test "x$ac_cv_prog_cc_c89" = xno 4984then : 4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4986printf "%s\n" "unsupported" >&6; } 4987else $as_nop 4988 if test "x$ac_cv_prog_cc_c89" = x 4989then : 4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4991printf "%s\n" "none needed" >&6; } 4992else $as_nop 4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4994printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4995 CC="$CC $ac_cv_prog_cc_c89" 4996fi 4997 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4998 ac_prog_cc_stdc=c89 4999fi 5000fi 5001 5002ac_ext=c 5003ac_cpp='$CPP $CPPFLAGS' 5004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5006ac_compiler_gnu=$ac_cv_c_compiler_gnu 5007 5008 5009 ac_ext=c 5010ac_cpp='$CPP $CPPFLAGS' 5011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5013ac_compiler_gnu=$ac_cv_c_compiler_gnu 5014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5015printf %s "checking whether $CC understands -c and -o together... " >&6; } 5016if test ${am_cv_prog_cc_c_o+y} 5017then : 5018 printf %s "(cached) " >&6 5019else $as_nop 5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5021/* end confdefs.h. */ 5022 5023int 5024main (void) 5025{ 5026 5027 ; 5028 return 0; 5029} 5030_ACEOF 5031 # Make sure it works both with $CC and with simple cc. 5032 # Following AC_PROG_CC_C_O, we do the test twice because some 5033 # compilers refuse to overwrite an existing .o file with -o, 5034 # though they will create one. 5035 am_cv_prog_cc_c_o=yes 5036 for am_i in 1 2; do 5037 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5038 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5039 ac_status=$? 5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5041 (exit $ac_status); } \ 5042 && test -f conftest2.$ac_objext; then 5043 : OK 5044 else 5045 am_cv_prog_cc_c_o=no 5046 break 5047 fi 5048 done 5049 rm -f core conftest* 5050 unset am_i 5051fi 5052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5053printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5054if test "$am_cv_prog_cc_c_o" != yes; then 5055 # Losing compiler, so override with the script. 5056 # FIXME: It is wrong to rewrite CC. 5057 # But if we don't then we get into trouble of one sort or another. 5058 # A longer-term fix would be to have automake use am__CC in this case, 5059 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5060 CC="$am_aux_dir/compile $CC" 5061fi 5062ac_ext=c 5063ac_cpp='$CPP $CPPFLAGS' 5064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5066ac_compiler_gnu=$ac_cv_c_compiler_gnu 5067 5068DEPDIR="${am__leading_dot}deps" 5069 5070ac_config_commands="$ac_config_commands depfiles" 5071 5072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 5073printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 5074cat > confinc.mk << 'END' 5075am__doit: 5076 @echo this is the am__doit target >confinc.out 5077.PHONY: am__doit 5078END 5079am__include="#" 5080am__quote= 5081# BSD make does it like this. 5082echo '.include "confinc.mk" # ignored' > confmf.BSD 5083# Other make implementations (GNU, Solaris 10, AIX) do it like this. 5084echo 'include confinc.mk # ignored' > confmf.GNU 5085_am_result=no 5086for s in GNU BSD; do 5087 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 5088 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 5089 ac_status=$? 5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5091 (exit $ac_status); } 5092 case $?:`cat confinc.out 2>/dev/null` in #( 5093 '0:this is the am__doit target') : 5094 case $s in #( 5095 BSD) : 5096 am__include='.include' am__quote='"' ;; #( 5097 *) : 5098 am__include='include' am__quote='' ;; 5099esac ;; #( 5100 *) : 5101 ;; 5102esac 5103 if test "$am__include" != "#"; then 5104 _am_result="yes ($s style)" 5105 break 5106 fi 5107done 5108rm -f confinc.* confmf.* 5109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5110printf "%s\n" "${_am_result}" >&6; } 5111 5112# Check whether --enable-dependency-tracking was given. 5113if test ${enable_dependency_tracking+y} 5114then : 5115 enableval=$enable_dependency_tracking; 5116fi 5117 5118if test "x$enable_dependency_tracking" != xno; then 5119 am_depcomp="$ac_aux_dir/depcomp" 5120 AMDEPBACKSLASH='\' 5121 am__nodep='_no' 5122fi 5123 if test "x$enable_dependency_tracking" != xno; then 5124 AMDEP_TRUE= 5125 AMDEP_FALSE='#' 5126else 5127 AMDEP_TRUE='#' 5128 AMDEP_FALSE= 5129fi 5130 5131 5132 5133depcc="$CC" am_compiler_list= 5134 5135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5136printf %s "checking dependency style of $depcc... " >&6; } 5137if test ${am_cv_CC_dependencies_compiler_type+y} 5138then : 5139 printf %s "(cached) " >&6 5140else $as_nop 5141 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5142 # We make a subdir and do the tests there. Otherwise we can end up 5143 # making bogus files that we don't know about and never remove. For 5144 # instance it was reported that on HP-UX the gcc test will end up 5145 # making a dummy file named 'D' -- because '-MD' means "put the output 5146 # in D". 5147 rm -rf conftest.dir 5148 mkdir conftest.dir 5149 # Copy depcomp to subdir because otherwise we won't find it if we're 5150 # using a relative directory. 5151 cp "$am_depcomp" conftest.dir 5152 cd conftest.dir 5153 # We will build objects and dependencies in a subdirectory because 5154 # it helps to detect inapplicable dependency modes. For instance 5155 # both Tru64's cc and ICC support -MD to output dependencies as a 5156 # side effect of compilation, but ICC will put the dependencies in 5157 # the current directory while Tru64 will put them in the object 5158 # directory. 5159 mkdir sub 5160 5161 am_cv_CC_dependencies_compiler_type=none 5162 if test "$am_compiler_list" = ""; then 5163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5164 fi 5165 am__universal=false 5166 case " $depcc " in #( 5167 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5168 esac 5169 5170 for depmode in $am_compiler_list; do 5171 # Setup a source with many dependencies, because some compilers 5172 # like to wrap large dependency lists on column 80 (with \), and 5173 # we should not choose a depcomp mode which is confused by this. 5174 # 5175 # We need to recreate these files for each test, as the compiler may 5176 # overwrite some of them when testing with obscure command lines. 5177 # This happens at least with the AIX C compiler. 5178 : > sub/conftest.c 5179 for i in 1 2 3 4 5 6; do 5180 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5181 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5182 # Solaris 10 /bin/sh. 5183 echo '/* dummy */' > sub/conftst$i.h 5184 done 5185 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5186 5187 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5188 # mode. It turns out that the SunPro C++ compiler does not properly 5189 # handle '-M -o', and we need to detect this. Also, some Intel 5190 # versions had trouble with output in subdirs. 5191 am__obj=sub/conftest.${OBJEXT-o} 5192 am__minus_obj="-o $am__obj" 5193 case $depmode in 5194 gcc) 5195 # This depmode causes a compiler race in universal mode. 5196 test "$am__universal" = false || continue 5197 ;; 5198 nosideeffect) 5199 # After this tag, mechanisms are not by side-effect, so they'll 5200 # only be used when explicitly requested. 5201 if test "x$enable_dependency_tracking" = xyes; then 5202 continue 5203 else 5204 break 5205 fi 5206 ;; 5207 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5208 # This compiler won't grok '-c -o', but also, the minuso test has 5209 # not run yet. These depmodes are late enough in the game, and 5210 # so weak that their functioning should not be impacted. 5211 am__obj=conftest.${OBJEXT-o} 5212 am__minus_obj= 5213 ;; 5214 none) break ;; 5215 esac 5216 if depmode=$depmode \ 5217 source=sub/conftest.c object=$am__obj \ 5218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5219 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5220 >/dev/null 2>conftest.err && 5221 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5223 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5225 # icc doesn't choke on unknown options, it will just issue warnings 5226 # or remarks (even with -Werror). So we grep stderr for any message 5227 # that says an option was ignored or not supported. 5228 # When given -MP, icc 7.0 and 7.1 complain thusly: 5229 # icc: Command line warning: ignoring option '-M'; no argument required 5230 # The diagnosis changed in icc 8.0: 5231 # icc: Command line remark: option '-MP' not supported 5232 if (grep 'ignoring option' conftest.err || 5233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5234 am_cv_CC_dependencies_compiler_type=$depmode 5235 break 5236 fi 5237 fi 5238 done 5239 5240 cd .. 5241 rm -rf conftest.dir 5242else 5243 am_cv_CC_dependencies_compiler_type=none 5244fi 5245 5246fi 5247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5248printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5249CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5250 5251 if 5252 test "x$enable_dependency_tracking" != xno \ 5253 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5254 am__fastdepCC_TRUE= 5255 am__fastdepCC_FALSE='#' 5256else 5257 am__fastdepCC_TRUE='#' 5258 am__fastdepCC_FALSE= 5259fi 5260 5261 5262 5263 5264 5265 5266 5267 5268ac_ext=cpp 5269ac_cpp='$CXXCPP $CPPFLAGS' 5270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5273if test -z "$CXX"; then 5274 if test -n "$CCC"; then 5275 CXX=$CCC 5276 else 5277 if test -n "$ac_tool_prefix"; then 5278 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 5279 do 5280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5281set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5283printf %s "checking for $ac_word... " >&6; } 5284if test ${ac_cv_prog_CXX+y} 5285then : 5286 printf %s "(cached) " >&6 5287else $as_nop 5288 if test -n "$CXX"; then 5289 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5290else 5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5292for as_dir in $PATH 5293do 5294 IFS=$as_save_IFS 5295 case $as_dir in #((( 5296 '') as_dir=./ ;; 5297 */) ;; 5298 *) as_dir=$as_dir/ ;; 5299 esac 5300 for ac_exec_ext in '' $ac_executable_extensions; do 5301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5302 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5304 break 2 5305 fi 5306done 5307 done 5308IFS=$as_save_IFS 5309 5310fi 5311fi 5312CXX=$ac_cv_prog_CXX 5313if test -n "$CXX"; then 5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5315printf "%s\n" "$CXX" >&6; } 5316else 5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5318printf "%s\n" "no" >&6; } 5319fi 5320 5321 5322 test -n "$CXX" && break 5323 done 5324fi 5325if test -z "$CXX"; then 5326 ac_ct_CXX=$CXX 5327 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 5328do 5329 # Extract the first word of "$ac_prog", so it can be a program name with args. 5330set dummy $ac_prog; ac_word=$2 5331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5332printf %s "checking for $ac_word... " >&6; } 5333if test ${ac_cv_prog_ac_ct_CXX+y} 5334then : 5335 printf %s "(cached) " >&6 5336else $as_nop 5337 if test -n "$ac_ct_CXX"; then 5338 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5339else 5340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5341for as_dir in $PATH 5342do 5343 IFS=$as_save_IFS 5344 case $as_dir in #((( 5345 '') as_dir=./ ;; 5346 */) ;; 5347 *) as_dir=$as_dir/ ;; 5348 esac 5349 for ac_exec_ext in '' $ac_executable_extensions; do 5350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5351 ac_cv_prog_ac_ct_CXX="$ac_prog" 5352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5353 break 2 5354 fi 5355done 5356 done 5357IFS=$as_save_IFS 5358 5359fi 5360fi 5361ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5362if test -n "$ac_ct_CXX"; then 5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5364printf "%s\n" "$ac_ct_CXX" >&6; } 5365else 5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5367printf "%s\n" "no" >&6; } 5368fi 5369 5370 5371 test -n "$ac_ct_CXX" && break 5372done 5373 5374 if test "x$ac_ct_CXX" = x; then 5375 CXX="g++" 5376 else 5377 case $cross_compiling:$ac_tool_warned in 5378yes:) 5379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5380printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5381ac_tool_warned=yes ;; 5382esac 5383 CXX=$ac_ct_CXX 5384 fi 5385fi 5386 5387 fi 5388fi 5389# Provide some information about the compiler. 5390printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5391set X $ac_compile 5392ac_compiler=$2 5393for ac_option in --version -v -V -qversion; do 5394 { { ac_try="$ac_compiler $ac_option >&5" 5395case "(($ac_try" in 5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5397 *) ac_try_echo=$ac_try;; 5398esac 5399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5400printf "%s\n" "$ac_try_echo"; } >&5 5401 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5402 ac_status=$? 5403 if test -s conftest.err; then 5404 sed '10a\ 5405... rest of stderr output deleted ... 5406 10q' conftest.err >conftest.er1 5407 cat conftest.er1 >&5 5408 fi 5409 rm -f conftest.er1 conftest.err 5410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5411 test $ac_status = 0; } 5412done 5413 5414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 5415printf %s "checking whether the compiler supports GNU C++... " >&6; } 5416if test ${ac_cv_cxx_compiler_gnu+y} 5417then : 5418 printf %s "(cached) " >&6 5419else $as_nop 5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5421/* end confdefs.h. */ 5422 5423int 5424main (void) 5425{ 5426#ifndef __GNUC__ 5427 choke me 5428#endif 5429 5430 ; 5431 return 0; 5432} 5433_ACEOF 5434if ac_fn_cxx_try_compile "$LINENO" 5435then : 5436 ac_compiler_gnu=yes 5437else $as_nop 5438 ac_compiler_gnu=no 5439fi 5440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5441ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5442 5443fi 5444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5445printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 5446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5447 5448if test $ac_compiler_gnu = yes; then 5449 GXX=yes 5450else 5451 GXX= 5452fi 5453ac_test_CXXFLAGS=${CXXFLAGS+y} 5454ac_save_CXXFLAGS=$CXXFLAGS 5455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5456printf %s "checking whether $CXX accepts -g... " >&6; } 5457if test ${ac_cv_prog_cxx_g+y} 5458then : 5459 printf %s "(cached) " >&6 5460else $as_nop 5461 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5462 ac_cxx_werror_flag=yes 5463 ac_cv_prog_cxx_g=no 5464 CXXFLAGS="-g" 5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5466/* end confdefs.h. */ 5467 5468int 5469main (void) 5470{ 5471 5472 ; 5473 return 0; 5474} 5475_ACEOF 5476if ac_fn_cxx_try_compile "$LINENO" 5477then : 5478 ac_cv_prog_cxx_g=yes 5479else $as_nop 5480 CXXFLAGS="" 5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482/* end confdefs.h. */ 5483 5484int 5485main (void) 5486{ 5487 5488 ; 5489 return 0; 5490} 5491_ACEOF 5492if ac_fn_cxx_try_compile "$LINENO" 5493then : 5494 5495else $as_nop 5496 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5497 CXXFLAGS="-g" 5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5499/* end confdefs.h. */ 5500 5501int 5502main (void) 5503{ 5504 5505 ; 5506 return 0; 5507} 5508_ACEOF 5509if ac_fn_cxx_try_compile "$LINENO" 5510then : 5511 ac_cv_prog_cxx_g=yes 5512fi 5513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5514fi 5515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5516fi 5517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5518 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5519fi 5520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5521printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 5522if test $ac_test_CXXFLAGS; then 5523 CXXFLAGS=$ac_save_CXXFLAGS 5524elif test $ac_cv_prog_cxx_g = yes; then 5525 if test "$GXX" = yes; then 5526 CXXFLAGS="-g -O2" 5527 else 5528 CXXFLAGS="-g" 5529 fi 5530else 5531 if test "$GXX" = yes; then 5532 CXXFLAGS="-O2" 5533 else 5534 CXXFLAGS= 5535 fi 5536fi 5537ac_prog_cxx_stdcxx=no 5538if test x$ac_prog_cxx_stdcxx = xno 5539then : 5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 5541printf %s "checking for $CXX option to enable C++11 features... " >&6; } 5542if test ${ac_cv_prog_cxx_11+y} 5543then : 5544 printf %s "(cached) " >&6 5545else $as_nop 5546 ac_cv_prog_cxx_11=no 5547ac_save_CXX=$CXX 5548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5549/* end confdefs.h. */ 5550$ac_cxx_conftest_cxx11_program 5551_ACEOF 5552for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 5553do 5554 CXX="$ac_save_CXX $ac_arg" 5555 if ac_fn_cxx_try_compile "$LINENO" 5556then : 5557 ac_cv_prog_cxx_cxx11=$ac_arg 5558fi 5559rm -f core conftest.err conftest.$ac_objext conftest.beam 5560 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 5561done 5562rm -f conftest.$ac_ext 5563CXX=$ac_save_CXX 5564fi 5565 5566if test "x$ac_cv_prog_cxx_cxx11" = xno 5567then : 5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5569printf "%s\n" "unsupported" >&6; } 5570else $as_nop 5571 if test "x$ac_cv_prog_cxx_cxx11" = x 5572then : 5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5574printf "%s\n" "none needed" >&6; } 5575else $as_nop 5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 5577printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 5578 CXX="$CXX $ac_cv_prog_cxx_cxx11" 5579fi 5580 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 5581 ac_prog_cxx_stdcxx=cxx11 5582fi 5583fi 5584if test x$ac_prog_cxx_stdcxx = xno 5585then : 5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 5587printf %s "checking for $CXX option to enable C++98 features... " >&6; } 5588if test ${ac_cv_prog_cxx_98+y} 5589then : 5590 printf %s "(cached) " >&6 5591else $as_nop 5592 ac_cv_prog_cxx_98=no 5593ac_save_CXX=$CXX 5594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5595/* end confdefs.h. */ 5596$ac_cxx_conftest_cxx98_program 5597_ACEOF 5598for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 5599do 5600 CXX="$ac_save_CXX $ac_arg" 5601 if ac_fn_cxx_try_compile "$LINENO" 5602then : 5603 ac_cv_prog_cxx_cxx98=$ac_arg 5604fi 5605rm -f core conftest.err conftest.$ac_objext conftest.beam 5606 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 5607done 5608rm -f conftest.$ac_ext 5609CXX=$ac_save_CXX 5610fi 5611 5612if test "x$ac_cv_prog_cxx_cxx98" = xno 5613then : 5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5615printf "%s\n" "unsupported" >&6; } 5616else $as_nop 5617 if test "x$ac_cv_prog_cxx_cxx98" = x 5618then : 5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5620printf "%s\n" "none needed" >&6; } 5621else $as_nop 5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 5623printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 5624 CXX="$CXX $ac_cv_prog_cxx_cxx98" 5625fi 5626 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 5627 ac_prog_cxx_stdcxx=cxx98 5628fi 5629fi 5630 5631ac_ext=c 5632ac_cpp='$CPP $CPPFLAGS' 5633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5635ac_compiler_gnu=$ac_cv_c_compiler_gnu 5636 5637depcc="$CXX" am_compiler_list= 5638 5639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5640printf %s "checking dependency style of $depcc... " >&6; } 5641if test ${am_cv_CXX_dependencies_compiler_type+y} 5642then : 5643 printf %s "(cached) " >&6 5644else $as_nop 5645 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5646 # We make a subdir and do the tests there. Otherwise we can end up 5647 # making bogus files that we don't know about and never remove. For 5648 # instance it was reported that on HP-UX the gcc test will end up 5649 # making a dummy file named 'D' -- because '-MD' means "put the output 5650 # in D". 5651 rm -rf conftest.dir 5652 mkdir conftest.dir 5653 # Copy depcomp to subdir because otherwise we won't find it if we're 5654 # using a relative directory. 5655 cp "$am_depcomp" conftest.dir 5656 cd conftest.dir 5657 # We will build objects and dependencies in a subdirectory because 5658 # it helps to detect inapplicable dependency modes. For instance 5659 # both Tru64's cc and ICC support -MD to output dependencies as a 5660 # side effect of compilation, but ICC will put the dependencies in 5661 # the current directory while Tru64 will put them in the object 5662 # directory. 5663 mkdir sub 5664 5665 am_cv_CXX_dependencies_compiler_type=none 5666 if test "$am_compiler_list" = ""; then 5667 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5668 fi 5669 am__universal=false 5670 case " $depcc " in #( 5671 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5672 esac 5673 5674 for depmode in $am_compiler_list; do 5675 # Setup a source with many dependencies, because some compilers 5676 # like to wrap large dependency lists on column 80 (with \), and 5677 # we should not choose a depcomp mode which is confused by this. 5678 # 5679 # We need to recreate these files for each test, as the compiler may 5680 # overwrite some of them when testing with obscure command lines. 5681 # This happens at least with the AIX C compiler. 5682 : > sub/conftest.c 5683 for i in 1 2 3 4 5 6; do 5684 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5685 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5686 # Solaris 10 /bin/sh. 5687 echo '/* dummy */' > sub/conftst$i.h 5688 done 5689 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5690 5691 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5692 # mode. It turns out that the SunPro C++ compiler does not properly 5693 # handle '-M -o', and we need to detect this. Also, some Intel 5694 # versions had trouble with output in subdirs. 5695 am__obj=sub/conftest.${OBJEXT-o} 5696 am__minus_obj="-o $am__obj" 5697 case $depmode in 5698 gcc) 5699 # This depmode causes a compiler race in universal mode. 5700 test "$am__universal" = false || continue 5701 ;; 5702 nosideeffect) 5703 # After this tag, mechanisms are not by side-effect, so they'll 5704 # only be used when explicitly requested. 5705 if test "x$enable_dependency_tracking" = xyes; then 5706 continue 5707 else 5708 break 5709 fi 5710 ;; 5711 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5712 # This compiler won't grok '-c -o', but also, the minuso test has 5713 # not run yet. These depmodes are late enough in the game, and 5714 # so weak that their functioning should not be impacted. 5715 am__obj=conftest.${OBJEXT-o} 5716 am__minus_obj= 5717 ;; 5718 none) break ;; 5719 esac 5720 if depmode=$depmode \ 5721 source=sub/conftest.c object=$am__obj \ 5722 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5723 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5724 >/dev/null 2>conftest.err && 5725 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5726 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5727 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5728 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5729 # icc doesn't choke on unknown options, it will just issue warnings 5730 # or remarks (even with -Werror). So we grep stderr for any message 5731 # that says an option was ignored or not supported. 5732 # When given -MP, icc 7.0 and 7.1 complain thusly: 5733 # icc: Command line warning: ignoring option '-M'; no argument required 5734 # The diagnosis changed in icc 8.0: 5735 # icc: Command line remark: option '-MP' not supported 5736 if (grep 'ignoring option' conftest.err || 5737 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5738 am_cv_CXX_dependencies_compiler_type=$depmode 5739 break 5740 fi 5741 fi 5742 done 5743 5744 cd .. 5745 rm -rf conftest.dir 5746else 5747 am_cv_CXX_dependencies_compiler_type=none 5748fi 5749 5750fi 5751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5752printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } 5753CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5754 5755 if 5756 test "x$enable_dependency_tracking" != xno \ 5757 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5758 am__fastdepCXX_TRUE= 5759 am__fastdepCXX_FALSE='#' 5760else 5761 am__fastdepCXX_TRUE='#' 5762 am__fastdepCXX_FALSE= 5763fi 5764 5765 5766ac_ext=c 5767ac_cpp='$CPP $CPPFLAGS' 5768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5770ac_compiler_gnu=$ac_cv_c_compiler_gnu 5771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5772printf %s "checking how to run the C preprocessor... " >&6; } 5773# On Suns, sometimes $CPP names a directory. 5774if test -n "$CPP" && test -d "$CPP"; then 5775 CPP= 5776fi 5777if test -z "$CPP"; then 5778 if test ${ac_cv_prog_CPP+y} 5779then : 5780 printf %s "(cached) " >&6 5781else $as_nop 5782 # Double quotes because $CC needs to be expanded 5783 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5784 do 5785 ac_preproc_ok=false 5786for ac_c_preproc_warn_flag in '' yes 5787do 5788 # Use a header file that comes with gcc, so configuring glibc 5789 # with a fresh cross-compiler works. 5790 # On the NeXT, cc -E runs the code through the compiler's parser, 5791 # not just through cpp. "Syntax error" is here to catch this case. 5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5793/* end confdefs.h. */ 5794#include <limits.h> 5795 Syntax error 5796_ACEOF 5797if ac_fn_c_try_cpp "$LINENO" 5798then : 5799 5800else $as_nop 5801 # Broken: fails on valid input. 5802continue 5803fi 5804rm -f conftest.err conftest.i conftest.$ac_ext 5805 5806 # OK, works on sane cases. Now check whether nonexistent headers 5807 # can be detected and how. 5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5809/* end confdefs.h. */ 5810#include <ac_nonexistent.h> 5811_ACEOF 5812if ac_fn_c_try_cpp "$LINENO" 5813then : 5814 # Broken: success on invalid input. 5815continue 5816else $as_nop 5817 # Passes both tests. 5818ac_preproc_ok=: 5819break 5820fi 5821rm -f conftest.err conftest.i conftest.$ac_ext 5822 5823done 5824# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5825rm -f conftest.i conftest.err conftest.$ac_ext 5826if $ac_preproc_ok 5827then : 5828 break 5829fi 5830 5831 done 5832 ac_cv_prog_CPP=$CPP 5833 5834fi 5835 CPP=$ac_cv_prog_CPP 5836else 5837 ac_cv_prog_CPP=$CPP 5838fi 5839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5840printf "%s\n" "$CPP" >&6; } 5841ac_preproc_ok=false 5842for ac_c_preproc_warn_flag in '' yes 5843do 5844 # Use a header file that comes with gcc, so configuring glibc 5845 # with a fresh cross-compiler works. 5846 # On the NeXT, cc -E runs the code through the compiler's parser, 5847 # not just through cpp. "Syntax error" is here to catch this case. 5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5849/* end confdefs.h. */ 5850#include <limits.h> 5851 Syntax error 5852_ACEOF 5853if ac_fn_c_try_cpp "$LINENO" 5854then : 5855 5856else $as_nop 5857 # Broken: fails on valid input. 5858continue 5859fi 5860rm -f conftest.err conftest.i conftest.$ac_ext 5861 5862 # OK, works on sane cases. Now check whether nonexistent headers 5863 # can be detected and how. 5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5865/* end confdefs.h. */ 5866#include <ac_nonexistent.h> 5867_ACEOF 5868if ac_fn_c_try_cpp "$LINENO" 5869then : 5870 # Broken: success on invalid input. 5871continue 5872else $as_nop 5873 # Passes both tests. 5874ac_preproc_ok=: 5875break 5876fi 5877rm -f conftest.err conftest.i conftest.$ac_ext 5878 5879done 5880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5881rm -f conftest.i conftest.err conftest.$ac_ext 5882if $ac_preproc_ok 5883then : 5884 5885else $as_nop 5886 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5887printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5888as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5889See \`config.log' for more details" "$LINENO" 5; } 5890fi 5891 5892ac_ext=c 5893ac_cpp='$CPP $CPPFLAGS' 5894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5896ac_compiler_gnu=$ac_cv_c_compiler_gnu 5897 5898 5899 5900 # Make sure we can run config.sub. 5901$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5902 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5903 5904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5905printf %s "checking build system type... " >&6; } 5906if test ${ac_cv_build+y} 5907then : 5908 printf %s "(cached) " >&6 5909else $as_nop 5910 ac_build_alias=$build_alias 5911test "x$ac_build_alias" = x && 5912 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5913test "x$ac_build_alias" = x && 5914 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5915ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5916 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5917 5918fi 5919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5920printf "%s\n" "$ac_cv_build" >&6; } 5921case $ac_cv_build in 5922*-*-*) ;; 5923*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5924esac 5925build=$ac_cv_build 5926ac_save_IFS=$IFS; IFS='-' 5927set x $ac_cv_build 5928shift 5929build_cpu=$1 5930build_vendor=$2 5931shift; shift 5932# Remember, the first character of IFS is used to create $*, 5933# except with old shells: 5934build_os=$* 5935IFS=$ac_save_IFS 5936case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5937 5938 5939 5940 5941cross_compiling_build=no 5942 5943ac_build_tool_prefix= 5944if test -n "$build" 5945then : 5946 ac_build_tool_prefix="$build-" 5947elif test -n "$build_alias" 5948then : 5949 ac_build_tool_prefix="$build_alias-" 5950fi 5951 5952ac_ext=c 5953ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5954ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5955ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5956ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 5957 5958 5959was_set_c_compiler_gnu=${ac_cv_c_compiler_gnu+y} 5960if test ${was_set_c_compiler_gnu} 5961then : 5962 saved_c_compiler_gnu=$ac_cv_c_compiler_gnu 5963 { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;} 5964fi 5965 5966ac_ext=c 5967ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 5968ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 5969ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 5970ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 5971if test -n "$ac_build_tool_prefix"; then 5972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5973set dummy ${ac_build_tool_prefix}gcc; ac_word=$2 5974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5975printf %s "checking for $ac_word... " >&6; } 5976if test ${ac_cv_prog_CC_FOR_BUILD+y} 5977then : 5978 printf %s "(cached) " >&6 5979else $as_nop 5980 if test -n "$CC_FOR_BUILD"; then 5981 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 5982else 5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5984for as_dir in $PATH 5985do 5986 IFS=$as_save_IFS 5987 case $as_dir in #((( 5988 '') as_dir=./ ;; 5989 */) ;; 5990 *) as_dir=$as_dir/ ;; 5991 esac 5992 for ac_exec_ext in '' $ac_executable_extensions; do 5993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5994 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc" 5995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5996 break 2 5997 fi 5998done 5999 done 6000IFS=$as_save_IFS 6001 6002fi 6003fi 6004CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6005if test -n "$CC_FOR_BUILD"; then 6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6007printf "%s\n" "$CC_FOR_BUILD" >&6; } 6008else 6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6010printf "%s\n" "no" >&6; } 6011fi 6012 6013 6014fi 6015if test -z "$ac_cv_prog_CC_FOR_BUILD"; then 6016 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 6017 # Extract the first word of "gcc", so it can be a program name with args. 6018set dummy gcc; ac_word=$2 6019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6020printf %s "checking for $ac_word... " >&6; } 6021if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y} 6022then : 6023 printf %s "(cached) " >&6 6024else $as_nop 6025 if test -n "$ac_ct_CC_FOR_BUILD"; then 6026 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 6027else 6028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6029for as_dir in $PATH 6030do 6031 IFS=$as_save_IFS 6032 case $as_dir in #((( 6033 '') as_dir=./ ;; 6034 */) ;; 6035 *) as_dir=$as_dir/ ;; 6036 esac 6037 for ac_exec_ext in '' $ac_executable_extensions; do 6038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6039 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc" 6040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6041 break 2 6042 fi 6043done 6044 done 6045IFS=$as_save_IFS 6046 6047fi 6048fi 6049ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 6050if test -n "$ac_ct_CC_FOR_BUILD"; then 6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 6052printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; } 6053else 6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6055printf "%s\n" "no" >&6; } 6056fi 6057 6058 if test "x$ac_ct_CC_FOR_BUILD" = x; then 6059 CC_FOR_BUILD="" 6060 else 6061 case $cross_compiling_build:$ac_tool_warned in 6062yes:) 6063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 6064printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 6065ac_tool_warned=yes ;; 6066esac 6067 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 6068 fi 6069else 6070 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD" 6071fi 6072 6073if test -z "$CC_FOR_BUILD"; then 6074 if test -n "$ac_build_tool_prefix"; then 6075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 6076set dummy ${ac_build_tool_prefix}cc; ac_word=$2 6077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6078printf %s "checking for $ac_word... " >&6; } 6079if test ${ac_cv_prog_CC_FOR_BUILD+y} 6080then : 6081 printf %s "(cached) " >&6 6082else $as_nop 6083 if test -n "$CC_FOR_BUILD"; then 6084 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6085else 6086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6087for as_dir in $PATH 6088do 6089 IFS=$as_save_IFS 6090 case $as_dir in #((( 6091 '') as_dir=./ ;; 6092 */) ;; 6093 *) as_dir=$as_dir/ ;; 6094 esac 6095 for ac_exec_ext in '' $ac_executable_extensions; do 6096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6097 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc" 6098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6099 break 2 6100 fi 6101done 6102 done 6103IFS=$as_save_IFS 6104 6105fi 6106fi 6107CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6108if test -n "$CC_FOR_BUILD"; then 6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6110printf "%s\n" "$CC_FOR_BUILD" >&6; } 6111else 6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6113printf "%s\n" "no" >&6; } 6114fi 6115 6116 6117 fi 6118fi 6119if test -z "$CC_FOR_BUILD"; then 6120 # Extract the first word of "cc", so it can be a program name with args. 6121set dummy cc; ac_word=$2 6122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6123printf %s "checking for $ac_word... " >&6; } 6124if test ${ac_cv_prog_CC_FOR_BUILD+y} 6125then : 6126 printf %s "(cached) " >&6 6127else $as_nop 6128 if test -n "$CC_FOR_BUILD"; then 6129 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6130else 6131 ac_prog_rejected=no 6132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6133for as_dir in $PATH 6134do 6135 IFS=$as_save_IFS 6136 case $as_dir in #((( 6137 '') as_dir=./ ;; 6138 */) ;; 6139 *) as_dir=$as_dir/ ;; 6140 esac 6141 for ac_exec_ext in '' $ac_executable_extensions; do 6142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6143 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 6144 ac_prog_rejected=yes 6145 continue 6146 fi 6147 ac_cv_prog_CC_FOR_BUILD="cc" 6148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6149 break 2 6150 fi 6151done 6152 done 6153IFS=$as_save_IFS 6154 6155if test $ac_prog_rejected = yes; then 6156 # We found a bogon in the path, so make sure we never use it. 6157 set dummy $ac_cv_prog_CC_FOR_BUILD 6158 shift 6159 if test $# != 0; then 6160 # We chose a different compiler from the bogus one. 6161 # However, it has the same basename, so the bogon will be chosen 6162 # first if we set CC_FOR_BUILD to just the basename; use the full file name. 6163 shift 6164 ac_cv_prog_CC_FOR_BUILD="$as_dir$ac_word${1+' '}$@" 6165 fi 6166fi 6167fi 6168fi 6169CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6170if test -n "$CC_FOR_BUILD"; then 6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6172printf "%s\n" "$CC_FOR_BUILD" >&6; } 6173else 6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6175printf "%s\n" "no" >&6; } 6176fi 6177 6178 6179fi 6180if test -z "$CC_FOR_BUILD"; then 6181 if test -n "$ac_build_tool_prefix"; then 6182 for ac_prog in cl.exe 6183 do 6184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6185set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2 6186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6187printf %s "checking for $ac_word... " >&6; } 6188if test ${ac_cv_prog_CC_FOR_BUILD+y} 6189then : 6190 printf %s "(cached) " >&6 6191else $as_nop 6192 if test -n "$CC_FOR_BUILD"; then 6193 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6194else 6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6196for as_dir in $PATH 6197do 6198 IFS=$as_save_IFS 6199 case $as_dir in #((( 6200 '') as_dir=./ ;; 6201 */) ;; 6202 *) as_dir=$as_dir/ ;; 6203 esac 6204 for ac_exec_ext in '' $ac_executable_extensions; do 6205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6206 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog" 6207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6208 break 2 6209 fi 6210done 6211 done 6212IFS=$as_save_IFS 6213 6214fi 6215fi 6216CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6217if test -n "$CC_FOR_BUILD"; then 6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6219printf "%s\n" "$CC_FOR_BUILD" >&6; } 6220else 6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6222printf "%s\n" "no" >&6; } 6223fi 6224 6225 6226 test -n "$CC_FOR_BUILD" && break 6227 done 6228fi 6229if test -z "$CC_FOR_BUILD"; then 6230 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 6231 for ac_prog in cl.exe 6232do 6233 # Extract the first word of "$ac_prog", so it can be a program name with args. 6234set dummy $ac_prog; ac_word=$2 6235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6236printf %s "checking for $ac_word... " >&6; } 6237if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y} 6238then : 6239 printf %s "(cached) " >&6 6240else $as_nop 6241 if test -n "$ac_ct_CC_FOR_BUILD"; then 6242 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 6243else 6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6245for as_dir in $PATH 6246do 6247 IFS=$as_save_IFS 6248 case $as_dir in #((( 6249 '') as_dir=./ ;; 6250 */) ;; 6251 *) as_dir=$as_dir/ ;; 6252 esac 6253 for ac_exec_ext in '' $ac_executable_extensions; do 6254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6255 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog" 6256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6257 break 2 6258 fi 6259done 6260 done 6261IFS=$as_save_IFS 6262 6263fi 6264fi 6265ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 6266if test -n "$ac_ct_CC_FOR_BUILD"; then 6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 6268printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; } 6269else 6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6271printf "%s\n" "no" >&6; } 6272fi 6273 6274 6275 test -n "$ac_ct_CC_FOR_BUILD" && break 6276done 6277 6278 if test "x$ac_ct_CC_FOR_BUILD" = x; then 6279 CC_FOR_BUILD="" 6280 else 6281 case $cross_compiling_build:$ac_tool_warned in 6282yes:) 6283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 6284printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 6285ac_tool_warned=yes ;; 6286esac 6287 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 6288 fi 6289fi 6290 6291fi 6292if test -z "$CC_FOR_BUILD"; then 6293 if test -n "$ac_build_tool_prefix"; then 6294 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 6295set dummy ${ac_build_tool_prefix}clang; ac_word=$2 6296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6297printf %s "checking for $ac_word... " >&6; } 6298if test ${ac_cv_prog_CC_FOR_BUILD+y} 6299then : 6300 printf %s "(cached) " >&6 6301else $as_nop 6302 if test -n "$CC_FOR_BUILD"; then 6303 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6304else 6305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6306for as_dir in $PATH 6307do 6308 IFS=$as_save_IFS 6309 case $as_dir in #((( 6310 '') as_dir=./ ;; 6311 */) ;; 6312 *) as_dir=$as_dir/ ;; 6313 esac 6314 for ac_exec_ext in '' $ac_executable_extensions; do 6315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6316 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}clang" 6317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6318 break 2 6319 fi 6320done 6321 done 6322IFS=$as_save_IFS 6323 6324fi 6325fi 6326CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6327if test -n "$CC_FOR_BUILD"; then 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6329printf "%s\n" "$CC_FOR_BUILD" >&6; } 6330else 6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6332printf "%s\n" "no" >&6; } 6333fi 6334 6335 6336fi 6337if test -z "$ac_cv_prog_CC_FOR_BUILD"; then 6338 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 6339 # Extract the first word of "clang", so it can be a program name with args. 6340set dummy clang; ac_word=$2 6341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6342printf %s "checking for $ac_word... " >&6; } 6343if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y} 6344then : 6345 printf %s "(cached) " >&6 6346else $as_nop 6347 if test -n "$ac_ct_CC_FOR_BUILD"; then 6348 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 6349else 6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6351for as_dir in $PATH 6352do 6353 IFS=$as_save_IFS 6354 case $as_dir in #((( 6355 '') as_dir=./ ;; 6356 */) ;; 6357 *) as_dir=$as_dir/ ;; 6358 esac 6359 for ac_exec_ext in '' $ac_executable_extensions; do 6360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6361 ac_cv_prog_ac_ct_CC_FOR_BUILD="clang" 6362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6363 break 2 6364 fi 6365done 6366 done 6367IFS=$as_save_IFS 6368 6369fi 6370fi 6371ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 6372if test -n "$ac_ct_CC_FOR_BUILD"; then 6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 6374printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; } 6375else 6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6377printf "%s\n" "no" >&6; } 6378fi 6379 6380 if test "x$ac_ct_CC_FOR_BUILD" = x; then 6381 CC_FOR_BUILD="" 6382 else 6383 case $cross_compiling_build:$ac_tool_warned in 6384yes:) 6385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 6386printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 6387ac_tool_warned=yes ;; 6388esac 6389 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 6390 fi 6391else 6392 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD" 6393fi 6394 6395fi 6396 6397 6398test -z "$CC_FOR_BUILD" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6399printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6400as_fn_error $? "no acceptable C compiler found in \$PATH 6401See \`config.log' for more details" "$LINENO" 5; } 6402 6403# Provide some information about the compiler. 6404printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6405set X $ac_compile 6406ac_compiler=$2 6407for ac_option in --version -v -V -qversion -version; do 6408 { { ac_try="$ac_compiler $ac_option >&5" 6409case "(($ac_try" in 6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6411 *) ac_try_echo=$ac_try;; 6412esac 6413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6414printf "%s\n" "$ac_try_echo"; } >&5 6415 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6416 ac_status=$? 6417 if test -s conftest.err; then 6418 sed '10a\ 6419... rest of stderr output deleted ... 6420 10q' conftest.err >conftest.er1 6421 cat conftest.er1 >&5 6422 fi 6423 rm -f conftest.er1 conftest.err 6424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6425 test $ac_status = 0; } 6426done 6427 6428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 6429printf %s "checking whether the compiler supports GNU C... " >&6; } 6430if test ${ac_cv_c_compiler_gnu+y} 6431then : 6432 printf %s "(cached) " >&6 6433else $as_nop 6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6435/* end confdefs.h. */ 6436 6437int 6438main (void) 6439{ 6440#ifndef __GNUC__ 6441 choke me 6442#endif 6443 6444 ; 6445 return 0; 6446} 6447_ACEOF 6448if ac_fn_c_try_compile "$LINENO" 6449then : 6450 ac_compiler_gnu=yes 6451else $as_nop 6452 ac_compiler_gnu=no 6453fi 6454rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext 6455ac_cv_c_compiler_gnu=$ac_compiler_gnu 6456 6457fi 6458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6459printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 6460ac_compiler_gnu=$ac_cv_c_compiler_gnu 6461 6462if test $ac_compiler_gnu = yes; then 6463 GCC_FOR_BUILD=yes 6464else 6465 GCC_FOR_BUILD= 6466fi 6467ac_test_CFLAGS=${CFLAGS_FOR_BUILD+y} 6468ac_save_CFLAGS=$CFLAGS_FOR_BUILD 6469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5 6470printf %s "checking whether $CC_FOR_BUILD accepts -g... " >&6; } 6471if test ${ac_cv_build_prog_cc_g+y} 6472then : 6473 printf %s "(cached) " >&6 6474else $as_nop 6475 ac_save_c_werror_flag=$ac_c_werror_flag 6476 ac_c_werror_flag=yes 6477 ac_cv_build_prog_cc_g=no 6478 CFLAGS_FOR_BUILD="-g" 6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6480/* end confdefs.h. */ 6481 6482int 6483main (void) 6484{ 6485 6486 ; 6487 return 0; 6488} 6489_ACEOF 6490if ac_fn_c_try_compile "$LINENO" 6491then : 6492 ac_cv_build_prog_cc_g=yes 6493else $as_nop 6494 CFLAGS_FOR_BUILD="" 6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6496/* end confdefs.h. */ 6497 6498int 6499main (void) 6500{ 6501 6502 ; 6503 return 0; 6504} 6505_ACEOF 6506if ac_fn_c_try_compile "$LINENO" 6507then : 6508 6509else $as_nop 6510 ac_c_werror_flag=$ac_save_c_werror_flag 6511 CFLAGS_FOR_BUILD="-g" 6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6513/* end confdefs.h. */ 6514 6515int 6516main (void) 6517{ 6518 6519 ; 6520 return 0; 6521} 6522_ACEOF 6523if ac_fn_c_try_compile "$LINENO" 6524then : 6525 ac_cv_build_prog_cc_g=yes 6526fi 6527rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext 6528fi 6529rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext 6530fi 6531rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext 6532 ac_c_werror_flag=$ac_save_c_werror_flag 6533fi 6534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5 6535printf "%s\n" "$ac_cv_build_prog_cc_g" >&6; } 6536if test $ac_test_CFLAGS; then 6537 CFLAGS_FOR_BUILD=$ac_save_CFLAGS 6538elif test $ac_cv_build_prog_cc_g = yes; then 6539 if test "$GCC_FOR_BUILD" = yes; then 6540 CFLAGS_FOR_BUILD="-g -O2" 6541 else 6542 CFLAGS_FOR_BUILD="-g" 6543 fi 6544else 6545 if test "$GCC_FOR_BUILD" = yes; then 6546 CFLAGS_FOR_BUILD="-O2" 6547 else 6548 CFLAGS_FOR_BUILD= 6549 fi 6550fi 6551ac_prog_cc_stdc=no 6552if test x$ac_prog_cc_stdc = xno 6553then : 6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C11 features" >&5 6555printf %s "checking for $CC_FOR_BUILD option to enable C11 features... " >&6; } 6556if test ${ac_cv_build_prog_cc_c11+y} 6557then : 6558 printf %s "(cached) " >&6 6559else $as_nop 6560 ac_cv_build_prog_cc_c11=no 6561ac_save_CC=$CC_FOR_BUILD 6562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6563/* end confdefs.h. */ 6564$ac_c_conftest_c11_program 6565_ACEOF 6566for ac_arg in '' -std=gnu11 6567do 6568 CC_FOR_BUILD="$ac_save_CC $ac_arg" 6569 if ac_fn_c_try_compile "$LINENO" 6570then : 6571 ac_cv_build_prog_cc_c11=$ac_arg 6572fi 6573rm -f core conftest.err conftest.$ac_build_objext conftest.beam 6574 test "x$ac_cv_build_prog_cc_c11" != "xno" && break 6575done 6576rm -f conftest.$ac_ext 6577CC_FOR_BUILD=$ac_save_CC 6578fi 6579 6580if test "x$ac_cv_build_prog_cc_c11" = xno 6581then : 6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6583printf "%s\n" "unsupported" >&6; } 6584else $as_nop 6585 if test "x$ac_cv_build_prog_cc_c11" = x 6586then : 6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6588printf "%s\n" "none needed" >&6; } 6589else $as_nop 6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c11" >&5 6591printf "%s\n" "$ac_cv_build_prog_cc_c11" >&6; } 6592 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c11" 6593fi 6594 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c11 6595 ac_prog_cc_stdc=c11 6596fi 6597fi 6598if test x$ac_prog_cc_stdc = xno 6599then : 6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C99 features" >&5 6601printf %s "checking for $CC_FOR_BUILD option to enable C99 features... " >&6; } 6602if test ${ac_cv_build_prog_cc_c99+y} 6603then : 6604 printf %s "(cached) " >&6 6605else $as_nop 6606 ac_cv_build_prog_cc_c99=no 6607ac_save_CC=$CC_FOR_BUILD 6608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6609/* end confdefs.h. */ 6610$ac_c_conftest_c99_program 6611_ACEOF 6612for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 6613do 6614 CC_FOR_BUILD="$ac_save_CC $ac_arg" 6615 if ac_fn_c_try_compile "$LINENO" 6616then : 6617 ac_cv_build_prog_cc_c99=$ac_arg 6618fi 6619rm -f core conftest.err conftest.$ac_build_objext conftest.beam 6620 test "x$ac_cv_build_prog_cc_c99" != "xno" && break 6621done 6622rm -f conftest.$ac_ext 6623CC_FOR_BUILD=$ac_save_CC 6624fi 6625 6626if test "x$ac_cv_build_prog_cc_c99" = xno 6627then : 6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6629printf "%s\n" "unsupported" >&6; } 6630else $as_nop 6631 if test "x$ac_cv_build_prog_cc_c99" = x 6632then : 6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6634printf "%s\n" "none needed" >&6; } 6635else $as_nop 6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c99" >&5 6637printf "%s\n" "$ac_cv_build_prog_cc_c99" >&6; } 6638 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c99" 6639fi 6640 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c99 6641 ac_prog_cc_stdc=c99 6642fi 6643fi 6644if test x$ac_prog_cc_stdc = xno 6645then : 6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C89 features" >&5 6647printf %s "checking for $CC_FOR_BUILD option to enable C89 features... " >&6; } 6648if test ${ac_cv_build_prog_cc_c89+y} 6649then : 6650 printf %s "(cached) " >&6 6651else $as_nop 6652 ac_cv_build_prog_cc_c89=no 6653ac_save_CC=$CC_FOR_BUILD 6654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6655/* end confdefs.h. */ 6656$ac_c_conftest_c89_program 6657_ACEOF 6658for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6659do 6660 CC_FOR_BUILD="$ac_save_CC $ac_arg" 6661 if ac_fn_c_try_compile "$LINENO" 6662then : 6663 ac_cv_build_prog_cc_c89=$ac_arg 6664fi 6665rm -f core conftest.err conftest.$ac_build_objext conftest.beam 6666 test "x$ac_cv_build_prog_cc_c89" != "xno" && break 6667done 6668rm -f conftest.$ac_ext 6669CC_FOR_BUILD=$ac_save_CC 6670fi 6671 6672if test "x$ac_cv_build_prog_cc_c89" = xno 6673then : 6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6675printf "%s\n" "unsupported" >&6; } 6676else $as_nop 6677 if test "x$ac_cv_build_prog_cc_c89" = x 6678then : 6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6680printf "%s\n" "none needed" >&6; } 6681else $as_nop 6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5 6683printf "%s\n" "$ac_cv_build_prog_cc_c89" >&6; } 6684 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89" 6685fi 6686 ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c89 6687 ac_prog_cc_stdc=c89 6688fi 6689fi 6690 6691ac_ext=c 6692ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6693ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6694ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 6695ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 6696 6697 6698 ac_ext=c 6699ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6700ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6701ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 6702ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 6703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5 6704printf %s "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; } 6705if test ${am_cv_build_prog_cc_c_o+y} 6706then : 6707 printf %s "(cached) " >&6 6708else $as_nop 6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6710/* end confdefs.h. */ 6711 6712int 6713main (void) 6714{ 6715 6716 ; 6717 return 0; 6718} 6719_ACEOF 6720 # Make sure it works both with $CC and with simple cc. 6721 # Following AC_PROG_CC_C_O, we do the test twice because some 6722 # compilers refuse to overwrite an existing .o file with -o, 6723 # though they will create one. 6724 am_cv_build_prog_cc_c_o=yes 6725 for am_i in 1 2; do 6726 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5 6727 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5 6728 ac_status=$? 6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6730 (exit $ac_status); } \ 6731 && test -f conftest2.$ac_build_objext; then 6732 : OK 6733 else 6734 am_cv_build_prog_cc_c_o=no 6735 break 6736 fi 6737 done 6738 rm -f core conftest* 6739 unset am_i 6740fi 6741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5 6742printf "%s\n" "$am_cv_build_prog_cc_c_o" >&6; } 6743if test "$am_cv_build_prog_cc_c_o" != yes; then 6744 # Losing compiler, so override with the script. 6745 # FIXME: It is wrong to rewrite CC. 6746 # But if we don't then we get into trouble of one sort or another. 6747 # A longer-term fix would be to have automake use am__CC in this case, 6748 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6749 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD" 6750fi 6751ac_ext=c 6752ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6753ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6754ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 6755ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 6756 6757 6758depcc="$CC_FOR_BUILD" am_compiler_list= 6759 6760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6761printf %s "checking dependency style of $depcc... " >&6; } 6762if test ${am_cv_build_CC_dependencies_compiler_type+y} 6763then : 6764 printf %s "(cached) " >&6 6765else $as_nop 6766 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6767 # We make a subdir and do the tests there. Otherwise we can end up 6768 # making bogus files that we don't know about and never remove. For 6769 # instance it was reported that on HP-UX the gcc test will end up 6770 # making a dummy file named 'D' -- because '-MD' means "put the output 6771 # in D". 6772 rm -rf conftest.dir 6773 mkdir conftest.dir 6774 # Copy depcomp to subdir because otherwise we won't find it if we're 6775 # using a relative directory. 6776 cp "$am_depcomp" conftest.dir 6777 cd conftest.dir 6778 # We will build objects and dependencies in a subdirectory because 6779 # it helps to detect inapplicable dependency modes. For instance 6780 # both Tru64's cc and ICC support -MD to output dependencies as a 6781 # side effect of compilation, but ICC will put the dependencies in 6782 # the current directory while Tru64 will put them in the object 6783 # directory. 6784 mkdir sub 6785 6786 am_cv_build_CC_dependencies_compiler_type=none 6787 if test "$am_compiler_list" = ""; then 6788 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6789 fi 6790 am__universal=false 6791 case " $depcc " in #( 6792 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6793 esac 6794 6795 for depmode in $am_compiler_list; do 6796 # Setup a source with many dependencies, because some compilers 6797 # like to wrap large dependency lists on column 80 (with \), and 6798 # we should not choose a depcomp mode which is confused by this. 6799 # 6800 # We need to recreate these files for each test, as the compiler may 6801 # overwrite some of them when testing with obscure command lines. 6802 # This happens at least with the AIX C compiler. 6803 : > sub/conftest.c 6804 for i in 1 2 3 4 5 6; do 6805 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6806 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6807 # Solaris 10 /bin/sh. 6808 echo '/* dummy */' > sub/conftst$i.h 6809 done 6810 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6811 6812 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6813 # mode. It turns out that the SunPro C++ compiler does not properly 6814 # handle '-M -o', and we need to detect this. Also, some Intel 6815 # versions had trouble with output in subdirs. 6816 am__obj=sub/conftest.${BUILD_OBJEXT-o} 6817 am__minus_obj="-o $am__obj" 6818 case $depmode in 6819 gcc) 6820 # This depmode causes a compiler race in universal mode. 6821 test "$am__universal" = false || continue 6822 ;; 6823 nosideeffect) 6824 # After this tag, mechanisms are not by side-effect, so they'll 6825 # only be used when explicitly requested. 6826 if test "x$enable_dependency_tracking" = xyes; then 6827 continue 6828 else 6829 break 6830 fi 6831 ;; 6832 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6833 # This compiler won't grok '-c -o', but also, the minuso test has 6834 # not run yet. These depmodes are late enough in the game, and 6835 # so weak that their functioning should not be impacted. 6836 am__obj=conftest.${BUILD_OBJEXT-o} 6837 am__minus_obj= 6838 ;; 6839 none) break ;; 6840 esac 6841 if depmode=$depmode \ 6842 source=sub/conftest.c object=$am__obj \ 6843 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6844 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6845 >/dev/null 2>conftest.err && 6846 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6847 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6848 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6849 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6850 # icc doesn't choke on unknown options, it will just issue warnings 6851 # or remarks (even with -Werror). So we grep stderr for any message 6852 # that says an option was ignored or not supported. 6853 # When given -MP, icc 7.0 and 7.1 complain thusly: 6854 # icc: Command line warning: ignoring option '-M'; no argument required 6855 # The diagnosis changed in icc 8.0: 6856 # icc: Command line remark: option '-MP' not supported 6857 if (grep 'ignoring option' conftest.err || 6858 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6859 am_cv_build_CC_dependencies_compiler_type=$depmode 6860 break 6861 fi 6862 fi 6863 done 6864 6865 cd .. 6866 rm -rf conftest.dir 6867else 6868 am_cv_build_CC_dependencies_compiler_type=none 6869fi 6870 6871fi 6872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5 6873printf "%s\n" "$am_cv_build_CC_dependencies_compiler_type" >&6; } 6874CCDEPMODE=depmode=$am_cv_build_CC_dependencies_compiler_type 6875 6876 if 6877 test "x$enable_dependency_tracking" != xno \ 6878 && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then 6879 am__fastdepCC_build_TRUE= 6880 am__fastdepCC_build_FALSE='#' 6881else 6882 am__fastdepCC_build_TRUE='#' 6883 am__fastdepCC_build_FALSE= 6884fi 6885 6886 6887 6888if test ${was_set_c_compiler_gnu} 6889then : 6890 ac_cv_c_compiler_gnu=$saved_c_compiler_gnu 6891fi 6892 6893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6894/* end confdefs.h. */ 6895 6896int 6897main (void) 6898{ 6899 6900 ; 6901 return 0; 6902} 6903_ACEOF 6904ac_clean_files_save=$ac_clean_files 6905ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 6906# Try to create an executable without -o first, disregard a.out. 6907# It will help us diagnose broken compilers, and finding out an intuition 6908# of exeext. 6909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 6910printf %s "checking whether the C compiler works... " >&6; } 6911ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 6912 6913# The possible output files: 6914ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 6915 6916ac_rmfiles= 6917for ac_file in $ac_files 6918do 6919 case $ac_file in 6920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 6921 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 6922 esac 6923done 6924rm -f $ac_rmfiles 6925 6926if { { ac_try="$ac_link_default" 6927case "(($ac_try" in 6928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6929 *) ac_try_echo=$ac_try;; 6930esac 6931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6932printf "%s\n" "$ac_try_echo"; } >&5 6933 (eval "$ac_link_default") 2>&5 6934 ac_status=$? 6935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6936 test $ac_status = 0; } 6937then : 6938 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 6939# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 6940# in a Makefile. We should not override ac_cv_exeext if it was cached, 6941# so that the user can short-circuit this test for compilers unknown to 6942# Autoconf. 6943for ac_file in $ac_files '' 6944do 6945 test -f "$ac_file" || continue 6946 case $ac_file in 6947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 6948 ;; 6949 [ab].out ) 6950 # We found the default executable, but exeext='' is most 6951 # certainly right. 6952 break;; 6953 *.* ) 6954 if test ${ac_cv_build_exeext+y} && test "$ac_cv_build_exeext" != no; 6955 then :; else 6956 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 6957 fi 6958 # We set ac_cv_exeext here because the later test for it is not 6959 # safe: cross compilers may not add the suffix if given an `-o' 6960 # argument, so we may need to know it at that point already. 6961 # Even if this section looks crufty: it has the advantage of 6962 # actually working. 6963 break;; 6964 * ) 6965 break;; 6966 esac 6967done 6968test "$ac_cv_build_exeext" = no && ac_cv_build_exeext= 6969 6970else $as_nop 6971 ac_file='' 6972fi 6973if test -z "$ac_file" 6974then : 6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6976printf "%s\n" "no" >&6; } 6977printf "%s\n" "$as_me: failed program was:" >&5 6978sed 's/^/| /' conftest.$ac_ext >&5 6979 6980{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6981printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6982as_fn_error 77 "C compiler cannot create executables 6983See \`config.log' for more details" "$LINENO" 5; } 6984else $as_nop 6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6986printf "%s\n" "yes" >&6; } 6987fi 6988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 6989printf %s "checking for C compiler default output file name... " >&6; } 6990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 6991printf "%s\n" "$ac_file" >&6; } 6992ac_build_exeext=$ac_cv_build_exeext 6993 6994rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out 6995ac_clean_files=$ac_clean_files_save 6996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 6997printf %s "checking for suffix of executables... " >&6; } 6998if { { ac_try="$ac_link" 6999case "(($ac_try" in 7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7001 *) ac_try_echo=$ac_try;; 7002esac 7003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7004printf "%s\n" "$ac_try_echo"; } >&5 7005 (eval "$ac_link") 2>&5 7006 ac_status=$? 7007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7008 test $ac_status = 0; } 7009then : 7010 # If both `conftest.exe' and `conftest' are `present' (well, observable) 7011# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 7012# work properly (i.e., refer to `conftest.exe'), while it won't with 7013# `rm'. 7014for ac_file in conftest.exe conftest conftest.*; do 7015 test -f "$ac_file" || continue 7016 case $ac_file in 7017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 7018 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 7019 break;; 7020 * ) break;; 7021 esac 7022done 7023else $as_nop 7024 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7025printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 7026as_fn_error $? "cannot compute suffix of executables: cannot compile and link 7027See \`config.log' for more details" "$LINENO" 5; } 7028fi 7029rm -f conftest conftest$ac_cv_build_exeext 7030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5 7031printf "%s\n" "$ac_cv_build_exeext" >&6; } 7032 7033rm -f conftest.$ac_ext 7034EXEEXT=$ac_cv_build_exeext 7035ac_build_exeext=$BUILD_EXEEXT 7036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7037/* end confdefs.h. */ 7038#include <stdio.h> 7039int 7040main (void) 7041{ 7042FILE *f = fopen ("conftest.out", "w"); 7043 return ferror (f) || fclose (f) != 0; 7044 7045 ; 7046 return 0; 7047} 7048_ACEOF 7049ac_clean_files="$ac_clean_files conftest.out" 7050# Check that the compiler produces executables we can run. If not, either 7051# the compiler is broken, or we cross compile. 7052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 7053printf %s "checking whether we are cross compiling... " >&6; } 7054if test "$cross_compiling_build" != yes; then 7055 { { ac_try="$ac_link" 7056case "(($ac_try" in 7057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7058 *) ac_try_echo=$ac_try;; 7059esac 7060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7061printf "%s\n" "$ac_try_echo"; } >&5 7062 (eval "$ac_link") 2>&5 7063 ac_status=$? 7064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7065 test $ac_status = 0; } 7066 if { ac_try='./conftest$ac_cv_build_exeext' 7067 { { case "(($ac_try" in 7068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7069 *) ac_try_echo=$ac_try;; 7070esac 7071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7072printf "%s\n" "$ac_try_echo"; } >&5 7073 (eval "$ac_try") 2>&5 7074 ac_status=$? 7075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7076 test $ac_status = 0; }; }; then 7077 cross_compiling_build=no 7078 else 7079 if test "$cross_compiling_build" = maybe; then 7080 cross_compiling_build=yes 7081 else 7082 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7083printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 7084as_fn_error 77 "cannot run C compiled programs. 7085If you meant to cross compile, use \`--build'. 7086See \`config.log' for more details" "$LINENO" 5; } 7087 fi 7088 fi 7089fi 7090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5 7091printf "%s\n" "$cross_compiling_build" >&6; } 7092 7093rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out 7094ac_clean_files=$ac_clean_files_save 7095 7096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 7097printf %s "checking for suffix of object files... " >&6; } 7098if test ${ac_cv_build_objext+y} 7099then : 7100 printf %s "(cached) " >&6 7101else $as_nop 7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7103/* end confdefs.h. */ 7104 7105int 7106main (void) 7107{ 7108 7109 ; 7110 return 0; 7111} 7112_ACEOF 7113rm -f conftest.o conftest.obj 7114if { { ac_try="$ac_compile" 7115case "(($ac_try" in 7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7117 *) ac_try_echo=$ac_try;; 7118esac 7119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7120printf "%s\n" "$ac_try_echo"; } >&5 7121 (eval "$ac_compile") 2>&5 7122 ac_status=$? 7123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7124 test $ac_status = 0; } 7125then : 7126 for ac_file in conftest.o conftest.obj conftest.*; do 7127 test -f "$ac_file" || continue; 7128 case $ac_file in 7129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 7130 *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'` 7131 break;; 7132 esac 7133done 7134else $as_nop 7135 printf "%s\n" "$as_me: failed program was:" >&5 7136sed 's/^/| /' conftest.$ac_ext >&5 7137 7138{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7139printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 7140as_fn_error $? "cannot compute suffix of object files: cannot compile 7141See \`config.log' for more details" "$LINENO" 5; } 7142fi 7143rm -f conftest.$ac_cv_build_objext conftest.$ac_ext 7144fi 7145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5 7146printf "%s\n" "$ac_cv_build_objext" >&6; } 7147OBJEXT=$ac_cv_build_objext 7148ac_build_objext=$BUILD_OBJEXT 7149 7150ac_ext=c 7151ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 7152ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 7153ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 7154ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 7155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7156printf %s "checking how to run the C preprocessor... " >&6; } 7157# On Suns, sometimes $CPP names a directory. 7158if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then 7159 CPP_FOR_BUILD= 7160fi 7161if test -z "$CPP_FOR_BUILD"; then 7162 if test ${ac_cv_build_prog_CPP+y} 7163then : 7164 printf %s "(cached) " >&6 7165else $as_nop 7166 # Double quotes because $CC needs to be expanded 7167 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" cpp /lib/cpp 7168 do 7169 ac_preproc_ok=false 7170for ac_c_preproc_warn_flag in '' yes 7171do 7172 # Use a header file that comes with gcc, so configuring glibc 7173 # with a fresh cross-compiler works. 7174 # On the NeXT, cc -E runs the code through the compiler's parser, 7175 # not just through cpp. "Syntax error" is here to catch this case. 7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7177/* end confdefs.h. */ 7178#include <limits.h> 7179 Syntax error 7180_ACEOF 7181if ac_fn_c_try_cpp "$LINENO" 7182then : 7183 7184else $as_nop 7185 # Broken: fails on valid input. 7186continue 7187fi 7188rm -f conftest.err conftest.i conftest.$ac_ext 7189 7190 # OK, works on sane cases. Now check whether nonexistent headers 7191 # can be detected and how. 7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7193/* end confdefs.h. */ 7194#include <ac_nonexistent.h> 7195_ACEOF 7196if ac_fn_c_try_cpp "$LINENO" 7197then : 7198 # Broken: success on invalid input. 7199continue 7200else $as_nop 7201 # Passes both tests. 7202ac_preproc_ok=: 7203break 7204fi 7205rm -f conftest.err conftest.i conftest.$ac_ext 7206 7207done 7208# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7209rm -f conftest.i conftest.err conftest.$ac_ext 7210if $ac_preproc_ok 7211then : 7212 break 7213fi 7214 7215 done 7216 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 7217 7218fi 7219 CPP_FOR_BUILD=$ac_cv_build_prog_CPP 7220else 7221 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 7222fi 7223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5 7224printf "%s\n" "$CPP_FOR_BUILD" >&6; } 7225ac_preproc_ok=false 7226for ac_c_preproc_warn_flag in '' yes 7227do 7228 # Use a header file that comes with gcc, so configuring glibc 7229 # with a fresh cross-compiler works. 7230 # On the NeXT, cc -E runs the code through the compiler's parser, 7231 # not just through cpp. "Syntax error" is here to catch this case. 7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7233/* end confdefs.h. */ 7234#include <limits.h> 7235 Syntax error 7236_ACEOF 7237if ac_fn_c_try_cpp "$LINENO" 7238then : 7239 7240else $as_nop 7241 # Broken: fails on valid input. 7242continue 7243fi 7244rm -f conftest.err conftest.i conftest.$ac_ext 7245 7246 # OK, works on sane cases. Now check whether nonexistent headers 7247 # can be detected and how. 7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7249/* end confdefs.h. */ 7250#include <ac_nonexistent.h> 7251_ACEOF 7252if ac_fn_c_try_cpp "$LINENO" 7253then : 7254 # Broken: success on invalid input. 7255continue 7256else $as_nop 7257 # Passes both tests. 7258ac_preproc_ok=: 7259break 7260fi 7261rm -f conftest.err conftest.i conftest.$ac_ext 7262 7263done 7264# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7265rm -f conftest.i conftest.err conftest.$ac_ext 7266if $ac_preproc_ok 7267then : 7268 7269else $as_nop 7270 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7271printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 7272as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check 7273See \`config.log' for more details" "$LINENO" 5; } 7274fi 7275 7276ac_ext=c 7277ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 7278ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 7279ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 7280ac_compiler_gnu=$ac_cv_build_c_compiler_gnu 7281 7282 7283 7284ac_ext=c 7285ac_cpp='$CPP $CPPFLAGS' 7286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7288ac_compiler_gnu=$ac_cv_c_compiler_gnu 7289 7290 7291EXEEXT=$ac_cv_exeext 7292BUILD_EXEEXT=$ac_cv_build_exeext; ac_build_exeext=$ac_cv_build_exeext 7293OBJEXT=$ac_cv_objext 7294BUILD_OBJEXT=$ac_cv_build_objext; ac_build_objext=$ac_cv_build_objext 7295CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 7296CCDEPMODE_FOR_BUILD=depmode=$am_cv_build_CC_dependencies_compiler_type 7297 7298 7299 7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 7301printf %s "checking for C compiler vendor... " >&6; } 7302if test ${ax_cv_c_compiler_vendor+y} 7303then : 7304 printf %s "(cached) " >&6 7305else $as_nop 7306 7307 vendors=" 7308 intel: __ICC,__ECC,__INTEL_COMPILER 7309 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__ 7310 pathscale: __PATHCC__,__PATHSCALE__ 7311 clang: __clang__ 7312 cray: _CRAYC 7313 fujitsu: __FUJITSU 7314 sdcc: SDCC,__SDCC 7315 sx: _SX 7316 nvhpc: __NVCOMPILER 7317 portland: __PGI 7318 pcc: __PCC__ 7319 gnu: __GNUC__ 7320 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95 7321 hp: __HP_cc,__HP_aCC 7322 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 7323 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 7324 comeau: __COMO__ 7325 kai: __KCC 7326 lcc: __LCC__ 7327 sgi: __sgi,sgi 7328 microsoft: _MSC_VER 7329 metrowerks: __MWERKS__ 7330 watcom: __WATCOMC__ 7331 tcc: __TINYC__ 7332 unknown: UNKNOWN 7333 " 7334 for ventest in $vendors; do 7335 case $ventest in 7336 *:) 7337 vendor=$ventest 7338 continue 7339 ;; 7340 *) 7341 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" 7342 ;; 7343 esac 7344 7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346/* end confdefs.h. */ 7347 7348int 7349main (void) 7350{ 7351 7352#if !($vencpp) 7353 thisisanerror; 7354#endif 7355 7356 ; 7357 return 0; 7358} 7359_ACEOF 7360if ac_fn_c_try_compile "$LINENO" 7361then : 7362 break 7363fi 7364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7365 done 7366 7367 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 7368 7369fi 7370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 7371printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; } 7372 7373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 7374printf %s "checking host system type... " >&6; } 7375if test ${ac_cv_host+y} 7376then : 7377 printf %s "(cached) " >&6 7378else $as_nop 7379 if test "x$host_alias" = x; then 7380 ac_cv_host=$ac_cv_build 7381else 7382 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 7383 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 7384fi 7385 7386fi 7387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 7388printf "%s\n" "$ac_cv_host" >&6; } 7389case $ac_cv_host in 7390*-*-*) ;; 7391*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 7392esac 7393host=$ac_cv_host 7394ac_save_IFS=$IFS; IFS='-' 7395set x $ac_cv_host 7396shift 7397host_cpu=$1 7398host_vendor=$2 7399shift; shift 7400# Remember, the first character of IFS is used to create $*, 7401# except with old shells: 7402host_os=$* 7403IFS=$ac_save_IFS 7404case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7405 7406 7407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7408printf %s "checking for a sed that does not truncate output... " >&6; } 7409if test ${ac_cv_path_SED+y} 7410then : 7411 printf %s "(cached) " >&6 7412else $as_nop 7413 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7414 for ac_i in 1 2 3 4 5 6 7; do 7415 ac_script="$ac_script$as_nl$ac_script" 7416 done 7417 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7418 { ac_script=; unset ac_script;} 7419 if test -z "$SED"; then 7420 ac_path_SED_found=false 7421 # Loop through the user's path and test for each of PROGNAME-LIST 7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7423for as_dir in $PATH 7424do 7425 IFS=$as_save_IFS 7426 case $as_dir in #((( 7427 '') as_dir=./ ;; 7428 */) ;; 7429 *) as_dir=$as_dir/ ;; 7430 esac 7431 for ac_prog in sed gsed 7432 do 7433 for ac_exec_ext in '' $ac_executable_extensions; do 7434 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 7435 as_fn_executable_p "$ac_path_SED" || continue 7436# Check for GNU ac_path_SED and select it if it is found. 7437 # Check for GNU $ac_path_SED 7438case `"$ac_path_SED" --version 2>&1` in 7439*GNU*) 7440 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7441*) 7442 ac_count=0 7443 printf %s 0123456789 >"conftest.in" 7444 while : 7445 do 7446 cat "conftest.in" "conftest.in" >"conftest.tmp" 7447 mv "conftest.tmp" "conftest.in" 7448 cp "conftest.in" "conftest.nl" 7449 printf "%s\n" '' >> "conftest.nl" 7450 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7452 as_fn_arith $ac_count + 1 && ac_count=$as_val 7453 if test $ac_count -gt ${ac_path_SED_max-0}; then 7454 # Best one so far, save it but keep looking for a better one 7455 ac_cv_path_SED="$ac_path_SED" 7456 ac_path_SED_max=$ac_count 7457 fi 7458 # 10*(2^10) chars as input seems more than enough 7459 test $ac_count -gt 10 && break 7460 done 7461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7462esac 7463 7464 $ac_path_SED_found && break 3 7465 done 7466 done 7467 done 7468IFS=$as_save_IFS 7469 if test -z "$ac_cv_path_SED"; then 7470 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7471 fi 7472else 7473 ac_cv_path_SED=$SED 7474fi 7475 7476fi 7477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7478printf "%s\n" "$ac_cv_path_SED" >&6; } 7479 SED="$ac_cv_path_SED" 7480 rm -f conftest.sed 7481 7482 7483 7484 7485 7486 7487# Check whether --enable-portable-binary was given. 7488if test ${enable_portable_binary+y} 7489then : 7490 enableval=$enable_portable_binary; acx_maxopt_portable=$enableval 7491else $as_nop 7492 acx_maxopt_portable=no 7493fi 7494 7495 7496# Try to determine "good" native compiler flags if none specified via CFLAGS 7497if test "x$ac_test_CFLAGS" = "x"; then 7498 case $ax_cv_c_compiler_vendor in 7499 dec) CFLAGS="$CFLAGS -newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host" 7500 if test "x$acx_maxopt_portable" = xno; then 7501 CFLAGS="$CFLAGS -arch host" 7502 fi;; 7503 7504 sun) CFLAGS="$CFLAGS -native -fast -xO5 -dalign" 7505 if test "x$acx_maxopt_portable" = xyes; then 7506 CFLAGS="$CFLAGS -xarch=generic" 7507 fi;; 7508 7509 hp) CFLAGS="$CFLAGS +Oall +Optrs_ansi +DSnative" 7510 if test "x$acx_maxopt_portable" = xyes; then 7511 CFLAGS="$CFLAGS +DAportable" 7512 fi;; 7513 7514 ibm) if test "x$acx_maxopt_portable" = xno; then 7515 xlc_opt="-qarch=auto -qtune=auto" 7516 else 7517 xlc_opt="-qtune=auto" 7518 fi 7519 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh` 7520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5 7521printf %s "checking whether C compiler accepts $xlc_opt... " >&6; } 7522if eval test \${$as_CACHEVAR+y} 7523then : 7524 printf %s "(cached) " >&6 7525else $as_nop 7526 7527 ax_check_save_flags=$CFLAGS 7528 CFLAGS="$CFLAGS $xlc_opt" 7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7530/* end confdefs.h. */ 7531 7532int 7533main (void) 7534{ 7535 7536 ; 7537 return 0; 7538} 7539_ACEOF 7540if ac_fn_c_try_compile "$LINENO" 7541then : 7542 eval "$as_CACHEVAR=yes" 7543else $as_nop 7544 eval "$as_CACHEVAR=no" 7545fi 7546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7547 CFLAGS=$ax_check_save_flags 7548fi 7549eval ac_res=\$$as_CACHEVAR 7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7551printf "%s\n" "$ac_res" >&6; } 7552if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 7553then : 7554 CFLAGS="$CFLAGS -O3 -qansialias -w $xlc_opt" 7555else $as_nop 7556 CFLAGS="$CFLAGS -O3 -qansialias -w" 7557 echo "******************************************************" 7558 echo "* You seem to have the IBM C compiler. It is *" 7559 echo "* recommended for best performance that you use: *" 7560 echo "* *" 7561 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *" 7562 echo "* ^^^ ^^^ *" 7563 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *" 7564 echo "* CPU you have. (Set the CFLAGS environment var. *" 7565 echo "* and re-run configure.) For more info, man cc. *" 7566 echo "******************************************************" 7567fi 7568 7569 ;; 7570 7571 intel) CFLAGS="$CFLAGS -O3 -ansi_alias" 7572 if test "x$acx_maxopt_portable" = xno; then 7573 icc_archflag=unknown 7574 icc_flags="" 7575 case $host_cpu in 7576 i686*|x86_64*) 7577 # icc accepts gcc assembly syntax, so these should work: 7578 7579ac_ext=c 7580ac_cpp='$CPP $CPPFLAGS' 7581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7583ac_compiler_gnu=$ac_cv_c_compiler_gnu 7584 7585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 7586printf %s "checking for x86 cpuid 0 output... " >&6; } 7587if test ${ax_cv_gcc_x86_cpuid_0+y} 7588then : 7589 printf %s "(cached) " >&6 7590else $as_nop 7591 if test "$cross_compiling" = yes 7592then : 7593 ax_cv_gcc_x86_cpuid_0=unknown 7594else $as_nop 7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7596/* end confdefs.h. */ 7597#include <stdio.h> 7598int 7599main (void) 7600{ 7601 7602 int op = 0, level = 0, eax, ebx, ecx, edx; 7603 FILE *f; 7604 __asm__ __volatile__ ("xchg %%ebx, %1\n" 7605 "cpuid\n" 7606 "xchg %%ebx, %1\n" 7607 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx) 7608 : "a" (op), "2" (level)); 7609 7610 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 7611 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 7612 fclose(f); 7613 return 0; 7614 7615 ; 7616 return 0; 7617} 7618_ACEOF 7619if ac_fn_c_try_run "$LINENO" 7620then : 7621 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 7622else $as_nop 7623 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 7624fi 7625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7626 conftest.$ac_objext conftest.beam conftest.$ac_ext 7627fi 7628 7629fi 7630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 7631printf "%s\n" "$ax_cv_gcc_x86_cpuid_0" >&6; } 7632ac_ext=c 7633ac_cpp='$CPP $CPPFLAGS' 7634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7636ac_compiler_gnu=$ac_cv_c_compiler_gnu 7637 7638 7639 7640 7641ac_ext=c 7642ac_cpp='$CPP $CPPFLAGS' 7643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7645ac_compiler_gnu=$ac_cv_c_compiler_gnu 7646 7647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 7648printf %s "checking for x86 cpuid 1 output... " >&6; } 7649if test ${ax_cv_gcc_x86_cpuid_1+y} 7650then : 7651 printf %s "(cached) " >&6 7652else $as_nop 7653 if test "$cross_compiling" = yes 7654then : 7655 ax_cv_gcc_x86_cpuid_1=unknown 7656else $as_nop 7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7658/* end confdefs.h. */ 7659#include <stdio.h> 7660int 7661main (void) 7662{ 7663 7664 int op = 1, level = 0, eax, ebx, ecx, edx; 7665 FILE *f; 7666 __asm__ __volatile__ ("xchg %%ebx, %1\n" 7667 "cpuid\n" 7668 "xchg %%ebx, %1\n" 7669 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx) 7670 : "a" (op), "2" (level)); 7671 7672 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 7673 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 7674 fclose(f); 7675 return 0; 7676 7677 ; 7678 return 0; 7679} 7680_ACEOF 7681if ac_fn_c_try_run "$LINENO" 7682then : 7683 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 7684else $as_nop 7685 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 7686fi 7687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7688 conftest.$ac_objext conftest.beam conftest.$ac_ext 7689fi 7690 7691fi 7692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 7693printf "%s\n" "$ax_cv_gcc_x86_cpuid_1" >&6; } 7694ac_ext=c 7695ac_cpp='$CPP $CPPFLAGS' 7696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7698ac_compiler_gnu=$ac_cv_c_compiler_gnu 7699 7700 7701 7702 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG 7703 *:756e6547:6c65746e:49656e69) # Intel 7704 case $ax_cv_gcc_x86_cpuid_1 in 7705 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) icc_flags="-xK" ;; 7706 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) icc_flags="-xSSE2 -xB -xK" ;; 7707 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) icc_flags="-xSSE3 -xP -xO -xB -xK" ;; 7708 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) icc_flags="-xSSSE3 -xT -xB -xK" ;; 7709 *1?6[7d]?:*:*:*) icc_flags="-xSSE4.1 -xS -xT -xB -xK" ;; 7710 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) icc_flags="-xSSE4.2 -xS -xT -xB -xK" ;; 7711 *2?6[ad]?:*:*:*) icc_flags="-xAVX -SSE4.2 -xS -xT -xB -xK" ;; 7712 *3?6[ae]?:*:*:*) icc_flags="-xCORE-AVX-I -xAVX -SSE4.2 -xS -xT -xB -xK" ;; 7713 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) icc_flags="-xCORE-AVX2 -xCORE-AVX-I -xAVX -SSE4.2 -xS -xT -xB -xK" ;; 7714 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) icc_flags="-xSSE3 -xP -xO -xN -xW -xK" ;; 7715 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) icc_flags="-xSSE2 -xN -xW -xK" ;; 7716 esac ;; 7717 esac ;; 7718 esac 7719 if test "x$icc_flags" != x; then 7720 for flag in $icc_flags; do 7721 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh` 7722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 7723printf %s "checking whether C compiler accepts $flag... " >&6; } 7724if eval test \${$as_CACHEVAR+y} 7725then : 7726 printf %s "(cached) " >&6 7727else $as_nop 7728 7729 ax_check_save_flags=$CFLAGS 7730 CFLAGS="$CFLAGS $flag" 7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7732/* end confdefs.h. */ 7733 7734int 7735main (void) 7736{ 7737 7738 ; 7739 return 0; 7740} 7741_ACEOF 7742if ac_fn_c_try_compile "$LINENO" 7743then : 7744 eval "$as_CACHEVAR=yes" 7745else $as_nop 7746 eval "$as_CACHEVAR=no" 7747fi 7748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7749 CFLAGS=$ax_check_save_flags 7750fi 7751eval ac_res=\$$as_CACHEVAR 7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7753printf "%s\n" "$ac_res" >&6; } 7754if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 7755then : 7756 icc_archflag=$flag; break 7757else $as_nop 7758 : 7759fi 7760 7761 done 7762 fi 7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5 7764printf %s "checking for icc architecture flag... " >&6; } 7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5 7766printf "%s\n" "$icc_archflag" >&6; } 7767 if test "x$icc_archflag" != xunknown; then 7768 CFLAGS="$CFLAGS $icc_archflag" 7769 fi 7770 fi 7771 ;; 7772 7773 nvhpc) 7774 # default optimization flags for nvhpc 7775 CFLAGS="$CFLAGS -O3" 7776 ;; 7777 7778 gnu) 7779 # default optimization flags for gcc on all systems 7780 CFLAGS="$CFLAGS -O3 -fomit-frame-pointer" 7781 7782 # -malign-double for x86 systems 7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 7784printf %s "checking whether C compiler accepts -malign-double... " >&6; } 7785if test ${ax_cv_check_cflags___malign_double+y} 7786then : 7787 printf %s "(cached) " >&6 7788else $as_nop 7789 7790 ax_check_save_flags=$CFLAGS 7791 CFLAGS="$CFLAGS -malign-double" 7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7793/* end confdefs.h. */ 7794 7795int 7796main (void) 7797{ 7798 7799 ; 7800 return 0; 7801} 7802_ACEOF 7803if ac_fn_c_try_compile "$LINENO" 7804then : 7805 ax_cv_check_cflags___malign_double=yes 7806else $as_nop 7807 ax_cv_check_cflags___malign_double=no 7808fi 7809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7810 CFLAGS=$ax_check_save_flags 7811fi 7812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5 7813printf "%s\n" "$ax_cv_check_cflags___malign_double" >&6; } 7814if test "x$ax_cv_check_cflags___malign_double" = xyes 7815then : 7816 CFLAGS="$CFLAGS -malign-double" 7817else $as_nop 7818 : 7819fi 7820 7821 7822 # -fstrict-aliasing for gcc-2.95+ 7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5 7824printf %s "checking whether C compiler accepts -fstrict-aliasing... " >&6; } 7825if test ${ax_cv_check_cflags___fstrict_aliasing+y} 7826then : 7827 printf %s "(cached) " >&6 7828else $as_nop 7829 7830 ax_check_save_flags=$CFLAGS 7831 CFLAGS="$CFLAGS -fstrict-aliasing" 7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7833/* end confdefs.h. */ 7834 7835int 7836main (void) 7837{ 7838 7839 ; 7840 return 0; 7841} 7842_ACEOF 7843if ac_fn_c_try_compile "$LINENO" 7844then : 7845 ax_cv_check_cflags___fstrict_aliasing=yes 7846else $as_nop 7847 ax_cv_check_cflags___fstrict_aliasing=no 7848fi 7849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7850 CFLAGS=$ax_check_save_flags 7851fi 7852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5 7853printf "%s\n" "$ax_cv_check_cflags___fstrict_aliasing" >&6; } 7854if test "x$ax_cv_check_cflags___fstrict_aliasing" = xyes 7855then : 7856 CFLAGS="$CFLAGS -fstrict-aliasing" 7857else $as_nop 7858 : 7859fi 7860 7861 7862 # note that we enable "unsafe" fp optimization with other compilers, too 7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5 7864printf %s "checking whether C compiler accepts -ffast-math... " >&6; } 7865if test ${ax_cv_check_cflags___ffast_math+y} 7866then : 7867 printf %s "(cached) " >&6 7868else $as_nop 7869 7870 ax_check_save_flags=$CFLAGS 7871 CFLAGS="$CFLAGS -ffast-math" 7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7873/* end confdefs.h. */ 7874 7875int 7876main (void) 7877{ 7878 7879 ; 7880 return 0; 7881} 7882_ACEOF 7883if ac_fn_c_try_compile "$LINENO" 7884then : 7885 ax_cv_check_cflags___ffast_math=yes 7886else $as_nop 7887 ax_cv_check_cflags___ffast_math=no 7888fi 7889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7890 CFLAGS=$ax_check_save_flags 7891fi 7892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5 7893printf "%s\n" "$ax_cv_check_cflags___ffast_math" >&6; } 7894if test "x$ax_cv_check_cflags___ffast_math" = xyes 7895then : 7896 CFLAGS="$CFLAGS -ffast-math" 7897else $as_nop 7898 : 7899fi 7900 7901 7902 7903 7904 7905 7906 7907 7908# Check whether --with-gcc-arch was given. 7909if test ${with_gcc_arch+y} 7910then : 7911 withval=$with_gcc_arch; ax_gcc_arch=$withval 7912else $as_nop 7913 ax_gcc_arch=yes 7914fi 7915 7916 7917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 7918printf %s "checking for gcc architecture flag... " >&6; } 7919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 7920printf "%s\n" "" >&6; } 7921if test ${ax_cv_gcc_archflag+y} 7922then : 7923 printf %s "(cached) " >&6 7924else $as_nop 7925 7926ax_cv_gcc_archflag="unknown" 7927 7928if test "$GCC" = yes; then 7929 7930if test "x$ax_gcc_arch" = xyes; then 7931ax_gcc_arch="" 7932if test "$cross_compiling" = no; then 7933case $host_cpu in 7934 i[3456]86*|x86_64*|amd64*) # use cpuid codes 7935 7936ac_ext=c 7937ac_cpp='$CPP $CPPFLAGS' 7938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7940ac_compiler_gnu=$ac_cv_c_compiler_gnu 7941 7942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 7943printf %s "checking for x86 cpuid 0 output... " >&6; } 7944if test ${ax_cv_gcc_x86_cpuid_0+y} 7945then : 7946 printf %s "(cached) " >&6 7947else $as_nop 7948 if test "$cross_compiling" = yes 7949then : 7950 ax_cv_gcc_x86_cpuid_0=unknown 7951else $as_nop 7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7953/* end confdefs.h. */ 7954#include <stdio.h> 7955int 7956main (void) 7957{ 7958 7959 int op = 0, level = 0, eax, ebx, ecx, edx; 7960 FILE *f; 7961 __asm__ __volatile__ ("xchg %%ebx, %1\n" 7962 "cpuid\n" 7963 "xchg %%ebx, %1\n" 7964 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx) 7965 : "a" (op), "2" (level)); 7966 7967 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 7968 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 7969 fclose(f); 7970 return 0; 7971 7972 ; 7973 return 0; 7974} 7975_ACEOF 7976if ac_fn_c_try_run "$LINENO" 7977then : 7978 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 7979else $as_nop 7980 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 7981fi 7982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7983 conftest.$ac_objext conftest.beam conftest.$ac_ext 7984fi 7985 7986fi 7987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 7988printf "%s\n" "$ax_cv_gcc_x86_cpuid_0" >&6; } 7989ac_ext=c 7990ac_cpp='$CPP $CPPFLAGS' 7991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7993ac_compiler_gnu=$ac_cv_c_compiler_gnu 7994 7995 7996 7997 7998ac_ext=c 7999ac_cpp='$CPP $CPPFLAGS' 8000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8002ac_compiler_gnu=$ac_cv_c_compiler_gnu 8003 8004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 8005printf %s "checking for x86 cpuid 1 output... " >&6; } 8006if test ${ax_cv_gcc_x86_cpuid_1+y} 8007then : 8008 printf %s "(cached) " >&6 8009else $as_nop 8010 if test "$cross_compiling" = yes 8011then : 8012 ax_cv_gcc_x86_cpuid_1=unknown 8013else $as_nop 8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8015/* end confdefs.h. */ 8016#include <stdio.h> 8017int 8018main (void) 8019{ 8020 8021 int op = 1, level = 0, eax, ebx, ecx, edx; 8022 FILE *f; 8023 __asm__ __volatile__ ("xchg %%ebx, %1\n" 8024 "cpuid\n" 8025 "xchg %%ebx, %1\n" 8026 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx) 8027 : "a" (op), "2" (level)); 8028 8029 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 8030 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 8031 fclose(f); 8032 return 0; 8033 8034 ; 8035 return 0; 8036} 8037_ACEOF 8038if ac_fn_c_try_run "$LINENO" 8039then : 8040 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 8041else $as_nop 8042 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 8043fi 8044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8045 conftest.$ac_objext conftest.beam conftest.$ac_ext 8046fi 8047 8048fi 8049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 8050printf "%s\n" "$ax_cv_gcc_x86_cpuid_1" >&6; } 8051ac_ext=c 8052ac_cpp='$CPP $CPPFLAGS' 8053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8055ac_compiler_gnu=$ac_cv_c_compiler_gnu 8056 8057 8058 8059 case $ax_cv_gcc_x86_cpuid_0 in 8060 *:756e6547:6c65746e:49656e69) # Intel 8061 case $ax_cv_gcc_x86_cpuid_1 in 8062 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; 8063 *5[123]?:*:*:*) ax_gcc_arch=pentium ;; 8064 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;; 8065 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 8066 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 8067 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; 8068 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;; 8069 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;; 8070 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;; 8071 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;; 8072 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;; 8073 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8074 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8075 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8076 *3?6d?:*:*:*|*4?6[7f]?:*:*:*|*5?66?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8077 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;; 8078 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;; 8079 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;; 8080 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;; 8081 # fallback 8082 *5??:*:*:*) ax_gcc_arch=pentium ;; 8083 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;; 8084 *6??:*:*:*) ax_gcc_arch=pentiumpro ;; 8085 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;; 8086 esac ;; 8087 *:68747541:444d4163:69746e65) # AMD 8088 case $ax_cv_gcc_x86_cpuid_1 in 8089 *5[67]?:*:*:*) ax_gcc_arch=k6 ;; 8090 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; 8091 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; 8092 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;; 8093 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; 8094 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; 8095 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; 8096 *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;; 8097 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;; 8098 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;; 8099 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;; 8100 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;; 8101 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;; 8102 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;; 8103 # fallback 8104 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;; 8105 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;; 8106 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;; 8107 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;; 8108 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;; 8109 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;; 8110 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;; 8111 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;; 8112 esac ;; 8113 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur) 8114 case $ax_cv_gcc_x86_cpuid_1 in 8115 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; 8116 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;; 8117 *66?:*:*:*) ax_gcc_arch=winchip2 ;; 8118 *6[78]?:*:*:*) ax_gcc_arch=c3 ;; 8119 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;; 8120 esac ;; 8121 esac 8122 if test x"$ax_gcc_arch" = x; then # fallback 8123 case $host_cpu in 8124 i586*) ax_gcc_arch=pentium ;; 8125 i686*) ax_gcc_arch=pentiumpro ;; 8126 esac 8127 fi 8128 ;; 8129 8130 sparc*) 8131 # Extract the first word of "prtdiag", so it can be a program name with args. 8132set dummy prtdiag; ac_word=$2 8133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8134printf %s "checking for $ac_word... " >&6; } 8135if test ${ac_cv_path_PRTDIAG+y} 8136then : 8137 printf %s "(cached) " >&6 8138else $as_nop 8139 case $PRTDIAG in 8140 [\\/]* | ?:[\\/]*) 8141 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path. 8142 ;; 8143 *) 8144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8145as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/" 8146for as_dir in $as_dummy 8147do 8148 IFS=$as_save_IFS 8149 case $as_dir in #((( 8150 '') as_dir=./ ;; 8151 */) ;; 8152 *) as_dir=$as_dir/ ;; 8153 esac 8154 for ac_exec_ext in '' $ac_executable_extensions; do 8155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8156 ac_cv_path_PRTDIAG="$as_dir$ac_word$ac_exec_ext" 8157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8158 break 2 8159 fi 8160done 8161 done 8162IFS=$as_save_IFS 8163 8164 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag" 8165 ;; 8166esac 8167fi 8168PRTDIAG=$ac_cv_path_PRTDIAG 8169if test -n "$PRTDIAG"; then 8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5 8171printf "%s\n" "$PRTDIAG" >&6; } 8172else 8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8174printf "%s\n" "no" >&6; } 8175fi 8176 8177 8178 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` 8179 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters` 8180 case $cputype in 8181 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; 8182 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; 8183 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; 8184 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;; 8185 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;; 8186 *cypress*) ax_gcc_arch=cypress ;; 8187 esac ;; 8188 8189 alphaev5) ax_gcc_arch=ev5 ;; 8190 alphaev56) ax_gcc_arch=ev56 ;; 8191 alphapca56) ax_gcc_arch="pca56 ev56" ;; 8192 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; 8193 alphaev6) ax_gcc_arch=ev6 ;; 8194 alphaev67) ax_gcc_arch=ev67 ;; 8195 alphaev68) ax_gcc_arch="ev68 ev67" ;; 8196 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; 8197 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; 8198 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; 8199 8200 powerpc*) 8201 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` 8202 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'` 8203 case $cputype in 8204 *750*) ax_gcc_arch="750 G3" ;; 8205 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;; 8206 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;; 8207 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;; 8208 *970*) ax_gcc_arch="970 G5 power4";; 8209 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; 8210 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; 8211 603ev|8240) ax_gcc_arch="$cputype 603e 603";; 8212 *POWER7*) ax_gcc_arch="power7";; 8213 *POWER8*) ax_gcc_arch="power8";; 8214 *POWER9*) ax_gcc_arch="power9";; 8215 *POWER10*) ax_gcc_arch="power10";; 8216 *) ax_gcc_arch=$cputype ;; 8217 esac 8218 ax_gcc_arch="$ax_gcc_arch powerpc" 8219 ;; 8220 aarch64) 8221 cpuimpl=`grep 'CPU implementer' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1` 8222 cpuarch=`grep 'CPU architecture' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1` 8223 cpuvar=`grep 'CPU variant' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1` 8224 case $cpuimpl in 8225 0x42) case $cpuarch in 8226 8) case $cpuvar in 8227 0x0) ax_gcc_arch="thunderx2t99 vulcan armv8.1-a armv8-a+lse armv8-a native" ;; 8228 esac 8229 ;; 8230 esac 8231 ;; 8232 0x43) case $cpuarch in 8233 8) case $cpuvar in 8234 0x0) ax_gcc_arch="thunderx armv8-a native" ;; 8235 0x1) ax_gcc_arch="thunderx+lse armv8.1-a armv8-a+lse armv8-a native" ;; 8236 esac 8237 ;; 8238 esac 8239 ;; 8240 esac 8241 ;; 8242esac 8243fi # not cross-compiling 8244fi # guess arch 8245 8246if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then 8247if test "x$acx_maxopt_portable" = xyes; then # if we require portable code 8248 flag_prefixes="-mtune=" 8249 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi 8250 # -mcpu=$arch and m$arch generate nonportable code on every arch except 8251 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. 8252 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac 8253else 8254 flag_prefixes="-march= -mcpu= -m" 8255fi 8256for flag_prefix in $flag_prefixes; do 8257 for arch in $ax_gcc_arch; do 8258 flag="$flag_prefix$arch" 8259 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh` 8260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8261printf %s "checking whether C compiler accepts $flag... " >&6; } 8262if eval test \${$as_CACHEVAR+y} 8263then : 8264 printf %s "(cached) " >&6 8265else $as_nop 8266 8267 ax_check_save_flags=$CFLAGS 8268 CFLAGS="$CFLAGS $flag" 8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8270/* end confdefs.h. */ 8271 8272int 8273main (void) 8274{ 8275 8276 ; 8277 return 0; 8278} 8279_ACEOF 8280if ac_fn_c_try_compile "$LINENO" 8281then : 8282 eval "$as_CACHEVAR=yes" 8283else $as_nop 8284 eval "$as_CACHEVAR=no" 8285fi 8286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8287 CFLAGS=$ax_check_save_flags 8288fi 8289eval ac_res=\$$as_CACHEVAR 8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8291printf "%s\n" "$ac_res" >&6; } 8292if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 8293then : 8294 if test "x$ax_cv_c_compiler_vendor" = xclang; then 8295 if test "x$acx_maxopt_portable" = xyes; then 8296 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi 8297 fi 8298 fi; ax_cv_gcc_archflag=$flag; break 8299else $as_nop 8300 : 8301fi 8302 8303 done 8304 test "x$ax_cv_gcc_archflag" = xunknown || break 8305done 8306fi 8307 8308fi # $GCC=yes 8309 8310fi 8311 8312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 8313printf %s "checking for gcc architecture flag... " >&6; } 8314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5 8315printf "%s\n" "$ax_cv_gcc_archflag" >&6; } 8316if test "x$ax_cv_gcc_archflag" = xunknown; then 8317 : 8318else 8319 CFLAGS="$CFLAGS $ax_cv_gcc_archflag" 8320fi 8321 8322 8323 # drop to -O1 for gcc 4.2 8324 $CC --version | 8325 sed -e 's/.* \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1 \2/' | 8326 (read major minor 8327 if test $major -eq 4 -a $minor -eq 2; then 8328 exit 0 8329 fi 8330 exit 1 8331 ) && CFLAGS="-O1" 8332 ;; 8333 8334 microsoft) 8335 # default optimization flags for MSVC opt builds 8336 CFLAGS="$CFLAGS -O2" 8337 ;; 8338 esac 8339 8340 if test -z "$CFLAGS"; then 8341 echo "" 8342 echo "********************************************************" 8343 echo "* WARNING: Don't know the best CFLAGS for this system *" 8344 echo "* Use ./configure CFLAGS=... to specify your own flags *" 8345 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" 8346 echo "********************************************************" 8347 echo "" 8348 CFLAGS="$CFLAGS -O3" 8349 fi 8350 8351 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh` 8352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5 8353printf %s "checking whether C compiler accepts $CFLAGS... " >&6; } 8354if eval test \${$as_CACHEVAR+y} 8355then : 8356 printf %s "(cached) " >&6 8357else $as_nop 8358 8359 ax_check_save_flags=$CFLAGS 8360 CFLAGS="$CFLAGS $CFLAGS" 8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8362/* end confdefs.h. */ 8363 8364int 8365main (void) 8366{ 8367 8368 ; 8369 return 0; 8370} 8371_ACEOF 8372if ac_fn_c_try_compile "$LINENO" 8373then : 8374 eval "$as_CACHEVAR=yes" 8375else $as_nop 8376 eval "$as_CACHEVAR=no" 8377fi 8378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8379 CFLAGS=$ax_check_save_flags 8380fi 8381eval ac_res=\$$as_CACHEVAR 8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8383printf "%s\n" "$ac_res" >&6; } 8384if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 8385then : 8386 : 8387else $as_nop 8388 8389 echo "" 8390 echo "********************************************************" 8391 echo "* WARNING: The guessed CFLAGS don't seem to work with *" 8392 echo "* your compiler. *" 8393 echo "* Use ./configure CFLAGS=... to specify your own flags *" 8394 echo "********************************************************" 8395 echo "" 8396 8397fi 8398 8399 8400fi 8401 8402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports function __attribute__((__warn_unused_result__))" >&5 8403printf %s "checking whether the compiler supports function __attribute__((__warn_unused_result__))... " >&6; } 8404if test ${ax_cv_gcc_warn_unused_result+y} 8405then : 8406 printf %s "(cached) " >&6 8407else $as_nop 8408 8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8410/* end confdefs.h. */ 8411__attribute__((__warn_unused_result__)) 8412 int f(int i) { return i; } 8413int 8414main (void) 8415{ 8416 8417 ; 8418 return 0; 8419} 8420_ACEOF 8421if ac_fn_c_try_compile "$LINENO" 8422then : 8423 ax_cv_gcc_warn_unused_result=yes 8424else $as_nop 8425 ax_cv_gcc_warn_unused_result=no 8426fi 8427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8428fi 8429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_warn_unused_result" >&5 8430printf "%s\n" "$ax_cv_gcc_warn_unused_result" >&6; } 8431 if test "$ax_cv_gcc_warn_unused_result" = yes; then 8432 8433printf "%s\n" "#define GCC_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))" >>confdefs.h 8434 8435 fi 8436 8437 8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 8439printf %s "checking for __attribute__... " >&6; } 8440if test ${ax_cv___attribute__+y} 8441then : 8442 printf %s "(cached) " >&6 8443else $as_nop 8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8445/* end confdefs.h. */ 8446#include <stdlib.h> 8447 static void foo(void) __attribute__ ((unused)); 8448 static void 8449 foo(void) { 8450 exit(1); 8451 } 8452 8453int 8454main (void) 8455{ 8456 8457 ; 8458 return 0; 8459} 8460_ACEOF 8461if ac_fn_c_try_compile "$LINENO" 8462then : 8463 ax_cv___attribute__=yes 8464else $as_nop 8465 ax_cv___attribute__=no 8466 8467fi 8468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8469 8470fi 8471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 8472printf "%s\n" "$ax_cv___attribute__" >&6; } 8473 if test "$ax_cv___attribute__" = "yes"; then 8474 8475printf "%s\n" "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 8476 8477 fi 8478 8479 8480 8481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 8482printf %s "checking for grep that handles long lines and -e... " >&6; } 8483if test ${ac_cv_path_GREP+y} 8484then : 8485 printf %s "(cached) " >&6 8486else $as_nop 8487 if test -z "$GREP"; then 8488 ac_path_GREP_found=false 8489 # Loop through the user's path and test for each of PROGNAME-LIST 8490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8491for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8492do 8493 IFS=$as_save_IFS 8494 case $as_dir in #((( 8495 '') as_dir=./ ;; 8496 */) ;; 8497 *) as_dir=$as_dir/ ;; 8498 esac 8499 for ac_prog in grep ggrep 8500 do 8501 for ac_exec_ext in '' $ac_executable_extensions; do 8502 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 8503 as_fn_executable_p "$ac_path_GREP" || continue 8504# Check for GNU ac_path_GREP and select it if it is found. 8505 # Check for GNU $ac_path_GREP 8506case `"$ac_path_GREP" --version 2>&1` in 8507*GNU*) 8508 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 8509*) 8510 ac_count=0 8511 printf %s 0123456789 >"conftest.in" 8512 while : 8513 do 8514 cat "conftest.in" "conftest.in" >"conftest.tmp" 8515 mv "conftest.tmp" "conftest.in" 8516 cp "conftest.in" "conftest.nl" 8517 printf "%s\n" 'GREP' >> "conftest.nl" 8518 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 8519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8520 as_fn_arith $ac_count + 1 && ac_count=$as_val 8521 if test $ac_count -gt ${ac_path_GREP_max-0}; then 8522 # Best one so far, save it but keep looking for a better one 8523 ac_cv_path_GREP="$ac_path_GREP" 8524 ac_path_GREP_max=$ac_count 8525 fi 8526 # 10*(2^10) chars as input seems more than enough 8527 test $ac_count -gt 10 && break 8528 done 8529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8530esac 8531 8532 $ac_path_GREP_found && break 3 8533 done 8534 done 8535 done 8536IFS=$as_save_IFS 8537 if test -z "$ac_cv_path_GREP"; then 8538 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8539 fi 8540else 8541 ac_cv_path_GREP=$GREP 8542fi 8543 8544fi 8545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 8546printf "%s\n" "$ac_cv_path_GREP" >&6; } 8547 GREP="$ac_cv_path_GREP" 8548 8549 8550 echo $CXX | $GREP -e "-std=" > /dev/null 2> /dev/null 8551 if test $? -eq 0; then 8552 ac_ext=cpp 8553ac_cpp='$CXXCPP $CPPFLAGS' 8554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8557 ac_success=no 8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 8559printf %s "checking whether $CXX supports C++11 features by default... " >&6; } 8560if test ${ax_cv_cxx_compile_cxx11+y} 8561then : 8562 printf %s "(cached) " >&6 8563else $as_nop 8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8565/* end confdefs.h. */ 8566 8567 8568// If the compiler admits that it is not ready for C++11, why torture it? 8569// Hopefully, this will speed up the test. 8570 8571#ifndef __cplusplus 8572 8573#error "This is not a C++ compiler" 8574 8575#elif __cplusplus < 201103L 8576 8577#error "This is not a C++11 compiler" 8578 8579#else 8580 8581namespace cxx11 8582{ 8583 8584 namespace test_static_assert 8585 { 8586 8587 template <typename T> 8588 struct check 8589 { 8590 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 8591 }; 8592 8593 } 8594 8595 namespace test_final_override 8596 { 8597 8598 struct Base 8599 { 8600 virtual ~Base() {} 8601 virtual void f() {} 8602 }; 8603 8604 struct Derived : public Base 8605 { 8606 virtual ~Derived() override {} 8607 virtual void f() override {} 8608 }; 8609 8610 } 8611 8612 namespace test_double_right_angle_brackets 8613 { 8614 8615 template < typename T > 8616 struct check {}; 8617 8618 typedef check<void> single_type; 8619 typedef check<check<void>> double_type; 8620 typedef check<check<check<void>>> triple_type; 8621 typedef check<check<check<check<void>>>> quadruple_type; 8622 8623 } 8624 8625 namespace test_decltype 8626 { 8627 8628 int 8629 f() 8630 { 8631 int a = 1; 8632 decltype(a) b = 2; 8633 return a + b; 8634 } 8635 8636 } 8637 8638 namespace test_type_deduction 8639 { 8640 8641 template < typename T1, typename T2 > 8642 struct is_same 8643 { 8644 static const bool value = false; 8645 }; 8646 8647 template < typename T > 8648 struct is_same<T, T> 8649 { 8650 static const bool value = true; 8651 }; 8652 8653 template < typename T1, typename T2 > 8654 auto 8655 add(T1 a1, T2 a2) -> decltype(a1 + a2) 8656 { 8657 return a1 + a2; 8658 } 8659 8660 int 8661 test(const int c, volatile int v) 8662 { 8663 static_assert(is_same<int, decltype(0)>::value == true, ""); 8664 static_assert(is_same<int, decltype(c)>::value == false, ""); 8665 static_assert(is_same<int, decltype(v)>::value == false, ""); 8666 auto ac = c; 8667 auto av = v; 8668 auto sumi = ac + av + 'x'; 8669 auto sumf = ac + av + 1.0; 8670 static_assert(is_same<int, decltype(ac)>::value == true, ""); 8671 static_assert(is_same<int, decltype(av)>::value == true, ""); 8672 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 8673 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 8674 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 8675 return (sumf > 0.0) ? sumi : add(c, v); 8676 } 8677 8678 } 8679 8680 namespace test_noexcept 8681 { 8682 8683 int f() { return 0; } 8684 int g() noexcept { return 0; } 8685 8686 static_assert(noexcept(f()) == false, ""); 8687 static_assert(noexcept(g()) == true, ""); 8688 8689 } 8690 8691 namespace test_constexpr 8692 { 8693 8694 template < typename CharT > 8695 unsigned long constexpr 8696 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 8697 { 8698 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 8699 } 8700 8701 template < typename CharT > 8702 unsigned long constexpr 8703 strlen_c(const CharT *const s) noexcept 8704 { 8705 return strlen_c_r(s, 0UL); 8706 } 8707 8708 static_assert(strlen_c("") == 0UL, ""); 8709 static_assert(strlen_c("1") == 1UL, ""); 8710 static_assert(strlen_c("example") == 7UL, ""); 8711 static_assert(strlen_c("another\0example") == 7UL, ""); 8712 8713 } 8714 8715 namespace test_rvalue_references 8716 { 8717 8718 template < int N > 8719 struct answer 8720 { 8721 static constexpr int value = N; 8722 }; 8723 8724 answer<1> f(int&) { return answer<1>(); } 8725 answer<2> f(const int&) { return answer<2>(); } 8726 answer<3> f(int&&) { return answer<3>(); } 8727 8728 void 8729 test() 8730 { 8731 int i = 0; 8732 const int c = 0; 8733 static_assert(decltype(f(i))::value == 1, ""); 8734 static_assert(decltype(f(c))::value == 2, ""); 8735 static_assert(decltype(f(0))::value == 3, ""); 8736 } 8737 8738 } 8739 8740 namespace test_uniform_initialization 8741 { 8742 8743 struct test 8744 { 8745 static const int zero {}; 8746 static const int one {1}; 8747 }; 8748 8749 static_assert(test::zero == 0, ""); 8750 static_assert(test::one == 1, ""); 8751 8752 } 8753 8754 namespace test_lambdas 8755 { 8756 8757 void 8758 test1() 8759 { 8760 auto lambda1 = [](){}; 8761 auto lambda2 = lambda1; 8762 lambda1(); 8763 lambda2(); 8764 } 8765 8766 int 8767 test2() 8768 { 8769 auto a = [](int i, int j){ return i + j; }(1, 2); 8770 auto b = []() -> int { return '0'; }(); 8771 auto c = [=](){ return a + b; }(); 8772 auto d = [&](){ return c; }(); 8773 auto e = [a, &b](int x) mutable { 8774 const auto identity = [](int y){ return y; }; 8775 for (auto i = 0; i < a; ++i) 8776 a += b--; 8777 return x + identity(a + b); 8778 }(0); 8779 return a + b + c + d + e; 8780 } 8781 8782 int 8783 test3() 8784 { 8785 const auto nullary = [](){ return 0; }; 8786 const auto unary = [](int x){ return x; }; 8787 using nullary_t = decltype(nullary); 8788 using unary_t = decltype(unary); 8789 const auto higher1st = [](nullary_t f){ return f(); }; 8790 const auto higher2nd = [unary](nullary_t f1){ 8791 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 8792 }; 8793 return higher1st(nullary) + higher2nd(nullary)(unary); 8794 } 8795 8796 } 8797 8798 namespace test_variadic_templates 8799 { 8800 8801 template <int...> 8802 struct sum; 8803 8804 template <int N0, int... N1toN> 8805 struct sum<N0, N1toN...> 8806 { 8807 static constexpr auto value = N0 + sum<N1toN...>::value; 8808 }; 8809 8810 template <> 8811 struct sum<> 8812 { 8813 static constexpr auto value = 0; 8814 }; 8815 8816 static_assert(sum<>::value == 0, ""); 8817 static_assert(sum<1>::value == 1, ""); 8818 static_assert(sum<23>::value == 23, ""); 8819 static_assert(sum<1, 2>::value == 3, ""); 8820 static_assert(sum<5, 5, 11>::value == 21, ""); 8821 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 8822 8823 } 8824 8825 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 8826 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 8827 // because of this. 8828 namespace test_template_alias_sfinae 8829 { 8830 8831 struct foo {}; 8832 8833 template<typename T> 8834 using member = typename T::member_type; 8835 8836 template<typename T> 8837 void func(...) {} 8838 8839 template<typename T> 8840 void func(member<T>*) {} 8841 8842 void test(); 8843 8844 void test() { func<foo>(0); } 8845 8846 } 8847 8848} // namespace cxx11 8849 8850#endif // __cplusplus >= 201103L 8851 8852 8853 8854_ACEOF 8855if ac_fn_cxx_try_compile "$LINENO" 8856then : 8857 ax_cv_cxx_compile_cxx11=yes 8858else $as_nop 8859 ax_cv_cxx_compile_cxx11=no 8860fi 8861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8862fi 8863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 8864printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; } 8865 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 8866 ac_success=yes 8867 fi 8868 ac_ext=c 8869ac_cpp='$CPP $CPPFLAGS' 8870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8872ac_compiler_gnu=$ac_cv_c_compiler_gnu 8873 8874 if test x$ac_success = xno; then 8875 HAVE_CXX11=0 8876 else 8877 HAVE_CXX11=1 8878 8879printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h 8880 8881 fi 8882 8883 8884 else 8885 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=false 8886 ac_ext=cpp 8887ac_cpp='$CXXCPP $CPPFLAGS' 8888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8891 ac_success=no 8892 8893 8894 8895 8896 8897 if test x$ac_success = xno; then 8898 for alternative in ${ax_cxx_compile_alternatives}; do 8899 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 8900 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 8902printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; } 8903if eval test \${$cachevar+y} 8904then : 8905 printf %s "(cached) " >&6 8906else $as_nop 8907 ac_save_CXX="$CXX" 8908 CXX="$CXX $switch" 8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8910/* end confdefs.h. */ 8911 8912 8913// If the compiler admits that it is not ready for C++11, why torture it? 8914// Hopefully, this will speed up the test. 8915 8916#ifndef __cplusplus 8917 8918#error "This is not a C++ compiler" 8919 8920#elif __cplusplus < 201103L 8921 8922#error "This is not a C++11 compiler" 8923 8924#else 8925 8926namespace cxx11 8927{ 8928 8929 namespace test_static_assert 8930 { 8931 8932 template <typename T> 8933 struct check 8934 { 8935 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 8936 }; 8937 8938 } 8939 8940 namespace test_final_override 8941 { 8942 8943 struct Base 8944 { 8945 virtual ~Base() {} 8946 virtual void f() {} 8947 }; 8948 8949 struct Derived : public Base 8950 { 8951 virtual ~Derived() override {} 8952 virtual void f() override {} 8953 }; 8954 8955 } 8956 8957 namespace test_double_right_angle_brackets 8958 { 8959 8960 template < typename T > 8961 struct check {}; 8962 8963 typedef check<void> single_type; 8964 typedef check<check<void>> double_type; 8965 typedef check<check<check<void>>> triple_type; 8966 typedef check<check<check<check<void>>>> quadruple_type; 8967 8968 } 8969 8970 namespace test_decltype 8971 { 8972 8973 int 8974 f() 8975 { 8976 int a = 1; 8977 decltype(a) b = 2; 8978 return a + b; 8979 } 8980 8981 } 8982 8983 namespace test_type_deduction 8984 { 8985 8986 template < typename T1, typename T2 > 8987 struct is_same 8988 { 8989 static const bool value = false; 8990 }; 8991 8992 template < typename T > 8993 struct is_same<T, T> 8994 { 8995 static const bool value = true; 8996 }; 8997 8998 template < typename T1, typename T2 > 8999 auto 9000 add(T1 a1, T2 a2) -> decltype(a1 + a2) 9001 { 9002 return a1 + a2; 9003 } 9004 9005 int 9006 test(const int c, volatile int v) 9007 { 9008 static_assert(is_same<int, decltype(0)>::value == true, ""); 9009 static_assert(is_same<int, decltype(c)>::value == false, ""); 9010 static_assert(is_same<int, decltype(v)>::value == false, ""); 9011 auto ac = c; 9012 auto av = v; 9013 auto sumi = ac + av + 'x'; 9014 auto sumf = ac + av + 1.0; 9015 static_assert(is_same<int, decltype(ac)>::value == true, ""); 9016 static_assert(is_same<int, decltype(av)>::value == true, ""); 9017 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 9018 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 9019 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 9020 return (sumf > 0.0) ? sumi : add(c, v); 9021 } 9022 9023 } 9024 9025 namespace test_noexcept 9026 { 9027 9028 int f() { return 0; } 9029 int g() noexcept { return 0; } 9030 9031 static_assert(noexcept(f()) == false, ""); 9032 static_assert(noexcept(g()) == true, ""); 9033 9034 } 9035 9036 namespace test_constexpr 9037 { 9038 9039 template < typename CharT > 9040 unsigned long constexpr 9041 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 9042 { 9043 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 9044 } 9045 9046 template < typename CharT > 9047 unsigned long constexpr 9048 strlen_c(const CharT *const s) noexcept 9049 { 9050 return strlen_c_r(s, 0UL); 9051 } 9052 9053 static_assert(strlen_c("") == 0UL, ""); 9054 static_assert(strlen_c("1") == 1UL, ""); 9055 static_assert(strlen_c("example") == 7UL, ""); 9056 static_assert(strlen_c("another\0example") == 7UL, ""); 9057 9058 } 9059 9060 namespace test_rvalue_references 9061 { 9062 9063 template < int N > 9064 struct answer 9065 { 9066 static constexpr int value = N; 9067 }; 9068 9069 answer<1> f(int&) { return answer<1>(); } 9070 answer<2> f(const int&) { return answer<2>(); } 9071 answer<3> f(int&&) { return answer<3>(); } 9072 9073 void 9074 test() 9075 { 9076 int i = 0; 9077 const int c = 0; 9078 static_assert(decltype(f(i))::value == 1, ""); 9079 static_assert(decltype(f(c))::value == 2, ""); 9080 static_assert(decltype(f(0))::value == 3, ""); 9081 } 9082 9083 } 9084 9085 namespace test_uniform_initialization 9086 { 9087 9088 struct test 9089 { 9090 static const int zero {}; 9091 static const int one {1}; 9092 }; 9093 9094 static_assert(test::zero == 0, ""); 9095 static_assert(test::one == 1, ""); 9096 9097 } 9098 9099 namespace test_lambdas 9100 { 9101 9102 void 9103 test1() 9104 { 9105 auto lambda1 = [](){}; 9106 auto lambda2 = lambda1; 9107 lambda1(); 9108 lambda2(); 9109 } 9110 9111 int 9112 test2() 9113 { 9114 auto a = [](int i, int j){ return i + j; }(1, 2); 9115 auto b = []() -> int { return '0'; }(); 9116 auto c = [=](){ return a + b; }(); 9117 auto d = [&](){ return c; }(); 9118 auto e = [a, &b](int x) mutable { 9119 const auto identity = [](int y){ return y; }; 9120 for (auto i = 0; i < a; ++i) 9121 a += b--; 9122 return x + identity(a + b); 9123 }(0); 9124 return a + b + c + d + e; 9125 } 9126 9127 int 9128 test3() 9129 { 9130 const auto nullary = [](){ return 0; }; 9131 const auto unary = [](int x){ return x; }; 9132 using nullary_t = decltype(nullary); 9133 using unary_t = decltype(unary); 9134 const auto higher1st = [](nullary_t f){ return f(); }; 9135 const auto higher2nd = [unary](nullary_t f1){ 9136 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 9137 }; 9138 return higher1st(nullary) + higher2nd(nullary)(unary); 9139 } 9140 9141 } 9142 9143 namespace test_variadic_templates 9144 { 9145 9146 template <int...> 9147 struct sum; 9148 9149 template <int N0, int... N1toN> 9150 struct sum<N0, N1toN...> 9151 { 9152 static constexpr auto value = N0 + sum<N1toN...>::value; 9153 }; 9154 9155 template <> 9156 struct sum<> 9157 { 9158 static constexpr auto value = 0; 9159 }; 9160 9161 static_assert(sum<>::value == 0, ""); 9162 static_assert(sum<1>::value == 1, ""); 9163 static_assert(sum<23>::value == 23, ""); 9164 static_assert(sum<1, 2>::value == 3, ""); 9165 static_assert(sum<5, 5, 11>::value == 21, ""); 9166 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 9167 9168 } 9169 9170 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 9171 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 9172 // because of this. 9173 namespace test_template_alias_sfinae 9174 { 9175 9176 struct foo {}; 9177 9178 template<typename T> 9179 using member = typename T::member_type; 9180 9181 template<typename T> 9182 void func(...) {} 9183 9184 template<typename T> 9185 void func(member<T>*) {} 9186 9187 void test(); 9188 9189 void test() { func<foo>(0); } 9190 9191 } 9192 9193} // namespace cxx11 9194 9195#endif // __cplusplus >= 201103L 9196 9197 9198 9199_ACEOF 9200if ac_fn_cxx_try_compile "$LINENO" 9201then : 9202 eval $cachevar=yes 9203else $as_nop 9204 eval $cachevar=no 9205fi 9206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9207 CXX="$ac_save_CXX" 9208fi 9209eval ac_res=\$$cachevar 9210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9211printf "%s\n" "$ac_res" >&6; } 9212 if eval test x\$$cachevar = xyes; then 9213 CXX="$CXX $switch" 9214 if test -n "$CXXCPP" ; then 9215 CXXCPP="$CXXCPP $switch" 9216 fi 9217 ac_success=yes 9218 break 9219 fi 9220 done 9221 if test x$ac_success = xyes; then 9222 break 9223 fi 9224 done 9225 fi 9226 ac_ext=c 9227ac_cpp='$CPP $CPPFLAGS' 9228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9230ac_compiler_gnu=$ac_cv_c_compiler_gnu 9231 9232 if test x$ax_cxx_compile_cxx11_required = xtrue; then 9233 if test x$ac_success = xno; then 9234 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 9235 fi 9236 fi 9237 if test x$ac_success = xno; then 9238 HAVE_CXX11=0 9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 9240printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;} 9241 else 9242 HAVE_CXX11=1 9243 9244printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h 9245 9246 fi 9247 9248 9249 fi 9250 9251 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=false 9252 ac_ext=cpp 9253ac_cpp='$CXXCPP $CPPFLAGS' 9254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9257 ac_success=no 9258 9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5 9260printf %s "checking whether $CXX supports C++17 features by default... " >&6; } 9261if test ${ax_cv_cxx_compile_cxx17+y} 9262then : 9263 printf %s "(cached) " >&6 9264else $as_nop 9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9266/* end confdefs.h. */ 9267 9268 9269// If the compiler admits that it is not ready for C++11, why torture it? 9270// Hopefully, this will speed up the test. 9271 9272#ifndef __cplusplus 9273 9274#error "This is not a C++ compiler" 9275 9276#elif __cplusplus < 201103L 9277 9278#error "This is not a C++11 compiler" 9279 9280#else 9281 9282namespace cxx11 9283{ 9284 9285 namespace test_static_assert 9286 { 9287 9288 template <typename T> 9289 struct check 9290 { 9291 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 9292 }; 9293 9294 } 9295 9296 namespace test_final_override 9297 { 9298 9299 struct Base 9300 { 9301 virtual ~Base() {} 9302 virtual void f() {} 9303 }; 9304 9305 struct Derived : public Base 9306 { 9307 virtual ~Derived() override {} 9308 virtual void f() override {} 9309 }; 9310 9311 } 9312 9313 namespace test_double_right_angle_brackets 9314 { 9315 9316 template < typename T > 9317 struct check {}; 9318 9319 typedef check<void> single_type; 9320 typedef check<check<void>> double_type; 9321 typedef check<check<check<void>>> triple_type; 9322 typedef check<check<check<check<void>>>> quadruple_type; 9323 9324 } 9325 9326 namespace test_decltype 9327 { 9328 9329 int 9330 f() 9331 { 9332 int a = 1; 9333 decltype(a) b = 2; 9334 return a + b; 9335 } 9336 9337 } 9338 9339 namespace test_type_deduction 9340 { 9341 9342 template < typename T1, typename T2 > 9343 struct is_same 9344 { 9345 static const bool value = false; 9346 }; 9347 9348 template < typename T > 9349 struct is_same<T, T> 9350 { 9351 static const bool value = true; 9352 }; 9353 9354 template < typename T1, typename T2 > 9355 auto 9356 add(T1 a1, T2 a2) -> decltype(a1 + a2) 9357 { 9358 return a1 + a2; 9359 } 9360 9361 int 9362 test(const int c, volatile int v) 9363 { 9364 static_assert(is_same<int, decltype(0)>::value == true, ""); 9365 static_assert(is_same<int, decltype(c)>::value == false, ""); 9366 static_assert(is_same<int, decltype(v)>::value == false, ""); 9367 auto ac = c; 9368 auto av = v; 9369 auto sumi = ac + av + 'x'; 9370 auto sumf = ac + av + 1.0; 9371 static_assert(is_same<int, decltype(ac)>::value == true, ""); 9372 static_assert(is_same<int, decltype(av)>::value == true, ""); 9373 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 9374 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 9375 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 9376 return (sumf > 0.0) ? sumi : add(c, v); 9377 } 9378 9379 } 9380 9381 namespace test_noexcept 9382 { 9383 9384 int f() { return 0; } 9385 int g() noexcept { return 0; } 9386 9387 static_assert(noexcept(f()) == false, ""); 9388 static_assert(noexcept(g()) == true, ""); 9389 9390 } 9391 9392 namespace test_constexpr 9393 { 9394 9395 template < typename CharT > 9396 unsigned long constexpr 9397 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 9398 { 9399 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 9400 } 9401 9402 template < typename CharT > 9403 unsigned long constexpr 9404 strlen_c(const CharT *const s) noexcept 9405 { 9406 return strlen_c_r(s, 0UL); 9407 } 9408 9409 static_assert(strlen_c("") == 0UL, ""); 9410 static_assert(strlen_c("1") == 1UL, ""); 9411 static_assert(strlen_c("example") == 7UL, ""); 9412 static_assert(strlen_c("another\0example") == 7UL, ""); 9413 9414 } 9415 9416 namespace test_rvalue_references 9417 { 9418 9419 template < int N > 9420 struct answer 9421 { 9422 static constexpr int value = N; 9423 }; 9424 9425 answer<1> f(int&) { return answer<1>(); } 9426 answer<2> f(const int&) { return answer<2>(); } 9427 answer<3> f(int&&) { return answer<3>(); } 9428 9429 void 9430 test() 9431 { 9432 int i = 0; 9433 const int c = 0; 9434 static_assert(decltype(f(i))::value == 1, ""); 9435 static_assert(decltype(f(c))::value == 2, ""); 9436 static_assert(decltype(f(0))::value == 3, ""); 9437 } 9438 9439 } 9440 9441 namespace test_uniform_initialization 9442 { 9443 9444 struct test 9445 { 9446 static const int zero {}; 9447 static const int one {1}; 9448 }; 9449 9450 static_assert(test::zero == 0, ""); 9451 static_assert(test::one == 1, ""); 9452 9453 } 9454 9455 namespace test_lambdas 9456 { 9457 9458 void 9459 test1() 9460 { 9461 auto lambda1 = [](){}; 9462 auto lambda2 = lambda1; 9463 lambda1(); 9464 lambda2(); 9465 } 9466 9467 int 9468 test2() 9469 { 9470 auto a = [](int i, int j){ return i + j; }(1, 2); 9471 auto b = []() -> int { return '0'; }(); 9472 auto c = [=](){ return a + b; }(); 9473 auto d = [&](){ return c; }(); 9474 auto e = [a, &b](int x) mutable { 9475 const auto identity = [](int y){ return y; }; 9476 for (auto i = 0; i < a; ++i) 9477 a += b--; 9478 return x + identity(a + b); 9479 }(0); 9480 return a + b + c + d + e; 9481 } 9482 9483 int 9484 test3() 9485 { 9486 const auto nullary = [](){ return 0; }; 9487 const auto unary = [](int x){ return x; }; 9488 using nullary_t = decltype(nullary); 9489 using unary_t = decltype(unary); 9490 const auto higher1st = [](nullary_t f){ return f(); }; 9491 const auto higher2nd = [unary](nullary_t f1){ 9492 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 9493 }; 9494 return higher1st(nullary) + higher2nd(nullary)(unary); 9495 } 9496 9497 } 9498 9499 namespace test_variadic_templates 9500 { 9501 9502 template <int...> 9503 struct sum; 9504 9505 template <int N0, int... N1toN> 9506 struct sum<N0, N1toN...> 9507 { 9508 static constexpr auto value = N0 + sum<N1toN...>::value; 9509 }; 9510 9511 template <> 9512 struct sum<> 9513 { 9514 static constexpr auto value = 0; 9515 }; 9516 9517 static_assert(sum<>::value == 0, ""); 9518 static_assert(sum<1>::value == 1, ""); 9519 static_assert(sum<23>::value == 23, ""); 9520 static_assert(sum<1, 2>::value == 3, ""); 9521 static_assert(sum<5, 5, 11>::value == 21, ""); 9522 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 9523 9524 } 9525 9526 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 9527 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 9528 // because of this. 9529 namespace test_template_alias_sfinae 9530 { 9531 9532 struct foo {}; 9533 9534 template<typename T> 9535 using member = typename T::member_type; 9536 9537 template<typename T> 9538 void func(...) {} 9539 9540 template<typename T> 9541 void func(member<T>*) {} 9542 9543 void test(); 9544 9545 void test() { func<foo>(0); } 9546 9547 } 9548 9549} // namespace cxx11 9550 9551#endif // __cplusplus >= 201103L 9552 9553 9554 9555 9556// If the compiler admits that it is not ready for C++14, why torture it? 9557// Hopefully, this will speed up the test. 9558 9559#ifndef __cplusplus 9560 9561#error "This is not a C++ compiler" 9562 9563#elif __cplusplus < 201402L 9564 9565#error "This is not a C++14 compiler" 9566 9567#else 9568 9569namespace cxx14 9570{ 9571 9572 namespace test_polymorphic_lambdas 9573 { 9574 9575 int 9576 test() 9577 { 9578 const auto lambda = [](auto&&... args){ 9579 const auto istiny = [](auto x){ 9580 return (sizeof(x) == 1UL) ? 1 : 0; 9581 }; 9582 const int aretiny[] = { istiny(args)... }; 9583 return aretiny[0]; 9584 }; 9585 return lambda(1, 1L, 1.0f, '1'); 9586 } 9587 9588 } 9589 9590 namespace test_binary_literals 9591 { 9592 9593 constexpr auto ivii = 0b0000000000101010; 9594 static_assert(ivii == 42, "wrong value"); 9595 9596 } 9597 9598 namespace test_generalized_constexpr 9599 { 9600 9601 template < typename CharT > 9602 constexpr unsigned long 9603 strlen_c(const CharT *const s) noexcept 9604 { 9605 auto length = 0UL; 9606 for (auto p = s; *p; ++p) 9607 ++length; 9608 return length; 9609 } 9610 9611 static_assert(strlen_c("") == 0UL, ""); 9612 static_assert(strlen_c("x") == 1UL, ""); 9613 static_assert(strlen_c("test") == 4UL, ""); 9614 static_assert(strlen_c("another\0test") == 7UL, ""); 9615 9616 } 9617 9618 namespace test_lambda_init_capture 9619 { 9620 9621 int 9622 test() 9623 { 9624 auto x = 0; 9625 const auto lambda1 = [a = x](int b){ return a + b; }; 9626 const auto lambda2 = [a = lambda1(x)](){ return a; }; 9627 return lambda2(); 9628 } 9629 9630 } 9631 9632 namespace test_digit_separators 9633 { 9634 9635 constexpr auto ten_million = 100'000'000; 9636 static_assert(ten_million == 100000000, ""); 9637 9638 } 9639 9640 namespace test_return_type_deduction 9641 { 9642 9643 auto f(int& x) { return x; } 9644 decltype(auto) g(int& x) { return x; } 9645 9646 template < typename T1, typename T2 > 9647 struct is_same 9648 { 9649 static constexpr auto value = false; 9650 }; 9651 9652 template < typename T > 9653 struct is_same<T, T> 9654 { 9655 static constexpr auto value = true; 9656 }; 9657 9658 int 9659 test() 9660 { 9661 auto x = 0; 9662 static_assert(is_same<int, decltype(f(x))>::value, ""); 9663 static_assert(is_same<int&, decltype(g(x))>::value, ""); 9664 return x; 9665 } 9666 9667 } 9668 9669} // namespace cxx14 9670 9671#endif // __cplusplus >= 201402L 9672 9673 9674 9675 9676// If the compiler admits that it is not ready for C++17, why torture it? 9677// Hopefully, this will speed up the test. 9678 9679#ifndef __cplusplus 9680 9681#error "This is not a C++ compiler" 9682 9683#elif __cplusplus < 201703L 9684 9685#error "This is not a C++17 compiler" 9686 9687#else 9688 9689#include <initializer_list> 9690#include <utility> 9691#include <type_traits> 9692 9693namespace cxx17 9694{ 9695 9696 namespace test_constexpr_lambdas 9697 { 9698 9699 constexpr int foo = [](){return 42;}(); 9700 9701 } 9702 9703 namespace test::nested_namespace::definitions 9704 { 9705 9706 } 9707 9708 namespace test_fold_expression 9709 { 9710 9711 template<typename... Args> 9712 int multiply(Args... args) 9713 { 9714 return (args * ... * 1); 9715 } 9716 9717 template<typename... Args> 9718 bool all(Args... args) 9719 { 9720 return (args && ...); 9721 } 9722 9723 } 9724 9725 namespace test_extended_static_assert 9726 { 9727 9728 static_assert (true); 9729 9730 } 9731 9732 namespace test_auto_brace_init_list 9733 { 9734 9735 auto foo = {5}; 9736 auto bar {5}; 9737 9738 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value); 9739 static_assert(std::is_same<int, decltype(bar)>::value); 9740 } 9741 9742 namespace test_typename_in_template_template_parameter 9743 { 9744 9745 template<template<typename> typename X> struct D; 9746 9747 } 9748 9749 namespace test_fallthrough_nodiscard_maybe_unused_attributes 9750 { 9751 9752 int f1() 9753 { 9754 return 42; 9755 } 9756 9757 [[nodiscard]] int f2() 9758 { 9759 [[maybe_unused]] auto unused = f1(); 9760 9761 switch (f1()) 9762 { 9763 case 17: 9764 f1(); 9765 [[fallthrough]]; 9766 case 42: 9767 f1(); 9768 } 9769 return f1(); 9770 } 9771 9772 } 9773 9774 namespace test_extended_aggregate_initialization 9775 { 9776 9777 struct base1 9778 { 9779 int b1, b2 = 42; 9780 }; 9781 9782 struct base2 9783 { 9784 base2() { 9785 b3 = 42; 9786 } 9787 int b3; 9788 }; 9789 9790 struct derived : base1, base2 9791 { 9792 int d; 9793 }; 9794 9795 derived d1 {{1, 2}, {}, 4}; // full initialization 9796 derived d2 {{}, {}, 4}; // value-initialized bases 9797 9798 } 9799 9800 namespace test_general_range_based_for_loop 9801 { 9802 9803 struct iter 9804 { 9805 int i; 9806 9807 int& operator* () 9808 { 9809 return i; 9810 } 9811 9812 const int& operator* () const 9813 { 9814 return i; 9815 } 9816 9817 iter& operator++() 9818 { 9819 ++i; 9820 return *this; 9821 } 9822 }; 9823 9824 struct sentinel 9825 { 9826 int i; 9827 }; 9828 9829 bool operator== (const iter& i, const sentinel& s) 9830 { 9831 return i.i == s.i; 9832 } 9833 9834 bool operator!= (const iter& i, const sentinel& s) 9835 { 9836 return !(i == s); 9837 } 9838 9839 struct range 9840 { 9841 iter begin() const 9842 { 9843 return {0}; 9844 } 9845 9846 sentinel end() const 9847 { 9848 return {5}; 9849 } 9850 }; 9851 9852 void f() 9853 { 9854 range r {}; 9855 9856 for (auto i : r) 9857 { 9858 [[maybe_unused]] auto v = i; 9859 } 9860 } 9861 9862 } 9863 9864 namespace test_lambda_capture_asterisk_this_by_value 9865 { 9866 9867 struct t 9868 { 9869 int i; 9870 int foo() 9871 { 9872 return [*this]() 9873 { 9874 return i; 9875 }(); 9876 } 9877 }; 9878 9879 } 9880 9881 namespace test_enum_class_construction 9882 { 9883 9884 enum class byte : unsigned char 9885 {}; 9886 9887 byte foo {42}; 9888 9889 } 9890 9891 namespace test_constexpr_if 9892 { 9893 9894 template <bool cond> 9895 int f () 9896 { 9897 if constexpr(cond) 9898 { 9899 return 13; 9900 } 9901 else 9902 { 9903 return 42; 9904 } 9905 } 9906 9907 } 9908 9909 namespace test_selection_statement_with_initializer 9910 { 9911 9912 int f() 9913 { 9914 return 13; 9915 } 9916 9917 int f2() 9918 { 9919 if (auto i = f(); i > 0) 9920 { 9921 return 3; 9922 } 9923 9924 switch (auto i = f(); i + 4) 9925 { 9926 case 17: 9927 return 2; 9928 9929 default: 9930 return 1; 9931 } 9932 } 9933 9934 } 9935 9936 namespace test_template_argument_deduction_for_class_templates 9937 { 9938 9939 template <typename T1, typename T2> 9940 struct pair 9941 { 9942 pair (T1 p1, T2 p2) 9943 : m1 {p1}, 9944 m2 {p2} 9945 {} 9946 9947 T1 m1; 9948 T2 m2; 9949 }; 9950 9951 void f() 9952 { 9953 [[maybe_unused]] auto p = pair{13, 42u}; 9954 } 9955 9956 } 9957 9958 namespace test_non_type_auto_template_parameters 9959 { 9960 9961 template <auto n> 9962 struct B 9963 {}; 9964 9965 B<5> b1; 9966 B<'a'> b2; 9967 9968 } 9969 9970 namespace test_structured_bindings 9971 { 9972 9973 int arr[2] = { 1, 2 }; 9974 std::pair<int, int> pr = { 1, 2 }; 9975 9976 auto f1() -> int(&)[2] 9977 { 9978 return arr; 9979 } 9980 9981 auto f2() -> std::pair<int, int>& 9982 { 9983 return pr; 9984 } 9985 9986 struct S 9987 { 9988 int x1 : 2; 9989 volatile double y1; 9990 }; 9991 9992 S f3() 9993 { 9994 return {}; 9995 } 9996 9997 auto [ x1, y1 ] = f1(); 9998 auto& [ xr1, yr1 ] = f1(); 9999 auto [ x2, y2 ] = f2(); 10000 auto& [ xr2, yr2 ] = f2(); 10001 const auto [ x3, y3 ] = f3(); 10002 10003 } 10004 10005 namespace test_exception_spec_type_system 10006 { 10007 10008 struct Good {}; 10009 struct Bad {}; 10010 10011 void g1() noexcept; 10012 void g2(); 10013 10014 template<typename T> 10015 Bad 10016 f(T*, T*); 10017 10018 template<typename T1, typename T2> 10019 Good 10020 f(T1*, T2*); 10021 10022 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>); 10023 10024 } 10025 10026 namespace test_inline_variables 10027 { 10028 10029 template<class T> void f(T) 10030 {} 10031 10032 template<class T> inline T g(T) 10033 { 10034 return T{}; 10035 } 10036 10037 template<> inline void f<>(int) 10038 {} 10039 10040 template<> int g<>(int) 10041 { 10042 return 5; 10043 } 10044 10045 } 10046 10047} // namespace cxx17 10048 10049#endif // __cplusplus < 201703L 10050 10051 10052 10053_ACEOF 10054if ac_fn_cxx_try_compile "$LINENO" 10055then : 10056 ax_cv_cxx_compile_cxx17=yes 10057else $as_nop 10058 ax_cv_cxx_compile_cxx17=no 10059fi 10060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10061fi 10062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5 10063printf "%s\n" "$ax_cv_cxx_compile_cxx17" >&6; } 10064 if test x$ax_cv_cxx_compile_cxx17 = xyes; then 10065 ac_success=yes 10066 fi 10067 10068 if test x$ac_success = xno; then 10069 for alternative in ${ax_cxx_compile_alternatives}; do 10070 switch="-std=gnu++${alternative}" 10071 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` 10072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 10073printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; } 10074if eval test \${$cachevar+y} 10075then : 10076 printf %s "(cached) " >&6 10077else $as_nop 10078 ac_save_CXX="$CXX" 10079 CXX="$CXX $switch" 10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10081/* end confdefs.h. */ 10082 10083 10084// If the compiler admits that it is not ready for C++11, why torture it? 10085// Hopefully, this will speed up the test. 10086 10087#ifndef __cplusplus 10088 10089#error "This is not a C++ compiler" 10090 10091#elif __cplusplus < 201103L 10092 10093#error "This is not a C++11 compiler" 10094 10095#else 10096 10097namespace cxx11 10098{ 10099 10100 namespace test_static_assert 10101 { 10102 10103 template <typename T> 10104 struct check 10105 { 10106 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 10107 }; 10108 10109 } 10110 10111 namespace test_final_override 10112 { 10113 10114 struct Base 10115 { 10116 virtual ~Base() {} 10117 virtual void f() {} 10118 }; 10119 10120 struct Derived : public Base 10121 { 10122 virtual ~Derived() override {} 10123 virtual void f() override {} 10124 }; 10125 10126 } 10127 10128 namespace test_double_right_angle_brackets 10129 { 10130 10131 template < typename T > 10132 struct check {}; 10133 10134 typedef check<void> single_type; 10135 typedef check<check<void>> double_type; 10136 typedef check<check<check<void>>> triple_type; 10137 typedef check<check<check<check<void>>>> quadruple_type; 10138 10139 } 10140 10141 namespace test_decltype 10142 { 10143 10144 int 10145 f() 10146 { 10147 int a = 1; 10148 decltype(a) b = 2; 10149 return a + b; 10150 } 10151 10152 } 10153 10154 namespace test_type_deduction 10155 { 10156 10157 template < typename T1, typename T2 > 10158 struct is_same 10159 { 10160 static const bool value = false; 10161 }; 10162 10163 template < typename T > 10164 struct is_same<T, T> 10165 { 10166 static const bool value = true; 10167 }; 10168 10169 template < typename T1, typename T2 > 10170 auto 10171 add(T1 a1, T2 a2) -> decltype(a1 + a2) 10172 { 10173 return a1 + a2; 10174 } 10175 10176 int 10177 test(const int c, volatile int v) 10178 { 10179 static_assert(is_same<int, decltype(0)>::value == true, ""); 10180 static_assert(is_same<int, decltype(c)>::value == false, ""); 10181 static_assert(is_same<int, decltype(v)>::value == false, ""); 10182 auto ac = c; 10183 auto av = v; 10184 auto sumi = ac + av + 'x'; 10185 auto sumf = ac + av + 1.0; 10186 static_assert(is_same<int, decltype(ac)>::value == true, ""); 10187 static_assert(is_same<int, decltype(av)>::value == true, ""); 10188 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 10189 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 10190 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 10191 return (sumf > 0.0) ? sumi : add(c, v); 10192 } 10193 10194 } 10195 10196 namespace test_noexcept 10197 { 10198 10199 int f() { return 0; } 10200 int g() noexcept { return 0; } 10201 10202 static_assert(noexcept(f()) == false, ""); 10203 static_assert(noexcept(g()) == true, ""); 10204 10205 } 10206 10207 namespace test_constexpr 10208 { 10209 10210 template < typename CharT > 10211 unsigned long constexpr 10212 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 10213 { 10214 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 10215 } 10216 10217 template < typename CharT > 10218 unsigned long constexpr 10219 strlen_c(const CharT *const s) noexcept 10220 { 10221 return strlen_c_r(s, 0UL); 10222 } 10223 10224 static_assert(strlen_c("") == 0UL, ""); 10225 static_assert(strlen_c("1") == 1UL, ""); 10226 static_assert(strlen_c("example") == 7UL, ""); 10227 static_assert(strlen_c("another\0example") == 7UL, ""); 10228 10229 } 10230 10231 namespace test_rvalue_references 10232 { 10233 10234 template < int N > 10235 struct answer 10236 { 10237 static constexpr int value = N; 10238 }; 10239 10240 answer<1> f(int&) { return answer<1>(); } 10241 answer<2> f(const int&) { return answer<2>(); } 10242 answer<3> f(int&&) { return answer<3>(); } 10243 10244 void 10245 test() 10246 { 10247 int i = 0; 10248 const int c = 0; 10249 static_assert(decltype(f(i))::value == 1, ""); 10250 static_assert(decltype(f(c))::value == 2, ""); 10251 static_assert(decltype(f(0))::value == 3, ""); 10252 } 10253 10254 } 10255 10256 namespace test_uniform_initialization 10257 { 10258 10259 struct test 10260 { 10261 static const int zero {}; 10262 static const int one {1}; 10263 }; 10264 10265 static_assert(test::zero == 0, ""); 10266 static_assert(test::one == 1, ""); 10267 10268 } 10269 10270 namespace test_lambdas 10271 { 10272 10273 void 10274 test1() 10275 { 10276 auto lambda1 = [](){}; 10277 auto lambda2 = lambda1; 10278 lambda1(); 10279 lambda2(); 10280 } 10281 10282 int 10283 test2() 10284 { 10285 auto a = [](int i, int j){ return i + j; }(1, 2); 10286 auto b = []() -> int { return '0'; }(); 10287 auto c = [=](){ return a + b; }(); 10288 auto d = [&](){ return c; }(); 10289 auto e = [a, &b](int x) mutable { 10290 const auto identity = [](int y){ return y; }; 10291 for (auto i = 0; i < a; ++i) 10292 a += b--; 10293 return x + identity(a + b); 10294 }(0); 10295 return a + b + c + d + e; 10296 } 10297 10298 int 10299 test3() 10300 { 10301 const auto nullary = [](){ return 0; }; 10302 const auto unary = [](int x){ return x; }; 10303 using nullary_t = decltype(nullary); 10304 using unary_t = decltype(unary); 10305 const auto higher1st = [](nullary_t f){ return f(); }; 10306 const auto higher2nd = [unary](nullary_t f1){ 10307 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 10308 }; 10309 return higher1st(nullary) + higher2nd(nullary)(unary); 10310 } 10311 10312 } 10313 10314 namespace test_variadic_templates 10315 { 10316 10317 template <int...> 10318 struct sum; 10319 10320 template <int N0, int... N1toN> 10321 struct sum<N0, N1toN...> 10322 { 10323 static constexpr auto value = N0 + sum<N1toN...>::value; 10324 }; 10325 10326 template <> 10327 struct sum<> 10328 { 10329 static constexpr auto value = 0; 10330 }; 10331 10332 static_assert(sum<>::value == 0, ""); 10333 static_assert(sum<1>::value == 1, ""); 10334 static_assert(sum<23>::value == 23, ""); 10335 static_assert(sum<1, 2>::value == 3, ""); 10336 static_assert(sum<5, 5, 11>::value == 21, ""); 10337 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 10338 10339 } 10340 10341 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 10342 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 10343 // because of this. 10344 namespace test_template_alias_sfinae 10345 { 10346 10347 struct foo {}; 10348 10349 template<typename T> 10350 using member = typename T::member_type; 10351 10352 template<typename T> 10353 void func(...) {} 10354 10355 template<typename T> 10356 void func(member<T>*) {} 10357 10358 void test(); 10359 10360 void test() { func<foo>(0); } 10361 10362 } 10363 10364} // namespace cxx11 10365 10366#endif // __cplusplus >= 201103L 10367 10368 10369 10370 10371// If the compiler admits that it is not ready for C++14, why torture it? 10372// Hopefully, this will speed up the test. 10373 10374#ifndef __cplusplus 10375 10376#error "This is not a C++ compiler" 10377 10378#elif __cplusplus < 201402L 10379 10380#error "This is not a C++14 compiler" 10381 10382#else 10383 10384namespace cxx14 10385{ 10386 10387 namespace test_polymorphic_lambdas 10388 { 10389 10390 int 10391 test() 10392 { 10393 const auto lambda = [](auto&&... args){ 10394 const auto istiny = [](auto x){ 10395 return (sizeof(x) == 1UL) ? 1 : 0; 10396 }; 10397 const int aretiny[] = { istiny(args)... }; 10398 return aretiny[0]; 10399 }; 10400 return lambda(1, 1L, 1.0f, '1'); 10401 } 10402 10403 } 10404 10405 namespace test_binary_literals 10406 { 10407 10408 constexpr auto ivii = 0b0000000000101010; 10409 static_assert(ivii == 42, "wrong value"); 10410 10411 } 10412 10413 namespace test_generalized_constexpr 10414 { 10415 10416 template < typename CharT > 10417 constexpr unsigned long 10418 strlen_c(const CharT *const s) noexcept 10419 { 10420 auto length = 0UL; 10421 for (auto p = s; *p; ++p) 10422 ++length; 10423 return length; 10424 } 10425 10426 static_assert(strlen_c("") == 0UL, ""); 10427 static_assert(strlen_c("x") == 1UL, ""); 10428 static_assert(strlen_c("test") == 4UL, ""); 10429 static_assert(strlen_c("another\0test") == 7UL, ""); 10430 10431 } 10432 10433 namespace test_lambda_init_capture 10434 { 10435 10436 int 10437 test() 10438 { 10439 auto x = 0; 10440 const auto lambda1 = [a = x](int b){ return a + b; }; 10441 const auto lambda2 = [a = lambda1(x)](){ return a; }; 10442 return lambda2(); 10443 } 10444 10445 } 10446 10447 namespace test_digit_separators 10448 { 10449 10450 constexpr auto ten_million = 100'000'000; 10451 static_assert(ten_million == 100000000, ""); 10452 10453 } 10454 10455 namespace test_return_type_deduction 10456 { 10457 10458 auto f(int& x) { return x; } 10459 decltype(auto) g(int& x) { return x; } 10460 10461 template < typename T1, typename T2 > 10462 struct is_same 10463 { 10464 static constexpr auto value = false; 10465 }; 10466 10467 template < typename T > 10468 struct is_same<T, T> 10469 { 10470 static constexpr auto value = true; 10471 }; 10472 10473 int 10474 test() 10475 { 10476 auto x = 0; 10477 static_assert(is_same<int, decltype(f(x))>::value, ""); 10478 static_assert(is_same<int&, decltype(g(x))>::value, ""); 10479 return x; 10480 } 10481 10482 } 10483 10484} // namespace cxx14 10485 10486#endif // __cplusplus >= 201402L 10487 10488 10489 10490 10491// If the compiler admits that it is not ready for C++17, why torture it? 10492// Hopefully, this will speed up the test. 10493 10494#ifndef __cplusplus 10495 10496#error "This is not a C++ compiler" 10497 10498#elif __cplusplus < 201703L 10499 10500#error "This is not a C++17 compiler" 10501 10502#else 10503 10504#include <initializer_list> 10505#include <utility> 10506#include <type_traits> 10507 10508namespace cxx17 10509{ 10510 10511 namespace test_constexpr_lambdas 10512 { 10513 10514 constexpr int foo = [](){return 42;}(); 10515 10516 } 10517 10518 namespace test::nested_namespace::definitions 10519 { 10520 10521 } 10522 10523 namespace test_fold_expression 10524 { 10525 10526 template<typename... Args> 10527 int multiply(Args... args) 10528 { 10529 return (args * ... * 1); 10530 } 10531 10532 template<typename... Args> 10533 bool all(Args... args) 10534 { 10535 return (args && ...); 10536 } 10537 10538 } 10539 10540 namespace test_extended_static_assert 10541 { 10542 10543 static_assert (true); 10544 10545 } 10546 10547 namespace test_auto_brace_init_list 10548 { 10549 10550 auto foo = {5}; 10551 auto bar {5}; 10552 10553 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value); 10554 static_assert(std::is_same<int, decltype(bar)>::value); 10555 } 10556 10557 namespace test_typename_in_template_template_parameter 10558 { 10559 10560 template<template<typename> typename X> struct D; 10561 10562 } 10563 10564 namespace test_fallthrough_nodiscard_maybe_unused_attributes 10565 { 10566 10567 int f1() 10568 { 10569 return 42; 10570 } 10571 10572 [[nodiscard]] int f2() 10573 { 10574 [[maybe_unused]] auto unused = f1(); 10575 10576 switch (f1()) 10577 { 10578 case 17: 10579 f1(); 10580 [[fallthrough]]; 10581 case 42: 10582 f1(); 10583 } 10584 return f1(); 10585 } 10586 10587 } 10588 10589 namespace test_extended_aggregate_initialization 10590 { 10591 10592 struct base1 10593 { 10594 int b1, b2 = 42; 10595 }; 10596 10597 struct base2 10598 { 10599 base2() { 10600 b3 = 42; 10601 } 10602 int b3; 10603 }; 10604 10605 struct derived : base1, base2 10606 { 10607 int d; 10608 }; 10609 10610 derived d1 {{1, 2}, {}, 4}; // full initialization 10611 derived d2 {{}, {}, 4}; // value-initialized bases 10612 10613 } 10614 10615 namespace test_general_range_based_for_loop 10616 { 10617 10618 struct iter 10619 { 10620 int i; 10621 10622 int& operator* () 10623 { 10624 return i; 10625 } 10626 10627 const int& operator* () const 10628 { 10629 return i; 10630 } 10631 10632 iter& operator++() 10633 { 10634 ++i; 10635 return *this; 10636 } 10637 }; 10638 10639 struct sentinel 10640 { 10641 int i; 10642 }; 10643 10644 bool operator== (const iter& i, const sentinel& s) 10645 { 10646 return i.i == s.i; 10647 } 10648 10649 bool operator!= (const iter& i, const sentinel& s) 10650 { 10651 return !(i == s); 10652 } 10653 10654 struct range 10655 { 10656 iter begin() const 10657 { 10658 return {0}; 10659 } 10660 10661 sentinel end() const 10662 { 10663 return {5}; 10664 } 10665 }; 10666 10667 void f() 10668 { 10669 range r {}; 10670 10671 for (auto i : r) 10672 { 10673 [[maybe_unused]] auto v = i; 10674 } 10675 } 10676 10677 } 10678 10679 namespace test_lambda_capture_asterisk_this_by_value 10680 { 10681 10682 struct t 10683 { 10684 int i; 10685 int foo() 10686 { 10687 return [*this]() 10688 { 10689 return i; 10690 }(); 10691 } 10692 }; 10693 10694 } 10695 10696 namespace test_enum_class_construction 10697 { 10698 10699 enum class byte : unsigned char 10700 {}; 10701 10702 byte foo {42}; 10703 10704 } 10705 10706 namespace test_constexpr_if 10707 { 10708 10709 template <bool cond> 10710 int f () 10711 { 10712 if constexpr(cond) 10713 { 10714 return 13; 10715 } 10716 else 10717 { 10718 return 42; 10719 } 10720 } 10721 10722 } 10723 10724 namespace test_selection_statement_with_initializer 10725 { 10726 10727 int f() 10728 { 10729 return 13; 10730 } 10731 10732 int f2() 10733 { 10734 if (auto i = f(); i > 0) 10735 { 10736 return 3; 10737 } 10738 10739 switch (auto i = f(); i + 4) 10740 { 10741 case 17: 10742 return 2; 10743 10744 default: 10745 return 1; 10746 } 10747 } 10748 10749 } 10750 10751 namespace test_template_argument_deduction_for_class_templates 10752 { 10753 10754 template <typename T1, typename T2> 10755 struct pair 10756 { 10757 pair (T1 p1, T2 p2) 10758 : m1 {p1}, 10759 m2 {p2} 10760 {} 10761 10762 T1 m1; 10763 T2 m2; 10764 }; 10765 10766 void f() 10767 { 10768 [[maybe_unused]] auto p = pair{13, 42u}; 10769 } 10770 10771 } 10772 10773 namespace test_non_type_auto_template_parameters 10774 { 10775 10776 template <auto n> 10777 struct B 10778 {}; 10779 10780 B<5> b1; 10781 B<'a'> b2; 10782 10783 } 10784 10785 namespace test_structured_bindings 10786 { 10787 10788 int arr[2] = { 1, 2 }; 10789 std::pair<int, int> pr = { 1, 2 }; 10790 10791 auto f1() -> int(&)[2] 10792 { 10793 return arr; 10794 } 10795 10796 auto f2() -> std::pair<int, int>& 10797 { 10798 return pr; 10799 } 10800 10801 struct S 10802 { 10803 int x1 : 2; 10804 volatile double y1; 10805 }; 10806 10807 S f3() 10808 { 10809 return {}; 10810 } 10811 10812 auto [ x1, y1 ] = f1(); 10813 auto& [ xr1, yr1 ] = f1(); 10814 auto [ x2, y2 ] = f2(); 10815 auto& [ xr2, yr2 ] = f2(); 10816 const auto [ x3, y3 ] = f3(); 10817 10818 } 10819 10820 namespace test_exception_spec_type_system 10821 { 10822 10823 struct Good {}; 10824 struct Bad {}; 10825 10826 void g1() noexcept; 10827 void g2(); 10828 10829 template<typename T> 10830 Bad 10831 f(T*, T*); 10832 10833 template<typename T1, typename T2> 10834 Good 10835 f(T1*, T2*); 10836 10837 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>); 10838 10839 } 10840 10841 namespace test_inline_variables 10842 { 10843 10844 template<class T> void f(T) 10845 {} 10846 10847 template<class T> inline T g(T) 10848 { 10849 return T{}; 10850 } 10851 10852 template<> inline void f<>(int) 10853 {} 10854 10855 template<> int g<>(int) 10856 { 10857 return 5; 10858 } 10859 10860 } 10861 10862} // namespace cxx17 10863 10864#endif // __cplusplus < 201703L 10865 10866 10867 10868_ACEOF 10869if ac_fn_cxx_try_compile "$LINENO" 10870then : 10871 eval $cachevar=yes 10872else $as_nop 10873 eval $cachevar=no 10874fi 10875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10876 CXX="$ac_save_CXX" 10877fi 10878eval ac_res=\$$cachevar 10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10880printf "%s\n" "$ac_res" >&6; } 10881 if eval test x\$$cachevar = xyes; then 10882 CXX="$CXX $switch" 10883 if test -n "$CXXCPP" ; then 10884 CXXCPP="$CXXCPP $switch" 10885 fi 10886 ac_success=yes 10887 break 10888 fi 10889 done 10890 fi 10891 10892 if test x$ac_success = xno; then 10893 for alternative in ${ax_cxx_compile_alternatives}; do 10894 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 10895 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` 10896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 10897printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; } 10898if eval test \${$cachevar+y} 10899then : 10900 printf %s "(cached) " >&6 10901else $as_nop 10902 ac_save_CXX="$CXX" 10903 CXX="$CXX $switch" 10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10905/* end confdefs.h. */ 10906 10907 10908// If the compiler admits that it is not ready for C++11, why torture it? 10909// Hopefully, this will speed up the test. 10910 10911#ifndef __cplusplus 10912 10913#error "This is not a C++ compiler" 10914 10915#elif __cplusplus < 201103L 10916 10917#error "This is not a C++11 compiler" 10918 10919#else 10920 10921namespace cxx11 10922{ 10923 10924 namespace test_static_assert 10925 { 10926 10927 template <typename T> 10928 struct check 10929 { 10930 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 10931 }; 10932 10933 } 10934 10935 namespace test_final_override 10936 { 10937 10938 struct Base 10939 { 10940 virtual ~Base() {} 10941 virtual void f() {} 10942 }; 10943 10944 struct Derived : public Base 10945 { 10946 virtual ~Derived() override {} 10947 virtual void f() override {} 10948 }; 10949 10950 } 10951 10952 namespace test_double_right_angle_brackets 10953 { 10954 10955 template < typename T > 10956 struct check {}; 10957 10958 typedef check<void> single_type; 10959 typedef check<check<void>> double_type; 10960 typedef check<check<check<void>>> triple_type; 10961 typedef check<check<check<check<void>>>> quadruple_type; 10962 10963 } 10964 10965 namespace test_decltype 10966 { 10967 10968 int 10969 f() 10970 { 10971 int a = 1; 10972 decltype(a) b = 2; 10973 return a + b; 10974 } 10975 10976 } 10977 10978 namespace test_type_deduction 10979 { 10980 10981 template < typename T1, typename T2 > 10982 struct is_same 10983 { 10984 static const bool value = false; 10985 }; 10986 10987 template < typename T > 10988 struct is_same<T, T> 10989 { 10990 static const bool value = true; 10991 }; 10992 10993 template < typename T1, typename T2 > 10994 auto 10995 add(T1 a1, T2 a2) -> decltype(a1 + a2) 10996 { 10997 return a1 + a2; 10998 } 10999 11000 int 11001 test(const int c, volatile int v) 11002 { 11003 static_assert(is_same<int, decltype(0)>::value == true, ""); 11004 static_assert(is_same<int, decltype(c)>::value == false, ""); 11005 static_assert(is_same<int, decltype(v)>::value == false, ""); 11006 auto ac = c; 11007 auto av = v; 11008 auto sumi = ac + av + 'x'; 11009 auto sumf = ac + av + 1.0; 11010 static_assert(is_same<int, decltype(ac)>::value == true, ""); 11011 static_assert(is_same<int, decltype(av)>::value == true, ""); 11012 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 11013 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 11014 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 11015 return (sumf > 0.0) ? sumi : add(c, v); 11016 } 11017 11018 } 11019 11020 namespace test_noexcept 11021 { 11022 11023 int f() { return 0; } 11024 int g() noexcept { return 0; } 11025 11026 static_assert(noexcept(f()) == false, ""); 11027 static_assert(noexcept(g()) == true, ""); 11028 11029 } 11030 11031 namespace test_constexpr 11032 { 11033 11034 template < typename CharT > 11035 unsigned long constexpr 11036 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 11037 { 11038 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 11039 } 11040 11041 template < typename CharT > 11042 unsigned long constexpr 11043 strlen_c(const CharT *const s) noexcept 11044 { 11045 return strlen_c_r(s, 0UL); 11046 } 11047 11048 static_assert(strlen_c("") == 0UL, ""); 11049 static_assert(strlen_c("1") == 1UL, ""); 11050 static_assert(strlen_c("example") == 7UL, ""); 11051 static_assert(strlen_c("another\0example") == 7UL, ""); 11052 11053 } 11054 11055 namespace test_rvalue_references 11056 { 11057 11058 template < int N > 11059 struct answer 11060 { 11061 static constexpr int value = N; 11062 }; 11063 11064 answer<1> f(int&) { return answer<1>(); } 11065 answer<2> f(const int&) { return answer<2>(); } 11066 answer<3> f(int&&) { return answer<3>(); } 11067 11068 void 11069 test() 11070 { 11071 int i = 0; 11072 const int c = 0; 11073 static_assert(decltype(f(i))::value == 1, ""); 11074 static_assert(decltype(f(c))::value == 2, ""); 11075 static_assert(decltype(f(0))::value == 3, ""); 11076 } 11077 11078 } 11079 11080 namespace test_uniform_initialization 11081 { 11082 11083 struct test 11084 { 11085 static const int zero {}; 11086 static const int one {1}; 11087 }; 11088 11089 static_assert(test::zero == 0, ""); 11090 static_assert(test::one == 1, ""); 11091 11092 } 11093 11094 namespace test_lambdas 11095 { 11096 11097 void 11098 test1() 11099 { 11100 auto lambda1 = [](){}; 11101 auto lambda2 = lambda1; 11102 lambda1(); 11103 lambda2(); 11104 } 11105 11106 int 11107 test2() 11108 { 11109 auto a = [](int i, int j){ return i + j; }(1, 2); 11110 auto b = []() -> int { return '0'; }(); 11111 auto c = [=](){ return a + b; }(); 11112 auto d = [&](){ return c; }(); 11113 auto e = [a, &b](int x) mutable { 11114 const auto identity = [](int y){ return y; }; 11115 for (auto i = 0; i < a; ++i) 11116 a += b--; 11117 return x + identity(a + b); 11118 }(0); 11119 return a + b + c + d + e; 11120 } 11121 11122 int 11123 test3() 11124 { 11125 const auto nullary = [](){ return 0; }; 11126 const auto unary = [](int x){ return x; }; 11127 using nullary_t = decltype(nullary); 11128 using unary_t = decltype(unary); 11129 const auto higher1st = [](nullary_t f){ return f(); }; 11130 const auto higher2nd = [unary](nullary_t f1){ 11131 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 11132 }; 11133 return higher1st(nullary) + higher2nd(nullary)(unary); 11134 } 11135 11136 } 11137 11138 namespace test_variadic_templates 11139 { 11140 11141 template <int...> 11142 struct sum; 11143 11144 template <int N0, int... N1toN> 11145 struct sum<N0, N1toN...> 11146 { 11147 static constexpr auto value = N0 + sum<N1toN...>::value; 11148 }; 11149 11150 template <> 11151 struct sum<> 11152 { 11153 static constexpr auto value = 0; 11154 }; 11155 11156 static_assert(sum<>::value == 0, ""); 11157 static_assert(sum<1>::value == 1, ""); 11158 static_assert(sum<23>::value == 23, ""); 11159 static_assert(sum<1, 2>::value == 3, ""); 11160 static_assert(sum<5, 5, 11>::value == 21, ""); 11161 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 11162 11163 } 11164 11165 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 11166 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 11167 // because of this. 11168 namespace test_template_alias_sfinae 11169 { 11170 11171 struct foo {}; 11172 11173 template<typename T> 11174 using member = typename T::member_type; 11175 11176 template<typename T> 11177 void func(...) {} 11178 11179 template<typename T> 11180 void func(member<T>*) {} 11181 11182 void test(); 11183 11184 void test() { func<foo>(0); } 11185 11186 } 11187 11188} // namespace cxx11 11189 11190#endif // __cplusplus >= 201103L 11191 11192 11193 11194 11195// If the compiler admits that it is not ready for C++14, why torture it? 11196// Hopefully, this will speed up the test. 11197 11198#ifndef __cplusplus 11199 11200#error "This is not a C++ compiler" 11201 11202#elif __cplusplus < 201402L 11203 11204#error "This is not a C++14 compiler" 11205 11206#else 11207 11208namespace cxx14 11209{ 11210 11211 namespace test_polymorphic_lambdas 11212 { 11213 11214 int 11215 test() 11216 { 11217 const auto lambda = [](auto&&... args){ 11218 const auto istiny = [](auto x){ 11219 return (sizeof(x) == 1UL) ? 1 : 0; 11220 }; 11221 const int aretiny[] = { istiny(args)... }; 11222 return aretiny[0]; 11223 }; 11224 return lambda(1, 1L, 1.0f, '1'); 11225 } 11226 11227 } 11228 11229 namespace test_binary_literals 11230 { 11231 11232 constexpr auto ivii = 0b0000000000101010; 11233 static_assert(ivii == 42, "wrong value"); 11234 11235 } 11236 11237 namespace test_generalized_constexpr 11238 { 11239 11240 template < typename CharT > 11241 constexpr unsigned long 11242 strlen_c(const CharT *const s) noexcept 11243 { 11244 auto length = 0UL; 11245 for (auto p = s; *p; ++p) 11246 ++length; 11247 return length; 11248 } 11249 11250 static_assert(strlen_c("") == 0UL, ""); 11251 static_assert(strlen_c("x") == 1UL, ""); 11252 static_assert(strlen_c("test") == 4UL, ""); 11253 static_assert(strlen_c("another\0test") == 7UL, ""); 11254 11255 } 11256 11257 namespace test_lambda_init_capture 11258 { 11259 11260 int 11261 test() 11262 { 11263 auto x = 0; 11264 const auto lambda1 = [a = x](int b){ return a + b; }; 11265 const auto lambda2 = [a = lambda1(x)](){ return a; }; 11266 return lambda2(); 11267 } 11268 11269 } 11270 11271 namespace test_digit_separators 11272 { 11273 11274 constexpr auto ten_million = 100'000'000; 11275 static_assert(ten_million == 100000000, ""); 11276 11277 } 11278 11279 namespace test_return_type_deduction 11280 { 11281 11282 auto f(int& x) { return x; } 11283 decltype(auto) g(int& x) { return x; } 11284 11285 template < typename T1, typename T2 > 11286 struct is_same 11287 { 11288 static constexpr auto value = false; 11289 }; 11290 11291 template < typename T > 11292 struct is_same<T, T> 11293 { 11294 static constexpr auto value = true; 11295 }; 11296 11297 int 11298 test() 11299 { 11300 auto x = 0; 11301 static_assert(is_same<int, decltype(f(x))>::value, ""); 11302 static_assert(is_same<int&, decltype(g(x))>::value, ""); 11303 return x; 11304 } 11305 11306 } 11307 11308} // namespace cxx14 11309 11310#endif // __cplusplus >= 201402L 11311 11312 11313 11314 11315// If the compiler admits that it is not ready for C++17, why torture it? 11316// Hopefully, this will speed up the test. 11317 11318#ifndef __cplusplus 11319 11320#error "This is not a C++ compiler" 11321 11322#elif __cplusplus < 201703L 11323 11324#error "This is not a C++17 compiler" 11325 11326#else 11327 11328#include <initializer_list> 11329#include <utility> 11330#include <type_traits> 11331 11332namespace cxx17 11333{ 11334 11335 namespace test_constexpr_lambdas 11336 { 11337 11338 constexpr int foo = [](){return 42;}(); 11339 11340 } 11341 11342 namespace test::nested_namespace::definitions 11343 { 11344 11345 } 11346 11347 namespace test_fold_expression 11348 { 11349 11350 template<typename... Args> 11351 int multiply(Args... args) 11352 { 11353 return (args * ... * 1); 11354 } 11355 11356 template<typename... Args> 11357 bool all(Args... args) 11358 { 11359 return (args && ...); 11360 } 11361 11362 } 11363 11364 namespace test_extended_static_assert 11365 { 11366 11367 static_assert (true); 11368 11369 } 11370 11371 namespace test_auto_brace_init_list 11372 { 11373 11374 auto foo = {5}; 11375 auto bar {5}; 11376 11377 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value); 11378 static_assert(std::is_same<int, decltype(bar)>::value); 11379 } 11380 11381 namespace test_typename_in_template_template_parameter 11382 { 11383 11384 template<template<typename> typename X> struct D; 11385 11386 } 11387 11388 namespace test_fallthrough_nodiscard_maybe_unused_attributes 11389 { 11390 11391 int f1() 11392 { 11393 return 42; 11394 } 11395 11396 [[nodiscard]] int f2() 11397 { 11398 [[maybe_unused]] auto unused = f1(); 11399 11400 switch (f1()) 11401 { 11402 case 17: 11403 f1(); 11404 [[fallthrough]]; 11405 case 42: 11406 f1(); 11407 } 11408 return f1(); 11409 } 11410 11411 } 11412 11413 namespace test_extended_aggregate_initialization 11414 { 11415 11416 struct base1 11417 { 11418 int b1, b2 = 42; 11419 }; 11420 11421 struct base2 11422 { 11423 base2() { 11424 b3 = 42; 11425 } 11426 int b3; 11427 }; 11428 11429 struct derived : base1, base2 11430 { 11431 int d; 11432 }; 11433 11434 derived d1 {{1, 2}, {}, 4}; // full initialization 11435 derived d2 {{}, {}, 4}; // value-initialized bases 11436 11437 } 11438 11439 namespace test_general_range_based_for_loop 11440 { 11441 11442 struct iter 11443 { 11444 int i; 11445 11446 int& operator* () 11447 { 11448 return i; 11449 } 11450 11451 const int& operator* () const 11452 { 11453 return i; 11454 } 11455 11456 iter& operator++() 11457 { 11458 ++i; 11459 return *this; 11460 } 11461 }; 11462 11463 struct sentinel 11464 { 11465 int i; 11466 }; 11467 11468 bool operator== (const iter& i, const sentinel& s) 11469 { 11470 return i.i == s.i; 11471 } 11472 11473 bool operator!= (const iter& i, const sentinel& s) 11474 { 11475 return !(i == s); 11476 } 11477 11478 struct range 11479 { 11480 iter begin() const 11481 { 11482 return {0}; 11483 } 11484 11485 sentinel end() const 11486 { 11487 return {5}; 11488 } 11489 }; 11490 11491 void f() 11492 { 11493 range r {}; 11494 11495 for (auto i : r) 11496 { 11497 [[maybe_unused]] auto v = i; 11498 } 11499 } 11500 11501 } 11502 11503 namespace test_lambda_capture_asterisk_this_by_value 11504 { 11505 11506 struct t 11507 { 11508 int i; 11509 int foo() 11510 { 11511 return [*this]() 11512 { 11513 return i; 11514 }(); 11515 } 11516 }; 11517 11518 } 11519 11520 namespace test_enum_class_construction 11521 { 11522 11523 enum class byte : unsigned char 11524 {}; 11525 11526 byte foo {42}; 11527 11528 } 11529 11530 namespace test_constexpr_if 11531 { 11532 11533 template <bool cond> 11534 int f () 11535 { 11536 if constexpr(cond) 11537 { 11538 return 13; 11539 } 11540 else 11541 { 11542 return 42; 11543 } 11544 } 11545 11546 } 11547 11548 namespace test_selection_statement_with_initializer 11549 { 11550 11551 int f() 11552 { 11553 return 13; 11554 } 11555 11556 int f2() 11557 { 11558 if (auto i = f(); i > 0) 11559 { 11560 return 3; 11561 } 11562 11563 switch (auto i = f(); i + 4) 11564 { 11565 case 17: 11566 return 2; 11567 11568 default: 11569 return 1; 11570 } 11571 } 11572 11573 } 11574 11575 namespace test_template_argument_deduction_for_class_templates 11576 { 11577 11578 template <typename T1, typename T2> 11579 struct pair 11580 { 11581 pair (T1 p1, T2 p2) 11582 : m1 {p1}, 11583 m2 {p2} 11584 {} 11585 11586 T1 m1; 11587 T2 m2; 11588 }; 11589 11590 void f() 11591 { 11592 [[maybe_unused]] auto p = pair{13, 42u}; 11593 } 11594 11595 } 11596 11597 namespace test_non_type_auto_template_parameters 11598 { 11599 11600 template <auto n> 11601 struct B 11602 {}; 11603 11604 B<5> b1; 11605 B<'a'> b2; 11606 11607 } 11608 11609 namespace test_structured_bindings 11610 { 11611 11612 int arr[2] = { 1, 2 }; 11613 std::pair<int, int> pr = { 1, 2 }; 11614 11615 auto f1() -> int(&)[2] 11616 { 11617 return arr; 11618 } 11619 11620 auto f2() -> std::pair<int, int>& 11621 { 11622 return pr; 11623 } 11624 11625 struct S 11626 { 11627 int x1 : 2; 11628 volatile double y1; 11629 }; 11630 11631 S f3() 11632 { 11633 return {}; 11634 } 11635 11636 auto [ x1, y1 ] = f1(); 11637 auto& [ xr1, yr1 ] = f1(); 11638 auto [ x2, y2 ] = f2(); 11639 auto& [ xr2, yr2 ] = f2(); 11640 const auto [ x3, y3 ] = f3(); 11641 11642 } 11643 11644 namespace test_exception_spec_type_system 11645 { 11646 11647 struct Good {}; 11648 struct Bad {}; 11649 11650 void g1() noexcept; 11651 void g2(); 11652 11653 template<typename T> 11654 Bad 11655 f(T*, T*); 11656 11657 template<typename T1, typename T2> 11658 Good 11659 f(T1*, T2*); 11660 11661 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>); 11662 11663 } 11664 11665 namespace test_inline_variables 11666 { 11667 11668 template<class T> void f(T) 11669 {} 11670 11671 template<class T> inline T g(T) 11672 { 11673 return T{}; 11674 } 11675 11676 template<> inline void f<>(int) 11677 {} 11678 11679 template<> int g<>(int) 11680 { 11681 return 5; 11682 } 11683 11684 } 11685 11686} // namespace cxx17 11687 11688#endif // __cplusplus < 201703L 11689 11690 11691 11692_ACEOF 11693if ac_fn_cxx_try_compile "$LINENO" 11694then : 11695 eval $cachevar=yes 11696else $as_nop 11697 eval $cachevar=no 11698fi 11699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11700 CXX="$ac_save_CXX" 11701fi 11702eval ac_res=\$$cachevar 11703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11704printf "%s\n" "$ac_res" >&6; } 11705 if eval test x\$$cachevar = xyes; then 11706 CXX="$CXX $switch" 11707 if test -n "$CXXCPP" ; then 11708 CXXCPP="$CXXCPP $switch" 11709 fi 11710 ac_success=yes 11711 break 11712 fi 11713 done 11714 if test x$ac_success = xyes; then 11715 break 11716 fi 11717 done 11718 fi 11719 ac_ext=c 11720ac_cpp='$CPP $CPPFLAGS' 11721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11723ac_compiler_gnu=$ac_cv_c_compiler_gnu 11724 11725 if test x$ax_cxx_compile_cxx17_required = xtrue; then 11726 if test x$ac_success = xno; then 11727 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5 11728 fi 11729 fi 11730 if test x$ac_success = xno; then 11731 HAVE_CXX17=0 11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5 11733printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;} 11734 else 11735 HAVE_CXX17=1 11736 11737printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h 11738 11739 fi 11740 11741 11742 11743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11744printf %s "checking for grep that handles long lines and -e... " >&6; } 11745if test ${ac_cv_path_GREP+y} 11746then : 11747 printf %s "(cached) " >&6 11748else $as_nop 11749 if test -z "$GREP"; then 11750 ac_path_GREP_found=false 11751 # Loop through the user's path and test for each of PROGNAME-LIST 11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11753for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11754do 11755 IFS=$as_save_IFS 11756 case $as_dir in #((( 11757 '') as_dir=./ ;; 11758 */) ;; 11759 *) as_dir=$as_dir/ ;; 11760 esac 11761 for ac_prog in grep ggrep 11762 do 11763 for ac_exec_ext in '' $ac_executable_extensions; do 11764 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11765 as_fn_executable_p "$ac_path_GREP" || continue 11766# Check for GNU ac_path_GREP and select it if it is found. 11767 # Check for GNU $ac_path_GREP 11768case `"$ac_path_GREP" --version 2>&1` in 11769*GNU*) 11770 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11771*) 11772 ac_count=0 11773 printf %s 0123456789 >"conftest.in" 11774 while : 11775 do 11776 cat "conftest.in" "conftest.in" >"conftest.tmp" 11777 mv "conftest.tmp" "conftest.in" 11778 cp "conftest.in" "conftest.nl" 11779 printf "%s\n" 'GREP' >> "conftest.nl" 11780 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11782 as_fn_arith $ac_count + 1 && ac_count=$as_val 11783 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11784 # Best one so far, save it but keep looking for a better one 11785 ac_cv_path_GREP="$ac_path_GREP" 11786 ac_path_GREP_max=$ac_count 11787 fi 11788 # 10*(2^10) chars as input seems more than enough 11789 test $ac_count -gt 10 && break 11790 done 11791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11792esac 11793 11794 $ac_path_GREP_found && break 3 11795 done 11796 done 11797 done 11798IFS=$as_save_IFS 11799 if test -z "$ac_cv_path_GREP"; then 11800 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11801 fi 11802else 11803 ac_cv_path_GREP=$GREP 11804fi 11805 11806fi 11807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11808printf "%s\n" "$ac_cv_path_GREP" >&6; } 11809 GREP="$ac_cv_path_GREP" 11810 11811 11812case `pwd` in 11813 *\ * | *\ *) 11814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11815printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11816esac 11817 11818 11819 11820macro_version='2.4.6' 11821macro_revision='2.4.6' 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836ltmain=$ac_aux_dir/ltmain.sh 11837 11838# Backslashify metacharacters that are still active within 11839# double-quoted strings. 11840sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11841 11842# Same as above, but do not quote variable references. 11843double_quote_subst='s/\(["`\\]\)/\\\1/g' 11844 11845# Sed substitution to delay expansion of an escaped shell variable in a 11846# double_quote_subst'ed string. 11847delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11848 11849# Sed substitution to delay expansion of an escaped single quote. 11850delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11851 11852# Sed substitution to avoid accidental globbing in evaled expressions 11853no_glob_subst='s/\*/\\\*/g' 11854 11855ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11856ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11857ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11858 11859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11860printf %s "checking how to print strings... " >&6; } 11861# Test print first, because it will be a builtin if present. 11862if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11863 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11864 ECHO='print -r --' 11865elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11866 ECHO='printf %s\n' 11867else 11868 # Use this function as a fallback that always works. 11869 func_fallback_echo () 11870 { 11871 eval 'cat <<_LTECHO_EOF 11872$1 11873_LTECHO_EOF' 11874 } 11875 ECHO='func_fallback_echo' 11876fi 11877 11878# func_echo_all arg... 11879# Invoke $ECHO with all args, space-separated. 11880func_echo_all () 11881{ 11882 $ECHO "" 11883} 11884 11885case $ECHO in 11886 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11887printf "%s\n" "printf" >&6; } ;; 11888 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11889printf "%s\n" "print -r" >&6; } ;; 11890 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11891printf "%s\n" "cat" >&6; } ;; 11892esac 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11908printf %s "checking for a sed that does not truncate output... " >&6; } 11909if test ${ac_cv_path_SED+y} 11910then : 11911 printf %s "(cached) " >&6 11912else $as_nop 11913 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11914 for ac_i in 1 2 3 4 5 6 7; do 11915 ac_script="$ac_script$as_nl$ac_script" 11916 done 11917 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11918 { ac_script=; unset ac_script;} 11919 if test -z "$SED"; then 11920 ac_path_SED_found=false 11921 # Loop through the user's path and test for each of PROGNAME-LIST 11922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11923for as_dir in $PATH 11924do 11925 IFS=$as_save_IFS 11926 case $as_dir in #((( 11927 '') as_dir=./ ;; 11928 */) ;; 11929 *) as_dir=$as_dir/ ;; 11930 esac 11931 for ac_prog in sed gsed 11932 do 11933 for ac_exec_ext in '' $ac_executable_extensions; do 11934 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11935 as_fn_executable_p "$ac_path_SED" || continue 11936# Check for GNU ac_path_SED and select it if it is found. 11937 # Check for GNU $ac_path_SED 11938case `"$ac_path_SED" --version 2>&1` in 11939*GNU*) 11940 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11941*) 11942 ac_count=0 11943 printf %s 0123456789 >"conftest.in" 11944 while : 11945 do 11946 cat "conftest.in" "conftest.in" >"conftest.tmp" 11947 mv "conftest.tmp" "conftest.in" 11948 cp "conftest.in" "conftest.nl" 11949 printf "%s\n" '' >> "conftest.nl" 11950 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11952 as_fn_arith $ac_count + 1 && ac_count=$as_val 11953 if test $ac_count -gt ${ac_path_SED_max-0}; then 11954 # Best one so far, save it but keep looking for a better one 11955 ac_cv_path_SED="$ac_path_SED" 11956 ac_path_SED_max=$ac_count 11957 fi 11958 # 10*(2^10) chars as input seems more than enough 11959 test $ac_count -gt 10 && break 11960 done 11961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11962esac 11963 11964 $ac_path_SED_found && break 3 11965 done 11966 done 11967 done 11968IFS=$as_save_IFS 11969 if test -z "$ac_cv_path_SED"; then 11970 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11971 fi 11972else 11973 ac_cv_path_SED=$SED 11974fi 11975 11976fi 11977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11978printf "%s\n" "$ac_cv_path_SED" >&6; } 11979 SED="$ac_cv_path_SED" 11980 rm -f conftest.sed 11981 11982test -z "$SED" && SED=sed 11983Xsed="$SED -e 1s/^X//" 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11996printf %s "checking for egrep... " >&6; } 11997if test ${ac_cv_path_EGREP+y} 11998then : 11999 printf %s "(cached) " >&6 12000else $as_nop 12001 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 12002 then ac_cv_path_EGREP="$GREP -E" 12003 else 12004 if test -z "$EGREP"; then 12005 ac_path_EGREP_found=false 12006 # Loop through the user's path and test for each of PROGNAME-LIST 12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12008for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12009do 12010 IFS=$as_save_IFS 12011 case $as_dir in #((( 12012 '') as_dir=./ ;; 12013 */) ;; 12014 *) as_dir=$as_dir/ ;; 12015 esac 12016 for ac_prog in egrep 12017 do 12018 for ac_exec_ext in '' $ac_executable_extensions; do 12019 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 12020 as_fn_executable_p "$ac_path_EGREP" || continue 12021# Check for GNU ac_path_EGREP and select it if it is found. 12022 # Check for GNU $ac_path_EGREP 12023case `"$ac_path_EGREP" --version 2>&1` in 12024*GNU*) 12025 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 12026*) 12027 ac_count=0 12028 printf %s 0123456789 >"conftest.in" 12029 while : 12030 do 12031 cat "conftest.in" "conftest.in" >"conftest.tmp" 12032 mv "conftest.tmp" "conftest.in" 12033 cp "conftest.in" "conftest.nl" 12034 printf "%s\n" 'EGREP' >> "conftest.nl" 12035 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12037 as_fn_arith $ac_count + 1 && ac_count=$as_val 12038 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 12039 # Best one so far, save it but keep looking for a better one 12040 ac_cv_path_EGREP="$ac_path_EGREP" 12041 ac_path_EGREP_max=$ac_count 12042 fi 12043 # 10*(2^10) chars as input seems more than enough 12044 test $ac_count -gt 10 && break 12045 done 12046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12047esac 12048 12049 $ac_path_EGREP_found && break 3 12050 done 12051 done 12052 done 12053IFS=$as_save_IFS 12054 if test -z "$ac_cv_path_EGREP"; then 12055 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12056 fi 12057else 12058 ac_cv_path_EGREP=$EGREP 12059fi 12060 12061 fi 12062fi 12063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 12064printf "%s\n" "$ac_cv_path_EGREP" >&6; } 12065 EGREP="$ac_cv_path_EGREP" 12066 12067 12068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12069printf %s "checking for fgrep... " >&6; } 12070if test ${ac_cv_path_FGREP+y} 12071then : 12072 printf %s "(cached) " >&6 12073else $as_nop 12074 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12075 then ac_cv_path_FGREP="$GREP -F" 12076 else 12077 if test -z "$FGREP"; then 12078 ac_path_FGREP_found=false 12079 # Loop through the user's path and test for each of PROGNAME-LIST 12080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12081for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12082do 12083 IFS=$as_save_IFS 12084 case $as_dir in #((( 12085 '') as_dir=./ ;; 12086 */) ;; 12087 *) as_dir=$as_dir/ ;; 12088 esac 12089 for ac_prog in fgrep 12090 do 12091 for ac_exec_ext in '' $ac_executable_extensions; do 12092 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 12093 as_fn_executable_p "$ac_path_FGREP" || continue 12094# Check for GNU ac_path_FGREP and select it if it is found. 12095 # Check for GNU $ac_path_FGREP 12096case `"$ac_path_FGREP" --version 2>&1` in 12097*GNU*) 12098 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12099*) 12100 ac_count=0 12101 printf %s 0123456789 >"conftest.in" 12102 while : 12103 do 12104 cat "conftest.in" "conftest.in" >"conftest.tmp" 12105 mv "conftest.tmp" "conftest.in" 12106 cp "conftest.in" "conftest.nl" 12107 printf "%s\n" 'FGREP' >> "conftest.nl" 12108 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12110 as_fn_arith $ac_count + 1 && ac_count=$as_val 12111 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12112 # Best one so far, save it but keep looking for a better one 12113 ac_cv_path_FGREP="$ac_path_FGREP" 12114 ac_path_FGREP_max=$ac_count 12115 fi 12116 # 10*(2^10) chars as input seems more than enough 12117 test $ac_count -gt 10 && break 12118 done 12119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12120esac 12121 12122 $ac_path_FGREP_found && break 3 12123 done 12124 done 12125 done 12126IFS=$as_save_IFS 12127 if test -z "$ac_cv_path_FGREP"; then 12128 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12129 fi 12130else 12131 ac_cv_path_FGREP=$FGREP 12132fi 12133 12134 fi 12135fi 12136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12137printf "%s\n" "$ac_cv_path_FGREP" >&6; } 12138 FGREP="$ac_cv_path_FGREP" 12139 12140 12141test -z "$GREP" && GREP=grep 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161# Check whether --with-gnu-ld was given. 12162if test ${with_gnu_ld+y} 12163then : 12164 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12165else $as_nop 12166 with_gnu_ld=no 12167fi 12168 12169ac_prog=ld 12170if test yes = "$GCC"; then 12171 # Check if gcc -print-prog-name=ld gives a path. 12172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12173printf %s "checking for ld used by $CC... " >&6; } 12174 case $host in 12175 *-*-mingw*) 12176 # gcc leaves a trailing carriage return, which upsets mingw 12177 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12178 *) 12179 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12180 esac 12181 case $ac_prog in 12182 # Accept absolute paths. 12183 [\\/]* | ?:[\\/]*) 12184 re_direlt='/[^/][^/]*/\.\./' 12185 # Canonicalize the pathname of ld 12186 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12187 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12188 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12189 done 12190 test -z "$LD" && LD=$ac_prog 12191 ;; 12192 "") 12193 # If it fails, then pretend we aren't using GCC. 12194 ac_prog=ld 12195 ;; 12196 *) 12197 # If it is relative, then search for the first ld in PATH. 12198 with_gnu_ld=unknown 12199 ;; 12200 esac 12201elif test yes = "$with_gnu_ld"; then 12202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12203printf %s "checking for GNU ld... " >&6; } 12204else 12205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12206printf %s "checking for non-GNU ld... " >&6; } 12207fi 12208if test ${lt_cv_path_LD+y} 12209then : 12210 printf %s "(cached) " >&6 12211else $as_nop 12212 if test -z "$LD"; then 12213 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12214 for ac_dir in $PATH; do 12215 IFS=$lt_save_ifs 12216 test -z "$ac_dir" && ac_dir=. 12217 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12218 lt_cv_path_LD=$ac_dir/$ac_prog 12219 # Check to see if the program is GNU ld. I'd rather use --version, 12220 # but apparently some variants of GNU ld only accept -v. 12221 # Break only if it was the GNU/non-GNU ld that we prefer. 12222 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12223 *GNU* | *'with BFD'*) 12224 test no != "$with_gnu_ld" && break 12225 ;; 12226 *) 12227 test yes != "$with_gnu_ld" && break 12228 ;; 12229 esac 12230 fi 12231 done 12232 IFS=$lt_save_ifs 12233else 12234 lt_cv_path_LD=$LD # Let the user override the test with a path. 12235fi 12236fi 12237 12238LD=$lt_cv_path_LD 12239if test -n "$LD"; then 12240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12241printf "%s\n" "$LD" >&6; } 12242else 12243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12244printf "%s\n" "no" >&6; } 12245fi 12246test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12248printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 12249if test ${lt_cv_prog_gnu_ld+y} 12250then : 12251 printf %s "(cached) " >&6 12252else $as_nop 12253 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12254case `$LD -v 2>&1 </dev/null` in 12255*GNU* | *'with BFD'*) 12256 lt_cv_prog_gnu_ld=yes 12257 ;; 12258*) 12259 lt_cv_prog_gnu_ld=no 12260 ;; 12261esac 12262fi 12263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12264printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 12265with_gnu_ld=$lt_cv_prog_gnu_ld 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12276printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12277if test ${lt_cv_path_NM+y} 12278then : 12279 printf %s "(cached) " >&6 12280else $as_nop 12281 if test -n "$NM"; then 12282 # Let the user override the test. 12283 lt_cv_path_NM=$NM 12284else 12285 lt_nm_to_check=${ac_tool_prefix}nm 12286 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12287 lt_nm_to_check="$lt_nm_to_check nm" 12288 fi 12289 for lt_tmp_nm in $lt_nm_to_check; do 12290 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12291 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12292 IFS=$lt_save_ifs 12293 test -z "$ac_dir" && ac_dir=. 12294 tmp_nm=$ac_dir/$lt_tmp_nm 12295 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 12296 # Check to see if the nm accepts a BSD-compat flag. 12297 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 12298 # nm: unknown option "B" ignored 12299 # Tru64's nm complains that /dev/null is an invalid object file 12300 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 12301 case $build_os in 12302 mingw*) lt_bad_file=conftest.nm/nofile ;; 12303 *) lt_bad_file=/dev/null ;; 12304 esac 12305 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 12306 *$lt_bad_file* | *'Invalid file or object type'*) 12307 lt_cv_path_NM="$tmp_nm -B" 12308 break 2 12309 ;; 12310 *) 12311 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 12312 */dev/null*) 12313 lt_cv_path_NM="$tmp_nm -p" 12314 break 2 12315 ;; 12316 *) 12317 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12318 continue # so that we can try to find one that supports BSD flags 12319 ;; 12320 esac 12321 ;; 12322 esac 12323 fi 12324 done 12325 IFS=$lt_save_ifs 12326 done 12327 : ${lt_cv_path_NM=no} 12328fi 12329fi 12330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 12331printf "%s\n" "$lt_cv_path_NM" >&6; } 12332if test no != "$lt_cv_path_NM"; then 12333 NM=$lt_cv_path_NM 12334else 12335 # Didn't find any BSD compatible name lister, look for dumpbin. 12336 if test -n "$DUMPBIN"; then : 12337 # Let the user override the test. 12338 else 12339 if test -n "$ac_tool_prefix"; then 12340 for ac_prog in dumpbin "link -dump" 12341 do 12342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12343set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12345printf %s "checking for $ac_word... " >&6; } 12346if test ${ac_cv_prog_DUMPBIN+y} 12347then : 12348 printf %s "(cached) " >&6 12349else $as_nop 12350 if test -n "$DUMPBIN"; then 12351 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12352else 12353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12354for as_dir in $PATH 12355do 12356 IFS=$as_save_IFS 12357 case $as_dir in #((( 12358 '') as_dir=./ ;; 12359 */) ;; 12360 *) as_dir=$as_dir/ ;; 12361 esac 12362 for ac_exec_ext in '' $ac_executable_extensions; do 12363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12364 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12366 break 2 12367 fi 12368done 12369 done 12370IFS=$as_save_IFS 12371 12372fi 12373fi 12374DUMPBIN=$ac_cv_prog_DUMPBIN 12375if test -n "$DUMPBIN"; then 12376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12377printf "%s\n" "$DUMPBIN" >&6; } 12378else 12379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12380printf "%s\n" "no" >&6; } 12381fi 12382 12383 12384 test -n "$DUMPBIN" && break 12385 done 12386fi 12387if test -z "$DUMPBIN"; then 12388 ac_ct_DUMPBIN=$DUMPBIN 12389 for ac_prog in dumpbin "link -dump" 12390do 12391 # Extract the first word of "$ac_prog", so it can be a program name with args. 12392set dummy $ac_prog; ac_word=$2 12393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12394printf %s "checking for $ac_word... " >&6; } 12395if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 12396then : 12397 printf %s "(cached) " >&6 12398else $as_nop 12399 if test -n "$ac_ct_DUMPBIN"; then 12400 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12401else 12402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12403for as_dir in $PATH 12404do 12405 IFS=$as_save_IFS 12406 case $as_dir in #((( 12407 '') as_dir=./ ;; 12408 */) ;; 12409 *) as_dir=$as_dir/ ;; 12410 esac 12411 for ac_exec_ext in '' $ac_executable_extensions; do 12412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12413 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12415 break 2 12416 fi 12417done 12418 done 12419IFS=$as_save_IFS 12420 12421fi 12422fi 12423ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12424if test -n "$ac_ct_DUMPBIN"; then 12425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12426printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 12427else 12428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12429printf "%s\n" "no" >&6; } 12430fi 12431 12432 12433 test -n "$ac_ct_DUMPBIN" && break 12434done 12435 12436 if test "x$ac_ct_DUMPBIN" = x; then 12437 DUMPBIN=":" 12438 else 12439 case $cross_compiling:$ac_tool_warned in 12440yes:) 12441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12442printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12443ac_tool_warned=yes ;; 12444esac 12445 DUMPBIN=$ac_ct_DUMPBIN 12446 fi 12447fi 12448 12449 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 12450 *COFF*) 12451 DUMPBIN="$DUMPBIN -symbols -headers" 12452 ;; 12453 *) 12454 DUMPBIN=: 12455 ;; 12456 esac 12457 fi 12458 12459 if test : != "$DUMPBIN"; then 12460 NM=$DUMPBIN 12461 fi 12462fi 12463test -z "$NM" && NM=nm 12464 12465 12466 12467 12468 12469 12470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12471printf %s "checking the name lister ($NM) interface... " >&6; } 12472if test ${lt_cv_nm_interface+y} 12473then : 12474 printf %s "(cached) " >&6 12475else $as_nop 12476 lt_cv_nm_interface="BSD nm" 12477 echo "int some_variable = 0;" > conftest.$ac_ext 12478 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12479 (eval "$ac_compile" 2>conftest.err) 12480 cat conftest.err >&5 12481 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12482 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12483 cat conftest.err >&5 12484 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12485 cat conftest.out >&5 12486 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12487 lt_cv_nm_interface="MS dumpbin" 12488 fi 12489 rm -f conftest* 12490fi 12491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12492printf "%s\n" "$lt_cv_nm_interface" >&6; } 12493 12494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12495printf %s "checking whether ln -s works... " >&6; } 12496LN_S=$as_ln_s 12497if test "$LN_S" = "ln -s"; then 12498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12499printf "%s\n" "yes" >&6; } 12500else 12501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12502printf "%s\n" "no, using $LN_S" >&6; } 12503fi 12504 12505# find the maximum length of command line arguments 12506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12507printf %s "checking the maximum length of command line arguments... " >&6; } 12508if test ${lt_cv_sys_max_cmd_len+y} 12509then : 12510 printf %s "(cached) " >&6 12511else $as_nop 12512 i=0 12513 teststring=ABCD 12514 12515 case $build_os in 12516 msdosdjgpp*) 12517 # On DJGPP, this test can blow up pretty badly due to problems in libc 12518 # (any single argument exceeding 2000 bytes causes a buffer overrun 12519 # during glob expansion). Even if it were fixed, the result of this 12520 # check would be larger than it should be. 12521 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12522 ;; 12523 12524 gnu*) 12525 # Under GNU Hurd, this test is not required because there is 12526 # no limit to the length of command line arguments. 12527 # Libtool will interpret -1 as no limit whatsoever 12528 lt_cv_sys_max_cmd_len=-1; 12529 ;; 12530 12531 cygwin* | mingw* | cegcc*) 12532 # On Win9x/ME, this test blows up -- it succeeds, but takes 12533 # about 5 minutes as the teststring grows exponentially. 12534 # Worse, since 9x/ME are not pre-emptively multitasking, 12535 # you end up with a "frozen" computer, even though with patience 12536 # the test eventually succeeds (with a max line length of 256k). 12537 # Instead, let's just punt: use the minimum linelength reported by 12538 # all of the supported platforms: 8192 (on NT/2K/XP). 12539 lt_cv_sys_max_cmd_len=8192; 12540 ;; 12541 12542 mint*) 12543 # On MiNT this can take a long time and run out of memory. 12544 lt_cv_sys_max_cmd_len=8192; 12545 ;; 12546 12547 amigaos*) 12548 # On AmigaOS with pdksh, this test takes hours, literally. 12549 # So we just punt and use a minimum line length of 8192. 12550 lt_cv_sys_max_cmd_len=8192; 12551 ;; 12552 12553 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 12554 # This has been around since 386BSD, at least. Likely further. 12555 if test -x /sbin/sysctl; then 12556 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12557 elif test -x /usr/sbin/sysctl; then 12558 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12559 else 12560 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12561 fi 12562 # And add a safety zone 12563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12565 ;; 12566 12567 interix*) 12568 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12569 lt_cv_sys_max_cmd_len=196608 12570 ;; 12571 12572 os2*) 12573 # The test takes a long time on OS/2. 12574 lt_cv_sys_max_cmd_len=8192 12575 ;; 12576 12577 osf*) 12578 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12579 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12580 # nice to cause kernel panics so lets avoid the loop below. 12581 # First set a reasonable default. 12582 lt_cv_sys_max_cmd_len=16384 12583 # 12584 if test -x /sbin/sysconfig; then 12585 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12586 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12587 esac 12588 fi 12589 ;; 12590 sco3.2v5*) 12591 lt_cv_sys_max_cmd_len=102400 12592 ;; 12593 sysv5* | sco5v6* | sysv4.2uw2*) 12594 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12595 if test -n "$kargmax"; then 12596 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 12597 else 12598 lt_cv_sys_max_cmd_len=32768 12599 fi 12600 ;; 12601 *) 12602 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12603 if test -n "$lt_cv_sys_max_cmd_len" && \ 12604 test undefined != "$lt_cv_sys_max_cmd_len"; then 12605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12607 else 12608 # Make teststring a little bigger before we do anything with it. 12609 # a 1K string should be a reasonable start. 12610 for i in 1 2 3 4 5 6 7 8; do 12611 teststring=$teststring$teststring 12612 done 12613 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12614 # If test is not a shell built-in, we'll probably end up computing a 12615 # maximum length that is only half of the actual maximum length, but 12616 # we can't tell. 12617 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12618 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12619 test 17 != "$i" # 1/2 MB should be enough 12620 do 12621 i=`expr $i + 1` 12622 teststring=$teststring$teststring 12623 done 12624 # Only check the string length outside the loop. 12625 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12626 teststring= 12627 # Add a significant safety factor because C++ compilers can tack on 12628 # massive amounts of additional arguments before passing them to the 12629 # linker. It appears as though 1/2 is a usable value. 12630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12631 fi 12632 ;; 12633 esac 12634 12635fi 12636 12637if test -n "$lt_cv_sys_max_cmd_len"; then 12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12639printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12640else 12641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12642printf "%s\n" "none" >&6; } 12643fi 12644max_cmd_len=$lt_cv_sys_max_cmd_len 12645 12646 12647 12648 12649 12650 12651: ${CP="cp -f"} 12652: ${MV="mv -f"} 12653: ${RM="rm -f"} 12654 12655if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12656 lt_unset=unset 12657else 12658 lt_unset=false 12659fi 12660 12661 12662 12663 12664 12665# test EBCDIC or ASCII 12666case `echo X|tr X '\101'` in 12667 A) # ASCII based system 12668 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12669 lt_SP2NL='tr \040 \012' 12670 lt_NL2SP='tr \015\012 \040\040' 12671 ;; 12672 *) # EBCDIC based system 12673 lt_SP2NL='tr \100 \n' 12674 lt_NL2SP='tr \r\n \100\100' 12675 ;; 12676esac 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12687printf %s "checking how to convert $build file names to $host format... " >&6; } 12688if test ${lt_cv_to_host_file_cmd+y} 12689then : 12690 printf %s "(cached) " >&6 12691else $as_nop 12692 case $host in 12693 *-*-mingw* ) 12694 case $build in 12695 *-*-mingw* ) # actually msys 12696 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12697 ;; 12698 *-*-cygwin* ) 12699 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12700 ;; 12701 * ) # otherwise, assume *nix 12702 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12703 ;; 12704 esac 12705 ;; 12706 *-*-cygwin* ) 12707 case $build in 12708 *-*-mingw* ) # actually msys 12709 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12710 ;; 12711 *-*-cygwin* ) 12712 lt_cv_to_host_file_cmd=func_convert_file_noop 12713 ;; 12714 * ) # otherwise, assume *nix 12715 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12716 ;; 12717 esac 12718 ;; 12719 * ) # unhandled hosts (and "normal" native builds) 12720 lt_cv_to_host_file_cmd=func_convert_file_noop 12721 ;; 12722esac 12723 12724fi 12725 12726to_host_file_cmd=$lt_cv_to_host_file_cmd 12727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12728printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12729 12730 12731 12732 12733 12734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12735printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12736if test ${lt_cv_to_tool_file_cmd+y} 12737then : 12738 printf %s "(cached) " >&6 12739else $as_nop 12740 #assume ordinary cross tools, or native build. 12741lt_cv_to_tool_file_cmd=func_convert_file_noop 12742case $host in 12743 *-*-mingw* ) 12744 case $build in 12745 *-*-mingw* ) # actually msys 12746 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12747 ;; 12748 esac 12749 ;; 12750esac 12751 12752fi 12753 12754to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12756printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12757 12758 12759 12760 12761 12762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12763printf %s "checking for $LD option to reload object files... " >&6; } 12764if test ${lt_cv_ld_reload_flag+y} 12765then : 12766 printf %s "(cached) " >&6 12767else $as_nop 12768 lt_cv_ld_reload_flag='-r' 12769fi 12770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12771printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12772reload_flag=$lt_cv_ld_reload_flag 12773case $reload_flag in 12774"" | " "*) ;; 12775*) reload_flag=" $reload_flag" ;; 12776esac 12777reload_cmds='$LD$reload_flag -o $output$reload_objs' 12778case $host_os in 12779 cygwin* | mingw* | pw32* | cegcc*) 12780 if test yes != "$GCC"; then 12781 reload_cmds=false 12782 fi 12783 ;; 12784 darwin*) 12785 if test yes = "$GCC"; then 12786 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12787 else 12788 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12789 fi 12790 ;; 12791esac 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801if test -n "$ac_tool_prefix"; then 12802 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12803set dummy ${ac_tool_prefix}objdump; ac_word=$2 12804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12805printf %s "checking for $ac_word... " >&6; } 12806if test ${ac_cv_prog_OBJDUMP+y} 12807then : 12808 printf %s "(cached) " >&6 12809else $as_nop 12810 if test -n "$OBJDUMP"; then 12811 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12812else 12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12814for as_dir in $PATH 12815do 12816 IFS=$as_save_IFS 12817 case $as_dir in #((( 12818 '') as_dir=./ ;; 12819 */) ;; 12820 *) as_dir=$as_dir/ ;; 12821 esac 12822 for ac_exec_ext in '' $ac_executable_extensions; do 12823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12824 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12826 break 2 12827 fi 12828done 12829 done 12830IFS=$as_save_IFS 12831 12832fi 12833fi 12834OBJDUMP=$ac_cv_prog_OBJDUMP 12835if test -n "$OBJDUMP"; then 12836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12837printf "%s\n" "$OBJDUMP" >&6; } 12838else 12839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12840printf "%s\n" "no" >&6; } 12841fi 12842 12843 12844fi 12845if test -z "$ac_cv_prog_OBJDUMP"; then 12846 ac_ct_OBJDUMP=$OBJDUMP 12847 # Extract the first word of "objdump", so it can be a program name with args. 12848set dummy objdump; ac_word=$2 12849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12850printf %s "checking for $ac_word... " >&6; } 12851if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12852then : 12853 printf %s "(cached) " >&6 12854else $as_nop 12855 if test -n "$ac_ct_OBJDUMP"; then 12856 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12857else 12858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12859for as_dir in $PATH 12860do 12861 IFS=$as_save_IFS 12862 case $as_dir in #((( 12863 '') as_dir=./ ;; 12864 */) ;; 12865 *) as_dir=$as_dir/ ;; 12866 esac 12867 for ac_exec_ext in '' $ac_executable_extensions; do 12868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12869 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12871 break 2 12872 fi 12873done 12874 done 12875IFS=$as_save_IFS 12876 12877fi 12878fi 12879ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12880if test -n "$ac_ct_OBJDUMP"; then 12881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12882printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12883else 12884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12885printf "%s\n" "no" >&6; } 12886fi 12887 12888 if test "x$ac_ct_OBJDUMP" = x; then 12889 OBJDUMP="false" 12890 else 12891 case $cross_compiling:$ac_tool_warned in 12892yes:) 12893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12894printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12895ac_tool_warned=yes ;; 12896esac 12897 OBJDUMP=$ac_ct_OBJDUMP 12898 fi 12899else 12900 OBJDUMP="$ac_cv_prog_OBJDUMP" 12901fi 12902 12903test -z "$OBJDUMP" && OBJDUMP=objdump 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12914printf %s "checking how to recognize dependent libraries... " >&6; } 12915if test ${lt_cv_deplibs_check_method+y} 12916then : 12917 printf %s "(cached) " >&6 12918else $as_nop 12919 lt_cv_file_magic_cmd='$MAGIC_CMD' 12920lt_cv_file_magic_test_file= 12921lt_cv_deplibs_check_method='unknown' 12922# Need to set the preceding variable on all platforms that support 12923# interlibrary dependencies. 12924# 'none' -- dependencies not supported. 12925# 'unknown' -- same as none, but documents that we really don't know. 12926# 'pass_all' -- all dependencies passed with no checks. 12927# 'test_compile' -- check by making test program. 12928# 'file_magic [[regex]]' -- check by looking for files in library path 12929# that responds to the $file_magic_cmd with a given extended regex. 12930# If you have 'file' or equivalent on your system and you're not sure 12931# whether 'pass_all' will *always* work, you probably want this one. 12932 12933case $host_os in 12934aix[4-9]*) 12935 lt_cv_deplibs_check_method=pass_all 12936 ;; 12937 12938beos*) 12939 lt_cv_deplibs_check_method=pass_all 12940 ;; 12941 12942bsdi[45]*) 12943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12944 lt_cv_file_magic_cmd='/usr/bin/file -L' 12945 lt_cv_file_magic_test_file=/shlib/libc.so 12946 ;; 12947 12948cygwin*) 12949 # func_win32_libid is a shell function defined in ltmain.sh 12950 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12951 lt_cv_file_magic_cmd='func_win32_libid' 12952 ;; 12953 12954mingw* | pw32*) 12955 # Base MSYS/MinGW do not provide the 'file' command needed by 12956 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12957 # unless we find 'file', for example because we are cross-compiling. 12958 if ( file / ) >/dev/null 2>&1; then 12959 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12960 lt_cv_file_magic_cmd='func_win32_libid' 12961 else 12962 # Keep this pattern in sync with the one in func_win32_libid. 12963 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12964 lt_cv_file_magic_cmd='$OBJDUMP -f' 12965 fi 12966 ;; 12967 12968cegcc*) 12969 # use the weaker test based on 'objdump'. See mingw*. 12970 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12971 lt_cv_file_magic_cmd='$OBJDUMP -f' 12972 ;; 12973 12974darwin* | rhapsody*) 12975 lt_cv_deplibs_check_method=pass_all 12976 ;; 12977 12978freebsd* | dragonfly*) 12979 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12980 case $host_cpu in 12981 i*86 ) 12982 # Not sure whether the presence of OpenBSD here was a mistake. 12983 # Let's accept both of them until this is cleared up. 12984 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12985 lt_cv_file_magic_cmd=/usr/bin/file 12986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12987 ;; 12988 esac 12989 else 12990 lt_cv_deplibs_check_method=pass_all 12991 fi 12992 ;; 12993 12994haiku*) 12995 lt_cv_deplibs_check_method=pass_all 12996 ;; 12997 12998hpux10.20* | hpux11*) 12999 lt_cv_file_magic_cmd=/usr/bin/file 13000 case $host_cpu in 13001 ia64*) 13002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 13003 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 13004 ;; 13005 hppa*64*) 13006 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]' 13007 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 13008 ;; 13009 *) 13010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 13011 lt_cv_file_magic_test_file=/usr/lib/libc.sl 13012 ;; 13013 esac 13014 ;; 13015 13016interix[3-9]*) 13017 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 13018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 13019 ;; 13020 13021irix5* | irix6* | nonstopux*) 13022 case $LD in 13023 *-32|*"-32 ") libmagic=32-bit;; 13024 *-n32|*"-n32 ") libmagic=N32;; 13025 *-64|*"-64 ") libmagic=64-bit;; 13026 *) libmagic=never-match;; 13027 esac 13028 lt_cv_deplibs_check_method=pass_all 13029 ;; 13030 13031# This must be glibc/ELF. 13032linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13033 lt_cv_deplibs_check_method=pass_all 13034 ;; 13035 13036netbsd* | netbsdelf*-gnu) 13037 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13039 else 13040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 13041 fi 13042 ;; 13043 13044newos6*) 13045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 13046 lt_cv_file_magic_cmd=/usr/bin/file 13047 lt_cv_file_magic_test_file=/usr/lib/libnls.so 13048 ;; 13049 13050*nto* | *qnx*) 13051 lt_cv_deplibs_check_method=pass_all 13052 ;; 13053 13054openbsd* | bitrig*) 13055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 13057 else 13058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13059 fi 13060 ;; 13061 13062osf3* | osf4* | osf5*) 13063 lt_cv_deplibs_check_method=pass_all 13064 ;; 13065 13066rdos*) 13067 lt_cv_deplibs_check_method=pass_all 13068 ;; 13069 13070solaris*) 13071 lt_cv_deplibs_check_method=pass_all 13072 ;; 13073 13074sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13075 lt_cv_deplibs_check_method=pass_all 13076 ;; 13077 13078sysv4 | sysv4.3*) 13079 case $host_vendor in 13080 motorola) 13081 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]' 13082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13083 ;; 13084 ncr) 13085 lt_cv_deplibs_check_method=pass_all 13086 ;; 13087 sequent) 13088 lt_cv_file_magic_cmd='/bin/file' 13089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13090 ;; 13091 sni) 13092 lt_cv_file_magic_cmd='/bin/file' 13093 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13094 lt_cv_file_magic_test_file=/lib/libc.so 13095 ;; 13096 siemens) 13097 lt_cv_deplibs_check_method=pass_all 13098 ;; 13099 pc) 13100 lt_cv_deplibs_check_method=pass_all 13101 ;; 13102 esac 13103 ;; 13104 13105tpf*) 13106 lt_cv_deplibs_check_method=pass_all 13107 ;; 13108os2*) 13109 lt_cv_deplibs_check_method=pass_all 13110 ;; 13111esac 13112 13113fi 13114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13115printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 13116 13117file_magic_glob= 13118want_nocaseglob=no 13119if test "$build" = "$host"; then 13120 case $host_os in 13121 mingw* | pw32*) 13122 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 13123 want_nocaseglob=yes 13124 else 13125 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 13126 fi 13127 ;; 13128 esac 13129fi 13130 13131file_magic_cmd=$lt_cv_file_magic_cmd 13132deplibs_check_method=$lt_cv_deplibs_check_method 13133test -z "$deplibs_check_method" && deplibs_check_method=unknown 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156if test -n "$ac_tool_prefix"; then 13157 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13158set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13160printf %s "checking for $ac_word... " >&6; } 13161if test ${ac_cv_prog_DLLTOOL+y} 13162then : 13163 printf %s "(cached) " >&6 13164else $as_nop 13165 if test -n "$DLLTOOL"; then 13166 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13167else 13168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13169for as_dir in $PATH 13170do 13171 IFS=$as_save_IFS 13172 case $as_dir in #((( 13173 '') as_dir=./ ;; 13174 */) ;; 13175 *) as_dir=$as_dir/ ;; 13176 esac 13177 for ac_exec_ext in '' $ac_executable_extensions; do 13178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13179 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13181 break 2 13182 fi 13183done 13184 done 13185IFS=$as_save_IFS 13186 13187fi 13188fi 13189DLLTOOL=$ac_cv_prog_DLLTOOL 13190if test -n "$DLLTOOL"; then 13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13192printf "%s\n" "$DLLTOOL" >&6; } 13193else 13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13195printf "%s\n" "no" >&6; } 13196fi 13197 13198 13199fi 13200if test -z "$ac_cv_prog_DLLTOOL"; then 13201 ac_ct_DLLTOOL=$DLLTOOL 13202 # Extract the first word of "dlltool", so it can be a program name with args. 13203set dummy dlltool; ac_word=$2 13204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13205printf %s "checking for $ac_word... " >&6; } 13206if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 13207then : 13208 printf %s "(cached) " >&6 13209else $as_nop 13210 if test -n "$ac_ct_DLLTOOL"; then 13211 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13212else 13213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13214for as_dir in $PATH 13215do 13216 IFS=$as_save_IFS 13217 case $as_dir in #((( 13218 '') as_dir=./ ;; 13219 */) ;; 13220 *) as_dir=$as_dir/ ;; 13221 esac 13222 for ac_exec_ext in '' $ac_executable_extensions; do 13223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13224 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13226 break 2 13227 fi 13228done 13229 done 13230IFS=$as_save_IFS 13231 13232fi 13233fi 13234ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13235if test -n "$ac_ct_DLLTOOL"; then 13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13237printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 13238else 13239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13240printf "%s\n" "no" >&6; } 13241fi 13242 13243 if test "x$ac_ct_DLLTOOL" = x; then 13244 DLLTOOL="false" 13245 else 13246 case $cross_compiling:$ac_tool_warned in 13247yes:) 13248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13249printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13250ac_tool_warned=yes ;; 13251esac 13252 DLLTOOL=$ac_ct_DLLTOOL 13253 fi 13254else 13255 DLLTOOL="$ac_cv_prog_DLLTOOL" 13256fi 13257 13258test -z "$DLLTOOL" && DLLTOOL=dlltool 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13270printf %s "checking how to associate runtime and link libraries... " >&6; } 13271if test ${lt_cv_sharedlib_from_linklib_cmd+y} 13272then : 13273 printf %s "(cached) " >&6 13274else $as_nop 13275 lt_cv_sharedlib_from_linklib_cmd='unknown' 13276 13277case $host_os in 13278cygwin* | mingw* | pw32* | cegcc*) 13279 # two different shell functions defined in ltmain.sh; 13280 # decide which one to use based on capabilities of $DLLTOOL 13281 case `$DLLTOOL --help 2>&1` in 13282 *--identify-strict*) 13283 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13284 ;; 13285 *) 13286 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13287 ;; 13288 esac 13289 ;; 13290*) 13291 # fallback: assume linklib IS sharedlib 13292 lt_cv_sharedlib_from_linklib_cmd=$ECHO 13293 ;; 13294esac 13295 13296fi 13297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13298printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13299sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13300test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13301 13302 13303 13304 13305 13306 13307 13308if test -n "$ac_tool_prefix"; then 13309 for ac_prog in ar 13310 do 13311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13312set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13314printf %s "checking for $ac_word... " >&6; } 13315if test ${ac_cv_prog_AR+y} 13316then : 13317 printf %s "(cached) " >&6 13318else $as_nop 13319 if test -n "$AR"; then 13320 ac_cv_prog_AR="$AR" # Let the user override the test. 13321else 13322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13323for as_dir in $PATH 13324do 13325 IFS=$as_save_IFS 13326 case $as_dir in #((( 13327 '') as_dir=./ ;; 13328 */) ;; 13329 *) as_dir=$as_dir/ ;; 13330 esac 13331 for ac_exec_ext in '' $ac_executable_extensions; do 13332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13333 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13335 break 2 13336 fi 13337done 13338 done 13339IFS=$as_save_IFS 13340 13341fi 13342fi 13343AR=$ac_cv_prog_AR 13344if test -n "$AR"; then 13345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13346printf "%s\n" "$AR" >&6; } 13347else 13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13349printf "%s\n" "no" >&6; } 13350fi 13351 13352 13353 test -n "$AR" && break 13354 done 13355fi 13356if test -z "$AR"; then 13357 ac_ct_AR=$AR 13358 for ac_prog in ar 13359do 13360 # Extract the first word of "$ac_prog", so it can be a program name with args. 13361set dummy $ac_prog; ac_word=$2 13362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13363printf %s "checking for $ac_word... " >&6; } 13364if test ${ac_cv_prog_ac_ct_AR+y} 13365then : 13366 printf %s "(cached) " >&6 13367else $as_nop 13368 if test -n "$ac_ct_AR"; then 13369 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13370else 13371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13372for as_dir in $PATH 13373do 13374 IFS=$as_save_IFS 13375 case $as_dir in #((( 13376 '') as_dir=./ ;; 13377 */) ;; 13378 *) as_dir=$as_dir/ ;; 13379 esac 13380 for ac_exec_ext in '' $ac_executable_extensions; do 13381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13382 ac_cv_prog_ac_ct_AR="$ac_prog" 13383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13384 break 2 13385 fi 13386done 13387 done 13388IFS=$as_save_IFS 13389 13390fi 13391fi 13392ac_ct_AR=$ac_cv_prog_ac_ct_AR 13393if test -n "$ac_ct_AR"; then 13394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13395printf "%s\n" "$ac_ct_AR" >&6; } 13396else 13397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13398printf "%s\n" "no" >&6; } 13399fi 13400 13401 13402 test -n "$ac_ct_AR" && break 13403done 13404 13405 if test "x$ac_ct_AR" = x; then 13406 AR="false" 13407 else 13408 case $cross_compiling:$ac_tool_warned in 13409yes:) 13410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13411printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13412ac_tool_warned=yes ;; 13413esac 13414 AR=$ac_ct_AR 13415 fi 13416fi 13417 13418: ${AR=ar} 13419: ${AR_FLAGS=cr} 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13432printf %s "checking for archiver @FILE support... " >&6; } 13433if test ${lt_cv_ar_at_file+y} 13434then : 13435 printf %s "(cached) " >&6 13436else $as_nop 13437 lt_cv_ar_at_file=no 13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13439/* end confdefs.h. */ 13440 13441int 13442main (void) 13443{ 13444 13445 ; 13446 return 0; 13447} 13448_ACEOF 13449if ac_fn_c_try_compile "$LINENO" 13450then : 13451 echo conftest.$ac_objext > conftest.lst 13452 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13454 (eval $lt_ar_try) 2>&5 13455 ac_status=$? 13456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13457 test $ac_status = 0; } 13458 if test 0 -eq "$ac_status"; then 13459 # Ensure the archiver fails upon bogus file names. 13460 rm -f conftest.$ac_objext libconftest.a 13461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13462 (eval $lt_ar_try) 2>&5 13463 ac_status=$? 13464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13465 test $ac_status = 0; } 13466 if test 0 -ne "$ac_status"; then 13467 lt_cv_ar_at_file=@ 13468 fi 13469 fi 13470 rm -f conftest.* libconftest.a 13471 13472fi 13473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13474 13475fi 13476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13477printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13478 13479if test no = "$lt_cv_ar_at_file"; then 13480 archiver_list_spec= 13481else 13482 archiver_list_spec=$lt_cv_ar_at_file 13483fi 13484 13485 13486 13487 13488 13489 13490 13491if test -n "$ac_tool_prefix"; then 13492 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13493set dummy ${ac_tool_prefix}strip; ac_word=$2 13494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13495printf %s "checking for $ac_word... " >&6; } 13496if test ${ac_cv_prog_STRIP+y} 13497then : 13498 printf %s "(cached) " >&6 13499else $as_nop 13500 if test -n "$STRIP"; then 13501 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13502else 13503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13504for as_dir in $PATH 13505do 13506 IFS=$as_save_IFS 13507 case $as_dir in #((( 13508 '') as_dir=./ ;; 13509 */) ;; 13510 *) as_dir=$as_dir/ ;; 13511 esac 13512 for ac_exec_ext in '' $ac_executable_extensions; do 13513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13514 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13516 break 2 13517 fi 13518done 13519 done 13520IFS=$as_save_IFS 13521 13522fi 13523fi 13524STRIP=$ac_cv_prog_STRIP 13525if test -n "$STRIP"; then 13526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13527printf "%s\n" "$STRIP" >&6; } 13528else 13529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13530printf "%s\n" "no" >&6; } 13531fi 13532 13533 13534fi 13535if test -z "$ac_cv_prog_STRIP"; then 13536 ac_ct_STRIP=$STRIP 13537 # Extract the first word of "strip", so it can be a program name with args. 13538set dummy strip; ac_word=$2 13539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13540printf %s "checking for $ac_word... " >&6; } 13541if test ${ac_cv_prog_ac_ct_STRIP+y} 13542then : 13543 printf %s "(cached) " >&6 13544else $as_nop 13545 if test -n "$ac_ct_STRIP"; then 13546 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13547else 13548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13549for as_dir in $PATH 13550do 13551 IFS=$as_save_IFS 13552 case $as_dir in #((( 13553 '') as_dir=./ ;; 13554 */) ;; 13555 *) as_dir=$as_dir/ ;; 13556 esac 13557 for ac_exec_ext in '' $ac_executable_extensions; do 13558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13559 ac_cv_prog_ac_ct_STRIP="strip" 13560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13561 break 2 13562 fi 13563done 13564 done 13565IFS=$as_save_IFS 13566 13567fi 13568fi 13569ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13570if test -n "$ac_ct_STRIP"; then 13571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13572printf "%s\n" "$ac_ct_STRIP" >&6; } 13573else 13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13575printf "%s\n" "no" >&6; } 13576fi 13577 13578 if test "x$ac_ct_STRIP" = x; then 13579 STRIP=":" 13580 else 13581 case $cross_compiling:$ac_tool_warned in 13582yes:) 13583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13584printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13585ac_tool_warned=yes ;; 13586esac 13587 STRIP=$ac_ct_STRIP 13588 fi 13589else 13590 STRIP="$ac_cv_prog_STRIP" 13591fi 13592 13593test -z "$STRIP" && STRIP=: 13594 13595 13596 13597 13598 13599 13600if test -n "$ac_tool_prefix"; then 13601 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13602set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13604printf %s "checking for $ac_word... " >&6; } 13605if test ${ac_cv_prog_RANLIB+y} 13606then : 13607 printf %s "(cached) " >&6 13608else $as_nop 13609 if test -n "$RANLIB"; then 13610 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13611else 13612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13613for as_dir in $PATH 13614do 13615 IFS=$as_save_IFS 13616 case $as_dir in #((( 13617 '') as_dir=./ ;; 13618 */) ;; 13619 *) as_dir=$as_dir/ ;; 13620 esac 13621 for ac_exec_ext in '' $ac_executable_extensions; do 13622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13623 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13625 break 2 13626 fi 13627done 13628 done 13629IFS=$as_save_IFS 13630 13631fi 13632fi 13633RANLIB=$ac_cv_prog_RANLIB 13634if test -n "$RANLIB"; then 13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13636printf "%s\n" "$RANLIB" >&6; } 13637else 13638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13639printf "%s\n" "no" >&6; } 13640fi 13641 13642 13643fi 13644if test -z "$ac_cv_prog_RANLIB"; then 13645 ac_ct_RANLIB=$RANLIB 13646 # Extract the first word of "ranlib", so it can be a program name with args. 13647set dummy ranlib; ac_word=$2 13648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13649printf %s "checking for $ac_word... " >&6; } 13650if test ${ac_cv_prog_ac_ct_RANLIB+y} 13651then : 13652 printf %s "(cached) " >&6 13653else $as_nop 13654 if test -n "$ac_ct_RANLIB"; then 13655 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13656else 13657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13658for as_dir in $PATH 13659do 13660 IFS=$as_save_IFS 13661 case $as_dir in #((( 13662 '') as_dir=./ ;; 13663 */) ;; 13664 *) as_dir=$as_dir/ ;; 13665 esac 13666 for ac_exec_ext in '' $ac_executable_extensions; do 13667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13668 ac_cv_prog_ac_ct_RANLIB="ranlib" 13669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13670 break 2 13671 fi 13672done 13673 done 13674IFS=$as_save_IFS 13675 13676fi 13677fi 13678ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13679if test -n "$ac_ct_RANLIB"; then 13680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13681printf "%s\n" "$ac_ct_RANLIB" >&6; } 13682else 13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13684printf "%s\n" "no" >&6; } 13685fi 13686 13687 if test "x$ac_ct_RANLIB" = x; then 13688 RANLIB=":" 13689 else 13690 case $cross_compiling:$ac_tool_warned in 13691yes:) 13692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13693printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13694ac_tool_warned=yes ;; 13695esac 13696 RANLIB=$ac_ct_RANLIB 13697 fi 13698else 13699 RANLIB="$ac_cv_prog_RANLIB" 13700fi 13701 13702test -z "$RANLIB" && RANLIB=: 13703 13704 13705 13706 13707 13708 13709# Determine commands to create old-style static archives. 13710old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13711old_postinstall_cmds='chmod 644 $oldlib' 13712old_postuninstall_cmds= 13713 13714if test -n "$RANLIB"; then 13715 case $host_os in 13716 bitrig* | openbsd*) 13717 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13718 ;; 13719 *) 13720 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13721 ;; 13722 esac 13723 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13724fi 13725 13726case $host_os in 13727 darwin*) 13728 lock_old_archive_extraction=yes ;; 13729 *) 13730 lock_old_archive_extraction=no ;; 13731esac 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771# If no C compiler was specified, use CC. 13772LTCC=${LTCC-"$CC"} 13773 13774# If no C compiler flags were specified, use CFLAGS. 13775LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13776 13777# Allow CC to be a program name with arguments. 13778compiler=$CC 13779 13780 13781# Check for command to grab the raw symbol name followed by C symbol from nm. 13782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13783printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13784if test ${lt_cv_sys_global_symbol_pipe+y} 13785then : 13786 printf %s "(cached) " >&6 13787else $as_nop 13788 13789# These are sane defaults that work on at least a few old systems. 13790# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13791 13792# Character class describing NM global symbol codes. 13793symcode='[BCDEGRST]' 13794 13795# Regexp to match symbols that can be accessed directly from C. 13796sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13797 13798# Define system-specific variables. 13799case $host_os in 13800aix*) 13801 symcode='[BCDT]' 13802 ;; 13803cygwin* | mingw* | pw32* | cegcc*) 13804 symcode='[ABCDGISTW]' 13805 ;; 13806hpux*) 13807 if test ia64 = "$host_cpu"; then 13808 symcode='[ABCDEGRST]' 13809 fi 13810 ;; 13811irix* | nonstopux*) 13812 symcode='[BCDEGRST]' 13813 ;; 13814osf*) 13815 symcode='[BCDEGQRST]' 13816 ;; 13817solaris*) 13818 symcode='[BDRT]' 13819 ;; 13820sco3.2v5*) 13821 symcode='[DT]' 13822 ;; 13823sysv4.2uw2*) 13824 symcode='[DT]' 13825 ;; 13826sysv5* | sco5v6* | unixware* | OpenUNIX*) 13827 symcode='[ABDT]' 13828 ;; 13829sysv4) 13830 symcode='[DFNSTU]' 13831 ;; 13832esac 13833 13834# If we're using GNU nm, then use its standard symbol codes. 13835case `$NM -V 2>&1` in 13836*GNU* | *'with BFD'*) 13837 symcode='[ABCDGIRSTW]' ;; 13838esac 13839 13840if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13841 # Gets list of data symbols to import. 13842 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 13843 # Adjust the below global symbol transforms to fixup imported variables. 13844 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13845 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13846 lt_c_name_lib_hook="\ 13847 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13848 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13849else 13850 # Disable hooks by default. 13851 lt_cv_sys_global_symbol_to_import= 13852 lt_cdecl_hook= 13853 lt_c_name_hook= 13854 lt_c_name_lib_hook= 13855fi 13856 13857# Transform an extracted symbol line into a proper C declaration. 13858# Some systems (esp. on ia64) link data and code symbols differently, 13859# so use this general approach. 13860lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 13861$lt_cdecl_hook\ 13862" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13863" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13864 13865# Transform an extracted symbol line into symbol name and symbol address 13866lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 13867$lt_c_name_hook\ 13868" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13869" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13870 13871# Transform an extracted symbol line into symbol name with lib prefix and 13872# symbol address. 13873lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 13874$lt_c_name_lib_hook\ 13875" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13876" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13877" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13878 13879# Handle CRLF in mingw tool chain 13880opt_cr= 13881case $build_os in 13882mingw*) 13883 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13884 ;; 13885esac 13886 13887# Try without a prefix underscore, then with it. 13888for ac_symprfx in "" "_"; do 13889 13890 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13891 symxfrm="\\1 $ac_symprfx\\2 \\2" 13892 13893 # Write the raw and C identifiers. 13894 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13895 # Fake it for dumpbin and say T for any non-static function, 13896 # D for any global variable and I for any imported variable. 13897 # Also find C++ and __fastcall symbols from MSVC++, 13898 # which start with @ or ?. 13899 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13900" {last_section=section; section=\$ 3};"\ 13901" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13902" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13903" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13904" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13905" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13906" \$ 0!~/External *\|/{next};"\ 13907" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13908" {if(hide[section]) next};"\ 13909" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13910" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13911" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13912" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13913" ' prfx=^$ac_symprfx" 13914 else 13915 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13916 fi 13917 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13918 13919 # Check to see that the pipe works correctly. 13920 pipe_works=no 13921 13922 rm -f conftest* 13923 cat > conftest.$ac_ext <<_LT_EOF 13924#ifdef __cplusplus 13925extern "C" { 13926#endif 13927char nm_test_var; 13928void nm_test_func(void); 13929void nm_test_func(void){} 13930#ifdef __cplusplus 13931} 13932#endif 13933int main(){nm_test_var='a';nm_test_func();return(0);} 13934_LT_EOF 13935 13936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13937 (eval $ac_compile) 2>&5 13938 ac_status=$? 13939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13940 test $ac_status = 0; }; then 13941 # Now try to grab the symbols. 13942 nlist=conftest.nm 13943 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 13944 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 13945 # Try sorting and uniquifying the output. 13946 if sort "$nlist" | uniq > "$nlist"T; then 13947 mv -f "$nlist"T "$nlist" 13948 else 13949 rm -f "$nlist"T 13950 fi 13951 13952 # Make sure that we snagged all the symbols we need. 13953 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13954 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13955 cat <<_LT_EOF > conftest.$ac_ext 13956/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13957#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13958/* DATA imports from DLLs on WIN32 can't be const, because runtime 13959 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13960# define LT_DLSYM_CONST 13961#elif defined __osf__ 13962/* This system does not cope well with relocations in const data. */ 13963# define LT_DLSYM_CONST 13964#else 13965# define LT_DLSYM_CONST const 13966#endif 13967 13968#ifdef __cplusplus 13969extern "C" { 13970#endif 13971 13972_LT_EOF 13973 # Now generate the symbol file. 13974 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13975 13976 cat <<_LT_EOF >> conftest.$ac_ext 13977 13978/* The mapping between symbol names and symbols. */ 13979LT_DLSYM_CONST struct { 13980 const char *name; 13981 void *address; 13982} 13983lt__PROGRAM__LTX_preloaded_symbols[] = 13984{ 13985 { "@PROGRAM@", (void *) 0 }, 13986_LT_EOF 13987 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13988 cat <<\_LT_EOF >> conftest.$ac_ext 13989 {0, (void *) 0} 13990}; 13991 13992/* This works around a problem in FreeBSD linker */ 13993#ifdef FREEBSD_WORKAROUND 13994static const void *lt_preloaded_setup() { 13995 return lt__PROGRAM__LTX_preloaded_symbols; 13996} 13997#endif 13998 13999#ifdef __cplusplus 14000} 14001#endif 14002_LT_EOF 14003 # Now try linking the two files. 14004 mv conftest.$ac_objext conftstm.$ac_objext 14005 lt_globsym_save_LIBS=$LIBS 14006 lt_globsym_save_CFLAGS=$CFLAGS 14007 LIBS=conftstm.$ac_objext 14008 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 14009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14010 (eval $ac_link) 2>&5 14011 ac_status=$? 14012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14013 test $ac_status = 0; } && test -s conftest$ac_exeext; then 14014 pipe_works=yes 14015 fi 14016 LIBS=$lt_globsym_save_LIBS 14017 CFLAGS=$lt_globsym_save_CFLAGS 14018 else 14019 echo "cannot find nm_test_func in $nlist" >&5 14020 fi 14021 else 14022 echo "cannot find nm_test_var in $nlist" >&5 14023 fi 14024 else 14025 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 14026 fi 14027 else 14028 echo "$progname: failed program was:" >&5 14029 cat conftest.$ac_ext >&5 14030 fi 14031 rm -rf conftest* conftst* 14032 14033 # Do not use the global_symbol_pipe unless it works. 14034 if test yes = "$pipe_works"; then 14035 break 14036 else 14037 lt_cv_sys_global_symbol_pipe= 14038 fi 14039done 14040 14041fi 14042 14043if test -z "$lt_cv_sys_global_symbol_pipe"; then 14044 lt_cv_sys_global_symbol_to_cdecl= 14045fi 14046if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 14047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14048printf "%s\n" "failed" >&6; } 14049else 14050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14051printf "%s\n" "ok" >&6; } 14052fi 14053 14054# Response file support. 14055if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14056 nm_file_list_spec='@' 14057elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 14058 nm_file_list_spec='@' 14059fi 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14098printf %s "checking for sysroot... " >&6; } 14099 14100# Check whether --with-sysroot was given. 14101if test ${with_sysroot+y} 14102then : 14103 withval=$with_sysroot; 14104else $as_nop 14105 with_sysroot=no 14106fi 14107 14108 14109lt_sysroot= 14110case $with_sysroot in #( 14111 yes) 14112 if test yes = "$GCC"; then 14113 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 14114 fi 14115 ;; #( 14116 /*) 14117 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 14118 ;; #( 14119 no|'') 14120 ;; #( 14121 *) 14122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 14123printf "%s\n" "$with_sysroot" >&6; } 14124 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 14125 ;; 14126esac 14127 14128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 14129printf "%s\n" "${lt_sysroot:-no}" >&6; } 14130 14131 14132 14133 14134 14135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 14136printf %s "checking for a working dd... " >&6; } 14137if test ${ac_cv_path_lt_DD+y} 14138then : 14139 printf %s "(cached) " >&6 14140else $as_nop 14141 printf 0123456789abcdef0123456789abcdef >conftest.i 14142cat conftest.i conftest.i >conftest2.i 14143: ${lt_DD:=$DD} 14144if test -z "$lt_DD"; then 14145 ac_path_lt_DD_found=false 14146 # Loop through the user's path and test for each of PROGNAME-LIST 14147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14148for as_dir in $PATH 14149do 14150 IFS=$as_save_IFS 14151 case $as_dir in #((( 14152 '') as_dir=./ ;; 14153 */) ;; 14154 *) as_dir=$as_dir/ ;; 14155 esac 14156 for ac_prog in dd 14157 do 14158 for ac_exec_ext in '' $ac_executable_extensions; do 14159 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 14160 as_fn_executable_p "$ac_path_lt_DD" || continue 14161if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14162 cmp -s conftest.i conftest.out \ 14163 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 14164fi 14165 $ac_path_lt_DD_found && break 3 14166 done 14167 done 14168 done 14169IFS=$as_save_IFS 14170 if test -z "$ac_cv_path_lt_DD"; then 14171 : 14172 fi 14173else 14174 ac_cv_path_lt_DD=$lt_DD 14175fi 14176 14177rm -f conftest.i conftest2.i conftest.out 14178fi 14179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 14180printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 14181 14182 14183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 14184printf %s "checking how to truncate binary pipes... " >&6; } 14185if test ${lt_cv_truncate_bin+y} 14186then : 14187 printf %s "(cached) " >&6 14188else $as_nop 14189 printf 0123456789abcdef0123456789abcdef >conftest.i 14190cat conftest.i conftest.i >conftest2.i 14191lt_cv_truncate_bin= 14192if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14193 cmp -s conftest.i conftest.out \ 14194 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 14195fi 14196rm -f conftest.i conftest2.i conftest.out 14197test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 14198fi 14199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 14200printf "%s\n" "$lt_cv_truncate_bin" >&6; } 14201 14202 14203 14204 14205 14206 14207 14208# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14209func_cc_basename () 14210{ 14211 for cc_temp in $*""; do 14212 case $cc_temp in 14213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14215 \-*) ;; 14216 *) break;; 14217 esac 14218 done 14219 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14220} 14221 14222# Check whether --enable-libtool-lock was given. 14223if test ${enable_libtool_lock+y} 14224then : 14225 enableval=$enable_libtool_lock; 14226fi 14227 14228test no = "$enable_libtool_lock" || enable_libtool_lock=yes 14229 14230# Some flags need to be propagated to the compiler or linker for good 14231# libtool support. 14232case $host in 14233ia64-*-hpux*) 14234 # Find out what ABI is being produced by ac_compile, and set mode 14235 # options accordingly. 14236 echo 'int i;' > conftest.$ac_ext 14237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14238 (eval $ac_compile) 2>&5 14239 ac_status=$? 14240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14241 test $ac_status = 0; }; then 14242 case `/usr/bin/file conftest.$ac_objext` in 14243 *ELF-32*) 14244 HPUX_IA64_MODE=32 14245 ;; 14246 *ELF-64*) 14247 HPUX_IA64_MODE=64 14248 ;; 14249 esac 14250 fi 14251 rm -rf conftest* 14252 ;; 14253*-*-irix6*) 14254 # Find out what ABI is being produced by ac_compile, and set linker 14255 # options accordingly. 14256 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14258 (eval $ac_compile) 2>&5 14259 ac_status=$? 14260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14261 test $ac_status = 0; }; then 14262 if test yes = "$lt_cv_prog_gnu_ld"; then 14263 case `/usr/bin/file conftest.$ac_objext` in 14264 *32-bit*) 14265 LD="${LD-ld} -melf32bsmip" 14266 ;; 14267 *N32*) 14268 LD="${LD-ld} -melf32bmipn32" 14269 ;; 14270 *64-bit*) 14271 LD="${LD-ld} -melf64bmip" 14272 ;; 14273 esac 14274 else 14275 case `/usr/bin/file conftest.$ac_objext` in 14276 *32-bit*) 14277 LD="${LD-ld} -32" 14278 ;; 14279 *N32*) 14280 LD="${LD-ld} -n32" 14281 ;; 14282 *64-bit*) 14283 LD="${LD-ld} -64" 14284 ;; 14285 esac 14286 fi 14287 fi 14288 rm -rf conftest* 14289 ;; 14290 14291mips64*-*linux*) 14292 # Find out what ABI is being produced by ac_compile, and set linker 14293 # options accordingly. 14294 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14296 (eval $ac_compile) 2>&5 14297 ac_status=$? 14298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14299 test $ac_status = 0; }; then 14300 emul=elf 14301 case `/usr/bin/file conftest.$ac_objext` in 14302 *32-bit*) 14303 emul="${emul}32" 14304 ;; 14305 *64-bit*) 14306 emul="${emul}64" 14307 ;; 14308 esac 14309 case `/usr/bin/file conftest.$ac_objext` in 14310 *MSB*) 14311 emul="${emul}btsmip" 14312 ;; 14313 *LSB*) 14314 emul="${emul}ltsmip" 14315 ;; 14316 esac 14317 case `/usr/bin/file conftest.$ac_objext` in 14318 *N32*) 14319 emul="${emul}n32" 14320 ;; 14321 esac 14322 LD="${LD-ld} -m $emul" 14323 fi 14324 rm -rf conftest* 14325 ;; 14326 14327x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14328s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14329 # Find out what ABI is being produced by ac_compile, and set linker 14330 # options accordingly. Note that the listed cases only cover the 14331 # situations where additional linker options are needed (such as when 14332 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14333 # vice versa); the common cases where no linker options are needed do 14334 # not appear in the list. 14335 echo 'int i;' > conftest.$ac_ext 14336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14337 (eval $ac_compile) 2>&5 14338 ac_status=$? 14339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14340 test $ac_status = 0; }; then 14341 case `/usr/bin/file conftest.o` in 14342 *32-bit*) 14343 case $host in 14344 x86_64-*kfreebsd*-gnu) 14345 LD="${LD-ld} -m elf_i386_fbsd" 14346 ;; 14347 x86_64-*linux*) 14348 case `/usr/bin/file conftest.o` in 14349 *x86-64*) 14350 LD="${LD-ld} -m elf32_x86_64" 14351 ;; 14352 *) 14353 LD="${LD-ld} -m elf_i386" 14354 ;; 14355 esac 14356 ;; 14357 powerpc64le-*linux*) 14358 LD="${LD-ld} -m elf32lppclinux" 14359 ;; 14360 powerpc64-*linux*) 14361 LD="${LD-ld} -m elf32ppclinux" 14362 ;; 14363 s390x-*linux*) 14364 LD="${LD-ld} -m elf_s390" 14365 ;; 14366 sparc64-*linux*) 14367 LD="${LD-ld} -m elf32_sparc" 14368 ;; 14369 esac 14370 ;; 14371 *64-bit*) 14372 case $host in 14373 x86_64-*kfreebsd*-gnu) 14374 LD="${LD-ld} -m elf_x86_64_fbsd" 14375 ;; 14376 x86_64-*linux*) 14377 LD="${LD-ld} -m elf_x86_64" 14378 ;; 14379 powerpcle-*linux*) 14380 LD="${LD-ld} -m elf64lppc" 14381 ;; 14382 powerpc-*linux*) 14383 LD="${LD-ld} -m elf64ppc" 14384 ;; 14385 s390*-*linux*|s390*-*tpf*) 14386 LD="${LD-ld} -m elf64_s390" 14387 ;; 14388 sparc*-*linux*) 14389 LD="${LD-ld} -m elf64_sparc" 14390 ;; 14391 esac 14392 ;; 14393 esac 14394 fi 14395 rm -rf conftest* 14396 ;; 14397 14398*-*-sco3.2v5*) 14399 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14400 SAVE_CFLAGS=$CFLAGS 14401 CFLAGS="$CFLAGS -belf" 14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14403printf %s "checking whether the C compiler needs -belf... " >&6; } 14404if test ${lt_cv_cc_needs_belf+y} 14405then : 14406 printf %s "(cached) " >&6 14407else $as_nop 14408 ac_ext=c 14409ac_cpp='$CPP $CPPFLAGS' 14410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14412ac_compiler_gnu=$ac_cv_c_compiler_gnu 14413 14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14415/* end confdefs.h. */ 14416 14417int 14418main (void) 14419{ 14420 14421 ; 14422 return 0; 14423} 14424_ACEOF 14425if ac_fn_c_try_link "$LINENO" 14426then : 14427 lt_cv_cc_needs_belf=yes 14428else $as_nop 14429 lt_cv_cc_needs_belf=no 14430fi 14431rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14432 conftest$ac_exeext conftest.$ac_ext 14433 ac_ext=c 14434ac_cpp='$CPP $CPPFLAGS' 14435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14437ac_compiler_gnu=$ac_cv_c_compiler_gnu 14438 14439fi 14440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14441printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14442 if test yes != "$lt_cv_cc_needs_belf"; then 14443 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14444 CFLAGS=$SAVE_CFLAGS 14445 fi 14446 ;; 14447*-*solaris*) 14448 # Find out what ABI is being produced by ac_compile, and set linker 14449 # options accordingly. 14450 echo 'int i;' > conftest.$ac_ext 14451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14452 (eval $ac_compile) 2>&5 14453 ac_status=$? 14454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14455 test $ac_status = 0; }; then 14456 case `/usr/bin/file conftest.o` in 14457 *64-bit*) 14458 case $lt_cv_prog_gnu_ld in 14459 yes*) 14460 case $host in 14461 i?86-*-solaris*|x86_64-*-solaris*) 14462 LD="${LD-ld} -m elf_x86_64" 14463 ;; 14464 sparc*-*-solaris*) 14465 LD="${LD-ld} -m elf64_sparc" 14466 ;; 14467 esac 14468 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14469 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14470 LD=${LD-ld}_sol2 14471 fi 14472 ;; 14473 *) 14474 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14475 LD="${LD-ld} -64" 14476 fi 14477 ;; 14478 esac 14479 ;; 14480 esac 14481 fi 14482 rm -rf conftest* 14483 ;; 14484esac 14485 14486need_locks=$enable_libtool_lock 14487 14488if test -n "$ac_tool_prefix"; then 14489 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14490set dummy ${ac_tool_prefix}mt; ac_word=$2 14491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14492printf %s "checking for $ac_word... " >&6; } 14493if test ${ac_cv_prog_MANIFEST_TOOL+y} 14494then : 14495 printf %s "(cached) " >&6 14496else $as_nop 14497 if test -n "$MANIFEST_TOOL"; then 14498 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14499else 14500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14501for as_dir in $PATH 14502do 14503 IFS=$as_save_IFS 14504 case $as_dir in #((( 14505 '') as_dir=./ ;; 14506 */) ;; 14507 *) as_dir=$as_dir/ ;; 14508 esac 14509 for ac_exec_ext in '' $ac_executable_extensions; do 14510 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14511 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14513 break 2 14514 fi 14515done 14516 done 14517IFS=$as_save_IFS 14518 14519fi 14520fi 14521MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14522if test -n "$MANIFEST_TOOL"; then 14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14524printf "%s\n" "$MANIFEST_TOOL" >&6; } 14525else 14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14527printf "%s\n" "no" >&6; } 14528fi 14529 14530 14531fi 14532if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14533 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14534 # Extract the first word of "mt", so it can be a program name with args. 14535set dummy mt; ac_word=$2 14536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14537printf %s "checking for $ac_word... " >&6; } 14538if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14539then : 14540 printf %s "(cached) " >&6 14541else $as_nop 14542 if test -n "$ac_ct_MANIFEST_TOOL"; then 14543 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14544else 14545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14546for as_dir in $PATH 14547do 14548 IFS=$as_save_IFS 14549 case $as_dir in #((( 14550 '') as_dir=./ ;; 14551 */) ;; 14552 *) as_dir=$as_dir/ ;; 14553 esac 14554 for ac_exec_ext in '' $ac_executable_extensions; do 14555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14556 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14558 break 2 14559 fi 14560done 14561 done 14562IFS=$as_save_IFS 14563 14564fi 14565fi 14566ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14567if test -n "$ac_ct_MANIFEST_TOOL"; then 14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14569printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14570else 14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14572printf "%s\n" "no" >&6; } 14573fi 14574 14575 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14576 MANIFEST_TOOL=":" 14577 else 14578 case $cross_compiling:$ac_tool_warned in 14579yes:) 14580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14581printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14582ac_tool_warned=yes ;; 14583esac 14584 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14585 fi 14586else 14587 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14588fi 14589 14590test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14592printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14593if test ${lt_cv_path_mainfest_tool+y} 14594then : 14595 printf %s "(cached) " >&6 14596else $as_nop 14597 lt_cv_path_mainfest_tool=no 14598 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14599 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14600 cat conftest.err >&5 14601 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14602 lt_cv_path_mainfest_tool=yes 14603 fi 14604 rm -f conftest* 14605fi 14606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14607printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14608if test yes != "$lt_cv_path_mainfest_tool"; then 14609 MANIFEST_TOOL=: 14610fi 14611 14612 14613 14614 14615 14616 14617 case $host_os in 14618 rhapsody* | darwin*) 14619 if test -n "$ac_tool_prefix"; then 14620 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14621set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14623printf %s "checking for $ac_word... " >&6; } 14624if test ${ac_cv_prog_DSYMUTIL+y} 14625then : 14626 printf %s "(cached) " >&6 14627else $as_nop 14628 if test -n "$DSYMUTIL"; then 14629 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14630else 14631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14632for as_dir in $PATH 14633do 14634 IFS=$as_save_IFS 14635 case $as_dir in #((( 14636 '') as_dir=./ ;; 14637 */) ;; 14638 *) as_dir=$as_dir/ ;; 14639 esac 14640 for ac_exec_ext in '' $ac_executable_extensions; do 14641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14642 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14644 break 2 14645 fi 14646done 14647 done 14648IFS=$as_save_IFS 14649 14650fi 14651fi 14652DSYMUTIL=$ac_cv_prog_DSYMUTIL 14653if test -n "$DSYMUTIL"; then 14654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14655printf "%s\n" "$DSYMUTIL" >&6; } 14656else 14657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14658printf "%s\n" "no" >&6; } 14659fi 14660 14661 14662fi 14663if test -z "$ac_cv_prog_DSYMUTIL"; then 14664 ac_ct_DSYMUTIL=$DSYMUTIL 14665 # Extract the first word of "dsymutil", so it can be a program name with args. 14666set dummy dsymutil; ac_word=$2 14667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14668printf %s "checking for $ac_word... " >&6; } 14669if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14670then : 14671 printf %s "(cached) " >&6 14672else $as_nop 14673 if test -n "$ac_ct_DSYMUTIL"; then 14674 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14675else 14676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14677for as_dir in $PATH 14678do 14679 IFS=$as_save_IFS 14680 case $as_dir in #((( 14681 '') as_dir=./ ;; 14682 */) ;; 14683 *) as_dir=$as_dir/ ;; 14684 esac 14685 for ac_exec_ext in '' $ac_executable_extensions; do 14686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14687 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14689 break 2 14690 fi 14691done 14692 done 14693IFS=$as_save_IFS 14694 14695fi 14696fi 14697ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14698if test -n "$ac_ct_DSYMUTIL"; then 14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14700printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14701else 14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14703printf "%s\n" "no" >&6; } 14704fi 14705 14706 if test "x$ac_ct_DSYMUTIL" = x; then 14707 DSYMUTIL=":" 14708 else 14709 case $cross_compiling:$ac_tool_warned in 14710yes:) 14711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14712printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14713ac_tool_warned=yes ;; 14714esac 14715 DSYMUTIL=$ac_ct_DSYMUTIL 14716 fi 14717else 14718 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14719fi 14720 14721 if test -n "$ac_tool_prefix"; then 14722 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14723set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14725printf %s "checking for $ac_word... " >&6; } 14726if test ${ac_cv_prog_NMEDIT+y} 14727then : 14728 printf %s "(cached) " >&6 14729else $as_nop 14730 if test -n "$NMEDIT"; then 14731 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14732else 14733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14734for as_dir in $PATH 14735do 14736 IFS=$as_save_IFS 14737 case $as_dir in #((( 14738 '') as_dir=./ ;; 14739 */) ;; 14740 *) as_dir=$as_dir/ ;; 14741 esac 14742 for ac_exec_ext in '' $ac_executable_extensions; do 14743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14744 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14746 break 2 14747 fi 14748done 14749 done 14750IFS=$as_save_IFS 14751 14752fi 14753fi 14754NMEDIT=$ac_cv_prog_NMEDIT 14755if test -n "$NMEDIT"; then 14756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14757printf "%s\n" "$NMEDIT" >&6; } 14758else 14759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14760printf "%s\n" "no" >&6; } 14761fi 14762 14763 14764fi 14765if test -z "$ac_cv_prog_NMEDIT"; then 14766 ac_ct_NMEDIT=$NMEDIT 14767 # Extract the first word of "nmedit", so it can be a program name with args. 14768set dummy nmedit; ac_word=$2 14769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14770printf %s "checking for $ac_word... " >&6; } 14771if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14772then : 14773 printf %s "(cached) " >&6 14774else $as_nop 14775 if test -n "$ac_ct_NMEDIT"; then 14776 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14777else 14778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14779for as_dir in $PATH 14780do 14781 IFS=$as_save_IFS 14782 case $as_dir in #((( 14783 '') as_dir=./ ;; 14784 */) ;; 14785 *) as_dir=$as_dir/ ;; 14786 esac 14787 for ac_exec_ext in '' $ac_executable_extensions; do 14788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14789 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14791 break 2 14792 fi 14793done 14794 done 14795IFS=$as_save_IFS 14796 14797fi 14798fi 14799ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14800if test -n "$ac_ct_NMEDIT"; then 14801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14802printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14803else 14804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14805printf "%s\n" "no" >&6; } 14806fi 14807 14808 if test "x$ac_ct_NMEDIT" = x; then 14809 NMEDIT=":" 14810 else 14811 case $cross_compiling:$ac_tool_warned in 14812yes:) 14813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14814printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14815ac_tool_warned=yes ;; 14816esac 14817 NMEDIT=$ac_ct_NMEDIT 14818 fi 14819else 14820 NMEDIT="$ac_cv_prog_NMEDIT" 14821fi 14822 14823 if test -n "$ac_tool_prefix"; then 14824 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14825set dummy ${ac_tool_prefix}lipo; ac_word=$2 14826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14827printf %s "checking for $ac_word... " >&6; } 14828if test ${ac_cv_prog_LIPO+y} 14829then : 14830 printf %s "(cached) " >&6 14831else $as_nop 14832 if test -n "$LIPO"; then 14833 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14834else 14835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14836for as_dir in $PATH 14837do 14838 IFS=$as_save_IFS 14839 case $as_dir in #((( 14840 '') as_dir=./ ;; 14841 */) ;; 14842 *) as_dir=$as_dir/ ;; 14843 esac 14844 for ac_exec_ext in '' $ac_executable_extensions; do 14845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14846 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14848 break 2 14849 fi 14850done 14851 done 14852IFS=$as_save_IFS 14853 14854fi 14855fi 14856LIPO=$ac_cv_prog_LIPO 14857if test -n "$LIPO"; then 14858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14859printf "%s\n" "$LIPO" >&6; } 14860else 14861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14862printf "%s\n" "no" >&6; } 14863fi 14864 14865 14866fi 14867if test -z "$ac_cv_prog_LIPO"; then 14868 ac_ct_LIPO=$LIPO 14869 # Extract the first word of "lipo", so it can be a program name with args. 14870set dummy lipo; ac_word=$2 14871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14872printf %s "checking for $ac_word... " >&6; } 14873if test ${ac_cv_prog_ac_ct_LIPO+y} 14874then : 14875 printf %s "(cached) " >&6 14876else $as_nop 14877 if test -n "$ac_ct_LIPO"; then 14878 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14879else 14880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14881for as_dir in $PATH 14882do 14883 IFS=$as_save_IFS 14884 case $as_dir in #((( 14885 '') as_dir=./ ;; 14886 */) ;; 14887 *) as_dir=$as_dir/ ;; 14888 esac 14889 for ac_exec_ext in '' $ac_executable_extensions; do 14890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14891 ac_cv_prog_ac_ct_LIPO="lipo" 14892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14893 break 2 14894 fi 14895done 14896 done 14897IFS=$as_save_IFS 14898 14899fi 14900fi 14901ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14902if test -n "$ac_ct_LIPO"; then 14903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14904printf "%s\n" "$ac_ct_LIPO" >&6; } 14905else 14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14907printf "%s\n" "no" >&6; } 14908fi 14909 14910 if test "x$ac_ct_LIPO" = x; then 14911 LIPO=":" 14912 else 14913 case $cross_compiling:$ac_tool_warned in 14914yes:) 14915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14916printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14917ac_tool_warned=yes ;; 14918esac 14919 LIPO=$ac_ct_LIPO 14920 fi 14921else 14922 LIPO="$ac_cv_prog_LIPO" 14923fi 14924 14925 if test -n "$ac_tool_prefix"; then 14926 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14927set dummy ${ac_tool_prefix}otool; ac_word=$2 14928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14929printf %s "checking for $ac_word... " >&6; } 14930if test ${ac_cv_prog_OTOOL+y} 14931then : 14932 printf %s "(cached) " >&6 14933else $as_nop 14934 if test -n "$OTOOL"; then 14935 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14936else 14937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14938for as_dir in $PATH 14939do 14940 IFS=$as_save_IFS 14941 case $as_dir in #((( 14942 '') as_dir=./ ;; 14943 */) ;; 14944 *) as_dir=$as_dir/ ;; 14945 esac 14946 for ac_exec_ext in '' $ac_executable_extensions; do 14947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14948 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14950 break 2 14951 fi 14952done 14953 done 14954IFS=$as_save_IFS 14955 14956fi 14957fi 14958OTOOL=$ac_cv_prog_OTOOL 14959if test -n "$OTOOL"; then 14960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14961printf "%s\n" "$OTOOL" >&6; } 14962else 14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14964printf "%s\n" "no" >&6; } 14965fi 14966 14967 14968fi 14969if test -z "$ac_cv_prog_OTOOL"; then 14970 ac_ct_OTOOL=$OTOOL 14971 # Extract the first word of "otool", so it can be a program name with args. 14972set dummy otool; ac_word=$2 14973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14974printf %s "checking for $ac_word... " >&6; } 14975if test ${ac_cv_prog_ac_ct_OTOOL+y} 14976then : 14977 printf %s "(cached) " >&6 14978else $as_nop 14979 if test -n "$ac_ct_OTOOL"; then 14980 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14981else 14982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14983for as_dir in $PATH 14984do 14985 IFS=$as_save_IFS 14986 case $as_dir in #((( 14987 '') as_dir=./ ;; 14988 */) ;; 14989 *) as_dir=$as_dir/ ;; 14990 esac 14991 for ac_exec_ext in '' $ac_executable_extensions; do 14992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14993 ac_cv_prog_ac_ct_OTOOL="otool" 14994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14995 break 2 14996 fi 14997done 14998 done 14999IFS=$as_save_IFS 15000 15001fi 15002fi 15003ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 15004if test -n "$ac_ct_OTOOL"; then 15005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 15006printf "%s\n" "$ac_ct_OTOOL" >&6; } 15007else 15008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15009printf "%s\n" "no" >&6; } 15010fi 15011 15012 if test "x$ac_ct_OTOOL" = x; then 15013 OTOOL=":" 15014 else 15015 case $cross_compiling:$ac_tool_warned in 15016yes:) 15017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15018printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15019ac_tool_warned=yes ;; 15020esac 15021 OTOOL=$ac_ct_OTOOL 15022 fi 15023else 15024 OTOOL="$ac_cv_prog_OTOOL" 15025fi 15026 15027 if test -n "$ac_tool_prefix"; then 15028 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 15029set dummy ${ac_tool_prefix}otool64; ac_word=$2 15030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15031printf %s "checking for $ac_word... " >&6; } 15032if test ${ac_cv_prog_OTOOL64+y} 15033then : 15034 printf %s "(cached) " >&6 15035else $as_nop 15036 if test -n "$OTOOL64"; then 15037 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 15038else 15039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15040for as_dir in $PATH 15041do 15042 IFS=$as_save_IFS 15043 case $as_dir in #((( 15044 '') as_dir=./ ;; 15045 */) ;; 15046 *) as_dir=$as_dir/ ;; 15047 esac 15048 for ac_exec_ext in '' $ac_executable_extensions; do 15049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15050 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15052 break 2 15053 fi 15054done 15055 done 15056IFS=$as_save_IFS 15057 15058fi 15059fi 15060OTOOL64=$ac_cv_prog_OTOOL64 15061if test -n "$OTOOL64"; then 15062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15063printf "%s\n" "$OTOOL64" >&6; } 15064else 15065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15066printf "%s\n" "no" >&6; } 15067fi 15068 15069 15070fi 15071if test -z "$ac_cv_prog_OTOOL64"; then 15072 ac_ct_OTOOL64=$OTOOL64 15073 # Extract the first word of "otool64", so it can be a program name with args. 15074set dummy otool64; ac_word=$2 15075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15076printf %s "checking for $ac_word... " >&6; } 15077if test ${ac_cv_prog_ac_ct_OTOOL64+y} 15078then : 15079 printf %s "(cached) " >&6 15080else $as_nop 15081 if test -n "$ac_ct_OTOOL64"; then 15082 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15083else 15084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15085for as_dir in $PATH 15086do 15087 IFS=$as_save_IFS 15088 case $as_dir in #((( 15089 '') as_dir=./ ;; 15090 */) ;; 15091 *) as_dir=$as_dir/ ;; 15092 esac 15093 for ac_exec_ext in '' $ac_executable_extensions; do 15094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15095 ac_cv_prog_ac_ct_OTOOL64="otool64" 15096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15097 break 2 15098 fi 15099done 15100 done 15101IFS=$as_save_IFS 15102 15103fi 15104fi 15105ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 15106if test -n "$ac_ct_OTOOL64"; then 15107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 15108printf "%s\n" "$ac_ct_OTOOL64" >&6; } 15109else 15110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15111printf "%s\n" "no" >&6; } 15112fi 15113 15114 if test "x$ac_ct_OTOOL64" = x; then 15115 OTOOL64=":" 15116 else 15117 case $cross_compiling:$ac_tool_warned in 15118yes:) 15119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15120printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15121ac_tool_warned=yes ;; 15122esac 15123 OTOOL64=$ac_ct_OTOOL64 15124 fi 15125else 15126 OTOOL64="$ac_cv_prog_OTOOL64" 15127fi 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15156printf %s "checking for -single_module linker flag... " >&6; } 15157if test ${lt_cv_apple_cc_single_mod+y} 15158then : 15159 printf %s "(cached) " >&6 15160else $as_nop 15161 lt_cv_apple_cc_single_mod=no 15162 if test -z "$LT_MULTI_MODULE"; then 15163 # By default we will add the -single_module flag. You can override 15164 # by either setting the environment variable LT_MULTI_MODULE 15165 # non-empty at configure time, or by adding -multi_module to the 15166 # link flags. 15167 rm -rf libconftest.dylib* 15168 echo "int foo(void){return 1;}" > conftest.c 15169 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15170-dynamiclib -Wl,-single_module conftest.c" >&5 15171 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15172 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15173 _lt_result=$? 15174 # If there is a non-empty error log, and "single_module" 15175 # appears in it, assume the flag caused a linker warning 15176 if test -s conftest.err && $GREP single_module conftest.err; then 15177 cat conftest.err >&5 15178 # Otherwise, if the output was created with a 0 exit code from 15179 # the compiler, it worked. 15180 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 15181 lt_cv_apple_cc_single_mod=yes 15182 else 15183 cat conftest.err >&5 15184 fi 15185 rm -rf libconftest.dylib* 15186 rm -f conftest.* 15187 fi 15188fi 15189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15190printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 15191 15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15193printf %s "checking for -exported_symbols_list linker flag... " >&6; } 15194if test ${lt_cv_ld_exported_symbols_list+y} 15195then : 15196 printf %s "(cached) " >&6 15197else $as_nop 15198 lt_cv_ld_exported_symbols_list=no 15199 save_LDFLAGS=$LDFLAGS 15200 echo "_main" > conftest.sym 15201 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15203/* end confdefs.h. */ 15204 15205int 15206main (void) 15207{ 15208 15209 ; 15210 return 0; 15211} 15212_ACEOF 15213if ac_fn_c_try_link "$LINENO" 15214then : 15215 lt_cv_ld_exported_symbols_list=yes 15216else $as_nop 15217 lt_cv_ld_exported_symbols_list=no 15218fi 15219rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15220 conftest$ac_exeext conftest.$ac_ext 15221 LDFLAGS=$save_LDFLAGS 15222 15223fi 15224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15225printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 15226 15227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15228printf %s "checking for -force_load linker flag... " >&6; } 15229if test ${lt_cv_ld_force_load+y} 15230then : 15231 printf %s "(cached) " >&6 15232else $as_nop 15233 lt_cv_ld_force_load=no 15234 cat > conftest.c << _LT_EOF 15235int forced_loaded() { return 2;} 15236_LT_EOF 15237 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15238 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15239 echo "$AR cr libconftest.a conftest.o" >&5 15240 $AR cr libconftest.a conftest.o 2>&5 15241 echo "$RANLIB libconftest.a" >&5 15242 $RANLIB libconftest.a 2>&5 15243 cat > conftest.c << _LT_EOF 15244int main() { return 0;} 15245_LT_EOF 15246 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15247 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15248 _lt_result=$? 15249 if test -s conftest.err && $GREP force_load conftest.err; then 15250 cat conftest.err >&5 15251 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 15252 lt_cv_ld_force_load=yes 15253 else 15254 cat conftest.err >&5 15255 fi 15256 rm -f conftest.err libconftest.a conftest conftest.c 15257 rm -rf conftest.dSYM 15258 15259fi 15260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15261printf "%s\n" "$lt_cv_ld_force_load" >&6; } 15262 case $host_os in 15263 rhapsody* | darwin1.[012]) 15264 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 15265 darwin1.*) 15266 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15267 darwin*) # darwin 5.x on 15268 # if running on 10.5 or later, the deployment target defaults 15269 # to the OS version, if on x86, and 10.4, the deployment 15270 # target defaults to 10.4. Don't you love it? 15271 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 15272 10.0,*86*-darwin8*|10.0,*-darwin[912]*) 15273 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15274 10.[012][,.]*) 15275 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15276 10.*|11.*) 15277 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15278 esac 15279 ;; 15280 esac 15281 if test yes = "$lt_cv_apple_cc_single_mod"; then 15282 _lt_dar_single_mod='$single_module' 15283 fi 15284 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15285 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15286 else 15287 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15288 fi 15289 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15290 _lt_dsymutil='~$DSYMUTIL $lib || :' 15291 else 15292 _lt_dsymutil= 15293 fi 15294 ;; 15295 esac 15296 15297# func_munge_path_list VARIABLE PATH 15298# ----------------------------------- 15299# VARIABLE is name of variable containing _space_ separated list of 15300# directories to be munged by the contents of PATH, which is string 15301# having a format: 15302# "DIR[:DIR]:" 15303# string "DIR[ DIR]" will be prepended to VARIABLE 15304# ":DIR[:DIR]" 15305# string "DIR[ DIR]" will be appended to VARIABLE 15306# "DIRP[:DIRP]::[DIRA:]DIRA" 15307# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15308# "DIRA[ DIRA]" will be appended to VARIABLE 15309# "DIR[:DIR]" 15310# VARIABLE will be replaced by "DIR[ DIR]" 15311func_munge_path_list () 15312{ 15313 case x$2 in 15314 x) 15315 ;; 15316 *:) 15317 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15318 ;; 15319 x:*) 15320 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15321 ;; 15322 *::*) 15323 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15324 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15325 ;; 15326 *) 15327 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15328 ;; 15329 esac 15330} 15331 15332ac_header= ac_cache= 15333for ac_item in $ac_header_c_list 15334do 15335 if test $ac_cache; then 15336 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 15337 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 15338 printf "%s\n" "#define $ac_item 1" >> confdefs.h 15339 fi 15340 ac_header= ac_cache= 15341 elif test $ac_header; then 15342 ac_cache=$ac_item 15343 else 15344 ac_header=$ac_item 15345 fi 15346done 15347 15348 15349 15350 15351 15352 15353 15354 15355if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 15356then : 15357 15358printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 15359 15360fi 15361ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15362" 15363if test "x$ac_cv_header_dlfcn_h" = xyes 15364then : 15365 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15366 15367fi 15368 15369 15370 15371func_stripname_cnf () 15372{ 15373 case $2 in 15374 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 15375 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 15376 esac 15377} # func_stripname_cnf 15378 15379 15380 15381 15382 15383# Set options 15384 15385 15386 15387 enable_dlopen=no 15388 15389 15390 enable_win32_dll=no 15391 15392 15393 # Check whether --enable-shared was given. 15394if test ${enable_shared+y} 15395then : 15396 enableval=$enable_shared; p=${PACKAGE-default} 15397 case $enableval in 15398 yes) enable_shared=yes ;; 15399 no) enable_shared=no ;; 15400 *) 15401 enable_shared=no 15402 # Look at the argument we got. We use all the common list separators. 15403 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15404 for pkg in $enableval; do 15405 IFS=$lt_save_ifs 15406 if test "X$pkg" = "X$p"; then 15407 enable_shared=yes 15408 fi 15409 done 15410 IFS=$lt_save_ifs 15411 ;; 15412 esac 15413else $as_nop 15414 enable_shared=yes 15415fi 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 # Check whether --enable-static was given. 15426if test ${enable_static+y} 15427then : 15428 enableval=$enable_static; p=${PACKAGE-default} 15429 case $enableval in 15430 yes) enable_static=yes ;; 15431 no) enable_static=no ;; 15432 *) 15433 enable_static=no 15434 # Look at the argument we got. We use all the common list separators. 15435 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15436 for pkg in $enableval; do 15437 IFS=$lt_save_ifs 15438 if test "X$pkg" = "X$p"; then 15439 enable_static=yes 15440 fi 15441 done 15442 IFS=$lt_save_ifs 15443 ;; 15444 esac 15445else $as_nop 15446 enable_static=yes 15447fi 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458# Check whether --with-pic was given. 15459if test ${with_pic+y} 15460then : 15461 withval=$with_pic; lt_p=${PACKAGE-default} 15462 case $withval in 15463 yes|no) pic_mode=$withval ;; 15464 *) 15465 pic_mode=default 15466 # Look at the argument we got. We use all the common list separators. 15467 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15468 for lt_pkg in $withval; do 15469 IFS=$lt_save_ifs 15470 if test "X$lt_pkg" = "X$lt_p"; then 15471 pic_mode=yes 15472 fi 15473 done 15474 IFS=$lt_save_ifs 15475 ;; 15476 esac 15477else $as_nop 15478 pic_mode=default 15479fi 15480 15481 15482 15483 15484 15485 15486 15487 15488 # Check whether --enable-fast-install was given. 15489if test ${enable_fast_install+y} 15490then : 15491 enableval=$enable_fast_install; p=${PACKAGE-default} 15492 case $enableval in 15493 yes) enable_fast_install=yes ;; 15494 no) enable_fast_install=no ;; 15495 *) 15496 enable_fast_install=no 15497 # Look at the argument we got. We use all the common list separators. 15498 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15499 for pkg in $enableval; do 15500 IFS=$lt_save_ifs 15501 if test "X$pkg" = "X$p"; then 15502 enable_fast_install=yes 15503 fi 15504 done 15505 IFS=$lt_save_ifs 15506 ;; 15507 esac 15508else $as_nop 15509 enable_fast_install=yes 15510fi 15511 15512 15513 15514 15515 15516 15517 15518 15519 shared_archive_member_spec= 15520case $host,$enable_shared in 15521power*-*-aix[5-9]*,yes) 15522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15523printf %s "checking which variant of shared library versioning to provide... " >&6; } 15524 15525# Check whether --with-aix-soname was given. 15526if test ${with_aix_soname+y} 15527then : 15528 withval=$with_aix_soname; case $withval in 15529 aix|svr4|both) 15530 ;; 15531 *) 15532 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15533 ;; 15534 esac 15535 lt_cv_with_aix_soname=$with_aix_soname 15536else $as_nop 15537 if test ${lt_cv_with_aix_soname+y} 15538then : 15539 printf %s "(cached) " >&6 15540else $as_nop 15541 lt_cv_with_aix_soname=aix 15542fi 15543 15544 with_aix_soname=$lt_cv_with_aix_soname 15545fi 15546 15547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15548printf "%s\n" "$with_aix_soname" >&6; } 15549 if test aix != "$with_aix_soname"; then 15550 # For the AIX way of multilib, we name the shared archive member 15551 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15552 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15553 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15554 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15555 if test 64 = "${OBJECT_MODE-32}"; then 15556 shared_archive_member_spec=shr_64 15557 else 15558 shared_archive_member_spec=shr 15559 fi 15560 fi 15561 ;; 15562*) 15563 with_aix_soname=aix 15564 ;; 15565esac 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576# This can be used to rebuild libtool when needed 15577LIBTOOL_DEPS=$ltmain 15578 15579# Always use our own libtool. 15580LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611test -z "$LN_S" && LN_S="ln -s" 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626if test -n "${ZSH_VERSION+set}"; then 15627 setopt NO_GLOB_SUBST 15628fi 15629 15630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15631printf %s "checking for objdir... " >&6; } 15632if test ${lt_cv_objdir+y} 15633then : 15634 printf %s "(cached) " >&6 15635else $as_nop 15636 rm -f .libs 2>/dev/null 15637mkdir .libs 2>/dev/null 15638if test -d .libs; then 15639 lt_cv_objdir=.libs 15640else 15641 # MS-DOS does not allow filenames that begin with a dot. 15642 lt_cv_objdir=_libs 15643fi 15644rmdir .libs 2>/dev/null 15645fi 15646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15647printf "%s\n" "$lt_cv_objdir" >&6; } 15648objdir=$lt_cv_objdir 15649 15650 15651 15652 15653 15654printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15655 15656 15657 15658 15659case $host_os in 15660aix3*) 15661 # AIX sometimes has problems with the GCC collect2 program. For some 15662 # reason, if we set the COLLECT_NAMES environment variable, the problems 15663 # vanish in a puff of smoke. 15664 if test set != "${COLLECT_NAMES+set}"; then 15665 COLLECT_NAMES= 15666 export COLLECT_NAMES 15667 fi 15668 ;; 15669esac 15670 15671# Global variables: 15672ofile=libtool 15673can_build_shared=yes 15674 15675# All known linkers require a '.a' archive for static linking (except MSVC, 15676# which needs '.lib'). 15677libext=a 15678 15679with_gnu_ld=$lt_cv_prog_gnu_ld 15680 15681old_CC=$CC 15682old_CFLAGS=$CFLAGS 15683 15684# Set sane defaults for various variables 15685test -z "$CC" && CC=cc 15686test -z "$LTCC" && LTCC=$CC 15687test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15688test -z "$LD" && LD=ld 15689test -z "$ac_objext" && ac_objext=o 15690 15691func_cc_basename $compiler 15692cc_basename=$func_cc_basename_result 15693 15694 15695# Only perform the check for file, if the check method requires it 15696test -z "$MAGIC_CMD" && MAGIC_CMD=file 15697case $deplibs_check_method in 15698file_magic*) 15699 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15701printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15702if test ${lt_cv_path_MAGIC_CMD+y} 15703then : 15704 printf %s "(cached) " >&6 15705else $as_nop 15706 case $MAGIC_CMD in 15707[\\/*] | ?:[\\/]*) 15708 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15709 ;; 15710*) 15711 lt_save_MAGIC_CMD=$MAGIC_CMD 15712 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15713 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15714 for ac_dir in $ac_dummy; do 15715 IFS=$lt_save_ifs 15716 test -z "$ac_dir" && ac_dir=. 15717 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15718 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15719 if test -n "$file_magic_test_file"; then 15720 case $deplibs_check_method in 15721 "file_magic "*) 15722 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15723 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15725 $EGREP "$file_magic_regex" > /dev/null; then 15726 : 15727 else 15728 cat <<_LT_EOF 1>&2 15729 15730*** Warning: the command libtool uses to detect shared libraries, 15731*** $file_magic_cmd, produces output that libtool cannot recognize. 15732*** The result is that libtool may fail to recognize shared libraries 15733*** as such. This will affect the creation of libtool libraries that 15734*** depend on shared libraries, but programs linked with such libtool 15735*** libraries will work regardless of this problem. Nevertheless, you 15736*** may want to report the problem to your system manager and/or to 15737*** bug-libtool@gnu.org 15738 15739_LT_EOF 15740 fi ;; 15741 esac 15742 fi 15743 break 15744 fi 15745 done 15746 IFS=$lt_save_ifs 15747 MAGIC_CMD=$lt_save_MAGIC_CMD 15748 ;; 15749esac 15750fi 15751 15752MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15753if test -n "$MAGIC_CMD"; then 15754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15755printf "%s\n" "$MAGIC_CMD" >&6; } 15756else 15757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15758printf "%s\n" "no" >&6; } 15759fi 15760 15761 15762 15763 15764 15765if test -z "$lt_cv_path_MAGIC_CMD"; then 15766 if test -n "$ac_tool_prefix"; then 15767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15768printf %s "checking for file... " >&6; } 15769if test ${lt_cv_path_MAGIC_CMD+y} 15770then : 15771 printf %s "(cached) " >&6 15772else $as_nop 15773 case $MAGIC_CMD in 15774[\\/*] | ?:[\\/]*) 15775 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15776 ;; 15777*) 15778 lt_save_MAGIC_CMD=$MAGIC_CMD 15779 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15780 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15781 for ac_dir in $ac_dummy; do 15782 IFS=$lt_save_ifs 15783 test -z "$ac_dir" && ac_dir=. 15784 if test -f "$ac_dir/file"; then 15785 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15786 if test -n "$file_magic_test_file"; then 15787 case $deplibs_check_method in 15788 "file_magic "*) 15789 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15790 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15791 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15792 $EGREP "$file_magic_regex" > /dev/null; then 15793 : 15794 else 15795 cat <<_LT_EOF 1>&2 15796 15797*** Warning: the command libtool uses to detect shared libraries, 15798*** $file_magic_cmd, produces output that libtool cannot recognize. 15799*** The result is that libtool may fail to recognize shared libraries 15800*** as such. This will affect the creation of libtool libraries that 15801*** depend on shared libraries, but programs linked with such libtool 15802*** libraries will work regardless of this problem. Nevertheless, you 15803*** may want to report the problem to your system manager and/or to 15804*** bug-libtool@gnu.org 15805 15806_LT_EOF 15807 fi ;; 15808 esac 15809 fi 15810 break 15811 fi 15812 done 15813 IFS=$lt_save_ifs 15814 MAGIC_CMD=$lt_save_MAGIC_CMD 15815 ;; 15816esac 15817fi 15818 15819MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15820if test -n "$MAGIC_CMD"; then 15821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15822printf "%s\n" "$MAGIC_CMD" >&6; } 15823else 15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15825printf "%s\n" "no" >&6; } 15826fi 15827 15828 15829 else 15830 MAGIC_CMD=: 15831 fi 15832fi 15833 15834 fi 15835 ;; 15836esac 15837 15838# Use C for the default configuration in the libtool script 15839 15840lt_save_CC=$CC 15841ac_ext=c 15842ac_cpp='$CPP $CPPFLAGS' 15843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15845ac_compiler_gnu=$ac_cv_c_compiler_gnu 15846 15847 15848# Source file extension for C test sources. 15849ac_ext=c 15850 15851# Object file extension for compiled C test sources. 15852objext=o 15853objext=$objext 15854 15855# Code to be used in simple compile tests 15856lt_simple_compile_test_code="int some_variable = 0;" 15857 15858# Code to be used in simple link tests 15859lt_simple_link_test_code='int main(){return(0);}' 15860 15861 15862 15863 15864 15865 15866 15867# If no C compiler was specified, use CC. 15868LTCC=${LTCC-"$CC"} 15869 15870# If no C compiler flags were specified, use CFLAGS. 15871LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15872 15873# Allow CC to be a program name with arguments. 15874compiler=$CC 15875 15876# Save the default compiler, since it gets overwritten when the other 15877# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15878compiler_DEFAULT=$CC 15879 15880# save warnings/boilerplate of simple test code 15881ac_outfile=conftest.$ac_objext 15882echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15883eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15884_lt_compiler_boilerplate=`cat conftest.err` 15885$RM conftest* 15886 15887ac_outfile=conftest.$ac_objext 15888echo "$lt_simple_link_test_code" >conftest.$ac_ext 15889eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15890_lt_linker_boilerplate=`cat conftest.err` 15891$RM -r conftest* 15892 15893 15894## CAVEAT EMPTOR: 15895## There is no encapsulation within the following macros, do not change 15896## the running order or otherwise move them around unless you know exactly 15897## what you are doing... 15898if test -n "$compiler"; then 15899 15900lt_prog_compiler_no_builtin_flag= 15901 15902if test yes = "$GCC"; then 15903 case $cc_basename in 15904 nvcc*) 15905 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15906 *) 15907 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15908 esac 15909 15910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15911printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15912if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15913then : 15914 printf %s "(cached) " >&6 15915else $as_nop 15916 lt_cv_prog_compiler_rtti_exceptions=no 15917 ac_outfile=conftest.$ac_objext 15918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15919 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15920 # Insert the option either (1) after the last *FLAGS variable, or 15921 # (2) before a word containing "conftest.", or (3) at the end. 15922 # Note that $ac_compile itself does not contain backslashes and begins 15923 # with a dollar sign (not a hyphen), so the echo should work correctly. 15924 # The option is referenced via a variable to avoid confusing sed. 15925 lt_compile=`echo "$ac_compile" | $SED \ 15926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15928 -e 's:$: $lt_compiler_flag:'` 15929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15930 (eval "$lt_compile" 2>conftest.err) 15931 ac_status=$? 15932 cat conftest.err >&5 15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15934 if (exit $ac_status) && test -s "$ac_outfile"; then 15935 # The compiler can only warn and ignore the option if not recognized 15936 # So say no if there are warnings other than the usual output. 15937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15939 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15940 lt_cv_prog_compiler_rtti_exceptions=yes 15941 fi 15942 fi 15943 $RM conftest* 15944 15945fi 15946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15947printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15948 15949if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15950 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15951else 15952 : 15953fi 15954 15955fi 15956 15957 15958 15959 15960 15961 15962 lt_prog_compiler_wl= 15963lt_prog_compiler_pic= 15964lt_prog_compiler_static= 15965 15966 15967 if test yes = "$GCC"; then 15968 lt_prog_compiler_wl='-Wl,' 15969 lt_prog_compiler_static='-static' 15970 15971 case $host_os in 15972 aix*) 15973 # All AIX code is PIC. 15974 if test ia64 = "$host_cpu"; then 15975 # AIX 5 now supports IA64 processor 15976 lt_prog_compiler_static='-Bstatic' 15977 fi 15978 lt_prog_compiler_pic='-fPIC' 15979 ;; 15980 15981 amigaos*) 15982 case $host_cpu in 15983 powerpc) 15984 # see comment about AmigaOS4 .so support 15985 lt_prog_compiler_pic='-fPIC' 15986 ;; 15987 m68k) 15988 # FIXME: we need at least 68020 code to build shared libraries, but 15989 # adding the '-m68020' flag to GCC prevents building anything better, 15990 # like '-m68040'. 15991 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15992 ;; 15993 esac 15994 ;; 15995 15996 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15997 # PIC is the default for these OSes. 15998 ;; 15999 16000 mingw* | cygwin* | pw32* | os2* | cegcc*) 16001 # This hack is so that the source file can tell whether it is being 16002 # built for inclusion in a dll (and should export symbols for example). 16003 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16004 # (--disable-auto-import) libraries 16005 lt_prog_compiler_pic='-DDLL_EXPORT' 16006 case $host_os in 16007 os2*) 16008 lt_prog_compiler_static='$wl-static' 16009 ;; 16010 esac 16011 ;; 16012 16013 darwin* | rhapsody*) 16014 # PIC is the default on this platform 16015 # Common symbols not allowed in MH_DYLIB files 16016 lt_prog_compiler_pic='-fno-common' 16017 ;; 16018 16019 haiku*) 16020 # PIC is the default for Haiku. 16021 # The "-static" flag exists, but is broken. 16022 lt_prog_compiler_static= 16023 ;; 16024 16025 hpux*) 16026 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16027 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16028 # sets the default TLS model and affects inlining. 16029 case $host_cpu in 16030 hppa*64*) 16031 # +Z the default 16032 ;; 16033 *) 16034 lt_prog_compiler_pic='-fPIC' 16035 ;; 16036 esac 16037 ;; 16038 16039 interix[3-9]*) 16040 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16041 # Instead, we relocate shared libraries at runtime. 16042 ;; 16043 16044 msdosdjgpp*) 16045 # Just because we use GCC doesn't mean we suddenly get shared libraries 16046 # on systems that don't support them. 16047 lt_prog_compiler_can_build_shared=no 16048 enable_shared=no 16049 ;; 16050 16051 *nto* | *qnx*) 16052 # QNX uses GNU C++, but need to define -shared option too, otherwise 16053 # it will coredump. 16054 lt_prog_compiler_pic='-fPIC -shared' 16055 ;; 16056 16057 sysv4*MP*) 16058 if test -d /usr/nec; then 16059 lt_prog_compiler_pic=-Kconform_pic 16060 fi 16061 ;; 16062 16063 *) 16064 lt_prog_compiler_pic='-fPIC' 16065 ;; 16066 esac 16067 16068 case $cc_basename in 16069 nvcc*) # Cuda Compiler Driver 2.2 16070 lt_prog_compiler_wl='-Xlinker ' 16071 if test -n "$lt_prog_compiler_pic"; then 16072 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 16073 fi 16074 ;; 16075 esac 16076 else 16077 # PORTME Check for flag to pass linker flags through the system compiler. 16078 case $host_os in 16079 aix*) 16080 lt_prog_compiler_wl='-Wl,' 16081 if test ia64 = "$host_cpu"; then 16082 # AIX 5 now supports IA64 processor 16083 lt_prog_compiler_static='-Bstatic' 16084 else 16085 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16086 fi 16087 ;; 16088 16089 darwin* | rhapsody*) 16090 # PIC is the default on this platform 16091 # Common symbols not allowed in MH_DYLIB files 16092 lt_prog_compiler_pic='-fno-common' 16093 case $cc_basename in 16094 nagfor*) 16095 # NAG Fortran compiler 16096 lt_prog_compiler_wl='-Wl,-Wl,,' 16097 lt_prog_compiler_pic='-PIC' 16098 lt_prog_compiler_static='-Bstatic' 16099 ;; 16100 esac 16101 ;; 16102 16103 mingw* | cygwin* | pw32* | os2* | cegcc*) 16104 # This hack is so that the source file can tell whether it is being 16105 # built for inclusion in a dll (and should export symbols for example). 16106 lt_prog_compiler_pic='-DDLL_EXPORT' 16107 case $host_os in 16108 os2*) 16109 lt_prog_compiler_static='$wl-static' 16110 ;; 16111 esac 16112 ;; 16113 16114 hpux9* | hpux10* | hpux11*) 16115 lt_prog_compiler_wl='-Wl,' 16116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16117 # not for PA HP-UX. 16118 case $host_cpu in 16119 hppa*64*|ia64*) 16120 # +Z the default 16121 ;; 16122 *) 16123 lt_prog_compiler_pic='+Z' 16124 ;; 16125 esac 16126 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16127 lt_prog_compiler_static='$wl-a ${wl}archive' 16128 ;; 16129 16130 irix5* | irix6* | nonstopux*) 16131 lt_prog_compiler_wl='-Wl,' 16132 # PIC (with -KPIC) is the default. 16133 lt_prog_compiler_static='-non_shared' 16134 ;; 16135 16136 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16137 case $cc_basename in 16138 # old Intel for x86_64, which still supported -KPIC. 16139 ecc*) 16140 lt_prog_compiler_wl='-Wl,' 16141 lt_prog_compiler_pic='-KPIC' 16142 lt_prog_compiler_static='-static' 16143 ;; 16144 # flang / f18. f95 an alias for gfortran or flang on Debian 16145 flang* | f18* | f95*) 16146 lt_prog_compiler_wl='-Wl,' 16147 lt_prog_compiler_pic='-fPIC' 16148 lt_prog_compiler_static='-static' 16149 ;; 16150 # icc used to be incompatible with GCC. 16151 # ICC 10 doesn't accept -KPIC any more. 16152 icc* | ifort*) 16153 lt_prog_compiler_wl='-Wl,' 16154 lt_prog_compiler_pic='-fPIC' 16155 lt_prog_compiler_static='-static' 16156 ;; 16157 # Lahey Fortran 8.1. 16158 lf95*) 16159 lt_prog_compiler_wl='-Wl,' 16160 lt_prog_compiler_pic='--shared' 16161 lt_prog_compiler_static='--static' 16162 ;; 16163 nagfor*) 16164 # NAG Fortran compiler 16165 lt_prog_compiler_wl='-Wl,-Wl,,' 16166 lt_prog_compiler_pic='-PIC' 16167 lt_prog_compiler_static='-Bstatic' 16168 ;; 16169 tcc*) 16170 # Fabrice Bellard et al's Tiny C Compiler 16171 lt_prog_compiler_wl='-Wl,' 16172 lt_prog_compiler_pic='-fPIC' 16173 lt_prog_compiler_static='-static' 16174 ;; 16175 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16176 # Portland Group compilers (*not* the Pentium gcc compiler, 16177 # which looks to be a dead project) 16178 lt_prog_compiler_wl='-Wl,' 16179 lt_prog_compiler_pic='-fpic' 16180 lt_prog_compiler_static='-Bstatic' 16181 ;; 16182 ccc*) 16183 lt_prog_compiler_wl='-Wl,' 16184 # All Alpha code is PIC. 16185 lt_prog_compiler_static='-non_shared' 16186 ;; 16187 xl* | bgxl* | bgf* | mpixl*) 16188 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16189 lt_prog_compiler_wl='-Wl,' 16190 lt_prog_compiler_pic='-qpic' 16191 lt_prog_compiler_static='-qstaticlink' 16192 ;; 16193 *) 16194 case `$CC -V 2>&1 | sed 5q` in 16195 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16196 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16197 lt_prog_compiler_pic='-KPIC' 16198 lt_prog_compiler_static='-Bstatic' 16199 lt_prog_compiler_wl='' 16200 ;; 16201 *Sun\ F* | *Sun*Fortran*) 16202 lt_prog_compiler_pic='-KPIC' 16203 lt_prog_compiler_static='-Bstatic' 16204 lt_prog_compiler_wl='-Qoption ld ' 16205 ;; 16206 *Sun\ C*) 16207 # Sun C 5.9 16208 lt_prog_compiler_pic='-KPIC' 16209 lt_prog_compiler_static='-Bstatic' 16210 lt_prog_compiler_wl='-Wl,' 16211 ;; 16212 *Intel*\ [CF]*Compiler*) 16213 lt_prog_compiler_wl='-Wl,' 16214 lt_prog_compiler_pic='-fPIC' 16215 lt_prog_compiler_static='-static' 16216 ;; 16217 *Portland\ Group*) 16218 lt_prog_compiler_wl='-Wl,' 16219 lt_prog_compiler_pic='-fpic' 16220 lt_prog_compiler_static='-Bstatic' 16221 ;; 16222 esac 16223 ;; 16224 esac 16225 ;; 16226 16227 newsos6) 16228 lt_prog_compiler_pic='-KPIC' 16229 lt_prog_compiler_static='-Bstatic' 16230 ;; 16231 16232 *nto* | *qnx*) 16233 # QNX uses GNU C++, but need to define -shared option too, otherwise 16234 # it will coredump. 16235 lt_prog_compiler_pic='-fPIC -shared' 16236 ;; 16237 16238 osf3* | osf4* | osf5*) 16239 lt_prog_compiler_wl='-Wl,' 16240 # All OSF/1 code is PIC. 16241 lt_prog_compiler_static='-non_shared' 16242 ;; 16243 16244 rdos*) 16245 lt_prog_compiler_static='-non_shared' 16246 ;; 16247 16248 solaris*) 16249 lt_prog_compiler_pic='-KPIC' 16250 lt_prog_compiler_static='-Bstatic' 16251 case $cc_basename in 16252 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16253 lt_prog_compiler_wl='-Qoption ld ';; 16254 *) 16255 lt_prog_compiler_wl='-Wl,';; 16256 esac 16257 ;; 16258 16259 sunos4*) 16260 lt_prog_compiler_wl='-Qoption ld ' 16261 lt_prog_compiler_pic='-PIC' 16262 lt_prog_compiler_static='-Bstatic' 16263 ;; 16264 16265 sysv4 | sysv4.2uw2* | sysv4.3*) 16266 lt_prog_compiler_wl='-Wl,' 16267 lt_prog_compiler_pic='-KPIC' 16268 lt_prog_compiler_static='-Bstatic' 16269 ;; 16270 16271 sysv4*MP*) 16272 if test -d /usr/nec; then 16273 lt_prog_compiler_pic='-Kconform_pic' 16274 lt_prog_compiler_static='-Bstatic' 16275 fi 16276 ;; 16277 16278 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16279 lt_prog_compiler_wl='-Wl,' 16280 lt_prog_compiler_pic='-KPIC' 16281 lt_prog_compiler_static='-Bstatic' 16282 ;; 16283 16284 unicos*) 16285 lt_prog_compiler_wl='-Wl,' 16286 lt_prog_compiler_can_build_shared=no 16287 ;; 16288 16289 uts4*) 16290 lt_prog_compiler_pic='-pic' 16291 lt_prog_compiler_static='-Bstatic' 16292 ;; 16293 16294 *) 16295 lt_prog_compiler_can_build_shared=no 16296 ;; 16297 esac 16298 fi 16299 16300case $host_os in 16301 # For platforms that do not support PIC, -DPIC is meaningless: 16302 *djgpp*) 16303 lt_prog_compiler_pic= 16304 ;; 16305 *) 16306 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16307 ;; 16308esac 16309 16310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16311printf %s "checking for $compiler option to produce PIC... " >&6; } 16312if test ${lt_cv_prog_compiler_pic+y} 16313then : 16314 printf %s "(cached) " >&6 16315else $as_nop 16316 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 16317fi 16318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16319printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 16320lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16321 16322# 16323# Check to make sure the PIC flag actually works. 16324# 16325if test -n "$lt_prog_compiler_pic"; then 16326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16327printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16328if test ${lt_cv_prog_compiler_pic_works+y} 16329then : 16330 printf %s "(cached) " >&6 16331else $as_nop 16332 lt_cv_prog_compiler_pic_works=no 16333 ac_outfile=conftest.$ac_objext 16334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16335 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16336 # Insert the option either (1) after the last *FLAGS variable, or 16337 # (2) before a word containing "conftest.", or (3) at the end. 16338 # Note that $ac_compile itself does not contain backslashes and begins 16339 # with a dollar sign (not a hyphen), so the echo should work correctly. 16340 # The option is referenced via a variable to avoid confusing sed. 16341 lt_compile=`echo "$ac_compile" | $SED \ 16342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16344 -e 's:$: $lt_compiler_flag:'` 16345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16346 (eval "$lt_compile" 2>conftest.err) 16347 ac_status=$? 16348 cat conftest.err >&5 16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16350 if (exit $ac_status) && test -s "$ac_outfile"; then 16351 # The compiler can only warn and ignore the option if not recognized 16352 # So say no if there are warnings other than the usual output. 16353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16356 lt_cv_prog_compiler_pic_works=yes 16357 fi 16358 fi 16359 $RM conftest* 16360 16361fi 16362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16363printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 16364 16365if test yes = "$lt_cv_prog_compiler_pic_works"; then 16366 case $lt_prog_compiler_pic in 16367 "" | " "*) ;; 16368 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16369 esac 16370else 16371 lt_prog_compiler_pic= 16372 lt_prog_compiler_can_build_shared=no 16373fi 16374 16375fi 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387# 16388# Check to make sure the static flag actually works. 16389# 16390wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16392printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16393if test ${lt_cv_prog_compiler_static_works+y} 16394then : 16395 printf %s "(cached) " >&6 16396else $as_nop 16397 lt_cv_prog_compiler_static_works=no 16398 save_LDFLAGS=$LDFLAGS 16399 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16400 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16401 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16402 # The linker can only warn and ignore the option if not recognized 16403 # So say no if there are warnings 16404 if test -s conftest.err; then 16405 # Append any errors to the config.log. 16406 cat conftest.err 1>&5 16407 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16409 if diff conftest.exp conftest.er2 >/dev/null; then 16410 lt_cv_prog_compiler_static_works=yes 16411 fi 16412 else 16413 lt_cv_prog_compiler_static_works=yes 16414 fi 16415 fi 16416 $RM -r conftest* 16417 LDFLAGS=$save_LDFLAGS 16418 16419fi 16420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16421printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16422 16423if test yes = "$lt_cv_prog_compiler_static_works"; then 16424 : 16425else 16426 lt_prog_compiler_static= 16427fi 16428 16429 16430 16431 16432 16433 16434 16435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16436printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16437if test ${lt_cv_prog_compiler_c_o+y} 16438then : 16439 printf %s "(cached) " >&6 16440else $as_nop 16441 lt_cv_prog_compiler_c_o=no 16442 $RM -r conftest 2>/dev/null 16443 mkdir conftest 16444 cd conftest 16445 mkdir out 16446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16447 16448 lt_compiler_flag="-o out/conftest2.$ac_objext" 16449 # Insert the option either (1) after the last *FLAGS variable, or 16450 # (2) before a word containing "conftest.", or (3) at the end. 16451 # Note that $ac_compile itself does not contain backslashes and begins 16452 # with a dollar sign (not a hyphen), so the echo should work correctly. 16453 lt_compile=`echo "$ac_compile" | $SED \ 16454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16456 -e 's:$: $lt_compiler_flag:'` 16457 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16458 (eval "$lt_compile" 2>out/conftest.err) 16459 ac_status=$? 16460 cat out/conftest.err >&5 16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16462 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16463 then 16464 # The compiler can only warn and ignore the option if not recognized 16465 # So say no if there are warnings 16466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16467 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16468 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16469 lt_cv_prog_compiler_c_o=yes 16470 fi 16471 fi 16472 chmod u+w . 2>&5 16473 $RM conftest* 16474 # SGI C++ compiler will create directory out/ii_files/ for 16475 # template instantiation 16476 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16477 $RM out/* && rmdir out 16478 cd .. 16479 $RM -r conftest 16480 $RM conftest* 16481 16482fi 16483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16484printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16485 16486 16487 16488 16489 16490 16491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16492printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16493if test ${lt_cv_prog_compiler_c_o+y} 16494then : 16495 printf %s "(cached) " >&6 16496else $as_nop 16497 lt_cv_prog_compiler_c_o=no 16498 $RM -r conftest 2>/dev/null 16499 mkdir conftest 16500 cd conftest 16501 mkdir out 16502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16503 16504 lt_compiler_flag="-o out/conftest2.$ac_objext" 16505 # Insert the option either (1) after the last *FLAGS variable, or 16506 # (2) before a word containing "conftest.", or (3) at the end. 16507 # Note that $ac_compile itself does not contain backslashes and begins 16508 # with a dollar sign (not a hyphen), so the echo should work correctly. 16509 lt_compile=`echo "$ac_compile" | $SED \ 16510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16512 -e 's:$: $lt_compiler_flag:'` 16513 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16514 (eval "$lt_compile" 2>out/conftest.err) 16515 ac_status=$? 16516 cat out/conftest.err >&5 16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16518 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16519 then 16520 # The compiler can only warn and ignore the option if not recognized 16521 # So say no if there are warnings 16522 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16523 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16524 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16525 lt_cv_prog_compiler_c_o=yes 16526 fi 16527 fi 16528 chmod u+w . 2>&5 16529 $RM conftest* 16530 # SGI C++ compiler will create directory out/ii_files/ for 16531 # template instantiation 16532 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16533 $RM out/* && rmdir out 16534 cd .. 16535 $RM -r conftest 16536 $RM conftest* 16537 16538fi 16539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16540printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16541 16542 16543 16544 16545hard_links=nottested 16546if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16547 # do not overwrite the value of need_locks provided by the user 16548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16549printf %s "checking if we can lock with hard links... " >&6; } 16550 hard_links=yes 16551 $RM conftest* 16552 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16553 touch conftest.a 16554 ln conftest.a conftest.b 2>&5 || hard_links=no 16555 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16557printf "%s\n" "$hard_links" >&6; } 16558 if test no = "$hard_links"; then 16559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16560printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16561 need_locks=warn 16562 fi 16563else 16564 need_locks=no 16565fi 16566 16567 16568 16569 16570 16571 16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16573printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16574 16575 runpath_var= 16576 allow_undefined_flag= 16577 always_export_symbols=no 16578 archive_cmds= 16579 archive_expsym_cmds= 16580 compiler_needs_object=no 16581 enable_shared_with_static_runtimes=no 16582 export_dynamic_flag_spec= 16583 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16584 hardcode_automatic=no 16585 hardcode_direct=no 16586 hardcode_direct_absolute=no 16587 hardcode_libdir_flag_spec= 16588 hardcode_libdir_separator= 16589 hardcode_minus_L=no 16590 hardcode_shlibpath_var=unsupported 16591 inherit_rpath=no 16592 link_all_deplibs=unknown 16593 module_cmds= 16594 module_expsym_cmds= 16595 old_archive_from_new_cmds= 16596 old_archive_from_expsyms_cmds= 16597 thread_safe_flag_spec= 16598 whole_archive_flag_spec= 16599 # include_expsyms should be a list of space-separated symbols to be *always* 16600 # included in the symbol list 16601 include_expsyms= 16602 # exclude_expsyms can be an extended regexp of symbols to exclude 16603 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16604 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16605 # as well as any symbol that contains 'd'. 16606 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16607 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16608 # platforms (ab)use it in PIC code, but their linkers get confused if 16609 # the symbol is explicitly referenced. Since portable code cannot 16610 # rely on this symbol name, it's probably fine to never include it in 16611 # preloaded symbol tables. 16612 # Exclude shared library initialization/finalization symbols. 16613 extract_expsyms_cmds= 16614 16615 case $host_os in 16616 cygwin* | mingw* | pw32* | cegcc*) 16617 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16618 # When not using gcc, we currently assume that we are using 16619 # Microsoft Visual C++. 16620 if test yes != "$GCC"; then 16621 with_gnu_ld=no 16622 fi 16623 ;; 16624 interix*) 16625 # we just hope/assume this is gcc and not c89 (= MSVC++) 16626 with_gnu_ld=yes 16627 ;; 16628 openbsd* | bitrig*) 16629 with_gnu_ld=no 16630 ;; 16631 linux* | k*bsd*-gnu | gnu*) 16632 link_all_deplibs=no 16633 ;; 16634 esac 16635 16636 ld_shlibs=yes 16637 16638 # On some targets, GNU ld is compatible enough with the native linker 16639 # that we're better off using the native interface for both. 16640 lt_use_gnu_ld_interface=no 16641 if test yes = "$with_gnu_ld"; then 16642 case $host_os in 16643 aix*) 16644 # The AIX port of GNU ld has always aspired to compatibility 16645 # with the native linker. However, as the warning in the GNU ld 16646 # block says, versions before 2.19.5* couldn't really create working 16647 # shared libraries, regardless of the interface used. 16648 case `$LD -v 2>&1` in 16649 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16650 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16651 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16652 *) 16653 lt_use_gnu_ld_interface=yes 16654 ;; 16655 esac 16656 ;; 16657 *) 16658 lt_use_gnu_ld_interface=yes 16659 ;; 16660 esac 16661 fi 16662 16663 if test yes = "$lt_use_gnu_ld_interface"; then 16664 # If archive_cmds runs LD, not CC, wlarc should be empty 16665 wlarc='$wl' 16666 16667 # Set some defaults for GNU ld with shared library support. These 16668 # are reset later if shared libraries are not supported. Putting them 16669 # here allows them to be overridden if necessary. 16670 runpath_var=LD_RUN_PATH 16671 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16672 export_dynamic_flag_spec='$wl--export-dynamic' 16673 # ancient GNU ld didn't support --whole-archive et. al. 16674 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16675 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16676 else 16677 whole_archive_flag_spec= 16678 fi 16679 supports_anon_versioning=no 16680 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 16681 *GNU\ gold*) supports_anon_versioning=yes ;; 16682 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16683 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16684 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16685 *\ 2.11.*) ;; # other 2.11 versions 16686 *) supports_anon_versioning=yes ;; 16687 esac 16688 16689 # See if GNU ld supports shared libraries. 16690 case $host_os in 16691 aix[3-9]*) 16692 # On AIX/PPC, the GNU linker is very broken 16693 if test ia64 != "$host_cpu"; then 16694 ld_shlibs=no 16695 cat <<_LT_EOF 1>&2 16696 16697*** Warning: the GNU linker, at least up to release 2.19, is reported 16698*** to be unable to reliably create shared libraries on AIX. 16699*** Therefore, libtool is disabling shared libraries support. If you 16700*** really care for shared libraries, you may want to install binutils 16701*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16702*** You will then need to restart the configuration process. 16703 16704_LT_EOF 16705 fi 16706 ;; 16707 16708 amigaos*) 16709 case $host_cpu in 16710 powerpc) 16711 # see comment about AmigaOS4 .so support 16712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16713 archive_expsym_cmds='' 16714 ;; 16715 m68k) 16716 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)' 16717 hardcode_libdir_flag_spec='-L$libdir' 16718 hardcode_minus_L=yes 16719 ;; 16720 esac 16721 ;; 16722 16723 beos*) 16724 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16725 allow_undefined_flag=unsupported 16726 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16727 # support --undefined. This deserves some investigation. FIXME 16728 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16729 else 16730 ld_shlibs=no 16731 fi 16732 ;; 16733 16734 cygwin* | mingw* | pw32* | cegcc*) 16735 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16736 # as there is no search path for DLLs. 16737 hardcode_libdir_flag_spec='-L$libdir' 16738 export_dynamic_flag_spec='$wl--export-all-symbols' 16739 allow_undefined_flag=unsupported 16740 always_export_symbols=no 16741 enable_shared_with_static_runtimes=yes 16742 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' 16743 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16744 16745 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16747 # If the export-symbols file already is a .def file, use it as 16748 # is; otherwise, prepend EXPORTS... 16749 archive_expsym_cmds='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 else 16752 echo EXPORTS > $output_objdir/$soname.def; 16753 cat $export_symbols >> $output_objdir/$soname.def; 16754 fi~ 16755 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16756 else 16757 ld_shlibs=no 16758 fi 16759 ;; 16760 16761 haiku*) 16762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16763 link_all_deplibs=yes 16764 ;; 16765 16766 os2*) 16767 hardcode_libdir_flag_spec='-L$libdir' 16768 hardcode_minus_L=yes 16769 allow_undefined_flag=unsupported 16770 shrext_cmds=.dll 16771 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16772 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16773 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16774 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16775 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16776 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16777 emximp -o $lib $output_objdir/$libname.def' 16778 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16779 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16780 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16781 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16782 prefix_cmds="$SED"~ 16783 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16784 prefix_cmds="$prefix_cmds -e 1d"; 16785 fi~ 16786 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16787 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16788 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16789 emximp -o $lib $output_objdir/$libname.def' 16790 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16791 enable_shared_with_static_runtimes=yes 16792 ;; 16793 16794 interix[3-9]*) 16795 hardcode_direct=no 16796 hardcode_shlibpath_var=no 16797 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16798 export_dynamic_flag_spec='$wl-E' 16799 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16800 # Instead, shared libraries are loaded at an image base (0x10000000 by 16801 # default) and relocated if they conflict, which is a slow very memory 16802 # consuming and fragmenting process. To avoid this, we pick a random, 16803 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16804 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16805 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16806 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' 16807 ;; 16808 16809 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16810 tmp_diet=no 16811 if test linux-dietlibc = "$host_os"; then 16812 case $cc_basename in 16813 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16814 esac 16815 fi 16816 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16817 && test no = "$tmp_diet" 16818 then 16819 tmp_addflag=' $pic_flag' 16820 tmp_sharedflag='-shared' 16821 case $cc_basename,$host_cpu in 16822 pgcc*) # Portland Group C compiler 16823 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' 16824 tmp_addflag=' $pic_flag' 16825 ;; 16826 pgf77* | pgf90* | pgf95* | pgfortran*) 16827 # Portland Group f77 and f90 compilers 16828 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' 16829 tmp_addflag=' $pic_flag -Mnomain' ;; 16830 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16831 tmp_addflag=' -i_dynamic' ;; 16832 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16833 tmp_addflag=' -i_dynamic -nofor_main' ;; 16834 ifc* | ifort*) # Intel Fortran compiler 16835 tmp_addflag=' -nofor_main' ;; 16836 lf95*) # Lahey Fortran 8.1 16837 whole_archive_flag_spec= 16838 tmp_sharedflag='--shared' ;; 16839 nagfor*) # NAGFOR 5.3 16840 tmp_sharedflag='-Wl,-shared' ;; 16841 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16842 tmp_sharedflag='-qmkshrobj' 16843 tmp_addflag= ;; 16844 nvcc*) # Cuda Compiler Driver 2.2 16845 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' 16846 compiler_needs_object=yes 16847 ;; 16848 esac 16849 case `$CC -V 2>&1 | sed 5q` in 16850 *Sun\ C*) # Sun C 5.9 16851 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' 16852 compiler_needs_object=yes 16853 tmp_sharedflag='-G' ;; 16854 *Sun\ F*) # Sun Fortran 8.3 16855 tmp_sharedflag='-G' ;; 16856 esac 16857 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16858 16859 if test yes = "$supports_anon_versioning"; then 16860 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16861 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16862 echo "local: *; };" >> $output_objdir/$libname.ver~ 16863 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16864 fi 16865 16866 case $cc_basename in 16867 tcc*) 16868 export_dynamic_flag_spec='-rdynamic' 16869 ;; 16870 xlf* | bgf* | bgxlf* | mpixlf*) 16871 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16872 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16873 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16874 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16875 if test yes = "$supports_anon_versioning"; then 16876 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16877 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16878 echo "local: *; };" >> $output_objdir/$libname.ver~ 16879 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16880 fi 16881 ;; 16882 esac 16883 else 16884 ld_shlibs=no 16885 fi 16886 ;; 16887 16888 netbsd* | netbsdelf*-gnu) 16889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16890 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16891 wlarc= 16892 else 16893 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16894 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16895 fi 16896 ;; 16897 16898 solaris*) 16899 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16900 ld_shlibs=no 16901 cat <<_LT_EOF 1>&2 16902 16903*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16904*** create shared libraries on Solaris systems. Therefore, libtool 16905*** is disabling shared libraries support. We urge you to upgrade GNU 16906*** binutils to release 2.9.1 or newer. Another option is to modify 16907*** your PATH or compiler configuration so that the native linker is 16908*** used, and then restart. 16909 16910_LT_EOF 16911 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16912 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16913 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16914 else 16915 ld_shlibs=no 16916 fi 16917 ;; 16918 16919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16920 case `$LD -v 2>&1` in 16921 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16922 ld_shlibs=no 16923 cat <<_LT_EOF 1>&2 16924 16925*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16926*** reliably create shared libraries on SCO systems. Therefore, libtool 16927*** is disabling shared libraries support. We urge you to upgrade GNU 16928*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16929*** your PATH or compiler configuration so that the native linker is 16930*** used, and then restart. 16931 16932_LT_EOF 16933 ;; 16934 *) 16935 # For security reasons, it is highly recommended that you always 16936 # use absolute paths for naming shared libraries, and exclude the 16937 # DT_RUNPATH tag from executables and libraries. But doing so 16938 # requires that you compile everything twice, which is a pain. 16939 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16940 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16942 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16943 else 16944 ld_shlibs=no 16945 fi 16946 ;; 16947 esac 16948 ;; 16949 16950 sunos4*) 16951 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16952 wlarc= 16953 hardcode_direct=yes 16954 hardcode_shlibpath_var=no 16955 ;; 16956 16957 *) 16958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16959 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16960 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16961 else 16962 ld_shlibs=no 16963 fi 16964 ;; 16965 esac 16966 16967 if test no = "$ld_shlibs"; then 16968 runpath_var= 16969 hardcode_libdir_flag_spec= 16970 export_dynamic_flag_spec= 16971 whole_archive_flag_spec= 16972 fi 16973 else 16974 # PORTME fill in a description of your system's linker (not GNU ld) 16975 case $host_os in 16976 aix3*) 16977 allow_undefined_flag=unsupported 16978 always_export_symbols=yes 16979 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' 16980 # Note: this linker hardcodes the directories in LIBPATH if there 16981 # are no directories specified by -L. 16982 hardcode_minus_L=yes 16983 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16984 # Neither direct hardcoding nor static linking is supported with a 16985 # broken collect2. 16986 hardcode_direct=unsupported 16987 fi 16988 ;; 16989 16990 aix[4-9]*) 16991 if test ia64 = "$host_cpu"; then 16992 # On IA64, the linker does run time linking by default, so we don't 16993 # have to do anything special. 16994 aix_use_runtimelinking=no 16995 exp_sym_flag='-Bexport' 16996 no_entry_flag= 16997 else 16998 # If we're using GNU nm, then we don't want the "-C" option. 16999 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17000 # Without the "-l" option, or with the "-B" option, AIX nm treats 17001 # weak defined symbols like other global defined symbols, whereas 17002 # GNU nm marks them as "W". 17003 # While the 'weak' keyword is ignored in the Export File, we need 17004 # it in the Import File for the 'aix-soname' feature, so we have 17005 # to replace the "-B" option with "-P" for AIX nm. 17006 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17007 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' 17008 else 17009 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' 17010 fi 17011 aix_use_runtimelinking=no 17012 17013 # Test if we are trying to use run time linking or normal 17014 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17015 # have runtime linking enabled, and use it for executables. 17016 # For shared libraries, we enable/disable runtime linking 17017 # depending on the kind of the shared library created - 17018 # when "with_aix_soname,aix_use_runtimelinking" is: 17019 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 17020 # "aix,yes" lib.so shared, rtl:yes, for executables 17021 # lib.a static archive 17022 # "both,no" lib.so.V(shr.o) shared, rtl:yes 17023 # lib.a(lib.so.V) shared, rtl:no, for executables 17024 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 17025 # lib.a(lib.so.V) shared, rtl:no 17026 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 17027 # lib.a static archive 17028 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17029 for ld_flag in $LDFLAGS; do 17030 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 17031 aix_use_runtimelinking=yes 17032 break 17033 fi 17034 done 17035 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 17036 # With aix-soname=svr4, we create the lib.so.V shared archives only, 17037 # so we don't have lib.a shared libs to link our executables. 17038 # We have to force runtime linking in this case. 17039 aix_use_runtimelinking=yes 17040 LDFLAGS="$LDFLAGS -Wl,-brtl" 17041 fi 17042 ;; 17043 esac 17044 17045 exp_sym_flag='-bexport' 17046 no_entry_flag='-bnoentry' 17047 fi 17048 17049 # When large executables or shared objects are built, AIX ld can 17050 # have problems creating the table of contents. If linking a library 17051 # or program results in "error TOC overflow" add -mminimal-toc to 17052 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17053 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17054 17055 archive_cmds='' 17056 hardcode_direct=yes 17057 hardcode_direct_absolute=yes 17058 hardcode_libdir_separator=':' 17059 link_all_deplibs=yes 17060 file_list_spec='$wl-f,' 17061 case $with_aix_soname,$aix_use_runtimelinking in 17062 aix,*) ;; # traditional, no import file 17063 svr4,* | *,yes) # use import file 17064 # The Import File defines what to hardcode. 17065 hardcode_direct=no 17066 hardcode_direct_absolute=no 17067 ;; 17068 esac 17069 17070 if test yes = "$GCC"; then 17071 case $host_os in aix4.[012]|aix4.[012].*) 17072 # We only want to do this on AIX 4.2 and lower, the check 17073 # below for broken collect2 doesn't work under 4.3+ 17074 collect2name=`$CC -print-prog-name=collect2` 17075 if test -f "$collect2name" && 17076 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17077 then 17078 # We have reworked collect2 17079 : 17080 else 17081 # We have old collect2 17082 hardcode_direct=unsupported 17083 # It fails to find uninstalled libraries when the uninstalled 17084 # path is not listed in the libpath. Setting hardcode_minus_L 17085 # to unsupported forces relinking 17086 hardcode_minus_L=yes 17087 hardcode_libdir_flag_spec='-L$libdir' 17088 hardcode_libdir_separator= 17089 fi 17090 ;; 17091 esac 17092 shared_flag='-shared' 17093 if test yes = "$aix_use_runtimelinking"; then 17094 shared_flag="$shared_flag "'$wl-G' 17095 fi 17096 # Need to ensure runtime linking is disabled for the traditional 17097 # shared library, or the linker may eventually find shared libraries 17098 # /with/ Import File - we do not want to mix them. 17099 shared_flag_aix='-shared' 17100 shared_flag_svr4='-shared $wl-G' 17101 else 17102 # not using gcc 17103 if test ia64 = "$host_cpu"; then 17104 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17105 # chokes on -Wl,-G. The following line is correct: 17106 shared_flag='-G' 17107 else 17108 if test yes = "$aix_use_runtimelinking"; then 17109 shared_flag='$wl-G' 17110 else 17111 shared_flag='$wl-bM:SRE' 17112 fi 17113 shared_flag_aix='$wl-bM:SRE' 17114 shared_flag_svr4='$wl-G' 17115 fi 17116 fi 17117 17118 export_dynamic_flag_spec='$wl-bexpall' 17119 # It seems that -bexpall does not export symbols beginning with 17120 # underscore (_), so it is better to generate a list of symbols to export. 17121 always_export_symbols=yes 17122 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 17123 # Warning - without using the other runtime loading flags (-brtl), 17124 # -berok will link without error, but may produce a broken library. 17125 allow_undefined_flag='-berok' 17126 # Determine the default libpath from the value encoded in an 17127 # empty executable. 17128 if test set = "${lt_cv_aix_libpath+set}"; then 17129 aix_libpath=$lt_cv_aix_libpath 17130else 17131 if test ${lt_cv_aix_libpath_+y} 17132then : 17133 printf %s "(cached) " >&6 17134else $as_nop 17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17136/* end confdefs.h. */ 17137 17138int 17139main (void) 17140{ 17141 17142 ; 17143 return 0; 17144} 17145_ACEOF 17146if ac_fn_c_try_link "$LINENO" 17147then : 17148 17149 lt_aix_libpath_sed=' 17150 /Import File Strings/,/^$/ { 17151 /^0/ { 17152 s/^0 *\([^ ]*\) *$/\1/ 17153 p 17154 } 17155 }' 17156 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17157 # Check for a 64-bit object if we didn't find anything. 17158 if test -z "$lt_cv_aix_libpath_"; then 17159 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17160 fi 17161fi 17162rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17163 conftest$ac_exeext conftest.$ac_ext 17164 if test -z "$lt_cv_aix_libpath_"; then 17165 lt_cv_aix_libpath_=/usr/lib:/lib 17166 fi 17167 17168fi 17169 17170 aix_libpath=$lt_cv_aix_libpath_ 17171fi 17172 17173 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17174 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 17175 else 17176 if test ia64 = "$host_cpu"; then 17177 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 17178 allow_undefined_flag="-z nodefs" 17179 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" 17180 else 17181 # Determine the default libpath from the value encoded in an 17182 # empty executable. 17183 if test set = "${lt_cv_aix_libpath+set}"; then 17184 aix_libpath=$lt_cv_aix_libpath 17185else 17186 if test ${lt_cv_aix_libpath_+y} 17187then : 17188 printf %s "(cached) " >&6 17189else $as_nop 17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17191/* end confdefs.h. */ 17192 17193int 17194main (void) 17195{ 17196 17197 ; 17198 return 0; 17199} 17200_ACEOF 17201if ac_fn_c_try_link "$LINENO" 17202then : 17203 17204 lt_aix_libpath_sed=' 17205 /Import File Strings/,/^$/ { 17206 /^0/ { 17207 s/^0 *\([^ ]*\) *$/\1/ 17208 p 17209 } 17210 }' 17211 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17212 # Check for a 64-bit object if we didn't find anything. 17213 if test -z "$lt_cv_aix_libpath_"; then 17214 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17215 fi 17216fi 17217rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17218 conftest$ac_exeext conftest.$ac_ext 17219 if test -z "$lt_cv_aix_libpath_"; then 17220 lt_cv_aix_libpath_=/usr/lib:/lib 17221 fi 17222 17223fi 17224 17225 aix_libpath=$lt_cv_aix_libpath_ 17226fi 17227 17228 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17229 # Warning - without using the other run time loading flags, 17230 # -berok will link without error, but may produce a broken library. 17231 no_undefined_flag=' $wl-bernotok' 17232 allow_undefined_flag=' $wl-berok' 17233 if test yes = "$with_gnu_ld"; then 17234 # We only use this code for GNU lds that support --whole-archive. 17235 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 17236 else 17237 # Exported symbols can be pulled into shared objects from archives 17238 whole_archive_flag_spec='$convenience' 17239 fi 17240 archive_cmds_need_lc=yes 17241 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17242 # -brtl affects multiple linker settings, -berok does not and is overridden later 17243 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17244 if test svr4 != "$with_aix_soname"; then 17245 # This is similar to how AIX traditionally builds its shared libraries. 17246 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' 17247 fi 17248 if test aix != "$with_aix_soname"; then 17249 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' 17250 else 17251 # used by -dlpreopen to get the symbols 17252 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17253 fi 17254 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 17255 fi 17256 fi 17257 ;; 17258 17259 amigaos*) 17260 case $host_cpu in 17261 powerpc) 17262 # see comment about AmigaOS4 .so support 17263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17264 archive_expsym_cmds='' 17265 ;; 17266 m68k) 17267 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)' 17268 hardcode_libdir_flag_spec='-L$libdir' 17269 hardcode_minus_L=yes 17270 ;; 17271 esac 17272 ;; 17273 17274 bsdi[45]*) 17275 export_dynamic_flag_spec=-rdynamic 17276 ;; 17277 17278 cygwin* | mingw* | pw32* | cegcc*) 17279 # When not using gcc, we currently assume that we are using 17280 # Microsoft Visual C++. 17281 # hardcode_libdir_flag_spec is actually meaningless, as there is 17282 # no search path for DLLs. 17283 case $cc_basename in 17284 cl*) 17285 # Native MSVC 17286 hardcode_libdir_flag_spec=' ' 17287 allow_undefined_flag=unsupported 17288 always_export_symbols=yes 17289 file_list_spec='@' 17290 # Tell ltmain to make .lib files, not .a files. 17291 libext=lib 17292 # Tell ltmain to make .dll files, not .so files. 17293 shrext_cmds=.dll 17294 # FIXME: Setting linknames here is a bad hack. 17295 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17296 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17297 cp "$export_symbols" "$output_objdir/$soname.def"; 17298 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17299 else 17300 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17301 fi~ 17302 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17303 linknames=' 17304 # The linker will not automatically build a static lib if we build a DLL. 17305 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 17306 enable_shared_with_static_runtimes=yes 17307 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17308 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17309 # Don't use ranlib 17310 old_postinstall_cmds='chmod 644 $oldlib' 17311 postlink_cmds='lt_outputfile="@OUTPUT@"~ 17312 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17313 case $lt_outputfile in 17314 *.exe|*.EXE) ;; 17315 *) 17316 lt_outputfile=$lt_outputfile.exe 17317 lt_tool_outputfile=$lt_tool_outputfile.exe 17318 ;; 17319 esac~ 17320 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17321 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17322 $RM "$lt_outputfile.manifest"; 17323 fi' 17324 ;; 17325 *) 17326 # Assume MSVC wrapper 17327 hardcode_libdir_flag_spec=' ' 17328 allow_undefined_flag=unsupported 17329 # Tell ltmain to make .lib files, not .a files. 17330 libext=lib 17331 # Tell ltmain to make .dll files, not .so files. 17332 shrext_cmds=.dll 17333 # FIXME: Setting linknames here is a bad hack. 17334 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17335 # The linker will automatically build a .lib file if we build a DLL. 17336 old_archive_from_new_cmds='true' 17337 # FIXME: Should let the user specify the lib program. 17338 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17339 enable_shared_with_static_runtimes=yes 17340 ;; 17341 esac 17342 ;; 17343 17344 darwin* | rhapsody*) 17345 17346 17347 archive_cmds_need_lc=no 17348 hardcode_direct=no 17349 hardcode_automatic=yes 17350 hardcode_shlibpath_var=unsupported 17351 if test yes = "$lt_cv_ld_force_load"; then 17352 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\"`' 17353 17354 else 17355 whole_archive_flag_spec='' 17356 fi 17357 link_all_deplibs=yes 17358 allow_undefined_flag=$_lt_dar_allow_undefined 17359 case $cc_basename in 17360 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 17361 *) _lt_dar_can_shared=$GCC ;; 17362 esac 17363 if test yes = "$_lt_dar_can_shared"; then 17364 output_verbose_link_cmd=func_echo_all 17365 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17366 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17367 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" 17368 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" 17369 17370 else 17371 ld_shlibs=no 17372 fi 17373 17374 ;; 17375 17376 dgux*) 17377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17378 hardcode_libdir_flag_spec='-L$libdir' 17379 hardcode_shlibpath_var=no 17380 ;; 17381 17382 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17383 # support. Future versions do this automatically, but an explicit c++rt0.o 17384 # does not break anything, and helps significantly (at the cost of a little 17385 # extra space). 17386 freebsd2.2*) 17387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17388 hardcode_libdir_flag_spec='-R$libdir' 17389 hardcode_direct=yes 17390 hardcode_shlibpath_var=no 17391 ;; 17392 17393 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17394 freebsd2.*) 17395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17396 hardcode_direct=yes 17397 hardcode_minus_L=yes 17398 hardcode_shlibpath_var=no 17399 ;; 17400 17401 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17402 freebsd* | dragonfly*) 17403 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17404 hardcode_libdir_flag_spec='-R$libdir' 17405 hardcode_direct=yes 17406 hardcode_shlibpath_var=no 17407 ;; 17408 17409 hpux9*) 17410 if test yes = "$GCC"; then 17411 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' 17412 else 17413 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' 17414 fi 17415 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17416 hardcode_libdir_separator=: 17417 hardcode_direct=yes 17418 17419 # hardcode_minus_L: Not really in the search PATH, 17420 # but as the default location of the library. 17421 hardcode_minus_L=yes 17422 export_dynamic_flag_spec='$wl-E' 17423 ;; 17424 17425 hpux10*) 17426 if test yes,no = "$GCC,$with_gnu_ld"; then 17427 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17428 else 17429 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17430 fi 17431 if test no = "$with_gnu_ld"; then 17432 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17433 hardcode_libdir_separator=: 17434 hardcode_direct=yes 17435 hardcode_direct_absolute=yes 17436 export_dynamic_flag_spec='$wl-E' 17437 # hardcode_minus_L: Not really in the search PATH, 17438 # but as the default location of the library. 17439 hardcode_minus_L=yes 17440 fi 17441 ;; 17442 17443 hpux11*) 17444 if test yes,no = "$GCC,$with_gnu_ld"; then 17445 case $host_cpu in 17446 hppa*64*) 17447 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17448 ;; 17449 ia64*) 17450 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17451 ;; 17452 *) 17453 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17454 ;; 17455 esac 17456 else 17457 case $host_cpu in 17458 hppa*64*) 17459 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17460 ;; 17461 ia64*) 17462 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17463 ;; 17464 *) 17465 17466 # Older versions of the 11.00 compiler do not understand -b yet 17467 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17469printf %s "checking if $CC understands -b... " >&6; } 17470if test ${lt_cv_prog_compiler__b+y} 17471then : 17472 printf %s "(cached) " >&6 17473else $as_nop 17474 lt_cv_prog_compiler__b=no 17475 save_LDFLAGS=$LDFLAGS 17476 LDFLAGS="$LDFLAGS -b" 17477 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17478 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17479 # The linker can only warn and ignore the option if not recognized 17480 # So say no if there are warnings 17481 if test -s conftest.err; then 17482 # Append any errors to the config.log. 17483 cat conftest.err 1>&5 17484 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17486 if diff conftest.exp conftest.er2 >/dev/null; then 17487 lt_cv_prog_compiler__b=yes 17488 fi 17489 else 17490 lt_cv_prog_compiler__b=yes 17491 fi 17492 fi 17493 $RM -r conftest* 17494 LDFLAGS=$save_LDFLAGS 17495 17496fi 17497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17498printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17499 17500if test yes = "$lt_cv_prog_compiler__b"; then 17501 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17502else 17503 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17504fi 17505 17506 ;; 17507 esac 17508 fi 17509 if test no = "$with_gnu_ld"; then 17510 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17511 hardcode_libdir_separator=: 17512 17513 case $host_cpu in 17514 hppa*64*|ia64*) 17515 hardcode_direct=no 17516 hardcode_shlibpath_var=no 17517 ;; 17518 *) 17519 hardcode_direct=yes 17520 hardcode_direct_absolute=yes 17521 export_dynamic_flag_spec='$wl-E' 17522 17523 # hardcode_minus_L: Not really in the search PATH, 17524 # but as the default location of the library. 17525 hardcode_minus_L=yes 17526 ;; 17527 esac 17528 fi 17529 ;; 17530 17531 irix5* | irix6* | nonstopux*) 17532 if test yes = "$GCC"; then 17533 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' 17534 # Try to use the -exported_symbol ld option, if it does not 17535 # work, assume that -exports_file does not work either and 17536 # implicitly export all symbols. 17537 # This should be the same for all languages, so no per-tag cache variable. 17538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17539printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17540if test ${lt_cv_irix_exported_symbol+y} 17541then : 17542 printf %s "(cached) " >&6 17543else $as_nop 17544 save_LDFLAGS=$LDFLAGS 17545 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17547/* end confdefs.h. */ 17548int foo (void) { return 0; } 17549_ACEOF 17550if ac_fn_c_try_link "$LINENO" 17551then : 17552 lt_cv_irix_exported_symbol=yes 17553else $as_nop 17554 lt_cv_irix_exported_symbol=no 17555fi 17556rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17557 conftest$ac_exeext conftest.$ac_ext 17558 LDFLAGS=$save_LDFLAGS 17559fi 17560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17561printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17562 if test yes = "$lt_cv_irix_exported_symbol"; then 17563 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' 17564 fi 17565 link_all_deplibs=no 17566 else 17567 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' 17568 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' 17569 fi 17570 archive_cmds_need_lc='no' 17571 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17572 hardcode_libdir_separator=: 17573 inherit_rpath=yes 17574 link_all_deplibs=yes 17575 ;; 17576 17577 linux*) 17578 case $cc_basename in 17579 tcc*) 17580 # Fabrice Bellard et al's Tiny C Compiler 17581 ld_shlibs=yes 17582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17583 ;; 17584 esac 17585 ;; 17586 17587 netbsd* | netbsdelf*-gnu) 17588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17590 else 17591 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17592 fi 17593 hardcode_libdir_flag_spec='-R$libdir' 17594 hardcode_direct=yes 17595 hardcode_shlibpath_var=no 17596 ;; 17597 17598 newsos6) 17599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17600 hardcode_direct=yes 17601 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17602 hardcode_libdir_separator=: 17603 hardcode_shlibpath_var=no 17604 ;; 17605 17606 *nto* | *qnx*) 17607 ;; 17608 17609 openbsd* | bitrig*) 17610 if test -f /usr/libexec/ld.so; then 17611 hardcode_direct=yes 17612 hardcode_shlibpath_var=no 17613 hardcode_direct_absolute=yes 17614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17615 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17616 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17617 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17618 export_dynamic_flag_spec='$wl-E' 17619 else 17620 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17621 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17622 fi 17623 else 17624 ld_shlibs=no 17625 fi 17626 ;; 17627 17628 os2*) 17629 hardcode_libdir_flag_spec='-L$libdir' 17630 hardcode_minus_L=yes 17631 allow_undefined_flag=unsupported 17632 shrext_cmds=.dll 17633 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17634 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17635 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17636 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17637 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17638 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17639 emximp -o $lib $output_objdir/$libname.def' 17640 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17641 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17642 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17643 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17644 prefix_cmds="$SED"~ 17645 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17646 prefix_cmds="$prefix_cmds -e 1d"; 17647 fi~ 17648 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17649 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17650 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17651 emximp -o $lib $output_objdir/$libname.def' 17652 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17653 enable_shared_with_static_runtimes=yes 17654 ;; 17655 17656 osf3*) 17657 if test yes = "$GCC"; then 17658 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17659 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' 17660 else 17661 allow_undefined_flag=' -expect_unresolved \*' 17662 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' 17663 fi 17664 archive_cmds_need_lc='no' 17665 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17666 hardcode_libdir_separator=: 17667 ;; 17668 17669 osf4* | osf5*) # as osf3* with the addition of -msym flag 17670 if test yes = "$GCC"; then 17671 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17672 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' 17673 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17674 else 17675 allow_undefined_flag=' -expect_unresolved \*' 17676 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' 17677 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~ 17678 $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' 17679 17680 # Both c and cxx compiler support -rpath directly 17681 hardcode_libdir_flag_spec='-rpath $libdir' 17682 fi 17683 archive_cmds_need_lc='no' 17684 hardcode_libdir_separator=: 17685 ;; 17686 17687 solaris*) 17688 no_undefined_flag=' -z defs' 17689 if test yes = "$GCC"; then 17690 wlarc='$wl' 17691 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17693 $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' 17694 else 17695 case `$CC -V 2>&1` in 17696 *"Compilers 5.0"*) 17697 wlarc='' 17698 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17699 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17700 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17701 ;; 17702 *) 17703 wlarc='$wl' 17704 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17705 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17706 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17707 ;; 17708 esac 17709 fi 17710 hardcode_libdir_flag_spec='-R$libdir' 17711 hardcode_shlibpath_var=no 17712 case $host_os in 17713 solaris2.[0-5] | solaris2.[0-5].*) ;; 17714 *) 17715 # The compiler driver will combine and reorder linker options, 17716 # but understands '-z linker_flag'. GCC discards it without '$wl', 17717 # but is careful enough not to reorder. 17718 # Supported since Solaris 2.6 (maybe 2.5.1?) 17719 if test yes = "$GCC"; then 17720 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17721 else 17722 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17723 fi 17724 ;; 17725 esac 17726 link_all_deplibs=yes 17727 ;; 17728 17729 sunos4*) 17730 if test sequent = "$host_vendor"; then 17731 # Use $CC to link under sequent, because it throws in some extra .o 17732 # files that make .init and .fini sections work. 17733 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17734 else 17735 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17736 fi 17737 hardcode_libdir_flag_spec='-L$libdir' 17738 hardcode_direct=yes 17739 hardcode_minus_L=yes 17740 hardcode_shlibpath_var=no 17741 ;; 17742 17743 sysv4) 17744 case $host_vendor in 17745 sni) 17746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17747 hardcode_direct=yes # is this really true??? 17748 ;; 17749 siemens) 17750 ## LD is ld it makes a PLAMLIB 17751 ## CC just makes a GrossModule. 17752 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17753 reload_cmds='$CC -r -o $output$reload_objs' 17754 hardcode_direct=no 17755 ;; 17756 motorola) 17757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17758 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17759 ;; 17760 esac 17761 runpath_var='LD_RUN_PATH' 17762 hardcode_shlibpath_var=no 17763 ;; 17764 17765 sysv4.3*) 17766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17767 hardcode_shlibpath_var=no 17768 export_dynamic_flag_spec='-Bexport' 17769 ;; 17770 17771 sysv4*MP*) 17772 if test -d /usr/nec; then 17773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17774 hardcode_shlibpath_var=no 17775 runpath_var=LD_RUN_PATH 17776 hardcode_runpath_var=yes 17777 ld_shlibs=yes 17778 fi 17779 ;; 17780 17781 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17782 no_undefined_flag='$wl-z,text' 17783 archive_cmds_need_lc=no 17784 hardcode_shlibpath_var=no 17785 runpath_var='LD_RUN_PATH' 17786 17787 if test yes = "$GCC"; then 17788 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17789 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17790 else 17791 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17792 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17793 fi 17794 ;; 17795 17796 sysv5* | sco3.2v5* | sco5v6*) 17797 # Note: We CANNOT use -z defs as we might desire, because we do not 17798 # link with -lc, and that would cause any symbols used from libc to 17799 # always be unresolved, which means just about no library would 17800 # ever link correctly. If we're not using GNU ld we use -z text 17801 # though, which does catch some bad symbols but isn't as heavy-handed 17802 # as -z defs. 17803 no_undefined_flag='$wl-z,text' 17804 allow_undefined_flag='$wl-z,nodefs' 17805 archive_cmds_need_lc=no 17806 hardcode_shlibpath_var=no 17807 hardcode_libdir_flag_spec='$wl-R,$libdir' 17808 hardcode_libdir_separator=':' 17809 link_all_deplibs=yes 17810 export_dynamic_flag_spec='$wl-Bexport' 17811 runpath_var='LD_RUN_PATH' 17812 17813 if test yes = "$GCC"; then 17814 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17815 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17816 else 17817 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17818 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17819 fi 17820 ;; 17821 17822 uts4*) 17823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17824 hardcode_libdir_flag_spec='-L$libdir' 17825 hardcode_shlibpath_var=no 17826 ;; 17827 17828 *) 17829 ld_shlibs=no 17830 ;; 17831 esac 17832 17833 if test sni = "$host_vendor"; then 17834 case $host in 17835 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17836 export_dynamic_flag_spec='$wl-Blargedynsym' 17837 ;; 17838 esac 17839 fi 17840 fi 17841 17842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17843printf "%s\n" "$ld_shlibs" >&6; } 17844test no = "$ld_shlibs" && can_build_shared=no 17845 17846with_gnu_ld=$with_gnu_ld 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862# 17863# Do we need to explicitly link libc? 17864# 17865case "x$archive_cmds_need_lc" in 17866x|xyes) 17867 # Assume -lc should be added 17868 archive_cmds_need_lc=yes 17869 17870 if test yes,yes = "$GCC,$enable_shared"; then 17871 case $archive_cmds in 17872 *'~'*) 17873 # FIXME: we may have to deal with multi-command sequences. 17874 ;; 17875 '$CC '*) 17876 # Test whether the compiler implicitly links with -lc since on some 17877 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17878 # to ld, don't add -lc before -lgcc. 17879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17880printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17881if test ${lt_cv_archive_cmds_need_lc+y} 17882then : 17883 printf %s "(cached) " >&6 17884else $as_nop 17885 $RM conftest* 17886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17887 17888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17889 (eval $ac_compile) 2>&5 17890 ac_status=$? 17891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17892 test $ac_status = 0; } 2>conftest.err; then 17893 soname=conftest 17894 lib=conftest 17895 libobjs=conftest.$ac_objext 17896 deplibs= 17897 wl=$lt_prog_compiler_wl 17898 pic_flag=$lt_prog_compiler_pic 17899 compiler_flags=-v 17900 linker_flags=-v 17901 verstring= 17902 output_objdir=. 17903 libname=conftest 17904 lt_save_allow_undefined_flag=$allow_undefined_flag 17905 allow_undefined_flag= 17906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17907 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17908 ac_status=$? 17909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17910 test $ac_status = 0; } 17911 then 17912 lt_cv_archive_cmds_need_lc=no 17913 else 17914 lt_cv_archive_cmds_need_lc=yes 17915 fi 17916 allow_undefined_flag=$lt_save_allow_undefined_flag 17917 else 17918 cat conftest.err 1>&5 17919 fi 17920 $RM conftest* 17921 17922fi 17923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17924printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17925 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17926 ;; 17927 esac 17928 fi 17929 ;; 17930esac 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18084printf %s "checking dynamic linker characteristics... " >&6; } 18085 18086if test yes = "$GCC"; then 18087 case $host_os in 18088 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 18089 *) lt_awk_arg='/^libraries:/' ;; 18090 esac 18091 case $host_os in 18092 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 18093 *) lt_sed_strip_eq='s|=/|/|g' ;; 18094 esac 18095 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 18096 case $lt_search_path_spec in 18097 *\;*) 18098 # if the path contains ";" then we assume it to be the separator 18099 # otherwise default to the standard path separator (i.e. ":") - it is 18100 # assumed that no part of a normal pathname contains ";" but that should 18101 # okay in the real world where ";" in dirpaths is itself problematic. 18102 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 18103 ;; 18104 *) 18105 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 18106 ;; 18107 esac 18108 # Ok, now we have the path, separated by spaces, we can step through it 18109 # and add multilib dir if necessary... 18110 lt_tmp_lt_search_path_spec= 18111 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 18112 # ...but if some path component already ends with the multilib dir we assume 18113 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 18114 case "$lt_multi_os_dir; $lt_search_path_spec " in 18115 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 18116 lt_multi_os_dir= 18117 ;; 18118 esac 18119 for lt_sys_path in $lt_search_path_spec; do 18120 if test -d "$lt_sys_path$lt_multi_os_dir"; then 18121 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 18122 elif test -n "$lt_multi_os_dir"; then 18123 test -d "$lt_sys_path" && \ 18124 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 18125 fi 18126 done 18127 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 18128BEGIN {RS = " "; FS = "/|\n";} { 18129 lt_foo = ""; 18130 lt_count = 0; 18131 for (lt_i = NF; lt_i > 0; lt_i--) { 18132 if ($lt_i != "" && $lt_i != ".") { 18133 if ($lt_i == "..") { 18134 lt_count++; 18135 } else { 18136 if (lt_count == 0) { 18137 lt_foo = "/" $lt_i lt_foo; 18138 } else { 18139 lt_count--; 18140 } 18141 } 18142 } 18143 } 18144 if (lt_foo != "") { lt_freq[lt_foo]++; } 18145 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18146}'` 18147 # AWK program above erroneously prepends '/' to C:/dos/paths 18148 # for these hosts. 18149 case $host_os in 18150 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18151 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 18152 esac 18153 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18154else 18155 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18156fi 18157library_names_spec= 18158libname_spec='lib$name' 18159soname_spec= 18160shrext_cmds=.so 18161postinstall_cmds= 18162postuninstall_cmds= 18163finish_cmds= 18164finish_eval= 18165shlibpath_var= 18166shlibpath_overrides_runpath=unknown 18167version_type=none 18168dynamic_linker="$host_os ld.so" 18169sys_lib_dlsearch_path_spec="/lib /usr/lib" 18170need_lib_prefix=unknown 18171hardcode_into_libs=no 18172 18173# when you set need_version to no, make sure it does not cause -set_version 18174# flags to be left without arguments 18175need_version=unknown 18176 18177 18178 18179case $host_os in 18180aix3*) 18181 version_type=linux # correct to gnu/linux during the next big refactor 18182 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18183 shlibpath_var=LIBPATH 18184 18185 # AIX 3 has no versioning support, so we append a major version to the name. 18186 soname_spec='$libname$release$shared_ext$major' 18187 ;; 18188 18189aix[4-9]*) 18190 version_type=linux # correct to gnu/linux during the next big refactor 18191 need_lib_prefix=no 18192 need_version=no 18193 hardcode_into_libs=yes 18194 if test ia64 = "$host_cpu"; then 18195 # AIX 5 supports IA64 18196 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18197 shlibpath_var=LD_LIBRARY_PATH 18198 else 18199 # With GCC up to 2.95.x, collect2 would create an import file 18200 # for dependence libraries. The import file would start with 18201 # the line '#! .'. This would cause the generated library to 18202 # depend on '.', always an invalid library. This was fixed in 18203 # development snapshots of GCC prior to 3.0. 18204 case $host_os in 18205 aix4 | aix4.[01] | aix4.[01].*) 18206 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18207 echo ' yes ' 18208 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18209 : 18210 else 18211 can_build_shared=no 18212 fi 18213 ;; 18214 esac 18215 # Using Import Files as archive members, it is possible to support 18216 # filename-based versioning of shared library archives on AIX. While 18217 # this would work for both with and without runtime linking, it will 18218 # prevent static linking of such archives. So we do filename-based 18219 # shared library versioning with .so extension only, which is used 18220 # when both runtime linking and shared linking is enabled. 18221 # Unfortunately, runtime linking may impact performance, so we do 18222 # not want this to be the default eventually. Also, we use the 18223 # versioned .so libs for executables only if there is the -brtl 18224 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18225 # To allow for filename-based versioning support, we need to create 18226 # libNAME.so.V as an archive file, containing: 18227 # *) an Import File, referring to the versioned filename of the 18228 # archive as well as the shared archive member, telling the 18229 # bitwidth (32 or 64) of that shared object, and providing the 18230 # list of exported symbols of that shared object, eventually 18231 # decorated with the 'weak' keyword 18232 # *) the shared object with the F_LOADONLY flag set, to really avoid 18233 # it being seen by the linker. 18234 # At run time we better use the real file rather than another symlink, 18235 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18236 18237 case $with_aix_soname,$aix_use_runtimelinking in 18238 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18239 # soname into executable. Probably we can add versioning support to 18240 # collect2, so additional links can be useful in future. 18241 aix,yes) # traditional libtool 18242 dynamic_linker='AIX unversionable lib.so' 18243 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18244 # instead of lib<name>.a to let people know that these are not 18245 # typical AIX shared libraries. 18246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18247 ;; 18248 aix,no) # traditional AIX only 18249 dynamic_linker='AIX lib.a(lib.so.V)' 18250 # We preserve .a as extension for shared libraries through AIX4.2 18251 # and later when we are not doing run time linking. 18252 library_names_spec='$libname$release.a $libname.a' 18253 soname_spec='$libname$release$shared_ext$major' 18254 ;; 18255 svr4,*) # full svr4 only 18256 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18257 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18258 # We do not specify a path in Import Files, so LIBPATH fires. 18259 shlibpath_overrides_runpath=yes 18260 ;; 18261 *,yes) # both, prefer svr4 18262 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18263 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18264 # unpreferred sharedlib libNAME.a needs extra handling 18265 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"' 18266 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"' 18267 # We do not specify a path in Import Files, so LIBPATH fires. 18268 shlibpath_overrides_runpath=yes 18269 ;; 18270 *,no) # both, prefer aix 18271 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18272 library_names_spec='$libname$release.a $libname.a' 18273 soname_spec='$libname$release$shared_ext$major' 18274 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18275 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)' 18276 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"' 18277 ;; 18278 esac 18279 shlibpath_var=LIBPATH 18280 fi 18281 ;; 18282 18283amigaos*) 18284 case $host_cpu in 18285 powerpc) 18286 # Since July 2007 AmigaOS4 officially supports .so libraries. 18287 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18289 ;; 18290 m68k) 18291 library_names_spec='$libname.ixlibrary $libname.a' 18292 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18293 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' 18294 ;; 18295 esac 18296 ;; 18297 18298beos*) 18299 library_names_spec='$libname$shared_ext' 18300 dynamic_linker="$host_os ld.so" 18301 shlibpath_var=LIBRARY_PATH 18302 ;; 18303 18304bsdi[45]*) 18305 version_type=linux # correct to gnu/linux during the next big refactor 18306 need_version=no 18307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18308 soname_spec='$libname$release$shared_ext$major' 18309 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18310 shlibpath_var=LD_LIBRARY_PATH 18311 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18312 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18313 # the default ld.so.conf also contains /usr/contrib/lib and 18314 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18315 # libtool to hard-code these into programs 18316 ;; 18317 18318cygwin* | mingw* | pw32* | cegcc*) 18319 version_type=windows 18320 shrext_cmds=.dll 18321 need_version=no 18322 need_lib_prefix=no 18323 18324 case $GCC,$cc_basename in 18325 yes,*) 18326 # gcc 18327 library_names_spec='$libname.dll.a' 18328 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18329 postinstall_cmds='base_file=`basename \$file`~ 18330 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18331 dldir=$destdir/`dirname \$dlpath`~ 18332 test -d \$dldir || mkdir -p \$dldir~ 18333 $install_prog $dir/$dlname \$dldir/$dlname~ 18334 chmod a+x \$dldir/$dlname~ 18335 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18336 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18337 fi' 18338 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18339 dlpath=$dir/\$dldll~ 18340 $RM \$dlpath' 18341 shlibpath_overrides_runpath=yes 18342 18343 case $host_os in 18344 cygwin*) 18345 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18346 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18347 18348 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18349 ;; 18350 mingw* | cegcc*) 18351 # MinGW DLLs use traditional 'lib' prefix 18352 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18353 ;; 18354 pw32*) 18355 # pw32 DLLs use 'pw' prefix rather than 'lib' 18356 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18357 ;; 18358 esac 18359 dynamic_linker='Win32 ld.exe' 18360 ;; 18361 18362 *,cl*) 18363 # Native MSVC 18364 libname_spec='$name' 18365 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18366 library_names_spec='$libname.dll.lib' 18367 18368 case $build_os in 18369 mingw*) 18370 sys_lib_search_path_spec= 18371 lt_save_ifs=$IFS 18372 IFS=';' 18373 for lt_path in $LIB 18374 do 18375 IFS=$lt_save_ifs 18376 # Let DOS variable expansion print the short 8.3 style file name. 18377 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18378 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18379 done 18380 IFS=$lt_save_ifs 18381 # Convert to MSYS style. 18382 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18383 ;; 18384 cygwin*) 18385 # Convert to unix form, then to dos form, then back to unix form 18386 # but this time dos style (no spaces!) so that the unix form looks 18387 # like /cygdrive/c/PROGRA~1:/cygdr... 18388 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18389 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18390 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18391 ;; 18392 *) 18393 sys_lib_search_path_spec=$LIB 18394 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18395 # It is most probably a Windows format PATH. 18396 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18397 else 18398 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18399 fi 18400 # FIXME: find the short name or the path components, as spaces are 18401 # common. (e.g. "Program Files" -> "PROGRA~1") 18402 ;; 18403 esac 18404 18405 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18406 postinstall_cmds='base_file=`basename \$file`~ 18407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18408 dldir=$destdir/`dirname \$dlpath`~ 18409 test -d \$dldir || mkdir -p \$dldir~ 18410 $install_prog $dir/$dlname \$dldir/$dlname' 18411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18412 dlpath=$dir/\$dldll~ 18413 $RM \$dlpath' 18414 shlibpath_overrides_runpath=yes 18415 dynamic_linker='Win32 link.exe' 18416 ;; 18417 18418 *) 18419 # Assume MSVC wrapper 18420 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18421 dynamic_linker='Win32 ld.exe' 18422 ;; 18423 esac 18424 # FIXME: first we should search . and the directory the executable is in 18425 shlibpath_var=PATH 18426 ;; 18427 18428darwin* | rhapsody*) 18429 dynamic_linker="$host_os dyld" 18430 version_type=darwin 18431 need_lib_prefix=no 18432 need_version=no 18433 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18434 soname_spec='$libname$release$major$shared_ext' 18435 shlibpath_overrides_runpath=yes 18436 shlibpath_var=DYLD_LIBRARY_PATH 18437 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18438 18439 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18440 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18441 ;; 18442 18443dgux*) 18444 version_type=linux # correct to gnu/linux during the next big refactor 18445 need_lib_prefix=no 18446 need_version=no 18447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18448 soname_spec='$libname$release$shared_ext$major' 18449 shlibpath_var=LD_LIBRARY_PATH 18450 ;; 18451 18452freebsd* | dragonfly*) 18453 # DragonFly does not have aout. When/if they implement a new 18454 # versioning mechanism, adjust this. 18455 if test -x /usr/bin/objformat; then 18456 objformat=`/usr/bin/objformat` 18457 else 18458 case $host_os in 18459 freebsd[23].*) objformat=aout ;; 18460 *) objformat=elf ;; 18461 esac 18462 fi 18463 version_type=freebsd-$objformat 18464 case $version_type in 18465 freebsd-elf*) 18466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18467 soname_spec='$libname$release$shared_ext$major' 18468 need_version=no 18469 need_lib_prefix=no 18470 ;; 18471 freebsd-*) 18472 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18473 need_version=yes 18474 ;; 18475 esac 18476 shlibpath_var=LD_LIBRARY_PATH 18477 case $host_os in 18478 freebsd2.*) 18479 shlibpath_overrides_runpath=yes 18480 ;; 18481 freebsd3.[01]* | freebsdelf3.[01]*) 18482 shlibpath_overrides_runpath=yes 18483 hardcode_into_libs=yes 18484 ;; 18485 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18486 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18487 shlibpath_overrides_runpath=no 18488 hardcode_into_libs=yes 18489 ;; 18490 *) # from 4.6 on, and DragonFly 18491 shlibpath_overrides_runpath=yes 18492 hardcode_into_libs=yes 18493 ;; 18494 esac 18495 ;; 18496 18497haiku*) 18498 version_type=linux # correct to gnu/linux during the next big refactor 18499 need_lib_prefix=no 18500 need_version=no 18501 dynamic_linker="$host_os runtime_loader" 18502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18503 soname_spec='$libname$release$shared_ext$major' 18504 shlibpath_var=LIBRARY_PATH 18505 shlibpath_overrides_runpath=no 18506 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18507 hardcode_into_libs=yes 18508 ;; 18509 18510hpux9* | hpux10* | hpux11*) 18511 # Give a soname corresponding to the major version so that dld.sl refuses to 18512 # link against other versions. 18513 version_type=sunos 18514 need_lib_prefix=no 18515 need_version=no 18516 case $host_cpu in 18517 ia64*) 18518 shrext_cmds='.so' 18519 hardcode_into_libs=yes 18520 dynamic_linker="$host_os dld.so" 18521 shlibpath_var=LD_LIBRARY_PATH 18522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18524 soname_spec='$libname$release$shared_ext$major' 18525 if test 32 = "$HPUX_IA64_MODE"; then 18526 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18527 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18528 else 18529 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18530 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18531 fi 18532 ;; 18533 hppa*64*) 18534 shrext_cmds='.sl' 18535 hardcode_into_libs=yes 18536 dynamic_linker="$host_os dld.sl" 18537 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18540 soname_spec='$libname$release$shared_ext$major' 18541 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18543 ;; 18544 *) 18545 shrext_cmds='.sl' 18546 dynamic_linker="$host_os dld.sl" 18547 shlibpath_var=SHLIB_PATH 18548 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18550 soname_spec='$libname$release$shared_ext$major' 18551 ;; 18552 esac 18553 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18554 postinstall_cmds='chmod 555 $lib' 18555 # or fails outright, so override atomically: 18556 install_override_mode=555 18557 ;; 18558 18559interix[3-9]*) 18560 version_type=linux # correct to gnu/linux during the next big refactor 18561 need_lib_prefix=no 18562 need_version=no 18563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18564 soname_spec='$libname$release$shared_ext$major' 18565 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18566 shlibpath_var=LD_LIBRARY_PATH 18567 shlibpath_overrides_runpath=no 18568 hardcode_into_libs=yes 18569 ;; 18570 18571irix5* | irix6* | nonstopux*) 18572 case $host_os in 18573 nonstopux*) version_type=nonstopux ;; 18574 *) 18575 if test yes = "$lt_cv_prog_gnu_ld"; then 18576 version_type=linux # correct to gnu/linux during the next big refactor 18577 else 18578 version_type=irix 18579 fi ;; 18580 esac 18581 need_lib_prefix=no 18582 need_version=no 18583 soname_spec='$libname$release$shared_ext$major' 18584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18585 case $host_os in 18586 irix5* | nonstopux*) 18587 libsuff= shlibsuff= 18588 ;; 18589 *) 18590 case $LD in # libtool.m4 will add one of these switches to LD 18591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18592 libsuff= shlibsuff= libmagic=32-bit;; 18593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18594 libsuff=32 shlibsuff=N32 libmagic=N32;; 18595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18596 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18597 *) libsuff= shlibsuff= libmagic=never-match;; 18598 esac 18599 ;; 18600 esac 18601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18602 shlibpath_overrides_runpath=no 18603 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18604 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18605 hardcode_into_libs=yes 18606 ;; 18607 18608# No shared lib support for Linux oldld, aout, or coff. 18609linux*oldld* | linux*aout* | linux*coff*) 18610 dynamic_linker=no 18611 ;; 18612 18613linux*android*) 18614 version_type=none # Android doesn't support versioned libraries. 18615 need_lib_prefix=no 18616 need_version=no 18617 library_names_spec='$libname$release$shared_ext' 18618 soname_spec='$libname$release$shared_ext' 18619 finish_cmds= 18620 shlibpath_var=LD_LIBRARY_PATH 18621 shlibpath_overrides_runpath=yes 18622 18623 # This implies no fast_install, which is unacceptable. 18624 # Some rework will be needed to allow for fast_install 18625 # before this can be enabled. 18626 hardcode_into_libs=yes 18627 18628 dynamic_linker='Android linker' 18629 # Don't embed -rpath directories since the linker doesn't support them. 18630 hardcode_libdir_flag_spec='-L$libdir' 18631 ;; 18632 18633# This must be glibc/ELF. 18634linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18635 version_type=linux # correct to gnu/linux during the next big refactor 18636 need_lib_prefix=no 18637 need_version=no 18638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18639 soname_spec='$libname$release$shared_ext$major' 18640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18641 shlibpath_var=LD_LIBRARY_PATH 18642 shlibpath_overrides_runpath=no 18643 18644 # Some binutils ld are patched to set DT_RUNPATH 18645 if test ${lt_cv_shlibpath_overrides_runpath+y} 18646then : 18647 printf %s "(cached) " >&6 18648else $as_nop 18649 lt_cv_shlibpath_overrides_runpath=no 18650 save_LDFLAGS=$LDFLAGS 18651 save_libdir=$libdir 18652 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18653 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18655/* end confdefs.h. */ 18656 18657int 18658main (void) 18659{ 18660 18661 ; 18662 return 0; 18663} 18664_ACEOF 18665if ac_fn_c_try_link "$LINENO" 18666then : 18667 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18668then : 18669 lt_cv_shlibpath_overrides_runpath=yes 18670fi 18671fi 18672rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18673 conftest$ac_exeext conftest.$ac_ext 18674 LDFLAGS=$save_LDFLAGS 18675 libdir=$save_libdir 18676 18677fi 18678 18679 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18680 18681 # This implies no fast_install, which is unacceptable. 18682 # Some rework will be needed to allow for fast_install 18683 # before this can be enabled. 18684 hardcode_into_libs=yes 18685 18686 # Ideally, we could use ldconfig to report *all* directores which are 18687 # searched for libraries, however this is still not possible. Aside from not 18688 # being certain /sbin/ldconfig is available, command 18689 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18690 # even though it is searched at run-time. Try to do the best guess by 18691 # appending ld.so.conf contents (and includes) to the search path. 18692 if test -f /etc/ld.so.conf; then 18693 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' ' '` 18694 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18695 fi 18696 18697 # We used to test for /lib/ld.so.1 and disable shared libraries on 18698 # powerpc, because MkLinux only supported shared libraries with the 18699 # GNU dynamic linker. Since this was broken with cross compilers, 18700 # most powerpc-linux boxes support dynamic linking these days and 18701 # people can always --disable-shared, the test was removed, and we 18702 # assume the GNU/Linux dynamic linker is in use. 18703 dynamic_linker='GNU/Linux ld.so' 18704 ;; 18705 18706netbsdelf*-gnu) 18707 version_type=linux 18708 need_lib_prefix=no 18709 need_version=no 18710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18711 soname_spec='${libname}${release}${shared_ext}$major' 18712 shlibpath_var=LD_LIBRARY_PATH 18713 shlibpath_overrides_runpath=no 18714 hardcode_into_libs=yes 18715 dynamic_linker='NetBSD ld.elf_so' 18716 ;; 18717 18718netbsd*) 18719 version_type=sunos 18720 need_lib_prefix=no 18721 need_version=no 18722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18723 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18725 dynamic_linker='NetBSD (a.out) ld.so' 18726 else 18727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18728 soname_spec='$libname$release$shared_ext$major' 18729 dynamic_linker='NetBSD ld.elf_so' 18730 fi 18731 shlibpath_var=LD_LIBRARY_PATH 18732 shlibpath_overrides_runpath=yes 18733 hardcode_into_libs=yes 18734 ;; 18735 18736newsos6) 18737 version_type=linux # correct to gnu/linux during the next big refactor 18738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18739 shlibpath_var=LD_LIBRARY_PATH 18740 shlibpath_overrides_runpath=yes 18741 ;; 18742 18743*nto* | *qnx*) 18744 version_type=qnx 18745 need_lib_prefix=no 18746 need_version=no 18747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18748 soname_spec='$libname$release$shared_ext$major' 18749 shlibpath_var=LD_LIBRARY_PATH 18750 shlibpath_overrides_runpath=no 18751 hardcode_into_libs=yes 18752 dynamic_linker='ldqnx.so' 18753 ;; 18754 18755openbsd* | bitrig*) 18756 version_type=sunos 18757 sys_lib_dlsearch_path_spec=/usr/lib 18758 need_lib_prefix=no 18759 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18760 need_version=no 18761 else 18762 need_version=yes 18763 fi 18764 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18766 shlibpath_var=LD_LIBRARY_PATH 18767 shlibpath_overrides_runpath=yes 18768 ;; 18769 18770os2*) 18771 libname_spec='$name' 18772 version_type=windows 18773 shrext_cmds=.dll 18774 need_version=no 18775 need_lib_prefix=no 18776 # OS/2 can only load a DLL with a base name of 8 characters or less. 18777 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18778 v=$($ECHO $release$versuffix | tr -d .-); 18779 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18780 $ECHO $n$v`$shared_ext' 18781 library_names_spec='${libname}_dll.$libext' 18782 dynamic_linker='OS/2 ld.exe' 18783 shlibpath_var=BEGINLIBPATH 18784 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18786 postinstall_cmds='base_file=`basename \$file`~ 18787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18788 dldir=$destdir/`dirname \$dlpath`~ 18789 test -d \$dldir || mkdir -p \$dldir~ 18790 $install_prog $dir/$dlname \$dldir/$dlname~ 18791 chmod a+x \$dldir/$dlname~ 18792 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18793 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18794 fi' 18795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18796 dlpath=$dir/\$dldll~ 18797 $RM \$dlpath' 18798 ;; 18799 18800osf3* | osf4* | osf5*) 18801 version_type=osf 18802 need_lib_prefix=no 18803 need_version=no 18804 soname_spec='$libname$release$shared_ext$major' 18805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18806 shlibpath_var=LD_LIBRARY_PATH 18807 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18809 ;; 18810 18811rdos*) 18812 dynamic_linker=no 18813 ;; 18814 18815solaris*) 18816 version_type=linux # correct to gnu/linux during the next big refactor 18817 need_lib_prefix=no 18818 need_version=no 18819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18820 soname_spec='$libname$release$shared_ext$major' 18821 shlibpath_var=LD_LIBRARY_PATH 18822 shlibpath_overrides_runpath=yes 18823 hardcode_into_libs=yes 18824 # ldd complains unless libraries are executable 18825 postinstall_cmds='chmod +x $lib' 18826 ;; 18827 18828sunos4*) 18829 version_type=sunos 18830 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18832 shlibpath_var=LD_LIBRARY_PATH 18833 shlibpath_overrides_runpath=yes 18834 if test yes = "$with_gnu_ld"; then 18835 need_lib_prefix=no 18836 fi 18837 need_version=yes 18838 ;; 18839 18840sysv4 | sysv4.3*) 18841 version_type=linux # correct to gnu/linux during the next big refactor 18842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18843 soname_spec='$libname$release$shared_ext$major' 18844 shlibpath_var=LD_LIBRARY_PATH 18845 case $host_vendor in 18846 sni) 18847 shlibpath_overrides_runpath=no 18848 need_lib_prefix=no 18849 runpath_var=LD_RUN_PATH 18850 ;; 18851 siemens) 18852 need_lib_prefix=no 18853 ;; 18854 motorola) 18855 need_lib_prefix=no 18856 need_version=no 18857 shlibpath_overrides_runpath=no 18858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18859 ;; 18860 esac 18861 ;; 18862 18863sysv4*MP*) 18864 if test -d /usr/nec; then 18865 version_type=linux # correct to gnu/linux during the next big refactor 18866 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18867 soname_spec='$libname$shared_ext.$major' 18868 shlibpath_var=LD_LIBRARY_PATH 18869 fi 18870 ;; 18871 18872sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18873 version_type=sco 18874 need_lib_prefix=no 18875 need_version=no 18876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18877 soname_spec='$libname$release$shared_ext$major' 18878 shlibpath_var=LD_LIBRARY_PATH 18879 shlibpath_overrides_runpath=yes 18880 hardcode_into_libs=yes 18881 if test yes = "$with_gnu_ld"; then 18882 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18883 else 18884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18885 case $host_os in 18886 sco3.2v5*) 18887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18888 ;; 18889 esac 18890 fi 18891 sys_lib_dlsearch_path_spec='/usr/lib' 18892 ;; 18893 18894tpf*) 18895 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18896 version_type=linux # correct to gnu/linux during the next big refactor 18897 need_lib_prefix=no 18898 need_version=no 18899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18900 shlibpath_var=LD_LIBRARY_PATH 18901 shlibpath_overrides_runpath=no 18902 hardcode_into_libs=yes 18903 ;; 18904 18905uts4*) 18906 version_type=linux # correct to gnu/linux during the next big refactor 18907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18908 soname_spec='$libname$release$shared_ext$major' 18909 shlibpath_var=LD_LIBRARY_PATH 18910 ;; 18911 18912*) 18913 dynamic_linker=no 18914 ;; 18915esac 18916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18917printf "%s\n" "$dynamic_linker" >&6; } 18918test no = "$dynamic_linker" && can_build_shared=no 18919 18920variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18921if test yes = "$GCC"; then 18922 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18923fi 18924 18925if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18926 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18927fi 18928 18929if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18930 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18931fi 18932 18933# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18934configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18935 18936# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18937func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18938 18939# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18940configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19039printf %s "checking how to hardcode library paths into programs... " >&6; } 19040hardcode_action= 19041if test -n "$hardcode_libdir_flag_spec" || 19042 test -n "$runpath_var" || 19043 test yes = "$hardcode_automatic"; then 19044 19045 # We can hardcode non-existent directories. 19046 if test no != "$hardcode_direct" && 19047 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19048 # have to relink, otherwise we might link with an installed library 19049 # when we should be linking with a yet-to-be-installed one 19050 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 19051 test no != "$hardcode_minus_L"; then 19052 # Linking always hardcodes the temporary library directory. 19053 hardcode_action=relink 19054 else 19055 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19056 hardcode_action=immediate 19057 fi 19058else 19059 # We cannot hardcode anything, or else we can only hardcode existing 19060 # directories. 19061 hardcode_action=unsupported 19062fi 19063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 19064printf "%s\n" "$hardcode_action" >&6; } 19065 19066if test relink = "$hardcode_action" || 19067 test yes = "$inherit_rpath"; then 19068 # Fast installation is not supported 19069 enable_fast_install=no 19070elif test yes = "$shlibpath_overrides_runpath" || 19071 test no = "$enable_shared"; then 19072 # Fast installation is not necessary 19073 enable_fast_install=needless 19074fi 19075 19076 19077 19078 19079 19080 19081 if test yes != "$enable_dlopen"; then 19082 enable_dlopen=unknown 19083 enable_dlopen_self=unknown 19084 enable_dlopen_self_static=unknown 19085else 19086 lt_cv_dlopen=no 19087 lt_cv_dlopen_libs= 19088 19089 case $host_os in 19090 beos*) 19091 lt_cv_dlopen=load_add_on 19092 lt_cv_dlopen_libs= 19093 lt_cv_dlopen_self=yes 19094 ;; 19095 19096 mingw* | pw32* | cegcc*) 19097 lt_cv_dlopen=LoadLibrary 19098 lt_cv_dlopen_libs= 19099 ;; 19100 19101 cygwin*) 19102 lt_cv_dlopen=dlopen 19103 lt_cv_dlopen_libs= 19104 ;; 19105 19106 darwin*) 19107 # if libdl is installed we need to link against it 19108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19109printf %s "checking for dlopen in -ldl... " >&6; } 19110if test ${ac_cv_lib_dl_dlopen+y} 19111then : 19112 printf %s "(cached) " >&6 19113else $as_nop 19114 ac_check_lib_save_LIBS=$LIBS 19115LIBS="-ldl $LIBS" 19116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19117/* end confdefs.h. */ 19118 19119/* Override any GCC internal prototype to avoid an error. 19120 Use char because int might match the return type of a GCC 19121 builtin and then its argument prototype would still apply. */ 19122char dlopen (); 19123int 19124main (void) 19125{ 19126return dlopen (); 19127 ; 19128 return 0; 19129} 19130_ACEOF 19131if ac_fn_c_try_link "$LINENO" 19132then : 19133 ac_cv_lib_dl_dlopen=yes 19134else $as_nop 19135 ac_cv_lib_dl_dlopen=no 19136fi 19137rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19138 conftest$ac_exeext conftest.$ac_ext 19139LIBS=$ac_check_lib_save_LIBS 19140fi 19141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19142printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19143if test "x$ac_cv_lib_dl_dlopen" = xyes 19144then : 19145 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19146else $as_nop 19147 19148 lt_cv_dlopen=dyld 19149 lt_cv_dlopen_libs= 19150 lt_cv_dlopen_self=yes 19151 19152fi 19153 19154 ;; 19155 19156 tpf*) 19157 # Don't try to run any link tests for TPF. We know it's impossible 19158 # because TPF is a cross-compiler, and we know how we open DSOs. 19159 lt_cv_dlopen=dlopen 19160 lt_cv_dlopen_libs= 19161 lt_cv_dlopen_self=no 19162 ;; 19163 19164 *) 19165 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19166if test "x$ac_cv_func_shl_load" = xyes 19167then : 19168 lt_cv_dlopen=shl_load 19169else $as_nop 19170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19171printf %s "checking for shl_load in -ldld... " >&6; } 19172if test ${ac_cv_lib_dld_shl_load+y} 19173then : 19174 printf %s "(cached) " >&6 19175else $as_nop 19176 ac_check_lib_save_LIBS=$LIBS 19177LIBS="-ldld $LIBS" 19178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19179/* end confdefs.h. */ 19180 19181/* Override any GCC internal prototype to avoid an error. 19182 Use char because int might match the return type of a GCC 19183 builtin and then its argument prototype would still apply. */ 19184char shl_load (); 19185int 19186main (void) 19187{ 19188return shl_load (); 19189 ; 19190 return 0; 19191} 19192_ACEOF 19193if ac_fn_c_try_link "$LINENO" 19194then : 19195 ac_cv_lib_dld_shl_load=yes 19196else $as_nop 19197 ac_cv_lib_dld_shl_load=no 19198fi 19199rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19200 conftest$ac_exeext conftest.$ac_ext 19201LIBS=$ac_check_lib_save_LIBS 19202fi 19203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19204printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 19205if test "x$ac_cv_lib_dld_shl_load" = xyes 19206then : 19207 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 19208else $as_nop 19209 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19210if test "x$ac_cv_func_dlopen" = xyes 19211then : 19212 lt_cv_dlopen=dlopen 19213else $as_nop 19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19215printf %s "checking for dlopen in -ldl... " >&6; } 19216if test ${ac_cv_lib_dl_dlopen+y} 19217then : 19218 printf %s "(cached) " >&6 19219else $as_nop 19220 ac_check_lib_save_LIBS=$LIBS 19221LIBS="-ldl $LIBS" 19222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19223/* end confdefs.h. */ 19224 19225/* Override any GCC internal prototype to avoid an error. 19226 Use char because int might match the return type of a GCC 19227 builtin and then its argument prototype would still apply. */ 19228char dlopen (); 19229int 19230main (void) 19231{ 19232return dlopen (); 19233 ; 19234 return 0; 19235} 19236_ACEOF 19237if ac_fn_c_try_link "$LINENO" 19238then : 19239 ac_cv_lib_dl_dlopen=yes 19240else $as_nop 19241 ac_cv_lib_dl_dlopen=no 19242fi 19243rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19244 conftest$ac_exeext conftest.$ac_ext 19245LIBS=$ac_check_lib_save_LIBS 19246fi 19247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19248printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19249if test "x$ac_cv_lib_dl_dlopen" = xyes 19250then : 19251 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19252else $as_nop 19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 19254printf %s "checking for dlopen in -lsvld... " >&6; } 19255if test ${ac_cv_lib_svld_dlopen+y} 19256then : 19257 printf %s "(cached) " >&6 19258else $as_nop 19259 ac_check_lib_save_LIBS=$LIBS 19260LIBS="-lsvld $LIBS" 19261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19262/* end confdefs.h. */ 19263 19264/* Override any GCC internal prototype to avoid an error. 19265 Use char because int might match the return type of a GCC 19266 builtin and then its argument prototype would still apply. */ 19267char dlopen (); 19268int 19269main (void) 19270{ 19271return dlopen (); 19272 ; 19273 return 0; 19274} 19275_ACEOF 19276if ac_fn_c_try_link "$LINENO" 19277then : 19278 ac_cv_lib_svld_dlopen=yes 19279else $as_nop 19280 ac_cv_lib_svld_dlopen=no 19281fi 19282rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19283 conftest$ac_exeext conftest.$ac_ext 19284LIBS=$ac_check_lib_save_LIBS 19285fi 19286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19287printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 19288if test "x$ac_cv_lib_svld_dlopen" = xyes 19289then : 19290 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 19291else $as_nop 19292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19293printf %s "checking for dld_link in -ldld... " >&6; } 19294if test ${ac_cv_lib_dld_dld_link+y} 19295then : 19296 printf %s "(cached) " >&6 19297else $as_nop 19298 ac_check_lib_save_LIBS=$LIBS 19299LIBS="-ldld $LIBS" 19300cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19301/* end confdefs.h. */ 19302 19303/* Override any GCC internal prototype to avoid an error. 19304 Use char because int might match the return type of a GCC 19305 builtin and then its argument prototype would still apply. */ 19306char dld_link (); 19307int 19308main (void) 19309{ 19310return dld_link (); 19311 ; 19312 return 0; 19313} 19314_ACEOF 19315if ac_fn_c_try_link "$LINENO" 19316then : 19317 ac_cv_lib_dld_dld_link=yes 19318else $as_nop 19319 ac_cv_lib_dld_dld_link=no 19320fi 19321rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19322 conftest$ac_exeext conftest.$ac_ext 19323LIBS=$ac_check_lib_save_LIBS 19324fi 19325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19326printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 19327if test "x$ac_cv_lib_dld_dld_link" = xyes 19328then : 19329 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 19330fi 19331 19332 19333fi 19334 19335 19336fi 19337 19338 19339fi 19340 19341 19342fi 19343 19344 19345fi 19346 19347 ;; 19348 esac 19349 19350 if test no = "$lt_cv_dlopen"; then 19351 enable_dlopen=no 19352 else 19353 enable_dlopen=yes 19354 fi 19355 19356 case $lt_cv_dlopen in 19357 dlopen) 19358 save_CPPFLAGS=$CPPFLAGS 19359 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19360 19361 save_LDFLAGS=$LDFLAGS 19362 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19363 19364 save_LIBS=$LIBS 19365 LIBS="$lt_cv_dlopen_libs $LIBS" 19366 19367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 19368printf %s "checking whether a program can dlopen itself... " >&6; } 19369if test ${lt_cv_dlopen_self+y} 19370then : 19371 printf %s "(cached) " >&6 19372else $as_nop 19373 if test yes = "$cross_compiling"; then : 19374 lt_cv_dlopen_self=cross 19375else 19376 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19377 lt_status=$lt_dlunknown 19378 cat > conftest.$ac_ext <<_LT_EOF 19379#line $LINENO "configure" 19380#include "confdefs.h" 19381 19382#if HAVE_DLFCN_H 19383#include <dlfcn.h> 19384#endif 19385 19386#include <stdio.h> 19387 19388#ifdef RTLD_GLOBAL 19389# define LT_DLGLOBAL RTLD_GLOBAL 19390#else 19391# ifdef DL_GLOBAL 19392# define LT_DLGLOBAL DL_GLOBAL 19393# else 19394# define LT_DLGLOBAL 0 19395# endif 19396#endif 19397 19398/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19399 find out it does not work in some platform. */ 19400#ifndef LT_DLLAZY_OR_NOW 19401# ifdef RTLD_LAZY 19402# define LT_DLLAZY_OR_NOW RTLD_LAZY 19403# else 19404# ifdef DL_LAZY 19405# define LT_DLLAZY_OR_NOW DL_LAZY 19406# else 19407# ifdef RTLD_NOW 19408# define LT_DLLAZY_OR_NOW RTLD_NOW 19409# else 19410# ifdef DL_NOW 19411# define LT_DLLAZY_OR_NOW DL_NOW 19412# else 19413# define LT_DLLAZY_OR_NOW 0 19414# endif 19415# endif 19416# endif 19417# endif 19418#endif 19419 19420/* When -fvisibility=hidden is used, assume the code has been annotated 19421 correspondingly for the symbols needed. */ 19422#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19423int fnord () __attribute__((visibility("default"))); 19424#endif 19425 19426int fnord () { return 42; } 19427int main () 19428{ 19429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19430 int status = $lt_dlunknown; 19431 19432 if (self) 19433 { 19434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19435 else 19436 { 19437 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19438 else puts (dlerror ()); 19439 } 19440 /* dlclose (self); */ 19441 } 19442 else 19443 puts (dlerror ()); 19444 19445 return status; 19446} 19447_LT_EOF 19448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19449 (eval $ac_link) 2>&5 19450 ac_status=$? 19451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19452 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19453 (./conftest; exit; ) >&5 2>/dev/null 19454 lt_status=$? 19455 case x$lt_status in 19456 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19457 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19458 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19459 esac 19460 else : 19461 # compilation failed 19462 lt_cv_dlopen_self=no 19463 fi 19464fi 19465rm -fr conftest* 19466 19467 19468fi 19469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19470printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19471 19472 if test yes = "$lt_cv_dlopen_self"; then 19473 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19475printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19476if test ${lt_cv_dlopen_self_static+y} 19477then : 19478 printf %s "(cached) " >&6 19479else $as_nop 19480 if test yes = "$cross_compiling"; then : 19481 lt_cv_dlopen_self_static=cross 19482else 19483 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19484 lt_status=$lt_dlunknown 19485 cat > conftest.$ac_ext <<_LT_EOF 19486#line $LINENO "configure" 19487#include "confdefs.h" 19488 19489#if HAVE_DLFCN_H 19490#include <dlfcn.h> 19491#endif 19492 19493#include <stdio.h> 19494 19495#ifdef RTLD_GLOBAL 19496# define LT_DLGLOBAL RTLD_GLOBAL 19497#else 19498# ifdef DL_GLOBAL 19499# define LT_DLGLOBAL DL_GLOBAL 19500# else 19501# define LT_DLGLOBAL 0 19502# endif 19503#endif 19504 19505/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19506 find out it does not work in some platform. */ 19507#ifndef LT_DLLAZY_OR_NOW 19508# ifdef RTLD_LAZY 19509# define LT_DLLAZY_OR_NOW RTLD_LAZY 19510# else 19511# ifdef DL_LAZY 19512# define LT_DLLAZY_OR_NOW DL_LAZY 19513# else 19514# ifdef RTLD_NOW 19515# define LT_DLLAZY_OR_NOW RTLD_NOW 19516# else 19517# ifdef DL_NOW 19518# define LT_DLLAZY_OR_NOW DL_NOW 19519# else 19520# define LT_DLLAZY_OR_NOW 0 19521# endif 19522# endif 19523# endif 19524# endif 19525#endif 19526 19527/* When -fvisibility=hidden is used, assume the code has been annotated 19528 correspondingly for the symbols needed. */ 19529#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19530int fnord () __attribute__((visibility("default"))); 19531#endif 19532 19533int fnord () { return 42; } 19534int main () 19535{ 19536 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19537 int status = $lt_dlunknown; 19538 19539 if (self) 19540 { 19541 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19542 else 19543 { 19544 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19545 else puts (dlerror ()); 19546 } 19547 /* dlclose (self); */ 19548 } 19549 else 19550 puts (dlerror ()); 19551 19552 return status; 19553} 19554_LT_EOF 19555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19556 (eval $ac_link) 2>&5 19557 ac_status=$? 19558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19559 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19560 (./conftest; exit; ) >&5 2>/dev/null 19561 lt_status=$? 19562 case x$lt_status in 19563 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19564 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19565 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19566 esac 19567 else : 19568 # compilation failed 19569 lt_cv_dlopen_self_static=no 19570 fi 19571fi 19572rm -fr conftest* 19573 19574 19575fi 19576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19577printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19578 fi 19579 19580 CPPFLAGS=$save_CPPFLAGS 19581 LDFLAGS=$save_LDFLAGS 19582 LIBS=$save_LIBS 19583 ;; 19584 esac 19585 19586 case $lt_cv_dlopen_self in 19587 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19588 *) enable_dlopen_self=unknown ;; 19589 esac 19590 19591 case $lt_cv_dlopen_self_static in 19592 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19593 *) enable_dlopen_self_static=unknown ;; 19594 esac 19595fi 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613striplib= 19614old_striplib= 19615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19616printf %s "checking whether stripping libraries is possible... " >&6; } 19617if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19618 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19619 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19621printf "%s\n" "yes" >&6; } 19622else 19623# FIXME - insert some real tests, host_os isn't really good enough 19624 case $host_os in 19625 darwin*) 19626 if test -n "$STRIP"; then 19627 striplib="$STRIP -x" 19628 old_striplib="$STRIP -S" 19629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19630printf "%s\n" "yes" >&6; } 19631 else 19632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19633printf "%s\n" "no" >&6; } 19634 fi 19635 ;; 19636 *) 19637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19638printf "%s\n" "no" >&6; } 19639 ;; 19640 esac 19641fi 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 # Report what library types will actually be built 19655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19656printf %s "checking if libtool supports shared libraries... " >&6; } 19657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19658printf "%s\n" "$can_build_shared" >&6; } 19659 19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19661printf %s "checking whether to build shared libraries... " >&6; } 19662 test no = "$can_build_shared" && enable_shared=no 19663 19664 # On AIX, shared libraries and static libraries use the same namespace, and 19665 # are all built from PIC. 19666 case $host_os in 19667 aix3*) 19668 test yes = "$enable_shared" && enable_static=no 19669 if test -n "$RANLIB"; then 19670 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19671 postinstall_cmds='$RANLIB $lib' 19672 fi 19673 ;; 19674 19675 aix[4-9]*) 19676 if test ia64 != "$host_cpu"; then 19677 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19678 yes,aix,yes) ;; # shared object as lib.so file only 19679 yes,svr4,*) ;; # shared object as lib.so archive member only 19680 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19681 esac 19682 fi 19683 ;; 19684 esac 19685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19686printf "%s\n" "$enable_shared" >&6; } 19687 19688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19689printf %s "checking whether to build static libraries... " >&6; } 19690 # Make sure either enable_shared or enable_static is yes. 19691 test yes = "$enable_shared" || enable_static=yes 19692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19693printf "%s\n" "$enable_static" >&6; } 19694 19695 19696 19697 19698fi 19699ac_ext=c 19700ac_cpp='$CPP $CPPFLAGS' 19701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19703ac_compiler_gnu=$ac_cv_c_compiler_gnu 19704 19705CC=$lt_save_CC 19706 19707 if test -n "$CXX" && ( test no != "$CXX" && 19708 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 19709 (test g++ != "$CXX"))); then 19710 ac_ext=cpp 19711ac_cpp='$CXXCPP $CPPFLAGS' 19712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 19716printf %s "checking how to run the C++ preprocessor... " >&6; } 19717if test -z "$CXXCPP"; then 19718 if test ${ac_cv_prog_CXXCPP+y} 19719then : 19720 printf %s "(cached) " >&6 19721else $as_nop 19722 # Double quotes because $CXX needs to be expanded 19723 for CXXCPP in "$CXX -E" cpp /lib/cpp 19724 do 19725 ac_preproc_ok=false 19726for ac_cxx_preproc_warn_flag in '' yes 19727do 19728 # Use a header file that comes with gcc, so configuring glibc 19729 # with a fresh cross-compiler works. 19730 # On the NeXT, cc -E runs the code through the compiler's parser, 19731 # not just through cpp. "Syntax error" is here to catch this case. 19732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19733/* end confdefs.h. */ 19734#include <limits.h> 19735 Syntax error 19736_ACEOF 19737if ac_fn_cxx_try_cpp "$LINENO" 19738then : 19739 19740else $as_nop 19741 # Broken: fails on valid input. 19742continue 19743fi 19744rm -f conftest.err conftest.i conftest.$ac_ext 19745 19746 # OK, works on sane cases. Now check whether nonexistent headers 19747 # can be detected and how. 19748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19749/* end confdefs.h. */ 19750#include <ac_nonexistent.h> 19751_ACEOF 19752if ac_fn_cxx_try_cpp "$LINENO" 19753then : 19754 # Broken: success on invalid input. 19755continue 19756else $as_nop 19757 # Passes both tests. 19758ac_preproc_ok=: 19759break 19760fi 19761rm -f conftest.err conftest.i conftest.$ac_ext 19762 19763done 19764# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19765rm -f conftest.i conftest.err conftest.$ac_ext 19766if $ac_preproc_ok 19767then : 19768 break 19769fi 19770 19771 done 19772 ac_cv_prog_CXXCPP=$CXXCPP 19773 19774fi 19775 CXXCPP=$ac_cv_prog_CXXCPP 19776else 19777 ac_cv_prog_CXXCPP=$CXXCPP 19778fi 19779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 19780printf "%s\n" "$CXXCPP" >&6; } 19781ac_preproc_ok=false 19782for ac_cxx_preproc_warn_flag in '' yes 19783do 19784 # Use a header file that comes with gcc, so configuring glibc 19785 # with a fresh cross-compiler works. 19786 # On the NeXT, cc -E runs the code through the compiler's parser, 19787 # not just through cpp. "Syntax error" is here to catch this case. 19788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19789/* end confdefs.h. */ 19790#include <limits.h> 19791 Syntax error 19792_ACEOF 19793if ac_fn_cxx_try_cpp "$LINENO" 19794then : 19795 19796else $as_nop 19797 # Broken: fails on valid input. 19798continue 19799fi 19800rm -f conftest.err conftest.i conftest.$ac_ext 19801 19802 # OK, works on sane cases. Now check whether nonexistent headers 19803 # can be detected and how. 19804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19805/* end confdefs.h. */ 19806#include <ac_nonexistent.h> 19807_ACEOF 19808if ac_fn_cxx_try_cpp "$LINENO" 19809then : 19810 # Broken: success on invalid input. 19811continue 19812else $as_nop 19813 # Passes both tests. 19814ac_preproc_ok=: 19815break 19816fi 19817rm -f conftest.err conftest.i conftest.$ac_ext 19818 19819done 19820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 19821rm -f conftest.i conftest.err conftest.$ac_ext 19822if $ac_preproc_ok 19823then : 19824 19825else $as_nop 19826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19827printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19828as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 19829See \`config.log' for more details" "$LINENO" 5; } 19830fi 19831 19832ac_ext=c 19833ac_cpp='$CPP $CPPFLAGS' 19834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19836ac_compiler_gnu=$ac_cv_c_compiler_gnu 19837 19838else 19839 _lt_caught_CXX_error=yes 19840fi 19841 19842ac_ext=cpp 19843ac_cpp='$CXXCPP $CPPFLAGS' 19844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19847 19848archive_cmds_need_lc_CXX=no 19849allow_undefined_flag_CXX= 19850always_export_symbols_CXX=no 19851archive_expsym_cmds_CXX= 19852compiler_needs_object_CXX=no 19853export_dynamic_flag_spec_CXX= 19854hardcode_direct_CXX=no 19855hardcode_direct_absolute_CXX=no 19856hardcode_libdir_flag_spec_CXX= 19857hardcode_libdir_separator_CXX= 19858hardcode_minus_L_CXX=no 19859hardcode_shlibpath_var_CXX=unsupported 19860hardcode_automatic_CXX=no 19861inherit_rpath_CXX=no 19862module_cmds_CXX= 19863module_expsym_cmds_CXX= 19864link_all_deplibs_CXX=unknown 19865old_archive_cmds_CXX=$old_archive_cmds 19866reload_flag_CXX=$reload_flag 19867reload_cmds_CXX=$reload_cmds 19868no_undefined_flag_CXX= 19869whole_archive_flag_spec_CXX= 19870enable_shared_with_static_runtimes_CXX=no 19871 19872# Source file extension for C++ test sources. 19873ac_ext=cpp 19874 19875# Object file extension for compiled C++ test sources. 19876objext=o 19877objext_CXX=$objext 19878 19879# No sense in running all these tests if we already determined that 19880# the CXX compiler isn't working. Some variables (like enable_shared) 19881# are currently assumed to apply to all compilers on this platform, 19882# and will be corrupted by setting them based on a non-working compiler. 19883if test yes != "$_lt_caught_CXX_error"; then 19884 # Code to be used in simple compile tests 19885 lt_simple_compile_test_code="int some_variable = 0;" 19886 19887 # Code to be used in simple link tests 19888 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 19889 19890 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 19891 19892 19893 19894 19895 19896 19897# If no C compiler was specified, use CC. 19898LTCC=${LTCC-"$CC"} 19899 19900# If no C compiler flags were specified, use CFLAGS. 19901LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19902 19903# Allow CC to be a program name with arguments. 19904compiler=$CC 19905 19906 19907 # save warnings/boilerplate of simple test code 19908 ac_outfile=conftest.$ac_objext 19909echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19911_lt_compiler_boilerplate=`cat conftest.err` 19912$RM conftest* 19913 19914 ac_outfile=conftest.$ac_objext 19915echo "$lt_simple_link_test_code" >conftest.$ac_ext 19916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19917_lt_linker_boilerplate=`cat conftest.err` 19918$RM -r conftest* 19919 19920 19921 # Allow CC to be a program name with arguments. 19922 lt_save_CC=$CC 19923 lt_save_CFLAGS=$CFLAGS 19924 lt_save_LD=$LD 19925 lt_save_GCC=$GCC 19926 GCC=$GXX 19927 lt_save_with_gnu_ld=$with_gnu_ld 19928 lt_save_path_LD=$lt_cv_path_LD 19929 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 19930 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 19931 else 19932 $as_unset lt_cv_prog_gnu_ld 19933 fi 19934 if test -n "${lt_cv_path_LDCXX+set}"; then 19935 lt_cv_path_LD=$lt_cv_path_LDCXX 19936 else 19937 $as_unset lt_cv_path_LD 19938 fi 19939 test -z "${LDCXX+set}" || LD=$LDCXX 19940 CC=${CXX-"c++"} 19941 CFLAGS=$CXXFLAGS 19942 compiler=$CC 19943 compiler_CXX=$CC 19944 func_cc_basename $compiler 19945cc_basename=$func_cc_basename_result 19946 19947 19948 if test -n "$compiler"; then 19949 # We don't want -fno-exception when compiling C++ code, so set the 19950 # no_builtin_flag separately 19951 if test yes = "$GXX"; then 19952 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 19953 else 19954 lt_prog_compiler_no_builtin_flag_CXX= 19955 fi 19956 19957 if test yes = "$GXX"; then 19958 # Set up default GNU C++ configuration 19959 19960 19961 19962# Check whether --with-gnu-ld was given. 19963if test ${with_gnu_ld+y} 19964then : 19965 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 19966else $as_nop 19967 with_gnu_ld=no 19968fi 19969 19970ac_prog=ld 19971if test yes = "$GCC"; then 19972 # Check if gcc -print-prog-name=ld gives a path. 19973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 19974printf %s "checking for ld used by $CC... " >&6; } 19975 case $host in 19976 *-*-mingw*) 19977 # gcc leaves a trailing carriage return, which upsets mingw 19978 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 19979 *) 19980 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 19981 esac 19982 case $ac_prog in 19983 # Accept absolute paths. 19984 [\\/]* | ?:[\\/]*) 19985 re_direlt='/[^/][^/]*/\.\./' 19986 # Canonicalize the pathname of ld 19987 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 19988 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 19989 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 19990 done 19991 test -z "$LD" && LD=$ac_prog 19992 ;; 19993 "") 19994 # If it fails, then pretend we aren't using GCC. 19995 ac_prog=ld 19996 ;; 19997 *) 19998 # If it is relative, then search for the first ld in PATH. 19999 with_gnu_ld=unknown 20000 ;; 20001 esac 20002elif test yes = "$with_gnu_ld"; then 20003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 20004printf %s "checking for GNU ld... " >&6; } 20005else 20006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 20007printf %s "checking for non-GNU ld... " >&6; } 20008fi 20009if test ${lt_cv_path_LD+y} 20010then : 20011 printf %s "(cached) " >&6 20012else $as_nop 20013 if test -z "$LD"; then 20014 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 20015 for ac_dir in $PATH; do 20016 IFS=$lt_save_ifs 20017 test -z "$ac_dir" && ac_dir=. 20018 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 20019 lt_cv_path_LD=$ac_dir/$ac_prog 20020 # Check to see if the program is GNU ld. I'd rather use --version, 20021 # but apparently some variants of GNU ld only accept -v. 20022 # Break only if it was the GNU/non-GNU ld that we prefer. 20023 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 20024 *GNU* | *'with BFD'*) 20025 test no != "$with_gnu_ld" && break 20026 ;; 20027 *) 20028 test yes != "$with_gnu_ld" && break 20029 ;; 20030 esac 20031 fi 20032 done 20033 IFS=$lt_save_ifs 20034else 20035 lt_cv_path_LD=$LD # Let the user override the test with a path. 20036fi 20037fi 20038 20039LD=$lt_cv_path_LD 20040if test -n "$LD"; then 20041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 20042printf "%s\n" "$LD" >&6; } 20043else 20044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20045printf "%s\n" "no" >&6; } 20046fi 20047test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 20048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 20049printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 20050if test ${lt_cv_prog_gnu_ld+y} 20051then : 20052 printf %s "(cached) " >&6 20053else $as_nop 20054 # I'd rather use --version here, but apparently some GNU lds only accept -v. 20055case `$LD -v 2>&1 </dev/null` in 20056*GNU* | *'with BFD'*) 20057 lt_cv_prog_gnu_ld=yes 20058 ;; 20059*) 20060 lt_cv_prog_gnu_ld=no 20061 ;; 20062esac 20063fi 20064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 20065printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 20066with_gnu_ld=$lt_cv_prog_gnu_ld 20067 20068 20069 20070 20071 20072 20073 20074 # Check if GNU C++ uses GNU ld as the underlying linker, since the 20075 # archiving commands below assume that GNU ld is being used. 20076 if test yes = "$with_gnu_ld"; then 20077 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20078 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' 20079 20080 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20081 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20082 20083 # If archive_cmds runs LD, not CC, wlarc should be empty 20084 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 20085 # investigate it a little bit more. (MM) 20086 wlarc='$wl' 20087 20088 # ancient GNU ld didn't support --whole-archive et. al. 20089 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 20090 $GREP 'no-whole-archive' > /dev/null; then 20091 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 20092 else 20093 whole_archive_flag_spec_CXX= 20094 fi 20095 else 20096 with_gnu_ld=no 20097 wlarc= 20098 20099 # A generic and very simple default shared library creation 20100 # command for GNU C++ for the case where it uses the native 20101 # linker, instead of GNU ld. If possible, this setting should 20102 # overridden to take advantage of the native linker features on 20103 # the platform it is being used on. 20104 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20105 fi 20106 20107 # Commands to make compiler produce verbose output that lists 20108 # what "hidden" libraries, object files and flags are used when 20109 # linking a shared library. 20110 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 20111 20112 else 20113 GXX=no 20114 with_gnu_ld=no 20115 wlarc= 20116 fi 20117 20118 # PORTME: fill in a description of your system's C++ link characteristics 20119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 20120printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 20121 ld_shlibs_CXX=yes 20122 case $host_os in 20123 aix3*) 20124 # FIXME: insert proper C++ library support 20125 ld_shlibs_CXX=no 20126 ;; 20127 aix[4-9]*) 20128 if test ia64 = "$host_cpu"; then 20129 # On IA64, the linker does run time linking by default, so we don't 20130 # have to do anything special. 20131 aix_use_runtimelinking=no 20132 exp_sym_flag='-Bexport' 20133 no_entry_flag= 20134 else 20135 aix_use_runtimelinking=no 20136 20137 # Test if we are trying to use run time linking or normal 20138 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20139 # have runtime linking enabled, and use it for executables. 20140 # For shared libraries, we enable/disable runtime linking 20141 # depending on the kind of the shared library created - 20142 # when "with_aix_soname,aix_use_runtimelinking" is: 20143 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 20144 # "aix,yes" lib.so shared, rtl:yes, for executables 20145 # lib.a static archive 20146 # "both,no" lib.so.V(shr.o) shared, rtl:yes 20147 # lib.a(lib.so.V) shared, rtl:no, for executables 20148 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 20149 # lib.a(lib.so.V) shared, rtl:no 20150 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 20151 # lib.a static archive 20152 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20153 for ld_flag in $LDFLAGS; do 20154 case $ld_flag in 20155 *-brtl*) 20156 aix_use_runtimelinking=yes 20157 break 20158 ;; 20159 esac 20160 done 20161 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 20162 # With aix-soname=svr4, we create the lib.so.V shared archives only, 20163 # so we don't have lib.a shared libs to link our executables. 20164 # We have to force runtime linking in this case. 20165 aix_use_runtimelinking=yes 20166 LDFLAGS="$LDFLAGS -Wl,-brtl" 20167 fi 20168 ;; 20169 esac 20170 20171 exp_sym_flag='-bexport' 20172 no_entry_flag='-bnoentry' 20173 fi 20174 20175 # When large executables or shared objects are built, AIX ld can 20176 # have problems creating the table of contents. If linking a library 20177 # or program results in "error TOC overflow" add -mminimal-toc to 20178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20180 20181 archive_cmds_CXX='' 20182 hardcode_direct_CXX=yes 20183 hardcode_direct_absolute_CXX=yes 20184 hardcode_libdir_separator_CXX=':' 20185 link_all_deplibs_CXX=yes 20186 file_list_spec_CXX='$wl-f,' 20187 case $with_aix_soname,$aix_use_runtimelinking in 20188 aix,*) ;; # no import file 20189 svr4,* | *,yes) # use import file 20190 # The Import File defines what to hardcode. 20191 hardcode_direct_CXX=no 20192 hardcode_direct_absolute_CXX=no 20193 ;; 20194 esac 20195 20196 if test yes = "$GXX"; then 20197 case $host_os in aix4.[012]|aix4.[012].*) 20198 # We only want to do this on AIX 4.2 and lower, the check 20199 # below for broken collect2 doesn't work under 4.3+ 20200 collect2name=`$CC -print-prog-name=collect2` 20201 if test -f "$collect2name" && 20202 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20203 then 20204 # We have reworked collect2 20205 : 20206 else 20207 # We have old collect2 20208 hardcode_direct_CXX=unsupported 20209 # It fails to find uninstalled libraries when the uninstalled 20210 # path is not listed in the libpath. Setting hardcode_minus_L 20211 # to unsupported forces relinking 20212 hardcode_minus_L_CXX=yes 20213 hardcode_libdir_flag_spec_CXX='-L$libdir' 20214 hardcode_libdir_separator_CXX= 20215 fi 20216 esac 20217 shared_flag='-shared' 20218 if test yes = "$aix_use_runtimelinking"; then 20219 shared_flag=$shared_flag' $wl-G' 20220 fi 20221 # Need to ensure runtime linking is disabled for the traditional 20222 # shared library, or the linker may eventually find shared libraries 20223 # /with/ Import File - we do not want to mix them. 20224 shared_flag_aix='-shared' 20225 shared_flag_svr4='-shared $wl-G' 20226 else 20227 # not using gcc 20228 if test ia64 = "$host_cpu"; then 20229 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20230 # chokes on -Wl,-G. The following line is correct: 20231 shared_flag='-G' 20232 else 20233 if test yes = "$aix_use_runtimelinking"; then 20234 shared_flag='$wl-G' 20235 else 20236 shared_flag='$wl-bM:SRE' 20237 fi 20238 shared_flag_aix='$wl-bM:SRE' 20239 shared_flag_svr4='$wl-G' 20240 fi 20241 fi 20242 20243 export_dynamic_flag_spec_CXX='$wl-bexpall' 20244 # It seems that -bexpall does not export symbols beginning with 20245 # underscore (_), so it is better to generate a list of symbols to 20246 # export. 20247 always_export_symbols_CXX=yes 20248 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 20249 # Warning - without using the other runtime loading flags (-brtl), 20250 # -berok will link without error, but may produce a broken library. 20251 # The "-G" linker flag allows undefined symbols. 20252 no_undefined_flag_CXX='-bernotok' 20253 # Determine the default libpath from the value encoded in an empty 20254 # executable. 20255 if test set = "${lt_cv_aix_libpath+set}"; then 20256 aix_libpath=$lt_cv_aix_libpath 20257else 20258 if test ${lt_cv_aix_libpath__CXX+y} 20259then : 20260 printf %s "(cached) " >&6 20261else $as_nop 20262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20263/* end confdefs.h. */ 20264 20265int 20266main (void) 20267{ 20268 20269 ; 20270 return 0; 20271} 20272_ACEOF 20273if ac_fn_cxx_try_link "$LINENO" 20274then : 20275 20276 lt_aix_libpath_sed=' 20277 /Import File Strings/,/^$/ { 20278 /^0/ { 20279 s/^0 *\([^ ]*\) *$/\1/ 20280 p 20281 } 20282 }' 20283 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20284 # Check for a 64-bit object if we didn't find anything. 20285 if test -z "$lt_cv_aix_libpath__CXX"; then 20286 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20287 fi 20288fi 20289rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20290 conftest$ac_exeext conftest.$ac_ext 20291 if test -z "$lt_cv_aix_libpath__CXX"; then 20292 lt_cv_aix_libpath__CXX=/usr/lib:/lib 20293 fi 20294 20295fi 20296 20297 aix_libpath=$lt_cv_aix_libpath__CXX 20298fi 20299 20300 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 20301 20302 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 20303 else 20304 if test ia64 = "$host_cpu"; then 20305 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 20306 allow_undefined_flag_CXX="-z nodefs" 20307 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" 20308 else 20309 # Determine the default libpath from the value encoded in an 20310 # empty executable. 20311 if test set = "${lt_cv_aix_libpath+set}"; then 20312 aix_libpath=$lt_cv_aix_libpath 20313else 20314 if test ${lt_cv_aix_libpath__CXX+y} 20315then : 20316 printf %s "(cached) " >&6 20317else $as_nop 20318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20319/* end confdefs.h. */ 20320 20321int 20322main (void) 20323{ 20324 20325 ; 20326 return 0; 20327} 20328_ACEOF 20329if ac_fn_cxx_try_link "$LINENO" 20330then : 20331 20332 lt_aix_libpath_sed=' 20333 /Import File Strings/,/^$/ { 20334 /^0/ { 20335 s/^0 *\([^ ]*\) *$/\1/ 20336 p 20337 } 20338 }' 20339 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20340 # Check for a 64-bit object if we didn't find anything. 20341 if test -z "$lt_cv_aix_libpath__CXX"; then 20342 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20343 fi 20344fi 20345rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20346 conftest$ac_exeext conftest.$ac_ext 20347 if test -z "$lt_cv_aix_libpath__CXX"; then 20348 lt_cv_aix_libpath__CXX=/usr/lib:/lib 20349 fi 20350 20351fi 20352 20353 aix_libpath=$lt_cv_aix_libpath__CXX 20354fi 20355 20356 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 20357 # Warning - without using the other run time loading flags, 20358 # -berok will link without error, but may produce a broken library. 20359 no_undefined_flag_CXX=' $wl-bernotok' 20360 allow_undefined_flag_CXX=' $wl-berok' 20361 if test yes = "$with_gnu_ld"; then 20362 # We only use this code for GNU lds that support --whole-archive. 20363 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 20364 else 20365 # Exported symbols can be pulled into shared objects from archives 20366 whole_archive_flag_spec_CXX='$convenience' 20367 fi 20368 archive_cmds_need_lc_CXX=yes 20369 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 20370 # -brtl affects multiple linker settings, -berok does not and is overridden later 20371 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 20372 if test svr4 != "$with_aix_soname"; then 20373 # This is similar to how AIX traditionally builds its shared 20374 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 20375 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' 20376 fi 20377 if test aix != "$with_aix_soname"; then 20378 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' 20379 else 20380 # used by -dlpreopen to get the symbols 20381 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 20382 fi 20383 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 20384 fi 20385 fi 20386 ;; 20387 20388 beos*) 20389 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20390 allow_undefined_flag_CXX=unsupported 20391 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 20392 # support --undefined. This deserves some investigation. FIXME 20393 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20394 else 20395 ld_shlibs_CXX=no 20396 fi 20397 ;; 20398 20399 chorus*) 20400 case $cc_basename in 20401 *) 20402 # FIXME: insert proper C++ library support 20403 ld_shlibs_CXX=no 20404 ;; 20405 esac 20406 ;; 20407 20408 cygwin* | mingw* | pw32* | cegcc*) 20409 case $GXX,$cc_basename in 20410 ,cl* | no,cl*) 20411 # Native MSVC 20412 # hardcode_libdir_flag_spec is actually meaningless, as there is 20413 # no search path for DLLs. 20414 hardcode_libdir_flag_spec_CXX=' ' 20415 allow_undefined_flag_CXX=unsupported 20416 always_export_symbols_CXX=yes 20417 file_list_spec_CXX='@' 20418 # Tell ltmain to make .lib files, not .a files. 20419 libext=lib 20420 # Tell ltmain to make .dll files, not .so files. 20421 shrext_cmds=.dll 20422 # FIXME: Setting linknames here is a bad hack. 20423 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 20424 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 20425 cp "$export_symbols" "$output_objdir/$soname.def"; 20426 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 20427 else 20428 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 20429 fi~ 20430 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 20431 linknames=' 20432 # The linker will not automatically build a static lib if we build a DLL. 20433 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 20434 enable_shared_with_static_runtimes_CXX=yes 20435 # Don't use ranlib 20436 old_postinstall_cmds_CXX='chmod 644 $oldlib' 20437 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 20438 lt_tool_outputfile="@TOOL_OUTPUT@"~ 20439 case $lt_outputfile in 20440 *.exe|*.EXE) ;; 20441 *) 20442 lt_outputfile=$lt_outputfile.exe 20443 lt_tool_outputfile=$lt_tool_outputfile.exe 20444 ;; 20445 esac~ 20446 func_to_tool_file "$lt_outputfile"~ 20447 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 20448 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 20449 $RM "$lt_outputfile.manifest"; 20450 fi' 20451 ;; 20452 *) 20453 # g++ 20454 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 20455 # as there is no search path for DLLs. 20456 hardcode_libdir_flag_spec_CXX='-L$libdir' 20457 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 20458 allow_undefined_flag_CXX=unsupported 20459 always_export_symbols_CXX=no 20460 enable_shared_with_static_runtimes_CXX=yes 20461 20462 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 20463 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' 20464 # If the export-symbols file already is a .def file, use it as 20465 # is; otherwise, prepend EXPORTS... 20466 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 20467 cp $export_symbols $output_objdir/$soname.def; 20468 else 20469 echo EXPORTS > $output_objdir/$soname.def; 20470 cat $export_symbols >> $output_objdir/$soname.def; 20471 fi~ 20472 $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' 20473 else 20474 ld_shlibs_CXX=no 20475 fi 20476 ;; 20477 esac 20478 ;; 20479 darwin* | rhapsody*) 20480 20481 20482 archive_cmds_need_lc_CXX=no 20483 hardcode_direct_CXX=no 20484 hardcode_automatic_CXX=yes 20485 hardcode_shlibpath_var_CXX=unsupported 20486 if test yes = "$lt_cv_ld_force_load"; then 20487 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\"`' 20488 20489 else 20490 whole_archive_flag_spec_CXX='' 20491 fi 20492 link_all_deplibs_CXX=yes 20493 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 20494 case $cc_basename in 20495 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 20496 *) _lt_dar_can_shared=$GCC ;; 20497 esac 20498 if test yes = "$_lt_dar_can_shared"; then 20499 output_verbose_link_cmd=func_echo_all 20500 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" 20501 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 20502 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" 20503 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" 20504 if test yes != "$lt_cv_apple_cc_single_mod"; then 20505 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" 20506 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" 20507 fi 20508 20509 else 20510 ld_shlibs_CXX=no 20511 fi 20512 20513 ;; 20514 20515 os2*) 20516 hardcode_libdir_flag_spec_CXX='-L$libdir' 20517 hardcode_minus_L_CXX=yes 20518 allow_undefined_flag_CXX=unsupported 20519 shrext_cmds=.dll 20520 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20521 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20522 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20523 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20524 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 20525 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20526 emximp -o $lib $output_objdir/$libname.def' 20527 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20528 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20529 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20530 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20531 prefix_cmds="$SED"~ 20532 if test EXPORTS = "`$SED 1q $export_symbols`"; then 20533 prefix_cmds="$prefix_cmds -e 1d"; 20534 fi~ 20535 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 20536 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 20537 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20538 emximp -o $lib $output_objdir/$libname.def' 20539 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 20540 enable_shared_with_static_runtimes_CXX=yes 20541 ;; 20542 20543 dgux*) 20544 case $cc_basename in 20545 ec++*) 20546 # FIXME: insert proper C++ library support 20547 ld_shlibs_CXX=no 20548 ;; 20549 ghcx*) 20550 # Green Hills C++ Compiler 20551 # FIXME: insert proper C++ library support 20552 ld_shlibs_CXX=no 20553 ;; 20554 *) 20555 # FIXME: insert proper C++ library support 20556 ld_shlibs_CXX=no 20557 ;; 20558 esac 20559 ;; 20560 20561 freebsd2.*) 20562 # C++ shared libraries reported to be fairly broken before 20563 # switch to ELF 20564 ld_shlibs_CXX=no 20565 ;; 20566 20567 freebsd-elf*) 20568 archive_cmds_need_lc_CXX=no 20569 ;; 20570 20571 freebsd* | dragonfly*) 20572 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 20573 # conventions 20574 ld_shlibs_CXX=yes 20575 ;; 20576 20577 haiku*) 20578 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20579 link_all_deplibs_CXX=yes 20580 ;; 20581 20582 hpux9*) 20583 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 20584 hardcode_libdir_separator_CXX=: 20585 export_dynamic_flag_spec_CXX='$wl-E' 20586 hardcode_direct_CXX=yes 20587 hardcode_minus_L_CXX=yes # Not in the search PATH, 20588 # but as the default 20589 # location of the library. 20590 20591 case $cc_basename in 20592 CC*) 20593 # FIXME: insert proper C++ library support 20594 ld_shlibs_CXX=no 20595 ;; 20596 aCC*) 20597 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' 20598 # Commands to make compiler produce verbose output that lists 20599 # what "hidden" libraries, object files and flags are used when 20600 # linking a shared library. 20601 # 20602 # There doesn't appear to be a way to prevent this compiler from 20603 # explicitly linking system object files so we need to strip them 20604 # from the output so that they don't get included in the library 20605 # dependencies. 20606 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"' 20607 ;; 20608 *) 20609 if test yes = "$GXX"; then 20610 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' 20611 else 20612 # FIXME: insert proper C++ library support 20613 ld_shlibs_CXX=no 20614 fi 20615 ;; 20616 esac 20617 ;; 20618 20619 hpux10*|hpux11*) 20620 if test no = "$with_gnu_ld"; then 20621 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 20622 hardcode_libdir_separator_CXX=: 20623 20624 case $host_cpu in 20625 hppa*64*|ia64*) 20626 ;; 20627 *) 20628 export_dynamic_flag_spec_CXX='$wl-E' 20629 ;; 20630 esac 20631 fi 20632 case $host_cpu in 20633 hppa*64*|ia64*) 20634 hardcode_direct_CXX=no 20635 hardcode_shlibpath_var_CXX=no 20636 ;; 20637 *) 20638 hardcode_direct_CXX=yes 20639 hardcode_direct_absolute_CXX=yes 20640 hardcode_minus_L_CXX=yes # Not in the search PATH, 20641 # but as the default 20642 # location of the library. 20643 ;; 20644 esac 20645 20646 case $cc_basename in 20647 CC*) 20648 # FIXME: insert proper C++ library support 20649 ld_shlibs_CXX=no 20650 ;; 20651 aCC*) 20652 case $host_cpu in 20653 hppa*64*) 20654 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20655 ;; 20656 ia64*) 20657 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20658 ;; 20659 *) 20660 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20661 ;; 20662 esac 20663 # Commands to make compiler produce verbose output that lists 20664 # what "hidden" libraries, object files and flags are used when 20665 # linking a shared library. 20666 # 20667 # There doesn't appear to be a way to prevent this compiler from 20668 # explicitly linking system object files so we need to strip them 20669 # from the output so that they don't get included in the library 20670 # dependencies. 20671 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"' 20672 ;; 20673 *) 20674 if test yes = "$GXX"; then 20675 if test no = "$with_gnu_ld"; then 20676 case $host_cpu in 20677 hppa*64*) 20678 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20679 ;; 20680 ia64*) 20681 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20682 ;; 20683 *) 20684 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' 20685 ;; 20686 esac 20687 fi 20688 else 20689 # FIXME: insert proper C++ library support 20690 ld_shlibs_CXX=no 20691 fi 20692 ;; 20693 esac 20694 ;; 20695 20696 interix[3-9]*) 20697 hardcode_direct_CXX=no 20698 hardcode_shlibpath_var_CXX=no 20699 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20700 export_dynamic_flag_spec_CXX='$wl-E' 20701 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 20702 # Instead, shared libraries are loaded at an image base (0x10000000 by 20703 # default) and relocated if they conflict, which is a slow very memory 20704 # consuming and fragmenting process. To avoid this, we pick a random, 20705 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 20706 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 20707 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' 20708 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' 20709 ;; 20710 irix5* | irix6*) 20711 case $cc_basename in 20712 CC*) 20713 # SGI C++ 20714 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' 20715 20716 # Archives containing C++ object files must be created using 20717 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 20718 # necessary to make sure instantiated templates are included 20719 # in the archive. 20720 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 20721 ;; 20722 *) 20723 if test yes = "$GXX"; then 20724 if test no = "$with_gnu_ld"; then 20725 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' 20726 else 20727 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' 20728 fi 20729 fi 20730 link_all_deplibs_CXX=yes 20731 ;; 20732 esac 20733 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20734 hardcode_libdir_separator_CXX=: 20735 inherit_rpath_CXX=yes 20736 ;; 20737 20738 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20739 case $cc_basename in 20740 KCC*) 20741 # Kuck and Associates, Inc. (KAI) C++ Compiler 20742 20743 # KCC will only create a shared library if the output file 20744 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20745 # to its proper name (with version) after linking. 20746 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' 20747 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' 20748 # Commands to make compiler produce verbose output that lists 20749 # what "hidden" libraries, object files and flags are used when 20750 # linking a shared library. 20751 # 20752 # There doesn't appear to be a way to prevent this compiler from 20753 # explicitly linking system object files so we need to strip them 20754 # from the output so that they don't get included in the library 20755 # dependencies. 20756 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"' 20757 20758 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20759 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20760 20761 # Archives containing C++ object files must be created using 20762 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 20763 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 20764 ;; 20765 icpc* | ecpc* ) 20766 # Intel C++ 20767 with_gnu_ld=yes 20768 # version 8.0 and above of icpc choke on multiply defined symbols 20769 # if we add $predep_objects and $postdep_objects, however 7.1 and 20770 # earlier do not add the objects themselves. 20771 case `$CC -V 2>&1` in 20772 *"Version 7."*) 20773 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20774 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' 20775 ;; 20776 *) # Version 8.0 or newer 20777 tmp_idyn= 20778 case $host_cpu in 20779 ia64*) tmp_idyn=' -i_dynamic';; 20780 esac 20781 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20782 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' 20783 ;; 20784 esac 20785 archive_cmds_need_lc_CXX=no 20786 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20787 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20788 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 20789 ;; 20790 pgCC* | pgcpp*) 20791 # Portland Group C++ compiler 20792 case `$CC -V` in 20793 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 20794 prelink_cmds_CXX='tpldir=Template.dir~ 20795 rm -rf $tpldir~ 20796 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 20797 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 20798 old_archive_cmds_CXX='tpldir=Template.dir~ 20799 rm -rf $tpldir~ 20800 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 20801 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 20802 $RANLIB $oldlib' 20803 archive_cmds_CXX='tpldir=Template.dir~ 20804 rm -rf $tpldir~ 20805 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20806 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20807 archive_expsym_cmds_CXX='tpldir=Template.dir~ 20808 rm -rf $tpldir~ 20809 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 20810 $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' 20811 ;; 20812 *) # Version 6 and above use weak symbols 20813 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20814 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' 20815 ;; 20816 esac 20817 20818 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 20819 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20820 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' 20821 ;; 20822 cxx*) 20823 # Compaq C++ 20824 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20825 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' 20826 20827 runpath_var=LD_RUN_PATH 20828 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20829 hardcode_libdir_separator_CXX=: 20830 20831 # Commands to make compiler produce verbose output that lists 20832 # what "hidden" libraries, object files and flags are used when 20833 # linking a shared library. 20834 # 20835 # There doesn't appear to be a way to prevent this compiler from 20836 # explicitly linking system object files so we need to strip them 20837 # from the output so that they don't get included in the library 20838 # dependencies. 20839 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' 20840 ;; 20841 xl* | mpixl* | bgxl*) 20842 # IBM XL 8.0 on PPC, with GNU ld 20843 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20844 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20845 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20846 if test yes = "$supports_anon_versioning"; then 20847 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 20848 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20849 echo "local: *; };" >> $output_objdir/$libname.ver~ 20850 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 20851 fi 20852 ;; 20853 *) 20854 case `$CC -V 2>&1 | sed 5q` in 20855 *Sun\ C*) 20856 # Sun C++ 5.9 20857 no_undefined_flag_CXX=' -zdefs' 20858 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20859 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' 20860 hardcode_libdir_flag_spec_CXX='-R$libdir' 20861 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' 20862 compiler_needs_object_CXX=yes 20863 20864 # Not sure whether something based on 20865 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 20866 # would be better. 20867 output_verbose_link_cmd='func_echo_all' 20868 20869 # Archives containing C++ object files must be created using 20870 # "CC -xar", where "CC" is the Sun C++ compiler. This is 20871 # necessary to make sure instantiated templates are included 20872 # in the archive. 20873 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 20874 ;; 20875 esac 20876 ;; 20877 esac 20878 ;; 20879 20880 lynxos*) 20881 # FIXME: insert proper C++ library support 20882 ld_shlibs_CXX=no 20883 ;; 20884 20885 m88k*) 20886 # FIXME: insert proper C++ library support 20887 ld_shlibs_CXX=no 20888 ;; 20889 20890 mvs*) 20891 case $cc_basename in 20892 cxx*) 20893 # FIXME: insert proper C++ library support 20894 ld_shlibs_CXX=no 20895 ;; 20896 *) 20897 # FIXME: insert proper C++ library support 20898 ld_shlibs_CXX=no 20899 ;; 20900 esac 20901 ;; 20902 20903 netbsd*) 20904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20905 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 20906 wlarc= 20907 hardcode_libdir_flag_spec_CXX='-R$libdir' 20908 hardcode_direct_CXX=yes 20909 hardcode_shlibpath_var_CXX=no 20910 fi 20911 # Workaround some broken pre-1.5 toolchains 20912 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 20913 ;; 20914 20915 *nto* | *qnx*) 20916 ld_shlibs_CXX=yes 20917 ;; 20918 20919 openbsd* | bitrig*) 20920 if test -f /usr/libexec/ld.so; then 20921 hardcode_direct_CXX=yes 20922 hardcode_shlibpath_var_CXX=no 20923 hardcode_direct_absolute_CXX=yes 20924 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20925 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 20927 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 20928 export_dynamic_flag_spec_CXX='$wl-E' 20929 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 20930 fi 20931 output_verbose_link_cmd=func_echo_all 20932 else 20933 ld_shlibs_CXX=no 20934 fi 20935 ;; 20936 20937 osf3* | osf4* | osf5*) 20938 case $cc_basename in 20939 KCC*) 20940 # Kuck and Associates, Inc. (KAI) C++ Compiler 20941 20942 # KCC will only create a shared library if the output file 20943 # ends with ".so" (or ".sl" for HP-UX), so rename the library 20944 # to its proper name (with version) after linking. 20945 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' 20946 20947 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 20948 hardcode_libdir_separator_CXX=: 20949 20950 # Archives containing C++ object files must be created using 20951 # the KAI C++ compiler. 20952 case $host in 20953 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 20954 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 20955 esac 20956 ;; 20957 RCC*) 20958 # Rational C++ 2.4.1 20959 # FIXME: insert proper C++ library support 20960 ld_shlibs_CXX=no 20961 ;; 20962 cxx*) 20963 case $host in 20964 osf3*) 20965 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 20966 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' 20967 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20968 ;; 20969 *) 20970 allow_undefined_flag_CXX=' -expect_unresolved \*' 20971 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' 20972 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 20973 echo "-hidden">> $lib.exp~ 20974 $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~ 20975 $RM $lib.exp' 20976 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 20977 ;; 20978 esac 20979 20980 hardcode_libdir_separator_CXX=: 20981 20982 # Commands to make compiler produce verbose output that lists 20983 # what "hidden" libraries, object files and flags are used when 20984 # linking a shared library. 20985 # 20986 # There doesn't appear to be a way to prevent this compiler from 20987 # explicitly linking system object files so we need to strip them 20988 # from the output so that they don't get included in the library 20989 # dependencies. 20990 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"' 20991 ;; 20992 *) 20993 if test yes,no = "$GXX,$with_gnu_ld"; then 20994 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 20995 case $host in 20996 osf3*) 20997 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' 20998 ;; 20999 *) 21000 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' 21001 ;; 21002 esac 21003 21004 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 21005 hardcode_libdir_separator_CXX=: 21006 21007 # Commands to make compiler produce verbose output that lists 21008 # what "hidden" libraries, object files and flags are used when 21009 # linking a shared library. 21010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 21011 21012 else 21013 # FIXME: insert proper C++ library support 21014 ld_shlibs_CXX=no 21015 fi 21016 ;; 21017 esac 21018 ;; 21019 21020 psos*) 21021 # FIXME: insert proper C++ library support 21022 ld_shlibs_CXX=no 21023 ;; 21024 21025 sunos4*) 21026 case $cc_basename in 21027 CC*) 21028 # Sun C++ 4.x 21029 # FIXME: insert proper C++ library support 21030 ld_shlibs_CXX=no 21031 ;; 21032 lcc*) 21033 # Lucid 21034 # FIXME: insert proper C++ library support 21035 ld_shlibs_CXX=no 21036 ;; 21037 *) 21038 # FIXME: insert proper C++ library support 21039 ld_shlibs_CXX=no 21040 ;; 21041 esac 21042 ;; 21043 21044 solaris*) 21045 case $cc_basename in 21046 CC* | sunCC*) 21047 # Sun C++ 4.2, 5.x and Centerline C++ 21048 archive_cmds_need_lc_CXX=yes 21049 no_undefined_flag_CXX=' -zdefs' 21050 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21051 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21052 $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' 21053 21054 hardcode_libdir_flag_spec_CXX='-R$libdir' 21055 hardcode_shlibpath_var_CXX=no 21056 case $host_os in 21057 solaris2.[0-5] | solaris2.[0-5].*) ;; 21058 *) 21059 # The compiler driver will combine and reorder linker options, 21060 # but understands '-z linker_flag'. 21061 # Supported since Solaris 2.6 (maybe 2.5.1?) 21062 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 21063 ;; 21064 esac 21065 link_all_deplibs_CXX=yes 21066 21067 output_verbose_link_cmd='func_echo_all' 21068 21069 # Archives containing C++ object files must be created using 21070 # "CC -xar", where "CC" is the Sun C++ compiler. This is 21071 # necessary to make sure instantiated templates are included 21072 # in the archive. 21073 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 21074 ;; 21075 gcx*) 21076 # Green Hills C++ Compiler 21077 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21078 21079 # The C++ compiler must be used to create the archive. 21080 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 21081 ;; 21082 *) 21083 # GNU C++ compiler with Solaris linker 21084 if test yes,no = "$GXX,$with_gnu_ld"; then 21085 no_undefined_flag_CXX=' $wl-z ${wl}defs' 21086 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 21087 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21088 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21089 $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' 21090 21091 # Commands to make compiler produce verbose output that lists 21092 # what "hidden" libraries, object files and flags are used when 21093 # linking a shared library. 21094 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 21095 else 21096 # g++ 2.7 appears to require '-G' NOT '-shared' on this 21097 # platform. 21098 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21099 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21100 $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' 21101 21102 # Commands to make compiler produce verbose output that lists 21103 # what "hidden" libraries, object files and flags are used when 21104 # linking a shared library. 21105 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 21106 fi 21107 21108 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 21109 case $host_os in 21110 solaris2.[0-5] | solaris2.[0-5].*) ;; 21111 *) 21112 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 21113 ;; 21114 esac 21115 fi 21116 ;; 21117 esac 21118 ;; 21119 21120 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 21121 no_undefined_flag_CXX='$wl-z,text' 21122 archive_cmds_need_lc_CXX=no 21123 hardcode_shlibpath_var_CXX=no 21124 runpath_var='LD_RUN_PATH' 21125 21126 case $cc_basename in 21127 CC*) 21128 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21129 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21130 ;; 21131 *) 21132 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21133 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21134 ;; 21135 esac 21136 ;; 21137 21138 sysv5* | sco3.2v5* | sco5v6*) 21139 # Note: We CANNOT use -z defs as we might desire, because we do not 21140 # link with -lc, and that would cause any symbols used from libc to 21141 # always be unresolved, which means just about no library would 21142 # ever link correctly. If we're not using GNU ld we use -z text 21143 # though, which does catch some bad symbols but isn't as heavy-handed 21144 # as -z defs. 21145 no_undefined_flag_CXX='$wl-z,text' 21146 allow_undefined_flag_CXX='$wl-z,nodefs' 21147 archive_cmds_need_lc_CXX=no 21148 hardcode_shlibpath_var_CXX=no 21149 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 21150 hardcode_libdir_separator_CXX=':' 21151 link_all_deplibs_CXX=yes 21152 export_dynamic_flag_spec_CXX='$wl-Bexport' 21153 runpath_var='LD_RUN_PATH' 21154 21155 case $cc_basename in 21156 CC*) 21157 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21158 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21159 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 21160 '"$old_archive_cmds_CXX" 21161 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 21162 '"$reload_cmds_CXX" 21163 ;; 21164 *) 21165 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21166 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21167 ;; 21168 esac 21169 ;; 21170 21171 tandem*) 21172 case $cc_basename in 21173 NCC*) 21174 # NonStop-UX NCC 3.20 21175 # FIXME: insert proper C++ library support 21176 ld_shlibs_CXX=no 21177 ;; 21178 *) 21179 # FIXME: insert proper C++ library support 21180 ld_shlibs_CXX=no 21181 ;; 21182 esac 21183 ;; 21184 21185 vxworks*) 21186 # FIXME: insert proper C++ library support 21187 ld_shlibs_CXX=no 21188 ;; 21189 21190 *) 21191 # FIXME: insert proper C++ library support 21192 ld_shlibs_CXX=no 21193 ;; 21194 esac 21195 21196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 21197printf "%s\n" "$ld_shlibs_CXX" >&6; } 21198 test no = "$ld_shlibs_CXX" && can_build_shared=no 21199 21200 GCC_CXX=$GXX 21201 LD_CXX=$LD 21202 21203 ## CAVEAT EMPTOR: 21204 ## There is no encapsulation within the following macros, do not change 21205 ## the running order or otherwise move them around unless you know exactly 21206 ## what you are doing... 21207 # Dependencies to place before and after the object being linked: 21208predep_objects_CXX= 21209postdep_objects_CXX= 21210predeps_CXX= 21211postdeps_CXX= 21212compiler_lib_search_path_CXX= 21213 21214cat > conftest.$ac_ext <<_LT_EOF 21215class Foo 21216{ 21217public: 21218 Foo (void) { a = 0; } 21219private: 21220 int a; 21221}; 21222_LT_EOF 21223 21224 21225_lt_libdeps_save_CFLAGS=$CFLAGS 21226case "$CC $CFLAGS " in #( 21227*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 21228*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 21229*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 21230esac 21231 21232if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21233 (eval $ac_compile) 2>&5 21234 ac_status=$? 21235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21236 test $ac_status = 0; }; then 21237 # Parse the compiler output and extract the necessary 21238 # objects, libraries and library flags. 21239 21240 # Sentinel used to keep track of whether or not we are before 21241 # the conftest object file. 21242 pre_test_object_deps_done=no 21243 21244 for p in `eval "$output_verbose_link_cmd"`; do 21245 case $prev$p in 21246 21247 -L* | -R* | -l*) 21248 # Some compilers place space between "-{L,R}" and the path. 21249 # Remove the space. 21250 if test x-L = "$p" || 21251 test x-R = "$p"; then 21252 prev=$p 21253 continue 21254 fi 21255 21256 # Expand the sysroot to ease extracting the directories later. 21257 if test -z "$prev"; then 21258 case $p in 21259 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 21260 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 21261 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 21262 esac 21263 fi 21264 case $p in 21265 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 21266 esac 21267 if test no = "$pre_test_object_deps_done"; then 21268 case $prev in 21269 -L | -R) 21270 # Internal compiler library paths should come after those 21271 # provided the user. The postdeps already come after the 21272 # user supplied libs so there is no need to process them. 21273 if test -z "$compiler_lib_search_path_CXX"; then 21274 compiler_lib_search_path_CXX=$prev$p 21275 else 21276 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 21277 fi 21278 ;; 21279 # The "-l" case would never come before the object being 21280 # linked, so don't bother handling this case. 21281 esac 21282 else 21283 if test -z "$postdeps_CXX"; then 21284 postdeps_CXX=$prev$p 21285 else 21286 postdeps_CXX="${postdeps_CXX} $prev$p" 21287 fi 21288 fi 21289 prev= 21290 ;; 21291 21292 *.lto.$objext) ;; # Ignore GCC LTO objects 21293 *.$objext) 21294 # This assumes that the test object file only shows up 21295 # once in the compiler output. 21296 if test "$p" = "conftest.$objext"; then 21297 pre_test_object_deps_done=yes 21298 continue 21299 fi 21300 21301 if test no = "$pre_test_object_deps_done"; then 21302 if test -z "$predep_objects_CXX"; then 21303 predep_objects_CXX=$p 21304 else 21305 predep_objects_CXX="$predep_objects_CXX $p" 21306 fi 21307 else 21308 if test -z "$postdep_objects_CXX"; then 21309 postdep_objects_CXX=$p 21310 else 21311 postdep_objects_CXX="$postdep_objects_CXX $p" 21312 fi 21313 fi 21314 ;; 21315 21316 *) ;; # Ignore the rest. 21317 21318 esac 21319 done 21320 21321 # Clean up. 21322 rm -f a.out a.exe 21323else 21324 echo "libtool.m4: error: problem compiling CXX test program" 21325fi 21326 21327$RM -f confest.$objext 21328CFLAGS=$_lt_libdeps_save_CFLAGS 21329 21330# PORTME: override above test on systems where it is broken 21331case $host_os in 21332interix[3-9]*) 21333 # Interix 3.5 installs completely hosed .la files for C++, so rather than 21334 # hack all around it, let's just trust "g++" to DTRT. 21335 predep_objects_CXX= 21336 postdep_objects_CXX= 21337 postdeps_CXX= 21338 ;; 21339esac 21340 21341 21342case " $postdeps_CXX " in 21343*" -lc "*) archive_cmds_need_lc_CXX=no ;; 21344esac 21345 compiler_lib_search_dirs_CXX= 21346if test -n "${compiler_lib_search_path_CXX}"; then 21347 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 21348fi 21349 21350 21351 21352 21353 21354 21355 21356 21357 21358 21359 21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 lt_prog_compiler_wl_CXX= 21381lt_prog_compiler_pic_CXX= 21382lt_prog_compiler_static_CXX= 21383 21384 21385 # C++ specific cases for pic, static, wl, etc. 21386 if test yes = "$GXX"; then 21387 lt_prog_compiler_wl_CXX='-Wl,' 21388 lt_prog_compiler_static_CXX='-static' 21389 21390 case $host_os in 21391 aix*) 21392 # All AIX code is PIC. 21393 if test ia64 = "$host_cpu"; then 21394 # AIX 5 now supports IA64 processor 21395 lt_prog_compiler_static_CXX='-Bstatic' 21396 fi 21397 lt_prog_compiler_pic_CXX='-fPIC' 21398 ;; 21399 21400 amigaos*) 21401 case $host_cpu in 21402 powerpc) 21403 # see comment about AmigaOS4 .so support 21404 lt_prog_compiler_pic_CXX='-fPIC' 21405 ;; 21406 m68k) 21407 # FIXME: we need at least 68020 code to build shared libraries, but 21408 # adding the '-m68020' flag to GCC prevents building anything better, 21409 # like '-m68040'. 21410 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 21411 ;; 21412 esac 21413 ;; 21414 21415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 21416 # PIC is the default for these OSes. 21417 ;; 21418 mingw* | cygwin* | os2* | pw32* | cegcc*) 21419 # This hack is so that the source file can tell whether it is being 21420 # built for inclusion in a dll (and should export symbols for example). 21421 # Although the cygwin gcc ignores -fPIC, still need this for old-style 21422 # (--disable-auto-import) libraries 21423 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 21424 case $host_os in 21425 os2*) 21426 lt_prog_compiler_static_CXX='$wl-static' 21427 ;; 21428 esac 21429 ;; 21430 darwin* | rhapsody*) 21431 # PIC is the default on this platform 21432 # Common symbols not allowed in MH_DYLIB files 21433 lt_prog_compiler_pic_CXX='-fno-common' 21434 ;; 21435 *djgpp*) 21436 # DJGPP does not support shared libraries at all 21437 lt_prog_compiler_pic_CXX= 21438 ;; 21439 haiku*) 21440 # PIC is the default for Haiku. 21441 # The "-static" flag exists, but is broken. 21442 lt_prog_compiler_static_CXX= 21443 ;; 21444 interix[3-9]*) 21445 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 21446 # Instead, we relocate shared libraries at runtime. 21447 ;; 21448 sysv4*MP*) 21449 if test -d /usr/nec; then 21450 lt_prog_compiler_pic_CXX=-Kconform_pic 21451 fi 21452 ;; 21453 hpux*) 21454 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 21455 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 21456 # sets the default TLS model and affects inlining. 21457 case $host_cpu in 21458 hppa*64*) 21459 ;; 21460 *) 21461 lt_prog_compiler_pic_CXX='-fPIC' 21462 ;; 21463 esac 21464 ;; 21465 *qnx* | *nto*) 21466 # QNX uses GNU C++, but need to define -shared option too, otherwise 21467 # it will coredump. 21468 lt_prog_compiler_pic_CXX='-fPIC -shared' 21469 ;; 21470 *) 21471 lt_prog_compiler_pic_CXX='-fPIC' 21472 ;; 21473 esac 21474 else 21475 case $host_os in 21476 aix[4-9]*) 21477 # All AIX code is PIC. 21478 if test ia64 = "$host_cpu"; then 21479 # AIX 5 now supports IA64 processor 21480 lt_prog_compiler_static_CXX='-Bstatic' 21481 else 21482 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 21483 fi 21484 ;; 21485 chorus*) 21486 case $cc_basename in 21487 cxch68*) 21488 # Green Hills C++ Compiler 21489 # _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" 21490 ;; 21491 esac 21492 ;; 21493 mingw* | cygwin* | os2* | pw32* | cegcc*) 21494 # This hack is so that the source file can tell whether it is being 21495 # built for inclusion in a dll (and should export symbols for example). 21496 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 21497 ;; 21498 dgux*) 21499 case $cc_basename in 21500 ec++*) 21501 lt_prog_compiler_pic_CXX='-KPIC' 21502 ;; 21503 ghcx*) 21504 # Green Hills C++ Compiler 21505 lt_prog_compiler_pic_CXX='-pic' 21506 ;; 21507 *) 21508 ;; 21509 esac 21510 ;; 21511 freebsd* | dragonfly*) 21512 # FreeBSD uses GNU C++ 21513 ;; 21514 hpux9* | hpux10* | hpux11*) 21515 case $cc_basename in 21516 CC*) 21517 lt_prog_compiler_wl_CXX='-Wl,' 21518 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 21519 if test ia64 != "$host_cpu"; then 21520 lt_prog_compiler_pic_CXX='+Z' 21521 fi 21522 ;; 21523 aCC*) 21524 lt_prog_compiler_wl_CXX='-Wl,' 21525 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 21526 case $host_cpu in 21527 hppa*64*|ia64*) 21528 # +Z the default 21529 ;; 21530 *) 21531 lt_prog_compiler_pic_CXX='+Z' 21532 ;; 21533 esac 21534 ;; 21535 *) 21536 ;; 21537 esac 21538 ;; 21539 interix*) 21540 # This is c89, which is MS Visual C++ (no shared libs) 21541 # Anyone wants to do a port? 21542 ;; 21543 irix5* | irix6* | nonstopux*) 21544 case $cc_basename in 21545 CC*) 21546 lt_prog_compiler_wl_CXX='-Wl,' 21547 lt_prog_compiler_static_CXX='-non_shared' 21548 # CC pic flag -KPIC is the default. 21549 ;; 21550 *) 21551 ;; 21552 esac 21553 ;; 21554 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21555 case $cc_basename in 21556 KCC*) 21557 # KAI C++ Compiler 21558 lt_prog_compiler_wl_CXX='--backend -Wl,' 21559 lt_prog_compiler_pic_CXX='-fPIC' 21560 ;; 21561 ecpc* ) 21562 # old Intel C++ for x86_64, which still supported -KPIC. 21563 lt_prog_compiler_wl_CXX='-Wl,' 21564 lt_prog_compiler_pic_CXX='-KPIC' 21565 lt_prog_compiler_static_CXX='-static' 21566 ;; 21567 icpc* ) 21568 # Intel C++, used to be incompatible with GCC. 21569 # ICC 10 doesn't accept -KPIC any more. 21570 lt_prog_compiler_wl_CXX='-Wl,' 21571 lt_prog_compiler_pic_CXX='-fPIC' 21572 lt_prog_compiler_static_CXX='-static' 21573 ;; 21574 pgCC* | pgcpp*) 21575 # Portland Group C++ compiler 21576 lt_prog_compiler_wl_CXX='-Wl,' 21577 lt_prog_compiler_pic_CXX='-fpic' 21578 lt_prog_compiler_static_CXX='-Bstatic' 21579 ;; 21580 cxx*) 21581 # Compaq C++ 21582 # Make sure the PIC flag is empty. It appears that all Alpha 21583 # Linux and Compaq Tru64 Unix objects are PIC. 21584 lt_prog_compiler_pic_CXX= 21585 lt_prog_compiler_static_CXX='-non_shared' 21586 ;; 21587 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 21588 # IBM XL 8.0, 9.0 on PPC and BlueGene 21589 lt_prog_compiler_wl_CXX='-Wl,' 21590 lt_prog_compiler_pic_CXX='-qpic' 21591 lt_prog_compiler_static_CXX='-qstaticlink' 21592 ;; 21593 *) 21594 case `$CC -V 2>&1 | sed 5q` in 21595 *Sun\ C*) 21596 # Sun C++ 5.9 21597 lt_prog_compiler_pic_CXX='-KPIC' 21598 lt_prog_compiler_static_CXX='-Bstatic' 21599 lt_prog_compiler_wl_CXX='-Qoption ld ' 21600 ;; 21601 esac 21602 ;; 21603 esac 21604 ;; 21605 lynxos*) 21606 ;; 21607 m88k*) 21608 ;; 21609 mvs*) 21610 case $cc_basename in 21611 cxx*) 21612 lt_prog_compiler_pic_CXX='-W c,exportall' 21613 ;; 21614 *) 21615 ;; 21616 esac 21617 ;; 21618 netbsd* | netbsdelf*-gnu) 21619 ;; 21620 *qnx* | *nto*) 21621 # QNX uses GNU C++, but need to define -shared option too, otherwise 21622 # it will coredump. 21623 lt_prog_compiler_pic_CXX='-fPIC -shared' 21624 ;; 21625 osf3* | osf4* | osf5*) 21626 case $cc_basename in 21627 KCC*) 21628 lt_prog_compiler_wl_CXX='--backend -Wl,' 21629 ;; 21630 RCC*) 21631 # Rational C++ 2.4.1 21632 lt_prog_compiler_pic_CXX='-pic' 21633 ;; 21634 cxx*) 21635 # Digital/Compaq C++ 21636 lt_prog_compiler_wl_CXX='-Wl,' 21637 # Make sure the PIC flag is empty. It appears that all Alpha 21638 # Linux and Compaq Tru64 Unix objects are PIC. 21639 lt_prog_compiler_pic_CXX= 21640 lt_prog_compiler_static_CXX='-non_shared' 21641 ;; 21642 *) 21643 ;; 21644 esac 21645 ;; 21646 psos*) 21647 ;; 21648 solaris*) 21649 case $cc_basename in 21650 CC* | sunCC*) 21651 # Sun C++ 4.2, 5.x and Centerline C++ 21652 lt_prog_compiler_pic_CXX='-KPIC' 21653 lt_prog_compiler_static_CXX='-Bstatic' 21654 lt_prog_compiler_wl_CXX='-Qoption ld ' 21655 ;; 21656 gcx*) 21657 # Green Hills C++ Compiler 21658 lt_prog_compiler_pic_CXX='-PIC' 21659 ;; 21660 *) 21661 ;; 21662 esac 21663 ;; 21664 sunos4*) 21665 case $cc_basename in 21666 CC*) 21667 # Sun C++ 4.x 21668 lt_prog_compiler_pic_CXX='-pic' 21669 lt_prog_compiler_static_CXX='-Bstatic' 21670 ;; 21671 lcc*) 21672 # Lucid 21673 lt_prog_compiler_pic_CXX='-pic' 21674 ;; 21675 *) 21676 ;; 21677 esac 21678 ;; 21679 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 21680 case $cc_basename in 21681 CC*) 21682 lt_prog_compiler_wl_CXX='-Wl,' 21683 lt_prog_compiler_pic_CXX='-KPIC' 21684 lt_prog_compiler_static_CXX='-Bstatic' 21685 ;; 21686 esac 21687 ;; 21688 tandem*) 21689 case $cc_basename in 21690 NCC*) 21691 # NonStop-UX NCC 3.20 21692 lt_prog_compiler_pic_CXX='-KPIC' 21693 ;; 21694 *) 21695 ;; 21696 esac 21697 ;; 21698 vxworks*) 21699 ;; 21700 *) 21701 lt_prog_compiler_can_build_shared_CXX=no 21702 ;; 21703 esac 21704 fi 21705 21706case $host_os in 21707 # For platforms that do not support PIC, -DPIC is meaningless: 21708 *djgpp*) 21709 lt_prog_compiler_pic_CXX= 21710 ;; 21711 *) 21712 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 21713 ;; 21714esac 21715 21716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 21717printf %s "checking for $compiler option to produce PIC... " >&6; } 21718if test ${lt_cv_prog_compiler_pic_CXX+y} 21719then : 21720 printf %s "(cached) " >&6 21721else $as_nop 21722 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 21723fi 21724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 21725printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } 21726lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 21727 21728# 21729# Check to make sure the PIC flag actually works. 21730# 21731if test -n "$lt_prog_compiler_pic_CXX"; then 21732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 21733printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 21734if test ${lt_cv_prog_compiler_pic_works_CXX+y} 21735then : 21736 printf %s "(cached) " >&6 21737else $as_nop 21738 lt_cv_prog_compiler_pic_works_CXX=no 21739 ac_outfile=conftest.$ac_objext 21740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21741 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 21742 # Insert the option either (1) after the last *FLAGS variable, or 21743 # (2) before a word containing "conftest.", or (3) at the end. 21744 # Note that $ac_compile itself does not contain backslashes and begins 21745 # with a dollar sign (not a hyphen), so the echo should work correctly. 21746 # The option is referenced via a variable to avoid confusing sed. 21747 lt_compile=`echo "$ac_compile" | $SED \ 21748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21750 -e 's:$: $lt_compiler_flag:'` 21751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21752 (eval "$lt_compile" 2>conftest.err) 21753 ac_status=$? 21754 cat conftest.err >&5 21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21756 if (exit $ac_status) && test -s "$ac_outfile"; then 21757 # The compiler can only warn and ignore the option if not recognized 21758 # So say no if there are warnings other than the usual output. 21759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 21760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21761 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 21762 lt_cv_prog_compiler_pic_works_CXX=yes 21763 fi 21764 fi 21765 $RM conftest* 21766 21767fi 21768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 21769printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 21770 21771if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 21772 case $lt_prog_compiler_pic_CXX in 21773 "" | " "*) ;; 21774 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 21775 esac 21776else 21777 lt_prog_compiler_pic_CXX= 21778 lt_prog_compiler_can_build_shared_CXX=no 21779fi 21780 21781fi 21782 21783 21784 21785 21786 21787# 21788# Check to make sure the static flag actually works. 21789# 21790wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 21791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 21792printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 21793if test ${lt_cv_prog_compiler_static_works_CXX+y} 21794then : 21795 printf %s "(cached) " >&6 21796else $as_nop 21797 lt_cv_prog_compiler_static_works_CXX=no 21798 save_LDFLAGS=$LDFLAGS 21799 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 21800 echo "$lt_simple_link_test_code" > conftest.$ac_ext 21801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 21802 # The linker can only warn and ignore the option if not recognized 21803 # So say no if there are warnings 21804 if test -s conftest.err; then 21805 # Append any errors to the config.log. 21806 cat conftest.err 1>&5 21807 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 21808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21809 if diff conftest.exp conftest.er2 >/dev/null; then 21810 lt_cv_prog_compiler_static_works_CXX=yes 21811 fi 21812 else 21813 lt_cv_prog_compiler_static_works_CXX=yes 21814 fi 21815 fi 21816 $RM -r conftest* 21817 LDFLAGS=$save_LDFLAGS 21818 21819fi 21820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 21821printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } 21822 21823if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 21824 : 21825else 21826 lt_prog_compiler_static_CXX= 21827fi 21828 21829 21830 21831 21832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 21833printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 21834if test ${lt_cv_prog_compiler_c_o_CXX+y} 21835then : 21836 printf %s "(cached) " >&6 21837else $as_nop 21838 lt_cv_prog_compiler_c_o_CXX=no 21839 $RM -r conftest 2>/dev/null 21840 mkdir conftest 21841 cd conftest 21842 mkdir out 21843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21844 21845 lt_compiler_flag="-o out/conftest2.$ac_objext" 21846 # Insert the option either (1) after the last *FLAGS variable, or 21847 # (2) before a word containing "conftest.", or (3) at the end. 21848 # Note that $ac_compile itself does not contain backslashes and begins 21849 # with a dollar sign (not a hyphen), so the echo should work correctly. 21850 lt_compile=`echo "$ac_compile" | $SED \ 21851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21853 -e 's:$: $lt_compiler_flag:'` 21854 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21855 (eval "$lt_compile" 2>out/conftest.err) 21856 ac_status=$? 21857 cat out/conftest.err >&5 21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21859 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21860 then 21861 # The compiler can only warn and ignore the option if not recognized 21862 # So say no if there are warnings 21863 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21864 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21865 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21866 lt_cv_prog_compiler_c_o_CXX=yes 21867 fi 21868 fi 21869 chmod u+w . 2>&5 21870 $RM conftest* 21871 # SGI C++ compiler will create directory out/ii_files/ for 21872 # template instantiation 21873 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21874 $RM out/* && rmdir out 21875 cd .. 21876 $RM -r conftest 21877 $RM conftest* 21878 21879fi 21880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21881printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21882 21883 21884 21885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 21886printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 21887if test ${lt_cv_prog_compiler_c_o_CXX+y} 21888then : 21889 printf %s "(cached) " >&6 21890else $as_nop 21891 lt_cv_prog_compiler_c_o_CXX=no 21892 $RM -r conftest 2>/dev/null 21893 mkdir conftest 21894 cd conftest 21895 mkdir out 21896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21897 21898 lt_compiler_flag="-o out/conftest2.$ac_objext" 21899 # Insert the option either (1) after the last *FLAGS variable, or 21900 # (2) before a word containing "conftest.", or (3) at the end. 21901 # Note that $ac_compile itself does not contain backslashes and begins 21902 # with a dollar sign (not a hyphen), so the echo should work correctly. 21903 lt_compile=`echo "$ac_compile" | $SED \ 21904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 21905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 21906 -e 's:$: $lt_compiler_flag:'` 21907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 21908 (eval "$lt_compile" 2>out/conftest.err) 21909 ac_status=$? 21910 cat out/conftest.err >&5 21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21912 if (exit $ac_status) && test -s out/conftest2.$ac_objext 21913 then 21914 # The compiler can only warn and ignore the option if not recognized 21915 # So say no if there are warnings 21916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 21917 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21918 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21919 lt_cv_prog_compiler_c_o_CXX=yes 21920 fi 21921 fi 21922 chmod u+w . 2>&5 21923 $RM conftest* 21924 # SGI C++ compiler will create directory out/ii_files/ for 21925 # template instantiation 21926 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21927 $RM out/* && rmdir out 21928 cd .. 21929 $RM -r conftest 21930 $RM conftest* 21931 21932fi 21933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 21934printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 21935 21936 21937 21938 21939hard_links=nottested 21940if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 21941 # do not overwrite the value of need_locks provided by the user 21942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 21943printf %s "checking if we can lock with hard links... " >&6; } 21944 hard_links=yes 21945 $RM conftest* 21946 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21947 touch conftest.a 21948 ln conftest.a conftest.b 2>&5 || hard_links=no 21949 ln conftest.a conftest.b 2>/dev/null && hard_links=no 21950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 21951printf "%s\n" "$hard_links" >&6; } 21952 if test no = "$hard_links"; then 21953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 21954printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 21955 need_locks=warn 21956 fi 21957else 21958 need_locks=no 21959fi 21960 21961 21962 21963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 21964printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 21965 21966 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21967 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 21968 case $host_os in 21969 aix[4-9]*) 21970 # If we're using GNU nm, then we don't want the "-C" option. 21971 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 21972 # Without the "-l" option, or with the "-B" option, AIX nm treats 21973 # weak defined symbols like other global defined symbols, whereas 21974 # GNU nm marks them as "W". 21975 # While the 'weak' keyword is ignored in the Export File, we need 21976 # it in the Import File for the 'aix-soname' feature, so we have 21977 # to replace the "-B" option with "-P" for AIX nm. 21978 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 21979 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' 21980 else 21981 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' 21982 fi 21983 ;; 21984 pw32*) 21985 export_symbols_cmds_CXX=$ltdll_cmds 21986 ;; 21987 cygwin* | mingw* | cegcc*) 21988 case $cc_basename in 21989 cl*) 21990 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 21991 ;; 21992 *) 21993 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' 21994 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 21995 ;; 21996 esac 21997 ;; 21998 linux* | k*bsd*-gnu | gnu*) 21999 link_all_deplibs_CXX=no 22000 ;; 22001 *) 22002 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22003 ;; 22004 esac 22005 22006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 22007printf "%s\n" "$ld_shlibs_CXX" >&6; } 22008test no = "$ld_shlibs_CXX" && can_build_shared=no 22009 22010with_gnu_ld_CXX=$with_gnu_ld 22011 22012 22013 22014 22015 22016 22017# 22018# Do we need to explicitly link libc? 22019# 22020case "x$archive_cmds_need_lc_CXX" in 22021x|xyes) 22022 # Assume -lc should be added 22023 archive_cmds_need_lc_CXX=yes 22024 22025 if test yes,yes = "$GCC,$enable_shared"; then 22026 case $archive_cmds_CXX in 22027 *'~'*) 22028 # FIXME: we may have to deal with multi-command sequences. 22029 ;; 22030 '$CC '*) 22031 # Test whether the compiler implicitly links with -lc since on some 22032 # systems, -lgcc has to come before -lc. If gcc already passes -lc 22033 # to ld, don't add -lc before -lgcc. 22034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 22035printf %s "checking whether -lc should be explicitly linked in... " >&6; } 22036if test ${lt_cv_archive_cmds_need_lc_CXX+y} 22037then : 22038 printf %s "(cached) " >&6 22039else $as_nop 22040 $RM conftest* 22041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22042 22043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 22044 (eval $ac_compile) 2>&5 22045 ac_status=$? 22046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22047 test $ac_status = 0; } 2>conftest.err; then 22048 soname=conftest 22049 lib=conftest 22050 libobjs=conftest.$ac_objext 22051 deplibs= 22052 wl=$lt_prog_compiler_wl_CXX 22053 pic_flag=$lt_prog_compiler_pic_CXX 22054 compiler_flags=-v 22055 linker_flags=-v 22056 verstring= 22057 output_objdir=. 22058 libname=conftest 22059 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 22060 allow_undefined_flag_CXX= 22061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 22062 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 22063 ac_status=$? 22064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22065 test $ac_status = 0; } 22066 then 22067 lt_cv_archive_cmds_need_lc_CXX=no 22068 else 22069 lt_cv_archive_cmds_need_lc_CXX=yes 22070 fi 22071 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 22072 else 22073 cat conftest.err 1>&5 22074 fi 22075 $RM conftest* 22076 22077fi 22078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 22079printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 22080 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 22081 ;; 22082 esac 22083 fi 22084 ;; 22085esac 22086 22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 22142 22143 22144 22145 22146 22147 22148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 22149printf %s "checking dynamic linker characteristics... " >&6; } 22150 22151library_names_spec= 22152libname_spec='lib$name' 22153soname_spec= 22154shrext_cmds=.so 22155postinstall_cmds= 22156postuninstall_cmds= 22157finish_cmds= 22158finish_eval= 22159shlibpath_var= 22160shlibpath_overrides_runpath=unknown 22161version_type=none 22162dynamic_linker="$host_os ld.so" 22163sys_lib_dlsearch_path_spec="/lib /usr/lib" 22164need_lib_prefix=unknown 22165hardcode_into_libs=no 22166 22167# when you set need_version to no, make sure it does not cause -set_version 22168# flags to be left without arguments 22169need_version=unknown 22170 22171 22172 22173case $host_os in 22174aix3*) 22175 version_type=linux # correct to gnu/linux during the next big refactor 22176 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 22177 shlibpath_var=LIBPATH 22178 22179 # AIX 3 has no versioning support, so we append a major version to the name. 22180 soname_spec='$libname$release$shared_ext$major' 22181 ;; 22182 22183aix[4-9]*) 22184 version_type=linux # correct to gnu/linux during the next big refactor 22185 need_lib_prefix=no 22186 need_version=no 22187 hardcode_into_libs=yes 22188 if test ia64 = "$host_cpu"; then 22189 # AIX 5 supports IA64 22190 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 22191 shlibpath_var=LD_LIBRARY_PATH 22192 else 22193 # With GCC up to 2.95.x, collect2 would create an import file 22194 # for dependence libraries. The import file would start with 22195 # the line '#! .'. This would cause the generated library to 22196 # depend on '.', always an invalid library. This was fixed in 22197 # development snapshots of GCC prior to 3.0. 22198 case $host_os in 22199 aix4 | aix4.[01] | aix4.[01].*) 22200 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 22201 echo ' yes ' 22202 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 22203 : 22204 else 22205 can_build_shared=no 22206 fi 22207 ;; 22208 esac 22209 # Using Import Files as archive members, it is possible to support 22210 # filename-based versioning of shared library archives on AIX. While 22211 # this would work for both with and without runtime linking, it will 22212 # prevent static linking of such archives. So we do filename-based 22213 # shared library versioning with .so extension only, which is used 22214 # when both runtime linking and shared linking is enabled. 22215 # Unfortunately, runtime linking may impact performance, so we do 22216 # not want this to be the default eventually. Also, we use the 22217 # versioned .so libs for executables only if there is the -brtl 22218 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 22219 # To allow for filename-based versioning support, we need to create 22220 # libNAME.so.V as an archive file, containing: 22221 # *) an Import File, referring to the versioned filename of the 22222 # archive as well as the shared archive member, telling the 22223 # bitwidth (32 or 64) of that shared object, and providing the 22224 # list of exported symbols of that shared object, eventually 22225 # decorated with the 'weak' keyword 22226 # *) the shared object with the F_LOADONLY flag set, to really avoid 22227 # it being seen by the linker. 22228 # At run time we better use the real file rather than another symlink, 22229 # but for link time we create the symlink libNAME.so -> libNAME.so.V 22230 22231 case $with_aix_soname,$aix_use_runtimelinking in 22232 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 22233 # soname into executable. Probably we can add versioning support to 22234 # collect2, so additional links can be useful in future. 22235 aix,yes) # traditional libtool 22236 dynamic_linker='AIX unversionable lib.so' 22237 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 22238 # instead of lib<name>.a to let people know that these are not 22239 # typical AIX shared libraries. 22240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22241 ;; 22242 aix,no) # traditional AIX only 22243 dynamic_linker='AIX lib.a(lib.so.V)' 22244 # We preserve .a as extension for shared libraries through AIX4.2 22245 # and later when we are not doing run time linking. 22246 library_names_spec='$libname$release.a $libname.a' 22247 soname_spec='$libname$release$shared_ext$major' 22248 ;; 22249 svr4,*) # full svr4 only 22250 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 22251 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 22252 # We do not specify a path in Import Files, so LIBPATH fires. 22253 shlibpath_overrides_runpath=yes 22254 ;; 22255 *,yes) # both, prefer svr4 22256 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 22257 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 22258 # unpreferred sharedlib libNAME.a needs extra handling 22259 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"' 22260 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"' 22261 # We do not specify a path in Import Files, so LIBPATH fires. 22262 shlibpath_overrides_runpath=yes 22263 ;; 22264 *,no) # both, prefer aix 22265 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 22266 library_names_spec='$libname$release.a $libname.a' 22267 soname_spec='$libname$release$shared_ext$major' 22268 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 22269 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)' 22270 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"' 22271 ;; 22272 esac 22273 shlibpath_var=LIBPATH 22274 fi 22275 ;; 22276 22277amigaos*) 22278 case $host_cpu in 22279 powerpc) 22280 # Since July 2007 AmigaOS4 officially supports .so libraries. 22281 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 22282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22283 ;; 22284 m68k) 22285 library_names_spec='$libname.ixlibrary $libname.a' 22286 # Create ${libname}_ixlibrary.a entries in /sys/libs. 22287 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' 22288 ;; 22289 esac 22290 ;; 22291 22292beos*) 22293 library_names_spec='$libname$shared_ext' 22294 dynamic_linker="$host_os ld.so" 22295 shlibpath_var=LIBRARY_PATH 22296 ;; 22297 22298bsdi[45]*) 22299 version_type=linux # correct to gnu/linux during the next big refactor 22300 need_version=no 22301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22302 soname_spec='$libname$release$shared_ext$major' 22303 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 22304 shlibpath_var=LD_LIBRARY_PATH 22305 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 22306 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 22307 # the default ld.so.conf also contains /usr/contrib/lib and 22308 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 22309 # libtool to hard-code these into programs 22310 ;; 22311 22312cygwin* | mingw* | pw32* | cegcc*) 22313 version_type=windows 22314 shrext_cmds=.dll 22315 need_version=no 22316 need_lib_prefix=no 22317 22318 case $GCC,$cc_basename in 22319 yes,*) 22320 # gcc 22321 library_names_spec='$libname.dll.a' 22322 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22323 postinstall_cmds='base_file=`basename \$file`~ 22324 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 22325 dldir=$destdir/`dirname \$dlpath`~ 22326 test -d \$dldir || mkdir -p \$dldir~ 22327 $install_prog $dir/$dlname \$dldir/$dlname~ 22328 chmod a+x \$dldir/$dlname~ 22329 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22330 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22331 fi' 22332 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22333 dlpath=$dir/\$dldll~ 22334 $RM \$dlpath' 22335 shlibpath_overrides_runpath=yes 22336 22337 case $host_os in 22338 cygwin*) 22339 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 22340 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22341 22342 ;; 22343 mingw* | cegcc*) 22344 # MinGW DLLs use traditional 'lib' prefix 22345 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22346 ;; 22347 pw32*) 22348 # pw32 DLLs use 'pw' prefix rather than 'lib' 22349 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22350 ;; 22351 esac 22352 dynamic_linker='Win32 ld.exe' 22353 ;; 22354 22355 *,cl*) 22356 # Native MSVC 22357 libname_spec='$name' 22358 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22359 library_names_spec='$libname.dll.lib' 22360 22361 case $build_os in 22362 mingw*) 22363 sys_lib_search_path_spec= 22364 lt_save_ifs=$IFS 22365 IFS=';' 22366 for lt_path in $LIB 22367 do 22368 IFS=$lt_save_ifs 22369 # Let DOS variable expansion print the short 8.3 style file name. 22370 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 22371 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 22372 done 22373 IFS=$lt_save_ifs 22374 # Convert to MSYS style. 22375 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 22376 ;; 22377 cygwin*) 22378 # Convert to unix form, then to dos form, then back to unix form 22379 # but this time dos style (no spaces!) so that the unix form looks 22380 # like /cygdrive/c/PROGRA~1:/cygdr... 22381 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 22382 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 22383 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22384 ;; 22385 *) 22386 sys_lib_search_path_spec=$LIB 22387 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 22388 # It is most probably a Windows format PATH. 22389 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 22390 else 22391 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22392 fi 22393 # FIXME: find the short name or the path components, as spaces are 22394 # common. (e.g. "Program Files" -> "PROGRA~1") 22395 ;; 22396 esac 22397 22398 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22399 postinstall_cmds='base_file=`basename \$file`~ 22400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 22401 dldir=$destdir/`dirname \$dlpath`~ 22402 test -d \$dldir || mkdir -p \$dldir~ 22403 $install_prog $dir/$dlname \$dldir/$dlname' 22404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22405 dlpath=$dir/\$dldll~ 22406 $RM \$dlpath' 22407 shlibpath_overrides_runpath=yes 22408 dynamic_linker='Win32 link.exe' 22409 ;; 22410 22411 *) 22412 # Assume MSVC wrapper 22413 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 22414 dynamic_linker='Win32 ld.exe' 22415 ;; 22416 esac 22417 # FIXME: first we should search . and the directory the executable is in 22418 shlibpath_var=PATH 22419 ;; 22420 22421darwin* | rhapsody*) 22422 dynamic_linker="$host_os dyld" 22423 version_type=darwin 22424 need_lib_prefix=no 22425 need_version=no 22426 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 22427 soname_spec='$libname$release$major$shared_ext' 22428 shlibpath_overrides_runpath=yes 22429 shlibpath_var=DYLD_LIBRARY_PATH 22430 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 22431 22432 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 22433 ;; 22434 22435dgux*) 22436 version_type=linux # correct to gnu/linux during the next big refactor 22437 need_lib_prefix=no 22438 need_version=no 22439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22440 soname_spec='$libname$release$shared_ext$major' 22441 shlibpath_var=LD_LIBRARY_PATH 22442 ;; 22443 22444freebsd* | dragonfly*) 22445 # DragonFly does not have aout. When/if they implement a new 22446 # versioning mechanism, adjust this. 22447 if test -x /usr/bin/objformat; then 22448 objformat=`/usr/bin/objformat` 22449 else 22450 case $host_os in 22451 freebsd[23].*) objformat=aout ;; 22452 *) objformat=elf ;; 22453 esac 22454 fi 22455 version_type=freebsd-$objformat 22456 case $version_type in 22457 freebsd-elf*) 22458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22459 soname_spec='$libname$release$shared_ext$major' 22460 need_version=no 22461 need_lib_prefix=no 22462 ;; 22463 freebsd-*) 22464 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22465 need_version=yes 22466 ;; 22467 esac 22468 shlibpath_var=LD_LIBRARY_PATH 22469 case $host_os in 22470 freebsd2.*) 22471 shlibpath_overrides_runpath=yes 22472 ;; 22473 freebsd3.[01]* | freebsdelf3.[01]*) 22474 shlibpath_overrides_runpath=yes 22475 hardcode_into_libs=yes 22476 ;; 22477 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 22478 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 22479 shlibpath_overrides_runpath=no 22480 hardcode_into_libs=yes 22481 ;; 22482 *) # from 4.6 on, and DragonFly 22483 shlibpath_overrides_runpath=yes 22484 hardcode_into_libs=yes 22485 ;; 22486 esac 22487 ;; 22488 22489haiku*) 22490 version_type=linux # correct to gnu/linux during the next big refactor 22491 need_lib_prefix=no 22492 need_version=no 22493 dynamic_linker="$host_os runtime_loader" 22494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22495 soname_spec='$libname$release$shared_ext$major' 22496 shlibpath_var=LIBRARY_PATH 22497 shlibpath_overrides_runpath=no 22498 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 22499 hardcode_into_libs=yes 22500 ;; 22501 22502hpux9* | hpux10* | hpux11*) 22503 # Give a soname corresponding to the major version so that dld.sl refuses to 22504 # link against other versions. 22505 version_type=sunos 22506 need_lib_prefix=no 22507 need_version=no 22508 case $host_cpu in 22509 ia64*) 22510 shrext_cmds='.so' 22511 hardcode_into_libs=yes 22512 dynamic_linker="$host_os dld.so" 22513 shlibpath_var=LD_LIBRARY_PATH 22514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22516 soname_spec='$libname$release$shared_ext$major' 22517 if test 32 = "$HPUX_IA64_MODE"; then 22518 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 22519 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 22520 else 22521 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 22522 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 22523 fi 22524 ;; 22525 hppa*64*) 22526 shrext_cmds='.sl' 22527 hardcode_into_libs=yes 22528 dynamic_linker="$host_os dld.sl" 22529 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 22530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22532 soname_spec='$libname$release$shared_ext$major' 22533 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 22534 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22535 ;; 22536 *) 22537 shrext_cmds='.sl' 22538 dynamic_linker="$host_os dld.sl" 22539 shlibpath_var=SHLIB_PATH 22540 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 22541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22542 soname_spec='$libname$release$shared_ext$major' 22543 ;; 22544 esac 22545 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 22546 postinstall_cmds='chmod 555 $lib' 22547 # or fails outright, so override atomically: 22548 install_override_mode=555 22549 ;; 22550 22551interix[3-9]*) 22552 version_type=linux # correct to gnu/linux during the next big refactor 22553 need_lib_prefix=no 22554 need_version=no 22555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22556 soname_spec='$libname$release$shared_ext$major' 22557 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 22558 shlibpath_var=LD_LIBRARY_PATH 22559 shlibpath_overrides_runpath=no 22560 hardcode_into_libs=yes 22561 ;; 22562 22563irix5* | irix6* | nonstopux*) 22564 case $host_os in 22565 nonstopux*) version_type=nonstopux ;; 22566 *) 22567 if test yes = "$lt_cv_prog_gnu_ld"; then 22568 version_type=linux # correct to gnu/linux during the next big refactor 22569 else 22570 version_type=irix 22571 fi ;; 22572 esac 22573 need_lib_prefix=no 22574 need_version=no 22575 soname_spec='$libname$release$shared_ext$major' 22576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 22577 case $host_os in 22578 irix5* | nonstopux*) 22579 libsuff= shlibsuff= 22580 ;; 22581 *) 22582 case $LD in # libtool.m4 will add one of these switches to LD 22583 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 22584 libsuff= shlibsuff= libmagic=32-bit;; 22585 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 22586 libsuff=32 shlibsuff=N32 libmagic=N32;; 22587 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 22588 libsuff=64 shlibsuff=64 libmagic=64-bit;; 22589 *) libsuff= shlibsuff= libmagic=never-match;; 22590 esac 22591 ;; 22592 esac 22593 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 22594 shlibpath_overrides_runpath=no 22595 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 22596 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 22597 hardcode_into_libs=yes 22598 ;; 22599 22600# No shared lib support for Linux oldld, aout, or coff. 22601linux*oldld* | linux*aout* | linux*coff*) 22602 dynamic_linker=no 22603 ;; 22604 22605linux*android*) 22606 version_type=none # Android doesn't support versioned libraries. 22607 need_lib_prefix=no 22608 need_version=no 22609 library_names_spec='$libname$release$shared_ext' 22610 soname_spec='$libname$release$shared_ext' 22611 finish_cmds= 22612 shlibpath_var=LD_LIBRARY_PATH 22613 shlibpath_overrides_runpath=yes 22614 22615 # This implies no fast_install, which is unacceptable. 22616 # Some rework will be needed to allow for fast_install 22617 # before this can be enabled. 22618 hardcode_into_libs=yes 22619 22620 dynamic_linker='Android linker' 22621 # Don't embed -rpath directories since the linker doesn't support them. 22622 hardcode_libdir_flag_spec_CXX='-L$libdir' 22623 ;; 22624 22625# This must be glibc/ELF. 22626linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 22627 version_type=linux # correct to gnu/linux during the next big refactor 22628 need_lib_prefix=no 22629 need_version=no 22630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22631 soname_spec='$libname$release$shared_ext$major' 22632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 22633 shlibpath_var=LD_LIBRARY_PATH 22634 shlibpath_overrides_runpath=no 22635 22636 # Some binutils ld are patched to set DT_RUNPATH 22637 if test ${lt_cv_shlibpath_overrides_runpath+y} 22638then : 22639 printf %s "(cached) " >&6 22640else $as_nop 22641 lt_cv_shlibpath_overrides_runpath=no 22642 save_LDFLAGS=$LDFLAGS 22643 save_libdir=$libdir 22644 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 22645 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 22646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22647/* end confdefs.h. */ 22648 22649int 22650main (void) 22651{ 22652 22653 ; 22654 return 0; 22655} 22656_ACEOF 22657if ac_fn_cxx_try_link "$LINENO" 22658then : 22659 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 22660then : 22661 lt_cv_shlibpath_overrides_runpath=yes 22662fi 22663fi 22664rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22665 conftest$ac_exeext conftest.$ac_ext 22666 LDFLAGS=$save_LDFLAGS 22667 libdir=$save_libdir 22668 22669fi 22670 22671 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 22672 22673 # This implies no fast_install, which is unacceptable. 22674 # Some rework will be needed to allow for fast_install 22675 # before this can be enabled. 22676 hardcode_into_libs=yes 22677 22678 # Ideally, we could use ldconfig to report *all* directores which are 22679 # searched for libraries, however this is still not possible. Aside from not 22680 # being certain /sbin/ldconfig is available, command 22681 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 22682 # even though it is searched at run-time. Try to do the best guess by 22683 # appending ld.so.conf contents (and includes) to the search path. 22684 if test -f /etc/ld.so.conf; then 22685 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' ' '` 22686 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 22687 fi 22688 22689 # We used to test for /lib/ld.so.1 and disable shared libraries on 22690 # powerpc, because MkLinux only supported shared libraries with the 22691 # GNU dynamic linker. Since this was broken with cross compilers, 22692 # most powerpc-linux boxes support dynamic linking these days and 22693 # people can always --disable-shared, the test was removed, and we 22694 # assume the GNU/Linux dynamic linker is in use. 22695 dynamic_linker='GNU/Linux ld.so' 22696 ;; 22697 22698netbsdelf*-gnu) 22699 version_type=linux 22700 need_lib_prefix=no 22701 need_version=no 22702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22703 soname_spec='${libname}${release}${shared_ext}$major' 22704 shlibpath_var=LD_LIBRARY_PATH 22705 shlibpath_overrides_runpath=no 22706 hardcode_into_libs=yes 22707 dynamic_linker='NetBSD ld.elf_so' 22708 ;; 22709 22710netbsd*) 22711 version_type=sunos 22712 need_lib_prefix=no 22713 need_version=no 22714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 22715 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22717 dynamic_linker='NetBSD (a.out) ld.so' 22718 else 22719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22720 soname_spec='$libname$release$shared_ext$major' 22721 dynamic_linker='NetBSD ld.elf_so' 22722 fi 22723 shlibpath_var=LD_LIBRARY_PATH 22724 shlibpath_overrides_runpath=yes 22725 hardcode_into_libs=yes 22726 ;; 22727 22728newsos6) 22729 version_type=linux # correct to gnu/linux during the next big refactor 22730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22731 shlibpath_var=LD_LIBRARY_PATH 22732 shlibpath_overrides_runpath=yes 22733 ;; 22734 22735*nto* | *qnx*) 22736 version_type=qnx 22737 need_lib_prefix=no 22738 need_version=no 22739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22740 soname_spec='$libname$release$shared_ext$major' 22741 shlibpath_var=LD_LIBRARY_PATH 22742 shlibpath_overrides_runpath=no 22743 hardcode_into_libs=yes 22744 dynamic_linker='ldqnx.so' 22745 ;; 22746 22747openbsd* | bitrig*) 22748 version_type=sunos 22749 sys_lib_dlsearch_path_spec=/usr/lib 22750 need_lib_prefix=no 22751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 22752 need_version=no 22753 else 22754 need_version=yes 22755 fi 22756 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22758 shlibpath_var=LD_LIBRARY_PATH 22759 shlibpath_overrides_runpath=yes 22760 ;; 22761 22762os2*) 22763 libname_spec='$name' 22764 version_type=windows 22765 shrext_cmds=.dll 22766 need_version=no 22767 need_lib_prefix=no 22768 # OS/2 can only load a DLL with a base name of 8 characters or less. 22769 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 22770 v=$($ECHO $release$versuffix | tr -d .-); 22771 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 22772 $ECHO $n$v`$shared_ext' 22773 library_names_spec='${libname}_dll.$libext' 22774 dynamic_linker='OS/2 ld.exe' 22775 shlibpath_var=BEGINLIBPATH 22776 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 22777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22778 postinstall_cmds='base_file=`basename \$file`~ 22779 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 22780 dldir=$destdir/`dirname \$dlpath`~ 22781 test -d \$dldir || mkdir -p \$dldir~ 22782 $install_prog $dir/$dlname \$dldir/$dlname~ 22783 chmod a+x \$dldir/$dlname~ 22784 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22785 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22786 fi' 22787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 22788 dlpath=$dir/\$dldll~ 22789 $RM \$dlpath' 22790 ;; 22791 22792osf3* | osf4* | osf5*) 22793 version_type=osf 22794 need_lib_prefix=no 22795 need_version=no 22796 soname_spec='$libname$release$shared_ext$major' 22797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22798 shlibpath_var=LD_LIBRARY_PATH 22799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 22800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22801 ;; 22802 22803rdos*) 22804 dynamic_linker=no 22805 ;; 22806 22807solaris*) 22808 version_type=linux # correct to gnu/linux during the next big refactor 22809 need_lib_prefix=no 22810 need_version=no 22811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22812 soname_spec='$libname$release$shared_ext$major' 22813 shlibpath_var=LD_LIBRARY_PATH 22814 shlibpath_overrides_runpath=yes 22815 hardcode_into_libs=yes 22816 # ldd complains unless libraries are executable 22817 postinstall_cmds='chmod +x $lib' 22818 ;; 22819 22820sunos4*) 22821 version_type=sunos 22822 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 22824 shlibpath_var=LD_LIBRARY_PATH 22825 shlibpath_overrides_runpath=yes 22826 if test yes = "$with_gnu_ld"; then 22827 need_lib_prefix=no 22828 fi 22829 need_version=yes 22830 ;; 22831 22832sysv4 | sysv4.3*) 22833 version_type=linux # correct to gnu/linux during the next big refactor 22834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22835 soname_spec='$libname$release$shared_ext$major' 22836 shlibpath_var=LD_LIBRARY_PATH 22837 case $host_vendor in 22838 sni) 22839 shlibpath_overrides_runpath=no 22840 need_lib_prefix=no 22841 runpath_var=LD_RUN_PATH 22842 ;; 22843 siemens) 22844 need_lib_prefix=no 22845 ;; 22846 motorola) 22847 need_lib_prefix=no 22848 need_version=no 22849 shlibpath_overrides_runpath=no 22850 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 22851 ;; 22852 esac 22853 ;; 22854 22855sysv4*MP*) 22856 if test -d /usr/nec; then 22857 version_type=linux # correct to gnu/linux during the next big refactor 22858 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 22859 soname_spec='$libname$shared_ext.$major' 22860 shlibpath_var=LD_LIBRARY_PATH 22861 fi 22862 ;; 22863 22864sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 22865 version_type=sco 22866 need_lib_prefix=no 22867 need_version=no 22868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 22869 soname_spec='$libname$release$shared_ext$major' 22870 shlibpath_var=LD_LIBRARY_PATH 22871 shlibpath_overrides_runpath=yes 22872 hardcode_into_libs=yes 22873 if test yes = "$with_gnu_ld"; then 22874 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 22875 else 22876 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 22877 case $host_os in 22878 sco3.2v5*) 22879 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 22880 ;; 22881 esac 22882 fi 22883 sys_lib_dlsearch_path_spec='/usr/lib' 22884 ;; 22885 22886tpf*) 22887 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 22888 version_type=linux # correct to gnu/linux during the next big refactor 22889 need_lib_prefix=no 22890 need_version=no 22891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22892 shlibpath_var=LD_LIBRARY_PATH 22893 shlibpath_overrides_runpath=no 22894 hardcode_into_libs=yes 22895 ;; 22896 22897uts4*) 22898 version_type=linux # correct to gnu/linux during the next big refactor 22899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22900 soname_spec='$libname$release$shared_ext$major' 22901 shlibpath_var=LD_LIBRARY_PATH 22902 ;; 22903 22904*) 22905 dynamic_linker=no 22906 ;; 22907esac 22908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 22909printf "%s\n" "$dynamic_linker" >&6; } 22910test no = "$dynamic_linker" && can_build_shared=no 22911 22912variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22913if test yes = "$GCC"; then 22914 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22915fi 22916 22917if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 22918 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 22919fi 22920 22921if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 22922 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 22923fi 22924 22925# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 22926configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 22927 22928# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 22929func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 22930 22931# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 22932configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 22974printf %s "checking how to hardcode library paths into programs... " >&6; } 22975hardcode_action_CXX= 22976if test -n "$hardcode_libdir_flag_spec_CXX" || 22977 test -n "$runpath_var_CXX" || 22978 test yes = "$hardcode_automatic_CXX"; then 22979 22980 # We can hardcode non-existent directories. 22981 if test no != "$hardcode_direct_CXX" && 22982 # If the only mechanism to avoid hardcoding is shlibpath_var, we 22983 # have to relink, otherwise we might link with an installed library 22984 # when we should be linking with a yet-to-be-installed one 22985 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 22986 test no != "$hardcode_minus_L_CXX"; then 22987 # Linking always hardcodes the temporary library directory. 22988 hardcode_action_CXX=relink 22989 else 22990 # We can link without hardcoding, and we can hardcode nonexisting dirs. 22991 hardcode_action_CXX=immediate 22992 fi 22993else 22994 # We cannot hardcode anything, or else we can only hardcode existing 22995 # directories. 22996 hardcode_action_CXX=unsupported 22997fi 22998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 22999printf "%s\n" "$hardcode_action_CXX" >&6; } 23000 23001if test relink = "$hardcode_action_CXX" || 23002 test yes = "$inherit_rpath_CXX"; then 23003 # Fast installation is not supported 23004 enable_fast_install=no 23005elif test yes = "$shlibpath_overrides_runpath" || 23006 test no = "$enable_shared"; then 23007 # Fast installation is not necessary 23008 enable_fast_install=needless 23009fi 23010 23011 23012 23013 23014 23015 23016 23017 fi # test -n "$compiler" 23018 23019 CC=$lt_save_CC 23020 CFLAGS=$lt_save_CFLAGS 23021 LDCXX=$LD 23022 LD=$lt_save_LD 23023 GCC=$lt_save_GCC 23024 with_gnu_ld=$lt_save_with_gnu_ld 23025 lt_cv_path_LDCXX=$lt_cv_path_LD 23026 lt_cv_path_LD=$lt_save_path_LD 23027 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 23028 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 23029fi # test yes != "$_lt_caught_CXX_error" 23030 23031ac_ext=c 23032ac_cpp='$CPP $CPPFLAGS' 23033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23035ac_compiler_gnu=$ac_cv_c_compiler_gnu 23036 23037 23038 23039 23040 23041 23042 23043 23044 23045 23046 23047 23048 23049 23050 23051 ac_config_commands="$ac_config_commands libtool" 23052 23053 23054 23055 23056# Only expand once: 23057 23058 23059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 23060printf %s "checking for a sed that does not truncate output... " >&6; } 23061if test ${ac_cv_path_SED+y} 23062then : 23063 printf %s "(cached) " >&6 23064else $as_nop 23065 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 23066 for ac_i in 1 2 3 4 5 6 7; do 23067 ac_script="$ac_script$as_nl$ac_script" 23068 done 23069 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 23070 { ac_script=; unset ac_script;} 23071 if test -z "$SED"; then 23072 ac_path_SED_found=false 23073 # Loop through the user's path and test for each of PROGNAME-LIST 23074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23075for as_dir in $PATH 23076do 23077 IFS=$as_save_IFS 23078 case $as_dir in #((( 23079 '') as_dir=./ ;; 23080 */) ;; 23081 *) as_dir=$as_dir/ ;; 23082 esac 23083 for ac_prog in sed gsed 23084 do 23085 for ac_exec_ext in '' $ac_executable_extensions; do 23086 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 23087 as_fn_executable_p "$ac_path_SED" || continue 23088# Check for GNU ac_path_SED and select it if it is found. 23089 # Check for GNU $ac_path_SED 23090case `"$ac_path_SED" --version 2>&1` in 23091*GNU*) 23092 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 23093*) 23094 ac_count=0 23095 printf %s 0123456789 >"conftest.in" 23096 while : 23097 do 23098 cat "conftest.in" "conftest.in" >"conftest.tmp" 23099 mv "conftest.tmp" "conftest.in" 23100 cp "conftest.in" "conftest.nl" 23101 printf "%s\n" '' >> "conftest.nl" 23102 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 23103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 23104 as_fn_arith $ac_count + 1 && ac_count=$as_val 23105 if test $ac_count -gt ${ac_path_SED_max-0}; then 23106 # Best one so far, save it but keep looking for a better one 23107 ac_cv_path_SED="$ac_path_SED" 23108 ac_path_SED_max=$ac_count 23109 fi 23110 # 10*(2^10) chars as input seems more than enough 23111 test $ac_count -gt 10 && break 23112 done 23113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 23114esac 23115 23116 $ac_path_SED_found && break 3 23117 done 23118 done 23119 done 23120IFS=$as_save_IFS 23121 if test -z "$ac_cv_path_SED"; then 23122 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 23123 fi 23124else 23125 ac_cv_path_SED=$SED 23126fi 23127 23128fi 23129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 23130printf "%s\n" "$ac_cv_path_SED" >&6; } 23131 SED="$ac_cv_path_SED" 23132 rm -f conftest.sed 23133 23134 23135 23136 23137 23138 23139 23140 if test -n "$PYTHON"; then 23141 # If the user set $PYTHON, use it and don't search something else. 23142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5 23143printf %s "checking whether $PYTHON version is >= 3.6... " >&6; } 23144 prog="import sys 23145# split strings by '.' and convert to numeric. Append some zeros 23146# because we need at least 4 digits for the hex conversion. 23147# map returns an iterator in Python 3.0 and a list in 2.x 23148minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0] 23149minverhex = 0 23150# xrange is not present in Python 3.0 and range returns an iterator 23151for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 23152sys.exit(sys.hexversion < minverhex)" 23153 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 23154 ($PYTHON -c "$prog") >&5 2>&5 23155 ac_status=$? 23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23157 (exit $ac_status); } 23158then : 23159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23160printf "%s\n" "yes" >&6; } 23161else $as_nop 23162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23163printf "%s\n" "no" >&6; } 23164 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 23165fi 23166 am_display_PYTHON=$PYTHON 23167 else 23168 # Otherwise, try each interpreter until we find one that satisfies 23169 # VERSION. 23170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5 23171printf %s "checking for a Python interpreter with version >= 3.6... " >&6; } 23172if test ${am_cv_pathless_PYTHON+y} 23173then : 23174 printf %s "(cached) " >&6 23175else $as_nop 23176 23177 for am_cv_pathless_PYTHON in python python2 python3 python3.11 python3.10 python3.9 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 23178 test "$am_cv_pathless_PYTHON" = none && break 23179 prog="import sys 23180# split strings by '.' and convert to numeric. Append some zeros 23181# because we need at least 4 digits for the hex conversion. 23182# map returns an iterator in Python 3.0 and a list in 2.x 23183minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0] 23184minverhex = 0 23185# xrange is not present in Python 3.0 and range returns an iterator 23186for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 23187sys.exit(sys.hexversion < minverhex)" 23188 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 23189 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 23190 ac_status=$? 23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23192 (exit $ac_status); } 23193then : 23194 break 23195fi 23196 done 23197fi 23198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 23199printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } 23200 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 23201 if test "$am_cv_pathless_PYTHON" = none; then 23202 PYTHON=: 23203 else 23204 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 23205set dummy $am_cv_pathless_PYTHON; ac_word=$2 23206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23207printf %s "checking for $ac_word... " >&6; } 23208if test ${ac_cv_path_PYTHON+y} 23209then : 23210 printf %s "(cached) " >&6 23211else $as_nop 23212 case $PYTHON in 23213 [\\/]* | ?:[\\/]*) 23214 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 23215 ;; 23216 *) 23217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23218for as_dir in $PATH 23219do 23220 IFS=$as_save_IFS 23221 case $as_dir in #((( 23222 '') as_dir=./ ;; 23223 */) ;; 23224 *) as_dir=$as_dir/ ;; 23225 esac 23226 for ac_exec_ext in '' $ac_executable_extensions; do 23227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23228 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 23229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23230 break 2 23231 fi 23232done 23233 done 23234IFS=$as_save_IFS 23235 23236 ;; 23237esac 23238fi 23239PYTHON=$ac_cv_path_PYTHON 23240if test -n "$PYTHON"; then 23241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 23242printf "%s\n" "$PYTHON" >&6; } 23243else 23244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23245printf "%s\n" "no" >&6; } 23246fi 23247 23248 23249 fi 23250 am_display_PYTHON=$am_cv_pathless_PYTHON 23251 fi 23252 23253 23254 if test "$PYTHON" = :; then 23255 : 23256 else 23257 23258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 23259printf %s "checking for $am_display_PYTHON version... " >&6; } 23260if test ${am_cv_python_version+y} 23261then : 23262 printf %s "(cached) " >&6 23263else $as_nop 23264 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` 23265fi 23266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 23267printf "%s\n" "$am_cv_python_version" >&6; } 23268 PYTHON_VERSION=$am_cv_python_version 23269 23270 23271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 23272printf %s "checking for $am_display_PYTHON platform... " >&6; } 23273if test ${am_cv_python_platform+y} 23274then : 23275 printf %s "(cached) " >&6 23276else $as_nop 23277 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 23278fi 23279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 23280printf "%s\n" "$am_cv_python_platform" >&6; } 23281 PYTHON_PLATFORM=$am_cv_python_platform 23282 23283 23284 if test "x$prefix" = xNONE; then 23285 am__usable_prefix=$ac_default_prefix 23286 else 23287 am__usable_prefix=$prefix 23288 fi 23289 23290 # Allow user to request using sys.* values from Python, 23291 # instead of the GNU $prefix values. 23292 23293# Check whether --with-python-sys-prefix was given. 23294if test ${with_python_sys_prefix+y} 23295then : 23296 withval=$with_python_sys_prefix; am_use_python_sys=: 23297else $as_nop 23298 am_use_python_sys=false 23299fi 23300 23301 23302 # Allow user to override whatever the default Python prefix is. 23303 23304# Check whether --with-python_prefix was given. 23305if test ${with_python_prefix+y} 23306then : 23307 withval=$with_python_prefix; am_python_prefix_subst=$withval 23308 am_cv_python_prefix=$withval 23309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 23310printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 23311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 23312printf "%s\n" "$am_cv_python_prefix" >&6; } 23313else $as_nop 23314 23315 if $am_use_python_sys; then 23316 # using python sys.prefix value, not GNU 23317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 23318printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 23319if test ${am_cv_python_prefix+y} 23320then : 23321 printf %s "(cached) " >&6 23322else $as_nop 23323 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` 23324fi 23325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 23326printf "%s\n" "$am_cv_python_prefix" >&6; } 23327 23328 case $am_cv_python_prefix in 23329 $am__usable_prefix*) 23330 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 23331 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 23332 ;; 23333 *) 23334 am_python_prefix_subst=$am_cv_python_prefix 23335 ;; 23336 esac 23337 else # using GNU prefix value, not python sys.prefix 23338 am_python_prefix_subst='${prefix}' 23339 am_python_prefix=$am_python_prefix_subst 23340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 23341printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 23342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 23343printf "%s\n" "$am_python_prefix" >&6; } 23344 fi 23345fi 23346 23347 # Substituting python_prefix_subst value. 23348 PYTHON_PREFIX=$am_python_prefix_subst 23349 23350 23351 # emacs-page Now do it all over again for Python exec_prefix, but with yet 23352 # another conditional: fall back to regular prefix if that was specified. 23353 23354# Check whether --with-python_exec_prefix was given. 23355if test ${with_python_exec_prefix+y} 23356then : 23357 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 23358 am_cv_python_exec_prefix=$withval 23359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 23360printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 23361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 23362printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 23363else $as_nop 23364 23365 # no explicit --with-python_exec_prefix, but if 23366 # --with-python_prefix was given, use its value for python_exec_prefix too. 23367 if test -n "$with_python_prefix" 23368then : 23369 am_python_exec_prefix_subst=$with_python_prefix 23370 am_cv_python_exec_prefix=$with_python_prefix 23371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 23372printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 23373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 23374printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 23375else $as_nop 23376 23377 # Set am__usable_exec_prefix whether using GNU or Python values, 23378 # since we use that variable for pyexecdir. 23379 if test "x$exec_prefix" = xNONE; then 23380 am__usable_exec_prefix=$am__usable_prefix 23381 else 23382 am__usable_exec_prefix=$exec_prefix 23383 fi 23384 # 23385 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 23386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 23387printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 23388if test ${am_cv_python_exec_prefix+y} 23389then : 23390 printf %s "(cached) " >&6 23391else $as_nop 23392 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` 23393fi 23394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 23395printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 23396 case $am_cv_python_exec_prefix in 23397 $am__usable_exec_prefix*) 23398 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 23399 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 23400 ;; 23401 *) 23402 am_python_exec_prefix_subst=$am_cv_python_exec_prefix 23403 ;; 23404 esac 23405 else # using GNU $exec_prefix, not python sys.exec_prefix 23406 am_python_exec_prefix_subst='${exec_prefix}' 23407 am_python_exec_prefix=$am_python_exec_prefix_subst 23408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 23409printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 23410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 23411printf "%s\n" "$am_python_exec_prefix" >&6; } 23412 fi 23413fi 23414fi 23415 23416 # Substituting python_exec_prefix_subst. 23417 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 23418 23419 23420 # Factor out some code duplication into this shell variable. 23421 am_python_setup_sysconfig="\ 23422import sys 23423# Prefer sysconfig over distutils.sysconfig, for better compatibility 23424# with python 3.x. See automake bug#10227. 23425try: 23426 import sysconfig 23427except ImportError: 23428 can_use_sysconfig = 0 23429else: 23430 can_use_sysconfig = 1 23431# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 23432# <https://github.com/pypa/virtualenv/issues/118> 23433try: 23434 from platform import python_implementation 23435 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 23436 can_use_sysconfig = 0 23437except ImportError: 23438 pass" 23439 23440 23441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 23442printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 23443if test ${am_cv_python_pythondir+y} 23444then : 23445 printf %s "(cached) " >&6 23446else $as_nop 23447 if test "x$am_cv_python_prefix" = x; then 23448 am_py_prefix=$am__usable_prefix 23449 else 23450 am_py_prefix=$am_cv_python_prefix 23451 fi 23452 am_cv_python_pythondir=`$PYTHON -c " 23453$am_python_setup_sysconfig 23454if can_use_sysconfig: 23455 if hasattr(sysconfig, 'get_default_scheme'): 23456 scheme = sysconfig.get_default_scheme() 23457 else: 23458 scheme = sysconfig._get_default_scheme() 23459 if scheme == 'posix_local': 23460 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/ 23461 scheme = 'posix_prefix' 23462 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'}) 23463else: 23464 from distutils import sysconfig 23465 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 23466sys.stdout.write(sitedir)"` 23467 # 23468 case $am_cv_python_pythondir in 23469 $am_py_prefix*) 23470 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 23471 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 23472 ;; 23473 *) 23474 case $am_py_prefix in 23475 /usr|/System*) ;; 23476 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 23477 ;; 23478 esac 23479 ;; 23480 esac 23481 23482fi 23483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 23484printf "%s\n" "$am_cv_python_pythondir" >&6; } 23485 pythondir=$am_cv_python_pythondir 23486 23487 23488 pkgpythondir=\${pythondir}/$PACKAGE 23489 23490 23491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 23492printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 23493if test ${am_cv_python_pyexecdir+y} 23494then : 23495 printf %s "(cached) " >&6 23496else $as_nop 23497 if test "x$am_cv_python_exec_prefix" = x; then 23498 am_py_exec_prefix=$am__usable_exec_prefix 23499 else 23500 am_py_exec_prefix=$am_cv_python_exec_prefix 23501 fi 23502 am_cv_python_pyexecdir=`$PYTHON -c " 23503$am_python_setup_sysconfig 23504if can_use_sysconfig: 23505 if hasattr(sysconfig, 'get_default_scheme'): 23506 scheme = sysconfig.get_default_scheme() 23507 else: 23508 scheme = sysconfig._get_default_scheme() 23509 if scheme == 'posix_local': 23510 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/ 23511 scheme = 'posix_prefix' 23512 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'}) 23513else: 23514 from distutils import sysconfig 23515 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 23516sys.stdout.write(sitedir)"` 23517 # 23518 case $am_cv_python_pyexecdir in 23519 $am_py_exec_prefix*) 23520 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 23521 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 23522 ;; 23523 *) 23524 case $am_py_exec_prefix in 23525 /usr|/System*) ;; 23526 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 23527 ;; 23528 esac 23529 ;; 23530 esac 23531 23532fi 23533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 23534printf "%s\n" "$am_cv_python_pyexecdir" >&6; } 23535 pyexecdir=$am_cv_python_pyexecdir 23536 23537 23538 pkgpyexecdir=\${pyexecdir}/$PACKAGE 23539 23540 23541 23542 fi 23543 23544 if test "$PYTHON" != :; then 23545 HAVE_PYTHON_TRUE= 23546 HAVE_PYTHON_FALSE='#' 23547else 23548 HAVE_PYTHON_TRUE='#' 23549 HAVE_PYTHON_FALSE= 23550fi 23551 23552 23553# Extract the first word of "cygpath", so it can be a program name with args. 23554set dummy cygpath; ac_word=$2 23555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23556printf %s "checking for $ac_word... " >&6; } 23557if test ${ac_cv_prog_CYGPATH+y} 23558then : 23559 printf %s "(cached) " >&6 23560else $as_nop 23561 if test -n "$CYGPATH"; then 23562 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 23563else 23564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23565for as_dir in $PATH 23566do 23567 IFS=$as_save_IFS 23568 case $as_dir in #((( 23569 '') as_dir=./ ;; 23570 */) ;; 23571 *) as_dir=$as_dir/ ;; 23572 esac 23573 for ac_exec_ext in '' $ac_executable_extensions; do 23574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23575 ac_cv_prog_CYGPATH="cygpath" 23576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23577 break 2 23578 fi 23579done 23580 done 23581IFS=$as_save_IFS 23582 23583fi 23584fi 23585CYGPATH=$ac_cv_prog_CYGPATH 23586if test -n "$CYGPATH"; then 23587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 23588printf "%s\n" "$CYGPATH" >&6; } 23589else 23590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23591printf "%s\n" "no" >&6; } 23592fi 23593 23594 23595# Extract the first word of "perl", so it can be a program name with args. 23596set dummy perl; ac_word=$2 23597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23598printf %s "checking for $ac_word... " >&6; } 23599if test ${ac_cv_prog_PERL+y} 23600then : 23601 printf %s "(cached) " >&6 23602else $as_nop 23603 if test -n "$PERL"; then 23604 ac_cv_prog_PERL="$PERL" # Let the user override the test. 23605else 23606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23607for as_dir in $PATH 23608do 23609 IFS=$as_save_IFS 23610 case $as_dir in #((( 23611 '') as_dir=./ ;; 23612 */) ;; 23613 *) as_dir=$as_dir/ ;; 23614 esac 23615 for ac_exec_ext in '' $ac_executable_extensions; do 23616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23617 ac_cv_prog_PERL="perl" 23618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23619 break 2 23620 fi 23621done 23622 done 23623IFS=$as_save_IFS 23624 23625fi 23626fi 23627PERL=$ac_cv_prog_PERL 23628if test -n "$PERL"; then 23629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 23630printf "%s\n" "$PERL" >&6; } 23631else 23632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23633printf "%s\n" "no" >&6; } 23634fi 23635 23636 23637# Extract the first word of "pdflatex", so it can be a program name with args. 23638set dummy pdflatex; ac_word=$2 23639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23640printf %s "checking for $ac_word... " >&6; } 23641if test ${ac_cv_prog_PDFLATEX+y} 23642then : 23643 printf %s "(cached) " >&6 23644else $as_nop 23645 if test -n "$PDFLATEX"; then 23646 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test. 23647else 23648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23649for as_dir in $PATH 23650do 23651 IFS=$as_save_IFS 23652 case $as_dir in #((( 23653 '') as_dir=./ ;; 23654 */) ;; 23655 *) as_dir=$as_dir/ ;; 23656 esac 23657 for ac_exec_ext in '' $ac_executable_extensions; do 23658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23659 ac_cv_prog_PDFLATEX="pdflatex" 23660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23661 break 2 23662 fi 23663done 23664 done 23665IFS=$as_save_IFS 23666 23667fi 23668fi 23669PDFLATEX=$ac_cv_prog_PDFLATEX 23670if test -n "$PDFLATEX"; then 23671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 23672printf "%s\n" "$PDFLATEX" >&6; } 23673else 23674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23675printf "%s\n" "no" >&6; } 23676fi 23677 23678 23679# Extract the first word of "pod2html", so it can be a program name with args. 23680set dummy pod2html; ac_word=$2 23681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23682printf %s "checking for $ac_word... " >&6; } 23683if test ${ac_cv_prog_POD2HTML+y} 23684then : 23685 printf %s "(cached) " >&6 23686else $as_nop 23687 if test -n "$POD2HTML"; then 23688 ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test. 23689else 23690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23691for as_dir in $PATH 23692do 23693 IFS=$as_save_IFS 23694 case $as_dir in #((( 23695 '') as_dir=./ ;; 23696 */) ;; 23697 *) as_dir=$as_dir/ ;; 23698 esac 23699 for ac_exec_ext in '' $ac_executable_extensions; do 23700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23701 ac_cv_prog_POD2HTML="pod2html" 23702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23703 break 2 23704 fi 23705done 23706 done 23707IFS=$as_save_IFS 23708 23709fi 23710fi 23711POD2HTML=$ac_cv_prog_POD2HTML 23712if test -n "$POD2HTML"; then 23713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5 23714printf "%s\n" "$POD2HTML" >&6; } 23715else 23716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23717printf "%s\n" "no" >&6; } 23718fi 23719 23720 23721 23722 23723if test "$host_os" = "mingw32" -a -n "$CYGPATH"; then 23724 OS_SRCDIR=`$CYGPATH -m "$srcdir"` 23725else 23726 OS_SRCDIR="$srcdir" 23727fi 23728 23729 if test -n "$PERL" -a -n "$PDFLATEX" -a -n "$POD2HTML"; then 23730 GENERATE_DOC_TRUE= 23731 GENERATE_DOC_FALSE='#' 23732else 23733 GENERATE_DOC_TRUE='#' 23734 GENERATE_DOC_FALSE= 23735fi 23736 23737 23738# ------ AX CREATE STDINT H ------------------------------------- 23739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5 23740printf %s "checking for stdint types... " >&6; } 23741ac_stdint_h=`echo include/isl/stdint.h` 23742# try to shortcircuit - if the default include path of the compiler 23743# can find a "stdint.h" header then we assume that all compilers can. 23744if test ${ac_cv_header_stdint_t+y} 23745then : 23746 printf %s "(cached) " >&6 23747else $as_nop 23748 23749old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS="" 23750old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="" 23751old_CFLAGS="$CFLAGS" ; CFLAGS="" 23752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23753/* end confdefs.h. */ 23754#include <stdint.h> 23755int 23756main (void) 23757{ 23758int_least32_t v = 0; 23759 ; 23760 return 0; 23761} 23762_ACEOF 23763if ac_fn_c_try_compile "$LINENO" 23764then : 23765 ac_cv_stdint_result="(assuming C99 compatible system)" 23766 ac_cv_header_stdint_t="stdint.h"; 23767else $as_nop 23768 ac_cv_header_stdint_t="" 23769fi 23770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23771if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then 23772CFLAGS="-std=c99" 23773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23774/* end confdefs.h. */ 23775#include <stdint.h> 23776int 23777main (void) 23778{ 23779int_least32_t v = 0; 23780 ; 23781 return 0; 23782} 23783_ACEOF 23784if ac_fn_c_try_compile "$LINENO" 23785then : 23786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5 23787printf "%s\n" "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;} 23788fi 23789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23790fi 23791CXXFLAGS="$old_CXXFLAGS" 23792CPPFLAGS="$old_CPPFLAGS" 23793CFLAGS="$old_CFLAGS" 23794fi 23795 23796 23797v="... $ac_cv_header_stdint_h" 23798if test "$ac_stdint_h" = "stdint.h" ; then 23799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5 23800printf "%s\n" "(are you sure you want them in ./stdint.h?)" >&6; } 23801elif test "$ac_stdint_h" = "inttypes.h" ; then 23802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5 23803printf "%s\n" "(are you sure you want them in ./inttypes.h?)" >&6; } 23804elif test "_$ac_cv_header_stdint_t" = "_" ; then 23805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5 23806printf "%s\n" "(putting them into $ac_stdint_h)$v" >&6; } 23807else 23808 ac_cv_header_stdint="$ac_cv_header_stdint_t" 23809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5 23810printf "%s\n" "$ac_cv_header_stdint (shortcircuit)" >&6; } 23811fi 23812 23813if test "_$ac_cv_header_stdint_t" = "_" ; then # cannot shortcircuit.. 23814 23815 23816inttype_headers=`echo | sed -e 's/,/ /g'` 23817 23818ac_cv_stdint_result="(no helpful system typedefs seen)" 23819 23820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 23821printf %s "checking for stdint uintptr_t... " >&6; } 23822if test ${ac_cv_header_stdint_x+y} 23823then : 23824 printf %s "(cached) " >&6 23825else $as_nop 23826 23827 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h) 23828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 23829printf "%s\n" "(..)" >&6; } 23830 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers 23831 do 23832 unset ac_cv_type_uintptr_t 23833 unset ac_cv_type_uint64_t 23834 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i> 23835" 23836if test "x$ac_cv_type_uintptr_t" = xyes 23837then : 23838 ac_cv_header_stdint_x=$i 23839else $as_nop 23840 continue 23841fi 23842 23843 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> 23844" 23845if test "x$ac_cv_type_uint64_t" = xyes 23846then : 23847 and64="/uint64_t" 23848else $as_nop 23849 and64="" 23850fi 23851 23852 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)" 23853 break 23854 done 23855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 23856printf %s "checking for stdint uintptr_t... " >&6; } 23857 23858fi 23859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5 23860printf "%s\n" "$ac_cv_header_stdint_x" >&6; } 23861 23862 23863if test "_$ac_cv_header_stdint_x" = "_" ; then 23864 23865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 23866printf %s "checking for stdint uint32_t... " >&6; } 23867if test ${ac_cv_header_stdint_o+y} 23868then : 23869 printf %s "(cached) " >&6 23870else $as_nop 23871 23872 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h) 23873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 23874printf "%s\n" "(..)" >&6; } 23875 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers 23876 do 23877 unset ac_cv_type_uint32_t 23878 unset ac_cv_type_uint64_t 23879 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i> 23880" 23881if test "x$ac_cv_type_uint32_t" = xyes 23882then : 23883 ac_cv_header_stdint_o=$i 23884else $as_nop 23885 continue 23886fi 23887 23888 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> 23889" 23890if test "x$ac_cv_type_uint64_t" = xyes 23891then : 23892 and64="/uint64_t" 23893else $as_nop 23894 and64="" 23895fi 23896 23897 ac_cv_stdint_result="(seen uint32_t$and64 in $i)" 23898 break 23899 break; 23900 done 23901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 23902printf %s "checking for stdint uint32_t... " >&6; } 23903 23904fi 23905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5 23906printf "%s\n" "$ac_cv_header_stdint_o" >&6; } 23907 23908fi 23909 23910if test "_$ac_cv_header_stdint_x" = "_" ; then 23911if test "_$ac_cv_header_stdint_o" = "_" ; then 23912 23913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 23914printf %s "checking for stdint u_int32_t... " >&6; } 23915if test ${ac_cv_header_stdint_u+y} 23916then : 23917 printf %s "(cached) " >&6 23918else $as_nop 23919 23920 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h) 23921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 23922printf "%s\n" "(..)" >&6; } 23923 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do 23924 unset ac_cv_type_u_int32_t 23925 unset ac_cv_type_u_int64_t 23926 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i> 23927" 23928if test "x$ac_cv_type_u_int32_t" = xyes 23929then : 23930 ac_cv_header_stdint_u=$i 23931else $as_nop 23932 continue 23933fi 23934 23935 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i> 23936" 23937if test "x$ac_cv_type_u_int64_t" = xyes 23938then : 23939 and64="/u_int64_t" 23940else $as_nop 23941 and64="" 23942fi 23943 23944 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)" 23945 break 23946 break; 23947 done 23948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 23949printf %s "checking for stdint u_int32_t... " >&6; } 23950 23951fi 23952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5 23953printf "%s\n" "$ac_cv_header_stdint_u" >&6; } 23954 23955fi fi 23956 23957if test "_$ac_cv_header_stdint_x" = "_" ; then 23958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5 23959printf %s "checking for stdint datatype model... " >&6; } 23960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 23961printf "%s\n" "(..)" >&6; } 23962 23963 # The cast to long int works around a bug in the HP C Compiler 23964# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23965# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23966# This bug is HP SR number 8606223364. 23967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 23968printf %s "checking size of char... " >&6; } 23969if test ${ac_cv_sizeof_char+y} 23970then : 23971 printf %s "(cached) " >&6 23972else $as_nop 23973 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default" 23974then : 23975 23976else $as_nop 23977 if test "$ac_cv_type_char" = yes; then 23978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23979printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23980as_fn_error 77 "cannot compute sizeof (char) 23981See \`config.log' for more details" "$LINENO" 5; } 23982 else 23983 ac_cv_sizeof_char=0 23984 fi 23985fi 23986 23987fi 23988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 23989printf "%s\n" "$ac_cv_sizeof_char" >&6; } 23990 23991 23992 23993printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h 23994 23995 23996 # The cast to long int works around a bug in the HP C Compiler 23997# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23998# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23999# This bug is HP SR number 8606223364. 24000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 24001printf %s "checking size of short... " >&6; } 24002if test ${ac_cv_sizeof_short+y} 24003then : 24004 printf %s "(cached) " >&6 24005else $as_nop 24006 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" 24007then : 24008 24009else $as_nop 24010 if test "$ac_cv_type_short" = yes; then 24011 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24012printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24013as_fn_error 77 "cannot compute sizeof (short) 24014See \`config.log' for more details" "$LINENO" 5; } 24015 else 24016 ac_cv_sizeof_short=0 24017 fi 24018fi 24019 24020fi 24021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 24022printf "%s\n" "$ac_cv_sizeof_short" >&6; } 24023 24024 24025 24026printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h 24027 24028 24029 # The cast to long int works around a bug in the HP C Compiler 24030# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24031# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24032# This bug is HP SR number 8606223364. 24033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 24034printf %s "checking size of int... " >&6; } 24035if test ${ac_cv_sizeof_int+y} 24036then : 24037 printf %s "(cached) " >&6 24038else $as_nop 24039 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" 24040then : 24041 24042else $as_nop 24043 if test "$ac_cv_type_int" = yes; then 24044 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24045printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24046as_fn_error 77 "cannot compute sizeof (int) 24047See \`config.log' for more details" "$LINENO" 5; } 24048 else 24049 ac_cv_sizeof_int=0 24050 fi 24051fi 24052 24053fi 24054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 24055printf "%s\n" "$ac_cv_sizeof_int" >&6; } 24056 24057 24058 24059printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h 24060 24061 24062 # The cast to long int works around a bug in the HP C Compiler 24063# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24064# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24065# This bug is HP SR number 8606223364. 24066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 24067printf %s "checking size of long... " >&6; } 24068if test ${ac_cv_sizeof_long+y} 24069then : 24070 printf %s "(cached) " >&6 24071else $as_nop 24072 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" 24073then : 24074 24075else $as_nop 24076 if test "$ac_cv_type_long" = yes; then 24077 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24078printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24079as_fn_error 77 "cannot compute sizeof (long) 24080See \`config.log' for more details" "$LINENO" 5; } 24081 else 24082 ac_cv_sizeof_long=0 24083 fi 24084fi 24085 24086fi 24087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 24088printf "%s\n" "$ac_cv_sizeof_long" >&6; } 24089 24090 24091 24092printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h 24093 24094 24095 # The cast to long int works around a bug in the HP C Compiler 24096# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24097# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24098# This bug is HP SR number 8606223364. 24099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 24100printf %s "checking size of void*... " >&6; } 24101if test ${ac_cv_sizeof_voidp+y} 24102then : 24103 printf %s "(cached) " >&6 24104else $as_nop 24105 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default" 24106then : 24107 24108else $as_nop 24109 if test "$ac_cv_type_voidp" = yes; then 24110 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24111printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24112as_fn_error 77 "cannot compute sizeof (void*) 24113See \`config.log' for more details" "$LINENO" 5; } 24114 else 24115 ac_cv_sizeof_voidp=0 24116 fi 24117fi 24118 24119fi 24120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 24121printf "%s\n" "$ac_cv_sizeof_voidp" >&6; } 24122 24123 24124 24125printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h 24126 24127 24128 ac_cv_char_data_model="" 24129 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char" 24130 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short" 24131 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int" 24132 ac_cv_long_data_model="" 24133 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int" 24134 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long" 24135 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp" 24136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking data model" >&5 24137printf %s "checking data model... " >&6; } 24138 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in 24139 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;; 24140 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;; 24141 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;; 24142 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;; 24143 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;; 24144 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;; 24145 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;; 24146 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;; 24147 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;; 24148 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;; 24149 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;; 24150 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;; 24151 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;; 24152 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;; 24153 222/*|333/*|444/*|666/*|888/*) : 24154 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;; 24155 *) ac_cv_data_model="none" ; n="very unusual model" ;; 24156 esac 24157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5 24158printf "%s\n" "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; } 24159 24160fi 24161 24162if test "_$ac_cv_header_stdint_x" != "_" ; then 24163 ac_cv_header_stdint="$ac_cv_header_stdint_x" 24164elif test "_$ac_cv_header_stdint_o" != "_" ; then 24165 ac_cv_header_stdint="$ac_cv_header_stdint_o" 24166elif test "_$ac_cv_header_stdint_u" != "_" ; then 24167 ac_cv_header_stdint="$ac_cv_header_stdint_u" 24168else 24169 ac_cv_header_stdint="stddef.h" 24170fi 24171 24172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5 24173printf %s "checking for extra inttypes in chosen header... " >&6; } 24174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5 24175printf "%s\n" "($ac_cv_header_stdint)" >&6; } 24176unset ac_cv_type_int_least32_t 24177unset ac_cv_type_int_fast32_t 24178ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint> 24179" 24180if test "x$ac_cv_type_int_least32_t" = xyes 24181then : 24182 24183fi 24184 24185ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint> 24186" 24187if test "x$ac_cv_type_int_fast32_t" = xyes 24188then : 24189 24190fi 24191 24192ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint> 24193" 24194if test "x$ac_cv_type_intmax_t" = xyes 24195then : 24196 24197fi 24198 24199 24200fi # shortcircuit to system "stdint.h" 24201# ------------------ PREPARE VARIABLES ------------------------------ 24202if test "$GCC" = "yes" ; then 24203ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` 24204else 24205ac_cv_stdint_message="using $CC" 24206fi 24207 24208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5 24209printf "%s\n" "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; } 24210 24211# ----------------- DONE inttypes.h checks START header ------------- 24212ac_config_commands="$ac_config_commands $ac_stdint_h" 24213 24214 24215 24216 24217# Check whether --with-int was given. 24218if test ${with_int+y} 24219then : 24220 withval=$with_int; 24221else $as_nop 24222 with_int=gmp 24223fi 24224 24225case "$with_int" in 24226gmp|imath|imath-32) 24227 ;; 24228*) 24229 as_fn_error $? "bad value ${withval} for --with-int (use gmp, imath or imath-32)" "$LINENO" 5 24230esac 24231 24232 24233 24234 24235 24236case "$with_int" in 24237gmp) 24238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 24239printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 24240if test ${ac_cv_c_undeclared_builtin_options+y} 24241then : 24242 printf %s "(cached) " >&6 24243else $as_nop 24244 ac_save_CFLAGS=$CFLAGS 24245 ac_cv_c_undeclared_builtin_options='cannot detect' 24246 for ac_arg in '' -fno-builtin; do 24247 CFLAGS="$ac_save_CFLAGS $ac_arg" 24248 # This test program should *not* compile successfully. 24249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24250/* end confdefs.h. */ 24251 24252int 24253main (void) 24254{ 24255(void) strchr; 24256 ; 24257 return 0; 24258} 24259_ACEOF 24260if ac_fn_c_try_compile "$LINENO" 24261then : 24262 24263else $as_nop 24264 # This test program should compile successfully. 24265 # No library function is consistently available on 24266 # freestanding implementations, so test against a dummy 24267 # declaration. Include always-available headers on the 24268 # off chance that they somehow elicit warnings. 24269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24270/* end confdefs.h. */ 24271#include <float.h> 24272#include <limits.h> 24273#include <stdarg.h> 24274#include <stddef.h> 24275extern void ac_decl (int, char *); 24276 24277int 24278main (void) 24279{ 24280(void) ac_decl (0, (char *) 0); 24281 (void) ac_decl; 24282 24283 ; 24284 return 0; 24285} 24286_ACEOF 24287if ac_fn_c_try_compile "$LINENO" 24288then : 24289 if test x"$ac_arg" = x 24290then : 24291 ac_cv_c_undeclared_builtin_options='none needed' 24292else $as_nop 24293 ac_cv_c_undeclared_builtin_options=$ac_arg 24294fi 24295 break 24296fi 24297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24298fi 24299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24300 done 24301 CFLAGS=$ac_save_CFLAGS 24302 24303fi 24304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 24305printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 24306 case $ac_cv_c_undeclared_builtin_options in #( 24307 'cannot detect') : 24308 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24309printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24310as_fn_error $? "cannot make $CC report undeclared builtins 24311See \`config.log' for more details" "$LINENO" 5; } ;; #( 24312 'none needed') : 24313 ac_c_undeclared_builtin_options='' ;; #( 24314 *) : 24315 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 24316esac 24317 24318 24319 24320printf "%s\n" "#define USE_GMP_FOR_MP /**/" >>confdefs.h 24321 24322 24323 24324 24325# Check whether --with-gmp was given. 24326if test ${with_gmp+y} 24327then : 24328 withval=$with_gmp; 24329fi 24330 24331case "system" in 24332system|build) 24333 24334# Check whether --with-gmp_prefix was given. 24335if test ${with_gmp_prefix+y} 24336then : 24337 withval=$with_gmp_prefix; 24338fi 24339 24340 24341# Check whether --with-gmp_exec_prefix was given. 24342if test ${with_gmp_exec_prefix+y} 24343then : 24344 withval=$with_gmp_exec_prefix; 24345fi 24346 24347esac 24348 24349# Check whether --with-gmp_builddir was given. 24350if test ${with_gmp_builddir+y} 24351then : 24352 withval=$with_gmp_builddir; 24353fi 24354 24355if test "x$with_gmp_prefix" != "x" -a "x$with_gmp_exec_prefix" = "x"; then 24356 with_gmp_exec_prefix=$with_gmp_prefix 24357fi 24358if test "x$with_gmp_prefix" != "x" -o "x$with_gmp_exec_prefix" != "x"; then 24359 if test "x$with_gmp" != "x" -a "x$with_gmp" != "xyes" -a "x$with_gmp" != "xsystem"; then 24360 as_fn_error $? "Setting $with_gmp_prefix implies use of system gmp" "$LINENO" 5 24361 fi 24362 with_gmp="system" 24363fi 24364if test "x$with_gmp_builddir" != "x"; then 24365 if test "x$with_gmp" != "x" -a "x$with_gmp" != "xyes" -a "x$with_gmp" != "xbuild"; then 24366 as_fn_error $? "Setting $with_gmp_builddir implies use of build gmp" "$LINENO" 5 24367 fi 24368 with_gmp="build" 24369 gmp_srcdir=`echo @abs_srcdir@ | $with_gmp_builddir/config.status --file=-` 24370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: gmp sources in $gmp_srcdir" >&5 24371printf "%s\n" "$as_me: gmp sources in $gmp_srcdir" >&6;} 24372fi 24373if test "x$with_gmp_exec_prefix" != "x"; then 24374 export PKG_CONFIG_PATH="$with_gmp_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}" 24375fi 24376case "$with_gmp" in 24377system|build) 24378 ;; 24379*) 24380 case "system" in 24381 bundled) 24382 if test -d $srcdir/.git -a \ 24383 -d $srcdir/gmp -a \ 24384 ! -d $srcdir/gmp/.git; then 24385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule gmp not initialized" >&5 24386printf "%s\n" "$as_me: WARNING: git repo detected, but submodule gmp not initialized" >&2;} 24387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5 24388printf "%s\n" "$as_me: WARNING: You may want to run" >&2;} 24389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5 24390printf "%s\n" "$as_me: WARNING: git submodule init" >&2;} 24391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5 24392printf "%s\n" "$as_me: WARNING: git submodule update" >&2;} 24393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5 24394printf "%s\n" "$as_me: WARNING: sh autogen.sh" >&2;} 24395 fi 24396 if test -f $srcdir/gmp/configure; then 24397 with_gmp="bundled" 24398 else 24399 with_gmp="no" 24400 fi 24401 ;; 24402 *) 24403 with_gmp="system" 24404 ;; 24405 esac 24406 ;; 24407esac 24408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which gmp to use" >&5 24409printf %s "checking which gmp to use... " >&6; } 24410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_gmp" >&5 24411printf "%s\n" "$with_gmp" >&6; } 24412 24413 24414case "$with_gmp" in 24415system) 24416 if test "x$with_gmp_prefix" != "x"; then 24417 MP_CPPFLAGS="-I$with_gmp_prefix/include" 24418 MP_LDFLAGS="-L$with_gmp_prefix/lib" 24419 fi 24420 MP_LIBS=-lgmp 24421 SAVE_CPPFLAGS="$CPPFLAGS" 24422 SAVE_LDFLAGS="$LDFLAGS" 24423 SAVE_LIBS="$LIBS" 24424 CPPFLAGS="$MP_CPPFLAGS $CPPFLAGS" 24425 LDFLAGS="$MP_LDFLAGS $LDFLAGS" 24426 LIBS="$MP_LIBS $LIBS" 24427 ac_fn_c_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" 24428if test "x$ac_cv_header_gmp_h" = xyes 24429then : 24430 24431else $as_nop 24432 as_fn_error $? "gmp.h header not found" "$LINENO" 5 24433fi 24434 24435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5 24436printf %s "checking for main in -lgmp... " >&6; } 24437if test ${ac_cv_lib_gmp_main+y} 24438then : 24439 printf %s "(cached) " >&6 24440else $as_nop 24441 ac_check_lib_save_LIBS=$LIBS 24442LIBS="-lgmp $LIBS" 24443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24444/* end confdefs.h. */ 24445 24446 24447int 24448main (void) 24449{ 24450return main (); 24451 ; 24452 return 0; 24453} 24454_ACEOF 24455if ac_fn_c_try_link "$LINENO" 24456then : 24457 ac_cv_lib_gmp_main=yes 24458else $as_nop 24459 ac_cv_lib_gmp_main=no 24460fi 24461rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24462 conftest$ac_exeext conftest.$ac_ext 24463LIBS=$ac_check_lib_save_LIBS 24464fi 24465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5 24466printf "%s\n" "$ac_cv_lib_gmp_main" >&6; } 24467if test "x$ac_cv_lib_gmp_main" = xyes 24468then : 24469 printf "%s\n" "#define HAVE_LIBGMP 1" >>confdefs.h 24470 24471 LIBS="-lgmp $LIBS" 24472 24473else $as_nop 24474 as_fn_error $? "gmp library not found" "$LINENO" 5 24475fi 24476 24477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24478/* end confdefs.h. */ 24479#include <gmp.h> 24480int 24481main (void) 24482{ 24483 24484 mpz_t n, d; 24485 if (mpz_divisible_p(n, d)) 24486 mpz_divexact_ui(n, n, 4); 24487 24488 ; 24489 return 0; 24490} 24491_ACEOF 24492if ac_fn_c_try_link "$LINENO" 24493then : 24494 24495else $as_nop 24496 as_fn_error $? "gmp library too old" "$LINENO" 5 24497fi 24498rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24499 conftest$ac_exeext conftest.$ac_ext 24500 CPPFLAGS="$SAVE_CPPFLAGS" 24501 LDFLAGS="$SAVE_LDFLAGS" 24502 LIBS="$SAVE_LIBS" 24503 ;; 24504build) 24505 MP_CPPFLAGS="-I$gmp_srcdir -I$with_gmp_builddir" 24506 MP_LIBS="$with_gmp_builddir/libgmp.la" 24507 ;; 24508esac 24509SAVE_CPPFLAGS="$CPPFLAGS" 24510SAVE_LDFLAGS="$LDFLAGS" 24511SAVE_LIBS="$LIBS" 24512CPPFLAGS="$MP_CPPFLAGS $CPPFLAGS" 24513LDFLAGS="$MP_LDFLAGS $LDFLAGS" 24514LIBS="$MP_LIBS $LIBS" 24515need_get_memory_functions=false 24516ac_fn_check_decl "$LINENO" "mp_get_memory_functions" "ac_cv_have_decl_mp_get_memory_functions" "#include <gmp.h> 24517" "$ac_c_undeclared_builtin_options" "CFLAGS" 24518if test "x$ac_cv_have_decl_mp_get_memory_functions" = xyes 24519then : 24520 ac_have_decl=1 24521else $as_nop 24522 ac_have_decl=0 24523fi 24524printf "%s\n" "#define HAVE_DECL_MP_GET_MEMORY_FUNCTIONS $ac_have_decl" >>confdefs.h 24525if test $ac_have_decl = 1 24526then : 24527 24528else $as_nop 24529 24530 need_get_memory_functions=true 24531 24532fi 24533 24534CPPFLAGS="$SAVE_CPPFLAGS" 24535LDFLAGS="$SAVE_LDFLAGS" 24536LIBS="$SAVE_LIBS" 24537 if test x$need_get_memory_functions = xtrue; then 24538 NEED_GET_MEMORY_FUNCTIONS_TRUE= 24539 NEED_GET_MEMORY_FUNCTIONS_FALSE='#' 24540else 24541 NEED_GET_MEMORY_FUNCTIONS_TRUE='#' 24542 NEED_GET_MEMORY_FUNCTIONS_FALSE= 24543fi 24544 24545 24546 ;; 24547imath|imath-32) 24548 24549 24550printf "%s\n" "#define USE_IMATH_FOR_MP /**/" >>confdefs.h 24551 24552 24553MP_CPPFLAGS="-I$srcdir/imath_wrap" 24554MP_LDFLAGS="" 24555MP_LIBS="" 24556 24557SAVE_CPPFLAGS="$CPPFLAGS" 24558CPPFLAGS="$MP_CPPFLAGS $CPPFLAGS" 24559ac_fn_c_check_header_compile "$LINENO" "imath.h" "ac_cv_header_imath_h" "$ac_includes_default" 24560if test "x$ac_cv_header_imath_h" = xyes 24561then : 24562 24563else $as_nop 24564 as_fn_error $? "imath.h header not found" "$LINENO" 5 24565fi 24566 24567ac_fn_c_check_header_compile "$LINENO" "gmp_compat.h" "ac_cv_header_gmp_compat_h" "$ac_includes_default" 24568if test "x$ac_cv_header_gmp_compat_h" = xyes 24569then : 24570 24571else $as_nop 24572 as_fn_error $? "gmp_compat.h header not found" "$LINENO" 5 24573fi 24574 24575CPPFLAGS="$SAVE_CPPFLAGS" 24576 24577 if test x = xfalse; then 24578 NEED_GET_MEMORY_FUNCTIONS_TRUE= 24579 NEED_GET_MEMORY_FUNCTIONS_FALSE='#' 24580else 24581 NEED_GET_MEMORY_FUNCTIONS_TRUE='#' 24582 NEED_GET_MEMORY_FUNCTIONS_FALSE= 24583fi 24584 24585 24586 ;; 24587esac 24588if test "x$with_int" = "ximath-32" -a "x$GCC" = "xyes"; then 24589 MP_CFLAGS="-std=gnu99 $MP_CFLAGS" 24590fi 24591 24592 if test x$with_int = ximath -o x$with_int = ximath-32; then 24593 IMATH_FOR_MP_TRUE= 24594 IMATH_FOR_MP_FALSE='#' 24595else 24596 IMATH_FOR_MP_TRUE='#' 24597 IMATH_FOR_MP_FALSE= 24598fi 24599 24600 if test x$with_int = xgmp; then 24601 GMP_FOR_MP_TRUE= 24602 GMP_FOR_MP_FALSE='#' 24603else 24604 GMP_FOR_MP_TRUE='#' 24605 GMP_FOR_MP_FALSE= 24606fi 24607 24608 24609 if test "x$HAVE_CXX11" = "x1"; then 24610 HAVE_CXX11_TRUE= 24611 HAVE_CXX11_FALSE='#' 24612else 24613 HAVE_CXX11_TRUE='#' 24614 HAVE_CXX11_FALSE= 24615fi 24616 24617 if test "x$HAVE_CXX17" = "x1"; then 24618 HAVE_CXX17_TRUE= 24619 HAVE_CXX17_FALSE='#' 24620else 24621 HAVE_CXX17_TRUE='#' 24622 HAVE_CXX17_FALSE= 24623fi 24624 24625 if test "x$with_int" = "ximath-32"; then 24626 SMALL_INT_OPT_TRUE= 24627 SMALL_INT_OPT_FALSE='#' 24628else 24629 SMALL_INT_OPT_TRUE='#' 24630 SMALL_INT_OPT_FALSE= 24631fi 24632 24633if test "x$with_int" = "ximath-32" 24634then : 24635 24636 24637printf "%s\n" "#define USE_SMALL_INT_OPT /**/" >>confdefs.h 24638 24639 24640fi 24641 24642ac_fn_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "#include <strings.h> 24643" "$ac_c_undeclared_builtin_options" "CFLAGS" 24644if test "x$ac_cv_have_decl_ffs" = xyes 24645then : 24646 ac_have_decl=1 24647else $as_nop 24648 ac_have_decl=0 24649fi 24650printf "%s\n" "#define HAVE_DECL_FFS $ac_have_decl" >>confdefs.h 24651 24652ac_fn_check_decl "$LINENO" "__builtin_ffs" "ac_cv_have_decl___builtin_ffs" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 24653if test "x$ac_cv_have_decl___builtin_ffs" = xyes 24654then : 24655 ac_have_decl=1 24656else $as_nop 24657 ac_have_decl=0 24658fi 24659printf "%s\n" "#define HAVE_DECL___BUILTIN_FFS $ac_have_decl" >>confdefs.h 24660 24661ac_fn_check_decl "$LINENO" "_BitScanForward" "ac_cv_have_decl__BitScanForward" "#include <intrin.h> 24662" "$ac_c_undeclared_builtin_options" "CFLAGS" 24663if test "x$ac_cv_have_decl__BitScanForward" = xyes 24664then : 24665 ac_have_decl=1 24666else $as_nop 24667 ac_have_decl=0 24668fi 24669printf "%s\n" "#define HAVE_DECL__BITSCANFORWARD $ac_have_decl" >>confdefs.h 24670 24671if test "x$ac_cv_have_decl_ffs" = xno -a \ 24672 "x$ac_cv_have_decl___builtin_ffs" = xno -a \ 24673 "x$ac_cv_have_decl__BitScanForward" = xno; then 24674 as_fn_error $? "No ffs implementation found" "$LINENO" 5 24675fi 24676ac_fn_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "#include <strings.h> 24677" "$ac_c_undeclared_builtin_options" "CFLAGS" 24678if test "x$ac_cv_have_decl_strcasecmp" = xyes 24679then : 24680 ac_have_decl=1 24681else $as_nop 24682 ac_have_decl=0 24683fi 24684printf "%s\n" "#define HAVE_DECL_STRCASECMP $ac_have_decl" >>confdefs.h 24685ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "#include <strings.h> 24686" "$ac_c_undeclared_builtin_options" "CFLAGS" 24687if test "x$ac_cv_have_decl_strncasecmp" = xyes 24688then : 24689 ac_have_decl=1 24690else $as_nop 24691 ac_have_decl=0 24692fi 24693printf "%s\n" "#define HAVE_DECL_STRNCASECMP $ac_have_decl" >>confdefs.h 24694 24695ac_fn_check_decl "$LINENO" "_stricmp" "ac_cv_have_decl__stricmp" "#include <string.h> 24696" "$ac_c_undeclared_builtin_options" "CFLAGS" 24697if test "x$ac_cv_have_decl__stricmp" = xyes 24698then : 24699 ac_have_decl=1 24700else $as_nop 24701 ac_have_decl=0 24702fi 24703printf "%s\n" "#define HAVE_DECL__STRICMP $ac_have_decl" >>confdefs.h 24704ac_fn_check_decl "$LINENO" "_strnicmp" "ac_cv_have_decl__strnicmp" "#include <string.h> 24705" "$ac_c_undeclared_builtin_options" "CFLAGS" 24706if test "x$ac_cv_have_decl__strnicmp" = xyes 24707then : 24708 ac_have_decl=1 24709else $as_nop 24710 ac_have_decl=0 24711fi 24712printf "%s\n" "#define HAVE_DECL__STRNICMP $ac_have_decl" >>confdefs.h 24713 24714if test "x$ac_cv_have_decl_strcasecmp" = xno -a \ 24715 "x$ac_cv_have_decl__stricmp" = xno; then 24716 as_fn_error $? "No strcasecmp implementation found" "$LINENO" 5 24717fi 24718if test "x$ac_cv_have_decl_strncasecmp" = xno -a \ 24719 "x$ac_cv_have_decl__strnicmp" = xno; then 24720 as_fn_error $? "No strncasecmp implementation found" "$LINENO" 5 24721fi 24722ac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "#include <stdio.h> 24723" "$ac_c_undeclared_builtin_options" "CFLAGS" 24724if test "x$ac_cv_have_decl_snprintf" = xyes 24725then : 24726 ac_have_decl=1 24727else $as_nop 24728 ac_have_decl=0 24729fi 24730printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h 24731ac_fn_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> 24732" "$ac_c_undeclared_builtin_options" "CFLAGS" 24733if test "x$ac_cv_have_decl__snprintf" = xyes 24734then : 24735 ac_have_decl=1 24736else $as_nop 24737 ac_have_decl=0 24738fi 24739printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h 24740 24741if test "x$ac_cv_have_decl_snprintf" = xno -a \ 24742 "x$ac_cv_have_decl__snprintf" = xno; then 24743 as_fn_error $? "No snprintf implementation found" "$LINENO" 5 24744fi 24745 24746 24747 24748 24749# Check whether --with-clang was given. 24750if test ${with_clang+y} 24751then : 24752 withval=$with_clang; 24753fi 24754 24755case "system" in 24756system|no) 24757 24758# Check whether --with-clang_prefix was given. 24759if test ${with_clang_prefix+y} 24760then : 24761 withval=$with_clang_prefix; 24762fi 24763 24764 24765# Check whether --with-clang_exec_prefix was given. 24766if test ${with_clang_exec_prefix+y} 24767then : 24768 withval=$with_clang_exec_prefix; 24769fi 24770 24771esac 24772 24773if test "x$with_clang_prefix" != "x" -a "x$with_clang_exec_prefix" = "x"; then 24774 with_clang_exec_prefix=$with_clang_prefix 24775fi 24776if test "x$with_clang_prefix" != "x" -o "x$with_clang_exec_prefix" != "x"; then 24777 if test "x$with_clang" != "x" -a "x$with_clang" != "xyes" -a "x$with_clang" != "xsystem"; then 24778 as_fn_error $? "Setting $with_clang_prefix implies use of system clang" "$LINENO" 5 24779 fi 24780 with_clang="system" 24781fi 24782if test "x$with_clang_builddir" != "x"; then 24783 if test "x$with_clang" != "x" -a "x$with_clang" != "xyes" -a "x$with_clang" != "xbuild"; then 24784 as_fn_error $? "Setting $with_clang_builddir implies use of build clang" "$LINENO" 5 24785 fi 24786 with_clang="build" 24787 clang_srcdir=`echo @abs_srcdir@ | $with_clang_builddir/config.status --file=-` 24788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: clang sources in $clang_srcdir" >&5 24789printf "%s\n" "$as_me: clang sources in $clang_srcdir" >&6;} 24790fi 24791if test "x$with_clang_exec_prefix" != "x"; then 24792 export PKG_CONFIG_PATH="$with_clang_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}" 24793fi 24794case "$with_clang" in 24795system|no) 24796 ;; 24797*) 24798 case "no" in 24799 bundled) 24800 if test -d $srcdir/.git -a \ 24801 -d $srcdir/clang -a \ 24802 ! -d $srcdir/clang/.git; then 24803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule clang not initialized" >&5 24804printf "%s\n" "$as_me: WARNING: git repo detected, but submodule clang not initialized" >&2;} 24805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5 24806printf "%s\n" "$as_me: WARNING: You may want to run" >&2;} 24807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5 24808printf "%s\n" "$as_me: WARNING: git submodule init" >&2;} 24809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5 24810printf "%s\n" "$as_me: WARNING: git submodule update" >&2;} 24811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5 24812printf "%s\n" "$as_me: WARNING: sh autogen.sh" >&2;} 24813 fi 24814 if test -f $srcdir/clang/configure; then 24815 with_clang="bundled" 24816 else 24817 with_clang="no" 24818 fi 24819 ;; 24820 *) 24821 with_clang="no" 24822 ;; 24823 esac 24824 ;; 24825esac 24826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which clang to use" >&5 24827printf %s "checking which clang to use... " >&6; } 24828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_clang" >&5 24829printf "%s\n" "$with_clang" >&6; } 24830 24831 24832 if test $with_clang = system; then 24833 HAVE_CLANG_TRUE= 24834 HAVE_CLANG_FALSE='#' 24835else 24836 HAVE_CLANG_TRUE='#' 24837 HAVE_CLANG_FALSE= 24838fi 24839 24840 if (test $with_clang = system -a "x$HAVE_CXX11" = "x1") || \ 24841 test -f $srcdir/include/isl/cpp.h; then 24842 HAVE_CPP_ISL_H_TRUE= 24843 HAVE_CPP_ISL_H_FALSE='#' 24844else 24845 HAVE_CPP_ISL_H_TRUE='#' 24846 HAVE_CPP_ISL_H_FALSE= 24847fi 24848 24849 24850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 24851printf %s "checking for C compiler vendor... " >&6; } 24852if test ${ax_cv_c_compiler_vendor+y} 24853then : 24854 printf %s "(cached) " >&6 24855else $as_nop 24856 24857 vendors=" 24858 intel: __ICC,__ECC,__INTEL_COMPILER 24859 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__ 24860 pathscale: __PATHCC__,__PATHSCALE__ 24861 clang: __clang__ 24862 cray: _CRAYC 24863 fujitsu: __FUJITSU 24864 sdcc: SDCC,__SDCC 24865 sx: _SX 24866 nvhpc: __NVCOMPILER 24867 portland: __PGI 24868 pcc: __PCC__ 24869 gnu: __GNUC__ 24870 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95 24871 hp: __HP_cc,__HP_aCC 24872 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 24873 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 24874 comeau: __COMO__ 24875 kai: __KCC 24876 lcc: __LCC__ 24877 sgi: __sgi,sgi 24878 microsoft: _MSC_VER 24879 metrowerks: __MWERKS__ 24880 watcom: __WATCOMC__ 24881 tcc: __TINYC__ 24882 unknown: UNKNOWN 24883 " 24884 for ventest in $vendors; do 24885 case $ventest in 24886 *:) 24887 vendor=$ventest 24888 continue 24889 ;; 24890 *) 24891 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" 24892 ;; 24893 esac 24894 24895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24896/* end confdefs.h. */ 24897 24898int 24899main (void) 24900{ 24901 24902#if !($vencpp) 24903 thisisanerror; 24904#endif 24905 24906 ; 24907 return 0; 24908} 24909_ACEOF 24910if ac_fn_c_try_compile "$LINENO" 24911then : 24912 break 24913fi 24914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24915 done 24916 24917 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 24918 24919fi 24920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 24921printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; } 24922 24923 24924 WARNING_FLAGS="" 24925 24926 if test "${ax_cv_c_compiler_vendor}" = "clang"; then 24927 WARNING_FLAGS="-Wall" 24928 fi 24929 24930 24931 24932 24933PACKAGE_CFLAGS="$MP_CPPFLAGS" 24934PACKAGE_LDFLAGS="$MP_LDFLAGS" 24935PACKAGE_LIBS="-lisl $MP_LIBS" 24936 24937# we need the expanded forms... 24938test "x$prefix" = xNONE && prefix=$ac_default_prefix 24939test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24940 24941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5 24942printf %s "checking our pkgconfig libname... " >&6; } 24943test ".$ax_create_pkgconfig_libname" != "." || \ 24944ax_create_pkgconfig_libname="${PACKAGE_NAME}" 24945test ".$ax_create_pkgconfig_libname" != "." || \ 24946ax_create_pkgconfig_libname="$PACKAGE" 24947ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"` 24948ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"` 24949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5 24950printf "%s\n" "$ax_create_pkgconfig_libname" >&6; } 24951 24952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5 24953printf %s "checking our pkgconfig version... " >&6; } 24954test ".$ax_create_pkgconfig_version" != "." || \ 24955ax_create_pkgconfig_version="${PACKAGE_VERSION}" 24956test ".$ax_create_pkgconfig_version" != "." || \ 24957ax_create_pkgconfig_version="$VERSION" 24958ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"` 24959ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"` 24960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5 24961printf "%s\n" "$ax_create_pkgconfig_version" >&6; } 24962 24963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5 24964printf %s "checking our pkgconfig_libdir... " >&6; } 24965test ".$pkgconfig_libdir" = "." && \ 24966pkgconfig_libdir='${libdir}/pkgconfig' 24967ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"` 24968ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"` 24969ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"` 24970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5 24971printf "%s\n" "$pkgconfig_libdir" >&6; } 24972test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && ( 24973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5 24974printf "%s\n" "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; }) 24975 24976 24977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5 24978printf %s "checking our pkgconfig_libfile... " >&6; } 24979test ".$pkgconfig_libfile" != "." || \ 24980pkgconfig_libfile="$ax_create_pkgconfig_libname.pc" 24981ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"` 24982ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"` 24983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5 24984printf "%s\n" "$pkgconfig_libfile" >&6; } 24985test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && ( 24986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5 24987printf "%s\n" "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; }) 24988 24989 24990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5 24991printf %s "checking our package / suffix... " >&6; } 24992ax_create_pkgconfig_suffix="$program_suffix" 24993test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix="" 24994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5 24995printf "%s\n" "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; } 24996 24997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5 24998printf %s "checking our pkgconfig description... " >&6; } 24999ax_create_pkgconfig_description="$PACKAGE_SUMMARY" 25000test ".$ax_create_pkgconfig_description" != "." || \ 25001ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library" 25002ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"` 25003ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"` 25004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5 25005printf "%s\n" "$ax_create_pkgconfig_description" >&6; } 25006 25007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5 25008printf %s "checking our pkgconfig requires... " >&6; } 25009ax_create_pkgconfig_requires="$PACKAGE_REQUIRES" 25010ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"` 25011ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"` 25012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5 25013printf "%s\n" "$ax_create_pkgconfig_requires" >&6; } 25014 25015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5 25016printf %s "checking our pkgconfig ext libs... " >&6; } 25017ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS" 25018test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname" 25019ax_create_pkgconfig_libs="$ax_create_pkgconfig_pkglibs $LIBS" 25020ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"` 25021ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"` 25022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5 25023printf "%s\n" "$ax_create_pkgconfig_libs" >&6; } 25024 25025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5 25026printf %s "checking our pkgconfig cppflags... " >&6; } 25027ax_create_pkgconfig_cppflags="$PACKAGE_CFLAGS" 25028ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"` 25029ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"` 25030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5 25031printf "%s\n" "$ax_create_pkgconfig_cppflags" >&6; } 25032 25033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5 25034printf %s "checking our pkgconfig ldflags... " >&6; } 25035ax_create_pkgconfig_ldflags="$PACKAGE_LDFLAGS" 25036ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"` 25037ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"` 25038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5 25039printf "%s\n" "$ax_create_pkgconfig_ldflags" >&6; } 25040 25041test ".$ax_create_pkgconfig_generate" != "." || \ 25042ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc" 25043ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"` 25044ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"` 25045test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && ( 25046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5 25047printf "%s\n" "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; }) 25048 25049if test ".$ax_create_pkgconfig_src_libdir" = "." ; then 25050ax_create_pkgconfig_src_libdir=`pwd` 25051ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" || 25052$as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25053 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \ 25054 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \ 25055 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null || 25056printf "%s\n" X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" | 25057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25058 s//\1/ 25059 q 25060 } 25061 /^X\(\/\/\)[^/].*/{ 25062 s//\1/ 25063 q 25064 } 25065 /^X\(\/\/\)$/{ 25066 s//\1/ 25067 q 25068 } 25069 /^X\(\/\).*/{ 25070 s//\1/ 25071 q 25072 } 25073 s/.*/./; q'` 25074test ! -d $ax_create_pkgconfig_src_libdir/src || \ 25075ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src" 25076case ".$objdir" in 25077*libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac 25078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5 25079printf "%s\n" "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; } 25080fi 25081 25082if test ".$ax_create_pkgconfig_src_headers" = "." ; then 25083ax_create_pkgconfig_src_headers=`pwd` 25084v="$ac_top_srcdir" ; 25085test ".$v" != "." || v="$ax_spec_dir" 25086test ".$v" != "." || v="$srcdir" 25087case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac 25088ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" || 25089$as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25090 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \ 25091 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \ 25092 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null || 25093printf "%s\n" X"$ax_create_pkgconfig_src_headers/$v/x" | 25094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25095 s//\1/ 25096 q 25097 } 25098 /^X\(\/\/\)[^/].*/{ 25099 s//\1/ 25100 q 25101 } 25102 /^X\(\/\/\)$/{ 25103 s//\1/ 25104 q 25105 } 25106 /^X\(\/\).*/{ 25107 s//\1/ 25108 q 25109 } 25110 s/.*/./; q'` 25111test ! -d $ax_create_pkgconfig_src_headers/include || \ 25112ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include" 25113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5 25114printf "%s\n" "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; } 25115fi 25116 25117 25118ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate" 25119 25120 25121 25122 25123 25124 25125 if test -f $srcdir/.git; then 25126 gitdir=`GIT_DIR=$srcdir/.git git rev-parse --git-dir` 25127 GIT_HEAD="$gitdir/index" 25128 GIT_REPO="$gitdir" 25129 GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe --always` 25130 elif test -f $srcdir/.git/HEAD; then 25131 GIT_HEAD="$srcdir/.git/index" 25132 GIT_REPO="$srcdir/.git" 25133 GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe --always` 25134 elif test -f $srcdir/GIT_HEAD_ID; then 25135 GIT_HEAD_ID=`cat $srcdir/GIT_HEAD_ID` 25136 else 25137 mysrcdir=`(cd $srcdir; pwd)` 25138 head=`basename $mysrcdir | sed -e 's/.*-//'` 25139 head2=`echo $head | sed -e 's/^0-9a-f//'` 25140 head3=`echo $head2 | sed -e 's/........................................//'` 25141 if test "x$head3" = "x" -a "x$head" = "x$head2"; then 25142 GIT_HEAD_ID="$head" 25143 else 25144 GIT_HEAD_ID="UNKNOWN" 25145 fi 25146 fi 25147 if test -z "$GIT_REPO" ; then 25148 GIT_HEAD_VERSION="$GIT_HEAD_ID" 25149 else 25150 GIT_HEAD_VERSION="\`GIT_DIR=$GIT_REPO git describe --always\`" 25151 fi 25152 25153 25154 25155ac_config_headers="$ac_config_headers isl_config.h" 25156 25157ac_config_files="$ac_config_files isl_srcdir.c" 25158 25159ac_config_files="$ac_config_files Makefile" 25160 25161ac_config_files="$ac_config_files doc/Makefile" 25162 25163if test $with_clang = system; then 25164 25165 25166subdirs="$subdirs interface" 25167 25168fi 25169ac_config_files="$ac_config_files bound_test.sh" 25170 25171ac_config_files="$ac_config_files codegen_test.sh" 25172 25173ac_config_files="$ac_config_files pip_test.sh" 25174 25175ac_config_files="$ac_config_files flow_test.sh" 25176 25177ac_config_files="$ac_config_files schedule_test.sh" 25178 25179cat >confcache <<\_ACEOF 25180# This file is a shell script that caches the results of configure 25181# tests run on this system so they can be shared between configure 25182# scripts and configure runs, see configure's option --config-cache. 25183# It is not useful on other systems. If it contains results you don't 25184# want to keep, you may remove or edit it. 25185# 25186# config.status only pays attention to the cache file if you give it 25187# the --recheck option to rerun configure. 25188# 25189# `ac_cv_env_foo' variables (set or unset) will be overridden when 25190# loading this file, other *unset* `ac_cv_foo' will be assigned the 25191# following values. 25192 25193_ACEOF 25194 25195# The following way of writing the cache mishandles newlines in values, 25196# but we know of no workaround that is simple, portable, and efficient. 25197# So, we kill variables containing newlines. 25198# Ultrix sh set writes to stderr and can't be redirected directly, 25199# and sets the high bit in the cache file unless we assign to the vars. 25200( 25201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 25202 eval ac_val=\$$ac_var 25203 case $ac_val in #( 25204 *${as_nl}*) 25205 case $ac_var in #( 25206 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 25207printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 25208 esac 25209 case $ac_var in #( 25210 _ | IFS | as_nl) ;; #( 25211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 25212 *) { eval $ac_var=; unset $ac_var;} ;; 25213 esac ;; 25214 esac 25215 done 25216 25217 (set) 2>&1 | 25218 case $as_nl`(ac_space=' '; set) 2>&1` in #( 25219 *${as_nl}ac_space=\ *) 25220 # `set' does not quote correctly, so add quotes: double-quote 25221 # substitution turns \\\\ into \\, and sed turns \\ into \. 25222 sed -n \ 25223 "s/'/'\\\\''/g; 25224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25225 ;; #( 25226 *) 25227 # `set' quotes correctly as required by POSIX, so do not add quotes. 25228 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 25229 ;; 25230 esac | 25231 sort 25232) | 25233 sed ' 25234 /^ac_cv_env_/b end 25235 t clear 25236 :clear 25237 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 25238 t end 25239 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25240 :end' >>confcache 25241if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 25242 if test -w "$cache_file"; then 25243 if test "x$cache_file" != "x/dev/null"; then 25244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 25245printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 25246 if test ! -f "$cache_file" || test -h "$cache_file"; then 25247 cat confcache >"$cache_file" 25248 else 25249 case $cache_file in #( 25250 */* | ?:*) 25251 mv -f confcache "$cache_file"$$ && 25252 mv -f "$cache_file"$$ "$cache_file" ;; #( 25253 *) 25254 mv -f confcache "$cache_file" ;; 25255 esac 25256 fi 25257 fi 25258 else 25259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 25260printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 25261 fi 25262fi 25263rm -f confcache 25264 25265test "x$prefix" = xNONE && prefix=$ac_default_prefix 25266# Let make expand exec_prefix. 25267test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25268 25269DEFS=-DHAVE_CONFIG_H 25270 25271ac_libobjs= 25272ac_ltlibobjs= 25273U= 25274for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 25275 # 1. Remove the extension, and $U if already installed. 25276 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 25277 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 25278 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 25279 # will be set to the directory where LIBOBJS objects are built. 25280 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 25281 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 25282done 25283LIBOBJS=$ac_libobjs 25284 25285LTLIBOBJS=$ac_ltlibobjs 25286 25287 25288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 25289printf %s "checking that generated files are newer than configure... " >&6; } 25290 if test -n "$am_sleep_pid"; then 25291 # Hide warnings about reused PIDs. 25292 wait $am_sleep_pid 2>/dev/null 25293 fi 25294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 25295printf "%s\n" "done" >&6; } 25296 if test -n "$EXEEXT"; then 25297 am__EXEEXT_TRUE= 25298 am__EXEEXT_FALSE='#' 25299else 25300 am__EXEEXT_TRUE='#' 25301 am__EXEEXT_FALSE= 25302fi 25303 25304if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 25305 as_fn_error $? "conditional \"AMDEP\" was never defined. 25306Usually this means the macro was only invoked conditionally." "$LINENO" 5 25307fi 25308if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 25309 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 25310Usually this means the macro was only invoked conditionally." "$LINENO" 5 25311fi 25312if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 25313 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 25314Usually this means the macro was only invoked conditionally." "$LINENO" 5 25315fi 25316if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 25317 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 25318Usually this means the macro was only invoked conditionally." "$LINENO" 5 25319fi 25320if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then 25321 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. 25322Usually this means the macro was only invoked conditionally." "$LINENO" 5 25323fi 25324if test -z "${GENERATE_DOC_TRUE}" && test -z "${GENERATE_DOC_FALSE}"; then 25325 as_fn_error $? "conditional \"GENERATE_DOC\" was never defined. 25326Usually this means the macro was only invoked conditionally." "$LINENO" 5 25327fi 25328if test -z "${NEED_GET_MEMORY_FUNCTIONS_TRUE}" && test -z "${NEED_GET_MEMORY_FUNCTIONS_FALSE}"; then 25329 as_fn_error $? "conditional \"NEED_GET_MEMORY_FUNCTIONS\" was never defined. 25330Usually this means the macro was only invoked conditionally." "$LINENO" 5 25331fi 25332if test -z "${NEED_GET_MEMORY_FUNCTIONS_TRUE}" && test -z "${NEED_GET_MEMORY_FUNCTIONS_FALSE}"; then 25333 as_fn_error $? "conditional \"NEED_GET_MEMORY_FUNCTIONS\" was never defined. 25334Usually this means the macro was only invoked conditionally." "$LINENO" 5 25335fi 25336if test -z "${IMATH_FOR_MP_TRUE}" && test -z "${IMATH_FOR_MP_FALSE}"; then 25337 as_fn_error $? "conditional \"IMATH_FOR_MP\" was never defined. 25338Usually this means the macro was only invoked conditionally." "$LINENO" 5 25339fi 25340if test -z "${GMP_FOR_MP_TRUE}" && test -z "${GMP_FOR_MP_FALSE}"; then 25341 as_fn_error $? "conditional \"GMP_FOR_MP\" was never defined. 25342Usually this means the macro was only invoked conditionally." "$LINENO" 5 25343fi 25344if test -z "${HAVE_CXX11_TRUE}" && test -z "${HAVE_CXX11_FALSE}"; then 25345 as_fn_error $? "conditional \"HAVE_CXX11\" was never defined. 25346Usually this means the macro was only invoked conditionally." "$LINENO" 5 25347fi 25348if test -z "${HAVE_CXX17_TRUE}" && test -z "${HAVE_CXX17_FALSE}"; then 25349 as_fn_error $? "conditional \"HAVE_CXX17\" was never defined. 25350Usually this means the macro was only invoked conditionally." "$LINENO" 5 25351fi 25352if test -z "${SMALL_INT_OPT_TRUE}" && test -z "${SMALL_INT_OPT_FALSE}"; then 25353 as_fn_error $? "conditional \"SMALL_INT_OPT\" was never defined. 25354Usually this means the macro was only invoked conditionally." "$LINENO" 5 25355fi 25356if test -z "${HAVE_CLANG_TRUE}" && test -z "${HAVE_CLANG_FALSE}"; then 25357 as_fn_error $? "conditional \"HAVE_CLANG\" was never defined. 25358Usually this means the macro was only invoked conditionally." "$LINENO" 5 25359fi 25360if test -z "${HAVE_CPP_ISL_H_TRUE}" && test -z "${HAVE_CPP_ISL_H_FALSE}"; then 25361 as_fn_error $? "conditional \"HAVE_CPP_ISL_H\" was never defined. 25362Usually this means the macro was only invoked conditionally." "$LINENO" 5 25363fi 25364 25365: "${CONFIG_STATUS=./config.status}" 25366ac_write_fail=0 25367ac_clean_files_save=$ac_clean_files 25368ac_clean_files="$ac_clean_files $CONFIG_STATUS" 25369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 25370printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 25371as_write_fail=0 25372cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 25373#! $SHELL 25374# Generated by $as_me. 25375# Run this file to recreate the current configuration. 25376# Compiler output produced by configure, useful for debugging 25377# configure, is in config.log if it exists. 25378 25379debug=false 25380ac_cs_recheck=false 25381ac_cs_silent=false 25382 25383SHELL=\${CONFIG_SHELL-$SHELL} 25384export SHELL 25385_ASEOF 25386cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 25387## -------------------- ## 25388## M4sh Initialization. ## 25389## -------------------- ## 25390 25391# Be more Bourne compatible 25392DUALCASE=1; export DUALCASE # for MKS sh 25393as_nop=: 25394if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 25395then : 25396 emulate sh 25397 NULLCMD=: 25398 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25399 # is contrary to our usage. Disable this feature. 25400 alias -g '${1+"$@"}'='"$@"' 25401 setopt NO_GLOB_SUBST 25402else $as_nop 25403 case `(set -o) 2>/dev/null` in #( 25404 *posix*) : 25405 set -o posix ;; #( 25406 *) : 25407 ;; 25408esac 25409fi 25410 25411 25412 25413# Reset variables that may have inherited troublesome values from 25414# the environment. 25415 25416# IFS needs to be set, to space, tab, and newline, in precisely that order. 25417# (If _AS_PATH_WALK were called with IFS unset, it would have the 25418# side effect of setting IFS to empty, thus disabling word splitting.) 25419# Quoting is to prevent editors from complaining about space-tab. 25420as_nl=' 25421' 25422export as_nl 25423IFS=" "" $as_nl" 25424 25425PS1='$ ' 25426PS2='> ' 25427PS4='+ ' 25428 25429# Ensure predictable behavior from utilities with locale-dependent output. 25430LC_ALL=C 25431export LC_ALL 25432LANGUAGE=C 25433export LANGUAGE 25434 25435# We cannot yet rely on "unset" to work, but we need these variables 25436# to be unset--not just set to an empty or harmless value--now, to 25437# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 25438# also avoids known problems related to "unset" and subshell syntax 25439# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 25440for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 25441do eval test \${$as_var+y} \ 25442 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 25443done 25444 25445# Ensure that fds 0, 1, and 2 are open. 25446if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 25447if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 25448if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 25449 25450# The user is always right. 25451if ${PATH_SEPARATOR+false} :; then 25452 PATH_SEPARATOR=: 25453 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 25454 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 25455 PATH_SEPARATOR=';' 25456 } 25457fi 25458 25459 25460# Find who we are. Look in the path if we contain no directory separator. 25461as_myself= 25462case $0 in #(( 25463 *[\\/]* ) as_myself=$0 ;; 25464 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25465for as_dir in $PATH 25466do 25467 IFS=$as_save_IFS 25468 case $as_dir in #((( 25469 '') as_dir=./ ;; 25470 */) ;; 25471 *) as_dir=$as_dir/ ;; 25472 esac 25473 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 25474 done 25475IFS=$as_save_IFS 25476 25477 ;; 25478esac 25479# We did not find ourselves, most probably we were run as `sh COMMAND' 25480# in which case we are not to be found in the path. 25481if test "x$as_myself" = x; then 25482 as_myself=$0 25483fi 25484if test ! -f "$as_myself"; then 25485 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 25486 exit 1 25487fi 25488 25489 25490 25491# as_fn_error STATUS ERROR [LINENO LOG_FD] 25492# ---------------------------------------- 25493# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 25494# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 25495# script with STATUS, using 1 if that was 0. 25496as_fn_error () 25497{ 25498 as_status=$1; test $as_status -eq 0 && as_status=1 25499 if test "$4"; then 25500 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 25501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 25502 fi 25503 printf "%s\n" "$as_me: error: $2" >&2 25504 as_fn_exit $as_status 25505} # as_fn_error 25506 25507 25508 25509# as_fn_set_status STATUS 25510# ----------------------- 25511# Set $? to STATUS, without forking. 25512as_fn_set_status () 25513{ 25514 return $1 25515} # as_fn_set_status 25516 25517# as_fn_exit STATUS 25518# ----------------- 25519# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 25520as_fn_exit () 25521{ 25522 set +e 25523 as_fn_set_status $1 25524 exit $1 25525} # as_fn_exit 25526 25527# as_fn_unset VAR 25528# --------------- 25529# Portably unset VAR. 25530as_fn_unset () 25531{ 25532 { eval $1=; unset $1;} 25533} 25534as_unset=as_fn_unset 25535 25536# as_fn_append VAR VALUE 25537# ---------------------- 25538# Append the text in VALUE to the end of the definition contained in VAR. Take 25539# advantage of any shell optimizations that allow amortized linear growth over 25540# repeated appends, instead of the typical quadratic growth present in naive 25541# implementations. 25542if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 25543then : 25544 eval 'as_fn_append () 25545 { 25546 eval $1+=\$2 25547 }' 25548else $as_nop 25549 as_fn_append () 25550 { 25551 eval $1=\$$1\$2 25552 } 25553fi # as_fn_append 25554 25555# as_fn_arith ARG... 25556# ------------------ 25557# Perform arithmetic evaluation on the ARGs, and store the result in the 25558# global $as_val. Take advantage of shells that can avoid forks. The arguments 25559# must be portable across $(()) and expr. 25560if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 25561then : 25562 eval 'as_fn_arith () 25563 { 25564 as_val=$(( $* )) 25565 }' 25566else $as_nop 25567 as_fn_arith () 25568 { 25569 as_val=`expr "$@" || test $? -eq 1` 25570 } 25571fi # as_fn_arith 25572 25573 25574if expr a : '\(a\)' >/dev/null 2>&1 && 25575 test "X`expr 00001 : '.*\(...\)'`" = X001; then 25576 as_expr=expr 25577else 25578 as_expr=false 25579fi 25580 25581if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 25582 as_basename=basename 25583else 25584 as_basename=false 25585fi 25586 25587if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 25588 as_dirname=dirname 25589else 25590 as_dirname=false 25591fi 25592 25593as_me=`$as_basename -- "$0" || 25594$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 25595 X"$0" : 'X\(//\)$' \| \ 25596 X"$0" : 'X\(/\)' \| . 2>/dev/null || 25597printf "%s\n" X/"$0" | 25598 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25599 s//\1/ 25600 q 25601 } 25602 /^X\/\(\/\/\)$/{ 25603 s//\1/ 25604 q 25605 } 25606 /^X\/\(\/\).*/{ 25607 s//\1/ 25608 q 25609 } 25610 s/.*/./; q'` 25611 25612# Avoid depending upon Character Ranges. 25613as_cr_letters='abcdefghijklmnopqrstuvwxyz' 25614as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 25615as_cr_Letters=$as_cr_letters$as_cr_LETTERS 25616as_cr_digits='0123456789' 25617as_cr_alnum=$as_cr_Letters$as_cr_digits 25618 25619 25620# Determine whether it's possible to make 'echo' print without a newline. 25621# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 25622# for compatibility with existing Makefiles. 25623ECHO_C= ECHO_N= ECHO_T= 25624case `echo -n x` in #((((( 25625-n*) 25626 case `echo 'xy\c'` in 25627 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 25628 xy) ECHO_C='\c';; 25629 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 25630 ECHO_T=' ';; 25631 esac;; 25632*) 25633 ECHO_N='-n';; 25634esac 25635 25636# For backward compatibility with old third-party macros, we provide 25637# the shell variables $as_echo and $as_echo_n. New code should use 25638# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 25639as_echo='printf %s\n' 25640as_echo_n='printf %s' 25641 25642rm -f conf$$ conf$$.exe conf$$.file 25643if test -d conf$$.dir; then 25644 rm -f conf$$.dir/conf$$.file 25645else 25646 rm -f conf$$.dir 25647 mkdir conf$$.dir 2>/dev/null 25648fi 25649if (echo >conf$$.file) 2>/dev/null; then 25650 if ln -s conf$$.file conf$$ 2>/dev/null; then 25651 as_ln_s='ln -s' 25652 # ... but there are two gotchas: 25653 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 25654 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 25655 # In both cases, we have to default to `cp -pR'. 25656 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 25657 as_ln_s='cp -pR' 25658 elif ln conf$$.file conf$$ 2>/dev/null; then 25659 as_ln_s=ln 25660 else 25661 as_ln_s='cp -pR' 25662 fi 25663else 25664 as_ln_s='cp -pR' 25665fi 25666rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 25667rmdir conf$$.dir 2>/dev/null 25668 25669 25670# as_fn_mkdir_p 25671# ------------- 25672# Create "$as_dir" as a directory, including parents if necessary. 25673as_fn_mkdir_p () 25674{ 25675 25676 case $as_dir in #( 25677 -*) as_dir=./$as_dir;; 25678 esac 25679 test -d "$as_dir" || eval $as_mkdir_p || { 25680 as_dirs= 25681 while :; do 25682 case $as_dir in #( 25683 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25684 *) as_qdir=$as_dir;; 25685 esac 25686 as_dirs="'$as_qdir' $as_dirs" 25687 as_dir=`$as_dirname -- "$as_dir" || 25688$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25689 X"$as_dir" : 'X\(//\)[^/]' \| \ 25690 X"$as_dir" : 'X\(//\)$' \| \ 25691 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25692printf "%s\n" X"$as_dir" | 25693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25694 s//\1/ 25695 q 25696 } 25697 /^X\(\/\/\)[^/].*/{ 25698 s//\1/ 25699 q 25700 } 25701 /^X\(\/\/\)$/{ 25702 s//\1/ 25703 q 25704 } 25705 /^X\(\/\).*/{ 25706 s//\1/ 25707 q 25708 } 25709 s/.*/./; q'` 25710 test -d "$as_dir" && break 25711 done 25712 test -z "$as_dirs" || eval "mkdir $as_dirs" 25713 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 25714 25715 25716} # as_fn_mkdir_p 25717if mkdir -p . 2>/dev/null; then 25718 as_mkdir_p='mkdir -p "$as_dir"' 25719else 25720 test -d ./-p && rmdir ./-p 25721 as_mkdir_p=false 25722fi 25723 25724 25725# as_fn_executable_p FILE 25726# ----------------------- 25727# Test if FILE is an executable regular file. 25728as_fn_executable_p () 25729{ 25730 test -f "$1" && test -x "$1" 25731} # as_fn_executable_p 25732as_test_x='test -x' 25733as_executable_p=as_fn_executable_p 25734 25735# Sed expression to map a string onto a valid CPP name. 25736as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 25737 25738# Sed expression to map a string onto a valid variable name. 25739as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 25740 25741 25742exec 6>&1 25743## ----------------------------------- ## 25744## Main body of $CONFIG_STATUS script. ## 25745## ----------------------------------- ## 25746_ASEOF 25747test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 25748 25749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25750# Save the log message, to keep $0 and so on meaningful, and to 25751# report actual input values of CONFIG_FILES etc. instead of their 25752# values after options handling. 25753ac_log=" 25754This file was extended by isl $as_me 0.26, which was 25755generated by GNU Autoconf 2.71. Invocation command line was 25756 25757 CONFIG_FILES = $CONFIG_FILES 25758 CONFIG_HEADERS = $CONFIG_HEADERS 25759 CONFIG_LINKS = $CONFIG_LINKS 25760 CONFIG_COMMANDS = $CONFIG_COMMANDS 25761 $ $0 $@ 25762 25763on `(hostname || uname -n) 2>/dev/null | sed 1q` 25764" 25765 25766_ACEOF 25767 25768case $ac_config_files in *" 25769"*) set x $ac_config_files; shift; ac_config_files=$*;; 25770esac 25771 25772case $ac_config_headers in *" 25773"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 25774esac 25775 25776 25777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25778# Files that config.status was made for. 25779config_files="$ac_config_files" 25780config_headers="$ac_config_headers" 25781config_commands="$ac_config_commands" 25782 25783_ACEOF 25784 25785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25786ac_cs_usage="\ 25787\`$as_me' instantiates files and other configuration actions 25788from templates according to the current configuration. Unless the files 25789and actions are specified as TAGs, all are instantiated by default. 25790 25791Usage: $0 [OPTION]... [TAG]... 25792 25793 -h, --help print this help, then exit 25794 -V, --version print version number and configuration settings, then exit 25795 --config print configuration, then exit 25796 -q, --quiet, --silent 25797 do not print progress messages 25798 -d, --debug don't remove temporary files 25799 --recheck update $as_me by reconfiguring in the same conditions 25800 --file=FILE[:TEMPLATE] 25801 instantiate the configuration file FILE 25802 --header=FILE[:TEMPLATE] 25803 instantiate the configuration header FILE 25804 25805Configuration files: 25806$config_files 25807 25808Configuration headers: 25809$config_headers 25810 25811Configuration commands: 25812$config_commands 25813 25814Report bugs to <isl-development@googlegroups.com>." 25815 25816_ACEOF 25817ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 25818ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 25819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25820ac_cs_config='$ac_cs_config_escaped' 25821ac_cs_version="\\ 25822isl config.status 0.26 25823configured by $0, generated by GNU Autoconf 2.71, 25824 with options \\"\$ac_cs_config\\" 25825 25826Copyright (C) 2021 Free Software Foundation, Inc. 25827This config.status script is free software; the Free Software Foundation 25828gives unlimited permission to copy, distribute and modify it." 25829 25830ac_pwd='$ac_pwd' 25831srcdir='$srcdir' 25832INSTALL='$INSTALL' 25833MKDIR_P='$MKDIR_P' 25834AWK='$AWK' 25835test -n "\$AWK" || AWK=awk 25836_ACEOF 25837 25838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25839# The default lists apply if the user does not specify any file. 25840ac_need_defaults=: 25841while test $# != 0 25842do 25843 case $1 in 25844 --*=?*) 25845 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25846 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 25847 ac_shift=: 25848 ;; 25849 --*=) 25850 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25851 ac_optarg= 25852 ac_shift=: 25853 ;; 25854 *) 25855 ac_option=$1 25856 ac_optarg=$2 25857 ac_shift=shift 25858 ;; 25859 esac 25860 25861 case $ac_option in 25862 # Handling of the options. 25863 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25864 ac_cs_recheck=: ;; 25865 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 25866 printf "%s\n" "$ac_cs_version"; exit ;; 25867 --config | --confi | --conf | --con | --co | --c ) 25868 printf "%s\n" "$ac_cs_config"; exit ;; 25869 --debug | --debu | --deb | --de | --d | -d ) 25870 debug=: ;; 25871 --file | --fil | --fi | --f ) 25872 $ac_shift 25873 case $ac_optarg in 25874 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25875 '') as_fn_error $? "missing file argument" ;; 25876 esac 25877 as_fn_append CONFIG_FILES " '$ac_optarg'" 25878 ac_need_defaults=false;; 25879 --header | --heade | --head | --hea ) 25880 $ac_shift 25881 case $ac_optarg in 25882 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25883 esac 25884 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 25885 ac_need_defaults=false;; 25886 --he | --h) 25887 # Conflict between --help and --header 25888 as_fn_error $? "ambiguous option: \`$1' 25889Try \`$0 --help' for more information.";; 25890 --help | --hel | -h ) 25891 printf "%s\n" "$ac_cs_usage"; exit ;; 25892 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25893 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25894 ac_cs_silent=: ;; 25895 25896 # This is an error. 25897 -*) as_fn_error $? "unrecognized option: \`$1' 25898Try \`$0 --help' for more information." ;; 25899 25900 *) as_fn_append ac_config_targets " $1" 25901 ac_need_defaults=false ;; 25902 25903 esac 25904 shift 25905done 25906 25907ac_configure_extra_args= 25908 25909if $ac_cs_silent; then 25910 exec 6>/dev/null 25911 ac_configure_extra_args="$ac_configure_extra_args --silent" 25912fi 25913 25914_ACEOF 25915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25916if \$ac_cs_recheck; then 25917 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25918 shift 25919 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 25920 CONFIG_SHELL='$SHELL' 25921 export CONFIG_SHELL 25922 exec "\$@" 25923fi 25924 25925_ACEOF 25926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25927exec 5>>config.log 25928{ 25929 echo 25930 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25931## Running $as_me. ## 25932_ASBOX 25933 printf "%s\n" "$ac_log" 25934} >&5 25935 25936_ACEOF 25937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25938# 25939# INIT-COMMANDS 25940# 25941AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 25942 25943 25944# The HP-UX ksh and POSIX shell print the target directory to stdout 25945# if CDPATH is set. 25946(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25947 25948sed_quote_subst='$sed_quote_subst' 25949double_quote_subst='$double_quote_subst' 25950delay_variable_subst='$delay_variable_subst' 25951macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 25952macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 25953enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 25954enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 25955pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 25956enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 25957shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 25958SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 25959ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 25960PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 25961host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 25962host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 25963host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 25964build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 25965build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 25966build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 25967SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 25968Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 25969GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 25970EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 25971FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 25972LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 25973NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 25974LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 25975max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 25976ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 25977exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 25978lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 25979lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 25980lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 25981lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 25982lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 25983reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 25984reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 25985OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 25986deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 25987file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 25988file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 25989want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 25990DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 25991sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 25992AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 25993AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 25994archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 25995STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 25996RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 25997old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25998old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25999old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 26000lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 26001CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 26002CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 26003compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 26004GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 26005lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 26006lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 26007lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 26008lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 26009lt_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"`' 26010lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 26011nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 26012lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 26013lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 26014objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 26015MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 26016lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 26017lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 26018lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 26019lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 26020lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 26021need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 26022MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 26023DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 26024NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 26025LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 26026OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 26027OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 26028libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 26029shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 26030extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 26031archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 26032enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 26033export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 26034whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 26035compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 26036old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 26037old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 26038archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 26039archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 26040module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 26041module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 26042with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 26043allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 26044no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 26045hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 26046hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 26047hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 26048hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 26049hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 26050hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 26051hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 26052inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 26053link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 26054always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 26055export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 26056exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 26057include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 26058prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 26059postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 26060file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 26061variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 26062need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 26063need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 26064version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 26065runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 26066shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 26067shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 26068libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 26069library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 26070soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 26071install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 26072postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 26073postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 26074finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 26075finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 26076hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 26077sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 26078configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 26079configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 26080hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 26081enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 26082enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 26083enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 26084old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 26085striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 26086compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 26087predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 26088postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 26089predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 26090postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 26091compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 26092LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 26093reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 26094reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26095old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26096compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 26097GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 26098lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 26099lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 26100lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 26101lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 26102lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 26103archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 26104enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 26105export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 26106whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 26107compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 26108old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26109old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26110archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26111archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26112module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26113module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26114with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 26115allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 26116no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 26117hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 26118hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 26119hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 26120hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 26121hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 26122hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 26123hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 26124inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 26125link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 26126always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 26127export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26128exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 26129include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 26130prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26131postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26132file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 26133hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 26134compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 26135predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 26136postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 26137predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 26138postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 26139compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 26140 26141LTCC='$LTCC' 26142LTCFLAGS='$LTCFLAGS' 26143compiler='$compiler_DEFAULT' 26144 26145# A function that is used when there is no print builtin or printf. 26146func_fallback_echo () 26147{ 26148 eval 'cat <<_LTECHO_EOF 26149\$1 26150_LTECHO_EOF' 26151} 26152 26153# Quote evaled strings. 26154for var in SHELL \ 26155ECHO \ 26156PATH_SEPARATOR \ 26157SED \ 26158GREP \ 26159EGREP \ 26160FGREP \ 26161LD \ 26162NM \ 26163LN_S \ 26164lt_SP2NL \ 26165lt_NL2SP \ 26166reload_flag \ 26167OBJDUMP \ 26168deplibs_check_method \ 26169file_magic_cmd \ 26170file_magic_glob \ 26171want_nocaseglob \ 26172DLLTOOL \ 26173sharedlib_from_linklib_cmd \ 26174AR \ 26175AR_FLAGS \ 26176archiver_list_spec \ 26177STRIP \ 26178RANLIB \ 26179CC \ 26180CFLAGS \ 26181compiler \ 26182lt_cv_sys_global_symbol_pipe \ 26183lt_cv_sys_global_symbol_to_cdecl \ 26184lt_cv_sys_global_symbol_to_import \ 26185lt_cv_sys_global_symbol_to_c_name_address \ 26186lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 26187lt_cv_nm_interface \ 26188nm_file_list_spec \ 26189lt_cv_truncate_bin \ 26190lt_prog_compiler_no_builtin_flag \ 26191lt_prog_compiler_pic \ 26192lt_prog_compiler_wl \ 26193lt_prog_compiler_static \ 26194lt_cv_prog_compiler_c_o \ 26195need_locks \ 26196MANIFEST_TOOL \ 26197DSYMUTIL \ 26198NMEDIT \ 26199LIPO \ 26200OTOOL \ 26201OTOOL64 \ 26202shrext_cmds \ 26203export_dynamic_flag_spec \ 26204whole_archive_flag_spec \ 26205compiler_needs_object \ 26206with_gnu_ld \ 26207allow_undefined_flag \ 26208no_undefined_flag \ 26209hardcode_libdir_flag_spec \ 26210hardcode_libdir_separator \ 26211exclude_expsyms \ 26212include_expsyms \ 26213file_list_spec \ 26214variables_saved_for_relink \ 26215libname_spec \ 26216library_names_spec \ 26217soname_spec \ 26218install_override_mode \ 26219finish_eval \ 26220old_striplib \ 26221striplib \ 26222compiler_lib_search_dirs \ 26223predep_objects \ 26224postdep_objects \ 26225predeps \ 26226postdeps \ 26227compiler_lib_search_path \ 26228LD_CXX \ 26229reload_flag_CXX \ 26230compiler_CXX \ 26231lt_prog_compiler_no_builtin_flag_CXX \ 26232lt_prog_compiler_pic_CXX \ 26233lt_prog_compiler_wl_CXX \ 26234lt_prog_compiler_static_CXX \ 26235lt_cv_prog_compiler_c_o_CXX \ 26236export_dynamic_flag_spec_CXX \ 26237whole_archive_flag_spec_CXX \ 26238compiler_needs_object_CXX \ 26239with_gnu_ld_CXX \ 26240allow_undefined_flag_CXX \ 26241no_undefined_flag_CXX \ 26242hardcode_libdir_flag_spec_CXX \ 26243hardcode_libdir_separator_CXX \ 26244exclude_expsyms_CXX \ 26245include_expsyms_CXX \ 26246file_list_spec_CXX \ 26247compiler_lib_search_dirs_CXX \ 26248predep_objects_CXX \ 26249postdep_objects_CXX \ 26250predeps_CXX \ 26251postdeps_CXX \ 26252compiler_lib_search_path_CXX; do 26253 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26254 *[\\\\\\\`\\"\\\$]*) 26255 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 26256 ;; 26257 *) 26258 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26259 ;; 26260 esac 26261done 26262 26263# Double-quote double-evaled strings. 26264for var in reload_cmds \ 26265old_postinstall_cmds \ 26266old_postuninstall_cmds \ 26267old_archive_cmds \ 26268extract_expsyms_cmds \ 26269old_archive_from_new_cmds \ 26270old_archive_from_expsyms_cmds \ 26271archive_cmds \ 26272archive_expsym_cmds \ 26273module_cmds \ 26274module_expsym_cmds \ 26275export_symbols_cmds \ 26276prelink_cmds \ 26277postlink_cmds \ 26278postinstall_cmds \ 26279postuninstall_cmds \ 26280finish_cmds \ 26281sys_lib_search_path_spec \ 26282configure_time_dlsearch_path \ 26283configure_time_lt_sys_library_path \ 26284reload_cmds_CXX \ 26285old_archive_cmds_CXX \ 26286old_archive_from_new_cmds_CXX \ 26287old_archive_from_expsyms_cmds_CXX \ 26288archive_cmds_CXX \ 26289archive_expsym_cmds_CXX \ 26290module_cmds_CXX \ 26291module_expsym_cmds_CXX \ 26292export_symbols_cmds_CXX \ 26293prelink_cmds_CXX \ 26294postlink_cmds_CXX; do 26295 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26296 *[\\\\\\\`\\"\\\$]*) 26297 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 26298 ;; 26299 *) 26300 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26301 ;; 26302 esac 26303done 26304 26305ac_aux_dir='$ac_aux_dir' 26306 26307# See if we are running on zsh, and set the options that allow our 26308# commands through without removal of \ escapes INIT. 26309if test -n "\${ZSH_VERSION+set}"; then 26310 setopt NO_GLOB_SUBST 26311fi 26312 26313 26314 PACKAGE='$PACKAGE' 26315 VERSION='$VERSION' 26316 RM='$RM' 26317 ofile='$ofile' 26318 26319 26320 26321 26322 26323# variables for create stdint.h replacement 26324PACKAGE="$PACKAGE" 26325VERSION="$VERSION" 26326ac_stdint_h="$ac_stdint_h" 26327_ac_stdint_h=`printf "%s\n" "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp` 26328ac_cv_stdint_message="$ac_cv_stdint_message" 26329ac_cv_header_stdint_t="$ac_cv_header_stdint_t" 26330ac_cv_header_stdint_x="$ac_cv_header_stdint_x" 26331ac_cv_header_stdint_o="$ac_cv_header_stdint_o" 26332ac_cv_header_stdint_u="$ac_cv_header_stdint_u" 26333ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 26334ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 26335ac_cv_char_data_model="$ac_cv_char_data_model" 26336ac_cv_long_data_model="$ac_cv_long_data_model" 26337ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 26338ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 26339ac_cv_type_intmax_t="$ac_cv_type_intmax_t" 26340 26341 26342ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate" 26343pkgconfig_prefix='$prefix' 26344pkgconfig_execprefix='$exec_prefix' 26345pkgconfig_bindir='$bindir' 26346pkgconfig_libdir='$libdir' 26347pkgconfig_includedir='$includedir' 26348pkgconfig_datarootdir='$datarootdir' 26349pkgconfig_datadir='$datadir' 26350pkgconfig_sysconfdir='$sysconfdir' 26351pkgconfig_suffix='$ax_create_pkgconfig_suffix' 26352pkgconfig_package='$PACKAGE_NAME' 26353pkgconfig_libname='$ax_create_pkgconfig_libname' 26354pkgconfig_description='$ax_create_pkgconfig_description' 26355pkgconfig_version='$ax_create_pkgconfig_version' 26356pkgconfig_requires='$ax_create_pkgconfig_requires' 26357pkgconfig_libs='$ax_create_pkgconfig_libs' 26358pkgconfig_ldflags='$ax_create_pkgconfig_ldflags' 26359pkgconfig_cppflags='$ax_create_pkgconfig_cppflags' 26360pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir' 26361pkgconfig_src_headers='$ax_create_pkgconfig_src_headers' 26362 26363 26364_ACEOF 26365 26366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26367 26368# Handling of arguments. 26369for ac_config_target in $ac_config_targets 26370do 26371 case $ac_config_target in 26372 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 26373 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 26374 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;; 26375 "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;; 26376 "isl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS isl_config.h" ;; 26377 "isl_srcdir.c") CONFIG_FILES="$CONFIG_FILES isl_srcdir.c" ;; 26378 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 26379 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 26380 "bound_test.sh") CONFIG_FILES="$CONFIG_FILES bound_test.sh" ;; 26381 "codegen_test.sh") CONFIG_FILES="$CONFIG_FILES codegen_test.sh" ;; 26382 "pip_test.sh") CONFIG_FILES="$CONFIG_FILES pip_test.sh" ;; 26383 "flow_test.sh") CONFIG_FILES="$CONFIG_FILES flow_test.sh" ;; 26384 "schedule_test.sh") CONFIG_FILES="$CONFIG_FILES schedule_test.sh" ;; 26385 26386 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 26387 esac 26388done 26389 26390 26391# If the user did not use the arguments to specify the items to instantiate, 26392# then the envvar interface is used. Set only those that are not. 26393# We use the long form for the default assignment because of an extremely 26394# bizarre bug on SunOS 4.1.3. 26395if $ac_need_defaults; then 26396 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 26397 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 26398 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 26399fi 26400 26401# Have a temporary directory for convenience. Make it in the build tree 26402# simply because there is no reason against having it here, and in addition, 26403# creating and moving files from /tmp can sometimes cause problems. 26404# Hook for its removal unless debugging. 26405# Note that there is a small window in which the directory will not be cleaned: 26406# after its creation but before its name has been assigned to `$tmp'. 26407$debug || 26408{ 26409 tmp= ac_tmp= 26410 trap 'exit_status=$? 26411 : "${ac_tmp:=$tmp}" 26412 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 26413' 0 26414 trap 'as_fn_exit 1' 1 2 13 15 26415} 26416# Create a (secure) tmp directory for tmp files. 26417 26418{ 26419 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 26420 test -d "$tmp" 26421} || 26422{ 26423 tmp=./conf$$-$RANDOM 26424 (umask 077 && mkdir "$tmp") 26425} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 26426ac_tmp=$tmp 26427 26428# Set up the scripts for CONFIG_FILES section. 26429# No need to generate them if there are no CONFIG_FILES. 26430# This happens for instance with `./config.status config.h'. 26431if test -n "$CONFIG_FILES"; then 26432 26433 26434ac_cr=`echo X | tr X '\015'` 26435# On cygwin, bash can eat \r inside `` if the user requested igncr. 26436# But we know of no other shell where ac_cr would be empty at this 26437# point, so we can use a bashism as a fallback. 26438if test "x$ac_cr" = x; then 26439 eval ac_cr=\$\'\\r\' 26440fi 26441ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 26442if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 26443 ac_cs_awk_cr='\\r' 26444else 26445 ac_cs_awk_cr=$ac_cr 26446fi 26447 26448echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 26449_ACEOF 26450 26451 26452{ 26453 echo "cat >conf$$subs.awk <<_ACEOF" && 26454 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 26455 echo "_ACEOF" 26456} >conf$$subs.sh || 26457 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26458ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 26459ac_delim='%!_!# ' 26460for ac_last_try in false false false false false :; do 26461 . ./conf$$subs.sh || 26462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26463 26464 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 26465 if test $ac_delim_n = $ac_delim_num; then 26466 break 26467 elif $ac_last_try; then 26468 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26469 else 26470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26471 fi 26472done 26473rm -f conf$$subs.sh 26474 26475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26476cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 26477_ACEOF 26478sed -n ' 26479h 26480s/^/S["/; s/!.*/"]=/ 26481p 26482g 26483s/^[^!]*!// 26484:repl 26485t repl 26486s/'"$ac_delim"'$// 26487t delim 26488:nl 26489h 26490s/\(.\{148\}\)..*/\1/ 26491t more1 26492s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 26493p 26494n 26495b repl 26496:more1 26497s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26498p 26499g 26500s/.\{148\}// 26501t nl 26502:delim 26503h 26504s/\(.\{148\}\)..*/\1/ 26505t more2 26506s/["\\]/\\&/g; s/^/"/; s/$/"/ 26507p 26508b 26509:more2 26510s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26511p 26512g 26513s/.\{148\}// 26514t delim 26515' <conf$$subs.awk | sed ' 26516/^[^""]/{ 26517 N 26518 s/\n// 26519} 26520' >>$CONFIG_STATUS || ac_write_fail=1 26521rm -f conf$$subs.awk 26522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26523_ACAWK 26524cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 26525 for (key in S) S_is_set[key] = 1 26526 FS = "" 26527 26528} 26529{ 26530 line = $ 0 26531 nfields = split(line, field, "@") 26532 substed = 0 26533 len = length(field[1]) 26534 for (i = 2; i < nfields; i++) { 26535 key = field[i] 26536 keylen = length(key) 26537 if (S_is_set[key]) { 26538 value = S[key] 26539 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 26540 len += length(value) + length(field[++i]) 26541 substed = 1 26542 } else 26543 len += 1 + keylen 26544 } 26545 26546 print line 26547} 26548 26549_ACAWK 26550_ACEOF 26551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26552if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 26553 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 26554else 26555 cat 26556fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 26557 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 26558_ACEOF 26559 26560# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 26561# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 26562# trailing colons and then remove the whole line if VPATH becomes empty 26563# (actually we leave an empty line to preserve line numbers). 26564if test "x$srcdir" = x.; then 26565 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 26566h 26567s/// 26568s/^/:/ 26569s/[ ]*$/:/ 26570s/:\$(srcdir):/:/g 26571s/:\${srcdir}:/:/g 26572s/:@srcdir@:/:/g 26573s/^:*// 26574s/:*$// 26575x 26576s/\(=[ ]*\).*/\1/ 26577G 26578s/\n// 26579s/^[^=]*=[ ]*$// 26580}' 26581fi 26582 26583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26584fi # test -n "$CONFIG_FILES" 26585 26586# Set up the scripts for CONFIG_HEADERS section. 26587# No need to generate them if there are no CONFIG_HEADERS. 26588# This happens for instance with `./config.status Makefile'. 26589if test -n "$CONFIG_HEADERS"; then 26590cat >"$ac_tmp/defines.awk" <<\_ACAWK || 26591BEGIN { 26592_ACEOF 26593 26594# Transform confdefs.h into an awk script `defines.awk', embedded as 26595# here-document in config.status, that substitutes the proper values into 26596# config.h.in to produce config.h. 26597 26598# Create a delimiter string that does not exist in confdefs.h, to ease 26599# handling of long lines. 26600ac_delim='%!_!# ' 26601for ac_last_try in false false :; do 26602 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 26603 if test -z "$ac_tt"; then 26604 break 26605 elif $ac_last_try; then 26606 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 26607 else 26608 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26609 fi 26610done 26611 26612# For the awk script, D is an array of macro values keyed by name, 26613# likewise P contains macro parameters if any. Preserve backslash 26614# newline sequences. 26615 26616ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 26617sed -n ' 26618s/.\{148\}/&'"$ac_delim"'/g 26619t rset 26620:rset 26621s/^[ ]*#[ ]*define[ ][ ]*/ / 26622t def 26623d 26624:def 26625s/\\$// 26626t bsnl 26627s/["\\]/\\&/g 26628s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26629D["\1"]=" \3"/p 26630s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 26631d 26632:bsnl 26633s/["\\]/\\&/g 26634s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26635D["\1"]=" \3\\\\\\n"\\/p 26636t cont 26637s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 26638t cont 26639d 26640:cont 26641n 26642s/.\{148\}/&'"$ac_delim"'/g 26643t clear 26644:clear 26645s/\\$// 26646t bsnlc 26647s/["\\]/\\&/g; s/^/"/; s/$/"/p 26648d 26649:bsnlc 26650s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 26651b cont 26652' <confdefs.h | sed ' 26653s/'"$ac_delim"'/"\\\ 26654"/g' >>$CONFIG_STATUS || ac_write_fail=1 26655 26656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26657 for (key in D) D_is_set[key] = 1 26658 FS = "" 26659} 26660/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 26661 line = \$ 0 26662 split(line, arg, " ") 26663 if (arg[1] == "#") { 26664 defundef = arg[2] 26665 mac1 = arg[3] 26666 } else { 26667 defundef = substr(arg[1], 2) 26668 mac1 = arg[2] 26669 } 26670 split(mac1, mac2, "(") #) 26671 macro = mac2[1] 26672 prefix = substr(line, 1, index(line, defundef) - 1) 26673 if (D_is_set[macro]) { 26674 # Preserve the white space surrounding the "#". 26675 print prefix "define", macro P[macro] D[macro] 26676 next 26677 } else { 26678 # Replace #undef with comments. This is necessary, for example, 26679 # in the case of _POSIX_SOURCE, which is predefined and required 26680 # on some systems where configure will not decide to define it. 26681 if (defundef == "undef") { 26682 print "/*", prefix defundef, macro, "*/" 26683 next 26684 } 26685 } 26686} 26687{ print } 26688_ACAWK 26689_ACEOF 26690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26691 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 26692fi # test -n "$CONFIG_HEADERS" 26693 26694 26695eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26696shift 26697for ac_tag 26698do 26699 case $ac_tag in 26700 :[FHLC]) ac_mode=$ac_tag; continue;; 26701 esac 26702 case $ac_mode$ac_tag in 26703 :[FHL]*:*);; 26704 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 26705 :[FH]-) ac_tag=-:-;; 26706 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 26707 esac 26708 ac_save_IFS=$IFS 26709 IFS=: 26710 set x $ac_tag 26711 IFS=$ac_save_IFS 26712 shift 26713 ac_file=$1 26714 shift 26715 26716 case $ac_mode in 26717 :L) ac_source=$1;; 26718 :[FH]) 26719 ac_file_inputs= 26720 for ac_f 26721 do 26722 case $ac_f in 26723 -) ac_f="$ac_tmp/stdin";; 26724 *) # Look for the file first in the build tree, then in the source tree 26725 # (if the path is not absolute). The absolute path cannot be DOS-style, 26726 # because $ac_f cannot contain `:'. 26727 test -f "$ac_f" || 26728 case $ac_f in 26729 [\\/$]*) false;; 26730 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 26731 esac || 26732 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 26733 esac 26734 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 26735 as_fn_append ac_file_inputs " '$ac_f'" 26736 done 26737 26738 # Let's still pretend it is `configure' which instantiates (i.e., don't 26739 # use $as_me), people would be surprised to read: 26740 # /* config.h. Generated by config.status. */ 26741 configure_input='Generated from '` 26742 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 26743 `' by configure.' 26744 if test x"$ac_file" != x-; then 26745 configure_input="$ac_file. $configure_input" 26746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 26747printf "%s\n" "$as_me: creating $ac_file" >&6;} 26748 fi 26749 # Neutralize special characters interpreted by sed in replacement strings. 26750 case $configure_input in #( 26751 *\&* | *\|* | *\\* ) 26752 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 26753 sed 's/[\\\\&|]/\\\\&/g'`;; #( 26754 *) ac_sed_conf_input=$configure_input;; 26755 esac 26756 26757 case $ac_tag in 26758 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 26759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 26760 esac 26761 ;; 26762 esac 26763 26764 ac_dir=`$as_dirname -- "$ac_file" || 26765$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26766 X"$ac_file" : 'X\(//\)[^/]' \| \ 26767 X"$ac_file" : 'X\(//\)$' \| \ 26768 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 26769printf "%s\n" X"$ac_file" | 26770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26771 s//\1/ 26772 q 26773 } 26774 /^X\(\/\/\)[^/].*/{ 26775 s//\1/ 26776 q 26777 } 26778 /^X\(\/\/\)$/{ 26779 s//\1/ 26780 q 26781 } 26782 /^X\(\/\).*/{ 26783 s//\1/ 26784 q 26785 } 26786 s/.*/./; q'` 26787 as_dir="$ac_dir"; as_fn_mkdir_p 26788 ac_builddir=. 26789 26790case "$ac_dir" in 26791.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 26792*) 26793 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 26794 # A ".." for each directory in $ac_dir_suffix. 26795 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 26796 case $ac_top_builddir_sub in 26797 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 26798 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 26799 esac ;; 26800esac 26801ac_abs_top_builddir=$ac_pwd 26802ac_abs_builddir=$ac_pwd$ac_dir_suffix 26803# for backward compatibility: 26804ac_top_builddir=$ac_top_build_prefix 26805 26806case $srcdir in 26807 .) # We are building in place. 26808 ac_srcdir=. 26809 ac_top_srcdir=$ac_top_builddir_sub 26810 ac_abs_top_srcdir=$ac_pwd ;; 26811 [\\/]* | ?:[\\/]* ) # Absolute name. 26812 ac_srcdir=$srcdir$ac_dir_suffix; 26813 ac_top_srcdir=$srcdir 26814 ac_abs_top_srcdir=$srcdir ;; 26815 *) # Relative name. 26816 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26817 ac_top_srcdir=$ac_top_build_prefix$srcdir 26818 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26819esac 26820ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26821 26822 26823 case $ac_mode in 26824 :F) 26825 # 26826 # CONFIG_FILE 26827 # 26828 26829 case $INSTALL in 26830 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26831 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 26832 esac 26833 ac_MKDIR_P=$MKDIR_P 26834 case $MKDIR_P in 26835 [\\/$]* | ?:[\\/]* ) ;; 26836 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 26837 esac 26838_ACEOF 26839 26840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26841# If the template does not know about datarootdir, expand it. 26842# FIXME: This hack should be removed a few years after 2.60. 26843ac_datarootdir_hack=; ac_datarootdir_seen= 26844ac_sed_dataroot=' 26845/datarootdir/ { 26846 p 26847 q 26848} 26849/@datadir@/p 26850/@docdir@/p 26851/@infodir@/p 26852/@localedir@/p 26853/@mandir@/p' 26854case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 26855*datarootdir*) ac_datarootdir_seen=yes;; 26856*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 26857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 26858printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 26859_ACEOF 26860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26861 ac_datarootdir_hack=' 26862 s&@datadir@&$datadir&g 26863 s&@docdir@&$docdir&g 26864 s&@infodir@&$infodir&g 26865 s&@localedir@&$localedir&g 26866 s&@mandir@&$mandir&g 26867 s&\\\${datarootdir}&$datarootdir&g' ;; 26868esac 26869_ACEOF 26870 26871# Neutralize VPATH when `$srcdir' = `.'. 26872# Shell code in configure.ac might set extrasub. 26873# FIXME: do we really want to maintain this feature? 26874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26875ac_sed_extra="$ac_vpsub 26876$extrasub 26877_ACEOF 26878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26879:t 26880/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26881s|@configure_input@|$ac_sed_conf_input|;t t 26882s&@top_builddir@&$ac_top_builddir_sub&;t t 26883s&@top_build_prefix@&$ac_top_build_prefix&;t t 26884s&@srcdir@&$ac_srcdir&;t t 26885s&@abs_srcdir@&$ac_abs_srcdir&;t t 26886s&@top_srcdir@&$ac_top_srcdir&;t t 26887s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 26888s&@builddir@&$ac_builddir&;t t 26889s&@abs_builddir@&$ac_abs_builddir&;t t 26890s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 26891s&@INSTALL@&$ac_INSTALL&;t t 26892s&@MKDIR_P@&$ac_MKDIR_P&;t t 26893$ac_datarootdir_hack 26894" 26895eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 26896 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26897 26898test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 26899 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 26900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 26901 "$ac_tmp/out"`; test -z "$ac_out"; } && 26902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26903which seems to be undefined. Please make sure it is defined" >&5 26904printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26905which seems to be undefined. Please make sure it is defined" >&2;} 26906 26907 rm -f "$ac_tmp/stdin" 26908 case $ac_file in 26909 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 26910 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 26911 esac \ 26912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26913 ;; 26914 :H) 26915 # 26916 # CONFIG_HEADER 26917 # 26918 if test x"$ac_file" != x-; then 26919 { 26920 printf "%s\n" "/* $configure_input */" >&1 \ 26921 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 26922 } >"$ac_tmp/config.h" \ 26923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26924 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 26925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 26926printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 26927 else 26928 rm -f "$ac_file" 26929 mv "$ac_tmp/config.h" "$ac_file" \ 26930 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26931 fi 26932 else 26933 printf "%s\n" "/* $configure_input */" >&1 \ 26934 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 26935 || as_fn_error $? "could not create -" "$LINENO" 5 26936 fi 26937# Compute "$ac_file"'s index in $config_headers. 26938_am_arg="$ac_file" 26939_am_stamp_count=1 26940for _am_header in $config_headers :; do 26941 case $_am_header in 26942 $_am_arg | $_am_arg:* ) 26943 break ;; 26944 * ) 26945 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 26946 esac 26947done 26948echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 26949$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26950 X"$_am_arg" : 'X\(//\)[^/]' \| \ 26951 X"$_am_arg" : 'X\(//\)$' \| \ 26952 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 26953printf "%s\n" X"$_am_arg" | 26954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26955 s//\1/ 26956 q 26957 } 26958 /^X\(\/\/\)[^/].*/{ 26959 s//\1/ 26960 q 26961 } 26962 /^X\(\/\/\)$/{ 26963 s//\1/ 26964 q 26965 } 26966 /^X\(\/\).*/{ 26967 s//\1/ 26968 q 26969 } 26970 s/.*/./; q'`/stamp-h$_am_stamp_count 26971 ;; 26972 26973 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 26974printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 26975 ;; 26976 esac 26977 26978 26979 case $ac_file$ac_mode in 26980 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 26981 # Older Autoconf quotes --file arguments for eval, but not when files 26982 # are listed without --file. Let's play safe and only enable the eval 26983 # if we detect the quoting. 26984 # TODO: see whether this extra hack can be removed once we start 26985 # requiring Autoconf 2.70 or later. 26986 case $CONFIG_FILES in #( 26987 *\'*) : 26988 eval set x "$CONFIG_FILES" ;; #( 26989 *) : 26990 set x $CONFIG_FILES ;; #( 26991 *) : 26992 ;; 26993esac 26994 shift 26995 # Used to flag and report bootstrapping failures. 26996 am_rc=0 26997 for am_mf 26998 do 26999 # Strip MF so we end up with the name of the file. 27000 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 27001 # Check whether this is an Automake generated Makefile which includes 27002 # dependency-tracking related rules and includes. 27003 # Grep'ing the whole file directly is not great: AIX grep has a line 27004 # limit of 2048, but all sed's we know have understand at least 4000. 27005 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 27006 || continue 27007 am_dirpart=`$as_dirname -- "$am_mf" || 27008$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27009 X"$am_mf" : 'X\(//\)[^/]' \| \ 27010 X"$am_mf" : 'X\(//\)$' \| \ 27011 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 27012printf "%s\n" X"$am_mf" | 27013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27014 s//\1/ 27015 q 27016 } 27017 /^X\(\/\/\)[^/].*/{ 27018 s//\1/ 27019 q 27020 } 27021 /^X\(\/\/\)$/{ 27022 s//\1/ 27023 q 27024 } 27025 /^X\(\/\).*/{ 27026 s//\1/ 27027 q 27028 } 27029 s/.*/./; q'` 27030 am_filepart=`$as_basename -- "$am_mf" || 27031$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 27032 X"$am_mf" : 'X\(//\)$' \| \ 27033 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 27034printf "%s\n" X/"$am_mf" | 27035 sed '/^.*\/\([^/][^/]*\)\/*$/{ 27036 s//\1/ 27037 q 27038 } 27039 /^X\/\(\/\/\)$/{ 27040 s//\1/ 27041 q 27042 } 27043 /^X\/\(\/\).*/{ 27044 s//\1/ 27045 q 27046 } 27047 s/.*/./; q'` 27048 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 27049 && sed -e '/# am--include-marker/d' "$am_filepart" \ 27050 | $MAKE -f - am--depfiles" >&5 27051 (cd "$am_dirpart" \ 27052 && sed -e '/# am--include-marker/d' "$am_filepart" \ 27053 | $MAKE -f - am--depfiles) >&5 2>&5 27054 ac_status=$? 27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27056 (exit $ac_status); } || am_rc=$? 27057 done 27058 if test $am_rc -ne 0; then 27059 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27060printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 27061as_fn_error $? "Something went wrong bootstrapping makefile fragments 27062 for automatic dependency tracking. If GNU make was not used, consider 27063 re-running the configure script with MAKE=\"gmake\" (or whatever is 27064 necessary). You can also try re-running configure with the 27065 '--disable-dependency-tracking' option to at least be able to build 27066 the package (albeit without support for automatic dependency tracking). 27067See \`config.log' for more details" "$LINENO" 5; } 27068 fi 27069 { am_dirpart=; unset am_dirpart;} 27070 { am_filepart=; unset am_filepart;} 27071 { am_mf=; unset am_mf;} 27072 { am_rc=; unset am_rc;} 27073 rm -f conftest-deps.mk 27074} 27075 ;; 27076 "libtool":C) 27077 27078 # See if we are running on zsh, and set the options that allow our 27079 # commands through without removal of \ escapes. 27080 if test -n "${ZSH_VERSION+set}"; then 27081 setopt NO_GLOB_SUBST 27082 fi 27083 27084 cfgfile=${ofile}T 27085 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 27086 $RM "$cfgfile" 27087 27088 cat <<_LT_EOF >> "$cfgfile" 27089#! $SHELL 27090# Generated automatically by $as_me ($PACKAGE) $VERSION 27091# NOTE: Changes made to this file will be lost: look at ltmain.sh. 27092 27093# Provide generalized library-building support services. 27094# Written by Gordon Matzigkeit, 1996 27095 27096# Copyright (C) 2014 Free Software Foundation, Inc. 27097# This is free software; see the source for copying conditions. There is NO 27098# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27099 27100# GNU Libtool is free software; you can redistribute it and/or modify 27101# it under the terms of the GNU General Public License as published by 27102# the Free Software Foundation; either version 2 of of the License, or 27103# (at your option) any later version. 27104# 27105# As a special exception to the GNU General Public License, if you 27106# distribute this file as part of a program or library that is built 27107# using GNU Libtool, you may include this file under the same 27108# distribution terms that you use for the rest of that program. 27109# 27110# GNU Libtool is distributed in the hope that it will be useful, but 27111# WITHOUT ANY WARRANTY; without even the implied warranty of 27112# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 27113# GNU General Public License for more details. 27114# 27115# You should have received a copy of the GNU General Public License 27116# along with this program. If not, see <http://www.gnu.org/licenses/>. 27117 27118 27119# The names of the tagged configurations supported by this script. 27120available_tags='CXX ' 27121 27122# Configured defaults for sys_lib_dlsearch_path munging. 27123: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 27124 27125# ### BEGIN LIBTOOL CONFIG 27126 27127# Which release of libtool.m4 was used? 27128macro_version=$macro_version 27129macro_revision=$macro_revision 27130 27131# Whether or not to build shared libraries. 27132build_libtool_libs=$enable_shared 27133 27134# Whether or not to build static libraries. 27135build_old_libs=$enable_static 27136 27137# What type of objects to build. 27138pic_mode=$pic_mode 27139 27140# Whether or not to optimize for fast installation. 27141fast_install=$enable_fast_install 27142 27143# Shared archive member basename,for filename based shared library versioning on AIX. 27144shared_archive_member_spec=$shared_archive_member_spec 27145 27146# Shell to use when invoking shell scripts. 27147SHELL=$lt_SHELL 27148 27149# An echo program that protects backslashes. 27150ECHO=$lt_ECHO 27151 27152# The PATH separator for the build system. 27153PATH_SEPARATOR=$lt_PATH_SEPARATOR 27154 27155# The host system. 27156host_alias=$host_alias 27157host=$host 27158host_os=$host_os 27159 27160# The build system. 27161build_alias=$build_alias 27162build=$build 27163build_os=$build_os 27164 27165# A sed program that does not truncate output. 27166SED=$lt_SED 27167 27168# Sed that helps us avoid accidentally triggering echo(1) options like -n. 27169Xsed="\$SED -e 1s/^X//" 27170 27171# A grep program that handles long lines. 27172GREP=$lt_GREP 27173 27174# An ERE matcher. 27175EGREP=$lt_EGREP 27176 27177# A literal string matcher. 27178FGREP=$lt_FGREP 27179 27180# A BSD- or MS-compatible name lister. 27181NM=$lt_NM 27182 27183# Whether we need soft or hard links. 27184LN_S=$lt_LN_S 27185 27186# What is the maximum length of a command? 27187max_cmd_len=$max_cmd_len 27188 27189# Object file suffix (normally "o"). 27190objext=$ac_objext 27191 27192# Executable file suffix (normally ""). 27193exeext=$exeext 27194 27195# whether the shell understands "unset". 27196lt_unset=$lt_unset 27197 27198# turn spaces into newlines. 27199SP2NL=$lt_lt_SP2NL 27200 27201# turn newlines into spaces. 27202NL2SP=$lt_lt_NL2SP 27203 27204# convert \$build file names to \$host format. 27205to_host_file_cmd=$lt_cv_to_host_file_cmd 27206 27207# convert \$build files to toolchain format. 27208to_tool_file_cmd=$lt_cv_to_tool_file_cmd 27209 27210# An object symbol dumper. 27211OBJDUMP=$lt_OBJDUMP 27212 27213# Method to check whether dependent libraries are shared objects. 27214deplibs_check_method=$lt_deplibs_check_method 27215 27216# Command to use when deplibs_check_method = "file_magic". 27217file_magic_cmd=$lt_file_magic_cmd 27218 27219# How to find potential files when deplibs_check_method = "file_magic". 27220file_magic_glob=$lt_file_magic_glob 27221 27222# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 27223want_nocaseglob=$lt_want_nocaseglob 27224 27225# DLL creation program. 27226DLLTOOL=$lt_DLLTOOL 27227 27228# Command to associate shared and link libraries. 27229sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 27230 27231# The archiver. 27232AR=$lt_AR 27233 27234# Flags to create an archive. 27235AR_FLAGS=$lt_AR_FLAGS 27236 27237# How to feed a file listing to the archiver. 27238archiver_list_spec=$lt_archiver_list_spec 27239 27240# A symbol stripping program. 27241STRIP=$lt_STRIP 27242 27243# Commands used to install an old-style archive. 27244RANLIB=$lt_RANLIB 27245old_postinstall_cmds=$lt_old_postinstall_cmds 27246old_postuninstall_cmds=$lt_old_postuninstall_cmds 27247 27248# Whether to use a lock for old archive extraction. 27249lock_old_archive_extraction=$lock_old_archive_extraction 27250 27251# A C compiler. 27252LTCC=$lt_CC 27253 27254# LTCC compiler flags. 27255LTCFLAGS=$lt_CFLAGS 27256 27257# Take the output of nm and produce a listing of raw symbols and C names. 27258global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 27259 27260# Transform the output of nm in a proper C declaration. 27261global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 27262 27263# Transform the output of nm into a list of symbols to manually relocate. 27264global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 27265 27266# Transform the output of nm in a C name address pair. 27267global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 27268 27269# Transform the output of nm in a C name address pair when lib prefix is needed. 27270global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 27271 27272# The name lister interface. 27273nm_interface=$lt_lt_cv_nm_interface 27274 27275# Specify filename containing input files for \$NM. 27276nm_file_list_spec=$lt_nm_file_list_spec 27277 27278# The root where to search for dependent libraries,and where our libraries should be installed. 27279lt_sysroot=$lt_sysroot 27280 27281# Command to truncate a binary pipe. 27282lt_truncate_bin=$lt_lt_cv_truncate_bin 27283 27284# The name of the directory that contains temporary libtool files. 27285objdir=$objdir 27286 27287# Used to examine libraries when file_magic_cmd begins with "file". 27288MAGIC_CMD=$MAGIC_CMD 27289 27290# Must we lock files when doing compilation? 27291need_locks=$lt_need_locks 27292 27293# Manifest tool. 27294MANIFEST_TOOL=$lt_MANIFEST_TOOL 27295 27296# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 27297DSYMUTIL=$lt_DSYMUTIL 27298 27299# Tool to change global to local symbols on Mac OS X. 27300NMEDIT=$lt_NMEDIT 27301 27302# Tool to manipulate fat objects and archives on Mac OS X. 27303LIPO=$lt_LIPO 27304 27305# ldd/readelf like tool for Mach-O binaries on Mac OS X. 27306OTOOL=$lt_OTOOL 27307 27308# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 27309OTOOL64=$lt_OTOOL64 27310 27311# Old archive suffix (normally "a"). 27312libext=$libext 27313 27314# Shared library suffix (normally ".so"). 27315shrext_cmds=$lt_shrext_cmds 27316 27317# The commands to extract the exported symbol list from a shared archive. 27318extract_expsyms_cmds=$lt_extract_expsyms_cmds 27319 27320# Variables whose values should be saved in libtool wrapper scripts and 27321# restored at link time. 27322variables_saved_for_relink=$lt_variables_saved_for_relink 27323 27324# Do we need the "lib" prefix for modules? 27325need_lib_prefix=$need_lib_prefix 27326 27327# Do we need a version for libraries? 27328need_version=$need_version 27329 27330# Library versioning type. 27331version_type=$version_type 27332 27333# Shared library runtime path variable. 27334runpath_var=$runpath_var 27335 27336# Shared library path variable. 27337shlibpath_var=$shlibpath_var 27338 27339# Is shlibpath searched before the hard-coded library search path? 27340shlibpath_overrides_runpath=$shlibpath_overrides_runpath 27341 27342# Format of library name prefix. 27343libname_spec=$lt_libname_spec 27344 27345# List of archive names. First name is the real one, the rest are links. 27346# The last name is the one that the linker finds with -lNAME 27347library_names_spec=$lt_library_names_spec 27348 27349# The coded name of the library, if different from the real name. 27350soname_spec=$lt_soname_spec 27351 27352# Permission mode override for installation of shared libraries. 27353install_override_mode=$lt_install_override_mode 27354 27355# Command to use after installation of a shared archive. 27356postinstall_cmds=$lt_postinstall_cmds 27357 27358# Command to use after uninstallation of a shared archive. 27359postuninstall_cmds=$lt_postuninstall_cmds 27360 27361# Commands used to finish a libtool library installation in a directory. 27362finish_cmds=$lt_finish_cmds 27363 27364# As "finish_cmds", except a single script fragment to be evaled but 27365# not shown. 27366finish_eval=$lt_finish_eval 27367 27368# Whether we should hardcode library paths into libraries. 27369hardcode_into_libs=$hardcode_into_libs 27370 27371# Compile-time system search path for libraries. 27372sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 27373 27374# Detected run-time system search path for libraries. 27375sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 27376 27377# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 27378configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 27379 27380# Whether dlopen is supported. 27381dlopen_support=$enable_dlopen 27382 27383# Whether dlopen of programs is supported. 27384dlopen_self=$enable_dlopen_self 27385 27386# Whether dlopen of statically linked programs is supported. 27387dlopen_self_static=$enable_dlopen_self_static 27388 27389# Commands to strip libraries. 27390old_striplib=$lt_old_striplib 27391striplib=$lt_striplib 27392 27393 27394# The linker used to build libraries. 27395LD=$lt_LD 27396 27397# How to create reloadable object files. 27398reload_flag=$lt_reload_flag 27399reload_cmds=$lt_reload_cmds 27400 27401# Commands used to build an old-style archive. 27402old_archive_cmds=$lt_old_archive_cmds 27403 27404# A language specific compiler. 27405CC=$lt_compiler 27406 27407# Is the compiler the GNU compiler? 27408with_gcc=$GCC 27409 27410# Compiler flag to turn off builtin functions. 27411no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 27412 27413# Additional compiler flags for building library objects. 27414pic_flag=$lt_lt_prog_compiler_pic 27415 27416# How to pass a linker flag through the compiler. 27417wl=$lt_lt_prog_compiler_wl 27418 27419# Compiler flag to prevent dynamic linking. 27420link_static_flag=$lt_lt_prog_compiler_static 27421 27422# Does compiler simultaneously support -c and -o options? 27423compiler_c_o=$lt_lt_cv_prog_compiler_c_o 27424 27425# Whether or not to add -lc for building shared libraries. 27426build_libtool_need_lc=$archive_cmds_need_lc 27427 27428# Whether or not to disallow shared libs when runtime libs are static. 27429allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 27430 27431# Compiler flag to allow reflexive dlopens. 27432export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 27433 27434# Compiler flag to generate shared objects directly from archives. 27435whole_archive_flag_spec=$lt_whole_archive_flag_spec 27436 27437# Whether the compiler copes with passing no objects directly. 27438compiler_needs_object=$lt_compiler_needs_object 27439 27440# Create an old-style archive from a shared archive. 27441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 27442 27443# Create a temporary old-style archive to link instead of a shared archive. 27444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 27445 27446# Commands used to build a shared archive. 27447archive_cmds=$lt_archive_cmds 27448archive_expsym_cmds=$lt_archive_expsym_cmds 27449 27450# Commands used to build a loadable module if different from building 27451# a shared archive. 27452module_cmds=$lt_module_cmds 27453module_expsym_cmds=$lt_module_expsym_cmds 27454 27455# Whether we are building with GNU ld or not. 27456with_gnu_ld=$lt_with_gnu_ld 27457 27458# Flag that allows shared libraries with undefined symbols to be built. 27459allow_undefined_flag=$lt_allow_undefined_flag 27460 27461# Flag that enforces no undefined symbols. 27462no_undefined_flag=$lt_no_undefined_flag 27463 27464# Flag to hardcode \$libdir into a binary during linking. 27465# This must work even if \$libdir does not exist 27466hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 27467 27468# Whether we need a single "-rpath" flag with a separated argument. 27469hardcode_libdir_separator=$lt_hardcode_libdir_separator 27470 27471# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27472# DIR into the resulting binary. 27473hardcode_direct=$hardcode_direct 27474 27475# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27476# DIR into the resulting binary and the resulting library dependency is 27477# "absolute",i.e impossible to change by setting \$shlibpath_var if the 27478# library is relocated. 27479hardcode_direct_absolute=$hardcode_direct_absolute 27480 27481# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27482# into the resulting binary. 27483hardcode_minus_L=$hardcode_minus_L 27484 27485# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27486# into the resulting binary. 27487hardcode_shlibpath_var=$hardcode_shlibpath_var 27488 27489# Set to "yes" if building a shared library automatically hardcodes DIR 27490# into the library and all subsequent libraries and executables linked 27491# against it. 27492hardcode_automatic=$hardcode_automatic 27493 27494# Set to yes if linker adds runtime paths of dependent libraries 27495# to runtime path list. 27496inherit_rpath=$inherit_rpath 27497 27498# Whether libtool must link a program against all its dependency libraries. 27499link_all_deplibs=$link_all_deplibs 27500 27501# Set to "yes" if exported symbols are required. 27502always_export_symbols=$always_export_symbols 27503 27504# The commands to list exported symbols. 27505export_symbols_cmds=$lt_export_symbols_cmds 27506 27507# Symbols that should not be listed in the preloaded symbols. 27508exclude_expsyms=$lt_exclude_expsyms 27509 27510# Symbols that must always be exported. 27511include_expsyms=$lt_include_expsyms 27512 27513# Commands necessary for linking programs (against libraries) with templates. 27514prelink_cmds=$lt_prelink_cmds 27515 27516# Commands necessary for finishing linking programs. 27517postlink_cmds=$lt_postlink_cmds 27518 27519# Specify filename containing input files. 27520file_list_spec=$lt_file_list_spec 27521 27522# How to hardcode a shared library path into an executable. 27523hardcode_action=$hardcode_action 27524 27525# The directories searched by this compiler when creating a shared library. 27526compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 27527 27528# Dependencies to place before and after the objects being linked to 27529# create a shared library. 27530predep_objects=$lt_predep_objects 27531postdep_objects=$lt_postdep_objects 27532predeps=$lt_predeps 27533postdeps=$lt_postdeps 27534 27535# The library search path used internally by the compiler when linking 27536# a shared library. 27537compiler_lib_search_path=$lt_compiler_lib_search_path 27538 27539# ### END LIBTOOL CONFIG 27540 27541_LT_EOF 27542 27543 cat <<'_LT_EOF' >> "$cfgfile" 27544 27545# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 27546 27547# func_munge_path_list VARIABLE PATH 27548# ----------------------------------- 27549# VARIABLE is name of variable containing _space_ separated list of 27550# directories to be munged by the contents of PATH, which is string 27551# having a format: 27552# "DIR[:DIR]:" 27553# string "DIR[ DIR]" will be prepended to VARIABLE 27554# ":DIR[:DIR]" 27555# string "DIR[ DIR]" will be appended to VARIABLE 27556# "DIRP[:DIRP]::[DIRA:]DIRA" 27557# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 27558# "DIRA[ DIRA]" will be appended to VARIABLE 27559# "DIR[:DIR]" 27560# VARIABLE will be replaced by "DIR[ DIR]" 27561func_munge_path_list () 27562{ 27563 case x$2 in 27564 x) 27565 ;; 27566 *:) 27567 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 27568 ;; 27569 x:*) 27570 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 27571 ;; 27572 *::*) 27573 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 27574 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 27575 ;; 27576 *) 27577 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 27578 ;; 27579 esac 27580} 27581 27582 27583# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 27584func_cc_basename () 27585{ 27586 for cc_temp in $*""; do 27587 case $cc_temp in 27588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 27589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 27590 \-*) ;; 27591 *) break;; 27592 esac 27593 done 27594 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 27595} 27596 27597 27598# ### END FUNCTIONS SHARED WITH CONFIGURE 27599 27600_LT_EOF 27601 27602 case $host_os in 27603 aix3*) 27604 cat <<\_LT_EOF >> "$cfgfile" 27605# AIX sometimes has problems with the GCC collect2 program. For some 27606# reason, if we set the COLLECT_NAMES environment variable, the problems 27607# vanish in a puff of smoke. 27608if test set != "${COLLECT_NAMES+set}"; then 27609 COLLECT_NAMES= 27610 export COLLECT_NAMES 27611fi 27612_LT_EOF 27613 ;; 27614 esac 27615 27616 27617 27618ltmain=$ac_aux_dir/ltmain.sh 27619 27620 27621 # We use sed instead of cat because bash on DJGPP gets confused if 27622 # if finds mixed CR/LF and LF-only lines. Since sed operates in 27623 # text mode, it properly converts lines to CR/LF. This bash problem 27624 # is reportedly fixed, but why not run on old versions too? 27625 sed '$q' "$ltmain" >> "$cfgfile" \ 27626 || (rm -f "$cfgfile"; exit 1) 27627 27628 mv -f "$cfgfile" "$ofile" || 27629 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 27630 chmod +x "$ofile" 27631 27632 27633 cat <<_LT_EOF >> "$ofile" 27634 27635# ### BEGIN LIBTOOL TAG CONFIG: CXX 27636 27637# The linker used to build libraries. 27638LD=$lt_LD_CXX 27639 27640# How to create reloadable object files. 27641reload_flag=$lt_reload_flag_CXX 27642reload_cmds=$lt_reload_cmds_CXX 27643 27644# Commands used to build an old-style archive. 27645old_archive_cmds=$lt_old_archive_cmds_CXX 27646 27647# A language specific compiler. 27648CC=$lt_compiler_CXX 27649 27650# Is the compiler the GNU compiler? 27651with_gcc=$GCC_CXX 27652 27653# Compiler flag to turn off builtin functions. 27654no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 27655 27656# Additional compiler flags for building library objects. 27657pic_flag=$lt_lt_prog_compiler_pic_CXX 27658 27659# How to pass a linker flag through the compiler. 27660wl=$lt_lt_prog_compiler_wl_CXX 27661 27662# Compiler flag to prevent dynamic linking. 27663link_static_flag=$lt_lt_prog_compiler_static_CXX 27664 27665# Does compiler simultaneously support -c and -o options? 27666compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 27667 27668# Whether or not to add -lc for building shared libraries. 27669build_libtool_need_lc=$archive_cmds_need_lc_CXX 27670 27671# Whether or not to disallow shared libs when runtime libs are static. 27672allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 27673 27674# Compiler flag to allow reflexive dlopens. 27675export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 27676 27677# Compiler flag to generate shared objects directly from archives. 27678whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 27679 27680# Whether the compiler copes with passing no objects directly. 27681compiler_needs_object=$lt_compiler_needs_object_CXX 27682 27683# Create an old-style archive from a shared archive. 27684old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 27685 27686# Create a temporary old-style archive to link instead of a shared archive. 27687old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 27688 27689# Commands used to build a shared archive. 27690archive_cmds=$lt_archive_cmds_CXX 27691archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 27692 27693# Commands used to build a loadable module if different from building 27694# a shared archive. 27695module_cmds=$lt_module_cmds_CXX 27696module_expsym_cmds=$lt_module_expsym_cmds_CXX 27697 27698# Whether we are building with GNU ld or not. 27699with_gnu_ld=$lt_with_gnu_ld_CXX 27700 27701# Flag that allows shared libraries with undefined symbols to be built. 27702allow_undefined_flag=$lt_allow_undefined_flag_CXX 27703 27704# Flag that enforces no undefined symbols. 27705no_undefined_flag=$lt_no_undefined_flag_CXX 27706 27707# Flag to hardcode \$libdir into a binary during linking. 27708# This must work even if \$libdir does not exist 27709hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 27710 27711# Whether we need a single "-rpath" flag with a separated argument. 27712hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 27713 27714# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27715# DIR into the resulting binary. 27716hardcode_direct=$hardcode_direct_CXX 27717 27718# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 27719# DIR into the resulting binary and the resulting library dependency is 27720# "absolute",i.e impossible to change by setting \$shlibpath_var if the 27721# library is relocated. 27722hardcode_direct_absolute=$hardcode_direct_absolute_CXX 27723 27724# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27725# into the resulting binary. 27726hardcode_minus_L=$hardcode_minus_L_CXX 27727 27728# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27729# into the resulting binary. 27730hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 27731 27732# Set to "yes" if building a shared library automatically hardcodes DIR 27733# into the library and all subsequent libraries and executables linked 27734# against it. 27735hardcode_automatic=$hardcode_automatic_CXX 27736 27737# Set to yes if linker adds runtime paths of dependent libraries 27738# to runtime path list. 27739inherit_rpath=$inherit_rpath_CXX 27740 27741# Whether libtool must link a program against all its dependency libraries. 27742link_all_deplibs=$link_all_deplibs_CXX 27743 27744# Set to "yes" if exported symbols are required. 27745always_export_symbols=$always_export_symbols_CXX 27746 27747# The commands to list exported symbols. 27748export_symbols_cmds=$lt_export_symbols_cmds_CXX 27749 27750# Symbols that should not be listed in the preloaded symbols. 27751exclude_expsyms=$lt_exclude_expsyms_CXX 27752 27753# Symbols that must always be exported. 27754include_expsyms=$lt_include_expsyms_CXX 27755 27756# Commands necessary for linking programs (against libraries) with templates. 27757prelink_cmds=$lt_prelink_cmds_CXX 27758 27759# Commands necessary for finishing linking programs. 27760postlink_cmds=$lt_postlink_cmds_CXX 27761 27762# Specify filename containing input files. 27763file_list_spec=$lt_file_list_spec_CXX 27764 27765# How to hardcode a shared library path into an executable. 27766hardcode_action=$hardcode_action_CXX 27767 27768# The directories searched by this compiler when creating a shared library. 27769compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 27770 27771# Dependencies to place before and after the objects being linked to 27772# create a shared library. 27773predep_objects=$lt_predep_objects_CXX 27774postdep_objects=$lt_postdep_objects_CXX 27775predeps=$lt_predeps_CXX 27776postdeps=$lt_postdeps_CXX 27777 27778# The library search path used internally by the compiler when linking 27779# a shared library. 27780compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 27781 27782# ### END LIBTOOL TAG CONFIG: CXX 27783_LT_EOF 27784 27785 ;; 27786 "$ac_stdint_h":C) 27787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5 27788printf "%s\n" "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;} 27789ac_stdint=$tmp/_stdint.h 27790 27791echo "#ifndef" $_ac_stdint_h >$ac_stdint 27792echo "#define" $_ac_stdint_h "1" >>$ac_stdint 27793echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint 27794echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint 27795echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint 27796if test "_$ac_cv_header_stdint_t" != "_" ; then 27797echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint 27798echo "#include <stdint.h>" >>$ac_stdint 27799echo "#endif" >>$ac_stdint 27800echo "#endif" >>$ac_stdint 27801else 27802 27803cat >>$ac_stdint <<STDINT_EOF 27804 27805/* ................... shortcircuit part ........................... */ 27806 27807#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H 27808#include <stdint.h> 27809#else 27810#include <stddef.h> 27811 27812/* .................... configured part ............................ */ 27813 27814STDINT_EOF 27815 27816echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint 27817if test "_$ac_cv_header_stdint_x" != "_" ; then 27818 ac_header="$ac_cv_header_stdint_x" 27819 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint 27820else 27821 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint 27822fi 27823 27824echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint 27825if test "_$ac_cv_header_stdint_o" != "_" ; then 27826 ac_header="$ac_cv_header_stdint_o" 27827 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint 27828else 27829 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint 27830fi 27831 27832echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint 27833if test "_$ac_cv_header_stdint_u" != "_" ; then 27834 ac_header="$ac_cv_header_stdint_u" 27835 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint 27836else 27837 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint 27838fi 27839 27840echo "" >>$ac_stdint 27841 27842if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then 27843 echo "#include <$ac_header>" >>$ac_stdint 27844 echo "" >>$ac_stdint 27845fi fi 27846 27847echo "/* which 64bit typedef has been found */" >>$ac_stdint 27848if test "$ac_cv_type_uint64_t" = "yes" ; then 27849echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint 27850else 27851echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint 27852fi 27853if test "$ac_cv_type_u_int64_t" = "yes" ; then 27854echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint 27855else 27856echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint 27857fi 27858echo "" >>$ac_stdint 27859 27860echo "/* which type model has been detected */" >>$ac_stdint 27861if test "_$ac_cv_char_data_model" != "_" ; then 27862echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint 27863echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint 27864else 27865echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint 27866echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint 27867fi 27868echo "" >>$ac_stdint 27869 27870echo "/* whether int_least types were detected */" >>$ac_stdint 27871if test "$ac_cv_type_int_least32_t" = "yes"; then 27872echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint 27873else 27874echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint 27875fi 27876echo "/* whether int_fast types were detected */" >>$ac_stdint 27877if test "$ac_cv_type_int_fast32_t" = "yes"; then 27878echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint 27879else 27880echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint 27881fi 27882echo "/* whether intmax_t type was detected */" >>$ac_stdint 27883if test "$ac_cv_type_intmax_t" = "yes"; then 27884echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint 27885else 27886echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint 27887fi 27888echo "" >>$ac_stdint 27889 27890 cat >>$ac_stdint <<STDINT_EOF 27891/* .................... detections part ............................ */ 27892 27893/* whether we need to define bit specific types from compiler base types */ 27894#ifndef _STDINT_HEADER_INTPTR 27895#ifndef _STDINT_HEADER_UINT32 27896#ifndef _STDINT_HEADER_U_INT32 27897#define _STDINT_NEED_INT_MODEL_T 27898#else 27899#define _STDINT_HAVE_U_INT_TYPES 27900#endif 27901#endif 27902#endif 27903 27904#ifdef _STDINT_HAVE_U_INT_TYPES 27905#undef _STDINT_NEED_INT_MODEL_T 27906#endif 27907 27908#ifdef _STDINT_CHAR_MODEL 27909#if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124 27910#ifndef _STDINT_BYTE_MODEL 27911#define _STDINT_BYTE_MODEL 12 27912#endif 27913#endif 27914#endif 27915 27916#ifndef _STDINT_HAVE_INT_LEAST32_T 27917#define _STDINT_NEED_INT_LEAST_T 27918#endif 27919 27920#ifndef _STDINT_HAVE_INT_FAST32_T 27921#define _STDINT_NEED_INT_FAST_T 27922#endif 27923 27924#ifndef _STDINT_HEADER_INTPTR 27925#define _STDINT_NEED_INTPTR_T 27926#ifndef _STDINT_HAVE_INTMAX_T 27927#define _STDINT_NEED_INTMAX_T 27928#endif 27929#endif 27930 27931 27932/* .................... definition part ............................ */ 27933 27934/* some system headers have good uint64_t */ 27935#ifndef _HAVE_UINT64_T 27936#if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T 27937#define _HAVE_UINT64_T 27938#elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T 27939#define _HAVE_UINT64_T 27940typedef u_int64_t uint64_t; 27941#endif 27942#endif 27943 27944#ifndef _HAVE_UINT64_T 27945/* .. here are some common heuristics using compiler runtime specifics */ 27946#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L 27947#define _HAVE_UINT64_T 27948#define _HAVE_LONGLONG_UINT64_T 27949typedef long long int64_t; 27950typedef unsigned long long uint64_t; 27951 27952#elif !defined __STRICT_ANSI__ 27953#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 27954#define _HAVE_UINT64_T 27955typedef __int64 int64_t; 27956typedef unsigned __int64 uint64_t; 27957 27958#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__ 27959/* note: all ELF-systems seem to have loff-support which needs 64-bit */ 27960#if !defined _NO_LONGLONG 27961#define _HAVE_UINT64_T 27962#define _HAVE_LONGLONG_UINT64_T 27963typedef long long int64_t; 27964typedef unsigned long long uint64_t; 27965#endif 27966 27967#elif defined __alpha || (defined __mips && defined _ABIN32) 27968#if !defined _NO_LONGLONG 27969typedef long int64_t; 27970typedef unsigned long uint64_t; 27971#endif 27972 /* compiler/cpu type to define int64_t */ 27973#endif 27974#endif 27975#endif 27976 27977#if defined _STDINT_HAVE_U_INT_TYPES 27978/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ 27979typedef u_int8_t uint8_t; 27980typedef u_int16_t uint16_t; 27981typedef u_int32_t uint32_t; 27982 27983/* glibc compatibility */ 27984#ifndef __int8_t_defined 27985#define __int8_t_defined 27986#endif 27987#endif 27988 27989#ifdef _STDINT_NEED_INT_MODEL_T 27990/* we must guess all the basic types. Apart from byte-addressable system, */ 27991/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */ 27992/* (btw, those nibble-addressable systems are way off, or so we assume) */ 27993 27994 27995#if defined _STDINT_BYTE_MODEL 27996#if _STDINT_LONG_MODEL+0 == 242 27997/* 2:4:2 = IP16 = a normal 16-bit system */ 27998typedef unsigned char uint8_t; 27999typedef unsigned short uint16_t; 28000typedef unsigned long uint32_t; 28001#ifndef __int8_t_defined 28002#define __int8_t_defined 28003typedef char int8_t; 28004typedef short int16_t; 28005typedef long int32_t; 28006#endif 28007#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444 28008/* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */ 28009/* 4:4:4 = ILP32 = a normal 32-bit system */ 28010typedef unsigned char uint8_t; 28011typedef unsigned short uint16_t; 28012typedef unsigned int uint32_t; 28013#ifndef __int8_t_defined 28014#define __int8_t_defined 28015typedef char int8_t; 28016typedef short int16_t; 28017typedef int int32_t; 28018#endif 28019#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488 28020/* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */ 28021/* 4:8:8 = LP64 = a normal 64-bit system */ 28022typedef unsigned char uint8_t; 28023typedef unsigned short uint16_t; 28024typedef unsigned int uint32_t; 28025#ifndef __int8_t_defined 28026#define __int8_t_defined 28027typedef char int8_t; 28028typedef short int16_t; 28029typedef int int32_t; 28030#endif 28031/* this system has a "long" of 64bit */ 28032#ifndef _HAVE_UINT64_T 28033#define _HAVE_UINT64_T 28034typedef unsigned long uint64_t; 28035typedef long int64_t; 28036#endif 28037#elif _STDINT_LONG_MODEL+0 == 448 28038/* LLP64 a 64-bit system derived from a 32-bit system */ 28039typedef unsigned char uint8_t; 28040typedef unsigned short uint16_t; 28041typedef unsigned int uint32_t; 28042#ifndef __int8_t_defined 28043#define __int8_t_defined 28044typedef char int8_t; 28045typedef short int16_t; 28046typedef int int32_t; 28047#endif 28048/* assuming the system has a "long long" */ 28049#ifndef _HAVE_UINT64_T 28050#define _HAVE_UINT64_T 28051#define _HAVE_LONGLONG_UINT64_T 28052typedef unsigned long long uint64_t; 28053typedef long long int64_t; 28054#endif 28055#else 28056#define _STDINT_NO_INT32_T 28057#endif 28058#else 28059#define _STDINT_NO_INT8_T 28060#define _STDINT_NO_INT32_T 28061#endif 28062#endif 28063 28064/* 28065 * quote from SunOS-5.8 sys/inttypes.h: 28066 * Use at your own risk. As of February 1996, the committee is squarely 28067 * behind the fixed sized types; the "least" and "fast" types are still being 28068 * discussed. The probability that the "fast" types may be removed before 28069 * the standard is finalized is high enough that they are not currently 28070 * implemented. 28071 */ 28072 28073#if defined _STDINT_NEED_INT_LEAST_T 28074typedef int8_t int_least8_t; 28075typedef int16_t int_least16_t; 28076typedef int32_t int_least32_t; 28077#ifdef _HAVE_UINT64_T 28078typedef int64_t int_least64_t; 28079#endif 28080 28081typedef uint8_t uint_least8_t; 28082typedef uint16_t uint_least16_t; 28083typedef uint32_t uint_least32_t; 28084#ifdef _HAVE_UINT64_T 28085typedef uint64_t uint_least64_t; 28086#endif 28087 /* least types */ 28088#endif 28089 28090#if defined _STDINT_NEED_INT_FAST_T 28091typedef int8_t int_fast8_t; 28092typedef int int_fast16_t; 28093typedef int32_t int_fast32_t; 28094#ifdef _HAVE_UINT64_T 28095typedef int64_t int_fast64_t; 28096#endif 28097 28098typedef uint8_t uint_fast8_t; 28099typedef unsigned uint_fast16_t; 28100typedef uint32_t uint_fast32_t; 28101#ifdef _HAVE_UINT64_T 28102typedef uint64_t uint_fast64_t; 28103#endif 28104 /* fast types */ 28105#endif 28106 28107#ifdef _STDINT_NEED_INTMAX_T 28108#ifdef _HAVE_UINT64_T 28109typedef int64_t intmax_t; 28110typedef uint64_t uintmax_t; 28111#else 28112typedef long intmax_t; 28113typedef unsigned long uintmax_t; 28114#endif 28115#endif 28116 28117#ifdef _STDINT_NEED_INTPTR_T 28118#ifndef __intptr_t_defined 28119#define __intptr_t_defined 28120/* we encourage using "long" to store pointer values, never use "int" ! */ 28121#if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484 28122typedef unsigned int uintptr_t; 28123typedef int intptr_t; 28124#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444 28125typedef unsigned long uintptr_t; 28126typedef long intptr_t; 28127#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T 28128typedef uint64_t uintptr_t; 28129typedef int64_t intptr_t; 28130#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */ 28131typedef unsigned long uintptr_t; 28132typedef long intptr_t; 28133#endif 28134#endif 28135#endif 28136 28137/* The ISO C99 standard specifies that in C++ implementations these 28138 should only be defined if explicitly requested. */ 28139#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS 28140#ifndef UINT32_C 28141 28142/* Signed. */ 28143# define INT8_C(c) c 28144# define INT16_C(c) c 28145# define INT32_C(c) c 28146# ifdef _HAVE_LONGLONG_UINT64_T 28147# define INT64_C(c) c ## L 28148# else 28149# define INT64_C(c) c ## LL 28150# endif 28151 28152/* Unsigned. */ 28153# define UINT8_C(c) c ## U 28154# define UINT16_C(c) c ## U 28155# define UINT32_C(c) c ## U 28156# ifdef _HAVE_LONGLONG_UINT64_T 28157# define UINT64_C(c) c ## UL 28158# else 28159# define UINT64_C(c) c ## ULL 28160# endif 28161 28162/* Maximal type. */ 28163# ifdef _HAVE_LONGLONG_UINT64_T 28164# define INTMAX_C(c) c ## L 28165# define UINTMAX_C(c) c ## UL 28166# else 28167# define INTMAX_C(c) c ## LL 28168# define UINTMAX_C(c) c ## ULL 28169# endif 28170 28171 /* literalnumbers */ 28172#endif 28173#endif 28174 28175/* These limits are merrily those of a two complement byte-oriented system */ 28176 28177/* Minimum of signed integral types. */ 28178# define INT8_MIN (-128) 28179# define INT16_MIN (-32767-1) 28180# define INT32_MIN (-2147483647-1) 28181#ifndef INT64_MIN 28182# define INT64_MIN (-__INT64_C(9223372036854775807)-1) 28183#endif 28184/* Maximum of signed integral types. */ 28185# define INT8_MAX (127) 28186# define INT16_MAX (32767) 28187# define INT32_MAX (2147483647) 28188#ifndef INT64_MAX 28189# define INT64_MAX (__INT64_C(9223372036854775807)) 28190#endif 28191 28192/* Maximum of unsigned integral types. */ 28193#ifndef UINT8_MAX 28194# define UINT8_MAX (255) 28195#endif 28196#ifndef UINT16_MAX 28197# define UINT16_MAX (65535) 28198#endif 28199# define UINT32_MAX (4294967295U) 28200#ifndef UINT64_MAX 28201# define UINT64_MAX (__UINT64_C(18446744073709551615)) 28202#endif 28203 28204/* Minimum of signed integral types having a minimum size. */ 28205# define INT_LEAST8_MIN INT8_MIN 28206# define INT_LEAST16_MIN INT16_MIN 28207# define INT_LEAST32_MIN INT32_MIN 28208# define INT_LEAST64_MIN INT64_MIN 28209/* Maximum of signed integral types having a minimum size. */ 28210# define INT_LEAST8_MAX INT8_MAX 28211# define INT_LEAST16_MAX INT16_MAX 28212# define INT_LEAST32_MAX INT32_MAX 28213# define INT_LEAST64_MAX INT64_MAX 28214 28215/* Maximum of unsigned integral types having a minimum size. */ 28216# define UINT_LEAST8_MAX UINT8_MAX 28217# define UINT_LEAST16_MAX UINT16_MAX 28218# define UINT_LEAST32_MAX UINT32_MAX 28219# define UINT_LEAST64_MAX UINT64_MAX 28220 28221 /* shortcircuit*/ 28222#endif 28223 /* once */ 28224#endif 28225#endif 28226STDINT_EOF 28227fi 28228 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then 28229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5 28230printf "%s\n" "$as_me: $ac_stdint_h is unchanged" >&6;} 28231 else 28232 ac_dir=`$as_dirname -- "$ac_stdint_h" || 28233$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28234 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \ 28235 X"$ac_stdint_h" : 'X\(//\)$' \| \ 28236 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null || 28237printf "%s\n" X"$ac_stdint_h" | 28238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28239 s//\1/ 28240 q 28241 } 28242 /^X\(\/\/\)[^/].*/{ 28243 s//\1/ 28244 q 28245 } 28246 /^X\(\/\/\)$/{ 28247 s//\1/ 28248 q 28249 } 28250 /^X\(\/\).*/{ 28251 s//\1/ 28252 q 28253 } 28254 s/.*/./; q'` 28255 as_dir="$ac_dir"; as_fn_mkdir_p 28256 rm -f $ac_stdint_h 28257 mv $ac_stdint $ac_stdint_h 28258 fi 28259 ;; 28260 "$ax_create_pkgconfig_generate":C) 28261pkgconfig_generate="$ax_create_pkgconfig_generate" 28262if test ! -f "$pkgconfig_generate.in" 28263then generate="true" 28264elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null 28265then generate="true" 28266else generate="false"; 28267fi 28268if $generate ; then 28269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5 28270printf "%s\n" "$as_me: creating $pkgconfig_generate.in" >&6;} 28271cat > $pkgconfig_generate.in <<AXEOF 28272# generated by configure / remove this line to disable regeneration 28273prefix=@prefix@ 28274exec_prefix=@exec_prefix@ 28275bindir=@bindir@ 28276libdir=@libdir@ 28277datarootdir=@datarootdir@ 28278datadir=@datadir@ 28279sysconfdir=@sysconfdir@ 28280includedir=@includedir@ 28281package=@PACKAGE@ 28282suffix=@suffix@ 28283 28284Name: @PACKAGE_NAME@ 28285Description: @PACKAGE_DESCRIPTION@ 28286Version: @PACKAGE_VERSION@ 28287Requires: @PACKAGE_REQUIRES@ 28288Libs: -L\${libdir} @LDFLAGS@ @LIBS@ 28289Cflags: -I\${includedir} @CPPFLAGS@ 28290AXEOF 28291fi # DONE generate $pkgconfig_generate.in 28292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5 28293printf "%s\n" "$as_me: creating $pkgconfig_generate" >&6;} 28294cat >conftest.sed <<AXEOF 28295s|@prefix@|${pkgconfig_prefix}| 28296s|@exec_prefix@|${pkgconfig_execprefix}| 28297s|@bindir@|${pkgconfig_bindir}| 28298s|@libdir@|${pkgconfig_libdir}| 28299s|@datarootdir@|${pkgconfig_datarootdir}| 28300s|@datadir@|${pkgconfig_datadir}| 28301s|@sysconfdir@|${pkgconfig_sysconfdir}| 28302s|@includedir@|${pkgconfig_includedir}| 28303s|@suffix@|${pkgconfig_suffix}| 28304s|@PACKAGE@|${pkgconfig_package}| 28305s|@PACKAGE_NAME@|${pkgconfig_libname}| 28306s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}| 28307s|@PACKAGE_VERSION@|${pkgconfig_version}| 28308s|@PACKAGE_REQUIRES@|${pkgconfig_requires}| 28309s|@LIBS@|${pkgconfig_libs}| 28310s|@LDFLAGS@|${pkgconfig_ldflags}| 28311s|@CPPFLAGS@|${pkgconfig_cppflags}| 28312AXEOF 28313sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_generate 28314if test ! -s $pkgconfig_generate ; then 28315 as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5 28316fi ; rm conftest.sed # DONE generate $pkgconfig_generate 28317pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'` 28318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5 28319printf "%s\n" "$as_me: creating $pkgconfig_uninstalled" >&6;} 28320cat >conftest.sed <<AXEOF 28321s|@prefix@|${pkgconfig_prefix}| 28322s|@exec_prefix@|${pkgconfig_execprefix}| 28323s|@bindir@|${pkgconfig_bindir}| 28324s|@libdir@|${pkgconfig_src_libdir}| 28325s|@datarootdir@|${pkgconfig_datarootdir}| 28326s|@datadir@|${pkgconfig_datadir}| 28327s|@sysconfdir@|${pkgconfig_sysconfdir}| 28328s|@includedir@|${pkgconfig_src_headers}| 28329s|@suffix@|${pkgconfig_suffix}| 28330s|@PACKAGE@|${pkgconfig_package}| 28331s|@PACKAGE_NAME@|${pkgconfig_libname}| 28332s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}| 28333s|@PACKAGE_VERSION@|${pkgconfig_version}| 28334s|@PACKAGE_REQUIRES@|${pkgconfig_requires}| 28335s|@LIBS@|${pkgconfig_libs}| 28336s|@LDFLAGS@|${pkgconfig_ldflags}| 28337s|@CPPFLAGS@|${pkgconfig_cppflags}| 28338AXEOF 28339sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled 28340if test ! -s $pkgconfig_uninstalled ; then 28341 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5 28342fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled 28343 pkgconfig_requires_add=`echo ${pkgconfig_requires}` 28344if test ".$pkgconfig_requires_add" != "." ; then 28345 pkgconfig_requires_add="pkg-config $pkgconfig_requires_add" 28346 else pkgconfig_requires_add=":" ; fi 28347pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'` 28348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5 28349printf "%s\n" "$as_me: creating $pkgconfig_uninstalled" >&6;} 28350cat >conftest.sed <<AXEOF 28351s|@prefix@|\"${pkgconfig_prefix}\"| 28352s|@exec_prefix@|\"${pkgconfig_execprefix}\"| 28353s|@bindir@|\"${pkgconfig_bindir}\"| 28354s|@libdir@|\"${pkgconfig_src_libdir}\"| 28355s|@datarootdir@|\"${pkgconfig_datarootdir}\"| 28356s|@datadir@|\"${pkgconfig_datadir}\"| 28357s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"| 28358s|@includedir@|\"${pkgconfig_src_headers}\"| 28359s|@suffix@|\"${pkgconfig_suffix}\"| 28360s|@PACKAGE@|\"${pkgconfig_package}\"| 28361s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"| 28362s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"| 28363s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"| 28364s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"| 28365s|@LIBS@|\"${pkgconfig_libs}\"| 28366s|@LDFLAGS@|\"${pkgconfig_ldflags}\"| 28367s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"| 28368s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo > 28369s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of > 28370s>Version: *>\\;\\; --modversion|--version) echo > 28371s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add> 28372s>Libs: *>\\;\\; --libs) echo > 28373s>Cflags: *>\\;\\; --cflags) echo > 28374/--libs)/a\\ 28375 $pkgconfig_requires_add 28376/--cflags)/a\\ 28377 $pkgconfig_requires_add\\ 28378;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\ 28379;; --uninstalled) exit 0 \\ 28380;; *) ;; esac done 28381AXEOF 28382sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled 28383if test ! -s $pkgconfig_uninstalled ; then 28384 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5 28385fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled 28386 ;; 28387 "bound_test.sh":F) chmod +x bound_test.sh ;; 28388 "codegen_test.sh":F) chmod +x codegen_test.sh ;; 28389 "pip_test.sh":F) chmod +x pip_test.sh ;; 28390 "flow_test.sh":F) chmod +x flow_test.sh ;; 28391 "schedule_test.sh":F) chmod +x schedule_test.sh ;; 28392 28393 esac 28394done # for ac_tag 28395 28396 28397as_fn_exit 0 28398_ACEOF 28399ac_clean_files=$ac_clean_files_save 28400 28401test $ac_write_fail = 0 || 28402 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 28403 28404 28405# configure is writing to config.log, and then calls config.status. 28406# config.status does its own redirection, appending to config.log. 28407# Unfortunately, on DOS this fails, as config.log is still kept open 28408# by configure, so config.status won't be able to write to it; its 28409# output is simply discarded. So we exec the FD to /dev/null, 28410# effectively closing config.log, so it can be properly (re)opened and 28411# appended to by config.status. When coming back to configure, we 28412# need to make the FD available again. 28413if test "$no_create" != yes; then 28414 ac_cs_success=: 28415 ac_config_status_args= 28416 test "$silent" = yes && 28417 ac_config_status_args="$ac_config_status_args --quiet" 28418 exec 5>/dev/null 28419 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 28420 exec 5>>config.log 28421 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 28422 # would make configure fail if this is the last instruction. 28423 $ac_cs_success || as_fn_exit 1 28424fi 28425 28426# 28427# CONFIG_SUBDIRS section. 28428# 28429if test "$no_recursion" != yes; then 28430 28431 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 28432 # so they do not pile up. 28433 ac_sub_configure_args= 28434 ac_prev= 28435 eval "set x $ac_configure_args" 28436 shift 28437 for ac_arg 28438 do 28439 if test -n "$ac_prev"; then 28440 ac_prev= 28441 continue 28442 fi 28443 case $ac_arg in 28444 -cache-file | --cache-file | --cache-fil | --cache-fi \ 28445 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 28446 ac_prev=cache_file ;; 28447 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 28448 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 28449 | --c=*) 28450 ;; 28451 --config-cache | -C) 28452 ;; 28453 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 28454 ac_prev=srcdir ;; 28455 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 28456 ;; 28457 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 28458 ac_prev=prefix ;; 28459 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 28460 ;; 28461 --disable-option-checking) 28462 ;; 28463 *) 28464 case $ac_arg in 28465 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 28466 esac 28467 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 28468 esac 28469 done 28470 28471 # Always prepend --prefix to ensure using the same prefix 28472 # in subdir configurations. 28473 ac_arg="--prefix=$prefix" 28474 case $ac_arg in 28475 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 28476 esac 28477 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 28478 28479 # Pass --silent 28480 if test "$silent" = yes; then 28481 ac_sub_configure_args="--silent $ac_sub_configure_args" 28482 fi 28483 28484 # Always prepend --disable-option-checking to silence warnings, since 28485 # different subdirs can have different --enable and --with options. 28486 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 28487 28488 ac_popdir=`pwd` 28489 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 28490 28491 # Do not complain, so a configure script can configure whichever 28492 # parts of a large source tree are present. 28493 test -d "$srcdir/$ac_dir" || continue 28494 28495 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 28496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 28497 printf "%s\n" "$ac_msg" >&6 28498 as_dir="$ac_dir"; as_fn_mkdir_p 28499 ac_builddir=. 28500 28501case "$ac_dir" in 28502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 28503*) 28504 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 28505 # A ".." for each directory in $ac_dir_suffix. 28506 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 28507 case $ac_top_builddir_sub in 28508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 28509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 28510 esac ;; 28511esac 28512ac_abs_top_builddir=$ac_pwd 28513ac_abs_builddir=$ac_pwd$ac_dir_suffix 28514# for backward compatibility: 28515ac_top_builddir=$ac_top_build_prefix 28516 28517case $srcdir in 28518 .) # We are building in place. 28519 ac_srcdir=. 28520 ac_top_srcdir=$ac_top_builddir_sub 28521 ac_abs_top_srcdir=$ac_pwd ;; 28522 [\\/]* | ?:[\\/]* ) # Absolute name. 28523 ac_srcdir=$srcdir$ac_dir_suffix; 28524 ac_top_srcdir=$srcdir 28525 ac_abs_top_srcdir=$srcdir ;; 28526 *) # Relative name. 28527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28528 ac_top_srcdir=$ac_top_build_prefix$srcdir 28529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28530esac 28531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28532 28533 28534 cd "$ac_dir" 28535 28536 # Check for configure.gnu first; this name is used for a wrapper for 28537 # Metaconfig's "Configure" on case-insensitive file systems. 28538 if test -f "$ac_srcdir/configure.gnu"; then 28539 ac_sub_configure=$ac_srcdir/configure.gnu 28540 elif test -f "$ac_srcdir/configure"; then 28541 ac_sub_configure=$ac_srcdir/configure 28542 else 28543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 28544printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 28545 ac_sub_configure= 28546 fi 28547 28548 # The recursion is here. 28549 if test -n "$ac_sub_configure"; then 28550 # Make the cache file name correct relative to the subdirectory. 28551 case $cache_file in 28552 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 28553 *) # Relative name. 28554 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 28555 esac 28556 28557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 28558printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 28559 # The eval makes quoting arguments work. 28560 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 28561 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 28562 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 28563 fi 28564 28565 cd "$ac_popdir" 28566 done 28567fi 28568if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 28569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 28570printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 28571fi 28572 28573 28574